@simplysf/simply-aep 0.4.0 → 0.5.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,314 @@ 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 list`](#sf-simply-aep-at4dx-domain-process-binding-list)
27
+ - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
28
+
29
+ ## `sf simply aep at4dx binding list`
30
+
31
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
32
+
33
+ ```
34
+ USAGE
35
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
36
+ service|selector|domain|unit-of-work...] [--effective-only]
37
+
38
+ FLAGS
39
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
40
+ local-source discovery.
41
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
42
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
43
+ <options: service|selector|domain|unit-of-work>
44
+ --api-version=<value> Override the api version used for api requests made by this command
45
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
46
+ records.
47
+
48
+ GLOBAL FLAGS
49
+ --flags-dir=<value> Import flag values from a directory.
50
+ --json Format output as json.
51
+
52
+ DESCRIPTION
53
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
54
+ for each binding key.
55
+
56
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
57
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
58
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
59
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
60
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
61
+
62
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
63
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
64
+ have no winner concept at all — every record contributes to one ordered registration list.
65
+
66
+ EXAMPLES
67
+ $ sf simply aep at4dx binding list --target-org myOrg
68
+
69
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
70
+
71
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
72
+
73
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
74
+
75
+ FLAG DESCRIPTIONS
76
+ -t, --type=service|selector|domain|unit-of-work...
77
+
78
+ Binding type(s) to include: service, selector, domain, unit-of-work.
79
+
80
+ Comma-separated list of binding types to include. If not specified, all four are included.
81
+ ```
82
+
83
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
84
+
85
+ ## `sf simply aep at4dx domain-process-binding list`
86
+
87
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
88
+
89
+ ```
90
+ USAGE
91
+ $ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
92
+ <value>...] [--active-only]
93
+
94
+ FLAGS
95
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
96
+ local-source discovery.
97
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
98
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
99
+ included.
100
+ --active-only Only show active bindings; hide inactive records.
101
+ --api-version=<value> Override the api version used for api requests made by this command
102
+
103
+ GLOBAL FLAGS
104
+ --flags-dir=<value> Import flag values from a directory.
105
+ --json Format output as json.
106
+
107
+ DESCRIPTION
108
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
109
+
110
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
111
+ from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
112
+ domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
113
+
114
+ Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
115
+ process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
116
+ records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
117
+ first in that case.
118
+
119
+ EXAMPLES
120
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg
121
+
122
+ $ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
123
+
124
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
125
+
126
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
127
+ ```
128
+
129
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
130
+
131
+ ## `sf simply aep at4dx domain-process-binding validate`
132
+
133
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
134
+
135
+ ```
136
+ USAGE
137
+ $ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
138
+ <value>...]
139
+
140
+ FLAGS
141
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
142
+ local-source discovery.
143
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
144
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
145
+ included.
146
+ --api-version=<value> Override the api version used for api requests made by this command
147
+
148
+ GLOBAL FLAGS
149
+ --flags-dir=<value> Import flag values from a directory.
150
+ --json Format output as json.
151
+
152
+ DESCRIPTION
153
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
154
+ problem is found.
155
+
156
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
157
+ from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
158
+ fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
159
+ binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
160
+ DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
161
+ `--source-dir` must be specified.
162
+
163
+ Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
164
+ command) — use this in CI to gate on AT4DX wiring problems before they reach an org.
165
+
166
+ EXAMPLES
167
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg
168
+
169
+ $ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
170
+
171
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
172
+
173
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
174
+ ```
175
+
176
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
177
+ <!-- commandsstop -->
178
+
179
+ - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
180
+ - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
181
+ - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
182
+
183
+ ## `sf simply aep at4dx binding list`
184
+
185
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
186
+
187
+ ```
188
+ USAGE
189
+ $ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
190
+ service|selector|domain|unit-of-work...] [--effective-only]
191
+
192
+ FLAGS
193
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
194
+ local-source discovery.
195
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
196
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
197
+ <options: service|selector|domain|unit-of-work>
198
+ --api-version=<value> Override the api version used for api requests made by this command
199
+ --effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
200
+ records.
201
+
202
+ GLOBAL FLAGS
203
+ --flags-dir=<value> Import flag values from a directory.
204
+ --json Format output as json.
205
+
206
+ DESCRIPTION
207
+ List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
208
+ for each binding key.
209
+
210
+ Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
211
+ `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
212
+ `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
213
+ reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
214
+ interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
215
+
216
+ Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
217
+ priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
218
+ have no winner concept at all — every record contributes to one ordered registration list.
219
+
220
+ EXAMPLES
221
+ $ sf simply aep at4dx binding list --target-org myOrg
222
+
223
+ $ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
224
+
225
+ $ sf simply aep at4dx binding list --target-org myOrg --type service,selector
226
+
227
+ $ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
228
+
229
+ FLAG DESCRIPTIONS
230
+ -t, --type=service|selector|domain|unit-of-work...
231
+
232
+ Binding type(s) to include: service, selector, domain, unit-of-work.
233
+
234
+ Comma-separated list of binding types to include. If not specified, all four are included.
235
+ ```
236
+
237
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
238
+
239
+ ## `sf simply aep at4dx domain-process-binding list`
240
+
241
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
242
+
243
+ ```
244
+ USAGE
245
+ $ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
246
+ <value>...] [--active-only]
247
+
248
+ FLAGS
249
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
250
+ local-source discovery.
251
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
252
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
253
+ included.
254
+ --active-only Only show active bindings; hide inactive records.
255
+ --api-version=<value> Override the api version used for api requests made by this command
256
+
257
+ GLOBAL FLAGS
258
+ --flags-dir=<value> Import flag values from a directory.
259
+ --json Format output as json.
260
+
261
+ DESCRIPTION
262
+ List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
263
+
264
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
265
+ from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
266
+ domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
267
+
268
+ Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
269
+ process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
270
+ records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
271
+ first in that case.
272
+
273
+ EXAMPLES
274
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg
275
+
276
+ $ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
277
+
278
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
279
+
280
+ $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
281
+ ```
282
+
283
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
284
+
285
+ ## `sf simply aep at4dx domain-process-binding validate`
286
+
287
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
288
+
289
+ ```
290
+ USAGE
291
+ $ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
292
+ <value>...]
293
+
294
+ FLAGS
295
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
296
+ local-source discovery.
297
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
298
+ -s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
299
+ included.
300
+ --api-version=<value> Override the api version used for api requests made by this command
301
+
302
+ GLOBAL FLAGS
303
+ --flags-dir=<value> Import flag values from a directory.
304
+ --json Format output as json.
305
+
306
+ DESCRIPTION
307
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
308
+ problem is found.
309
+
310
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
311
+ from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
312
+ fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
313
+ binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
314
+ DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
315
+ `--source-dir` must be specified.
316
+
317
+ Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
318
+ command) — use this in CI to gate on AT4DX wiring problems before they reach an org.
319
+
320
+ EXAMPLES
321
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg
322
+
323
+ $ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
324
+
325
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
326
+
327
+ $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
328
+ ```
329
+
330
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
331
+ <!-- commandsstop -->
332
+
25
333
  - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
26
334
  - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
27
335
 
@@ -95,7 +95,7 @@ export default class At4dxDomainProcessBindingList extends SfCommand {
95
95
  source = 'local';
96
96
  this.spinner.start(messages.getMessage('info.scanningLocalSource'));
97
97
  try {
98
- records = scanLocalDomainProcessBindings(sourceDirs);
98
+ ({ records } = scanLocalDomainProcessBindings(sourceDirs));
99
99
  }
100
100
  catch (error) {
101
101
  this.spinner.stop();
@@ -1 +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;AAC/D,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,4BAA4B,GA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,SAAS,EAAE;gBACnC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE;gBAC7B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;gBAC/B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;gBAC/B,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACjC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;gBAC/B,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;aAClC;SACF,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QAE3E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { type At4dxDomainProcessBindingValidateResult } from '@simplysf/simply-aep-core';
3
+ /**
4
+ * Validates the AT4DX Trigger Action Framework bindings (`DomainProcessBinding__mdt`) configured in a
5
+ * target org or local DX source — order collisions, dead bindings, and other wiring problems that are
6
+ * invisible to `domain-process-binding list` — and fails (non-zero exit) when any of them is a real
7
+ * bug, for use as a CI gate.
8
+ */
9
+ export default class At4dxDomainProcessBindingValidate extends SfCommand<At4dxDomainProcessBindingValidateResult> {
10
+ static readonly summary: string;
11
+ static readonly description: string;
12
+ static readonly examples: string[];
13
+ static readonly flags: {
14
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ 'source-dir': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ sobject: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ 'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ };
20
+ /** @returns The validation issues found for the requested source, optionally filtered to specific SObjects. Sets `process.exitCode = 1` when any issue is severity `error`. */
21
+ run(): Promise<At4dxDomainProcessBindingValidateResult>;
22
+ }
@@ -0,0 +1,133 @@
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 { validateDomainProcessBindings, scanLocalDomainProcessBindings, scanOrgDomainProcessBindings, } from '@simplysf/simply-aep-core';
19
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
+ const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.domain-process-binding.validate');
21
+ function toDisplayRow(issue) {
22
+ return {
23
+ severity: issue.severity,
24
+ rule: issue.rule,
25
+ sobject: issue.sobject ?? '',
26
+ developerName: issue.developerName ?? '',
27
+ source: issue.source,
28
+ message: issue.message,
29
+ };
30
+ }
31
+ /**
32
+ * Validates the AT4DX Trigger Action Framework bindings (`DomainProcessBinding__mdt`) configured in a
33
+ * target org or local DX source — order collisions, dead bindings, and other wiring problems that are
34
+ * invisible to `domain-process-binding list` — and fails (non-zero exit) when any of them is a real
35
+ * bug, for use as a CI gate.
36
+ */
37
+ export default class At4dxDomainProcessBindingValidate extends SfCommand {
38
+ static summary = messages.getMessage('summary');
39
+ static description = messages.getMessage('description');
40
+ static examples = messages.getMessages('examples');
41
+ static flags = {
42
+ ...SfCommand.baseFlags,
43
+ 'target-org': Flags.optionalOrg({
44
+ summary: messages.getMessage('flags.target-org.summary'),
45
+ char: 'o',
46
+ }),
47
+ 'api-version': Flags.orgApiVersion(),
48
+ 'source-dir': Flags.directory({
49
+ summary: messages.getMessage('flags.source-dir.summary'),
50
+ char: 'd',
51
+ exists: true,
52
+ multiple: true,
53
+ }),
54
+ sobject: Flags.string({
55
+ summary: messages.getMessage('flags.sobject.summary'),
56
+ char: 's',
57
+ multiple: true,
58
+ }),
59
+ };
60
+ /** @returns The validation issues found for the requested source, optionally filtered to specific SObjects. Sets `process.exitCode = 1` when any issue is severity `error`. */
61
+ async run() {
62
+ const { flags } = await this.parse(At4dxDomainProcessBindingValidate);
63
+ const targetOrg = flags['target-org'];
64
+ const sourceDirs = flags['source-dir'] ?? [];
65
+ if ((targetOrg && sourceDirs.length > 0) || (!targetOrg && sourceDirs.length === 0)) {
66
+ throw messages.createError('error.targetOrgOrSourceDirRequired');
67
+ }
68
+ const sobjectFilter = flags.sobject?.length ? new Set(flags.sobject) : undefined;
69
+ let source;
70
+ let records;
71
+ let malformed;
72
+ let ambiguous;
73
+ if (targetOrg) {
74
+ const connection = targetOrg.getConnection(flags['api-version']);
75
+ source = targetOrg.getUsername() ?? 'org';
76
+ this.spinner.start(messages.getMessage('info.queryingOrg', [source]));
77
+ let scanResult;
78
+ try {
79
+ scanResult = await scanOrgDomainProcessBindings(connection);
80
+ }
81
+ catch (error) {
82
+ this.spinner.stop();
83
+ throw messages.createError('error.orgQueryFailed', [error.message]);
84
+ }
85
+ this.spinner.stop();
86
+ if (scanResult.missing) {
87
+ throw messages.createError('error.at4dxNotDetected');
88
+ }
89
+ ({ records, malformed, ambiguous } = scanResult);
90
+ }
91
+ else {
92
+ source = 'local';
93
+ this.spinner.start(messages.getMessage('info.scanningLocalSource'));
94
+ try {
95
+ ({ records, malformed, ambiguous } = scanLocalDomainProcessBindings(sourceDirs));
96
+ }
97
+ catch (error) {
98
+ this.spinner.stop();
99
+ throw messages.createError('error.localScanFailed', [error.message]);
100
+ }
101
+ this.spinner.stop();
102
+ if (records.length === 0 && malformed.length === 0) {
103
+ throw messages.createError('error.at4dxNotDetected');
104
+ }
105
+ }
106
+ const filteredRecords = sobjectFilter ? records.filter((record) => sobjectFilter.has(record.sobject)) : records;
107
+ const filteredAmbiguous = sobjectFilter
108
+ ? ambiguous.filter((record) => sobjectFilter.has(record.sobject))
109
+ : ambiguous;
110
+ const issues = validateDomainProcessBindings(filteredRecords, { malformed, ambiguous: filteredAmbiguous });
111
+ if (issues.length > 0) {
112
+ this.table({
113
+ data: issues.map(toDisplayRow),
114
+ columns: [
115
+ { key: 'severity', name: 'SEVERITY' },
116
+ { key: 'rule', name: 'RULE' },
117
+ { key: 'sobject', name: 'SOBJECT' },
118
+ { key: 'developerName', name: 'DEVELOPER NAME' },
119
+ { key: 'source', name: 'SOURCE' },
120
+ { key: 'message', name: 'MESSAGE' },
121
+ ],
122
+ });
123
+ }
124
+ else {
125
+ this.info(messages.getMessage('info.valid', [filteredRecords.length, source]));
126
+ }
127
+ if (issues.some((issue) => issue.severity === 'error')) {
128
+ process.exitCode = 1;
129
+ }
130
+ return { source, bindingCount: filteredRecords.length, issues };
131
+ }
132
+ }
133
+ //# sourceMappingURL=validate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/aep/at4dx/domain-process-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,6BAA6B,EAC7B,8BAA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CAAC;YACvD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;QAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAClE,CAAC"}
@@ -0,0 +1,59 @@
1
+ # summary
2
+
3
+ Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
4
+
5
+ # description
6
+
7
+ Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or `--source-dir` must be specified.
8
+
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 wiring problems before they reach an org.
10
+
11
+ # flags.target-org.summary
12
+
13
+ Username or alias of the org to read bindings from. Use this for live-org discovery.
14
+
15
+ # flags.source-dir.summary
16
+
17
+ One or more paths to directories containing Salesforce DX source. Use this for local-source discovery.
18
+
19
+ # flags.sobject.summary
20
+
21
+ SObject API name(s) to filter to. If not specified, bindings for every SObject are included.
22
+
23
+ # examples
24
+
25
+ - <%= config.bin %> <%= command.id %> --target-org myOrg
26
+
27
+ - <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app
28
+
29
+ - <%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account
30
+
31
+ - <%= config.bin %> <%= command.id %> --target-org myOrg --json
32
+
33
+ # error.targetOrgOrSourceDirRequired
34
+
35
+ You must specify either --target-org or --source-dir, but not both.
36
+
37
+ # error.at4dxNotDetected
38
+
39
+ AT4DX's Trigger Action Framework doesn't appear to be present in this source: the DomainProcessBinding__mdt Custom Metadata Type wasn't found.
40
+
41
+ # error.localScanFailed
42
+
43
+ Failed to scan the project directory: %s
44
+
45
+ # error.orgQueryFailed
46
+
47
+ Failed to query bindings from the org: %s
48
+
49
+ # info.queryingOrg
50
+
51
+ Querying bindings from %s...
52
+
53
+ # info.scanningLocalSource
54
+
55
+ Scanning local source for bindings...
56
+
57
+ # info.valid
58
+
59
+ No issues found across %s binding(s) in %s
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.4.0",
4
+ "version": "0.5.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-node",
7
7
  "bugs": "https://github.com/SimplySF/simply-node/issues",
@@ -59,7 +59,7 @@
59
59
  "@oclif/core": "^4.11.2",
60
60
  "@salesforce/core": "^8.30.0",
61
61
  "@salesforce/sf-plugins-core": "^12.2.16",
62
- "@simplysf/simply-aep-core": "^0.2.0",
62
+ "@simplysf/simply-aep-core": "^0.3.0",
63
63
  "@simplysf/simply-core": "^1.4.0"
64
64
  },
65
65
  "devDependencies": {
@@ -206,5 +206,5 @@
206
206
  "output": []
207
207
  }
208
208
  },
209
- "gitHead": "a1be2a6757d52f5baace32f68b4dacf707e9e7c2"
209
+ "gitHead": "325770f67100f0df1050246a224a5e45cf5671f6"
210
210
  }