@salesforce/plugin-data 3.11.6 → 3.12.1
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 +66 -58
- package/lib/bulkDataRequestCache.js +43 -56
- package/lib/bulkDataRequestCache.js.map +1 -1
- package/lib/bulkIngest.js +176 -14
- package/lib/bulkIngest.js.map +1 -1
- package/lib/bulkUtils.js +1 -81
- package/lib/bulkUtils.js.map +1 -1
- package/lib/commands/data/delete/bulk.js +41 -10
- package/lib/commands/data/delete/bulk.js.map +1 -1
- package/lib/commands/data/delete/resume.js +25 -11
- package/lib/commands/data/delete/resume.js.map +1 -1
- package/lib/commands/data/export/resume.js +2 -4
- package/lib/commands/data/export/resume.js.map +1 -1
- package/lib/commands/data/import/bulk.js +6 -2
- package/lib/commands/data/import/bulk.js.map +1 -1
- package/lib/commands/data/import/resume.js +3 -0
- package/lib/commands/data/import/resume.js.map +1 -1
- package/lib/commands/data/query/resume.js +8 -16
- package/lib/commands/data/query/resume.js.map +1 -1
- package/lib/commands/data/update/bulk.js +8 -8
- package/lib/commands/data/update/bulk.js.map +1 -1
- package/lib/commands/data/update/resume.js +3 -0
- package/lib/commands/data/update/resume.js.map +1 -1
- package/lib/commands/data/upsert/bulk.js +42 -12
- package/lib/commands/data/upsert/bulk.js.map +1 -1
- package/lib/commands/data/upsert/resume.js +25 -11
- package/lib/commands/data/upsert/resume.js.map +1 -1
- package/lib/flags.js +5 -0
- package/lib/flags.js.map +1 -1
- package/messages/bulkIngest.md +54 -1
- package/messages/data.import.bulk.md +0 -4
- package/messages/data.update.bulk.md +0 -8
- package/messages/messages.md +2 -31
- package/oclif.manifest.json +126 -83
- package/package.json +5 -5
- package/lib/bulkOperationBase.js +0 -163
- package/lib/bulkOperationBase.js.map +0 -1
- package/lib/resumeBulkBaseCommand.js +0 -69
- package/lib/resumeBulkBaseCommand.js.map +0 -1
- package/messages/bulk.operation.command.md +0 -23
- package/messages/bulk.resume.command.md +0 -15
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/3.
|
|
148
|
+
_See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/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/3.
|
|
197
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/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/3.
|
|
253
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/create/record.ts)_
|
|
254
254
|
|
|
255
255
|
## `sf data delete bulk`
|
|
256
256
|
|
|
@@ -258,22 +258,25 @@ Bulk delete records from an org using a CSV file. Uses Bulk API 2.0.
|
|
|
258
258
|
|
|
259
259
|
```
|
|
260
260
|
USAGE
|
|
261
|
-
$ sf data delete bulk -o <value> -
|
|
262
|
-
|
|
261
|
+
$ sf data delete bulk -o <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>] [-w <value> | -a]
|
|
262
|
+
[--verbose] (--line-ending CRLF|LF -f <value>) [--hard-delete]
|
|
263
263
|
|
|
264
264
|
FLAGS
|
|
265
|
-
-a, --async
|
|
266
|
-
-f, --file=<value>
|
|
267
|
-
-o, --target-org=<value>
|
|
268
|
-
|
|
269
|
-
-s, --sobject=<value>
|
|
270
|
-
|
|
271
|
-
-w, --wait=<value>
|
|
272
|
-
|
|
273
|
-
--api-version=<value>
|
|
274
|
-
--hard-delete
|
|
275
|
-
|
|
276
|
-
--
|
|
265
|
+
-a, --async Run the command asynchronously.
|
|
266
|
+
-f, --file=<value> (required) CSV file that contains the IDs of the records to update or delete.
|
|
267
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
268
|
+
configuration variable is already set.
|
|
269
|
+
-s, --sobject=<value> (required) API name of the Salesforce object, either standard or custom, that you want to
|
|
270
|
+
update or delete records from.
|
|
271
|
+
-w, --wait=<value> [default: 0 minutes] Number of minutes to wait for the command to complete before
|
|
272
|
+
displaying the results.
|
|
273
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
274
|
+
--hard-delete Mark the records as immediately eligible for deletion by your org. If you don't specify
|
|
275
|
+
this flag, the deleted records go into the Recycle Bin.
|
|
276
|
+
--line-ending=<option> Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and Linux
|
|
277
|
+
it's `LF`.
|
|
278
|
+
<options: CRLF|LF>
|
|
279
|
+
--verbose Print verbose output of failed records if result is available.
|
|
277
280
|
|
|
278
281
|
GLOBAL FLAGS
|
|
279
282
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -308,7 +311,7 @@ FLAG DESCRIPTIONS
|
|
|
308
311
|
and can be enabled only by a system administrator.
|
|
309
312
|
```
|
|
310
313
|
|
|
311
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
314
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/delete/bulk.ts)_
|
|
312
315
|
|
|
313
316
|
## `sf data delete record`
|
|
314
317
|
|
|
@@ -369,7 +372,7 @@ EXAMPLES
|
|
|
369
372
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
370
373
|
```
|
|
371
374
|
|
|
372
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
375
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/delete/record.ts)_
|
|
373
376
|
|
|
374
377
|
## `sf data delete resume`
|
|
375
378
|
|
|
@@ -386,7 +389,7 @@ FLAGS
|
|
|
386
389
|
variable is already set.
|
|
387
390
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
388
391
|
--use-most-recent Use the ID of the most recently-run bulk job.
|
|
389
|
-
--wait=<value> [default:
|
|
392
|
+
--wait=<value> [default: 5 minutes] Number of minutes to wait for the command to complete before
|
|
390
393
|
displaying the results.
|
|
391
394
|
|
|
392
395
|
GLOBAL FLAGS
|
|
@@ -408,7 +411,7 @@ EXAMPLES
|
|
|
408
411
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
409
412
|
```
|
|
410
413
|
|
|
411
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
414
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/delete/resume.ts)_
|
|
412
415
|
|
|
413
416
|
## `sf data export bulk`
|
|
414
417
|
|
|
@@ -482,7 +485,7 @@ EXAMPLES
|
|
|
482
485
|
--result-format json --async
|
|
483
486
|
```
|
|
484
487
|
|
|
485
|
-
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
488
|
+
_See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/export/bulk.ts)_
|
|
486
489
|
|
|
487
490
|
## `sf data export resume`
|
|
488
491
|
|
|
@@ -518,7 +521,7 @@ EXAMPLES
|
|
|
518
521
|
$ sf data export resume --use-most-recent --target-org my-scratch
|
|
519
522
|
```
|
|
520
523
|
|
|
521
|
-
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
524
|
+
_See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/export/resume.ts)_
|
|
522
525
|
|
|
523
526
|
## `sf data export tree`
|
|
524
527
|
|
|
@@ -579,7 +582,7 @@ EXAMPLES
|
|
|
579
582
|
my-scratch
|
|
580
583
|
```
|
|
581
584
|
|
|
582
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
585
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/export/tree.ts)_
|
|
583
586
|
|
|
584
587
|
## `sf data get record`
|
|
585
588
|
|
|
@@ -643,7 +646,7 @@ EXAMPLES
|
|
|
643
646
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
644
647
|
```
|
|
645
648
|
|
|
646
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
649
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/get/record.ts)_
|
|
647
650
|
|
|
648
651
|
## `sf data import bulk`
|
|
649
652
|
|
|
@@ -663,7 +666,7 @@ FLAGS
|
|
|
663
666
|
you're importing records.
|
|
664
667
|
-w, --wait=<value> Time to wait for the command to finish, in minutes.
|
|
665
668
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
666
|
-
--column-delimiter=<option> Column delimiter used in the CSV file.
|
|
669
|
+
--column-delimiter=<option> Column delimiter used in the CSV file.
|
|
667
670
|
<options: BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB>
|
|
668
671
|
--line-ending=<option> Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and
|
|
669
672
|
Linux it's `LF`.
|
|
@@ -701,7 +704,7 @@ EXAMPLES
|
|
|
701
704
|
$ sf data import bulk --file accounts.csv --sobject Account --async
|
|
702
705
|
```
|
|
703
706
|
|
|
704
|
-
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
707
|
+
_See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/import/bulk.ts)_
|
|
705
708
|
|
|
706
709
|
## `sf data import resume`
|
|
707
710
|
|
|
@@ -737,7 +740,7 @@ EXAMPLES
|
|
|
737
740
|
$ sf data import resume --use-most-recent --target-org my-scratch
|
|
738
741
|
```
|
|
739
742
|
|
|
740
|
-
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
743
|
+
_See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/import/resume.ts)_
|
|
741
744
|
|
|
742
745
|
## `sf data import tree`
|
|
743
746
|
|
|
@@ -802,7 +805,7 @@ FLAG DESCRIPTIONS
|
|
|
802
805
|
- files(array) - Files: An array of files paths to load
|
|
803
806
|
```
|
|
804
807
|
|
|
805
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
808
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/import/tree.ts)_
|
|
806
809
|
|
|
807
810
|
## `sf data query`
|
|
808
811
|
|
|
@@ -866,7 +869,7 @@ EXAMPLES
|
|
|
866
869
|
$ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
|
|
867
870
|
```
|
|
868
871
|
|
|
869
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
872
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/query.ts)_
|
|
870
873
|
|
|
871
874
|
## `sf data query resume`
|
|
872
875
|
|
|
@@ -879,8 +882,7 @@ USAGE
|
|
|
879
882
|
|
|
880
883
|
FLAGS
|
|
881
884
|
-i, --bulk-query-id=<value> Job ID of the bulk query.
|
|
882
|
-
-o, --target-org=<value> Username or alias of the target org.
|
|
883
|
-
variable is already set.
|
|
885
|
+
-o, --target-org=<value> Username or alias of the target org.
|
|
884
886
|
-r, --result-format=<option> [default: human] Format to display the results; the --json flag overrides this flag.
|
|
885
887
|
<options: human|csv|json>
|
|
886
888
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
@@ -904,7 +906,7 @@ EXAMPLES
|
|
|
904
906
|
$ sf data query resume --bulk-query-id 7500x000005BdFzXXX
|
|
905
907
|
```
|
|
906
908
|
|
|
907
|
-
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
909
|
+
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/query/resume.ts)_
|
|
908
910
|
|
|
909
911
|
## `sf data resume`
|
|
910
912
|
|
|
@@ -941,7 +943,7 @@ EXAMPLES
|
|
|
941
943
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
942
944
|
```
|
|
943
945
|
|
|
944
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
946
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/resume.ts)_
|
|
945
947
|
|
|
946
948
|
## `sf data search`
|
|
947
949
|
|
|
@@ -991,7 +993,7 @@ EXAMPLES
|
|
|
991
993
|
$ sf data search --file query.txt --target-org my-scratch --result-format csv
|
|
992
994
|
```
|
|
993
995
|
|
|
994
|
-
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
996
|
+
_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/search.ts)_
|
|
995
997
|
|
|
996
998
|
## `sf data update bulk`
|
|
997
999
|
|
|
@@ -1011,7 +1013,7 @@ FLAGS
|
|
|
1011
1013
|
are updating.
|
|
1012
1014
|
-w, --wait=<value> Time to wait for the command to finish, in minutes.
|
|
1013
1015
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
1014
|
-
--column-delimiter=<option> Column delimiter used in the CSV file.
|
|
1016
|
+
--column-delimiter=<option> Column delimiter used in the CSV file.
|
|
1015
1017
|
<options: BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB>
|
|
1016
1018
|
--line-ending=<option> Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and
|
|
1017
1019
|
Linux it's `LF`.
|
|
@@ -1052,7 +1054,7 @@ EXAMPLES
|
|
|
1052
1054
|
$ sf data update bulk --file accounts.csv --sobject Account --async
|
|
1053
1055
|
```
|
|
1054
1056
|
|
|
1055
|
-
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1057
|
+
_See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/update/bulk.ts)_
|
|
1056
1058
|
|
|
1057
1059
|
## `sf data update record`
|
|
1058
1060
|
|
|
@@ -1114,7 +1116,7 @@ EXAMPLES
|
|
|
1114
1116
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
1115
1117
|
```
|
|
1116
1118
|
|
|
1117
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1119
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/update/record.ts)_
|
|
1118
1120
|
|
|
1119
1121
|
## `sf data update resume`
|
|
1120
1122
|
|
|
@@ -1150,7 +1152,7 @@ EXAMPLES
|
|
|
1150
1152
|
$ sf data update resume --use-most-recent --target-org my-scratch
|
|
1151
1153
|
```
|
|
1152
1154
|
|
|
1153
|
-
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1155
|
+
_See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/update/resume.ts)_
|
|
1154
1156
|
|
|
1155
1157
|
## `sf data upsert bulk`
|
|
1156
1158
|
|
|
@@ -1158,21 +1160,27 @@ Bulk upsert records to an org from a CSV file. Uses Bulk API 2.0.
|
|
|
1158
1160
|
|
|
1159
1161
|
```
|
|
1160
1162
|
USAGE
|
|
1161
|
-
$ sf data upsert bulk -o <value> -
|
|
1162
|
-
<value>] [-
|
|
1163
|
+
$ sf data upsert bulk -o <value> -s <value> -i <value> [--json] [--flags-dir <value>] [--api-version <value>] [-w
|
|
1164
|
+
<value> | -a] [--verbose] (--line-ending CRLF|LF -f <value>) [--column-delimiter
|
|
1165
|
+
BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB]
|
|
1163
1166
|
|
|
1164
1167
|
FLAGS
|
|
1165
|
-
-a, --async
|
|
1166
|
-
-f, --file=<value>
|
|
1167
|
-
-i, --external-id=<value>
|
|
1168
|
-
-o, --target-org=<value>
|
|
1169
|
-
|
|
1170
|
-
-s, --sobject=<value>
|
|
1171
|
-
|
|
1172
|
-
-w, --wait=<value>
|
|
1173
|
-
|
|
1174
|
-
--api-version=<value>
|
|
1175
|
-
--
|
|
1168
|
+
-a, --async Run the command asynchronously.
|
|
1169
|
+
-f, --file=<value> (required) CSV file that contains the IDs of the records to update or delete.
|
|
1170
|
+
-i, --external-id=<value> (required) Name of the external ID field, or the Id field.
|
|
1171
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
1172
|
+
configuration variable is already set.
|
|
1173
|
+
-s, --sobject=<value> (required) API name of the Salesforce object, either standard or custom, that you
|
|
1174
|
+
want to update or delete records from.
|
|
1175
|
+
-w, --wait=<value> [default: 0 minutes] Number of minutes to wait for the command to complete before
|
|
1176
|
+
displaying the results.
|
|
1177
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
1178
|
+
--column-delimiter=<option> Column delimiter used in the CSV file.
|
|
1179
|
+
<options: BACKQUOTE|CARET|COMMA|PIPE|SEMICOLON|TAB>
|
|
1180
|
+
--line-ending=<option> Line ending used in the CSV file. Default value on Windows is `CRLF`; on macOS and
|
|
1181
|
+
Linux it's `LF`.
|
|
1182
|
+
<options: CRLF|LF>
|
|
1183
|
+
--verbose Print verbose output of failed records if result is available.
|
|
1176
1184
|
|
|
1177
1185
|
GLOBAL FLAGS
|
|
1178
1186
|
--flags-dir=<value> Import flag values from a directory.
|
|
@@ -1203,7 +1211,7 @@ EXAMPLES
|
|
|
1203
1211
|
my-scratch
|
|
1204
1212
|
```
|
|
1205
1213
|
|
|
1206
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1214
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/upsert/bulk.ts)_
|
|
1207
1215
|
|
|
1208
1216
|
## `sf data upsert resume`
|
|
1209
1217
|
|
|
@@ -1220,7 +1228,7 @@ FLAGS
|
|
|
1220
1228
|
variable is already set.
|
|
1221
1229
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
1222
1230
|
--use-most-recent Use the ID of the most recently-run bulk job.
|
|
1223
|
-
--wait=<value> [default:
|
|
1231
|
+
--wait=<value> [default: 5 minutes] Number of minutes to wait for the command to complete before
|
|
1224
1232
|
displaying the results.
|
|
1225
1233
|
|
|
1226
1234
|
GLOBAL FLAGS
|
|
@@ -1242,7 +1250,7 @@ EXAMPLES
|
|
|
1242
1250
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
1243
1251
|
```
|
|
1244
1252
|
|
|
1245
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1253
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/data/upsert/resume.ts)_
|
|
1246
1254
|
|
|
1247
1255
|
## `sf force data bulk delete`
|
|
1248
1256
|
|
|
@@ -1289,7 +1297,7 @@ EXAMPLES
|
|
|
1289
1297
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
1290
1298
|
```
|
|
1291
1299
|
|
|
1292
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1300
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/force/data/bulk/delete.ts)_
|
|
1293
1301
|
|
|
1294
1302
|
## `sf force data bulk status`
|
|
1295
1303
|
|
|
@@ -1326,7 +1334,7 @@ EXAMPLES
|
|
|
1326
1334
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
1327
1335
|
```
|
|
1328
1336
|
|
|
1329
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1337
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/force/data/bulk/status.ts)_
|
|
1330
1338
|
|
|
1331
1339
|
## `sf force data bulk upsert`
|
|
1332
1340
|
|
|
@@ -1384,6 +1392,6 @@ EXAMPLES
|
|
|
1384
1392
|
--target-org my-scratch
|
|
1385
1393
|
```
|
|
1386
1394
|
|
|
1387
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.
|
|
1395
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.12.1/src/commands/force/data/bulk/upsert.ts)_
|
|
1388
1396
|
|
|
1389
1397
|
<!-- commandsstop -->
|
|
@@ -4,7 +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 { TTLConfig, Global, Logger, Messages, Org } from '@salesforce/core';
|
|
7
|
+
import { TTLConfig, Global, Logger, Messages, Org, ConfigAggregator, OrgConfigProperties } from '@salesforce/core';
|
|
8
8
|
import { Duration } from '@salesforce/kit';
|
|
9
9
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
10
10
|
const messages = Messages.loadMessages('@salesforce/plugin-data', 'messages');
|
|
@@ -36,58 +36,52 @@ export class BulkDataRequestCache extends TTLConfig {
|
|
|
36
36
|
await this.write();
|
|
37
37
|
Logger.childFromRoot('DataRequestCache').debug(`bulk cache saved for ${bulkRequestId}`);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (useMostRecent) {
|
|
39
|
+
/**
|
|
40
|
+
* Resolve entries from the local cache.
|
|
41
|
+
*
|
|
42
|
+
* @param jobIdOrMostRecent job ID or boolean value to decide if it should return the most recent entry in the cache.
|
|
43
|
+
* @param skipCacheValidatation make this method not throw if you passed a job ID that's not in the cache
|
|
44
|
+
* This was only added for `data upsert/delete resume` for backwards compatibility and will be removed after March 2025.
|
|
45
|
+
*/
|
|
46
|
+
async resolveResumeOptionsFromCache(jobIdOrMostRecent, skipCacheValidatation = false) {
|
|
47
|
+
if (typeof jobIdOrMostRecent === 'boolean') {
|
|
49
48
|
const key = this.getLatestKey();
|
|
50
|
-
if (key) {
|
|
51
|
-
|
|
52
|
-
const entry = this.get(key);
|
|
53
|
-
return {
|
|
54
|
-
jobInfo: { id: entry.jobId },
|
|
55
|
-
options: {
|
|
56
|
-
...resumeOptions,
|
|
57
|
-
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(apiVersion),
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (bulkJobId) {
|
|
63
|
-
const entry = this.get(bulkJobId);
|
|
64
|
-
if (entry) {
|
|
65
|
-
return {
|
|
66
|
-
jobInfo: { id: entry.jobId },
|
|
67
|
-
options: {
|
|
68
|
-
...resumeOptions,
|
|
69
|
-
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(apiVersion),
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
else if (org) {
|
|
74
|
-
return {
|
|
75
|
-
jobInfo: { id: bulkJobId },
|
|
76
|
-
options: {
|
|
77
|
-
...resumeOptions,
|
|
78
|
-
connection: org.getConnection(apiVersion),
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
throw messages.createError('cannotCreateResumeOptionsWithoutAnOrg');
|
|
49
|
+
if (!key) {
|
|
50
|
+
throw messages.createError('error.missingCacheEntryError');
|
|
84
51
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
52
|
+
// key definitely exists because it came from the cache
|
|
53
|
+
const entry = this.get(key);
|
|
54
|
+
return {
|
|
55
|
+
jobInfo: { id: entry.jobId },
|
|
56
|
+
options: {
|
|
57
|
+
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(),
|
|
58
|
+
},
|
|
59
|
+
};
|
|
88
60
|
}
|
|
89
61
|
else {
|
|
90
|
-
|
|
62
|
+
const entry = this.get(jobIdOrMostRecent);
|
|
63
|
+
if (!entry) {
|
|
64
|
+
if (skipCacheValidatation) {
|
|
65
|
+
const config = await ConfigAggregator.create();
|
|
66
|
+
const aliasOrUsername = config.getInfo(OrgConfigProperties.TARGET_ORG)?.value;
|
|
67
|
+
if (!aliasOrUsername) {
|
|
68
|
+
throw messages.createError('error.skipCacheValidateNoOrg', [jobIdOrMostRecent]);
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
jobInfo: { id: jobIdOrMostRecent },
|
|
72
|
+
options: {
|
|
73
|
+
connection: (await Org.create({ aliasOrUsername })).getConnection(),
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
throw messages.createError('error.bulkRequestIdNotFound', [jobIdOrMostRecent]);
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
jobInfo: { id: entry.jobId },
|
|
81
|
+
options: {
|
|
82
|
+
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(),
|
|
83
|
+
},
|
|
84
|
+
};
|
|
91
85
|
}
|
|
92
86
|
}
|
|
93
87
|
}
|
|
@@ -309,11 +303,6 @@ export class BulkExportRequestCache extends TTLConfig {
|
|
|
309
303
|
Logger.childFromRoot('BulkExportCache').debug(`bulk cache saved for ${bulkRequestId}`);
|
|
310
304
|
}
|
|
311
305
|
async resolveResumeOptionsFromCache(jobIdOrMostRecent, apiVersion) {
|
|
312
|
-
const resumeOptionsOptions = {
|
|
313
|
-
operation: 'query',
|
|
314
|
-
query: '',
|
|
315
|
-
pollingOptions: { pollTimeout: 0, pollInterval: 0 },
|
|
316
|
-
};
|
|
317
306
|
if (typeof jobIdOrMostRecent === 'boolean') {
|
|
318
307
|
const key = this.getLatestKey();
|
|
319
308
|
if (!key) {
|
|
@@ -329,7 +318,6 @@ export class BulkExportRequestCache extends TTLConfig {
|
|
|
329
318
|
columnDelimiter: entry.outputInfo.columnDelimiter,
|
|
330
319
|
},
|
|
331
320
|
options: {
|
|
332
|
-
...resumeOptionsOptions,
|
|
333
321
|
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(apiVersion),
|
|
334
322
|
},
|
|
335
323
|
};
|
|
@@ -343,7 +331,6 @@ export class BulkExportRequestCache extends TTLConfig {
|
|
|
343
331
|
jobInfo: { id: entry.jobId },
|
|
344
332
|
outputInfo: entry.outputInfo,
|
|
345
333
|
options: {
|
|
346
|
-
...resumeOptionsOptions,
|
|
347
334
|
connection: (await Org.create({ aliasOrUsername: entry.username })).getConnection(apiVersion),
|
|
348
335
|
},
|
|
349
336
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulkDataRequestCache.js","sourceRoot":"","sources":["../src/bulkDataRequestCache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"bulkDataRequestCache.js","sourceRoot":"","sources":["../src/bulkDataRequestCache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACnH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,UAAU,CAAC,CAAC;AAmB9E,MAAM,OAAgB,oBAAqB,SAAQ,SAAiD;IAC3F,MAAM,CAAC,iBAAiB;QAC7B,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,oBAAoB,CAAC,WAAW,EAAE;YAC5C,WAAW,EAAE,MAAM,CAAC,eAAe;YACnC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;SACtB,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,0BAA0B,CACrC,aAAqB,EACrB,QAA4B,EAC5B,UAA8B;QAE9B,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,QAAQ,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,CAAC,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