@simplysf/simply-data 1.1.1 → 1.1.2

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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.1.2](https://github.com/SimplySF/simply-data/compare/1.1.1...1.1.2) (2024-02-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** bump @salesforce/core from 6.5.3 to 6.5.6 ([ce7ecf0](https://github.com/SimplySF/simply-data/commit/ce7ecf06d14b7698c0bc4efc1565d1496ead8958))
7
+
8
+
9
+
1
10
  ## [1.1.1](https://github.com/SimplySF/simply-data/compare/1.1.0...1.1.1) (2024-02-26)
2
11
 
3
12
 
package/README.md CHANGED
@@ -90,7 +90,7 @@ EXAMPLES
90
90
  $ sf simply data file upload --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg
91
91
  ```
92
92
 
93
- _See code: [src/commands/simply/data/file/upload.ts](https://github.com/SimplySF/simply-data/blob/1.1.1/src/commands/simply/data/file/upload.ts)_
93
+ _See code: [src/commands/simply/data/file/upload.ts](https://github.com/SimplySF/simply-data/blob/1.1.2/src/commands/simply/data/file/upload.ts)_
94
94
 
95
95
  ## `sf simply data files upload`
96
96
 
@@ -134,5 +134,5 @@ FLAG DESCRIPTIONS
134
134
  quasi concurrent uploads. Please note that setting this value too high can cause performance issues.
135
135
  ```
136
136
 
137
- _See code: [src/commands/simply/data/files/upload.ts](https://github.com/SimplySF/simply-data/blob/1.1.1/src/commands/simply/data/files/upload.ts)_
137
+ _See code: [src/commands/simply/data/files/upload.ts](https://github.com/SimplySF/simply-data/blob/1.1.2/src/commands/simply/data/files/upload.ts)_
138
138
  <!-- commandsstop -->
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@simplysf/simply-data",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@simplysf/simply-data",
9
- "version": "1.1.1",
9
+ "version": "1.1.2",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@oclif/core": "^3.19.6",
13
- "@salesforce/core": "^6.5.3",
13
+ "@salesforce/core": "^6.5.6",
14
14
  "@salesforce/kit": "^3.0.15",
15
15
  "@salesforce/sf-plugins-core": "^5.0.13",
16
16
  "csv-parse": "^5.5.3",
@@ -3265,15 +3265,15 @@
3265
3265
  }
3266
3266
  },
3267
3267
  "node_modules/@salesforce/core": {
3268
- "version": "6.5.3",
3269
- "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-6.5.3.tgz",
3270
- "integrity": "sha512-L4I2LrGyuXbNDCkoQdrMQ2sR/nhNIgRMLgpYNpOARZFIWKUsnjgBLVpUui+knCzjrQsOMoSwev+W0vp17iT76w==",
3268
+ "version": "6.5.6",
3269
+ "resolved": "https://registry.npmjs.org/@salesforce/core/-/core-6.5.6.tgz",
3270
+ "integrity": "sha512-ycUvOQi5MYVbDcdYgQ+99ym0FxrSo3c//2IHNkEYX0XdaTapN/63WKZ8hQufKYyucGnGZsPEhVWvrOR6oUV8qQ==",
3271
3271
  "license": "BSD-3-Clause",
3272
3272
  "dependencies": {
3273
3273
  "@salesforce/kit": "^3.0.15",
3274
3274
  "@salesforce/schemas": "^1.6.1",
3275
3275
  "@salesforce/ts-types": "^2.0.9",
3276
- "@types/semver": "^7.5.6",
3276
+ "@types/semver": "^7.5.8",
3277
3277
  "ajv": "^8.12.0",
3278
3278
  "change-case": "^4.1.2",
3279
3279
  "faye": "^1.4.0",
@@ -3282,11 +3282,11 @@
3282
3282
  "jsforce": "^2.0.0-beta.29",
3283
3283
  "jsonwebtoken": "9.0.2",
3284
3284
  "jszip": "3.10.1",
3285
- "pino": "^8.18.0",
3285
+ "pino": "^8.19.0",
3286
3286
  "pino-abstract-transport": "^1.1.0",
3287
3287
  "pino-pretty": "^10.3.1",
3288
3288
  "proper-lockfile": "^4.1.2",
3289
- "semver": "^7.5.4",
3289
+ "semver": "^7.6.0",
3290
3290
  "ts-retry-promise": "^0.7.1"
3291
3291
  },
3292
3292
  "engines": {
@@ -4688,9 +4688,9 @@
4688
4688
  }
4689
4689
  },
4690
4690
  "node_modules/@types/semver": {
4691
- "version": "7.5.6",
4692
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz",
4693
- "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==",
4691
+ "version": "7.5.8",
4692
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
4693
+ "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
4694
4694
  "license": "MIT"
4695
4695
  },
4696
4696
  "node_modules/@types/shelljs": {
@@ -13251,9 +13251,9 @@
13251
13251
  }
13252
13252
  },
