@simplysf/simply-aep 0.15.9 → 0.16.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 (30) hide show
  1. package/README.md +358 -17
  2. package/lib/commands/simply/aep/generate/domain.d.ts +21 -0
  3. package/lib/commands/simply/aep/generate/domain.js +41 -0
  4. package/lib/commands/simply/aep/generate/domain.js.map +1 -0
  5. package/lib/commands/simply/aep/generate/selector.d.ts +21 -0
  6. package/lib/commands/simply/aep/generate/selector.js +41 -0
  7. package/lib/commands/simply/aep/generate/selector.js.map +1 -0
  8. package/lib/commands/simply/aep/generate/service.d.ts +21 -0
  9. package/lib/commands/simply/aep/generate/service.js +45 -0
  10. package/lib/commands/simply/aep/generate/service.js.map +1 -0
  11. package/lib/commands/simply/aep/generate/unit-of-work.d.ts +22 -0
  12. package/lib/commands/simply/aep/generate/unit-of-work.js +42 -0
  13. package/lib/commands/simply/aep/generate/unit-of-work.js.map +1 -0
  14. package/lib/commands/simply/aep/generate.d.ts +25 -0
  15. package/lib/commands/simply/aep/generate.js +45 -0
  16. package/lib/commands/simply/aep/generate.js.map +1 -0
  17. package/lib/common/generate/flags.d.ts +27 -0
  18. package/lib/common/generate/flags.js +63 -0
  19. package/lib/common/generate/flags.js.map +1 -0
  20. package/lib/common/generate/runGeneration.d.ts +52 -0
  21. package/lib/common/generate/runGeneration.js +196 -0
  22. package/lib/common/generate/runGeneration.js.map +1 -0
  23. package/messages/simply.aep.generate.common.md +78 -0
  24. package/messages/simply.aep.generate.domain.md +19 -0
  25. package/messages/simply.aep.generate.md +37 -0
  26. package/messages/simply.aep.generate.selector.md +19 -0
  27. package/messages/simply.aep.generate.service.md +23 -0
  28. package/messages/simply.aep.generate.unit-of-work.md +23 -0
  29. package/oclif.manifest.json +747 -1
  30. package/package.json +5 -4
