@terafina/tffa-sfdx-plugin 16.0.0-rc.6 → 16.0.0-rc.7
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 +23 -13
- package/lib/commands/tffa/data/export.js +3 -3
- package/lib/commands/tffa/data/export.js.map +1 -1
- package/lib/commands/tffa/data/import.d.ts +13 -5
- package/lib/commands/tffa/data/import.js +52 -17
- package/lib/commands/tffa/data/import.js.map +1 -1
- package/messages/dataExport.js +1 -1
- package/messages/dataImport.js +6 -1
- package/oclif.manifest.json +1 -1
- package/package.json +18 -18
- package/yarn.lock +264 -333
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/16.0.0-rc.
|
|
44
|
+
@terafina/tffa-sfdx-plugin/16.0.0-rc.7 linux-x64 node-v16.13.1
|
|
45
45
|
$ sfdx --help [COMMAND]
|
|
46
46
|
USAGE
|
|
47
47
|
$ sfdx COMMAND
|
|
@@ -55,7 +55,7 @@ USAGE
|
|
|
55
55
|
* [`sfdx help [COMMAND]`](#sfdx-help-command)
|
|
56
56
|
* [`sfdx tffa:apexdoc [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffaapexdoc--s-directory--d-directory---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
57
57
|
* [`sfdx tffa:data:export -s <array> [-d <string>] [-g <string>] [-o <array>] [-c <array>] [-s] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffadataexport--s-array--d-string--g-string--o-array--c-array--s--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
58
|
-
* [`sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffadataimport--f-array--p-string--s-array--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
58
|
+
* [`sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-i] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffadataimport--f-array--p-string--s-array--i--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
59
59
|
* [`sfdx tffa:lint [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffalint--s-directory--m-integer--r-filepath--e--f--j---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
60
60
|
* [`sfdx tffa:meta [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffameta--s-directory--d-directory--c-directory--o-jsoncsvhuman--f---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
61
61
|
* [`sfdx tffa:ping [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffaping---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
@@ -80,7 +80,7 @@ DESCRIPTION
|
|
|
80
80
|
Display help for sfdx.
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
83
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.22/src/commands/help.ts)_
|
|
84
84
|
|
|
85
85
|
## `sfdx tffa:apexdoc [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
86
86
|
|
|
@@ -110,7 +110,7 @@ EXAMPLES
|
|
|
110
110
|
$ sfdx tffa:apexdoc
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
113
|
+
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/apexdoc.ts)_
|
|
114
114
|
|
|
115
115
|
## `sfdx tffa:data:export -s <array> [-d <string>] [-g <string>] [-o <array>] [-c <array>] [-s] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
116
116
|
|
|
@@ -140,7 +140,7 @@ FLAGS
|
|
|
140
140
|
-s, --skipconfigplan
|
|
141
141
|
skip import of exported record JSON files into configuration plan
|
|
142
142
|
|
|
143
|
-
-s, --
|
|
143
|
+
-s, --sobjecttypes=<value>
|
|
144
144
|
(required) sobject types of records to be exported
|
|
145
145
|
|
|
146
146
|
-u, --targetusername=<value>
|
|
@@ -179,21 +179,25 @@ EXAMPLES
|
|
|
179
179
|
Writing 144 records to ./data/configuration/DisclosureMatrix__c.json
|
|
180
180
|
```
|
|
181
181
|
|
|
182
|
-
_See code: [src/commands/tffa/data/export.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
182
|
+
_See code: [src/commands/tffa/data/export.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/data/export.ts)_
|
|
183
183
|
|
|
184
|
-
## `sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
184
|
+
## `sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-i] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
185
185
|
|
|
186
186
|
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.
|
|
187
187
|
|
|
188
188
|
```
|
|
189
189
|
USAGE
|
|
190
|
-
$ sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-u <string>] [--apiversion <string>] [--json]
|
|
190
|
+
$ sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-i] [-u <string>] [--apiversion <string>] [--json]
|
|
191
191
|
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
192
192
|
|
|
193
193
|
FLAGS
|
|
194
194
|
-f, --sobjectfiles=<value>
|
|
195
195
|
comma-delimited, ordered paths of json files containing collection of record trees to upsert
|
|
196
196
|
|
|
197
|
+
-i, --forceimport
|
|
198
|
+
force import all sobject files in a plan ignoring any internal file change tracking; applicable to scratch orgs
|
|
199
|
+
only; forceimport is automatically set if sobjecttypes parameter is specified
|
|
200
|
+
|
|
197
201
|
-p, --plan=<value>
|
|
198
202
|
[default: data/configuration/config-data-plan.json] path to plan to upsert multiple data files that have
|
|
199
203
|
master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with
|
|
@@ -217,8 +221,14 @@ FLAGS
|
|
|
217
221
|
DESCRIPTION
|
|
218
222
|
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships.
|
|
219
223
|
Primarily used for importing business configurations.
|
|
224
|
+
|
|
220
225
|
To generate JSON files for use with tffa:data:import, run "sfdx tffa:data:export"
|
|
221
226
|
|
|
227
|
+
In scratch orgs, by default, sobject files are tracked for changes. When doing full plan imports (without the
|
|
228
|
+
sobjecttypes parameter), individual sobject files are tracked for changes and excluded from import if the file content
|
|
229
|
+
remained unchanged since the last time it was imported. This behaviour can be suppressed by including the forceimport
|
|
230
|
+
flag when doing full plan imports.
|
|
231
|
+
|
|
222
232
|
EXAMPLES
|
|
223
233
|
$ sfdx tffa:data:import
|
|
224
234
|
(Imports all records from default plan - data/configuration/config-data-plan.json
|
|
@@ -257,7 +267,7 @@ EXAMPLES
|
|
|
257
267
|
Importing record(s) and relationships of tffa__AddOnService__c... done
|
|
258
268
|
```
|
|
259
269
|
|
|
260
|
-
_See code: [src/commands/tffa/data/import.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
270
|
+
_See code: [src/commands/tffa/data/import.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/data/import.ts)_
|
|
261
271
|
|
|
262
272
|
## `sfdx tffa:lint [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
263
273
|
|
|
@@ -316,7 +326,7 @@ EXAMPLES
|
|
|
316
326
|
$sfdx tffa:lint
|
|
317
327
|
```
|
|
318
328
|
|
|
319
|
-
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
329
|
+
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/lint.ts)_
|
|
320
330
|
|
|
321
331
|
## `sfdx tffa:meta [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
322
332
|
|
|
@@ -345,7 +355,7 @@ EXAMPLES
|
|
|
345
355
|
$ sfdx tffa:meta
|
|
346
356
|
```
|
|
347
357
|
|
|
348
|
-
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
358
|
+
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/meta.ts)_
|
|
349
359
|
|
|
350
360
|
## `sfdx tffa:ping [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
351
361
|
|
|
@@ -367,7 +377,7 @@ EXAMPLES
|
|
|
367
377
|
$ sfdx tffa:ping
|
|
368
378
|
```
|
|
369
379
|
|
|
370
|
-
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
380
|
+
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/ping.ts)_
|
|
371
381
|
|
|
372
382
|
## `sfdx tffa:source:apiset [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
373
383
|
|
|
@@ -395,7 +405,7 @@ EXAMPLES
|
|
|
395
405
|
$ sfdx tffa:source:apiset
|
|
396
406
|
```
|
|
397
407
|
|
|
398
|
-
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
408
|
+
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.7/src/commands/tffa/source/apiset.ts)_
|
|
399
409
|
|
|
400
410
|
## `sfdx version`
|
|
401
411
|
|
|
@@ -98,7 +98,7 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
98
98
|
this.sObjectTypePrefixMap = new Map();
|
|
99
99
|
}
|
|
100
100
|
async run() {
|
|
101
|
-
for (const sObjectType of this.flags.
|
|
101
|
+
for (const sObjectType of this.flags.sobjecttypes) {
|
|
102
102
|
const plan = this.getExportPlan(sObjectType);
|
|
103
103
|
this.ux.startSpinner(`Fetching record(s) of ${sObjectType}`);
|
|
104
104
|
const records = await this.execute(plan);
|
|
@@ -346,7 +346,7 @@ class DataExport extends command_1.SfdxCommand {
|
|
|
346
346
|
*/
|
|
347
347
|
getExportPlan(sObjectType) {
|
|
348
348
|
const plan = new ExportPlan({ sObjectType, ...(EXPORT_PLANS[sObjectType] || {}) });
|
|
349
|
-
const {
|
|
349
|
+
const { sobjecttypes, children, groupby, orderby } = this.flags;
|
|
350
350
|
if (sobjecttypes.length === 1 && sobjecttypes[0] === sObjectType) {
|
|
351
351
|
if (children) {
|
|
352
352
|
plan.children = children;
|
|
@@ -386,7 +386,7 @@ DataExport.requiresUsername = true;
|
|
|
386
386
|
DataExport.description = messages.getMessage('commandDescription');
|
|
387
387
|
DataExport.examples = messages.getMessages('commandExamples');
|
|
388
388
|
DataExport.flagsConfig = {
|
|
389
|
-
|
|
389
|
+
sobjecttypes: command_1.flags.array({ char: 's', required: true, description: messages.getMessage('sobjecttypesFlagDescription') }),
|
|
390
390
|
outputdir: command_1.flags.string({ char: 'd', description: messages.getMessage('outputdirFlagDescription'), default: './data/configuration' }),
|
|
391
391
|
groupby: command_1.flags.string({ char: 'g', required: false, description: messages.getMessage('groupbyFlagDescription') }),
|
|
392
392
|
orderby: command_1.flags.array({ char: 'o', required: false, description: messages.getMessage('orderbyFlagDescription') }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../../../src/commands/tffa/data/export.ts"],"names":[],"mappings":";;AAAA;;IAEI;AACJ,iDAAsE;AACtE,2CAA4C;AAC5C,uCAA+E;AAE/E,wDAAwD;AACxD,eAAQ,CAAC,uBAA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AAE,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;IACrI,OAAO,EAAE,eAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAAE,CAAC;IACjH,OAAO,EAAE,eAAK,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAAE,CAAC;IAChH,QAAQ,EAAE,eAAK,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC,EAAE,CAAC;IAClH,cAAc,EAAE,eAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,+BAA+B,CAAC,EAAE,CAAC;CACjI,CAAC"}
|
|
@@ -12,16 +12,13 @@ declare type ExternalId = {
|
|
|
12
12
|
};
|
|
13
13
|
export default class DataImport extends SfdxCommand {
|
|
14
14
|
static requiresUsername: boolean;
|
|
15
|
+
static requiresProject: boolean;
|
|
15
16
|
static description: string;
|
|
16
17
|
static examples: string[];
|
|
17
18
|
protected static flagsConfig: FlagsConfig;
|
|
18
19
|
protected referenceIdExternalIdMap: Map<string, ExternalId>;
|
|
20
|
+
private isScratch;
|
|
19
21
|
run(): Promise<any>;
|
|
20
|
-
/**
|
|
21
|
-
* Reads the JSON file
|
|
22
|
-
* @param filename path to JSON file
|
|
23
|
-
*/
|
|
24
|
-
private readJSON;
|
|
25
22
|
/**
|
|
26
23
|
* Gathers external ids from the specified records. The external id of each record along with the external id field name
|
|
27
24
|
* is stored as a lookup reference mapped to the reference id of the record.
|
|
@@ -50,5 +47,16 @@ export default class DataImport extends SfdxCommand {
|
|
|
50
47
|
* @param request
|
|
51
48
|
*/
|
|
52
49
|
private logResult;
|
|
50
|
+
/**
|
|
51
|
+
* Checks if file has changed since the last time it was seen by comparing it's last modified date to last known one.
|
|
52
|
+
* @param sobjectfile
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
private determineIfFileChanged;
|
|
56
|
+
/**
|
|
57
|
+
* Tracks the files for any changes in future. Uses last modified date to track changes.
|
|
58
|
+
* @param sobjectfiles
|
|
59
|
+
*/
|
|
60
|
+
private trackFileChange;
|
|
53
61
|
}
|
|
54
62
|
export {};
|
|
@@ -32,22 +32,26 @@ class DataImport extends command_1.SfdxCommand {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super(...arguments);
|
|
34
34
|
this.referenceIdExternalIdMap = new Map();
|
|
35
|
+
this.isScratch = false;
|
|
35
36
|
}
|
|
36
37
|
async run() {
|
|
38
|
+
this.isScratch = await this.org.determineIfScratch();
|
|
37
39
|
const sobjectfiles = this.flags.sobjectfiles;
|
|
38
40
|
const plan = this.flags.plan;
|
|
39
41
|
const sobjecttypes = this.flags.sobjecttypes;
|
|
42
|
+
const forceimport = this.flags.forceimport || !!sobjecttypes;
|
|
40
43
|
if (sobjectfiles) {
|
|
41
44
|
for (const sobjectfile of sobjectfiles) {
|
|
42
|
-
const records = (await
|
|
45
|
+
const records = (await (0, fs_extra_1.readJSON)(sobjectfile)).records;
|
|
43
46
|
if (records.length) {
|
|
44
47
|
this.collectExternalIds(records);
|
|
45
48
|
await this.upsert(records);
|
|
49
|
+
await this.trackFileChange(sobjectfile);
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
}
|
|
49
53
|
else if (plan) {
|
|
50
|
-
let upsertConfigs = await
|
|
54
|
+
let upsertConfigs = (await (0, fs_extra_1.readJSON)(plan));
|
|
51
55
|
if (sobjecttypes) {
|
|
52
56
|
const i = [...upsertConfigs].reverse().findIndex(c => sobjecttypes.includes(c.sobject));
|
|
53
57
|
if (i !== -1) {
|
|
@@ -56,28 +60,25 @@ class DataImport extends command_1.SfdxCommand {
|
|
|
56
60
|
}
|
|
57
61
|
const basedir = (0, path_1.dirname)(plan);
|
|
58
62
|
for (const upsertConfig of upsertConfigs) {
|
|
59
|
-
const
|
|
63
|
+
const canUpsert = !sobjecttypes || sobjecttypes.includes(upsertConfig.sobject);
|
|
64
|
+
const allRecords = [];
|
|
65
|
+
const sobjectfiles = [];
|
|
60
66
|
for (const file of upsertConfig.files) {
|
|
61
67
|
const sobjectfile = (0, path_1.join)(basedir, file);
|
|
62
|
-
records
|
|
63
|
-
}
|
|
64
|
-
if (records.length) {
|
|
68
|
+
const records = (await (0, fs_extra_1.readJSON)(sobjectfile)).records;
|
|
65
69
|
this.collectExternalIds(records);
|
|
66
|
-
if (
|
|
67
|
-
|
|
70
|
+
if (canUpsert && (forceimport || (await this.determineIfFileChanged(sobjectfile)))) {
|
|
71
|
+
allRecords.push(...records);
|
|
72
|
+
sobjectfiles.push(sobjectfile);
|
|
68
73
|
}
|
|
69
74
|
}
|
|
75
|
+
if (canUpsert && allRecords.length) {
|
|
76
|
+
await this.upsert(allRecords);
|
|
77
|
+
await this.trackFileChange(...sobjectfiles);
|
|
78
|
+
}
|
|
70
79
|
}
|
|
71
80
|
}
|
|
72
81
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Reads the JSON file
|
|
75
|
-
* @param filename path to JSON file
|
|
76
|
-
*/
|
|
77
|
-
async readJSON(filename) {
|
|
78
|
-
const fileContent = await (0, fs_extra_1.readFile)(filename, 'utf-8');
|
|
79
|
-
return JSON.parse(fileContent);
|
|
80
|
-
}
|
|
81
82
|
/**
|
|
82
83
|
* Gathers external ids from the specified records. The external id of each record along with the external id field name
|
|
83
84
|
* is stored as a lookup reference mapped to the reference id of the record.
|
|
@@ -213,9 +214,38 @@ class DataImport extends command_1.SfdxCommand {
|
|
|
213
214
|
throw new Error(`INTERNAL_ERROR`);
|
|
214
215
|
}
|
|
215
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Checks if file has changed since the last time it was seen by comparing it's last modified date to last known one.
|
|
219
|
+
* @param sobjectfile
|
|
220
|
+
* @returns
|
|
221
|
+
*/
|
|
222
|
+
async determineIfFileChanged(sobjectfile) {
|
|
223
|
+
if (this.isScratch) {
|
|
224
|
+
const logFile = (0, path_1.join)(this.project.getPath(), '.sf', 'orgs', this.org.getOrgId(), 'tffa', 'dataImport.json');
|
|
225
|
+
const log = (await (0, fs_extra_1.pathExists)(logFile)) && (await (0, fs_extra_1.readJSON)(logFile));
|
|
226
|
+
return !log || !log[sobjectfile] || log[sobjectfile] !== (await (0, fs_extra_1.stat)(sobjectfile)).mtimeMs;
|
|
227
|
+
}
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Tracks the files for any changes in future. Uses last modified date to track changes.
|
|
232
|
+
* @param sobjectfiles
|
|
233
|
+
*/
|
|
234
|
+
async trackFileChange(...sobjectfiles) {
|
|
235
|
+
if (this.isScratch) {
|
|
236
|
+
const logFile = (0, path_1.join)(this.project.getPath(), '.sf', 'orgs', this.org.getOrgId(), 'tffa', 'dataImport.json');
|
|
237
|
+
const log = ((await (0, fs_extra_1.pathExists)(logFile)) && (await (0, fs_extra_1.readJSON)(logFile))) || {};
|
|
238
|
+
for (const sobjectfile of sobjectfiles) {
|
|
239
|
+
log[sobjectfile] = (await (0, fs_extra_1.stat)(sobjectfile)).mtimeMs;
|
|
240
|
+
}
|
|
241
|
+
await (0, fs_extra_1.mkdirp)((0, path_1.dirname)(logFile));
|
|
242
|
+
await (0, fs_extra_1.writeJSON)(logFile, log);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
216
245
|
}
|
|
217
246
|
exports.default = DataImport;
|
|
218
247
|
DataImport.requiresUsername = true;
|
|
248
|
+
DataImport.requiresProject = true;
|
|
219
249
|
DataImport.description = messages.getMessage('commandDescription');
|
|
220
250
|
DataImport.examples = messages.getMessages('commandExamples');
|
|
221
251
|
DataImport.flagsConfig = {
|
|
@@ -225,6 +255,11 @@ DataImport.flagsConfig = {
|
|
|
225
255
|
description: messages.getMessage('planFlagDescription'),
|
|
226
256
|
default: 'data/configuration/config-data-plan.json'
|
|
227
257
|
}),
|
|
228
|
-
sobjecttypes: command_1.flags.array({ char: 's', required: false, description: messages.getMessage('sobjecttypesFlagDescription') })
|
|
258
|
+
sobjecttypes: command_1.flags.array({ char: 's', required: false, description: messages.getMessage('sobjecttypesFlagDescription') }),
|
|
259
|
+
forceimport: command_1.flags.boolean({
|
|
260
|
+
char: 'i',
|
|
261
|
+
required: false,
|
|
262
|
+
description: messages.getMessage('forceimportFlagDescription')
|
|
263
|
+
})
|
|
229
264
|
};
|
|
230
265
|
//# sourceMappingURL=import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../src/commands/tffa/data/import.ts"],"names":[],"mappings":";;AAAA;;IAEI;AACJ,iDAAsE;AACtE,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../src/commands/tffa/data/import.ts"],"names":[],"mappings":";;AAAA;;IAEI;AACJ,iDAAsE;AACtE,2CAA4C;AAC5C,uCAAyE;AACzE,+BAAqC;AAErC,wDAAwD;AACxD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,iGAAiG;AACjG,mFAAmF;AACnF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,YAAY,CAAC,CAAC;AAgBnF;;GAEG;AACH,MAAM,aAAa;IAEjB,YAAmB,MAAc,EAAS,KAAe,EAAS,mBAA2B;QAA1E,WAAM,GAAN,MAAM,CAAQ;QAAS,UAAK,GAAL,KAAK,CAAU;QAAS,wBAAmB,GAAnB,mBAAmB,CAAQ;QAD7F,cAA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sobject types from target org into JSON file(s). Primarily used for exporting business configurations.
|
|
6
6
|
The export command requires a target org for exporting records. Run this command from within a sfdx project containing a default username or specify targetusername explicitly.`,
|
|
7
|
-
|
|
7
|
+
sobjecttypesFlagDescription: 'sobject types of records to be exported',
|
|
8
8
|
outputdirFlagDescription: 'output directory where the JSON files of exported records will be placed',
|
|
9
9
|
groupbyFlagDescription:
|
|
10
10
|
'the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON files (filename suffixed by group name)',
|
package/messages/dataImport.js
CHANGED
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
**/
|
|
4
4
|
module.exports = {
|
|
5
5
|
commandDescription: `Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
To generate JSON files for use with tffa:data:import, run "sfdx tffa:data:export"
|
|
8
|
+
|
|
9
|
+
In scratch orgs, by default, sobject files are tracked for changes. When doing full plan imports (without the sobjecttypes parameter), individual sobject files are tracked for changes and excluded from import if the file content remained unchanged since the last time it was imported. This behaviour can be suppressed by including the forceimport flag when doing full plan imports.`,
|
|
7
10
|
sobjectfilesFlagDescription: 'comma-delimited, ordered paths of json files containing collection of record trees to upsert',
|
|
8
11
|
planFlagDescription:
|
|
9
12
|
'path to plan to upsert multiple data files that have master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with plan',
|
|
10
13
|
sobjecttypesFlagDescription: 'comma-delimited, list of sobject types to be imported when using a plan',
|
|
14
|
+
forceimportFlagDescription:
|
|
15
|
+
'force import all sobject files in a plan ignoring any internal file change tracking; applicable to scratch orgs only; forceimport is automatically set if sobjecttypes parameter is specified',
|
|
11
16
|
commandExamples: [
|
|
12
17
|
`$ sfdx tffa:data:import
|
|
13
18
|
(Imports all records from default plan - data/configuration/config-data-plan.json
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"16.0.0-rc.6","commands":{"tffa:apexdoc":{"id":"tffa:apexdoc","description":"Command to generate apex documentation similar to javadoc based on the comments in apex classes.\nPlease read more at [Documenting Apex Classes](development-guidelines/documentation).\nOnce generated you can use vscode plugin [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) and select index.html from generated folder and run Open with LiveServer to render the html","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:apexdoc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destfolder":{"name":"destfolder","type":"option","char":"d","description":"directory to generate the api docs","multiple":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destfolder":{"kind":"directory","char":"d","description":"directory to generate the api docs","input":[],"multiple":false,"type":"option"}}},"tffa:lint":{"id":"tffa:lint","description":"Scans a sfdx project and provide a violations report based on defined standards.\nPerforms static analysis of source code with a command-line interface and report output.\nThe command creates \"Rule Violations\" when the it identifies issues. Developers use this information as feedback to fix their code.\n\nThe rules used in the lint command are:\n\n- [Apex PMD](https://pmd.github.io/latest/pmd_rules_apex.html) to statically analyse Apex Code to find design, performance and security vulnerabilities. It allowes us to have a better quality and avoid maintenance, performance and bug problems in our Apex code. for Salesforce apex classes are scans during build and development process.\n- Custom rules\n - Custom Objects should have a description\n - Custom Fields should have a description'\n - Custom fields should not contain underscores.\n - Custom fields in managed object should start with CZ.\n - Custom objects should start with CZ.\n - Using Metadata API Version and Project source api version should be the latest supported.\n - Files violating naming conventions\n - Do not use isCreateable, isAccessible, isUpdateable, CRUD/FLS Checks are checked by tffa.AbstractRepository\n - Do not call methods directly of an abstract class. Call methods from Repository classes extending tffa.AbstractRepository\n - Do not call methods directly of an abstract class. Call methods from Controllers classes extending tffa.AbstractController',\n - Do not call methods directly of an abstract class. Call methods from RESTService classes extending tffa.AbstractRESTService\n - Any SOQL should be encapsulated into Repository classes extending tffa.AbstractRepository. Use doQuery method\n - Do not supress PMD warnings using @SupressWarnings\n\nThe lint command is integrated into the jenkins build to report violations and fail builds\n","strict":true,"usage":"<%= command.id %> [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$sfdx tffa:lint"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"generate json output","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"minapi":{"name":"minapi","type":"option","char":"m","description":"minimum api version to use during quality checks","multiple":false,"default":56},"rulesetpath":{"name":"rulesetpath","type":"option","char":"r","description":"path to pmd ruleset","multiple":false},"eject":{"name":"eject","type":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false},"level":{"name":"level","type":"boolean","char":"f","description":"emit fatal violations only","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"minapi":{"kind":"integer","char":"m","description":"minimum api version to use during quality checks","default":56,"input":[],"multiple":false,"type":"option"},"json":{"kind":"boolean","char":"j","description":"generate json output","allowNo":false,"type":"boolean"},"rulesetpath":{"kind":"filepath","char":"r","description":"path to pmd ruleset","input":[],"multiple":false,"type":"option"},"eject":{"kind":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false,"type":"boolean"},"level":{"kind":"boolean","char":"f","description":"emit fatal violations only","allowNo":false,"type":"boolean"}}},"tffa:meta":{"id":"tffa:meta","description":"Scan a sfdx project for generating metadata summary information","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:meta"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destpath":{"name":"destpath","type":"option","char":"d","description":"full path output file","multiple":false,"default":"."},"clientname":{"name":"clientname","type":"option","char":"c","description":"name of the client","multiple":false,"default":"."},"output":{"name":"output","type":"option","char":"o","description":"output format json csv human","helpValue":"(json|csv|human)","multiple":false,"options":["json","csv","human"]},"fields":{"name":"fields","type":"boolean","char":"f","description":"generate field output","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destpath":{"kind":"directory","char":"d","description":"full path output file","default":".","input":[],"multiple":false,"type":"option"},"clientname":{"kind":"directory","char":"c","description":"name of the client","default":".","input":[],"multiple":false,"type":"option"},"output":{"kind":"enum","helpValue":"(json|csv|human)","char":"o","options":["json","csv","human"],"description":"output format json csv human","input":[],"multiple":false,"type":"option"},"fields":{"kind":"boolean","char":"f","description":"generate field output","allowNo":false,"type":"boolean"}}},"tffa:ping":{"id":"tffa:ping","description":"Ping and test the plugin","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:ping "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[{"name":"file"}],"flagsConfig":{}},"tffa:data:export":{"id":"tffa:data:export","description":"Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business configurations.\nThe export command requires a target org for exporting records. Run this command from within a sfdx project containing a default username or specify targetusername explicitly.","strict":true,"usage":"<%= command.id %> -s <array> [-d <string>] [-g <string>] [-o <array>] [-c <array>] [-s] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:data:export --sobjecttype tffa__Product__c\n Fetched 101 records of tffa__Product__c\n Writing 24 records to ./data/configuration/Product__c.json\n Writing 30 records to ./data/configuration/Product__c1.json\n Writing 20 records to ./data/configuration/Product__c2.json\n Writing 27 records to ./data/configuration/Product__c3.json\n ","$ sfdx tffa:data:export --sobjecttype tffa__DisclosureTemplate__c,tffa__DisclosureChecklist__c,tffa__DisclosureMatrix__c\n Fetched 81 records of tffa__DisclosureTemplate__c\n Writing 81 records to ./data/configuration/DisclosureTemplate__c.json\n Fetched 57 records of tffa__DisclosureChecklist__c\n Writing 57 records to ./data/configuration/DisclosureChecklist__c.json\n Fetched 144 records of tffa__DisclosureMatrix__c\n Writing 144 records to ./data/configuration/DisclosureMatrix__c.json\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttype":{"name":"sobjecttype","type":"option","char":"s","description":"sobject types of records to be exported","required":true,"multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"output directory where the JSON files of exported records will be placed","multiple":false,"default":"./data/configuration"},"groupby":{"name":"groupby","type":"option","char":"g","description":"the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON files (filename suffixed by group name)","required":false,"multiple":false},"orderby":{"name":"orderby","type":"option","char":"o","description":"the fields to be used for sorting the exported records","required":false,"multiple":false},"children":{"name":"children","type":"option","char":"c","description":"the child relationships to be included in the exported records; this is not required for tffa package objects. e.g. tffa__Features__r,tffa__Terms__r child relationships are auto included when running export command for tffa__Product__c","required":false,"multiple":false},"skipconfigplan":{"name":"skipconfigplan","type":"boolean","char":"s","description":"skip import of exported record JSON files into configuration plan","required":false,"allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttype":{"kind":"array","char":"s","required":true,"description":"sobject types of records to be exported","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"output directory where the JSON files of exported records will be placed","default":"./data/configuration","input":[],"multiple":false,"type":"option"},"groupby":{"kind":"string","char":"g","required":false,"description":"the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON files (filename suffixed by group name)","input":[],"multiple":false,"type":"option"},"orderby":{"kind":"array","char":"o","required":false,"description":"the fields to be used for sorting the exported records","input":[],"multiple":false,"type":"option"},"children":{"kind":"array","char":"c","required":false,"description":"the child relationships to be included in the exported records; this is not required for tffa package objects. e.g. tffa__Features__r,tffa__Terms__r child relationships are auto included when running export command for tffa__Product__c","input":[],"multiple":false,"type":"option"},"skipconfigplan":{"kind":"boolean","char":"s","required":false,"description":"skip import of exported record JSON files into configuration plan","allowNo":false,"type":"boolean"}}},"tffa:data:import":{"id":"tffa:data:import","description":"Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.\n To generate JSON files for use with tffa:data:import, run \"sfdx tffa:data:export\"","strict":true,"usage":"<%= command.id %> [-f <array>] [-p <string>] [-s <array>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:data:import\n (Imports all records from default plan - data/configuration/config-data-plan.json\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n \n - Updated 5 record(s) of tffa__DependentProductEligibility__c\n Importing record(s) and relationships of tffa__DependentProductEligibility__c... done","$ sfdx tffa:data:import -p data/configuration/config-data-plan.json\n (Imports all records from default plan - data/configuration/config-data-plan.json\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n ... \n ","$ sfdx tffa:data:import -s tffa__Product__c\n (Imports only tffa__Product__c from data/configuration/config-data-plan.json)\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n ...\n ","$ sfdx tffa:data:import -f data/configuration/DisclosureTemplate__c.json,data/configuration/AddOnService__c.json\n (Imports tffa__DisclosureTemplate__c and tffa__AddOnService__c from the files; ignores config data plan)\n - Updated 82 record(s) of tffa__DisclosureTemplate__c\n Importing record(s) and relationships of tffa__DisclosureTemplate__c... done\n \n - Updated 30 record(s) of tffa__AddOnService__c\n Importing record(s) and relationships of tffa__AddOnService__c... done"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjectfiles":{"name":"sobjectfiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to upsert","required":false,"multiple":false},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to upsert multiple data files that have master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with plan","multiple":false,"default":"data/configuration/config-data-plan.json"},"sobjecttypes":{"name":"sobjecttypes","type":"option","char":"s","description":"comma-delimited, list of sobject types to be imported when using a plan","required":false,"multiple":false}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjectfiles":{"kind":"array","char":"f","required":false,"description":"comma-delimited, ordered paths of json files containing collection of record trees to upsert","input":[],"multiple":false,"type":"option"},"plan":{"kind":"string","char":"p","description":"path to plan to upsert multiple data files that have master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with plan","default":"data/configuration/config-data-plan.json","input":[],"multiple":false,"type":"option"},"sobjecttypes":{"kind":"array","char":"s","required":false,"description":"comma-delimited, list of sobject types to be imported when using a plan","input":[],"multiple":false,"type":"option"}}},"tffa:source:apiset":{"id":"tffa:source:apiset","description":"Upgrades the current project and all metadata to the latest API version","strict":true,"usage":"<%= command.id %> [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:source:apiset "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"api":{"name":"api","type":"option","char":"a","description":"specify the API version ","multiple":false,"default":56}},"args":[],"flagsConfig":{"help":{"kind":"help","description":"Show CLI help.","char":"h","allowNo":false,"type":"boolean"},"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"api":{"kind":"integer","char":"a","description":"specify the API version ","default":56,"input":[],"multiple":false,"type":"option"}}}}}
|
|
1
|
+
{"version":"16.0.0-rc.7","commands":{"tffa:apexdoc":{"id":"tffa:apexdoc","description":"Command to generate apex documentation similar to javadoc based on the comments in apex classes.\nPlease read more at [Documenting Apex Classes](development-guidelines/documentation).\nOnce generated you can use vscode plugin [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) and select index.html from generated folder and run Open with LiveServer to render the html","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:apexdoc"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destfolder":{"name":"destfolder","type":"option","char":"d","description":"directory to generate the api docs","multiple":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destfolder":{"kind":"directory","char":"d","description":"directory to generate the api docs","input":[],"multiple":false,"type":"option"}}},"tffa:lint":{"id":"tffa:lint","description":"Scans a sfdx project and provide a violations report based on defined standards.\nPerforms static analysis of source code with a command-line interface and report output.\nThe command creates \"Rule Violations\" when the it identifies issues. Developers use this information as feedback to fix their code.\n\nThe rules used in the lint command are:\n\n- [Apex PMD](https://pmd.github.io/latest/pmd_rules_apex.html) to statically analyse Apex Code to find design, performance and security vulnerabilities. It allowes us to have a better quality and avoid maintenance, performance and bug problems in our Apex code. for Salesforce apex classes are scans during build and development process.\n- Custom rules\n - Custom Objects should have a description\n - Custom Fields should have a description'\n - Custom fields should not contain underscores.\n - Custom fields in managed object should start with CZ.\n - Custom objects should start with CZ.\n - Using Metadata API Version and Project source api version should be the latest supported.\n - Files violating naming conventions\n - Do not use isCreateable, isAccessible, isUpdateable, CRUD/FLS Checks are checked by tffa.AbstractRepository\n - Do not call methods directly of an abstract class. Call methods from Repository classes extending tffa.AbstractRepository\n - Do not call methods directly of an abstract class. Call methods from Controllers classes extending tffa.AbstractController',\n - Do not call methods directly of an abstract class. Call methods from RESTService classes extending tffa.AbstractRESTService\n - Any SOQL should be encapsulated into Repository classes extending tffa.AbstractRepository. Use doQuery method\n - Do not supress PMD warnings using @SupressWarnings\n\nThe lint command is integrated into the jenkins build to report violations and fail builds\n","strict":true,"usage":"<%= command.id %> [-s <directory>] [-m <integer>] [-r <filepath>] [-e] [-f] [-j] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$sfdx tffa:lint"],"flags":{"json":{"name":"json","type":"boolean","char":"j","description":"generate json output","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"minapi":{"name":"minapi","type":"option","char":"m","description":"minimum api version to use during quality checks","multiple":false,"default":56},"rulesetpath":{"name":"rulesetpath","type":"option","char":"r","description":"path to pmd ruleset","multiple":false},"eject":{"name":"eject","type":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false},"level":{"name":"level","type":"boolean","char":"f","description":"emit fatal violations only","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"minapi":{"kind":"integer","char":"m","description":"minimum api version to use during quality checks","default":56,"input":[],"multiple":false,"type":"option"},"json":{"kind":"boolean","char":"j","description":"generate json output","allowNo":false,"type":"boolean"},"rulesetpath":{"kind":"filepath","char":"r","description":"path to pmd ruleset","input":[],"multiple":false,"type":"option"},"eject":{"kind":"boolean","char":"e","description":"update local pmd ruleset","allowNo":false,"type":"boolean"},"level":{"kind":"boolean","char":"f","description":"emit fatal violations only","allowNo":false,"type":"boolean"}}},"tffa:meta":{"id":"tffa:meta","description":"Scan a sfdx project for generating metadata summary information","strict":true,"usage":"<%= command.id %> [-s <directory>] [-d <directory>] [-c <directory>] [-o json|csv|human] [-f] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:meta"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"destpath":{"name":"destpath","type":"option","char":"d","description":"full path output file","multiple":false,"default":"."},"clientname":{"name":"clientname","type":"option","char":"c","description":"name of the client","multiple":false,"default":"."},"output":{"name":"output","type":"option","char":"o","description":"output format json csv human","helpValue":"(json|csv|human)","multiple":false,"options":["json","csv","human"]},"fields":{"name":"fields","type":"boolean","char":"f","description":"generate field output","allowNo":false}},"args":[],"flagsConfig":{"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"destpath":{"kind":"directory","char":"d","description":"full path output file","default":".","input":[],"multiple":false,"type":"option"},"clientname":{"kind":"directory","char":"c","description":"name of the client","default":".","input":[],"multiple":false,"type":"option"},"output":{"kind":"enum","helpValue":"(json|csv|human)","char":"o","options":["json","csv","human"],"description":"output format json csv human","input":[],"multiple":false,"type":"option"},"fields":{"kind":"boolean","char":"f","description":"generate field output","allowNo":false,"type":"boolean"}}},"tffa:ping":{"id":"tffa:ping","description":"Ping and test the plugin","strict":true,"usage":"<%= command.id %> [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:ping "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"}},"args":[{"name":"file"}],"flagsConfig":{}},"tffa:data:export":{"id":"tffa:data:export","description":"Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business configurations.\nThe export command requires a target org for exporting records. Run this command from within a sfdx project containing a default username or specify targetusername explicitly.","strict":true,"usage":"<%= command.id %> -s <array> [-d <string>] [-g <string>] [-o <array>] [-c <array>] [-s] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:data:export --sobjecttype tffa__Product__c\n Fetched 101 records of tffa__Product__c\n Writing 24 records to ./data/configuration/Product__c.json\n Writing 30 records to ./data/configuration/Product__c1.json\n Writing 20 records to ./data/configuration/Product__c2.json\n Writing 27 records to ./data/configuration/Product__c3.json\n ","$ sfdx tffa:data:export --sobjecttype tffa__DisclosureTemplate__c,tffa__DisclosureChecklist__c,tffa__DisclosureMatrix__c\n Fetched 81 records of tffa__DisclosureTemplate__c\n Writing 81 records to ./data/configuration/DisclosureTemplate__c.json\n Fetched 57 records of tffa__DisclosureChecklist__c\n Writing 57 records to ./data/configuration/DisclosureChecklist__c.json\n Fetched 144 records of tffa__DisclosureMatrix__c\n Writing 144 records to ./data/configuration/DisclosureMatrix__c.json\n "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjecttypes":{"name":"sobjecttypes","type":"option","char":"s","description":"sobject types of records to be exported","required":true,"multiple":false},"outputdir":{"name":"outputdir","type":"option","char":"d","description":"output directory where the JSON files of exported records will be placed","multiple":false,"default":"./data/configuration"},"groupby":{"name":"groupby","type":"option","char":"g","description":"the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON files (filename suffixed by group name)","required":false,"multiple":false},"orderby":{"name":"orderby","type":"option","char":"o","description":"the fields to be used for sorting the exported records","required":false,"multiple":false},"children":{"name":"children","type":"option","char":"c","description":"the child relationships to be included in the exported records; this is not required for tffa package objects. e.g. tffa__Features__r,tffa__Terms__r child relationships are auto included when running export command for tffa__Product__c","required":false,"multiple":false},"skipconfigplan":{"name":"skipconfigplan","type":"boolean","char":"s","description":"skip import of exported record JSON files into configuration plan","required":false,"allowNo":false}},"args":[],"requiresUsername":true,"flagsConfig":{"sobjecttypes":{"kind":"array","char":"s","required":true,"description":"sobject types of records to be exported","input":[],"multiple":false,"type":"option"},"outputdir":{"kind":"string","char":"d","description":"output directory where the JSON files of exported records will be placed","default":"./data/configuration","input":[],"multiple":false,"type":"option"},"groupby":{"kind":"string","char":"g","required":false,"description":"the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON files (filename suffixed by group name)","input":[],"multiple":false,"type":"option"},"orderby":{"kind":"array","char":"o","required":false,"description":"the fields to be used for sorting the exported records","input":[],"multiple":false,"type":"option"},"children":{"kind":"array","char":"c","required":false,"description":"the child relationships to be included in the exported records; this is not required for tffa package objects. e.g. tffa__Features__r,tffa__Terms__r child relationships are auto included when running export command for tffa__Product__c","input":[],"multiple":false,"type":"option"},"skipconfigplan":{"kind":"boolean","char":"s","required":false,"description":"skip import of exported record JSON files into configuration plan","allowNo":false,"type":"boolean"}}},"tffa:data:import":{"id":"tffa:data:import","description":"Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.\n \n To generate JSON files for use with tffa:data:import, run \"sfdx tffa:data:export\"\n \n In scratch orgs, by default, sobject files are tracked for changes. When doing full plan imports (without the sobjecttypes parameter), individual sobject files are tracked for changes and excluded from import if the file content remained unchanged since the last time it was imported. This behaviour can be suppressed by including the forceimport flag when doing full plan imports.","strict":true,"usage":"<%= command.id %> [-f <array>] [-p <string>] [-s <array>] [-i] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:data:import\n (Imports all records from default plan - data/configuration/config-data-plan.json\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n \n - Updated 5 record(s) of tffa__DependentProductEligibility__c\n Importing record(s) and relationships of tffa__DependentProductEligibility__c... done","$ sfdx tffa:data:import -p data/configuration/config-data-plan.json\n (Imports all records from default plan - data/configuration/config-data-plan.json\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n ... \n ","$ sfdx tffa:data:import -s tffa__Product__c\n (Imports only tffa__Product__c from data/configuration/config-data-plan.json)\n - Updated 101 record(s) of tffa__Product__c\n - Updated 532 record(s) of tffa__ProductFeature__c\n - Updated 143 record(s) of tffa__ProductTerm__c\n Importing record(s) and relationships of tffa__Product__c... done\n ...\n ","$ sfdx tffa:data:import -f data/configuration/DisclosureTemplate__c.json,data/configuration/AddOnService__c.json\n (Imports tffa__DisclosureTemplate__c and tffa__AddOnService__c from the files; ignores config data plan)\n - Updated 82 record(s) of tffa__DisclosureTemplate__c\n Importing record(s) and relationships of tffa__DisclosureTemplate__c... done\n \n - Updated 30 record(s) of tffa__AddOnService__c\n Importing record(s) and relationships of tffa__AddOnService__c... done"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org","multiple":false},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command","multiple":false},"sobjectfiles":{"name":"sobjectfiles","type":"option","char":"f","description":"comma-delimited, ordered paths of json files containing collection of record trees to upsert","required":false,"multiple":false},"plan":{"name":"plan","type":"option","char":"p","description":"path to plan to upsert multiple data files that have master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with plan","multiple":false,"default":"data/configuration/config-data-plan.json"},"sobjecttypes":{"name":"sobjecttypes","type":"option","char":"s","description":"comma-delimited, list of sobject types to be imported when using a plan","required":false,"multiple":false},"forceimport":{"name":"forceimport","type":"boolean","char":"i","description":"force import all sobject files in a plan ignoring any internal file change tracking; applicable to scratch orgs only; forceimport is automatically set if sobjecttypes parameter is specified","required":false,"allowNo":false}},"args":[],"requiresUsername":true,"requiresProject":true,"flagsConfig":{"sobjectfiles":{"kind":"array","char":"f","required":false,"description":"comma-delimited, ordered paths of json files containing collection of record trees to upsert","input":[],"multiple":false,"type":"option"},"plan":{"kind":"string","char":"p","description":"path to plan to upsert multiple data files that have master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with plan","default":"data/configuration/config-data-plan.json","input":[],"multiple":false,"type":"option"},"sobjecttypes":{"kind":"array","char":"s","required":false,"description":"comma-delimited, list of sobject types to be imported when using a plan","input":[],"multiple":false,"type":"option"},"forceimport":{"kind":"boolean","char":"i","required":false,"description":"force import all sobject files in a plan ignoring any internal file change tracking; applicable to scratch orgs only; forceimport is automatically set if sobjecttypes parameter is specified","allowNo":false,"type":"boolean"}}},"tffa:source:apiset":{"id":"tffa:source:apiset","description":"Upgrades the current project and all metadata to the latest API version","strict":true,"usage":"<%= command.id %> [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@terafina/tffa-sfdx-plugin","pluginAlias":"@terafina/tffa-sfdx-plugin","pluginType":"core","aliases":[],"examples":["$ sfdx tffa:source:apiset "],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","multiple":false,"options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"sourcefolder":{"name":"sourcefolder","type":"option","char":"s","description":"directory containing sfdx project","multiple":false,"default":"."},"api":{"name":"api","type":"option","char":"a","description":"specify the API version ","multiple":false,"default":56}},"args":[],"flagsConfig":{"help":{"kind":"help","description":"Show CLI help.","char":"h","allowNo":false,"type":"boolean"},"sourcefolder":{"kind":"directory","char":"s","description":"directory containing sfdx project","default":".","input":[],"multiple":false,"type":"option"},"api":{"kind":"integer","char":"a","description":"specify the API version ","default":56,"input":[],"multiple":false,"type":"option"}}}}}
|