@jsforce/jsforce-node 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/VERSION.d.ts +1 -1
- package/lib/VERSION.js +1 -1
- package/lib/api/soap.d.ts +5 -1
- package/lib/api/soap.js +12 -0
- package/lib/connection.d.ts +1 -1
- package/lib/request.js +1 -3
- package/package.json +4 -5
package/lib/VERSION.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "3.
|
|
1
|
+
declare const _default: "3.5.0";
|
|
2
2
|
export default _default;
|
package/lib/VERSION.js
CHANGED
package/lib/api/soap.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Connection from '../connection';
|
|
2
2
|
import { Schema, Record, SoapSchemaDef, SoapSchema } from '../types';
|
|
3
|
-
import { LeadConvert, LeadConvertResult, MergeRequest, MergeResult, EmptyRecycleBinResult, DescribeTabSetResult, GetServerTimestampResult, GetUserInfoResult, ResetPasswordResult, SaveResult, UpsertResult, DeleteResult } from './soap/schema';
|
|
3
|
+
import { LeadConvert, LeadConvertResult, MergeRequest, MergeResult, EmptyRecycleBinResult, UndeleteResult, DescribeTabSetResult, GetServerTimestampResult, GetUserInfoResult, ResetPasswordResult, SaveResult, UpsertResult, DeleteResult } from './soap/schema';
|
|
4
4
|
/**
|
|
5
5
|
* API class for Partner SOAP call
|
|
6
6
|
*/
|
|
@@ -72,5 +72,9 @@ export declare class SoapApi<S extends Schema> {
|
|
|
72
72
|
delete(ids: string | string[]): Promise<DeleteResult[]>;
|
|
73
73
|
delete(id: string): Promise<DeleteResult>;
|
|
74
74
|
delete(ids: string | string[]): Promise<DeleteResult | DeleteResult[]>;
|
|
75
|
+
/**
|
|
76
|
+
* Undelete records from the recycle bin immediately
|
|
77
|
+
*/
|
|
78
|
+
undelete(ids: string[]): Promise<UndeleteResult[]>;
|
|
75
79
|
}
|
|
76
80
|
export default SoapApi;
|
package/lib/api/soap.js
CHANGED
|
@@ -145,6 +145,18 @@ class SoapApi {
|
|
|
145
145
|
};
|
|
146
146
|
return this._invoke('delete', args, schema);
|
|
147
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Undelete records from the recycle bin immediately
|
|
150
|
+
*/
|
|
151
|
+
undelete(ids) {
|
|
152
|
+
const schema = [schema_1.ApiSchemas.UndeleteResult];
|
|
153
|
+
const args = {
|
|
154
|
+
'@xmlns': 'urn:partner.soap.sforce.com',
|
|
155
|
+
'@xmlns:ns1': 'sobject.partner.soap.sforce.com',
|
|
156
|
+
'ns1:ids': ids,
|
|
157
|
+
};
|
|
158
|
+
return this._invoke('undelete', args, schema);
|
|
159
|
+
}
|
|
148
160
|
}
|
|
149
161
|
exports.SoapApi = SoapApi;
|
|
150
162
|
/*--------------------------------------------*/
|
package/lib/connection.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ export declare class Connection<S extends Schema = Schema> extends EventEmitter
|
|
|
214
214
|
/**
|
|
215
215
|
*
|
|
216
216
|
*/
|
|
217
|
-
queryMore(locator: string, options?: QueryOptions): Query<S, Extract<keyof S["SObjects"], string>,
|
|
217
|
+
queryMore<T extends Record>(locator: string, options?: QueryOptions): Query<S, Extract<keyof S["SObjects"], string>, T, "QueryResult">;
|
|
218
218
|
_ensureVersion(majorVersion: number): boolean;
|
|
219
219
|
_supports(feature: string): boolean;
|
|
220
220
|
/**
|
package/lib/request.js
CHANGED
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.setDefaults = void 0;
|
|
30
30
|
const stream_1 = require("stream");
|
|
31
31
|
const node_fetch_1 = __importStar(require("node-fetch"));
|
|
32
|
-
const abort_controller_1 = __importDefault(require("abort-controller"));
|
|
33
32
|
const https_proxy_agent_1 = __importDefault(require("https-proxy-agent"));
|
|
34
33
|
const request_helper_1 = require("./request-helper");
|
|
35
34
|
const logger_1 = require("./util/logger");
|
|
@@ -53,7 +52,7 @@ async function startFetchRequest(request, options, input, output, emitter, count
|
|
|
53
52
|
const { httpProxy, followRedirect } = options;
|
|
54
53
|
const agent = httpProxy ? (0, https_proxy_agent_1.default)(httpProxy) : undefined;
|
|
55
54
|
const { url, body, ...rrequest } = request;
|
|
56
|
-
const controller = new
|
|
55
|
+
const controller = new AbortController();
|
|
57
56
|
let retryCount = 0;
|
|
58
57
|
const retryOpts = {
|
|
59
58
|
statusCodes: options.retry?.statusCodes ?? [420, 429, 500, 502, 503, 504],
|
|
@@ -120,7 +119,6 @@ async function startFetchRequest(request, options, input, output, emitter, count
|
|
|
120
119
|
? { body: input }
|
|
121
120
|
: {}),
|
|
122
121
|
redirect: 'manual',
|
|
123
|
-
// @ts-expect-error - differing types of signal? this started abruptly
|
|
124
122
|
signal: controller.signal,
|
|
125
123
|
agent,
|
|
126
124
|
};
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"database.com"
|
|
11
11
|
],
|
|
12
12
|
"homepage": "http://github.com/jsforce/jsforce",
|
|
13
|
-
"version": "3.
|
|
13
|
+
"version": "3.5.0",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git://github.com/jsforce/jsforce.git"
|
|
@@ -196,7 +196,6 @@
|
|
|
196
196
|
},
|
|
197
197
|
"dependencies": {
|
|
198
198
|
"@sindresorhus/is": "^4",
|
|
199
|
-
"abort-controller": "^3.0.0",
|
|
200
199
|
"base64url": "^3.0.1",
|
|
201
200
|
"csv-parse": "^5.5.2",
|
|
202
201
|
"csv-stringify": "^6.4.4",
|
|
@@ -209,16 +208,16 @@
|
|
|
209
208
|
"xml2js": "^0.6.2"
|
|
210
209
|
},
|
|
211
210
|
"devDependencies": {
|
|
212
|
-
"@babel/cli": "^7.
|
|
211
|
+
"@babel/cli": "^7.24.8",
|
|
213
212
|
"@babel/core": "^7.23.0",
|
|
214
213
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
215
214
|
"@babel/preset-env": "^7.22.20",
|
|
216
215
|
"@babel/preset-typescript": "^7.23.0",
|
|
217
216
|
"@babel/register": "^7.22.15",
|
|
218
217
|
"@types/inquirer": "^6.5.0",
|
|
219
|
-
"@types/node": "^18.15.3",
|
|
220
218
|
"@types/jest": "^29.5.5",
|
|
221
219
|
"@types/multistream": "^2.1.1",
|
|
220
|
+
"@types/node": "^18.15.3",
|
|
222
221
|
"@types/node-fetch": "^2.5.7",
|
|
223
222
|
"@types/shelljs": "^0.8.15",
|
|
224
223
|
"@types/through2": "^2.0.34",
|
|
@@ -265,7 +264,7 @@
|
|
|
265
264
|
"util": "^0.12.5",
|
|
266
265
|
"webpack": "^5.82.0",
|
|
267
266
|
"webpack-cli": "^5.0.2",
|
|
268
|
-
"wireit": "^0.14.
|
|
267
|
+
"wireit": "^0.14.7",
|
|
269
268
|
"zx": "^7.2.3"
|
|
270
269
|
},
|
|
271
270
|
"overrides": {
|