@salesforce/plugin-data 0.6.10 → 0.6.13
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 +61 -26
- package/README.md +26 -20
- package/lib/api/data/tree/exportApi.d.ts +13 -4
- package/lib/api/data/tree/exportApi.js +137 -224
- package/lib/api/data/tree/exportApi.js.map +1 -1
- package/lib/api/data/tree/importApi.d.ts +2 -1
- package/lib/api/data/tree/importApi.js +75 -91
- package/lib/api/data/tree/importApi.js.map +1 -1
- package/lib/batcher.js +18 -2
- package/lib/batcher.js.map +1 -1
- package/lib/commands/force/data/bulk/delete.js.map +1 -1
- package/lib/commands/force/data/bulk/status.js.map +1 -1
- package/lib/commands/force/data/bulk/upsert.js.map +1 -1
- package/lib/commands/force/data/record/create.js.map +1 -1
- package/lib/commands/force/data/record/delete.js.map +1 -1
- package/lib/commands/force/data/record/get.js.map +1 -1
- package/lib/commands/force/data/record/update.js.map +1 -1
- package/lib/commands/force/data/soql/query.js.map +1 -1
- package/lib/commands/force/data/tree/export.d.ts +2 -1
- package/lib/commands/force/data/tree/export.js.map +1 -1
- package/lib/dataCommand.js +0 -1
- package/lib/dataCommand.js.map +1 -1
- package/lib/dataSoqlQueryTypes.d.ts +38 -1
- package/lib/dataSoqlQueryTypes.js +10 -2
- package/lib/dataSoqlQueryTypes.js.map +1 -1
- package/lib/reporters.d.ts +3 -3
- package/lib/reporters.js +13 -18
- package/lib/reporters.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +10 -9
- package/lib/api/data/tree/executors.d.ts +0 -1
- package/lib/api/data/tree/executors.js +0 -19
- package/lib/api/data/tree/executors.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,17 +2,29 @@
|
|
|
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.13](https://github.com/salesforcecli/plugin-data/compare/v0.6.12...v0.6.13) (2022-04-14)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- bulk batching wide fIles (cli/[#1460](https://github.com/salesforcecli/plugin-data/issues/1460)) ([c8b2855](https://github.com/salesforcecli/plugin-data/commit/c8b2855786fd6e1c13fc879bc4ab7e556cfc0600))
|
|
10
|
+
|
|
11
|
+
### [0.6.12](https://github.com/salesforcecli/plugin-data/compare/v0.6.11...v0.6.12) (2022-03-30)
|
|
12
|
+
|
|
13
|
+
### [0.6.11](https://github.com/salesforcecli/plugin-data/compare/v0.6.10...v0.6.11) (2022-03-25)
|
|
14
|
+
|
|
5
15
|
### [0.6.10](https://github.com/salesforcecli/plugin-data/compare/v0.6.9...v0.6.10) (2022-03-10)
|
|
6
16
|
|
|
7
17
|
### Bug Fixes
|
|
8
18
|
|
|
9
|
-
- bump core and jsforce
|
|
19
|
+
- bump core and jsforce
|
|
20
|
+
versions ([#283](https://github.com/salesforcecli/plugin-data/issues/283)) ([11908be](https://github.com/salesforcecli/plugin-data/commit/11908bedd9538aeddc1631afa99f4ae01150935d))
|
|
10
21
|
|
|
11
22
|
### [0.6.9](https://github.com/salesforcecli/plugin-data/compare/v0.6.8...v0.6.9) (2022-02-07)
|
|
12
23
|
|
|
13
24
|
### Bug Fixes
|
|
14
25
|
|
|
15
|
-
- fix 3 data
|
|
26
|
+
- fix 3 data
|
|
27
|
+
bugs ([801a7aa](https://github.com/salesforcecli/plugin-data/commit/801a7aaaae5346c8c6617ba6c8dc5ca297a86f17))
|
|
16
28
|
|
|
17
29
|
### [0.6.8](https://github.com/salesforcecli/plugin-data/compare/v0.6.7...v0.6.8) (2022-01-03)
|
|
18
30
|
|
|
@@ -28,14 +40,17 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
28
40
|
|
|
29
41
|
### Bug Fixes
|
|
30
42
|
|
|
31
|
-
- adds note about non-inclusive
|
|
32
|
-
|
|
43
|
+
- adds note about non-inclusive
|
|
44
|
+
language ([844f74a](https://github.com/salesforcecli/plugin-data/commit/844f74a5ceddb917491a519a760304fdd0b796f1))
|
|
45
|
+
- remove "master-detail" from long
|
|
46
|
+
desc ([67460fc](https://github.com/salesforcecli/plugin-data/commit/67460fcac2a0e2afb784a0d038760afda2239e96))
|
|
33
47
|
|
|
34
48
|
### [0.6.4](https://github.com/salesforcecli/plugin-data/compare/v0.6.3...v0.6.4) (2021-10-21)
|
|
35
49
|
|
|
36
50
|
### Bug Fixes
|
|
37
51
|
|
|
38
|
-
- downgrade eslint jsdoc
|
|
52
|
+
- downgrade eslint jsdoc
|
|
53
|
+
dep ([8775d6c](https://github.com/salesforcecli/plugin-data/commit/8775d6cca6b7240b023958e282cfadbe2e16ec6e))
|
|
39
54
|
|
|
40
55
|
### [0.6.3](https://github.com/salesforcecli/plugin-data/compare/v0.6.2...v0.6.3) (2021-10-12)
|
|
41
56
|
|
|
@@ -49,27 +64,39 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
49
64
|
|
|
50
65
|
### Features
|
|
51
66
|
|
|
52
|
-
- @W-8449669@ migrate force:data:soql:
|
|
53
|
-
|
|
54
|
-
-
|
|
67
|
+
- @W-8449669@ migrate force:data:soql:
|
|
68
|
+
query ([#16](https://github.com/salesforcecli/plugin-data/issues/16)) ([b6820f8](https://github.com/salesforcecli/plugin-data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
|
|
69
|
+
- added new flag for serial
|
|
70
|
+
process ([#166](https://github.com/salesforcecli/plugin-data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/plugin-data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
|
|
71
|
+
- record
|
|
72
|
+
commands ([37f5d61](https://github.com/salesforcecli/plugin-data/commit/37f5d61f65055c76aceac85077fd484c810bd49c))
|
|
55
73
|
|
|
56
74
|
### Bug Fixes
|
|
57
75
|
|
|
58
|
-
- add oclif/dev
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
-
|
|
76
|
+
- add oclif/dev
|
|
77
|
+
dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/plugin-data/issues/90)) ([ecbd054](https://github.com/salesforcecli/plugin-data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
|
|
78
|
+
- commands ignore
|
|
79
|
+
--usetoolingapi ([#40](https://github.com/salesforcecli/plugin-data/issues/40)) ([d787ebc](https://github.com/salesforcecli/plugin-data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
|
|
80
|
+
- correct help for data
|
|
81
|
+
commands ([#69](https://github.com/salesforcecli/plugin-data/issues/69)) ([80b601b](https://github.com/salesforcecli/plugin-data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
|
|
82
|
+
- depend on
|
|
83
|
+
0.1.5 ([#132](https://github.com/salesforcecli/plugin-data/issues/132)) ([97c1199](https://github.com/salesforcecli/plugin-data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
|
|
84
|
+
- dependency
|
|
85
|
+
pruning ([#141](https://github.com/salesforcecli/plugin-data/issues/141)) ([7a8212d](https://github.com/salesforcecli/plugin-data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
|
|
86
|
+
- force
|
|
87
|
+
release ([9545abe](https://github.com/salesforcecli/plugin-data/commit/9545abea419807e84bbb758dcb735eb5cb6aa91d))
|
|
88
|
+
- parse csv as utf-8 and enable bom
|
|
89
|
+
parsing ([#31](https://github.com/salesforcecli/plugin-data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/plugin-data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
|
|
90
|
+
- Unlerna data #( 184) ([18fa280](https://github.com/salesforcecli/plugin-data/commit/18fa2809f1337a56364bd713d3336b72d6026637))
|
|
91
|
+
- various data:record
|
|
92
|
+
bugs ([a05ac07](https://github.com/salesforcecli/plugin-data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
|
|
67
93
|
|
|
68
94
|
# [0.6.0](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.5.2...@salesforce/plugin-data@0.6.0) (2021-07-26)
|
|
69
95
|
|
|
70
96
|
### Features
|
|
71
97
|
|
|
72
|
-
- added new flag for serial
|
|
98
|
+
- added new flag for serial
|
|
99
|
+
process ([#166](https://github.com/salesforcecli/data/issues/166)) ([9c70cbd](https://github.com/salesforcecli/data/commit/9c70cbd78deecf2d99b63b3328fa6475657c49b2))
|
|
73
100
|
|
|
74
101
|
## [0.5.2](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.5.1...@salesforce/plugin-data@0.5.2) (2021-07-08)
|
|
75
102
|
|
|
@@ -83,7 +110,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
83
110
|
|
|
84
111
|
### Bug Fixes
|
|
85
112
|
|
|
86
|
-
- dependency
|
|
113
|
+
- dependency
|
|
114
|
+
pruning ([#141](https://github.com/salesforcecli/data/issues/141)) ([7a8212d](https://github.com/salesforcecli/data/commit/7a8212d7d99e1cddc8a9f2fbaaea7abd2fea181f))
|
|
87
115
|
|
|
88
116
|
## [0.4.11](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.10...@salesforce/plugin-data@0.4.11) (2021-06-04)
|
|
89
117
|
|
|
@@ -93,7 +121,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
93
121
|
|
|
94
122
|
### Bug Fixes
|
|
95
123
|
|
|
96
|
-
- depend on
|
|
124
|
+
- depend on
|
|
125
|
+
0.1.5 ([#132](https://github.com/salesforcecli/data/issues/132)) ([97c1199](https://github.com/salesforcecli/data/commit/97c119977b4749e1add714ce2a04ef2940e627f3))
|
|
97
126
|
|
|
98
127
|
## [0.4.9](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.8...@salesforce/plugin-data@0.4.9) (2021-06-02)
|
|
99
128
|
|
|
@@ -109,19 +138,22 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
109
138
|
|
|
110
139
|
### Bug Fixes
|
|
111
140
|
|
|
112
|
-
- add oclif/dev
|
|
141
|
+
- add oclif/dev
|
|
142
|
+
dependency [skip-validate-pr] ([#90](https://github.com/salesforcecli/data/issues/90)) ([ecbd054](https://github.com/salesforcecli/data/commit/ecbd05403cb71988c4110b4e5e0815229c5ed86e))
|
|
113
143
|
|
|
114
144
|
## [0.4.5](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.3...@salesforce/plugin-data@0.4.5) (2021-04-09)
|
|
115
145
|
|
|
116
146
|
### Bug Fixes
|
|
117
147
|
|
|
118
|
-
- correct help for data
|
|
148
|
+
- correct help for data
|
|
149
|
+
commands ([#69](https://github.com/salesforcecli/data/issues/69)) ([80b601b](https://github.com/salesforcecli/data/commit/80b601bc0cbd973326afe69ad825530e53d1f5fc))
|
|
119
150
|
|
|
120
151
|
## [0.4.3](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.2...@salesforce/plugin-data@0.4.3) (2021-02-24)
|
|
121
152
|
|
|
122
153
|
### Bug Fixes
|
|
123
154
|
|
|
124
|
-
- commands ignore
|
|
155
|
+
- commands ignore
|
|
156
|
+
--usetoolingapi ([#40](https://github.com/salesforcecli/data/issues/40)) ([d787ebc](https://github.com/salesforcecli/data/commit/d787ebcb297e192938cf1c9fb29c5063366f65ce))
|
|
125
157
|
|
|
126
158
|
## [0.4.2](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.4.1...@salesforce/plugin-data@0.4.2) (2021-02-10)
|
|
127
159
|
|
|
@@ -131,13 +163,15 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
131
163
|
|
|
132
164
|
### Bug Fixes
|
|
133
165
|
|
|
134
|
-
- parse csv as utf-8 and enable bom
|
|
166
|
+
- parse csv as utf-8 and enable bom
|
|
167
|
+
parsing ([#31](https://github.com/salesforcecli/data/issues/31)) ([7ecc0ed](https://github.com/salesforcecli/data/commit/7ecc0ede766270909dbeb0d8da6167efdb3d454a))
|
|
135
168
|
|
|
136
169
|
# [0.4.0](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.2.5...@salesforce/plugin-data@0.4.0) (2021-02-01)
|
|
137
170
|
|
|
138
171
|
### Features
|
|
139
172
|
|
|
140
|
-
- @W-8449669@ migrate force:data:soql:
|
|
173
|
+
- @W-8449669@ migrate force:data:soql:
|
|
174
|
+
query ([#16](https://github.com/salesforcecli/data/issues/16)) ([b6820f8](https://github.com/salesforcecli/data/commit/b6820f8632876419f5f0d5f74f11651adb02d4b9))
|
|
141
175
|
|
|
142
176
|
## [0.2.5](https://github.com/salesforcecli/data/compare/@salesforce/plugin-data@0.2.4...@salesforce/plugin-data@0.2.5) (2020-12-15)
|
|
143
177
|
|
|
@@ -159,7 +193,8 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
159
193
|
|
|
160
194
|
### Bug Fixes
|
|
161
195
|
|
|
162
|
-
- various data:record
|
|
196
|
+
- various data:record
|
|
197
|
+
bugs ([a05ac07](https://github.com/salesforcecli/data/commit/a05ac07e7beb9d73776908beed085b7644d580fe))
|
|
163
198
|
|
|
164
199
|
# 0.2.0 (2020-11-24)
|
|
165
200
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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.
|
|
132
|
+
_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
171
|
+
_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
224
|
+
_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
274
|
+
_See code: [src/commands/force/data/record/create.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
325
|
+
_See code: [src/commands/force/data/record/delete.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
377
|
+
_See code: [src/commands/force/data/record/get.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
430
|
+
_See code: [src/commands/force/data/record/update.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
475
|
+
_See code: [src/commands/force/data/soql/query.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
520
|
+
_See code: [src/commands/force/data/tree/export.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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.
|
|
571
|
+
_See code: [src/commands/force/data/tree/import.ts](https://github.com/salesforcecli/plugin-data/blob/v0.6.12/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
|
|
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<
|
|
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
|
|
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
|
}
|