mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47703 feat(jsforce): maxConcurrentRequests by @jgellin-sf
This commit is contained in:
parent
e58b370380
commit
ee09285e84
1
types/jsforce/describe-result.d.ts
vendored
1
types/jsforce/describe-result.d.ts
vendored
@ -246,6 +246,7 @@ export interface DescribeSObjectOptions {
|
||||
export interface BatchDescribeSObjectOptions {
|
||||
types: string[];
|
||||
autofetch?: boolean;
|
||||
maxConcurrentRequests?: number;
|
||||
}
|
||||
|
||||
export interface DescribeGlobalResult {
|
||||
|
||||
@ -764,7 +764,7 @@ async function testDescribe() {
|
||||
const options: DescribeSObjectOptions = { type: types[0], ifModifiedSince: new Date().toUTCString() };
|
||||
const sobject: DescribeSObjectResult = await salesforceConnection.describe(options);
|
||||
const cachedSObject: DescribeSObjectResult = await salesforceConnection.describe$(options);
|
||||
const batchSObjects: DescribeSObjectResult[] = await salesforceConnection.batchDescribe({ types, autofetch: false });
|
||||
const batchSObjects: DescribeSObjectResult[] = await salesforceConnection.batchDescribe({ types, autofetch: false, maxConcurrentRequests: 15 });
|
||||
}
|
||||
|
||||
async function testApex(conn: sf.Connection): Promise<void> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user