@simplysf/simply-aep 0.1.0 → 0.3.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 (28) hide show
  1. package/LICENSE.txt +206 -0
  2. package/README.md +188 -82
  3. package/lib/commands/simply/aep/at4dx/domain-process-binding/list.d.ts +22 -0
  4. package/lib/commands/simply/aep/at4dx/domain-process-binding/list.js +131 -0
  5. package/lib/commands/simply/aep/at4dx/domain-process-binding/list.js.map +1 -0
  6. package/lib/common/at4dxDomainProcessBindingTypes.d.ts +55 -0
  7. package/lib/common/at4dxDomainProcessBindingTypes.js +29 -0
  8. package/lib/common/at4dxDomainProcessBindingTypes.js.map +1 -0
  9. package/lib/common/at4dxDomainProcessLocalScan.d.ts +15 -0
  10. package/lib/common/at4dxDomainProcessLocalScan.js +95 -0
  11. package/lib/common/at4dxDomainProcessLocalScan.js.map +1 -0
  12. package/lib/common/at4dxDomainProcessOrgScan.d.ts +16 -0
  13. package/lib/common/at4dxDomainProcessOrgScan.js +78 -0
  14. package/lib/common/at4dxDomainProcessOrgScan.js.map +1 -0
  15. package/lib/common/at4dxDomainProcessResolve.d.ts +17 -0
  16. package/lib/common/at4dxDomainProcessResolve.js +70 -0
  17. package/lib/common/at4dxDomainProcessResolve.js.map +1 -0
  18. package/lib/common/at4dxLocalScan.js +2 -18
  19. package/lib/common/at4dxLocalScan.js.map +1 -1
  20. package/lib/common/customMetadataXml.d.ts +21 -0
  21. package/lib/common/customMetadataXml.js +41 -0
  22. package/lib/common/customMetadataXml.js.map +1 -0
  23. package/lib/index.d.ts +4 -0
  24. package/lib/index.js +4 -0
  25. package/lib/index.js.map +1 -1
  26. package/messages/simply.aep.at4dx.binding.list.md +67 -67
  27. package/messages/simply.aep.at4dx.domain-process-binding.list.md +63 -0
  28. package/package.json +210 -209
