sfdx-jayree 4.5.1 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +71 -198
- package/lib/commands/jayree/flowtestcoverage.d.ts +8 -7
- package/lib/commands/jayree/flowtestcoverage.js +24 -15
- package/lib/commands/jayree/flowtestcoverage.js.map +1 -1
- package/lib/commands/jayree/org/settings.d.ts +9 -10
- package/lib/commands/jayree/org/settings.js +30 -26
- package/lib/commands/jayree/org/settings.js.map +1 -1
- package/lib/commands/jayree/org/streaming.d.ts +8 -9
- package/lib/commands/jayree/org/streaming.js +14 -14
- package/lib/commands/jayree/org/streaming.js.map +1 -1
- package/lib/commands/jayree/source/fix.d.ts +8 -9
- package/lib/commands/jayree/source/fix.js +12 -11
- package/lib/commands/jayree/source/fix.js.map +1 -1
- package/lib/commands/jayree/version.d.ts +3 -3
- package/lib/commands/jayree/version.js +4 -3
- package/lib/commands/jayree/version.js.map +1 -1
- package/lib/utils/config.js +0 -25
- package/lib/utils/config.js.map +1 -1
- package/lib/utils/stateFolderHandler.js +1 -2
- package/lib/utils/stateFolderHandler.js.map +1 -1
- package/oclif.manifest.json +76 -510
- package/package.json +86 -39
- package/config/countrystate.json +0 -93
- package/lib/commands/jayree/org/configure/country.d.ts +0 -11
- package/lib/commands/jayree/org/configure/country.js +0 -137
- package/lib/commands/jayree/org/configure/country.js.map +0 -1
- package/lib/commands/jayree/org/configure/index.d.ts +0 -15
- package/lib/commands/jayree/org/configure/index.js +0 -135
- package/lib/commands/jayree/org/configure/index.js.map +0 -1
- package/lib/commands/jayree/org/configure/state.d.ts +0 -16
- package/lib/commands/jayree/org/configure/state.js +0 -239
- package/lib/commands/jayree/org/configure/state.js.map +0 -1
- package/lib/jayreeSfdxCommand.d.ts +0 -4
- package/lib/jayreeSfdxCommand.js +0 -15
- package/lib/jayreeSfdxCommand.js.map +0 -1
- package/lib/utils/puppeteer/configuretasks.d.ts +0 -14
- package/lib/utils/puppeteer/configuretasks.js +0 -270
- package/lib/utils/puppeteer/configuretasks.js.map +0 -1
- package/lib/utils/puppeteer/statetasks.d.ts +0 -51
- package/lib/utils/puppeteer/statetasks.js +0 -385
- package/lib/utils/puppeteer/statetasks.js.map +0 -1
- package/lib/utils/renderer.d.ts +0 -45
- package/lib/utils/renderer.js +0 -461
- package/lib/utils/renderer.js.map +0 -1
- package/messages/configure.json +0 -5
- package/messages/createstatecountry.json +0 -9
- package/messages/scratchorgtrackingget.json +0 -3
- package/messages/scratchorgtrackinglist.json +0 -4
- package/messages/scratchorgtrackingset.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [4.6.0](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.5.1...v4.6.0) (2023-04-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* migrate to sf-plugins ([4fa3932](https://github.com/jayree/sfdx-jayree-plugin/commit/4fa3932d60b368927be718d6e572ca61cb89ce46))
|
|
7
|
+
* use new org configure commands plugin ([cbec61c](https://github.com/jayree/sfdx-jayree-plugin/commit/cbec61c8270e01dc9675792290d542beeee4778d))
|
|
8
|
+
|
|
1
9
|
## [4.5.1](https://github.com/jayree/sfdx-jayree-plugin/compare/v4.5.0...v4.5.1) (2023-04-16)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -9,28 +9,11 @@ A Salesforce CLI plugin containing commands and hooks for Salesforce Application
|
|
|
9
9
|
[](https://github.com/jayree/sfdx-jayree-plugin/blob/main/package.json)
|
|
10
10
|
[](https://gitter.im/sfdx-jayree-plugin/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* [Related Plugins](#related-plugins)
|
|
17
|
-
<!-- tocstop -->
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
<!-- usage -->
|
|
22
|
-
```sh-session
|
|
23
|
-
$ sfdx plugins:install sfdx-jayree
|
|
24
|
-
$ sfdx jayree:[COMMAND]
|
|
25
|
-
running command...
|
|
26
|
-
$ sfdx plugins
|
|
27
|
-
sfdx-jayree 4.5.1
|
|
28
|
-
$ sfdx help jayree:[COMMAND]
|
|
29
|
-
USAGE
|
|
30
|
-
$ sfdx jayree:COMMAND
|
|
31
|
-
...
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
sfdx plugins:install @jayree/sfdx-plugin-source
|
|
32
16
|
```
|
|
33
|
-
<!-- usagestop -->
|
|
34
17
|
|
|
35
18
|
## Commands
|
|
36
19
|
|
|
@@ -39,7 +22,6 @@ USAGE
|
|
|
39
22
|
* [`sfdx jayree:automation:changeset:list`](#sfdx-jayreeautomationchangesetlist)
|
|
40
23
|
* [`sfdx jayree:automation:ltngsync:status`](#sfdx-jayreeautomationltngsyncstatus)
|
|
41
24
|
* [`sfdx jayree:flowtestcoverage`](#sfdx-jayreeflowtestcoverage)
|
|
42
|
-
* [`sfdx jayree:manifest:beta:git:diff`](#sfdx-jayreemanifestbetagitdiff)
|
|
43
25
|
* [`sfdx jayree:manifest:cleanup`](#sfdx-jayreemanifestcleanup)
|
|
44
26
|
* [`sfdx jayree:manifest:generate`](#sfdx-jayreemanifestgenerate)
|
|
45
27
|
* [`sfdx jayree:manifest:git:diff`](#sfdx-jayreemanifestgitdiff)
|
|
@@ -176,20 +158,14 @@ check the flow test coverage of an org
|
|
|
176
158
|
|
|
177
159
|
```
|
|
178
160
|
USAGE
|
|
179
|
-
$ sfdx jayree:flowtestcoverage
|
|
180
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
161
|
+
$ sfdx jayree:flowtestcoverage -o <value> [--json] [--api-version <value>]
|
|
181
162
|
|
|
182
163
|
FLAGS
|
|
183
|
-
-
|
|
184
|
-
|
|
185
|
-
--apiversion=<value> override the api version used for
|
|
186
|
-
api requests made by this command
|
|
187
|
-
--json format output as json
|
|
188
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
189
|
-
this command invocation
|
|
164
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
165
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
190
166
|
|
|
191
|
-
|
|
192
|
-
|
|
167
|
+
GLOBAL FLAGS
|
|
168
|
+
--json Format output as json.
|
|
193
169
|
|
|
194
170
|
EXAMPLES
|
|
195
171
|
$ sfdx jayree:flowtestcoverage
|
|
@@ -198,87 +174,7 @@ EXAMPLES
|
|
|
198
174
|
...
|
|
199
175
|
```
|
|
200
176
|
|
|
201
|
-
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.
|
|
202
|
-
|
|
203
|
-
### `sfdx jayree:manifest:beta:git:diff`
|
|
204
|
-
|
|
205
|
-
Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or delete based on changes in your git history.
|
|
206
|
-
|
|
207
|
-
```
|
|
208
|
-
USAGE
|
|
209
|
-
$ sfdx jayree:manifest:beta:git:diff REF1 [REF2] [--json] [--api-version <value>] [-d <value>] [--output-dir <value>]
|
|
210
|
-
[--destructive-changes-only]
|
|
211
|
-
|
|
212
|
-
ARGUMENTS
|
|
213
|
-
REF1 Base commit or branch.
|
|
214
|
-
REF2 Commit or branch to compare to the base commit.
|
|
215
|
-
|
|
216
|
-
FLAGS
|
|
217
|
-
-d, --source-dir=<value>... Path to the local source files to include in the manifest.
|
|
218
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
219
|
-
--destructive-changes-only Create a destructiveChanges manifest only.
|
|
220
|
-
--output-dir=<value> Directory to save the created manifest files.
|
|
221
|
-
|
|
222
|
-
GLOBAL FLAGS
|
|
223
|
-
--json Format output as json.
|
|
224
|
-
|
|
225
|
-
DESCRIPTION
|
|
226
|
-
Create a project manifest and destructiveChanges manifest that lists the metadata components you want to deploy or
|
|
227
|
-
delete based on changes in your git history.
|
|
228
|
-
|
|
229
|
-
Use this command to create a manifest and destructiveChanges manifest file based on the difference (git diff) of two
|
|
230
|
-
git refs.
|
|
231
|
-
|
|
232
|
-
You can use all ways to spell <commit> which are valid for 'git diff' (See https://git-scm.com/docs/git-diff).
|
|
233
|
-
|
|
234
|
-
ALIASES
|
|
235
|
-
$ sfdx jayree:manifest:beta:git:diff
|
|
236
|
-
|
|
237
|
-
EXAMPLES
|
|
238
|
-
Uses the changes between two arbitrary <commit>.
|
|
239
|
-
|
|
240
|
-
$ sfdx jayree:manifest:beta:git:diff <commit> <commit>
|
|
241
|
-
$ sfdx jayree:manifest:beta:git:diff <commit>..<commit>
|
|
242
|
-
|
|
243
|
-
Uses the changes on the branch containing and up to the second <commit>, starting at a common ancestor of both
|
|
244
|
-
<commit>.
|
|
245
|
-
|
|
246
|
-
$ sfdx jayree:manifest:beta:git:diff <commit>...<commit>
|
|
247
|
-
|
|
248
|
-
Uses the diff of what is unique in branchB (REF2) and unique in branchA (REF1).
|
|
249
|
-
|
|
250
|
-
$ sfdx jayree:manifest:beta:git:diff branchA..branchB
|
|
251
|
-
|
|
252
|
-
Uses the diff of what is unique in branchB (REF2).
|
|
253
|
-
|
|
254
|
-
$ sfdx jayree:manifest:beta:git:diff branchA...branchB
|
|
255
|
-
|
|
256
|
-
Specify the flags before or after the REF args
|
|
257
|
-
|
|
258
|
-
$ sfdx jayree:manifest:beta:git:diff --output-dir package <commit> <commit>
|
|
259
|
-
$ sfdx jayree:manifest:beta:git:diff <commit> <commit> --output-dir package
|
|
260
|
-
|
|
261
|
-
If you specify the 'source-dir' flag before the REF args, use '--' to separate the args from the 'source-dir'
|
|
262
|
-
values.
|
|
263
|
-
|
|
264
|
-
$ sfdx jayree:manifest:beta:git:diff --source-dir force-app -- <commit> <commit>
|
|
265
|
-
|
|
266
|
-
FLAG DESCRIPTIONS
|
|
267
|
-
-d, --source-dir=<value>... Path to the local source files to include in the manifest.
|
|
268
|
-
|
|
269
|
-
The supplied path can be to a single file (in which case the operation is applied to only one file) or to a folder
|
|
270
|
-
(in which case the operation is applied to all metadata types in the directory and its subdirectories).
|
|
271
|
-
|
|
272
|
-
You can specify this flag more than once.
|
|
273
|
-
|
|
274
|
-
--destructive-changes-only Create a destructiveChanges manifest only.
|
|
275
|
-
|
|
276
|
-
Use this flag to create a 'destructiveChanges.xml' and a blank 'package.xml'.
|
|
277
|
-
|
|
278
|
-
--output-dir=<value> Directory to save the created manifest files.
|
|
279
|
-
|
|
280
|
-
The location can be an absolute path or relative to the current working directory.
|
|
281
|
-
```
|
|
177
|
+
_See code: [src/commands/jayree/flowtestcoverage.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.6.0/src/commands/jayree/flowtestcoverage.ts)_
|
|
282
178
|
|
|
283
179
|
### `sfdx jayree:manifest:cleanup`
|
|
284
180
|
|
|
@@ -510,26 +406,24 @@ make configuration changes that are not covered by the metadata API
|
|
|
510
406
|
|
|
511
407
|
```
|
|
512
408
|
USAGE
|
|
513
|
-
$ sfdx jayree:org:configure
|
|
514
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
409
|
+
$ sfdx jayree:org:configure -o <value> [--json] [--api-version <value>] [-t <value>] [--concurrent]
|
|
515
410
|
|
|
516
411
|
FLAGS
|
|
517
|
-
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
--concurrent execute tasks in parallel
|
|
525
|
-
--json format output as json
|
|
526
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
527
|
-
this command invocation
|
|
412
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
413
|
+
-t, --tasks=<value>... list of task titles, if no tasks are specified, all tasks marked as active will be executed
|
|
414
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
415
|
+
--concurrent execute tasks in parallel
|
|
416
|
+
|
|
417
|
+
GLOBAL FLAGS
|
|
418
|
+
--json Format output as json.
|
|
528
419
|
|
|
529
420
|
DESCRIPTION
|
|
530
421
|
make configuration changes that are not covered by the metadata API
|
|
531
422
|
See example configuration on how to define tasks
|
|
532
423
|
|
|
424
|
+
make configuration changes that are not covered by the metadata API
|
|
425
|
+
See example configuration on how to define tasks
|
|
426
|
+
|
|
533
427
|
EXAMPLES
|
|
534
428
|
$ sfdx jayree:org:configure
|
|
535
429
|
$ sfdx jayree:org:configure -u me@my.org
|
|
@@ -537,7 +431,7 @@ EXAMPLES
|
|
|
537
431
|
$ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"
|
|
538
432
|
```
|
|
539
433
|
|
|
540
|
-
_See code: [
|
|
434
|
+
_See code: [@jayree/sfdx-plugin-org](https://github.com/jayree/sfdx-plugin-org/blob/v1.0.0/src/commands/jayree/org/configure/index.ts)_
|
|
541
435
|
|
|
542
436
|
### `sfdx jayree:org:configure:country`
|
|
543
437
|
|
|
@@ -545,23 +439,22 @@ update country integration values in the State/Country Picklists
|
|
|
545
439
|
|
|
546
440
|
```
|
|
547
441
|
USAGE
|
|
548
|
-
$ sfdx jayree:org:configure:country
|
|
549
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
442
|
+
$ sfdx jayree:org:configure:country -o <value> [--json] [--api-version <value>]
|
|
550
443
|
|
|
551
444
|
FLAGS
|
|
552
|
-
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
--json
|
|
557
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
558
|
-
this command invocation
|
|
445
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
446
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
447
|
+
|
|
448
|
+
GLOBAL FLAGS
|
|
449
|
+
--json Format output as json.
|
|
559
450
|
|
|
560
451
|
DESCRIPTION
|
|
561
452
|
update country integration values in the State/Country Picklists
|
|
453
|
+
|
|
454
|
+
update country integration values in the State/Country Picklists
|
|
562
455
|
```
|
|
563
456
|
|
|
564
|
-
_See code: [
|
|
457
|
+
_See code: [@jayree/sfdx-plugin-org](https://github.com/jayree/sfdx-plugin-org/blob/v1.0.0/src/commands/jayree/org/configure/country.ts)_
|
|
565
458
|
|
|
566
459
|
### `sfdx jayree:org:configure:state`
|
|
567
460
|
|
|
@@ -569,28 +462,27 @@ import (create/update) states into the State/Country Picklists
|
|
|
569
462
|
|
|
570
463
|
```
|
|
571
464
|
USAGE
|
|
572
|
-
$ sfdx jayree:org:configure:state
|
|
573
|
-
|
|
574
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
465
|
+
$ sfdx jayree:org:configure:state -o <value> [--json] [--api-version <value>] [--country-code <value>] [--category <value>]
|
|
466
|
+
[--language <value>] [--concurrent <value>]
|
|
575
467
|
|
|
576
468
|
FLAGS
|
|
577
|
-
-
|
|
578
|
-
|
|
579
|
-
--
|
|
580
|
-
|
|
581
|
-
--
|
|
582
|
-
--
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
--
|
|
586
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
587
|
-
this command invocation
|
|
469
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
470
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
471
|
+
--category=<value> Subdivision category
|
|
472
|
+
--concurrent=<value> [default: 1] execute tasks in parallel
|
|
473
|
+
--country-code=<value> Alpha-2 code
|
|
474
|
+
--language=<value> Language code
|
|
475
|
+
|
|
476
|
+
GLOBAL FLAGS
|
|
477
|
+
--json Format output as json.
|
|
588
478
|
|
|
589
479
|
DESCRIPTION
|
|
590
480
|
import (create/update) states into the State/Country Picklists
|
|
481
|
+
|
|
482
|
+
import (create/update) states into the State/Country Picklists
|
|
591
483
|
```
|
|
592
484
|
|
|
593
|
-
_See code: [
|
|
485
|
+
_See code: [@jayree/sfdx-plugin-org](https://github.com/jayree/sfdx-plugin-org/blob/v1.0.0/src/commands/jayree/org/configure/state.ts)_
|
|
594
486
|
|
|
595
487
|
### `sfdx jayree:org:settings`
|
|
596
488
|
|
|
@@ -598,24 +490,15 @@ write the current settings from an Org to a scratch org def file
|
|
|
598
490
|
|
|
599
491
|
```
|
|
600
492
|
USAGE
|
|
601
|
-
$ sfdx jayree:org:settings
|
|
602
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
493
|
+
$ sfdx jayree:org:settings -o <value> [--json] [-w] [-f <value>]
|
|
603
494
|
|
|
604
495
|
FLAGS
|
|
605
|
-
-f, --file=<value>
|
|
606
|
-
|
|
607
|
-
-
|
|
608
|
-
org; overrides default target org
|
|
609
|
-
-w, --writetoprojectscratchdeffile write output to
|
|
610
|
-
project-scratch-def.json file
|
|
611
|
-
--apiversion=<value> override the api version used for
|
|
612
|
-
api requests made by this command
|
|
613
|
-
--json format output as json
|
|
614
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
615
|
-
this command invocation
|
|
496
|
+
-f, --file=<value> write to 'file' instead of project-scratch-def.json
|
|
497
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
498
|
+
-w, --writetoprojectscratchdeffile write output to project-scratch-def.json file
|
|
616
499
|
|
|
617
|
-
|
|
618
|
-
|
|
500
|
+
GLOBAL FLAGS
|
|
501
|
+
--json Format output as json.
|
|
619
502
|
|
|
620
503
|
EXAMPLES
|
|
621
504
|
$ sfdx jayree:org:settings
|
|
@@ -623,7 +506,7 @@ EXAMPLES
|
|
|
623
506
|
$ sfdx jayree:org:settings -u MyTestOrg1 -w
|
|
624
507
|
```
|
|
625
508
|
|
|
626
|
-
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.
|
|
509
|
+
_See code: [src/commands/jayree/org/settings.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.6.0/src/commands/jayree/org/settings.ts)_
|
|
627
510
|
|
|
628
511
|
### `sfdx jayree:org:streaming`
|
|
629
512
|
|
|
@@ -631,28 +514,22 @@ listen to streaming api and platform events
|
|
|
631
514
|
|
|
632
515
|
```
|
|
633
516
|
USAGE
|
|
634
|
-
$ sfdx jayree:org:streaming -
|
|
635
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
517
|
+
$ sfdx jayree:org:streaming -o <value> -p <value> [--json] [--api-version <value>]
|
|
636
518
|
|
|
637
519
|
FLAGS
|
|
638
|
-
-
|
|
639
|
-
-
|
|
640
|
-
|
|
641
|
-
--apiversion=<value> override the api version used for
|
|
642
|
-
api requests made by this command
|
|
643
|
-
--json format output as json
|
|
644
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
645
|
-
this command invocation
|
|
520
|
+
-o, --target-org=<value> (required) Username or alias of the target org.
|
|
521
|
+
-p, --topic=<value> (required) topic name
|
|
522
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
646
523
|
|
|
647
|
-
|
|
648
|
-
|
|
524
|
+
GLOBAL FLAGS
|
|
525
|
+
--json Format output as json.
|
|
649
526
|
|
|
650
527
|
EXAMPLES
|
|
651
528
|
$ sfdx jayree:org:streaming --topic=/event/eventName__e
|
|
652
529
|
...
|
|
653
530
|
```
|
|
654
531
|
|
|
655
|
-
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.
|
|
532
|
+
_See code: [src/commands/jayree/org/streaming.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.6.0/src/commands/jayree/org/streaming.ts)_
|
|
656
533
|
|
|
657
534
|
### `sfdx jayree:packagedescription:create`
|
|
658
535
|
|
|
@@ -759,27 +636,23 @@ fix local source files
|
|
|
759
636
|
|
|
760
637
|
```
|
|
761
638
|
USAGE
|
|
762
|
-
$ sfdx jayree:source:fix [
|
|
763
|
-
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
639
|
+
$ sfdx jayree:source:fix [--json] [-o <value>] [-t <value>] [--verbose]
|
|
764
640
|
|
|
765
641
|
FLAGS
|
|
766
|
-
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
org; overrides default target org
|
|
770
|
-
--apiversion=<value> override the api version used for
|
|
771
|
-
api requests made by this command
|
|
772
|
-
--json format output as json
|
|
773
|
-
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
774
|
-
this command invocation
|
|
775
|
-
--verbose log output to console
|
|
642
|
+
-o, --target-org=<value>
|
|
643
|
+
-t, --tag=<value>... comma-separated list of tag names listed in .sfdx-jayree.json
|
|
644
|
+
--verbose log output to console
|
|
776
645
|
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
646
|
+
GLOBAL FLAGS
|
|
647
|
+
--json Format output as json.
|
|
648
|
+
|
|
649
|
+
FLAG DESCRIPTIONS
|
|
650
|
+
--verbose log output to console
|
|
651
|
+
|
|
652
|
+
log output to console
|
|
780
653
|
```
|
|
781
654
|
|
|
782
|
-
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.
|
|
655
|
+
_See code: [src/commands/jayree/source/fix.ts](https://github.com/jayree/sfdx-jayree-plugin/blob/v4.6.0/src/commands/jayree/source/fix.ts)_
|
|
783
656
|
|
|
784
657
|
### `sfdx jayree:source:snapshot:compare`
|
|
785
658
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { AnyJson } from '@salesforce/ts-types';
|
|
3
|
-
export default class FlowTestCoverage extends
|
|
4
|
-
static
|
|
5
|
-
static examples: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export default class FlowTestCoverage extends SfCommand<AnyJson> {
|
|
4
|
+
static readonly summary: string;
|
|
5
|
+
static readonly examples: string[];
|
|
6
|
+
static readonly flags: {
|
|
7
|
+
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
};
|
|
9
10
|
run(): Promise<AnyJson>;
|
|
10
11
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { dirname } from 'node:path';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
|
-
import {
|
|
9
|
+
import { SfCommand, requiredOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, } from '@salesforce/sf-plugins-core';
|
|
10
10
|
import { Messages } from '@salesforce/core';
|
|
11
11
|
// eslint-disable-next-line no-underscore-dangle
|
|
12
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -14,9 +14,11 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
14
14
|
const __dirname = dirname(__filename);
|
|
15
15
|
Messages.importMessagesDirectory(__dirname);
|
|
16
16
|
const messages = Messages.loadMessages('sfdx-jayree', 'flowtestcoverage');
|
|
17
|
-
class FlowTestCoverage extends
|
|
17
|
+
class FlowTestCoverage extends SfCommand {
|
|
18
18
|
async run() {
|
|
19
|
-
const
|
|
19
|
+
const { flags } = await this.parse(FlowTestCoverage);
|
|
20
|
+
const org = flags['target-org'];
|
|
21
|
+
const conn = org.getConnection(flags['api-version']);
|
|
20
22
|
const query1 = await conn.tooling.query("SELECT count_distinct(DefinitionId) FROM Flow WHERE Status = 'Active' AND(ProcessType = 'AutolaunchedFlow' OR ProcessType = 'Workflow' OR ProcessType = 'CustomEvent' OR ProcessType = 'InvocableProcess')");
|
|
21
23
|
const numberOfActiveAutolaunchedFlowsAndProcesses = query1.records[0]['expr0'];
|
|
22
24
|
const query2 = await conn.tooling.query('SELECT count_distinct(FlowVersionId) FROM FlowTestCoverage');
|
|
@@ -25,8 +27,8 @@ class FlowTestCoverage extends SfdxCommand {
|
|
|
25
27
|
const uncovered = query3.records.map((value) => value['Definition']['DeveloperName']);
|
|
26
28
|
const query4 = await conn.tooling.query('SELECT FlowVersion.Definition.DeveloperName FROM FlowTestCoverage GROUP BY FlowVersion.Definition.DeveloperName');
|
|
27
29
|
const covered = query4.records.map((value) => value['DeveloperName']);
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
+
this.styledHeader('Flow Test Coverage');
|
|
31
|
+
this.styledObject({
|
|
30
32
|
'number of active autolaunched flows and processes': numberOfActiveAutolaunchedFlowsAndProcesses,
|
|
31
33
|
'number of covered active autolaunched flows and processes': numberOfCoveredActiveAutolaunchedFlowsAndProcesses,
|
|
32
34
|
Coverage: Math.floor((numberOfCoveredActiveAutolaunchedFlowsAndProcesses / numberOfActiveAutolaunchedFlowsAndProcesses) * 100) + '%',
|
|
@@ -39,15 +41,21 @@ class FlowTestCoverage extends SfdxCommand {
|
|
|
39
41
|
'all flows and processes that have test coverage': covered[i],
|
|
40
42
|
});
|
|
41
43
|
}
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
this.table(x, {
|
|
45
|
+
TESTCOVERAGE: {
|
|
46
|
+
header: 'all flows and processes that have test coverage',
|
|
47
|
+
get: (row) => row['all flows and processes that have test coverage'],
|
|
48
|
+
},
|
|
49
|
+
NOTESTCOVERAGE: {
|
|
50
|
+
header: 'all active autolaunched flows and processes that don’t have test coverage',
|
|
51
|
+
get: (row) => row['all active autolaunched flows and processes that don’t have test coverage'],
|
|
52
|
+
},
|
|
53
|
+
});
|
|
46
54
|
if (covered.length !== numberOfCoveredActiveAutolaunchedFlowsAndProcesses) {
|
|
47
|
-
this.
|
|
55
|
+
this.warn('Error in the FlowTestCoverage table found, please delete all records in the FlowTestCoverage table, then run all tests, and use this command to check the Flow Test Coverage again');
|
|
48
56
|
}
|
|
49
57
|
return {
|
|
50
|
-
orgId:
|
|
58
|
+
orgId: org.getOrgId(),
|
|
51
59
|
Coverage: Math.floor((numberOfCoveredActiveAutolaunchedFlowsAndProcesses / numberOfActiveAutolaunchedFlowsAndProcesses) * 100) + '%',
|
|
52
60
|
numberOfActiveAutolaunchedFlowsAndProcesses,
|
|
53
61
|
numberOfCoveredActiveAutolaunchedFlowsAndProcesses,
|
|
@@ -56,7 +64,7 @@ class FlowTestCoverage extends SfdxCommand {
|
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
}
|
|
59
|
-
FlowTestCoverage.
|
|
67
|
+
FlowTestCoverage.summary = messages.getMessage('commandDescription');
|
|
60
68
|
FlowTestCoverage.examples = [
|
|
61
69
|
`$ sfdx jayree:flowtestcoverage
|
|
62
70
|
=== Flow Test Coverage
|
|
@@ -64,8 +72,9 @@ Coverage: 82%
|
|
|
64
72
|
...
|
|
65
73
|
`,
|
|
66
74
|
];
|
|
67
|
-
FlowTestCoverage.
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
FlowTestCoverage.flags = {
|
|
76
|
+
'target-org': requiredOrgFlagWithDeprecations,
|
|
77
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
78
|
+
};
|
|
70
79
|
export default FlowTestCoverage;
|
|
71
80
|
//# sourceMappingURL=flowtestcoverage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowtestcoverage.js","sourceRoot":"","sources":["../../../src/commands/jayree/flowtestcoverage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"flowtestcoverage.js","sourceRoot":"","sources":["../../../src/commands/jayree/flowtestcoverage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,gDAAgD;AAChD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,gDAAgD;AAChD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;AAE1E,MAAqB,gBAAiB,SAAQ,SAAkB;IAgBvD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,GAAG,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QAChC,MAAM,IAAI,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;QAErD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACrC,4MAA4M,CAC7M,CAAC;QAEF,MAAM,2CAA2C,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAE/E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAEtG,MAAM,kDAAkD,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAEtF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACrC,kQAAkQ,CACnQ,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;QAEtF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CACrC,iHAAiH,CAClH,CAAC;QACF,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;QAEtE,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;QACxC,IAAI,CAAC,YAAY,CAAC;YAChB,mDAAmD,EAAE,2CAA2C;YAChG,2DAA2D,EAAE,kDAAkD;YAC/G,QAAQ,EACN,IAAI,CAAC,KAAK,CACR,CAAC,kDAAkD,GAAG,2CAA2C,CAAC,GAAG,GAAG,CACzG,GAAG,GAAG;SACV,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE,CAAC;QACb,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACrF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,CAAC,CAAC,IAAI,CAAC;gBACL,2EAA2E,EAAE,SAAS,CAAC,CAAC,CAAC;gBACzF,iDAAiD,EAAE,OAAO,CAAC,CAAC,CAAC;aAC9D,CAAC,CAAC;SACJ;QAED,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;YACZ,YAAY,EAAE;gBACZ,MAAM,EAAE,iDAAiD;gBACzD,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,iDAAiD,CAAC;aACrE;YACD,cAAc,EAAE;gBACd,MAAM,EAAE,2EAA2E;gBACnF,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,2EAA2E,CAAC;aAC/F;SACF,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,MAAM,KAAK,kDAAkD,EAAE;YACzE,IAAI,CAAC,IAAI,CACP,oLAAoL,CACrL,CAAC;SACH;QAED,OAAO;YACL,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE;YACrB,QAAQ,EACN,IAAI,CAAC,KAAK,CACR,CAAC,kDAAkD,GAAG,2CAA2C,CAAC,GAAG,GAAG,CACzG,GAAG,GAAG;YACT,2CAA2C;YAC3C,kDAAkD;YAClD,2EAA2E,EAAE,SAAS;YACtF,iDAAiD,EAAE,OAAO;SAC3D,CAAC;IACJ,CAAC;;AAvFsB,wBAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAEpD,yBAAQ,GAAG;IAChC;;;;CAIH;CACE,CAAC;AAEqB,sBAAK,GAAG;IAC7B,YAAY,EAAE,+BAA+B;IAC7C,aAAa,EAAE,iCAAiC;CACjD,CAAC;eAdiB,gBAAgB"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { AnyJson } from '@salesforce/ts-types';
|
|
3
|
-
export default class ScratchOrgSettings extends
|
|
4
|
-
static
|
|
5
|
-
static examples: string[];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export default class ScratchOrgSettings extends SfCommand<AnyJson> {
|
|
4
|
+
static readonly summary: string;
|
|
5
|
+
static readonly examples: string[];
|
|
6
|
+
static readonly flags: {
|
|
7
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
8
|
+
writetoprojectscratchdeffile: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
9
|
+
file: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
protected static supportsDevhubUsername: boolean;
|
|
12
|
-
protected static requiresProject: boolean;
|
|
11
|
+
static readonly requiresProject = true;
|
|
13
12
|
run(): Promise<AnyJson>;
|
|
14
13
|
private throwError;
|
|
15
14
|
}
|