@simplysf/simply 4.1.1 → 4.2.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 (2) hide show
  1. package/README.md +68 -56
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -63,16 +63,17 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
63
63
 
64
64
  ## `sf simply aep at4dx binding create`
65
65
 
66
- Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
66
+ Create a new AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
67
67
 
68
68
  ```
69
69
  USAGE
70
- $ sf simply aep at4dx binding create -t service|selector|domain -n <value> -c <value> [--json] [--flags-dir <value>] [-d <value>]
71
- [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [--binding-interface <value>] [-s <value>]
72
- [--sobject-alternate] [--priority <value>] [--force]
70
+ $ sf simply aep at4dx binding create -t service|selector|domain|unit-of-work -n <value> [--json] [--flags-dir <value>] [-d <value>]
71
+ [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>] [--binding-interface <value>]
72
+ [-s <value>] [--sobject-alternate] [--priority <value>] [--sequence <value>] [--force]
73
73
 
74
74
  FLAGS
75
- -c, --to=<value> (required) The interface/SObject's implementing Apex class (To__c).
75
+ -c, --to=<value> The interface/SObject's implementing Apex class (To__c). Required, and only allowed,
76
+ when --type is service, selector, or domain — UnitOfWork has no To__c field.
76
77
  -d, --source-dir=<value> The package directory to create the binding's .md-meta.xml under. Created if the
77
78
  customMetadata folder doesn't exist yet.
78
79
  -n, --developer-name=<value> (required) The binding's DeveloperName. Must start with a letter, contain only
@@ -81,10 +82,10 @@ FLAGS
81
82
  -o, --target-org=<value> Deploy the generated binding to this org after writing it.
82
83
  -s, --sobject=<value> The SObject API name to bind against (BindingSObject__c, or
83
84
  BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed,
84
- when --type is selector or domain.
85
- -t, --type=<option> (required) Which Application Factory binding type to create: service, selector, or
86
- domain.
87
- <options: service|selector|domain>
85
+ when --type is selector, domain, or unit-of-work.
86
+ -t, --type=<option> (required) Which Application Factory binding type to create: service, selector,
87
+ domain, or unit-of-work.
88
+ <options: service|selector|domain|unit-of-work>
88
89
  --api-version=<value> Override the api version used for api requests made by this command
89
90
  --binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Required, and only
90
91
  allowed, when --type is service.
@@ -92,11 +93,14 @@ FLAGS
92
93
  runs and its issues are still printed and returned.
93
94
  --label=<value> The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
94
95
  --priority=<value> Priority__c. Higher numbers are higher priority; omit for least priority. Only
95
- allowed when --type is service or selector — Domain has no Priority__c field.
96
+ allowed when --type is service or selector — Domain and UnitOfWork have no
97
+ Priority__c field.
98
+ --sequence=<value> BindingSequence__c — where this SObject falls in the Unit of Work's commit order
99
+ (lower runs first). Only allowed when --type is unit-of-work.
96
100
  --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this
97
101
  for a SObject that can't be referenced through an EntityDefinition field at all (for
98
102
  example ServiceResource and other Setup objects). Only allowed when --type is
99
- selector or domain.
103
+ selector, domain, or unit-of-work.
100
104
  --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
101
105
 
102
106
  GLOBAL FLAGS
@@ -104,7 +108,8 @@ GLOBAL FLAGS
104
108
  --json Format output as json.
105
109
 
106
110
  DESCRIPTION
107
- Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
111
+ Create a new AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a
112
+ connected org.
108
113
 
109
114
  Generates a `<LocalObjectName>.<DeveloperName>.md-meta.xml` file from the given flags and writes it under
110
115
  --source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else of the
@@ -114,10 +119,12 @@ DESCRIPTION
114
119
  the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
115
120
 
116
121
  `--type service` uses --binding-interface (BindingInterface__c) and rejects --sobject/--sobject-alternate; `--type
