@simplysf/simply-data 3.0.2 → 3.0.4

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
@@ -78,7 +78,7 @@ FLAG DESCRIPTIONS
78
78
  Setup and Configuration" permission — the command warns and proceeds rather than failing.
79
79
  ```
80
80
 
81
- _See code: [lib/commands/simply/data/file/upload.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.2/packages/simply-data/lib/commands/simply/data/file/upload.js)_
81
+ _See code: [lib/commands/simply/data/file/upload.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.4/packages/simply-data/lib/commands/simply/data/file/upload.js)_
82
82
 
83
83
  ## `sf simply data files download`
84
84
 
@@ -140,7 +140,7 @@ FLAG DESCRIPTIONS
140
140
  Provide a WHERE clause to allow the plugin to specify which ContentVersion records should be downloaded.
141
141
  ```
142
142
 
143
- _See code: [lib/commands/simply/data/files/download.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.2/packages/simply-data/lib/commands/simply/data/files/download.js)_
143
+ _See code: [lib/commands/simply/data/files/download.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.4/packages/simply-data/lib/commands/simply/data/files/download.js)_
144
144
 
145
145
  ## `sf simply data files upload`
146
146
 
@@ -206,7 +206,7 @@ FLAG DESCRIPTIONS
206
206
  quasi concurrent uploads. Please note that setting this value too high can cause performance issues.
