@simplysf/simply-aep 0.7.0 → 0.9.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 (38) hide show
  1. package/README.md +405 -5
  2. package/lib/commands/simply/aep/at4dx/binding/create.d.ts +28 -0
  3. package/lib/commands/simply/aep/at4dx/binding/create.js +116 -0
  4. package/lib/commands/simply/aep/at4dx/binding/create.js.map +1 -0
  5. package/lib/commands/simply/aep/at4dx/binding/list.js +1 -1
  6. package/lib/commands/simply/aep/at4dx/binding/list.js.map +1 -1
  7. package/lib/commands/simply/aep/at4dx/binding/update.d.ts +29 -0
  8. package/lib/commands/simply/aep/at4dx/binding/update.js +119 -0
  9. package/lib/commands/simply/aep/at4dx/binding/update.js.map +1 -0
  10. package/lib/commands/simply/aep/at4dx/binding/validate.d.ts +23 -0
  11. package/lib/commands/simply/aep/at4dx/binding/validate.js +143 -0
  12. package/lib/commands/simply/aep/at4dx/binding/validate.js.map +1 -0
  13. package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.d.ts +26 -0
  14. package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js +112 -0
  15. package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js.map +1 -0
  16. package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.d.ts +20 -0
  17. package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js +110 -0
  18. package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js.map +1 -0
  19. package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.d.ts +27 -0
  20. package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js +109 -0
  21. package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js.map +1 -0
  22. package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.d.ts +21 -0
  23. package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js +129 -0
  24. package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js.map +1 -0
  25. package/lib/common/bindingWriteError.d.ts +14 -0
  26. package/lib/common/bindingWriteError.js +58 -0
  27. package/lib/common/bindingWriteError.js.map +1 -0
  28. package/lib/common/fieldSetInclusionWriteError.d.ts +14 -0
  29. package/lib/common/fieldSetInclusionWriteError.js +56 -0
  30. package/lib/common/fieldSetInclusionWriteError.js.map +1 -0
  31. package/messages/simply.aep.at4dx.binding.create.md +123 -0
  32. package/messages/simply.aep.at4dx.binding.update.md +121 -0
  33. package/messages/simply.aep.at4dx.binding.validate.md +65 -0
  34. package/messages/simply.aep.at4dx.field-set-inclusion.create.md +103 -0
  35. package/messages/simply.aep.at4dx.field-set-inclusion.list.md +51 -0
  36. package/messages/simply.aep.at4dx.field-set-inclusion.update.md +105 -0
  37. package/messages/simply.aep.at4dx.field-set-inclusion.validate.md +53 -0
  38. package/package.json +3 -3
