@simplysf/simply-data 1.1.1 → 1.1.3

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,21 @@
1
+ ## [1.1.3](https://github.com/SimplySF/simply-data/compare/1.1.2...1.1.3) (2024-02-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * incorrect readme links ([c23eaea](https://github.com/SimplySF/simply-data/commit/c23eaea935898034de6da19d010aec55b1544cd5))
7
+
8
+
9
+
10
+ ## [1.1.2](https://github.com/SimplySF/simply-data/compare/1.1.1...1.1.2) (2024-02-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **deps:** bump @salesforce/core from 6.5.3 to 6.5.6 ([ce7ecf0](https://github.com/SimplySF/simply-data/commit/ce7ecf06d14b7698c0bc4efc1565d1496ead8958))
16
+
17
+
18
+
1
19
  ## [1.1.1](https://github.com/SimplySF/simply-data/compare/1.1.0...1.1.1) (2024-02-26)
2
20
 
3
21
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @simplysf/simply-data
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/@simplysf/simply-data?label=@simplysf/simply-data)](https://npmjs.com/data/@simplysf/simply-data) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-data.svg)](https://npmjs.com/data/@simplysf/simply-data) [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD_3--Clause-yellow.svg)](https://raw.githubusercontent.com/SimplySF/simply-data/main/LICENSE.txt)
3
+ [![NPM](https://img.shields.io/npm/v/@simplysf/simply-data?label=@simplysf/simply-data)](https://npmjs.com/@simplysf/simply-data) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-data.svg)](https://npmjs.com/@simplysf/simply-data) [![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD_3--Clause-yellow.svg)](https://raw.githubusercontent.com/SimplySF/simply-data/main/LICENSE.txt)
4
4
 
5
5
  ## Install
6
6
 
@@ -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.3/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.3/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.3",
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.3",
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",
@@ -20,11 +20,11 @@
20
20
  "p-queue": "^8.0.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@oclif/plugin-command-snapshot": "^5.0.8",
23
+ "@oclif/plugin-command-snapshot": "^5.0.9",
24
24
  "@salesforce/cli-plugins-testkit": "^5.1.9",
25
25
  "@salesforce/plugin-command-reference": "^3.0.68",
26
26
  "@salesforce/ts-sinon": "1.4.19",
27
- "@simplysf/dev-scripts": "^2.0.0",
27
+ "@simplysf/dev-scripts": "^2.1.0",
28
28
  "@types/shelljs": "^0.8.14",
29
29
  "eslint-plugin-sf-plugin": "^1.17.3",
30
30
  "oclif": "^4.4.17",
@@ -2974,13 +2974,13 @@
2974
2974
  }
2975
2975
  },
2976
2976
  "node_modules/@oclif/plugin-command-snapshot": {
2977
- "version": "5.0.8",
2978
- "resolved": "https://registry.npmjs.org/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.0.8.tgz",
2979
- "integrity": "sha512-tVjT1USqjPpoVswK/rvk8k6NDEdrDxPJPyVZ7Dj+b68pCxUcQw7DTorp+YjYWSwMABY9e7k4bO3Xtk78m/q5tA==",
2977
+ "version": "5.0.9",
2978
+ "resolved": "https://registry.npmjs.org/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.0.9.tgz",
2979
+ "integrity": "sha512-lzvdYzGSW2/XGcH+RWyI+EfYcqDQ9Il7/EudTTKsODdhiry6B7IQoRxzs0soRB2myZTZrP+j2HcfG0XWrfXa4Q==",
2980
2980
  "dev": true,
2981
2981
  "license": "MIT",
2982
2982
  "dependencies": {
2983
- "@oclif/core": "^3.18.2",
2983
+ "@oclif/core": "^3.19.2",
2984
2984
  "@types/lodash.difference": "^4.5.9",
2985
2985
  "chalk": "^5.3.0",
2986
2986
  "just-diff": "^5.2.0",
@@ -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": {
@@ -3509,9 +3509,9 @@
3509
3509
  }
3510
3510
  },
3511
3511
  "node_modules/@simplysf/dev-scripts": {
3512
- "version": "2.0.0",
3513
- "resolved": "https://registry.npmjs.org/@simplysf/dev-scripts/-/dev-scripts-2.0.0.tgz",
3514
- "integrity": "sha512-wXM4Nf1BhRhoyRtHIuFjsk1P4NdES43WQbe0bzQqX4bQGcJMFcjzNHcWF3k/fS0xAaYcWiQkSA+6O9J2zM5khg==",
3512
+ "version": "2.1.0",
3513
+ "resolved": "https://registry.npmjs.org/@simplysf/dev-scripts/-/dev-scripts-2.1.0.tgz",
3514
+ "integrity": "sha512-NjY3hqmQpkLbWJfQK3i5RyTRv5ZjIqon1BVLib2nMDDyZgyzPO7Q6edtE2aOh9woNIbl3kK9/ZHJ7v/MdmjmnA==",
3515
3515
  "dev": true,
3516
3516
  "license": "BSD-3-Clause",
3517
3517
  "dependencies": {
@@ -3527,6 +3527,7 @@
3527
3527
  "chalk": "^4.0.0",
3528
3528
  "cosmiconfig": "^7.1.0",
3529
3529
  "eslint-config-salesforce-typescript": "^3.2.11",
3530
+ "eslint-plugin-header": "^3.1.1",
3530
3531
  "husky": "^7.0.4",
3531
3532
  "linkinator": "^6.0.4",
3532
3533
  "mocha": "^10.3.0",
@@ -4688,9 +4689,9 @@
4688
4689
  }
4689
4690
  },
4690
4691
  "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==",
4692
+ "version": "7.5.8",
4693
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
4694
+ "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
4694
4695
  "license": "MIT"
4695
4696
  },
