@simplysf/simply-aep 0.14.0 → 0.14.1

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
@@ -767,7 +767,7 @@ Create a new AT4DX Platform Event Distributor subscription (PlatformEvents_Subsc
767
767
  ```
768
768
  USAGE
769
769
  $ sf simply aep at4dx platform-event-subscription create -n <value> --event-bus <value> --consumer <value> --matcher-rule
770
- MatchEventBus|MatchCategory|MatchEvent|MatchCategoryAndEvent [--json] [--flags-dir <value>] [-d <value>] [-o
770
+ MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName [--json] [--flags-dir <value>] [-d <value>] [-o
771
771
  <value>] [--api-version <value>] [--wait <value>] [--label <value>] [--event-category <value>] [--event-name
772
772
  <value>] [--active] [--synchronous] [--force]
773
773
 
@@ -785,17 +785,17 @@ FLAGS
785
785
  org-wide across every subscription.
786
786
  --event-bus=<value> (required) EventBus__c — the platform event object API name this subscription registers
787
787
  against, e.g. My_Event__e.
788
- --event-category=<value> EventCategory__c. Required when --matcher-rule is MatchCategory or MatchCategoryAndEvent
788
+ --event-category=<value> EventCategory__c. Required when --matcher-rule is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName
789
789
  — leaving it blank for those raises matcher-rule-missing-field.
790
- --event-name=<value> Event__c. Required when --matcher-rule is MatchEvent or MatchCategoryAndEvent — leaving
790
+ --event-name=<value> Event__c. Required when --matcher-rule is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving
791
791
  it blank for those raises matcher-rule-missing-field.
792
792
  --force Write (and deploy) even if validation finds an error-severity issue. Validation still
793
793
  runs and its issues are still printed and returned.
794
794
  --label=<value> The record's label. Defaults to --developer-name. Must be 40 characters or fewer.
795
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, MatchCategory,
797
- MatchEvent, MatchCategoryAndEvent.
798
- <options: MatchEventBus|MatchCategory|MatchEvent|MatchCategoryAndEvent>
796
+ matcher dereferences for this subscription. One of MatchEventBus, MatchEventBusAndCategory,
797
+ MatchEventBusAndEventName, MatchEventBusAndCategoryAndEventName.
798
+ <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName>
799
799
  --[no-]synchronous Execute_Synchronous__c. Defaults to false. Pass --synchronous to have the distributor
800
800
  invoke this consumer synchronously.
801
801
  --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
@@ -818,14 +818,14 @@ DESCRIPTION
818
818
  --matcher-rule controls which of --event-category/--event-name the distributor's matcher dereferences for this
819
819
  subscription: MatchEventBus dereferences neither (the whole bus matches, once a category or event name gets it past
820
820
  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), MatchCategory requires --event-category, MatchEvent requires
822
- --event-name, and MatchCategoryAndEvent requires both. Leaving the field a MatcherRule needs blank is exactly the
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
823
  matcher-rule-missing-field hazard validation catches — see that command's description for why it matters at runtime.
824
824
 
825
825
  EXAMPLES
826
- $ 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 MatchCategory --event-category Finance
826
+ $ 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
827
827
 
828
- $ 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 MatchCategoryAndEvent --event-category Finance --event-name AccountUpdated
828
+ $ 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
829
  ```
830
830
 
831
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)_
@@ -932,7 +932,7 @@ Update an existing AT4DX Platform Event Distributor subscription (PlatformEvents
932
932
  USAGE
933
933
  $ sf simply aep at4dx platform-event-subscription update -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o <value>] [--api-version <value>]
934
934
  [--wait <value>] [--label <value>] [--event-bus <value>] [--consumer <value>] [--matcher-rule
935
- MatchEventBus|MatchCategory|MatchEvent|MatchCategoryAndEvent] [--event-category <value>] [--event-name <value>]
935
+ MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName] [--event-category <value>] [--event-name <value>]
936
936
  [--active] [--synchronous] [--force]
937
937
 
938
938
  FLAGS
@@ -946,17 +946,17 @@ FLAGS
946
946
  subscription.
947
947
  --event-bus=<value> EventBus__c. If not given, the existing value is kept.
948
948
  --event-category=<value> EventCategory__c. If not given, the existing value is kept. Required when the record's
949
- MatcherRule__c is MatchCategory or MatchCategoryAndEvent — leaving it blank for those
949
+ MatcherRule__c is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName — leaving it blank for those
950
950
  raises matcher-rule-missing-field.
951
951
  --event-name=<value> Event__c. If not given, the existing value is kept. Required when the record's
952
- MatcherRule__c is MatchEvent or MatchCategoryAndEvent — leaving it blank for those
952
+ MatcherRule__c is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving it blank for those
953
953
  raises matcher-rule-missing-field.
954
954
  --force Write (and deploy) even if validation finds an error-severity issue. Validation still
955
955
  runs and its issues are still printed and returned.
956
956
  --label=<value> The record's label. If not given, the existing label is kept.
957
957
  --matcher-rule=<option> MatcherRule__c — which of --event-category/--event-name the distributor's matcher
958
958
  dereferences for this subscription. If not given, the existing value is kept.
959
- <options: MatchEventBus|MatchCategory|MatchEvent|MatchCategoryAndEvent>
959
+ <options: MatchEventBus|MatchEventBusAndCategory|MatchEventBusAndEventName|MatchEventBusAndCategoryAndEventName>
960
960
  --[no-]synchronous Execute_Synchronous__c. If not given, the existing value is kept. Pass --no-synchronous
