@simplysf/simply-data 1.2.2 → 1.2.3
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/CHANGELOG.md +9 -0
- package/README.md +2 -2
- package/npm-shrinkwrap.json +13 -13
- package/oclif.lock +15 -40
- package/oclif.manifest.json +81 -81
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.2.3](https://github.com/SimplySF/simply-data/compare/1.2.2...1.2.3) (2024-04-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** bump @salesforce/sf-plugins-core from 8.0.0 to 8.0.3 ([c6e435e](https://github.com/SimplySF/simply-data/commit/c6e435ec4fba283ce1017c07d45d9543f90b61ed))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.2.2](https://github.com/SimplySF/simply-data/compare/1.2.1...1.2.2) (2024-04-07)
|
|
2
11
|
|
|
3
12
|
|
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ EXAMPLES
|
|
|
91
91
|
$ sf simply data file upload --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
_See code: [src/commands/simply/data/file/upload.ts](https://github.com/SimplySF/simply-data/blob/1.2.
|
|
94
|
+
_See code: [src/commands/simply/data/file/upload.ts](https://github.com/SimplySF/simply-data/blob/1.2.3/src/commands/simply/data/file/upload.ts)_
|
|
95
95
|
|
|
96
96
|
## `sf simply data files upload`
|
|
97
97
|
|
|
@@ -136,5 +136,5 @@ FLAG DESCRIPTIONS
|
|
|
136
136
|
quasi concurrent uploads. Please note that setting this value too high can cause performance issues.
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
_See code: [src/commands/simply/data/files/upload.ts](https://github.com/SimplySF/simply-data/blob/1.2.
|
|
139
|
+
_See code: [src/commands/simply/data/files/upload.ts](https://github.com/SimplySF/simply-data/blob/1.2.3/src/commands/simply/data/files/upload.ts)_
|
|
140
140
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-data",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@simplysf/simply-data",
|
|
9
|
-
"version": "1.2.
|
|
9
|
+
"version": "1.2.3",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@oclif/core": "^3.25.0",
|
|
13
13
|
"@salesforce/core": "^6.7.6",
|
|
14
14
|
"@salesforce/kit": "^3.1.0",
|
|
15
|
-
"@salesforce/sf-plugins-core": "^8.0.
|
|
15
|
+
"@salesforce/sf-plugins-core": "^8.0.3",
|
|
16
16
|
"csv-parse": "^5.5.5",
|
|
17
17
|
"csv-writer": "^1.6.0",
|
|
18
18
|
"form-data": "^4.0.0",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@simplysf/dev-scripts": "^2.1.2",
|
|
28
28
|
"@types/shelljs": "^0.8.14",
|
|
29
29
|
"eslint-plugin-sf-plugin": "^1.17.5",
|
|
30
|
-
"oclif": "^4.7.
|
|
30
|
+
"oclif": "^4.7.6",
|
|
31
31
|
"shelljs": "^0.8.5",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"typescript": "^5.4.3"
|
|
@@ -3384,16 +3384,16 @@
|
|
|
3384
3384
|
"license": "ISC"
|
|
3385
3385
|
},
|
|
3386
3386
|
"node_modules/@salesforce/sf-plugins-core": {
|
|
3387
|
-
"version": "8.0.
|
|
3388
|
-
"resolved": "https://registry.npmjs.org/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.
|
|
3389
|
-
"integrity": "sha512-
|
|
3387
|
+
"version": "8.0.3",
|
|
3388
|
+
"resolved": "https://registry.npmjs.org/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.3.tgz",
|
|
3389
|
+
"integrity": "sha512-RJIi0lbpOg6ZflRDCTi/8E3QBhOHfvA5F3xlvThuQo9Yw2SvOjti+s/+Z2RCpvWdy4aaleeGqqgn7AwDi/ISDQ==",
|
|
3390
3390
|
"license": "BSD-3-Clause",
|
|
3391
3391
|
"dependencies": {
|
|
3392
3392
|
"@inquirer/confirm": "^2.0.17",
|
|
3393
3393
|
"@inquirer/password": "^1.1.16",
|
|
3394
|
-
"@oclif/core": "^3.
|
|
3395
|
-
"@salesforce/core": "^6.
|
|
3396
|
-
"@salesforce/kit": "^3.0
|
|
3394
|
+
"@oclif/core": "^3.26.0",
|
|
3395
|
+
"@salesforce/core": "^6.7.3",
|
|
3396
|
+
"@salesforce/kit": "^3.1.0",
|
|
3397
3397
|
"@salesforce/ts-types": "^2.0.9",
|
|
3398
3398
|
"chalk": "^5.3.0"
|
|
3399
3399
|
},
|
|
@@ -10772,9 +10772,9 @@
|
|
|
10772
10772
|
}
|
|
10773
10773
|
},
|
|
10774
10774
|
"node_modules/oclif": {
|
|
10775
|
-
"version": "4.7.
|
|
10776
|
-
"resolved": "https://registry.npmjs.org/oclif/-/oclif-4.7.
|
|
10777
|
-
"integrity": "sha512-
|
|
10775
|
+
"version": "4.7.6",
|
|
10776
|
+
"resolved": "https://registry.npmjs.org/oclif/-/oclif-4.7.6.tgz",
|
|
10777
|
+
"integrity": "sha512-R2Fdef6R8n1UIVAJTCP0oEIRkExMniei4QqmK7ue9iN8PTf+6q5ROrl7/pxMH/DzDCKnkTsi5mBhyT3HqFAZ1w==",
|
|
10778
10778
|
"dev": true,
|
|
10779
10779
|
"license": "MIT",
|
|
10780
10780
|
"dependencies": {
|
package/oclif.lock
CHANGED
|
@@ -1402,7 +1402,7 @@
|
|
|
1402
1402
|
strip-ansi "6.0.1"
|
|
1403
1403
|
ts-retry-promise "^0.8.0"
|
|
1404
1404
|
|
|
1405
|
-
"@salesforce/core@^6.4.1", "@salesforce/core@^6.
|
|
1405
|
+
"@salesforce/core@^6.4.1", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3", "@salesforce/core@^6.7.6":
|
|
1406
1406
|
version "6.7.6"
|
|
1407
1407
|
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.7.6.tgz#6a73c6a4e615ce837be5b5c142cfc63a6c8db3bd"
|
|
1408
1408
|
integrity sha512-0ZZ1GgUQTwTs8/xa+hmZd+wwKXkK8MNcI2Kn20HmHShsweA2Jp3Yaxx0+EbRPqhSBARXso+TADSnsOjlZvQ3tg==
|
|
@@ -1475,16 +1475,16 @@
|
|
|
1475
1475
|
chalk "^4"
|
|
1476
1476
|
inquirer "^8.2.5"
|
|
1477
1477
|
|
|
1478
|
-
"@salesforce/sf-plugins-core@^8.0.
|
|
1479
|
-
version "8.0.
|
|
1480
|
-
resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.
|
|
1481
|
-
integrity sha512-
|
|
1478
|
+
"@salesforce/sf-plugins-core@^8.0.3":
|
|
1479
|
+
version "8.0.3"
|
|
1480
|
+
resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.3.tgz#df8840419031b8d3ec2db171246757a9bfb38655"
|
|
1481
|
+
integrity sha512-RJIi0lbpOg6ZflRDCTi/8E3QBhOHfvA5F3xlvThuQo9Yw2SvOjti+s/+Z2RCpvWdy4aaleeGqqgn7AwDi/ISDQ==
|
|
1482
1482
|
dependencies:
|
|
1483
1483
|
"@inquirer/confirm" "^2.0.17"
|
|
1484
1484
|
"@inquirer/password" "^1.1.16"
|
|
1485
|
-
"@oclif/core" "^3.
|
|
1486
|
-
"@salesforce/core" "^6.
|
|
1487
|
-
"@salesforce/kit" "^3.0
|
|
1485
|
+
"@oclif/core" "^3.26.0"
|
|
1486
|
+
"@salesforce/core" "^6.7.3"
|
|
1487
|
+
"@salesforce/kit" "^3.1.0"
|
|
1488
1488
|
"@salesforce/ts-types" "^2.0.9"
|
|
1489
1489
|
chalk "^5.3.0"
|
|
1490
1490
|
|
|
@@ -5790,10 +5790,10 @@ object.values@^1.1.7:
|
|
|
5790
5790
|
define-properties "^1.2.0"
|
|
5791
5791
|
es-abstract "^1.22.1"
|
|
5792
5792
|
|
|
5793
|
-
oclif@^4.7.
|
|
5794
|
-
version "4.7.
|
|
5795
|
-
resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.7.
|
|
5796
|
-
integrity sha512-
|
|
5793
|
+
oclif@^4.7.6:
|
|
5794
|
+
version "4.7.6"
|
|
5795
|
+
resolved "https://registry.yarnpkg.com/oclif/-/oclif-4.7.6.tgz#2cb7ecfdaa0db9bc2131fa56abff28ba7c88c073"
|
|
5796
|
+
integrity sha512-R2Fdef6R8n1UIVAJTCP0oEIRkExMniei4QqmK7ue9iN8PTf+6q5ROrl7/pxMH/DzDCKnkTsi5mBhyT3HqFAZ1w==
|
|
5797
5797
|
dependencies:
|
|
5798
5798
|
"@aws-sdk/client-cloudfront" "^3.535.0"
|
|
5799
5799
|
"@aws-sdk/client-s3" "^3.535.0"
|
|
@@ -6826,16 +6826,7 @@ srcset@^5.0.0:
|
|
|
6826
6826
|
resolved "https://registry.yarnpkg.com/srcset/-/srcset-5.0.0.tgz#9df6c3961b5b44a02532ce6ae4544832609e2e3f"
|
|
6827
6827
|
integrity sha512-SqEZaAEhe0A6ETEa9O1IhSPC7MdvehZtCnTR0AftXk3QhY2UNgb+NApFOUPZILXk/YTDfFxMTNJOBpzrJsEdIA==
|
|
6828
6828
|
|
|
6829
|
-
"string-width-cjs@npm:string-width@^4.2.0":
|
|
6830
|
-
version "4.2.3"
|
|
6831
|
-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
6832
|
-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
6833
|
-
dependencies:
|
|
6834
|
-
emoji-regex "^8.0.0"
|
|
6835
|
-
is-fullwidth-code-point "^3.0.0"
|
|
6836
|
-
strip-ansi "^6.0.1"
|
|
6837
|
-
|
|
6838
|
-
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
6829
|
+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
|
|
6839
6830
|
version "4.2.3"
|
|
6840
6831
|
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
|
6841
6832
|
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
|
@@ -6894,14 +6885,7 @@ string_decoder@~1.1.1:
|
|
|
6894
6885
|
dependencies:
|
|
6895
6886
|
safe-buffer "~5.1.0"
|
|
6896
6887
|
|
|
6897
|
-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
|
|
6898
|
-
version "6.0.1"
|
|
6899
|
-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
6900
|
-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
6901
|
-
dependencies:
|
|
6902
|
-
ansi-regex "^5.0.1"
|
|
6903
|
-
|
|
6904
|
-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
6888
|
+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
|
|
6905
6889
|
version "6.0.1"
|
|
6906
6890
|
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
|
6907
6891
|
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
|
@@ -7453,7 +7437,7 @@ workerpool@6.2.1:
|
|
|
7453
7437
|
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"
|
|
7454
7438
|
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
|
|
7455
7439
|
|
|
7456
|
-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
|
|
7440
|
+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
|
|
7457
7441
|
version "7.0.0"
|
|
7458
7442
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
7459
7443
|
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
@@ -7471,15 +7455,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
|
|
|
7471
7455
|
string-width "^4.1.0"
|
|
7472
7456
|
strip-ansi "^6.0.0"
|
|
7473
7457
|
|
|
7474
|
-
wrap-ansi@^7.0.0:
|
|
7475
|
-
version "7.0.0"
|
|
7476
|
-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
7477
|
-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
|
|
7478
|
-
dependencies:
|
|
7479
|
-
ansi-styles "^4.0.0"
|
|
7480
|
-
string-width "^4.1.0"
|
|
7481
|
-
strip-ansi "^6.0.0"
|
|
7482
|
-
|
|
7483
7458
|
wrap-ansi@^8.1.0:
|
|
7484
7459
|
version "8.1.0"
|
|
7485
7460
|
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
|
package/oclif.manifest.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"simply:data:
|
|
3
|
+
"simply:data:files:upload": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Uploads a
|
|
6
|
+
"description": "Uploads files specified by a csv to a Salesforce org. By default, the plugin uses the REST API for the upload as the Bulk API is limited in its payload size. This means that each file will use one REST API request.",
|
|
7
7
|
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
9
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --target-org myTargetOrg",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --max-parallel-jobs 5 --target-org myTargetOrg"
|
|
10
10
|
],
|
|
11
11
|
"flags": {
|
|
12
12
|
"json": {
|
|
@@ -32,16 +32,19 @@
|
|
|
32
32
|
"type": "option"
|
|
33
33
|
},
|
|
34
34
|
"file-path": {
|
|
35
|
+
"description": "The csv file must specify the columns PathOnClient and Title. Optionally, a FirstPublishLocationId can be specified to have it linked directly to a Salesforce record after upload.",
|
|
35
36
|
"name": "file-path",
|
|
36
37
|
"required": true,
|
|
37
|
-
"summary": "Path to the file
|
|
38
|
+
"summary": "Path to the csv file that specifies the upload.",
|
|
38
39
|
"hasDynamicHelp": false,
|
|
39
40
|
"multiple": false,
|
|
40
41
|
"type": "option"
|
|
41
42
|
},
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"max-parallel-jobs": {
|
|
44
|
+
"description": "By default the plugin will only process a single file upload at a time. You can increase this value to allow for quasi concurrent uploads. Please note that setting this value too high can cause performance issues.",
|
|
45
|
+
"name": "max-parallel-jobs",
|
|
46
|
+
"summary": "Maximum number of parallel jobs.",
|
|
47
|
+
"default": 1,
|
|
45
48
|
"hasDynamicHelp": false,
|
|
46
49
|
"multiple": false,
|
|
47
50
|
"type": "option"
|
|
@@ -55,23 +58,16 @@
|
|
|
55
58
|
"hasDynamicHelp": true,
|
|
56
59
|
"multiple": false,
|
|
57
60
|
"type": "option"
|
|
58
|
-
},
|
|
59
|
-
"title": {
|
|
60
|
-
"name": "title",
|
|
61
|
-
"summary": "Specify the title for the file being uploaded.",
|
|
62
|
-
"hasDynamicHelp": false,
|
|
63
|
-
"multiple": false,
|
|
64
|
-
"type": "option"
|
|
65
61
|
}
|
|
66
62
|
},
|
|
67
63
|
"hasDynamicHelp": true,
|
|
68
64
|
"hiddenAliases": [],
|
|
69
|
-
"id": "simply:data:
|
|
65
|
+
"id": "simply:data:files:upload",
|
|
70
66
|
"pluginAlias": "@simplysf/simply-data",
|
|
71
67
|
"pluginName": "@simplysf/simply-data",
|
|
72
68
|
"pluginType": "core",
|
|
73
69
|
"strict": true,
|
|
74
|
-
"summary": "Upload
|
|
70
|
+
"summary": "Upload files to a Salesforce org.",
|
|
75
71
|
"enableJsonFlag": true,
|
|
76
72
|
"isESM": true,
|
|
77
73
|
"relativePath": [
|
|
@@ -79,44 +75,44 @@
|
|
|
79
75
|
"commands",
|
|
80
76
|
"simply",
|
|
81
77
|
"data",
|
|
82
|
-
"
|
|
78
|
+
"files",
|
|
83
79
|
"upload.js"
|
|
84
80
|
],
|
|
85
81
|
"aliasPermutations": [],
|
|
86
82
|
"permutations": [
|
|
87
|
-
"simply:data:
|
|
88
|
-
"data:simply:
|
|
89
|
-
"data:
|
|
90
|
-
"data:
|
|
91
|
-
"simply:
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"simply:
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"simply:data:upload:
|
|
100
|
-
"data:simply:upload:
|
|
101
|
-
"data:upload:simply:
|
|
102
|
-
"data:upload:
|
|
103
|
-
"simply:upload:data:
|
|
104
|
-
"upload:simply:data:
|
|
105
|
-
"upload:data:simply:
|
|
106
|
-
"upload:data:
|
|
107
|
-
"simply:upload:
|
|
108
|
-
"upload:simply:
|
|
109
|
-
"upload:
|
|
110
|
-
"upload:
|
|
83
|
+
"simply:data:files:upload",
|
|
84
|
+
"data:simply:files:upload",
|
|
85
|
+
"data:files:simply:upload",
|
|
86
|
+
"data:files:upload:simply",
|
|
87
|
+
"simply:files:data:upload",
|
|
88
|
+
"files:simply:data:upload",
|
|
89
|
+
"files:data:simply:upload",
|
|
90
|
+
"files:data:upload:simply",
|
|
91
|
+
"simply:files:upload:data",
|
|
92
|
+
"files:simply:upload:data",
|
|
93
|
+
"files:upload:simply:data",
|
|
94
|
+
"files:upload:data:simply",
|
|
95
|
+
"simply:data:upload:files",
|
|
96
|
+
"data:simply:upload:files",
|
|
97
|
+
"data:upload:simply:files",
|
|
98
|
+
"data:upload:files:simply",
|
|
99
|
+
"simply:upload:data:files",
|
|
100
|
+
"upload:simply:data:files",
|
|
101
|
+
"upload:data:simply:files",
|
|
102
|
+
"upload:data:files:simply",
|
|
103
|
+
"simply:upload:files:data",
|
|
104
|
+
"upload:simply:files:data",
|
|
105
|
+
"upload:files:simply:data",
|
|
106
|
+
"upload:files:data:simply"
|
|
111
107
|
]
|
|
112
108
|
},
|
|
113
|
-
"simply:data:
|
|
109
|
+
"simply:data:file:upload": {
|
|
114
110
|
"aliases": [],
|
|
115
111
|
"args": {},
|
|
116
|
-
"description": "Uploads
|
|
112
|
+
"description": "Uploads a file to a Salesforce org.",
|
|
117
113
|
"examples": [
|
|
118
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
119
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
114
|
+
"<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --target-org myTargetOrg",
|
|
115
|
+
"<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
|
|
120
116
|
],
|
|
121
117
|
"flags": {
|
|
122
118
|
"json": {
|
|
@@ -142,19 +138,16 @@
|
|
|
142
138
|
"type": "option"
|
|
143
139
|
},
|
|
144
140
|
"file-path": {
|
|
145
|
-
"description": "The csv file must specify the columns PathOnClient and Title. Optionally, a FirstPublishLocationId can be specified to have it linked directly to a Salesforce record after upload.",
|
|
146
141
|
"name": "file-path",
|
|
147
142
|
"required": true,
|
|
148
|
-
"summary": "Path to the
|
|
143
|
+
"summary": "Path to the file to upload.",
|
|
149
144
|
"hasDynamicHelp": false,
|
|
150
145
|
"multiple": false,
|
|
151
146
|
"type": "option"
|
|
152
147
|
},
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"summary": "Maximum number of parallel jobs.",
|
|
157
|
-
"default": 1,
|
|
148
|
+
"first-publish-location-id": {
|
|
149
|
+
"name": "first-publish-location-id",
|
|
150
|
+
"summary": "Specify a record Id that the file should be linked to.",
|
|
158
151
|
"hasDynamicHelp": false,
|
|
159
152
|
"multiple": false,
|
|
160
153
|
"type": "option"
|
|
@@ -168,16 +161,23 @@
|
|
|
168
161
|
"hasDynamicHelp": true,
|
|
169
162
|
"multiple": false,
|
|
170
163
|
"type": "option"
|
|
164
|
+
},
|
|
165
|
+
"title": {
|
|
166
|
+
"name": "title",
|
|
167
|
+
"summary": "Specify the title for the file being uploaded.",
|
|
168
|
+
"hasDynamicHelp": false,
|
|
169
|
+
"multiple": false,
|
|
170
|
+
"type": "option"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
"hasDynamicHelp": true,
|
|
174
174
|
"hiddenAliases": [],
|
|
175
|
-
"id": "simply:data:
|
|
175
|
+
"id": "simply:data:file:upload",
|
|
176
176
|
"pluginAlias": "@simplysf/simply-data",
|
|
177
177
|
"pluginName": "@simplysf/simply-data",
|
|
178
178
|
"pluginType": "core",
|
|
179
179
|
"strict": true,
|
|
180
|
-
"summary": "Upload
|
|
180
|
+
"summary": "Upload a file to a Salesforce org.",
|
|
181
181
|
"enableJsonFlag": true,
|
|
182
182
|
"isESM": true,
|
|
183
183
|
"relativePath": [
|
|
@@ -185,37 +185,37 @@
|
|
|
185
185
|
"commands",
|
|
186
186
|
"simply",
|
|
187
187
|
"data",
|
|
188
|
-
"
|
|
188
|
+
"file",
|
|
189
189
|
"upload.js"
|
|
190
190
|
],
|
|
191
191
|
"aliasPermutations": [],
|
|
192
192
|
"permutations": [
|
|
193
|
-
"simply:data:
|
|
194
|
-
"data:simply:
|
|
195
|
-
"data:
|
|
196
|
-
"data:
|
|
197
|
-
"simply:
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"simply:
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"simply:data:upload:
|
|
206
|
-
"data:simply:upload:
|
|
207
|
-
"data:upload:simply:
|
|
208
|
-
"data:upload:
|
|
209
|
-
"simply:upload:data:
|
|
210
|
-
"upload:simply:data:
|
|
211
|
-
"upload:data:simply:
|
|
212
|
-
"upload:data:
|
|
213
|
-
"simply:upload:
|
|
214
|
-
"upload:simply:
|
|
215
|
-
"upload:
|
|
216
|
-
"upload:
|
|
193
|
+
"simply:data:file:upload",
|
|
194
|
+
"data:simply:file:upload",
|
|
195
|
+
"data:file:simply:upload",
|
|
196
|
+
"data:file:upload:simply",
|
|
197
|
+
"simply:file:data:upload",
|
|
198
|
+
"file:simply:data:upload",
|
|
199
|
+
"file:data:simply:upload",
|
|
200
|
+
"file:data:upload:simply",
|
|
201
|
+
"simply:file:upload:data",
|
|
202
|
+
"file:simply:upload:data",
|
|
203
|
+
"file:upload:simply:data",
|
|
204
|
+
"file:upload:data:simply",
|
|
205
|
+
"simply:data:upload:file",
|
|
206
|
+
"data:simply:upload:file",
|
|
207
|
+
"data:upload:simply:file",
|
|
208
|
+
"data:upload:file:simply",
|
|
209
|
+
"simply:upload:data:file",
|
|
210
|
+
"upload:simply:data:file",
|
|
211
|
+
"upload:data:simply:file",
|
|
212
|
+
"upload:data:file:simply",
|
|
213
|
+
"simply:upload:file:data",
|
|
214
|
+
"upload:simply:file:data",
|
|
215
|
+
"upload:file:simply:data",
|
|
216
|
+
"upload:file:data:simply"
|
|
217
217
|
]
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
-
"version": "1.2.
|
|
220
|
+
"version": "1.2.3"
|
|
221
221
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-data",
|
|
3
3
|
"description": "Utilities for working with data",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"bugs": "https://github.com/SimplySF/simply-data/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^3.25.0",
|
|
9
9
|
"@salesforce/core": "^6.7.6",
|
|
10
10
|
"@salesforce/kit": "^3.1.0",
|
|
11
|
-
"@salesforce/sf-plugins-core": "^8.0.
|
|
11
|
+
"@salesforce/sf-plugins-core": "^8.0.3",
|
|
12
12
|
"csv-parse": "^5.5.5",
|
|
13
13
|
"csv-writer": "^1.6.0",
|
|
14
14
|
"form-data": "^4.0.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@simplysf/dev-scripts": "^2.1.2",
|
|
24
24
|
"@types/shelljs": "^0.8.14",
|
|
25
25
|
"eslint-plugin-sf-plugin": "^1.17.5",
|
|
26
|
-
"oclif": "^4.7.
|
|
26
|
+
"oclif": "^4.7.6",
|
|
27
27
|
"shelljs": "^0.8.5",
|
|
28
28
|
"ts-node": "^10.9.2",
|
|
29
29
|
"typescript": "^5.4.3"
|