package/README.md CHANGED
@@ -22,11 +22,88 @@ 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 create`](#sf-simply-aep-at4dx-binding-create)
25
26
  - [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
27
+ - [`sf simply aep at4dx binding update`](#sf-simply-aep-at4dx-binding-update)
28
+ - [`sf simply aep at4dx binding validate`](#sf-simply-aep-at4dx-binding-validate)
26
29
  - [`sf simply aep at4dx domain-process-binding create`](#sf-simply-aep-at4dx-domain-process-binding-create)
27
30
  - [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
28
31
  - [`sf simply aep at4dx domain-process-binding set`](#sf-simply-aep-at4dx-domain-process-binding-set)
29
32
  - [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
33
+ - [`sf simply aep at4dx field-set-inclusion create`](#sf-simply-aep-at4dx-field-set-inclusion-create)
34
+ - [`sf simply aep at4dx field-set-inclusion list`](#sf-simply-aep-at4dx-field-set-inclusion-list)
35
+ - [`sf simply aep at4dx field-set-inclusion update`](#sf-simply-aep-at4dx-field-set-inclusion-update)
36
+ - [`sf simply aep at4dx field-set-inclusion validate`](#sf-simply-aep-at4dx-field-set-inclusion-validate)
37
+
38
+ ## `sf simply aep at4dx binding create`
39
+
40
+ Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
41
+
42
+ ```
43
+ USAGE
44
+ $ sf simply aep at4dx binding create -t service|selector|domain -n <value> -c <value> [--json] [--flags-dir <value>] [-d <value>]
45
+ [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [--binding-interface <value>] [-s <value>]
46
+ [--sobject-alternate] [--priority <value>] [--force]
47
+
48
+ FLAGS
49
+ -c, --to=<value> (required) The interface/SObject's implementing Apex class (To__c).
50
+ -d, --source-dir=<value> The package directory to create the binding's .md-meta.xml under. Created if the
51
+ customMetadata folder doesn't exist yet.
52
+ -n, --developer-name=<value> (required) The binding's DeveloperName. Must start with a letter, contain only
53
+ letters, numbers, and single underscores, not end with an underscore, and be 40
54
+ characters or fewer.
55
+ -o, --target-org=<value> Deploy the generated binding to this org after writing it.
56
+ -s, --sobject=<value> The SObject API name to bind against (BindingSObject__c, or
57
+ BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed,
58
+ when --type is selector or domain.
59
+ -t, --type=<option> (required) Which Application Factory binding type to create: service, selector, or
60
+ domain.
61
+ <options: service|selector|domain>
62
+ --api-version=<value> Override the api version used for api requests made by this command
63
+ --binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Required, and only
64
+ allowed, when --type is service.
65
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation still
66
+ runs and its issues are still printed and returned.
67
+ --label=<value> The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
68
+ --priority=<value> Priority__c. Higher numbers are higher priority; omit for least priority. Only
69
+ allowed when --type is service or selector — Domain has no Priority__c field.
70
+ --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this
71
+ for a SObject that can't be referenced through an EntityDefinition field at all (for
72
+ example ServiceResource and other Setup objects). Only allowed when --type is
73
+ selector or domain.
74
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
75
+
76
+ GLOBAL FLAGS
77
+ --flags-dir=<value> Import flag values from a directory.
78
+ --json Format output as json.
79
+
80
+ DESCRIPTION
81
+ Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
82
+
83
+ Generates a `<LocalObjectName>.<DeveloperName>.md-meta.xml` file from the given flags and writes it under
84
+ --source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else of the
85
+ same --type already in scope — with the same rules `simply aep at4dx binding validate` uses, and refuses to write if
86
+ that introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is
87
+ required; both may be given at once (write to source and deploy it live in the same run). Given --target-org alone,
88
+ the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
89
+
90
+ `--type service` uses --binding-interface (BindingInterface__c) and rejects --sobject/--sobject-alternate; `--type
91
+ selector`/`domain` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate to write
92
+ BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that can't be
93
+ referenced through an EntityDefinition field at all). `--priority` is accepted for `--type service`/`selector` only;
94
+ Domain has no such field.
95
+
96
+ EXAMPLES
97
+ $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type service --developer-name My_Service_Binding --binding-interface IMyService --to MyServiceImpl
98
+
99
+ $ sf simply aep at4dx binding create --target-org myOrg --type selector --developer-name Account_Selector --sobject Account --to AccountsSelector --priority 1
100
+
101
+ $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type domain --developer-name Account_Domain --sobject Account --to AccountDomain
102
+
103
+ $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
104
+ ```
105
+
106
+ _See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
30
107
 
31
108
  ## `sf simply aep at4dx binding list`
32
109
 
@@ -82,7 +159,133 @@ FLAG DESCRIPTIONS
82
159
  Comma-separated list of binding types to include. If not specified, all four are included.
83
160
  ```
84
161
 
