@simplysf/simply-aep 0.14.3 → 0.15.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @simplysf/simply-aep
2
2
 
3
- [![NPM](https://img.shields.io/npm/v/@simplysf/simply-aep?label=@simplysf/simply-aep)](https://npmjs.com/@simplysf/simply-aep) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-aep.svg)](https://npmjs.com/@simplysf/simply-aep) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/SimplySF/simply-node/main/LICENSE.txt)
3
+ [![NPM](https://img.shields.io/npm/v/@simplysf/simply-aep?label=@simplysf/simply-aep)](https://npmjs.com/@simplysf/simply-aep) [![Downloads/week](https://img.shields.io/npm/dw/@simplysf/simply-aep.svg)](https://npmjs.com/@simplysf/simply-aep) [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://raw.githubusercontent.com/SimplySF/simply-plugins/main/LICENSE.txt)
4
4
 
5
5
  Commands for [Apex Enterprise Patterns](https://github.com/apex-enterprise-patterns) tooling (fflib, force-di, AT4DX).
6
6
 
@@ -12,11 +12,11 @@ sf plugins install @simplysf/simply-aep
12
12
 
13
13
  ## Issues
14
14
 
15
- Please report any issues at https://github.com/SimplySF/simply-node/issues
15
+ Please report any issues at https://github.com/SimplySF/simply-plugins/issues
16
16
 
17
17
  ## Contributing
18
18
 
19
- This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply-node) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply-node/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply-node/blob/main/CODE_OF_CONDUCT.md).
19
+ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/simply-plugins) monorepo. See the repo's [CONTRIBUTING.md](https://github.com/SimplySF/simply-plugins/blob/main/CONTRIBUTING.md) for the repo structure, how to set up and build the project, our commit conventions, and how to submit a pull request. Please also read our [Code of Conduct](https://github.com/SimplySF/simply-plugins/blob/main/CODE_OF_CONDUCT.md).
20
20
 
21
21
  ## Commands
22
22
 
@@ -117,7 +117,7 @@ EXAMPLES
117
117
  $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type unit-of-work --developer-name Account_UOW --sobject Account --sequence 10
118
118
  ```
119
119
 
120
- _See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
120
+ _See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
121
121
 
122
122
  ## `sf simply aep at4dx binding list`
123
123
 
@@ -173,7 +173,7 @@ FLAG DESCRIPTIONS
173
173
  Comma-separated list of binding types to include. If not specified, all four are included.
174
174
  ```
175
175
 
176
- _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
176
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
177
177
 
178
178
  ## `sf simply aep at4dx binding update`
179
179
 
@@ -246,7 +246,7 @@ EXAMPLES
246
246
  $ sf simply aep at4dx binding update --target-org myOrg --type unit-of-work --developer-name Account_UOW --sequence 20
247
247
  ```
248
248
 
249
- _See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
249
+ _See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
250
250
 
251
251
  ## `sf simply aep at4dx binding validate`
252
252
 
@@ -279,8 +279,10 @@ DESCRIPTION
279
279
  binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a
280
280
  standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain
281
281
  records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two
282
- UnitOfWork records sharing a `BindingSequence__c`, and the same DeveloperName defined more than once within one
283
- binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
282
+ UnitOfWork records sharing a `BindingSequence__c`, the same DeveloperName defined more than once within one binding
283
+ type, and — when `Domain` is among the requested types — a `Domain` binding whose SObject has no Active Apex trigger
284
+ wiring it up via `fflib_SObjectDomain.triggerHandler(...)`. Exactly one of `--target-org` or `--source-dir` must be
285
+ specified.
284
286
 
285
287
  Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
286
288
  command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
@@ -302,7 +304,7 @@ FLAG DESCRIPTIONS
302
304
  Comma-separated list of binding types to include. If not specified, all four are included.
303
305
  ```
304
306
 
305
- _See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
307
+ _See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
306
308
 
307
309
  ## `sf simply aep at4dx domain-process-binding create`
308
310
 
@@ -383,7 +385,7 @@ EXAMPLES
383
385
  $ sf simply aep at4dx domain-process-binding create --source-dir sfdx-source/core --developer-name ServiceResource_Before_Update_Sync --sobject ServiceResource --sobject-alternate --process-context TriggerExecution --trigger-operation Before_Update --type Action --class-to-inject ServiceResourceSyncAction --order 10
384
386
  ```
385
387
 
386
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
388
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
387
389
 
388
390
  ## `sf simply aep at4dx domain-process-binding list`
389
391
 
@@ -429,7 +431,7 @@ EXAMPLES
429
431
  $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
430
432
  ```
431
433
 
432
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
434
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
433
435
 
434
436
  ## `sf simply aep at4dx domain-process-binding update`
435
437
 
@@ -508,7 +510,7 @@ EXAMPLES
508
510
  $ sf simply aep at4dx domain-process-binding update --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
509
511
  ```
510
512
 
511
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/update.js)_
513
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/update.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/update.js)_
512
514
 
513
515
  ## `sf simply aep at4dx domain-process-binding validate`
514
516
 
@@ -561,7 +563,7 @@ EXAMPLES
561
563
  $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
562
564
  ```
563
565
 
564
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
566
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
565
567
 
566
568
  ## `sf simply aep at4dx field-set-inclusion create`
567
569
 
@@ -619,7 +621,7 @@ EXAMPLES
619
621
  $ sf simply aep at4dx field-set-inclusion create --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
620
622
  ```
621
623
 
622
- _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
624
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/create.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
623
625
 
624
626
  ## `sf simply aep at4dx field-set-inclusion list`
625
627
 
@@ -657,7 +659,7 @@ EXAMPLES
657
659
  $ sf simply aep at4dx field-set-inclusion list --target-org myOrg --json
658
660
  ```
659
661
 
660
- _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
662
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/list.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
661
663
 
662
664
  ## `sf simply aep at4dx field-set-inclusion update`
663
665
 
@@ -714,7 +716,7 @@ EXAMPLES
714
716
  $ sf simply aep at4dx field-set-inclusion update --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
715
717
  ```
716
718
 
717
- _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
719
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/update.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
718
720
 
719
721
  ## `sf simply aep at4dx field-set-inclusion validate`
720
722
 
@@ -758,7 +760,7 @@ EXAMPLES
758
760
  $ sf simply aep at4dx field-set-inclusion validate --target-org myOrg --json
759
761
  ```
760
762
 
761
- _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
763
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
762
764
 
763
765
  ## `sf simply aep at4dx platform-event-subscription create`
764
766
 
@@ -767,38 +769,63 @@ Create a new AT4DX Platform Event Distributor subscription (PlatformEvents_Subsc
767
769
  ```
768
770
  USAGE
769
771
  $ sf simply aep at4dx platform-event-subscription create -n <value> --event-bus <value> --consumer <value> --matcher-rule
770
- MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName [--json] [--flags-dir <value>] [-d <value>] [-o
771
- <value>] [--api-version <value>] [--wait <value>] [--label <value>] [--event-category <value>] [--event-name
772
- <value>] [--active] [--synchronous] [--force]
772
+ MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName [--json]
773
+ [--flags-dir <value>] [-d <value>] [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>]
774
+ [--event-category <value>] [--event-name <value>] [--active] [--synchronous] [--force]
773
775
 
774
776
  FLAGS
775
- -d, --source-dir=<value> The package directory to create the platform event subscription's .md-meta.xml under.
776
- Created if the customMetadata folder doesn't exist yet.
777
- -n, --developer-name=<value> (required) The record's DeveloperName. Must start with a letter, contain only letters,
778
- numbers, and single underscores, not end with an underscore, and be 40 characters or
779
- fewer.
780
- -o, --target-org=<value> Deploy the generated platform event subscription to this org after writing it.
781
- --[no-]active IsActive__c. Defaults to true, matching the Custom Metadata Type's own default. Pass
782
- --no-active to create it inactive.
783
- --api-version=<value> Override the api version used for api requests made by this command
784
- --consumer=<value> (required) Consumer__c — the IEventsConsumer-implementing Apex class name. Unique
785
- org-wide across every subscription.
786
- --event-bus=<value> (required) EventBus__c — the platform event object API name this subscription registers
787
- against, e.g. My_Event__e.
788
- --event-category=<value> EventCategory__c. Required when --matcher-rule is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName
789
- — leaving it blank for those raises matcher-rule-missing-field.
790
- --event-name=<value> Event__c. Required when --matcher-rule is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving
791
- it blank for those raises matcher-rule-missing-field.
792
- --force Write (and deploy) even if validation finds an error-severity issue. Validation still
793
- runs and its issues are still printed and returned.
794
- --label=<value> The record's label. Defaults to --developer-name. Must be 40 characters or fewer.
795
- --matcher-rule=<option> (required) MatcherRule__c — which of --event-category/--event-name the distributor's
796
- matcher dereferences for this subscription. One of MatchEventBus, MatchEventBusAndCategory,
797
- MatchEventBusAndEventName, MatchEventBusAndCategoryAndEventName.
798
- <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName>
799
- --[no-]synchronous Execute_Synchronous__c. Defaults to false. Pass --synchronous to have the distributor
800
- invoke this consumer synchronously.
801
- --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
777
+ -d, --source-dir=<value>
778
+ The package directory to create the platform event subscription's .md-meta.xml under. Created if the customMetadata
779
+ folder doesn't exist yet.
780
+
781
+ -n, --developer-name=<value>
782
+ (required) The record's DeveloperName. Must start with a letter, contain only letters, numbers, and single
783
+ underscores, not end with an underscore, and be 40 characters or fewer.
784
+
785
+ -o, --target-org=<value>
786
+ Deploy the generated platform event subscription to this org after writing it.
787
+
788
+ --[no-]active
789
+ IsActive__c. Defaults to true, matching the Custom Metadata Type's own default. Pass --no-active to create it
790
+ inactive.
791
+
792
+ --api-version=<value>
793
+ Override the api version used for api requests made by this command
794
+
795
+ --consumer=<value>
796
+ (required) Consumer__c — the IEventsConsumer-implementing Apex class name. Unique org-wide across every
797
+ subscription.
798
+
799
+ --event-bus=<value>
800
+ (required) EventBus__c — the platform event object API name this subscription registers against, e.g. My_Event__e.
801
+
802
+ --event-category=<value>
803
+ EventCategory__c. Required when --matcher-rule is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName —
804
+ leaving it blank for those raises matcher-rule-missing-field.
805
+
806
+ --event-name=<value>
807
+ Event__c. Required when --matcher-rule is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName —
808
+ leaving it blank for those raises matcher-rule-missing-field.
809
+
810
+ --force
811
+ Write (and deploy) even if validation finds an error-severity issue. Validation still runs and its issues are still
812
+ printed and returned.
813
+
814
+ --label=<value>
815
+ The record's label. Defaults to --developer-name. Must be 40 characters or fewer.
816
+
817
+ --matcher-rule=<option>
818
+ (required) MatcherRule__c — which of --event-category/--event-name the distributor's matcher dereferences for this
819
+ subscription. One of MatchEventBus, MatchEventBusAndCategory, MatchEventBusAndEventName,
820
+ MatchEventBusAndCategoryAndEventName.
821
+ <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName>
822
+
823
+ --[no-]synchronous
824
+ Execute_Synchronous__c. Defaults to false. Pass --synchronous to have the distributor invoke this consumer
825
+ synchronously.
826
+
827
+ --wait=<value>
828
+ [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
802
829
 
803
830
  GLOBAL FLAGS
804
831
  --flags-dir=<value> Import flag values from a directory.
@@ -818,9 +845,10 @@ DESCRIPTION
818
845
  --matcher-rule controls which of --event-category/--event-name the distributor's matcher dereferences for this
819
846
  subscription: MatchEventBus dereferences neither (the whole bus matches, once a category or event name gets it past
820
847
  the distributor's pre-filter — see `simply aep at4dx platform-event-subscription validate`'s unreachable-subscription
821
- rule for why at least one should usually be set anyway), MatchEventBusAndCategory requires --event-category, MatchEventBusAndEventName requires
822
- --event-name, and MatchEventBusAndCategoryAndEventName requires both. Leaving the field a MatcherRule needs blank is exactly the
823
- matcher-rule-missing-field hazard validation catches — see that command's description for why it matters at runtime.
848
+ rule for why at least one should usually be set anyway), MatchEventBusAndCategory requires --event-category,
849
+ MatchEventBusAndEventName requires --event-name, and MatchEventBusAndCategoryAndEventName requires both. Leaving the
850
+ field a MatcherRule needs blank is exactly the matcher-rule-missing-field hazard validation catches — see that
851
+ command's description for why it matters at runtime.
824
852
 
825
853
  EXAMPLES
826
854
  $ sf simply aep at4dx platform-event-subscription create --source-dir sfdx-source/core --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchEventBusAndCategory --event-category Finance
@@ -828,7 +856,7 @@ EXAMPLES
828
856
  $ sf simply aep at4dx platform-event-subscription create --target-org myOrg --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchEventBusAndCategoryAndEventName --event-category Finance --event-name AccountUpdated
829
857
  ```
830
858
 
831
- _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/create.js)_
859
+ _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/create.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/create.js)_
832
860
 
833
861
  ## `sf simply aep at4dx platform-event-subscription list`
834
862
 
@@ -866,7 +894,7 @@ EXAMPLES
866
894
  $ sf simply aep at4dx platform-event-subscription list --target-org myOrg --json
867
895
  ```
868
896
 
869
- _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/list.js)_
897
+ _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/list.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/list.js)_
870
898
 
871
899
  ## `sf simply aep at4dx platform-event-subscription simulate`
872
900
 
@@ -922,7 +950,7 @@ EXAMPLES
922
950
  $ sf simply aep at4dx platform-event-subscription simulate --target-org myOrg --event-bus Account_Change__e --json
923
951
  ```
924
952
 
925
- _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js)_
953
+ _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js)_
926
954
 
