@simplysf/simply-permissions 1.5.0 → 1.6.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 +10 -7
- package/lib/commands/simply/permissions/build.d.ts +2 -0
- package/lib/commands/simply/permissions/build.js +14 -0
- package/lib/commands/simply/permissions/build.js.map +1 -1
- package/messages/simply.permissions.build.md +8 -4
- package/oclif.manifest.json +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ FLAG DESCRIPTIONS
|
|
|
66
66
|
The path to write the generated HTML report to.
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
_See code: [lib/commands/simply/permissions/analyze.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.
|
|
69
|
+
_See code: [lib/commands/simply/permissions/analyze.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.6.0/packages/simply-permissions/lib/commands/simply/permissions/analyze.js)_
|
|
70
70
|
|
|
71
71
|
## `sf simply permissions assignment delete`
|
|
72
72
|
|
|
@@ -109,7 +109,7 @@ EXAMPLES
|
|
|
109
109
|
$ sf simply permissions assignment delete --permission-set-group-name My_Permission_Set_Group --target-org myOrg
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
_See code: [lib/commands/simply/permissions/assignment/delete.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.
|
|
112
|
+
_See code: [lib/commands/simply/permissions/assignment/delete.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.6.0/packages/simply-permissions/lib/commands/simply/permissions/assignment/delete.js)_
|
|
113
113
|
|
|
114
114
|
## `sf simply permissions build`
|
|
115
115
|
|
|
@@ -152,7 +152,9 @@ DESCRIPTION
|
|
|
152
152
|
shared by every entry, and any entry can override them. An entry's "config" is either a path to a --config file or the
|
|
153
153
|
same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole
|
|
154
154
|
file, including referenced override files and source directories, is validated before anything is written, and each
|
|
155
|
-
source directory is scanned only once.
|
|
155
|
+
source directory is scanned only once. Name the file with the .psbuild.json suffix (for example
|
|
156
|
+
config/app.psbuild.json): that's how `sf simply cicd build check-permission-sets` finds permission sets files, and
|
|
157
|
+
this command warns about a file without it.
|
|
156
158
|
|
|
157
159
|
{
|
|
158
160
|
"defaults": {
|
|
@@ -189,11 +191,11 @@ EXAMPLES
|
|
|
189
191
|
|
|
190
192
|
Regenerate every permission set declared in a permission sets file:
|
|
191
193
|
|
|
192
|
-
$ sf simply permissions build --file config/
|
|
194
|
+
$ sf simply permissions build --file config/app.psbuild.json
|
|
193
195
|
|
|
194
196
|
In CI, fail if any permission set declared in a permission sets file needs to be regenerated:
|
|
195
197
|
|
|
196
|
-
$ sf simply permissions build --file config/
|
|
198
|
+
$ sf simply permissions build --file config/app.psbuild.json --check
|
|
197
199
|
|
|
198
200
|
FLAG DESCRIPTIONS
|
|
199
201
|
-c, --config=<value> Path to a permission set configuration file
|
|
@@ -210,7 +212,8 @@ FLAG DESCRIPTIONS
|
|
|
210
212
|
|
|
211
213
|
The path to a JSON file with a "permissionSets" array, each entry describing one permission set to generate ("name",
|
|
212
214
|
"type", and optionally "label", "description", "directory", "output", "includeRecordTypes", "config"), and an
|
|
213
|
-
optional "defaults" object.
|
|
215
|
+
optional "defaults" object. Name it with the .psbuild.json suffix; any other name works but prints a warning. Can't
|
|
216
|
+
be combined with the flags that describe a single permission set.
|
|
214
217
|
|
|
215
218
|
-n, --name=<value> API name for the permission set
|
|
216
219
|
|
|
@@ -238,7 +241,7 @@ FLAG DESCRIPTIONS
|
|
|
238
241
|
Required unless --file is used.
|
|
239
242
|
```
|
|
240
243
|
|
|
241
|
-
_See code: [lib/commands/simply/permissions/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.
|
|
244
|
+
_See code: [lib/commands/simply/permissions/build.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-permissions@1.6.0/packages/simply-permissions/lib/commands/simply/permissions/build.js)_
|
|
242
245
|
<!-- commandsstop -->
|
|
243
246
|
|
|
244
247
|
## Configuration Files
|
|
@@ -11,6 +11,8 @@ type PermissionsBuildEntry = PermissionSetBuildResult & {
|
|
|
11
11
|
export type PermissionsBuildResult = Omit<PermissionsBuildEntry, 'name'>;
|
|
12
12
|
/** With `--file`: one entry per permission set declared in the file, in file order. */
|
|
13
13
|
export type PermissionsBuildFileResult = PermissionsBuildEntry[];
|
|
14
|
+
/** `file` renamed to carry {@link PERMISSION_SETS_FILE_SUFFIX}: `.psbuild` before a `.json` extension, or the whole suffix appended. */
|
|
15
|
+
export declare function suffixedName(file: string): string;
|
|
14
16
|
/**
|
|
15
17
|
* Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally)
|
|
16
18
|
* record types, then generates a permission set XML file with a baseline of permissions
|
|
@@ -18,6 +18,17 @@ import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
|
|
|
18
18
|
import { checkPermissionSets, generatePermissionSets, loadPermissionSetBuildConfig, loadPermissionSetsFile, PermissionSetBuildError, } from '@simplysf/simply-permissions-core';
|
|
19
19
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
20
20
|
const messages = Messages.loadMessages('@simplysf/simply-permissions', 'simply.permissions.build');
|
|
21
|
+
/**
|
|
22
|
+
* The suffix that marks a permission sets file, which is how `sf simply cicd build check-permission-sets`
|
|
23
|
+
* finds them. Also defined in `simply-cicd`.
|
|
24
|
+
*/
|
|
25
|
+
const PERMISSION_SETS_FILE_SUFFIX = '.psbuild.json';
|
|
26
|
+
/** `file` renamed to carry {@link PERMISSION_SETS_FILE_SUFFIX}: `.psbuild` before a `.json` extension, or the whole suffix appended. */
|
|
27
|
+
export function suffixedName(file) {
|
|
28
|
+
return file.endsWith('.json')
|
|
29
|
+
? `${file.slice(0, -'.json'.length)}${PERMISSION_SETS_FILE_SUFFIX}`
|
|
30
|
+
: `${file}${PERMISSION_SETS_FILE_SUFFIX}`;
|
|
31
|
+
}
|
|
21
32
|
/** The flags that describe a single permission set, and so can't be combined with `--file`. */
|
|
22
33
|
const SINGLE_PERMISSION_SET_FLAGS = [
|
|
23
34
|
'type',
|
|
@@ -126,6 +137,9 @@ export default class PermissionsBuild extends SfCommand {
|
|
|
126
137
|
const { flags } = await this.parse(PermissionsBuild);
|
|
127
138
|
try {
|
|
128
139
|
const { file } = flags;
|
|
140
|
+
if (file && !file.endsWith(PERMISSION_SETS_FILE_SUFFIX)) {
|
|
141
|
+
this.warn(messages.getMessage('warning.unsuffixedFile', [file, suffixedName(file)]));
|
|
142
|
+
}
|
|
129
143
|
const specs = file ? await this.readConfig(() => loadPermissionSetsFile(file)) : await this.singleSpec(flags);
|
|
130
144
|
const results = flags.check ? await this.check(specs) : await this.generate(specs, Boolean(file));
|
|
131
145
|
if (file) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/commands/simply/permissions/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,GAKxB,MAAM,mCAAmC,CAAC;AAE3C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,8BAA8B,EAAE,0BAA0B,CAAC,CAAC;AAYnG,+FAA+F;AAC/F,MAAM,2BAA2B,GAAG;IAClC,MAAM;IACN,MAAM;IACN,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,sBAAsB;IACtB,OAAO;IACP,aAAa;CACd,CAAC;AAEF,MAAM,aAAa,GAAiE;IAClF,EAA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AE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3E,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QACvB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAEO,KAAK,CAAC,UAAU,CAAI,IAAsB;QAChD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAC9D,MAAM,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,YAAY,CAAC,GAAW,EAAE,IAAY;QAC5C,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC"}
|
|
@@ -6,7 +6,7 @@ Generate permission sets from Salesforce source metadata.
|
|
|
6
6
|
|
|
7
7
|
Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally) record types, then generates a permission set XML file with a baseline of permissions determined by --type. An optional JSON --config file can override individual object, field, tab, record type, and user permission settings, as well as whether the permission set requires activation.
|
|
8
8
|
|
|
9
|
-
To regenerate every permission set in a project with one command, declare them all in a JSON file and pass it with --file instead of the other flags. Each entry in the file's "permissionSets" array takes the same settings as one run of this command; a top-level "defaults" object supplies the "directory", "output", and "includeRecordTypes" values shared by every entry, and any entry can override them. An entry's "config" is either a path to a --config file or the same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole file, including referenced override files and source directories, is validated before anything is written, and each source directory is scanned only once.
|
|
9
|
+
To regenerate every permission set in a project with one command, declare them all in a JSON file and pass it with --file instead of the other flags. Each entry in the file's "permissionSets" array takes the same settings as one run of this command; a top-level "defaults" object supplies the "directory", "output", and "includeRecordTypes" values shared by every entry, and any entry can override them. An entry's "config" is either a path to a --config file or the same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole file, including referenced override files and source directories, is validated before anything is written, and each source directory is scanned only once. Name the file with the .psbuild.json suffix (for example config/app.psbuild.json): that's how `sf simply cicd build check-permission-sets` finds permission sets files, and this command warns about a file without it.
|
|
10
10
|
|
|
11
11
|
{
|
|
12
12
|
"defaults": {
|
|
@@ -38,7 +38,7 @@ Path to a permission sets file declaring every permission set to generate
|
|
|
38
38
|
|
|
39
39
|
# flags.file.description
|
|
40
40
|
|
|
41
|
-
The path to a JSON file with a "permissionSets" array, each entry describing one permission set to generate ("name", "type", and optionally "label", "description", "directory", "output", "includeRecordTypes", "config"), and an optional "defaults" object. Can't be combined with the flags that describe a single permission set.
|
|
41
|
+
The path to a JSON file with a "permissionSets" array, each entry describing one permission set to generate ("name", "type", and optionally "label", "description", "directory", "output", "includeRecordTypes", "config"), and an optional "defaults" object. Name it with the .psbuild.json suffix; any other name works but prints a warning. Can't be combined with the flags that describe a single permission set.
|
|
42
42
|
|
|
43
43
|
# flags.type.summary
|
|
44
44
|
|
|
@@ -112,11 +112,11 @@ Instead of writing each permission set, compare what would be generated with the
|
|
|
112
112
|
|
|
113
113
|
- Regenerate every permission set declared in a permission sets file:
|
|
114
114
|
|
|
115
|
-
<%= config.bin %> <%= command.id %> --file config/
|
|
115
|
+
<%= config.bin %> <%= command.id %> --file config/app.psbuild.json
|
|
116
116
|
|
|
117
117
|
- In CI, fail if any permission set declared in a permission sets file needs to be regenerated:
|
|
118
118
|
|
|
119
|
-
<%= config.bin %> <%= command.id %> --file config/
|
|
119
|
+
<%= config.bin %> <%= command.id %> --file config/app.psbuild.json --check
|
|
120
120
|
|
|
121
121
|
# error.missingRequiredFlags
|
|
122
122
|
|
|
@@ -165,3 +165,7 @@ All %s permission set(s) are up to date.
|
|
|
165
165
|
# warning.drifted
|
|
166
166
|
|
|
167
167
|
%s of %s permission set(s) have drifted from their source metadata or are missing. Run this command without --check to regenerate them.
|
|
168
|
+
|
|
169
|
+
# warning.unsuffixedFile
|
|
170
|
+
|
|
171
|
+
%s doesn't end in .psbuild.json, so `sf simply cicd build check-permission-sets` won't find it. Rename it to %s.
|
package/oclif.manifest.json
CHANGED
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"simply:permissions:build": {
|
|
91
91
|
"aliases": [],
|
|
92
92
|
"args": {},
|
|
93
|
-
"description": "Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally) record types, then generates a permission set XML file with a baseline of permissions determined by --type. An optional JSON --config file can override individual object, field, tab, record type, and user permission settings, as well as whether the permission set requires activation.\n\nTo regenerate every permission set in a project with one command, declare them all in a JSON file and pass it with --file instead of the other flags. Each entry in the file's \"permissionSets\" array takes the same settings as one run of this command; a top-level \"defaults\" object supplies the \"directory\", \"output\", and \"includeRecordTypes\" values shared by every entry, and any entry can override them. An entry's \"config\" is either a path to a --config file or the same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole file, including referenced override files and source directories, is validated before anything is written, and each source directory is scanned only once.\n\n {\n \"defaults\": {\n \"directory\": \"force-app\",\n \"output\": \"force-app/main/default/permissionsets\"\n },\n \"permissionSets\": [\n { \"name\": \"App_Read_Only\", \"type\": \"read-only\" },\n {\n \"name\": \"App_Admin\",\n \"type\": \"modify-all\",\n \"label\": \"App Admin\",\n \"includeRecordTypes\": true,\n \"config\": \"config/app-admin-overrides.json\"\n },\n {\n \"name\": \"App_Support\",\n \"type\": \"view-all\",\n \"config\": { \"userPermissions\": { \"ViewSetup\": true } }\n }\n ]\n }\n\nTo check in CI that the committed permission sets still match their source metadata, add --check. It builds each permission set as usual but writes nothing: it compares each one with the file already at its output path and reports it as \"up-to-date\", \"drifted\", or \"missing\". If any permission set has drifted or is missing, the command exits with code 1. Formatting differences, such as indentation, line endings, or comments, don't count as drift, so files reformatted by Prettier still pass. Any other difference does, including hand edits and reordered entries.",
|
|
93
|
+
"description": "Scans a Salesforce project directory for custom objects, fields, tabs, and (optionally) record types, then generates a permission set XML file with a baseline of permissions determined by --type. An optional JSON --config file can override individual object, field, tab, record type, and user permission settings, as well as whether the permission set requires activation.\n\nTo regenerate every permission set in a project with one command, declare them all in a JSON file and pass it with --file instead of the other flags. Each entry in the file's \"permissionSets\" array takes the same settings as one run of this command; a top-level \"defaults\" object supplies the \"directory\", \"output\", and \"includeRecordTypes\" values shared by every entry, and any entry can override them. An entry's \"config\" is either a path to a --config file or the same overrides inline. Relative paths are resolved against the current directory, as they are for flags. The whole file, including referenced override files and source directories, is validated before anything is written, and each source directory is scanned only once. Name the file with the .psbuild.json suffix (for example config/app.psbuild.json): that's how `sf simply cicd build check-permission-sets` finds permission sets files, and this command warns about a file without it.\n\n {\n \"defaults\": {\n \"directory\": \"force-app\",\n \"output\": \"force-app/main/default/permissionsets\"\n },\n \"permissionSets\": [\n { \"name\": \"App_Read_Only\", \"type\": \"read-only\" },\n {\n \"name\": \"App_Admin\",\n \"type\": \"modify-all\",\n \"label\": \"App Admin\",\n \"includeRecordTypes\": true,\n \"config\": \"config/app-admin-overrides.json\"\n },\n {\n \"name\": \"App_Support\",\n \"type\": \"view-all\",\n \"config\": { \"userPermissions\": { \"ViewSetup\": true } }\n }\n ]\n }\n\nTo check in CI that the committed permission sets still match their source metadata, add --check. It builds each permission set as usual but writes nothing: it compares each one with the file already at its output path and reports it as \"up-to-date\", \"drifted\", or \"missing\". If any permission set has drifted or is missing, the command exits with code 1. Formatting differences, such as indentation, line endings, or comments, don't count as drift, so files reformatted by Prettier still pass. Any other difference does, including hand edits and reordered entries.",
|
|
94
94
|
"examples": [
|
|
95
95
|
"<%= config.bin %> <%= command.id %> --type read-only --name My_Read_Only_Access --directory force-app --output force-app/main/default/permissionsets",
|
|
96
96
|
"<%= config.bin %> <%= command.id %> --type modify-all --name My_Admin_Access --directory force-app --config config/permission-overrides.json --output force-app/main/default/permissionsets --include-record-types",
|
|
97
|
-
"Regenerate every permission set declared in a permission sets file:\n<%= config.bin %> <%= command.id %> --file config/
|
|
98
|
-
"In CI, fail if any permission set declared in a permission sets file needs to be regenerated:\n<%= config.bin %> <%= command.id %> --file config/
|
|
97
|
+
"Regenerate every permission set declared in a permission sets file:\n<%= config.bin %> <%= command.id %> --file config/app.psbuild.json",
|
|
98
|
+
"In CI, fail if any permission set declared in a permission sets file needs to be regenerated:\n<%= config.bin %> <%= command.id %> --file config/app.psbuild.json --check"
|
|
99
99
|
],
|
|
100
100
|
"flags": {
|
|
101
101
|
"json": {
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
},
|
|
116
116
|
"file": {
|
|
117
117
|
"char": "f",
|
|
118
|
-
"description": "The path to a JSON file with a \"permissionSets\" array, each entry describing one permission set to generate (\"name\", \"type\", and optionally \"label\", \"description\", \"directory\", \"output\", \"includeRecordTypes\", \"config\"), and an optional \"defaults\" object. Can't be combined with the flags that describe a single permission set.",
|
|
118
|
+
"description": "The path to a JSON file with a \"permissionSets\" array, each entry describing one permission set to generate (\"name\", \"type\", and optionally \"label\", \"description\", \"directory\", \"output\", \"includeRecordTypes\", \"config\"), and an optional \"defaults\" object. Name it with the .psbuild.json suffix; any other name works but prints a warning. Can't be combined with the flags that describe a single permission set.",
|
|
119
119
|
"exclusive": [
|
|
120
120
|
"type",
|
|
121
121
|
"name",
|
|
@@ -348,5 +348,5 @@
|
|
|
348
348
|
]
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
|
-
"version": "1.
|
|
351
|
+
"version": "1.6.0"
|
|
352
352
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-permissions",
|
|
3
3
|
"description": "Utilities for working with permissions",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-plugins",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-plugins/issues",
|
|
@@ -202,5 +202,5 @@
|
|
|
202
202
|
"output": []
|
|
203
203
|
}
|
|
204
204
|
},
|
|
205
|
-
"gitHead": "
|
|
205
|
+
"gitHead": "cfc320bc665f61d2ab5c702ea9120bddc34b6078"
|
|
206
206
|
}
|