@simplysf/simply 6.2.2 → 6.4.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/README.md +151 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,6 +32,9 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
|
|
|
32
32
|
- [`sf simply aep at4dx field-set-inclusion list`](#sf-simply-aep-at4dx-field-set-inclusion-list)
|
|
33
33
|
- [`sf simply aep at4dx field-set-inclusion update`](#sf-simply-aep-at4dx-field-set-inclusion-update)
|
|
34
34
|
- [`sf simply aep at4dx field-set-inclusion validate`](#sf-simply-aep-at4dx-field-set-inclusion-validate)
|
|
35
|
+
- [`sf simply aep at4dx platform-event-subscription list`](#sf-simply-aep-at4dx-platform-event-subscription-list)
|
|
36
|
+
- [`sf simply aep at4dx platform-event-subscription simulate`](#sf-simply-aep-at4dx-platform-event-subscription-simulate)
|
|
37
|
+
- [`sf simply aep at4dx platform-event-subscription validate`](#sf-simply-aep-at4dx-platform-event-subscription-validate)
|
|
35
38
|
- [`sf simply apex execute`](#sf-simply-apex-execute)
|
|
36
39
|
- [`sf simply apex logs purge`](#sf-simply-apex-logs-purge)
|
|
37
40
|
- [`sf simply apex test-suite generate`](#sf-simply-apex-test-suite-generate)
|
|
@@ -782,6 +785,149 @@ EXAMPLES
|
|
|
782
785
|
|
|
783
786
|
_See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.11.3/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
|
|
784
787
|
|
|
788
|
+
## `sf simply aep at4dx platform-event-subscription list`
|
|
789
|
+
|
|
790
|
+
List the AT4DX Platform Event Distributor subscriptions configured in an org or local source.
|
|
791
|
+
|
|
792
|
+
```
|
|
793
|
+
USAGE
|
|
794
|
+
$ sf simply aep at4dx platform-event-subscription list [--json] [--flags-dir <value>] [-o <value>] [--api-version
|
|
795
|
+
<value>] [-d <value>...]
|
|
796
|
+
|
|
797
|
+
FLAGS
|
|
798
|
+
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
799
|
+
local-source discovery.
|
|
800
|
+
-o, --target-org=<value> Username or alias of the org to read platform event subscriptions from. Use this for
|
|
801
|
+
live-org discovery.
|
|
802
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
803
|
+
|
|
804
|
+
GLOBAL FLAGS
|
|
805
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
806
|
+
--json Format output as json.
|
|
807
|
+
|
|
808
|
+
DESCRIPTION
|
|
809
|
+
List the AT4DX Platform Event Distributor subscriptions configured in an org or local source.
|
|
810
|
+
|
|
811
|
+
Reads `PlatformEvents_Subscription__mdt` — either from a live org or from local Salesforce DX source — and lists every
|
|
812
|
+
record found, grouped by event bus then category. Unlike `simply aep at4dx binding list`, there's no priority/winner
|
|
813
|
+
concept: every `IsActive__c: true` subscription for a matching event is invoked by the distributor, so this is a flat
|
|
814
|
+
table, not a resolved one. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
815
|
+
|
|
816
|
+
EXAMPLES
|
|
817
|
+
$ sf simply aep at4dx platform-event-subscription list --target-org myOrg
|
|
818
|
+
|
|
819
|
+
$ sf simply aep at4dx platform-event-subscription list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
820
|
+
|
|
821
|
+
$ sf simply aep at4dx platform-event-subscription list --target-org myOrg --json
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
_See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.11.3/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/list.js)_
|
|
825
|
+
|
|
826
|
+
## `sf simply aep at4dx platform-event-subscription simulate`
|
|
827
|
+
|
|
828
|
+
Simulate the AT4DX Platform Event Distributor's consumer resolution for a hypothetical event, and show which subscriptions would receive it and why the rest wouldn't.
|
|
829
|
+
|
|
830
|
+
```
|
|
831
|
+
USAGE
|
|
832
|
+
$ sf simply aep at4dx platform-event-subscription simulate --event-bus <value> [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d
|
|
833
|
+
<value>...] [--category <value>] [--event-name <value>]
|
|
834
|
+
|
|
835
|
+
FLAGS
|
|
836
|
+
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
837
|
+
local-source discovery.
|
|
838
|
+
-o, --target-org=<value> Username or alias of the org to read platform event subscriptions from. Use this for
|
|
839
|
+
live-org discovery.
|
|
840
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
841
|
+
--category=<value> The hypothetical event's Category__c value. Omit to simulate an event with no category.
|
|
842
|
+
--event-bus=<value> (required) The platform event object API name (EventBus__c) of the hypothetical event to
|
|
843
|
+
simulate, e.g. My_Event__e.
|
|
844
|
+
--event-name=<value> The hypothetical event's EventName__c value. Omit to simulate an event with no event
|
|
845
|
+
name.
|
|
846
|
+
|
|
847
|
+
GLOBAL FLAGS
|
|
848
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
849
|
+
--json Format output as json.
|
|
850
|
+
|
|
851
|
+
DESCRIPTION
|
|
852
|
+
Simulate the AT4DX Platform Event Distributor's consumer resolution for a hypothetical event, and show which
|
|
853
|
+
subscriptions would receive it and why the rest wouldn't.
|
|
854
|
+
|
|
855
|
+
Reads `PlatformEvents_Subscription__mdt` — either from a live org or from local Salesforce DX source — and
|
|
856
|
+
reimplements `PlatformEventDistributor`'s decision sequence against a hypothetical event you describe with
|
|
857
|
+
`--event-bus`, `--category`, and `--event-name`: restrict to subscriptions on that bus, drop inactive records the
|
|
858
|
+
distributor's own query never loads, apply `triggerHandler`'s pre-filter, then each record's `MatcherRule__c` branch.
|
|
859
|
+
Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
860
|
+
|
|
861
|
+
Prints the exact consumer set the distributor would build, in order, tagged synchronous or asynchronous from
|
|
862
|
+
`Execute_Synchronous__c`, plus every subscription on that bus that would *not* receive the event and the structured
|
|
863
|
+
reason why: `inactive`, `prefiltered` (the pre-filter rejected it before any matcher rule ran),
|
|
864
|
+
`matcher-rule-missing-field` (the matcher rule dereferences a blank match field — a real NullPointerException in the
|
|
865
|
+
org), or `no-match` (every field the matcher rule needs is present, but the values don't match this event).
|
|
866
|
+
|
|
867
|
+
This is the same evaluation `simply aep at4dx platform-event-subscription validate` uses to derive
|
|
868
|
+
`matcher-rule-missing-field` and `unreachable-subscription` — running it here against a concrete hypothetical event is
|
|
869
|
+
how you confirm a subscription actually receives what you expect it to, beyond what `validate`'s static checks can
|
|
870
|
+
tell you.
|
|
871
|
+
|
|
872
|
+
EXAMPLES
|
|
873
|
+
$ sf simply aep at4dx platform-event-subscription simulate --target-org myOrg --event-bus Account_Change__e --category Finance --event-name AccountUpdated
|
|
874
|
+
|
|
875
|
+
$ sf simply aep at4dx platform-event-subscription simulate --source-dir sfdx-source/core --event-bus Account_Change__e --event-name AccountUpdated
|
|
876
|
+
|
|
877
|
+
$ sf simply aep at4dx platform-event-subscription simulate --target-org myOrg --event-bus Account_Change__e --json
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
_See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.11.3/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js)_
|
|
881
|
+
|
|
882
|
+
## `sf simply aep at4dx platform-event-subscription validate`
|
|
883
|
+
|
|
884
|
+
Validate the AT4DX Platform Event Distributor subscriptions configured in an org or local source, failing when a wiring problem is found.
|
|
885
|
+
|
|
886
|
+
```
|
|
887
|
+
USAGE
|
|
888
|
+
$ sf simply aep at4dx platform-event-subscription validate [--json] [--flags-dir <value>] [-o <value>] [--api-version
|
|
889
|
+
<value>] [-d <value>...]
|
|
890
|
+
|
|
891
|
+
FLAGS
|
|
892
|
+
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
893
|
+
local-source discovery.
|
|
894
|
+
-o, --target-org=<value> Username or alias of the org to read platform event subscriptions from. Use this for
|
|
895
|
+
live-org discovery.
|
|
896
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
897
|
+
|
|
898
|
+
GLOBAL FLAGS
|
|
899
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
900
|
+
--json Format output as json.
|
|
901
|
+
|
|
902
|
+
DESCRIPTION
|
|
903
|
+
Validate the AT4DX Platform Event Distributor subscriptions configured in an org or local source, failing when a
|
|
904
|
+
wiring problem is found.
|
|
905
|
+
|
|
906
|
+
Reads `PlatformEvents_Subscription__mdt` — either from a live org or from local Salesforce DX source — and checks them
|
|
907
|
+
for problems `simply aep at4dx platform-event-subscription list` doesn't fail on: a blank or unrecognized
|
|
908
|
+
EventBus__c/Consumer__c/MatcherRule__c, a matcher rule that dereferences a blank match field (a real
|
|
909
|
+
NullPointerException risk at runtime), a MatchEventBus record the distributor's own pre-filter can never admit, an
|
|
910
|
+
event bus missing fields the distributor reads (only checked for a bus this command can see the field list of), two
|
|
911
|
+
records sharing a Consumer__c value (unique org-wide), and the same DeveloperName defined more than once. Exactly one
|
|
912
|
+
of `--target-org` or `--source-dir` must be specified.
|
|
913
|
+
|
|
914
|
+
Several of these problems fail silently at runtime in a real org — PlatformEventDistributor's consumer construction
|
|
915
|
+
only logs to System.debug on failure, and one malformed record can take down every subscription's DI module. Catching
|
|
916
|
+
them here, before deploy, is the whole point of this command.
|
|
917
|
+
|
|
918
|
+
Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
|
|
919
|
+
command) — use this in CI to gate on AT4DX platform event subscription wiring problems before they reach an org.
|
|
920
|
+
|
|
921
|
+
EXAMPLES
|
|
922
|
+
$ sf simply aep at4dx platform-event-subscription validate --target-org myOrg
|
|
923
|
+
|
|
924
|
+
$ sf simply aep at4dx platform-event-subscription validate --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
925
|
+
|
|
926
|
+
$ sf simply aep at4dx platform-event-subscription validate --target-org myOrg --json
|
|
927
|
+
```
|
|
928
|
+
|
|
929
|
+
_See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.11.3/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js)_
|
|
930
|
+
|
|
785
931
|
## `sf simply apex execute`
|
|
786
932
|
|
|
787
933
|
Execute anonymous Apex code.
|
|
@@ -815,7 +961,7 @@ FLAG DESCRIPTIONS
|
|
|
815
961
|
The path to the local .apex file containing the anonymous Apex code to execute.
|
|
816
962
|
```
|
|
817
963
|
|
|
818
|
-
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
964
|
+
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.2/packages/simply-apex/lib/commands/simply/apex/execute.js)_
|
|
819
965
|
|
|
820
966
|
## `sf simply apex logs purge`
|
|
821
967
|
|
|
@@ -871,7 +1017,7 @@ FLAG DESCRIPTIONS
|
|
|
871
1017
|
elapses, then throws.
|
|
872
1018
|
```
|
|
873
1019
|
|
|
874
|
-
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
1020
|
+
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.2/packages/simply-apex/lib/commands/simply/apex/logs/purge.js)_
|
|
875
1021
|
|
|
876
1022
|
## `sf simply apex test-suite generate`
|
|
877
1023
|
|
|
@@ -919,7 +1065,7 @@ FLAG DESCRIPTIONS
|
|
|
919
1065
|
pass that directory explicitly, e.g. force-app/main/default/testSuites.
|
|
920
1066
|
```
|
|
921
1067
|
|
|
922
|
-
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
1068
|
+
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.2/packages/simply-apex/lib/commands/simply/apex/test-suite/generate.js)_
|
|
923
1069
|
|
|
924
1070
|
## `sf simply apex trace setup`
|
|
925
1071
|
|
|
@@ -979,7 +1125,7 @@ FLAG DESCRIPTIONS
|
|
|
979
1125
|
Defaults to the current date/time.
|
|
980
1126
|
```
|
|
981
1127
|
|
|
982
|
-
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
1128
|
+
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.2/packages/simply-apex/lib/commands/simply/apex/trace/setup.js)_
|
|
983
1129
|
|
|
984
1130
|
## `sf simply apex trace silence`
|
|
985
1131
|
|
|
@@ -1043,7 +1189,7 @@ FLAG DESCRIPTIONS
|
|
|
1043
1189
|
Adds di_Binding, di_Module, di_PlatformCache, and di_Injector to the classes to silence.
|
|
1044
1190
|
```
|
|
1045
1191
|
|
|
1046
|
-
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.
|
|
1192
|
+
_See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.2/packages/simply-apex/lib/commands/simply/apex/trace/silence.js)_
|
|
1047
1193
|
|
|
1048
1194
|
## `sf simply community publish`
|
|
1049
1195
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply",
|
|
3
3
|
"description": "Salesforce CLI Plugins created by @SimplySF",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.4.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-node",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-node/issues",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@oclif/core": "^4.11.2",
|
|
78
|
-
"@simplysf/simply-aep": "^0.
|
|
78
|
+
"@simplysf/simply-aep": "^0.13.0",
|
|
79
79
|
"@simplysf/simply-apex": "^1.8.2",
|
|
80
80
|
"@simplysf/simply-community": "^0.6.5",
|
|
81
81
|
"@simplysf/simply-data": "^2.4.4",
|
|
@@ -174,5 +174,5 @@
|
|
|
174
174
|
"output": []
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
"gitHead": "
|
|
177
|
+
"gitHead": "7f496b64726ad7a7ed93b350bd419dc68cc87898"
|
|
178
178
|
}
|