@simplysf/simply-data 1.2.4 → 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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "commands": {
3
- "simply:data:files:upload": {
3
+ "simply:data:file:upload": {
4
4
  "aliases": [],
5
5
  "args": {},
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.",
6
+ "description": "Uploads a file to a Salesforce org.",
7
7
  "examples": [
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"
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 csv file that specifies the upload.",
37
+ "summary": "Path to the file to upload.",
39
38
  "hasDynamicHelp": false,
40
39
  "multiple": false,
41
40
  "type": "option"
42
41
  },
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,
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:files:upload",
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 files to a Salesforce org.",
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
- "files",
82
+ "file",
79
83
  "upload.js"
80
84
  ],
81
85
  "aliasPermutations": [],
82
86
  "permutations": [
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"
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:file:upload": {
113
+ "simply:data:files:upload": {
110
114
  "aliases": [],
111
115
  "args": {},
112
- "description": "Uploads a file to a Salesforce org.",
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 fileToUpload.txt --target-org myTargetOrg",
115
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
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 to upload.",
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
- "first-publish-location-id": {
149
- "name": "first-publish-location-id",
150
- "summary": "Specify a record Id that the file should be linked to.",
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:file:upload",
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 a file to a Salesforce org.",
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
- "file",
188
+ "files",
189
189
  "upload.js"
190
190
  ],
191
191
  "aliasPermutations": [],
192
192
  "permutations": [
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"
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.2.4"
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.2.4",
4
+ "version": "1.3.0",
5
5
  "author": "@ClayChipps",
6
6
  "bugs": "https://github.com/SimplySF/simply-data/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^3.26.4",
9
- "@salesforce/core": "^6.7.6",
10
- "@salesforce/kit": "^3.1.0",
11
- "@salesforce/sf-plugins-core": "^8.0.3",
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.0.9",
20
- "@salesforce/cli-plugins-testkit": "^5.2.1",
21
- "@salesforce/plugin-command-reference": "^3.0.73",
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.7.6",
26
+ "oclif": "^4.9.0",
27
27
  "shelljs": "^0.8.5",
28
28
  "ts-node": "^10.9.2",
29
- "typescript": "^5.4.3"
29
+ "typescript": "^5.4.5"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=18.0.0"