@salesforce/plugin-data 2.2.0 → 2.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.
Files changed (69) hide show
  1. package/lib/BulkBaseCommand.js +103 -0
  2. package/lib/BulkBaseCommand.js.map +1 -0
  3. package/lib/api/data/tree/importApi.js +11 -2
  4. package/lib/api/data/tree/importApi.js.map +1 -1
  5. package/lib/batcher.js +24 -3
  6. package/lib/batcher.js.map +1 -1
  7. package/lib/bulkDataRequestCache.js +147 -0
  8. package/lib/bulkDataRequestCache.js.map +1 -0
  9. package/lib/bulkOperationCommand.js +123 -0
  10. package/lib/bulkOperationCommand.js.map +1 -0
  11. package/lib/bulkUtils.js +48 -0
  12. package/lib/bulkUtils.js.map +1 -0
  13. package/lib/commands/data/delete/bulk.js +12 -59
  14. package/lib/commands/data/delete/bulk.js.map +1 -1
  15. package/lib/commands/data/delete/record.js +2 -0
  16. package/lib/commands/data/delete/record.js.map +1 -1
  17. package/lib/commands/data/delete/resume.js +35 -0
  18. package/lib/commands/data/delete/resume.js.map +1 -0
  19. package/lib/commands/data/get/record.js +2 -0
  20. package/lib/commands/data/get/record.js.map +1 -1
  21. package/lib/commands/data/import/tree.js +1 -1
  22. package/lib/commands/data/import/tree.js.map +1 -1
  23. package/lib/commands/data/query/resume.js +22 -14
  24. package/lib/commands/data/query/resume.js.map +1 -1
  25. package/lib/commands/data/query.js +55 -102
  26. package/lib/commands/data/query.js.map +1 -1
  27. package/lib/commands/data/resume.js +9 -4
  28. package/lib/commands/data/resume.js.map +1 -1
  29. package/lib/commands/data/update/record.js +2 -0
  30. package/lib/commands/data/update/record.js.map +1 -1
  31. package/lib/commands/data/upsert/bulk.js +11 -56
  32. package/lib/commands/data/upsert/bulk.js.map +1 -1
  33. package/lib/commands/data/upsert/resume.js +34 -0
  34. package/lib/commands/data/upsert/resume.js.map +1 -0
  35. package/lib/commands/force/data/bulk/delete.js +79 -0
  36. package/lib/commands/force/data/bulk/delete.js.map +1 -0
  37. package/lib/commands/force/data/bulk/status.js +64 -0
  38. package/lib/commands/force/data/bulk/status.js.map +1 -0
  39. package/lib/commands/force/data/bulk/upsert.js +88 -0
  40. package/lib/commands/force/data/bulk/upsert.js.map +1 -0
  41. package/lib/flags.js +16 -3
  42. package/lib/flags.js.map +1 -1
  43. package/lib/queryUtils.js +45 -0
  44. package/lib/queryUtils.js.map +1 -0
  45. package/lib/reporters.js +52 -13
  46. package/lib/reporters.js.map +1 -1
  47. package/lib/resumeBulkCommand.js +63 -0
  48. package/lib/resumeBulkCommand.js.map +1 -0
  49. package/lib/types.js +3 -0
  50. package/lib/types.js.map +1 -0
  51. package/messages/batcher.md +3 -3
  52. package/messages/bulk.base.command.md +24 -0
  53. package/messages/bulk.delete.md +5 -5
  54. package/messages/bulk.delete.resume.md +17 -0
  55. package/messages/bulk.operation.command.md +15 -0
  56. package/messages/bulk.report.md +4 -0
  57. package/messages/bulk.resume.command.md +15 -0
  58. package/messages/bulk.status.md +5 -5
  59. package/messages/bulk.upsert.md +5 -5
  60. package/messages/bulk.upsert.resume.md +17 -0
  61. package/messages/bulkv2.delete.md +19 -0
  62. package/messages/bulkv2.upsert.md +25 -0
  63. package/messages/data.resume.md +29 -0
  64. package/messages/importApi.md +3 -4
  65. package/messages/messages.md +28 -0
  66. package/messages/reporter.md +3 -0
  67. package/messages/soql.query.md +2 -2
  68. package/oclif.manifest.json +503 -63
  69. package/package.json +36 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "main": "lib/index.js",
@@ -23,9 +23,24 @@
23
23
  "@salesforce/plugin-command-reference"
24
24
  ],