package/LICENSE.txt ADDED
@@ -0,0 +1,206 @@
1
+ Apache License Version 2.0
2
+
3
+ Copyright (c) 2026, Clay Chipps.
4
+ All rights reserved.
5
+
6
+ Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ APPENDIX: How to apply the Apache License to your work.
184
+
185
+ To apply the Apache License to your work, attach the following
186
+ boilerplate notice, with the fields enclosed by brackets "{}"
187
+ replaced with your own identifying information. (Don't include
188
+ the brackets!) The text should be enclosed in the appropriate
189
+ comment syntax for the file format. We also recommend that a
190
+ file or class name and description of purpose be included on the
191
+ same "printed page" as the copyright notice for easier
192
+ identification within third-party archives.
193
+
194
+ Copyright {yyyy} {name of copyright owner}
195
+
196
+ Licensed under the Apache License, Version 2.0 (the "License");
197
+ you may not use this file except in compliance with the License.
198
+ You may obtain a copy of the License at
199
+
200
+ http://www.apache.org/licenses/LICENSE-2.0
201
+
202
+ Unless required by applicable law or agreed to in writing, software
203
+ distributed under the License is distributed on an "AS IS" BASIS,
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+ See the License for the specific language governing permissions and
206
+ limitations under the License.
package/README.md CHANGED
@@ -1,82 +1,188 @@
1
- # @simplysf/simply-aep
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)
4
-
5
- Commands for [Apex Enterprise Patterns](https://github.com/apex-enterprise-patterns) tooling (fflib, force-di, AT4DX).
6
-
7
- ## Install
8
-
9
- ```bash
10
- sf plugins install @simplysf/simply-aep
11
- ```
12
-
13
- ## Issues
14
-
15
- Please report any issues at https://github.com/SimplySF/simply-node/issues
16
-
17
- ## Contributing
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).
20
-
21
- ## Commands
22
-
23
- <!-- commands -->
24
-
25
- - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
26
-
27
- ## `sf simply aep at4dx binding list`
28
-
29
- List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
30
-
31
- ```
32
- USAGE
33
- $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
34
- service|selector|domain|unit-of-work...] [--effective-only]
35
-
36
- FLAGS
37
- -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
38
- local-source discovery.
39
- -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
40
- -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
41
- <options: service|selector|domain|unit-of-work>
42
- --api-version=<value> Override the api version used for api requests made by this command
43
- --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
44
- records.
45
-
46
- GLOBAL FLAGS
47
- --flags-dir=<value> Import flag values from a directory.
48
- --json Format output as json.
49
-
50
- DESCRIPTION
51
- List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
52
- for each binding key.
53
-
54
- Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
55
- `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
56
- `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
57
- reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
58
- interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
59
-
60
- Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
61
- priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
62
- have no winner concept at all — every record contributes to one ordered registration list.
63
-
64
- EXAMPLES
65
- $ sf simply aep at4dx binding list --target-org myOrg
66
-
67
- $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
68
-
69
- $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
70
-
71
- $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
72
-
73
- FLAG DESCRIPTIONS
74
- -t, --type=service|selector|domain|unit-of-work...
75
-
76
- Binding type(s) to include: service, selector, domain, unit-of-work.
77
-
78
- Comma-separated list of binding types to include. If not specified, all four are included.
79
- ```
80
-
81
- _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.1.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
82
- <!-- commandsstop -->
1
+ # @simplysf/simply-aep
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)
4
+
5
+ Commands for [Apex Enterprise Patterns](https://github.com/apex-enterprise-patterns) tooling (fflib, force-di, AT4DX).
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ sf plugins install @simplysf/simply-aep
11
+ ```
12
+
13
+ ## Issues
14
+
15
+ Please report any issues at https://github.com/SimplySF/simply-node/issues
16
+
17
+ ## Contributing
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).
20
+
21
+ ## Commands
22
+
23
+ <!-- commands -->
24
+
25
+ - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
26
+ - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
27
+
28
+ ## `sf simply aep at4dx binding list`
29
+
30
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
31
+
32
+ ```
33
+ USAGE
34
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
35
+ service|selector|domain|unit-of-work...] [--effective-only]
36
+
37
+ FLAGS
38
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
39
+ local-source discovery.
40
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
41
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
42
+ <options: service|selector|domain|unit-of-work>
43
+ --api-version=<value> Override the api version used for api requests made by this command
44
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
45
+ records.
46
+
47
+ GLOBAL FLAGS
48
+ --flags-dir=<value> Import flag values from a directory.
49
+ --json Format output as json.
50
+
51
+ DESCRIPTION
52
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
53
+ for each binding key.
54
+
55
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
56
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
57
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
58
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
59
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
60
+
61
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
62
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
63
+ have no winner concept at all — every record contributes to one ordered registration list.
64
+
65
+ EXAMPLES
66
+ $ sf simply aep at4dx binding list --target-org myOrg
67
+
68
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
69
+
70
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
71
+
72
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
73
+
74
+ FLAG DESCRIPTIONS
75
+ -t, --type=service|selector|domain|unit-of-work...
76
+
77
+ Binding type(s) to include: service, selector, domain, unit-of-work.
78
+
79
+ Comma-separated list of binding types to include. If not specified, all four are included.
80
+ ```
81
+
82
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.2.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
83
+
84
+ ## `sf simply aep at4dx domain-process-binding list`
85
+
86
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
87
+
88
+ ```
89
+ USAGE
90
+ $ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
91
+ <value>...] [--active-only]
92
+
93
+ FLAGS
94
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
95
+ local-source discovery.
96
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
97
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
98
+ included.
99
+ --active-only Only show active bindings; hide inactive records.
100
+ --api-version=<value> Override the api version used for api requests made by this command
101
+
102
+ GLOBAL FLAGS
103
+ --flags-dir=<value> Import flag values from a directory.
104
+ --json Format output as json.
105
+
106
+ DESCRIPTION
107
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
108
+
109
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
110
+ from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
111
+ domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
112
+
113
+ Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
114
+ process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
115
+ records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
116
+ first in that case.
117
+
118
+ EXAMPLES
119
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg
120
+
121
+ $ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
122
+
123
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
124
+
125
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
126
+ ```
127
+
128
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.2.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
129
+ <!-- commandsstop -->
130
+
131
+ - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
132
+
133
+ ## `sf simply aep at4dx binding list`
134
+
135
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
136
+
137
+ ```
138
+ USAGE
139
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
140
+ service|selector|domain|unit-of-work...] [--effective-only]
141
+
142
+ FLAGS
143
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
144
+ local-source discovery.
145
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
146
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
147
+ <options: service|selector|domain|unit-of-work>
148
+ --api-version=<value> Override the api version used for api requests made by this command
149
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
150
+ records.
151
+
152
+ GLOBAL FLAGS
153
+ --flags-dir=<value> Import flag values from a directory.
154
+ --json Format output as json.
155
+
156
+ DESCRIPTION
157
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
158
+ for each binding key.
159
+
160
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
161
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
162
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
163
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
164
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
165
+
166
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
167
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
168
+ have no winner concept at all — every record contributes to one ordered registration list.
169
+
170
+ EXAMPLES
171
+ $ sf simply aep at4dx binding list --target-org myOrg
172
+
173
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
174
+
175
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
176
+
177
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
178
+
179
+ FLAG DESCRIPTIONS
180
+ -t, --type=service|selector|domain|unit-of-work...
181
+
182
+ Binding type(s) to include: service, selector, domain, unit-of-work.
183
+
184
+ Comma-separated list of binding types to include. If not specified, all four are included.
185
+ ```
186
+
187
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.1.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
188
+ <!-- commandsstop -->
@@ -0,0 +1,22 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { type At4dxDomainProcessBindingListResult } from '../../../../../common/at4dxDomainProcessBindingTypes.js';
3
+ /**
4
+ * Lists the AT4DX Trigger Action Framework bindings (`DomainProcessBinding__mdt`) configured in a
5
+ * target org or local DX source — the criteria/action classes bound to each SObject's trigger events
6
+ * (or domain method tokens), in execution order.
7
+ */
8
+ export default class At4dxDomainProcessBindingList extends SfCommand<At4dxDomainProcessBindingListResult> {
9
+ static readonly summary: string;
10
+ static readonly description: string;
11
+ static readonly examples: string[];
12
+ static readonly flags: {
13
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'source-dir': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ sobject: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'active-only': import("@oclif/core/interfaces").BooleanFlag<boolean>;
18
+ 'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ };
20
+ /** @returns The resolved Trigger Action Framework bindings for the requested source, optionally filtered to specific SObjects. */
21
+ run(): Promise<At4dxDomainProcessBindingListResult>;
22
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Copyright (c) 2026, Clay Chipps.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Messages } from '@salesforce/core';
17
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
18
+ import { scanLocalDomainProcessBindings } from '../../../../../common/at4dxDomainProcessLocalScan.js';
19
+ import { scanOrgDomainProcessBindings } from '../../../../../common/at4dxDomainProcessOrgScan.js';
20
+ import { resolveDomainProcessBindings } from '../../../../../common/at4dxDomainProcessResolve.js';
21
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
22
+ const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.domain-process-binding.list');
23
+ function toDisplayRow(row) {
24
+ return {
25
+ sobject: row.sobject,
26
+ context: row.triggerOperation?.replace(/_/g, ' ') ?? row.domainMethodToken ?? '',
27
+ type: row.type,
28
+ order: row.orderCollision ? `${row.order} (collision)` : String(row.order),
29
+ class: row.classToInject,
30
+ active: String(row.isActive),
31
+ async: String(row.executeAsynchronous),
32
+ source: row.source,
33
+ };
34
+ }
35
+ /**
36
+ * Lists the AT4DX Trigger Action Framework bindings (`DomainProcessBinding__mdt`) configured in a
37
+ * target org or local DX source — the criteria/action classes bound to each SObject's trigger events
38
+ * (or domain method tokens), in execution order.
39
+ */
40
+ export default class At4dxDomainProcessBindingList extends SfCommand {
41
+ static summary = messages.getMessage('summary');
42
+ static description = messages.getMessage('description');
43
+ static examples = messages.getMessages('examples');
44
+ static flags = {
45
+ ...SfCommand.baseFlags,
46
+ 'target-org': Flags.optionalOrg({
47
+ summary: messages.getMessage('flags.target-org.summary'),
48
+ char: 'o',
49
+ }),
50
+ 'api-version': Flags.orgApiVersion(),
51
+ 'source-dir': Flags.directory({
52
+ summary: messages.getMessage('flags.source-dir.summary'),
53
+ char: 'd',
54
+ exists: true,
55
+ multiple: true,
56
+ }),
57
+ sobject: Flags.string({
58
+ summary: messages.getMessage('flags.sobject.summary'),
59
+ char: 's',
60
+ multiple: true,
61
+ }),
62
+ 'active-only': Flags.boolean({
63
+ summary: messages.getMessage('flags.active-only.summary'),
64
+ default: false,
65
+ }),
66
+ };
67
+ /** @returns The resolved Trigger Action Framework bindings for the requested source, optionally filtered to specific SObjects. */
68
+ async run() {
69
+ const { flags } = await this.parse(At4dxDomainProcessBindingList);
70
+ const targetOrg = flags['target-org'];
71
+ const sourceDirs = flags['source-dir'] ?? [];
72
+ if ((targetOrg && sourceDirs.length > 0) || (!targetOrg && sourceDirs.length === 0)) {
73
+ throw messages.createError('error.targetOrgOrSourceDirRequired');
74
+ }
75
+ const sobjectFilter = flags.sobject?.length ? new Set(flags.sobject) : undefined;
76
+ let source;
77
+ let records;
78
+ if (targetOrg) {
79
+ const connection = targetOrg.getConnection(flags['api-version']);
80
+ source = targetOrg.getUsername() ?? 'org';
81
+ this.spinner.start(messages.getMessage('info.queryingOrg', [source]));
82
+ let scanResult;
83
+ try {
84
+ scanResult = await scanOrgDomainProcessBindings(connection);
85
+ }
86
+ catch (error) {
87
+ this.spinner.stop();
88
+ throw messages.createError('error.orgQueryFailed', [error.message]);
89
+ }
90
+ this.spinner.stop();
91
+ if (scanResult.missing) {
92
+ throw messages.createError('error.at4dxNotDetected');
93
+ }
94
+ records = scanResult.records;
95
+ }
96
+ else {
97
+ source = 'local';
98
+ this.spinner.start(messages.getMessage('info.scanningLocalSource'));
99
+ try {
100
+ records = scanLocalDomainProcessBindings(sourceDirs);
101
+ }
102
+ catch (error) {
103
+ this.spinner.stop();
104
+ throw messages.createError('error.localScanFailed', [error.message]);
105
+ }
106
+ this.spinner.stop();
107
+ if (records.length === 0) {
108
+ throw messages.createError('error.at4dxNotDetected');
109
+ }
110
+ }
111
+ const filteredRecords = sobjectFilter ? records.filter((record) => sobjectFilter.has(record.sobject)) : records;
112
+ const resolvedRows = resolveDomainProcessBindings(filteredRecords);
113
+ const bindings = flags['active-only'] ? resolvedRows.filter((row) => row.isActive) : resolvedRows;
114
+ this.table({
115
+ data: bindings.map(toDisplayRow),
116
+ columns: [
117
+ { key: 'sobject', name: 'SOBJECT' },
118
+ { key: 'context', name: 'CONTEXT' },
119
+ { key: 'type', name: 'TYPE' },
120
+ { key: 'order', name: 'ORDER' },
121
+ { key: 'class', name: 'CLASS' },
122
+ { key: 'active', name: 'ACTIVE' },
123
+ { key: 'async', name: 'ASYNC' },
124
+ { key: 'source', name: 'SOURCE' },
125
+ ],
126
+ });
127
+ this.info(messages.getMessage('info.complete', [bindings.length, source]));
128
+ return { source, bindings };
129
+ }
130
+ }
131
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/aep/at4dx/domain-process-binding/list.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAM/D,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;A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