13253
13253
  "node_modules/pino": {
13254
- "version": "8.18.0",
13255
- "resolved": "https://registry.npmjs.org/pino/-/pino-8.18.0.tgz",
13256
- "integrity": "sha512-Mz/gKiRyuXu4HnpHgi1YWdHQCoWMufapzooisvFn78zl4dZciAxS+YeRkUxXl1ee/SzU80YCz1zpECCh4oC6Aw==",
13254
+ "version": "8.19.0",
13255
+ "resolved": "https://registry.npmjs.org/pino/-/pino-8.19.0.tgz",
13256
+ "integrity": "sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==",
13257
13257
  "license": "MIT",
13258
13258
  "dependencies": {
13259
13259
  "atomic-sleep": "^1.0.0",
package/oclif.lock CHANGED
@@ -1596,15 +1596,15 @@
1596
1596
  strip-ansi "6.0.1"
1597
1597
  ts-retry-promise "^0.8.0"
1598
1598
 
1599
- "@salesforce/core@^6.4.1", "@salesforce/core@^6.5.1", "@salesforce/core@^6.5.3":
1600
- version "6.5.3"
1601
- resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.5.3.tgz#b1ceef7947b9046ab23e78e73851115fec86f4f9"
1602
- integrity sha512-L4I2LrGyuXbNDCkoQdrMQ2sR/nhNIgRMLgpYNpOARZFIWKUsnjgBLVpUui+knCzjrQsOMoSwev+W0vp17iT76w==
1599
+ "@salesforce/core@^6.4.1", "@salesforce/core@^6.5.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.5.6":
1600
+ version "6.5.6"
1601
+ resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.5.6.tgz#d32f6c89902298c7bbff010821a8856ecb2bb2dc"
1602
+ integrity sha512-ycUvOQi5MYVbDcdYgQ+99ym0FxrSo3c//2IHNkEYX0XdaTapN/63WKZ8hQufKYyucGnGZsPEhVWvrOR6oUV8qQ==
1603
1603
  dependencies:
1604
1604
  "@salesforce/kit" "^3.0.15"
1605
1605
  "@salesforce/schemas" "^1.6.1"
1606
1606
  "@salesforce/ts-types" "^2.0.9"
1607
- "@types/semver" "^7.5.6"
1607
+ "@types/semver" "^7.5.8"
1608
1608
  ajv "^8.12.0"
1609
1609
  change-case "^4.1.2"
1610
1610
  faye "^1.4.0"
@@ -1613,11 +1613,11 @@
1613
1613
  jsforce "^2.0.0-beta.29"
1614
1614
  jsonwebtoken "9.0.2"
1615
1615
  jszip "3.10.1"
1616
- pino "^8.18.0"
1616
+ pino "^8.19.0"
1617
1617
  pino-abstract-transport "^1.1.0"
1618
1618
  pino-pretty "^10.3.1"
1619
1619
  proper-lockfile "^4.1.2"
1620
- semver "^7.5.4"
1620
+ semver "^7.6.0"
1621
1621
  ts-retry-promise "^0.7.1"
1622
1622
 
1623
1623
  "@salesforce/dev-config@^4.1.0":
@@ -2480,10 +2480,10 @@
2480
2480
  dependencies:
2481
2481
  "@types/node" "*"
2482
2482
 
2483
- "@types/semver@^7.5.0", "@types/semver@^7.5.6":
2484
- version "7.5.6"
2485
- resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.6.tgz#c65b2bfce1bec346582c07724e3f8c1017a20339"
2486
- integrity sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==
2483
+ "@types/semver@^7.5.0", "@types/semver@^7.5.8":
2484
+ version "7.5.8"
2485
+ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e"
2486
+ integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==
2487
2487
 
2488
2488
  "@types/shelljs@^0.8.14", "@types/shelljs@^0.8.15":
2489
2489
  version "0.8.15"
@@ -7380,10 +7380,10 @@ pino-std-serializers@^6.0.0:
7380
7380
  resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz#d9a9b5f2b9a402486a5fc4db0a737570a860aab3"
7381
7381
  integrity sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==
7382
7382
 
7383
- pino@^8.18.0:
7384
- version "8.18.0"
7385
- resolved "https://registry.yarnpkg.com/pino/-/pino-8.18.0.tgz#f2bfbb4e827ed2049ee1e88372268efdcd1505f6"
7386
- integrity sha512-Mz/gKiRyuXu4HnpHgi1YWdHQCoWMufapzooisvFn78zl4dZciAxS+YeRkUxXl1ee/SzU80YCz1zpECCh4oC6Aw==
7383
+ pino@^8.19.0:
7384
+ version "8.19.0"
7385
+ resolved "https://registry.yarnpkg.com/pino/-/pino-8.19.0.tgz#ccc15ef736f103ec02cfbead0912bc436dc92ce4"
7386
+ integrity sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==
7387
7387
  dependencies:
7388
7388
  atomic-sleep "^1.0.0"
7389
7389
  fast-redact "^3.1.1"
@@ -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": {
@@ -24,19 +24,16 @@
24
24
  "type": "option"
25
25
  },
26
26
  "file-path": {
27
- "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.",
28
27
  "name": "file-path",
29
28
  "required": true,
30
- "summary": "Path to the csv file that specifies the upload.",
29
+ "summary": "Path to the file to upload.",
31
30
  "hasDynamicHelp": false,
32
31
  "multiple": false,
33
32
  "type": "option"
34
33
  },
35
- "max-parallel-jobs": {
36
- "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.",
37
- "name": "max-parallel-jobs",
38
- "summary": "Maximum number of parallel jobs.",
39
- "default": 1,
34
+ "first-publish-location-id": {
35
+ "name": "first-publish-location-id",
36
+ "summary": "Specify a record Id that the file should be linked to.",
40
37
  "hasDynamicHelp": false,
41
38
  "multiple": false,
42
39
  "type": "option"
@@ -50,16 +47,23 @@
50
47
  "hasDynamicHelp": true,
51
48
  "multiple": false,
52
49
  "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"
53
57
  }
54
58
  },
55
59
  "hasDynamicHelp": true,
56
60
  "hiddenAliases": [],
57
- "id": "simply:data:files:upload",
61
+ "id": "simply:data:file:upload",
58
62
  "pluginAlias": "@simplysf/simply-data",
59
63
  "pluginName": "@simplysf/simply-data",
60
64
  "pluginType": "core",
61
65
  "strict": true,
62
- "summary": "Upload files to a Salesforce org.",
66
+ "summary": "Upload a file to a Salesforce org.",
63
67
  "enableJsonFlag": true,
64
68
  "SF_ENV": "SF_ENV",
65
69
  "isESM": true,
@@ -68,44 +72,44 @@
68
72
  "commands",
69
73
  "simply",
70
74
  "data",
71
- "files",
75
+ "file",
72
76
  "upload.js"
73
77
  ],
