@simplysf/simply-aep 0.5.0 → 0.6.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
@@ -22,6 +22,484 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
22
22
 
23
23
  <!-- commands -->
24
24
 
25
+ - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
26
+ - [`sf simply aep at4dx domain-process-binding create`](#sf-simply-aep-at4dx-domain-process-binding-create)
27
+ - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
28
+ - [`sf simply aep at4dx domain-process-binding set`](#sf-simply-aep-at4dx-domain-process-binding-set)
29
+ - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
30
+
31
+ ## `sf simply aep at4dx binding list`
32
+
33
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
34
+
35
+ ```
36
+ USAGE
37
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
38
+ service|selector|domain|unit-of-work...] [--effective-only]
39
+
40
+ FLAGS
41
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
42
+ local-source discovery.
43
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
44
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
45
+ <options: service|selector|domain|unit-of-work>
46
+ --api-version=<value> Override the api version used for api requests made by this command
47
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
48
+ records.
49
+
50
+ GLOBAL FLAGS
51
+ --flags-dir=<value> Import flag values from a directory.
52
+ --json Format output as json.
53
+
54
+ DESCRIPTION
55
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
56
+ for each binding key.
57
+
58
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
59
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
60
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
61
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
62
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
63
+
64
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
65
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
66
+ have no winner concept at all — every record contributes to one ordered registration list.
67
+
68
+ EXAMPLES
69
+ $ sf simply aep at4dx binding list --target-org myOrg
70
+
71
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
72
+
73
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
74
+
75
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
76
+
77
+ FLAG DESCRIPTIONS
78
+ -t, --type=service|selector|domain|unit-of-work...
79
+
80
+ Binding type(s) to include: service, selector, domain, unit-of-work.
81
+
82
+ Comma-separated list of binding types to include. If not specified, all four are included.
83
+ ```
84
+
85
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
86
+
87
+ ## `sf simply aep at4dx domain-process-binding create`
88
+
89
+ Create a new AT4DX Trigger Action Framework binding (DomainProcessBinding__mdt) in local source and/or a connected org.
90
+
91
+ ```
92
+ USAGE
93
+ $ sf simply aep at4dx domain-process-binding create -n <value> -s <value> --process-context TriggerExecution|DomainMethodExecution -t
94
+ Action|Criteria -c <value> --order <value> [--json] [--flags-dir <value>] [-d <value>] [-o <value>] [--api-version
95
+ <value>] [--wait <value>] [--label <value>] [--sobject-alternate] [--trigger-operation
96
+ Before_Insert|After_Insert|Before_Update|After_Update|Before_Delete|After_Delete|After_Undelete]
97
+ [--domain-method-token <value>] [--active] [--execute-asynchronous] [--logical-inverse] [--prevent-recursive]
98
+ [--description <value>] [--force]
99
+
100
+ FLAGS
101
+ -c, --class-to-inject=<value> (required) The Apex class this binding wires in.
102
+ -d, --source-dir=<value> The package directory to create
103
+ customMetadata/DomainProcessBinding.<name>.md-meta.xml under. Created if the
104
+ customMetadata folder doesn't exist yet.
105
+ -n, --developer-name=<value> (required) The binding's DeveloperName. Must start with a letter, contain only
106
+ letters, numbers, and single underscores, not end with an underscore, and be 40
107
+ characters or fewer.
108
+ -o, --target-org=<value> Deploy the generated binding to this org after writing it.
109
+ -s, --sobject=<value> (required) The SObject API name to bind against.
110
+ -t, --type=<option> (required) Whether this binding contributes a Criteria filter or an Action.
111
+ <options: Action|Criteria>
112
+ --[no-]active IsActive__c.
113
+ --api-version=<value> Override the api version used for api requests made by this command
114
+ --description=<value> Description__c.
115
+ --domain-method-token=<value> The domain method's process token this binding matches. Required, and only allowed,
116
+ when --process-context is DomainMethodExecution.
117
+ --execute-asynchronous ExecuteAsynchronous__c.
118
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation
119
+ still runs and its issues are still printed and returned.
120
+ --label=<value> The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
121
+ --logical-inverse LogicalInverse__c.
122
+ --order=<value> (required) OrderOfExecution__c. Numeric; decimals are allowed.
123
+ --prevent-recursive PreventRecursive__c.
124
+ --process-context=<option> (required) What kind of process invokes this binding: TriggerExecution or
125
+ DomainMethodExecution.
126
+ <options: TriggerExecution|DomainMethodExecution>
127
+ --[no-]sobject-alternate Write --sobject to RelatedDomainBindingSObjectAlternate__c instead of
128
+ RelatedDomainBindingSObject__c. Use this for a SObject that can't be referenced
129
+ through an EntityDefinition field at all (for example ServiceResource and other
130
+ Setup objects).
131
+ --trigger-operation=<option> The trigger event this binding fires on. Required, and only allowed, when
132
+ --process-context is TriggerExecution.
133
+ <options: Before_Insert|After_Insert|Before_Update|After_Update|Before_Delete|After
134
+ _Delete|After_Undelete>
135
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
136
+
137
+ GLOBAL FLAGS
138
+ --flags-dir=<value> Import flag values from a directory.
139
+ --json Format output as json.
140
+
141
+ DESCRIPTION
142
+ Create a new AT4DX Trigger Action Framework binding (DomainProcessBinding__mdt) in local source and/or a connected
143
+ org.
144
+
145
+ Generates a `DomainProcessBinding.<DeveloperName>.md-meta.xml` file from the given flags and writes it under
146
+ --source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else already
147
+ in scope — with the same rules `simply aep at4dx domain-process-binding validate` uses, and refuses to write if that
148
+ introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is required;
149
+ unlike `list`/`validate`, both may be given at once (write to source and deploy it live in the same run). Given
150
+ --target-org alone, the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
151
+
152
+ Writes RelatedDomainBindingSObject__c by default. Pass --sobject-alternate to write
153
+ RelatedDomainBindingSObjectAlternate__c instead, for a SObject (such as ServiceResource and other Setup objects) that
154
+ can't be referenced through an EntityDefinition field at all.
155
+
156
+ EXAMPLES
157
+ $ sf simply aep at4dx domain-process-binding create --source-dir sfdx-source/core --developer-name Account_Before_Insert_Assign_Owner --sobject Account --process-context TriggerExecution --trigger-operation Before_Insert --type Action --class-to-inject AccountAssignOwnerAction --order 10
158
+
159
+ $ sf simply aep at4dx domain-process-binding create --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --sobject Account --process-context TriggerExecution --trigger-operation Before_Insert --type Action --class-to-inject AccountAssignOwnerAction --order 10
160
+
161
+ $ sf simply aep at4dx domain-process-binding create --source-dir sfdx-source/core --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --sobject Account --process-context TriggerExecution --trigger-operation Before_Insert --type Action --class-to-inject AccountAssignOwnerAction --order 10
162
+
163
+ $ 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
164
+ ```
165
+
166
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
167
+
168
+ ## `sf simply aep at4dx domain-process-binding list`
169
+
170
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
171
+
172
+ ```
173
+ USAGE
174
+ $ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
175
+ <value>...] [--active-only]
176
+
177
+ FLAGS
178
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
179
+ local-source discovery.
180
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
181
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
182
+ included.
183
+ --active-only Only show active bindings; hide inactive records.
184
+ --api-version=<value> Override the api version used for api requests made by this command
185
+
186
+ GLOBAL FLAGS
187
+ --flags-dir=<value> Import flag values from a directory.
188
+ --json Format output as json.
189
+
190
+ DESCRIPTION
191
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
192
+
193
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
194
+ from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
195
+ domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
196
+
197
+ Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
198
+ process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
199
+ records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
200
+ first in that case.
201
+
202
+ EXAMPLES
203
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg
204
+
205
+ $ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
206
+
207
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
208
+
209
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
210
+ ```
211
+
212
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
213
+
214
+ ## `sf simply aep at4dx domain-process-binding set`
215
+
216
+ Update an existing AT4DX Trigger Action Framework binding (DomainProcessBinding__mdt) in local source and/or a connected org.
217
+
218
+ ```
219
+ USAGE
220
+ $ sf simply aep at4dx domain-process-binding set -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o <value>] [--api-version <value>]
221
+ [--wait <value>] [--label <value>] [-s <value>] [--sobject-alternate] [--process-context
222
+ TriggerExecution|DomainMethodExecution] [--trigger-operation
223
+ Before_Insert|After_Insert|Before_Update|After_Update|Before_Delete|After_Delete|After_Undelete]
224
+ [--domain-method-token <value>] [-t Action|Criteria] [-c <value>] [--order <value>] [--active]
225
+ [--execute-asynchronous] [--logical-inverse] [--prevent-recursive] [--description <value>] [--force]
226
+
227
+ FLAGS
228
+ -c, --class-to-inject=<value> The Apex class this binding wires in. If not given, the existing value is kept.
229
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
230
+ binding to update.
231
+ -n, --developer-name=<value> (required) The DeveloperName of the binding to update.
232
+ -o, --target-org=<value> Locate (when --source-dir isn't given) and/or deploy the binding to this org.
233
+ -s, --sobject=<value> The SObject API name to bind against. If not given, the existing value is kept.
234
+ -t, --type=<option> Whether this binding contributes a Criteria filter or an Action. If not given, the
235
+ existing value is kept.
236
+ <options: Action|Criteria>
237
+ --[no-]active IsActive__c. If not given, the existing value is kept.
238
+ --api-version=<value> Override the api version used for api requests made by this command
239
+ --description=<value> Description__c. If not given, the existing value is kept.
240
+ --domain-method-token=<value> The domain method's process token this binding matches. If you change
241
+ --process-context to DomainMethodExecution, pass this too.
242
+ --[no-]execute-asynchronous ExecuteAsynchronous__c. If not given, the existing value is kept.
243
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation
244
+ still runs and its issues are still printed and returned.
245
+ --label=<value> The binding's label. If not given, the existing label is kept.
246
+ --[no-]logical-inverse LogicalInverse__c. If not given, the existing value is kept.
247
+ --order=<value> OrderOfExecution__c. Numeric; decimals are allowed. If not given, the existing
248
+ value is kept.
249
+ --[no-]prevent-recursive PreventRecursive__c. If not given, the existing value is kept.
250
+ --process-context=<option> What kind of process invokes this binding: TriggerExecution or
251
+ DomainMethodExecution. If not given, the existing value is kept.
252
+ <options: TriggerExecution|DomainMethodExecution>
253
+ --[no-]sobject-alternate Write --sobject to RelatedDomainBindingSObjectAlternate__c instead of
254
+ RelatedDomainBindingSObject__c, for a SObject that can't be referenced through an
255
+ EntityDefinition field at all (for example ServiceResource and other Setup
256
+ objects). If not given, the binding keeps whichever field it already uses — this
257
+ flag only needs to be passed to change it.
258
+ --trigger-operation=<option> The trigger event this binding fires on. If you change --process-context to
259
+ TriggerExecution, pass this too.
260
+ <options: Before_Insert|After_Insert|Before_Update|After_Update|Before_Delete|After
261
+ _Delete|After_Undelete>
262
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
263
+
264
+ GLOBAL FLAGS
265
+ --flags-dir=<value> Import flag values from a directory.
266
+ --json Format output as json.
267
+
268
+ DESCRIPTION
269
+ Update an existing AT4DX Trigger Action Framework binding (DomainProcessBinding__mdt) in local source and/or a
270
+ connected org.
271
+
272
+ Finds the binding named --developer-name in local source and/or a connected org, applies only the fields given as
273
+ flags — everything else, including which SObject reference field the binding uses, is preserved from the found record
274
+ — and rewrites the `DomainProcessBinding.<DeveloperName>.md-meta.xml` file. Validates the resulting binding —
275
+ alongside everything else already in scope — with the same rules `simply aep at4dx domain-process-binding validate`
276
+ uses, and refuses to write if that introduces an error-severity issue unless --force is passed.
277
+
278
+ When --source-dir is given, the binding is located there (searched across every directory given, same as
279
+ `list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When
280
+ only --target-org is given, the binding is located and updated directly in the org via a temporary file, deployed,
281
+ then discarded — no working-tree footprint.
282
+
283
+ --developer-name identifies the binding to update and can't itself be changed by this command.
284
+
285
+ EXAMPLES
286
+ $ sf simply aep at4dx domain-process-binding set --source-dir sfdx-source/core --source-dir sfdx-source/app --developer-name Account_Before_Insert_Assign_Owner --order 20 --no-active
287
+
288
+ $ sf simply aep at4dx domain-process-binding set --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
289
+ ```
290
+
291
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/set.js)_
292
+
293
+ ## `sf simply aep at4dx domain-process-binding validate`
294
+
295
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
296
+
297
+ ```
298
+ USAGE
299
+ $ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
300
+ <value>...]
301
+
302
+ FLAGS
303
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
304
+ local-source discovery.
305
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
306
+ -s, --sobject=<value>... SObject API name(s) to filter to. Applies only to issues that name an SObject; issues
307
+ that span the whole scan (a duplicate DeveloperName, or a binding with no resolvable
308
+ SObject) are always reported, since filtering could hide the exact conflict they exist to
309
+ catch. If not specified, every issue is included.
310
+ --api-version=<value> Override the api version used for api requests made by this command
311
+
312
+ GLOBAL FLAGS
313
+ --flags-dir=<value> Import flag values from a directory.
314
+ --json Format output as json.
315
+
316
+ DESCRIPTION
317
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
318
+ problem is found.
319
+
320
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
321
+ from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
322
+ fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
323
+ binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
324
+ DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
325
+ `--source-dir` must be specified.
326
+
327
+ Prints a table of every issue found. When --sobject is specified, scan-wide issues (a duplicate DeveloperName, or a
328
+ binding with no resolvable SObject) print in their own section below the filtered table, since they can't be
329
+ attributed to one SObject. Exits non-zero when any issue is an error (a warning alone doesn't fail the command) — use
330
+ this in CI to gate on AT4DX wiring problems before they reach an org.
331
+
332
+ EXAMPLES
333
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg
334
+
335
+ $ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
336
+
337
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
338
+
339
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
340
+ ```
341
+
342
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
343
+ <!-- commandsstop -->
344
+
345
+ - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
346
+ - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
347
+ - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
348
+
349
+ ## `sf simply aep at4dx binding list`
350
+
351
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
352
+
353
+ ```
354
+ USAGE
355
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
356
+ service|selector|domain|unit-of-work...] [--effective-only]
357
+
358
+ FLAGS
359
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
360
+ local-source discovery.
361
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
362
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
363
+ <options: service|selector|domain|unit-of-work>
364
+ --api-version=<value> Override the api version used for api requests made by this command
365
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
366
+ records.
367
+
368
+ GLOBAL FLAGS
369
+ --flags-dir=<value> Import flag values from a directory.
370
+ --json Format output as json.
371
+
372
+ DESCRIPTION
373
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
374
+ for each binding key.
375
+
376
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
377
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
378
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
379
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
380
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
381
+
382
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
383
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
384
+ have no winner concept at all — every record contributes to one ordered registration list.
385
+
386
+ EXAMPLES
387
+ $ sf simply aep at4dx binding list --target-org myOrg
388
+
389
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
390
+
391
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
392
+
393
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
394
+
395
+ FLAG DESCRIPTIONS
396
+ -t, --type=service|selector|domain|unit-of-work...
397
+
398
+ Binding type(s) to include: service, selector, domain, unit-of-work.
399
+
400
+ Comma-separated list of binding types to include. If not specified, all four are included.
401
+ ```
402
+
403
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
404
+
405
+ ## `sf simply aep at4dx domain-process-binding list`
406
+
407
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
408
+
409
+ ```
410
+ USAGE
411
+ $ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
412
+ <value>...] [--active-only]
413
+
414
+ FLAGS
415
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
416
+ local-source discovery.
417
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
418
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
419
+ included.
420
+ --active-only Only show active bindings; hide inactive records.
421
+ --api-version=<value> Override the api version used for api requests made by this command
422
+
423
+ GLOBAL FLAGS
424
+ --flags-dir=<value> Import flag values from a directory.
425
+ --json Format output as json.
426
+
427
+ DESCRIPTION
428
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
429
+
430
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
431
+ from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
432
+ domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
433
+
434
+ Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
435
+ process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
436
+ records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
437
+ first in that case.
438
+
439
+ EXAMPLES
440
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg
441
+
442
+ $ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
443
+
444
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
445
+
446
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
447
+ ```
448
+
449
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
450
+
451
+ ## `sf simply aep at4dx domain-process-binding validate`
452
+
453
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
454
+
455
+ ```
456
+ USAGE
457
+ $ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
458
+ <value>...]
459
+
460
+ FLAGS
461
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
462
+ local-source discovery.
463
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
464
+ -s, --sobject=<value>... SObject API name(s) to filter to. Applies only to issues that name an SObject; issues
465
+ that span the whole scan (a duplicate DeveloperName, or a binding with no resolvable
466
+ SObject) are always reported, since filtering could hide the exact conflict they exist to
467
+ catch. If not specified, every issue is included.
468
+ --api-version=<value> Override the api version used for api requests made by this command
469
+
470
+ GLOBAL FLAGS
471
+ --flags-dir=<value> Import flag values from a directory.
472
+ --json Format output as json.
473
+
474
+ DESCRIPTION
475
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
476
+ problem is found.
477
+
478
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
479
+ from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
480
+ fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
481
+ binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
482
+ DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
483
+ `--source-dir` must be specified.
484
+
485
+ Prints a table of every issue found. When --sobject is specified, scan-wide issues (a duplicate DeveloperName, or a
486
+ binding with no resolvable SObject) print in their own section below the filtered table, since they can't be
487
+ attributed to one SObject. Exits non-zero when any issue is an error (a warning alone doesn't fail the command) — use
488
+ this in CI to gate on AT4DX wiring problems before they reach an org.
489
+
490
+ EXAMPLES
491
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg
492
+
493
+ $ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
494
+
495
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
496
+
497
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
498
+ ```
499
+
500
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
501
+ <!-- commandsstop -->
502
+
25
503
  - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
26
504
  - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
27
505
  - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
@@ -0,0 +1,35 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { type At4dxDomainProcessBindingCreateResult, type DomainProcessType, type ProcessContext, type TriggerOperation } from '@simplysf/simply-aep-core';
3
+ /**
4
+ * Creates a new AT4DX Trigger Action Framework binding (`DomainProcessBinding__mdt`) in local DX
5
+ * source and/or a connected org, validating it against everything already scanned before writing.
6
+ */
7
+ export default class At4dxDomainProcessBindingCreate extends SfCommand<At4dxDomainProcessBindingCreateResult> {
8
+ static readonly summary: string;
9
+ static readonly description: string;
10
+ static readonly examples: string[];
11
+ static readonly flags: {
12
+ 'source-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
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
+ wait: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'developer-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
17
+ label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ sobject: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
19
+ 'sobject-alternate': import("@oclif/core/interfaces").BooleanFlag<boolean>;
20
+ 'process-context': import("@oclif/core/interfaces").OptionFlag<ProcessContext, import("@oclif/core/interfaces").CustomOptions>;
21
+ 'trigger-operation': import("@oclif/core/interfaces").OptionFlag<TriggerOperation | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ 'domain-method-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
23
+ type: import("@oclif/core/interfaces").OptionFlag<DomainProcessType, import("@oclif/core/interfaces").CustomOptions>;
24
+ 'class-to-inject': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
25
+ order: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
26
+ active: import("@oclif/core/interfaces").BooleanFlag<boolean>;
27
+ 'execute-asynchronous': import("@oclif/core/interfaces").BooleanFlag<boolean>;
28
+ 'logical-inverse': import("@oclif/core/interfaces").BooleanFlag<boolean>;
29
+ 'prevent-recursive': import("@oclif/core/interfaces").BooleanFlag<boolean>;
30
+ description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
31
+ force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
32
+ 'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
33
+ };
34
+ run(): Promise<At4dxDomainProcessBindingCreateResult>;
35
+ }