@jayree/sfdx-plugin-org 1.0.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/CHANGELOG.md +6 -0
- package/LICENSE.txt +12 -0
- package/README.md +107 -0
- package/bin/is-sfdx.js +3 -0
- package/lib/commands/jayree/org/configure/country.d.ts +11 -0
- package/lib/commands/jayree/org/configure/country.js +138 -0
- package/lib/commands/jayree/org/configure/country.js.map +1 -0
- package/lib/commands/jayree/org/configure/index.d.ts +14 -0
- package/lib/commands/jayree/org/configure/index.js +130 -0
- package/lib/commands/jayree/org/configure/index.js.map +1 -0
- package/lib/commands/jayree/org/configure/state.d.ts +15 -0
- package/lib/commands/jayree/org/configure/state.js +242 -0
- package/lib/commands/jayree/org/configure/state.js.map +1 -0
- package/lib/hooks/changelog.d.ts +2 -0
- package/lib/hooks/changelog.js +26 -0
- package/lib/hooks/changelog.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/config.d.ts +22 -0
- package/lib/utils/config.js +72 -0
- package/lib/utils/config.js.map +1 -0
- package/lib/utils/puppeteer/configuretasks.d.ts +50 -0
- package/lib/utils/puppeteer/configuretasks.js +270 -0
- package/lib/utils/puppeteer/configuretasks.js.map +1 -0
- package/lib/utils/puppeteer/countrystateconfig.d.ts +29 -0
- package/lib/utils/puppeteer/countrystateconfig.js +100 -0
- package/lib/utils/puppeteer/countrystateconfig.js.map +1 -0
- package/lib/utils/puppeteer/statetasks.d.ts +58 -0
- package/lib/utils/puppeteer/statetasks.js +302 -0
- package/lib/utils/puppeteer/statetasks.js.map +1 -0
- package/lib/utils/renderer.d.ts +47 -0
- package/lib/utils/renderer.js +499 -0
- package/lib/utils/renderer.js.map +1 -0
- package/messages/configure.md +12 -0
- package/messages/createstatecountry.md +27 -0
- package/oclif.manifest.json +184 -0
- package/package.json +209 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"commands": {
|
|
4
|
+
"jayree:org:configure:country": {
|
|
5
|
+
"id": "jayree:org:configure:country",
|
|
6
|
+
"summary": "update country integration values in the State/Country Picklists",
|
|
7
|
+
"description": "update country integration values in the State/Country Picklists",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"pluginName": "@jayree/sfdx-plugin-org",
|
|
10
|
+
"pluginAlias": "@jayree/sfdx-plugin-org",
|
|
11
|
+
"pluginType": "core",
|
|
12
|
+
"aliases": [],
|
|
13
|
+
"flags": {
|
|
14
|
+
"json": {
|
|
15
|
+
"name": "json",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"description": "Format output as json.",
|
|
18
|
+
"helpGroup": "GLOBAL",
|
|
19
|
+
"allowNo": false
|
|
20
|
+
},
|
|
21
|
+
"target-org": {
|
|
22
|
+
"name": "target-org",
|
|
23
|
+
"type": "option",
|
|
24
|
+
"char": "o",
|
|
25
|
+
"summary": "Username or alias of the target org.",
|
|
26
|
+
"required": true,
|
|
27
|
+
"multiple": false,
|
|
28
|
+
"aliases": [
|
|
29
|
+
"targetusername",
|
|
30
|
+
"u"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"api-version": {
|
|
34
|
+
"name": "api-version",
|
|
35
|
+
"type": "option",
|
|
36
|
+
"description": "Override the api version used for api requests made by this command",
|
|
37
|
+
"multiple": false,
|
|
38
|
+
"aliases": [
|
|
39
|
+
"apiversion"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"silent": {
|
|
43
|
+
"name": "silent",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"summary": "silent mode",
|
|
46
|
+
"hidden": true,
|
|
47
|
+
"required": false,
|
|
48
|
+
"allowNo": false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"args": {},
|
|
52
|
+
"hasDynamicHelp": true
|
|
53
|
+
},
|
|
54
|
+
"jayree:org:configure": {
|
|
55
|
+
"id": "jayree:org:configure",
|
|
56
|
+
"summary": "make configuration changes that are not covered by the metadata API\nSee example configuration on how to define tasks",
|
|
57
|
+
"description": "make configuration changes that are not covered by the metadata API\nSee example configuration on how to define tasks",
|
|
58
|
+
"strict": true,
|
|
59
|
+
"pluginName": "@jayree/sfdx-plugin-org",
|
|
60
|
+
"pluginAlias": "@jayree/sfdx-plugin-org",
|
|
61
|
+
"pluginType": "core",
|
|
62
|
+
"aliases": [],
|
|
63
|
+
"examples": [
|
|
64
|
+
"$ sfdx jayree:org:configure\n$ sfdx jayree:org:configure -u me@my.org\n$ sfdx jayree:org:configure --tasks=\"Asset Settings\",\"Activity Settings\"\n$ sfdx jayree:org:configure --concurrent --tasks=\"Asset Settings\",\"Activity Settings\""
|
|
65
|
+
],
|
|
66
|
+
"flags": {
|
|
67
|
+
"json": {
|
|
68
|
+
"name": "json",
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Format output as json.",
|
|
71
|
+
"helpGroup": "GLOBAL",
|
|
72
|
+
"allowNo": false
|
|
73
|
+
},
|
|
74
|
+
"target-org": {
|
|
75
|
+
"name": "target-org",
|
|
76
|
+
"type": "option",
|
|
77
|
+
"char": "o",
|
|
78
|
+
"summary": "Username or alias of the target org.",
|
|
79
|
+
"required": true,
|
|
80
|
+
"multiple": false,
|
|
81
|
+
"aliases": [
|
|
82
|
+
"targetusername",
|
|
83
|
+
"u"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"api-version": {
|
|
87
|
+
"name": "api-version",
|
|
88
|
+
"type": "option",
|
|
89
|
+
"description": "Override the api version used for api requests made by this command",
|
|
90
|
+
"multiple": false,
|
|
91
|
+
"aliases": [
|
|
92
|
+
"apiversion"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"tasks": {
|
|
96
|
+
"name": "tasks",
|
|
97
|
+
"type": "option",
|
|
98
|
+
"char": "t",
|
|
99
|
+
"summary": "list of task titles, if no tasks are specified, all tasks marked as active will be executed",
|
|
100
|
+
"multiple": true,
|
|
101
|
+
"delimiter": ","
|
|
102
|
+
},
|
|
103
|
+
"concurrent": {
|
|
104
|
+
"name": "concurrent",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"summary": "execute tasks in parallel",
|
|
107
|
+
"allowNo": false
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"args": {},
|
|
111
|
+
"hasDynamicHelp": true
|
|
112
|
+
},
|
|
113
|
+
"jayree:org:configure:state": {
|
|
114
|
+
"id": "jayree:org:configure:state",
|
|
115
|
+
"summary": "import (create/update) states into the State/Country Picklists",
|
|
116
|
+
"description": "import (create/update) states into the State/Country Picklists",
|
|
117
|
+
"strict": true,
|
|
118
|
+
"pluginName": "@jayree/sfdx-plugin-org",
|
|
119
|
+
"pluginAlias": "@jayree/sfdx-plugin-org",
|
|
120
|
+
"pluginType": "core",
|
|
121
|
+
"aliases": [],
|
|
122
|
+
"flags": {
|
|
123
|
+
"json": {
|
|
124
|
+
"name": "json",
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"description": "Format output as json.",
|
|
127
|
+
"helpGroup": "GLOBAL",
|
|
128
|
+
"allowNo": false
|
|
129
|
+
},
|
|
130
|
+
"target-org": {
|
|
131
|
+
"name": "target-org",
|
|
132
|
+
"type": "option",
|
|
133
|
+
"char": "o",
|
|
134
|
+
"summary": "Username or alias of the target org.",
|
|
135
|
+
"required": true,
|
|
136
|
+
"multiple": false,
|
|
137
|
+
"aliases": [
|
|
138
|
+
"targetusername",
|
|
139
|
+
"u"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"api-version": {
|
|
143
|
+
"name": "api-version",
|
|
144
|
+
"type": "option",
|
|
145
|
+
"description": "Override the api version used for api requests made by this command",
|
|
146
|
+
"multiple": false,
|
|
147
|
+
"aliases": [
|
|
148
|
+
"apiversion"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"country-code": {
|
|
152
|
+
"name": "country-code",
|
|
153
|
+
"type": "option",
|
|
154
|
+
"summary": "Alpha-2 code",
|
|
155
|
+
"multiple": false,
|
|
156
|
+
"aliases": [
|
|
157
|
+
"countrycode"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"category": {
|
|
161
|
+
"name": "category",
|
|
162
|
+
"type": "option",
|
|
163
|
+
"summary": "Subdivision category",
|
|
164
|
+
"multiple": false
|
|
165
|
+
},
|
|
166
|
+
"language": {
|
|
167
|
+
"name": "language",
|
|
168
|
+
"type": "option",
|
|
169
|
+
"summary": "Language code",
|
|
170
|
+
"multiple": false
|
|
171
|
+
},
|
|
172
|
+
"concurrent": {
|
|
173
|
+
"name": "concurrent",
|
|
174
|
+
"type": "option",
|
|
175
|
+
"summary": "execute tasks in parallel",
|
|
176
|
+
"multiple": false,
|
|
177
|
+
"default": 1
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"args": {},
|
|
181
|
+
"hasDynamicHelp": true
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jayree/sfdx-plugin-org",
|
|
3
|
+
"description": "A Salesforce CLI plugin containing commands to configure State and Country/Territory Picklists and other org settings.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"author": "jayree",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bugs": "https://github.com/jayree/sfdx-plugin-org/issues",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@jayree/changelog": "^1.1.0",
|
|
10
|
+
"@oclif/core": "^2.8.2",
|
|
11
|
+
"@salesforce/kit": "^1.9.2",
|
|
12
|
+
"@salesforce/sf-plugins-core": "^2.2.8",
|
|
13
|
+
"@salesforce/ts-types": "^1.7.3",
|
|
14
|
+
"debug": "^4.3.4",
|
|
15
|
+
"enquirer": "^2.3.6",
|
|
16
|
+
"fs-extra": "^11.1.1",
|
|
17
|
+
"is-docker": "^3.0.0",
|
|
18
|
+
"is-wsl": "^2.2.0",
|
|
19
|
+
"listr2": "^6.3.1",
|
|
20
|
+
"playwright-chromium": "^1.32.3",
|
|
21
|
+
"tabletojson": "^2.0.7",
|
|
22
|
+
"tslib": "^2.5.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@oclif/plugin-command-snapshot": "^3.3.12",
|
|
26
|
+
"@oclif/plugin-help": "^5.2.9",
|
|
27
|
+
"@salesforce/dev-config": "^3.1.0",
|
|
28
|
+
"@salesforce/dev-scripts": "^4.3.0",
|
|
29
|
+
"@salesforce/prettier-config": "^0.0.2",
|
|
30
|
+
"@salesforce/ts-sinon": "^1.4.6",
|
|
31
|
+
"@types/debug": "^4.1.7",
|
|
32
|
+
"@types/fs-extra": "^11.0.1",
|
|
33
|
+
"@types/wrap-ansi": "^8.0.1",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
35
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
36
|
+
"c8": "^7.13.0",
|
|
37
|
+
"chai": "^4.3.7",
|
|
38
|
+
"eslint": "^8.38.0",
|
|
39
|
+
"eslint-config-oclif": "^4.0",
|
|
40
|
+
"eslint-config-prettier": "^8.8.0",
|
|
41
|
+
"eslint-config-salesforce": "^1.2.0",
|
|
42
|
+
"eslint-config-salesforce-license": "^0.2.0",
|
|
43
|
+
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
44
|
+
"eslint-plugin-header": "^3.1.1",
|
|
45
|
+
"eslint-plugin-import": "2.27.5",
|
|
46
|
+
"eslint-plugin-jsdoc": "^43.0.3",
|
|
47
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
48
|
+
"eslint-plugin-sf-plugin": "^1.15.1",
|
|
49
|
+
"husky": "^8.0.3",
|
|
50
|
+
"is-ci": "^3.0.1",
|
|
51
|
+
"mocha": "^10.2.0",
|
|
52
|
+
"nyc": "^15.1.0",
|
|
53
|
+
"oclif": "^3.8.1",
|
|
54
|
+
"patch-package": "^6.5.1",
|
|
55
|
+
"prettier": "^2.8.7",
|
|
56
|
+
"pretty-quick": "^3.1.3",
|
|
57
|
+
"shx": "^0.3.4",
|
|
58
|
+
"sinon": "15.0.3",
|
|
59
|
+
"ts-node": "^10.9.1",
|
|
60
|
+
"typescript": "^5.0.4",
|
|
61
|
+
"wireit": "^0.9.5"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=14.0.0"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"/lib",
|
|
68
|
+
"/messages",
|
|
69
|
+
"/oclif.manifest.json",
|
|
70
|
+
"/CHANGELOG.md",
|
|
71
|
+
"/bin/is-sfdx.js",
|
|
72
|
+
"/schemas"
|
|
73
|
+
],
|
|
74
|
+
"homepage": "https://github.com/jayree/sfdx-plugin-org",
|
|
75
|
+
"keywords": [
|
|
76
|
+
"org",
|
|
77
|
+
"configure",
|
|
78
|
+
"state",
|
|
79
|
+
"country",
|
|
80
|
+
"territory",
|
|
81
|
+
"picklists",
|
|
82
|
+
"sfdx",
|
|
83
|
+
"sfdx-plugin"
|
|
84
|
+
],
|
|
85
|
+
"license": "BSD-3-Clause",
|
|
86
|
+
"oclif": {
|
|
87
|
+
"commands": "./lib/commands",
|
|
88
|
+
"bin": "sfdx",
|
|
89
|
+
"hooks": {
|
|
90
|
+
"update": "./lib/hooks/changelog"
|
|
91
|
+
},
|
|
92
|
+
"topics": {
|
|
93
|
+
"jayree": {
|
|
94
|
+
"description": "manifest, source, and org automation toolset",
|
|
95
|
+
"subtopics": {
|
|
96
|
+
"org": {
|
|
97
|
+
"description": "manage your orgs",
|
|
98
|
+
"subtopics": {
|
|
99
|
+
"configure": {
|
|
100
|
+
"description": "manage state and country picklist values"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"devPlugins": [
|
|
108
|
+
"@oclif/plugin-help",
|
|
109
|
+
"@oclif/plugin-command-snapshot"
|
|
110
|
+
],
|
|
111
|
+
"info": {
|
|
112
|
+
"releasenotes": {
|
|
113
|
+
"distTagUrl": "https://registry.npmjs.org/-/package/@jayree/sfdx-plugin-org/dist-tags",
|
|
114
|
+
"releaseNotesPath": "https://github.com/jayree/sfdx-plugin-org/tree/main",
|
|
115
|
+
"releaseNotesFilename": "CHANGELOG.md"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"repository": "jayree/sfdx-plugin-org",
|
|
120
|
+
"scripts": {
|
|
121
|
+
"build": "wireit",
|
|
122
|
+
"clean": "sf-clean",
|
|
123
|
+
"clean-all": "sf-clean all",
|
|
124
|
+
"compile": "wireit",
|
|
125
|
+
"format": "wireit",
|
|
126
|
+
"lint": "wireit",
|
|
127
|
+
"prepack": "sf-prepack",
|
|
128
|
+
"prepare": "patch-package && sf-install",
|
|
129
|
+
"test": "wireit",
|
|
130
|
+
"version": "oclif readme --no-aliases"
|
|
131
|
+
},
|
|
132
|
+
"publishConfig": {
|
|
133
|
+
"access": "public"
|
|
134
|
+
},
|
|
135
|
+
"release": {
|
|
136
|
+
"branches": [
|
|
137
|
+
"main",
|
|
138
|
+
"next"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"wireit": {
|
|
142
|
+
"build": {
|
|
143
|
+
"dependencies": [
|
|
144
|
+
"compile",
|
|
145
|
+
"lint"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
"compile": {
|
|
149
|
+
"command": "tsc --build --pretty",
|
|
150
|
+
"files": [
|
|
151
|
+
"src/**/*.ts",
|
|
152
|
+
"**/tsconfig.json",
|
|
153
|
+
"messages/**"
|
|
154
|
+
],
|
|
155
|
+
"output": [
|
|
156
|
+
"lib/**",
|
|
157
|
+
"*.tsbuildinfo"
|
|
158
|
+
],
|
|
159
|
+
"clean": "if-file-deleted"
|
|
160
|
+
},
|
|
161
|
+
"format": {
|
|
162
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
|
|
163
|
+
"files": [
|
|
164
|
+
"src/**/*.ts",
|
|
165
|
+
"test/**/*.ts",
|
|
166
|
+
"schemas/**/*.json",
|
|
167
|
+
"command-snapshot.json",
|
|
168
|
+
".prettier*"
|
|
169
|
+
],
|
|
170
|
+
"output": []
|
|
171
|
+
},
|
|
172
|
+
"lint": {
|
|
173
|
+
"command": "eslint --color --cache --cache-location .eslintcache .",
|
|
174
|
+
"files": [
|
|
175
|
+
"src/**/*.ts",
|
|
176
|
+
"test/**/*.ts",
|
|
177
|
+
"messages/**",
|
|
178
|
+
"**/.eslint*",
|
|
179
|
+
"**/tsconfig.json"
|
|
180
|
+
],
|
|
181
|
+
"output": []
|
|
182
|
+
},
|
|
183
|
+
"test": {
|
|
184
|
+
"dependencies": [
|
|
185
|
+
"test:deprecation-policy",
|
|
186
|
+
"lint",
|
|
187
|
+
"test:json-schema"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"test:deprecation-policy": {
|
|
191
|
+
"command": "\"./bin/dev.js\" snapshot:compare",
|
|
192
|
+
"files": [
|
|
193
|
+
"src/**/*.ts"
|
|
194
|
+
],
|
|
195
|
+
"output": [],
|
|
196
|
+
"dependencies": [
|
|
197
|
+
"compile"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
"test:json-schema": {
|
|
201
|
+
"command": "\"./bin/dev.js\" schema:compare",
|
|
202
|
+
"files": [
|
|
203
|
+
"src/**/*.ts",
|
|
204
|
+
"schemas"
|
|
205
|
+
],
|
|
206
|
+
"output": []
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|