@simplysf/simply-data 1.9.1 → 2.1.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.
@@ -1,5 +1,115 @@
1
1
  {
2
2
  "commands": {
3
+ "simply:data:file:upload": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Uploads a file to a Salesforce org.",
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
+ "file-path": {
35
+ "name": "file-path",
36
+ "required": true,
37
+ "summary": "Path to the file to upload.",
38
+ "hasDynamicHelp": false,
39
+ "multiple": false,
40
+ "type": "option"
41
+ },
42
+ "first-publish-location-id": {
43
+ "name": "first-publish-location-id",
44
+ "summary": "Specify a record Id that the file should be linked to.",
45
+ "hasDynamicHelp": false,
46
+ "multiple": false,
47
+ "type": "option"
48
+ },
49
+ "target-org": {
50
+ "char": "o",
51
+ "name": "target-org",
52
+ "noCacheDefault": true,
53
+ "required": true,
54
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
55
+ "hasDynamicHelp": true,
56
+ "multiple": false,
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"
65
+ }
66
+ },
67
+ "hasDynamicHelp": true,
68
+ "hiddenAliases": [],
69
+ "id": "simply:data:file:upload",
70
+ "pluginAlias": "@simplysf/simply-data",
71
+ "pluginName": "@simplysf/simply-data",
72
+ "pluginType": "core",
73
+ "strict": true,
74
+ "summary": "Upload a file to a Salesforce org.",
75
+ "enableJsonFlag": true,
76
+ "isESM": true,
77
+ "relativePath": [
78
+ "lib",
79
+ "commands",
80
+ "simply",
81
+ "data",
82
+ "file",
83
+ "upload.js"
84
+ ],
85
+ "aliasPermutations": [],
86
+ "permutations": [
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"
111
+ ]
112
+ },
3
113
  "simply:data:files:download": {
4
114
  "aliases": [],
5
115
  "args": {},
@@ -211,117 +321,7 @@
211
321
  "upload:files:simply:data",
212
322
  "upload:files:data:simply"
213
323
  ]
214
- },
215
- "simply:data:file:upload": {
216
- "aliases": [],
217
- "args": {},
218
- "description": "Uploads a file to a Salesforce org.",
219
- "examples": [
220
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --target-org myTargetOrg",
221
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
222
- ],
223
- "flags": {
224
- "json": {
225
- "description": "Format output as json.",
226
- "helpGroup": "GLOBAL",
227
- "name": "json",
228
- "allowNo": false,
229
- "type": "boolean"
230
- },
231
- "flags-dir": {
232
- "helpGroup": "GLOBAL",
233
- "name": "flags-dir",
234
- "summary": "Import flag values from a directory.",
235
- "hasDynamicHelp": false,
236
- "multiple": false,
237
- "type": "option"
238
- },
239
- "api-version": {
240
- "description": "Override the api version used for api requests made by this command",
241
- "name": "api-version",
242
- "hasDynamicHelp": false,
243
- "multiple": false,
244
- "type": "option"
245
- },
246
- "file-path": {
247
- "name": "file-path",
248
- "required": true,
249
- "summary": "Path to the file to upload.",
250
- "hasDynamicHelp": false,
251
- "multiple": false,
252
- "type": "option"
253
- },
254
- "first-publish-location-id": {
255
- "name": "first-publish-location-id",
256
- "summary": "Specify a record Id that the file should be linked to.",
257
- "hasDynamicHelp": false,
258
- "multiple": false,
259
- "type": "option"
260
- },
261
- "target-org": {
262
- "char": "o",
263
- "name": "target-org",
264
- "noCacheDefault": true,
265
- "required": true,
266
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
267
- "hasDynamicHelp": true,
268
- "multiple": false,
269
- "type": "option"
270
- },
271
- "title": {
272
- "name": "title",
273
- "summary": "Specify the title for the file being uploaded.",
274
- "hasDynamicHelp": false,
275
- "multiple": false,
276
- "type": "option"
277
- }
278
- },
279
- "hasDynamicHelp": true,
280
- "hiddenAliases": [],
281
- "id": "simply:data:file:upload",
282
- "pluginAlias": "@simplysf/simply-data",
283
- "pluginName": "@simplysf/simply-data",
284
- "pluginType": "core",
285
- "strict": true,
286
- "summary": "Upload a file to a Salesforce org.",
287
- "enableJsonFlag": true,
288
- "isESM": true,
289
- "relativePath": [
290
- "lib",
291
- "commands",
292
- "simply",
293
- "data",
294
- "file",
295
- "upload.js"
296
- ],
297
- "aliasPermutations": [],
298
- "permutations": [
299
- "simply:data:file:upload",
300
- "data:simply:file:upload",
301
- "data:file:simply:upload",
302
- "data:file:upload:simply",
303
- "simply:file:data:upload",
304
- "file:simply:data:upload",
305
- "file:data:simply:upload",
306
- "file:data:upload:simply",
307
- "simply:file:upload:data",
308
- "file:simply:upload:data",
309
- "file:upload:simply:data",
310
- "file:upload:data:simply",
311
- "simply:data:upload:file",
312
- "data:simply:upload:file",
313
- "data:upload:simply:file",
314
- "data:upload:file:simply",
315
- "simply:upload:data:file",
316
- "upload:simply:data:file",
317
- "upload:data:simply:file",
318
- "upload:data:file:simply",
319
- "simply:upload:file:data",
320
- "upload:simply:file:data",
321
- "upload:file:simply:data",
322
- "upload:file:data:simply"
323
- ]
324
324
  }
