@auxcode/auxta 1.3.39 → 1.3.40

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 (79) hide show
  1. package/build/cjs/AuxTA.d.ts +62 -62
  2. package/build/cjs/AuxTA.js +154 -154
  3. package/build/cjs/auxta/configs/config.d.ts +57 -57
  4. package/build/cjs/auxta/configs/config.js +69 -69
  5. package/build/cjs/auxta/enums/status-of.step.d.ts +7 -7
  6. package/build/cjs/auxta/enums/status-of.step.js +11 -11
  7. package/build/cjs/auxta/helpers/response.helper.d.ts +10 -10
  8. package/build/cjs/auxta/helpers/response.helper.js +15 -15
  9. package/build/cjs/auxta/helpers/start.helper.d.ts +1 -1
  10. package/build/cjs/auxta/helpers/start.helper.js +26 -26
  11. package/build/cjs/auxta/hooks/report.hook.d.ts +14 -14
  12. package/build/cjs/auxta/hooks/report.hook.js +66 -66
  13. package/build/cjs/auxta/models/upload.model.d.ts +35 -35
  14. package/build/cjs/auxta/models/upload.model.js +82 -82
  15. package/build/cjs/auxta/services/log.service.d.ts +26 -26
  16. package/build/cjs/auxta/services/log.service.js +47 -47
  17. package/build/cjs/auxta/services/report.service.d.ts +36 -36
  18. package/build/cjs/auxta/services/report.service.js +167 -167
  19. package/build/cjs/auxta/services/runtime.service.d.ts +16 -16
  20. package/build/cjs/auxta/services/runtime.service.js +41 -41
  21. package/build/cjs/auxta/utilities/runtime.helper.d.ts +15 -15
  22. package/build/cjs/auxta/utilities/runtime.helper.js +19 -19
  23. package/build/cjs/auxta/utilities/screenshot.helper.d.ts +2 -2
  24. package/build/cjs/auxta/utilities/screenshot.helper.js +40 -40
  25. package/build/cjs/auxta/utilities/start-suite.helper.d.ts +17 -17
  26. package/build/cjs/auxta/utilities/start-suite.helper.js +31 -31
  27. package/build/cjs/macros/helpers/Aux2faAuth.d.ts +7 -7
  28. package/build/cjs/macros/helpers/Aux2faAuth.js +29 -29
  29. package/build/cjs/macros/helpers/AuxGoogleAuth.d.ts +17 -17
  30. package/build/cjs/macros/helpers/AuxGoogleAuth.js +104 -104
  31. package/build/cjs/macros/helpers/code.helper.d.ts +21 -21
  32. package/build/cjs/macros/helpers/code.helper.js +201 -201
  33. package/build/cjs/macros/helpers/emailHelper.d.ts +19 -19
  34. package/build/cjs/macros/helpers/emailHelper.js +177 -177
  35. package/build/cjs/macros/helpers/extend-default-page.d.ts +6 -6
  36. package/build/cjs/macros/helpers/extend-default-page.js +89 -89
  37. package/build/cjs/puppeteer/puppeteer.d.ts +25 -25
  38. package/build/cjs/puppeteer/puppeteer.js +209 -209
  39. package/build/esm/AuxTA.d.ts +62 -62
  40. package/build/esm/AuxTA.js +125 -125
  41. package/build/esm/auxta/configs/config.d.ts +57 -57
  42. package/build/esm/auxta/configs/config.js +64 -64
  43. package/build/esm/auxta/enums/status-of.step.d.ts +7 -7
  44. package/build/esm/auxta/enums/status-of.step.js +8 -8
  45. package/build/esm/auxta/helpers/response.helper.d.ts +10 -10
  46. package/build/esm/auxta/helpers/response.helper.js +11 -11
  47. package/build/esm/auxta/helpers/start.helper.d.ts +1 -1
  48. package/build/esm/auxta/helpers/start.helper.js +24 -24
  49. package/build/esm/auxta/hooks/report.hook.d.ts +14 -14
  50. package/build/esm/auxta/hooks/report.hook.js +58 -58
  51. package/build/esm/auxta/models/upload.model.d.ts +35 -35
  52. package/build/esm/auxta/models/upload.model.js +78 -78
  53. package/build/esm/auxta/services/log.service.d.ts +26 -26
  54. package/build/esm/auxta/services/log.service.js +43 -43
  55. package/build/esm/auxta/services/report.service.d.ts +36 -36
  56. package/build/esm/auxta/services/report.service.js +153 -153
  57. package/build/esm/auxta/services/runtime.service.d.ts +16 -16
  58. package/build/esm/auxta/services/runtime.service.js +37 -37
  59. package/build/esm/auxta/utilities/runtime.helper.d.ts +15 -15
  60. package/build/esm/auxta/utilities/runtime.helper.js +15 -15
  61. package/build/esm/auxta/utilities/screenshot.helper.d.ts +2 -2
  62. package/build/esm/auxta/utilities/screenshot.helper.js +33 -33
  63. package/build/esm/auxta/utilities/start-suite.helper.d.ts +17 -17
  64. package/build/esm/auxta/utilities/start-suite.helper.js +26 -26
  65. package/build/esm/macros/helpers/Aux2faAuth.d.ts +7 -7
  66. package/build/esm/macros/helpers/Aux2faAuth.js +25 -25
  67. package/build/esm/macros/helpers/AuxGoogleAuth.d.ts +17 -17
  68. package/build/esm/macros/helpers/AuxGoogleAuth.js +100 -100
  69. package/build/esm/macros/helpers/code.helper.d.ts +21 -21
  70. package/build/esm/macros/helpers/code.helper.js +194 -194
  71. package/build/esm/macros/helpers/emailHelper.d.ts +19 -19
  72. package/build/esm/macros/helpers/emailHelper.js +170 -170
  73. package/build/esm/macros/helpers/extend-default-page.d.ts +6 -6
  74. package/build/esm/macros/helpers/extend-default-page.js +82 -82
  75. package/build/esm/puppeteer/puppeteer.d.ts +25 -25
  76. package/build/esm/puppeteer/puppeteer.js +201 -201
  77. package/build/tsconfig-cjs.tsbuildinfo +1 -1
  78. package/build/tsconfig.tsbuildinfo +1 -1
  79. package/package.json +3 -3
