@simplysf/simply-data 1.2.3 → 1.3.0
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 +18 -0
- package/README.md +2 -2
- package/npm-shrinkwrap.json +1265 -500
- package/oclif.lock +657 -255
- package/oclif.manifest.json +81 -81
- package/package.json +10 -10
package/oclif.manifest.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
-
"simply:data:
|
|
3
|
+
"simply:data:file:upload": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Uploads
|
|
6
|
+
"description": "Uploads a file to a Salesforce org.",
|
|
7
7
|
"examples": [
|
|
8
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
9
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
8
|
+
"<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --target-org myTargetOrg",
|
|
9
|
+
"<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
|
|
10
10
|
],
|
|
11
11
|
"flags": {
|
|
12
12
|
"json": {
|
|
@@ -32,19 +32,16 @@
|
|
|
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.",
|
|
36
35
|
"name": "file-path",
|
|
37
36
|
"required": true,
|
|
38
|
-
"summary": "Path to the
|
|
37
|
+
"summary": "Path to the file to upload.",
|
|
39
38
|
"hasDynamicHelp": false,
|
|
40
39
|
"multiple": false,
|
|
41
40
|
"type": "option"
|
|
42
41
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"summary": "Maximum number of parallel jobs.",
|
|
47
|
-
"default": 1,
|
|
42
|
+
"first-publish-location-id": {
|
|
43
|
+
"name": "first-publish-location-id",
|
|
44
|
+
"summary": "Specify a record Id that the file should be linked to.",
|
|
48
45
|
"hasDynamicHelp": false,
|
|
49
46
|
"multiple": false,
|
|
50
47
|
"type": "option"
|
|
@@ -58,16 +55,23 @@
|
|
|
58
55
|
"hasDynamicHelp": true,
|
|
59
56
|
"multiple": false,
|
|
60
57
|
"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"
|
|
61
65
|
}
|
|
62
66
|
},
|
|
63
67
|
"hasDynamicHelp": true,
|
|
64
68
|
"hiddenAliases": [],
|
|
65
|
-
"id": "simply:data:
|
|
69
|
+
"id": "simply:data:file:upload",
|
|
66
70
|
"pluginAlias": "@simplysf/simply-data",
|
|
67
71
|
"pluginName": "@simplysf/simply-data",
|
|
68
72
|
"pluginType": "core",
|
|
69
73
|
"strict": true,
|
|
70
|
-
"summary": "Upload
|
|
74
|
+
"summary": "Upload a file to a Salesforce org.",
|
|
71
75
|
"enableJsonFlag": true,
|
|
72
76
|
"isESM": true,
|
|
73
77
|
"relativePath": [
|
|
@@ -75,44 +79,44 @@
|
|
|
75
79
|
"commands",
|
|
76
80
|
"simply",
|
|
77
81
|
"data",
|
|
78
|
-
"
|
|
82
|
+
"file",
|
|
79
83
|
"upload.js"
|
|
80
84
|
],
|
|
81
85
|
"aliasPermutations": [],
|
|
82
86
|
"permutations": [
|
|
83
|
-
"simply:data:
|
|
84
|
-
"data:simply:
|
|
85
|
-
"data:
|
|
86
|
-
"data:
|
|
87
|
-
"simply:
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"simply:
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"simply:data:upload:
|
|
96
|
-
"data:simply:upload:
|
|
97
|
-
"data:upload:simply:
|
|
98
|
-
"data:upload:
|
|
99
|
-
"simply:upload:data:
|
|
100
|
-
"upload:simply:data:
|
|
101
|
-
"upload:data:simply:
|
|
102
|
-
"upload:data:
|
|
103
|
-
"simply:upload:
|
|
104
|
-
"upload:simply:
|
|
105
|
-
"upload:
|
|
106
|
-
"upload:
|
|
87
|
+
"simply:data:file:upload",
|
|
88
|
+
"data:simply:file:upload",
|
|
89
|
+
"data:file:simply:upload",
|
|
90
|
+
"data:file:upload:simply",
|
|
91
|
+
"simply:file:data:upload",
|
|
92
|
+
"file:simply:data:upload",
|
|
93
|
+
"file:data:simply:upload",
|
|
94
|
+
"file:data:upload:simply",
|
|
95
|
+
"simply:file:upload:data",
|
|
96
|
+
"file:simply:upload:data",
|
|
97
|
+
"file:upload:simply:data",
|
|
98
|
+
"file:upload:data:simply",
|
|
99
|
+
"simply:data:upload:file",
|
|
100
|
+
"data:simply:upload:file",
|
|
101
|
+
"data:upload:simply:file",
|
|
102
|
+
"data:upload:file:simply",
|
|
103
|
+
"simply:upload:data:file",
|
|
104
|
+
"upload:simply:data:file",
|
|
105
|
+
"upload:data:simply:file",
|
|
106
|
+
"upload:data:file:simply",
|
|
107
|
+
"simply:upload:file:data",
|
|
108
|
+
"upload:simply:file:data",
|
|
109
|
+
"upload:file:simply:data",
|
|
110
|
+
"upload:file:data:simply"
|
|
107
111
|
]
|
|
108
112
|
},
|
|
109
|
-
"simply:data:
|
|
113
|
+
"simply:data:files:upload": {
|
|
110
114
|
"aliases": [],
|
|
111
115
|
"args": {},
|
|
112
|
-
"description": "Uploads a
|
|
116
|
+
"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.",
|
|
113
117
|
"examples": [
|
|
114
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
115
|
-
"<%= config.bin %> <%= command.id %> --file-path
|
|
118
|
+
"<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --target-org myTargetOrg",
|
|
119
|
+
"<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --max-parallel-jobs 5 --target-org myTargetOrg"
|
|
116
120
|
],
|
|
117
121
|
"flags": {
|
|
118
122
|
"json": {
|
|
@@ -138,16 +142,19 @@
|
|
|
138
142
|
"type": "option"
|
|
139
143
|
},
|
|
140
144
|
"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.",
|
|
141
146
|
"name": "file-path",
|
|
142
147
|
"required": true,
|
|
143
|
-
"summary": "Path to the file
|
|
148
|
+
"summary": "Path to the csv file that specifies the upload.",
|
|
144
149
|
"hasDynamicHelp": false,
|
|
145
150
|
"multiple": false,
|
|
146
151
|
"type": "option"
|
|
147
152
|
},
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
153
|
+
"max-parallel-jobs": {
|
|
154
|
+
"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.",
|
|
155
|
+
"name": "max-parallel-jobs",
|
|
156
|
+
"summary": "Maximum number of parallel jobs.",
|
|
157
|
+
"default": 1,
|
|
151
158
|
"hasDynamicHelp": false,
|
|
152
159
|
"multiple": false,
|
|
153
160
|
"type": "option"
|
|
@@ -161,23 +168,16 @@
|
|
|
161
168
|
"hasDynamicHelp": true,
|
|
162
169
|
"multiple": false,
|
|
163
170
|
"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:files: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 files 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
|
+
"files",
|
|
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:files:upload",
|
|
194
|
+
"data:simply:files:upload",
|
|
195
|
+
"data:files:simply:upload",
|
|
196
|
+
"data:files:upload:simply",
|
|
197
|
+
"simply:files:data:upload",
|
|
198
|
+
"files:simply:data:upload",
|
|
199
|
+
"files:data:simply:upload",
|
|
200
|
+
"files:data:upload:simply",
|
|
201
|
+
"simply:files:upload:data",
|
|
202
|
+
"files:simply:upload:data",
|
|
203
|
+
"files:upload:simply:data",
|
|
204
|
+
"files:upload:data:simply",
|
|
205
|
+
"simply:data:upload:files",
|
|
206
|
+
"data:simply:upload:files",
|
|
207
|
+
"data:upload:simply:files",
|
|
208
|
+
"data:upload:files:simply",
|
|
209
|
+
"simply:upload:data:files",
|
|
210
|
+
"upload:simply:data:files",
|
|
211
|
+
"upload:data:simply:files",
|
|
212
|
+
"upload:data:files:simply",
|
|
213
|
+
"simply:upload:files:data",
|
|
214
|
+
"upload:simply:files:data",
|
|
215
|
+
"upload:files:simply:data",
|
|
216
|
+
"upload:files:data:simply"
|
|
217
217
|
]
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
-
"version": "1.
|
|
220
|
+
"version": "1.3.0"
|
|
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.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"bugs": "https://github.com/SimplySF/simply-data/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^3.
|
|
9
|
-
"@salesforce/core": "^
|
|
10
|
-
"@salesforce/kit": "^3.1.
|
|
11
|
-
"@salesforce/sf-plugins-core": "^
|
|
8
|
+
"@oclif/core": "^3.26.4",
|
|
9
|
+
"@salesforce/core": "^7.3.1",
|
|
10
|
+
"@salesforce/kit": "^3.1.1",
|
|
11
|
+
"@salesforce/sf-plugins-core": "^9.0.5",
|
|
12
12
|
"csv-parse": "^5.5.5",
|
|
13
13
|
"csv-writer": "^1.6.0",
|
|
14
14
|
"form-data": "^4.0.0",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"p-queue": "^8.0.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
20
|
-
"@salesforce/cli-plugins-testkit": "^5.
|
|
21
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
19
|
+
"@oclif/plugin-command-snapshot": "^5.1.7",
|
|
20
|
+
"@salesforce/cli-plugins-testkit": "^5.3.0",
|
|
21
|
+
"@salesforce/plugin-command-reference": "^3.0.82",
|
|
22
22
|
"@salesforce/ts-sinon": "1.4.19",
|
|
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.
|
|
26
|
+
"oclif": "^4.9.0",
|
|
27
27
|
"shelljs": "^0.8.5",
|
|
28
28
|
"ts-node": "^10.9.2",
|
|
29
|
-
"typescript": "^5.4.
|
|
29
|
+
"typescript": "^5.4.5"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">=18.0.0"
|