@simplysf/simply-aep 0.9.1 → 0.10.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 +68 -56
- package/lib/commands/simply/aep/at4dx/binding/create.d.ts +5 -3
- package/lib/commands/simply/aep/at4dx/binding/create.js +14 -4
- package/lib/commands/simply/aep/at4dx/binding/create.js.map +1 -1
- package/lib/commands/simply/aep/at4dx/binding/update.d.ts +4 -3
- package/lib/commands/simply/aep/at4dx/binding/update.js +13 -4
- package/lib/commands/simply/aep/at4dx/binding/update.js.map +1 -1
- package/lib/commands/simply/aep/at4dx/binding/validate.d.ts +5 -5
- package/lib/commands/simply/aep/at4dx/binding/validate.js +5 -5
- package/messages/simply.aep.at4dx.binding.create.md +17 -7
- package/messages/simply.aep.at4dx.binding.update.md +16 -6
- package/messages/simply.aep.at4dx.binding.validate.md +1 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -37,16 +37,17 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
|
|
|
37
37
|
|
|
38
38
|
## `sf simply aep at4dx binding create`
|
|
39
39
|
|
|
40
|
-
Create a new AT4DX Application Factory binding (Service, Selector, or
|
|
40
|
+
Create a new AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
USAGE
|
|
44
|
-
$ sf simply aep at4dx binding create -t service|selector|domain -n <value>
|
|
45
|
-
[-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [
|
|
46
|
-
[--sobject-alternate] [--priority <value>] [--force]
|
|
44
|
+
$ sf simply aep at4dx binding create -t service|selector|domain|unit-of-work -n <value> [--json] [--flags-dir <value>] [-d <value>]
|
|
45
|
+
[-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>] [--binding-interface <value>]
|
|
46
|
+
[-s <value>] [--sobject-alternate] [--priority <value>] [--sequence <value>] [--force]
|
|
47
47
|
|
|
48
48
|
FLAGS
|
|
49
|
-
-c, --to=<value>
|
|
49
|
+
-c, --to=<value> The interface/SObject's implementing Apex class (To__c). Required, and only allowed,
|
|
50
|
+
when --type is service, selector, or domain — UnitOfWork has no To__c field.
|
|
50
51
|
-d, --source-dir=<value> The package directory to create the binding's .md-meta.xml under. Created if the
|
|
51
52
|
customMetadata folder doesn't exist yet.
|
|
52
53
|
-n, --developer-name=<value> (required) The binding's DeveloperName. Must start with a letter, contain only
|
|
@@ -55,10 +56,10 @@ FLAGS
|
|
|
55
56
|
-o, --target-org=<value> Deploy the generated binding to this org after writing it.
|
|
56
57
|
-s, --sobject=<value> The SObject API name to bind against (BindingSObject__c, or
|
|
57
58
|
BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed,
|
|
58
|
-
when --type is selector or
|
|
59
|
-
-t, --type=<option> (required) Which Application Factory binding type to create: service, selector,
|
|
60
|
-
domain.
|
|
61
|
-
<options: service|selector|domain>
|
|
59
|
+
when --type is selector, domain, or unit-of-work.
|
|
60
|
+
-t, --type=<option> (required) Which Application Factory binding type to create: service, selector,
|
|
61
|
+
domain, or unit-of-work.
|
|
62
|
+
<options: service|selector|domain|unit-of-work>
|
|
62
63
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
63
64
|
--binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Required, and only
|
|
64
65
|
allowed, when --type is service.
|
|
@@ -66,11 +67,14 @@ FLAGS
|
|
|
66
67
|
runs and its issues are still printed and returned.
|
|
67
68
|
--label=<value> The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
|
|
68
69
|
--priority=<value> Priority__c. Higher numbers are higher priority; omit for least priority. Only
|
|
69
|
-
allowed when --type is service or selector — Domain
|
|
70
|
+
allowed when --type is service or selector — Domain and UnitOfWork have no
|
|
71
|
+
Priority__c field.
|
|
72
|
+
--sequence=<value> BindingSequence__c — where this SObject falls in the Unit of Work's commit order
|
|
73
|
+
(lower runs first). Only allowed when --type is unit-of-work.
|
|
70
74
|
--[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this
|
|
71
75
|
for a SObject that can't be referenced through an EntityDefinition field at all (for
|
|
72
76
|
example ServiceResource and other Setup objects). Only allowed when --type is
|
|
73
|
-
selector or
|
|
77
|
+
selector, domain, or unit-of-work.
|
|
74
78
|
--wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
75
79
|
|
|
76
80
|
GLOBAL FLAGS
|
|
@@ -78,7 +82,8 @@ GLOBAL FLAGS
|
|
|
78
82
|
--json Format output as json.
|
|
79
83
|
|
|
80
84
|
DESCRIPTION
|
|
81
|
-
Create a new AT4DX Application Factory binding (Service, Selector, or
|
|
85
|
+
Create a new AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a
|
|
86
|
+
connected org.
|
|
82
87
|
|
|
83
88
|
Generates a `<LocalObjectName>.<DeveloperName>.md-meta.xml` file from the given flags and writes it under
|
|
84
89
|
--source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else of the
|
|
@@ -88,10 +93,12 @@ DESCRIPTION
|
|
|
88
93
|
the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
|
|
89
94
|
|
|
90
95
|
`--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
|
|
92
|
-
BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that
|
|
93
|
-
referenced through an EntityDefinition field at all). `--
|
|
94
|
-
|
|
96
|
+
selector`/`domain`/`unit-of-work` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate
|
|
97
|
+
to write BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that
|
|
98
|
+
can't be referenced through an EntityDefinition field at all). `--to` is required for `--type
|
|
99
|
+
service`/`selector`/`domain` and rejected for `--type unit-of-work`, which has no To__c field at all. `--priority` is
|
|
100
|
+
accepted for `--type service`/`selector` only; Domain and UnitOfWork have no such field. `--sequence`
|
|
101
|
+
(BindingSequence__c) is accepted for `--type unit-of-work` only.
|
|
95
102
|
|
|
96
103
|
EXAMPLES
|
|
97
104
|
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type service --developer-name My_Service_Binding --binding-interface IMyService --to MyServiceImpl
|
|
@@ -101,9 +108,11 @@ EXAMPLES
|
|
|
101
108
|
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type domain --developer-name Account_Domain --sobject Account --to AccountDomain
|
|
102
109
|
|
|
103
110
|
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
|
|
111
|
+
|
|
112
|
+
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type unit-of-work --developer-name Account_UOW --sobject Account --sequence 10
|
|
104
113
|
```
|
|
105
114
|
|
|
106
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
115
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
|
|
107
116
|
|
|
108
117
|
## `sf simply aep at4dx binding list`
|
|
109
118
|
|
|
@@ -159,43 +168,47 @@ FLAG DESCRIPTIONS
|
|
|
159
168
|
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
160
169
|
```
|
|
161
170
|
|
|
162
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
171
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
163
172
|
|
|
164
173
|
## `sf simply aep at4dx binding update`
|
|
165
174
|
|
|
166
|
-
Update an existing AT4DX Application Factory binding (Service, Selector, or
|
|
175
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
|
|
167
176
|
|
|
168
177
|
```
|
|
169
178
|
USAGE
|
|
170
|
-
$ sf simply aep at4dx binding update -t service|selector|domain -n <value> [--json] [--flags-dir <value>] [-d
|
|
171
|
-
<value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>]
|
|
172
|
-
<value>] [--sobject-alternate] [--priority <value>] [--force]
|
|
179
|
+
$ sf simply aep at4dx binding update -t service|selector|domain|unit-of-work -n <value> [--json] [--flags-dir <value>] [-d
|
|
180
|
+
<value>...] [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>]
|
|
181
|
+
[--binding-interface <value>] [-s <value>] [--sobject-alternate] [--priority <value>] [--sequence <value>] [--force]
|
|
173
182
|
|
|
174
183
|
FLAGS
|
|
175
|
-
-c, --to=<value> The interface/SObject's implementing Apex class (To__c).
|
|
176
|
-
|
|
184
|
+
-c, --to=<value> The interface/SObject's implementing Apex class (To__c). Only allowed when --type is
|
|
185
|
+
service, selector, or domain — UnitOfWork has no To__c field. If not given, the
|
|
186
|
+
existing value is kept.
|
|
177
187
|
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
|
|
178
188
|
binding to update.
|
|
179
189
|
-n, --developer-name=<value> (required) The DeveloperName of the binding to update.
|
|
180
190
|
-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
|
|
182
|
-
If not given, the existing value is kept.
|
|
183
|
-
-t, --type=<option> (required) Which Application Factory binding type to look in: service, selector,
|
|
184
|
-
domain.
|
|
185
|
-
<options: service|selector|domain>
|
|
191
|
+
-s, --sobject=<value> The SObject API name to bind against. Only allowed when --type is selector, domain,
|
|
192
|
+
or unit-of-work. If not given, the existing value is kept.
|
|
193
|
+
-t, --type=<option> (required) Which Application Factory binding type to look in: service, selector,
|
|
194
|
+
domain, or unit-of-work.
|
|
195
|
+
<options: service|selector|domain|unit-of-work>
|
|
186
196
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
187
197
|
--binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Only allowed when
|
|
188
198
|
--type is service. If not given, the existing value is kept.
|
|
189
199
|
--force Write (and deploy) even if validation finds an error-severity issue. Validation still
|
|
190
200
|
runs and its issues are still printed and returned.
|
|
191
201
|
--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
|
|
193
|
-
Priority__c field. If not given, the existing value is kept.
|
|
202
|
+
--priority=<value> Priority__c. Only allowed when --type is service or selector — Domain and UnitOfWork
|
|
203
|
+
have no Priority__c field. If not given, the existing value is kept.
|
|
204
|
+
--sequence=<value> BindingSequence__c — where this SObject falls in the Unit of Work's commit order
|
|
205
|
+
(lower runs first). Only allowed when --type is unit-of-work. If not given, the
|
|
206
|
+
existing value is kept.
|
|
194
207
|
--[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a
|
|
195
208
|
SObject that can't be referenced through an EntityDefinition field at all (for
|
|
196
209
|
example ServiceResource and other Setup objects). Only allowed when --type is
|
|
197
|
-
selector or
|
|
198
|
-
this flag only needs to be passed to change it.
|
|
210
|
+
selector, domain, or unit-of-work. If not given, the binding keeps whichever field it
|
|
211
|
+
already uses — this flag only needs to be passed to change it.
|
|
199
212
|
--wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
200
213
|
|
|
201
214
|
GLOBAL FLAGS
|
|
@@ -203,8 +216,8 @@ GLOBAL FLAGS
|
|
|
203
216
|
--json Format output as json.
|
|
204
217
|
|
|
205
218
|
DESCRIPTION
|
|
206
|
-
Update an existing AT4DX Application Factory binding (Service, Selector, or
|
|
207
|
-
org.
|
|
219
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or
|
|
220
|
+
a connected org.
|
|
208
221
|
|
|
209
222
|
Finds the binding named --developer-name (of the given --type) in local source and/or a connected org, applies only
|
|
210
223
|
the fields given as flags — everything else, including which SObject reference field a Selector/Domain binding uses,
|
|
@@ -224,9 +237,11 @@ EXAMPLES
|
|
|
224
237
|
$ 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
238
|
|
|
226
239
|
$ sf simply aep at4dx binding update --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
|
|
240
|
+
|
|
241
|
+
$ sf simply aep at4dx binding update --target-org myOrg --type unit-of-work --developer-name Account_UOW --sequence 20
|
|
227
242
|
```
|
|
228
243
|
|
|
229
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
244
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
|
|
230
245
|
|
|
231
246
|
## `sf simply aep at4dx binding validate`
|
|
232
247
|
|
|
@@ -253,17 +268,14 @@ DESCRIPTION
|
|
|
253
268
|
Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is
|
|
254
269
|
found.
|
|
255
270
|
|
|
256
|
-
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`,
|
|
257
|
-
`ApplicationFactory_DomainBinding__mdt` — either from a live org or
|
|
258
|
-
for problems `simply aep at4dx binding list` doesn't fail on: a
|
|
259
|
-
binding whose SObject reference is ambiguous or names a
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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.
|
|
271
|
+
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`,
|
|
272
|
+
`ApplicationFactory_DomainBinding__mdt`, and `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or
|
|
273
|
+
from local Salesforce DX source — and checks them for problems `simply aep at4dx binding list` doesn't fail on: a
|
|
274
|
+
binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a
|
|
275
|
+
standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain
|
|
276
|
+
records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two
|
|
277
|
+
UnitOfWork records sharing a `BindingSequence__c`, and the same DeveloperName defined more than once within one
|
|
278
|
+
binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
267
279
|
|
|
268
280
|
Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
|
|
269
281
|
command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
|
|
@@ -285,7 +297,7 @@ FLAG DESCRIPTIONS
|
|
|
285
297
|
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
286
298
|
```
|
|
287
299
|
|
|
288
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
300
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
|
|
289
301
|
|
|
290
302
|
## `sf simply aep at4dx domain-process-binding create`
|
|
291
303
|
|
|
@@ -366,7 +378,7 @@ EXAMPLES
|
|
|
366
378
|
$ 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
|
|
367
379
|
```
|
|
368
380
|
|
|
369
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
381
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
|
|
370
382
|
|
|
371
383
|
## `sf simply aep at4dx domain-process-binding list`
|
|
372
384
|
|
|
@@ -412,7 +424,7 @@ EXAMPLES
|
|
|
412
424
|
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
413
425
|
```
|
|
414
426
|
|
|
415
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
427
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
416
428
|
|
|
417
429
|
## `sf simply aep at4dx domain-process-binding set`
|
|
418
430
|
|
|
@@ -491,7 +503,7 @@ EXAMPLES
|
|
|
491
503
|
$ sf simply aep at4dx domain-process-binding set --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
|
|
492
504
|
```
|
|
493
505
|
|
|
494
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
506
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/set.js)_
|
|
495
507
|
|
|
496
508
|
## `sf simply aep at4dx domain-process-binding validate`
|
|
497
509
|
|
|
@@ -544,7 +556,7 @@ EXAMPLES
|
|
|
544
556
|
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
|
|
545
557
|
```
|
|
546
558
|
|
|
547
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
559
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
|
|
548
560
|
|
|
549
561
|
## `sf simply aep at4dx field-set-inclusion create`
|
|
550
562
|
|
|
@@ -602,7 +614,7 @@ EXAMPLES
|
|
|
602
614
|
$ sf simply aep at4dx field-set-inclusion create --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
|
|
603
615
|
```
|
|
604
616
|
|
|
605
|
-
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
617
|
+
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
|
|
606
618
|
|
|
607
619
|
## `sf simply aep at4dx field-set-inclusion list`
|
|
608
620
|
|
|
@@ -640,7 +652,7 @@ EXAMPLES
|
|
|
640
652
|
$ sf simply aep at4dx field-set-inclusion list --target-org myOrg --json
|
|
641
653
|
```
|
|
642
654
|
|
|
643
|
-
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
655
|
+
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
|
|
644
656
|
|
|
645
657
|
## `sf simply aep at4dx field-set-inclusion update`
|
|
646
658
|
|
|
@@ -697,7 +709,7 @@ EXAMPLES
|
|
|
697
709
|
$ sf simply aep at4dx field-set-inclusion update --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
|
|
698
710
|
```
|
|
699
711
|
|
|
700
|
-
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
712
|
+
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
|
|
701
713
|
|
|
702
714
|
## `sf simply aep at4dx field-set-inclusion validate`
|
|
703
715
|
|
|
@@ -741,5 +753,5 @@ EXAMPLES
|
|
|
741
753
|
$ sf simply aep at4dx field-set-inclusion validate --target-org myOrg --json
|
|
742
754
|
```
|
|
743
755
|
|
|
744
|
-
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
756
|
+
_See code: [lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
|
|
745
757
|
<!-- commandsstop -->
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { type At4dxBindingCreateResult, type WritableBindingTypeFlag } from '@simplysf/simply-aep-core';
|
|
3
3
|
/**
|
|
4
|
-
* Creates a new AT4DX Application Factory binding (Service/Selector/Domain) in local DX
|
|
5
|
-
* connected org, validating it against everything already scanned of the same type
|
|
4
|
+
* Creates a new AT4DX Application Factory binding (Service/Selector/Domain/UnitOfWork) in local DX
|
|
5
|
+
* source and/or a connected org, validating it against everything already scanned of the same type
|
|
6
|
+
* before writing.
|
|
6
7
|
*/
|
|
7
8
|
export default class At4dxBindingCreate extends SfCommand<At4dxBindingCreateResult> {
|
|
8
9
|
static readonly summary: string;
|
|
@@ -16,11 +17,12 @@ export default class At4dxBindingCreate extends SfCommand<At4dxBindingCreateResu
|
|
|
16
17
|
type: import("@oclif/core/interfaces").OptionFlag<WritableBindingTypeFlag, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
18
|
'developer-name': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
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
|
+
to: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
21
|
'binding-interface': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
22
|
sobject: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
23
|
'sobject-alternate': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
24
|
priority: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
sequence: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
26
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
25
27
|
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
28
|
};
|
|
@@ -20,7 +20,7 @@ import { createBinding, WRITABLE_BINDING_TYPE_BY_FLAG, } from '@simplysf/simply-
|
|
|
20
20
|
import { toBindingCliError } from '../../../../../common/bindingWriteError.js';
|
|
21
21
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
22
|
const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.binding.create');
|
|
23
|
-
const WRITABLE_TYPE_OPTIONS = ['service', 'selector', 'domain'];
|
|
23
|
+
const WRITABLE_TYPE_OPTIONS = ['service', 'selector', 'domain', 'unit-of-work'];
|
|
24
24
|
const ISSUE_TABLE_COLUMNS = [
|
|
25
25
|
{ key: 'severity', name: 'SEVERITY' },
|
|
26
26
|
{ key: 'rule', name: 'RULE' },
|
|
@@ -30,8 +30,9 @@ function toIssueDisplayRow(issue) {
|
|
|
30
30
|
return { severity: issue.severity, rule: issue.rule, message: issue.message };
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Creates a new AT4DX Application Factory binding (Service/Selector/Domain) in local DX
|
|
34
|
-
* connected org, validating it against everything already scanned of the same type
|
|
33
|
+
* Creates a new AT4DX Application Factory binding (Service/Selector/Domain/UnitOfWork) in local DX
|
|
34
|
+
* source and/or a connected org, validating it against everything already scanned of the same type
|
|
35
|
+
* before writing.
|
|
35
36
|
*/
|
|
36
37
|
export default class At4dxBindingCreate extends SfCommand {
|
|
37
38
|
static summary = messages.getMessage('summary');
|
|
@@ -60,7 +61,7 @@ export default class At4dxBindingCreate extends SfCommand {
|
|
|
60
61
|
required: true,
|
|
61
62
|
}),
|
|
62
63
|
label: Flags.string({ summary: messages.getMessage('flags.label.summary') }),
|
|
63
|
-
to: Flags.string({ summary: messages.getMessage('flags.to.summary'), char: 'c'
|
|
64
|
+
to: Flags.string({ summary: messages.getMessage('flags.to.summary'), char: 'c' }),
|
|
64
65
|
'binding-interface': Flags.string({ summary: messages.getMessage('flags.binding-interface.summary') }),
|
|
65
66
|
sobject: Flags.string({ summary: messages.getMessage('flags.sobject.summary'), char: 's' }),
|
|
66
67
|
'sobject-alternate': Flags.boolean({
|
|
@@ -68,6 +69,7 @@ export default class At4dxBindingCreate extends SfCommand {
|
|
|
68
69
|
allowNo: true,
|
|
69
70
|
}),
|
|
70
71
|
priority: Flags.string({ summary: messages.getMessage('flags.priority.summary') }),
|
|
72
|
+
sequence: Flags.string({ summary: messages.getMessage('flags.sequence.summary') }),
|
|
71
73
|
force: Flags.boolean({ summary: messages.getMessage('flags.force.summary'), default: false }),
|
|
72
74
|
};
|
|
73
75
|
async run() {
|
|
@@ -84,6 +86,13 @@ export default class At4dxBindingCreate extends SfCommand {
|
|
|
84
86
|
throw messages.createError('error.invalidPriority', [flags.priority]);
|
|
85
87
|
}
|
|
86
88
|
}
|
|
89
|
+
let sequence;
|
|
90
|
+
if (flags.sequence !== undefined) {
|
|
91
|
+
sequence = Number(flags.sequence);
|
|
92
|
+
if (Number.isNaN(sequence)) {
|
|
93
|
+
throw messages.createError('error.invalidSequence', [flags.sequence]);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
87
96
|
const connection = targetOrg?.getConnection(flags['api-version']);
|
|
88
97
|
try {
|
|
89
98
|
const result = await createBinding({
|
|
@@ -95,6 +104,7 @@ export default class At4dxBindingCreate extends SfCommand {
|
|
|
95
104
|
sobject: flags.sobject,
|
|
96
105
|
sobjectAlternate: flags['sobject-alternate'],
|
|
97
106
|
priority,
|
|
107
|
+
sequence,
|
|
98
108
|
force: flags.force,
|
|
99
109
|
}, { sourceDir, connection, wait: Duration.minutes(Number(flags.wait)) });
|
|
100
110
|
if (result.issues.length > 0) {
|
|
@@ -1 +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,kB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E,mBAAmB,EAAE,CAAC,CAAC;YACpF,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { type At4dxBindingUpdateResult, type WritableBindingTypeFlag } from '@simplysf/simply-aep-core';
|
|
3
3
|
/**
|
|
4
|
-
* Updates an existing AT4DX Application Factory binding (Service/Selector/Domain) in local DX
|
|
5
|
-
* and/or a connected org — only the fields given change; everything else, including which
|
|
6
|
-
* reference field a Selector/Domain binding uses, is preserved from the found record.
|
|
4
|
+
* Updates an existing AT4DX Application Factory binding (Service/Selector/Domain/UnitOfWork) in local DX
|
|
5
|
+
* source and/or a connected org — only the fields given change; everything else, including which
|
|
6
|
+
* SObject reference field a Selector/Domain/UnitOfWork binding uses, is preserved from the found record.
|
|
7
7
|
*/
|
|
8
8
|
export default class At4dxBindingUpdate extends SfCommand<At4dxBindingUpdateResult> {
|
|
9
9
|
static readonly summary: string;
|
|
@@ -22,6 +22,7 @@ export default class At4dxBindingUpdate extends SfCommand<At4dxBindingUpdateResu
|
|
|
22
22
|
sobject: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
'sobject-alternate': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
24
24
|
priority: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
sequence: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
26
|
force: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
26
27
|
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
27
28
|
};
|
|
@@ -20,7 +20,7 @@ import { updateBinding, WRITABLE_BINDING_TYPE_BY_FLAG, } from '@simplysf/simply-
|
|
|
20
20
|
import { toBindingCliError } from '../../../../../common/bindingWriteError.js';
|
|
21
21
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
22
|
const messages = Messages.loadMessages('@simplysf/simply-aep', 'simply.aep.at4dx.binding.update');
|
|
23
|
-
const WRITABLE_TYPE_OPTIONS = ['service', 'selector', 'domain'];
|
|
23
|
+
const WRITABLE_TYPE_OPTIONS = ['service', 'selector', 'domain', 'unit-of-work'];
|
|
24
24
|
const ISSUE_TABLE_COLUMNS = [
|
|
25
25
|
{ key: 'severity', name: 'SEVERITY' },
|
|
26
26
|
{ key: 'rule', name: 'RULE' },
|
|
@@ -30,9 +30,9 @@ function toIssueDisplayRow(issue) {
|
|
|
30
30
|
return { severity: issue.severity, rule: issue.rule, message: issue.message };
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Updates an existing AT4DX Application Factory binding (Service/Selector/Domain) in local DX
|
|
34
|
-
* and/or a connected org — only the fields given change; everything else, including which
|
|
35
|
-
* reference field a Selector/Domain binding uses, is preserved from the found record.
|
|
33
|
+
* Updates an existing AT4DX Application Factory binding (Service/Selector/Domain/UnitOfWork) in local DX
|
|
34
|
+
* source and/or a connected org — only the fields given change; everything else, including which
|
|
35
|
+
* SObject reference field a Selector/Domain/UnitOfWork binding uses, is preserved from the found record.
|
|
36
36
|
*/
|
|
37
37
|
export default class At4dxBindingUpdate extends SfCommand {
|
|
38
38
|
static summary = messages.getMessage('summary');
|
|
@@ -71,6 +71,7 @@ export default class At4dxBindingUpdate extends SfCommand {
|
|
|
71
71
|
allowNo: true,
|
|
72
72
|
}),
|
|
73
73
|
priority: Flags.string({ summary: messages.getMessage('flags.priority.summary') }),
|
|
74
|
+
sequence: Flags.string({ summary: messages.getMessage('flags.sequence.summary') }),
|
|
74
75
|
force: Flags.boolean({ summary: messages.getMessage('flags.force.summary'), default: false }),
|
|
75
76
|
};
|
|
76
77
|
async run() {
|
|
@@ -87,6 +88,13 @@ export default class At4dxBindingUpdate extends SfCommand {
|
|
|
87
88
|
throw messages.createError('error.invalidPriority', [flags.priority]);
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
let sequence;
|
|
92
|
+
if (flags.sequence !== undefined) {
|
|
93
|
+
sequence = Number(flags.sequence);
|
|
94
|
+
if (Number.isNaN(sequence)) {
|
|
95
|
+
throw messages.createError('error.invalidSequence', [flags.sequence]);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
90
98
|
const connection = targetOrg?.getConnection(flags['api-version']);
|
|
91
99
|
try {
|
|
92
100
|
const result = await updateBinding({
|
|
@@ -98,6 +106,7 @@ export default class At4dxBindingUpdate extends SfCommand {
|
|
|
98
106
|
sobject: flags.sobject,
|
|
99
107
|
sobjectAlternate: flags['sobject-alternate'],
|
|
100
108
|
priority,
|
|
109
|
+
sequence,
|
|
101
110
|
force: flags.force,
|
|
102
111
|
}, { sourceDirs, connection, wait: Duration.minutes(Number(flags.wait)) });
|
|
103
112
|
if (result.issues.length > 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../src/commands/simply/aep/at4dx/binding/update.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,CAAC,sBAAsB,EAAE,iCAAiC,CAAC,CAAC;AAElG,MAAM,qBAAqB,GAA8B,CAAC,SAA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,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CACvE,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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
2
|
import { type At4dxBindingValidateResult, type BindingTypeFlag } from '@simplysf/simply-aep-core';
|
|
3
3
|
/**
|
|
4
|
-
* Validates the AT4DX Application Factory bindings (Service/Selector/Domain) configured in a
|
|
5
|
-
* or local DX source — wiring problems that are invisible to `binding list` — and fails
|
|
6
|
-
* when any of them is a real bug, for use as a CI gate. `UnitOfWork`
|
|
7
|
-
*
|
|
8
|
-
* docs/design/
|
|
4
|
+
* Validates the AT4DX Application Factory bindings (Service/Selector/Domain/UnitOfWork) configured in a
|
|
5
|
+
* target org or local DX source — wiring problems that are invisible to `binding list` — and fails
|
|
6
|
+
* (non-zero exit) when any of them is a real bug, for use as a CI gate. `UnitOfWork` bindings are
|
|
7
|
+
* validated identically to Selector/Domain except for `duplicate-to` (they have no `To__c` field at
|
|
8
|
+
* all) — see docs/design/0017-at4dx-binding-unit-of-work-write-support.md.
|
|
9
9
|
*/
|
|
10
10
|
export default class At4dxBindingValidate extends SfCommand<At4dxBindingValidateResult> {
|
|
11
11
|
static readonly summary: string;
|
|
@@ -40,11 +40,11 @@ const ISSUE_TABLE_COLUMNS = [
|
|
|
40
40
|
{ key: 'message', name: 'MESSAGE' },
|
|
41
41
|
];
|
|
42
42
|
/**
|
|
43
|
-
* Validates the AT4DX Application Factory bindings (Service/Selector/Domain) configured in a
|
|
44
|
-
* or local DX source — wiring problems that are invisible to `binding list` — and fails
|
|
45
|
-
* when any of them is a real bug, for use as a CI gate. `UnitOfWork`
|
|
46
|
-
*
|
|
47
|
-
* docs/design/
|
|
43
|
+
* Validates the AT4DX Application Factory bindings (Service/Selector/Domain/UnitOfWork) configured in a
|
|
44
|
+
* target org or local DX source — wiring problems that are invisible to `binding list` — and fails
|
|
45
|
+
* (non-zero exit) when any of them is a real bug, for use as a CI gate. `UnitOfWork` bindings are
|
|
46
|
+
* validated identically to Selector/Domain except for `duplicate-to` (they have no `To__c` field at
|
|
47
|
+
* all) — see docs/design/0017-at4dx-binding-unit-of-work-write-support.md.
|
|
48
48
|
*/
|
|
49
49
|
export default class At4dxBindingValidate extends SfCommand {
|
|
50
50
|
static summary = messages.getMessage('summary');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Create a new AT4DX Application Factory binding (Service, Selector, or
|
|
3
|
+
Create a new AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
7
|
Generates a `<LocalObjectName>.<DeveloperName>.md-meta.xml` file from the given flags and writes it under --source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else of the same --type already in scope — with the same rules `simply aep at4dx binding validate` uses, and refuses to write if that introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is required; both may be given at once (write to source and deploy it live in the same run). Given --target-org alone, the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
|
|
8
8
|
|
|
9
|
-
`--type service` uses --binding-interface (BindingInterface__c) and rejects --sobject/--sobject-alternate; `--type selector`/`domain` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate to write BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that can't be referenced through an EntityDefinition field at all). `--priority` is accepted for `--type service`/`selector` only; Domain
|
|
9
|
+
`--type service` uses --binding-interface (BindingInterface__c) and rejects --sobject/--sobject-alternate; `--type selector`/`domain`/`unit-of-work` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate to write BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that can't be referenced through an EntityDefinition field at all). `--to` is required for `--type service`/`selector`/`domain` and rejected for `--type unit-of-work`, which has no To__c field at all. `--priority` is accepted for `--type service`/`selector` only; Domain and UnitOfWork have no such field. `--sequence` (BindingSequence__c) is accepted for `--type unit-of-work` only.
|
|
10
10
|
|
|
11
11
|
# flags.source-dir.summary
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
|
22
22
|
|
|
23
23
|
# flags.type.summary
|
|
24
24
|
|
|
25
|
-
Which Application Factory binding type to create: service, selector, or
|
|
25
|
+
Which Application Factory binding type to create: service, selector, domain, or unit-of-work.
|
|
26
26
|
|
|
27
27
|
# flags.developer-name.summary
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ The binding's label. Defaults to --developer-name. Must be 40 characters or fewe
|
|
|
34
34
|
|
|
35
35
|
# flags.to.summary
|
|
36
36
|
|
|
37
|
-
The interface/SObject's implementing Apex class (To__c).
|
|
37
|
+
The interface/SObject's implementing Apex class (To__c). Required, and only allowed, when --type is service, selector, or domain — UnitOfWork has no To__c field.
|
|
38
38
|
|
|
39
39
|
# flags.binding-interface.summary
|
|
40
40
|
|
|
@@ -42,15 +42,19 @@ BindingInterface__c — the Apex interface this binding maps to. Required, and o
|
|
|
42
42
|
|
|
43
43
|
# flags.sobject.summary
|
|
44
44
|
|
|
45
|
-
The SObject API name to bind against (BindingSObject__c, or BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed, when --type is selector or
|
|
45
|
+
The SObject API name to bind against (BindingSObject__c, or BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed, when --type is selector, domain, or unit-of-work.
|
|
46
46
|
|
|
47
47
|
# flags.sobject-alternate.summary
|
|
48
48
|
|
|
49
|
-
Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this for a SObject that can't be referenced through an EntityDefinition field at all (for example ServiceResource and other Setup objects). Only allowed when --type is selector or
|
|
49
|
+
Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this for a SObject that can't be referenced through an EntityDefinition field at all (for example ServiceResource and other Setup objects). Only allowed when --type is selector, domain, or unit-of-work.
|
|
50
50
|
|
|
51
51
|
# flags.priority.summary
|
|
52
52
|
|
|
53
|
-
Priority__c. Higher numbers are higher priority; omit for least priority. Only allowed when --type is service or selector — Domain
|
|
53
|
+
Priority__c. Higher numbers are higher priority; omit for least priority. Only allowed when --type is service or selector — Domain and UnitOfWork have no Priority__c field.
|
|
54
|
+
|
|
55
|
+
# flags.sequence.summary
|
|
56
|
+
|
|
57
|
+
BindingSequence__c — where this SObject falls in the Unit of Work's commit order (lower runs first). Only allowed when --type is unit-of-work.
|
|
54
58
|
|
|
55
59
|
# flags.force.summary
|
|
56
60
|
|
|
@@ -66,6 +70,8 @@ Write (and deploy) even if validation finds an error-severity issue. Validation
|
|
|
66
70
|
|
|
67
71
|
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
|
|
68
72
|
|
|
73
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --type unit-of-work --developer-name Account_UOW --sobject Account --sequence 10
|
|
74
|
+
|
|
69
75
|
# error.sourceDirOrTargetOrgRequired
|
|
70
76
|
|
|
71
77
|
You must specify at least one of --source-dir or --target-org.
|
|
@@ -74,6 +80,10 @@ You must specify at least one of --source-dir or --target-org.
|
|
|
74
80
|
|
|
75
81
|
"%s" is not a valid --priority: it must be a number.
|
|
76
82
|
|
|
83
|
+
# error.invalidSequence
|
|
84
|
+
|
|
85
|
+
"%s" is not a valid --sequence: it must be a number.
|
|
86
|
+
|
|
77
87
|
# error.typeFieldMismatch
|
|
78
88
|
|
|
79
89
|
%s
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# summary
|
|
2
2
|
|
|
3
|
-
Update an existing AT4DX Application Factory binding (Service, Selector, or
|
|
3
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
|
24
24
|
|
|
25
25
|
# flags.type.summary
|
|
26
26
|
|
|
27
|
-
Which Application Factory binding type to look in: service, selector, or
|
|
27
|
+
Which Application Factory binding type to look in: service, selector, domain, or unit-of-work.
|
|
28
28
|
|
|
29
29
|
# flags.developer-name.summary
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ The binding's label. If not given, the existing label is kept.
|
|
|
36
36
|
|
|
37
37
|
# flags.to.summary
|
|
38
38
|
|
|
39
|
-
The interface/SObject's implementing Apex class (To__c). If not given, the existing value is kept.
|
|
39
|
+
The interface/SObject's implementing Apex class (To__c). Only allowed when --type is service, selector, or domain — UnitOfWork has no To__c field. If not given, the existing value is kept.
|
|
40
40
|
|
|
41
41
|
# flags.binding-interface.summary
|
|
42
42
|
|
|
@@ -44,15 +44,19 @@ BindingInterface__c — the Apex interface this binding maps to. Only allowed wh
|
|
|
44
44
|
|
|
45
45
|
# flags.sobject.summary
|
|
46
46
|
|
|
47
|
-
The SObject API name to bind against. Only allowed when --type is selector or
|
|
47
|
+
The SObject API name to bind against. Only allowed when --type is selector, domain, or unit-of-work. If not given, the existing value is kept.
|
|
48
48
|
|
|
49
49
|
# flags.sobject-alternate.summary
|
|
50
50
|
|
|
51
|
-
Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a SObject that can't be referenced through an EntityDefinition field at all (for example ServiceResource and other Setup objects). Only allowed when --type is selector or
|
|
51
|
+
Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a SObject that can't be referenced through an EntityDefinition field at all (for example ServiceResource and other Setup objects). Only allowed when --type is selector, domain, or unit-of-work. If not given, the binding keeps whichever field it already uses — this flag only needs to be passed to change it.
|
|
52
52
|
|
|
53
53
|
# flags.priority.summary
|
|
54
54
|
|
|
55
|
-
Priority__c. Only allowed when --type is service or selector — Domain
|
|
55
|
+
Priority__c. Only allowed when --type is service or selector — Domain and UnitOfWork have no Priority__c field. If not given, the existing value is kept.
|
|
56
|
+
|
|
57
|
+
# flags.sequence.summary
|
|
58
|
+
|
|
59
|
+
BindingSequence__c — where this SObject falls in the Unit of Work's commit order (lower runs first). Only allowed when --type is unit-of-work. If not given, the existing value is kept.
|
|
56
60
|
|
|
57
61
|
# flags.force.summary
|
|
58
62
|
|
|
@@ -64,6 +68,8 @@ Write (and deploy) even if validation finds an error-severity issue. Validation
|
|
|
64
68
|
|
|
65
69
|
- <%= config.bin %> <%= command.id %> --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
|
|
66
70
|
|
|
71
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --type unit-of-work --developer-name Account_UOW --sequence 20
|
|
72
|
+
|
|
67
73
|
# error.sourceDirOrTargetOrgRequired
|
|
68
74
|
|
|
69
75
|
You must specify at least one of --source-dir or --target-org.
|
|
@@ -72,6 +78,10 @@ You must specify at least one of --source-dir or --target-org.
|
|
|
72
78
|
|
|
73
79
|
"%s" is not a valid --priority: it must be a number.
|
|
74
80
|
|
|
81
|
+
# error.invalidSequence
|
|
82
|
+
|
|
83
|
+
"%s" is not a valid --sequence: it must be a number.
|
|
84
|
+
|
|
75
85
|
# error.typeFieldMismatch
|
|
76
86
|
|
|
77
87
|
%s
|
|
@@ -4,9 +4,7 @@ Validate the AT4DX Application Factory bindings configured in an org or local so
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, and `
|
|
8
|
-
|
|
9
|
-
`ApplicationFactory_UnitOfWorkBinding__mdt` records are scanned when `--type` includes `unit-of-work` (to keep `--type`'s meaning consistent with `binding list`) but never contribute an issue — every record contributes to one ordered registration list with no possible wiring conflict.
|
|
7
|
+
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two UnitOfWork records sharing a `BindingSequence__c`, and the same DeveloperName defined more than once within one binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
10
8
|
|
|
11
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 Application Factory wiring problems before they reach an org.
|
|
12
10
|
|
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
|
+
"version": "0.10.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-node",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-node/issues",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@salesforce/core": "^8.30.0",
|
|
61
61
|
"@salesforce/kit": "^3.2.6",
|
|
62
62
|
"@salesforce/sf-plugins-core": "^12.2.16",
|
|
63
|
-
"@simplysf/simply-aep-core": "^0.
|
|
63
|
+
"@simplysf/simply-aep-core": "^0.9.0",
|
|
64
64
|
"@simplysf/simply-core": "^1.5.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
@@ -208,5 +208,5 @@
|
|
|
208
208
|
"output": []
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
"gitHead": "
|
|
211
|
+
"gitHead": "8546f9a3ab0f8c222b1223f728346a88ace4e379"
|
|
212
212
|
}
|