@terafina/tffa-sfdx-plugin 17.0.0-rc.9 → 18.0.0-rc.1
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/README.md +91 -151
- package/lib/commands/tffa/apexdoc.js +1 -1
- package/lib/commands/tffa/apexdoc.js.map +1 -1
- package/lib/commands/tffa/data/export.js +46 -16
- package/lib/commands/tffa/data/export.js.map +1 -1
- package/lib/commands/tffa/data/import.js +42 -22
- package/lib/commands/tffa/data/import.js.map +1 -1
- package/lib/commands/tffa/lint.js +1 -1
- package/lib/commands/tffa/lint.js.map +1 -1
- package/lib/commands/tffa/meta.js +13 -12
- package/lib/commands/tffa/meta.js.map +1 -1
- package/lib/commands/tffa/ping.js +5 -7
- package/lib/commands/tffa/ping.js.map +1 -1
- package/lib/commands/tffa/source/apiset.js +14 -14
- package/lib/commands/tffa/source/apiset.js.map +1 -1
- package/lib/commands/tffa/source/createfield.js +43 -31
- package/lib/commands/tffa/source/createfield.js.map +1 -1
- package/lib/services/lint/rules.js +1 -1
- package/lib/services/lint/rules.js.map +1 -1
- package/lib/utils/constants.js +2 -2
- package/lib/utils/constants.js.map +1 -1
- package/lib/utils/ignored-files.js +1 -1
- package/lib/utils/ignored-files.js.map +1 -1
- package/messages/dataExport.js +2 -2
- package/oclif.manifest.json +62 -479
- package/package.json +36 -32
- package/lib/commands/tffa/apexdoc.d.ts +0 -31
- package/lib/commands/tffa/data/export.d.ts +0 -71
- package/lib/commands/tffa/data/import.d.ts +0 -69
- package/lib/commands/tffa/lint.d.ts +0 -22
- package/lib/commands/tffa/meta.d.ts +0 -16
- package/lib/commands/tffa/ping.d.ts +0 -14
- package/lib/commands/tffa/source/apiset.d.ts +0 -11
- package/lib/commands/tffa/source/createfield.d.ts +0 -41
- package/lib/index.d.ts +0 -5
- package/lib/services/apexdoc/common/apex-docs-error.d.ts +0 -23
- package/lib/services/apexdoc/common/array-utils.d.ts +0 -9
- package/lib/services/apexdoc/common/line-reader.d.ts +0 -40
- package/lib/services/apexdoc/common/models/apex-model.d.ts +0 -51
- package/lib/services/apexdoc/common/models/class-group.d.ts +0 -10
- package/lib/services/apexdoc/common/models/class-model.d.ts +0 -41
- package/lib/services/apexdoc/common/models/engine-config.d.ts +0 -23
- package/lib/services/apexdoc/common/models/enum-model.d.ts +0 -15
- package/lib/services/apexdoc/common/models/index.d.ts +0 -10
- package/lib/services/apexdoc/common/models/method-model.d.ts +0 -26
- package/lib/services/apexdoc/common/models/property-model.d.ts +0 -12
- package/lib/services/apexdoc/common/models/top-level-model.d.ts +0 -19
- package/lib/services/apexdoc/common/settings.d.ts +0 -56
- package/lib/services/apexdoc/common/tags.d.ts +0 -22
- package/lib/services/apexdoc/common/utils.d.ts +0 -39
- package/lib/services/apexdoc/common/validator-engine.d.ts +0 -23
- package/lib/services/apexdoc/common/validator.d.ts +0 -16
- package/lib/services/apexdoc/engine/file-manager.d.ts +0 -52
- package/lib/services/apexdoc/engine/generators/generator-utils.d.ts +0 -12
- package/lib/services/apexdoc/engine/generators/menu-generator.d.ts +0 -9
- package/lib/services/apexdoc/engine/generators/models/child-enum-markup-generator.d.ts +0 -10
- package/lib/services/apexdoc/engine/generators/models/class-markup-generator.d.ts +0 -8
- package/lib/services/apexdoc/engine/generators/models/enum-markup-generator.d.ts +0 -9
- package/lib/services/apexdoc/engine/generators/models/markup-generator.d.ts +0 -27
- package/lib/services/apexdoc/engine/generators/models/method-markup-generator.d.ts +0 -22
- package/lib/services/apexdoc/engine/generators/models/property-markup-generator.d.ts +0 -11
- package/lib/services/apexdoc/engine/generators/models/source-markup-generator.d.ts +0 -10
- package/lib/services/apexdoc/engine/generators/models/top-level-markup-generator.d.ts +0 -10
- package/lib/services/apexdoc/engine/generators/see-link-generator.d.ts +0 -20
- package/lib/services/lint/apex-class-scan.d.ts +0 -31
- package/lib/services/lint/apex-pmd.d.ts +0 -10
- package/lib/services/lint/eslint-scan.d.ts +0 -13
- package/lib/services/lint/metadata-scan.d.ts +0 -30
- package/lib/services/lint/rules.d.ts +0 -10
- package/lib/services/lint/stylelint-scan.d.ts +0 -13
- package/lib/services/meta/field-scan.d.ts +0 -23
- package/lib/utils/constants.d.ts +0 -9
- package/lib/utils/ignored-files.d.ts +0 -18
- package/lib/utils/jreSetupManager.d.ts +0 -17
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ $ npm install -g @terafina/tffa-sfdx-plugin
|
|
|
41
41
|
$ sfdx COMMAND
|
|
42
42
|
running command...
|
|
43
43
|
$ sfdx (--version|-v)
|
|
44
|
-
@terafina/tffa-sfdx-plugin/
|
|
44
|
+
@terafina/tffa-sfdx-plugin/18.0.0-rc.1 linux-x64 node-v18.15.0
|
|
45
45
|
$ sfdx --help [COMMAND]
|
|
46
46
|
USAGE
|
|
47
47
|
$ sfdx COMMAND
|
|
@@ -54,13 +54,13 @@ USAGE
|
|
|
54
54
|
<!-- commands -->
|
|
55
55
|
* [`sfdx help [COMMANDS]`](#sfdx-help-commands)
|
|
56
56
|
* [`sfdx tffa:apexdoc`](#sfdx-tffaapexdoc)
|
|
57
|
-
* [`sfdx tffa:data:export
|
|
58
|
-
* [`sfdx tffa:data:import
|
|
57
|
+
* [`sfdx tffa:data:export`](#sfdx-tffadataexport)
|
|
58
|
+
* [`sfdx tffa:data:import`](#sfdx-tffadataimport)
|
|
59
59
|
* [`sfdx tffa:lint`](#sfdx-tffalint)
|
|
60
|
-
* [`sfdx tffa:meta
|
|
61
|
-
* [`sfdx tffa:ping
|
|
62
|
-
* [`sfdx tffa:source:apiset
|
|
63
|
-
* [`sfdx tffa:source:createfield
|
|
60
|
+
* [`sfdx tffa:meta`](#sfdx-tffameta)
|
|
61
|
+
* [`sfdx tffa:ping`](#sfdx-tffaping)
|
|
62
|
+
* [`sfdx tffa:source:apiset`](#sfdx-tffasourceapiset)
|
|
63
|
+
* [`sfdx tffa:source:createfield`](#sfdx-tffasourcecreatefield)
|
|
64
64
|
* [`sfdx version`](#sfdx-version)
|
|
65
65
|
|
|
66
66
|
## `sfdx help [COMMANDS]`
|
|
@@ -81,7 +81,7 @@ DESCRIPTION
|
|
|
81
81
|
Display help for sfdx.
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.
|
|
84
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.9/src/commands/help.ts)_
|
|
85
85
|
|
|
86
86
|
## `sfdx tffa:apexdoc`
|
|
87
87
|
|
|
@@ -109,50 +109,33 @@ EXAMPLES
|
|
|
109
109
|
$ sfdx tffa:apexdoc
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
112
|
+
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/apexdoc.ts)_
|
|
113
113
|
|
|
114
|
-
## `sfdx tffa:data:export
|
|
114
|
+
## `sfdx tffa:data:export`
|
|
115
115
|
|
|
116
116
|
Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business configurations.
|
|
117
117
|
|
|
118
118
|
```
|
|
119
119
|
USAGE
|
|
120
|
-
$ sfdx tffa:data:export -s <
|
|
121
|
-
[
|
|
120
|
+
$ sfdx tffa:data:export -s <value> [--json] [-d <value>] [-g <value>] [-o <value>] [-c <value>] [-i] [-u <value>]
|
|
121
|
+
[-a <value>]
|
|
122
122
|
|
|
123
123
|
FLAGS
|
|
124
|
-
-
|
|
125
|
-
the child relationships to be included in the exported records; this is not required
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
-a, --api-version=<value> Override the api version used for api requests made by this command
|
|
125
|
+
-c, --children=<value>... the child relationships to be included in the exported records; this is not required
|
|
126
|
+
for tffa package objects. e.g. tffa__Features__r,tffa__Terms__r child relationships are
|
|
127
|
+
auto included when running export command for tffa__Product__c
|
|
128
|
+
-d, --outputdir=<value> [default: ./data/configuration] output directory where the JSON files of exported
|
|
129
|
+
records will be placed
|
|
130
|
+
-g, --groupby=<value> the field to be used for grouping the exported records; records belonging to each group
|
|
131
|
+
are placed in separate JSON files (filename suffixed by group name)
|
|
132
|
+
-i, --skipconfigplan skip import of exported record JSON files into configuration plan
|
|
133
|
+
-o, --orderby=<value>... the fields to be used for sorting the exported records
|
|
134
|
+
-s, --sobjecttypes=<value>... (required) sobject types of records to be exported
|
|
135
|
+
-u, --target-org=<value>
|
|
128
136
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
-g, --groupby=<value>
|
|
133
|
-
the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON
|
|
134
|
-
files (filename suffixed by group name)
|
|
135
|
-
|
|
136
|
-
-o, --orderby=<value>
|
|
137
|
-
the fields to be used for sorting the exported records
|
|
138
|
-
|
|
139
|
-
-s, --skipconfigplan
|
|
140
|
-
skip import of exported record JSON files into configuration plan
|
|
141
|
-
|
|
142
|
-
-s, --sobjecttypes=<value>
|
|
143
|
-
(required) sobject types of records to be exported
|
|
144
|
-
|
|
145
|
-
-u, --targetusername=<value>
|
|
146
|
-
username or alias for the target org; overrides default target org
|
|
147
|
-
|
|
148
|
-
--apiversion=<value>
|
|
149
|
-
override the api version used for api requests made by this command
|
|
150
|
-
|
|
151
|
-
--json
|
|
152
|
-
format output as json
|
|
153
|
-
|
|
154
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
155
|
-
[default: warn] logging level for this command invocation
|
|
137
|
+
GLOBAL FLAGS
|
|
138
|
+
--json Format output as json.
|
|
156
139
|
|
|
157
140
|
DESCRIPTION
|
|
158
141
|
Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business
|
|
@@ -161,7 +144,7 @@ DESCRIPTION
|
|
|
161
144
|
a default username or specify targetusername explicitly.
|
|
162
145
|
|
|
163
146
|
EXAMPLES
|
|
164
|
-
$ sfdx tffa:data:export --
|
|
147
|
+
$ sfdx tffa:data:export --sobjecttypes tffa__Product__c
|
|
165
148
|
Fetched 101 records of tffa__Product__c
|
|
166
149
|
Writing 24 records to ./data/configuration/Product__c.json
|
|
167
150
|
Writing 30 records to ./data/configuration/Product__c1.json
|
|
@@ -169,7 +152,7 @@ EXAMPLES
|
|
|
169
152
|
Writing 27 records to ./data/configuration/Product__c3.json
|
|
170
153
|
|
|
171
154
|
|
|
172
|
-
$ sfdx tffa:data:export --
|
|
155
|
+
$ sfdx tffa:data:export --sobjecttypes tffa__DisclosureTemplate__c,tffa__DisclosureChecklist__c,tffa__DisclosureMatrix__c
|
|
173
156
|
Fetched 81 records of tffa__DisclosureTemplate__c
|
|
174
157
|
Writing 81 records to ./data/configuration/DisclosureTemplate__c.json
|
|
175
158
|
Fetched 57 records of tffa__DisclosureChecklist__c
|
|
@@ -178,44 +161,31 @@ EXAMPLES
|
|
|
178
161
|
Writing 144 records to ./data/configuration/DisclosureMatrix__c.json
|
|
179
162
|
```
|
|
180
163
|
|
|
181
|
-
_See code: [src/commands/tffa/data/export.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
164
|
+
_See code: [src/commands/tffa/data/export.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/data/export.ts)_
|
|
182
165
|
|
|
183
|
-
## `sfdx tffa:data:import
|
|
166
|
+
## `sfdx tffa:data:import`
|
|
184
167
|
|
|
185
168
|
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.
|
|
186
169
|
|
|
187
170
|
```
|
|
188
171
|
USAGE
|
|
189
|
-
$ sfdx tffa:data:import [-f <
|
|
190
|
-
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
172
|
+
$ sfdx tffa:data:import [--json] [-f <value>] [-p <value>] [-s <value>] [-i] [-u <value>] [-a <value>]
|
|
191
173
|
|
|
192
174
|
FLAGS
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
-i, --forceimport
|
|
197
|
-
|
|
198
|
-
|
|
175
|
+
-a, --api-version=<value> Override the api version used for api requests made by this command
|
|
176
|
+
-f, --sobjectfiles=<value>... comma-delimited, ordered paths of json files containing collection of record trees to
|
|
177
|
+
upsert
|
|
178
|
+
-i, --forceimport force import all sobject files in a plan ignoring any internal file change tracking;
|
|
179
|
+
applicable to scratch orgs only; forceimport is automatically set if sobjecttypes
|
|
180
|
+
parameter is specified
|
|
181
|
+
-p, --plan=<value> [default: data/configuration/config-data-plan.json] path to plan to upsert multiple
|
|
182
|
+
data files that have master-detail relationships; to restrict the sobject types
|
|
183
|
+
imported using the plan, specify sobjecttypes along with plan
|
|
184
|
+
-s, --sobjecttypes=<value>... comma-delimited, list of sobject types to be imported when using a plan
|
|
185
|
+
-u, --target-org=<value>
|
|
199
186
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with
|
|
203
|
-
plan
|
|
204
|
-
|
|
205
|
-
-s, --sobjecttypes=<value>
|
|
206
|
-
comma-delimited, list of sobject types to be imported when using a plan
|
|
207
|
-
|
|
208
|
-
-u, --targetusername=<value>
|
|
209
|
-
username or alias for the target org; overrides default target org
|
|
210
|
-
|
|
211
|
-
--apiversion=<value>
|
|
212
|
-
override the api version used for api requests made by this command
|
|
213
|
-
|
|
214
|
-
--json
|
|
215
|
-
format output as json
|
|
216
|
-
|
|
217
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
218
|
-
[default: warn] logging level for this command invocation
|
|
187
|
+
GLOBAL FLAGS
|
|
188
|
+
--json Format output as json.
|
|
219
189
|
|
|
220
190
|
DESCRIPTION
|
|
221
191
|
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships.
|
|
@@ -266,7 +236,7 @@ EXAMPLES
|
|
|
266
236
|
Importing record(s) and relationships of tffa__AddOnService__c... done
|
|
267
237
|
```
|
|
268
238
|
|
|
269
|
-
_See code: [src/commands/tffa/data/import.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
239
|
+
_See code: [src/commands/tffa/data/import.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/data/import.ts)_
|
|
270
240
|
|
|
271
241
|
## `sfdx tffa:lint`
|
|
272
242
|
|
|
@@ -280,7 +250,7 @@ FLAGS
|
|
|
280
250
|
-e, --eject update local pmd ruleset
|
|
281
251
|
-f, --level emit fatal violations only
|
|
282
252
|
-j, --json generate json output
|
|
283
|
-
-m, --minapi=<value> [default:
|
|
253
|
+
-m, --minapi=<value> [default: 57] minimum api version to use during quality checks
|
|
284
254
|
-r, --rulesetpath=<value> path to pmd ruleset
|
|
285
255
|
-s, --sourcefolder=<value> [default: .] directory containing sfdx project
|
|
286
256
|
|
|
@@ -320,27 +290,26 @@ EXAMPLES
|
|
|
320
290
|
$sfdx tffa:lint
|
|
321
291
|
```
|
|
322
292
|
|
|
323
|
-
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
293
|
+
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/lint.ts)_
|
|
324
294
|
|
|
325
|
-
## `sfdx tffa:meta
|
|
295
|
+
## `sfdx tffa:meta`
|
|
326
296
|
|
|
327
297
|
Scan a sfdx project for generating metadata summary information
|
|
328
298
|
|
|
329
299
|
```
|
|
330
300
|
USAGE
|
|
331
|
-
$ sfdx tffa:meta [-s <
|
|
332
|
-
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
301
|
+
$ sfdx tffa:meta [--json] [-s <value>] [-d <value>] [-c <value>] [-o json|csv|human] [-f]
|
|
333
302
|
|
|
334
303
|
FLAGS
|
|
335
|
-
-c, --clientname=<value>
|
|
336
|
-
-d, --destpath=<value>
|
|
337
|
-
-f, --fields
|
|
338
|
-
-o, --output
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
304
|
+
-c, --clientname=<value> [default: .] name of the client
|
|
305
|
+
-d, --destpath=<value> [default: .] full path output file
|
|
306
|
+
-f, --fields generate field output
|
|
307
|
+
-o, --output=<option> output format json csv human
|
|
308
|
+
<options: json|csv|human>
|
|
309
|
+
-s, --sourcefolder=<value> [default: .] directory containing sfdx project
|
|
310
|
+
|
|
311
|
+
GLOBAL FLAGS
|
|
312
|
+
--json Format output as json.
|
|
344
313
|
|
|
345
314
|
DESCRIPTION
|
|
346
315
|
Scan a sfdx project for generating metadata summary information
|
|
@@ -349,20 +318,18 @@ EXAMPLES
|
|
|
349
318
|
$ sfdx tffa:meta
|
|
350
319
|
```
|
|
351
320
|
|
|
352
|
-
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
321
|
+
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/meta.ts)_
|
|
353
322
|
|
|
354
|
-
## `sfdx tffa:ping
|
|
323
|
+
## `sfdx tffa:ping`
|
|
355
324
|
|
|
356
325
|
Ping and test the plugin
|
|
357
326
|
|
|
358
327
|
```
|
|
359
328
|
USAGE
|
|
360
|
-
$ sfdx tffa:ping [--json]
|
|
329
|
+
$ sfdx tffa:ping [--json]
|
|
361
330
|
|
|
362
|
-
FLAGS
|
|
363
|
-
--json
|
|
364
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
365
|
-
this command invocation
|
|
331
|
+
GLOBAL FLAGS
|
|
332
|
+
--json Format output as json.
|
|
366
333
|
|
|
367
334
|
DESCRIPTION
|
|
368
335
|
Ping and test the plugin
|
|
@@ -371,26 +338,22 @@ EXAMPLES
|
|
|
371
338
|
$ sfdx tffa:ping
|
|
372
339
|
```
|
|
373
340
|
|
|
374
|
-
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
341
|
+
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/ping.ts)_
|
|
375
342
|
|
|
376
|
-
## `sfdx tffa:source:apiset
|
|
343
|
+
## `sfdx tffa:source:apiset`
|
|
377
344
|
|
|
378
345
|
Upgrades the current project and all metadata to the latest API version
|
|
379
346
|
|
|
380
347
|
```
|
|
381
348
|
USAGE
|
|
382
|
-
$ sfdx tffa:source:apiset [
|
|
383
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
349
|
+
$ sfdx tffa:source:apiset [--json] [-s <value>] [-a <value>]
|
|
384
350
|
|
|
385
351
|
FLAGS
|
|
386
|
-
-a, --api=<value>
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
--json format output as json
|
|
392
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
393
|
-
this command invocation
|
|
352
|
+
-a, --api=<value> [default: 57] specify the API version
|
|
353
|
+
-s, --sourcefolder=<value> [default: .] directory containing sfdx project
|
|
354
|
+
|
|
355
|
+
GLOBAL FLAGS
|
|
356
|
+
--json Format output as json.
|
|
394
357
|
|
|
395
358
|
DESCRIPTION
|
|
396
359
|
Upgrades the current project and all metadata to the latest API version
|
|
@@ -399,57 +362,34 @@ EXAMPLES
|
|
|
399
362
|
$ sfdx tffa:source:apiset
|
|
400
363
|
```
|
|
401
364
|
|
|
402
|
-
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
365
|
+
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/source/apiset.ts)_
|
|
403
366
|
|
|
404
|
-
## `sfdx tffa:source:createfield
|
|
367
|
+
## `sfdx tffa:source:createfield`
|
|
405
368
|
|
|
406
369
|
Creates an SObject field from the specified parameters.
|
|
407
370
|
|
|
408
371
|
```
|
|
409
372
|
USAGE
|
|
410
|
-
$ sfdx tffa:source:createfield -s <
|
|
373
|
+
$ sfdx tffa:source:createfield -s <value> -n <value> -t
|
|
411
374
|
checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-long|texta
|
|
412
|
-
rea-rich [-r] [-l <
|
|
413
|
-
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
375
|
+
rea-rich [--json] [-r] [-l <value>] [-d <value>] [-p <value>] [-v <value>]
|
|
414
376
|
|
|
415
377
|
FLAGS
|
|
416
|
-
-d, --description=<value>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
-
|
|
423
|
-
|
|
378
|
+
-d, --description=<value> description of the field
|
|
379
|
+
-l, --length=<value> length of text field or textarea (long|rich) field; defaults to 255 for text field
|
|
380
|
+
and 1024 for textarea field
|
|
381
|
+
-n, --name=<value> (required) the API name of the field
|
|
382
|
+
-p, --permissionsets=<value>... comma-separated list of permission sets to which the field needs to be added;
|
|
383
|
+
defaults to all permission sets in the project
|
|
384
|
+
-r, --required whether field is required; skips addition to permission sets
|
|
385
|
+
-s, --sobjecttype=<value> (required) the API name of the object for which the field needs to be created
|
|
386
|
+
-t, --type=<option> (required) [default: text] type of the field
|
|
387
|
+
<options: checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklis
|
|
388
|
+
t-multi|text|textarea|textarea-long|textarea-rich>
|
|
389
|
+
-v, --valuesetname=<value> name of the global value set if the field is a picklist or multi-select picklist type
|
|
424
390
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
project
|
|
428
|
-
|
|
429
|
-
-r, --required
|
|
430
|
-
whether field is required; skips addition to permission sets
|
|
431
|
-
|
|
432
|
-
-s, --sobjecttype=<value>
|
|
433
|
-
(required) the API name of the object for which the field needs to be created
|
|
434
|
-
|
|
435
|
-
-t, --type=(checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-
|
|
436
|
-
long|textarea-rich)
|
|
437
|
-
(required) [default: text] type of the field
|
|
438
|
-
|
|
439
|
-
-u, --targetusername=<value>
|
|
440
|
-
username or alias for the target org; overrides default target org
|
|
441
|
-
|
|
442
|
-
-v, --valuesetname=<value>
|
|
443
|
-
name of the global value set if the field is a picklist or multi-select picklist type
|
|
444
|
-
|
|
445
|
-
--apiversion=<value>
|
|
446
|
-
override the api version used for api requests made by this command
|
|
447
|
-
|
|
448
|
-
--json
|
|
449
|
-
format output as json
|
|
450
|
-
|
|
451
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
452
|
-
[default: warn] logging level for this command invocation
|
|
391
|
+
GLOBAL FLAGS
|
|
392
|
+
--json Format output as json.
|
|
453
393
|
|
|
454
394
|
DESCRIPTION
|
|
455
395
|
Creates an SObject field from the specified parameters.
|
|
@@ -486,7 +426,7 @@ EXAMPLES
|
|
|
486
426
|
Creates a long textarea field
|
|
487
427
|
```
|
|
488
428
|
|
|
489
|
-
_See code: [src/commands/tffa/source/createfield.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/
|
|
429
|
+
_See code: [src/commands/tffa/source/createfield.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v18.0.0-rc.1/src/commands/tffa/source/createfield.ts)_
|
|
490
430
|
|
|
491
431
|
## `sfdx version`
|
|
492
432
|
|
|
@@ -506,5 +446,5 @@ FLAG DESCRIPTIONS
|
|
|
506
446
|
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
|
|
507
447
|
```
|
|
508
448
|
|
|
509
|
-
_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.2
|
|
449
|
+
_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.3.2/src/commands/version.ts)_
|
|
510
450
|
<!-- commandsstop -->
|
|
@@ -265,7 +265,6 @@ class ApexDoc extends sf_plugins_core_1.SfCommand {
|
|
|
265
265
|
return cModelParent;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
exports.default = ApexDoc;
|
|
269
268
|
ApexDoc.description = messages.getMessage('commandDescription');
|
|
270
269
|
ApexDoc.examples = [`$ sfdx tffa:apexdoc`];
|
|
271
270
|
ApexDoc.flags = {
|
|
@@ -279,4 +278,5 @@ ApexDoc.flags = {
|
|
|
279
278
|
description: messages.getMessage('destFolderDescription')
|
|
280
279
|
})
|
|
281
280
|
};
|
|
281
|
+
exports.default = ApexDoc;
|
|
282
282
|
//# sourceMappingURL=apexdoc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apexdoc.js","sourceRoot":"","sources":["../../../src/commands/tffa/apexdoc.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,qFAA+D;AAC/D,2CAAwE;AAExE,2FAA2E;AAC3E,sGAAqE;AACrE,+BAAgC;AAChC,2CAAyC;AACzC,oGAAmE;AACnE,wFAAwD;AACxD,2EAAiE;AACjE,iEAA+D;AAE/D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAC;AAEhF,MAAqB,OAAQ,SAAQ,2BAAe;IAmB3C,KAAK,CAAC,GAAG;QACd,IAAI,CAAC,MAAM,GAAG,aAAM,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC1D,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CA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,CAAC,yBAAyB,CAAC;QAC3D,OAAO,EAAE,GAAG;KACb,CAAC;IACF,UAAU,EAAE,uBAAK,CAAC,SAAS,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KAC1D,CAAC;CACH,CAAC;kBAjBiB,OAAO"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) NCR Terafina
|
|
5
5
|
**/
|
|
6
|
-
const command_1 = require("@salesforce/command");
|
|
7
6
|
const core_1 = require("@salesforce/core");
|
|
7
|
+
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
8
8
|
const fs_extra_1 = require("fs-extra");
|
|
9
9
|
// Initialize Messages with the current plugin directory
|
|
10
10
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
@@ -89,7 +89,7 @@ const EXPORT_PLANS = Object.fromEntries([
|
|
|
89
89
|
new ExportPlan({ sObjectType: 'tffa__AllowedAddress__c', orderBy: ['tffa__SortOrder__c'] }),
|
|
90
90
|
new ExportPlan({ sObjectType: 'tffa__QuestionnaireMatrix__c', orderBy: ['tffa__Type__c', 'tffa__SortOrder__c'] })
|
|
91
91
|
].map(p => [p.name, p]));
|
|
92
|
-
class DataExport extends
|
|
92
|
+
class DataExport extends sf_plugins_core_1.SfCommand {
|
|
93
93
|
constructor() {
|
|
94
94
|
super(...arguments);
|
|
95
95
|
/**
|
|
@@ -98,11 +98,17 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
98
98
|
this.sObjectTypePrefixMap = new Map();
|
|
99
99
|
}
|
|
100
100
|
async run() {
|
|
101
|
-
|
|
101
|
+
const { flags } = await this.parse(DataExport);
|
|
102
|
+
this.flagsData = flags;
|
|
103
|
+
this.org = flags['target-org'];
|
|
104
|
+
// this.org = await Org.create({
|
|
105
|
+
// aggregator: this.configAggregator
|
|
106
|
+
// });
|
|
107
|
+
for (const sObjectType of this.flagsData.sobjecttypes) {
|
|
102
108
|
const plan = this.getExportPlan(sObjectType);
|
|
103
|
-
this.
|
|
109
|
+
this.spinner.start(`Fetching record(s) of ${sObjectType}`);
|
|
104
110
|
const records = await this.execute(plan);
|
|
105
|
-
this.
|
|
111
|
+
this.spinner.stop(`completed`);
|
|
106
112
|
this.log(`Fetched ${records.length} records of ${sObjectType}`);
|
|
107
113
|
this.transform(records);
|
|
108
114
|
if (records.length) {
|
|
@@ -277,7 +283,7 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
277
283
|
*/
|
|
278
284
|
writeRecords(records, plan) {
|
|
279
285
|
const objectName = plan.name.replace('tffa__', '');
|
|
280
|
-
const outputDir = this.
|
|
286
|
+
const outputDir = this.flagsData.outputdir;
|
|
281
287
|
const groupBy = plan.groupBy || '_';
|
|
282
288
|
(0, fs_extra_1.mkdirpSync)(outputDir);
|
|
283
289
|
const groupMap = new Map();
|
|
@@ -314,7 +320,7 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
314
320
|
filenames.push(filename);
|
|
315
321
|
}
|
|
316
322
|
}
|
|
317
|
-
if (!this.
|
|
323
|
+
if (!this.flagsData.skipconfigplan && plan.name === plan.sObjectType) {
|
|
318
324
|
const configPlanFilepath = `${outputDir}/config-data-plan.json`;
|
|
319
325
|
if ((0, fs_extra_1.existsSync)(configPlanFilepath)) {
|
|
320
326
|
const configPlans = JSON.parse((0, fs_extra_1.readFileSync)(configPlanFilepath, 'utf-8'));
|
|
@@ -346,7 +352,7 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
346
352
|
*/
|
|
347
353
|
getExportPlan(sObjectType) {
|
|
348
354
|
const plan = new ExportPlan({ sObjectType, ...(EXPORT_PLANS[sObjectType] || {}) });
|
|
349
|
-
const { sobjecttypes, children, groupby, orderby } = this.
|
|
355
|
+
const { sobjecttypes, children, groupby, orderby } = this.flagsData;
|
|
350
356
|
if (sobjecttypes.length === 1 && sobjecttypes[0] === sObjectType) {
|
|
351
357
|
if (children) {
|
|
352
358
|
plan.children = children;
|
|
@@ -381,16 +387,40 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
381
387
|
return recordMap;
|
|
382
388
|
}
|
|
383
389
|
}
|
|
384
|
-
exports.default = DataExport;
|
|
385
390
|
DataExport.requiresUsername = true;
|
|
386
391
|
DataExport.description = messages.getMessage('commandDescription');
|
|
387
392
|
DataExport.examples = messages.getMessages('commandExamples');
|
|
388
|
-
DataExport.
|
|
389
|
-
sobjecttypes:
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
DataExport.flags = {
|
|
394
|
+
sobjecttypes: sf_plugins_core_1.Flags.string({
|
|
395
|
+
multiple: true,
|
|
396
|
+
delimiter: ',',
|
|
397
|
+
char: 's',
|
|
398
|
+
required: true,
|
|
399
|
+
description: messages.getMessage('sobjecttypesFlagDescription')
|
|
400
|
+
}),
|
|
401
|
+
outputdir: sf_plugins_core_1.Flags.string({ char: 'd', description: messages.getMessage('outputdirFlagDescription'), default: './data/configuration' }),
|
|
402
|
+
groupby: sf_plugins_core_1.Flags.string({ char: 'g', required: false, description: messages.getMessage('groupbyFlagDescription') }),
|
|
403
|
+
orderby: sf_plugins_core_1.Flags.string({
|
|
404
|
+
multiple: true,
|
|
405
|
+
delimiter: ',',
|
|
406
|
+
char: 'o',
|
|
407
|
+
required: false,
|
|
408
|
+
description: messages.getMessage('orderbyFlagDescription')
|
|
409
|
+
}),
|
|
410
|
+
children: sf_plugins_core_1.Flags.string({
|
|
411
|
+
multiple: true,
|
|
412
|
+
delimiter: ',',
|
|
413
|
+
char: 'c',
|
|
414
|
+
required: false,
|
|
415
|
+
description: messages.getMessage('childrenFlagDescription')
|
|
416
|
+
}),
|
|
417
|
+
skipconfigplan: sf_plugins_core_1.Flags.boolean({ char: 'i', required: false, description: messages.getMessage('skipconfigplanFlagDescription') }),
|
|
418
|
+
'target-org': sf_plugins_core_1.Flags.optionalOrg({
|
|
419
|
+
char: 'u'
|
|
420
|
+
}),
|
|
421
|
+
'api-version': sf_plugins_core_1.Flags.orgApiVersion({
|
|
422
|
+
char: 'a'
|
|
423
|
+
})
|
|
395
424
|
};
|
|
425
|
+
exports.default = DataExport;
|
|
396
426
|
//# sourceMappingURL=export.js.map
|