927
955
  ## `sf simply aep at4dx platform-event-subscription update`
928
956
 
@@ -932,8 +960,8 @@ Update an existing AT4DX Platform Event Distributor subscription (PlatformEvents
932
960
  USAGE
933
961
  $ sf simply aep at4dx platform-event-subscription update -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o <value>] [--api-version <value>]
934
962
  [--wait <value>] [--label <value>] [--event-bus <value>] [--consumer <value>] [--matcher-rule
935
- MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName] [--event-category <value>] [--event-name <value>]
936
- [--active] [--synchronous] [--force]
963
+ MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName]
964
+ [--event-category <value>] [--event-name <value>] [--active] [--synchronous] [--force]
937
965
 
938
966
  FLAGS
939
967
  -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
@@ -946,17 +974,18 @@ FLAGS
946
974
  subscription.
947
975
  --event-bus=<value> EventBus__c. If not given, the existing value is kept.
948
976
  --event-category=<value> EventCategory__c. If not given, the existing value is kept. Required when the record's
949
- MatcherRule__c is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName — leaving it blank for those
950
- raises matcher-rule-missing-field.
977
+ MatcherRule__c is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName —
978
+ leaving it blank for those raises matcher-rule-missing-field.
951
979
  --event-name=<value> Event__c. If not given, the existing value is kept. Required when the record's
