From d9c0a17d8486a3eb2d33dae211275bee0bd4da3d Mon Sep 17 00:00:00 2001 From: Jonathan Wiesel Date: Sat, 26 Sep 2020 19:03:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#48101=20Add=20miss?= =?UTF-8?q?ing=20restApiOptions=20for=20jsforce=20connection=20by=20@jonat?= =?UTF-8?q?hanwiesel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jonathan Wiesel --- types/jsforce/connection.d.ts | 2 ++ types/jsforce/jsforce-tests.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/jsforce/connection.d.ts b/types/jsforce/connection.d.ts index 9b78a9bd1c..b01fec344c 100644 --- a/types/jsforce/connection.d.ts +++ b/types/jsforce/connection.d.ts @@ -21,6 +21,8 @@ export type Callback = (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 diff --git a/types/jsforce/jsforce-tests.ts b/types/jsforce/jsforce-tests.ts index 8f141ad6e4..4a17c59dc4 100644 --- a/types/jsforce/jsforce-tests.ts +++ b/types/jsforce/jsforce-tests.ts @@ -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