@salesforce/plugin-data 3.5.9 → 3.5.11
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
CHANGED
|
@@ -141,7 +141,7 @@ EXAMPLES
|
|
|
141
141
|
$ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
144
|
+
_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/create/file.ts)_
|
|
145
145
|
|
|
146
146
|
## `sf data create record`
|
|
147
147
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
TracedEntityId=01p17000000R6bLAAS"
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
200
|
+
_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/create/record.ts)_
|
|
201
201
|
|
|
202
202
|
## `sf data delete bulk`
|
|
203
203
|
|
|
@@ -255,7 +255,7 @@ FLAG DESCRIPTIONS
|
|
|
255
255
|
and can be enabled only by a system administrator.
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
258
|
+
_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/delete/bulk.ts)_
|
|
259
259
|
|
|
260
260
|
## `sf data delete record`
|
|
261
261
|
|
|
@@ -316,7 +316,7 @@ EXAMPLES
|
|
|
316
316
|
$ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
317
317
|
```
|
|
318
318
|
|
|
319
|
-
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
319
|
+
_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/delete/record.ts)_
|
|
320
320
|
|
|
321
321
|
## `sf data delete resume`
|
|
322
322
|
|
|
@@ -355,7 +355,7 @@ EXAMPLES
|
|
|
355
355
|
$ sf data delete resume --use-most-recent --target-org my-scratch
|
|
356
356
|
```
|
|
357
357
|
|
|
358
|
-
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
358
|
+
_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/delete/resume.ts)_
|
|
359
359
|
|
|
360
360
|
## `sf data export tree`
|
|
361
361
|
|
|
@@ -416,7 +416,7 @@ EXAMPLES
|
|
|
416
416
|
my-scratch
|
|
417
417
|
```
|
|
418
418
|
|
|
419
|
-
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
419
|
+
_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/export/tree.ts)_
|
|
420
420
|
|
|
421
421
|
## `sf data get record`
|
|
422
422
|
|
|
@@ -480,7 +480,7 @@ EXAMPLES
|
|
|
480
480
|
$ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
483
|
+
_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/get/record.ts)_
|
|
484
484
|
|
|
485
485
|
## `sf data import tree`
|
|
486
486
|
|
|
@@ -545,7 +545,7 @@ FLAG DESCRIPTIONS
|
|
|
545
545
|
- files(array) - Files: An array of files paths to load
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
548
|
+
_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/import/tree.ts)_
|
|
549
549
|
|
|
550
550
|
## `sf data query`
|
|
551
551
|
|
|
@@ -609,7 +609,7 @@ EXAMPLES
|
|
|
609
609
|
$ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0
|
|
610
610
|
```
|
|
611
611
|
|
|
612
|
-
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
612
|
+
_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/query.ts)_
|
|
613
613
|
|
|
614
614
|
## `sf data query resume`
|
|
615
615
|
|
|
@@ -647,7 +647,7 @@ EXAMPLES
|
|
|
647
647
|
$ sf data query resume --bulk-query-id 7500x000005BdFzXXX
|
|
648
648
|
```
|
|
649
649
|
|
|
650
|
-
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
650
|
+
_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/query/resume.ts)_
|
|
651
651
|
|
|
652
652
|
## `sf data resume`
|
|
653
653
|
|
|
@@ -684,7 +684,7 @@ EXAMPLES
|
|
|
684
684
|
$ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
|
|
685
685
|
```
|
|
686
686
|
|
|
687
|
-
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
687
|
+
_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/resume.ts)_
|
|
688
688
|
|
|
689
689
|
## `sf data update record`
|
|
690
690
|
|
|
@@ -746,7 +746,7 @@ EXAMPLES
|
|
|
746
746
|
"ExpirationDate=2017-12-01T00:58:04.000+0000"
|
|
747
747
|
```
|
|
748
748
|
|
|
749
|
-
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
749
|
+
_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/update/record.ts)_
|
|
750
750
|
|
|
751
751
|
## `sf data upsert bulk`
|
|
752
752
|
|
|
@@ -799,7 +799,7 @@ EXAMPLES
|
|
|
799
799
|
my-scratch
|
|
800
800
|
```
|
|
801
801
|
|
|
802
|
-
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
802
|
+
_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/upsert/bulk.ts)_
|
|
803
803
|
|
|
804
804
|
## `sf data upsert resume`
|
|
805
805
|
|
|
@@ -838,7 +838,7 @@ EXAMPLES
|
|
|
838
838
|
$ sf data upsert resume --use-most-recent --target-org my-scratch
|
|
839
839
|
```
|
|
840
840
|
|
|
841
|
-
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
841
|
+
_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/data/upsert/resume.ts)_
|
|
842
842
|
|
|
843
843
|
## `sf force data bulk delete`
|
|
844
844
|
|
|
@@ -885,7 +885,7 @@ EXAMPLES
|
|
|
885
885
|
$ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
|
|
886
886
|
```
|
|
887
887
|
|
|
888
|
-
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
888
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/force/data/bulk/delete.ts)_
|
|
889
889
|
|
|
890
890
|
## `sf force data bulk status`
|
|
891
891
|
|
|
@@ -922,7 +922,7 @@ EXAMPLES
|
|
|
922
922
|
$ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
|
|
923
923
|
```
|
|
924
924
|
|
|
925
|
-
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
925
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/force/data/bulk/status.ts)_
|
|
926
926
|
|
|
927
927
|
## `sf force data bulk upsert`
|
|
928
928
|
|
|
@@ -980,6 +980,6 @@ EXAMPLES
|
|
|
980
980
|
--target-org my-scratch
|
|
981
981
|
```
|
|
982
982
|
|
|
983
|
-
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.
|
|
983
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.5.11/src/commands/force/data/bulk/upsert.ts)_
|
|
984
984
|
|
|
985
985
|
<!-- commandsstop -->
|
|
@@ -5,7 +5,7 @@
|
|
|
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
7
|
import { Messages } from '@salesforce/core';
|
|
8
|
-
import { SfCommand, Flags
|
|
8
|
+
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
9
9
|
import { importFromPlan } from '../../../api/data/tree/importPlan.js';
|
|
10
10
|
import { importFromFiles } from '../../../api/data/tree/importFiles.js';
|
|
11
11
|
import { orgFlags } from '../../../flags.js';
|
|
@@ -22,12 +22,14 @@ export default class Import extends SfCommand {
|
|
|
22
22
|
static deprecateAliases = true;
|
|
23
23
|
static flags = {
|
|
24
24
|
...orgFlags,
|
|
25
|
-
files:
|
|
25
|
+
files: Flags.string({
|
|
26
26
|
char: 'f',
|
|
27
27
|
summary: messages.getMessage('flags.files.summary'),
|
|
28
28
|
exactlyOne: ['files', 'plan'],
|
|
29
29
|
aliases: ['sobjecttreefiles'],
|
|
30
30
|
deprecateAliases: true,
|
|
31
|
+
multiple: true,
|
|
32
|
+
delimiter: ',',
|
|
31
33
|
}),
|
|
32
34
|
plan: Flags.file({
|
|
33
35
|
char: 'p',
|
|
@@ -40,7 +42,9 @@ export default class Import extends SfCommand {
|
|
|
40
42
|
async run() {
|
|
41
43
|
const { flags } = await this.parse(Import);
|
|
42
44
|
const conn = flags['target-org'].getConnection(flags['api-version']);
|
|
43
|
-
const results = flags.plan
|
|
45
|
+
const results = flags.plan
|
|
46
|
+
? await importFromPlan(conn, flags.plan)
|
|
47
|
+
: await importFromFiles(conn, flags.files ?? []);
|
|
44
48
|
this.styledHeader('Import Results');
|
|
45
49
|
this.table(results, {
|
|
46
50
|
refId: { header: 'Reference ID' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../src/commands/data/import/tree.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../src/commands/data/import/tree.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAA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AK,CAAC,IAAI;YACxB,CAAC,CAAC,MAAM,cAAc,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;YACxC,CAAC,CAAC,MAAM,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAEnD,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;QACpC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;YAClB,KAAK,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;YACjC,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;YACxB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;SACrB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-data",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.11",
|
|
4
4
|
"description": "Plugin for salesforce data commands",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"homepage": "https://github.com/salesforcecli/plugin-data",
|
|
@@ -115,20 +115,20 @@
|
|
|
115
115
|
"ansis": "^3.2.0",
|
|
116
116
|
"change-case": "^5.4.4",
|
|
117
117
|
"csv-parse": "^5.5.6",
|
|
118
|
-
"csv-stringify": "^6.5.
|
|
118
|
+
"csv-stringify": "^6.5.1",
|
|
119
119
|
"form-data": "^4.0.0"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@oclif/core": "^4.0.14",
|
|
123
123
|
"@oclif/plugin-command-snapshot": "^5.2.9",
|
|
124
|
-
"@salesforce/cli-plugins-testkit": "^5.3.
|
|
125
|
-
"@salesforce/dev-scripts": "^10.2.
|
|
124
|
+
"@salesforce/cli-plugins-testkit": "^5.3.20",
|
|
125
|
+
"@salesforce/dev-scripts": "^10.2.5",
|
|
126
126
|
"@salesforce/plugin-command-reference": "^3.1.5",
|
|
127
127
|
"@salesforce/types": "^1.2.0",
|
|
128
|
-
"eslint-plugin-sf-plugin": "^1.
|
|
128
|
+
"eslint-plugin-sf-plugin": "^1.20.0",
|
|
129
129
|
"oclif": "^4.14.9",
|
|
130
130
|
"ts-node": "^10.9.2",
|
|
131
|
-
"typescript": "^5.5.
|
|
131
|
+
"typescript": "^5.5.4"
|
|
132
132
|
},
|
|
133
133
|
"wireit": {
|
|
134
134
|
"build": {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"exports": "./lib/index.js",
|
|
249
249
|
"type": "module",
|
|
250
250
|
"sfdx": {
|
|
251
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.
|
|
252
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.
|
|
251
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.11.crt",
|
|
252
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/3.5.11.sig"
|
|
253
253
|
}
|
|
254
254
|
}
|