117
- selector`/`domain` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate to write
118
- BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that can't be
119
- referenced through an EntityDefinition field at all). `--priority` is accepted for `--type service`/`selector` only;
120
- Domain has no such field.
122
+ selector`/`domain`/`unit-of-work` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate
123
+ to write BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that
124
+ can't be referenced through an EntityDefinition field at all). `--to` is required for `--type
125
+ service`/`selector`/`domain` and rejected for `--type unit-of-work`, which has no To__c field at all. `--priority` is
126
+ accepted for `--type service`/`selector` only; Domain and UnitOfWork have no such field. `--sequence`
127
+ (BindingSequence__c) is accepted for `--type unit-of-work` only.
121
128
 
122
129
  EXAMPLES
123
130
  $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type service --developer-name My_Service_Binding --binding-interface IMyService --to MyServiceImpl
@@ -127,9 +134,11 @@ EXAMPLES
127
134
  $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type domain --developer-name Account_Domain --sobject Account --to AccountDomain
128
135
 
129
136
  $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
137
+
138
+ $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type unit-of-work --developer-name Account_UOW --sobject Account --sequence 10
130
139
  ```
131
140
 
132
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
141
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
133
142
 
134
143
  ## `sf simply aep at4dx binding list`
135
144
 
@@ -185,43 +194,47 @@ FLAG DESCRIPTIONS
185
194
  Comma-separated list of binding types to include. If not specified, all four are included.
186
195
  ```
187
196
 
188
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
197
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
189
198
 
190
199
  ## `sf simply aep at4dx binding update`
191
200
 
192
- Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
201
+ Update an existing AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or a connected org.
193
202
 
194
203
  ```
195
204
  USAGE
196
- $ sf simply aep at4dx binding update -t service|selector|domain -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o
197
- <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>] [--binding-interface <value>] [-s
198
- <value>] [--sobject-alternate] [--priority <value>] [--force]
205
+ $ sf simply aep at4dx binding update -t service|selector|domain|unit-of-work -n <value> [--json] [--flags-dir <value>] [-d
206
+ <value>...] [-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>]
207
+ [--binding-interface <value>] [-s <value>] [--sobject-alternate] [--priority <value>] [--sequence <value>] [--force]
199
208
 
200
209
  FLAGS
201
- -c, --to=<value> The interface/SObject's implementing Apex class (To__c). If not given, the existing
202
- value is kept.
210
+ -c, --to=<value> The interface/SObject's implementing Apex class (To__c). Only allowed when --type is
211
+ service, selector, or domain — UnitOfWork has no To__c field. If not given, the
212
+ existing value is kept.
203
213
  -d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
204
214
  binding to update.
205
215
  -n, --developer-name=<value> (required) The DeveloperName of the binding to update.