961
961
  to have the distributor invoke this consumer asynchronously.
962
962
  --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
@@ -6,7 +6,7 @@ Create a new AT4DX Platform Event Distributor subscription (PlatformEvents_Subsc
6
6
 
7
7
  Generates a `PlatformEvents_Subscription.<DeveloperName>.md-meta.xml` file from the given flags and writes it under --source-dir, deploys it to --target-org, or both. Validates the resulting record — alongside everything else already in scope — with the same rules `simply aep at4dx platform-event-subscription validate` uses, and refuses to write if that introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is required; both may be given at once (write to source and deploy it live in the same run). Given --target-org alone, the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
8
8
 
9
- --matcher-rule controls which of --event-category/--event-name the distributor's matcher dereferences for this subscription: MatchEventBus dereferences neither (the whole bus matches, once a category or event name gets it past the distributor's pre-filter — see `simply aep at4dx platform-event-subscription validate`'s unreachable-subscription rule for why at least one should usually be set anyway), MatchCategory requires --event-category, MatchEvent requires --event-name, and MatchCategoryAndEvent requires both. Leaving the field a MatcherRule needs blank is exactly the matcher-rule-missing-field hazard validation catches — see that command's description for why it matters at runtime.
9
+ --matcher-rule controls which of --event-category/--event-name the distributor's matcher dereferences for this subscription: MatchEventBus dereferences neither (the whole bus matches, once a category or event name gets it past the distributor's pre-filter — see `simply aep at4dx platform-event-subscription validate`'s unreachable-subscription rule for why at least one should usually be set anyway), MatchEventBusAndCategory requires --event-category, MatchEventBusAndEventName requires --event-name, and MatchEventBusAndCategoryAndEventName requires both. Leaving the field a MatcherRule needs blank is exactly the matcher-rule-missing-field hazard validation catches — see that command's description for why it matters at runtime.
10
10
 
11
11
  # flags.source-dir.summary
12
12
 
@@ -38,15 +38,15 @@ Consumer__c — the IEventsConsumer-implementing Apex class name. Unique org-wid
38
38
 
39
39
  # flags.matcher-rule.summary
40
40
 
41
- MatcherRule__c — which of --event-category/--event-name the distributor's matcher dereferences for this subscription. One of MatchEventBus, MatchCategory, MatchEvent, MatchCategoryAndEvent.
41
+ MatcherRule__c — which of --event-category/--event-name the distributor's matcher dereferences for this subscription. One of MatchEventBus, MatchEventBusAndCategory, MatchEventBusAndEventName, MatchEventBusAndCategoryAndEventName.
42
42
 
43
43
  # flags.event-category.summary
44
44
 
45
- EventCategory__c. Required when --matcher-rule is MatchCategory or MatchCategoryAndEvent — leaving it blank for those raises matcher-rule-missing-field.
45
+ EventCategory__c. Required when --matcher-rule is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName — leaving it blank for those raises matcher-rule-missing-field.
46
46
 
47
47
  # flags.event-name.summary
48
48
 
49
- Event__c. Required when --matcher-rule is MatchEvent or MatchCategoryAndEvent — leaving it blank for those raises matcher-rule-missing-field.
49
+ Event__c. Required when --matcher-rule is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving it blank for those raises matcher-rule-missing-field.
50
50
 
51
51
  # flags.active.summary
52
52
 
@@ -62,9 +62,9 @@ Write (and deploy) even if validation finds an error-severity issue. Validation
62
62
 
63
63
  # examples
64
64
 
65
- - <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchCategory --event-category Finance
65
+ - <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchEventBusAndCategory --event-category Finance
66
66
 
67
- - <%= config.bin %> <%= command.id %> --target-org myOrg --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchCategoryAndEvent --event-category Finance --event-name AccountUpdated
67
+ - <%= config.bin %> <%= command.id %> --target-org myOrg --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchEventBusAndCategoryAndEventName --event-category Finance --event-name AccountUpdated
68
68
 
69
69
  # error.sourceDirOrTargetOrgRequired
70
70
 
@@ -44,11 +44,11 @@ MatcherRule__c — which of --event-category/--event-name the distributor's matc
44
44
 
45
45
  # flags.event-category.summary
46
46
 
47
- EventCategory__c. If not given, the existing value is kept. Required when the record's MatcherRule__c is MatchCategory or MatchCategoryAndEvent — leaving it blank for those raises matcher-rule-missing-field.
47
+ EventCategory__c. If not given, the existing value is kept. Required when the record's MatcherRule__c is MatchEventBusAndCategory or MatchEventBusAndCategoryAndEventName — leaving it blank for those raises matcher-rule-missing-field.
48
48
 
49
49
  # flags.event-name.summary
50
50
 
51
- Event__c. If not given, the existing value is kept. Required when the record's MatcherRule__c is MatchEvent or MatchCategoryAndEvent — leaving it blank for those raises matcher-rule-missing-field.
51
+ Event__c. If not given, the existing value is kept. Required when the record's MatcherRule__c is MatchEventBusAndEventName or MatchEventBusAndCategoryAndEventName — leaving it blank for those raises matcher-rule-missing-field.
52
52
 
53
53
  # flags.active.summary
54
54
 
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.0",
4
+ "version": "0.14.1",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-node",
7
7
  "bugs": "https://github.com/SimplySF/simply-node/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.0",
63
+ "@simplysf/simply-aep-core": "^0.13.1",
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": "3f3f4ccb39cef4e5ca2748d823305dd099de8a4d"
200
+ "gitHead": "4deb3488177618616e1c1eb694a3ba2707358351"
201
201
  }