@simplysf/simply-data 1.1.9 → 1.2.1

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:file:upload": {
3
+ "simply:data:files:upload": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "Uploads a file to a Salesforce org.",
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.",
7
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"
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"
10
10
  ],
11
11
  "flags": {
12
12
  "json": {
@@ -16,6 +16,14 @@
16
16
  "allowNo": false,
17
17
  "type": "boolean"
18
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
+ },
19
27
  "api-version": {
20
28
  "description": "Override the api version used for api requests made by this command",
21
29
  "name": "api-version",
@@ -24,16 +32,19 @@
24
32
  "type": "option"
25
33
  },
26
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.",
27
36
  "name": "file-path",
28
37
  "required": true,
29
- "summary": "Path to the file to upload.",
38
+ "summary": "Path to the csv file that specifies the upload.",
30
39
  "hasDynamicHelp": false,
31
40
  "multiple": false,
32
41
  "type": "option"
33
42
  },
34
- "first-publish-location-id": {
35
- "name": "first-publish-location-id",
36
- "summary": "Specify a record Id that the file should be linked to.",
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,
37
48
  "hasDynamicHelp": false,
38
49
  "multiple": false,
39
50
  "type": "option"
@@ -47,23 +58,16 @@
47
58
  "hasDynamicHelp": true,
48
59
  "multiple": false,
49
60
  "type": "option"
50
- },
51
- "title": {
52
- "name": "title",
53
- "summary": "Specify the title for the file being uploaded.",
54
- "hasDynamicHelp": false,
55
- "multiple": false,
56
- "type": "option"
57
61
  }
58
62
  },
59
63
  "hasDynamicHelp": true,
60
64
  "hiddenAliases": [],
61
- "id": "simply:data:file:upload",
65
+ "id": "simply:data:files:upload",
62
66
  "pluginAlias": "@simplysf/simply-data",
63
67
  "pluginName": "@simplysf/simply-data",
64
68
  "pluginType": "core",
65
69
  "strict": true,
66
- "summary": "Upload a file to a Salesforce org.",
70
+ "summary": "Upload files to a Salesforce org.",
67
71
  "enableJsonFlag": true,
68
72
  "isESM": true,
69
73
  "relativePath": [
@@ -71,44 +75,44 @@
71
75
  "commands",
72
76
  "simply",
73
77
  "data",
74
- "file",
78
+ "files",
75
79
  "upload.js"
76
80
  ],
77
81
  "aliasPermutations": [],
78
82
  "permutations": [
79
- "simply:data:file:upload",
80
- "data:simply:file:upload",
81
- "data:file:simply:upload",
82
- "data:file:upload:simply",
83
- "simply:file:data:upload",
84
- "file:simply:data:upload",
85
- "file:data:simply:upload",
86
- "file:data:upload:simply",
87
- "simply:file:upload:data",
88
- "file:simply:upload:data",
89
- "file:upload:simply:data",
90
- "file:upload:data:simply",
91
- "simply:data:upload:file",
92
- "data:simply:upload:file",
93
- "data:upload:simply:file",
94
- "data:upload:file:simply",
95
- "simply:upload:data:file",
96
- "upload:simply:data:file",
97
- "upload:data:simply:file",
98
- "upload:data:file:simply",
99
- "simply:upload:file:data",
100
- "upload:simply:file:data",
101
- "upload:file:simply:data",
102
- "upload:file:data:simply"
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"
103
107
  ]
104
108
  },
