sf-plugin-permission-sets 0.0.0-dev.21 → 0.0.0-dev.24
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 +27 -8
- package/lib/adapters/connection-org-client.d.ts +2 -1
- package/lib/adapters/connection-org-client.js +59 -15
- package/lib/adapters/connection-org-client.js.map +1 -1
- package/lib/commands/ps/apply.d.ts +2 -0
- package/lib/commands/ps/apply.js +11 -2
- package/lib/commands/ps/apply.js.map +1 -1
- package/lib/commands/ps/plan.d.ts +1 -0
- package/lib/commands/ps/plan.js +6 -2
- package/lib/commands/ps/plan.js.map +1 -1
- package/lib/core/diff.d.ts +2 -1
- package/lib/core/diff.js +22 -4
- package/lib/core/diff.js.map +1 -1
- package/lib/core/finding.d.ts +22 -10
- package/lib/core/finding.js +50 -4
- package/lib/core/finding.js.map +1 -1
- package/lib/core/load.js +2 -2
- package/lib/core/load.js.map +1 -1
- package/lib/core/model.d.ts +14 -1
- package/lib/core/normalize.js +9 -7
- package/lib/core/normalize.js.map +1 -1
- package/lib/core/parse.js +4 -4
- package/lib/core/parse.js.map +1 -1
- package/lib/core/report.d.ts +3 -2
- package/lib/core/report.js +23 -9
- package/lib/core/report.js.map +1 -1
- package/lib/core/resolve.js +5 -5
- package/lib/core/resolve.js.map +1 -1
- package/lib/core/schema.d.ts +16 -4
- package/lib/core/schema.js +14 -6
- package/lib/core/schema.js.map +1 -1
- package/lib/core/serialize.d.ts +4 -3
- package/lib/core/serialize.js +17 -10
- package/lib/core/serialize.js.map +1 -1
- package/lib/services/adapters/org-client.d.ts +3 -1
- package/lib/services/apply.d.ts +1 -0
- package/lib/services/apply.js +9 -6
- package/lib/services/apply.js.map +1 -1
- package/lib/services/plan.d.ts +1 -0
- package/lib/services/plan.js +3 -2
- package/lib/services/plan.js.map +1 -1
- package/messages/ps.apply.md +4 -4
- package/messages/ps.plan.md +2 -2
- package/oclif.manifest.json +4 -50
- package/package.json +1 -1
- package/lib/commands/ps/info.d.ts +0 -11
- package/lib/commands/ps/info.js +0 -17
- package/lib/commands/ps/info.js.map +0 -1
- package/messages/ps.info.md +0 -17
package/messages/ps.plan.md
CHANGED
|
@@ -12,11 +12,11 @@ YAML file or glob to plan. Repeatable.
|
|
|
12
12
|
|
|
13
13
|
# flags.mode.summary
|
|
14
14
|
|
|
15
|
-
Which half of the reconcile to preview: additive adds
|
|
15
|
+
Which half of the reconcile to preview: additive adds and updates expirations, destructive removes only, sync does both. Adds, expiration updates, and removes are always shown either way.
|
|
16
16
|
|
|
17
17
|
# summary.counts
|
|
18
18
|
|
|
19
|
-
Plan: %s to add, %s to remove, %s unchanged.
|
|
19
|
+
Plan: %s to add, %s to update, %s to remove, %s unchanged.
|
|
20
20
|
|
|
21
21
|
# summary.next
|
|
22
22
|
|
package/oclif.manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"ps:apply": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Load the files, resolve every user and target against the org, diff the desired state against what the org currently has, then add and/or remove assignments per the mode. Additions and removals run through the sObject Collections API with partial success, so one bad record does not roll back the rest. Deletions are capped by --max-deletes and confirmed before they run. Run validate and a --dry-run first.",
|
|
6
|
+
"description": "Load the files, resolve every user and target against the org, diff the desired state against what the org currently has, then add, update expirations, and/or remove assignments per the mode. Additions, expiration updates, and removals run through the sObject Collections API with partial success, so one bad record does not roll back the rest. Deletions are capped by --max-deletes and confirmed before they run. Run validate and a --dry-run first.",
|
|
7
7
|
"examples": [
|
|
8
8
|
"Preview a full reconcile of the dev org without changing anything:\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev --mode sync --dry-run",
|
|
9
9
|
"Grant any missing assignments (additive, the default):\n<%= config.bin %> <%= command.id %> --file \"permissions/*.yml\" --target-org dev",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"mode": {
|
|
55
55
|
"name": "mode",
|
|
56
|
-
"summary": "Which half of the reconcile to run: additive adds
|
|
56
|
+
"summary": "Which half of the reconcile to run: additive adds missing assignments and updates expirations, destructive removes only, sync does both.",
|
|
57
57
|
"default": "additive",
|
|
58
58
|
"hasDynamicHelp": false,
|
|
59
59
|
"multiple": false,
|
|
@@ -241,52 +241,6 @@
|
|
|
241
241
|
"export:ps"
|
|
242
242
|
]
|
|
243
243
|
},
|
|
244
|
-
"ps:info": {
|
|
245
|
-
"aliases": [],
|
|
246
|
-
"args": {},
|
|
247
|
-
"description": "Print the plugin name and what it does. A quick way to confirm the plugin is installed and working.",
|
|
248
|
-
"examples": [
|
|
249
|
-
"Show plugin info:\n<%= config.bin %> <%= command.id %>"
|
|
250
|
-
],
|
|
251
|
-
"flags": {
|
|
252
|
-
"json": {
|
|
253
|
-
"description": "Format output as json.",
|
|
254
|
-
"helpGroup": "GLOBAL",
|
|
255
|
-
"name": "json",
|
|
256
|
-
"allowNo": false,
|
|
257
|
-
"type": "boolean"
|
|
258
|
-
},
|
|
259
|
-
"flags-dir": {
|
|
260
|
-
"helpGroup": "GLOBAL",
|
|
261
|
-
"name": "flags-dir",
|
|
262
|
-
"summary": "Import flag values from a directory.",
|
|
263
|
-
"hasDynamicHelp": false,
|
|
264
|
-
"multiple": false,
|
|
265
|
-
"type": "option"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
"hasDynamicHelp": false,
|
|
269
|
-
"hiddenAliases": [],
|
|
270
|
-
"id": "ps:info",
|
|
271
|
-
"pluginAlias": "sf-plugin-permission-sets",
|
|
272
|
-
"pluginName": "sf-plugin-permission-sets",
|
|
273
|
-
"pluginType": "core",
|
|
274
|
-
"strict": true,
|
|
275
|
-
"summary": "Show information about the permission-sets plugin.",
|
|
276
|
-
"enableJsonFlag": true,
|
|
277
|
-
"isESM": true,
|
|
278
|
-
"relativePath": [
|
|
279
|
-
"lib",
|
|
280
|
-
"commands",
|
|
281
|
-
"ps",
|
|
282
|
-
"info.js"
|
|
283
|
-
],
|
|
284
|
-
"aliasPermutations": [],
|
|
285
|
-
"permutations": [
|
|
286
|
-
"ps:info",
|
|
287
|
-
"info:ps"
|
|
288
|
-
]
|
|
289
|
-
},
|
|
290
244
|
"ps:plan": {
|
|
291
245
|
"aliases": [],
|
|
292
246
|
"args": {},
|
|
@@ -340,7 +294,7 @@
|
|
|
340
294
|
},
|
|
341
295
|
"mode": {
|
|
342
296
|
"name": "mode",
|
|
343
|
-
"summary": "Which half of the reconcile to preview: additive adds
|
|
297
|
+
"summary": "Which half of the reconcile to preview: additive adds and updates expirations, destructive removes only, sync does both. Adds, expiration updates, and removes are always shown either way.",
|
|
344
298
|
"default": "additive",
|
|
345
299
|
"hasDynamicHelp": false,
|
|
346
300
|
"multiple": false,
|
|
@@ -448,5 +402,5 @@
|
|
|
448
402
|
]
|
|
449
403
|
}
|
|
450
404
|
},
|
|
451
|
-
"version": "0.0.0-dev.
|
|
405
|
+
"version": "0.0.0-dev.24"
|
|
452
406
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
export type PsInfoResult = {
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
};
|
|
6
|
-
export default class Info extends SfCommand<PsInfoResult> {
|
|
7
|
-
static readonly summary: string;
|
|
8
|
-
static readonly description: string;
|
|
9
|
-
static readonly examples: string[];
|
|
10
|
-
run(): Promise<PsInfoResult>;
|
|
11
|
-
}
|
package/lib/commands/ps/info.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { Messages } from '@salesforce/core';
|
|
3
|
-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
4
|
-
const messages = Messages.loadMessages('sf-plugin-permission-sets', 'ps.info');
|
|
5
|
-
export default class Info extends SfCommand {
|
|
6
|
-
static summary = messages.getMessage('summary');
|
|
7
|
-
static description = messages.getMessage('description');
|
|
8
|
-
static examples = messages.getMessages('examples');
|
|
9
|
-
async run() {
|
|
10
|
-
await this.parse(Info);
|
|
11
|
-
const name = 'sf-plugin-permission-sets';
|
|
12
|
-
const description = 'Declarative, GitOps-style management of permission set assignments.';
|
|
13
|
-
this.log(messages.getMessage('info.summary', [name, description]));
|
|
14
|
-
return { name, description };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=info.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../src/commands/ps/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,2BAA2B,EAAE,SAAS,CAAC,CAAC;AAO/E,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,SAAuB;IAC9C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,KAAK,CAAC,GAAG;QACZ,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,2BAA2B,CAAC;QACzC,MAAM,WAAW,GAAG,qEAAqE,CAAC;QAC1F,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QACnE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IACjC,CAAC"}
|
package/messages/ps.info.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# summary
|
|
2
|
-
|
|
3
|
-
Show information about the permission-sets plugin.
|
|
4
|
-
|
|
5
|
-
# description
|
|
6
|
-
|
|
7
|
-
Print the plugin name and what it does. A quick way to confirm the plugin is installed and working.
|
|
8
|
-
|
|
9
|
-
# examples
|
|
10
|
-
|
|
11
|
-
- Show plugin info:
|
|
12
|
-
|
|
13
|
-
<%= config.bin %> <%= command.id %>
|
|
14
|
-
|
|
15
|
-
# info.summary
|
|
16
|
-
|
|
17
|
-
%s - %s
|