@simplysf/simply-aep 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +405 -5
- package/lib/commands/simply/aep/at4dx/binding/create.d.ts +28 -0
- package/lib/commands/simply/aep/at4dx/binding/create.js +116 -0
- package/lib/commands/simply/aep/at4dx/binding/create.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/binding/list.js +1 -1
- package/lib/commands/simply/aep/at4dx/binding/list.js.map +1 -1
- package/lib/commands/simply/aep/at4dx/binding/update.d.ts +29 -0
- package/lib/commands/simply/aep/at4dx/binding/update.js +119 -0
- package/lib/commands/simply/aep/at4dx/binding/update.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.d.ts +23 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.js +143 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.d.ts +26 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js +112 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/create.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.d.ts +20 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js +110 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/list.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.d.ts +27 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js +109 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/update.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.d.ts +21 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js +129 -0
- package/lib/commands/simply/aep/at4dx/field-set-inclusion/validate.js.map +1 -0
- package/lib/common/bindingWriteError.d.ts +14 -0
- package/lib/common/bindingWriteError.js +58 -0
- package/lib/common/bindingWriteError.js.map +1 -0
- package/lib/common/fieldSetInclusionWriteError.d.ts +14 -0
- package/lib/common/fieldSetInclusionWriteError.js +56 -0
- package/lib/common/fieldSetInclusionWriteError.js.map +1 -0
- package/messages/simply.aep.at4dx.binding.create.md +123 -0
- package/messages/simply.aep.at4dx.binding.update.md +121 -0
- package/messages/simply.aep.at4dx.binding.validate.md +65 -0
- package/messages/simply.aep.at4dx.field-set-inclusion.create.md +103 -0
- package/messages/simply.aep.at4dx.field-set-inclusion.list.md +51 -0
- package/messages/simply.aep.at4dx.field-set-inclusion.update.md +105 -0
- package/messages/simply.aep.at4dx.field-set-inclusion.validate.md +53 -0
- package/package.json +3 -3
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
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
|
+
|
|
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 has no such field.
|
|
10
|
+
|
|
11
|
+
# flags.source-dir.summary
|
|
12
|
+
|
|
13
|
+
The package directory to create the binding's .md-meta.xml under. Created if the customMetadata folder doesn't exist yet.
|
|
14
|
+
|
|
15
|
+
# flags.target-org.summary
|
|
16
|
+
|
|
17
|
+
Deploy the generated binding to this org after writing it.
|
|
18
|
+
|
|
19
|
+
# flags.wait.summary
|
|
20
|
+
|
|
21
|
+
Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
22
|
+
|
|
23
|
+
# flags.type.summary
|
|
24
|
+
|
|
25
|
+
Which Application Factory binding type to create: service, selector, or domain.
|
|
26
|
+
|
|
27
|
+
# flags.developer-name.summary
|
|
28
|
+
|
|
29
|
+
The binding's DeveloperName. Must start with a letter, contain only letters, numbers, and single underscores, not end with an underscore, and be 40 characters or fewer.
|
|
30
|
+
|
|
31
|
+
# flags.label.summary
|
|
32
|
+
|
|
33
|
+
The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
|
|
34
|
+
|
|
35
|
+
# flags.to.summary
|
|
36
|
+
|
|
37
|
+
The interface/SObject's implementing Apex class (To__c).
|
|
38
|
+
|
|
39
|
+
# flags.binding-interface.summary
|
|
40
|
+
|
|
41
|
+
BindingInterface__c — the Apex interface this binding maps to. Required, and only allowed, when --type is service.
|
|
42
|
+
|
|
43
|
+
# flags.sobject.summary
|
|
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 domain.
|
|
46
|
+
|
|
47
|
+
# flags.sobject-alternate.summary
|
|
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 domain.
|
|
50
|
+
|
|
51
|
+
# flags.priority.summary
|
|
52
|
+
|
|
53
|
+
Priority__c. Higher numbers are higher priority; omit for least priority. Only allowed when --type is service or selector — Domain has no Priority__c field.
|
|
54
|
+
|
|
55
|
+
# flags.force.summary
|
|
56
|
+
|
|
57
|
+
Write (and deploy) even if validation finds an error-severity issue. Validation still runs and its issues are still printed and returned.
|
|
58
|
+
|
|
59
|
+
# examples
|
|
60
|
+
|
|
61
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --type service --developer-name My_Service_Binding --binding-interface IMyService --to MyServiceImpl
|
|
62
|
+
|
|
63
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --type selector --developer-name Account_Selector --sobject Account --to AccountsSelector --priority 1
|
|
64
|
+
|
|
65
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --type domain --developer-name Account_Domain --sobject Account --to AccountDomain
|
|
66
|
+
|
|
67
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
|
|
68
|
+
|
|
69
|
+
# error.sourceDirOrTargetOrgRequired
|
|
70
|
+
|
|
71
|
+
You must specify at least one of --source-dir or --target-org.
|
|
72
|
+
|
|
73
|
+
# error.invalidPriority
|
|
74
|
+
|
|
75
|
+
"%s" is not a valid --priority: it must be a number.
|
|
76
|
+
|
|
77
|
+
# error.typeFieldMismatch
|
|
78
|
+
|
|
79
|
+
%s
|
|
80
|
+
|
|
81
|
+
# error.invalidDeveloperName
|
|
82
|
+
|
|
83
|
+
%s
|
|
84
|
+
|
|
85
|
+
# error.labelTooLong
|
|
86
|
+
|
|
87
|
+
%s
|
|
88
|
+
|
|
89
|
+
# error.developerNameAlreadyExists
|
|
90
|
+
|
|
91
|
+
%s
|
|
92
|
+
|
|
93
|
+
# error.developerNameNotFound
|
|
94
|
+
|
|
95
|
+
%s
|
|
96
|
+
|
|
97
|
+
# error.noFieldsToUpdate
|
|
98
|
+
|
|
99
|
+
At least one field besides --developer-name must be given to update.
|
|
100
|
+
|
|
101
|
+
# error.at4dxNotDetected
|
|
102
|
+
|
|
103
|
+
%s
|
|
104
|
+
|
|
105
|
+
# error.validationFailed
|
|
106
|
+
|
|
107
|
+
Writing this binding would introduce a wiring problem AT4DX validation already knows how to catch. Pass --force to write anyway.
|
|
108
|
+
|
|
109
|
+
# error.deployFailed
|
|
110
|
+
|
|
111
|
+
%s
|
|
112
|
+
|
|
113
|
+
# info.created
|
|
114
|
+
|
|
115
|
+
Created %s
|
|
116
|
+
|
|
117
|
+
# info.createdInOrg
|
|
118
|
+
|
|
119
|
+
Created %s in the org
|
|
120
|
+
|
|
121
|
+
# info.deployed
|
|
122
|
+
|
|
123
|
+
Deployed (id: %s)
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Finds the binding named --developer-name (of the given --type) in local source and/or a connected org, applies only the fields given as flags — everything else, including which SObject reference field a Selector/Domain binding uses, is preserved from the found record — and rewrites its `.md-meta.xml` file. 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.
|
|
8
|
+
|
|
9
|
+
When --source-dir is given, the binding is located there (searched across every directory given, same as `list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When only --target-org is given, the binding is located and updated directly in the org via a temporary file, deployed, then discarded — no working-tree footprint.
|
|
10
|
+
|
|
11
|
+
--developer-name identifies the binding to update and can't itself be changed by this command. --type identifies which Application Factory Custom Metadata Type to look in and can't be changed either — bindings don't move between types.
|
|
12
|
+
|
|
13
|
+
# flags.source-dir.summary
|
|
14
|
+
|
|
15
|
+
One or more paths to directories containing Salesforce DX source, searched for the binding to update.
|
|
16
|
+
|
|
17
|
+
# flags.target-org.summary
|
|
18
|
+
|
|
19
|
+
Locate (when --source-dir isn't given) and/or deploy the binding to this org.
|
|
20
|
+
|
|
21
|
+
# flags.wait.summary
|
|
22
|
+
|
|
23
|
+
Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
24
|
+
|
|
25
|
+
# flags.type.summary
|
|
26
|
+
|
|
27
|
+
Which Application Factory binding type to look in: service, selector, or domain.
|
|
28
|
+
|
|
29
|
+
# flags.developer-name.summary
|
|
30
|
+
|
|
31
|
+
The DeveloperName of the binding to update.
|
|
32
|
+
|
|
33
|
+
# flags.label.summary
|
|
34
|
+
|
|
35
|
+
The binding's label. If not given, the existing label is kept.
|
|
36
|
+
|
|
37
|
+
# flags.to.summary
|
|
38
|
+
|
|
39
|
+
The interface/SObject's implementing Apex class (To__c). If not given, the existing value is kept.
|
|
40
|
+
|
|
41
|
+
# flags.binding-interface.summary
|
|
42
|
+
|
|
43
|
+
BindingInterface__c — the Apex interface this binding maps to. Only allowed when --type is service. If not given, the existing value is kept.
|
|
44
|
+
|
|
45
|
+
# flags.sobject.summary
|
|
46
|
+
|
|
47
|
+
The SObject API name to bind against. Only allowed when --type is selector or domain. If not given, the existing value is kept.
|
|
48
|
+
|
|
49
|
+
# flags.sobject-alternate.summary
|
|
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 domain. If not given, the binding keeps whichever field it already uses — this flag only needs to be passed to change it.
|
|
52
|
+
|
|
53
|
+
# flags.priority.summary
|
|
54
|
+
|
|
55
|
+
Priority__c. Only allowed when --type is service or selector — Domain has no Priority__c field. If not given, the existing value is kept.
|
|
56
|
+
|
|
57
|
+
# flags.force.summary
|
|
58
|
+
|
|
59
|
+
Write (and deploy) even if validation finds an error-severity issue. Validation still runs and its issues are still printed and returned.
|
|
60
|
+
|
|
61
|
+
# examples
|
|
62
|
+
|
|
63
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app --type selector --developer-name Account_Selector --priority 5
|
|
64
|
+
|
|
65
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
|
|
66
|
+
|
|
67
|
+
# error.sourceDirOrTargetOrgRequired
|
|
68
|
+
|
|
69
|
+
You must specify at least one of --source-dir or --target-org.
|
|
70
|
+
|
|
71
|
+
# error.invalidPriority
|
|
72
|
+
|
|
73
|
+
"%s" is not a valid --priority: it must be a number.
|
|
74
|
+
|
|
75
|
+
# error.typeFieldMismatch
|
|
76
|
+
|
|
77
|
+
%s
|
|
78
|
+
|
|
79
|
+
# error.invalidDeveloperName
|
|
80
|
+
|
|
81
|
+
%s
|
|
82
|
+
|
|
83
|
+
# error.labelTooLong
|
|
84
|
+
|
|
85
|
+
%s
|
|
86
|
+
|
|
87
|
+
# error.developerNameAlreadyExists
|
|
88
|
+
|
|
89
|
+
%s
|
|
90
|
+
|
|
91
|
+
# error.developerNameNotFound
|
|
92
|
+
|
|
93
|
+
%s
|
|
94
|
+
|
|
95
|
+
# error.noFieldsToUpdate
|
|
96
|
+
|
|
97
|
+
At least one field besides --developer-name must be given to update.
|
|
98
|
+
|
|
99
|
+
# error.at4dxNotDetected
|
|
100
|
+
|
|
101
|
+
%s
|
|
102
|
+
|
|
103
|
+
# error.validationFailed
|
|
104
|
+
|
|
105
|
+
Writing this binding would introduce a wiring problem AT4DX validation already knows how to catch. Pass --force to write anyway.
|
|
106
|
+
|
|
107
|
+
# error.deployFailed
|
|
108
|
+
|
|
109
|
+
%s
|
|
110
|
+
|
|
111
|
+
# info.updated
|
|
112
|
+
|
|
113
|
+
Updated %s
|
|
114
|
+
|
|
115
|
+
# info.updatedInOrg
|
|
116
|
+
|
|
117
|
+
Updated %s in the org
|
|
118
|
+
|
|
119
|
+
# info.deployed
|
|
120
|
+
|
|
121
|
+
Deployed (id: %s)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is found.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, and `ApplicationFactory_DomainBinding__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 binding whose SObject reference is ambiguous or names a standard object that can't actually go through an EntityDefinition metadata relationship, two records sharing a platform-unique `To__c`, two Domain records resolving to the same SObject, and the same DeveloperName defined more than once within one binding type. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
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.
|
|
10
|
+
|
|
11
|
+
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
|
+
|
|
13
|
+
# flags.target-org.summary
|
|
14
|
+
|
|
15
|
+
Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
16
|
+
|
|
17
|
+
# flags.source-dir.summary
|
|
18
|
+
|
|
19
|
+
One or more paths to directories containing Salesforce DX source. Use this for local-source discovery.
|
|
20
|
+
|
|
21
|
+
# flags.type.summary
|
|
22
|
+
|
|
23
|
+
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
24
|
+
|
|
25
|
+
# flags.type.description
|
|
26
|
+
|
|
27
|
+
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
28
|
+
|
|
29
|
+
# examples
|
|
30
|
+
|
|
31
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg
|
|
32
|
+
|
|
33
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
34
|
+
|
|
35
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --type service,selector
|
|
36
|
+
|
|
37
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --json
|
|
38
|
+
|
|
39
|
+
# error.targetOrgOrSourceDirRequired
|
|
40
|
+
|
|
41
|
+
You must specify either --target-org or --source-dir, but not both.
|
|
42
|
+
|
|
43
|
+
# error.at4dxNotDetected
|
|
44
|
+
|
|
45
|
+
AT4DX doesn't appear to be present in this source: none of the requested Application Factory binding Custom Metadata Types were found.
|
|
46
|
+
|
|
47
|
+
# error.localScanFailed
|
|
48
|
+
|
|
49
|
+
Failed to scan the project directory: %s
|
|
50
|
+
|
|
51
|
+
# error.orgQueryFailed
|
|
52
|
+
|
|
53
|
+
Failed to query bindings from the org: %s
|
|
54
|
+
|
|
55
|
+
# info.queryingOrg
|
|
56
|
+
|
|
57
|
+
Querying bindings from %s...
|
|
58
|
+
|
|
59
|
+
# info.scanningLocalSource
|
|
60
|
+
|
|
61
|
+
Scanning local source for bindings...
|
|
62
|
+
|
|
63
|
+
# info.valid
|
|
64
|
+
|
|
65
|
+
No issues found across %s binding(s) in %s
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create a new AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a connected org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Generates a `SelectorConfig_FieldSetInclusion.<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 record — alongside everything else already in scope — with the same rules `simply aep at4dx field-set-inclusion 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
|
+
|
|
9
|
+
--sobject writes 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).
|
|
10
|
+
|
|
11
|
+
# flags.source-dir.summary
|
|
12
|
+
|
|
13
|
+
The package directory to create the field set inclusion's .md-meta.xml under. Created if the customMetadata folder doesn't exist yet.
|
|
14
|
+
|
|
15
|
+
# flags.target-org.summary
|
|
16
|
+
|
|
17
|
+
Deploy the generated field set inclusion to this org after writing it.
|
|
18
|
+
|
|
19
|
+
# flags.wait.summary
|
|
20
|
+
|
|
21
|
+
Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
22
|
+
|
|
23
|
+
# flags.developer-name.summary
|
|
24
|
+
|
|
25
|
+
The record's DeveloperName. Must start with a letter, contain only letters, numbers, and single underscores, not end with an underscore, and be 40 characters or fewer.
|
|
26
|
+
|
|
27
|
+
# flags.label.summary
|
|
28
|
+
|
|
29
|
+
The record's label. Defaults to --developer-name. Must be 40 characters or fewer.
|
|
30
|
+
|
|
31
|
+
# flags.sobject.summary
|
|
32
|
+
|
|
33
|
+
The SObject API name to bind the field set to (BindingSObject__c, or BindingSObjectAlternate__c with --sobject-alternate).
|
|
34
|
+
|
|
35
|
+
# flags.sobject-alternate.summary
|
|
36
|
+
|
|
37
|
+
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).
|
|
38
|
+
|
|
39
|
+
# flags.fieldset-name.summary
|
|
40
|
+
|
|
41
|
+
FieldsetName__c — the field set to add to the selector's queried field list. Unique org-wide across every SObject, not per-SObject.
|
|
42
|
+
|
|
43
|
+
# flags.active.summary
|
|
44
|
+
|
|
45
|
+
IsActive__c. Defaults to true, matching the Custom Metadata Type's own default. Pass --no-active to create it inactive.
|
|
46
|
+
|
|
47
|
+
# flags.force.summary
|
|
48
|
+
|
|
49
|
+
Write (and deploy) even if validation finds an error-severity issue. Validation still runs and its issues are still printed and returned.
|
|
50
|
+
|
|
51
|
+
# examples
|
|
52
|
+
|
|
53
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --developer-name Account_Contact_Fields --sobject Account --fieldset-name ContactRelatedFields
|
|
54
|
+
|
|
55
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --developer-name ServiceResource_Skills --sobject ServiceResource --sobject-alternate --fieldset-name SkillFields
|
|
56
|
+
|
|
57
|
+
# error.sourceDirOrTargetOrgRequired
|
|
58
|
+
|
|
59
|
+
You must specify at least one of --source-dir or --target-org.
|
|
60
|
+
|
|
61
|
+
# error.invalidDeveloperName
|
|
62
|
+
|
|
63
|
+
%s
|
|
64
|
+
|
|
65
|
+
# error.labelTooLong
|
|
66
|
+
|
|
67
|
+
%s
|
|
68
|
+
|
|
69
|
+
# error.developerNameAlreadyExists
|
|
70
|
+
|
|
71
|
+
%s
|
|
72
|
+
|
|
73
|
+
# error.developerNameNotFound
|
|
74
|
+
|
|
75
|
+
%s
|
|
76
|
+
|
|
77
|
+
# error.noFieldsToUpdate
|
|
78
|
+
|
|
79
|
+
At least one field besides --developer-name must be given to update.
|
|
80
|
+
|
|
81
|
+
# error.at4dxNotDetected
|
|
82
|
+
|
|
83
|
+
%s
|
|
84
|
+
|
|
85
|
+
# error.validationFailed
|
|
86
|
+
|
|
87
|
+
Writing this record would introduce a wiring problem AT4DX validation already knows how to catch. Pass --force to write anyway.
|
|
88
|
+
|
|
89
|
+
# error.deployFailed
|
|
90
|
+
|
|
91
|
+
%s
|
|
92
|
+
|
|
93
|
+
# info.created
|
|
94
|
+
|
|
95
|
+
Created %s
|
|
96
|
+
|
|
97
|
+
# info.createdInOrg
|
|
98
|
+
|
|
99
|
+
Created %s in the org
|
|
100
|
+
|
|
101
|
+
# info.deployed
|
|
102
|
+
|
|
103
|
+
Deployed (id: %s)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List the AT4DX Selector field set inclusions configured in an org or local source.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Reads `SelectorConfig_FieldSetInclusion__mdt` — either from a live org or from local Salesforce DX source — and lists every record found. Unlike `simply aep at4dx binding list`, there's no priority/winner concept: every `IsActive__c: true` record for a selector's SObject contributes its field set simultaneously, so this is a flat table, not a resolved one. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
8
|
+
|
|
9
|
+
# flags.target-org.summary
|
|
10
|
+
|
|
11
|
+
Username or alias of the org to read field set inclusions from. Use this for live-org discovery.
|
|
12
|
+
|
|
13
|
+
# flags.source-dir.summary
|
|
14
|
+
|
|
15
|
+
One or more paths to directories containing Salesforce DX source. Use this for local-source discovery.
|
|
16
|
+
|
|
17
|
+
# examples
|
|
18
|
+
|
|
19
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg
|
|
20
|
+
|
|
21
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
22
|
+
|
|
23
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --json
|
|
24
|
+
|
|
25
|
+
# error.targetOrgOrSourceDirRequired
|
|
26
|
+
|
|
27
|
+
You must specify either --target-org or --source-dir, but not both.
|
|
28
|
+
|
|
29
|
+
# error.at4dxNotDetected
|
|
30
|
+
|
|
31
|
+
AT4DX doesn't appear to be present in this source: the SelectorConfig_FieldSetInclusion__mdt Custom Metadata Type wasn't found.
|
|
32
|
+
|
|
33
|
+
# error.localScanFailed
|
|
34
|
+
|
|
35
|
+
Failed to scan the project directory: %s
|
|
36
|
+
|
|
37
|
+
# error.orgQueryFailed
|
|
38
|
+
|
|
39
|
+
Failed to query field set inclusions from the org: %s
|
|
40
|
+
|
|
41
|
+
# info.queryingOrg
|
|
42
|
+
|
|
43
|
+
Querying field set inclusions from %s...
|
|
44
|
+
|
|
45
|
+
# info.scanningLocalSource
|
|
46
|
+
|
|
47
|
+
Scanning local source for field set inclusions...
|
|
48
|
+
|
|
49
|
+
# info.complete
|
|
50
|
+
|
|
51
|
+
Found %s field set inclusion(s) in %s
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Update an existing AT4DX Selector field set inclusion (SelectorConfig_FieldSetInclusion__mdt) in local source and/or a connected org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Finds the field set inclusion named --developer-name in local source and/or a connected org, applies only the fields given as flags — everything else, including which SObject reference field it uses, is preserved from the found record — and rewrites its `.md-meta.xml` file. Validates the resulting record — alongside everything else already in scope — with the same rules `simply aep at4dx field-set-inclusion validate` uses, and refuses to write if that introduces an error-severity issue unless --force is passed.
|
|
8
|
+
|
|
9
|
+
When --source-dir is given, the record is located there (searched across every directory given, same as `list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When only --target-org is given, the record is located and updated directly in the org via a temporary file, deployed, then discarded — no working-tree footprint.
|
|
10
|
+
|
|
11
|
+
--developer-name identifies the record to update and can't itself be changed by this command.
|
|
12
|
+
|
|
13
|
+
# flags.source-dir.summary
|
|
14
|
+
|
|
15
|
+
One or more paths to directories containing Salesforce DX source, searched for the record to update.
|
|
16
|
+
|
|
17
|
+
# flags.target-org.summary
|
|
18
|
+
|
|
19
|
+
Locate (when --source-dir isn't given) and/or deploy the record to this org.
|
|
20
|
+
|
|
21
|
+
# flags.wait.summary
|
|
22
|
+
|
|
23
|
+
Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
24
|
+
|
|
25
|
+
# flags.developer-name.summary
|
|
26
|
+
|
|
27
|
+
The DeveloperName of the record to update.
|
|
28
|
+
|
|
29
|
+
# flags.label.summary
|
|
30
|
+
|
|
31
|
+
The record's label. If not given, the existing label is kept.
|
|
32
|
+
|
|
33
|
+
# flags.sobject.summary
|
|
34
|
+
|
|
35
|
+
The SObject API name to bind the field set to. If not given, the existing value is kept.
|
|
36
|
+
|
|
37
|
+
# flags.sobject-alternate.summary
|
|
38
|
+
|
|
39
|
+
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). If not given, the record keeps whichever field it already uses — this flag only needs to be passed to change it.
|
|
40
|
+
|
|
41
|
+
# flags.fieldset-name.summary
|
|
42
|
+
|
|
43
|
+
FieldsetName__c — the field set to add to the selector's queried field list. Changing it changes which field set is included. If not given, the existing value is kept.
|
|
44
|
+
|
|
45
|
+
# flags.active.summary
|
|
46
|
+
|
|
47
|
+
IsActive__c. If not given, the existing value is kept. Pass --no-active to deactivate.
|
|
48
|
+
|
|
49
|
+
# flags.force.summary
|
|
50
|
+
|
|
51
|
+
Write (and deploy) even if validation finds an error-severity issue. Validation still runs and its issues are still printed and returned.
|
|
52
|
+
|
|
53
|
+
# examples
|
|
54
|
+
|
|
55
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app --developer-name Account_Contact_Fields --no-active
|
|
56
|
+
|
|
57
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --developer-name Account_Contact_Fields --fieldset-name ContactRelatedFieldsV2
|
|
58
|
+
|
|
59
|
+
# error.sourceDirOrTargetOrgRequired
|
|
60
|
+
|
|
61
|
+
You must specify at least one of --source-dir or --target-org.
|
|
62
|
+
|
|
63
|
+
# error.invalidDeveloperName
|
|
64
|
+
|
|
65
|
+
%s
|
|
66
|
+
|
|
67
|
+
# error.labelTooLong
|
|
68
|
+
|
|
69
|
+
%s
|
|
70
|
+
|
|
71
|
+
# error.developerNameAlreadyExists
|
|
72
|
+
|
|
73
|
+
%s
|
|
74
|
+
|
|
75
|
+
# error.developerNameNotFound
|
|
76
|
+
|
|
77
|
+
%s
|
|
78
|
+
|
|
79
|
+
# error.noFieldsToUpdate
|
|
80
|
+
|
|
81
|
+
At least one field besides --developer-name must be given to update.
|
|
82
|
+
|
|
83
|
+
# error.at4dxNotDetected
|
|
84
|
+
|
|
85
|
+
%s
|
|
86
|
+
|
|
87
|
+
# error.validationFailed
|
|
88
|
+
|
|
89
|
+
Writing this record would introduce a wiring problem AT4DX validation already knows how to catch. Pass --force to write anyway.
|
|
90
|
+
|
|
91
|
+
# error.deployFailed
|
|
92
|
+
|
|
93
|
+
%s
|
|
94
|
+
|
|
95
|
+
# info.updated
|
|
96
|
+
|
|
97
|
+
Updated %s
|
|
98
|
+
|
|
99
|
+
# info.updatedInOrg
|
|
100
|
+
|
|
101
|
+
Updated %s in the org
|
|
102
|
+
|
|
103
|
+
# info.deployed
|
|
104
|
+
|
|
105
|
+
Deployed (id: %s)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Validate the AT4DX Selector field set inclusions configured in an org or local source, failing when a wiring problem is found.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Reads `SelectorConfig_FieldSetInclusion__mdt` — either from a live org or from local Salesforce DX source — and checks them for problems `simply aep at4dx field-set-inclusion list` doesn't fail on: a record with no resolvable SObject, an ambiguous SObject reference, a SObject reference naming a standard object that can't actually go through an EntityDefinition metadata relationship, two records sharing a FieldsetName__c value (unique org-wide, not per-SObject), and the same DeveloperName defined more than once. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
8
|
+
|
|
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 field set inclusion wiring problems before they reach an org.
|
|
10
|
+
|
|
11
|
+
# flags.target-org.summary
|
|
12
|
+
|
|
13
|
+
Username or alias of the org to read field set inclusions from. Use this for live-org discovery.
|
|
14
|
+
|
|
15
|
+
# flags.source-dir.summary
|
|
16
|
+
|
|
17
|
+
One or more paths to directories containing Salesforce DX source. Use this for local-source discovery.
|
|
18
|
+
|
|
19
|
+
# examples
|
|
20
|
+
|
|
21
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg
|
|
22
|
+
|
|
23
|
+
- <%= config.bin %> <%= command.id %> --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
24
|
+
|
|
25
|
+
- <%= config.bin %> <%= command.id %> --target-org myOrg --json
|
|
26
|
+
|
|
27
|
+
# error.targetOrgOrSourceDirRequired
|
|
28
|
+
|
|
29
|
+
You must specify either --target-org or --source-dir, but not both.
|
|
30
|
+
|
|
31
|
+
# error.at4dxNotDetected
|
|
32
|
+
|
|
33
|
+
AT4DX doesn't appear to be present in this source: the SelectorConfig_FieldSetInclusion__mdt Custom Metadata Type wasn't found.
|
|
34
|
+
|
|
35
|
+
# error.localScanFailed
|
|
36
|
+
|
|
37
|
+
Failed to scan the project directory: %s
|
|
38
|
+
|
|
39
|
+
# error.orgQueryFailed
|
|
40
|
+
|
|
41
|
+
Failed to query field set inclusions from the org: %s
|
|
42
|
+
|
|
43
|
+
# info.queryingOrg
|
|
44
|
+
|
|
45
|
+
Querying field set inclusions from %s...
|
|
46
|
+
|
|
47
|
+
# info.scanningLocalSource
|
|
48
|
+
|
|
49
|
+
Scanning local source for field set inclusions...
|
|
50
|
+
|
|
51
|
+
# info.valid
|
|
52
|
+
|
|
53
|
+
No issues found across %s field set inclusion(s) in %s
|
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.9.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.8.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": "b1b42d6f0d817ae31c9c9580bc7914182d9e8361"
|
|
212
212
|
}
|