206
216
  -o, --target-org=<value> Locate (when --source-dir isn't given) and/or deploy the binding to this org.
207
- -s, --sobject=<value> The SObject API name to bind against. Only allowed when --type is selector or domain.
208
- If not given, the existing value is kept.
209
- -t, --type=<option> (required) Which Application Factory binding type to look in: service, selector, or
210
- domain.
211
- <options: service|selector|domain>
217
+ -s, --sobject=<value> The SObject API name to bind against. Only allowed when --type is selector, domain,
218
+ or unit-of-work. If not given, the existing value is kept.
219
+ -t, --type=<option> (required) Which Application Factory binding type to look in: service, selector,
220
+ domain, or unit-of-work.
221
+ <options: service|selector|domain|unit-of-work>
212
222
  --api-version=<value> Override the api version used for api requests made by this command
213
223
  --binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Only allowed when
214
224
  --type is service. If not given, the existing value is kept.
215
225
  --force Write (and deploy) even if validation finds an error-severity issue. Validation still
216
226
  runs and its issues are still printed and returned.
217
227
  --label=<value> The binding's label. If not given, the existing label is kept.
218
- --priority=<value> Priority__c. Only allowed when --type is service or selector — Domain has no
219
- Priority__c field. If not given, the existing value is kept.
228
+ --priority=<value> Priority__c. Only allowed when --type is service or selector — Domain and UnitOfWork
229
+ have no Priority__c field. If not given, the existing value is kept.
230
+ --sequence=<value> BindingSequence__c — where this SObject falls in the Unit of Work's commit order
231
+ (lower runs first). Only allowed when --type is unit-of-work. If not given, the
232
+ existing value is kept.
220
233
  --[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a
221
234
  SObject that can't be referenced through an EntityDefinition field at all (for
222
235
  example ServiceResource and other Setup objects). Only allowed when --type is
223
- selector or domain. If not given, the binding keeps whichever field it already uses —
224
- this flag only needs to be passed to change it.
236
+ selector, domain, or unit-of-work. If not given, the binding keeps whichever field it
237
+ already uses — this flag only needs to be passed to change it.
225
238
  --wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
226
239
 
227
240
  GLOBAL FLAGS
@@ -229,8 +242,8 @@ GLOBAL FLAGS
229
242
  --json Format output as json.
230
243
 
231
244
  DESCRIPTION
232
- Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected
233
- org.
245
+ Update an existing AT4DX Application Factory binding (Service, Selector, Domain, or UnitOfWork) in local source and/or
246
+ a connected org.
234
247
 
235
248
  Finds the binding named --developer-name (of the given --type) in local source and/or a connected org, applies only
236
249
  the fields given as flags — everything else, including which SObject reference field a Selector/Domain binding uses,
@@ -250,9 +263,11 @@ EXAMPLES
250
263
  $ sf simply aep at4dx binding update --source-dir sfdx-source/core --source-dir sfdx-source/app --type selector --developer-name Account_Selector --priority 5
251
264
 
252
265
  $ sf simply aep at4dx binding update --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
266
+
267
+ $ sf simply aep at4dx binding update --target-org myOrg --type unit-of-work --developer-name Account_UOW --sequence 20
253
268
  ```
254
269
 
255
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
270
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
256
271
 
257
272
  ## `sf simply aep at4dx binding validate`
258
273
 
@@ -279,17 +294,14 @@ DESCRIPTION
279
294
  Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is
280
295
  found.
281
296
 
282
- Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, and
283
- `ApplicationFactory_DomainBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them
284
- for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain
285
- binding whose SObject reference is ambiguous or names a standard object that can't actually go through an
286
- EntityDefinition metadata relationship, two records sharing a platform-unique `To__c`, two Domain records resolving to
287
- the same SObject, and the same DeveloperName defined more than once within one binding type. Exactly one of
288
- `--target-org` or `--source-dir` must be specified.
289
-
290
- `ApplicationFactory_UnitOfWorkBinding__mdt` records are scanned when `--type` includes `unit-of-work` (to keep
291
- `--type`'s meaning consistent with `binding list`) but never contribute an issue — every record contributes to one
292
- ordered registration list with no possible wiring conflict.
297
+ Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`,
298
+ `ApplicationFactory_DomainBinding__mdt`, and `ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or
299
+ from local Salesforce DX source — and checks them for problems `simply aep at4dx binding list` doesn't fail on: a
300
+ binding with no resolvable key, a Selector/Domain/UnitOfWork binding whose SObject reference is ambiguous or names a
301
+ standard object that can't actually go through an EntityDefinition metadata relationship, two Service/Selector/Domain
302
+ records sharing a platform-unique `To__c`, two Domain (or two UnitOfWork) records resolving to the same SObject, two
303
+ UnitOfWork records sharing a `BindingSequence__c`, and the same DeveloperName defined more than once within one
304
+ binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
293
305
 
294
306
  Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
295
307
  command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
@@ -311,7 +323,7 @@ FLAG DESCRIPTIONS
311
323
  Comma-separated list of binding types to include. If not specified, all four are included.
312
324
  ```
313
325
 
314
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
326
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.9.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
315
327
 
316
328
  ## `sf simply aep at4dx domain-process-binding create`
317
329
 
@@ -392,7 +404,7 @@ EXAMPLES
392
404
  $ 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
393
405
  ```
394
406
 
395
- _See code: [@simplysf/simply-aep](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)_
407
+ _See code: [@simplysf/simply-aep](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)_
396
408
 
397
409
  ## `sf simply aep at4dx domain-process-binding list`
398
410
 
@@ -438,7 +450,7 @@ EXAMPLES
438
450
  $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
439
451
  ```
440
452
 
441
- _See code: [@simplysf/simply-aep](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)_
453
+ _See code: [@simplysf/simply-aep](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)_
442
454
 
443
455
  ## `sf simply aep at4dx domain-process-binding set`
444
456
 
@@ -517,7 +529,7 @@ EXAMPLES
517
529
  $ sf simply aep at4dx domain-process-binding set --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
518
530
  ```
519
531
 
520
- _See code: [@simplysf/simply-aep](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)_
532
+ _See code: [@simplysf/simply-aep](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)_
521
533
 
522
534
  ## `sf simply aep at4dx domain-process-binding validate`
523
535
 
@@ -570,7 +582,7 @@ EXAMPLES
570
582
  $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
571
583
  ```
572
584
 
573
- _See code: [@simplysf/simply-aep](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)_
585
+ _See code: [@simplysf/simply-aep](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)_
574
586
 
575
587
  ## `sf simply aep at4dx field-set-inclusion create`
576
588
 
@@ -628,7 +640,7 @@ EXAMPLES
628
640
  $ sf simply aep at4dx field-set-inclusion create --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
629
641
  ```
630
642
 
631
- _See code: [@simplysf/simply-aep](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)_
643
+ _See code: [@simplysf/simply-aep](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)_
632
644
 
633
645
  ## `sf simply aep at4dx field-set-inclusion list`
634
646
 
@@ -666,7 +678,7 @@ EXAMPLES
666
678
  $ sf simply aep at4dx field-set-inclusion list --target-org myOrg --json
667
679
  ```
668
680
 
669
- _See code: [@simplysf/simply-aep](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)_
681
+ _See code: [@simplysf/simply-aep](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)_
670
682
 
671
683
  ## `sf simply aep at4dx field-set-inclusion update`
672
684
 
@@ -723,7 +735,7 @@ EXAMPLES
723
735
  $ sf simply aep at4dx field-set-inclusion update --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
724
736
  ```
725
737
 
726
- _See code: [@simplysf/simply-aep](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)_
738
+ _See code: [@simplysf/simply-aep](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)_
727
739
 
728
740
  ## `sf simply aep at4dx field-set-inclusion validate`
729
741
 
@@ -767,7 +779,7 @@ EXAMPLES
767
779
  $ sf simply aep at4dx field-set-inclusion validate --target-org myOrg --json
768
780
  ```
769
781
 
770
- _See code: [@simplysf/simply-aep](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)_
782
+ _See code: [@simplysf/simply-aep](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)_
771
783
 
772
784
  ## `sf simply apex execute`
773
785
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simplysf/simply",
3
3
  "description": "Salesforce CLI Plugins created by @SimplySF",
4
- "version": "4.1.1",
4
+ "version": "4.2.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-node",
7
7
  "bugs": "https://github.com/SimplySF/simply-node/issues",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "dependencies": {
77
77
  "@oclif/core": "^4.11.2",
78
- "@simplysf/simply-aep": "^0.9.1",
78
+ "@simplysf/simply-aep": "^0.10.0",
79
79
  "@simplysf/simply-apex": "^1.6.7",
80
80
  "@simplysf/simply-community": "^0.6.3",
81
81
  "@simplysf/simply-data": "^2.4.2",
@@ -184,5 +184,5 @@
184
184
  "output": []
185
185
  }
186
186
  },
187
- "gitHead": "9f306290cf56e9d59bb54dcd209d84fddb0adabb"
187
+ "gitHead": "8546f9a3ab0f8c222b1223f728346a88ace4e379"
188
188
  }