@salesforce/plugin-data 4.0.66 → 4.0.68

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 (55) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +24 -24
  3. package/lib/api/data/tree/exportApi.js +1 -1
  4. package/lib/api/data/tree/functions.js +1 -1
  5. package/lib/api/data/tree/importCommon.js +1 -1
  6. package/lib/api/data/tree/importFiles.js +5 -2
  7. package/lib/api/data/tree/importFiles.js.map +1 -1
  8. package/lib/api/data/tree/importPlan.js +24 -31
  9. package/lib/api/data/tree/importPlan.js.map +1 -1
  10. package/lib/api/file/fileToContentVersion.js +1 -1
  11. package/lib/batcher.js +1 -1
  12. package/lib/bulkDataRequestCache.js +1 -1
  13. package/lib/bulkIngest.js +1 -1
  14. package/lib/bulkUtils.js +1 -1
  15. package/lib/commands/data/bulk/results.js +1 -1
  16. package/lib/commands/data/create/file.js +1 -1
  17. package/lib/commands/data/create/record.js +1 -1
  18. package/lib/commands/data/delete/bulk.js +1 -1
  19. package/lib/commands/data/delete/record.js +1 -1
  20. package/lib/commands/data/delete/resume.js +1 -1
  21. package/lib/commands/data/export/bulk.js +1 -1
  22. package/lib/commands/data/export/resume.js +1 -1
  23. package/lib/commands/data/export/tree.js +1 -1
  24. package/lib/commands/data/get/record.js +1 -1
  25. package/lib/commands/data/import/bulk.js +1 -1
  26. package/lib/commands/data/import/resume.js +1 -1
  27. package/lib/commands/data/import/tree.js +5 -2
  28. package/lib/commands/data/import/tree.js.map +1 -1
  29. package/lib/commands/data/query.js +1 -1
  30. package/lib/commands/data/resume.js +1 -1
  31. package/lib/commands/data/search.js +1 -1
  32. package/lib/commands/data/update/bulk.js +1 -1
  33. package/lib/commands/data/update/record.js +1 -1
  34. package/lib/commands/data/update/resume.js +1 -1
  35. package/lib/commands/data/upsert/bulk.js +1 -1
  36. package/lib/commands/data/upsert/resume.js +1 -1
  37. package/lib/commands/force/data/bulk/delete.js +1 -1
  38. package/lib/commands/force/data/bulk/status.js +1 -1
  39. package/lib/commands/force/data/bulk/upsert.js +1 -1
  40. package/lib/dataUtils.js +1 -1
  41. package/lib/export.js +1 -1
  42. package/lib/flags.js +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/reporters/query/csvReporter.js +1 -1
  45. package/lib/reporters/query/humanReporter.js +1 -1
  46. package/lib/reporters/query/reporters.js +1 -1
  47. package/lib/reporters/search/csvSearchReporter.js +1 -1
  48. package/lib/reporters/search/reporter.js +1 -1
  49. package/lib/schema/dataImportPlan.js +35 -0
  50. package/lib/schema/dataImportPlan.js.map +1 -0
  51. package/lib/ux/bulkIngestStages.js +1 -1
  52. package/messages/importApi.md +1 -1
  53. package/oclif.manifest.json +78 -78
  54. package/package.json +10 -7
  55. package/schema/dataImportPlanSchema.json +0 -72
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Apache License Version 2.0
2
2
 
3
- Copyright (c) 2025 Salesforce, Inc.
3
+ Copyright (c) 2026 Salesforce, Inc.
4
4
  All rights reserved.
5
5
 
6
6
  Apache License
package/README.md CHANGED
@@ -144,7 +144,7 @@ EXAMPLES
144
144
  $ sf data bulk results --job-id 7507i000fake341G --target-org my-scratch
145
145
  ```
146
146
 
147
- _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/bulk/results.ts)_
147
+ _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/bulk/results.ts)_
148
148
 
149
149
  ## `sf data create file`
150
150
 
@@ -193,7 +193,7 @@ EXAMPLES
193
193
  $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
194
194
  ```
195
195
 
