@betterview/integration-toolkit 7.5.0 → 7.5.2
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/package.json +3 -5
- package/lib/Network/axios-error-handling.d.ts +0 -26
- package/lib/Network/axios-error-handling.d.ts.map +0 -1
- package/lib/Network/axios-error-handling.js +0 -52
- package/lib/Network/axios-error-handling.js.map +0 -1
- package/lib/Network/index.d.ts +0 -11
- package/lib/Network/index.d.ts.map +0 -1
- package/lib/Network/index.js +0 -19
- package/lib/Network/index.js.map +0 -1
- package/lib/Parse/index.d.ts +0 -4
- package/lib/Parse/index.d.ts.map +0 -1
- package/lib/Parse/index.js +0 -16
- package/lib/Parse/index.js.map +0 -1
- package/lib/TestHarness/index.d.ts +0 -9
- package/lib/TestHarness/index.d.ts.map +0 -1
- package/lib/TestHarness/index.js +0 -33
- package/lib/TestHarness/index.js.map +0 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +0 -1
- package/lib/hooks/index.js +0 -6
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useWindowMessge/index.d.ts +0 -7
- package/lib/hooks/useWindowMessge/index.d.ts.map +0 -1
- package/lib/hooks/useWindowMessge/index.js +0 -28
- package/lib/hooks/useWindowMessge/index.js.map +0 -1
- package/lib/types/Enrichment.d.ts +0 -52
- package/lib/types/Enrichment.d.ts.map +0 -1
- package/lib/types/Enrichment.js +0 -3
- package/lib/types/Enrichment.js.map +0 -1
- package/lib/types/EnrichmentComponentArgs.d.ts +0 -50
- package/lib/types/EnrichmentComponentArgs.d.ts.map +0 -1
- package/lib/types/EnrichmentComponentArgs.js +0 -3
- package/lib/types/EnrichmentComponentArgs.js.map +0 -1
- package/lib/types/Events.d.ts +0 -5
- package/lib/types/Events.d.ts.map +0 -1
- package/lib/types/Events.js +0 -9
- package/lib/types/Events.js.map +0 -1
- package/lib/types/IPartnerDataSchema.d.ts +0 -31
- package/lib/types/IPartnerDataSchema.d.ts.map +0 -1
- package/lib/types/IPartnerDataSchema.js +0 -13
- package/lib/types/IPartnerDataSchema.js.map +0 -1
- package/lib/types/Integration.d.ts +0 -26
- package/lib/types/Integration.d.ts.map +0 -1
- package/lib/types/Integration.js +0 -41
- package/lib/types/Integration.js.map +0 -1
- package/lib/types/IntegrationManifest.d.ts +0 -47
- package/lib/types/IntegrationManifest.d.ts.map +0 -1
- package/lib/types/IntegrationManifest.js +0 -3
- package/lib/types/IntegrationManifest.js.map +0 -1
- package/lib/types/Storage.d.ts +0 -13
- package/lib/types/Storage.d.ts.map +0 -1
- package/lib/types/Storage.js +0 -3
- package/lib/types/Storage.js.map +0 -1
- package/lib/types/index.d.ts +0 -8
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/index.js +0 -24
- package/lib/types/index.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -12
- package/lib/utils/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterview/integration-toolkit",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.2",
|
|
4
4
|
"description": "Supports integration packages. This should be the only import from our integrations",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rm -rf ./lib",
|
|
@@ -16,13 +16,11 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "UNLICENSED",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"async": "^3.2.4",
|
|
20
19
|
"axios": "0.24.0",
|
|
21
|
-
"fs-extra": "^11.1.1",
|
|
22
20
|
"geojson": "0.5.0",
|
|
23
21
|
"json-colorizer": "2.2.2",
|
|
24
22
|
"lodash": "4.17.21",
|
|
25
|
-
"xml2js": "0.
|
|
23
|
+
"xml2js": "0.6.2"
|
|
26
24
|
},
|
|
27
25
|
"peerDependencies": {
|
|
28
26
|
"react": "^18.2.0"
|
|
@@ -31,7 +29,7 @@
|
|
|
31
29
|
"@babel/eslint-parser": "7.18.9",
|
|
32
30
|
"@testing-library/react": "^14.0.0",
|
|
33
31
|
"@types/jest": "^29.5.0",
|
|
34
|
-
"@types/xml2js": "0.4.
|
|
32
|
+
"@types/xml2js": "0.4.13",
|
|
35
33
|
"@typescript-eslint/eslint-plugin": "5.59.0",
|
|
36
34
|
"@typescript-eslint/eslint-plugin-tslint": "5.59.0",
|
|
37
35
|
"@typescript-eslint/parser": "5.59.0",
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,UAA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}
|
package/lib/Network/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { IWrapResult } from './axios-error-handling';
|
|
3
|
-
export declare function get<T = Record<string, any>>(url: string, config?: AxiosRequestConfig): Promise<{
|
|
4
|
-
request_url: string;
|
|
5
|
-
result: IWrapResult<T>;
|
|
6
|
-
}>;
|
|
7
|
-
export declare function post<T = any, U = Record<string, any>>(url: string, data: T, config?: AxiosRequestConfig): Promise<{
|
|
8
|
-
request_url: string;
|
|
9
|
-
result: IWrapResult<U>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/C,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,CAG1D;AAED,wBAAsB,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzD,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,CAAC,EACP,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAA;CAAE,CAAC,CAG1D"}
|
package/lib/Network/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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 (0, 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 (0, 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
|
package/lib/Network/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,MAA2B;IAE3B,MAAM,MAAM,GAAG,MAAM,IAAA,2BAAI,EAAC,eAAK,CAAC,GAAG,CAAI,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IACrD,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AAND,kBAMC;AAEM,KAAK,UAAU,IAAI,CACxB,GAAW,EACX,IAAO,EACP,MAA2B;IAE3B,MAAM,MAAM,GAAG,MAAM,IAAA,2BAAI,EAAC,eAAK,CAAC,IAAI,CAAI,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AACtC,CAAC;AAPD,oBAOC"}
|
package/lib/Parse/index.d.ts
DELETED
package/lib/Parse/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Parse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,oBAAY,oBAAoB,GAAG,SAAS,CAAC;AAE7C,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC,CASlG"}
|
package/lib/Parse/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.xml2js = void 0;
|
|
4
|
-
const xml2js_1 = require("xml2js");
|
|
5
|
-
async function xml2js(xmlToConvert, options) {
|
|
6
|
-
return new Promise((resolve, reject) => {
|
|
7
|
-
(0, xml2js_1.parseString)(xmlToConvert, options || {}, (err, result) => {
|
|
8
|
-
if (err) {
|
|
9
|
-
return reject(err);
|
|
10
|
-
}
|
|
11
|
-
return resolve(result);
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
exports.xml2js = xml2js;
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
package/lib/Parse/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Parse/index.ts"],"names":[],"mappings":";;;AAAA,mCAAgD;AAIzC,KAAK,UAAU,MAAM,CAAC,YAAoB,EAAE,OAA8B;IAC/E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAA,oBAAW,EAAC,YAAY,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;YACvD,IAAI,GAAG,EAAE;gBACP,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;aACpB;YACD,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AATD,wBASC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Enrichment, IEnrichmentIntegrationRequestData } from '../types';
|
|
2
|
-
export default class TestHarness {
|
|
3
|
-
integration: Enrichment;
|
|
4
|
-
requestData: IEnrichmentIntegrationRequestData | undefined;
|
|
5
|
-
constructor(integration: Enrichment, requestData?: IEnrichmentIntegrationRequestData);
|
|
6
|
-
runGetData(): Promise<Record<string, any> | undefined>;
|
|
7
|
-
setMockRequestData(): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TestHarness/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAGzE,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,WAAW,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,iCAAiC,GAAG,SAAS,CAAC;gBAEtD,WAAW,EAAE,UAAU,EAAE,WAAW,CAAC,EAAE,iCAAiC;IAKvE,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAU5D,kBAAkB;CAa1B"}
|
package/lib/TestHarness/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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: ', (0, utils_1.jsonLog)(this.requestData));
|
|
14
|
-
const result = await this.integration.getEnrichmentData?.(this.requestData);
|
|
15
|
-
console.log(`Result:`, (0, 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
|
-
externalId: 'external1',
|
|
26
|
-
insuredName: 'Jane Doe',
|
|
27
|
-
latitude: 37.90820797421544,
|
|
28
|
-
longitude: -122.067761097756
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.default = TestHarness;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TestHarness/index.ts"],"names":[],"mappings":";;AACA,oCAAmC;AAEnC,MAAqB,WAAW;IAI9B,YAAY,WAAuB,EAAE,WAA+C;QAClF,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,IAAA,eAAO,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAChE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,IAAI,CAAC,WAAY,CAAC,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAA,eAAO,EAAC,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,UAAU,EAAE,WAAW;YACvB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,iBAAiB;YAC3B,SAAS,EAAE,CAAC,gBAAgB;SAC7B,CAAC;IACJ,CAAC;CACF;AAhCD,8BAgCC"}
|
package/lib/hooks/index.d.ts
DELETED
package/lib/hooks/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
package/lib/hooks/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWindowMessage = void 0;
|
|
4
|
-
const useWindowMessge_1 = require("./useWindowMessge");
|
|
5
|
-
Object.defineProperty(exports, "useWindowMessage", { enumerable: true, get: function () { return useWindowMessge_1.useWindowMessage; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/lib/hooks/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAE5C,iGAFA,kCAAgB,OAEA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWindowMessge/index.ts"],"names":[],"mappings":"AAEA,oBAAY,aAAa,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC;AAE5F,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,aAAa,GAAG,IAAI,EAAE,GAAG,CAAC,CAwB/E"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWindowMessage = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useWindowMessage(namespace) {
|
|
6
|
-
const [message, setMessage] = (0, react_1.useState)(null);
|
|
7
|
-
const handleMessageEvent = (0, react_1.useCallback)(event => {
|
|
8
|
-
if (event.data.namespace !== namespace)
|
|
9
|
-
return;
|
|
10
|
-
setMessage(event.data);
|
|
11
|
-
}, []);
|
|
12
|
-
(0, react_1.useEffect)(() => {
|
|
13
|
-
window.addEventListener('message', handleMessageEvent);
|
|
14
|
-
return () => {
|
|
15
|
-
window.removeEventListener('message', handleMessageEvent);
|
|
16
|
-
};
|
|
17
|
-
}, [handleMessageEvent]);
|
|
18
|
-
const postMessage = (0, react_1.useCallback)((msg, targetOrigin = '*', transfer = undefined) => {
|
|
19
|
-
// eslint-disable-next-line no-console
|
|
20
|
-
if (!msg.type)
|
|
21
|
-
console.error('message object must contain properties "type" and "data"');
|
|
22
|
-
msg.namespace = namespace;
|
|
23
|
-
window.postMessage(msg, targetOrigin, transfer);
|
|
24
|
-
}, []);
|
|
25
|
-
return [message, postMessage];
|
|
26
|
-
}
|
|
27
|
-
exports.useWindowMessage = useWindowMessage;
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/useWindow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getEnrichmentData(requestData: IEnrichmentIntegrationRequestData): Promise<EnrichmentIntegrationResult>;
|
|
6
|
-
/**
|
|
7
|
-
* Constructs the URL to a photo for a given data field within the integration
|
|
8
|
-
*/
|
|
9
|
-
getEnrichmentPhotoDetails?(requestData: IEnrichmentGetPhotoDetailsRequest): Promise<{
|
|
10
|
-
url: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
}[]>;
|
|
14
|
-
/**
|
|
15
|
-
* Pulls data from the vendor and returns the data graph in JSON format.
|
|
16
|
-
* Deprecated as of manifest version 2. Please use `getEnrichmentData`.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated
|
|
19
|
-
*/
|
|
20
|
-
getData?(requestData: IEnrichmentIntegrationRequestData): Promise<EnrichmentIntegrationResult>;
|
|
21
|
-
}
|
|
22
|
-
export interface IEnrichmentGetPhotoDetailsRequest {
|
|
23
|
-
credentials?: Record<any, string>;
|
|
24
|
-
key: string;
|
|
25
|
-
data: Record<string, any>;
|
|
26
|
-
width?: string;
|
|
27
|
-
height?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface IEnrichmentIntegrationRequestData {
|
|
30
|
-
credentials?: Record<any, string>;
|
|
31
|
-
full_address?: string;
|
|
32
|
-
street?: string;
|
|
33
|
-
city?: string;
|
|
34
|
-
state?: string;
|
|
35
|
-
zip?: string;
|
|
36
|
-
county?: string;
|
|
37
|
-
externalId?: string | null;
|
|
38
|
-
latitude?: number;
|
|
39
|
-
longitude?: number;
|
|
40
|
-
insuredName?: string | null;
|
|
41
|
-
clientOrgId?: number;
|
|
42
|
-
boundaryWkt?: string;
|
|
43
|
-
buildingsWkt?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare type EnrichmentIntegrationResult = {
|
|
46
|
-
request_url: string;
|
|
47
|
-
result: {
|
|
48
|
-
data?: Record<string, any>;
|
|
49
|
-
err?: Record<string, any>;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=En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AC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,2BAA2B,GAAG;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC3B,CAAC;CACH,CAAC"}
|
package/lib/types/Enrichment.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Enrichment.js","sourceRoot":"","sources":["../../src/types/Enrichment.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { GeoJsonObject } from 'geojson';
|
|
2
|
-
export interface ICoordinate {
|
|
3
|
-
lat?: string | number;
|
|
4
|
-
latitude?: string | number;
|
|
5
|
-
lng?: string | number;
|
|
6
|
-
lon?: string | number;
|
|
7
|
-
longitude?: string | number;
|
|
8
|
-
}
|
|
9
|
-
export interface ITooltip {
|
|
10
|
-
title: string;
|
|
11
|
-
content?: string[];
|
|
12
|
-
}
|
|
13
|
-
interface IAddMapCoordinate {
|
|
14
|
-
coordinate: ICoordinate;
|
|
15
|
-
onCoordinateClicked?: () => void;
|
|
16
|
-
tooltip: ITooltip;
|
|
17
|
-
}
|
|
18
|
-
interface IAddGeometries {
|
|
19
|
-
id: string;
|
|
20
|
-
geometries: {
|
|
21
|
-
wkt?: string;
|
|
22
|
-
geojson?: GeoJsonObject;
|
|
23
|
-
tooltip?: ITooltip;
|
|
24
|
-
onGeometryClicked?: () => void;
|
|
25
|
-
}[];
|
|
26
|
-
}
|
|
27
|
-
export declare type EnrichmentComponentArgs = {
|
|
28
|
-
betterviewData?: {
|
|
29
|
-
property_id?: number;
|
|
30
|
-
policy_number?: string;
|
|
31
|
-
insured_name?: string;
|
|
32
|
-
address?: string;
|
|
33
|
-
city?: string;
|
|
34
|
-
state?: string;
|
|
35
|
-
zip?: string;
|
|
36
|
-
webhookUrl: string;
|
|
37
|
-
};
|
|
38
|
-
partnerHubData?: Record<string, any>;
|
|
39
|
-
previewMode?: boolean;
|
|
40
|
-
addMapCoordinate?: ({ coordinate, onCoordinateClicked, tooltip }: IAddMapCoordinate) => void;
|
|
41
|
-
addGeometries?: (data: IAddGeometries) => void;
|
|
42
|
-
hideGeometries?: (id: string) => void;
|
|
43
|
-
panTo?: (coordinate: ICoordinate) => void;
|
|
44
|
-
command: <T = any, U = any>(label: string, data?: T, options?: Record<string, string>) => Promise<U>;
|
|
45
|
-
getData: (key: string) => Promise<string | null>;
|
|
46
|
-
onClose?: (args: any) => void;
|
|
47
|
-
options?: Record<string, string>;
|
|
48
|
-
};
|
|
49
|
-
export {};
|
|
50
|
-
//# sourceMappingURL=EnrichmentComponentArgs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnrichmentComponentArgs.d.ts","sourceRoot":"","sources":["../../src/types/EnrichmentComponentArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AACD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AACD,UAAU,iBAAiB;IACzB,UAAU,EAAE,WAA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CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IACrG,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EnrichmentComponentArgs.js","sourceRoot":"","sources":["../../src/types/EnrichmentComponentArgs.ts"],"names":[],"mappings":""}
|
package/lib/types/Events.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Events.d.ts","sourceRoot":"","sources":["../../src/types/Events.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,SAAS,YAAY;IACrB,gBAAgB,mBAAmB;CACpC"}
|
package/lib/types/Events.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IntegrationEventName = void 0;
|
|
4
|
-
var IntegrationEventName;
|
|
5
|
-
(function (IntegrationEventName) {
|
|
6
|
-
IntegrationEventName["cadence"] = "cadence";
|
|
7
|
-
IntegrationEventName["webhook_called"] = "webhook_called";
|
|
8
|
-
})(IntegrationEventName = exports.IntegrationEventName || (exports.IntegrationEventName = {}));
|
|
9
|
-
//# sourceMappingURL=Events.js.map
|
package/lib/types/Events.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../src/types/Events.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAqB,CAAA;IACrB,yDAAmC,CAAA;AACrC,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
|
@@ -1,31 +0,0 @@
|
|
|
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' | 'imageUrlList' | 'imageObjectArray';
|
|
9
|
-
fields?: IDataSchemaField[];
|
|
10
|
-
imageObjectKey?: string;
|
|
11
|
-
docRef?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IPartnerDataSchema {
|
|
14
|
-
name: string;
|
|
15
|
-
partner: string;
|
|
16
|
-
offering: string;
|
|
17
|
-
docRef?: string;
|
|
18
|
-
fields: IDataSchemaField[];
|
|
19
|
-
}
|
|
20
|
-
export interface IPartnerDataSchemas {
|
|
21
|
-
[name: string]: IPartnerDataSchema;
|
|
22
|
-
}
|
|
23
|
-
export declare enum Formatters {
|
|
24
|
-
numberWithCommas = "numberWithCommas",
|
|
25
|
-
currencyWithCommas = "currencyWithCommas",
|
|
26
|
-
scoreLetterToLowMedHigh = "scoreLetterToLowMedHigh",
|
|
27
|
-
roundTwoDecimalPlaces = "roundTwoDecimalPlaces",
|
|
28
|
-
decimalToPercentage = "decimalToPercentage",
|
|
29
|
-
roundAndFormatWithCommas = "roundAndFormatWithCommasFn"
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=IPartnerDataSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,GACtB,cAAc,GACd,kBAAkB,CAAC;IACvB,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPartnerDataSchema.js","sourceRoot":"","sources":["../../src/types/IPartnerDataSchema.ts"],"names":[],"mappings":";;;AAuCA,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"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IntegrationEventName, Storage } from '.';
|
|
2
|
-
export declare type Command<T, U> = (data?: T, options?: Record<string, string>) => Promise<U>;
|
|
3
|
-
/**
|
|
4
|
-
* Base class for integrations. All integrations should default export a class that extends this class.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Integration {
|
|
7
|
-
protected credentials?: Record<string, string> | undefined;
|
|
8
|
-
protected options?: Record<string, string> | undefined;
|
|
9
|
-
protected storage?: Storage | undefined;
|
|
10
|
-
private events;
|
|
11
|
-
private commands;
|
|
12
|
-
constructor(credentials?: Record<string, string> | undefined, options?: Record<string, string> | undefined, storage?: Storage | undefined);
|
|
13
|
-
/**
|
|
14
|
-
* Initializer for the class. This will be called once per instance of the integration. Multiple instances
|
|
15
|
-
* of an integration may be loaded throughout the system. Integrations should override this method if they
|
|
16
|
-
* need to register event handlers.
|
|
17
|
-
*/
|
|
18
|
-
init(): Promise<void>;
|
|
19
|
-
command<T = any, U = any>(label: string, data?: T, options?: Record<string, string>): Promise<U>;
|
|
20
|
-
protected registerCommand<T = any, U = any>(label: string, command: Command<T, U>): void;
|
|
21
|
-
protected on(eventName: IntegrationEventName.webhook_called, handler: (data: any, propertyId?: number) => void): this;
|
|
22
|
-
protected on(eventName: IntegrationEventName.cadence, handler: (label: string) => void): this;
|
|
23
|
-
emit(eventName: IntegrationEventName.webhook_called, data: any, propertyId?: number): boolean;
|
|
24
|
-
emit(eventName: IntegrationEventName.cadence, label: string): boolean;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=Integration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Integration.d.ts","sourceRoot":"","sources":["../../src/types/Integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAElD,oBAAY,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAEvF;;GAEG;AACH,qBAAa,WAAW;IAKpB,SAAS,CAAC,WAAW,CAAC;IACtB,SAAS,CAAC,OAAO,CAAC;IAClB,SAAS,CAAC,OAAO,CAAC;IANpB,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,QAAQ,CAAyC;gBAG7C,WAAW,CAAC,oCAAwB,EACpC,OAAO,CAAC,oCAAwB,EAChC,OAAO,CAAC,qBAAS;IAI7B;;;;OAIG;IACU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrB,OAAO,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAK7G,SAAS,CAAC,eAAe,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAIjF,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,oBAAoB,CAAC,cAAc,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IACrH,SAAS,CAAC,EAAE,CAAC,SAAS,EAAE,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAMtF,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,cAAc,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO;IAC7F,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;CAI7E"}
|
package/lib/types/Integration.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Integration = void 0;
|
|
4
|
-
const events_1 = require("events");
|
|
5
|
-
/**
|
|
6
|
-
* Base class for integrations. All integrations should default export a class that extends this class.
|
|
7
|
-
*/
|
|
8
|
-
class Integration {
|
|
9
|
-
constructor(credentials, options, storage) {
|
|
10
|
-
this.credentials = credentials;
|
|
11
|
-
this.options = options;
|
|
12
|
-
this.storage = storage;
|
|
13
|
-
this.commands = {};
|
|
14
|
-
this.events = new events_1.EventEmitter();
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Initializer for the class. This will be called once per instance of the integration. Multiple instances
|
|
18
|
-
* of an integration may be loaded throughout the system. Integrations should override this method if they
|
|
19
|
-
* need to register event handlers.
|
|
20
|
-
*/
|
|
21
|
-
async init() {
|
|
22
|
-
// noop
|
|
23
|
-
}
|
|
24
|
-
async command(label, data, options) {
|
|
25
|
-
if (this.commands[label])
|
|
26
|
-
return this.commands[label](data, options);
|
|
27
|
-
throw new Error('Not implemented');
|
|
28
|
-
}
|
|
29
|
-
registerCommand(label, command) {
|
|
30
|
-
this.commands[label] = command;
|
|
31
|
-
}
|
|
32
|
-
on(eventName, handler) {
|
|
33
|
-
this.events.on(eventName, handler);
|
|
34
|
-
return this;
|
|
35
|
-
}
|
|
36
|
-
emit(eventName, ...args) {
|
|
37
|
-
return this.events.emit(eventName, ...args);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.Integration = Integration;
|
|
41
|
-
//# sourceMappingURL=Integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Integration.js","sourceRoot":"","sources":["../../src/types/Integration.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAKtC;;GAEG;AACH,MAAa,WAAW;IAItB,YACY,WAAoC,EACpC,OAAgC,EAChC,OAAiB;QAFjB,gBAAW,GAAX,WAAW,CAAyB;QACpC,YAAO,GAAP,OAAO,CAAyB;QAChC,YAAO,GAAP,OAAO,CAAU;QALrB,aAAQ,GAAsC,EAAE,CAAC;QAOvD,IAAI,CAAC,MAAM,GAAG,IAAI,qBAAY,EAAE,CAAC;IACnC,CAAC;IACD;;;;OAIG;IACI,KAAK,CAAC,IAAI;QACf,OAAO;IACT,CAAC;IAEM,KAAK,CAAC,OAAO,CAAmB,KAAa,EAAE,IAAQ,EAAE,OAAgC;QAC9F,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAES,eAAe,CAAmB,KAAa,EAAE,OAAsB;QAC/E,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAIS,EAAE,CAAC,SAA+B,EAAE,OAAiC;QAC7E,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAIM,IAAI,CAAC,SAA+B,EAAE,GAAG,IAAW;QACzD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;IAC9C,CAAC;CACF;AAzCD,kCAyCC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export declare type IntegrationManifest = {
|
|
2
|
-
version: number;
|
|
3
|
-
partner: string;
|
|
4
|
-
offering: string;
|
|
5
|
-
description: string;
|
|
6
|
-
abstract?: string;
|
|
7
|
-
contact_name?: string;
|
|
8
|
-
contact_email?: string;
|
|
9
|
-
website_url?: string;
|
|
10
|
-
capabilities: {
|
|
11
|
-
cadence?: Cadence | Cadence[];
|
|
12
|
-
webhook?: boolean;
|
|
13
|
-
enrichment?: {
|
|
14
|
-
requires?: string[];
|
|
15
|
-
provides?: string[];
|
|
16
|
-
/**
|
|
17
|
-
* Use `components` instead
|
|
18
|
-
*
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
has_card?: boolean;
|
|
22
|
-
has_photos?: string[];
|
|
23
|
-
};
|
|
24
|
-
hasCommands?: boolean;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Optional list of custom components
|
|
28
|
-
*/
|
|
29
|
-
components?: {
|
|
30
|
-
bundle: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}[];
|
|
33
|
-
credentials_schema?: Record<string, {
|
|
34
|
-
display: string;
|
|
35
|
-
sensitive?: boolean;
|
|
36
|
-
}>;
|
|
37
|
-
options_schema?: Record<string, {
|
|
38
|
-
display: string;
|
|
39
|
-
required?: boolean;
|
|
40
|
-
}>;
|
|
41
|
-
};
|
|
42
|
-
declare type Cadence = {
|
|
43
|
-
schedule: 'daily' | 'weekly' | 'monthly';
|
|
44
|
-
label: string;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
47
|
-
//# sourceMappingURL=IntegrationManifest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationManifest.d.ts","sourceRoot":"","sources":["../../src/types/IntegrationManifest.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE;QACZ,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;QAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB,UAAU,CAAC,EAAE;YAKX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;YAEpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;YACpB;;;;eAIG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;SACvB,CAAC;QACF,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,CAAC;IACF;;OAEG;IACH,UAAU,CAAC,EAAE;QACX,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IACJ,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC1E,CAAC;AAEF,aAAK,OAAO,GAAG;IACb,QAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEzC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IntegrationManifest.js","sourceRoot":"","sources":["../../src/types/IntegrationManifest.ts"],"names":[],"mappings":""}
|
package/lib/types/Storage.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { Readable } from 'stream';
|
|
4
|
-
/**
|
|
5
|
-
* Provides data and file storage for integrations
|
|
6
|
-
*/
|
|
7
|
-
export interface Storage {
|
|
8
|
-
getFile(key: string): Promise<Readable | null>;
|
|
9
|
-
putFile(key: string, buffer: Buffer): Promise<void>;
|
|
10
|
-
getData(key: string): Promise<string | null>;
|
|
11
|
-
saveData(key: string, value: string | null): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Storage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.d.ts","sourceRoot":"","sources":["../../src/types/Storage.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAC/C,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D"}
|
package/lib/types/Storage.js
DELETED
package/lib/types/Storage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../src/types/Storage.ts"],"names":[],"mappings":""}
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './Enrichment';
|
|
2
|
-
export * from './EnrichmentComponentArgs';
|
|
3
|
-
export * from './Events';
|
|
4
|
-
export * from './Integration';
|
|
5
|
-
export * from './IntegrationManifest';
|
|
6
|
-
export * from './IPartnerDataSchema';
|
|
7
|
-
export * from './Storage';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC"}
|
package/lib/types/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Enrichment"), exports);
|
|
18
|
-
__exportStar(require("./EnrichmentComponentArgs"), exports);
|
|
19
|
-
__exportStar(require("./Events"), exports);
|
|
20
|
-
__exportStar(require("./Integration"), exports);
|
|
21
|
-
__exportStar(require("./IntegrationManifest"), exports);
|
|
22
|
-
__exportStar(require("./IPartnerDataSchema"), exports);
|
|
23
|
-
__exportStar(require("./Storage"), exports);
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/lib/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,4DAA0C;AAC1C,2CAAyB;AACzB,gDAA8B;AAC9B,wDAAsC;AACtC,uDAAqC;AACrC,4CAA0B"}
|
package/lib/utils/index.d.ts
DELETED
package/lib/utils/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/lib/utils/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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 (0, json_colorizer_1.default)(JSON.stringify(obj, null, 2));
|
|
10
|
-
}
|
|
11
|
-
exports.jsonLog = jsonLog;
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
package/lib/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsC;AAEtC,SAAgB,OAAO,CAAC,GAAoC;IAC1D,OAAO,IAAA,wBAAQ,EAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC;AAFD,0BAEC"}
|