sfdx-jayree 4.5.1 → 4.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +71 -198
  3. package/lib/commands/jayree/flowtestcoverage.d.ts +8 -7
  4. package/lib/commands/jayree/flowtestcoverage.js +24 -15
  5. package/lib/commands/jayree/flowtestcoverage.js.map +1 -1
  6. package/lib/commands/jayree/org/settings.d.ts +9 -10
  7. package/lib/commands/jayree/org/settings.js +30 -26
  8. package/lib/commands/jayree/org/settings.js.map +1 -1
  9. package/lib/commands/jayree/org/streaming.d.ts +8 -9
  10. package/lib/commands/jayree/org/streaming.js +14 -14
  11. package/lib/commands/jayree/org/streaming.js.map +1 -1
  12. package/lib/commands/jayree/source/fix.d.ts +8 -9
  13. package/lib/commands/jayree/source/fix.js +12 -11
  14. package/lib/commands/jayree/source/fix.js.map +1 -1
  15. package/lib/commands/jayree/version.d.ts +3 -3
  16. package/lib/commands/jayree/version.js +4 -3
  17. package/lib/commands/jayree/version.js.map +1 -1
  18. package/lib/utils/config.js +0 -25
  19. package/lib/utils/config.js.map +1 -1
  20. package/lib/utils/stateFolderHandler.js +1 -2
  21. package/lib/utils/stateFolderHandler.js.map +1 -1
  22. package/oclif.manifest.json +76 -510
  23. package/package.json +86 -39
  24. package/config/countrystate.json +0 -93
  25. package/lib/commands/jayree/org/configure/country.d.ts +0 -11
  26. package/lib/commands/jayree/org/configure/country.js +0 -137
  27. package/lib/commands/jayree/org/configure/country.js.map +0 -1
  28. package/lib/commands/jayree/org/configure/index.d.ts +0 -15
  29. package/lib/commands/jayree/org/configure/index.js +0 -135
  30. package/lib/commands/jayree/org/configure/index.js.map +0 -1
  31. package/lib/commands/jayree/org/configure/state.d.ts +0 -16
  32. package/lib/commands/jayree/org/configure/state.js +0 -239
  33. package/lib/commands/jayree/org/configure/state.js.map +0 -1
  34. package/lib/jayreeSfdxCommand.d.ts +0 -4
  35. package/lib/jayreeSfdxCommand.js +0 -15
  36. package/lib/jayreeSfdxCommand.js.map +0 -1
  37. package/lib/utils/puppeteer/configuretasks.d.ts +0 -14
  38. package/lib/utils/puppeteer/configuretasks.js +0 -270
  39. package/lib/utils/puppeteer/configuretasks.js.map +0 -1
  40. package/lib/utils/puppeteer/statetasks.d.ts +0 -51
  41. package/lib/utils/puppeteer/statetasks.js +0 -385
  42. package/lib/utils/puppeteer/statetasks.js.map +0 -1
  43. package/lib/utils/renderer.d.ts +0 -45
  44. package/lib/utils/renderer.js +0 -461
  45. package/lib/utils/renderer.js.map +0 -1
  46. package/messages/configure.json +0 -5
  47. package/messages/createstatecountry.json +0 -9
  48. package/messages/scratchorgtrackingget.json +0 -3
  49. package/messages/scratchorgtrackinglist.json +0 -4
  50. package/messages/scratchorgtrackingset.json +0 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sfdx-jayree",
3
3
  "description": "A Salesforce CLI plugin containing commands and hooks for Salesforce Application Lifecycle Management tasks.",
4
- "version": "4.5.1",
4
+ "version": "4.6.0",
5
5
  "author": "jayree <jayree.git@icloud.com>",
6
6
  "bugs": "https://github.com/jayree/sfdx-jayree-plugin/issues",
7
7
  "type": "module",
@@ -9,52 +9,45 @@
9
9
  "@jayree/changelog": "^1.1.0",
10
10
  "@jayree/sfdx-plugin-legacy": "^1.1.34",
11
11
  "@jayree/sfdx-plugin-manifest": "^3.0.11",
12
+ "@jayree/sfdx-plugin-org": "^1.0.0",
12
13
  "@jayree/sfdx-plugin-prettier": "^1.2.37",
13
14
  "@jayree/sfdx-plugin-source": "^1.0.5",
14
15
  "@oclif/core": "^2.8.2",