@@ -1,62 +1,62 @@
1
- import { Puppeteer } from "./puppeteer/puppeteer";
2
- import { FunctionHelper } from "./macros/helpers/code.helper";
3
- import StatusOfStep from "./auxta/enums/status-of.step";
4
- import { UploadModel } from "./auxta/models/upload.model";
5
- import { AuxGoogleAuth } from "./macros/helpers/AuxGoogleAuth";
6
- declare class AuxTA extends FunctionHelper {
7
- puppeteer: Puppeteer;
8
- aux2fa: import("./macros/helpers/Aux2faAuth").Aux2faAuth;
9
- google: typeof AuxGoogleAuth;
10
- config: {
11
- auxtaURL: string;
12
- baseURL: string;
13
- siteURL: string;
14
- organization: string;
15
- netlifyPath: string;
16
- digitalProduct: string;
17
- bucket: string;
18
- token: string;
19
- screenWidth: number;
20
- screenHeight: number;
21
- timeout: number;
22
- suitesList: never[];
23
- googleEmail: string;
24
- auxtaCredentials: {
25
- email: string;
26
- password: string;
27
- };
28
- };
29
- email: import("./macros/helpers/emailHelper").EmailHelper;
30
- private readonly uploadModel;
31
- constructor();
32
- run(event: any, overrideConfig?: any): Promise<{
33
- nextSuites?: undefined;
34
- reportId?: undefined;
35
- currentSuite?: undefined;
36
- retries?: undefined;
37
- } | {
38
- nextSuites: string[];
39
- reportId: string | undefined;
40
- currentSuite: string | undefined;
41
- retries: string;
42
- }>;
43
- private changeModelData;
44
- startBrowser(event: any, callback: any, feature: string, scenario: string, overrideConfig?: any, singleFeature?: boolean, fileName?: string): Promise<{
45
- nextSuites?: undefined;
46
- reportId?: undefined;
47
- currentSuite?: undefined;
48
- retries?: undefined;
49
- } | {
50
- nextSuites: string[];
51
- reportId: string | undefined;
52
- currentSuite: string | undefined;
53
- retries: string;
54
- } | {
55
- statusCode: number;
56
- } | undefined>;
57
- startBrowserRPA(event: any, callback: any, baseURL: string, fileName?: string): Promise<any>;
58
- getUploadModel(): UploadModel;
59
- }
60
- export declare const StepStatus: typeof StatusOfStep;
61
- declare const auxta: AuxTA;
62
- export default auxta;
1
+ import { Puppeteer } from "./puppeteer/puppeteer";
2
+ import { FunctionHelper } from "./macros/helpers/code.helper";
3
+ import StatusOfStep from "./auxta/enums/status-of.step";
4
+ import { UploadModel } from "./auxta/models/upload.model";
5
+ import { AuxGoogleAuth } from "./macros/helpers/AuxGoogleAuth";
6
+ declare class AuxTA extends FunctionHelper {
7
+ puppeteer: Puppeteer;
8
+ aux2fa: import("./macros/helpers/Aux2faAuth").Aux2faAuth;
9
+ google: typeof AuxGoogleAuth;
10
+ config: {
11
+ auxtaURL: string;
12
+ baseURL: string;
13
+ siteURL: string;
14
+ organization: string;
15
+ netlifyPath: string;
16
+ digitalProduct: string;
17
+ bucket: string;
18
+ token: string;
19
+ screenWidth: number;
20
+ screenHeight: number;
21
+ timeout: number;
22
+ suitesList: never[];
23
+ googleEmail: string;
24
+ auxtaCredentials: {
25
+ email: string;
26
+ password: string;
27
+ };
28
+ };
29
+ email: import("./macros/helpers/emailHelper").EmailHelper;
30
+ private readonly uploadModel;
31
+ constructor();
32
+ run(event: any, overrideConfig?: any): Promise<{
33
+ nextSuites?: undefined;
34
+ reportId?: undefined;
35
+ currentSuite?: undefined;
36
+ retries?: undefined;
37
+ } | {
38
+ nextSuites: string[];
39
+ reportId: string | undefined;
40
+ currentSuite: string | undefined;
41
+ retries: string;
42
+ }>;
43
+ private changeModelData;
44
+ startBrowser(event: any, callback: any, feature: string, scenario: string, overrideConfig?: any, singleFeature?: boolean, fileName?: string): Promise<{
45
+ nextSuites?: undefined;
46
+ reportId?: undefined;
47
+ currentSuite?: undefined;
48
+ retries?: undefined;
49
+ } | {
50
+ nextSuites: string[];
51
+ reportId: string | undefined;
52
+ currentSuite: string | undefined;
53
+ retries: string;
54
+ } | {
55
+ statusCode: number;
56
+ } | undefined>;
57
+ startBrowserRPA(event: any, callback: any, baseURL: string, fileName?: string): Promise<any>;
58
+ getUploadModel(): UploadModel;
59
+ }
60
+ export declare const StepStatus: typeof StatusOfStep;
61
+ declare const auxta: AuxTA;
62
+ export default auxta;
@@ -1,154 +1,154 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.StepStatus = void 0;
39
- const puppeteer_1 = __importDefault(require("./puppeteer/puppeteer"));
40
- const code_helper_1 = require("./macros/helpers/code.helper");
41
- const path_1 = __importDefault(require("path"));
42
- const fs_1 = __importDefault(require("fs"));
43
- const status_of_step_1 = __importDefault(require("./auxta/enums/status-of.step"));
44
- const upload_model_1 = require("./auxta/models/upload.model");
45
- const dotenv = __importStar(require("dotenv"));
46
- const config_1 = require("./auxta/configs/config");
47
- const start_suite_helper_1 = require("./auxta/utilities/start-suite.helper");
48
- const report_service_1 = require("./auxta/services/report.service");
49
- const Aux2faAuth_1 = __importDefault(require("./macros/helpers/Aux2faAuth"));
50
- const AuxGoogleAuth_1 = require("./macros/helpers/AuxGoogleAuth");
51
- const emailHelper_1 = __importDefault(require("./macros/helpers/emailHelper"));
52
- dotenv.config();
53
- class AuxTA extends code_helper_1.FunctionHelper {
54
- constructor() {
55
- super();
56
- this.puppeteer = puppeteer_1.default;
57
- this.aux2fa = Aux2faAuth_1.default;
58
- this.google = AuxGoogleAuth_1.AuxGoogleAuth;
59
- this.config = config_1.config;
60
- this.email = emailHelper_1.default;
61
- let file;
62
- if (!process.env.RPA) {
63
- try {
64
- let currentDir = "";
65
- while (true) {
66
- file = path_1.default.join(__dirname, currentDir, "auxta.json");
67
- if (!fs_1.default.existsSync(file)) {
68
- currentDir += "../";
69
- if (currentDir.length >= 30) {
70
- console.log("auxta.json file not found!");
71
- process.exit(1);
72
- return;
73
- }
74
- continue;
75
- }
76
- break;
77
- }
78
- const jsonConfig = JSON.parse(fs_1.default.readFileSync(file).toString());
79
- try {
80
- this.config = (0, config_1.setupConfig)(jsonConfig);
81
- }
82
- catch (e) {
83
- console.log("Missing field in auxta.json:", e);
84
- }
85
- this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket);
86
- }
87
- catch (e) {
88
- console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
89
- console.log(e);
90
- process.exit(1);
91
- }
92
- }
93
- else {
94
- this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '');
95
- }
96
- }
97
- run(event, overrideConfig) {
98
- return __awaiter(this, void 0, void 0, function* () {
99
- this.changeModelData(overrideConfig);
100
- let reportId;
101
- try {
102
- if (event.reportId) {
103
- reportId = event.reportId;
104
- }
105
- }
106
- catch (e) {
107
- reportId = undefined;
108
- }
109
- const suites = this.config.suitesList.slice(0);
110
- return (0, start_suite_helper_1.startSuite)(suites, reportId || (yield (0, report_service_1.createEmptyReport)(this.uploadModel)));
111
- });
112
- }
113
- changeModelData(overrideConfig) {
114
- if (overrideConfig) {
115
- if (overrideConfig.digitalProduct)
116
- this.uploadModel.digitalProduct = overrideConfig.digitalProduct;
117
- if (overrideConfig.environment)
118
- this.uploadModel.environment = overrideConfig.environment;
119
- if (overrideConfig.baseURL)
120
- this.uploadModel.baseUrl = overrideConfig.baseURL;
121
- if (overrideConfig.bucket)
122
- this.uploadModel.bucket = overrideConfig.bucket;
123
- this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
124
- }
125
- }
126
- startBrowser(event, callback, feature, scenario, overrideConfig, singleFeature = false, fileName = '') {
127
- return __awaiter(this, void 0, void 0, function* () {
128
- this.changeModelData(overrideConfig);
129
- if (singleFeature && process.env.ENVIRONMENT !== 'LOCAL') {
130
- this.uploadModel.reportId = yield (0, report_service_1.createEmptyReport)(this.uploadModel);
131
- this.uploadModel.currentSuite = fileName;
132
- this.uploadModel.nextSuites = [];
133
- }
134
- return this.puppeteer.run(event, callback, feature, scenario);
135
- });
136
- }
137
- startBrowserRPA(event, callback, baseURL, fileName = '') {
138
- return __awaiter(this, void 0, void 0, function* () {
139
- this.changeModelData({
140
- baseURL: baseURL,
141
- environment: '',
142
- digitalProduct: ''
143
- });
144
- this.uploadModel.currentSuite = fileName;
145
- return this.puppeteer.runRPA(event, callback);
146
- });
147
- }
148
- getUploadModel() {
149
- return this.uploadModel;
150
- }
151
- }
152
- exports.StepStatus = status_of_step_1.default;
153
- const auxta = new AuxTA();
154
- exports.default = auxta;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.StepStatus = void 0;
39
+ const puppeteer_1 = __importDefault(require("./puppeteer/puppeteer"));
40
+ const code_helper_1 = require("./macros/helpers/code.helper");
41
+ const path_1 = __importDefault(require("path"));
42
+ const fs_1 = __importDefault(require("fs"));
43
+ const status_of_step_1 = __importDefault(require("./auxta/enums/status-of.step"));
44
+ const upload_model_1 = require("./auxta/models/upload.model");
45
+ const dotenv = __importStar(require("dotenv"));
46
+ const config_1 = require("./auxta/configs/config");
47
+ const start_suite_helper_1 = require("./auxta/utilities/start-suite.helper");
48
+ const report_service_1 = require("./auxta/services/report.service");
49
+ const Aux2faAuth_1 = __importDefault(require("./macros/helpers/Aux2faAuth"));
50
+ const AuxGoogleAuth_1 = require("./macros/helpers/AuxGoogleAuth");
51
+ const emailHelper_1 = __importDefault(require("./macros/helpers/emailHelper"));
52
+ dotenv.config();
53
+ class AuxTA extends code_helper_1.FunctionHelper {
54
+ constructor() {
55
+ super();
56
+ this.puppeteer = puppeteer_1.default;
57
+ this.aux2fa = Aux2faAuth_1.default;
58
+ this.google = AuxGoogleAuth_1.AuxGoogleAuth;
59
+ this.config = config_1.config;
60
+ this.email = emailHelper_1.default;
61
+ let file;
62
+ if (!process.env.RPA) {
63
+ try {
64
+ let currentDir = "";
65
+ while (true) {
66
+ file = path_1.default.join(__dirname, currentDir, "auxta.json");
67
+ if (!fs_1.default.existsSync(file)) {
68
+ currentDir += "../";
69
+ if (currentDir.length >= 30) {
70
+ console.log("auxta.json file not found!");
71
+ process.exit(1);
72
+ return;
73
+ }
74
+ continue;
75
+ }
76
+ break;
77
+ }
78
+ const jsonConfig = JSON.parse(fs_1.default.readFileSync(file).toString());
79
+ try {
80
+ this.config = (0, config_1.setupConfig)(jsonConfig);
81
+ }
82
+ catch (e) {
83
+ console.log("Missing field in auxta.json:", e);
84
+ }
85
+ this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment, jsonConfig.bucket);
86
+ }
87
+ catch (e) {
88
+ console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
89
+ console.log(e);
90
+ process.exit(1);
91
+ }
92
+ }
93
+ else {
94
+ this.uploadModel = new upload_model_1.UploadModel('', '', '', '', '');
95
+ }
96
+ }
97
+ run(event, overrideConfig) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ this.changeModelData(overrideConfig);
100
+ let reportId;
101
+ try {
102
+ if (event.reportId) {
103
+ reportId = event.reportId;
104
+ }
105
+ }
106
+ catch (e) {
107
+ reportId = undefined;
108
+ }
109
+ const suites = this.config.suitesList.slice(0);
110
+ return (0, start_suite_helper_1.startSuite)(suites, reportId || (yield (0, report_service_1.createEmptyReport)(this.uploadModel)));
111
+ });
112
+ }
113
+ changeModelData(overrideConfig) {
114
+ if (overrideConfig) {
115
+ if (overrideConfig.digitalProduct)
116
+ this.uploadModel.digitalProduct = overrideConfig.digitalProduct;
117
+ if (overrideConfig.environment)
118
+ this.uploadModel.environment = overrideConfig.environment;
119
+ if (overrideConfig.baseURL)
120
+ this.uploadModel.baseUrl = overrideConfig.baseURL;
121
+ if (overrideConfig.bucket)
122
+ this.uploadModel.bucket = overrideConfig.bucket;
123
+ this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
124
+ }
125
+ }
126
+ startBrowser(event, callback, feature, scenario, overrideConfig, singleFeature = false, fileName = '') {
127
+ return __awaiter(this, void 0, void 0, function* () {
128
+ this.changeModelData(overrideConfig);
129
+ if (singleFeature && process.env.ENVIRONMENT !== 'LOCAL') {
130
+ this.uploadModel.reportId = yield (0, report_service_1.createEmptyReport)(this.uploadModel);
131
+ this.uploadModel.currentSuite = fileName;
132
+ this.uploadModel.nextSuites = [];
133
+ }
134
+ return this.puppeteer.run(event, callback, feature, scenario);
135
+ });
136
+ }
137
+ startBrowserRPA(event, callback, baseURL, fileName = '') {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ this.changeModelData({
140
+ baseURL: baseURL,
141
+ environment: '',
142
+ digitalProduct: ''
143
+ });
144
+ this.uploadModel.currentSuite = fileName;
145
+ return this.puppeteer.runRPA(event, callback);
146
+ });
147
+ }
148
+ getUploadModel() {
149
+ return this.uploadModel;
150
+ }
151
+ }
152
+ exports.StepStatus = status_of_step_1.default;
153
+ const auxta = new AuxTA();
154
+ exports.default = auxta;
@@ -1,57 +1,57 @@
1
- export declare function setupConfig(jsonConfig: any): {
2
- auxtaURL: string;
3
- baseURL: string;
4
- siteURL: string;
5
- organization: string;
6
- netlifyPath: string;
7
- digitalProduct: string;
8
- bucket: string;
9
- token: string;
10
- screenWidth: number;
11
- screenHeight: number;
12
- timeout: number;
13
- suitesList: never[];
14
- googleEmail: string;
15
- auxtaCredentials: {
16
- email: string;
17
- password: string;
18
- };
19
- };
20
- export declare function setupOverrideConfig(overrideConfig: any): {
21
- auxtaURL: string;
22
- baseURL: string;
23
- siteURL: string;
24
- organization: string;
25
- netlifyPath: string;
26
- digitalProduct: string;
27
- bucket: string;
28
- token: string;
29
- screenWidth: number;
30
- screenHeight: number;
31
- timeout: number;
32
- suitesList: never[];
33
- googleEmail: string;
34
- auxtaCredentials: {
35
- email: string;
36
- password: string;
37
- };
38
- };
39
- export declare let config: {
40
- auxtaURL: string;
41
- baseURL: string;
42
- siteURL: string;
43
- organization: string;
44
- netlifyPath: string;
45
- digitalProduct: string;
46
- bucket: string;
47
- token: string;
48
- screenWidth: number;
49
- screenHeight: number;
50
- timeout: number;
51
- suitesList: never[];
52
- googleEmail: string;
53
- auxtaCredentials: {
54
- email: string;
55
- password: string;
56
- };
57
- };
1
+ export declare function setupConfig(jsonConfig: any): {
2
+ auxtaURL: string;
3
+ baseURL: string;
4
+ siteURL: string;
5
+ organization: string;
6
+ netlifyPath: string;
7
+ digitalProduct: string;
8
+ bucket: string;
9
+ token: string;
10
+ screenWidth: number;
11
+ screenHeight: number;
12
+ timeout: number;
13
+ suitesList: never[];
14
+ googleEmail: string;
15
+ auxtaCredentials: {
16
+ email: string;
17
+ password: string;
18
+ };
19
+ };
20
+ export declare function setupOverrideConfig(overrideConfig: any): {
21
+ auxtaURL: string;
22
+ baseURL: string;
23
+ siteURL: string;
24
+ organization: string;
25
+ netlifyPath: string;
26
+ digitalProduct: string;
27
+ bucket: string;
28
+ token: string;
29
+ screenWidth: number;
30
+ screenHeight: number;
31
+ timeout: number;
32
+ suitesList: never[];
33
+ googleEmail: string;
34
+ auxtaCredentials: {
35
+ email: string;
36
+ password: string;
37
+ };
38
+ };
39
+ export declare let config: {
40
+ auxtaURL: string;
41
+ baseURL: string;
42
+ siteURL: string;
43
+ organization: string;
44
+ netlifyPath: string;
45
+ digitalProduct: string;
46
+ bucket: string;
47
+ token: string;
48
+ screenWidth: number;
49
+ screenHeight: number;
50
+ timeout: number;
51
+ suitesList: never[];
52
+ googleEmail: string;
53
+ auxtaCredentials: {
54
+ email: string;
55
+ password: string;
56
+ };
57
+ };