25
25
  "topics": {
26
+ "force": {
27
+ "description": "manipulate data in your orgs using Bulk API V1",
28
+ "subtopics": {
29
+ "data": {
30
+ "description": "manipulate records in your org",
31
+ "longDescription": "Use the data commands to insert and delete data in your orgs using V1 of Bulk API, using CSV files as input.",
32
+ "subtopics": {
33
+ "bulk": {
34
+ "description": "manipulate records in your org using Bulk API V1",
35
+ "longDescription": "Use the data commands to insert and delete data in your orgs using V1 of Bulk API, using CSV files as input."
36
+ }
37
+ }
38
+ }
39
+ }
40
+ },
26
41
  "data": {
27
42
  "description": "manipulate records in your org",
28
- "longDescription": "Use the data commands to manipulate records in your org. Commands are available to help you work with various APIs. Import CSV files with the Bulk API. Export and import data with the SObject Tree Save API. Perform simple CRUD operations on individual records with the REST API.",
43
+ "longDescription": "Use the data commands to manipulate records in your org. Commands are available to help you work with various APIs. Import CSV files with the Bulk API V2. Export and import data with the SObject Tree Save API. Perform simple CRUD operations on individual records with the REST API.",
29
44
  "subtopics": {
30
45
  "create": {
31
46
  "description": "create a record"
@@ -89,48 +104,48 @@
89
104
  },
90
105
  "dependencies": {
91
106
  "@oclif/core": "^2.0.7",
92
- "@salesforce/core": "^3.32.12",
93
- "@salesforce/kit": "^1.8.3",
107
+ "@salesforce/core": "^3.32.13",
108
+ "@salesforce/kit": "^1.8.4",
94
109
  "@salesforce/sf-plugins-core": "^2.0.1",
95
- "@salesforce/ts-types": "^1.7.2",
110
+ "@salesforce/ts-types": "^1.7.3",
96
111
  "@types/fs-extra": "^9.0.13",
97
112
  "chalk": "^4.1.0",
98
113
  "csv-parse": "^4.16.3",
99
114
  "csv-stringify": "^6.2.3",
100
115
  "fs-extra": "^10.0.1",
101
- "jsforce": "^2.0.0-beta.19",
116
+ "jsforce": "2.0.0-beta.20",
102
117
  "tslib": "^2"
103
118
  },
104
119
  "devDependencies": {
105
- "@oclif/plugin-command-snapshot": "^3.3.0",
106
- "@salesforce/cli-plugins-testkit": "^3.2.19",
120
+ "@oclif/plugin-command-snapshot": "^3.3.3",
121
+ "@salesforce/cli-plugins-testkit": "^3.2.20",
107
122
  "@salesforce/dev-config": "^3.0.1",
108
- "@salesforce/dev-scripts": "^3.1.0",
109
- "@salesforce/plugin-command-reference": "^2.2.8",
123
+ "@salesforce/dev-scripts": "^3.1.1",
124
+ "@salesforce/plugin-command-reference": "^2.2.9",
110
125
  "@salesforce/prettier-config": "^0.0.2",
111
- "@salesforce/ts-sinon": "^1.4.4",
112
- "@swc/core": "^1.3.24",
126
+ "@salesforce/ts-sinon": "^1.4.5",
127
+ "@swc/core": "^1.3.31",
113
128
  "@types/chai-as-promised": "^7.1.3",
114
129
  "@types/graceful-fs": "^4.1.6",
115
130
  "@types/shelljs": "^0.8.10",
116
- "@typescript-eslint/eslint-plugin": "^5.49.0",
117
- "@typescript-eslint/parser": "^5.48.2",
131
+ "@typescript-eslint/eslint-plugin": "^5.52.0",
132
+ "@typescript-eslint/parser": "^5.49.0",
118
133
  "chai": "^4.3.7",
119
134
  "chai-as-promised": "^7.1.1",
120
- "eslint": "^8.21.0",
135
+ "eslint": "^8.33.0",
121
136
  "eslint-config-prettier": "^8.6.0",
122
- "eslint-config-salesforce": "^1.1.0",
137
+ "eslint-config-salesforce": "^1.1.1",
123
138
  "eslint-config-salesforce-license": "^0.2.0",
124
139
  "eslint-config-salesforce-typescript": "^1.1.1",
125
140
  "eslint-plugin-header": "^3.1.1",
126
- "eslint-plugin-import": "2.27.4",
127
- "eslint-plugin-jsdoc": "^39.6.7",
141
+ "eslint-plugin-import": "^2.27.5",
142
+ "eslint-plugin-jsdoc": "^39.7.4",
128
143
  "eslint-plugin-sf-plugin": "^1.8.0",
129
144
  "fast-xml-parser": "^3.20.3",
130
145
  "husky": "^7.0.4",
131
146
  "mocha": "^9.1.3",
132
147
  "nyc": "^15.1.0",
133
- "oclif": "^3.6.1",
148
+ "oclif": "^3.6.2",
134
149
  "prettier": "^2.8.0",
135
150
  "pretty-quick": "^3.1.0",
136
151
  "shelljs": "^0.8.3",
@@ -141,7 +156,7 @@
141
156
  "typescript": "^4.9.4"
142
157
  },
143
158
  "sfdx": {
144
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.2.0.crt",
145
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.2.0.sig"
159
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.3.0.crt",
160
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/2.3.0.sig"
146
161
  }
147
162
  }