15
16
  "@salesforce/command": "^5.3.5",
16
17
  "@salesforce/kit": "^1.9.2",
18
+ "@salesforce/sf-plugins-core": "^2.2.8",
17
19
  "@salesforce/source-deploy-retrieve": "^8.0.1",
18
20
  "@salesforce/source-tracking": "^3.1.1",
19
21
  "debug": "^4.3.4",
20
22
  "fast-xml-parser": "^4.2.0",
21
23
  "fs-extra": "^11.1.1",
22
24
  "ignore": "^5.2.4",
23
- "is-docker": "^3.0.0",
24
- "is-wsl": "^2.2.0",
25
- "listr2": "^6.2.0",
26
25
  "mkdirp": "^3.0.0",
27
26
  "object-path": "^0.11.8",
28
- "playwright-chromium": "^1.32.3",
29
- "tabletojson": "^2.0.7",
30
27
  "tslib": "^2.5.0"
31
28
  },
32
29
  "devDependencies": {
33
- "@commitlint/cli": "^17.6.1",
34
- "@commitlint/config-conventional": "^17.6.1",
35
30
  "@oclif/plugin-command-snapshot": "^3.3.12",
36
31
  "@oclif/plugin-help": "^5.2.9",
37
32
  "@salesforce/dev-config": "^3.1.0",
38
- "@salesforce/dev-scripts": "^3.1.1",
33
+ "@salesforce/dev-scripts": "^4.3.0",
39
34
  "@salesforce/prettier-config": "^0.0.2",
40
35
  "@salesforce/ts-sinon": "^1.4.6",
41
- "@types/chai": "^4.3.4",
42
36
  "@types/fs-extra": "^11.0.1",
43
37
  "@types/jsforce": "^1.11.0",
44
38
  "@types/mkdirp": "^1.0.2",
45
- "@types/mocha": "^10.0.1",
46
- "@types/node": "^18.15.11",
47
- "@types/sinon": "^10.0.13",
48
39
  "@typescript-eslint/eslint-plugin": "^5.58.0",
49
40
  "@typescript-eslint/parser": "^5.58.0",
41
+ "c8": "^7.12.0",
50
42
  "chai": "^4.3.7",
51
43
  "eslint": "^8.38.0",
52
44
  "eslint-config-prettier": "^8.8.0",
53
45
  "eslint-config-salesforce": "^1.2.0",
46
+ "eslint-config-salesforce-license": "^0.1.6",
54
47
  "eslint-config-salesforce-typescript": "^1.1.1",
55
48
  "eslint-plugin-header": "^3.1.1",
56
49
  "eslint-plugin-import": "^2.27.5",
57
- "eslint-plugin-jsdoc": "^41.1.1",
50
+ "eslint-plugin-jsdoc": "^43.0.3",
58
51
  "eslint-plugin-prettier": "^4.2.1",
59
52
  "eslint-plugin-sf-plugin": "^1.15.1",
60
53
  "husky": "^8.0.3",
@@ -69,9 +62,9 @@
69
62
  "pretty-quick": "^3.1.3",
70
63
  "shx": "^0.3.4",
71
64
  "sinon": "^15.0.3",
72
- "source-map-support": "^0.5.21",
73
65
  "ts-node": "^10.9.1",
74
- "typescript": "^5.0.4"
66
+ "typescript": "^5.0.4",
67
+ "wireit": "^0.9.5"
75
68
  },