952
- MatcherRule__c is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving it blank for those
953
- raises matcher-rule-missing-field.
980
+ MatcherRule__c is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName —
981
+ leaving it blank for those raises matcher-rule-missing-field.
954
982
  --force Write (and deploy) even if validation finds an error-severity issue. Validation still
955
983
  runs and its issues are still printed and returned.
956
984
  --label=<value> The record's label. If not given, the existing label is kept.
957
985
  --matcher-rule=<option> MatcherRule__c — which of --event-category/--event-name the distributor's matcher
958
986
  dereferences for this subscription. If not given, the existing value is kept.
959
- <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName>
987
+ <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBus
988
+ AndCategoryAndEventName>
960
989
  --[no-]synchronous Execute_Synchronous__c. If not given, the existing value is kept. Pass --no-synchronous
961
990
  to have the distributor invoke this consumer asynchronously.
962
991
  --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
@@ -990,7 +1019,7 @@ EXAMPLES
990
1019
  $ sf simply aep at4dx platform-event-subscription update --target-org myOrg --developer-name Account_Change_Subscriber --consumer AccountChangeConsumerV2
991
1020
  ```
992
1021
 
993
- _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/update.js)_
1022
+ _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/update.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/update.js)_
994
1023
 
995
1024
  ## `sf simply aep at4dx platform-event-subscription validate`
996
1025
 
@@ -1039,5 +1068,5 @@ EXAMPLES
1039
1068
  $ sf simply aep at4dx platform-event-subscription validate --target-org myOrg --json
1040
1069
  ```