325
325
  },
326
- "version": "1.9.1"
326
+ "version": "2.1.0"
327
327
  }
package/package.json CHANGED
@@ -1,34 +1,32 @@
1
1
  {
2
2
  "name": "@simplysf/simply-data",
3
3
  "description": "Utilities for working with data",
4
- "version": "1.9.1",
4
+ "version": "2.1.0",
5
5
  "author": "@ClayChipps",
6
6
  "bugs": "https://github.com/SimplySF/simply-data/issues",
7
7
  "dependencies": {
8
- "@oclif/core": "^4.0.31",
9
- "@salesforce/core": "^8.6.4",
10
- "@salesforce/kit": "^3.2.3",
11
- "@salesforce/sf-plugins-core": "^12.0.11",
12
- "csv-parse": "^5.5.6",
8
+ "@oclif/core": "^4.11.2",
9
+ "@salesforce/core": "^8.30.0",
10
+ "@salesforce/kit": "^3.2.6",
11
+ "@salesforce/sf-plugins-core": "^12.2.16",
12
+ "csv-parse": "^6.2.1",
13
13
  "csv-writer": "^1.6.0",
14
- "form-data": "^4.0.1",
15
- "got": "13.0.0",
16
- "p-queue": "^8.0.1"
14
+ "form-data": "^4.0.5",
15
+ "got": "15.0.5",
16
+ "p-queue": "^9.2.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@oclif/plugin-command-snapshot": "^5.2.21",
20
- "@salesforce/cli-plugins-testkit": "^5.3.39",
21
- "@salesforce/plugin-command-reference": "^3.1.32",
22
- "@salesforce/ts-sinon": "^1.4.29",
23
- "@simplysf/dev-scripts": "^3.3.1",
24
- "eslint-plugin-sf-plugin": "^1.20.11",
25
- "nock": "^13.5.5",
26
- "oclif": "^4.15.19",
27
- "ts-node": "^10.9.2",
28
- "typescript": "^5.6.3"
19
+ "@oclif/plugin-command-snapshot": "^5.3.19",
20
+ "@salesforce/cli-plugins-testkit": "^5.3.57",
21
+ "@salesforce/plugin-command-reference": "^3.1.99",
22
+ "@salesforce/ts-sinon": "^1.4.34",
23
+ "@simplysf/dev-scripts": "^11.1.1",
24
+ "eslint-plugin-sf-plugin": "^1.20.33",
25
+ "nock": "^14.0.15",
26
+ "oclif": "^4.23.0"
29
27
  },
30
28
  "engines": {
31
- "node": ">=18.0.0"
29
+ "node": ">=22.0.0"
32
30
  },
33
31
  "files": [
34
32
  "/lib",
@@ -47,7 +45,7 @@
47
45
  "sf-plugin",
48
46
  "sf"
49
47
  ],
50
- "license": "BSD-3-Clause",
48
+ "license": "Apache-2.0",
51
49
  "oclif": {
52
50
  "bin": "sf",
53
51
  "commands": "./lib/commands",
@@ -83,6 +81,7 @@
83
81
  "clean-all": "sf-clean all",
84
82
  "compile": "wireit",
85
83
  "docs": "sf-docs",
84
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
86
85
  "format": "wireit",
87
86
  "link-check": "wireit",
88
87
  "lint": "wireit",
@@ -204,7 +203,7 @@
204
203
  "output": []
205
204
  },
206
205
  "link-check": {
207
- "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|%s\" --markdown --retry --directory-listing --verbosity error",
206
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|localhost|%s\" --markdown --retry --directory-listing --verbosity error",
208
207
  "files": [
209
208
  "./*.md",
210
209
  "./!(CHANGELOG).md",
package/CHANGELOG.md DELETED
@@ -1,236 +0,0 @@
1
- ## [1.9.1](https://github.com/SimplySF/simply-data/compare/1.9.0...1.9.1) (2024-12-27)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * update to use simply easy spaces for tests ([64dea95](https://github.com/SimplySF/simply-data/commit/64dea953b3de62246bb3b2e4ce7648462d72d938))
7
-
8
-
9
-
10
- # [1.9.0](https://github.com/SimplySF/simply-data/compare/1.8.0...1.9.0) (2024-12-26)
11
-
12
-
13
- ### Features
14
-
15
- * fix issue in nuts ([a40140c](https://github.com/SimplySF/simply-data/commit/a40140cda5af9678ac3c257e3f6ec07a0ab81c28))
16
-
17
-
18
-
19
- # [1.8.0](https://github.com/SimplySF/simply-data/compare/1.7.0...1.8.0) (2024-11-03)
20
-
21
-
22
- ### Features
23
-
24
- * bump dependencies ([7933238](https://github.com/SimplySF/simply-data/commit/7933238674e31eb993949efbef9eed5ac295845d))
25
-
26
-
27
-
28
- # [1.7.0](https://github.com/SimplySF/simply-data/compare/1.6.2...1.7.0) (2024-06-28)
29
-
30
-
31
- ### Features
32
-
33
- * bump deps ([e25862c](https://github.com/SimplySF/simply-data/commit/e25862c9ed38730a3c4d114c0680d4fed4a698a0))
34
-
35
-
36
-
37
- ## [1.6.2](https://github.com/SimplySF/simply-data/compare/1.6.1...1.6.2) (2024-06-21)
38
-
39
-
40
- ### Bug Fixes
41
-
42
- * **deps:** bump braces from 3.0.2 to 3.0.3 ([7d3f5c3](https://github.com/SimplySF/simply-data/commit/7d3f5c311c4b89731d2229ff9953c008d21c968f))
43
-
44
-
45
-
46
- ## [1.6.1](https://github.com/SimplySF/simply-data/compare/1.6.0...1.6.1) (2024-06-03)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * **deps:** bump @salesforce/kit from 3.1.1 to 3.1.2 ([609aa41](https://github.com/SimplySF/simply-data/commit/609aa41044f8ce63e8e3ee9ad98a160a62c4a619))
52
-
53
-
54
-
55
- # [1.6.0](https://github.com/SimplySF/simply-data/compare/1.5.0...1.6.0) (2024-05-19)
56
-
57
-
58
- ### Features
59
-
60
- * bump deps ([e0223d4](https://github.com/SimplySF/simply-data/commit/e0223d447af107661973ae63aead2e8e0e2e43b5))
61
-
62
-
63
-
64
- # [1.5.0](https://github.com/SimplySF/simply-data/compare/1.4.0...1.5.0) (2024-05-05)
65
-
66
-
67
- ### Features
68
-
69
- * fix incorrect deps ([98915e6](https://github.com/SimplySF/simply-data/commit/98915e6b7b82e711c71841d07a66cda19e36de6c))
70
-
71
-
72
-
73
- # [1.4.0](https://github.com/SimplySF/simply-data/compare/1.3.1...1.4.0) (2024-05-05)
74
-
75
-
76
- ### Features
77
-
78
- * add download files ([96b84cc](https://github.com/SimplySF/simply-data/commit/96b84cc7e291d186372c07ab98b932ae985c48cd))
79
-
80
-
81
-
82
- ## [1.3.1](https://github.com/SimplySF/simply-data/compare/1.3.0...1.3.1) (2024-05-04)
83
-
84
-
85
- ### Bug Fixes
86
-
87
- * **deps:** bump @salesforce/core from 7.3.1 to 7.3.3 ([ae5fada](https://github.com/SimplySF/simply-data/commit/ae5fada3e0aa5a43e7afbff5135120aa278eca05))
88
-
89
-
90
-
91
- # [1.3.0](https://github.com/SimplySF/simply-data/compare/1.2.4...1.3.0) (2024-04-26)
92
-
93
-
94
- ### Features
95
-
96
- * upgrade sf dependencies ([b723496](https://github.com/SimplySF/simply-data/commit/b723496bdc95e346dcf2d27cddcef6c97fe603c4))
97
-
98
-
99
-
100
- ## [1.2.4](https://github.com/SimplySF/simply-data/compare/1.2.3...1.2.4) (2024-04-25)
101
-
102
-
103
- ### Bug Fixes
104
-
105
- * **deps:** bump @oclif/core from 3.26.0 to 3.26.4 ([fcdbae2](https://github.com/SimplySF/simply-data/commit/fcdbae2b9e03fd33bf2a682a6bf0dc3b64217ebc))
106
-
107
-
108
-
109
- ## [1.2.3](https://github.com/SimplySF/simply-data/compare/1.2.2...1.2.3) (2024-04-07)
110
-
111
-
112
- ### Bug Fixes
113
-
114
- * **deps:** bump @salesforce/sf-plugins-core from 8.0.0 to 8.0.3 ([c6e435e](https://github.com/SimplySF/simply-data/commit/c6e435ec4fba283ce1017c07d45d9543f90b61ed))
115
-
116
-
117
-
118
- ## [1.2.2](https://github.com/SimplySF/simply-data/compare/1.2.1...1.2.2) (2024-04-07)
119
-
120
-
121
- ### Bug Fixes
122
-
123
- * **deps:** bump @salesforce/core from 6.7.3 to 6.7.6 ([e1007d6](https://github.com/SimplySF/simply-data/commit/e1007d6219e9f3d4940fc38231d60dfe0aeb5020))
124
-
125
-
126
-
127
- ## [1.2.1](https://github.com/SimplySF/simply-data/compare/1.2.0...1.2.1) (2024-04-03)
128
-
129
-
130
- ### Bug Fixes
131
-
132
- * **deps:** bump @salesforce/kit from 3.0.15 to 3.1.0 ([e34b2a3](https://github.com/SimplySF/simply-data/commit/e34b2a3588be2cf720c7c06f80b77643b3c06d78))
133
-
134
-
135
-
136
- # [1.2.0](https://github.com/SimplySF/simply-data/compare/1.1.9...1.2.0) (2024-03-24)
137
-
138
-
139
- ### Features
140
-
141
- * upgrade to sf-plugins-core 8 ([f932994](https://github.com/SimplySF/simply-data/commit/f9329944373d80cbdea0162a9868936e072e4667))
142
-
143
-
144
-
145
- ## [1.1.9](https://github.com/SimplySF/simply-data/compare/1.1.8...1.1.9) (2024-03-19)
146
-
147
-
148
- ### Bug Fixes
149
-
150
- * incorrect tagging logic ([f08bd33](https://github.com/SimplySF/simply-data/commit/f08bd3343e3a967c184085305ab62e0320f8cb30))
151
-
152
-
153
-
154
- ## [1.1.8](https://github.com/SimplySF/simply-data/compare/1.1.7...1.1.8) (2024-03-13)
155
-
156
-
157
- ### Bug Fixes
158
-
159
- * **deps:** bump @oclif/core from 3.23.0 to 3.25.0 ([82656fb](https://github.com/SimplySF/simply-data/commit/82656fb8bc6cc80864dcb46d09d186977d597282))
160
-
161
-
162
-
163
- ## [1.1.7](https://github.com/SimplySF/simply-data/compare/1.1.6...1.1.7) (2024-03-05)
164
-
165
-
166
- ### Bug Fixes
167
-
168
- * **deps:** bump @salesforce/sf-plugins-core from 7.1.13 to 7.1.14 ([1545837](https://github.com/SimplySF/simply-data/commit/154583727e624ee6397eb07b3904e7fef50d4604))
169
-
170
-
171
-
172
- ## [1.1.6](https://github.com/SimplySF/simply-data/compare/1.1.5...1.1.6) (2024-03-05)
173
-
174
-
175
- ### Bug Fixes
176
-
177
- * **deps:** bump @salesforce/core from 6.5.6 to 6.7.0 ([d4e10ff](https://github.com/SimplySF/simply-data/commit/d4e10ffa4cd9b60bc9fc71c785812bfc8db51cf4))
178
- * **deps:** bump csv-parse from 5.5.3 to 5.5.5 ([5cd77b5](https://github.com/SimplySF/simply-data/commit/5cd77b5b9c047b92df4387bc09de223bc84277b7))
179
-
180
-
181
-
182
- ## [1.1.5](https://github.com/SimplySF/simply-data/compare/1.1.4...1.1.5) (2024-02-28)
183
-
184
-
185
- ### Bug Fixes
186
-
187
- * **deps:** bump @oclif/core from 3.19.6 to 3.20.0 ([2139b3e](https://github.com/SimplySF/simply-data/commit/2139b3ea9b2badb9f938ee594db37969ad8d3c16))
188
-
189
-
190
-
191
- ## [1.1.4](https://github.com/SimplySF/simply-data/compare/1.1.3...1.1.4) (2024-02-28)
192
-
193
-
194
- ### Bug Fixes
195
-
196
- * **deps:** bump @salesforce/sf-plugins-core from 5.0.13 to 7.1.13 ([1b896c8](https://github.com/SimplySF/simply-data/commit/1b896c8b93ca48a00e439606c3dcf377a908dab2))
197
-
198
-
199
-
200
- ## [1.1.3](https://github.com/SimplySF/simply-data/compare/1.1.2...1.1.3) (2024-02-27)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * incorrect readme links ([c23eaea](https://github.com/SimplySF/simply-data/commit/c23eaea935898034de6da19d010aec55b1544cd5))
206
-
207
-
208
-
209
- ## [1.1.2](https://github.com/SimplySF/simply-data/compare/1.1.1...1.1.2) (2024-02-26)
210
-
211
-
212
- ### Bug Fixes
213
-
214
- * **deps:** bump @salesforce/core from 6.5.3 to 6.5.6 ([ce7ecf0](https://github.com/SimplySF/simply-data/commit/ce7ecf06d14b7698c0bc4efc1565d1496ead8958))
215
-
216
-
217
-
218
- ## [1.1.1](https://github.com/SimplySF/simply-data/compare/1.1.0...1.1.1) (2024-02-26)
219
-
220
-
221
- ### Bug Fixes
222
-
223
- * **deps:** bump @oclif/core from 3.19.4 to 3.19.6 ([0f0676d](https://github.com/SimplySF/simply-data/commit/0f0676d3d88ccdcb6e02efbe51f7cff01d6fde42))
224
- * **deps:** bump ip from 2.0.0 to 2.0.1 ([1bf5e30](https://github.com/SimplySF/simply-data/commit/1bf5e3056cdfb9382055c518163baad210af4199))
225
-
226
-
227
-
228
- # [1.1.0](https://github.com/SimplySF/simply-data/compare/aaa00ae32db5b9864e45dbe5d1b42ef2a7ab6837...1.1.0) (2024-02-24)
229
-
230
-
231
- ### Features
232
-
233
- * update with simply versions ([aaa00ae](https://github.com/SimplySF/simply-data/commit/aaa00ae32db5b9864e45dbe5d1b42ef2a7ab6837))
234
-
235
-
236
-