74
78
  "aliasPermutations": [],
75
79
  "permutations": [
76
- "simply:data:files:upload",
77
- "data:simply:files:upload",
78
- "data:files:simply:upload",
79
- "data:files:upload:simply",
80
- "simply:files:data:upload",
81
- "files:simply:data:upload",
82
- "files:data:simply:upload",
83
- "files:data:upload:simply",
84
- "simply:files:upload:data",
85
- "files:simply:upload:data",
86
- "files:upload:simply:data",
87
- "files:upload:data:simply",
88
- "simply:data:upload:files",
89
- "data:simply:upload:files",
90
- "data:upload:simply:files",
91
- "data:upload:files:simply",
92
- "simply:upload:data:files",
93
- "upload:simply:data:files",
94
- "upload:data:simply:files",
95
- "upload:data:files:simply",
96
- "simply:upload:files:data",
97
- "upload:simply:files:data",
98
- "upload:files:simply:data",
99
- "upload:files:data:simply"
80
+ "simply:data:file:upload",
81
+ "data:simply:file:upload",
82
+ "data:file:simply:upload",
83
+ "data:file:upload:simply",
84
+ "simply:file:data:upload",
85
+ "file:simply:data:upload",
86
+ "file:data:simply:upload",
87
+ "file:data:upload:simply",
88
+ "simply:file:upload:data",
89
+ "file:simply:upload:data",
90
+ "file:upload:simply:data",
91
+ "file:upload:data:simply",
92
+ "simply:data:upload:file",
93
+ "data:simply:upload:file",
94
+ "data:upload:simply:file",
95
+ "data:upload:file:simply",
96
+ "simply:upload:data:file",
97
+ "upload:simply:data:file",
98
+ "upload:data:simply:file",
99
+ "upload:data:file:simply",
100
+ "simply:upload:file:data",
101
+ "upload:simply:file:data",
102
+ "upload:file:simply:data",
103
+ "upload:file:data:simply"
100
104
  ]