1041
1070
 
1042
- _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.12.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js)_
1071
+ _See code: [lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.14.4/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js)_
1043
1072
  <!-- commandsstop -->
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Messages } from '@salesforce/core';
17
17
  import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
18
- import { ALL_BINDING_TYPES, BINDING_TYPE_BY_FLAG, scanLocalBindings, scanOrgBindings, validateBindings, } from '@simplysf/simply-aep-core';
18
+ import { ALL_BINDING_TYPES, BINDING_TYPE_BY_FLAG, scanLocalApexTriggers, scanLocalBindings, scanOrgApexTriggers, scanOrgBindings, validateBindings, } from '@simplysf/simply-aep-core';
19
19
  Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
20
  const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.binding.validate');
21
21
  const BINDING_TYPE_FLAG_OPTIONS = ['service', 'selector', 'domain', 'unit-of-work'];
@@ -39,6 +39,30 @@ const ISSUE_TABLE_COLUMNS = [
39
39
  { key: 'source', name: 'SOURCE' },
40
40
  { key: 'message', name: 'MESSAGE' },
41
41
  ];
42
+ /** `missing-domain-trigger` is the only rule that consumes a trigger scan, so skip it entirely when `Domain` isn't among the requested types. */
43
+ async function scanOrgTriggersIfNeeded(requestedTypes, connection) {
44
+ if (!requestedTypes.includes('Domain')) {
45
+ return undefined;
46
+ }
47
+ try {
48
+ return await scanOrgApexTriggers(connection);
49
+ }
50
+ catch (error) {
51
+ throw messages.createError('error.orgQueryFailed', [error.message]);
52
+ }
53
+ }
54
+ /** Local-source counterpart of {@link scanOrgTriggersIfNeeded}. */
55
+ function scanLocalTriggersIfNeeded(requestedTypes, sourceDirs) {
56
+ if (!requestedTypes.includes('Domain')) {
57
+ return undefined;
58
+ }
59
+ try {
60
+ return scanLocalApexTriggers(sourceDirs);
61
+ }
62
+ catch (error) {
63
+ throw messages.createError('error.localScanFailed', [error.message]);
64
+ }
65
+ }
42
66
  /**
43
67
  * Validates the AT4DX Application Factory bindings (Service/Selector/Domain/UnitOfWork) configured in a
44
68
  * target org or local DX source — wiring problems that are invisible to `binding list` — and fails
@@ -101,11 +125,12 @@ export default class At4dxBindingValidate extends SfCommand {
101
125
  if (scanResult.missingTypes.length === requestedTypes.length) {
102
126
  throw messages.createError('error.at4dxNotDetected');
103
127
  }
128
+ const triggers = await scanOrgTriggersIfNeeded(requestedTypes, connection);
104
129
  bindingCount = scanResult.records.length;
105
130
  issues = validateBindings(scanResult.records, {
106
131
  malformed: scanResult.malformed,
107
132
  ambiguous: scanResult.ambiguous,
108
- });
133
+ }, triggers);
109
134
  }
110
135
  else {
111
136
  source = 'local';
@@ -122,11 +147,12 @@ export default class At4dxBindingValidate extends SfCommand {
122
147
  if (scanResult.records.length === 0 && scanResult.malformed.length === 0) {
123
148
  throw messages.createError('error.at4dxNotDetected');
124
149
  }
150
+ const triggers = scanLocalTriggersIfNeeded(requestedTypes, sourceDirs);
125
151
  bindingCount = scanResult.records.length;
126
152
  issues = validateBindings(scanResult.records, {
127
153
  malformed: scanResult.malformed,
128
154
  ambiguous: scanResult.ambiguous,
129
- });
155
+ }, triggers);
130
156
  }
131
157
  if (issues.length > 0) {
132
158
  this.table({ data: issues.map(toDisplayRow), columns: ISSUE_TABLE_COLUMNS });
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/aep/at4dx/binding/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GAKjB,MAAM,2BAA2B,CAAC;AAEnC,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,sBAAsB,EAAE,mCAAmC,CAAC,CAAC;AAEpG,MAAM,yBAAyB,GAAsB,CAAC,SAAS,EAAE,UAAU,EAA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U,CAAC,OAAO,EAClB;gBACE,SAAS,EAAE,UAAU,CAAC,SAAS;gBAC/B,SAAS,EAAE,UAAU,CAAC,SAAS;aAChC,EACD,QAAQ,CACT,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;QAC/E,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACvE,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC,EAAE,CAAC;YACvD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IAC1C,CAAC"}
@@ -4,7 +4,7 @@ Validate the AT4DX Application Factory bindings configured in an org or local so
4
4
 
5
5
  # description
6
6
 
7
- Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two UnitOfWork records sharing a `BindingSequence__c`, and the same DeveloperName defined more than once within one binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
7
+ Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two UnitOfWork records sharing a `BindingSequence__c`, the same DeveloperName defined more than once within one binding type, and — when `Domain` is among the requested types — a `Domain` binding whose SObject has no Active Apex trigger wiring it up via `fflib_SObjectDomain.triggerHandler(...)`. Exactly one of `--target-org` or `--source-dir` must be specified.
8
8
 
9
9
  Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
10
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply-aep",
3
3
  "description": "Commands for Apex Enterprise Patterns tooling (fflib, force-di, AT4DX)",
4
- "version": "0.14.3",
4
+ "version": "0.15.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -60,7 +60,7 @@
60
60
  "@salesforce/core": "^8.30.0",
61
61
  "@salesforce/kit": "^3.2.6",
62
62
  "@salesforce/sf-plugins-core": "^12.2.16",
63
- "@simplysf/simply-aep-core": "^0.13.1",
63
+ "@simplysf/simply-aep-core": "^0.14.0",
64
64
  "@simplysf/simply-core": "^1.5.1"
65
65
  },
66
66
  "devDependencies": {
@@ -197,5 +197,5 @@
197
197
  "output": []
198
198
  }
199
199
  },
200
- "gitHead": "5bbe406ea2cb1a4123440ada47d8e728e60f46b6"
200
+ "gitHead": "4f4e402b13588e5daaa096ba00572f8544933a98"
201
201
  }