196
- _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/create/file.ts)_
196
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/create/file.ts)_
197
197
 
198
198
  ## `sf data create record`
199
199
 
@@ -249,7 +249,7 @@ EXAMPLES
249
249
  TracedEntityId=01p17000000R6bLAAS"
250
250
  ```
251
251
 
252
- _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/create/record.ts)_
252
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/create/record.ts)_
253
253
 
254
254
  ## `sf data delete bulk`
255
255
 
@@ -308,7 +308,7 @@ FLAG DESCRIPTIONS
308
308
  and can be enabled only by a system administrator.
309
309
  ```
310
310
 
311
- _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/delete/bulk.ts)_
311
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/delete/bulk.ts)_
312
312
 
313
313
  ## `sf data delete record`
314
314
 
@@ -369,7 +369,7 @@ EXAMPLES
369
369
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
370
370
  ```
371
371
 
372
- _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/delete/record.ts)_
372
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/delete/record.ts)_
373
373
 
374
374
  ## `sf data delete resume`
375
375
 
@@ -408,7 +408,7 @@ EXAMPLES
408
408
  $ sf data delete resume --use-most-recent --target-org my-scratch
409
409
  ```
410
410
 
411
- _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/delete/resume.ts)_
411
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/delete/resume.ts)_
412
412
 
413
413
  ## `sf data export bulk`
414
414
 
@@ -475,7 +475,7 @@ EXAMPLES
475
475
  --result-format json --wait 10 --all-rows
476
476
  ```
477
477
 
478
- _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/export/bulk.ts)_
478
+ _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/export/bulk.ts)_
479
479
 
480
480
  ## `sf data export resume`
481
481
 
@@ -514,7 +514,7 @@ EXAMPLES
514
514
  $ sf data export resume --use-most-recent
515
515
  ```
516
516
 
517
- _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/export/resume.ts)_
517
+ _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/export/resume.ts)_
518
518
 
519
519
  ## `sf data export tree`
520
520
 
@@ -574,7 +574,7 @@ EXAMPLES
574
574
  my-scratch
575
575
  ```
576
576
 
577
- _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/export/tree.ts)_
577
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/export/tree.ts)_
578
578
 
579
579
  ## `sf data get record`
580
580
 
@@ -638,7 +638,7 @@ EXAMPLES
638
638
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
639
639
  ```
640
640
 
641
- _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/get/record.ts)_
641
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/get/record.ts)_
642
642
 
643
643
  ## `sf data import bulk`
644
644
 
@@ -690,7 +690,7 @@ EXAMPLES
690
690
  $ sf data import bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
691
691
  ```
692
692
 
693
- _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/import/bulk.ts)_
693
+ _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/import/bulk.ts)_
694
694
 
695
695
  ## `sf data import resume`
696
696
 
@@ -726,7 +726,7 @@ EXAMPLES
726
726
  $ sf data import resume --use-most-recent --target-org my-scratch
727
727
  ```
728
728
 
729
- _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/import/resume.ts)_
729
+ _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/import/resume.ts)_
730
730
 
731
731
  ## `sf data import tree`
732
732
 
@@ -790,7 +790,7 @@ FLAG DESCRIPTIONS
790
790
  - files(array) - Files: An array of files paths to load
791
791
  ```
792
792
 
793
- _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/import/tree.ts)_
793
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/import/tree.ts)_
794
794
 
795
795
  ## `sf data query`
796
796
 
@@ -843,7 +843,7 @@ EXAMPLES
843
843
  $ sf data query --query "SELECT Name FROM ApexTrigger" --use-tooling-api
844
844
  ```
845
845
 
846
- _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/query.ts)_
846
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/query.ts)_
847
847
 
848
848
  ## `sf data resume`
849
849
 
@@ -880,7 +880,7 @@ EXAMPLES
880
880
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
881
881
  ```
882
882
 
883
- _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/resume.ts)_
883
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/resume.ts)_
884
884
 
885
885
  ## `sf data search`
886
886
 
@@ -930,7 +930,7 @@ EXAMPLES
930
930
  $ sf data search --file query.txt --target-org my-scratch --result-format csv
931
931
  ```
