@simplysf/simply-data 1.1.7 → 1.1.9-dev.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 +9 -0
- package/README.md +47 -2
- package/lib/commands/simply/data/files/download.d.ts +13 -0
- package/lib/commands/simply/data/files/download.js +100 -0
- package/lib/commands/simply/data/files/download.js.map +1 -0
- package/lib/common/contentVersionTypes.d.ts +11 -1
- package/lib/common/contentVersionUtils.d.ts +2 -1
- package/lib/common/contentVersionUtils.js +10 -0
- package/lib/common/contentVersionUtils.js.map +1 -1
- package/messages/simply.data.files.download.md +33 -0
- package/npm-shrinkwrap.json +1303 -192
- package/oclif.lock +761 -67
- package/oclif.manifest.json +99 -1
- package/package.json +6 -5
package/oclif.manifest.json
CHANGED
|
@@ -102,6 +102,104 @@
|
|
|
102
102
|
"upload:file:data:simply"
|
|
103
103
|
]
|
|
104
104
|
},
|
|
105
|
+
"simply:data:files:download": {
|
|
106
|
+
"aliases": [],
|
|
107
|
+
"args": {},
|
|
108
|
+
"description": "Downloads files specified by a where clause to a ContentVersion query from a Salesforce org. By default, the plugin uses the REST API for the download as to allow for the streaming of large files without issue. This means that each file will use one REST API request.",
|
|
109
|
+
"examples": [
|
|
110
|
+
"<%= config.bin %> <%= command.id %> --where 'IsLatest=true' --target-org myTargetOrg",
|
|
111
|
+
"<%= config.bin %> <%= command.id %> --where 'IsLatest=true' --max-parallel-jobs 5 --target-org myTargetOrg"
|
|
112
|
+
],
|
|
113
|
+
"flags": {
|
|
114
|
+
"json": {
|
|
115
|
+
"description": "Format output as json.",
|
|
116
|
+
"helpGroup": "GLOBAL",
|
|
117
|
+
"name": "json",
|
|
118
|
+
"allowNo": false,
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
},
|
|
121
|
+
"api-version": {
|
|
122
|
+
"description": "Override the api version used for api requests made by this command",
|
|
123
|
+
"name": "api-version",
|
|
124
|
+
"hasDynamicHelp": false,
|
|
125
|
+
"multiple": false,
|
|
126
|
+
"type": "option"
|
|
127
|
+
},
|
|
128
|
+
"max-parallel-jobs": {
|
|
129
|
+
"description": "By default the plugin will only process a single file download at a time. You can increase this value to allow for quasi concurrent downloads. Please note that setting this value too high can cause performance issues.",
|
|
130
|
+
"name": "max-parallel-jobs",
|
|
131
|
+
"summary": "Maximum number of parallel jobs.",
|
|
132
|
+
"default": 1,
|
|
133
|
+
"hasDynamicHelp": false,
|
|
134
|
+
"multiple": false,
|
|
135
|
+
"type": "option"
|
|
136
|
+
},
|
|
137
|
+
"target-org": {
|
|
138
|
+
"char": "o",
|
|
139
|
+
"name": "target-org",
|
|
140
|
+
"noCacheDefault": true,
|
|
141
|
+
"required": true,
|
|
142
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
143
|
+
"hasDynamicHelp": true,
|
|
144
|
+
"multiple": false,
|
|
145
|
+
"type": "option"
|
|
146
|
+
},
|
|
147
|
+
"where": {
|
|
148
|
+
"description": "Provide a WHERE clause to allow the plugin to specify which ContentVersion records should be downloaded.",
|
|
149
|
+
"name": "where",
|
|
150
|
+
"required": true,
|
|
151
|
+
"summary": "WHERE clause for ContentVersion query.",
|
|
152
|
+
"hasDynamicHelp": false,
|
|
153
|
+
"multiple": false,
|
|
154
|
+
"type": "option"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"hasDynamicHelp": true,
|
|
158
|
+
"hiddenAliases": [],
|
|
159
|
+
"id": "simply:data:files:download",
|
|
160
|
+
"pluginAlias": "@simplysf/simply-data",
|
|
161
|
+
"pluginName": "@simplysf/simply-data",
|
|
162
|
+
"pluginType": "core",
|
|
163
|
+
"strict": true,
|
|
164
|
+
"summary": "Download files from a Salesforce org.",
|
|
165
|
+
"enableJsonFlag": true,
|
|
166
|
+
"isESM": true,
|
|
167
|
+
"relativePath": [
|
|
168
|
+
"lib",
|
|
169
|
+
"commands",
|
|
170
|
+
"simply",
|
|
171
|
+
"data",
|
|
172
|
+
"files",
|
|
173
|
+
"download.js"
|
|
174
|
+
],
|
|
175
|
+
"aliasPermutations": [],
|
|
176
|
+
"permutations": [
|
|
177
|
+
"simply:data:files:download",
|
|
178
|
+
"data:simply:files:download",
|
|
179
|
+
"data:files:simply:download",
|
|
180
|
+
"data:files:download:simply",
|
|
181
|
+
"simply:files:data:download",
|
|
182
|
+
"files:simply:data:download",
|
|
183
|
+
"files:data:simply:download",
|
|
184
|
+
"files:data:download:simply",
|
|
185
|
+
"simply:files:download:data",
|
|
186
|
+
"files:simply:download:data",
|
|
187
|
+
"files:download:simply:data",
|
|
188
|
+
"files:download:data:simply",
|
|
189
|
+
"simply:data:download:files",
|
|
190
|
+
"data:simply:download:files",
|
|
191
|
+
"data:download:simply:files",
|
|
192
|
+
"data:download:files:simply",
|
|
193
|
+
"simply:download:data:files",
|
|
194
|
+
"download:simply:data:files",
|
|
195
|
+
"download:data:simply:files",
|
|
196
|
+
"download:data:files:simply",
|
|
197
|
+
"simply:download:files:data",
|
|
198
|
+
"download:simply:files:data",
|
|
199
|
+
"download:files:simply:data",
|
|
200
|
+
"download:files:data:simply"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
105
203
|
"simply:data:files:upload": {
|
|
106
204
|
"aliases": [],
|
|
107
205
|
"args": {},
|
|
@@ -201,5 +299,5 @@
|
|
|
201
299
|
]
|
|
202
300
|
}
|
|
203
301
|
},
|
|
204
|
-
"version": "1.1.
|
|
302
|
+
"version": "1.1.9-dev.0"
|
|
205
303
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-data",
|
|
3
3
|
"description": "Utilities for working with data",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.9-dev.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"bugs": "https://github.com/SimplySF/simply-data/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^3.
|
|
8
|
+
"@oclif/core": "^3.25.0",
|
|
9
9
|
"@salesforce/core": "^6.7.0",
|
|
10
10
|
"@salesforce/kit": "^3.0.15",
|
|
11
11
|
"@salesforce/sf-plugins-core": "^7.1.14",
|
|
@@ -13,20 +13,21 @@
|
|
|
13
13
|
"csv-writer": "^1.6.0",
|
|
14
14
|
"form-data": "^4.0.0",
|
|
15
15
|
"got": "13.0.0",
|
|
16
|
+
"jsforce": "2.0.0-beta.29",
|
|
16
17
|
"p-queue": "^8.0.1"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@oclif/plugin-command-snapshot": "^5.0.9",
|
|
20
21
|
"@salesforce/cli-plugins-testkit": "^5.1.9",
|
|
21
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
22
|
+
"@salesforce/plugin-command-reference": "^3.0.70",
|
|
22
23
|
"@salesforce/ts-sinon": "1.4.19",
|
|
23
24
|
"@simplysf/dev-scripts": "^2.1.2",
|
|
24
25
|
"@types/shelljs": "^0.8.14",
|
|
25
26
|
"eslint-plugin-sf-plugin": "^1.17.3",
|
|
26
|
-
"oclif": "^4.
|
|
27
|
+
"oclif": "^4.5.2",
|
|
27
28
|
"shelljs": "^0.8.5",
|
|
28
29
|
"ts-node": "^10.9.2",
|
|
29
|
-
"typescript": "^5.
|
|
30
|
+
"typescript": "^5.4.2"
|
|
30
31
|
},
|
|
31
32
|
"engines": {
|
|
32
33
|
"node": ">=18.0.0"
|