76
69
  "engines": {
77
70
  "node": ">=14.0.0"
@@ -126,12 +119,7 @@
126
119
  "description": "manifest, source, and org automation toolset",
127
120
  "subtopics": {
128
121
  "org": {
129
- "description": "manage your orgs",
130
- "subtopics": {
131
- "configure": {
132
- "description": "manage state and country picklist values"
133
- }
134
- }
122
+ "description": "manage your orgs"
135
123
  },
136
124
  "source": {
137
125
  "description": "sync your project with your orgs"
@@ -147,6 +135,7 @@
147
135
  "@jayree/sfdx-plugin-prettier",
148
136
  "@jayree/sfdx-plugin-manifest",
149
137
  "@jayree/sfdx-plugin-source",
138
+ "@jayree/sfdx-plugin-org",
150
139
  "@jayree/sfdx-plugin-legacy"
151
140
  ],
152
141
  "info": {
@@ -159,31 +148,89 @@
159
148
  },
160
149
  "repository": "jayree/sfdx-jayree-plugin",
161
150
  "scripts": {
162
- "build": "sf-build",
151
+ "build": "wireit",
163
152
  "clean": "sf-clean",
164
153
  "clean-all": "sf-clean all",
165
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
166
- "compile": "sf-compile",
167
- "format": "sf-format",
168
- "lint": "sf-lint",
169
- "lint-fix": "sf-lint --fix",
170
- "postcompile": "oclif readme",
171
- "_postinstall": "patch-package",
172
- "postpack": "shx rm -f oclif.manifest.json",
173
- "postpublish": "pinst --enable",
174
- "posttest": "yarn lint && yarn test:deprecation-policy",
154
+ "compile": "wireit",
155
+ "format": "wireit",
156
+ "lint": "wireit",
175
157
  "prepack": "sf-prepack",
176
- "prepare": "is-ci || husky install",
177
- "prepublishOnly": "pinst --disable",
178
- "pretest": "sf-compile-test",
179
- "test": "sf-test",
180
- "test:deprecation-policy": "./bin/dev.js snapshot:compare",
181
- "version": "oclif readme"
158
+ "prepare": "patch-package && sf-install",
159
+ "test": "wireit",
160
+ "version": "oclif readme --no-aliases"
182
161
  },
183
162
  "release": {
184
163
  "branches": [
185
164
  "main",
186
165
  "next"
187
166
  ]
167
+ },
168
+ "wireit": {
169
+ "build": {
170
+ "dependencies": [
171
+ "compile",
172
+ "lint"
173
+ ]
174
+ },
175
+ "compile": {
176
+ "command": "tsc --build --pretty",
177
+ "files": [
178
+ "src/**/*.ts",
179
+ "**/tsconfig.json",
180
+ "messages/**"
181
+ ],
182
+ "output": [
183
+ "lib/**",
184
+ "*.tsbuildinfo"
185
+ ],
186
+ "clean": "if-file-deleted"
187
+ },
188
+ "format": {
189
+ "command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\"",
190
+ "files": [
191
+ "src/**/*.ts",
192
+ "test/**/*.ts",
193
+ "schemas/**/*.json",
194
+ "command-snapshot.json",
195
+ ".prettier*"
196
+ ],
197
+ "output": []
198
+ },
199
+ "lint": {
200
+ "command": "eslint --color --cache --cache-location .eslintcache .",
201
+ "files": [
202
+ "src/**/*.ts",
203
+ "test/**/*.ts",
204
+ "messages/**",
205
+ "**/.eslint*",
206
+ "**/tsconfig.json"
207
+ ],
208
+ "output": []
209
+ },
210
+ "test": {
211
+ "dependencies": [
212
+ "test:deprecation-policy",
213
+ "lint",
214
+ "test:json-schema"
215
+ ]
216
+ },
217
+ "test:deprecation-policy": {
218
+ "command": "\"./bin/dev.js\" snapshot:compare",
219
+ "files": [
220
+ "src/**/*.ts"
221
+ ],
222
+ "output": [],
223
+ "dependencies": [
224
+ "compile"
225
+ ]
226
+ },
227
+ "test:json-schema": {
228
+ "command": "\"./bin/dev.js\" schema:compare",
229
+ "files": [
230
+ "src/**/*.ts",
231
+ "schemas"
232
+ ],
233
+ "output": []
234
+ }
188
235
  }
189
236
  }
@@ -1,93 +0,0 @@
1
- {
2
- "updatecheck": "#bodyCell > table > tbody > tr:nth-child(1) > td > span",
3
- "update": {
4
- "editName": "#configurecountry:form:blockEditCountry:j_id9:j_id37:editName",
5
- "editIsoCode": "#configurecountry:form:blockEditCountry:j_id9:j_id40:editIsoCode",
6
- "editIntVal": "#configurecountry:form:blockEditCountry:j_id9:j_id43:editIntVal",
7
- "editActive": "#configurecountry:form:blockEditCountry:j_id9:j_id46:editActive",
8
- "editVisible": "#configurecountry:form:blockEditCountry:j_id9:j_id49:editVisible",
9
- "save": "#configurecountry:form:blockEditCountry:j_id8:saveButtonTop"
10
- },
11
- "create": {
12
- "editName": "#configurenew:j_id1:blockNew:j_id9:nameSectionItem:editName",
13
- "editIsoCode": "#configurenew:j_id1:blockNew:j_id9:codeSectionItem:editIsoCode",
14
- "editIntVal": "#configurenew:j_id1:blockNew:j_id9:intValSectionItem:editIntVal",
15
- "editActive": "#configurenew:j_id1:blockNew:j_id9:activeSectionItem:editActive",
16
- "editVisible": "#configurenew:j_id1:blockNew:j_id9:visibleSectionItem:editVisible",
17
- "save": "#configurenew:j_id1:blockNew:j_id43:addButton"
18
- },
19
- "setCountry": {
20
- "editIntVal": "#configurecountry:form:blockEditCountry:j_id33:j_id40:editIntVal",
21
- "save": "#configurecountry:form:blockTopButtons:j_id6:saveButtonTop"
22
- },
23
- "fix": {},
24
- "deactivate": {
25
- "CN": {
26
- "autonomous region": ["CN-45", "CN-15", "CN-64", "CN-65", "CN-54"],
27
- "municipality": ["CN-11", "CN-50", "CN-31", "CN-12"],
28
- "province": [
29
- "CN-34",
30
- "CN-35",
31
- "CN-62",
32
- "CN-44",
33
- "CN-52",
34
- "CN-46",
35
- "CN-13",
36
- "CN-23",
37
- "CN-41",
38
- "CN-42",
39
- "CN-43",
40
- "CN-32",
41
- "CN-36",
42
- "CN-22",
43
- "CN-21",
44
- "CN-63",
45
- "CN-61",
46
- "CN-37",
47
- "CN-14",
48
- "CN-51",
49
- "CN-71",
50
- "CN-53",
51
- "CN-33"
52
- ],
53
- "special administrative region": ["CN-92", "CN-91"]
54
- },
55
- "IT": { "province": ["IT-AO", "IT-CI", "IT-GO", "IT-OG", "IT-OT", "IT-PN", "IT-TS", "IT-UD", "IT-VS"] },
56
- "MX": {
57
- "federal district": ["MX-DF"],
58
- "state": [
59
- "MX-AG",
60
- "MX-BC",
61
- "MX-BS",
62
- "MX-CM",
63
- "MX-CH",
64
- "MX-CS",
65
- "MX-CO",
66
- "MX-CL",
67
- "MX-DG",
68
- "MX-GR",
69
- "MX-GT",
70
- "MX-HG",
71
- "MX-JA",
72
- "MX-ME",
73
- "MX-MI",
74
- "MX-MO",
75
- "MX-NA",
76
- "MX-NL",
77
- "MX-OA",
78
- "MX-PB",
79
- "MX-QE",
80
- "MX-QR",
81
- "MX-SI",
82
- "MX-SL",
83
- "MX-SO",
84
- "MX-TB",
85
- "MX-TM",
86
- "MX-TL",
87
- "MX-VE",
88
- "MX-YU",
89
- "MX-ZA"
90
- ]
91
- }
92
- }
93
- }
@@ -1,11 +0,0 @@
1
- import { flags, SfdxCommand } from '@salesforce/command';
2
- export default class UpdateCountry extends SfdxCommand {
3
- static description: string;
4
- protected static flagsConfig: {
5
- silent: flags.Discriminated<flags.Boolean<boolean>>;
6
- };
7
- protected static requiresUsername: boolean;
8
- protected static supportsDevhubUsername: boolean;
9
- protected static requiresProject: boolean;
10
- run(): Promise<void>;
11
- }
@@ -1,137 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { createRequire } from 'module';
8
- import { dirname } from 'node:path';
9
- import { fileURLToPath } from 'node:url';
10
- import { flags, SfdxCommand } from '@salesforce/command';
11
- import { Messages } from '@salesforce/core';
12
- import { ux } from '@oclif/core';
13
- import playwright from 'playwright-chromium';
14
- import { Tabletojson as tabletojson } from 'tabletojson';
15
- import config from '../../../../utils/config.js';
16
- const require = createRequire(import.meta.url);
17
- const CSconfig = require('../../../../../config/countrystate.json');
18
- // eslint-disable-next-line no-underscore-dangle
19
- const __filename = fileURLToPath(import.meta.url);
20
- // eslint-disable-next-line no-underscore-dangle
21
- const __dirname = dirname(__filename);
22
- Messages.importMessagesDirectory(__dirname);
23
- const messages = Messages.loadMessages('sfdx-jayree', 'createstatecountry');
24
- class UpdateCountry extends SfdxCommand {
25
- async run() {
26
- let spinnermessage = '';
27
- const browser = await playwright['chromium'].launch(config().puppeteer);
28
- const context = await browser.newContext();
29
- const page = await context.newPage();
30
- const setHTMLInputElementValue = async (newvalue, element) => {
31
- element = element.replace(/:/g, '\\:');
32
- const elementDisabled = await page.evaluate((s) => {
33
- const result = document.querySelector(s);
34
- if (result != null) {
35
- return result['disabled'];
36
- }
37
- else {
38
- return true;
39
- }
40
- }, element);
41
- // const currentvalue = await page.evaluate(s => (document.querySelector(s) as HTMLInputElement).value, element);
42
- if (!elementDisabled) {
43
- return page.fill(element, newvalue);
44
- }
45
- };
46
- const bar = ux.progress({
47
- barCompleteChar: '\u2588',
48
- barIncompleteChar: '\u2591',
49
- format: 'State and Country/Territory Picklist | [{bar}] {percentage}% | ETA: {eta}s | {value}/{total} | {text}',
50
- stream: process.stdout,
51
- });
52
- try {
53
- // eslint-disable-next-line no-unused-expressions
54
- !this.flags.silent
55
- ? this.ux.startSpinner('State and Country/Territory Picklist')
56
- : process.stdout.write('State and Country/Territory Picklist');
57
- await this.org.refreshAuth();
58
- const conn = this.org.getConnection();
59
- spinnermessage = `login to ${conn.instanceUrl}`;
60
- // eslint-disable-next-line no-unused-expressions
61
- !this.flags.silent ? this.ux.setSpinnerStatus(spinnermessage) : process.stdout.write('.');
62
- await page.goto(conn.instanceUrl + '/secur/frontdoor.jsp?sid=' + conn.accessToken, {
63
- waitUntil: 'networkidle',
64
- });
65
- spinnermessage = 'retrieve list of countries';
66
- // eslint-disable-next-line no-unused-expressions
67
- !this.flags.silent ? this.ux.setSpinnerStatus(spinnermessage) : process.stdout.write('.');
68
- try {
69
- await page.goto(conn.instanceUrl + '/i18n/ConfigStateCountry.apexp?setupid=AddressCleanerOverview', {
70
- waitUntil: 'networkidle',
71
- });
72
- await page.waitForSelector('.list', { state: 'visible' });
73
- }
74
- catch (error) {
75
- throw Error("list of countries couldn't be loaded");
76
- }
77
- this.ux.stopSpinner();
78
- const table = await page.evaluate(() => document.querySelector('.list').outerHTML);
79
- const list = tabletojson.convert(table)[0];
80
- let curr = 0;
81
- if (!this.flags.silent) {
82
- bar.start(list.length, 0, {
83
- text: '',
84
- });
85
- }
86
- for await (const value of list) {
87
- const cCodeKey = Object.keys(value)[4];
88
- const cNameKey = Object.keys(value)[3];
89
- const countryCode = value[cCodeKey];
90
- const countryName = value[cNameKey];
91
- curr = curr + 1;
92
- // eslint-disable-next-line no-unused-expressions
93
- !this.flags.silent
94
- ? bar.update(curr, {
95
- text: 'update ' + countryName + '/' + countryCode,
96
- })
97
- : process.stdout.write('.');
98
- await page.goto(conn.instanceUrl + `/i18n/ConfigureCountry.apexp?countryIso=${countryCode}&setupid=AddressCleanerOverview`, {
99
- waitUntil: 'networkidle',
100
- });
101
- const setCountrySelector = CSconfig.setCountry;
102
- await setHTMLInputElementValue(countryCode, setCountrySelector.editIntVal);
103
- await page.click(setCountrySelector.save.replace(/:/g, '\\:'));
104
- await page.waitForSelector('.message.confirmM3', { state: 'visible' });
105
- }
106
- }
107
- catch (error) {
108
- throw new Error(error.message);
109
- }
110
- finally {
111
- // eslint-disable-next-line no-unused-expressions
112
- !this.flags.silent ? bar.update(bar.getTotal(), { text: '' }) : process.stdout.write('.');
113
- this.ux.stopSpinner();
114
- bar.stop();
115
- if (page) {
116
- await page.close();
117
- if (browser) {
118
- await browser.close();
119
- }
120
- }
121
- }
122
- }
123
- }
124
- UpdateCountry.description = messages.getMessage('commandCountryDescription');
125
- UpdateCountry.flagsConfig = {
126
- silent: flags.boolean({
127
- description: messages.getMessage('silentFlagDescription'),
128
- required: false,
129
- default: false,
130
- hidden: true,
131
- }),
132
- };
133
- UpdateCountry.requiresUsername = true;
134
- UpdateCountry.supportsDevhubUsername = false;
135
- UpdateCountry.requiresProject = false;
136
- export default UpdateCountry;
137
- //# sourceMappingURL=country.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"country.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/org/configure/country.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,MAAM,MAAM,6BAA6B,CAAC;AAEjD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,yCAAyC,CAAC,CAAC;AAEpE,gDAAgD;AAChD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,gDAAgD;AAChD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,QAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,oBAAoB,CAAC,CAAC;AAE5E,MAAqB,aAAc,SAAQ,WAAW;IAgB7C,KAAK,CAAC,GAAG;QACd,IAAI,cAAc,GAAG,EAAE,CA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';
3
- export default class ConfigureOrg extends SfdxCommand {
4
- static description: string;
5
- static examples: string[];
6
- protected static flagsConfig: {
7
- tasks: flags.Discriminated<flags.Array<string>>;
8
- concurrent: flags.Discriminated<flags.Boolean<boolean>>;
9
- };
10
- protected static requiresUsername: boolean;
11
- protected static supportsDevhubUsername: boolean;
12
- protected static requiresProject: boolean;
13
- private isOutputEnabled;
14
- run(): Promise<AnyJson>;
15
- }
@@ -1,135 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { dirname } from 'node:path';
8
- import { fileURLToPath } from 'node:url';
9
- import { flags, SfdxCommand } from '@salesforce/command';
10
- import { Messages } from '@salesforce/core';
11
- import { traverse } from '@salesforce/core/lib/util/internal.js';
12
- import { ListrLogger, Listr, PRESET_TIMER } from 'listr2';
13
- import kit from '@salesforce/kit';
14
- import Debug from 'debug';
15
- import config from '../../../../utils/config.js';
16
- import { PuppeteerConfigureTasks } from '../../../../utils/puppeteer/configuretasks.js';
17
- // eslint-disable-next-line no-underscore-dangle
18
- const __filename = fileURLToPath(import.meta.url);
19
- // eslint-disable-next-line no-underscore-dangle
20
- const __dirname = dirname(__filename);
21
- Messages.importMessagesDirectory(__dirname);
22
- const messages = Messages.loadMessages('sfdx-jayree', 'configure');
23
- const logger = new ListrLogger({ useIcons: false });
24
- const debug = Debug('jayree:org:configure');
25
- class ConfigureOrg extends SfdxCommand {
26
- async run() {
27
- const isContentTypeJSON = kit.env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
28
- this.isOutputEnabled = !(process.argv.find((arg) => arg === '--json') || isContentTypeJSON);
29
- await this.org.refreshAuth();
30
- const configPath = await traverse.forFile(process.cwd(), '.sfdx-jayree.json');
31
- let allTasks = [];
32
- let selectedSetupTasks = [];
33
- if (this.flags.tasks) {
34
- this.flags.tasks.forEach((task) => {
35
- selectedSetupTasks = selectedSetupTasks.concat(config(configPath).setupTasks.filter((t) => task === t.title));
36
- });
37
- allTasks = selectedSetupTasks;
38
- }
39
- else {
40
- selectedSetupTasks = config(configPath).setupTasks.filter((t) => t.isactive === true);
41
- allTasks = config(configPath).setupTasks;
42
- }
43
- const setupTaskRunner = new PuppeteerConfigureTasks({
44
- accessToken: this.org.getConnection().accessToken,
45
- instanceUrl: this.org.getConnection().instanceUrl,
46
- }, selectedSetupTasks);
47
- const setupTasks = new Listr([], { concurrent: this.flags.concurrent, exitOnError: false });
48
- allTasks.forEach((el) => {
49
- setupTasks.add({
50
- title: el.title,
51
- skip: () => !selectedSetupTasks.includes(el),
52
- task: async (ctx, task) => {
53
- const sTask = setupTaskRunner.getNext();
54
- if (!(await sTask.execute(task))) {
55
- task.skip();
56
- }
57
- },
58
- options: { persistentOutput: false, bottomBar: 5 },
59
- });
60
- });
61
- const mainTasks = new Listr([
62
- {
63
- title: 'Open Browser',
64
- skip: () => !(selectedSetupTasks.length > 0),
65
- task: async () => {
66
- await setupTaskRunner.open();
67
- },
68
- },
69
- {
70
- title: 'Execute SetupTasks',
71
- skip: () => !(selectedSetupTasks.length > 0),
72
- task: () => setupTasks,
73
- },
74
- {
75
- title: 'Close Browser',
76
- skip: () => !(selectedSetupTasks.length > 0),
77
- task: async () => {
78
- await setupTaskRunner.close();
79
- },
80
- },
81
- ], {
82
- rendererOptions: {
83
- timer: {
84
- ...PRESET_TIMER,
85
- condition: (duration) => duration > 250,
86
- },
87
- collapseErrors: false,
88
- collapseSubtasks: false,
89
- },
90
- silentRendererCondition: !this.isOutputEnabled,
91
- fallbackRendererCondition: debug.enabled,
92
- exitOnError: false,
93
- });
94
- try {
95
- const context = await mainTasks.run();
96
- if (debug.enabled) {
97
- if (this.isOutputEnabled) {
98
- logger.toStderr(`Context: ${JSON.stringify(context, null, 2)}`);
99
- }
100
- return context;
101
- }
102
- return {
103
- context,
104
- };
105
- }
106
- catch (e) {
107
- if (this.isOutputEnabled) {
108
- logger.toStderr(e);
109
- }
110
- return { ...e };
111
- }
112
- }
113
- }
114
- ConfigureOrg.description = messages.getMessage('commandDescription');
115
- ConfigureOrg.examples = [
116
- `$ sfdx jayree:org:configure
117
- $ sfdx jayree:org:configure -u me@my.org
118
- $ sfdx jayree:org:configure --tasks="Asset Settings","Activity Settings"
119
- $ sfdx jayree:org:configure --concurrent --tasks="Asset Settings","Activity Settings"`,
120
- ];
121
- ConfigureOrg.flagsConfig = {
122
- tasks: flags.array({
123
- char: 't',
124
- description: messages.getMessage('tasks'),
125
- }),
126
- concurrent: flags.boolean({
127
- description: messages.getMessage('concurrent'),
128
- default: false,
129
- }),
130
- };
131
- ConfigureOrg.requiresUsername = true;
132
- ConfigureOrg.supportsDevhubUsername = false;
133
- ConfigureOrg.requiresProject = false;
134
- export default ConfigureOrg;
135
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/commands/jayree/org/configure/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AAExF,gDAAgD;AAChD,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,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,EAAE,CAAC,CAAC;iBACjE;gBACD,OAAO,OAA6B,CAAC;aACtC;YACD,OAAO;gBACL,OAAO;aACR,CAAC;SACH;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,IAAI,CAAC,eAAe,EAAE;gBACxB,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;aACpB;YACD,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC;SACjB;IACH,CAAC;;AA3Ha,wBAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAExD,qBAAQ,GAAG;IACvB;;;sFAGkF;CACnF,CAAC;AAEe,wBAAW,GAAG;IAC7B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACjB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,OAAO,CAAC;KAC1C,CAAC;IACF,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;QAC9C,OAAO,EAAE,KAAK;KACf,CAAC;CACH,CAAC;AAEe,6BAAgB,GAAG,IAAI,CAAC;AACxB,mCAAsB,GAAG,KAAK,CAAC;AAC/B,4BAAe,GAAG,KAAK,CAAC;eAvBtB,YAAY"}
@@ -1,16 +0,0 @@
1
- import { flags, SfdxCommand } from '@salesforce/command';
2
- import { AnyJson } from '@salesforce/ts-types';
3
- export default class ImportState extends SfdxCommand {
4
- static description: string;
5
- protected static flagsConfig: {
6
- countrycode: flags.Discriminated<flags.String>;
7
- category: flags.Discriminated<flags.String>;
8
- language: flags.Discriminated<flags.String>;
9
- concurrent: flags.Discriminated<flags.Number>;
10
- };
11
- protected static requiresUsername: boolean;
12
- protected static supportsDevhubUsername: boolean;
13
- protected static requiresProject: boolean;
14
- private isOutputEnabled;
15
- run(): Promise<AnyJson>;
16
- }