@simplysf/simply 6.3.0 → 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.
Files changed (2) hide show
  1. package/README.md +62 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -33,6 +33,7 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
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
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)
36
37
  - [`sf simply aep at4dx platform-event-subscription validate`](#sf-simply-aep-at4dx-platform-event-subscription-validate)
37
38
  - [`sf simply apex execute`](#sf-simply-apex-execute)
38
39
  - [`sf simply apex logs purge`](#sf-simply-apex-logs-purge)
@@ -822,6 +823,62 @@ EXAMPLES
822
823
 
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)_
824
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
+
825
882
  ## `sf simply aep at4dx platform-event-subscription validate`
826
883
 
827
884
  Validate the AT4DX Platform Event Distributor subscriptions configured in an org or local source, failing when a wiring problem is found.
@@ -904,7 +961,7 @@ FLAG DESCRIPTIONS
904
961
  The path to the local .apex file containing the anonymous Apex code to execute.
905
962
  ```
906
963
 
907
- _See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.0/packages/simply-apex/lib/commands/simply/apex/execute.js)_
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)_
908
965
 
909
966
  ## `sf simply apex logs purge`
910
967
 
@@ -960,7 +1017,7 @@ FLAG DESCRIPTIONS
960
1017
  elapses, then throws.
961
1018
  ```
962
1019
 
963
- _See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.0/packages/simply-apex/lib/commands/simply/apex/logs/purge.js)_
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)_
964
1021
 
965
1022
  ## `sf simply apex test-suite generate`
966
1023
 
@@ -1008,7 +1065,7 @@ FLAG DESCRIPTIONS
1008
1065
  pass that directory explicitly, e.g. force-app/main/default/testSuites.
1009
1066
  ```
1010
1067
 
1011
- _See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.0/packages/simply-apex/lib/commands/simply/apex/test-suite/generate.js)_
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)_
1012
1069
 
1013
1070
  ## `sf simply apex trace setup`
1014
1071
 
@@ -1068,7 +1125,7 @@ FLAG DESCRIPTIONS
1068
1125
  Defaults to the current date/time.
1069
1126
  ```
1070
1127
 
1071
- _See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.0/packages/simply-apex/lib/commands/simply/apex/trace/setup.js)_
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)_
1072
1129
 
1073
1130
  ## `sf simply apex trace silence`
1074
1131
 
@@ -1132,7 +1189,7 @@ FLAG DESCRIPTIONS
1132
1189
  Adds di_Binding, di_Module, di_PlatformCache, and di_Injector to the classes to silence.
1133
1190
  ```
1134
1191
 
1135
- _See code: [@simplysf/simply-apex](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-apex@1.8.0/packages/simply-apex/lib/commands/simply/apex/trace/silence.js)_
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)_
1136
1193
 
1137
1194
  ## `sf simply community publish`
1138
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.3.0",
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.12.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": "35ce5dcb8e289fe36a5deb87cfd0d4f19d2e3374"
177
+ "gitHead": "7f496b64726ad7a7ed93b350bd419dc68cc87898"
178
178
  }