@auxcode/auxta 1.3.27 → 1.3.29
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/build/cjs/AuxTA.d.ts +0 -1
- package/build/cjs/AuxTA.js +2 -4
- package/build/cjs/auxta/configs/config.d.ts +0 -3
- package/build/cjs/auxta/configs/config.js +1 -5
- package/build/cjs/auxta/models/upload.model.d.ts +1 -4
- package/build/cjs/auxta/models/upload.model.js +1 -8
- package/build/cjs/auxta/services/report.service.js +0 -1
- package/build/cjs/macros/helpers/emailHelper.js +2 -2
- package/build/esm/AuxTA.d.ts +0 -1
- package/build/esm/AuxTA.js +2 -4
- package/build/esm/auxta/configs/config.d.ts +0 -3
- package/build/esm/auxta/configs/config.js +1 -5
- package/build/esm/auxta/models/upload.model.d.ts +1 -4
- package/build/esm/auxta/models/upload.model.js +1 -8
- package/build/esm/auxta/services/report.service.js +0 -1
- package/build/esm/macros/helpers/emailHelper.js +2 -2
- package/build/tsconfig-cjs.tsbuildinfo +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
package/build/cjs/AuxTA.d.ts
CHANGED
package/build/cjs/AuxTA.js
CHANGED
|
@@ -82,7 +82,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
|
|
|
82
82
|
catch (e) {
|
|
83
83
|
console.log("Missing field in auxta.json:", e);
|
|
84
84
|
}
|
|
85
|
-
this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment
|
|
85
|
+
this.uploadModel = new upload_model_1.UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment);
|
|
86
86
|
}
|
|
87
87
|
catch (e) {
|
|
88
88
|
console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
|
|
@@ -91,7 +91,7 @@ class AuxTA extends code_helper_1.FunctionHelper {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
|
-
this.uploadModel = new upload_model_1.UploadModel('', '', '', ''
|
|
94
|
+
this.uploadModel = new upload_model_1.UploadModel('', '', '', '');
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
run(event, overrideConfig) {
|
|
@@ -118,8 +118,6 @@ class AuxTA extends code_helper_1.FunctionHelper {
|
|
|
118
118
|
this.uploadModel.environment = overrideConfig.environment;
|
|
119
119
|
if (overrideConfig.baseURL)
|
|
120
120
|
this.uploadModel.baseUrl = overrideConfig.baseURL;
|
|
121
|
-
if (overrideConfig.bucket)
|
|
122
|
-
this.uploadModel.bucket = overrideConfig.bucket;
|
|
123
121
|
this.config = (0, config_1.setupOverrideConfig)(overrideConfig);
|
|
124
122
|
}
|
|
125
123
|
}
|
|
@@ -5,7 +5,6 @@ export declare function setupConfig(jsonConfig: any): {
|
|
|
5
5
|
organization: string;
|
|
6
6
|
netlifyPath: string;
|
|
7
7
|
digitalProduct: string;
|
|
8
|
-
bucket: string;
|
|
9
8
|
token: string;
|
|
10
9
|
screenWidth: number;
|
|
11
10
|
screenHeight: number;
|
|
@@ -24,7 +23,6 @@ export declare function setupOverrideConfig(overrideConfig: any): {
|
|
|
24
23
|
organization: string;
|
|
25
24
|
netlifyPath: string;
|
|
26
25
|
digitalProduct: string;
|
|
27
|
-
bucket: string;
|
|
28
26
|
token: string;
|
|
29
27
|
screenWidth: number;
|
|
30
28
|
screenHeight: number;
|
|
@@ -43,7 +41,6 @@ export declare let config: {
|
|
|
43
41
|
organization: string;
|
|
44
42
|
netlifyPath: string;
|
|
45
43
|
digitalProduct: string;
|
|
46
|
-
bucket: string;
|
|
47
44
|
token: string;
|
|
48
45
|
screenWidth: number;
|
|
49
46
|
screenHeight: number;
|
|
@@ -8,9 +8,6 @@ function setupConfig(jsonConfig) {
|
|
|
8
8
|
if (!jsonConfig.digitalProduct)
|
|
9
9
|
throw new Error("digitalProduct");
|
|
10
10
|
exports.config.digitalProduct = jsonConfig.digitalProduct;
|
|
11
|
-
if (!jsonConfig.testsURL)
|
|
12
|
-
throw new Error("testsURL");
|
|
13
|
-
exports.config.bucket = jsonConfig.bucket;
|
|
14
11
|
if (!jsonConfig.testsURL)
|
|
15
12
|
throw new Error("testsURL");
|
|
16
13
|
exports.config.netlifyPath = (process.env.ENVIRONMENT == 'LOCAL') ? 'http://localhost:9999/' : jsonConfig.testsURL;
|
|
@@ -49,13 +46,12 @@ function setupOverrideConfig(overrideConfig) {
|
|
|
49
46
|
}
|
|
50
47
|
exports.setupOverrideConfig = setupOverrideConfig;
|
|
51
48
|
exports.config = {
|
|
52
|
-
auxtaURL: "https://
|
|
49
|
+
auxtaURL: "https://auxta.live/.netlify/functions/",
|
|
53
50
|
baseURL: "",
|
|
54
51
|
siteURL: "",
|
|
55
52
|
organization: "",
|
|
56
53
|
netlifyPath: "",
|
|
57
54
|
digitalProduct: "",
|
|
58
|
-
bucket: "",
|
|
59
55
|
token: "",
|
|
60
56
|
screenWidth: 1920,
|
|
61
57
|
screenHeight: 1080,
|
|
@@ -4,18 +4,15 @@ export declare class UploadModel {
|
|
|
4
4
|
private _digitalProduct;
|
|
5
5
|
private _baseUrl;
|
|
6
6
|
private readonly _organization;
|
|
7
|
-
private _bucket;
|
|
8
7
|
private _environment;
|
|
9
8
|
private _currentSuite;
|
|
10
9
|
private _retries;
|
|
11
10
|
private _featureName;
|
|
12
11
|
private _scenarioName;
|
|
13
|
-
constructor(org: string, baseUrl: string, digitalProduct: string, environment: string
|
|
12
|
+
constructor(org: string, baseUrl: string, digitalProduct: string, environment: string);
|
|
14
13
|
set currentSuite(value: string);
|
|
15
14
|
set retries(value: number);
|
|
16
15
|
get currentSuite(): string;
|
|
17
|
-
get bucket(): string;
|
|
18
|
-
set bucket(value: string);
|
|
19
16
|
get retries(): number;
|
|
20
17
|
get reportId(): string;
|
|
21
18
|
set reportId(value: string);
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UploadModel = void 0;
|
|
4
4
|
class UploadModel {
|
|
5
|
-
constructor(org, baseUrl, digitalProduct, environment
|
|
5
|
+
constructor(org, baseUrl, digitalProduct, environment) {
|
|
6
6
|
this._reportId = '';
|
|
7
7
|
this._nextSuites = [];
|
|
8
8
|
this._currentSuite = '';
|
|
9
9
|
this._retries = 0;
|
|
10
10
|
this._organization = org;
|
|
11
|
-
this._bucket = bucket;
|
|
12
11
|
this._digitalProduct = digitalProduct;
|
|
13
12
|
this._environment = environment;
|
|
14
13
|
this._baseUrl = baseUrl;
|
|
@@ -24,12 +23,6 @@ class UploadModel {
|
|
|
24
23
|
get currentSuite() {
|
|
25
24
|
return this._currentSuite;
|
|
26
25
|
}
|
|
27
|
-
get bucket() {
|
|
28
|
-
return this._bucket;
|
|
29
|
-
}
|
|
30
|
-
set bucket(value) {
|
|
31
|
-
this._bucket = value;
|
|
32
|
-
}
|
|
33
26
|
get retries() {
|
|
34
27
|
return this._retries;
|
|
35
28
|
}
|
|
@@ -44,7 +44,6 @@ function createEmptyReport(body) {
|
|
|
44
44
|
return (yield axios_1.default.post(config_1.config.auxtaURL + "create-empty-report", {
|
|
45
45
|
environment: body.environment,
|
|
46
46
|
digitalProductName: body.digitalProduct,
|
|
47
|
-
bucket: body.bucket,
|
|
48
47
|
start: new Date(),
|
|
49
48
|
url: body.baseUrl
|
|
50
49
|
}, headers(token))).data.reportId;
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.EmailHelper = void 0;
|
|
16
16
|
const log_service_1 = __importDefault(require("../../auxta/services/log.service"));
|
|
17
17
|
const AuxGoogleAuth_1 = require("./AuxGoogleAuth");
|
|
18
|
-
const
|
|
18
|
+
const base64 = require('js-base64');
|
|
19
19
|
const AuxTA_1 = require("../../AuxTA");
|
|
20
20
|
const MailComposer = require('nodemailer/lib/mail-composer');
|
|
21
21
|
class EmailHelper {
|
|
@@ -131,7 +131,7 @@ class EmailHelper {
|
|
|
131
131
|
try {
|
|
132
132
|
const body = gmailResponse.data.payload.parts[0].body.data;
|
|
133
133
|
if (body) {
|
|
134
|
-
return
|
|
134
|
+
return base64.decode(body);
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
137
|
return '';
|
package/build/esm/AuxTA.d.ts
CHANGED
package/build/esm/AuxTA.js
CHANGED
|
@@ -53,7 +53,7 @@ class AuxTA extends FunctionHelper {
|
|
|
53
53
|
catch (e) {
|
|
54
54
|
console.log("Missing field in auxta.json:", e);
|
|
55
55
|
}
|
|
56
|
-
this.uploadModel = new UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment
|
|
56
|
+
this.uploadModel = new UploadModel(jsonConfig.organization, jsonConfig.baseURL, jsonConfig.digitalProduct, jsonConfig.environment);
|
|
57
57
|
}
|
|
58
58
|
catch (e) {
|
|
59
59
|
console.log("Missing or corrupted config: auxta.json. Searching in location:", file);
|
|
@@ -62,7 +62,7 @@ class AuxTA extends FunctionHelper {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
|
-
this.uploadModel = new UploadModel('', '', '', ''
|
|
65
|
+
this.uploadModel = new UploadModel('', '', '', '');
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
run(event, overrideConfig) {
|
|
@@ -89,8 +89,6 @@ class AuxTA extends FunctionHelper {
|
|
|
89
89
|
this.uploadModel.environment = overrideConfig.environment;
|
|
90
90
|
if (overrideConfig.baseURL)
|
|
91
91
|
this.uploadModel.baseUrl = overrideConfig.baseURL;
|
|
92
|
-
if (overrideConfig.bucket)
|
|
93
|
-
this.uploadModel.bucket = overrideConfig.bucket;
|
|
94
92
|
this.config = setupOverrideConfig(overrideConfig);
|
|
95
93
|
}
|
|
96
94
|
}
|
|
@@ -5,7 +5,6 @@ export declare function setupConfig(jsonConfig: any): {
|
|
|
5
5
|
organization: string;
|
|
6
6
|
netlifyPath: string;
|
|
7
7
|
digitalProduct: string;
|
|
8
|
-
bucket: string;
|
|
9
8
|
token: string;
|
|
10
9
|
screenWidth: number;
|
|
11
10
|
screenHeight: number;
|
|
@@ -24,7 +23,6 @@ export declare function setupOverrideConfig(overrideConfig: any): {
|
|
|
24
23
|
organization: string;
|
|
25
24
|
netlifyPath: string;
|
|
26
25
|
digitalProduct: string;
|
|
27
|
-
bucket: string;
|
|
28
26
|
token: string;
|
|
29
27
|
screenWidth: number;
|
|
30
28
|
screenHeight: number;
|
|
@@ -43,7 +41,6 @@ export declare let config: {
|
|
|
43
41
|
organization: string;
|
|
44
42
|
netlifyPath: string;
|
|
45
43
|
digitalProduct: string;
|
|
46
|
-
bucket: string;
|
|
47
44
|
token: string;
|
|
48
45
|
screenWidth: number;
|
|
49
46
|
screenHeight: number;
|
|
@@ -5,9 +5,6 @@ export function setupConfig(jsonConfig) {
|
|
|
5
5
|
if (!jsonConfig.digitalProduct)
|
|
6
6
|
throw new Error("digitalProduct");
|
|
7
7
|
config.digitalProduct = jsonConfig.digitalProduct;
|
|
8
|
-
if (!jsonConfig.testsURL)
|
|
9
|
-
throw new Error("testsURL");
|
|
10
|
-
config.bucket = jsonConfig.bucket;
|
|
11
8
|
if (!jsonConfig.testsURL)
|
|
12
9
|
throw new Error("testsURL");
|
|
13
10
|
config.netlifyPath = (process.env.ENVIRONMENT == 'LOCAL') ? 'http://localhost:9999/' : jsonConfig.testsURL;
|
|
@@ -44,13 +41,12 @@ export function setupOverrideConfig(overrideConfig) {
|
|
|
44
41
|
return config;
|
|
45
42
|
}
|
|
46
43
|
export let config = {
|
|
47
|
-
auxtaURL: "https://
|
|
44
|
+
auxtaURL: "https://auxta.live/.netlify/functions/",
|
|
48
45
|
baseURL: "",
|
|
49
46
|
siteURL: "",
|
|
50
47
|
organization: "",
|
|
51
48
|
netlifyPath: "",
|
|
52
49
|
digitalProduct: "",
|
|
53
|
-
bucket: "",
|
|
54
50
|
token: "",
|
|
55
51
|
screenWidth: 1920,
|
|
56
52
|
screenHeight: 1080,
|
|
@@ -4,18 +4,15 @@ export declare class UploadModel {
|
|
|
4
4
|
private _digitalProduct;
|
|
5
5
|
private _baseUrl;
|
|
6
6
|
private readonly _organization;
|
|
7
|
-
private _bucket;
|
|
8
7
|
private _environment;
|
|
9
8
|
private _currentSuite;
|
|
10
9
|
private _retries;
|
|
11
10
|
private _featureName;
|
|
12
11
|
private _scenarioName;
|
|
13
|
-
constructor(org: string, baseUrl: string, digitalProduct: string, environment: string
|
|
12
|
+
constructor(org: string, baseUrl: string, digitalProduct: string, environment: string);
|
|
14
13
|
set currentSuite(value: string);
|
|
15
14
|
set retries(value: number);
|
|
16
15
|
get currentSuite(): string;
|
|
17
|
-
get bucket(): string;
|
|
18
|
-
set bucket(value: string);
|
|
19
16
|
get retries(): number;
|
|
20
17
|
get reportId(): string;
|
|
21
18
|
set reportId(value: string);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export class UploadModel {
|
|
2
|
-
constructor(org, baseUrl, digitalProduct, environment
|
|
2
|
+
constructor(org, baseUrl, digitalProduct, environment) {
|
|
3
3
|
this._reportId = '';
|
|
4
4
|
this._nextSuites = [];
|
|
5
5
|
this._currentSuite = '';
|
|
6
6
|
this._retries = 0;
|
|
7
7
|
this._organization = org;
|
|
8
|
-
this._bucket = bucket;
|
|
9
8
|
this._digitalProduct = digitalProduct;
|
|
10
9
|
this._environment = environment;
|
|
11
10
|
this._baseUrl = baseUrl;
|
|
@@ -21,12 +20,6 @@ export class UploadModel {
|
|
|
21
20
|
get currentSuite() {
|
|
22
21
|
return this._currentSuite;
|
|
23
22
|
}
|
|
24
|
-
get bucket() {
|
|
25
|
-
return this._bucket;
|
|
26
|
-
}
|
|
27
|
-
set bucket(value) {
|
|
28
|
-
this._bucket = value;
|
|
29
|
-
}
|
|
30
23
|
get retries() {
|
|
31
24
|
return this._retries;
|
|
32
25
|
}
|
|
@@ -38,7 +38,6 @@ export function createEmptyReport(body) {
|
|
|
38
38
|
return (yield axios.post(config.auxtaURL + "create-empty-report", {
|
|
39
39
|
environment: body.environment,
|
|
40
40
|
digitalProductName: body.digitalProduct,
|
|
41
|
-
bucket: body.bucket,
|
|
42
41
|
start: new Date(),
|
|
43
42
|
url: body.baseUrl
|
|
44
43
|
}, headers(token))).data.reportId;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import log from "../../auxta/services/log.service";
|
|
11
11
|
import { AuxGoogleAuth } from "./AuxGoogleAuth";
|
|
12
|
-
|
|
12
|
+
const base64 = require('js-base64');
|
|
13
13
|
import { StepStatus } from "../../AuxTA";
|
|
14
14
|
const MailComposer = require('nodemailer/lib/mail-composer');
|
|
15
15
|
export class EmailHelper {
|
|
@@ -125,7 +125,7 @@ export class EmailHelper {
|
|
|
125
125
|
try {
|
|
126
126
|
const body = gmailResponse.data.payload.parts[0].body.data;
|
|
127
127
|
if (body) {
|
|
128
|
-
return
|
|
128
|
+
return base64.decode(body);
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
return '';
|