vita-playwright 1.7.1-beta → 1.7.3-beta
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/dist/index.d.ts +2 -18
- package/dist/index.js +1 -37
- package/dist/index.js.map +1 -1
- package/dist/src/helpers/api-helpers.d.ts +10 -29
- package/dist/src/helpers/api-helpers.js +106 -307
- package/dist/src/helpers/api-helpers.js.map +1 -1
- package/dist/src/helpers/imap-client.d.ts +2 -1
- package/dist/src/helpers/imap-helper.js +1 -2
- package/dist/src/helpers/imap-helper.js.map +1 -1
- package/dist/src/utils/azure_storage_methods.js.map +1 -1
- package/dist/src/utils/comparisions.d.ts +1 -1
- package/dist/src/utils/comparisions.js +1 -1
- package/dist/src/utils/comparisions.js.map +1 -1
- package/dist/src/utils/date_utilitites.d.ts +7 -7
- package/dist/src/utils/db_utility.js +1 -1
- package/dist/src/utils/db_utility.js.map +1 -1
- package/dist/src/utils/document_utility.d.ts +5 -4
- package/dist/src/utils/document_utility.js +11 -6
- package/dist/src/utils/document_utility.js.map +1 -1
- package/dist/src/utils/email_sender.js +1 -1
- package/dist/src/utils/lighhouse_utility.js +46 -46
- package/dist/src/utils/lighhouse_utility.js.map +1 -1
- package/dist/src/utils/sqlite.d.ts +5 -0
- package/dist/src/utils/sqlite.js +17 -7
- package/dist/src/utils/sqlite.js.map +1 -1
- package/dist/src/utils/sqlite_testparams.d.ts +42 -0
- package/dist/src/utils/sqlite_testparams.js +346 -0
- package/dist/src/utils/sqlite_testparams.js.map +1 -0
- package/index.ts +29 -65
- package/package.json +63 -68
- package/src/helpers/api-helpers.ts +355 -583
- package/src/helpers/imap-helper.ts +109 -112
- package/src/helpers/ui-helpers.ts +148 -148
- package/src/utils/api_axios.ts +16 -16
- package/src/utils/azure_storage_methods.ts +171 -171
- package/src/utils/comparisions.ts +100 -99
- package/src/utils/date_utilitites.ts +39 -39
- package/src/utils/db_utility.ts +118 -121
- package/src/utils/document_utility.ts +188 -165
- package/src/utils/email_sender.ts +36 -36
- package/src/utils/keyvault_methods.ts +15 -15
- package/src/utils/lighhouse_utility.ts +123 -123
- package/src/utils/sqlite.ts +42 -33
- package/src/utils/sqlite_testparams.ts +320 -0
- package/src/utils/xmlToJson.ts +41 -41
- package/dist/src/common/Okta.d.ts +0 -33
- package/dist/src/common/Okta.js +0 -108
- package/dist/src/common/Okta.js.map +0 -1
- package/dist/src/common/Payloads.d.ts +0 -66
- package/dist/src/common/Payloads.js +0 -47
- package/dist/src/common/Payloads.js.map +0 -1
- package/dist/src/common/Tiger.d.ts +0 -38
- package/dist/src/common/Tiger.js +0 -125
- package/dist/src/common/Tiger.js.map +0 -1
- package/dist/src/common/mail-templates.d.ts +0 -7
- package/dist/src/common/mail-templates.js +0 -164
- package/dist/src/common/mail-templates.js.map +0 -1
- package/dist/src/common/mme.d.ts +0 -34
- package/dist/src/common/mme.js +0 -149
- package/dist/src/common/mme.js.map +0 -1
- package/dist/src/common/oAuth.d.ts +0 -2
- package/dist/src/common/oAuth.js +0 -67
- package/dist/src/common/oAuth.js.map +0 -1
- package/dist/src/common/typesafety.d.ts +0 -38
- package/dist/src/common/typesafety.js +0 -3
- package/dist/src/common/typesafety.js.map +0 -1
- package/dist/src/helpers/api-excel-driver.d.ts +0 -35
- package/dist/src/helpers/api-excel-driver.js +0 -520
- package/dist/src/helpers/api-excel-driver.js.map +0 -1
- package/dist/src/helpers/custom-reporter.d.ts +0 -8
- package/dist/src/helpers/custom-reporter.js +0 -34
- package/dist/src/helpers/custom-reporter.js.map +0 -1
- package/dist/src/helpers/file-helper.d.ts +0 -10
- package/dist/src/helpers/file-helper.js +0 -270
- package/dist/src/helpers/file-helper.js.map +0 -1
- package/dist/src/helpers/parameters.d.ts +0 -32
- package/dist/src/helpers/parameters.js +0 -296
- package/dist/src/helpers/parameters.js.map +0 -1
- package/dist/src/helpers/swagger-api.d.ts +0 -24
- package/dist/src/helpers/swagger-api.js +0 -331
- package/dist/src/helpers/swagger-api.js.map +0 -1
- package/dist/src/helpers/web-page.d.ts +0 -89
- package/dist/src/helpers/web-page.js +0 -615
- package/dist/src/helpers/web-page.js.map +0 -1
- package/dist/src/utils/common-functions.d.ts +0 -29
- package/dist/src/utils/common-functions.js +0 -234
- package/dist/src/utils/common-functions.js.map +0 -1
- package/dist/src/utils/excel-util.d.ts +0 -6
- package/dist/src/utils/excel-util.js +0 -105
- package/dist/src/utils/excel-util.js.map +0 -1
- package/dist/src/utils/json-util.d.ts +0 -106
- package/dist/src/utils/json-util.js +0 -835
- package/dist/src/utils/json-util.js.map +0 -1
- package/dist/src/utils/xml-util.d.ts +0 -18
- package/dist/src/utils/xml-util.js +0 -94
- package/dist/src/utils/xml-util.js.map +0 -1
- package/src/common/Okta.ts +0 -148
- package/src/common/Payloads.ts +0 -103
- package/src/common/Tiger.ts +0 -163
- package/src/common/mail-templates.ts +0 -176
- package/src/common/mme.ts +0 -170
- package/src/common/oAuth.ts +0 -88
- package/src/common/typesafety.ts +0 -45
- package/src/helpers/api-excel-driver.ts +0 -549
- package/src/helpers/custom-reporter.ts +0 -48
- package/src/helpers/file-helper.ts +0 -271
- package/src/helpers/parameters.ts +0 -273
- package/src/helpers/swagger-api.ts +0 -355
- package/src/helpers/web-page.ts +0 -572
- package/src/utils/common-functions.ts +0 -230
- package/src/utils/excel-util.ts +0 -69
- package/src/utils/json-util.ts +0 -904
- package/src/utils/xml-util.ts +0 -62
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { UIHelper } from './src/helpers/ui-helpers';
|
|
2
2
|
import { ApiHelper } from './src/helpers/api-helpers';
|
|
3
|
-
import
|
|
4
|
-
import ImapClient = require("./src/helpers/imap-client.js");
|
|
3
|
+
import ImapClient = require('./src/helpers/imap-client.js');
|
|
5
4
|
import { ImapHelper } from './src/helpers/imap-helper';
|
|
6
5
|
import { TokenGenerators } from './src/utils/api_axios';
|
|
7
6
|
import { AzureStorageMethods } from './src/utils/azure_storage_methods';
|
|
@@ -12,19 +11,4 @@ import { DBUtility } from './src/utils/db_utility';
|
|
|
12
11
|
import { XmlToJson } from './src/utils/xmlToJson';
|
|
13
12
|
import { LightHouseUtility } from './src/utils/lighhouse_utility';
|
|
14
13
|
import { Dateutility } from './src/utils/date_utilitites';
|
|
15
|
-
|
|
16
|
-
import { XmlUtil } from './src/utils/xml-util';
|
|
17
|
-
import { ExcelUtil } from './src/utils/excel-util';
|
|
18
|
-
import { CommonFunctions } from './src/utils/common-functions';
|
|
19
|
-
import { SwaggerAPI } from './src/helpers/swagger-api';
|
|
20
|
-
import { CustomReporter } from './src/helpers/custom-reporter';
|
|
21
|
-
import { WebPage } from './src/helpers/web-page';
|
|
22
|
-
import { MailTemplates } from './src/common/mail-templates';
|
|
23
|
-
import { MyMobilityEmployee } from './src/common/mme';
|
|
24
|
-
import { Okta } from './src/common/Okta';
|
|
25
|
-
import { Payloads } from './src/common/Payloads';
|
|
26
|
-
import { Tiger } from './src/common/Tiger';
|
|
27
|
-
import { Parameters } from './src/helpers/parameters';
|
|
28
|
-
import { setParameter, setParameters, getParameter, replaceParametersInJsonObject } from './src/helpers/parameters';
|
|
29
|
-
import { getBearerToken } from './src/common/oAuth';
|
|
30
|
-
export { UIHelper, ApiHelper, ApiExcelDriver, ImapClient, ImapHelper, TokenGenerators, AzureStorageMethods, Comparisions, DocumentUtility, KeyVaultMethods, DBUtility, XmlToJson, LightHouseUtility, Dateutility, JSONUtil, XmlUtil, ExcelUtil, CommonFunctions, SwaggerAPI, Parameters, CustomReporter, WebPage, MailTemplates, MyMobilityEmployee, Okta, Payloads, Tiger, setParameter, setParameters, getParameter, replaceParametersInJsonObject, getBearerToken };
|
|
14
|
+
export { UIHelper, ApiHelper, ImapClient, ImapHelper, TokenGenerators, AzureStorageMethods, Comparisions, DocumentUtility, KeyVaultMethods, DBUtility, XmlToJson, LightHouseUtility, Dateutility, };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Dateutility = exports.LightHouseUtility = exports.XmlToJson = exports.DBUtility = exports.KeyVaultMethods = exports.DocumentUtility = exports.Comparisions = exports.AzureStorageMethods = exports.TokenGenerators = exports.ImapHelper = exports.ImapClient = exports.ApiHelper = exports.UIHelper = void 0;
|
|
4
4
|
const ui_helpers_1 = require("./src/helpers/ui-helpers");
|
|
5
5
|
Object.defineProperty(exports, "UIHelper", { enumerable: true, get: function () { return ui_helpers_1.UIHelper; } });
|
|
6
6
|
const api_helpers_1 = require("./src/helpers/api-helpers");
|
|
7
7
|
Object.defineProperty(exports, "ApiHelper", { enumerable: true, get: function () { return api_helpers_1.ApiHelper; } });
|
|
8
|
-
const api_excel_driver_1 = require("./src/helpers/api-excel-driver");
|
|
9
|
-
Object.defineProperty(exports, "ApiExcelDriver", { enumerable: true, get: function () { return api_excel_driver_1.ApiExcelDriver; } });
|
|
10
8
|
const ImapClient = require("./src/helpers/imap-client.js");
|
|
11
9
|
exports.ImapClient = ImapClient;
|
|
12
10
|
const imap_helper_1 = require("./src/helpers/imap-helper");
|
|
@@ -29,38 +27,4 @@ const lighhouse_utility_1 = require("./src/utils/lighhouse_utility");
|
|
|
29
27
|
Object.defineProperty(exports, "LightHouseUtility", { enumerable: true, get: function () { return lighhouse_utility_1.LightHouseUtility; } });
|
|
30
28
|
const date_utilitites_1 = require("./src/utils/date_utilitites");
|
|
31
29
|
Object.defineProperty(exports, "Dateutility", { enumerable: true, get: function () { return date_utilitites_1.Dateutility; } });
|
|
32
|
-
// import { SQLite } from './src/utils/sqlite';
|
|
33
|
-
const json_util_1 = require("./src/utils/json-util");
|
|
34
|
-
Object.defineProperty(exports, "JSONUtil", { enumerable: true, get: function () { return json_util_1.JSONUtil; } });
|
|
35
|
-
const xml_util_1 = require("./src/utils/xml-util");
|
|
36
|
-
Object.defineProperty(exports, "XmlUtil", { enumerable: true, get: function () { return xml_util_1.XmlUtil; } });
|
|
37
|
-
const excel_util_1 = require("./src/utils/excel-util");
|
|
38
|
-
Object.defineProperty(exports, "ExcelUtil", { enumerable: true, get: function () { return excel_util_1.ExcelUtil; } });
|
|
39
|
-
const common_functions_1 = require("./src/utils/common-functions");
|
|
40
|
-
Object.defineProperty(exports, "CommonFunctions", { enumerable: true, get: function () { return common_functions_1.CommonFunctions; } });
|
|
41
|
-
const swagger_api_1 = require("./src/helpers/swagger-api");
|
|
42
|
-
Object.defineProperty(exports, "SwaggerAPI", { enumerable: true, get: function () { return swagger_api_1.SwaggerAPI; } });
|
|
43
|
-
const custom_reporter_1 = require("./src/helpers/custom-reporter");
|
|
44
|
-
Object.defineProperty(exports, "CustomReporter", { enumerable: true, get: function () { return custom_reporter_1.CustomReporter; } });
|
|
45
|
-
const web_page_1 = require("./src/helpers/web-page");
|
|
46
|
-
Object.defineProperty(exports, "WebPage", { enumerable: true, get: function () { return web_page_1.WebPage; } });
|
|
47
|
-
const mail_templates_1 = require("./src/common/mail-templates");
|
|
48
|
-
Object.defineProperty(exports, "MailTemplates", { enumerable: true, get: function () { return mail_templates_1.MailTemplates; } });
|
|
49
|
-
const mme_1 = require("./src/common/mme");
|
|
50
|
-
Object.defineProperty(exports, "MyMobilityEmployee", { enumerable: true, get: function () { return mme_1.MyMobilityEmployee; } });
|
|
51
|
-
const Okta_1 = require("./src/common/Okta");
|
|
52
|
-
Object.defineProperty(exports, "Okta", { enumerable: true, get: function () { return Okta_1.Okta; } });
|
|
53
|
-
const Payloads_1 = require("./src/common/Payloads");
|
|
54
|
-
Object.defineProperty(exports, "Payloads", { enumerable: true, get: function () { return Payloads_1.Payloads; } });
|
|
55
|
-
const Tiger_1 = require("./src/common/Tiger");
|
|
56
|
-
Object.defineProperty(exports, "Tiger", { enumerable: true, get: function () { return Tiger_1.Tiger; } });
|
|
57
|
-
const parameters_1 = require("./src/helpers/parameters");
|
|
58
|
-
Object.defineProperty(exports, "Parameters", { enumerable: true, get: function () { return parameters_1.Parameters; } });
|
|
59
|
-
const parameters_2 = require("./src/helpers/parameters");
|
|
60
|
-
Object.defineProperty(exports, "setParameter", { enumerable: true, get: function () { return parameters_2.setParameter; } });
|
|
61
|
-
Object.defineProperty(exports, "setParameters", { enumerable: true, get: function () { return parameters_2.setParameters; } });
|
|
62
|
-
Object.defineProperty(exports, "getParameter", { enumerable: true, get: function () { return parameters_2.getParameter; } });
|
|
63
|
-
Object.defineProperty(exports, "replaceParametersInJsonObject", { enumerable: true, get: function () { return parameters_2.replaceParametersInJsonObject; } });
|
|
64
|
-
const oAuth_1 = require("./src/common/oAuth");
|
|
65
|
-
Object.defineProperty(exports, "getBearerToken", { enumerable: true, get: function () { return oAuth_1.getBearerToken; } });
|
|
66
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAehD,yFAfK,qBAAQ,OAeL;AAdZ,2DAAsD;AAelD,0FAfK,uBAAS,OAeL;AAdb,2DAA4D;AAexD,gCAAU;AAdd,2DAAuD;AAenD,2FAfK,wBAAU,OAeL;AAdd,qDAAwD;AAepD,gGAfK,2BAAe,OAeL;AAdnB,6EAAwE;AAepE,oGAfK,2CAAmB,OAeL;AAdvB,2DAAwD;AAepD,6FAfK,2BAAY,OAeL;AAdhB,mEAA+D;AAe3D,gGAfK,kCAAe,OAeL;AAdnB,mEAA+D;AAe3D,gGAfK,kCAAe,OAeL;AAdnB,uDAAmD;AAe/C,0FAfK,sBAAS,OAeL;AAdb,qDAAkD;AAe9C,0FAfK,qBAAS,OAeL;AAdb,qEAAkE;AAe9D,kGAfK,qCAAiB,OAeL;AAdrB,iEAA0D;AAetD,4FAfK,6BAAW,OAeL"}
|
|
@@ -1,41 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
|
+
import 'dotenv/config';
|
|
3
3
|
export declare class ApiHelper {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
static post(url: any, header: any, payload: any): Promise<AxiosResponse<any, any>>;
|
|
5
|
+
static get(url: any, header: any): Promise<AxiosResponse<any, any>>;
|
|
6
|
+
static put(url: any, header: any, payload: any): Promise<AxiosResponse<any, any>>;
|
|
6
7
|
interceptorsEnabled: boolean;
|
|
7
8
|
static outputDir: string;
|
|
8
9
|
static saveResponseData: boolean;
|
|
9
10
|
static appendResponseData: boolean;
|
|
10
|
-
static generateExcelSuite: boolean;
|
|
11
|
-
static enableLoggingForDebug: boolean;
|
|
12
11
|
static dateAndTimeForFileName: string;
|
|
13
|
-
static
|
|
14
|
-
static get(url: any, header: any): Promise<AxiosResponse>;
|
|
15
|
-
static put(url: any, header: any, payload: any): Promise<AxiosResponse>;
|
|
12
|
+
static enableDebug: boolean;
|
|
16
13
|
enableDebugging(): void;
|
|
17
|
-
setDebugging(flag: boolean): void;
|
|
18
|
-
setLogging(flag: boolean): void;
|
|
19
14
|
setSaveResponseData(flag: boolean): void;
|
|
20
15
|
setAppendResponseData(flag: boolean): void;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
generateSuite?: boolean;
|
|
26
|
-
strictCheck?: boolean;
|
|
27
|
-
}): Promise<AxiosResponse>;
|
|
16
|
+
turnOnMessageTypes(...messageTypes: any[]): void;
|
|
17
|
+
turnOffMessageTypes(...messageTypes: any[]): void;
|
|
18
|
+
updateConfig(config: Record<string, any>, keyPath: string[], newValue: any): Promise<AxiosRequestConfig>;
|
|
19
|
+
request(config: AxiosRequestConfig, options?: any): Promise<AxiosResponse>;
|
|
28
20
|
instanceRequest(instance: AxiosInstance, config: AxiosRequestConfig, options?: any): Promise<AxiosResponse>;
|
|
29
|
-
getResponseTime(response: AxiosResponse | AxiosError): number;
|
|
30
21
|
setAuthorization(config: AxiosRequestConfig<any>, token: any): AxiosRequestConfig;
|
|
31
|
-
updateAxiosRequestConfig(config: AxiosRequestConfig, path: string, value: any): void;
|
|
32
22
|
private static saveResponseToFile;
|
|
33
23
|
static printResponseOnConsole(config: AxiosRequestConfig<any>, response: AxiosResponse<any, any>): Promise<void>;
|
|
34
24
|
static debugRequestConfig(instance: AxiosInstance, config: AxiosRequestConfig): void;
|
|
35
25
|
static debugResponse(response: AxiosResponse<any, any>): void;
|
|
36
26
|
static debugResponseError(error: any): void;
|
|
37
|
-
getErrorMessage(response: any): any;
|
|
38
|
-
private getFirstAvailableValue;
|
|
39
27
|
/**
|
|
40
28
|
*
|
|
41
29
|
* @param jsonResponseBody
|
|
@@ -44,11 +32,4 @@ export declare class ApiHelper {
|
|
|
44
32
|
*/
|
|
45
33
|
validateJsonSchema(jsonResponseBody: any, jsonSchemaFile: any): boolean;
|
|
46
34
|
getValueByJSONPath(data: any, jsonPath: string, seperator?: string): any;
|
|
47
|
-
getValueByJsonPath(json: JSON, jsonPath: string): any;
|
|
48
|
-
generateJSONPath(keys: string[]): string;
|
|
49
|
-
static testId: number;
|
|
50
|
-
generateExcelSuite(config: AxiosRequestConfig, response: AxiosResponse, optional?: {
|
|
51
|
-
fileName?: string;
|
|
52
|
-
}): void;
|
|
53
|
-
saveResponseAs(response: AxiosResponse, fileName: string, fileDir?: string, suffix?: string): void;
|
|
54
35
|
}
|