@betterview/integration-toolkit 0.1.2 → 1.1.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/lib/Deployment/index.d.ts +11 -0
- package/lib/Deployment/index.d.ts.map +1 -0
- package/{src/Deployment/index.ts → lib/Deployment/index.js} +22 -37
- package/lib/Deployment/index.js.map +1 -0
- package/lib/Network/axios-error-handling.d.ts +26 -0
- package/lib/Network/axios-error-handling.d.ts.map +1 -0
- package/lib/Network/axios-error-handling.js +52 -0
- package/lib/Network/axios-error-handling.js.map +1 -0
- package/lib/Network/index.d.ts +11 -0
- package/lib/Network/index.d.ts.map +1 -0
- package/lib/Network/index.js +19 -0
- package/lib/Network/index.js.map +1 -0
- package/lib/TestHarness/index.d.ts +9 -0
- package/lib/TestHarness/index.d.ts.map +1 -0
- package/lib/TestHarness/index.js +35 -0
- package/lib/TestHarness/index.js.map +1 -0
- package/lib/types/IEnrichmentIntegration.d.ts +24 -0
- package/lib/types/IEnrichmentIntegration.d.ts.map +1 -0
- package/lib/types/IEnrichmentIntegration.js +3 -0
- package/lib/types/IEnrichmentIntegration.js.map +1 -0
- package/lib/types/IPartnerDataSchema.d.ts +25 -0
- package/lib/types/IPartnerDataSchema.d.ts.map +1 -0
- package/lib/types/IPartnerDataSchema.js +13 -0
- package/lib/types/IPartnerDataSchema.js.map +1 -0
- package/{src/types/index.ts → lib/types/index.d.ts} +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +15 -0
- package/lib/types/index.js.map +1 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +12 -0
- package/lib/utils/index.js.map +1 -0
- package/package.json +15 -32
- package/.eslintignore +0 -8
- package/.eslintrc.js +0 -273
- package/.prettierignore +0 -7
- package/.prettierrc +0 -19
- package/CODEOWNERS +0 -6
- package/component-harness-server/index.html +0 -11
- package/component-harness-server/src/App.js +0 -34
- package/component-harness-server/src/fonts/biotif-black-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-black-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-blackitalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-blackitalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-bold-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-bold-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-bolditalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-bolditalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-book-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-book-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-bookitalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-bookitalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-extrabold-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-extrabold-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-extrabolditalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-extrabolditalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-light-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-light-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-lightitalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-lightitalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-medium-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-medium-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-mediumitalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-mediumitalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-regular-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-regular-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-regularitalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-regularitalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-semibold-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-semibold-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/biotif-semibolditalic-webfont.woff +0 -0
- package/component-harness-server/src/fonts/biotif-semibolditalic-webfont.woff2 +0 -0
- package/component-harness-server/src/fonts/pensumpro-black.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-blackitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-bold.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-bolditalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-book.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-bookitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-extrabold.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-extrabolditalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-extralight.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-extralightitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-light.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-lightitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-medium.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-mediumitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-regular.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-regularitalic.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-thin.otf +0 -0
- package/component-harness-server/src/fonts/pensumpro-thinitalic.otf +0 -0
- package/component-harness-server/src/index.js +0 -5
- package/component-harness-server/src/styles/betterview.styl +0 -34
- package/component-harness-server/src/styles/fonts.styl +0 -208
- package/component-harness-server/src/styles/mixins.styl +0 -23
- package/component-harness-server/src/styles/reset.styl +0 -28
- package/component-harness-server/src/styles/vars.styl +0 -77
- package/component-harness-server/src/styles.styl +0 -29
- package/src/ComponentHarness/index.ts +0 -93
- package/src/Network/axios-error-handling.ts +0 -76
- package/src/Network/index.ts +0 -14
- package/src/TestHarness/index.ts +0 -48
- package/src/dummy.test.ts +0 -1
- package/src/types/IEnrichmentIntegration.ts +0 -73
- package/src/types/IPartnerDataSchema.ts +0 -39
- package/src/utils/index.ts +0 -5
- package/tsconfig.build.json +0 -14
- package/tsconfig.eslint.json +0 -20
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IEnrichmentIntegration } from '../types';
|
|
2
|
+
export declare type DatabaseScript = {
|
|
3
|
+
run: string;
|
|
4
|
+
rollback: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type PartnerHubInstallScripts = {
|
|
7
|
+
install_partner: DatabaseScript;
|
|
8
|
+
install_flags: DatabaseScript;
|
|
9
|
+
};
|
|
10
|
+
export declare function generateDatabaseScripts(integration: IEnrichmentIntegration, billingProviderId: number): PartnerHubInstallScripts;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Deployment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,oBAAY,cAAc,GAAG;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACrC,eAAe,EAAE,cAAc,CAAC;IAChC,aAAa,EAAE,cAAc,CAAC;CAC/B,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,sBAAsB,EACnC,iBAAiB,EAAE,MAAM,GACxB,wBAAwB,CAwD1B"}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type PartnerHubInstallScripts = {
|
|
9
|
-
install_partner: DatabaseScript;
|
|
10
|
-
install_flags: DatabaseScript;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export function generateDatabaseScripts(
|
|
14
|
-
integration: IEnrichmentIntegration,
|
|
15
|
-
billingProviderId: number
|
|
16
|
-
): PartnerHubInstallScripts {
|
|
17
|
-
const { offering, partner } = integration.registration;
|
|
18
|
-
const intName = `${partner.toLowerCase()}_${offering.toLowerCase()}`;
|
|
19
|
-
|
|
20
|
-
const ph_create = `
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateDatabaseScripts = void 0;
|
|
4
|
+
function generateDatabaseScripts(integration, billingProviderId) {
|
|
5
|
+
const { offering, partner } = { offering: 'foo', partner: 'bar' }; // this will come from the manifest file
|
|
6
|
+
const intName = `${partner.toLowerCase()}_${offering.toLowerCase()}`;
|
|
7
|
+
const ph_create = `
|
|
21
8
|
create table if not exists ph.${intName} (
|
|
22
9
|
id bigint not null primary key default id_generator(1),
|
|
23
10
|
property_id int not null,
|
|
@@ -30,13 +17,11 @@ export function generateDatabaseScripts(
|
|
|
30
17
|
insert into ph.partner_offering (partner, offering, table_name, matrix_option, credentials_schema) values ('${partner}', '${offering}', '${intName}', 'include_${intName}', '{}');
|
|
31
18
|
;
|
|
32
19
|
`;
|
|
33
|
-
|
|
34
|
-
const ph_rollback = `
|
|
20
|
+
const ph_rollback = `
|
|
35
21
|
drop table ph.${intName};
|
|
36
22
|
delete from billing.provider where id = ${billingProviderId};
|
|
37
23
|
`;
|
|
38
|
-
|
|
39
|
-
const flag_create = `
|
|
24
|
+
const flag_create = `
|
|
40
25
|
do $$
|
|
41
26
|
declare
|
|
42
27
|
sectionid bigint;
|
|
@@ -52,21 +37,21 @@ export function generateDatabaseScripts(
|
|
|
52
37
|
values (subsectionid, 'Match Value(s)', 'value', '${intName}', 'custom', 'Case-insesitive, comma separated');
|
|
53
38
|
end $$;
|
|
54
39
|
`;
|
|
55
|
-
|
|
56
|
-
const flag_rollback = `
|
|
40
|
+
const flag_rollback = `
|
|
57
41
|
delete from flags.option where source = '${intName}' and key = 'custom';
|
|
58
42
|
delete from flags.options_subsection where display = '${partner} ${offering}';
|
|
59
43
|
delete from flags.options_section where display = '${partner}' and position = 999;
|
|
60
44
|
`;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
};
|
|
45
|
+
return {
|
|
46
|
+
install_partner: {
|
|
47
|
+
run: ph_create,
|
|
48
|
+
rollback: ph_rollback
|
|
49
|
+
},
|
|
50
|
+
install_flags: {
|
|
51
|
+
run: flag_create,
|
|
52
|
+
rollback: flag_rollback
|
|
53
|
+
}
|
|
54
|
+
};
|
|
72
55
|
}
|
|
56
|
+
exports.generateDatabaseScripts = generateDatabaseScripts;
|
|
57
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Deployment/index.ts"],"names":[],"mappings":";;;AAYA,SAAgB,uBAAuB,CACrC,WAAmC,EACnC,iBAAyB;IAEzB,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,wCAAwC;IAC3G,MAAM,OAAO,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;IAErE,MAAM,SAAS,GAAG;oCACgB,OAAO;;;;;;;;sDAQW,iBAAiB,MAAM,OAAO;kHAC8B,OAAO,OAAO,QAAQ,OAAO,OAAO,eAAe,OAAO;;GAEzK,CAAC;IAEF,MAAM,WAAW,GAAG;oBACF,OAAO;8CACmB,iBAAiB;GAC5D,CAAC;IAEF,MAAM,WAAW,GAAG;;;;;;gFAM0D,OAAO;;;8BAGzD,OAAO,IAAI,QAAQ;;;;4DAIW,OAAO;;KAE9D,CAAC;IAEJ,MAAM,aAAa,GAAG;+CACuB,OAAO;4DACM,OAAO,IAAI,QAAQ;yDACtB,OAAO;GAC7D,CAAC;IAEF,OAAO;QACL,eAAe,EAAE;YACf,GAAG,EAAE,SAAS;YACd,QAAQ,EAAE,WAAW;SACtB;QACD,aAAa,EAAE;YACb,GAAG,EAAE,WAAW;YAChB,QAAQ,EAAE,aAAa;SACxB;KACF,CAAC;AACJ,CAAC;AA3DD,0DA2DC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AxiosError, AxiosResponse } from 'axios';
|
|
2
|
+
export declare type FriendlyName = 'server error' | 'no response' | 'request init failure' | 'auth error' | 'endpoint not found';
|
|
3
|
+
export interface SimplifiedError {
|
|
4
|
+
/** the status code number (e.g. 500) */
|
|
5
|
+
statusCode?: number;
|
|
6
|
+
data?: any;
|
|
7
|
+
/** the status code name (e.g. ETIMEDOUT) */
|
|
8
|
+
code?: string;
|
|
9
|
+
responseHeaders?: Record<string, string>;
|
|
10
|
+
/**
|
|
11
|
+
* server error: the server responded with an error
|
|
12
|
+
* no repsonse: no response was received from the server
|
|
13
|
+
* request init failure: axios failed to create the request to send
|
|
14
|
+
*/
|
|
15
|
+
friendly: FriendlyName;
|
|
16
|
+
}
|
|
17
|
+
/** simplifies an axios error, exposing the properties that are commonly used and friendly name to help decision trees */
|
|
18
|
+
export declare function simplifyError(err: AxiosError): SimplifiedError;
|
|
19
|
+
export interface IWrapResult<T> {
|
|
20
|
+
data?: T;
|
|
21
|
+
headers?: Record<string, string>;
|
|
22
|
+
err?: SimplifiedError;
|
|
23
|
+
}
|
|
24
|
+
/** wraps an axios api call, resulting in a successful promise containing either the requested data or a simplfied error */
|
|
25
|
+
export declare function wrap<T>(axiosApiCall: Promise<AxiosResponse<T> | AxiosError<T>>): Promise<IWrapResult<T>>;
|
|
26
|
+
//# sourceMappingURL=axios-error-handling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios-error-handling.d.ts","sourceRoot":"","sources":["../../src/Network/axios-error-handling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAElD,oBAAY,YAAY,GACpB,cAAc,GACd,aAAa,GACb,sBAAsB,GACtB,YAAY,GACZ,oBAAoB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,yHAAyH;AACzH,wBAAgB,aAAa,CAAC,GAAG,EAAE,UAAU,GAAG,eAAe,CAa9D;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,GAAG,CAAC,EAAE,eAAe,CAAC;CACvB;AAeD,2HAA2H;AAC3H,wBAAsB,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAe9G"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wrap = exports.simplifyError = void 0;
|
|
4
|
+
/** simplifies an axios error, exposing the properties that are commonly used and friendly name to help decision trees */
|
|
5
|
+
function simplifyError(err) {
|
|
6
|
+
let friendly = 'request init failure';
|
|
7
|
+
const statusCode = `${err.code ?? err.response?.status}`;
|
|
8
|
+
if (err.response)
|
|
9
|
+
friendly = convertStatusCode(statusCode);
|
|
10
|
+
else if (err.request)
|
|
11
|
+
friendly = 'no response';
|
|
12
|
+
return {
|
|
13
|
+
statusCode: err.response?.status,
|
|
14
|
+
data: err.response?.data,
|
|
15
|
+
code: statusCode,
|
|
16
|
+
responseHeaders: err.response?.headers,
|
|
17
|
+
friendly
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
exports.simplifyError = simplifyError;
|
|
21
|
+
function convertStatusCode(code) {
|
|
22
|
+
switch (code) {
|
|
23
|
+
case '401':
|
|
24
|
+
return 'auth error';
|
|
25
|
+
case '500':
|
|
26
|
+
return 'server error';
|
|
27
|
+
case '404':
|
|
28
|
+
return 'endpoint not found';
|
|
29
|
+
default:
|
|
30
|
+
return 'no response';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/** wraps an axios api call, resulting in a successful promise containing either the requested data or a simplfied error */
|
|
34
|
+
async function wrap(axiosApiCall) {
|
|
35
|
+
const result = {};
|
|
36
|
+
try {
|
|
37
|
+
let r = await axiosApiCall;
|
|
38
|
+
if (r.isAxiosError !== undefined) {
|
|
39
|
+
throw r;
|
|
40
|
+
}
|
|
41
|
+
r = r;
|
|
42
|
+
result.headers = r.headers;
|
|
43
|
+
result.data = r.data;
|
|
44
|
+
}
|
|
45
|
+
catch (err) {
|
|
46
|
+
const simple = simplifyError(err);
|
|
47
|
+
result.err = simple;
|
|
48
|
+
}
|
|
49
|
+
return result;
|
|
50
|
+
}
|
|
51
|
+
exports.wrap = wrap;
|
|
52
|
+
//# sourceMappingURL=axios-error-handling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"axios-error-handling.js","sourceRoot":"","sources":["../../src/Network/axios-error-handling.ts"],"names":[],"mappings":";;;AAwBA,yHAAyH;AACzH,SAAgB,aAAa,CAAC,GAAe;IAC3C,IAAI,QAAQ,GAAiB,sBAAsB,CAAC;IACpD,MAAM,UAAU,GAAG,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACzD,IAAI,GAAG,CAAC,QAAQ;QAAE,QAAQ,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;SACtD,IAAI,GAAG,CAAC,OAAO;QAAE,QAAQ,GAAG,aAAa,CAAC;IAE/C,OAAO;QACL,UAAU,EAAE,GAAG,CAAC,QAAQ,EAAE,MAAM;QAChC,IAAI,EAAE,GAAG,CAAC,QAAQ,EAAE,IAAI;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,GAAG,CAAC,QAAQ,EAAE,OAAO;QACtC,QAAQ;KACT,CAAC;AACJ,CAAC;AAbD,sCAaC;AAQD,SAAS,iBAAiB,CAAC,IAAY;IACrC,QAAQ,IAAI,EAAE;QACZ,KAAK,KAAK;YACR,OAAO,YAAY,CAAC;QACtB,KAAK,KAAK;YACR,OAAO,cAAc,CAAC;QACxB,KAAK,KAAK;YACR,OAAO,oBAAoB,CAAC;QAC9B;YACE,OAAO,aAAa,CAAC;KACxB;AACH,CAAC;AAED,2HAA2H;AACpH,KAAK,UAAU,IAAI,CAAI,YAAuD;IACnF,MAAM,MAAM,GAAmB,EAAE,CAAC;IAClC,IAAI;QACF,IAAI,CAAC,GAAG,MAAM,YAAY,CAAC;QAC3B,IAAK,CAAgB,CAAC,YAAY,KAAK,SAAS,EAAE;YAChD,MAAM,CAAC,CAAC;SACT;QACD,CAAC,GAAG,CAAqB,CAAC;QAC1B,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;QAC3B,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC;KACtB;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,MAAM,GAAG,aAAa,CAAC,GAAsB,CAAC,CAAC;QACrD,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC;KACrB;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAfD,oBAeC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { IWrapResult } from './axios-error-handling';
|
|
3
|
+
export declare function get(url: string, config: AxiosRequestConfig): Promise<{
|
|
4
|
+
request_url: string;
|
|
5
|
+
result: IWrapResult<Record<string, any>>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function post(url: string, data: any, config: AxiosRequestConfig): Promise<{
|
|
8
|
+
request_url: string;
|
|
9
|
+
result: IWrapResult<Record<string, any>>;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Network/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAQ,MAAM,wBAAwB,CAAC;AAE3D,wBAAsB,GAAG,CACvB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;CAAE,CAAC,CAG5E;AAED,wBAAsB,IAAI,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;CAAE,CAAC,CAG5E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.post = exports.get = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const axios_error_handling_1 = require("./axios-error-handling");
|
|
9
|
+
async function get(url, config) {
|
|
10
|
+
const result = await axios_error_handling_1.wrap(axios_1.default.get(url, config));
|
|
11
|
+
return { request_url: url, result };
|
|
12
|
+
}
|
|
13
|
+
exports.get = get;
|
|
14
|
+
async function post(url, data, config) {
|
|
15
|
+
const result = await axios_error_handling_1.wrap(axios_1.default.post(url, data, config));
|
|
16
|
+
return { request_url: url, result };
|
|
17
|
+
}
|
|
18
|
+
exports.post = post;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Network/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkD;AAClD,iEAA2D;AAEpD,KAAK,UAAU,GAAG,CACvB,GAAW,EACX,MAA0B;IAE1B,MAAM,MAAM,GAAG,MAAM,2BAAI,CAAC,eAAK,CAAC,GAAG,CAAsB,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IACvE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AAND,kBAMC;AAEM,KAAK,UAAU,IAAI,CACxB,GAAW,EACX,IAAS,EACT,MAA0B;IAE1B,MAAM,MAAM,GAAG,MAAM,2BAAI,CAAC,eAAK,CAAC,IAAI,CAAsB,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9E,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AAPD,oBAOC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEnrichmentIntegration, IEnrichmentIntegrationRequestData } from '../types';
|
|
2
|
+
export default class TestHarness {
|
|
3
|
+
integration: IEnrichmentIntegration;
|
|
4
|
+
requestData: IEnrichmentIntegrationRequestData | undefined;
|
|
5
|
+
constructor(integration: IEnrichmentIntegration, requestData?: IEnrichmentIntegrationRequestData);
|
|
6
|
+
runGetData(): Promise<Record<string, any> | undefined>;
|
|
7
|
+
setMockRequestData(): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TestHarness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAGrF,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,EAAE,iCAAiC,GAAG,SAAS,CAAC;gBAEtD,WAAW,EAAE,sBAAsB,EAAE,WAAW,CAAC,EAAE,iCAAiC;IAKnF,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAU5D,kBAAkB;CAe1B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("../utils");
|
|
4
|
+
class TestHarness {
|
|
5
|
+
constructor(integration, requestData) {
|
|
6
|
+
this.integration = integration;
|
|
7
|
+
this.requestData = requestData;
|
|
8
|
+
}
|
|
9
|
+
async runGetData() {
|
|
10
|
+
if (!this.requestData) {
|
|
11
|
+
this.setMockRequestData();
|
|
12
|
+
}
|
|
13
|
+
console.log('Request data set to: ', utils_1.jsonLog(this.requestData));
|
|
14
|
+
const result = await this.integration.getData?.(this.requestData);
|
|
15
|
+
console.log(`Result:`, utils_1.jsonLog(result));
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
setMockRequestData() {
|
|
19
|
+
this.requestData = {
|
|
20
|
+
full_address: '100 Pringle Ave. Walnut Creek, CA 94596',
|
|
21
|
+
street: '100 Pringle Ave.',
|
|
22
|
+
city: 'Walnut Creek',
|
|
23
|
+
zip: '94596',
|
|
24
|
+
state: 'CA',
|
|
25
|
+
// fill this w/the true credentials from the offering
|
|
26
|
+
credentials: { username: 'test', password: 'test' },
|
|
27
|
+
externalId: 'external1',
|
|
28
|
+
insuredName: 'Jane Doe',
|
|
29
|
+
latitude: 37.90820797421544,
|
|
30
|
+
longitude: -122.067761097756
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.default = TestHarness;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TestHarness/index.ts"],"names":[],"mappings":";;AACA,oCAAmC;AAEnC,MAAqB,WAAW;IAI9B,YAAY,WAAmC,EAAE,WAA+C;QAC9F,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,UAAU;QACrB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,CAAC,kBAAkB,EAAE,CAAC;SAC3B;QACD,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,eAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,WAAY,CAAC,CAAC;QACnE,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,eAAO,CAAC,MAAM,CAAC,CAAC,CAAC;QACxC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,kBAAkB;QACvB,IAAI,CAAC,WAAW,GAAG;YACjB,YAAY,EAAE,yCAAyC;YACvD,MAAM,EAAE,kBAAkB;YAC1B,IAAI,EAAE,cAAc;YACpB,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,IAAI;YACX,qDAAqD;YACrD,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE;YACnD,UAAU,EAAE,WAAW;YACvB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,CAAC,gBAAgB;SAC7B,CAAC;IACJ,CAAC;CACF;AAlCD,8BAkCC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IWrapResult } from '../Network/axios-error-handling';
|
|
2
|
+
export interface IEnrichmentIntegration {
|
|
3
|
+
/**
|
|
4
|
+
* Pulls data from the vendor and returns the data graph in JSON format.
|
|
5
|
+
*/
|
|
6
|
+
getData(requestData: IEnrichmentIntegrationRequestData): Promise<{
|
|
7
|
+
request_url: string;
|
|
8
|
+
result: IWrapResult<Record<string, any>>;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export interface IEnrichmentIntegrationRequestData {
|
|
12
|
+
credentials: Record<any, string>;
|
|
13
|
+
full_address?: string;
|
|
14
|
+
street?: string;
|
|
15
|
+
city?: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
zip?: string;
|
|
18
|
+
externalId?: string | null;
|
|
19
|
+
latitude?: number;
|
|
20
|
+
longitude?: number;
|
|
21
|
+
insuredName?: string | null;
|
|
22
|
+
clientOrgId?: number;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=IEnrichmentIntegration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEnrichmentIntegration.d.ts","sourceRoot":"","sources":["../../src/types/IEnrichmentIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,CACL,WAAW,EAAE,iCAAiC,GAC7C,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;KAAE,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEnrichmentIntegration.js","sourceRoot":"","sources":["../../src/types/IEnrichmentIntegration.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface IDataSchemaField {
|
|
2
|
+
description: string;
|
|
3
|
+
formatter?: Formatters;
|
|
4
|
+
jsonPath: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
sample?: string | number | boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
data_type: 'string' | 'number' | 'date' | 'stringArray' | 'objectArray' | 'boolean' | 'wkt' | 'geojson' | 'imgSrc' | 'downloadSrc' | 'coordinates' | 'coordinatesLatLngCSV' | 'coordinatesLngLatCSV';
|
|
9
|
+
fields?: IDataSchemaField[];
|
|
10
|
+
}
|
|
11
|
+
export interface IPartnerDataSchema {
|
|
12
|
+
fields: IDataSchemaField[];
|
|
13
|
+
}
|
|
14
|
+
export interface IPartnerDataSchemas {
|
|
15
|
+
[name: string]: IPartnerDataSchema;
|
|
16
|
+
}
|
|
17
|
+
export declare enum Formatters {
|
|
18
|
+
numberWithCommas = "numberWithCommas",
|
|
19
|
+
currencyWithCommas = "currencyWithCommas",
|
|
20
|
+
scoreLetterToLowMedHigh = "scoreLetterToLowMedHigh",
|
|
21
|
+
roundTwoDecimalPlaces = "roundTwoDecimalPlaces",
|
|
22
|
+
decimalToPercentage = "decimalToPercentage",
|
|
23
|
+
roundAndFormatWithCommas = "roundAndFormatWithCommasFn"
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=IPartnerDataSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPartnerDataSchema.d.ts","sourceRoot":"","sources":["../../src/types/IPartnerDataSchema.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,aAAa,GACb,aAAa,GACb,SAAS,GACT,KAAK,GACL,SAAS,GACT,QAAQ,GACR,aAAa,GACb,aAAa,GACb,sBAAsB,GACtB,sBAAsB,CAAC;IAC3B,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AACD,MAAM,WAAW,mBAAmB;IAClC,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,CAAC;CACpC;AAED,oBAAY,UAAU;IACpB,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,wBAAwB,+BAA+B;CACxD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Formatters = void 0;
|
|
4
|
+
var Formatters;
|
|
5
|
+
(function (Formatters) {
|
|
6
|
+
Formatters["numberWithCommas"] = "numberWithCommas";
|
|
7
|
+
Formatters["currencyWithCommas"] = "currencyWithCommas";
|
|
8
|
+
Formatters["scoreLetterToLowMedHigh"] = "scoreLetterToLowMedHigh";
|
|
9
|
+
Formatters["roundTwoDecimalPlaces"] = "roundTwoDecimalPlaces";
|
|
10
|
+
Formatters["decimalToPercentage"] = "decimalToPercentage";
|
|
11
|
+
Formatters["roundAndFormatWithCommas"] = "roundAndFormatWithCommasFn";
|
|
12
|
+
})(Formatters = exports.Formatters || (exports.Formatters = {}));
|
|
13
|
+
//# sourceMappingURL=IPartnerDataSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPartnerDataSchema.js","sourceRoot":"","sources":["../../src/types/IPartnerDataSchema.ts"],"names":[],"mappings":";;;AA+BA,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,mDAAqC,CAAA;IACrC,uDAAyC,CAAA;IACzC,iEAAmD,CAAA;IACnD,6DAA+C,CAAA;IAC/C,yDAA2C,CAAA;IAC3C,qEAAuD,CAAA;AACzD,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./IEnrichmentIntegration"), exports);
|
|
14
|
+
__exportStar(require("./IPartnerDataSchema"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,UAE3D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.jsonLog = void 0;
|
|
7
|
+
const json_colorizer_1 = __importDefault(require("json-colorizer"));
|
|
8
|
+
function jsonLog(obj) {
|
|
9
|
+
return json_colorizer_1.default(JSON.stringify(obj, null, 2));
|
|
10
|
+
}
|
|
11
|
+
exports.jsonLog = jsonLog;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsC;AAEtC,SAAgB,OAAO,CAAC,GAAoC;IAC1D,OAAO,wBAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC;AAFD,0BAEC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterview/integration-toolkit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Supports integration packages.
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Supports integration packages. This should be the only import from our integrations",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
6
|
+
"prebuild": "rm -rf ./lib",
|
|
7
|
+
"build": "tsc -p tsconfig.build.json",
|
|
7
8
|
"lint": "eslint . --ext .ts,.js",
|
|
8
9
|
"lint:fix": "npm run lint -- --fix",
|
|
9
10
|
"test": "jest --runInBand",
|
|
@@ -15,51 +16,33 @@
|
|
|
15
16
|
"author": "",
|
|
16
17
|
"license": "UNLICENSED",
|
|
17
18
|
"dependencies": {
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"axios": "^0.21.1",
|
|
21
|
-
"classnames": "^2.3.1",
|
|
22
|
-
"css-loader": "^6.2.0",
|
|
19
|
+
"async": "^3.2.1",
|
|
20
|
+
"axios": "0.21.1",
|
|
23
21
|
"fs-extra": "^10.0.0",
|
|
24
|
-
"json-colorizer": "
|
|
25
|
-
"react": "^17.0.2",
|
|
26
|
-
"react-dom": "^17.0.2",
|
|
27
|
-
"style-loader": "^3.2.1",
|
|
28
|
-
"stylus": "^0.54.8",
|
|
29
|
-
"stylus-loader": "^6.1.0"
|
|
22
|
+
"json-colorizer": "2.2.2"
|
|
30
23
|
},
|
|
31
24
|
"devDependencies": {
|
|
32
|
-
"@babel/core": "^7.15.0",
|
|
33
|
-
"@babel/preset-env": "^7.15.0",
|
|
34
|
-
"@babel/preset-react": "^7.14.5",
|
|
35
|
-
"@types/jest": "26.0.24",
|
|
36
|
-
"@types/webpack": "^4.41.30",
|
|
37
|
-
"@types/webpack-dev-server": "^4.0.3",
|
|
38
25
|
"@typescript-eslint/eslint-plugin": "4.26.1",
|
|
39
26
|
"@typescript-eslint/eslint-plugin-tslint": "4.26.1",
|
|
40
27
|
"@typescript-eslint/parser": "4.26.1",
|
|
41
|
-
"babel-eslint": "
|
|
42
|
-
"
|
|
43
|
-
"eslint": "^7.22.0",
|
|
28
|
+
"babel-eslint": "10.1.0",
|
|
29
|
+
"eslint": "7.22.0",
|
|
44
30
|
"eslint-config-prettier": "6.10.1",
|
|
45
|
-
"eslint-plugin-import": "
|
|
31
|
+
"eslint-plugin-import": "2.22.1",
|
|
46
32
|
"eslint-plugin-jsdoc": "30.7.13",
|
|
47
33
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
48
34
|
"eslint-plugin-prettier": "3.3.1",
|
|
49
35
|
"eslint-plugin-react": "7.22.0",
|
|
50
36
|
"eslint-plugin-sonarjs": "0.6.0",
|
|
51
|
-
"html-webpack-plugin": "^5.3.2",
|
|
52
37
|
"jest": "26.6.3",
|
|
53
38
|
"ts-jest": "26.5.5",
|
|
54
39
|
"ts-node": "8.8.2",
|
|
55
|
-
"
|
|
56
|
-
"tslint-config-prettier": "1.18.0",
|
|
57
|
-
"typescript": "4.3.2",
|
|
58
|
-
"webpack": "^5.51.1",
|
|
59
|
-
"webpack-cli": "^4.8.0",
|
|
60
|
-
"webpack-dev-server": "^4.0.0"
|
|
40
|
+
"typescript": "4.3.2"
|
|
61
41
|
},
|
|
62
42
|
"engines": {
|
|
63
43
|
"node": "^10 || ^14"
|
|
64
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"lib/**"
|
|
47
|
+
]
|
|
65
48
|
}
|