🤖 Merge PR #48101 Add missing restApiOptions for jsforce connection by @jonathanwiesel

Co-authored-by: Jonathan Wiesel <jonathan.wiesel@s4g.es>
This commit is contained in:
Jonathan Wiesel 2020-09-26 19:03:36 +02:00 committed by GitHub
parent c60403cb35
commit d9c0a17d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,8 @@ export type Callback<T> = (err: Error | null, result: T) => void;
// and search for options
export interface RestApiOptions {
headers?: { [x: string]: string }
allowRecursive?: boolean;
allOrNone?: boolean;
}
// These are pulled out because according to http://jsforce.github.io/jsforce/doc/connection.js.html#line49

View File

@ -42,7 +42,9 @@ async function testSObject(connection: sf.Connection) {
// currently untyped, but some future change may make this stricter
const restApiOptions = {
headers: { Bearer: 'I have no idea what this wants' }
headers: { Bearer: 'I have no idea what this wants' },
allowRecursive: true,
allOrNone: true
};
{ // Test SObject.record