207
207
  ```
208
208
 
209
- _See code: [lib/commands/simply/data/files/upload.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.2/packages/simply-data/lib/commands/simply/data/files/upload.js)_
209
+ _See code: [lib/commands/simply/data/files/upload.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-data@3.0.4/packages/simply-data/lib/commands/simply/data/files/upload.js)_
210
210
  <!-- commandsstop -->
211
211
 
212
212
  ## License
@@ -1,5 +1,124 @@
1
1
  {
2
2
  "commands": {
3
+ "simply:data:file:upload": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Uploads a file to a Salesforce org.\n\nOnly the file's name is sent to the org — Salesforce stores it as the ContentVersion's PathOnClient and derives FileExtension and FileType from it — so the local directory the file came from is never uploaded.",
7
+ "examples": [
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
+ ],
11
+ "flags": {
12
+ "json": {
13
+ "description": "Format output as json.",
14
+ "helpGroup": "GLOBAL",
15
+ "name": "json",
16
+ "allowNo": false,
17
+ "type": "boolean"
18
+ },
19
+ "flags-dir": {
20
+ "helpGroup": "GLOBAL",
21
+ "name": "flags-dir",
22
+ "summary": "Import flag values from a directory.",
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
26
+ },
27
+ "api-version": {
28
+ "description": "Override the api version used for api requests made by this command",
29
+ "name": "api-version",
30
+ "hasDynamicHelp": false,
31
+ "multiple": false,
32
+ "type": "option"
33
+ },
34
+ "target-org": {
35
+ "char": "o",
36
+ "name": "target-org",
37
+ "noCacheDefault": true,
38
+ "required": true,
39
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
40
+ "hasDynamicHelp": true,
41
+ "multiple": false,
42
+ "type": "option"
43
+ },
44
+ "max-api-usage": {
45
+ "description": "Checked before any request is made, so a run that would exceed its budget stops without doing partial work. The percentage applies to the requests the org has left today, not to its daily maximum — an org that has already used most of its allocation gets a proportionally smaller budget.\n\nNote that uploading a file costs two API requests, not one: the upload itself, and a follow-up query for the resulting ContentDocumentId.\n\nA run that cannot finish within the org's remaining requests is refused regardless of this value. To allow a larger share, raise it; to allow the maximum, pass 100.\n\nIf the org's remaining allocation can't be read — reading it falls back to the limits API, which needs the \"View Setup and Configuration\" permission — the command warns and proceeds rather than failing.",
46
+ "name": "max-api-usage",
47
+ "summary": "Maximum percentage of the org's remaining API requests this run may consume.",
48
+ "default": 20,
49
+ "hasDynamicHelp": false,
50
+ "multiple": false,
51
+ "type": "option"
52
+ },
53
+ "file-path": {
54
+ "name": "file-path",
55
+ "required": true,
56
+ "summary": "Path to the file to upload. May be relative or absolute; only the file's name is sent to the org.",
57
+ "hasDynamicHelp": false,
58
+ "multiple": false,
59
+ "type": "option"
60
+ },
61
+ "first-publish-location-id": {
62
+ "name": "first-publish-location-id",
63
+ "summary": "Specify a record Id that the file should be linked to.",
64
+ "hasDynamicHelp": false,
65
+ "multiple": false,
66
+ "type": "option"
67
+ },
68
+ "title": {
69
+ "name": "title",
70
+ "summary": "Specify the title for the file being uploaded.",
71
+ "hasDynamicHelp": false,
72
+ "multiple": false,
73
+ "type": "option"
74
+ }
75
+ },
76
+ "hasDynamicHelp": true,
77
+ "hiddenAliases": [],
78
+ "id": "simply:data:file:upload",
79
+ "pluginAlias": "@simplysf/simply-data",
80
+ "pluginName": "@simplysf/simply-data",
81
+ "pluginType": "core",
82
+ "strict": true,
83
+ "summary": "Upload a file to a Salesforce org.",
84
+ "enableJsonFlag": true,
85
+ "isESM": true,
86
+ "relativePath": [
87
+ "lib",
88
+ "commands",
89
+ "simply",
90
+ "data",
91
+ "file",
92
+ "upload.js"
93
+ ],
94
+ "aliasPermutations": [],
95
+ "permutations": [
96
+ "simply:data:file:upload",
97
+ "data:simply:file:upload",
98
+ "data:file:simply:upload",
99
+ "data:file:upload:simply",
100
+ "simply:file:data:upload",
101
+ "file:simply:data:upload",
102
+ "file:data:simply:upload",
103
+ "file:data:upload:simply",
104
+ "simply:file:upload:data",
105
+ "file:simply:upload:data",
106
+ "file:upload:simply:data",
107
+ "file:upload:data:simply",
108
+ "simply:data:upload:file",
109
+ "data:simply:upload:file",
110
+ "data:upload:simply:file",
111
+ "data:upload:file:simply",
112
+ "simply:upload:data:file",
113
+ "upload:simply:data:file",
114
+ "upload:data:simply:file",
115
+ "upload:data:file:simply",
116
+ "simply:upload:file:data",
117
+ "upload:simply:file:data",
118
+ "upload:file:simply:data",
119
+ "upload:file:data:simply"
120
+ ]
121
+ },
3
122
  "simply:data:files:download": {
4
123
  "aliases": [],
5
124
  "args": {},
@@ -229,126 +348,7 @@
229
348
  "upload:files:simply:data",
230
349
  "upload:files:data:simply"
231
350
  ]
232
- },
233
- "simply:data:file:upload": {
234
- "aliases": [],
235
- "args": {},
236
- "description": "Uploads a file to a Salesforce org.\n\nOnly the file's name is sent to the org — Salesforce stores it as the ContentVersion's PathOnClient and derives FileExtension and FileType from it — so the local directory the file came from is never uploaded.",
237
- "examples": [
238
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --target-org myTargetOrg",
239
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
240
- ],
241
- "flags": {
242
- "json": {
243
- "description": "Format output as json.",
244
- "helpGroup": "GLOBAL",
245
- "name": "json",
246
- "allowNo": false,
247
- "type": "boolean"
248
- },
249
- "flags-dir": {
250
- "helpGroup": "GLOBAL",
251
- "name": "flags-dir",
252
- "summary": "Import flag values from a directory.",
253
- "hasDynamicHelp": false,
254
- "multiple": false,
255
- "type": "option"
256
- },
257
- "api-version": {
258
- "description": "Override the api version used for api requests made by this command",
259
- "name": "api-version",
260
- "hasDynamicHelp": false,
261
- "multiple": false,
262
- "type": "option"
263
- },
264
- "target-org": {
265
- "char": "o",
266
- "name": "target-org",
267
- "noCacheDefault": true,
268
- "required": true,
269
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
270
- "hasDynamicHelp": true,
271
- "multiple": false,
272
- "type": "option"
273
- },
274
- "max-api-usage": {
275
- "description": "Checked before any request is made, so a run that would exceed its budget stops without doing partial work. The percentage applies to the requests the org has left today, not to its daily maximum — an org that has already used most of its allocation gets a proportionally smaller budget.\n\nNote that uploading a file costs two API requests, not one: the upload itself, and a follow-up query for the resulting ContentDocumentId.\n\nA run that cannot finish within the org's remaining requests is refused regardless of this value. To allow a larger share, raise it; to allow the maximum, pass 100.\n\nIf the org's remaining allocation can't be read — reading it falls back to the limits API, which needs the \"View Setup and Configuration\" permission — the command warns and proceeds rather than failing.",
276
- "name": "max-api-usage",
277
- "summary": "Maximum percentage of the org's remaining API requests this run may consume.",
278
- "default": 20,
279
- "hasDynamicHelp": false,
280
- "multiple": false,
281
- "type": "option"
282
- },
283
- "file-path": {
284
- "name": "file-path",
285
- "required": true,
286
- "summary": "Path to the file to upload. May be relative or absolute; only the file's name is sent to the org.",
287
- "hasDynamicHelp": false,
288
- "multiple": false,
289
- "type": "option"
290
- },
291
- "first-publish-location-id": {
292
- "name": "first-publish-location-id",
293
- "summary": "Specify a record Id that the file should be linked to.",
294
- "hasDynamicHelp": false,
295
- "multiple": false,
296
- "type": "option"
297
- },
298
- "title": {
299
- "name": "title",
300
- "summary": "Specify the title for the file being uploaded.",
301
- "hasDynamicHelp": false,
302
- "multiple": false,
303
- "type": "option"
304
- }
305
- },
306
- "hasDynamicHelp": true,
307
- "hiddenAliases": [],
308
- "id": "simply:data:file:upload",
309
- "pluginAlias": "@simplysf/simply-data",
310
- "pluginName": "@simplysf/simply-data",
311
- "pluginType": "core",
312
- "strict": true,
313
- "summary": "Upload a file to a Salesforce org.",
314
- "enableJsonFlag": true,
315
- "isESM": true,
316
- "relativePath": [
317
- "lib",
318
- "commands",
319
- "simply",
320
- "data",
321
- "file",
322
- "upload.js"
323
- ],
324
- "aliasPermutations": [],
325
- "permutations": [
326
- "simply:data:file:upload",
327
- "data:simply:file:upload",
328
- "data:file:simply:upload",
329
- "data:file:upload:simply",
330
- "simply:file:data:upload",
331
- "file:simply:data:upload",
332
- "file:data:simply:upload",
333
- "file:data:upload:simply",
334
- "simply:file:upload:data",
335
- "file:simply:upload:data",
336
- "file:upload:simply:data",
337
- "file:upload:data:simply",
338
- "simply:data:upload:file",
339
- "data:simply:upload:file",
340
- "data:upload:simply:file",
341
- "data:upload:file:simply",
342
- "simply:upload:data:file",
343
- "upload:simply:data:file",
344
- "upload:data:simply:file",
345
- "upload:data:file:simply",
346
- "simply:upload:file:data",
347
- "upload:simply:file:data",
348
- "upload:file:simply:data",
349
- "upload:file:data:simply"
350
- ]
351
351
  }
352
352
  },
353
- "version": "3.0.2"
353
+ "version": "3.0.4"
354
354
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-data",
3
3
  "description": "Utilities for working with data",
4
- "version": "3.0.2",
4
+ "version": "3.0.4",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -67,14 +67,14 @@
67
67
  "@salesforce/sf-plugins-core": "^12.2.16",
68
68
  "@simplysf/simply-core": "^1.6.12",
69
69
  "@simplysf/simply-data-core": "^0.3.12",
70
- "@simplysf/simply-plugin-kit": "^1.0.9",
70
+ "@simplysf/simply-plugin-kit": "^1.0.10",
71
71
  "csv-parse": "^7.0.3",
72
- "p-queue": "^9.2.0"
72
+ "p-queue": "^9.3.5"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@oclif/plugin-command-snapshot": "^5.4.0",
76
76
  "@salesforce/plugin-command-reference": "^3.1.134",
77
- "@vitest/coverage-v8": "^4.1.10",
77
+ "@vitest/coverage-v8": "^4.1.12",
78
78
  "vitest": "^4.1.10"
79
79
  },
80
80
  "publishConfig": {
@@ -206,5 +206,5 @@
206
206
  "output": []
207
207
  }
208
208
  },
209
- "gitHead": "a56733c880575b87e67571f179b98ab4f8990242"
209
+ "gitHead": "41fce7ec994f7d966583ad21a19350660020342f"
210
210
  }