932
932
 
933
- _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/search.ts)_
933
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/search.ts)_
934
934
 
935
935
  ## `sf data update bulk`
936
936
 
@@ -985,7 +985,7 @@ EXAMPLES
985
985
  $ sf data update bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
986
986
  ```
987
987
 
988
- _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/update/bulk.ts)_
988
+ _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/update/bulk.ts)_
989
989
 
990
990
  ## `sf data update record`
991
991
 
@@ -1047,7 +1047,7 @@ EXAMPLES
1047
1047
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
1048
1048
  ```
1049
1049
 
1050
- _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/update/record.ts)_
1050
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/update/record.ts)_
1051
1051
 
1052
1052
  ## `sf data update resume`
1053
1053
 
@@ -1086,7 +1086,7 @@ EXAMPLES
1086
1086
  $ sf data update resume --use-most-recent
1087
1087
  ```
1088
1088
 
1089
- _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/update/resume.ts)_
1089
+ _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/update/resume.ts)_
1090
1090
 
1091
1091
  ## `sf data upsert bulk`
1092
1092
 
@@ -1142,7 +1142,7 @@ EXAMPLES
1142
1142
  my-scratch
1143
1143
  ```
1144
1144
 
1145
- _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/upsert/bulk.ts)_
1145
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/upsert/bulk.ts)_
1146
1146
 
1147
1147
  ## `sf data upsert resume`
1148
1148
 
@@ -1181,7 +1181,7 @@ EXAMPLES
1181
1181
  $ sf data upsert resume --use-most-recent --target-org my-scratch
1182
1182
  ```
1183
1183
 
1184
- _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/data/upsert/resume.ts)_
1184
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/data/upsert/resume.ts)_
1185
1185
 
1186
1186
  ## `sf force data bulk delete`
1187
1187
 
@@ -1228,7 +1228,7 @@ EXAMPLES
1228
1228
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
1229
1229
  ```
1230
1230
 
1231
- _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/force/data/bulk/delete.ts)_
1231
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/force/data/bulk/delete.ts)_
1232
1232
 
1233
1233
  ## `sf force data bulk status`
1234
1234
 
@@ -1265,7 +1265,7 @@ EXAMPLES
1265
1265
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
1266
1266
  ```
1267
1267
 
1268
- _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/force/data/bulk/status.ts)_
1268
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/force/data/bulk/status.ts)_
1269
1269
 
1270
1270
  ## `sf force data bulk upsert`
1271
1271
 
@@ -1323,6 +1323,6 @@ EXAMPLES
1323
1323
  --target-org my-scratch
1324
1324
  ```
1325
1325
 
1326
- _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.66/src/commands/force/data/bulk/upsert.ts)_
1326
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/4.0.68/src/commands/force/data/bulk/upsert.ts)_
1327
1327
 
1328
1328
  <!-- commandsstop -->
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -26,7 +26,10 @@ export const importFromFiles = async (conn, dataFilePaths) => {
26
26
  await Promise.all(fileInfos.map(async (fi) => transformRecordTypeEntries(conn, fi.records)));
27
27
  const refMap = createSObjectTypeMap(fileInfos.flatMap((fi) => fi.records));
28
28
  const results = await Promise.allSettled(fileInfos.map((fi) => sendSObjectTreeRequest(conn)(fi.sobject)(JSON.stringify({ records: fi.records }))));
29
- return results.map(getSuccessOrThrow).flatMap(getValueOrThrow(fileInfos)).map(addObjectTypes(refMap));
29
+ return {
30
+ results: results.map(getSuccessOrThrow).flatMap(getValueOrThrow(fileInfos)).map(addObjectTypes(refMap)),
31
+ warnings: [],
32
+ };
30
33
  };
31
34
  const getSuccessOrThrow = (result) => isFulfilled(result) ? result : treeSaveErrorHandler(result.reason);
32
35
  const getValueOrThrow = (fi) => (response, index) => getResultsIfNoError(fi[index].filePath)(response.value);