85
- _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.6.1/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
162
+ _See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
163
+
164
+ ## `sf simply aep at4dx binding update`
165
+
166
+ Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
167
+
168
+ ```
169
+ USAGE
170
+ $ sf simply aep at4dx binding update -t service|selector|domain -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o
171
+ <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>] [--binding-interface <value>] [-s
172
+ <value>] [--sobject-alternate] [--priority <value>] [--force]
173
+
174
+ FLAGS
175
+ -c, --to=<value> The interface/SObject's implementing Apex class (To__c). If not given, the existing
176
+ value is kept.
177
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
178
+ binding to update.
179
+ -n, --developer-name=<value> (required) The DeveloperName of the binding to update.
180
+ -o, --target-org=<value> Locate (when --source-dir isn't given) and/or deploy the binding to this org.
181
+ -s, --sobject=<value> The SObject API name to bind against. Only allowed when --type is selector or domain.
182
+ If not given, the existing value is kept.
183
+ -t, --type=<option> (required) Which Application Factory binding type to look in: service, selector, or
184
+ domain.
185
+ <options: service|selector|domain>
186
+ --api-version=<value> Override the api version used for api requests made by this command
187
+ --binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Only allowed when
188
+ --type is service. If not given, the existing value is kept.
189
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation still
190
+ runs and its issues are still printed and returned.
191
+ --label=<value> The binding's label. If not given, the existing label is kept.
192
+ --priority=<value> Priority__c. Only allowed when --type is service or selector — Domain has no
193
+ Priority__c field. If not given, the existing value is kept.
194
+ --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a
195
+ SObject that can't be referenced through an EntityDefinition field at all (for
196
+ example ServiceResource and other Setup objects). Only allowed when --type is
197
+ selector or domain. If not given, the binding keeps whichever field it already uses —
198
+ this flag only needs to be passed to change it.
199
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
200
+
201
+ GLOBAL FLAGS
202
+ --flags-dir=<value> Import flag values from a directory.
203
+ --json Format output as json.
204
+
205
+ DESCRIPTION
206
+ Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected
207
+ org.
208
+
209
+ Finds the binding named --developer-name (of the given --type) in local source and/or a connected org, applies only
210
+ the fields given as flags — everything else, including which SObject reference field a Selector/Domain binding uses,
211
+ is preserved from the found record — and rewrites its `.md-meta.xml` file. Validates the resulting binding — alongside
212
+ everything else of the same --type already in scope — with the same rules `simply aep at4dx binding validate` uses,
213
+ and refuses to write if that introduces an error-severity issue unless --force is passed.
214
+
215
+ When --source-dir is given, the binding is located there (searched across every directory given, same as
216
+ `list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When
217
+ only --target-org is given, the binding is located and updated directly in the org via a temporary file, deployed,
218
+ then discarded — no working-tree footprint.
219
+
220
+ --developer-name identifies the binding to update and can't itself be changed by this command. --type identifies which
221
+ Application Factory Custom Metadata Type to look in and can't be changed either — bindings don't move between types.
222
+
223
+ EXAMPLES
224
+ $ sf simply aep at4dx binding update --source-dir sfdx-source/core --source-dir sfdx-source/app --type selector --developer-name Account_Selector --priority 5
225
+
226
+ $ sf simply aep at4dx binding update --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
227
+ ```
228
+
229
+ _See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
230
+
231
+ ## `sf simply aep at4dx binding validate`
232
+
233
+ Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is found.
234
+
235
+ ```
236
+ USAGE
237
+ $ sf simply aep at4dx binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
238
+ service|selector|domain|unit-of-work...]
239
+
240
+ FLAGS
241
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
242
+ local-source discovery.
243
+ -o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
244
+ -t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
245
+ <options: service|selector|domain|unit-of-work>
246
+ --api-version=<value> Override the api version used for api requests made by this command
247
+
248
+ GLOBAL FLAGS
249
+ --flags-dir=<value> Import flag values from a directory.
250
+ --json Format output as json.
251
+
252
+ DESCRIPTION
253
+ Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is
254
+ found.
255
+
256
+ Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, and
257
+ `ApplicationFactory_DomainBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them
258
+ for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain
259
+ binding whose SObject reference is ambiguous or names a standard object that can't actually go through an
260
+ EntityDefinition metadata relationship, two records sharing a platform-unique `To__c`, two Domain records resolving to
261
+ the same SObject, and the same DeveloperName defined more than once within one binding type. Exactly one of
262
+ `--target-org` or `--source-dir` must be specified.
263
+
264
+ `ApplicationFactory_UnitOfWorkBinding__mdt` records are scanned when `--type` includes `unit-of-work` (to keep
265
+ `--type`'s meaning consistent with `binding list`) but never contribute an issue — every record contributes to one
266
+ ordered registration list with no possible wiring conflict.
267
+
268
+ Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
269
+ command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
270
+
271
+ EXAMPLES
272
+ $ sf simply aep at4dx binding validate --target-org myOrg
273
+
274
+ $ sf simply aep at4dx binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
275
+
276
+ $ sf simply aep at4dx binding validate --target-org myOrg --type service,selector
277
+
278
+ $ sf simply aep at4dx binding validate --target-org myOrg --json
279
+
280
+ FLAG DESCRIPTIONS
281
+ -t, --type=service|selector|domain|unit-of-work...
282
+
283
+ Binding type(s) to include: service, selector, domain, unit-of-work.
284
+
285
+ Comma-separated list of binding types to include. If not specified, all four are included.
286
+ ```
287
+
288
+ _See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
86
289
 
