@simplysf/simply 6.9.1 → 6.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 CHANGED
@@ -37,6 +37,11 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
37
37
  - [`sf simply aep at4dx platform-event-subscription simulate`](#sf-simply-aep-at4dx-platform-event-subscription-simulate)
38
38
  - [`sf simply aep at4dx platform-event-subscription update`](#sf-simply-aep-at4dx-platform-event-subscription-update)
39
39
  - [`sf simply aep at4dx platform-event-subscription validate`](#sf-simply-aep-at4dx-platform-event-subscription-validate)
40
+ - [`sf simply aep generate`](#sf-simply-aep-generate)
41
+ - [`sf simply aep generate domain`](#sf-simply-aep-generate-domain)
42
+ - [`sf simply aep generate selector`](#sf-simply-aep-generate-selector)
43
+ - [`sf simply aep generate service`](#sf-simply-aep-generate-service)
44
+ - [`sf simply aep generate unit-of-work`](#sf-simply-aep-generate-unit-of-work)
40
45
  - [`sf simply apex execute`](#sf-simply-apex-execute)
41
46
  - [`sf simply apex logs purge`](#sf-simply-apex-logs-purge)
42
47
  - [`sf simply apex test-suite generate`](#sf-simply-apex-test-suite-generate)
@@ -146,7 +151,7 @@ EXAMPLES
146
151
  $ sf simply aep at4dx binding create --source-dir sfdx-source/core --type unit-of-work --developer-name Account_UOW --sobject Account --sequence 10
147
152
  ```
148
153
 
149
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
154
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
150
155
 
151
156
  ## `sf simply aep at4dx binding list`
152
157
 
@@ -202,7 +207,7 @@ FLAG DESCRIPTIONS
202
207
  Comma-separated list of binding types to include. If not specified, all four are included.
203
208
  ```
204
209
 
205
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
210
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
206
211
 
207
212
  ## `sf simply aep at4dx binding update`
208
213
 
@@ -275,7 +280,7 @@ EXAMPLES
275
280
  $ sf simply aep at4dx binding update --target-org myOrg --type unit-of-work --developer-name Account_UOW --sequence 20
276
281
  ```
277
282
 
278
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
283
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
279
284
 
280
285
  ## `sf simply aep at4dx binding validate`
281
286
 
@@ -333,7 +338,7 @@ FLAG DESCRIPTIONS
333
338
  Comma-separated list of binding types to include. If not specified, all four are included.
334
339
  ```
335
340
 
336
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
341
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
337
342
 
338
343
  ## `sf simply aep at4dx domain-process-binding create`
339
344
 
@@ -414,7 +419,7 @@ EXAMPLES
414
419
  $ 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
415
420
  ```
416
421
 
417
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
422
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
418
423
 
419
424
  ## `sf simply aep at4dx domain-process-binding list`
420
425
 
@@ -460,7 +465,7 @@ EXAMPLES
460
465
  $ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
461
466
  ```
462
467
 
463
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
468
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
464
469
 
465
470
  ## `sf simply aep at4dx domain-process-binding update`
466
471
 
@@ -539,7 +544,7 @@ EXAMPLES
539
544
  $ sf simply aep at4dx domain-process-binding update --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
540
545
  ```
541
546
 
542
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/update.js)_
547
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/update.js)_
543
548
 
544
549
  ## `sf simply aep at4dx domain-process-binding validate`
545
550
 
@@ -592,7 +597,7 @@ EXAMPLES
592
597
  $ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
593
598
  ```
594
599
 
595
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
600
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
596
601
 
597
602
  ## `sf simply aep at4dx field-set-inclusion create`
598
603
 
@@ -650,7 +655,7 @@ EXAMPLES
650
655
  $ sf simply aep at4dx field-set-inclusion create --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
651
656
  ```
652
657
 
653
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
658
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js)_
654
659
 
655
660
  ## `sf simply aep at4dx field-set-inclusion list`
656
661
 
@@ -688,7 +693,7 @@ EXAMPLES
688
693
  $ sf simply aep at4dx field-set-inclusion list --target-org myOrg --json
689
694
  ```
690
695
 
691
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
696
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js)_
692
697
 
693
698
  ## `sf simply aep at4dx field-set-inclusion update`
694
699
 
@@ -745,7 +750,7 @@ EXAMPLES
745
750
  $ sf simply aep at4dx field-set-inclusion update --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
746
751
  ```
747
752
 
748
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
753
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js)_
749
754
 
750
755
  ## `sf simply aep at4dx field-set-inclusion validate`
751
756
 
@@ -789,7 +794,7 @@ EXAMPLES
789
794
  $ sf simply aep at4dx field-set-inclusion validate --target-org myOrg --json
790
795
  ```
791
796
 
792
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
797
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js)_
793
798
 
794
799
  ## `sf simply aep at4dx platform-event-subscription create`
795
800
 
@@ -885,7 +890,7 @@ EXAMPLES
885
890
  $ sf simply aep at4dx platform-event-subscription create --target-org myOrg --developer-name Account_Change_Subscriber --event-bus Account_Change__e --consumer AccountChangeConsumer --matcher-rule MatchEventBusAndCategoryAndEventName --event-category Finance --event-name AccountUpdated
886
891
  ```
887
892
 
888
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/create.js)_
893
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/create.js)_
889
894
 
890
895
  ## `sf simply aep at4dx platform-event-subscription list`
891
896
 
@@ -923,7 +928,7 @@ EXAMPLES
923
928
  $ sf simply aep at4dx platform-event-subscription list --target-org myOrg --json
924
929
  ```
925
930
 
926
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/list.js)_
931
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/list.js)_
927
932
 
928
933
  ## `sf simply aep at4dx platform-event-subscription simulate`
929
934
 
@@ -979,7 +984,7 @@ EXAMPLES
979
984
  $ sf simply aep at4dx platform-event-subscription simulate --target-org myOrg --event-bus Account_Change__e --json
980
985
  ```
981
986
 
982
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js)_
987
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/simulate.js)_
983
988
 
984
989
  ## `sf simply aep at4dx platform-event-subscription update`
985
990
 
@@ -1048,7 +1053,7 @@ EXAMPLES
1048
1053
  $ sf simply aep at4dx platform-event-subscription update --target-org myOrg --developer-name Account_Change_Subscriber --consumer AccountChangeConsumerV2
1049
1054
  ```
1050
1055
 
1051
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/update.js)_
1056
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/update.js)_
1052
1057
 
1053
1058
  ## `sf simply aep at4dx platform-event-subscription validate`
1054
1059
 
@@ -1097,7 +1102,343 @@ EXAMPLES
1097
1102
  $ sf simply aep at4dx platform-event-subscription validate --target-org myOrg --json
1098
1103
  ```
1099
1104
 
1100
- _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.15.9/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js)_
1105
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/at4dx/platform-event-subscription/validate.js)_
1106
+
1107
+ ## `sf simply aep generate`
1108
+
1109
+ Generate selector, domain, and unit-of-work layers for an SObject in one run.
1110
+
1111
+ ```
1112
+ USAGE
1113
+ $ sf simply aep generate -o <value> -s <value> -f at4dx|fflib [--json] [--flags-dir <value>] [-a <value>] [--prefix
1114
+ <value>] [--selector] [--domain] [--unit-of-work] [--sequence <value>] [-d <value>] [--dry-run] [--overwrite]
1115
+ [--force]
1116
+
1117
+ FLAGS
1118
+ -a, --api-version=<value> Override the api version used for api requests made by this command
1119
+ -d, --output-dir=<value> [default: generated-files] Directory to write into, relative to the project root unless
1120
+ absolute.
1121
+ -f, --flavor=<option> (required) Framework to generate for: at4dx or fflib.
1122
+ <options: at4dx|fflib>
1123
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1124
+ configuration variable is already set.
1125
+ -s, --sobject=<value> (required) API name of the SObject to generate for. The generators describe it in
1126
+ --target-org.
1127
+ --domain Generate the domain layer and its trigger.
1128
+ --dry-run Show the files that would be written, and any validation issues, without writing anything.
1129
+ --force Write even if validation finds an error-severity issue the generated binding records would
1130
+ introduce. The issues are still printed and returned.
1131
+ --overwrite Replace files that already exist at a planned path. Without it, the command refuses before
1132
+ writing anything.
1133
+ --prefix=<value> Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives
1134
+ ACME_Accounts).
1135
+ --selector Generate the selector layer.
1136
+ --sequence=<value> BindingSequence__c for the unit-of-work binding (at4dx only): where the SObject falls in
1137
+ the commit order, lower first.
1138
+ --unit-of-work Generate the unit-of-work binding (at4dx) or print the Application entry to add (fflib).
1139
+
1140
+ GLOBAL FLAGS
1141
+ --flags-dir=<value> Import flag values from a directory.
1142
+ --json Format output as json.
1143
+
1144
+ DESCRIPTION
1145
+ Generate selector, domain, and unit-of-work layers for an SObject in one run.
1146
+
1147
+ Describes --sobject in --target-org once and scaffolds every layer you select (at least one of --selector, --domain,
1148
+ or --unit-of-work) into --output-dir, sharing --flavor and --prefix. With --flavor at4dx each layer also gets its
1149
+ Application Factory binding record.
1150
+
1151
+ Before writing, the binding records are checked against the project's package directories and --output-dir with the
1152
+ rules `simply aep at4dx binding validate` uses. An error-severity issue they would introduce — a second Domain binding
1153
+ for the same SObject, say — stops the run unless you pass --force; problems that were already there don't. Existing
1154
+ files stop it too unless you pass --overwrite. Nothing is written in either case.
1155
+
1156
+ With --flavor fflib, --unit-of-work writes no file: fflib has no unit-of-work binding, so the command prints the
1157
+ Application factory entry to add by hand, and returns it as manualSteps.
1158
+
1159
+ EXAMPLES
1160
+ Generate all three AT4DX layers for Account:
1161
+
1162
+ $ sf simply aep generate --target-org myOrg --sobject Account --flavor at4dx --selector --domain --unit-of-work
1163
+
1164
+ Preview an fflib selector and domain with a class prefix, writing nothing:
1165
+
1166
+ $ sf simply aep generate --target-org myOrg --sobject Property__c --flavor fflib --prefix acme --selector \
1167
+ --domain --dry-run
1168
+
1169
+ FLAG DESCRIPTIONS
1170
+ -d, --output-dir=<value> Directory to write into, relative to the project root unless absolute.
1171
+
1172
+ Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's
1173
+ --output-path did, so generated paths don't move.
1174
+
1175
+ -f, --flavor=at4dx|fflib Framework to generate for: at4dx or fflib.
1176
+
1177
+ Sets the templates for every file: the interface and implementation shape, base classes, and whether Application
1178
+ Factory binding records are written. fflib writes none; at4dx writes one per layer.
1179
+ ```
1180
+
1181
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/generate.js)_
1182
+
1183
+ ## `sf simply aep generate domain`
1184
+
1185
+ Generate a domain class, its interface, test, and trigger, and its AT4DX binding for an SObject.
1186
+
1187
+ ```
1188
+ USAGE
1189
+ $ sf simply aep generate domain -o <value> -s <value> -f at4dx|fflib [--json] [--flags-dir <value>] [-a <value>] [--prefix
1190
+ <value>] [-d <value>] [--dry-run] [--overwrite] [--force]
1191
+
1192
+ FLAGS
1193
+ -a, --api-version=<value> Override the api version used for api requests made by this command
1194
+ -d, --output-dir=<value> [default: generated-files] Directory to write into, relative to the project root unless
1195
+ absolute.
1196
+ -f, --flavor=<option> (required) Framework to generate for: at4dx or fflib.
1197
+ <options: at4dx|fflib>
1198
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1199
+ configuration variable is already set.
1200
+ -s, --sobject=<value> (required) API name of the SObject to generate for. The generators describe it in
1201
+ --target-org.
1202
+ --dry-run Show the files that would be written, and any validation issues, without writing anything.
1203
+ --force Write even if validation finds an error-severity issue the generated binding records would
1204
+ introduce. The issues are still printed and returned.
1205
+ --overwrite Replace files that already exist at a planned path. Without it, the command refuses before
1206
+ writing anything.
1207
+ --prefix=<value> Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives
1208
+ ACME_Accounts).
1209
+
1210
+ GLOBAL FLAGS
1211
+ --flags-dir=<value> Import flag values from a directory.
1212
+ --json Format output as json.
1213
+
1214
+ DESCRIPTION
1215
+ Generate a domain class, its interface, test, and trigger, and its AT4DX binding for an SObject.
1216
+
1217
+ Describes --sobject in --target-org and scaffolds the domain into --output-dir: the implementation, its interface, a
1218
+ unit test, the trigger that hands every event to fflib_SObjectDomain.triggerHandler, and their -meta.xml files. With
1219
+ --flavor at4dx it also writes the ApplicationFactory_DomainBinding record.
1220
+
1221
+ An SObject can have only one Domain binding, so generating one where the project already has one fails validation;
1222
+ pass --force to write it anyway. See `simply aep generate --help` for the full --force and --overwrite rules.
1223
+
1224
+ EXAMPLES
1225
+ Generate an AT4DX domain for Account:
1226
+
1227
+ $ sf simply aep generate domain --target-org myOrg --sobject Account --flavor at4dx
1228
+
1229
+ Preview the files without writing them:
1230
+
1231
+ $ sf simply aep generate domain --target-org myOrg --sobject Account --flavor at4dx --dry-run
1232
+
1233
+ FLAG DESCRIPTIONS
1234
+ -d, --output-dir=<value> Directory to write into, relative to the project root unless absolute.
1235
+
1236
+ Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's
1237
+ --output-path did, so generated paths don't move.
1238
+
1239
+ -f, --flavor=at4dx|fflib Framework to generate for: at4dx or fflib.
1240
+
1241
+ Sets the templates for every file: the interface and implementation shape, base classes, and whether Application
1242
+ Factory binding records are written. fflib writes none; at4dx writes one per layer.
1243
+ ```
1244
+
1245
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/generate/domain.js)_
1246
+
1247
+ ## `sf simply aep generate selector`
1248
+
1249
+ Generate a selector class, its interface and test, and its AT4DX binding for an SObject.
1250
+
1251
+ ```
1252
+ USAGE
1253
+ $ sf simply aep generate selector -o <value> -s <value> -f at4dx|fflib [--json] [--flags-dir <value>] [-a <value>] [--prefix
1254
+ <value>] [-d <value>] [--dry-run] [--overwrite] [--force]
1255
+
1256
+ FLAGS
1257
+ -a, --api-version=<value> Override the api version used for api requests made by this command
1258
+ -d, --output-dir=<value> [default: generated-files] Directory to write into, relative to the project root unless
1259
+ absolute.
1260
+ -f, --flavor=<option> (required) Framework to generate for: at4dx or fflib.
1261
+ <options: at4dx|fflib>
1262
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1263
+ configuration variable is already set.
1264
+ -s, --sobject=<value> (required) API name of the SObject to generate for. The generators describe it in
1265
+ --target-org.
1266
+ --dry-run Show the files that would be written, and any validation issues, without writing anything.
1267
+ --force Write even if validation finds an error-severity issue the generated binding records would
1268
+ introduce. The issues are still printed and returned.
1269
+ --overwrite Replace files that already exist at a planned path. Without it, the command refuses before
1270
+ writing anything.
1271
+ --prefix=<value> Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives
1272
+ ACME_Accounts).
1273
+
1274
+ GLOBAL FLAGS
1275
+ --flags-dir=<value> Import flag values from a directory.
1276
+ --json Format output as json.
1277
+
1278
+ DESCRIPTION
1279
+ Generate a selector class, its interface and test, and its AT4DX binding for an SObject.
1280
+
1281
+ Describes --sobject in --target-org and scaffolds the selector into --output-dir: the implementation (selecting every
1282
+ filterable, non-textarea field), its interface, a unit test, and their -meta.xml files. With --flavor at4dx it also
1283
+ writes the ApplicationFactory_SelectorBinding record, using BindingSObject__c when EntityDefinition can reference the
1284
+ object and BindingSObjectAlternate__c when it can't.
1285
+
1286
+ The binding is checked against the project's package directories and --output-dir before anything is written; see
1287
+ `simply aep generate --help` for the --force and --overwrite rules.
1288
+
1289
+ EXAMPLES
1290
+ Generate an AT4DX selector for Account:
1291
+
1292
+ $ sf simply aep generate selector --target-org myOrg --sobject Account --flavor at4dx
1293
+
1294
+ Generate an fflib selector with a class prefix:
1295
+
1296
+ $ sf simply aep generate selector --target-org myOrg --sobject Property__c --flavor fflib --prefix acme
1297
+
1298
+ FLAG DESCRIPTIONS
1299
+ -d, --output-dir=<value> Directory to write into, relative to the project root unless absolute.
1300
+
1301
+ Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's
1302
+ --output-path did, so generated paths don't move.
1303
+
1304
+ -f, --flavor=at4dx|fflib Framework to generate for: at4dx or fflib.
1305
+
1306
+ Sets the templates for every file: the interface and implementation shape, base classes, and whether Application
1307
+ Factory binding records are written. fflib writes none; at4dx writes one per layer.
1308
+ ```
1309
+
1310
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/generate/selector.js)_
1311
+
1312
+ ## `sf simply aep generate service`
1313
+
1314
+ Generate a service facade, interface, implementation, exception, and test, and its AT4DX binding.
1315
+
1316
+ ```
1317
+ USAGE
1318
+ $ sf simply aep generate service --service-basename <value> -f at4dx|fflib [--json] [--flags-dir <value>] [-o <value>] [-a
1319
+ <value>] [--prefix <value>] [-d <value>] [--dry-run] [--overwrite] [--force]
1320
+
1321
+ FLAGS
1322
+ -a, --api-version=<value> Override the api version used for api requests made by this command
1323
+ -d, --output-dir=<value> [default: generated-files] Directory to write into, relative to the project root
1324
+ unless absolute.
1325
+ -f, --flavor=<option> (required) Framework to generate for: at4dx or fflib.
1326
+ <options: at4dx|fflib>
1327
+ -o, --target-org=<value> Org whose API version the generated metadata declares, when --api-version isn't given.
1328
+ Nothing is read from it.
1329
+ --dry-run Show the files that would be written, and any validation issues, without writing
1330
+ anything.
1331
+ --force Write even if validation finds an error-severity issue the generated binding records
1332
+ would introduce. The issues are still printed and returned.
1333
+ --overwrite Replace files that already exist at a planned path. Without it, the command refuses
1334
+ before writing anything.
1335
+ --prefix=<value> Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives
1336
+ ACME_Accounts).
1337
+ --service-basename=<value> (required) Base name for the generated classes, used as given (not pluralized).
1338
+
1339
+ GLOBAL FLAGS
1340
+ --flags-dir=<value> Import flag values from a directory.
1341
+ --json Format output as json.
1342
+
1343
+ DESCRIPTION
1344
+ Generate a service facade, interface, implementation, exception, and test, and its AT4DX binding.
1345
+
1346
+ Scaffolds a service named from --service-basename into --output-dir — `--service-basename Billing` gives
1347
+ BillingService, IBillingService, BillingServiceImpl, BillingServiceException, and BillingServiceTest — with their
1348
+ -meta.xml files. With --flavor at4dx it also writes the ApplicationFactory_ServiceBinding record mapping the interface
1349
+ to the implementation.
1350
+
1351
+ A service isn't tied to an SObject, so nothing is described and no org is needed. The generated -meta.xml files
1352
+ declare --api-version, else the version of --target-org if one is given, else 60.0.
1353
+
1354
+ EXAMPLES
1355
+ Generate an AT4DX service without an org:
1356
+
1357
+ $ sf simply aep generate service --service-basename LimitMonitors --flavor at4dx --api-version 62.0
1358
+
1359
+ Generate an fflib service at a connected org's API version:
1360
+
1361
+ $ sf simply aep generate service --target-org myOrg --service-basename Billing --flavor fflib
1362
+
1363
+ FLAG DESCRIPTIONS
1364
+ -d, --output-dir=<value> Directory to write into, relative to the project root unless absolute.
1365
+
1366
+ Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's
1367
+ --output-path did, so generated paths don't move.
1368
+
1369
+ -f, --flavor=at4dx|fflib Framework to generate for: at4dx or fflib.
1370
+
1371
+ Sets the templates for every file: the interface and implementation shape, base classes, and whether Application
1372
+ Factory binding records are written. fflib writes none; at4dx writes one per layer.
1373
+ ```
1374
+
1375
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/generate/service.js)_
1376
+
1377
+ ## `sf simply aep generate unit-of-work`
1378
+
1379
+ Generate an AT4DX unit-of-work binding for an SObject, or print the fflib Application entry to add.
1380
+
1381
+ ```
1382
+ USAGE
1383
+ $ sf simply aep generate unit-of-work -o <value> -s <value> -f at4dx|fflib [--json] [--flags-dir <value>] [-a <value>] [--prefix
1384
+ <value>] [--sequence <value>] [-d <value>] [--dry-run] [--overwrite] [--force]
1385
+
1386
+ FLAGS
1387
+ -a, --api-version=<value> Override the api version used for api requests made by this command
1388
+ -d, --output-dir=<value> [default: generated-files] Directory to write into, relative to the project root unless
1389
+ absolute.
1390
+ -f, --flavor=<option> (required) Framework to generate for: at4dx or fflib.
1391
+ <options: at4dx|fflib>
1392
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1393
+ configuration variable is already set.
1394
+ -s, --sobject=<value> (required) API name of the SObject to generate for. The generators describe it in
1395
+ --target-org.
1396
+ --dry-run Show the files that would be written, and any validation issues, without writing anything.
1397
+ --force Write even if validation finds an error-severity issue the generated binding records would
1398
+ introduce. The issues are still printed and returned.
1399
+ --overwrite Replace files that already exist at a planned path. Without it, the command refuses before
1400
+ writing anything.
1401
+ --prefix=<value> Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives
1402
+ ACME_Accounts).
1403
+ --sequence=<value> BindingSequence__c: where the SObject falls in the commit order, lower first. Defaults to
1404
+ 1000.
1405
+
1406
+ GLOBAL FLAGS
1407
+ --flags-dir=<value> Import flag values from a directory.
1408
+ --json Format output as json.
1409
+
1410
+ DESCRIPTION
1411
+ Generate an AT4DX unit-of-work binding for an SObject, or print the fflib Application entry to add.
1412
+
1413
+ With --flavor at4dx, writes the ApplicationFactory_UnitOfWorkBinding record registering --sobject with the Unit of
1414
+ Work at --sequence. With --flavor fflib nothing is written, since fflib has no unit-of-work binding: the command
1415
+ prints the Application.UnitOfWorkFactory entry to add by hand, and returns it as manualSteps.
1416
+
1417
+ Two unit-of-work bindings can't share a sequence or an SObject, so a run that would introduce either fails validation
1418
+ unless you pass --force.
1419
+
1420
+ EXAMPLES
1421
+ Register Account with the AT4DX Unit of Work:
1422
+
1423
+ $ sf simply aep generate unit-of-work --target-org myOrg --sobject Account --flavor at4dx --sequence 1000
1424
+
1425
+ Print the fflib Application entry for Account:
1426
+
1427
+ $ sf simply aep generate unit-of-work --target-org myOrg --sobject Account --flavor fflib
1428
+
1429
+ FLAG DESCRIPTIONS
1430
+ -d, --output-dir=<value> Directory to write into, relative to the project root unless absolute.
1431
+
1432
+ Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's
1433
+ --output-path did, so generated paths don't move.
1434
+
1435
+ -f, --flavor=at4dx|fflib Framework to generate for: at4dx or fflib.
1436
+
1437
+ Sets the templates for every file: the interface and implementation shape, base classes, and whether Application
1438
+ Factory binding records are written. fflib writes none; at4dx writes one per layer.
1439
+ ```
1440
+
1441
+ _See code: [@simplysf/simply-aep](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-aep@0.16.0/packages/simply-aep/lib/commands/simply/aep/generate/unit-of-work.js)_
1101
1442
 
1102
1443
  ## `sf simply apex execute`
1103
1444
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "commands": {},
3
- "version": "6.9.1"
3
+ "version": "6.10.0"
4
4
  }
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": "6.9.1",
4
+ "version": "6.10.0",
5
5
  "author": "@ClayChipps",
6
6
  "homepage": "https://github.com/SimplySF/simply-plugins",
7
7
  "bugs": "https://github.com/SimplySF/simply-plugins/issues",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@oclif/core": "^4.11.2",
79
- "@simplysf/simply-aep": "^0.15.9",
79
+ "@simplysf/simply-aep": "^0.16.0",
80
80
  "@simplysf/simply-apex": "^1.8.14",
81
81
  "@simplysf/simply-community": "^0.6.19",
82
82
  "@simplysf/simply-data": "^2.4.15",
@@ -180,5 +180,5 @@
180
180
  "output": []
181
181
  }
182
182
  },
183
- "gitHead": "bdd63b4b16d03928f5e9057aa606b4694b90cf80"
183
+ "gitHead": "507cbec8228050d9a034704936d8a8dbdcd31013"
184
184
  }