4696
4697
  "node_modules/@types/shelljs": {
@@ -13251,9 +13252,9 @@
13251
13252
  }
13252
13253
  },
13253
13254
  "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==",
13255
+ "version": "8.19.0",
13256
+ "resolved": "https://registry.npmjs.org/pino/-/pino-8.19.0.tgz",
13257
+ "integrity": "sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==",
13257
13258
  "license": "MIT",
13258
13259
  "dependencies": {
13259
13260
  "atomic-sleep": "^1.0.0",
package/oclif.lock CHANGED
@@ -1400,7 +1400,7 @@
1400
1400
  read-package-json-fast "^3.0.0"
1401
1401
  which "^3.0.0"
1402
1402
 
1403
- "@oclif/core@^3.15.1", "@oclif/core@^3.18.2", "@oclif/core@^3.19.1", "@oclif/core@^3.19.2", "@oclif/core@^3.19.3", "@oclif/core@^3.19.6":
1403
+ "@oclif/core@^3.15.1", "@oclif/core@^3.19.1", "@oclif/core@^3.19.2", "@oclif/core@^3.19.3", "@oclif/core@^3.19.6":
1404
1404
  version "3.19.6"
1405
1405
  resolved "https://registry.yarnpkg.com/@oclif/core/-/core-3.19.6.tgz#12e5cb073016d8c32c469d2fec0cd585ac5c1c09"
1406
1406
  integrity sha512-1ryQWAx7VOf+Wq6pv00uilOo56DrG0drr42crmCQ3eYrPPz252EmNCoFkoOBk7McN6x0f4ega83c0yNNCXmiXw==
@@ -1433,12 +1433,12 @@
1433
1433
  wordwrap "^1.0.0"
1434
1434
  wrap-ansi "^7.0.0"
1435
1435
 
1436
- "@oclif/plugin-command-snapshot@^5.0.8":
1437
- version "5.0.8"
1438
- resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.0.8.tgz#8ddaa56099ca6ba3414cdfbc023384066e150fec"
1439
- integrity sha512-tVjT1USqjPpoVswK/rvk8k6NDEdrDxPJPyVZ7Dj+b68pCxUcQw7DTorp+YjYWSwMABY9e7k4bO3Xtk78m/q5tA==
1436
+ "@oclif/plugin-command-snapshot@^5.0.9":
1437
+ version "5.0.9"
1438
+ resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-5.0.9.tgz#d6d8e565602aab8581ee6d8f203a41d93f0679ea"
1439
+ integrity sha512-lzvdYzGSW2/XGcH+RWyI+EfYcqDQ9Il7/EudTTKsODdhiry6B7IQoRxzs0soRB2myZTZrP+j2HcfG0XWrfXa4Q==
1440
1440
  dependencies:
1441
- "@oclif/core" "^3.18.2"
1441
+ "@oclif/core" "^3.19.2"
1442
1442
  "@types/lodash.difference" "^4.5.9"
1443
1443
  chalk "^5.3.0"
1444
1444
  just-diff "^5.2.0"
@@ -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":
@@ -1715,10 +1715,10 @@
1715
1715
  "@sigstore/protobuf-specs" "^0.2.0"
1716
1716
  tuf-js "^1.1.7"
1717
1717
 
1718
- "@simplysf/dev-scripts@^2.0.0":
1719
- version "2.0.0"
1720
- resolved "https://registry.yarnpkg.com/@simplysf/dev-scripts/-/dev-scripts-2.0.0.tgz#d6659441873561674d929c9526b2e8271e8d788a"
1721
- integrity sha512-wXM4Nf1BhRhoyRtHIuFjsk1P4NdES43WQbe0bzQqX4bQGcJMFcjzNHcWF3k/fS0xAaYcWiQkSA+6O9J2zM5khg==
1718
+ "@simplysf/dev-scripts@^2.1.0":
1719
+ version "2.1.0"
1720
+ resolved "https://registry.yarnpkg.com/@simplysf/dev-scripts/-/dev-scripts-2.1.0.tgz#dcba19853830aabde2ce3d06bd3d5fdd838ffe5e"
1721
+ integrity sha512-NjY3hqmQpkLbWJfQK3i5RyTRv5ZjIqon1BVLib2nMDDyZgyzPO7Q6edtE2aOh9woNIbl3kK9/ZHJ7v/MdmjmnA==
1722
1722
  dependencies:
1723
1723
  "@commitlint/cli" "^17.1.2"
1724
1724
  "@commitlint/config-conventional" "^17.8.1"
@@ -1732,6 +1732,7 @@
1732
1732
  chalk "^4.0.0"
1733
1733
  cosmiconfig "^7.1.0"
1734
1734
  eslint-config-salesforce-typescript "^3.2.11"
1735
+ eslint-plugin-header "^3.1.1"
1735
1736
  husky "^7.0.4"
1736
1737
  linkinator "^6.0.4"
1737
1738
  mocha "^10.3.0"
@@ -2480,10 +2481,10 @@
2480
2481
  dependencies:
2481
2482
  "@types/node" "*"
2482
2483
 
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==
2484
+ "@types/semver@^7.5.0", "@types/semver@^7.5.8":
2485
+ version "7.5.8"
2486
+ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e"
2487
+ integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==
2487
2488
 
2488
2489
  "@types/shelljs@^0.8.14", "@types/shelljs@^0.8.15":
2489
2490
  version "0.8.15"
@@ -7380,10 +7381,10 @@ pino-std-serializers@^6.0.0:
7380
7381
  resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz#d9a9b5f2b9a402486a5fc4db0a737570a860aab3"
7381
7382
  integrity sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==
7382
7383
 
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==
7384
+ pino@^8.19.0:
7385
+ version "8.19.0"
7386
+ resolved "https://registry.yarnpkg.com/pino/-/pino-8.19.0.tgz#ccc15ef736f103ec02cfbead0912bc436dc92ce4"
7387
+ integrity sha512-oswmokxkav9bADfJ2ifrvfHUwad6MLp73Uat0IkQWY3iAw5xTRoznXbXksZs8oaOUMpmhVWD+PZogNzllWpJaA==
7387
7388
  dependencies:
7388
7389
  atomic-sleep "^1.0.0"
7389
7390
  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.3"
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.3",
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",
@@ -16,11 +16,11 @@
16
16
  "p-queue": "^8.0.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@oclif/plugin-command-snapshot": "^5.0.8",
19
+ "@oclif/plugin-command-snapshot": "^5.0.9",
20
20
  "@salesforce/cli-plugins-testkit": "^5.1.9",
21
21
  "@salesforce/plugin-command-reference": "^3.0.68",
22
22
  "@salesforce/ts-sinon": "1.4.19",
23
- "@simplysf/dev-scripts": "^2.0.0",
23
+ "@simplysf/dev-scripts": "^2.1.0",
24
24
  "@types/shelljs": "^0.8.14",
25
25
  "eslint-plugin-sf-plugin": "^1.17.3",
26
26
  "oclif": "^4.4.17",