@terafina/tffa-sfdx-plugin 16.0.0-rc.1 → 16.0.0-rc.10
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 +298 -18
- package/assets/homepage.html +1 -1
- package/bin/pmd/apex_ruleset.xml +25 -0
- package/lib/commands/tffa/apexdoc.js +1 -1
- package/lib/commands/tffa/apexdoc.js.map +1 -1
- package/lib/commands/tffa/data/export.d.ts +71 -0
- package/lib/commands/tffa/data/export.js +396 -0
- package/lib/commands/tffa/data/export.js.map +1 -0
- package/lib/commands/tffa/data/import.d.ts +69 -0
- package/lib/commands/tffa/data/import.js +291 -0
- package/lib/commands/tffa/data/import.js.map +1 -0
- package/lib/commands/tffa/meta.js +2 -2
- package/lib/commands/tffa/meta.js.map +1 -1
- package/lib/commands/tffa/source/createfield.d.ts +41 -0
- package/lib/commands/tffa/source/createfield.js +210 -0
- package/lib/commands/tffa/source/createfield.js.map +1 -0
- package/lib/services/apexdoc/common/line-reader.js +1 -1
- package/lib/services/apexdoc/common/line-reader.js.map +1 -1
- package/lib/services/apexdoc/engine/generators/models/source-markup-generator.js +12 -1
- package/lib/services/apexdoc/engine/generators/models/source-markup-generator.js.map +1 -1
- package/lib/services/lint/rules.js +2 -2
- package/lib/services/lint/rules.js.map +1 -1
- package/lib/utils/ignored-files.js +2 -0
- package/lib/utils/ignored-files.js.map +1 -1
- package/messages/apexdoc.json +1 -1
- package/messages/createField.js +37 -0
- package/messages/dataExport.js +32 -0
- package/messages/dataImport.js +50 -0
- package/messages/lint.js +31 -0
- package/messages/ping.json +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +34 -34
- package/yarn.lock +789 -736
- package/messages/lint.json +0 -5
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.10 linux-x64 node-v16.13.1
|
|
45
45
|
$ sfdx --help [COMMAND]
|
|
46
46
|
USAGE
|
|
47
47
|
$ sfdx COMMAND
|
|
@@ -54,10 +54,13 @@ USAGE
|
|
|
54
54
|
<!-- commands -->
|
|
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
|
+
* [`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>] [-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)
|
|
57
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)
|
|
58
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)
|
|
59
61
|
* [`sfdx tffa:ping [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffaping---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
60
62
|
* [`sfdx tffa:source:apiset [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffasourceapiset--h-help--s-directory--a-integer---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
63
|
+
* [`sfdx tffa:source:createfield -s <string> -n <string> -t checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-long|textarea-rich [-r] [-l <number>] [-d <string>] [-p <array>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-tffasourcecreatefield--s-string--n-string--t-checkboxcurrencydatedatetimeemailnumberpercentphonepicklistpicklist-multitexttextareatextarea-longtextarea-rich--r--l-number--d-string--p-array--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
|
|
61
64
|
* [`sfdx version`](#sfdx-version)
|
|
62
65
|
|
|
63
66
|
## `sfdx help [COMMAND]`
|
|
@@ -78,11 +81,11 @@ DESCRIPTION
|
|
|
78
81
|
Display help for sfdx.
|
|
79
82
|
```
|
|
80
83
|
|
|
81
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.
|
|
84
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.22/src/commands/help.ts)_
|
|
82
85
|
|
|
83
86
|
## `sfdx tffa:apexdoc [-s <directory>] [-d <directory>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
84
87
|
|
|
85
|
-
|
|
88
|
+
Command to generate apex documentation similar to javadoc based on the comments in apex classes.
|
|
86
89
|
|
|
87
90
|
```
|
|
88
91
|
USAGE
|
|
@@ -98,17 +101,178 @@ FLAGS
|
|
|
98
101
|
this command invocation
|
|
99
102
|
|
|
100
103
|
DESCRIPTION
|
|
101
|
-
|
|
104
|
+
Command to generate apex documentation similar to javadoc based on the comments in apex classes.
|
|
105
|
+
Please read more at [Documenting Apex Classes](development-guidelines/documentation).
|
|
106
|
+
Once generated you can use vscode plugin [Live
|
|
107
|
+
Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) and select index.html from
|
|
108
|
+
generated folder and run Open with LiveServer to render the html
|
|
102
109
|
|
|
103
110
|
EXAMPLES
|
|
104
|
-
|
|
111
|
+
$ sfdx tffa:apexdoc
|
|
105
112
|
```
|
|
106
113
|
|
|
107
|
-
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
114
|
+
_See code: [src/commands/tffa/apexdoc.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/apexdoc.ts)_
|
|
115
|
+
|
|
116
|
+
## `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]`
|
|
117
|
+
|
|
118
|
+
Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business configurations.
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
USAGE
|
|
122
|
+
$ sfdx tffa:data:export -s <array> [-d <string>] [-g <string>] [-o <array>] [-c <array>] [-s] [-u <string>]
|
|
123
|
+
[--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
124
|
+
|
|
125
|
+
FLAGS
|
|
126
|
+
-c, --children=<value>
|
|
127
|
+
the child relationships to be included in the exported records; this is not required for tffa package objects. e.g.
|
|
128
|
+
tffa__Features__r,tffa__Terms__r child relationships are auto included when running export command for
|
|
129
|
+
tffa__Product__c
|
|
130
|
+
|
|
131
|
+
-d, --outputdir=<value>
|
|
132
|
+
[default: ./data/configuration] output directory where the JSON files of exported records will be placed
|
|
133
|
+
|
|
134
|
+
-g, --groupby=<value>
|
|
135
|
+
the field to be used for grouping the exported records; records belonging to each group are placed in separate JSON
|
|
136
|
+
files (filename suffixed by group name)
|
|
137
|
+
|
|
138
|
+
-o, --orderby=<value>
|
|
139
|
+
the fields to be used for sorting the exported records
|
|
140
|
+
|
|
141
|
+
-s, --skipconfigplan
|
|
142
|
+
skip import of exported record JSON files into configuration plan
|
|
143
|
+
|
|
144
|
+
-s, --sobjecttypes=<value>
|
|
145
|
+
(required) sobject types of records to be exported
|
|
146
|
+
|
|
147
|
+
-u, --targetusername=<value>
|
|
148
|
+
username or alias for the target org; overrides default target org
|
|
149
|
+
|
|
150
|
+
--apiversion=<value>
|
|
151
|
+
override the api version used for api requests made by this command
|
|
152
|
+
|
|
153
|
+
--json
|
|
154
|
+
format output as json
|
|
155
|
+
|
|
156
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
157
|
+
[default: warn] logging level for this command invocation
|
|
158
|
+
|
|
159
|
+
DESCRIPTION
|
|
160
|
+
Exports records of specified sobject types from target org into JSON file(s). Primarily used for exporting business
|
|
161
|
+
configurations.
|
|
162
|
+
The export command requires a target org for exporting records. Run this command from within a sfdx project containing
|
|
163
|
+
a default username or specify targetusername explicitly.
|
|
164
|
+
|
|
165
|
+
EXAMPLES
|
|
166
|
+
$ sfdx tffa:data:export --sobjecttype tffa__Product__c
|
|
167
|
+
Fetched 101 records of tffa__Product__c
|
|
168
|
+
Writing 24 records to ./data/configuration/Product__c.json
|
|
169
|
+
Writing 30 records to ./data/configuration/Product__c1.json
|
|
170
|
+
Writing 20 records to ./data/configuration/Product__c2.json
|
|
171
|
+
Writing 27 records to ./data/configuration/Product__c3.json
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
$ sfdx tffa:data:export --sobjecttype tffa__DisclosureTemplate__c,tffa__DisclosureChecklist__c,tffa__DisclosureMatrix__c
|
|
175
|
+
Fetched 81 records of tffa__DisclosureTemplate__c
|
|
176
|
+
Writing 81 records to ./data/configuration/DisclosureTemplate__c.json
|
|
177
|
+
Fetched 57 records of tffa__DisclosureChecklist__c
|
|
178
|
+
Writing 57 records to ./data/configuration/DisclosureChecklist__c.json
|
|
179
|
+
Fetched 144 records of tffa__DisclosureMatrix__c
|
|
180
|
+
Writing 144 records to ./data/configuration/DisclosureMatrix__c.json
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
_See code: [src/commands/tffa/data/export.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/data/export.ts)_
|
|
184
|
+
|
|
185
|
+
## `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]`
|
|
186
|
+
|
|
187
|
+
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships. Primarily used for importing business configurations.
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
USAGE
|
|
191
|
+
$ sfdx tffa:data:import [-f <array>] [-p <string>] [-s <array>] [-i] [-u <string>] [--apiversion <string>] [--json]
|
|
192
|
+
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
193
|
+
|
|
194
|
+
FLAGS
|
|
195
|
+
-f, --sobjectfiles=<value>
|
|
196
|
+
comma-delimited, ordered paths of json files containing collection of record trees to upsert
|
|
197
|
+
|
|
198
|
+
-i, --forceimport
|
|
199
|
+
force import all sobject files in a plan ignoring any internal file change tracking; applicable to scratch orgs
|
|
200
|
+
only; forceimport is automatically set if sobjecttypes parameter is specified
|
|
201
|
+
|
|
202
|
+
-p, --plan=<value>
|
|
203
|
+
[default: data/configuration/config-data-plan.json] path to plan to upsert multiple data files that have
|
|
204
|
+
master-detail relationships; to restrict the sobject types imported using the plan, specify sobjecttypes along with
|
|
205
|
+
plan
|
|
206
|
+
|
|
207
|
+
-s, --sobjecttypes=<value>
|
|
208
|
+
comma-delimited, list of sobject types to be imported when using a plan
|
|
209
|
+
|
|
210
|
+
-u, --targetusername=<value>
|
|
211
|
+
username or alias for the target org; overrides default target org
|
|
212
|
+
|
|
213
|
+
--apiversion=<value>
|
|
214
|
+
override the api version used for api requests made by this command
|
|
215
|
+
|
|
216
|
+
--json
|
|
217
|
+
format output as json
|
|
218
|
+
|
|
219
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
220
|
+
[default: warn] logging level for this command invocation
|
|
221
|
+
|
|
222
|
+
DESCRIPTION
|
|
223
|
+
Imports data into an org using the SObject Bulk Upsert API. This data can include master-detail relationships.
|
|
224
|
+
Primarily used for importing business configurations.
|
|
225
|
+
|
|
226
|
+
To generate JSON files for use with tffa:data:import, run "sfdx tffa:data:export"
|
|
227
|
+
|
|
228
|
+
In scratch orgs, by default, sobject files are tracked for changes. When doing full plan imports (without the
|
|
229
|
+
sobjecttypes parameter), individual sobject files are tracked for changes and excluded from import if the file content
|
|
230
|
+
remained unchanged since the last time it was imported. This behaviour can be suppressed by including the forceimport
|
|
231
|
+
flag when doing full plan imports.
|
|
232
|
+
|
|
233
|
+
EXAMPLES
|
|
234
|
+
$ sfdx tffa:data:import
|
|
235
|
+
(Imports all records from default plan - data/configuration/config-data-plan.json
|
|
236
|
+
- Updated 101 record(s) of tffa__Product__c
|
|
237
|
+
- Updated 532 record(s) of tffa__ProductFeature__c
|
|
238
|
+
- Updated 143 record(s) of tffa__ProductTerm__c
|
|
239
|
+
Importing record(s) and relationships of tffa__Product__c... done
|
|
240
|
+
|
|
241
|
+
- Updated 5 record(s) of tffa__DependentProductEligibility__c
|
|
242
|
+
Importing record(s) and relationships of tffa__DependentProductEligibility__c... done
|
|
243
|
+
|
|
244
|
+
$ sfdx tffa:data:import -p data/configuration/config-data-plan.json
|
|
245
|
+
(Imports all records from default plan - data/configuration/config-data-plan.json
|
|
246
|
+
- Updated 101 record(s) of tffa__Product__c
|
|
247
|
+
- Updated 532 record(s) of tffa__ProductFeature__c
|
|
248
|
+
- Updated 143 record(s) of tffa__ProductTerm__c
|
|
249
|
+
Importing record(s) and relationships of tffa__Product__c... done
|
|
250
|
+
...
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
$ sfdx tffa:data:import -s tffa__Product__c
|
|
254
|
+
(Imports only tffa__Product__c from data/configuration/config-data-plan.json)
|
|
255
|
+
- Updated 101 record(s) of tffa__Product__c
|
|
256
|
+
- Updated 532 record(s) of tffa__ProductFeature__c
|
|
257
|
+
- Updated 143 record(s) of tffa__ProductTerm__c
|
|
258
|
+
Importing record(s) and relationships of tffa__Product__c... done
|
|
259
|
+
...
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
$ sfdx tffa:data:import -f data/configuration/DisclosureTemplate__c.json,data/configuration/AddOnService__c.json
|
|
263
|
+
(Imports tffa__DisclosureTemplate__c and tffa__AddOnService__c from the files; ignores config data plan)
|
|
264
|
+
- Updated 82 record(s) of tffa__DisclosureTemplate__c
|
|
265
|
+
Importing record(s) and relationships of tffa__DisclosureTemplate__c... done
|
|
266
|
+
|
|
267
|
+
- Updated 30 record(s) of tffa__AddOnService__c
|
|
268
|
+
Importing record(s) and relationships of tffa__AddOnService__c... done
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
_See code: [src/commands/tffa/data/import.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/data/import.ts)_
|
|
108
272
|
|
|
109
273
|
## `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]`
|
|
110
274
|
|
|
111
|
-
|
|
275
|
+
Scans a sfdx project and provide a violations report based on defined standards.
|
|
112
276
|
|
|
113
277
|
```
|
|
114
278
|
USAGE
|
|
@@ -128,17 +292,46 @@ FLAGS
|
|
|
128
292
|
this command invocation
|
|
129
293
|
|
|
130
294
|
DESCRIPTION
|
|
131
|
-
|
|
295
|
+
Scans a sfdx project and provide a violations report based on defined standards.
|
|
296
|
+
Performs static analysis of source code with a command-line interface and report output.
|
|
297
|
+
The command creates "Rule Violations" when the it identifies issues. Developers use this information as feedback to
|
|
298
|
+
fix their code.
|
|
299
|
+
|
|
300
|
+
The rules used in the lint command are:
|
|
301
|
+
|
|
302
|
+
- [Apex PMD](https://pmd.github.io/latest/pmd_rules_apex.html) to statically analyse Apex Code to find design,
|
|
303
|
+
performance and security vulnerabilities. It allowes us to have a better quality and avoid maintenance, performance
|
|
304
|
+
and bug problems in our Apex code. for Salesforce apex classes are scans during build and development process.
|
|
305
|
+
- Custom rules
|
|
306
|
+
- Custom Objects should have a description
|
|
307
|
+
- Custom Fields should have a description'
|
|
308
|
+
- Custom fields should not contain underscores.
|
|
309
|
+
- Custom fields in managed object should start with CZ.
|
|
310
|
+
- Custom objects should start with CZ.
|
|
311
|
+
- Using Metadata API Version and Project source api version should be the latest supported.
|
|
312
|
+
- Files violating naming conventions
|
|
313
|
+
- Do not use isCreateable, isAccessible, isUpdateable, CRUD/FLS Checks are checked by tffa.AbstractRepository
|
|
314
|
+
- Do not call methods directly of an abstract class. Call methods from Repository classes extending
|
|
315
|
+
tffa.AbstractRepository
|
|
316
|
+
- Do not call methods directly of an abstract class. Call methods from Controllers classes extending
|
|
317
|
+
tffa.AbstractController',
|
|
318
|
+
- Do not call methods directly of an abstract class. Call methods from RESTService classes extending
|
|
319
|
+
tffa.AbstractRESTService
|
|
320
|
+
- Any SOQL should be encapsulated into Repository classes extending tffa.AbstractRepository. Use doQuery method
|
|
321
|
+
- Do not supress PMD warnings using @SupressWarnings
|
|
322
|
+
|
|
323
|
+
The lint command is integrated into the jenkins build to report violations and fail builds
|
|
324
|
+
|
|
132
325
|
|
|
133
326
|
EXAMPLES
|
|
134
327
|
$sfdx tffa:lint
|
|
135
328
|
```
|
|
136
329
|
|
|
137
|
-
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
330
|
+
_See code: [src/commands/tffa/lint.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/lint.ts)_
|
|
138
331
|
|
|
139
332
|
## `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]`
|
|
140
333
|
|
|
141
|
-
|
|
334
|
+
Scan a sfdx project for generating metadata summary information
|
|
142
335
|
|
|
143
336
|
```
|
|
144
337
|
USAGE
|
|
@@ -157,17 +350,17 @@ FLAGS
|
|
|
157
350
|
this command invocation
|
|
158
351
|
|
|
159
352
|
DESCRIPTION
|
|
160
|
-
|
|
353
|
+
Scan a sfdx project for generating metadata summary information
|
|
161
354
|
|
|
162
355
|
EXAMPLES
|
|
163
|
-
|
|
356
|
+
$ sfdx tffa:meta
|
|
164
357
|
```
|
|
165
358
|
|
|
166
|
-
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
359
|
+
_See code: [src/commands/tffa/meta.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/meta.ts)_
|
|
167
360
|
|
|
168
361
|
## `sfdx tffa:ping [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
169
362
|
|
|
170
|
-
|
|
363
|
+
Ping and test the plugin
|
|
171
364
|
|
|
172
365
|
```
|
|
173
366
|
USAGE
|
|
@@ -179,13 +372,13 @@ FLAGS
|
|
|
179
372
|
this command invocation
|
|
180
373
|
|
|
181
374
|
DESCRIPTION
|
|
182
|
-
|
|
375
|
+
Ping and test the plugin
|
|
183
376
|
|
|
184
377
|
EXAMPLES
|
|
185
378
|
$ sfdx tffa:ping
|
|
186
379
|
```
|
|
187
380
|
|
|
188
|
-
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
381
|
+
_See code: [src/commands/tffa/ping.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/ping.ts)_
|
|
189
382
|
|
|
190
383
|
## `sfdx tffa:source:apiset [-h <help>] [-s <directory>] [-a <integer>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
191
384
|
|
|
@@ -213,7 +406,94 @@ EXAMPLES
|
|
|
213
406
|
$ sfdx tffa:source:apiset
|
|
214
407
|
```
|
|
215
408
|
|
|
216
|
-
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.
|
|
409
|
+
_See code: [src/commands/tffa/source/apiset.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/source/apiset.ts)_
|
|
410
|
+
|
|
411
|
+
## `sfdx tffa:source:createfield -s <string> -n <string> -t checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-long|textarea-rich [-r] [-l <number>] [-d <string>] [-p <array>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
412
|
+
|
|
413
|
+
Creates an SObject field from the specified parameters.
|
|
414
|
+
|
|
415
|
+
```
|
|
416
|
+
USAGE
|
|
417
|
+
$ sfdx tffa:source:createfield -s <string> -n <string> -t
|
|
418
|
+
checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-long|texta
|
|
419
|
+
rea-rich [-r] [-l <number>] [-d <string>] [-p <array>] [-v <string>] [-u <string>] [--apiversion <string>] [--json]
|
|
420
|
+
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
421
|
+
|
|
422
|
+
FLAGS
|
|
423
|
+
-d, --description=<value>
|
|
424
|
+
description of the field
|
|
425
|
+
|
|
426
|
+
-l, --length=<value>
|
|
427
|
+
length of text field or textarea (long|rich) field; defaults to 255 for text field and 1024 for textarea field
|
|
428
|
+
|
|
429
|
+
-n, --name=<value>
|
|
430
|
+
(required) the API name of the field
|
|
431
|
+
|
|
432
|
+
-p, --permissionsets=<value>
|
|
433
|
+
comma-separated list of permission sets to which the field needs to be added; defaults to all permission sets in the
|
|
434
|
+
project
|
|
435
|
+
|
|
436
|
+
-r, --required
|
|
437
|
+
whether field is required; skips addition to permission sets
|
|
438
|
+
|
|
439
|
+
-s, --sobjecttype=<value>
|
|
440
|
+
(required) the API name of the object for which the field needs to be created
|
|
441
|
+
|
|
442
|
+
-t, --type=(checkbox|currency|date|datetime|email|number|percent|phone|picklist|picklist-multi|text|textarea|textarea-
|
|
443
|
+
long|textarea-rich)
|
|
444
|
+
(required) [default: text] type of the field
|
|
445
|
+
|
|
446
|
+
-u, --targetusername=<value>
|
|
447
|
+
username or alias for the target org; overrides default target org
|
|
448
|
+
|
|
449
|
+
-v, --valuesetname=<value>
|
|
450
|
+
name of the global value set if the field is a picklist or multi-select picklist type
|
|
451
|
+
|
|
452
|
+
--apiversion=<value>
|
|
453
|
+
override the api version used for api requests made by this command
|
|
454
|
+
|
|
455
|
+
--json
|
|
456
|
+
format output as json
|
|
457
|
+
|
|
458
|
+
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)
|
|
459
|
+
[default: warn] logging level for this command invocation
|
|
460
|
+
|
|
461
|
+
DESCRIPTION
|
|
462
|
+
Creates an SObject field from the specified parameters.
|
|
463
|
+
By default, created fields (except required) are added to all permission sets in the project. Use the permissionsets
|
|
464
|
+
parameter to explicitly specify the permission sets.
|
|
465
|
+
|
|
466
|
+
NOTE: this command does not create the field in the org, it only creates the field meta xml file in the project.
|
|
467
|
+
source push is required for the field to be created in the org.
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
EXAMPLES
|
|
471
|
+
$ sfdx tffa:source:createfield -s Product__c -n TextField -t text -d "Test Text Field"
|
|
472
|
+
Creates a text field
|
|
473
|
+
|
|
474
|
+
$ sfdx tffa:source:createfield -s Product__c -n TextField -t text -d "Test Text Field" --required
|
|
475
|
+
Creates a required text field; does not add update permission sets as field is required
|
|
476
|
+
|
|
477
|
+
$ sfdx tffa:source:createfield -s Product__c -n TextField -t text -d "Test Text Field" --length 80
|
|
478
|
+
Creates a text field with length 80
|
|
479
|
+
|
|
480
|
+
$ sfdx tffa:source:createfield -s Product__c -n TextField -t text -d "Test Text Field" --permissionsets Administrator
|
|
481
|
+
Creates a text field and adds the field permission to Administrator permission set only
|
|
482
|
+
|
|
483
|
+
$ sfdx tffa:source:createfield -s Product__c -n CheckboxField -t checkbox -d "Test Checkbox Field"
|
|
484
|
+
Creates a checkbox field
|
|
485
|
+
|
|
486
|
+
$ sfdx tffa:source:createfield -s Product__c -n CurrencyField -t currency -d "Test Currency Field"
|
|
487
|
+
Creates a currency field
|
|
488
|
+
|
|
489
|
+
$ sfdx tffa:source:createfield -s Product__c -n PicklistField -t picklist -v ProductCategory -d "Test Picklist Field"
|
|
490
|
+
Creates a picklist field with global value set ProductCategory
|
|
491
|
+
|
|
492
|
+
$ sfdx tffa:source:createfield -s Product__c -n LongTextAreaField -t textarea-long -d "Test LongTextArea Field"
|
|
493
|
+
Creates a long textarea field
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
_See code: [src/commands/tffa/source/createfield.ts](https://github.com/terafina/tffa-sfdx-plugin/blob/v16.0.0-rc.10/src/commands/tffa/source/createfield.ts)_
|
|
217
497
|
|
|
218
498
|
## `sfdx version`
|
|
219
499
|
|
|
@@ -233,5 +513,5 @@ FLAG DESCRIPTIONS
|
|
|
233
513
|
Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
|
|
234
514
|
```
|
|
235
515
|
|
|
236
|
-
_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.
|
|
516
|
+
_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v1.1.3/src/commands/version.ts)_
|
|
237
517
|
<!-- commandsstop -->
|
package/assets/homepage.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Controller - Global accessible RemoteAction controllers
|
|
18
18
|
</li>
|
|
19
19
|
<li>
|
|
20
|
-
Data Transfer Object (DTO) - A data container which is used to transport data between layers
|
|
20
|
+
Data Transfer Object (DTO) - A data container which is used to transport data between layers. It mainly contains of attributes.
|
|
21
21
|
DTOs are anemic in general and do not contain any business logic.
|
|
22
22
|
</li>
|
|
23
23
|
<li>
|
package/bin/pmd/apex_ruleset.xml
CHANGED
|
@@ -222,5 +222,30 @@
|
|
|
222
222
|
</property>
|
|
223
223
|
</properties>
|
|
224
224
|
</rule>
|
|
225
|
+
<rule
|
|
226
|
+
name="ResponseInControllerRemoteMethods"
|
|
227
|
+
language="apex"
|
|
228
|
+
message="All Custom controllers should have tffa.Response as response type"
|
|
229
|
+
class="net.sourceforge.pmd.lang.apex.rule.ApexXPathRule"
|
|
230
|
+
>
|
|
231
|
+
<description>All Custom controllers should have tffa.Response as response type</description>
|
|
232
|
+
<priority>1</priority>
|
|
233
|
+
<properties>
|
|
234
|
+
<property name="xpath">
|
|
235
|
+
<value>
|
|
236
|
+
<![CDATA[
|
|
237
|
+
//UserClass[(ends-with(@Image, 'Controller')) and (@SuperClassName ='tffa.AbstractController')]
|
|
238
|
+
//Method[
|
|
239
|
+
./ModifierNode/Annotation[@Image = 'RemoteAction']
|
|
240
|
+
and
|
|
241
|
+
(
|
|
242
|
+
not(@ReturnType='tffa.Response')
|
|
243
|
+
)
|
|
244
|
+
]
|
|
245
|
+
]]>
|
|
246
|
+
</value>
|
|
247
|
+
</property>
|
|
248
|
+
</properties>
|
|
249
|
+
</rule>
|
|
225
250
|
<!--END CUSTOM RULES -->
|
|
226
251
|
</ruleset>
|
|
@@ -266,7 +266,7 @@ class ApexDoc extends command_1.SfdxCommand {
|
|
|
266
266
|
}
|
|
267
267
|
exports.default = ApexDoc;
|
|
268
268
|
ApexDoc.description = messages.getMessage('commandDescription');
|
|
269
|
-
ApexDoc.examples = [
|
|
269
|
+
ApexDoc.examples = [`$ sfdx tffa:apexdoc`];
|
|
270
270
|
ApexDoc.flagsConfig = {
|
|
271
271
|
sourcefolder: command_1.flags.directory({
|
|
272
272
|
char: 's',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apexdoc.js","sourceRoot":"","sources":["../../../src/commands/tffa/apexdoc.ts"],"names":[],"mappings":";AAAA;;IAEI;;;AAEJ,iDAAyD;AACzD,qFAA+D;AAC/D,2CAAoE;AAEpE,2FAA2E;AAC3E,sGAAqE;AACrE,+BAAgC;AAChC,2CAAyC;AACzC,oGAAmE;AACnE,wFAAwD;AACxD,2EAAiE;AAEjE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,4BAA4B,EAAE,SAAS,CAAC,CAAC;AAEhF,MAAqB,OAAQ,SAAQ,qBAA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C,SAAS,CAAC;QAC5B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;QAC3D,OAAO,EAAE,GAAG;KACb,CAAC;IACF,UAAU,EAAE,eAAK,CAAC,SAAS,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC;KAC1D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) NCR Terafina
|
|
3
|
+
**/
|
|
4
|
+
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
5
|
+
export default class DataExport extends SfdxCommand {
|
|
6
|
+
static requiresUsername: boolean;
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: string[];
|
|
9
|
+
protected static flagsConfig: FlagsConfig;
|
|
10
|
+
/**
|
|
11
|
+
* Custom prefixes
|
|
12
|
+
*/
|
|
13
|
+
private sObjectTypePrefixMap;
|
|
14
|
+
run(): Promise<any>;
|
|
15
|
+
private execute;
|
|
16
|
+
/**
|
|
17
|
+
* Gets fields to be included when exporting records.
|
|
18
|
+
*/
|
|
19
|
+
private getFields;
|
|
20
|
+
/**
|
|
21
|
+
* Gets the field to be used for ordering when exporting the records.
|
|
22
|
+
*/
|
|
23
|
+
private getOrderBy;
|
|
24
|
+
/**
|
|
25
|
+
* Transforms the exported records, making it ready for writing to config files
|
|
26
|
+
* @param records
|
|
27
|
+
*/
|
|
28
|
+
private transform;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the external id of the record
|
|
31
|
+
* @param record
|
|
32
|
+
* @returns
|
|
33
|
+
* @throws Error if external id or equivalent is not found
|
|
34
|
+
*/
|
|
35
|
+
private getExternalId;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the reference id for the record
|
|
38
|
+
* @param record
|
|
39
|
+
*/
|
|
40
|
+
private getReferenceId;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the object prefix to be used when building the reference id
|
|
43
|
+
* @param sObjectType
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
private getPrefix;
|
|
47
|
+
/**
|
|
48
|
+
* Writes records to JSON files
|
|
49
|
+
* @param records
|
|
50
|
+
*/
|
|
51
|
+
private writeRecords;
|
|
52
|
+
/**
|
|
53
|
+
* Counts the number of SObjects within the record. e.g. a record containing child relationships may contain more than one SObject.
|
|
54
|
+
* @param record
|
|
55
|
+
* @returns
|
|
56
|
+
*/
|
|
57
|
+
private getSObjectCount;
|
|
58
|
+
/**
|
|
59
|
+
* Gets the export plan for the specified object type.
|
|
60
|
+
* @param sObjectType
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
private getExportPlan;
|
|
64
|
+
private getChildExportPlan;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a map of records where key is record.Id and value is record.
|
|
67
|
+
* @param records
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
private toMap;
|
|
71
|
+
}
|