@@ -1 +1 @@
1
- {"version":3,"file":"importFiles.js","sourceRoot":"","sources":["../../../../src/api/data/tree/importFiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,EAAc,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAoB,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,IAAgB,EAAE,aAAuB,EAA2B,EAAE;IAC1G,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,wCAAwC,CAAC,CAAC;IAC9E,MAAM,SAAS,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACjH,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,CAAC,0BAA0B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AC,WAAW,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;AAClE,CAAC,CAAC;AAEF,sDAAsD;AACtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,OAA2B,EAAuB,EAAE,CACvF,IAAI,GAAG,CACL,OAAO;KACJ,OAAO,CAAC,oBAAoB,CAAC;KAC7B,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;KACvB,MAAM,CAAC,iBAAiB,CAAC;KACzB,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CACjD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -15,11 +15,11 @@
15
15
  */
16
16
  import path from 'node:path';
17
17
  import { EOL } from 'node:os';
18
- import { fileURLToPath } from 'node:url';
19
18
  import fs from 'node:fs';
20
19
  import { createHash } from 'node:crypto';
21
20
  import { isString } from '@salesforce/ts-types';
22
- import { Logger, SchemaValidator, SfError, Messages } from '@salesforce/core';
21
+ import { Logger, Messages } from '@salesforce/core';
22
+ import { DataImportPlanArraySchema } from '../../../schema/dataImportPlan.js';
23
23
  import { getResultsIfNoError, parseDataFileContents, sendSObjectTreeRequest, transformRecordTypeEntries, treeSaveErrorHandler, } from './importCommon.js';
24
24
  import { isUnresolvedRef } from './functions.js';
25
25
  import { hasUnresolvedRefs } from './functions.js';
@@ -30,16 +30,18 @@ const refRegex = (object) => new RegExp(`^@${object}Ref\\d+$`);
30
30
  export const importFromPlan = async (conn, planFilePath) => {
31
31
  const resolvedPlanPath = path.resolve(process.cwd(), planFilePath);
32
32
  const logger = Logger.childFromRoot('data:import:tree:importFromPlan');
33
- const planContents = await Promise.all((await validatePlanContents(logger)(resolvedPlanPath, (await JSON.parse(fs.readFileSync(resolvedPlanPath, 'utf8')))))
34
- // there *shouldn't* be multiple files for the same sobject in a plan, but the legacy code allows that
35
- .flatMap((dpp) => dpp.files.map((f) => ({ ...dpp, filePath: path.resolve(path.dirname(resolvedPlanPath), f) })))
33
+ const warnings = [];
34
+ const planResultObj = validatePlanContents(resolvedPlanPath, JSON.parse(fs.readFileSync(resolvedPlanPath, 'utf-8')));
35
+ warnings.push(...planResultObj.warnings);
36
+ const planContents = await Promise.all(planResultObj.parsedPlans
37
+ .flatMap((planPart) => planPart.files.map((f) => ({ ...planPart, filePath: path.resolve(path.dirname(resolvedPlanPath), f) })))
36
38
  .map(async (i) => ({
37
39
  ...i,
38
40
  records: parseDataFileContents(i.filePath)(await fs.promises.readFile(i.filePath, 'utf-8')),
39
41
  })));
40
42
  // using recursion to sequentially send the requests so we get refs back from each round
41
43
  const { results } = await getResults(conn)(logger)({ results: [], fingerprints: new Set() })(planContents);
42
- return results;
44
+ return { results, warnings };
43
45
  };
44
46
  /** recursively splits files (for size or unresolved refs) and makes API calls, storing results for subsequent calls */
45
47
  const getResults = (conn) => (logger) => (resultsSoFar) => async (planParts) => {
@@ -123,34 +125,25 @@ export const replaceRefs = (results) => (records) => {
123
125
  };
124
126
  /** replace 1 record with 1 ref for all of its fields */
125
127
  const replaceRefWithId = (ref) => (record) => Object.fromEntries(Object.entries(record).map(([k, v]) => [k, v === `@${ref.refId}` ? ref.id : v]));
126
- export const validatePlanContents = (logger) => async (planPath, planContents) => {
127
- const childLogger = logger.child('validatePlanContents');
128
- const planSchema = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..', '..', 'schema', 'dataImportPlanSchema.json');
129
- const val = new SchemaValidator(childLogger, planSchema);
130
- try {
131
- await val.validate(planContents);
132
- const output = planContents;
133
- if (hasRefs(output)) {
134
- childLogger.warn("The plan contains the 'saveRefs' and/or 'resolveRefs' properties. These properties will be ignored and can be removed.");
135
- }
136
- if (!hasOnlySimpleFiles(output)) {
137
- throw messages.createError('error.NonStringFiles');
138
- }
139
- return planContents;
128
+ export function validatePlanContents(planPath, planContents) {
129
+ const warnings = [];
130
+ const parseResults = DataImportPlanArraySchema.safeParse(planContents);
131
+ if (parseResults.error) {
132
+ throw messages.createError('error.InvalidDataImport', [
133
+ planPath,
134
+ parseResults.error.issues.map((e) => JSON.stringify(e, null, 2)).join('\n'),
135
+ ]);
140
136
  }
141
- catch (err) {
142
- if (err instanceof Error && err.name === 'ValidationSchemaFieldError') {
143
- throw messages.createError('error.InvalidDataImport', [planPath, err.message]);
144
- }
145
- else if (err instanceof Error) {
146
- throw SfError.wrap(err);
137
+ const parsedPlans = parseResults.data;
138
+ for (const parsedPlan of parsedPlans) {
139
+ if (parsedPlan.saveRefs !== undefined || parsedPlan.resolveRefs !== undefined) {
140
+ warnings.push("The plan contains the 'saveRefs' and/or 'resolveRefs' properties. These properties will be ignored and can be removed.");
141
+ break;
147
142
  }
148
- throw err;
149
143
  }
150
- };
144
+ return { parsedPlans, warnings };
145
+ }
151
146
  const matchesRefFilter = (unresolvedRefRegex) => (v) => typeof v === 'string' && unresolvedRefRegex.test(v);
152
- const hasOnlySimpleFiles = (planParts) => planParts.every((p) => p.files.every((f) => typeof f === 'string'));
153
- const hasRefs = (planParts) => planParts.some((p) => p.saveRefs !== undefined || p.resolveRefs !== undefined);
154
147
  // TODO: change this implementation to use Object.groupBy when it's on all supported node versions
155
148
  const filterUnresolved = (records) => ({
156
149
  resolved: records.filter((r) => !hasUnresolvedRefs([r])),
@@ -1 +1 @@
1
- {"version":3,"file":"importPlan.js","sourceRoot":"","sources":["../../../../src/api/data/tree/importPlan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAA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C,QAAQ;YACrB,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SAC1C,CAAC,CAAC;QACH,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAChC,MAAM,CAAC,CAAC;IACV,CAAC;IACD,OAAO,EAAE,GAAG,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACvF,CAAC,CAAC;AAEJ,MAAM,UAAU,GAAG,CAAC,GAAkB,EAAU,EAAE,CAChD,UAAU,CAAC,QAAQ,CAAC;KACjB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;KACxC,MAAM,CAAC,KAAK,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/batcher.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/bulkIngest.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/bulkUtils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -53,9 +53,12 @@ export default class Import extends SfCommand {
53
53
  const { flags } = await this.parse(Import);
54
54
  const conn = flags['target-org'].getConnection(flags['api-version']);
55
55
  try {
56
- const results = flags.plan
56
+ const { results, warnings } = flags.plan
57
57
  ? await importFromPlan(conn, flags.plan)
58
58
  : await importFromFiles(conn, flags.files ?? []);
59
+ for (const warning of warnings) {
60
+ this.warn(warning);
61
+ }
59
62
  this.table({
60
63
  data: results,
61
64
  columns: [
@@ -1 +1 @@
1
- {"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../../src/commands/data/import/tree.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,SAAyB;IACpD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,OAAO,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACrD,MAAM,CAAU,gBAAgB,GAAG,IAAI,CAAC;IAExC,MAAM,CAAU,KAAK,GAAG;QAC7B,GAAG,QAAQ;QACX,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,GAAG;YACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;YACnD,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right 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/dataUtils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/export.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/flags.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { z } from 'zod';
17
+ export const DataImportPlanArraySchema = z
18
+ .array(z.object({
19
+ sobject: z.string().describe('Child file references must have SObject roots of this type'),
20
+ saveRefs: z
21
+ .boolean()
22
+ .optional()
23
+ .describe('Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Applies to all data files for this SObject type.'),
24
+ resolveRefs: z
25
+ .boolean()
26
+ .optional()
27
+ .describe('Pre-save, replace @<reference> with ID from previous save. Applies to all data files for this SObject type.'),
28
+ files: z
29
+ .array(z
30
+ .string('The `files` property of the plan objects must contain only strings')
31
+ .describe('Filepath string or object to point to a JSON or XML file having data defined in SObject Tree format.'))
32
+ .describe('An array of files paths to load'),
33
+ }))
34
+ .describe('Schema for data import plan JSON');
35
+ //# sourceMappingURL=dataImportPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataImportPlan.js","sourceRoot":"","sources":["../../src/schema/dataImportPlan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4DAA4D,CAAC;IAC1F,QAAQ,EAAE,CAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,kJAAkJ,CACnJ;IACH,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,8GAA8G,CAC/G;IACH,KAAK,EAAE,CAAC;SACL,KAAK,CACJ,CAAC;SACE,MAAM,CAAC,oEAAoE,CAAC;SAC5E,QAAQ,CACP,sGAAsG,CACvG,CACJ;SACA,QAAQ,CAAC,iCAAiC,CAAC;CAC/C,CAAC,CACH;KACA,QAAQ,CAAC,kCAAkC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ Data plan file %s did not validate against the schema. Errors: %s.
20
20
 
21
21
  - Make sure you're importing a plan definition file.
22
22
 
23
- - Get help with the import plan schema by running "sf data import beta tree --help".
23
+ - Get help with the import plan schema by running "sf data import tree --help".
24
24
 
25
25
  # error.NonStringFiles
26
26
 
@@ -401,83 +401,6 @@
401
401
  "search:data"
402
402
  ]
403
403
  },
404
- "data:bulk:results": {
405
- "aliases": [],
406
- "args": {},
407
- "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
408
- "examples": [
409
- "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
410
- ],
411
- "flags": {
412
- "json": {
413
- "description": "Format output as json.",
414
- "helpGroup": "GLOBAL",
415
- "name": "json",
416
- "allowNo": false,
417
- "type": "boolean"
418
- },
419
- "flags-dir": {
420
- "helpGroup": "GLOBAL",
421
- "name": "flags-dir",
422
- "summary": "Import flag values from a directory.",
423
- "hasDynamicHelp": false,
424
- "multiple": false,
425
- "type": "option"
426
- },
427
- "job-id": {
428
- "char": "i",
429
- "name": "job-id",
430
- "required": true,
431
- "summary": "Job ID of the bulk job.",
432
- "hasDynamicHelp": false,
433
- "multiple": false,
434
- "type": "option"
435
- },
436
- "target-org": {
437
- "char": "o",
438
- "name": "target-org",
439
- "noCacheDefault": true,
440
- "required": true,
441
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
442
- "hasDynamicHelp": true,
443
- "multiple": false,
444
- "type": "option"
445
- },
446
- "api-version": {
447
- "description": "Override the api version used for api requests made by this command",
448
- "name": "api-version",
449
- "hasDynamicHelp": false,
450
- "multiple": false,
451
- "type": "option"
452
- }
453
- },
454
- "hasDynamicHelp": true,
455
- "hiddenAliases": [],
456
- "id": "data:bulk:results",
457
- "pluginAlias": "@salesforce/plugin-data",
458
- "pluginName": "@salesforce/plugin-data",
459
- "pluginType": "core",
460
- "strict": true,
461
- "summary": "Get the results of a bulk ingest job that you previously ran.",
462
- "enableJsonFlag": true,
463
- "isESM": true,
464
- "relativePath": [
465
- "lib",
466
- "commands",
467
- "data",
468
- "bulk",
469
- "results.js"
470
- ],
471
- "aliasPermutations": [],
472
- "permutations": [
473
- "data:bulk:results",
474
- "bulk:data:results",
475
- "bulk:results:data",
476
- "data:results:bulk",
477
- "results:data:bulk",
478
- "results:bulk:data"
479
- ]
480
- },
481
404
  "data:create:file": {
482
405
  "aliases": [],
483
406
  "args": {},
@@ -1165,6 +1088,83 @@
1165
1088
  "resume:delete:data"
1166
1089
  ]
1167
1090
  },
1091
+ "data:bulk:results": {
1092
+ "aliases": [],
1093
+ "args": {},
1094
+ "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
1095
+ "examples": [
1096
+ "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
1097
+ ],
1098
+ "flags": {
1099
+ "json": {
1100
+ "description": "Format output as json.",
1101
+ "helpGroup": "GLOBAL",
1102
+ "name": "json",
1103
+ "allowNo": false,
1104
+ "type": "boolean"
1105
+ },
1106
+ "flags-dir": {
1107
+ "helpGroup": "GLOBAL",
1108
+ "name": "flags-dir",
1109
+ "summary": "Import flag values from a directory.",
1110
+ "hasDynamicHelp": false,
1111
+ "multiple": false,
1112
+ "type": "option"
1113
+ },
1114
+ "job-id": {
1115
+ "char": "i",
1116
+ "name": "job-id",
1117
+ "required": true,
1118
+ "summary": "Job ID of the bulk job.",
1119
+ "hasDynamicHelp": false,
1120
+ "multiple": false,
1121
+ "type": "option"
1122
+ },
1123
+ "target-org": {
1124
+ "char": "o",
1125
+ "name": "target-org",
1126
+ "noCacheDefault": true,
1127
+ "required": true,
1128
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1129
+ "hasDynamicHelp": true,
1130
+ "multiple": false,
1131
+ "type": "option"
1132
+ },
1133
+ "api-version": {
1134
+ "description": "Override the api version used for api requests made by this command",
1135
+ "name": "api-version",
1136
+ "hasDynamicHelp": false,
1137
+ "multiple": false,
1138
+ "type": "option"
1139
+ }
1140
+ },
1141
+ "hasDynamicHelp": true,
1142
+ "hiddenAliases": [],
1143
+ "id": "data:bulk:results",
1144
+ "pluginAlias": "@salesforce/plugin-data",
1145
+ "pluginName": "@salesforce/plugin-data",
1146
+ "pluginType": "core",
1147
+ "strict": true,
1148
+ "summary": "Get the results of a bulk ingest job that you previously ran.",
1149
+ "enableJsonFlag": true,
1150
+ "isESM": true,
1151
+ "relativePath": [
1152
+ "lib",
1153
+ "commands",
1154
+ "data",
1155
+ "bulk",
1156
+ "results.js"
1157
+ ],
1158
+ "aliasPermutations": [],
1159
+ "permutations": [
1160
+ "data:bulk:results",
1161
+ "bulk:data:results",
1162
+ "bulk:results:data",
1163
+ "data:results:bulk",
1164
+ "results:data:bulk",
1165
+ "results:bulk:data"
1166
+ ]
1167
+ },
1168
1168
  "data:export:bulk": {
1169
1169
  "aliases": [],
1170
1170
  "args": {},
@@ -3166,5 +3166,5 @@
3166
3166
  ]
3167
3167
  }
3168
3168
  },
3169
- "version": "4.0.66"
3169
+ "version": "4.0.68"
3170
3170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "4.0.66",
3
+ "version": "4.0.68",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -120,6 +120,8 @@
120
120
  "test:only": "wireit",
121
121
  "version": "oclif readme"
122
122
  },
123
+ "enableO11y": true,
124
+ "o11yUploadEndpoint": "https://794testsite.my.site.com/byolwr/webruntime/log/metrics",
123
125
  "dependencies": {
124
126
  "@jsforce/jsforce-node": "^3.10.8",
125
127
  "@oclif/multi-stage-output": "^0.8.29",
@@ -132,7 +134,8 @@
132
134
  "csv-parse": "^5.6.0",
133
135
  "csv-stringify": "^6.6.0",
134
136
  "form-data": "^4.0.5",
135
- "terminal-link": "^3.0.0"
137
+ "terminal-link": "^3.0.0",
138
+ "zod": "^4.2.1"
136
139
  },
137
140
  "devDependencies": {
138
141
  "@oclif/core": "^4.8.0",
@@ -140,10 +143,10 @@
140
143
  "@oclif/test": "^4.1.15",
141
144
  "@salesforce/cli-plugins-testkit": "^5.3.41",
142
145
  "@salesforce/dev-scripts": "^11.0.4",
143
- "@salesforce/plugin-command-reference": "^3.1.78",
144
- "@salesforce/types": "^1.5.0",
146
+ "@salesforce/plugin-command-reference": "^3.1.79",
147
+ "@salesforce/types": "^1.6.0",
145
148
  "eslint-plugin-sf-plugin": "^1.20.33",
146
- "oclif": "^4.22.52",
149
+ "oclif": "^4.22.59",
147
150
  "ts-node": "^10.9.2",
148
151
  "typescript": "^5.8.3"
149
152
  },
@@ -268,7 +271,7 @@
268
271
  "exports": "./lib/index.js",
269
272
  "type": "module",
270
273
  "sfdx": {
271
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.66.crt",
272
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.66.sig"
274
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.68.crt",
275
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/4.0.68.sig"
273
276
  }
274
277
  }
@@ -1,72 +0,0 @@
1
- {
2
- "$comment": "Copyright (c) 2016, salesforce.com, inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "type": "array",
5
- "title": "Data Import Plan",
6
- "description": "Schema for data import plan JSON.",
7
- "items": {
8
- "type": "object",
9
- "title": "SObject Type",
10
- "description": "Definition of records to be insert per SObject Type",
11
- "properties": {
12
- "sobject": {
13
- "type": "string",
14
- "title": "Name of SObject",
15
- "description": "Child file references must have SObject roots of this type"
16
- },
17
- "saveRefs": {
18
- "type": "boolean",
19
- "title": "Save References",
20
- "description": "Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Applies to all data files for this SObject type.",
21
- "default": false
22
- },
23
- "resolveRefs": {
24
- "type": "boolean",
25
- "title": "Resolve References",
26
- "description": "Pre-save, replace @<reference> with ID from previous save. Applies to all data files for this SObject type.",
27
- "default": false
28
- },
29
- "files": {
30
- "type": "array",
31
- "title": "Files",
32
- "description": "An array of files paths to load",
33
- "items": {
34
- "title": "Filepath.",
35
- "description": "Filepath string or object to point to a JSON or XML file having data defined in SObject Tree format.",
36
- "oneOf": [
37
- {
38
- "type": "string"
39
- },
40
- {
41
- "type": "object",
42
- "properties": {
43
- "file": {
44
- "type": "string",
45
- "title": "Filepath schema",
46
- "description": "Filepath to JSON or XML file having data defined in SObject Tree format"
47
- },
48
- "contentType": {
49
- "title": "Filepath schema.",
50
- "description": "If data file extension is not .json or .xml, provide content type.",
51
- "enum": ["application/json", "application/xml"]
52
- },
53
- "saveRefs": {
54
- "type": "boolean",
55
- "title": "Save References",
56
- "description": "Post-save, save references (Name/ID) to be used for reference replacement in subsequent saves. Overrides SObject-level 'saveRefs' setting."
57
- },
58
- "resolveRefs": {
59
- "type": "boolean",
60
- "title": "Resolve References",
61
- "description": "Pre-save, replace @<reference> with ID from previous save. Overrides SObject-level 'replaceRefs' setting."
62
- }
63
- },
64
- "required": ["file"]
65
- }
66
- ]
67
- }
68
- }
69
- },
70
- "required": ["sobject", "files"]
71
- }
72
- }