@salesforce/plugin-license-management 1.1.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.
@@ -0,0 +1,142 @@
1
+ {
2
+ "commands": {
3
+ "license:provision": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Provision Permission Set Licenses (PSL) into the target org. Successful execution sets the quantity of seats for the given PSL in the indicated org.\n\nThere are two ways to run this command. You can provide the information to identify a single PSL via command line flags, or provision multiple PSLs in a single call by supplying a JSON formatted file.\n\nSee https://github.com/salesforcecli/plugin-license-management#sf-license-provision for the format and options contained within the JSON file.",
7
+ "examples": [
8
+ "Provision a single Permission Set License into an org:\n<%= config.bin %> <%= command.id %> --target-org myScratchOrg --namespace demo --license newLicense --quantity 5",
9
+ "Use a JSON formatted input file to provision one or more Permission Set Licenses into an org:\n<%= config.bin %> <%= command.id %> --target-org myScratchOrg --definition-file test/config/provisionPSLs.json"
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
+ "target-org": {
28
+ "char": "o",
29
+ "name": "target-org",
30
+ "noCacheDefault": true,
31
+ "required": true,
32
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
33
+ "hasDynamicHelp": true,
34
+ "multiple": false,
35
+ "type": "option"
36
+ },
37
+ "api-version": {
38
+ "description": "Override the api version used for api requests made by this command",
39
+ "name": "api-version",
40
+ "hasDynamicHelp": false,
41
+ "multiple": false,
42
+ "type": "option"
43
+ },
44
+ "namespace": {
45
+ "char": "n",
46
+ "exclusive": [
47
+ "definition-file"
48
+ ],
49
+ "name": "namespace",
50
+ "relationships": [
51
+ {
52
+ "type": "all",
53
+ "flags": [
54
+ "license",
55
+ "quantity"
56
+ ]
57
+ }
58
+ ],
59
+ "summary": "License package namespace.",
60
+ "hasDynamicHelp": false,
61
+ "multiple": false,
62
+ "type": "option"
63
+ },
64
+ "license": {
65
+ "char": "l",
66
+ "exclusive": [
67
+ "definition-file"
68
+ ],
69
+ "name": "license",
70
+ "relationships": [
71
+ {
72
+ "type": "all",
73
+ "flags": [
74
+ "namespace",
75
+ "quantity"
76
+ ]
77
+ }
78
+ ],
79
+ "summary": "Permission Set License name.",
80
+ "hasDynamicHelp": false,
81
+ "multiple": false,
82
+ "type": "option"
83
+ },
84
+ "quantity": {
85
+ "char": "q",
86
+ "exclusive": [
87
+ "definition-file"
88
+ ],
89
+ "name": "quantity",
90
+ "relationships": [
91
+ {
92
+ "type": "all",
93
+ "flags": [
94
+ "namespace",
95
+ "license"
96
+ ]
97
+ }
98
+ ],
99
+ "summary": "Number of licenses to provision.",
100
+ "hasDynamicHelp": false,
101
+ "multiple": false,
102
+ "type": "option"
103
+ },
104
+ "definition-file": {
105
+ "char": "f",
106
+ "exclusive": [
107
+ "license",
108
+ "namespace",
109
+ "quantity"
110
+ ],
111
+ "name": "definition-file",
112
+ "summary": "Path to a JSON file that contains the PSL provisioning request information.",
113
+ "hasDynamicHelp": false,
114
+ "multiple": false,
115
+ "type": "option"
116
+ }
117
+ },
118
+ "hasDynamicHelp": true,
119
+ "hiddenAliases": [],
120
+ "id": "license:provision",
121
+ "pluginAlias": "@salesforce/plugin-license-management",
122
+ "pluginName": "@salesforce/plugin-license-management",
123
+ "pluginType": "core",
124
+ "strict": true,
125
+ "summary": "Provision Permission Set Licenses (PSL) into a target org.",
126
+ "enableJsonFlag": true,
127
+ "isESM": true,
128
+ "relativePath": [
129
+ "lib",
130
+ "commands",
131
+ "license",
132
+ "provision.js"
133
+ ],
134
+ "aliasPermutations": [],
135
+ "permutations": [
136
+ "license:provision",
137
+ "provision:license"
138
+ ]
139
+ }
140
+ },
141
+ "version": "1.1.0"
142
+ }
package/package.json ADDED
@@ -0,0 +1,203 @@
1
+ {
2
+ "name": "@salesforce/plugin-license-management",
3
+ "description": "Manage Permission Set Licenses",
4
+ "version": "1.1.0",
5
+ "author": "Salesforce",
6
+ "bugs": "https://github.com/forcedotcom/cli/issues",
7
+ "dependencies": {
8
+ "@oclif/core": "^4",
9
+ "@salesforce/core": "^8.28.1",
10
+ "@salesforce/sf-plugins-core": "^12"
11
+ },
12
+ "devDependencies": {
13
+ "@oclif/plugin-command-snapshot": "^5.3.14",
14
+ "@salesforce/cli-plugins-testkit": "^5.3.52",
15
+ "@salesforce/dev-scripts": "^11.0.4",
16
+ "@salesforce/plugin-command-reference": "^3.1.88",
17
+ "eslint-plugin-sf-plugin": "^1.20.33",
18
+ "oclif": "^4.22.96",
19
+ "ts-node": "^10.9.2",
20
+ "typescript": "^5.5.4"
21
+ },
22
+ "engines": {
23
+ "node": ">=18.0.0"
24
+ },
25
+ "files": [
26
+ "/lib",
27
+ "/messages",
28
+ "/npm-shrinkwrap.json",
29
+ "/oclif.lock",
30
+ "/oclif.manifest.json",
31
+ "/schemas"
32
+ ],
33
+ "homepage": "https://github.com/salesforcecli/plugin-license-management",
34
+ "keywords": [
35
+ "force",
36
+ "salesforce",
37
+ "salesforcedx",
38
+ "sf",
39
+ "sf-plugin",
40
+ "sfdx",
41
+ "sfdx-plugin"
42
+ ],
43
+ "license": "Apache-2.0",
44
+ "oclif": {
45
+ "commands": "./lib/commands",
46
+ "bin": "sf",
47
+ "topicSeparator": " ",
48
+ "devPlugins": [
49
+ "@oclif/plugin-help",
50
+ "@oclif/plugin-command-snapshot",
51
+ "@salesforce/plugin-command-reference"
52
+ ],
53
+ "topics": {
54
+ "license": {
55
+ "description": "Commands to provision and manage Permission Set Licenses in a scratch org."
56
+ }
57
+ },
58
+ "flexibleTaxonomy": true
59
+ },
60
+ "repository": "salesforcecli/plugin-license-management",
61
+ "scripts": {
62
+ "build": "wireit",
63
+ "clean": "sf-clean",
64
+ "clean-all": "sf-clean all",
65
+ "compile": "wireit",
66
+ "docs": "sf-docs",
67
+ "fix-license": "eslint src test --fix --rule \"header/header: [2]\"",
68
+ "format": "wireit",
69
+ "link-check": "wireit",
70
+ "lint": "wireit",
71
+ "postpack": "sf-clean --ignore-signing-artifacts",
72
+ "prepack": "sf-prepack",
73
+ "prepare": "sf-install",
74
+ "test": "wireit",
75
+ "test:nuts": "nyc mocha \"**/*.nut.ts\" --slow 4500 --timeout 600000 --parallel",
76
+ "test:only": "wireit",
77
+ "version": "oclif readme"
78
+ },
79
+ "publishConfig": {
80
+ "access": "public"
81
+ },
82
+ "wireit": {
83
+ "build": {
84
+ "dependencies": [
85
+ "compile",
86
+ "lint"
87
+ ]
88
+ },
89
+ "compile": {
90
+ "command": "tsc -p . --pretty --incremental",
91
+ "files": [
92
+ "src/**/*.ts",
93
+ "**/tsconfig.json",
94
+ "messages/**"
95
+ ],
96
+ "output": [
97
+ "lib/**",
98
+ "*.tsbuildinfo"
99
+ ],
100
+ "clean": "if-file-deleted"
101
+ },
102
+ "format": {
103
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
104
+ "files": [
105
+ "src/**/*.ts",
106
+ "test/**/*.ts",
107
+ "schemas/**/*.json",
108
+ "command-snapshot.json",
109
+ ".prettier*"
110
+ ],
111
+ "output": []
112
+ },
113
+ "lint": {
114
+ "command": "eslint src test --color --cache --cache-location .eslintcache",
115
+ "files": [
116
+ "src/**/*.ts",
117
+ "test/**/*.ts",
118
+ "messages/**",
119
+ "**/.eslint*",
120
+ "**/tsconfig.json"
121
+ ],
122
+ "output": []
123
+ },
124
+ "test:compile": {
125
+ "command": "tsc -p \"./test\" --pretty",
126
+ "files": [
127
+ "test/**/*.ts",
128
+ "**/tsconfig.json"
129
+ ],
130
+ "output": []
131
+ },
132
+ "test": {
133
+ "dependencies": [
134
+ "test:compile",
135
+ "test:only",
136
+ "test:command-reference",
137
+ "test:deprecation-policy",
138
+ "lint",
139
+ "test:json-schema",
140
+ "link-check"
141
+ ]
142
+ },
143
+ "test:only": {
144
+ "command": "nyc mocha \"test/**/*.test.ts\"",
145
+ "env": {
146
+ "FORCE_COLOR": "2"
147
+ },
148
+ "files": [
149
+ "test/**/*.ts",
150
+ "src/**/*.ts",
151
+ "**/tsconfig.json",
152
+ ".mocha*",
153
+ "!*.nut.ts",
154
+ ".nycrc"
155
+ ],
156
+ "output": []
157
+ },
158
+ "test:command-reference": {
159
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" commandreference:generate --erroronwarnings",
160
+ "files": [
161
+ "src/**/*.ts",
162
+ "messages/**",
163
+ "package.json"
164
+ ],
165
+ "output": [
166
+ "tmp/root"
167
+ ]
168
+ },
169
+ "test:deprecation-policy": {
170
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" snapshot:compare",
171
+ "files": [
172
+ "src/**/*.ts"
173
+ ],
174
+ "output": [],
175
+ "dependencies": [
176
+ "compile"
177
+ ]
178
+ },
179
+ "test:json-schema": {
180
+ "command": "node --loader ts-node/esm --no-warnings=ExperimentalWarning \"./bin/dev.js\" schema:compare",
181
+ "files": [
182
+ "src/**/*.ts",
183
+ "schemas"
184
+ ],
185
+ "output": []
186
+ },
187
+ "link-check": {
188
+ "command": "node -e \"process.exit(process.env.CI ? 0 : 1)\" || linkinator \"**/*.md\" --skip \"CHANGELOG.md|node_modules|test/|confluence.internal.salesforce.com|my.salesforce.com|localhost|%s\" --markdown --retry --directory-listing --verbosity error",
189
+ "files": [
190
+ "./*.md",
191
+ "./!(CHANGELOG).md",
192
+ "messages/**/*.md"
193
+ ],
194
+ "output": []
195
+ }
196
+ },
197
+ "exports": "./lib/index.js",
198
+ "type": "module",
199
+ "sfdx": {
200
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-license-management/1.1.0.crt",
201
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-license-management/1.1.0.sig"
202
+ }
203
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/LicenseProvisionResult",
4
+ "definitions": {
5
+ "LicenseProvisionResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "status": {
9
+ "type": "string"
10
+ },
11
+ "traceId": {
12
+ "type": "string"
13
+ }
14
+ },
15
+ "required": ["status"],
16
+ "additionalProperties": false
17
+ }
18
+ }
19
+ }