@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,270 @@
|
|
|
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 playwright from 'playwright-chromium';
|
|
8
|
+
import chalk from 'chalk';
|
|
9
|
+
import Debug from 'debug';
|
|
10
|
+
import config from '../config.js';
|
|
11
|
+
const debug = Debug('jayree:org:configure');
|
|
12
|
+
export class PuppeteerConfigureTasks {
|
|
13
|
+
constructor(auth, tasks) {
|
|
14
|
+
this.nextTaskIndex = -1;
|
|
15
|
+
this.tasks = tasks;
|
|
16
|
+
this.auth = auth;
|
|
17
|
+
}
|
|
18
|
+
// eslint-disable-next-line complexity
|
|
19
|
+
static async subExec(page, task) {
|
|
20
|
+
for await (const call of task.evaluate) {
|
|
21
|
+
if (call.action === 'click') {
|
|
22
|
+
try {
|
|
23
|
+
if (typeof call.waitFor === 'string') {
|
|
24
|
+
if (call.waitFor === 'Navigation') {
|
|
25
|
+
// Nothing to do
|
|
26
|
+
}
|
|
27
|
+
else if (call.waitFor !== '') {
|
|
28
|
+
const value = await page.evaluate((c) => {
|
|
29
|
+
const element = document.querySelector(c.waitFor);
|
|
30
|
+
return Boolean(element && (element.offsetWidth || element.offsetHeight || element.getClientRects().length));
|
|
31
|
+
}, call);
|
|
32
|
+
if (value === true) {
|
|
33
|
+
debug(`checked already ${call.type.checkbox.checked}`);
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (typeof call.waitFor === 'object') {
|
|
39
|
+
if (typeof call.waitFor.querySelector === 'string') {
|
|
40
|
+
let value;
|
|
41
|
+
if (typeof call.waitFor.property !== 'undefined') {
|
|
42
|
+
value = await page.evaluate((c) => {
|
|
43
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
44
|
+
const _value = document.querySelector(c.querySelector);
|
|
45
|
+
if (_value !== null) {
|
|
46
|
+
return _value[c.property].trim().includes(c.value);
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}, call.waitFor);
|
|
50
|
+
}
|
|
51
|
+
if (value === true) {
|
|
52
|
+
debug('already done');
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (typeof call.type === 'object' && call.type.checkbox) {
|
|
58
|
+
const state = await page.evaluate((c) => ({
|
|
59
|
+
checked: document.querySelector(c.querySelector)?.checked,
|
|
60
|
+
disabled: document.querySelector(c.querySelector)?.disabled,
|
|
61
|
+
}), call);
|
|
62
|
+
debug(state);
|
|
63
|
+
if (state.checked === call.type.checkbox.checked) {
|
|
64
|
+
debug(`checked already ${call.type.checkbox.checked}`);
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
else if (state.disabled) {
|
|
68
|
+
throw new Error('checkbox disabled');
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
await page.evaluate((c) => {
|
|
72
|
+
document.querySelector(c.querySelector)?.click();
|
|
73
|
+
}, call);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (typeof call.type === 'object' && call.type.list) {
|
|
77
|
+
await page.waitForSelector('table', {
|
|
78
|
+
timeout: 300000,
|
|
79
|
+
state: 'visible',
|
|
80
|
+
});
|
|
81
|
+
debug({
|
|
82
|
+
[call.querySelectorAll]: await page.evaluate((c) => {
|
|
83
|
+
const elements = document.querySelectorAll(c.querySelectorAll);
|
|
84
|
+
const ret = [];
|
|
85
|
+
elements.forEach((element) => {
|
|
86
|
+
ret.push(element.textContent?.trim());
|
|
87
|
+
});
|
|
88
|
+
return ret;
|
|
89
|
+
}, call),
|
|
90
|
+
});
|
|
91
|
+
const found = await page.evaluate((c) => {
|
|
92
|
+
const elements = document.querySelectorAll(c.querySelectorAll);
|
|
93
|
+
let ret = '';
|
|
94
|
+
elements.forEach((element) => {
|
|
95
|
+
if (element.textContent?.trim() === c.type.list.selection) {
|
|
96
|
+
element.click();
|
|
97
|
+
ret = element.textContent.trim();
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return ret;
|
|
101
|
+
}, call);
|
|
102
|
+
if (found !== call.type.list.selection) {
|
|
103
|
+
debug(`value ${call.type.list.selection} not found`);
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (typeof call.type === 'string' && call.type === 'button') {
|
|
108
|
+
if (await page.$(call.querySelector)) {
|
|
109
|
+
await page.evaluate((c) => {
|
|
110
|
+
document.querySelector(c)?.click();
|
|
111
|
+
}, call.querySelector);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
debug('button not found');
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if (typeof call.type === 'string' && call.type === 'lightningbutton') {
|
|
119
|
+
const myCanvas = await page.$(call.querySelector);
|
|
120
|
+
if (myCanvas) {
|
|
121
|
+
const myCanvasBox = await myCanvas.boundingBox();
|
|
122
|
+
if (myCanvasBox) {
|
|
123
|
+
await page.mouse.click(myCanvasBox.x + myCanvasBox.width / 2, myCanvasBox.y + myCanvasBox.height / 2);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
debug('button not found');
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
throw new Error(error.message);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (call.action === 'type') {
|
|
137
|
+
if (typeof call.value === 'string') {
|
|
138
|
+
const value = await page.evaluate((c) => {
|
|
139
|
+
const element = document.querySelector(c);
|
|
140
|
+
return element?.value;
|
|
141
|
+
}, call.querySelector);
|
|
142
|
+
if (value === call.value) {
|
|
143
|
+
debug(`value already ${call.value}`);
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
await page.evaluate((c) => {
|
|
148
|
+
const element = document.querySelector(c.querySelector);
|
|
149
|
+
element.value = c.value;
|
|
150
|
+
}, call);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (typeof call.waitFor === 'string') {
|
|
155
|
+
if (call.waitFor === 'Navigation') {
|
|
156
|
+
await page.waitForNavigation({
|
|
157
|
+
waitUntil: 'networkidle',
|
|
158
|
+
timeout: 300000,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
else if (call.waitFor !== '') {
|
|
162
|
+
await page.waitForSelector(call.waitFor, {
|
|
163
|
+
state: 'visible',
|
|
164
|
+
timeout: 300000,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (Array.isArray(call.waitFor)) {
|
|
169
|
+
if (call.waitFor[0] === 'not') {
|
|
170
|
+
/* eslint no-constant-condition: ["error", { "checkLoops": false }] */
|
|
171
|
+
while (true) {
|
|
172
|
+
try {
|
|
173
|
+
// eslint-disable-next-line no-await-in-loop
|
|
174
|
+
await page.waitForSelector(call.waitFor[1], { state: 'hidden' });
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
catch (e) {
|
|
178
|
+
debug(e.message);
|
|
179
|
+
// eslint-disable-next-line no-await-in-loop
|
|
180
|
+
await page.reload({
|
|
181
|
+
waitUntil: 'networkidle',
|
|
182
|
+
});
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
await page.waitForSelector(call.waitFor[1], {
|
|
189
|
+
state: 'visible',
|
|
190
|
+
timeout: 300000,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
if (typeof call.waitFor === 'object') {
|
|
195
|
+
if (typeof call.waitFor.querySelector === 'string') {
|
|
196
|
+
if (typeof call.waitFor.property !== 'undefined') {
|
|
197
|
+
await page.waitForFunction((c) => {
|
|
198
|
+
const value = document.querySelector(c.querySelector);
|
|
199
|
+
if (value !== null) {
|
|
200
|
+
return value[c.property]?.trim().includes(c.value);
|
|
201
|
+
}
|
|
202
|
+
return false;
|
|
203
|
+
}, call.waitFor, {
|
|
204
|
+
timeout: 300000,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return true;
|
|
211
|
+
}
|
|
212
|
+
getNext() {
|
|
213
|
+
this.nextTaskIndex = this.nextTaskIndex + 1;
|
|
214
|
+
this.currenTask = this.tasks[this.nextTaskIndex];
|
|
215
|
+
return this;
|
|
216
|
+
}
|
|
217
|
+
async close() {
|
|
218
|
+
if (this.browser) {
|
|
219
|
+
await this.browser.close();
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async open() {
|
|
223
|
+
if (!this.browser) {
|
|
224
|
+
this.browser = await playwright['chromium'].launch(config().puppeteer);
|
|
225
|
+
this.context = await this.browser.newContext();
|
|
226
|
+
const login = await this.context.newPage();
|
|
227
|
+
await login.goto(`${this.auth.instanceUrl}/secur/frontdoor.jsp?sid=${this.auth.accessToken}`, {
|
|
228
|
+
waitUntil: 'networkidle',
|
|
229
|
+
timeout: 300000,
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
async execute(listrTask) {
|
|
234
|
+
const task = this.currenTask;
|
|
235
|
+
if (!this.browser) {
|
|
236
|
+
await this.open();
|
|
237
|
+
}
|
|
238
|
+
if (!task.tasks) {
|
|
239
|
+
task.tasks = [{ evaluate: task.evaluate }];
|
|
240
|
+
}
|
|
241
|
+
let retValue = false;
|
|
242
|
+
for await (const subTask of task.tasks) {
|
|
243
|
+
const page = await this.context.newPage();
|
|
244
|
+
await page.goto(this.auth.instanceUrl + task.url, {
|
|
245
|
+
waitUntil: 'networkidle',
|
|
246
|
+
timeout: 300000,
|
|
247
|
+
});
|
|
248
|
+
if (task.iframe) {
|
|
249
|
+
await page.waitForSelector('iframe', { timeout: 300000, state: 'visible' });
|
|
250
|
+
await page.goto(page.frames()[task.iframe].url(), {
|
|
251
|
+
waitUntil: 'networkidle',
|
|
252
|
+
timeout: 300000,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
if ((await PuppeteerConfigureTasks.subExec(page, subTask)) === true) {
|
|
256
|
+
retValue = true;
|
|
257
|
+
if (subTask.title) {
|
|
258
|
+
listrTask.output = `${subTask.title}`;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else if (subTask.title) {
|
|
262
|
+
listrTask.output = `${subTask.title} ${chalk.dim('[SKIPPED]')}`;
|
|
263
|
+
}
|
|
264
|
+
debug({ retValue });
|
|
265
|
+
}
|
|
266
|
+
debug({ retValue });
|
|
267
|
+
return retValue;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
//# sourceMappingURL=configuretasks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuretasks.js","sourceRoot":"","sources":["../../../src/utils/puppeteer/configuretasks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,KAAK,GAAG,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAoB5C,MAAM,OAAO,uBAAuB;IAQlC,YAAmB,IAAkD,EAAE,KAAa;QAL5E,kBAAa,GAAG,CAAC,CAAC,CAAC;QAMzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,sCAAsC;IAC9B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAU;QAC5D,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;YACtC,IAAI,IAAI,C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,EAAE,CAAC,CAAC;QACpB,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const configSelectors: {
|
|
2
|
+
updatecheck: string;
|
|
3
|
+
update: {
|
|
4
|
+
editName: string;
|
|
5
|
+
editIsoCode: string;
|
|
6
|
+
editIntVal: string;
|
|
7
|
+
editActive: string;
|
|
8
|
+
editVisible: string;
|
|
9
|
+
save: string;
|
|
10
|
+
};
|
|
11
|
+
create: {
|
|
12
|
+
editName: string;
|
|
13
|
+
editIsoCode: string;
|
|
14
|
+
editIntVal: string;
|
|
15
|
+
editActive: string;
|
|
16
|
+
editVisible: string;
|
|
17
|
+
save: string;
|
|
18
|
+
};
|
|
19
|
+
setCountry: {
|
|
20
|
+
editIntVal: string;
|
|
21
|
+
save: string;
|
|
22
|
+
};
|
|
23
|
+
fix: {};
|
|
24
|
+
};
|
|
25
|
+
export declare const deactivateStates: {
|
|
26
|
+
[key: string]: {
|
|
27
|
+
[key: string]: string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022, 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
|
+
export const configSelectors = {
|
|
8
|
+
updatecheck: '#bodyCell > table > tbody > tr:nth-child(1) > td > span',
|
|
9
|
+
update: {
|
|
10
|
+
editName: '#configurecountry:form:blockEditCountry:j_id9:j_id37:editName',
|
|
11
|
+
editIsoCode: '#configurecountry:form:blockEditCountry:j_id9:j_id40:editIsoCode',
|
|
12
|
+
editIntVal: '#configurecountry:form:blockEditCountry:j_id9:j_id43:editIntVal',
|
|
13
|
+
editActive: '#configurecountry:form:blockEditCountry:j_id9:j_id46:editActive',
|
|
14
|
+
editVisible: '#configurecountry:form:blockEditCountry:j_id9:j_id49:editVisible',
|
|
15
|
+
save: '#configurecountry:form:blockEditCountry:j_id8:saveButtonTop',
|
|
16
|
+
},
|
|
17
|
+
create: {
|
|
18
|
+
editName: '#configurenew:j_id1:blockNew:j_id9:nameSectionItem:editName',
|
|
19
|
+
editIsoCode: '#configurenew:j_id1:blockNew:j_id9:codeSectionItem:editIsoCode',
|
|
20
|
+
editIntVal: '#configurenew:j_id1:blockNew:j_id9:intValSectionItem:editIntVal',
|
|
21
|
+
editActive: '#configurenew:j_id1:blockNew:j_id9:activeSectionItem:editActive',
|
|
22
|
+
editVisible: '#configurenew:j_id1:blockNew:j_id9:visibleSectionItem:editVisible',
|
|
23
|
+
save: '#configurenew:j_id1:blockNew:j_id43:addButton',
|
|
24
|
+
},
|
|
25
|
+
setCountry: {
|
|
26
|
+
editIntVal: '#configurecountry:form:blockEditCountry:j_id33:j_id40:editIntVal',
|
|
27
|
+
save: '#configurecountry:form:blockTopButtons:j_id6:saveButtonTop',
|
|
28
|
+
},
|
|
29
|
+
fix: {},
|
|
30
|
+
};
|
|
31
|
+
export const deactivateStates = {
|
|
32
|
+
CN: {
|
|
33
|
+
'autonomous region': ['CN-45', 'CN-15', 'CN-64', 'CN-65', 'CN-54'],
|
|
34
|
+
municipality: ['CN-11', 'CN-50', 'CN-31', 'CN-12'],
|
|
35
|
+
province: [
|
|
36
|
+
'CN-34',
|
|
37
|
+
'CN-35',
|
|
38
|
+
'CN-62',
|
|
39
|
+
'CN-44',
|
|
40
|
+
'CN-52',
|
|
41
|
+
'CN-46',
|
|
42
|
+
'CN-13',
|
|
43
|
+
'CN-23',
|
|
44
|
+
'CN-41',
|
|
45
|
+
'CN-42',
|
|
46
|
+
'CN-43',
|
|
47
|
+
'CN-32',
|
|
48
|
+
'CN-36',
|
|
49
|
+
'CN-22',
|
|
50
|
+
'CN-21',
|
|
51
|
+
'CN-63',
|
|
52
|
+
'CN-61',
|
|
53
|
+
'CN-37',
|
|
54
|
+
'CN-14',
|
|
55
|
+
'CN-51',
|
|
56
|
+
'CN-71',
|
|
57
|
+
'CN-53',
|
|
58
|
+
'CN-33',
|
|
59
|
+
],
|
|
60
|
+
'special administrative region': ['CN-92', 'CN-91'],
|
|
61
|
+
},
|
|
62
|
+
IT: { province: ['IT-AO', 'IT-CI', 'IT-GO', 'IT-OG', 'IT-OT', 'IT-PN', 'IT-TS', 'IT-UD', 'IT-VS'] },
|
|
63
|
+
MX: {
|
|
64
|
+
'federal district': ['MX-DF'],
|
|
65
|
+
state: [
|
|
66
|
+
'MX-AG',
|
|
67
|
+
'MX-BC',
|
|
68
|
+
'MX-BS',
|
|
69
|
+
'MX-CM',
|
|
70
|
+
'MX-CH',
|
|
71
|
+
'MX-CS',
|
|
72
|
+
'MX-CO',
|
|
73
|
+
'MX-CL',
|
|
74
|
+
'MX-DG',
|
|
75
|
+
'MX-GR',
|
|
76
|
+
'MX-GT',
|
|
77
|
+
'MX-HG',
|
|
78
|
+
'MX-JA',
|
|
79
|
+
'MX-ME',
|
|
80
|
+
'MX-MI',
|
|
81
|
+
'MX-MO',
|
|
82
|
+
'MX-NA',
|
|
83
|
+
'MX-NL',
|
|
84
|
+
'MX-OA',
|
|
85
|
+
'MX-PB',
|
|
86
|
+
'MX-QE',
|
|
87
|
+
'MX-QR',
|
|
88
|
+
'MX-SI',
|
|
89
|
+
'MX-SL',
|
|
90
|
+
'MX-SO',
|
|
91
|
+
'MX-TB',
|
|
92
|
+
'MX-TM',
|
|
93
|
+
'MX-TL',
|
|
94
|
+
'MX-VE',
|
|
95
|
+
'MX-YU',
|
|
96
|
+
'MX-ZA',
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=countrystateconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countrystateconfig.js","sourceRoot":"","sources":["../../../src/utils/puppeteer/countrystateconfig.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,M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C,EAAE;IACnG,EAAE,EAAE;QACF,kBAAkB,EAAE,CAAC,OAAO,CAAC;QAC7B,KAAK,EAAE;YACL,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;YACP,OAAO;SACR;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
type Country = {
|
|
2
|
+
'3166-2 code': string;
|
|
3
|
+
'Subdivision name': string;
|
|
4
|
+
'Local variant': string;
|
|
5
|
+
'Language code': string;
|
|
6
|
+
'Romanization system': string;
|
|
7
|
+
'Parent subdivision': string;
|
|
8
|
+
};
|
|
9
|
+
type CountryCode = Country[];
|
|
10
|
+
export declare class PuppeteerStateTasks {
|
|
11
|
+
currentAddTask: Country;
|
|
12
|
+
currentDeactivateTask: string;
|
|
13
|
+
private addTasks;
|
|
14
|
+
private deactivateTasks;
|
|
15
|
+
private nextAddTaskIndex;
|
|
16
|
+
private nextDeactivateTaskIndex;
|
|
17
|
+
private browser;
|
|
18
|
+
private context;
|
|
19
|
+
private auth;
|
|
20
|
+
private countrycode;
|
|
21
|
+
private countries;
|
|
22
|
+
private language;
|
|
23
|
+
private category;
|
|
24
|
+
private ISOData;
|
|
25
|
+
constructor(auth: {
|
|
26
|
+
instanceUrl: string;
|
|
27
|
+
accessToken: string;
|
|
28
|
+
});
|
|
29
|
+
private static setHTMLInputElementValue;
|
|
30
|
+
private static setHTMLInputElementChecked;
|
|
31
|
+
validateParameterCountryCode(countrycode: string): Promise<{
|
|
32
|
+
selected: string | undefined;
|
|
33
|
+
values: Array<{
|
|
34
|
+
name: string;
|
|
35
|
+
value: string;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
38
|
+
validateParameterCategory(category: string): {
|
|
39
|
+
selected: string | undefined;
|
|
40
|
+
values: string[] | undefined;
|
|
41
|
+
};
|
|
42
|
+
validateParameterLanguage(language: string): {
|
|
43
|
+
selected: string | undefined;
|
|
44
|
+
values: string[] | undefined;
|
|
45
|
+
};
|
|
46
|
+
validateData(): {
|
|
47
|
+
add: CountryCode;
|
|
48
|
+
deactivate: string[];
|
|
49
|
+
};
|
|
50
|
+
setCountryIntegrationValue(): Promise<boolean>;
|
|
51
|
+
executeAdd(): Promise<string>;
|
|
52
|
+
executeDeactivate(): Promise<boolean>;
|
|
53
|
+
getNextAdd(): PuppeteerStateTasks;
|
|
54
|
+
getNextDeactivate(): PuppeteerStateTasks;
|
|
55
|
+
close(): Promise<void>;
|
|
56
|
+
open(): Promise<void>;
|
|
57
|
+
}
|
|
58
|
+
export {};
|