@salesforce/plugin-data 0.6.8 → 0.6.11

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 (35) hide show
  1. package/CHANGELOG.md +63 -24
  2. package/README.md +26 -20
  3. package/lib/api/data/tree/exportApi.d.ts +13 -4
  4. package/lib/api/data/tree/exportApi.js +137 -224
  5. package/lib/api/data/tree/exportApi.js.map +1 -1
  6. package/lib/api/data/tree/importApi.d.ts +2 -1
  7. package/lib/api/data/tree/importApi.js +75 -91
  8. package/lib/api/data/tree/importApi.js.map +1 -1
  9. package/lib/batcher.js.map +1 -1
  10. package/lib/commands/force/data/bulk/delete.js.map +1 -1
  11. package/lib/commands/force/data/bulk/status.js.map +1 -1
  12. package/lib/commands/force/data/bulk/upsert.js.map +1 -1
  13. package/lib/commands/force/data/record/create.js.map +1 -1
  14. package/lib/commands/force/data/record/delete.js.map +1 -1
  15. package/lib/commands/force/data/record/get.js.map +1 -1
  16. package/lib/commands/force/data/record/update.js.map +1 -1
  17. package/lib/commands/force/data/soql/query.d.ts +1 -0
  18. package/lib/commands/force/data/soql/query.js +18 -8
  19. package/lib/commands/force/data/soql/query.js.map +1 -1
  20. package/lib/commands/force/data/tree/export.d.ts +2 -1
  21. package/lib/commands/force/data/tree/export.js.map +1 -1
  22. package/lib/dataCommand.d.ts +3 -3
  23. package/lib/dataCommand.js +12 -2
  24. package/lib/dataCommand.js.map +1 -1
  25. package/lib/dataSoqlQueryTypes.d.ts +38 -1
  26. package/lib/dataSoqlQueryTypes.js +10 -2
  27. package/lib/dataSoqlQueryTypes.js.map +1 -1
  28. package/lib/reporters.d.ts +3 -3
  29. package/lib/reporters.js +32 -14
  30. package/lib/reporters.js.map +1 -1
  31. package/oclif.manifest.json +1 -1
  32. package/package.json +11 -11
  33. package/lib/api/data/tree/executors.d.ts +0 -1
  34. package/lib/api/data/tree/executors.js +0 -19
  35. package/lib/api/data/tree/executors.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.6.11](https://github.com/salesforcecli/plugin-data/compare/v0.6.10...v0.6.11) (2022-03-25)
6
+
7
+ ### [0.6.10](https://github.com/salesforcecli/plugin-data/compare/v0.6.9...v0.6.10) (2022-03-10)
8
+
9
+ ### Bug Fixes
10
+
11
+ - bump core and jsforce
12
+ versions ([#283](https://github.com/salesforcecli/plugin-data/issues/283)) ([11908be](https://github.com/salesforcecli/plugin-data/commit/11908bedd9538aeddc1631afa99f4ae01150935d))
13
+
14
+ ### [0.6.9](https://github.com/salesforcecli/plugin-data/compare/v0.6.8...v0.6.9) (2022-02-07)
15
+
16
+ ### Bug Fixes
17
+
18
+ - fix 3 data
19
+ bugs ([801a7aa](https://github.com/salesforcecli/plugin-data/commit/801a7aaaae5346c8c6617ba6c8dc5ca297a86f17))
20
+
5
21
  ### [0.6.8](https://github.com/salesforcecli/plugin-data/compare/v0.6.7...v0.6.8) (2022-01-03)
6
22
 
7
23
  ### [0.6.7](https://github.com/salesforcecli/plugin-data/compare/v0.6.6...v0.6.7) (2021-12-28)
@@ -16,14 +32,17 @@ All notable changes to this project will be documented in this file. See [standa
16
32
 
17
33
  ### Bug Fixes
18
34
 
19
- - adds note about non-inclusive language ([844f74a](https://github.com/salesforcecli/plugin-data/commit/844f74a5ceddb917491a519a760304fdd0b796f1))
20
- - remove "master-detail" from long desc ([67460fc](https://github.com/salesforcecli/plugin-data/commit/67460fcac2a0e2afb784a0d038760afda2239e96))
35
+ - adds note about non-inclusive
36
+ language ([844f74a](https://github.com/salesforcecli/plugin-data/commit/844f74a5ceddb917491a519a760304fdd0b796f1))
37
+ - remove "master-detail" from long
38
+ desc ([67460fc](https://github.com/salesforcecli/plugin-data/commit/67460fcac2a0e2afb784a0d038760afda2239e96))
21
39
 
22
40
  ### [0.6.4](https://github.com/salesforcecli/plugin-data/compare/v0.6.3...v0.6.4) (2021-10-21)
23
41
 
24
42
  ### Bug Fixes
25
43
 
26
- - downgrade eslint jsdoc dep ([8775d6c](https://github.com/salesforcecli/plugin-data/commit/8775d6cca6b7240b023958e282cfadbe2e16ec6e))
44
+ - downgrade eslint jsdoc
45
+ dep ([8775d6c](https://github.com/salesforcecli/plugin-data/commit/8775d6cca6b7240b023958e282cfadbe2e16ec6e))
27
46
 
28
47
  ### [0.6.3](https://github.com/salesforcecli/plugin-data/compare/v0.6.2...v0.6.3) (2021-10-12)
29
48
 
@@ -37,27 +56,39 @@ All notable changes to this project will be documented in this file. See [standa
37
56
 
38
57
  ### Features
39
58
 
40
- - @W-8449669@ migrate force:data:soql:query ([#16](https://github.com/salesforcecli/plugin-data/issues/16)) ([b6820f8](https://github.com/salesforcecli/plugin-data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
41
- - added new flag for serial process ([#166](https://github.com/salesforcecli/plugin-data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/plugin-data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
42
- - record commands ([37f5d61](https://github.com/salesforcecli/plugin-data/commit/37f5d61f65055c76aceac85077fd484c810bd49c))
59
+ - @W-8449669@ migrate force:data:soql:
60
+ query ([#16](https://github.com/salesforcecli/plugin-data/issues/16)) ([b6820f8](https://github.com/salesforcecli/plugin-data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
61
+ - added new flag for serial
62
+ process ([#166](https://github.com/salesforcecli/plugin-data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/plugin-data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
63
+ - record
64
+ commands ([37f5d61](https://github.com/salesforcecli/plugin-data/commit/37f5d61f65055c76aceac85077fd484c810bd49c))
43
65
 
44
66
  ### Bug Fixes
45
67
 
46
- - add oclif/dev dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/plugin-data/issues/90)) ([ecbd054](https://github.com/salesforcecli/plugin-data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
47
- - commands ignore --usetoolingapi ([#40](https://github.com/salesforcecli/plugin-data/issues/40)) ([d787ebc](https://github.com/salesforcecli/plugin-data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
48
- - correct help for data commands ([#69](https://github.com/salesforcecli/plugin-data/issues/69)) ([80b601b](https://github.com/salesforcecli/plugin-data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
49
- - depend on 0.1.5 ([#132](https://github.com/salesforcecli/plugin-data/issues/132)) ([97c1199](https://github.com/salesforcecli/plugin-data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
50
- - dependency pruning ([#141](https://github.com/salesforcecli/plugin-data/issues/141)) ([7a8212d](https://github.com/salesforcecli/plugin-data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
51
- - force release ([9545abe](https://github.com/salesforcecli/plugin-data/commit/9545abea419807e84bbb758dcb735eb5cb6aa91d))
52
- - parse csv as utf-8 and enable bom parsing ([#31](https://github.com/salesforcecli/plugin-data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/plugin-data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
53
- - Unlerna data #(184) ([18fa280](https://github.com/salesforcecli/plugin-data/commit/18fa2809f1337a56364bd713d3336b72d6026637))
54
- - various data:record bugs ([a05ac07](https://github.com/salesforcecli/plugin-data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
68
+ - add oclif/dev
69
+ dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/plugin-data/issues/90)) ([ecbd054](https://github.com/salesforcecli/plugin-data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
70
+ - commands ignore
71
+ --usetoolingapi ([#40](https://github.com/salesforcecli/plugin-data/issues/40)) ([d787ebc](https://github.com/salesforcecli/plugin-data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
72
+ - correct help for data
73
+ commands ([#69](https://github.com/salesforcecli/plugin-data/issues/69)) ([80b601b](https://github.com/salesforcecli/plugin-data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
74
+ - depend on
75
+ 0.1.5 ([#132](https://github.com/salesforcecli/plugin-data/issues/132)) ([97c1199](https://github.com/salesforcecli/plugin-data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
76
+ - dependency
77
+ pruning ([#141](https://github.com/salesforcecli/plugin-data/issues/141)) ([7a8212d](https://github.com/salesforcecli/plugin-data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
78
+ - force
79
+ release ([9545abe](https://github.com/salesforcecli/plugin-data/commit/9545abea419807e84bbb758dcb735eb5cb6aa91d))
80
+ - parse csv as utf-8 and enable bom
81
+ parsing ([#31](https://github.com/salesforcecli/plugin-data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/plugin-data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
82
+ - Unlerna data #( 184) ([18fa280](https://github.com/salesforcecli/plugin-data/commit/18fa2809f1337a56364bd713d3336b72d6026637))
83
+ - various data:record
84
+ bugs ([a05ac07](https://github.com/salesforcecli/plugin-data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
55
85
 
56
86
  # [0.6.0](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.5.2...@salesforce/plugin-data@0.6.0) (2021-07-26)
57
87
 
58
88
  ### Features
59
89
 
60
- - added new flag for serial process ([#166](https://github.com/salesforcecli/data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
90
+ - added new flag for serial
91
+ process ([#166](https://github.com/salesforcecli/data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
61
92
 
62
93
  ## [0.5.2](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.5.1...@salesforce/plugin-data@0.5.2) (2021-07-08)
63
94
 
@@ -71,7 +102,8 @@ All notable changes to this project will be documented in this file. See [standa
71
102
 
72
103
  ### Bug Fixes
73
104
 
74
- - dependency pruning ([#141](https://github.com/salesforcecli/data/issues/141)) ([7a8212d](https://github.com/salesforcecli/data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
105
+ - dependency
106
+ pruning ([#141](https://github.com/salesforcecli/data/issues/141)) ([7a8212d](https://github.com/salesforcecli/data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
75
107
 
76
108
  ## [0.4.11](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.10...@salesforce/plugin-data@0.4.11) (2021-06-04)
77
109
 
@@ -81,7 +113,8 @@ All notable changes to this project will be documented in this file. See [standa
81
113
 
82
114
  ### Bug Fixes
83
115
 
84
- - depend on 0.1.5 ([#132](https://github.com/salesforcecli/data/issues/132)) ([97c1199](https://github.com/salesforcecli/data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
116
+ - depend on
117
+ 0.1.5 ([#132](https://github.com/salesforcecli/data/issues/132)) ([97c1199](https://github.com/salesforcecli/data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
85
118
 
86
119
  ## [0.4.9](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.8...@salesforce/plugin-data@0.4.9) (2021-06-02)
87
120
 
@@ -97,19 +130,22 @@ All notable changes to this project will be documented in this file. See [standa
97
130
 
98
131
  ### Bug Fixes
99
132
 
100
- - add oclif/dev dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/data/issues/90)) ([ecbd054](https://github.com/salesforcecli/data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
133
+ - add oclif/dev
134
+ dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/data/issues/90)) ([ecbd054](https://github.com/salesforcecli/data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
101
135
 
102
136
  ## [0.4.5](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.3...@salesforce/plugin-data@0.4.5) (2021-04-09)
103
137
 
104
138
  ### Bug Fixes
105
139
 
106
- - correct help for data commands ([#69](https://github.com/salesforcecli/data/issues/69)) ([80b601b](https://github.com/salesforcecli/data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
140
+ - correct help for data
141
+ commands ([#69](https://github.com/salesforcecli/data/issues/69)) ([80b601b](https://github.com/salesforcecli/data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
107
142
 
108
143
  ## [0.4.3](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.2...@salesforce/plugin-data@0.4.3) (2021-02-24)
109
144
 
110
145
  ### Bug Fixes
111
146
 
112
- - commands ignore --usetoolingapi ([#40](https://github.com/salesforcecli/data/issues/40)) ([d787ebc](https://github.com/salesforcecli/data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
147
+ - commands ignore
148
+ --usetoolingapi ([#40](https://github.com/salesforcecli/data/issues/40)) ([d787ebc](https://github.com/salesforcecli/data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
113
149
 
114
150
  ## [0.4.2](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.1...@salesforce/plugin-data@0.4.2) (2021-02-10)
115
151
 
@@ -119,13 +155,15 @@ All notable changes to this project will be documented in this file. See [standa
119
155
 
120
156
  ### Bug Fixes
121
157
 
122
- - parse csv as utf-8 and enable bom parsing ([#31](https://github.com/salesforcecli/data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
158
+ - parse csv as utf-8 and enable bom
159
+ parsing ([#31](https://github.com/salesforcecli/data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
123
160
 
124
161
  # [0.4.0](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.2.5...@salesforce/plugin-data@0.4.0) (2021-02-01)
125
162
 
126
163
  ### Features
127
164
 
128
- - @W-8449669@ migrate force:data:soql:query ([#16](https://github.com/salesforcecli/data/issues/16)) ([b6820f8](https://github.com/salesforcecli/data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
165
+ - @W-8449669@ migrate force:data:soql:
166
+ query ([#16](https://github.com/salesforcecli/data/issues/16)) ([b6820f8](https://github.com/salesforcecli/data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
129
167
 
130
168
  ## [0.2.5](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.2.4...@salesforce/plugin-data@0.2.5) (2020-12-15)
131
169
 
@@ -147,7 +185,8 @@ All notable changes to this project will be documented in this file. See [standa
147
185
 
148
186
  ### Bug Fixes
149
187
 
150
- - various data:record bugs ([a05ac07](https://github.com/salesforcecli/data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
188
+ - various data:record
189
+ bugs ([a05ac07](https://github.com/salesforcecli/data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
151
190
 
152
191
  # 0.2.0 (2020-11-24)
153
192
 
package/README.md CHANGED
@@ -4,9 +4,13 @@
4
4
 
5
5
  `data` commands for Salesforce CLI.
6
6
 
7
- This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
7
+ This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/sfdxcli). For more information
8
+ on the CLI, read
9
+ the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm)
10
+ .
8
11
 
9
- We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific version or tag if needed.
12
+ We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific
13
+ version or tag if needed.
10
14
 
11
15
  ## Install
12
16
 
@@ -21,21 +25,22 @@ Please report any issues at https://github.com/forcedotcom/cli/issues
21
25
  ## Contributing
22
26
 
23
27
  1. Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
24
- 2. Create a new issue before starting your project so that we can keep track of
25
- what you are trying to add/fix. That way, we can also offer suggestions or
26
- let you know if there is already an effort in progress.
28
+ 2. Create a new issue before starting your project so that we can keep track of what you are trying to add/fix. That
29
+ way, we can also offer suggestions or let you know if there is already an effort in progress.
27
30
  3. Fork this repository.
28
31
  4. [Build the plugin locally](#build)
29
- 5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
32
+ 5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing
33
+ using a fork.
30
34
  6. Edit the code in your fork.
31
- 7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
35
+ 7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request
36
+ will be accepted without unit tests.
32
37
  8. Sign CLA (see [CLA](#cla) below).
33
38
  9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
34
39
 
35
40
  ### CLA
36
41
 
37
- External contributors will be required to sign a Contributor's License
38
- Agreement. You can do so by going to https://cla.salesforce.com/sign-cla.
42
+ External contributors will be required to sign a Contributor's License Agreement. You can do so by going
43
+ to https://cla.salesforce.com/sign-cla.
39
44
 
40
45
  ### Build
41
46
 
@@ -57,7 +62,8 @@ To use your plugin, run using the local `./bin/run` or `./bin/run.cmd` file.
57
62
  ./bin/run force:data
58
63
  ```
59
64
 
60
- There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
65
+ There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be
66
+ useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
61
67
 
62
68
  ```bash
63
69
  # Link your plugin to the sfdx cli
@@ -123,7 +129,7 @@ EXAMPLES
123
129
  sfdx force:data:bulk:delete -s MyObject__c -f ./path/to/file.csv
124
130
  ```
125
131
 
126
- _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/bulk/delete.ts)_
132
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/bulk/delete.ts)_
127
133
 
128
134
  ## `sfdx force:data:bulk:status -i <string> [-b <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
129
135
 
@@ -162,7 +168,7 @@ EXAMPLES
162
168
  sfdx force:data:bulk:status -i 750xx000000005sAAA -b 751xx000000005nAAA
163
169
  ```
164
170
 
165
- _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/bulk/status.ts)_
171
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/bulk/status.ts)_
166
172
 
167
173
  ## `sfdx force:data:bulk:upsert -i <string> -f <filepath> -s <string> [-w <minutes>] [-r] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
168
174
 
@@ -215,7 +221,7 @@ EXAMPLES
215
221
  sfdx force:data:bulk:upsert -s MyObject__c -f ./path/to/file.csv -i Id -w 2
216
222
  ```
217
223
 
218
- _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/bulk/upsert.ts)_
224
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/bulk/upsert.ts)_
219
225
 
220
226
  ## `sfdx force:data:record:create -s <string> -v <string> [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
221
227
 
@@ -265,7 +271,7 @@ EXAMPLES
265
271
  sfdx force:data:record:create -s Account -v "Name=Acme" --perflog --json
266
272
  ```
267
273
 
268
- _See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/record/create.ts)_
274
+ _See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/record/create.ts)_
269
275
 
270
276
  ## `sfdx force:data:record:delete -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
271
277
 
@@ -316,7 +322,7 @@ EXAMPLES
316
322
  sfdx force:data:record:delete -t -s TraceFlag -i 7tf170000009cU6AAI --perflog --json
317
323
  ```
318
324
 
319
- _See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/record/delete.ts)_
325
+ _See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/record/delete.ts)_
320
326
 
321
327
  ## `sfdx force:data:record:get -s <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
322
328
 
@@ -368,7 +374,7 @@ EXAMPLES
368
374
  sfdx force:data:record:get -t -s TraceFlag -i 7tf170000009cUBAAY --perflog --json
369
375
  ```
370
376
 
371
- _See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/record/get.ts)_
377
+ _See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/record/get.ts)_
372
378
 
373
379
  ## `sfdx force:data:record:update -s <string> -v <string> [-i <id> | -w <string>] [-t] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
374
380
 
@@ -421,7 +427,7 @@ EXAMPLES
421
427
  sfdx force:data:record:update -s Account -i 001D000000Kv3dl -v "Name=NewAcme" --perflog --json
422
428
  ```
423
429
 
424
- _See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/record/update.ts)_
430
+ _See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/record/update.ts)_
425
431
 
426
432
  ## `sfdx force:data:soql:query -q <string> [-t] [-r human|csv|json] [--perflog --json] [-u <string>] [--apiversion <string>] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
427
433
 
@@ -466,7 +472,7 @@ EXAMPLES
466
472
  sfdx force:data:soql:query -q "SELECT Name FROM ApexTrigger" -t
467
473
  ```
468
474
 
469
- _See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/soql/query.ts)_
475
+ _See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/soql/query.ts)_
470
476
 
471
477
  ## `sfdx force:data:tree:export -q <string> [-p] [-x <string>] [-d <directory>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
472
478
 
@@ -511,7 +517,7 @@ EXAMPLES
511
517
  sfdx force:data:tree:export -q <path to file containing soql query> -x export-demo -d /tmp/sfdx-out -p
512
518
  ```
513
519
 
514
- _See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/tree/export.ts)_
520
+ _See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/tree/export.ts)_
515
521
 
516
522
  ## `sfdx force:data:tree:import [-f <array> | -p <filepath>] [--confighelp] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
517
523
 
@@ -562,6 +568,6 @@ EXAMPLES
562
568
  sfdx force:data:tree:import -p Account-Contact-plan.json -u me@my.org
563
569
  ```
564
570
 
565
- _See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.7/src/commands/force/data/tree/import.ts)_
571
+ _See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.10/src/commands/force/data/tree/import.ts)_
566
572
 
567
573
  <!-- commandsstop -->
@@ -1,6 +1,6 @@
1
1
  import { Org } from '@salesforce/core';
2
- import { AnyJson } from '@salesforce/ts-types';
3
2
  import { UX } from '@salesforce/command';
3
+ import { DataPlanPart, SObjectTreeFileContents } from '../../../dataSoqlQueryTypes';
4
4
  export interface ExportConfig {
5
5
  query: string;
6
6
  outputDir?: string;
@@ -15,7 +15,7 @@ export declare class ExportApi {
15
15
  private readonly ux;
16
16
  private logger;
17
17
  private objectTypeRegistry;
18
- private referenceRegistry;
18
+ private refFromIdByType;
19
19
  private typeRefIndexes;
20
20
  private config;
21
21
  constructor(org: Org, ux: UX);
@@ -25,7 +25,7 @@ export declare class ExportApi {
25
25
  *
26
26
  * @param config
27
27
  */
28
- export(config: ExportConfig): Promise<AnyJson>;
28
+ export(config: ExportConfig): Promise<SObjectTreeFileContents | DataPlanPart[]>;
29
29
  /**
30
30
  * Ensures a valid query is defined in the export configuration,
31
31
  * which can be either a soql query or a path to a file containing
@@ -36,8 +36,11 @@ export declare class ExportApi {
36
36
  private validate;
37
37
  private setupOutputDirectory;
38
38
  private processQueryResults;
39
+ /**
40
+ * Register object types and type hierarchy for plan generation
41
+ **/
39
42
  private recordObjectTypes;
40
- private processRecordList;
43
+ private queryResultsToTree;
41
44
  private processRecords;
42
45
  private incrementTypeRefIndex;
43
46
  private processRecordAttributes;
@@ -50,6 +53,11 @@ export declare class ExportApi {
50
53
  private isRelationshipWithMetadata;
51
54
  private getRelatedTo;
52
55
  private getRelatedToWithMetadata;
56
+ /**
57
+ * Register object type's id to reference mapping
58
+ *
59
+ * @param refId like '@AccountRef1'
60
+ * */
53
61
  private saveRecordRef;
54
62
  /**
55
63
  * Walk the final data set and split out into files. The main queried
@@ -65,5 +73,6 @@ export declare class ExportApi {
65
73
  */
66
74
  private finalApplyRefs;
67
75
  private countRecords;
76
+ private getPrefixedFileName;
68
77
  private writeDataFileSync;
69
78
  }