@jsforce/jsforce-node 0.0.1 → 3.0.0-next.2
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/LICENSE +22 -0
- package/README.md +54 -0
- package/index.d.ts +4 -0
- package/index.js +1 -0
- package/lib/VERSION.d.ts +2 -0
- package/lib/VERSION.js +3 -0
- package/lib/api/analytics/types.d.ts +509 -0
- package/lib/api/analytics/types.js +2 -0
- package/lib/api/analytics.d.ts +163 -0
- package/lib/api/analytics.js +342 -0
- package/lib/api/apex.d.ts +44 -0
- package/lib/api/apex.js +86 -0
- package/lib/api/bulk.d.ts +253 -0
- package/lib/api/bulk.js +678 -0
- package/lib/api/bulk2.d.ts +324 -0
- package/lib/api/bulk2.js +800 -0
- package/lib/api/chatter.d.ts +133 -0
- package/lib/api/chatter.js +248 -0
- package/lib/api/metadata/schema.d.ts +16117 -0
- package/lib/api/metadata/schema.js +9094 -0
- package/lib/api/metadata.d.ts +189 -0
- package/lib/api/metadata.js +406 -0
- package/lib/api/soap/schema.d.ts +3167 -0
- package/lib/api/soap/schema.js +1787 -0
- package/lib/api/soap.d.ts +76 -0
- package/lib/api/soap.js +155 -0
- package/lib/api/streaming/extension.d.ts +94 -0
- package/lib/api/streaming/extension.js +151 -0
- package/lib/api/streaming.d.ts +160 -0
- package/lib/api/streaming.js +252 -0
- package/lib/api/tooling.d.ts +284 -0
- package/lib/api/tooling.js +202 -0
- package/lib/api/wsdl/wsdl2schema.d.ts +1 -0
- package/lib/api/wsdl/wsdl2schema.js +354 -0
- package/lib/browser/canvas.d.ts +12 -0
- package/lib/browser/canvas.js +77 -0
- package/lib/browser/client.d.ts +82 -0
- package/lib/browser/client.js +244 -0
- package/lib/browser/jsonp.d.ts +12 -0
- package/lib/browser/jsonp.js +69 -0
- package/lib/browser/registry.d.ts +3 -0
- package/lib/browser/registry.js +5 -0
- package/lib/browser/request.d.ts +10 -0
- package/lib/browser/request.js +202 -0
- package/lib/cache.d.ts +74 -0
- package/lib/cache.js +159 -0
- package/lib/connection.d.ts +356 -0
- package/lib/connection.js +1153 -0
- package/lib/core.d.ts +17 -0
- package/lib/core.js +55 -0
- package/lib/csv.d.ts +23 -0
- package/lib/csv.js +35 -0
- package/lib/date.d.ts +82 -0
- package/lib/date.js +201 -0
- package/lib/http-api.d.ts +75 -0
- package/lib/http-api.js +295 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +32 -0
- package/lib/jsforce.d.ts +26 -0
- package/lib/jsforce.js +67 -0
- package/lib/jwtOAuth2.d.ts +8 -0
- package/lib/jwtOAuth2.js +23 -0
- package/lib/oauth2.d.ts +92 -0
- package/lib/oauth2.js +245 -0
- package/lib/process.d.ts +157 -0
- package/lib/process.js +143 -0
- package/lib/query.d.ts +341 -0
- package/lib/query.js +817 -0
- package/lib/quick-action.d.ts +44 -0
- package/lib/quick-action.js +46 -0
- package/lib/record-reference.d.ts +46 -0
- package/lib/record-reference.js +65 -0
- package/lib/record-stream.d.ts +83 -0
- package/lib/record-stream.js +233 -0
- package/lib/registry/base.d.ts +43 -0
- package/lib/registry/base.js +96 -0
- package/lib/registry/empty.d.ts +7 -0
- package/lib/registry/empty.js +13 -0
- package/lib/registry/file.d.ts +11 -0
- package/lib/registry/file.js +51 -0
- package/lib/registry/index.d.ts +8 -0
- package/lib/registry/index.js +21 -0
- package/lib/registry/sfdx.d.ts +56 -0
- package/lib/registry/sfdx.js +133 -0
- package/lib/registry/types.d.ts +47 -0
- package/lib/registry/types.js +2 -0
- package/lib/request-helper.d.ts +23 -0
- package/lib/request-helper.js +102 -0
- package/lib/request.d.ts +11 -0
- package/lib/request.js +75 -0
- package/lib/session-refresh-delegate.d.ts +31 -0
- package/lib/session-refresh-delegate.js +69 -0
- package/lib/soap.d.ts +60 -0
- package/lib/soap.js +257 -0
- package/lib/sobject.d.ts +258 -0
- package/lib/sobject.js +376 -0
- package/lib/soql-builder.d.ts +25 -0
- package/lib/soql-builder.js +226 -0
- package/lib/transport.d.ts +63 -0
- package/lib/transport.js +175 -0
- package/lib/types/common.d.ts +560 -0
- package/lib/types/common.js +2 -0
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.js +23 -0
- package/lib/types/projection.d.ts +26 -0
- package/lib/types/projection.js +2 -0
- package/lib/types/record.d.ts +44 -0
- package/lib/types/record.js +2 -0
- package/lib/types/schema.d.ts +50 -0
- package/lib/types/schema.js +2 -0
- package/lib/types/soap.d.ts +43 -0
- package/lib/types/soap.js +2 -0
- package/lib/types/standard-schema.d.ts +16199 -0
- package/lib/types/standard-schema.js +2 -0
- package/lib/types/util.d.ts +7 -0
- package/lib/types/util.js +2 -0
- package/lib/util/formatter.d.ts +8 -0
- package/lib/util/formatter.js +24 -0
- package/lib/util/function.d.ts +32 -0
- package/lib/util/function.js +52 -0
- package/lib/util/get-body-size.d.ts +4 -0
- package/lib/util/get-body-size.js +39 -0
- package/lib/util/logger.d.ts +29 -0
- package/lib/util/logger.js +102 -0
- package/lib/util/promise.d.ts +19 -0
- package/lib/util/promise.js +25 -0
- package/lib/util/stream.d.ts +12 -0
- package/lib/util/stream.js +88 -0
- package/package.json +262 -6
- package/typings/faye/index.d.ts +16 -0
- package/typings/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,11 +1,267 @@
|
|
|
1
1
|
{
|
|
2
|
+
"author": "Shinichi Tomita <shinichi.tomita@gmail.com>",
|
|
2
3
|
"name": "@jsforce/jsforce-node",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
4
|
+
"description": "Salesforce API Library for JavaScript",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"salesforce",
|
|
7
|
+
"salesforce.com",
|
|
8
|
+
"sfdc",
|
|
9
|
+
"force.com",
|
|
10
|
+
"database.com"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "http://github.com/jsforce/jsforce",
|
|
13
|
+
"version": "3.0.0-next.2",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/jsforce/jsforce.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"licenses": [
|
|
20
|
+
{
|
|
21
|
+
"type": "MIT",
|
|
22
|
+
"url": "http://github.com/jsforce/jsforce/raw/master/LICENSE"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"main": "./index",
|
|
26
|
+
"module": "./module/index",
|
|
27
|
+
"types": "./index",
|
|
28
|
+
"wireit": {
|
|
29
|
+
"build": {
|
|
30
|
+
"dependencies": [
|
|
31
|
+
"build:transpile",
|
|
32
|
+
"build:bundle"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"build:transpile": {
|
|
36
|
+
"dependencies": [
|
|
37
|
+
"build:node:cjs",
|
|
38
|
+
"build:browser"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"build:node:cjs": {
|
|
42
|
+
"command": "tsc -p . --pretty --incremental",
|
|
43
|
+
"files": [
|
|
44
|
+
"src/**/*.ts",
|
|
45
|
+
"**/tsconfig.json"
|
|
46
|
+
],
|
|
47
|
+
"output": [
|
|
48
|
+
"lib/**",
|
|
49
|
+
"*.tsbuildinfo"
|
|
50
|
+
],
|
|
51
|
+
"clean": "if-file-deleted"
|
|
52
|
+
},
|
|
53
|
+
"build:browser": {
|
|
54
|
+
"command": "babel src --extensions .ts --source-maps inline --env-name browser --out-dir browser",
|
|
55
|
+
"files": [
|
|
56
|
+
"src/**/*.ts",
|
|
57
|
+
"babel.config.js"
|
|
58
|
+
],
|
|
59
|
+
"output": [
|
|
60
|
+
"browser/**"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"build:bundle": {
|
|
64
|
+
"command": "webpack",
|
|
65
|
+
"dependencies": [
|
|
66
|
+
"build:browser"
|
|
67
|
+
],
|
|
68
|
+
"files": [
|
|
69
|
+
"browser/**/*.js",
|
|
70
|
+
"webpack.config.js"
|
|
71
|
+
],
|
|
72
|
+
"output": [
|
|
73
|
+
"dist"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"lint": {
|
|
77
|
+
"command": "eslint --ext .ts src test --color --cache --cache-location .eslintcache",
|
|
78
|
+
"files": [
|
|
79
|
+
"src/**/*.ts",
|
|
80
|
+
"test/**/*.ts",
|
|
81
|
+
"**/.eslint*"
|
|
82
|
+
],
|
|
83
|
+
"output": []
|
|
84
|
+
},
|
|
85
|
+
"test": {
|
|
86
|
+
"dependencies": [
|
|
87
|
+
"test:node",
|
|
88
|
+
"test:browser",
|
|
89
|
+
"lint"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"test:node": {
|
|
93
|
+
"command": "jest --forceExit",
|
|
94
|
+
"dependencies": [
|
|
95
|
+
"build:node:cjs"
|
|
96
|
+
],
|
|
97
|
+
"files": [
|
|
98
|
+
"test/**/*.ts",
|
|
99
|
+
"jest.setup.js",
|
|
100
|
+
"jest.config.js"
|
|
101
|
+
],
|
|
102
|
+
"output": []
|
|
103
|
+
},
|
|
104
|
+
"test:browser": {
|
|
105
|
+
"command": "karma start",
|
|
106
|
+
"dependencies": [
|
|
107
|
+
"clean-test-failures-file",
|
|
108
|
+
"build:bundle"
|
|
109
|
+
],
|
|
110
|
+
"files": [
|
|
111
|
+
"test/**/*.ts",
|
|
112
|
+
"karma.conf.js",
|
|
113
|
+
"webpack.config.test.js"
|
|
114
|
+
],
|
|
115
|
+
"output": []
|
|
116
|
+
},
|
|
117
|
+
"test:browser-ci": {
|
|
118
|
+
"command": "karma start",
|
|
119
|
+
"dependencies": [
|
|
120
|
+
"clean-test-failures-file",
|
|
121
|
+
"build:bundle",
|
|
122
|
+
"proxy-server"
|
|
123
|
+
],
|
|
124
|
+
"files": [
|
|
125
|
+
"test/**/*.ts",
|
|
126
|
+
"karma.conf.js",
|
|
127
|
+
"webpack.config.test.js"
|
|
128
|
+
],
|
|
129
|
+
"output": []
|
|
130
|
+
},
|
|
131
|
+
"test:browser-ci:retry": {
|
|
132
|
+
"command": "karma start --retry-failed",
|
|
133
|
+
"dependencies": [
|
|
134
|
+
"build:bundle",
|
|
135
|
+
"proxy-server"
|
|
136
|
+
],
|
|
137
|
+
"files": [
|
|
138
|
+
"test/**/*.ts",
|
|
139
|
+
"karma.conf.js",
|
|
140
|
+
"webpack.config.test.js"
|
|
141
|
+
],
|
|
142
|
+
"output": []
|
|
143
|
+
},
|
|
144
|
+
"proxy-server": {
|
|
145
|
+
"command": "node node_modules/jsforce-ajax-proxy/lib/server.js",
|
|
146
|
+
"service": {
|
|
147
|
+
"readyWhen": {
|
|
148
|
+
"lineMatches": "Express server listening on port \\d+"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"typecheck": {
|
|
153
|
+
"command": "npm run build:node:cjs && npx tsc -p test --pretty",
|
|
154
|
+
"files": [
|
|
155
|
+
"src/**/*.ts",
|
|
156
|
+
"test/**/*.ts",
|
|
157
|
+
"**/tsconfig.json"
|
|
158
|
+
],
|
|
159
|
+
"output": []
|
|
160
|
+
}
|
|
161
|
+
},
|
|
6
162
|
"scripts": {
|
|
7
|
-
"
|
|
163
|
+
"build": "wireit",
|
|
164
|
+
"build:node:cjs": "wireit",
|
|
165
|
+
"build:transpile": "wireit",
|
|
166
|
+
"build:browser": "wireit",
|
|
167
|
+
"build:bundle": "wireit",
|
|
168
|
+
"lint": "wireit",
|
|
169
|
+
"test": "wireit",
|
|
170
|
+
"test:node": "wireit",
|
|
171
|
+
"test:browser": "wireit",
|
|
172
|
+
"test:browser-ci": "wireit",
|
|
173
|
+
"test:browser-ci:retry": "wireit",
|
|
174
|
+
"typecheck": "wireit",
|
|
175
|
+
"proxy-server": "wireit",
|
|
176
|
+
"clean": "rimraf --glob lib/* module/* browser/*",
|
|
177
|
+
"clean-test-failures-file": "rimraf test/karma/karma-failed-tests.txt",
|
|
178
|
+
"jsforce-node": "ts-node scripts/jsforce-node.ts",
|
|
179
|
+
"jsforce-node:dev": "ts-node scripts/jsforce-node.ts --dev"
|
|
180
|
+
},
|
|
181
|
+
"files": [
|
|
182
|
+
"README.md",
|
|
183
|
+
"LICENSE",
|
|
184
|
+
"package.json",
|
|
185
|
+
"lib",
|
|
186
|
+
"typings",
|
|
187
|
+
"index.js",
|
|
188
|
+
"index.d.ts"
|
|
189
|
+
],
|
|
190
|
+
"engines": {
|
|
191
|
+
"node": ">=18"
|
|
192
|
+
},
|
|
193
|
+
"dependencies": {
|
|
194
|
+
"@sindresorhus/is": "^4",
|
|
195
|
+
"@types/node": "^18.15.3",
|
|
196
|
+
"abort-controller": "^3.0.0",
|
|
197
|
+
"base64url": "^3.0.1",
|
|
198
|
+
"csv-parse": "^5.5.2",
|
|
199
|
+
"csv-stringify": "^6.4.4",
|
|
200
|
+
"faye": "^1.4.0",
|
|
201
|
+
"form-data": "^4.0.0",
|
|
202
|
+
"fs-extra": "^8.1.0",
|
|
203
|
+
"https-proxy-agent": "^5.0.0",
|
|
204
|
+
"multistream": "^3.1.0",
|
|
205
|
+
"node-fetch": "^2.6.1",
|
|
206
|
+
"strip-ansi": "^6.0.0",
|
|
207
|
+
"xml2js": "^0.6.2"
|
|
8
208
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
209
|
+
"devDependencies": {
|
|
210
|
+
"@babel/cli": "^7.23.0",
|
|
211
|
+
"@babel/core": "^7.23.0",
|
|
212
|
+
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
213
|
+
"@babel/preset-env": "^7.22.20",
|
|
214
|
+
"@babel/preset-typescript": "^7.23.0",
|
|
215
|
+
"@babel/register": "^7.22.15",
|
|
216
|
+
"@types/fs-extra": "^8.0.1",
|
|
217
|
+
"@types/inquirer": "^6.5.0",
|
|
218
|
+
"@types/jest": "^29.5.5",
|
|
219
|
+
"@types/multistream": "^2.1.1",
|
|
220
|
+
"@types/node-fetch": "^2.5.7",
|
|
221
|
+
"@types/shelljs": "^0.8.15",
|
|
222
|
+
"@types/through2": "^2.0.34",
|
|
223
|
+
"@types/xml2js": "^0.4.5",
|
|
224
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
225
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
226
|
+
"archiver": "^5.1.0",
|
|
227
|
+
"assert": "^2.0.0",
|
|
228
|
+
"babel-loader": "^9.1.3",
|
|
229
|
+
"babel-preset-power-assert": "^3.0.0",
|
|
230
|
+
"buffer": "^6.0.3",
|
|
231
|
+
"conditional-type-checks": "^1.0.5",
|
|
232
|
+
"crypto-browserify": "^3.12.0",
|
|
233
|
+
"eslint": "^8.51.0",
|
|
234
|
+
"eslint-config-prettier": "^6.15.0",
|
|
235
|
+
"eslint-plugin-prettier": "^3.1.4",
|
|
236
|
+
"jest": "^29.5.0",
|
|
237
|
+
"jsforce-ajax-proxy": "^2.0.0",
|
|
238
|
+
"karma": "^6.4.2",
|
|
239
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
240
|
+
"karma-jasmine": "^5.1.0",
|
|
241
|
+
"karma-jasmine-html-reporter": "^2.0.0",
|
|
242
|
+
"karma-sourcemap-loader": "^0.4.0",
|
|
243
|
+
"karma-webpack": "^5.0.0",
|
|
244
|
+
"nock": "^13.4.0",
|
|
245
|
+
"path-browserify": "^1.0.1",
|
|
246
|
+
"power-assert": "^1.6.1",
|
|
247
|
+
"prettier": "^2.2.1",
|
|
248
|
+
"process": "^0.11.10",
|
|
249
|
+
"puppeteer": "^21.0.1",
|
|
250
|
+
"querystring-es3": "^0.2.1",
|
|
251
|
+
"rimraf": "^5.0.5",
|
|
252
|
+
"shelljs": "^0.8.5",
|
|
253
|
+
"source-map-loader": "^1.1.3",
|
|
254
|
+
"stream-browserify": "^3.0.0",
|
|
255
|
+
"terser-webpack-plugin": "^5.3.7",
|
|
256
|
+
"through2": "^3.0.1",
|
|
257
|
+
"timers-browserify": "^2.0.12",
|
|
258
|
+
"ts-node": "^10.9.1",
|
|
259
|
+
"typedoc": "^0.25.1",
|
|
260
|
+
"typescript": "^4.9.5",
|
|
261
|
+
"util": "^0.12.5",
|
|
262
|
+
"webpack": "^5.82.0",
|
|
263
|
+
"webpack-cli": "^5.0.2",
|
|
264
|
+
"wireit": "^0.14.0",
|
|
265
|
+
"zx": "^7.2.3"
|
|
266
|
+
}
|
|
11
267
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare module 'faye' {
|
|
2
|
+
export class Subscription extends Promise<void> {
|
|
3
|
+
cancel(): void;
|
|
4
|
+
unsubscribe(): void;
|
|
5
|
+
withChannel(callback: (channel: string, message: any) => void): void;
|
|
6
|
+
}
|
|
7
|
+
export class Client {
|
|
8
|
+
constructor(url: string, options?: {});
|
|
9
|
+
setHeader(name: string, value: string): void;
|
|
10
|
+
addExtension(ext: any): void;
|
|
11
|
+
subscribe(channelName: string, listener?: Function): Subscription;
|
|
12
|
+
unsubscribe(channelName: string, subscr: Subscription): void;
|
|
13
|
+
}
|
|
14
|
+
const Faye: { Client: typeof Client };
|
|
15
|
+
export default Faye;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './faye';
|