@@ -1,5 +1,751 @@
1
1
  {
2
2
  "commands": {
3
+ "simply:aep:generate": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Describes --sobject in --target-org once and scaffolds every layer you select (at least one of --selector, --domain, or --unit-of-work) into --output-dir, sharing --flavor and --prefix. With --flavor at4dx each layer also gets its Application Factory binding record.\n\nBefore writing, the binding records are checked against the project's package directories and --output-dir with the rules `simply aep at4dx binding validate` uses. An error-severity issue they would introduce — a second Domain binding for the same SObject, say — stops the run unless you pass --force; problems that were already there don't. Existing files stop it too unless you pass --overwrite. Nothing is written in either case.\n\nWith --flavor fflib, --unit-of-work writes no file: fflib has no unit-of-work binding, so the command prints the Application factory entry to add by hand, and returns it as manualSteps.",
7
+ "examples": [
8
+ "Generate all three AT4DX layers for Account:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor at4dx --selector --domain --unit-of-work",
9
+ "Preview an fflib selector and domain with a class prefix, writing nothing:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Property__c --flavor fflib --prefix acme --selector --domain --dry-run"
10
+ ],
11
+ "flags": {
12
+ "json": {
13
+ "description": "Format output as json.",
14
+ "helpGroup": "GLOBAL",
15
+ "name": "json",
16
+ "allowNo": false,
17
+ "type": "boolean"
18
+ },
19
+ "flags-dir": {
20
+ "helpGroup": "GLOBAL",
21
+ "name": "flags-dir",
22
+ "summary": "Import flag values from a directory.",
23
+ "hasDynamicHelp": false,
24
+ "multiple": false,
25
+ "type": "option"
26
+ },
27
+ "api-version": {
28
+ "char": "a",
29
+ "description": "Override the api version used for api requests made by this command",
30
+ "name": "api-version",
31
+ "hasDynamicHelp": false,
32
+ "multiple": false,
33
+ "type": "option"
34
+ },
35
+ "target-org": {
36
+ "char": "o",
37
+ "name": "target-org",
38
+ "noCacheDefault": true,
39
+ "required": true,
40
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
41
+ "hasDynamicHelp": true,
42
+ "multiple": false,
43
+ "type": "option"
44
+ },
45
+ "sobject": {
46
+ "char": "s",
47
+ "name": "sobject",
48
+ "required": true,
49
+ "summary": "API name of the SObject to generate for. The generators describe it in --target-org.",
50
+ "hasDynamicHelp": false,
51
+ "multiple": false,
52
+ "type": "option"
53
+ },
54
+ "flavor": {
55
+ "char": "f",
56
+ "description": "Sets the templates for every file: the interface and implementation shape, base classes, and whether Application Factory binding records are written. fflib writes none; at4dx writes one per layer.",
57
+ "name": "flavor",
58
+ "required": true,
59
+ "summary": "Framework to generate for: at4dx or fflib.",
60
+ "hasDynamicHelp": false,
61
+ "multiple": false,
62
+ "options": [
63
+ "at4dx",
64
+ "fflib"
65
+ ],
66
+ "type": "option"
67
+ },
68
+ "prefix": {
69
+ "name": "prefix",
70
+ "summary": "Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives ACME_Accounts).",
71
+ "hasDynamicHelp": false,
72
+ "multiple": false,
73
+ "type": "option"
74
+ },
75
+ "selector": {
76
+ "name": "selector",
77
+ "summary": "Generate the selector layer.",
78
+ "allowNo": false,
79
+ "type": "boolean"
80
+ },
81
+ "domain": {
82
+ "name": "domain",
83
+ "summary": "Generate the domain layer and its trigger.",
84
+ "allowNo": false,
85
+ "type": "boolean"
86
+ },
87
+ "unit-of-work": {
88
+ "name": "unit-of-work",
89
+ "summary": "Generate the unit-of-work binding (at4dx) or print the Application entry to add (fflib).",
90
+ "allowNo": false,
91
+ "type": "boolean"
92
+ },
93
+ "sequence": {
94
+ "name": "sequence",
95
+ "summary": "BindingSequence__c for the unit-of-work binding (at4dx only): where the SObject falls in the commit order, lower first.",
96
+ "hasDynamicHelp": false,
97
+ "multiple": false,
98
+ "type": "option"
99
+ },
100
+ "output-dir": {
101
+ "char": "d",
102
+ "description": "Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's --output-path did, so generated paths don't move.",
103
+ "name": "output-dir",
104
+ "summary": "Directory to write into, relative to the project root unless absolute.",
105
+ "default": "generated-files",
106
+ "hasDynamicHelp": false,
107
+ "multiple": false,
108
+ "type": "option"
109
+ },
110
+ "dry-run": {
111
+ "name": "dry-run",
112
+ "summary": "Show the files that would be written, and any validation issues, without writing anything.",
113
+ "allowNo": false,
114
+ "type": "boolean"
115
+ },
116
+ "overwrite": {
117
+ "name": "overwrite",
118
+ "summary": "Replace files that already exist at a planned path. Without it, the command refuses before writing anything.",
119
+ "allowNo": false,
120
+ "type": "boolean"
121
+ },
122
+ "force": {
123
+ "name": "force",
124
+ "summary": "Write even if validation finds an error-severity issue the generated binding records would introduce. The issues are still printed and returned.",
125
+ "allowNo": false,
126
+ "type": "boolean"
127
+ }
128
+ },
129
+ "hasDynamicHelp": true,
130
+ "hiddenAliases": [],
131
+ "id": "simply:aep:generate",
132
+ "pluginAlias": "@simplysf/simply-aep",
133
+ "pluginName": "@simplysf/simply-aep",
134
+ "pluginType": "core",
135
+ "strict": true,
136
+ "summary": "Generate selector, domain, and unit-of-work layers for an SObject in one run.",
137
+ "enableJsonFlag": true,
138
+ "isESM": true,
139
+ "relativePath": [
140
+ "lib",
141
+ "commands",
142
+ "simply",
143
+ "aep",
144
+ "generate.js"
145
+ ],
146
+ "aliasPermutations": [],
147
+ "permutations": [
148
+ "simply:aep:generate",
149
+ "aep:simply:generate",
150
+ "aep:generate:simply",
151
+ "simply:generate:aep",
152
+ "generate:simply:aep",
153
+ "generate:aep:simply"
154
+ ]
155
+ },
156
+ "simply:aep:generate:domain": {
157
+ "aliases": [],
158
+ "args": {},
159
+ "description": "Describes --sobject in --target-org and scaffolds the domain into --output-dir: the implementation, its interface, a unit test, the trigger that hands every event to fflib_SObjectDomain.triggerHandler, and their -meta.xml files. With --flavor at4dx it also writes the ApplicationFactory_DomainBinding record.\n\nAn SObject can have only one Domain binding, so generating one where the project already has one fails validation; pass --force to write it anyway. See `simply aep generate --help` for the full --force and --overwrite rules.",
160
+ "examples": [
161
+ "Generate an AT4DX domain for Account:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor at4dx",
162
+ "Preview the files without writing them:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor at4dx --dry-run"
163
+ ],
164
+ "flags": {
165
+ "json": {
166
+ "description": "Format output as json.",
167
+ "helpGroup": "GLOBAL",
168
+ "name": "json",
169
+ "allowNo": false,
170
+ "type": "boolean"
171
+ },
172
+ "flags-dir": {
173
+ "helpGroup": "GLOBAL",
174
+ "name": "flags-dir",
175
+ "summary": "Import flag values from a directory.",
176
+ "hasDynamicHelp": false,
177
+ "multiple": false,
178
+ "type": "option"
179
+ },
180
+ "api-version": {
181
+ "char": "a",
182
+ "description": "Override the api version used for api requests made by this command",
183
+ "name": "api-version",
184
+ "hasDynamicHelp": false,
185
+ "multiple": false,
186
+ "type": "option"
187
+ },
188
+ "target-org": {
189
+ "char": "o",
190
+ "name": "target-org",
191
+ "noCacheDefault": true,
192
+ "required": true,
193
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
194
+ "hasDynamicHelp": true,
195
+ "multiple": false,
196
+ "type": "option"
197
+ },
198
+ "sobject": {
199
+ "char": "s",
200
+ "name": "sobject",
201
+ "required": true,
202
+ "summary": "API name of the SObject to generate for. The generators describe it in --target-org.",
203
+ "hasDynamicHelp": false,
204
+ "multiple": false,
205
+ "type": "option"
206
+ },
207
+ "flavor": {
208
+ "char": "f",
209
+ "description": "Sets the templates for every file: the interface and implementation shape, base classes, and whether Application Factory binding records are written. fflib writes none; at4dx writes one per layer.",
210
+ "name": "flavor",
211
+ "required": true,
212
+ "summary": "Framework to generate for: at4dx or fflib.",
213
+ "hasDynamicHelp": false,
214
+ "multiple": false,
215
+ "options": [
216
+ "at4dx",
217
+ "fflib"
218
+ ],
219
+ "type": "option"
220
+ },
221
+ "prefix": {
222
+ "name": "prefix",
223
+ "summary": "Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives ACME_Accounts).",
224
+ "hasDynamicHelp": false,
225
+ "multiple": false,
226
+ "type": "option"
227
+ },
228
+ "output-dir": {
229
+ "char": "d",
230
+ "description": "Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's --output-path did, so generated paths don't move.",
231
+ "name": "output-dir",
232
+ "summary": "Directory to write into, relative to the project root unless absolute.",
233
+ "default": "generated-files",
234
+ "hasDynamicHelp": false,
235
+ "multiple": false,
236
+ "type": "option"
237
+ },
238
+ "dry-run": {
239
+ "name": "dry-run",
240
+ "summary": "Show the files that would be written, and any validation issues, without writing anything.",
241
+ "allowNo": false,
242
+ "type": "boolean"
243
+ },
244
+ "overwrite": {
245
+ "name": "overwrite",
246
+ "summary": "Replace files that already exist at a planned path. Without it, the command refuses before writing anything.",
247
+ "allowNo": false,
248
+ "type": "boolean"
249
+ },
250
+ "force": {
251
+ "name": "force",
252
+ "summary": "Write even if validation finds an error-severity issue the generated binding records would introduce. The issues are still printed and returned.",
253
+ "allowNo": false,
254
+ "type": "boolean"
255
+ }
256
+ },
257
+ "hasDynamicHelp": true,
258
+ "hiddenAliases": [],
259
+ "id": "simply:aep:generate:domain",
260
+ "pluginAlias": "@simplysf/simply-aep",
261
+ "pluginName": "@simplysf/simply-aep",
262
+ "pluginType": "core",
263
+ "strict": true,
264
+ "summary": "Generate a domain class, its interface, test, and trigger, and its AT4DX binding for an SObject.",
265
+ "enableJsonFlag": true,
266
+ "isESM": true,
267
+ "relativePath": [
268
+ "lib",
269
+ "commands",
270
+ "simply",
271
+ "aep",
272
+ "generate",
273
+ "domain.js"
274
+ ],
275
+ "aliasPermutations": [],
276
+ "permutations": [
277
+ "simply:aep:generate:domain",
278
+ "aep:simply:generate:domain",
279
+ "aep:generate:simply:domain",
280
+ "aep:generate:domain:simply",
281
+ "simply:generate:aep:domain",
282
+ "generate:simply:aep:domain",
283
+ "generate:aep:simply:domain",
284
+ "generate:aep:domain:simply",
285
+ "simply:generate:domain:aep",
286
+ "generate:simply:domain:aep",
287
+ "generate:domain:simply:aep",
288
+ "generate:domain:aep:simply",
289
+ "simply:aep:domain:generate",
290
+ "aep:simply:domain:generate",
291
+ "aep:domain:simply:generate",
292
+ "aep:domain:generate:simply",
293
+ "simply:domain:aep:generate",
294
+ "domain:simply:aep:generate",
295
+ "domain:aep:simply:generate",
296
+ "domain:aep:generate:simply",
297
+ "simply:domain:generate:aep",
298
+ "domain:simply:generate:aep",
299
+ "domain:generate:simply:aep",
300
+ "domain:generate:aep:simply"
301
+ ]
302
+ },
303
+ "simply:aep:generate:selector": {
304
+ "aliases": [],
305
+ "args": {},
306
+ "description": "Describes --sobject in --target-org and scaffolds the selector into --output-dir: the implementation (selecting every filterable, non-textarea field), its interface, a unit test, and their -meta.xml files. With --flavor at4dx it also writes the ApplicationFactory_SelectorBinding record, using BindingSObject__c when EntityDefinition can reference the object and BindingSObjectAlternate__c when it can't.\n\nThe binding is checked against the project's package directories and --output-dir before anything is written; see `simply aep generate --help` for the --force and --overwrite rules.",
307
+ "examples": [
308
+ "Generate an AT4DX selector for Account:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor at4dx",
309
+ "Generate an fflib selector with a class prefix:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Property__c --flavor fflib --prefix acme"
310
+ ],
311
+ "flags": {
312
+ "json": {
313
+ "description": "Format output as json.",
314
+ "helpGroup": "GLOBAL",
315
+ "name": "json",
316
+ "allowNo": false,
317
+ "type": "boolean"
318
+ },
319
+ "flags-dir": {
320
+ "helpGroup": "GLOBAL",
321
+ "name": "flags-dir",
322
+ "summary": "Import flag values from a directory.",
323
+ "hasDynamicHelp": false,
324
+ "multiple": false,
325
+ "type": "option"
326
+ },
327
+ "api-version": {
328
+ "char": "a",
329
+ "description": "Override the api version used for api requests made by this command",
330
+ "name": "api-version",
331
+ "hasDynamicHelp": false,
332
+ "multiple": false,
333
+ "type": "option"
334
+ },
335
+ "target-org": {
336
+ "char": "o",
337
+ "name": "target-org",
338
+ "noCacheDefault": true,
339
+ "required": true,
340
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
341
+ "hasDynamicHelp": true,
342
+ "multiple": false,
343
+ "type": "option"
344
+ },
345
+ "sobject": {
346
+ "char": "s",
347
+ "name": "sobject",
348
+ "required": true,
349
+ "summary": "API name of the SObject to generate for. The generators describe it in --target-org.",
350
+ "hasDynamicHelp": false,
351
+ "multiple": false,
352
+ "type": "option"
353
+ },
354
+ "flavor": {
355
+ "char": "f",
356
+ "description": "Sets the templates for every file: the interface and implementation shape, base classes, and whether Application Factory binding records are written. fflib writes none; at4dx writes one per layer.",
357
+ "name": "flavor",
358
+ "required": true,
359
+ "summary": "Framework to generate for: at4dx or fflib.",
360
+ "hasDynamicHelp": false,
361
+ "multiple": false,
362
+ "options": [
363
+ "at4dx",
364
+ "fflib"
365
+ ],
366
+ "type": "option"
367
+ },
368
+ "prefix": {
369
+ "name": "prefix",
370
+ "summary": "Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives ACME_Accounts).",
371
+ "hasDynamicHelp": false,
372
+ "multiple": false,
373
+ "type": "option"
374
+ },
375
+ "output-dir": {
376
+ "char": "d",
377
+ "description": "Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's --output-path did, so generated paths don't move.",
378
+ "name": "output-dir",
379
+ "summary": "Directory to write into, relative to the project root unless absolute.",
380
+ "default": "generated-files",
381
+ "hasDynamicHelp": false,
382
+ "multiple": false,
383
+ "type": "option"
384
+ },
385
+ "dry-run": {
386
+ "name": "dry-run",
387
+ "summary": "Show the files that would be written, and any validation issues, without writing anything.",
388
+ "allowNo": false,
389
+ "type": "boolean"
390
+ },
391
+ "overwrite": {
392
+ "name": "overwrite",
393
+ "summary": "Replace files that already exist at a planned path. Without it, the command refuses before writing anything.",
394
+ "allowNo": false,
395
+ "type": "boolean"
396
+ },
397
+ "force": {
398
+ "name": "force",
399
+ "summary": "Write even if validation finds an error-severity issue the generated binding records would introduce. The issues are still printed and returned.",
400
+ "allowNo": false,
401
+ "type": "boolean"
402
+ }
403
+ },
404
+ "hasDynamicHelp": true,
405
+ "hiddenAliases": [],
406
+ "id": "simply:aep:generate:selector",
407
+ "pluginAlias": "@simplysf/simply-aep",
408
+ "pluginName": "@simplysf/simply-aep",
409
+ "pluginType": "core",
410
+ "strict": true,
411
+ "summary": "Generate a selector class, its interface and test, and its AT4DX binding for an SObject.",
412
+ "enableJsonFlag": true,
413
+ "isESM": true,
414
+ "relativePath": [
415
+ "lib",
416
+ "commands",
417
+ "simply",
418
+ "aep",
419
+ "generate",
420
+ "selector.js"
421
+ ],
422
+ "aliasPermutations": [],
423
+ "permutations": [
424
+ "simply:aep:generate:selector",
425
+ "aep:simply:generate:selector",
426
+ "aep:generate:simply:selector",
427
+ "aep:generate:selector:simply",
428
+ "simply:generate:aep:selector",
429
+ "generate:simply:aep:selector",
430
+ "generate:aep:simply:selector",
431
+ "generate:aep:selector:simply",
432
+ "simply:generate:selector:aep",
433
+ "generate:simply:selector:aep",
434
+ "generate:selector:simply:aep",
435
+ "generate:selector:aep:simply",
436
+ "simply:aep:selector:generate",
437
+ "aep:simply:selector:generate",
438
+ "aep:selector:simply:generate",
439
+ "aep:selector:generate:simply",
440
+ "simply:selector:aep:generate",
441
+ "selector:simply:aep:generate",
442
+ "selector:aep:simply:generate",
443
+ "selector:aep:generate:simply",
444
+ "simply:selector:generate:aep",
445
+ "selector:simply:generate:aep",
446
+ "selector:generate:simply:aep",
447
+ "selector:generate:aep:simply"
448
+ ]
449
+ },
450
+ "simply:aep:generate:service": {
451
+ "aliases": [],
452
+ "args": {},
453
+ "description": "Scaffolds a service named from --service-basename into --output-dir — `--service-basename Billing` gives BillingService, IBillingService, BillingServiceImpl, BillingServiceException, and BillingServiceTest — with their -meta.xml files. With --flavor at4dx it also writes the ApplicationFactory_ServiceBinding record mapping the interface to the implementation.\n\nA service isn't tied to an SObject, so nothing is described and no org is needed. The generated -meta.xml files declare --api-version, else the version of --target-org if one is given, else 60.0.",
454
+ "examples": [
455
+ "Generate an AT4DX service without an org:\n<%= config.bin %> <%= command.id %> --service-basename LimitMonitors --flavor at4dx --api-version 62.0",
456
+ "Generate an fflib service at a connected org's API version:\n<%= config.bin %> <%= command.id %> --target-org myOrg --service-basename Billing --flavor fflib"
457
+ ],
458
+ "flags": {
459
+ "json": {
460
+ "description": "Format output as json.",
461
+ "helpGroup": "GLOBAL",
462
+ "name": "json",
463
+ "allowNo": false,
464
+ "type": "boolean"
465
+ },
466
+ "flags-dir": {
467
+ "helpGroup": "GLOBAL",
468
+ "name": "flags-dir",
469
+ "summary": "Import flag values from a directory.",
470
+ "hasDynamicHelp": false,
471
+ "multiple": false,
472
+ "type": "option"
473
+ },
474
+ "target-org": {
475
+ "char": "o",
476
+ "name": "target-org",
477
+ "noCacheDefault": true,
478
+ "summary": "Org whose API version the generated metadata declares, when --api-version isn't given. Nothing is read from it.",
479
+ "hasDynamicHelp": true,
480
+ "multiple": false,
481
+ "type": "option"
482
+ },
483
+ "api-version": {
484
+ "char": "a",
485
+ "description": "Override the api version used for api requests made by this command",
486
+ "name": "api-version",
487
+ "hasDynamicHelp": false,
488
+ "multiple": false,
489
+ "type": "option"
490
+ },
491
+ "service-basename": {
492
+ "name": "service-basename",
493
+ "required": true,
494
+ "summary": "Base name for the generated classes, used as given (not pluralized).",
495
+ "hasDynamicHelp": false,
496
+ "multiple": false,
497
+ "type": "option"
498
+ },
499
+ "flavor": {
500
+ "char": "f",
501
+ "description": "Sets the templates for every file: the interface and implementation shape, base classes, and whether Application Factory binding records are written. fflib writes none; at4dx writes one per layer.",
502
+ "name": "flavor",
503
+ "required": true,
504
+ "summary": "Framework to generate for: at4dx or fflib.",
505
+ "hasDynamicHelp": false,
506
+ "multiple": false,
507
+ "options": [
508
+ "at4dx",
509
+ "fflib"
510
+ ],
511
+ "type": "option"
512
+ },
513
+ "prefix": {
514
+ "name": "prefix",
515
+ "summary": "Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives ACME_Accounts).",
516
+ "hasDynamicHelp": false,
517
+ "multiple": false,
518
+ "type": "option"
519
+ },
520
+ "output-dir": {
521
+ "char": "d",
522
+ "description": "Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's --output-path did, so generated paths don't move.",
523
+ "name": "output-dir",
524
+ "summary": "Directory to write into, relative to the project root unless absolute.",
525
+ "default": "generated-files",
526
+ "hasDynamicHelp": false,
527
+ "multiple": false,
528
+ "type": "option"
529
+ },
530
+ "dry-run": {
531
+ "name": "dry-run",
532
+ "summary": "Show the files that would be written, and any validation issues, without writing anything.",
533
+ "allowNo": false,
534
+ "type": "boolean"
535
+ },
536
+ "overwrite": {
537
+ "name": "overwrite",
538
+ "summary": "Replace files that already exist at a planned path. Without it, the command refuses before writing anything.",
539
+ "allowNo": false,
540
+ "type": "boolean"
541
+ },
542
+ "force": {
543
+ "name": "force",
544
+ "summary": "Write even if validation finds an error-severity issue the generated binding records would introduce. The issues are still printed and returned.",
545
+ "allowNo": false,
546
+ "type": "boolean"
547
+ }
548
+ },
549
+ "hasDynamicHelp": true,
550
+ "hiddenAliases": [],
551
+ "id": "simply:aep:generate:service",
552
+ "pluginAlias": "@simplysf/simply-aep",
553
+ "pluginName": "@simplysf/simply-aep",
554
+ "pluginType": "core",
555
+ "strict": true,
556
+ "summary": "Generate a service facade, interface, implementation, exception, and test, and its AT4DX binding.",
557
+ "enableJsonFlag": true,
558
+ "isESM": true,
559
+ "relativePath": [
560
+ "lib",
561
+ "commands",
562
+ "simply",
563
+ "aep",
564
+ "generate",
565
+ "service.js"
566
+ ],
567
+ "aliasPermutations": [],
568
+ "permutations": [
569
+ "simply:aep:generate:service",
570
+ "aep:simply:generate:service",
571
+ "aep:generate:simply:service",
572
+ "aep:generate:service:simply",
573
+ "simply:generate:aep:service",
574
+ "generate:simply:aep:service",
575
+ "generate:aep:simply:service",
576
+ "generate:aep:service:simply",
577
+ "simply:generate:service:aep",
578
+ "generate:simply:service:aep",
579
+ "generate:service:simply:aep",
580
+ "generate:service:aep:simply",
581
+ "simply:aep:service:generate",
582
+ "aep:simply:service:generate",
583
+ "aep:service:simply:generate",
584
+ "aep:service:generate:simply",
585
+ "simply:service:aep:generate",
586
+ "service:simply:aep:generate",
587
+ "service:aep:simply:generate",
588
+ "service:aep:generate:simply",
589
+ "simply:service:generate:aep",
590
+ "service:simply:generate:aep",
591
+ "service:generate:simply:aep",
592
+ "service:generate:aep:simply"
593
+ ]
594
+ },
595
+ "simply:aep:generate:unit-of-work": {
596
+ "aliases": [],
597
+ "args": {},
598
+ "description": "With --flavor at4dx, writes the ApplicationFactory_UnitOfWorkBinding record registering --sobject with the Unit of Work at --sequence. With --flavor fflib nothing is written, since fflib has no unit-of-work binding: the command prints the Application.UnitOfWorkFactory entry to add by hand, and returns it as manualSteps.\n\nTwo unit-of-work bindings can't share a sequence or an SObject, so a run that would introduce either fails validation unless you pass --force.",
599
+ "examples": [
600
+ "Register Account with the AT4DX Unit of Work:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor at4dx --sequence 1000",
601
+ "Print the fflib Application entry for Account:\n<%= config.bin %> <%= command.id %> --target-org myOrg --sobject Account --flavor fflib"
602
+ ],
603
+ "flags": {
604
+ "json": {
605
+ "description": "Format output as json.",
606
+ "helpGroup": "GLOBAL",
607
+ "name": "json",
608
+ "allowNo": false,
609
+ "type": "boolean"
610
+ },
611
+ "flags-dir": {
612
+ "helpGroup": "GLOBAL",
613
+ "name": "flags-dir",
614
+ "summary": "Import flag values from a directory.",
615
+ "hasDynamicHelp": false,
616
+ "multiple": false,
617
+ "type": "option"
618
+ },
619
+ "api-version": {
620
+ "char": "a",
621
+ "description": "Override the api version used for api requests made by this command",
622
+ "name": "api-version",
623
+ "hasDynamicHelp": false,
624
+ "multiple": false,
625
+ "type": "option"
626
+ },
627
+ "target-org": {
628
+ "char": "o",
629
+ "name": "target-org",
630
+ "noCacheDefault": true,
631
+ "required": true,
632
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
633
+ "hasDynamicHelp": true,
634
+ "multiple": false,
635
+ "type": "option"
636
+ },
637
+ "sobject": {
638
+ "char": "s",
639
+ "name": "sobject",
640
+ "required": true,
641
+ "summary": "API name of the SObject to generate for. The generators describe it in --target-org.",
642
+ "hasDynamicHelp": false,
643
+ "multiple": false,
644
+ "type": "option"
645
+ },
646
+ "flavor": {
647
+ "char": "f",
648
+ "description": "Sets the templates for every file: the interface and implementation shape, base classes, and whether Application Factory binding records are written. fflib writes none; at4dx writes one per layer.",
649
+ "name": "flavor",
650
+ "required": true,
651
+ "summary": "Framework to generate for: at4dx or fflib.",
652
+ "hasDynamicHelp": false,
653
+ "multiple": false,
654
+ "options": [
655
+ "at4dx",
656
+ "fflib"
657
+ ],
658
+ "type": "option"
659
+ },
660
+ "prefix": {
661
+ "name": "prefix",
662
+ "summary": "Class-name prefix, upper-cased and joined with an underscore (--prefix acme gives ACME_Accounts).",
663
+ "hasDynamicHelp": false,
664
+ "multiple": false,
665
+ "type": "option"
666
+ },
667
+ "sequence": {
668
+ "name": "sequence",
669
+ "summary": "BindingSequence__c: where the SObject falls in the commit order, lower first. Defaults to 1000.",
670
+ "hasDynamicHelp": false,
671
+ "multiple": false,
672
+ "type": "option"
673
+ },
674
+ "output-dir": {
675
+ "char": "d",
676
+ "description": "Files go under main/classes, main/schema, and test/classes inside it. Defaults to generated-files, as apx's --output-path did, so generated paths don't move.",
677
+ "name": "output-dir",
678
+ "summary": "Directory to write into, relative to the project root unless absolute.",
679
+ "default": "generated-files",
680
+ "hasDynamicHelp": false,
681
+ "multiple": false,
682
+ "type": "option"
683
+ },
684
+ "dry-run": {
685
+ "name": "dry-run",
686
+ "summary": "Show the files that would be written, and any validation issues, without writing anything.",
687
+ "allowNo": false,
688
+ "type": "boolean"
689
+ },
690
+ "overwrite": {
691
+ "name": "overwrite",
692
+ "summary": "Replace files that already exist at a planned path. Without it, the command refuses before writing anything.",
693
+ "allowNo": false,
694
+ "type": "boolean"
695
+ },
696
+ "force": {
697
+ "name": "force",
698
+ "summary": "Write even if validation finds an error-severity issue the generated binding records would introduce. The issues are still printed and returned.",
699
+ "allowNo": false,
700
+ "type": "boolean"
701
+ }
702
+ },
703
+ "hasDynamicHelp": true,
704
+ "hiddenAliases": [],
705
+ "id": "simply:aep:generate:unit-of-work",
706
+ "pluginAlias": "@simplysf/simply-aep",
707
+ "pluginName": "@simplysf/simply-aep",
708
+ "pluginType": "core",
709
+ "strict": true,
710
+ "summary": "Generate an AT4DX unit-of-work binding for an SObject, or print the fflib Application entry to add.",
711
+ "enableJsonFlag": true,
712
+ "isESM": true,
713
+ "relativePath": [
714
+ "lib",
715
+ "commands",
716
+ "simply",
717
+ "aep",
718
+ "generate",
719
+ "unit-of-work.js"
720
+ ],
721
+ "aliasPermutations": [],
722
+ "permutations": [
723
+ "simply:aep:generate:unit-of-work",
724
+ "aep:simply:generate:unit-of-work",
725
+ "aep:generate:simply:unit-of-work",
726
+ "aep:generate:unit-of-work:simply",
727
+ "simply:generate:aep:unit-of-work",
728
+ "generate:simply:aep:unit-of-work",
729
+ "generate:aep:simply:unit-of-work",
730
+ "generate:aep:unit-of-work:simply",
731
+ "simply:generate:unit-of-work:aep",
732
+ "generate:simply:unit-of-work:aep",
733
+ "generate:unit-of-work:simply:aep",
734
+ "generate:unit-of-work:aep:simply",
735
+ "simply:aep:unit-of-work:generate",
736
+ "aep:simply:unit-of-work:generate",
737
+ "aep:unit-of-work:simply:generate",
738
+ "aep:unit-of-work:generate:simply",
739
+ "simply:unit-of-work:aep:generate",
740
+ "unit-of-work:simply:aep:generate",
741
+ "unit-of-work:aep:simply:generate",
742
+ "unit-of-work:aep:generate:simply",
743
+ "simply:unit-of-work:generate:aep",
744
+ "unit-of-work:simply:generate:aep",
745
+ "unit-of-work:generate:simply:aep",
746
+ "unit-of-work:generate:aep:simply"
747
+ ]
748
+ },
3
749
  "simply:aep:at4dx:binding:create": {
4
750
  "aliases": [],
5
751
  "args": {},
@@ -4106,5 +4852,5 @@
4106
4852
  ]
4107
4853
  }
4108
4854
  },
4109
- "version": "0.15.9"
4855
+ "version": "0.16.0"
4110
4856
  }