87
290
  ## `sf simply aep at4dx domain-process-binding create`
88
291
 
@@ -163,7 +366,7 @@ EXAMPLES
163
366
  $ 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
367
  ```
165
368
 
166
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.6.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
369
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
167
370
 
168
371
  ## `sf simply aep at4dx domain-process-binding list`
169
372
 
@@ -209,7 +412,7 @@ EXAMPLES
209
412
  $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
210
413
  ```
211
414
 
212
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.6.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
415
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
213
416
 
214
417
  ## `sf simply aep at4dx domain-process-binding set`
215
418
 
@@ -288,7 +491,7 @@ EXAMPLES
288
491
  $ sf simply aep at4dx domain-process-binding set --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
289
492
  ```
290
493
 
291
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.6.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/set.js)_
494
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/set.js)_
292
495
 
293
496
  ## `sf simply aep at4dx domain-process-binding validate`
294
497
 
@@ -341,5 +544,202 @@ EXAMPLES
341
544
  $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
342
545
  ```
343
546
 
344
- _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.6.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
547
+ _See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
548
+
549
+ ## `sf simply aep at4dx field-set-inclusion create`
550
+
551
+ Create a new AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a connected org.
552
+
553
+ ```
554
+ USAGE
555
+ $ sf simply aep at4dx field-set-inclusion create -n <value> -s <value> -f <value> [--json] [--flags-dir <value>] [-d <value>] [-o <value>]
556
+ [--api-version <value>] [--wait <value>] [--label <value>] [--sobject-alternate] [--active] [--force]
557
+
558
+ FLAGS
559
+ -d, --source-dir=<value> The package directory to create the field set inclusion's .md-meta.xml under. Created if
560
+ the customMetadata folder doesn't exist yet.
561
+ -f, --fieldset-name=<value> (required) FieldsetName__c — the field set to add to the selector's queried field list.
562
+ Unique org-wide across every SObject, not per-SObject.
563
+ -n, --developer-name=<value> (required) The record's DeveloperName. Must start with a letter, contain only letters,
564
+ numbers, and single underscores, not end with an underscore, and be 40 characters or
565
+ fewer.
566
+ -o, --target-org=<value> Deploy the generated field set inclusion to this org after writing it.
567
+ -s, --sobject=<value> (required) The SObject API name to bind the field set to (BindingSObject__c, or
568
+ BindingSObjectAlternate__c with --sobject-alternate).
569
+ --[no-]active IsActive__c. Defaults to true, matching the Custom Metadata Type's own default. Pass
570
+ --no-active to create it inactive.
571
+ --api-version=<value> Override the api version used for api requests made by this command
572
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation still
573
+ runs and its issues are still printed and returned.
574
+ --label=<value> The record's label. Defaults to --developer-name. Must be 40 characters or fewer.
575
+ --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this for
576
+ a SObject that can't be referenced through an EntityDefinition field at all (for example
577
+ ServiceResource and other Setup objects).
578
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
579
+
580
+ GLOBAL FLAGS
581
+ --flags-dir=<value> Import flag values from a directory.
582
+ --json Format output as json.
583
+
584
+ DESCRIPTION
585
+ Create a new AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a
586
+ connected org.
587
+
588
+ Generates a `SelectorConfig_FieldSetInclusion.<DeveloperName>.md-meta.xml` file from the given flags and writes it
589
+ under --source-dir, deploys it to --target-org, or both. Validates the resulting record — alongside everything else
590
+ already in scope — with the same rules `simply aep at4dx field-set-inclusion validate` uses, and refuses to write if
591
+ that introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is
592
+ required; both may be given at once (write to source and deploy it live in the same run). Given --target-org alone,
593
+ the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
594
+
595
+ --sobject writes BindingSObject__c by default (pass --sobject-alternate to write BindingSObjectAlternate__c instead,
596
+ for a SObject — such as ServiceResource and other Setup objects — that can't be referenced through an EntityDefinition
597
+ field at all).
598
+
599
+ EXAMPLES
600
+ $ sf simply aep at4dx field-set-inclusion create --source-dir sfdx-source/core --developer-name Account_Contact_Fields --sobject Account --fieldset-name ContactRelatedFields
601
+
602
+ $ sf simply aep at4dx field-set-inclusion create --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
603
+ ```
604
+
605
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
606
+
607
+ ## `sf simply aep at4dx field-set-inclusion list`
608
+
609
+ List the AT4DX Selector field set inclusions configured in an org or local source.
610
+
611
+ ```
612
+ USAGE
613
+ $ sf simply aep at4dx field-set-inclusion list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d
614
+ <value>...]
615
+
616
+ FLAGS
617
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
618
+ local-source discovery.
619
+ -o, --target-org=<value> Username or alias of the org to read field set inclusions from. Use this for live-org
620
+ discovery.
621
+ --api-version=<value> Override the api version used for api requests made by this command
622
+
623
+ GLOBAL FLAGS
624
+ --flags-dir=<value> Import flag values from a directory.
625
+ --json Format output as json.
626
+
627
+ DESCRIPTION
628
+ List the AT4DX Selector field set inclusions configured in an org or local source.
629
+
630
+ Reads `SelectorConfig_FieldSetInclusion__mdt` — either from a live org or from local Salesforce DX source — and lists
631
+ every record found. Unlike `simply aep at4dx binding list`, there's no priority/winner concept: every `IsActive__c:
632
+ true` record for a selector's SObject contributes its field set simultaneously, so this is a flat table, not a
633
+ resolved one. Exactly one of `--target-org` or `--source-dir` must be specified.
634
+
635
+ EXAMPLES
636
+ $ sf simply aep at4dx field-set-inclusion list --target-org myOrg
637
+
638
+ $ sf simply aep at4dx field-set-inclusion list --source-dir sfdx-source/core --source-dir sfdx-source/app
639
+
640
+ $ sf simply aep at4dx field-set-inclusion list --target-org myOrg --json
641
+ ```
642
+
643
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
644
+
645
+ ## `sf simply aep at4dx field-set-inclusion update`
646
+
647
+ Update an existing AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a connected org.
648
+
649
+ ```
650
+ USAGE
651
+ $ sf simply aep at4dx field-set-inclusion update -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o <value>] [--api-version <value>]
652
+ [--wait <value>] [--label <value>] [-s <value>] [--sobject-alternate] [-f <value>] [--active] [--force]
653
+
654
+ FLAGS
655
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
656
+ record to update.
657
+ -f, --fieldset-name=<value> FieldsetName__c — the field set to add to the selector's queried field list. Changing it
658
+ changes which field set is included. If not given, the existing value is kept.
659
+ -n, --developer-name=<value> (required) The DeveloperName of the record to update.
660
+ -o, --target-org=<value> Locate (when --source-dir isn't given) and/or deploy the record to this org.
661
+ -s, --sobject=<value> The SObject API name to bind the field set to. If not given, the existing value is kept.
662
+ --[no-]active IsActive__c. If not given, the existing value is kept. Pass --no-active to deactivate.
663
+ --api-version=<value> Override the api version used for api requests made by this command
664
+ --force Write (and deploy) even if validation finds an error-severity issue. Validation still
665
+ runs and its issues are still printed and returned.
666
+ --label=<value> The record's label. If not given, the existing label is kept.
667
+ --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a
668
+ SObject that can't be referenced through an EntityDefinition field at all (for example
669
+ ServiceResource and other Setup objects). If not given, the record keeps whichever field
670
+ it already uses — this flag only needs to be passed to change it.
671
+ --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
672
+
673
+ GLOBAL FLAGS
674
+ --flags-dir=<value> Import flag values from a directory.
675
+ --json Format output as json.
676
+
677
+ DESCRIPTION
678
+ Update an existing AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a
679
+ connected org.
680
+
681
+ Finds the field set inclusion named --developer-name in local source and/or a connected org, applies only the fields
682
+ given as flags — everything else, including which SObject reference field it uses, is preserved from the found record
683
+ — and rewrites its `.md-meta.xml` file. Validates the resulting record — alongside everything else already in scope —
684
+ with the same rules `simply aep at4dx field-set-inclusion validate` uses, and refuses to write if that introduces an
685
+ error-severity issue unless --force is passed.
686
+
687
+ When --source-dir is given, the record is located there (searched across every directory given, same as
688
+ `list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When
689
+ only --target-org is given, the record is located and updated directly in the org via a temporary file, deployed, then
690
+ discarded — no working-tree footprint.
691
+
692
+ --developer-name identifies the record to update and can't itself be changed by this command.
693
+
694
+ EXAMPLES
695
+ $ sf simply aep at4dx field-set-inclusion update --source-dir sfdx-source/core --source-dir sfdx-source/app --developer-name Account_Contact_Fields --no-active
696
+
697
+ $ sf simply aep at4dx field-set-inclusion update --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
698
+ ```
699
+
700
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
701
+
702
+ ## `sf simply aep at4dx field-set-inclusion validate`
703
+
704
+ Validate the AT4DX Selector field set inclusions configured in an org or local source, failing when a wiring problem is found.
705
+
706
+ ```
707
+ USAGE
708
+ $ sf simply aep at4dx field-set-inclusion validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>]
709
+ [-d <value>...]
710
+
711
+ FLAGS
712
+ -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
713
+ local-source discovery.
714
+ -o, --target-org=<value> Username or alias of the org to read field set inclusions from. Use this for live-org
715
+ discovery.
716
+ --api-version=<value> Override the api version used for api requests made by this command
717
+
718
+ GLOBAL FLAGS
719
+ --flags-dir=<value> Import flag values from a directory.
720
+ --json Format output as json.
721
+
722
+ DESCRIPTION
723
+ Validate the AT4DX Selector field set inclusions configured in an org or local source, failing when a wiring problem
724
+ is found.
725
+
726
+ Reads `SelectorConfig_FieldSetInclusion__mdt` — either from a live org or from local Salesforce DX source — and checks
727
+ them for problems `simply aep at4dx field-set-inclusion list` doesn't fail on: a record with no resolvable SObject, an
728
+ ambiguous SObject reference, a SObject reference naming a standard object that can't actually go through an
729
+ EntityDefinition metadata relationship, two records sharing a FieldsetName__c value (unique org-wide, not
730
+ per-SObject), and the same DeveloperName defined more than once. Exactly one of `--target-org` or `--source-dir` must
731
+ be specified.
732
+
733
+ Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
734
+ command) — use this in CI to gate on AT4DX field set inclusion wiring problems before they reach an org.
735
+
736
+ EXAMPLES
737
+ $ sf simply aep at4dx field-set-inclusion validate --target-org myOrg
738
+
739
+ $ sf simply aep at4dx field-set-inclusion validate --source-dir sfdx-source/core --source-dir sfdx-source/app
740
+
741
+ $ sf simply aep at4dx field-set-inclusion validate --target-org myOrg --json
742
+ ```
743
+
744
+ _See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
345
745
  <!-- commandsstop -->
@@ -0,0 +1,28 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ import { type At4dxBindingCreateResult, type WritableBindingTypeFlag } from '@simplysf/simply-aep-core';
3
+ /**
4
+ * Creates a new AT4DX Application Factory binding (Service/Selector/Domain) in local DX source and/or a
5
+ * connected org, validating it against everything already scanned of the same type before writing.
6
+ */
7
+ export default class At4dxBindingCreate extends SfCommand<At4dxBindingCreateResult> {
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
+ type: import("@oclif/core/interfaces").OptionFlag<WritableBindingTypeFlag, import("@oclif/core/interfaces").CustomOptions>;
17
+ 'developer-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
18
+ label: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ to: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
20
+ 'binding-interface': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ sobject: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
22
+ 'sobject-alternate': import("@oclif/core/interfaces").BooleanFlag<boolean>;
23
+ priority: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
24
+ force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
25
+ 'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
26
+ };
27
+ run(): Promise<At4dxBindingCreateResult>;
28
+ }
@@ -0,0 +1,116 @@
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 { Duration } from '@salesforce/kit';
17
+ import { Messages } from '@salesforce/core';
18
+ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
19
+ import { createBinding, WRITABLE_BINDING_TYPE_BY_FLAG, } from '@simplysf/simply-aep-core';
20
+ import { toBindingCliError } from '../../../../../common/bindingWriteError.js';
21
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
22
+ const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.binding.create');
23
+ const WRITABLE_TYPE_OPTIONS = ['service', 'selector', 'domain'];
24
+ const ISSUE_TABLE_COLUMNS = [
25
+ { key: 'severity', name: 'SEVERITY' },
26
+ { key: 'rule', name: 'RULE' },
27
+ { key: 'message', name: 'MESSAGE' },
28
+ ];
29
+ function toIssueDisplayRow(issue) {
30
+ return { severity: issue.severity, rule: issue.rule, message: issue.message };
31
+ }
32
+ /**
33
+ * Creates a new AT4DX Application Factory binding (Service/Selector/Domain) in local DX source and/or a
34
+ * connected org, validating it against everything already scanned of the same type before writing.
35
+ */
36
+ export default class At4dxBindingCreate extends SfCommand {
37
+ static summary = messages.getMessage('summary');
38
+ static description = messages.getMessage('description');
39
+ static examples = messages.getMessages('examples');
40
+ static flags = {
41
+ ...SfCommand.baseFlags,
42
+ 'source-dir': Flags.directory({
43
+ summary: messages.getMessage('flags.source-dir.summary'),
44
+ char: 'd',
45
+ }),
46
+ 'target-org': Flags.optionalOrg({
47
+ summary: messages.getMessage('flags.target-org.summary'),
48
+ char: 'o',
49
+ }),
50
+ 'api-version': Flags.orgApiVersion(),
51
+ wait: Flags.string({ summary: messages.getMessage('flags.wait.summary'), default: '33' }),
52
+ type: Flags.custom({ options: WRITABLE_TYPE_OPTIONS })({
53
+ summary: messages.getMessage('flags.type.summary'),
54
+ char: 't',
55
+ required: true,
56
+ }),
57
+ 'developer-name': Flags.string({
58
+ summary: messages.getMessage('flags.developer-name.summary'),
59
+ char: 'n',
60
+ required: true,
61
+ }),
62
+ label: Flags.string({ summary: messages.getMessage('flags.label.summary') }),
63
+ to: Flags.string({ summary: messages.getMessage('flags.to.summary'), char: 'c', required: true }),
64
+ 'binding-interface': Flags.string({ summary: messages.getMessage('flags.binding-interface.summary') }),
65
+ sobject: Flags.string({ summary: messages.getMessage('flags.sobject.summary'), char: 's' }),
66
+ 'sobject-alternate': Flags.boolean({
67
+ summary: messages.getMessage('flags.sobject-alternate.summary'),
68
+ allowNo: true,
69
+ }),
70
+ priority: Flags.string({ summary: messages.getMessage('flags.priority.summary') }),
71
+ force: Flags.boolean({ summary: messages.getMessage('flags.force.summary'), default: false }),
72
+ };
73
+ async run() {
74
+ const { flags } = await this.parse(At4dxBindingCreate);
75
+ const sourceDir = flags['source-dir'];
76
+ const targetOrg = flags['target-org'];
77
+ if (!sourceDir && !targetOrg) {
78
+ throw messages.createError('error.sourceDirOrTargetOrgRequired');
79
+ }
80
+ let priority;
81
+ if (flags.priority !== undefined) {
82
+ priority = Number(flags.priority);
83
+ if (Number.isNaN(priority)) {
84
+ throw messages.createError('error.invalidPriority', [flags.priority]);
85
+ }
86
+ }
87
+ const connection = targetOrg?.getConnection(flags['api-version']);
88
+ try {
89
+ const result = await createBinding({
90
+ bindingType: WRITABLE_BINDING_TYPE_BY_FLAG[flags.type],
91
+ developerName: flags['developer-name'],
92
+ label: flags.label,
93
+ to: flags.to,
94
+ bindingInterface: flags['binding-interface'],
95
+ sobject: flags.sobject,
96
+ sobjectAlternate: flags['sobject-alternate'],
97
+ priority,
98
+ force: flags.force,
99
+ }, { sourceDir, connection, wait: Duration.minutes(Number(flags.wait)) });
100
+ if (result.issues.length > 0) {
101
+ this.table({ data: result.issues.map(toIssueDisplayRow), columns: ISSUE_TABLE_COLUMNS });
102
+ }
103
+ this.info(messages.getMessage(result.filePath ? 'info.created' : 'info.createdInOrg', [result.developerName]));
104
+ if (result.deploy) {
105
+ this.info(messages.getMessage('info.deployed', [result.deploy.id]));
106
+ }
107
+ return result;
108
+ }
109
+ catch (error) {
110
+ throw toBindingCliError(error, messages, (issues) => {
111
+ this.table({ data: issues.map(toIssueDisplayRow), columns: ISSUE_TABLE_COLUMNS });
112
+ });
113
+ }
114
+ }
115
+ }
116
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/aep/at4dx/binding/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,aAAa,EACb,6BAA6B,GAI9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAA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B,EAAE,KAAK,CAAC,mBAAmB,CAAC;gBAC5C,QAAQ;gBACR,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB,EACD,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CACtE,CAAC;YAEF,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC7B,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;YAC3F,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;YAC/G,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;gBAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YACtE,CAAC;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;gBAClD,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC,CAAC;YACpF,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC"}
@@ -101,7 +101,7 @@ export default class At4dxBindingList extends SfCommand {
101
101
  this.spinner.start(messages.getMessage('info.scanningLocalSource'));
102
102
  let records;
103
103
  try {
104
- records = scanLocalBindings(sourceDirs, requestedTypes);
104
+ ({ records } = scanLocalBindings(sourceDirs, requestedTypes));
105
105
  }
106
106
  catch (error) {
107
107
  this.spinner.stop();