105
- "simply:data:files:upload": {
109
+ "simply:data:file:upload": {
106
110
  "aliases": [],
107
111
  "args": {},
108
- "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.",
112
+ "description": "Uploads a file to a Salesforce org.",
109
113
  "examples": [
110
- "<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --target-org myTargetOrg",
111
- "<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --max-parallel-jobs 5 --target-org myTargetOrg"
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"
112
116
  ],
113
117
  "flags": {
114
118
  "json": {
@@ -118,6 +122,14 @@
118
122
  "allowNo": false,
119
123
  "type": "boolean"
120
124
  },
125
+ "flags-dir": {
126
+ "helpGroup": "GLOBAL",
127
+ "name": "flags-dir",
128
+ "summary": "Import flag values from a directory.",
129
+ "hasDynamicHelp": false,
130
+ "multiple": false,
131
+ "type": "option"
132
+ },
121
133
  "api-version": {
122
134
  "description": "Override the api version used for api requests made by this command",
123
135
  "name": "api-version",
@@ -126,19 +138,16 @@
126
138
  "type": "option"
127
139
  },
128
140
  "file-path": {
129
- "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.",
130
141
  "name": "file-path",
131
142
  "required": true,
132
- "summary": "Path to the csv file that specifies the upload.",
143
+ "summary": "Path to the file to upload.",
133
144
  "hasDynamicHelp": false,
134
145
  "multiple": false,
135
146
  "type": "option"
136
147
  },
137
- "max-parallel-jobs": {
138
- "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.",
139
- "name": "max-parallel-jobs",
140
- "summary": "Maximum number of parallel jobs.",
141
- "default": 1,
148
+ "first-publish-location-id": {
149
+ "name": "first-publish-location-id",
150
+ "summary": "Specify a record Id that the file should be linked to.",
142
151
  "hasDynamicHelp": false,
143
152
  "multiple": false,
144
153
  "type": "option"
@@ -152,16 +161,23 @@
152
161
  "hasDynamicHelp": true,
153
162
  "multiple": false,
154
163
  "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"
155
171
  }
156
172
  },
157
173
  "hasDynamicHelp": true,
158
174
  "hiddenAliases": [],
159
- "id": "simply:data:files:upload",
175
+ "id": "simply:data:file:upload",
160
176
  "pluginAlias": "@simplysf/simply-data",
161
177
  "pluginName": "@simplysf/simply-data",
162
178
  "pluginType": "core",
163
179
  "strict": true,
164
- "summary": "Upload files to a Salesforce org.",
180
+ "summary": "Upload a file to a Salesforce org.",
165
181
  "enableJsonFlag": true,
166
182
  "isESM": true,
167
183
  "relativePath": [
@@ -169,37 +185,37 @@
169
185
  "commands",
170
186
  "simply",
171
187
  "data",
172
- "files",
188
+ "file",
173
189
  "upload.js"
174
190
  ],
175
191
  "aliasPermutations": [],
176
192
  "permutations": [
177
- "simply:data:files:upload",
178
- "data:simply:files:upload",
179
- "data:files:simply:upload",
180
- "data:files:upload:simply",
181
- "simply:files:data:upload",
182
- "files:simply:data:upload",
183
- "files:data:simply:upload",
184
- "files:data:upload:simply",
185
- "simply:files:upload:data",
186
- "files:simply:upload:data",
187
- "files:upload:simply:data",
188
- "files:upload:data:simply",
189
- "simply:data:upload:files",
190
- "data:simply:upload:files",
191
- "data:upload:simply:files",
192
- "data:upload:files:simply",
193
- "simply:upload:data:files",
194
- "upload:simply:data:files",
195
- "upload:data:simply:files",
196
- "upload:data:files:simply",
197
- "simply:upload:files:data",
198
- "upload:simply:files:data",
199
- "upload:files:simply:data",
200
- "upload:files:data:simply"
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"
201
217
  ]
202
218
  }
203
219
  },
204
- "version": "1.1.9"
220
+ "version": "1.2.1"
205
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.1.9",
4
+ "version": "1.2.1",
5
5
  "author": "@ClayChipps",
6
6
  "bugs": "https://github.com/SimplySF/simply-data/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^3.25.0",
9
9
  "@salesforce/core": "^6.7.0",
10
- "@salesforce/kit": "^3.0.15",
11
- "@salesforce/sf-plugins-core": "^7.1.14",
10
+ "@salesforce/kit": "^3.1.0",
11
+ "@salesforce/sf-plugins-core": "^8.0.0",
12
12
  "csv-parse": "^5.5.5",
13
13
  "csv-writer": "^1.6.0",
14
14
  "form-data": "^4.0.0",
@@ -17,16 +17,16 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oclif/plugin-command-snapshot": "^5.0.9",
20
- "@salesforce/cli-plugins-testkit": "^5.1.9",
21
- "@salesforce/plugin-command-reference": "^3.0.70",
20
+ "@salesforce/cli-plugins-testkit": "^5.1.11",
21
+ "@salesforce/plugin-command-reference": "^3.0.73",
22
22
  "@salesforce/ts-sinon": "1.4.19",
23
23
  "@simplysf/dev-scripts": "^2.1.2",
24
24
  "@types/shelljs": "^0.8.14",
25
- "eslint-plugin-sf-plugin": "^1.17.3",
26
- "oclif": "^4.5.2",
25
+ "eslint-plugin-sf-plugin": "^1.17.4",
26
+ "oclif": "^4.6.1",
27
27
  "shelljs": "^0.8.5",
28
28
  "ts-node": "^10.9.2",
29
- "typescript": "^5.4.2"
29
+ "typescript": "^5.4.3"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=18.0.0"