sf-plugin-permission-sets 0.0.0-dev.8 → 0.0.0-dev.80
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/LICENSE.md +28 -0
- package/README.md +335 -97
- package/lib/adapters/connection-org-client.d.ts +23 -0
- package/lib/adapters/connection-org-client.d.ts.map +1 -0
- package/lib/adapters/connection-org-client.js +370 -0
- package/lib/adapters/connection-org-client.js.map +1 -0
- package/lib/adapters/index.d.ts +2 -0
- package/lib/adapters/index.d.ts.map +1 -0
- package/lib/adapters/index.js +2 -0
- package/lib/adapters/index.js.map +1 -0
- package/lib/commands/ps/apply.d.ts +41 -0
- package/lib/commands/ps/apply.d.ts.map +1 -0
- package/lib/commands/ps/apply.js +179 -0
- package/lib/commands/ps/apply.js.map +1 -0
- package/lib/commands/ps/check.d.ts +21 -0
- package/lib/commands/ps/check.d.ts.map +1 -0
- package/lib/commands/ps/check.js +55 -0
- package/lib/commands/ps/check.js.map +1 -0
- package/lib/commands/ps/export.d.ts +26 -0
- package/lib/commands/ps/export.d.ts.map +1 -0
- package/lib/commands/ps/export.js +74 -0
- package/lib/commands/ps/export.js.map +1 -0
- package/lib/commands/ps/plan.d.ts +61 -0
- package/lib/commands/ps/plan.d.ts.map +1 -0
- package/lib/commands/ps/plan.js +193 -0
- package/lib/commands/ps/plan.js.map +1 -0
- package/lib/commands/ps/validate.d.ts +21 -0
- package/lib/commands/ps/validate.d.ts.map +1 -0
- package/lib/commands/ps/validate.js +56 -0
- package/lib/commands/ps/validate.js.map +1 -0
- package/lib/core/diff.d.ts +46 -0
- package/lib/core/diff.d.ts.map +1 -0
- package/lib/core/diff.js +118 -0
- package/lib/core/diff.js.map +1 -0
- package/lib/core/finding.d.ts +43 -0
- package/lib/core/finding.d.ts.map +1 -0
- package/lib/core/finding.js +76 -0
- package/lib/core/finding.js.map +1 -0
- package/lib/core/index.d.ts +11 -0
- package/lib/core/index.d.ts.map +1 -0
- package/lib/core/index.js +10 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/load.d.ts +4 -0
- package/lib/core/load.d.ts.map +1 -0
- package/lib/core/load.js +60 -0
- package/lib/core/load.js.map +1 -0
- package/lib/core/model.d.ts +77 -0
- package/lib/core/model.d.ts.map +1 -0
- package/lib/core/model.js +2 -0
- package/lib/core/model.js.map +1 -0
- package/lib/core/normalize.d.ts +17 -0
- package/lib/core/normalize.d.ts.map +1 -0
- package/lib/core/normalize.js +74 -0
- package/lib/core/normalize.js.map +1 -0
- package/lib/core/parse.d.ts +10 -0
- package/lib/core/parse.d.ts.map +1 -0
- package/lib/core/parse.js +20 -0
- package/lib/core/parse.js.map +1 -0
- package/lib/core/report.d.ts +16 -0
- package/lib/core/report.d.ts.map +1 -0
- package/lib/core/report.js +138 -0
- package/lib/core/report.js.map +1 -0
- package/lib/core/resolve.d.ts +22 -0
- package/lib/core/resolve.d.ts.map +1 -0
- package/lib/core/resolve.js +92 -0
- package/lib/core/resolve.js.map +1 -0
- package/lib/core/schema.d.ts +23 -0
- package/lib/core/schema.d.ts.map +1 -0
- package/lib/core/schema.js +35 -0
- package/lib/core/schema.js.map +1 -0
- package/lib/core/serialize.d.ts +9 -0
- package/lib/core/serialize.d.ts.map +1 -0
- package/lib/core/serialize.js +50 -0
- package/lib/core/serialize.js.map +1 -0
- package/lib/core/target-name.d.ts +20 -0
- package/lib/core/target-name.d.ts.map +1 -0
- package/lib/core/target-name.js +32 -0
- package/lib/core/target-name.js.map +1 -0
- package/lib/core/username.d.ts +23 -0
- package/lib/core/username.d.ts.map +1 -0
- package/lib/core/username.js +35 -0
- package/lib/core/username.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/services/adapters/index.d.ts +2 -0
- package/lib/services/adapters/index.d.ts.map +1 -0
- package/lib/services/adapters/index.js +2 -0
- package/lib/services/adapters/index.js.map +1 -0
- package/lib/services/adapters/org-client.d.ts +26 -0
- package/lib/services/adapters/org-client.d.ts.map +1 -0
- package/lib/services/adapters/org-client.js +2 -0
- package/lib/services/adapters/org-client.js.map +1 -0
- package/lib/services/apply.d.ts +33 -0
- package/lib/services/apply.d.ts.map +1 -0
- package/lib/services/apply.js +82 -0
- package/lib/services/apply.js.map +1 -0
- package/lib/services/check.d.ts +14 -0
- package/lib/services/check.d.ts.map +1 -0
- package/lib/services/check.js +18 -0
- package/lib/services/check.js.map +1 -0
- package/lib/services/export.d.ts +19 -0
- package/lib/services/export.d.ts.map +1 -0
- package/lib/services/export.js +30 -0
- package/lib/services/export.js.map +1 -0
- package/lib/services/index.d.ts +6 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/plan.d.ts +22 -0
- package/lib/services/plan.d.ts.map +1 -0
- package/lib/services/plan.js +44 -0
- package/lib/services/plan.js.map +1 -0
- package/lib/services/resolution.d.ts +25 -0
- package/lib/services/resolution.d.ts.map +1 -0
- package/lib/services/resolution.js +78 -0
- package/lib/services/resolution.js.map +1 -0
- package/lib/services/validate.d.ts +22 -0
- package/lib/services/validate.d.ts.map +1 -0
- package/lib/services/validate.js +62 -0
- package/lib/services/validate.js.map +1 -0
- package/messages/ps.apply.md +85 -0
- package/messages/ps.check.md +33 -0
- package/messages/ps.export.md +45 -0
- package/messages/ps.plan.md +85 -0
- package/messages/ps.validate.md +29 -0
- package/package.json +119 -180
- 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/oclif.lock +0 -7781
- package/oclif.manifest.json +0 -51
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Statically check permission set assignment files, with no org connection.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Parse and validate the YAML files, no org needed. Reports invalid YAML, schema violations, duplicate keys, duplicate targets, and empty entries. Run it in a pre-commit hook or in CI before validate, plan, or apply.
|
|
8
|
+
|
|
9
|
+
# flags.file.summary
|
|
10
|
+
|
|
11
|
+
YAML file or glob to check. Repeatable.
|
|
12
|
+
|
|
13
|
+
# flags.strict.summary
|
|
14
|
+
|
|
15
|
+
Treat warnings as errors.
|
|
16
|
+
|
|
17
|
+
# summary.counts
|
|
18
|
+
|
|
19
|
+
%s errors, %s warnings.
|
|
20
|
+
|
|
21
|
+
# error.failed
|
|
22
|
+
|
|
23
|
+
Check found problems. See the output above.
|
|
24
|
+
|
|
25
|
+
# examples
|
|
26
|
+
|
|
27
|
+
- Check every file under permissions:
|
|
28
|
+
|
|
29
|
+
<%= config.bin %> <%= command.id %> --file "permissions/*.yml"
|
|
30
|
+
|
|
31
|
+
- Check specific files:
|
|
32
|
+
|
|
33
|
+
<%= config.bin %> <%= command.id %> --file permissions/sales.yml --file permissions/service.yml
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Generate a YAML file from the current org's permission set assignments.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Query the target org for every assignable permission set, group, and license assignment held by active users and write them to a single user-keyed YAML file. The result is valid input for check, validate, plan, and apply, so it is a read-only way to bootstrap adoption from an org's current state. Profile-owned permission sets and inactive users are skipped.
|
|
8
|
+
|
|
9
|
+
# flags.output-file.summary
|
|
10
|
+
|
|
11
|
+
Path of the YAML file to write. Created (and its parent directories) if missing, overwritten if present. Omit to write the document to stdout.
|
|
12
|
+
|
|
13
|
+
# flags.user.summary
|
|
14
|
+
|
|
15
|
+
Only export these users, matched on exact username. Repeatable; multiple values are a union.
|
|
16
|
+
|
|
17
|
+
# flags.kind.summary
|
|
18
|
+
|
|
19
|
+
Only export these scopes: permissionSets, permissionSetGroups, or permissionSetLicenses. Repeatable; combined with --user as an intersection.
|
|
20
|
+
|
|
21
|
+
# success
|
|
22
|
+
|
|
23
|
+
Exported %s assignments across %s users to %s.
|
|
24
|
+
|
|
25
|
+
# warnNoAssignments
|
|
26
|
+
|
|
27
|
+
No assignments in scope for user %s, it was skipped.
|
|
28
|
+
|
|
29
|
+
# examples
|
|
30
|
+
|
|
31
|
+
- Export the dev org's assignments to permissions.yml:
|
|
32
|
+
|
|
33
|
+
<%= config.bin %> <%= command.id %> --target-org dev --output-file permissions.yml
|
|
34
|
+
|
|
35
|
+
- Export a production org into an environment folder:
|
|
36
|
+
|
|
37
|
+
<%= config.bin %> <%= command.id %> --target-org prod --output-file permissions/prod.yml
|
|
38
|
+
|
|
39
|
+
- Write to stdout and diff against a committed snapshot:
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --target-org prod | diff - permissions/prod.yml
|
|
42
|
+
|
|
43
|
+
- Export two users' permission sets and groups only:
|
|
44
|
+
|
|
45
|
+
<%= config.bin %> <%= command.id %> --target-org prod --output-file team.yml --user jdoe@acme.com --user asmith@acme.com --kind permissionSets --kind permissionSetGroups
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Preview the changes that would reconcile a target org to the assignment files.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Load the files, resolve every user and target against the org, fetch the org's current assignments, and diff the desired state against them. Read-only: it queries the org but never changes it, so it is the apply pipeline stopping before any DML. The body shows only what the chosen mode would do, so what plan shows is what apply does. Anything the mode would not touch is reported beneath the plan as drift. Run it before apply to preview what would change.
|
|
8
|
+
|
|
9
|
+
# flags.file.summary
|
|
10
|
+
|
|
11
|
+
YAML file or glob to plan. Repeatable.
|
|
12
|
+
|
|
13
|
+
# flags.mode.summary
|
|
14
|
+
|
|
15
|
+
Which half of the reconcile to preview: additive adds and updates expirations, destructive removes only, sync does both. The plan shows only what the chosen mode would do; anything it skips is reported as drift.
|
|
16
|
+
|
|
17
|
+
# flags.show-unchanged.summary
|
|
18
|
+
|
|
19
|
+
List assignments that already match, instead of only counting them.
|
|
20
|
+
|
|
21
|
+
# header.title
|
|
22
|
+
|
|
23
|
+
Permission Set Assignments Plan
|
|
24
|
+
|
|
25
|
+
# header.org
|
|
26
|
+
|
|
27
|
+
Org: %s (%s) Mode: %s
|
|
28
|
+
|
|
29
|
+
# summary.counts.additive
|
|
30
|
+
|
|
31
|
+
Plan: %s to add, %s to update. %s users affected.
|
|
32
|
+
|
|
33
|
+
# summary.counts.destructive
|
|
34
|
+
|
|
35
|
+
Plan: %s to remove. %s users affected.
|
|
36
|
+
|
|
37
|
+
# summary.counts.sync
|
|
38
|
+
|
|
39
|
+
Plan: %s to add, %s to update, %s to remove. %s users affected.
|
|
40
|
+
|
|
41
|
+
# summary.unchanged
|
|
42
|
+
|
|
43
|
+
Unchanged: %s assignments (--show-unchanged to list).
|
|
44
|
+
|
|
45
|
+
# summary.unchangedListed
|
|
46
|
+
|
|
47
|
+
Unchanged: %s assignments.
|
|
48
|
+
|
|
49
|
+
# summary.next
|
|
50
|
+
|
|
51
|
+
Next: %s
|
|
52
|
+
|
|
53
|
+
# drift.additive
|
|
54
|
+
|
|
55
|
+
Drift: %s undeclared assignment(s) not removed in additive mode. Run --mode sync to remove them.
|
|
56
|
+
|
|
57
|
+
# drift.destructive
|
|
58
|
+
|
|
59
|
+
Drift: %s declared assignment(s) not applied in destructive mode. Run --mode additive or sync to apply them.
|
|
60
|
+
|
|
61
|
+
# empty.noChanges
|
|
62
|
+
|
|
63
|
+
No changes. %s already matches your files.
|
|
64
|
+
|
|
65
|
+
# empty.nothingToApply
|
|
66
|
+
|
|
67
|
+
Nothing to apply in %s mode.
|
|
68
|
+
|
|
69
|
+
# error.invalid
|
|
70
|
+
|
|
71
|
+
The files do not resolve cleanly against the org. Fix the errors above, then re-run.
|
|
72
|
+
|
|
73
|
+
# examples
|
|
74
|
+
|
|
75
|
+
- Preview a full reconcile of the dev org:
|
|
76
|
+
|
|
77
|
+
<%= config.bin %> <%= command.id %> --file "permissions/*.yml" --target-org dev --mode sync
|
|
78
|
+
|
|
79
|
+
- Preview only the additions the default additive run would make:
|
|
80
|
+
|
|
81
|
+
<%= config.bin %> <%= command.id %> --file "permissions/*.yml" --target-org dev
|
|
82
|
+
|
|
83
|
+
- Preview a full reconcile of production before applying it:
|
|
84
|
+
|
|
85
|
+
<%= config.bin %> <%= command.id %> --file "permissions/*.yml" --target-org prod --mode sync
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Validate permission set assignment files against a target org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Run the same file checks as check, then resolve each referenced user, permission set, group, and license against the org. Reports users that are missing or inactive and targets that are missing or not unique. Read-only: it queries the org but never changes it. Run it before plan or apply.
|
|
8
|
+
|
|
9
|
+
# flags.file.summary
|
|
10
|
+
|
|
11
|
+
YAML file or glob to validate. Repeatable.
|
|
12
|
+
|
|
13
|
+
# summary.counts
|
|
14
|
+
|
|
15
|
+
%s errors, %s warnings.
|
|
16
|
+
|
|
17
|
+
# error.failed
|
|
18
|
+
|
|
19
|
+
Validation found problems. See the output above.
|
|
20
|
+
|
|
21
|
+
# examples
|
|
22
|
+
|
|
23
|
+
- Validate every file under permissions against the dev org:
|
|
24
|
+
|
|
25
|
+
<%= config.bin %> <%= command.id %> --file "permissions/*.yml" --target-org dev
|
|
26
|
+
|
|
27
|
+
- Validate specific files against a named org:
|
|
28
|
+
|
|
29
|
+
<%= config.bin %> <%= command.id %> --file permissions/sales.yml --file permissions/service.yml --target-org prod
|
package/package.json
CHANGED
|
@@ -1,191 +1,130 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@oclif/core": "^4",
|
|
11
|
-
"@salesforce/core": "^8",
|
|
12
|
-
"@salesforce/sf-plugins-core": "^12"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@oclif/plugin-command-snapshot": "^5.1.9",
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^5.3.10",
|
|
17
|
-
"@salesforce/dev-scripts": "^10",
|
|
18
|
-
"eslint-plugin-sf-plugin": "^1.18.6",
|
|
19
|
-
"husky": "^7.0.4",
|
|
20
|
-
"oclif": "^4.14.0",
|
|
21
|
-
"ts-node": "^10.9.2",
|
|
22
|
-
"typescript": "^5.4.5"
|
|
23
|
-
},
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=18.0.0"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"/lib",
|
|
29
|
-
"/messages",
|
|
30
|
-
"/oclif.manifest.json",
|
|
31
|
-
"/oclif.lock"
|
|
32
|
-
],
|
|
33
|
-
"keywords": [
|
|
34
|
-
"force",
|
|
35
|
-
"salesforce",
|
|
36
|
-
"salesforcedx",
|
|
37
|
-
"sf",
|
|
38
|
-
"sf-plugin",
|
|
39
|
-
"sfdx",
|
|
40
|
-
"sfdx-plugin"
|
|
41
|
-
],
|
|
42
|
-
"license": "BSD-3-Clause",
|
|
43
|
-
"oclif": {
|
|
44
|
-
"commands": "./lib/commands",
|
|
45
|
-
"bin": "sf",
|
|
46
|
-
"topicSeparator": " ",
|
|
47
|
-
"devPlugins": [
|
|
48
|
-
"@oclif/plugin-help"
|
|
49
|
-
],
|
|
50
|
-
"topics": {
|
|
51
|
-
"ps": {
|
|
52
|
-
"description": "Manage permission set assignments declaratively."
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"flexibleTaxonomy": true
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "wireit",
|
|
59
|
-
"clean": "sf-clean",
|
|
60
|
-
"clean-all": "sf-clean all",
|
|
61
|
-
"compile": "wireit",
|
|
62
|
-
"docs": "sf-docs",
|
|
63
|
-
"format": "wireit",
|
|
64
|
-
"link-check": "wireit",
|
|
65
|
-
"lint": "wireit",
|
|
66
|
-
"prepare": "husky install",
|
|
67
|
-
"postpack": "sf-clean --ignore-signing-artifacts",
|
|
68
|
-
"prepack": "sf-prepack",
|
|
69
|
-
"test": "wireit",
|
|
70
|
-
"test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
|
|
71
|
-
"test:only": "wireit",
|
|
72
|
-
"version": "oclif readme"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
},
|
|
77
|
-
"wireit": {
|
|
78
|
-
"build": {
|
|
79
|
-
"dependencies": [
|
|
80
|
-
"compile",
|
|
81
|
-
"lint"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"compile": {
|
|
85
|
-
"command": "tsc -p . --pretty --incremental",
|
|
86
|
-
"files": [
|
|
87
|
-
"src/**/*.ts",
|
|
88
|
-
"**/tsconfig.json",
|
|
89
|
-
"messages/**"
|
|
90
|
-
],
|
|
91
|
-
"output": [
|
|
92
|
-
"lib/**",
|
|
93
|
-
"*.tsbuildinfo"
|
|
94
|
-
],
|
|
95
|
-
"clean": "if-file-deleted"
|
|
2
|
+
"name": "sf-plugin-permission-sets",
|
|
3
|
+
"description": "Declarative, GitOps-style management of permission set assignments for Salesforce orgs.",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/zaclummys/sf-plugin-permission-sets.git"
|
|
96
7
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"src/**/*.ts",
|
|
101
|
-
"test/**/*.ts",
|
|
102
|
-
"schemas/**/*.json",
|
|
103
|
-
"command-snapshot.json",
|
|
104
|
-
".prettier*"
|
|
105
|
-
],
|
|
106
|
-
"output": []
|
|
8
|
+
"homepage": "https://github.com/zaclummys/sf-plugin-permission-sets#readme",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/zaclummys/sf-plugin-permission-sets/issues"
|
|
107
11
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"**/tsconfig.json"
|
|
116
|
-
],
|
|
117
|
-
"output": []
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@oclif/core": "^4",
|
|
14
|
+
"@salesforce/core": "^8",
|
|
15
|
+
"@salesforce/sf-plugins-core": "^12",
|
|
16
|
+
"globby": "^16",
|
|
17
|
+
"yaml": "^2",
|
|
18
|
+
"zod": "^4"
|
|
118
19
|
},
|
|
119
|
-
"
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@eslint/js": "^10",
|
|
22
|
+
"eslint": "^10",
|
|
23
|
+
"execa": "^10",
|
|
24
|
+
"globals": "^17",
|
|
25
|
+
"ts-node": "^10",
|
|
26
|
+
"typescript": "^6",
|
|
27
|
+
"typescript-eslint": "^8",
|
|
28
|
+
"vitest": "^4",
|
|
29
|
+
"wireit": "^0"
|
|
126
30
|
},
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
"test:compile",
|
|
130
|
-
"test:only",
|
|
131
|
-
"lint"
|
|
132
|
-
]
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=22.13.0"
|
|
133
33
|
},
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
34
|
+
"files": [
|
|
35
|
+
"/lib",
|
|
36
|
+
"/messages"
|
|
37
|
+
],
|
|
38
|
+
"keywords": [
|
|
39
|
+
"salesforce",
|
|
40
|
+
"sf-plugin",
|
|
41
|
+
"sfdx-plugin",
|
|
42
|
+
"permission-sets",
|
|
43
|
+
"permission-set-assignment",
|
|
44
|
+
"permission-set-group",
|
|
45
|
+
"access-management",
|
|
46
|
+
"user-provisioning",
|
|
47
|
+
"gitops",
|
|
48
|
+
"declarative"
|
|
49
|
+
],
|
|
50
|
+
"license": "BSD-3-Clause",
|
|
51
|
+
"oclif": {
|
|
52
|
+
"commands": "./lib/commands",
|
|
53
|
+
"bin": "sf",
|
|
54
|
+
"topicSeparator": " ",
|
|
55
|
+
"devPlugins": [
|
|
56
|
+
"@oclif/plugin-help"
|
|
57
|
+
],
|
|
58
|
+
"topics": {
|
|
59
|
+
"ps": {
|
|
60
|
+
"description": "Manage permission set assignments declaratively."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"flexibleTaxonomy": true
|
|
148
64
|
},
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"tmp/root"
|
|
158
|
-
]
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "wireit",
|
|
67
|
+
"clean": "rm -rf lib tmp *.tsbuildinfo .eslintcache .wireit",
|
|
68
|
+
"compile": "wireit",
|
|
69
|
+
"lint": "wireit",
|
|
70
|
+
"prepack": "npm run compile",
|
|
71
|
+
"test": "wireit",
|
|
72
|
+
"version": "oclif readme"
|
|
159
73
|
},
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
"files": [
|
|
163
|
-
"src/**/*.ts"
|
|
164
|
-
],
|
|
165
|
-
"output": [],
|
|
166
|
-
"dependencies": [
|
|
167
|
-
"compile"
|
|
168
|
-
]
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
169
76
|
},
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
77
|
+
"wireit": {
|
|
78
|
+
"build": {
|
|
79
|
+
"dependencies": [
|
|
80
|
+
"compile",
|
|
81
|
+
"lint"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"compile": {
|
|
85
|
+
"command": "tsc -p . --pretty --incremental",
|
|
86
|
+
"files": [
|
|
87
|
+
"src/**/*.ts",
|
|
88
|
+
"**/tsconfig.json",
|
|
89
|
+
"messages/**"
|
|
90
|
+
],
|
|
91
|
+
"output": [
|
|
92
|
+
"lib/**",
|
|
93
|
+
"*.tsbuildinfo"
|
|
94
|
+
],
|
|
95
|
+
"clean": "if-file-deleted"
|
|
96
|
+
},
|
|
97
|
+
"lint": {
|
|
98
|
+
"command": "eslint src --color --cache --cache-location .eslintcache",
|
|
99
|
+
"files": [
|
|
100
|
+
"src/**/*.ts",
|
|
101
|
+
"messages/**",
|
|
102
|
+
"eslint.config.js",
|
|
103
|
+
"**/tsconfig.json"
|
|
104
|
+
],
|
|
105
|
+
"output": []
|
|
106
|
+
},
|
|
107
|
+
"test": {
|
|
108
|
+
"command": "vitest run",
|
|
109
|
+
"dependencies": [
|
|
110
|
+
"compile"
|
|
111
|
+
],
|
|
112
|
+
"env": {
|
|
113
|
+
"FORCE_COLOR": "2",
|
|
114
|
+
"PS_TARGET_ORG": {
|
|
115
|
+
"external": true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"files": [
|
|
119
|
+
"test/**",
|
|
120
|
+
"vitest.config.js",
|
|
121
|
+
".env"
|
|
122
|
+
],
|
|
123
|
+
"output": []
|
|
124
|
+
}
|
|
177
125
|
},
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"./!(CHANGELOG).md",
|
|
183
|
-
"messages/**/*.md"
|
|
184
|
-
],
|
|
185
|
-
"output": []
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
"exports": "./lib/index.js",
|
|
189
|
-
"type": "module",
|
|
190
|
-
"author": "Isaac Ferreira"
|
|
126
|
+
"exports": "./lib/index.js",
|
|
127
|
+
"type": "module",
|
|
128
|
+
"author": "Isaac Ferreira",
|
|
129
|
+
"version": "0.0.0-dev.80"
|
|
191
130
|
}
|
|
@@ -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;IAChD,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;QACd,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;IAC/B,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
|