@salesforce/plugin-data 4.0.1 → 4.0.5
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/README.md +25 -25
- package/lib/batcher.js +12 -14
- package/lib/batcher.js.map +1 -1
- package/messages/batcher.md +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -145,7 +145,7 @@ EXAMPLES
|
|
|
145
145
|
$ sf data bulk results --job-id 7507i000fake341G --target-org my-scratch
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
148
|
+
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/bulk/results.ts)_
|
|
149
149
|
|
|
150
150
|
## `sf data create file`
|
|
151
151
|
|
|
@@ -194,7 +194,7 @@ EXAMPLES
|
|
|
194
194
|
$ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
|
|
195
195
|
```
|
|
196
196
|
|
|
197
|
-
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
197
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/create/file.ts)_
|
|
198
198
|
|
|
199
199
|
## `sf data create record`
|
|
200
200
|
|
|
@@ -250,7 +250,7 @@ EXAMPLES
|
|
|
250
250
|
TracedEntityId=01p17000000R6bLAAS"
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
253
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/create/record.ts)_
|
|
254
254
|
|
|
255
255
|
## `sf data delete bulk`
|
|
256
256
|
|
|
@@ -311,7 +311,7 @@ FLAG DESCRIPTIONS
|
|
|
311
311
|
and can be enabled only by a system administrator.
|
|
312
312
|
```
|
|
313
313
|
|
|
314
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
314
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/delete/bulk.ts)_
|
|
315
315
|
|
|
316
316
|
## `sf data delete record`
|
|
317
317
|
|
|
@@ -372,7 +372,7 @@ EXAMPLES
|
|
|
372
372
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
373
373
|
```
|
|
374
374
|
|
|
375
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
375
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/delete/record.ts)_
|
|
376
376
|
|
|
377
377
|
## `sf data delete resume`
|
|
378
378
|
|
|
@@ -411,7 +411,7 @@ EXAMPLES
|
|
|
411
411
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
414
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/delete/resume.ts)_
|
|
415
415
|
|
|
416
416
|
## `sf data export bulk`
|
|
417
417
|
|
|
@@ -485,7 +485,7 @@ EXAMPLES
|
|
|
485
485
|
--result-format json --async
|
|
486
486
|
```
|
|
487
487
|
|
|
488
|
-
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
488
|
+
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/export/bulk.ts)_
|
|
489
489
|
|
|
490
490
|
## `sf data export resume`
|
|
491
491
|
|
|
@@ -521,7 +521,7 @@ EXAMPLES
|
|
|
521
521
|
$ sf data export resume --use-most-recent --target-org my-scratch
|
|
522
522
|
```
|
|
523
523
|
|
|
524
|
-
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
524
|
+
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/export/resume.ts)_
|
|
525
525
|
|
|
526
526
|
## `sf data export tree`
|
|
527
527
|
|
|
@@ -581,7 +581,7 @@ EXAMPLES
|
|
|
581
581
|
my-scratch
|
|
582
582
|
```
|
|
583
583
|
|
|
584
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
584
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/export/tree.ts)_
|
|
585
585
|
|
|
586
586
|
## `sf data get record`
|
|
587
587
|
|
|
@@ -645,7 +645,7 @@ EXAMPLES
|
|
|
645
645
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
646
646
|
```
|
|
647
647
|
|
|
648
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
648
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/get/record.ts)_
|
|
649
649
|
|
|
650
650
|
## `sf data import bulk`
|
|
651
651
|
|
|
@@ -703,7 +703,7 @@ EXAMPLES
|
|
|
703
703
|
$ sf data import bulk --file accounts.csv --sobject Account --async
|
|
704
704
|
```
|
|
705
705
|
|
|
706
|
-
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
706
|
+
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/import/bulk.ts)_
|
|
707
707
|
|
|
708
708
|
## `sf data import resume`
|
|
709
709
|
|
|
@@ -739,7 +739,7 @@ EXAMPLES
|
|
|
739
739
|
$ sf data import resume --use-most-recent --target-org my-scratch
|
|
740
740
|
```
|
|
741
741
|
|
|
742
|
-
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
742
|
+
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/import/resume.ts)_
|
|
743
743
|
|
|
744
744
|
## `sf data import tree`
|
|
745
745
|
|
|
@@ -803,7 +803,7 @@ FLAG DESCRIPTIONS
|
|
|
803
803
|
- files(array) - Files: An array of files paths to load
|
|
804
804
|
```
|
|
805
805
|
|
|
806
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
806
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/import/tree.ts)_
|
|
807
807
|
|
|
808
808
|
## `sf data query`
|
|
809
809
|
|
|
@@ -869,7 +869,7 @@ EXAMPLES
|
|
|
869
869
|
$ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
|
|
870
870
|
```
|
|
871
871
|
|
|
872
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
872
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/query.ts)_
|
|
873
873
|
|
|
874
874
|
## `sf data query resume`
|
|
875
875
|
|
|
@@ -906,7 +906,7 @@ EXAMPLES
|
|
|
906
906
|
$ sf data query resume --bulk-query-id 7500x000005BdFzXXX
|
|
907
907
|
```
|
|
908
908
|
|
|
909
|
-
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
909
|
+
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/query/resume.ts)_
|
|
910
910
|
|
|
911
911
|
## `sf data resume`
|
|
912
912
|
|
|
@@ -943,7 +943,7 @@ EXAMPLES
|
|
|
943
943
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
944
944
|
```
|
|
945
945
|
|
|
946
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
946
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/resume.ts)_
|
|
947
947
|
|
|
948
948
|
## `sf data search`
|
|
949
949
|
|
|
@@ -993,7 +993,7 @@ EXAMPLES
|
|
|
993
993
|
$ sf data search --file query.txt --target-org my-scratch --result-format csv
|
|
994
994
|
```
|
|
995
995
|
|
|
996
|
-
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
996
|
+
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/search.ts)_
|
|
997
997
|
|
|
998
998
|
## `sf data update bulk`
|
|
999
999
|
|
|
@@ -1054,7 +1054,7 @@ EXAMPLES
|
|
|
1054
1054
|
$ sf data update bulk --file accounts.csv --sobject Account --async
|
|
1055
1055
|
```
|
|
1056
1056
|
|
|
1057
|
-
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1057
|
+
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/update/bulk.ts)_
|
|
1058
1058
|
|
|
1059
1059
|
## `sf data update record`
|
|
1060
1060
|
|
|
@@ -1116,7 +1116,7 @@ EXAMPLES
|
|
|
1116
1116
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
1117
1117
|
```
|
|
1118
1118
|
|
|
1119
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1119
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/update/record.ts)_
|
|
1120
1120
|
|
|
1121
1121
|
## `sf data update resume`
|
|
1122
1122
|
|
|
@@ -1152,7 +1152,7 @@ EXAMPLES
|
|
|
1152
1152
|
$ sf data update resume --use-most-recent --target-org my-scratch
|
|
1153
1153
|
```
|
|
1154
1154
|
|
|
1155
|
-
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1155
|
+
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/update/resume.ts)_
|
|
1156
1156
|
|
|
1157
1157
|
## `sf data upsert bulk`
|
|
1158
1158
|
|
|
@@ -1211,7 +1211,7 @@ EXAMPLES
|
|
|
1211
1211
|
my-scratch
|
|
1212
1212
|
```
|
|
1213
1213
|
|
|
1214
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1214
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/upsert/bulk.ts)_
|
|
1215
1215
|
|
|
1216
1216
|
## `sf data upsert resume`
|
|
1217
1217
|
|
|
@@ -1250,7 +1250,7 @@ EXAMPLES
|
|
|
1250
1250
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
1251
1251
|
```
|
|
1252
1252
|
|
|
1253
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1253
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/data/upsert/resume.ts)_
|
|
1254
1254
|
|
|
1255
1255
|
## `sf force data bulk delete`
|
|
1256
1256
|
|
|
@@ -1297,7 +1297,7 @@ EXAMPLES
|
|
|
1297
1297
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
1298
1298
|
```
|
|
1299
1299
|
|
|
1300
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1300
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/force/data/bulk/delete.ts)_
|
|
1301
1301
|
|
|
1302
1302
|
## `sf force data bulk status`
|
|
1303
1303
|
|
|
@@ -1334,7 +1334,7 @@ EXAMPLES
|
|
|
1334
1334
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
1335
1335
|
```
|
|
1336
1336
|
|
|
1337
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1337
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/force/data/bulk/status.ts)_
|
|
1338
1338
|
|
|
1339
1339
|
## `sf force data bulk upsert`
|
|
1340
1340
|
|
|
@@ -1392,6 +1392,6 @@ EXAMPLES
|
|
|
1392
1392
|
--target-org my-scratch
|
|
1393
1393
|
```
|
|
1394
1394
|
|
|
1395
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/
|
|
1395
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.5/src/commands/force/data/bulk/upsert.ts)_
|
|
1396
1396
|
|
|
1397
1397
|
<!-- commandsstop -->
|
package/lib/batcher.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Licensed under the BSD 3-Clause license.
|
|
5
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
+
import { EOL } from 'node:os';
|
|
7
8
|
import { Messages, SfError } from '@salesforce/core';
|
|
8
9
|
import { stringify } from 'csv-stringify/sync';
|
|
9
10
|
import { parse } from 'csv-parse';
|
|
@@ -27,13 +28,10 @@ export class Batcher {
|
|
|
27
28
|
* @param jobId {string}
|
|
28
29
|
* @param doneCallback
|
|
29
30
|
*/
|
|
30
|
-
async fetchAndDisplayJobStatus(jobId
|
|
31
|
+
async fetchAndDisplayJobStatus(jobId) {
|
|
31
32
|
const job = this.conn.bulk.job(jobId);
|
|
32
33
|
const jobInfo = await job.check();
|
|
33
34
|
this.bulkStatus(jobInfo, undefined, undefined, true);
|
|
34
|
-
if (doneCallback) {
|
|
35
|
-
doneCallback({ job: jobInfo });
|
|
36
|
-
}
|
|
37
35
|
return jobInfo;
|
|
38
36
|
}
|
|
39
37
|
/**
|
|
@@ -69,14 +67,16 @@ export class Batcher {
|
|
|
69
67
|
* @param wait {number}
|
|
70
68
|
*/
|
|
71
69
|
async createAndExecuteBatches(job, records, sobjectType, wait) {
|
|
72
|
-
const batchesCompleted = 0;
|
|
73
70
|
let batchesQueued = 0;
|
|
74
71
|
const overallInfo = false;
|
|
75
72
|
const batches = await splitIntoBatches(records);
|
|
76
73
|
// The error handling for this gets quite tricky when there are multiple batches
|
|
77
74
|
// Currently, we bail out early by calling an Error.exit
|
|
78
75
|
// But, we might want to actually continue to the next batch.
|
|
79
|
-
|
|
76
|
+
//
|
|
77
|
+
// async: batches are created and return array of batch info.
|
|
78
|
+
// sync: batches are created, it waits until they all finish and Promise.all resolves `undefined`.
|
|
79
|
+
const batchInfos = (await Promise.all(batches.map(async (batch, i) => {
|
|
80
80
|
const newBatch = job.createBatch();
|
|
81
81
|
return new Promise((resolve, reject) => {
|
|
82
82
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
@@ -123,11 +123,12 @@ export class Batcher {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
resolve(this.waitForCompletion(newBatch,
|
|
126
|
+
resolve(this.waitForCompletion(newBatch, overallInfo, i + 1, wait));
|
|
127
127
|
}
|
|
128
128
|
void newBatch.execute(batch);
|
|
129
129
|
});
|
|
130
130
|
})));
|
|
131
|
+
return wait ? [await this.fetchAndDisplayJobStatus(job.id)] : batchInfos;
|
|
131
132
|
}
|
|
132
133
|
/**
|
|
133
134
|
* The timeout error handling is messy so to increase readability
|
|
@@ -158,7 +159,7 @@ export class Batcher {
|
|
|
158
159
|
* @param totalNumBatches
|
|
159
160
|
* @param waitMins
|
|
160
161
|
*/
|
|
161
|
-
async waitForCompletion(newBatch,
|
|
162
|
+
async waitForCompletion(newBatch, overallInfo, batchNum, waitMins) {
|
|
162
163
|
return new Promise((resolve, reject) => {
|
|
163
164
|
void newBatch.on('queue',
|
|
164
165
|
// we're using an async method on an event listener which doesn't fit the .on method parameter types
|
|
@@ -169,10 +170,10 @@ export class Batcher {
|
|
|
169
170
|
reject(result.stateMessage);
|
|
170
171
|
}
|
|
171
172
|
else if (!overallInfo) {
|
|
172
|
-
this.ux.log(messages.getMessage('PollingInfo', [POLL_FREQUENCY_MS / 1000, batchInfo.jobId]));
|
|
173
|
+
this.ux.log(messages.getMessage('PollingInfo', [POLL_FREQUENCY_MS / 1000, batchInfo.jobId, batchInfo.id]));
|
|
173
174
|
overallInfo = true;
|
|
174
175
|
}
|
|
175
|
-
this.ux.log(messages.getMessage('BatchQueued', [batchNum, batchInfo.id]));
|
|
176
|
+
this.ux.log(messages.getMessage('BatchQueued', [batchNum, batchInfo.id]), EOL);
|
|
176
177
|
newBatch.poll(POLL_FREQUENCY_MS, waitMins * 60_000);
|
|
177
178
|
});
|
|
178
179
|
// we're using an async method on an event listener which doesn't fit the .on method parameter types
|
|
@@ -180,10 +181,7 @@ export class Batcher {
|
|
|
180
181
|
void newBatch.on('response', async (results) => {
|
|
181
182
|
const summary = await newBatch.check();
|
|
182
183
|
this.bulkStatus(summary, results, batchNum);
|
|
183
|
-
|
|
184
|
-
if (batchesCompleted === totalNumBatches) {
|
|
185
|
-
resolve(await this.fetchAndDisplayJobStatus(summary.jobId));
|
|
186
|
-
}
|
|
184
|
+
resolve();
|
|
187
185
|
});
|
|
188
186
|
});
|
|
189
187
|
}
|
package/lib/batcher.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batcher.js","sourceRoot":"","sources":["../src/batcher.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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,CAAC,MAAM,KAAK,mBAAmB,IAAI,QAAQ,GAAG,UAAU,GAAG,iBAAiB,EAAE,CAAC;gBACpG,gDAAgD;gBAChD,mEAAmE;gBACnE,aAAa;gBACb,UAAU,EAAE,CAAC;gBACb,OAAO,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;gBACzB,sCAAsC;gBACtC,UAAU,GAAG,gBAAgB,CAAC;YAChC,CAAC;YACD,UAAU,IAAI,QAAQ,CAAC;YACvB,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;YACzB,UAAU,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;YACpB,UAAU,CAAC,OAAO,EAAE,CAAC;YACrB,OAAO,CAAC,OAAO,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/messages/batcher.md
CHANGED
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -114,17 +114,18 @@
|
|
|
114
114
|
"test:nuts:data:search": "nyc mocha \"./test/commands/data/search.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
115
115
|
"test:nuts:data:create": "nyc mocha \"./test/commands/data/create/*.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
116
116
|
"test:nuts:data:bulk-upsert-delete": "nyc mocha \"./test/commands/data/dataBulk.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
117
|
+
"test:nuts:force:data:bulk-upsert-delete-status": "nyc mocha \"./test/commands/force/data/bulk/dataBulk.nut.ts\" --slow 4500 --timeout 600000 --parallel --jobs 20",
|
|
117
118
|
"test:only": "wireit",
|
|
118
119
|
"version": "oclif readme"
|
|
119
120
|
},
|
|
120
121
|
"dependencies": {
|
|
121
|
-
"@jsforce/jsforce-node": "^3.6.
|
|
122
|
-
"@oclif/multi-stage-output": "^0.8.
|
|
122
|
+
"@jsforce/jsforce-node": "^3.6.4",
|
|
123
|
+
"@oclif/multi-stage-output": "^0.8.5",
|
|
123
124
|
"@salesforce/core": "^8.6.1",
|
|
124
125
|
"@salesforce/kit": "^3.2.2",
|
|
125
|
-
"@salesforce/sf-plugins-core": "^12.1.
|
|
126
|
+
"@salesforce/sf-plugins-core": "^12.1.2",
|
|
126
127
|
"@salesforce/ts-types": "^2.0.11",
|
|
127
|
-
"ansis": "^3.
|
|
128
|
+
"ansis": "^3.9.0",
|
|
128
129
|
"change-case": "^5.4.4",
|
|
129
130
|
"csv-parse": "^5.6.0",
|
|
130
131
|
"csv-stringify": "^6.5.2",
|
|
@@ -132,17 +133,17 @@
|
|
|
132
133
|
"terminal-link": "^3.0.0"
|
|
133
134
|
},
|
|
134
135
|
"devDependencies": {
|
|
135
|
-
"@oclif/core": "^4.2.
|
|
136
|
-
"@oclif/plugin-command-snapshot": "^5.2.
|
|
137
|
-
"@oclif/test": "^4.1.
|
|
136
|
+
"@oclif/core": "^4.2.3",
|
|
137
|
+
"@oclif/plugin-command-snapshot": "^5.2.26",
|
|
138
|
+
"@oclif/test": "^4.1.6",
|
|
138
139
|
"@salesforce/cli-plugins-testkit": "^5.3.39",
|
|
139
140
|
"@salesforce/dev-scripts": "^10.2.11",
|
|
140
141
|
"@salesforce/plugin-command-reference": "^3.1.38",
|
|
141
142
|
"@salesforce/types": "^1.3.0",
|
|
142
143
|
"eslint-plugin-sf-plugin": "^1.20.13",
|
|
143
|
-
"oclif": "^4.17.
|
|
144
|
+
"oclif": "^4.17.10",
|
|
144
145
|
"ts-node": "^10.9.2",
|
|
145
|
-
"typescript": "^5.7.
|
|
146
|
+
"typescript": "^5.7.3"
|
|
146
147
|
},
|
|
147
148
|
"resolutions": {
|
|
148
149
|
"@jsforce/jsforce-node/node-fetch/whatwg-url": "^14.0.0"
|
|
@@ -265,7 +266,7 @@
|
|
|
265
266
|
"exports": "./lib/index.js",
|
|
266
267
|
"type": "module",
|
|
267
268
|
"sfdx": {
|
|
268
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
269
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.
|
|
269
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.5.crt",
|
|
270
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.5.sig"
|
|
270
271
|
}
|
|
271
272
|
}
|