101
105
  },
102
- "simply:data:file:upload": {
106
+ "simply:data:files:upload": {
103
107
  "aliases": [],
104
108
  "args": {},
105
- "description": "Uploads a file to a Salesforce org.",
109
+ "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.",
106
110
  "examples": [
107
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --target-org myTargetOrg",
108
- "<%= config.bin %> <%= command.id %> --file-path fileToUpload.txt --first-publish-location-id 0019000000DmehK --target-org myTargetOrg"
111
+ "<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --target-org myTargetOrg",
112
+ "<%= config.bin %> <%= command.id %> --file-path filesToUpload.csv --max-parallel-jobs 5 --target-org myTargetOrg"
109
113
  ],
110
114
  "flags": {
111
115
  "json": {
@@ -123,16 +127,19 @@
123
127
  "type": "option"
124
128
  },
125
129
  "file-path": {
130
+ "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.",
126
131
  "name": "file-path",
127
132
  "required": true,
128
- "summary": "Path to the file to upload.",
133
+ "summary": "Path to the csv file that specifies the upload.",
129
134
  "hasDynamicHelp": false,
130
135
  "multiple": false,
131
136
  "type": "option"
132
137
  },
133
- "first-publish-location-id": {
134
- "name": "first-publish-location-id",
135
- "summary": "Specify a record Id that the file should be linked to.",
138
+ "max-parallel-jobs": {
139
+ "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.",
140
+ "name": "max-parallel-jobs",
141
+ "summary": "Maximum number of parallel jobs.",
142
+ "default": 1,
136
143
  "hasDynamicHelp": false,
137
144
  "multiple": false,
138
145
  "type": "option"
@@ -146,23 +153,16 @@
146
153
  "hasDynamicHelp": true,
147
154
  "multiple": false,
148
155
  "type": "option"
149
- },
150
- "title": {
151
- "name": "title",
152
- "summary": "Specify the title for the file being uploaded.",
153
- "hasDynamicHelp": false,
154
- "multiple": false,
155
- "type": "option"
156
156
  }
157
157
  },
158
158
  "hasDynamicHelp": true,
159
159
  "hiddenAliases": [],
160
- "id": "simply:data:file:upload",
160
+ "id": "simply:data:files:upload",
161
161
  "pluginAlias": "@simplysf/simply-data",
162
162
  "pluginName": "@simplysf/simply-data",
163
163
  "pluginType": "core",
164
164
  "strict": true,
165
- "summary": "Upload a file to a Salesforce org.",
165
+ "summary": "Upload files to a Salesforce org.",
166
166
  "enableJsonFlag": true,
167
167
  "SF_ENV": "SF_ENV",
168
168
  "isESM": true,
@@ -171,37 +171,37 @@
171
171
  "commands",
172
172
  "simply",
173
173
  "data",
174
- "file",
174
+ "files",
175
175
  "upload.js"
176
176
  ],
177
177
  "aliasPermutations": [],
178
178
  "permutations": [
179
- "simply:data:file:upload",
180
- "data:simply:file:upload",
181
- "data:file:simply:upload",
182
- "data:file:upload:simply",
183
- "simply:file:data:upload",
184
- "file:simply:data:upload",
185
- "file:data:simply:upload",
186
- "file:data:upload:simply",
187
- "simply:file:upload:data",
188
- "file:simply:upload:data",
189
- "file:upload:simply:data",
190
- "file:upload:data:simply",
191
- "simply:data:upload:file",
192
- "data:simply:upload:file",
193
- "data:upload:simply:file",
194
- "data:upload:file:simply",
195
- "simply:upload:data:file",
196
- "upload:simply:data:file",
197
- "upload:data:simply:file",
198
- "upload:data:file:simply",
199
- "simply:upload:file:data",
200
- "upload:simply:file:data",
201
- "upload:file:simply:data",
202
- "upload:file:data:simply"
179
+ "simply:data:files:upload",
180
+ "data:simply:files:upload",
181
+ "data:files:simply:upload",
182
+ "data:files:upload:simply",
183
+ "simply:files:data:upload",
184
+ "files:simply:data:upload",
185
+ "files:data:simply:upload",
186
+ "files:data:upload:simply",
187
+ "simply:files:upload:data",
188
+ "files:simply:upload:data",
189
+ "files:upload:simply:data",
190
+ "files:upload:data:simply",
191
+ "simply:data:upload:files",
192
+ "data:simply:upload:files",
193
+ "data:upload:simply:files",
194
+ "data:upload:files:simply",
195
+ "simply:upload:data:files",
196
+ "upload:simply:data:files",
197
+ "upload:data:simply:files",
198
+ "upload:data:files:simply",
199
+ "simply:upload:files:data",
200
+ "upload:simply:files:data",
201
+ "upload:files:simply:data",
202
+ "upload:files:data:simply"
203
203
  ]
204
204
  }
205
205
  },
206
- "version": "1.1.1"
206
+ "version": "1.1.2"
207
207
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@simplysf/simply-data",
3
3
  "description": "Utilities for working with data",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "author": "@ClayChipps",
6
6
  "bugs": "https://github.com/SimplySF/simply-data/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^3.19.6",
9
- "@salesforce/core": "^6.5.3",
9
+ "@salesforce/core": "^6.5.6",
10
10
  "@salesforce/kit": "^3.0.15",
11
11
  "@salesforce/sf-plugins-core": "^5.0.13",
12
12
  "csv-parse": "^5.5.3",