@awell-health/awell-extensions 2.0.286 → 2.0.287
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/extensions/freshdesk/settings.js +1 -1
- package/dist/extensions/freshdesk/settings.js.map +1 -1
- package/dist/extensions/freshsales/actions/getLead/config/dataPoints.d.ts +54 -0
- package/dist/extensions/freshsales/actions/getLead/config/dataPoints.js +58 -0
- package/dist/extensions/freshsales/actions/getLead/config/dataPoints.js.map +1 -0
- package/dist/extensions/freshsales/actions/getLead/config/fields.d.ts +18 -0
- package/dist/extensions/freshsales/actions/getLead/config/fields.js +18 -0
- package/dist/extensions/freshsales/actions/getLead/config/fields.js.map +1 -0
- package/dist/extensions/freshsales/actions/getLead/config/index.d.ts +2 -0
- package/dist/extensions/freshsales/actions/getLead/config/index.js +9 -0
- package/dist/extensions/freshsales/actions/getLead/config/index.js.map +1 -0
- package/dist/extensions/freshsales/actions/getLead/getLead.d.ts +4 -0
- package/dist/extensions/freshsales/actions/getLead/getLead.js +49 -0
- package/dist/extensions/freshsales/actions/getLead/getLead.js.map +1 -0
- package/dist/extensions/freshsales/actions/getLead/index.d.ts +1 -0
- package/dist/extensions/freshsales/actions/getLead/index.js +18 -0
- package/dist/extensions/freshsales/actions/getLead/index.js.map +1 -0
- package/dist/extensions/freshsales/actions/index.d.ts +26 -0
- package/dist/extensions/freshsales/actions/index.js +8 -0
- package/dist/extensions/freshsales/actions/index.js.map +1 -0
- package/dist/extensions/freshsales/index.d.ts +2 -0
- package/dist/extensions/freshsales/index.js +19 -0
- package/dist/extensions/freshsales/index.js.map +1 -0
- package/dist/extensions/freshsales/lib/api/client.d.ts +10 -0
- package/dist/extensions/freshsales/lib/api/client.js +24 -0
- package/dist/extensions/freshsales/lib/api/client.js.map +1 -0
- package/dist/extensions/freshsales/lib/api/schema/GetLead.schema.d.ts +252 -0
- package/dist/extensions/freshsales/lib/api/schema/GetLead.schema.js +54 -0
- package/dist/extensions/freshsales/lib/api/schema/GetLead.schema.js.map +1 -0
- package/dist/extensions/freshsales/lib/api/schema/index.d.ts +1 -0
- package/dist/extensions/freshsales/lib/api/schema/index.js +18 -0
- package/dist/extensions/freshsales/lib/api/schema/index.js.map +1 -0
- package/dist/extensions/freshsales/lib/validatePayloadAndCreateSdk.d.ts +18 -0
- package/dist/extensions/freshsales/lib/validatePayloadAndCreateSdk.js +35 -0
- package/dist/extensions/freshsales/lib/validatePayloadAndCreateSdk.js.map +1 -0
- package/dist/extensions/freshsales/settings.d.ts +27 -0
- package/dist/extensions/freshsales/settings.js +25 -0
- package/dist/extensions/freshsales/settings.js.map +1 -0
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/markdown.json +5 -1
- package/package.json +1 -1
@@ -6,7 +6,7 @@ exports.settings = {
|
|
6
6
|
domain: {
|
7
7
|
key: 'domain',
|
8
8
|
label: 'Freshdesk helpdesk domain',
|
9
|
-
description: 'Will be used to construct the API URL. E.g. https://<domain>.freshdesk.com/
|
9
|
+
description: 'Will be used to construct the API URL. E.g. https://<domain>.freshdesk.com/',
|
10
10
|
required: true,
|
11
11
|
obfuscated: false,
|
12
12
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/freshdesk/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,2BAA2B;QAClC,WAAW,EACT,
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/freshdesk/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,2BAA2B;QAClC,WAAW,EACT,6EAA6E;QAC/E,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK;KAClB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;KACjB;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC0B,CAAC,CAAA"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
export declare const dataPoints: {
|
2
|
+
leadData: {
|
3
|
+
key: string;
|
4
|
+
valueType: "json";
|
5
|
+
};
|
6
|
+
email: {
|
7
|
+
key: string;
|
8
|
+
valueType: "string";
|
9
|
+
};
|
10
|
+
workNumber: {
|
11
|
+
key: string;
|
12
|
+
valueType: "string";
|
13
|
+
};
|
14
|
+
mobileNumber: {
|
15
|
+
key: string;
|
16
|
+
valueType: "string";
|
17
|
+
};
|
18
|
+
address: {
|
19
|
+
key: string;
|
20
|
+
valueType: "string";
|
21
|
+
};
|
22
|
+
city: {
|
23
|
+
key: string;
|
24
|
+
valueType: "string";
|
25
|
+
};
|
26
|
+
state: {
|
27
|
+
key: string;
|
28
|
+
valueType: "string";
|
29
|
+
};
|
30
|
+
zipcode: {
|
31
|
+
key: string;
|
32
|
+
valueType: "string";
|
33
|
+
};
|
34
|
+
country: {
|
35
|
+
key: string;
|
36
|
+
valueType: "string";
|
37
|
+
};
|
38
|
+
timeZone: {
|
39
|
+
key: string;
|
40
|
+
valueType: "string";
|
41
|
+
};
|
42
|
+
displayName: {
|
43
|
+
key: string;
|
44
|
+
valueType: "string";
|
45
|
+
};
|
46
|
+
firstName: {
|
47
|
+
key: string;
|
48
|
+
valueType: "string";
|
49
|
+
};
|
50
|
+
lastName: {
|
51
|
+
key: string;
|
52
|
+
valueType: "string";
|
53
|
+
};
|
54
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dataPoints = void 0;
|
4
|
+
exports.dataPoints = {
|
5
|
+
leadData: {
|
6
|
+
key: 'leadData',
|
7
|
+
valueType: 'json',
|
8
|
+
},
|
9
|
+
email: {
|
10
|
+
key: 'email',
|
11
|
+
valueType: 'string',
|
12
|
+
},
|
13
|
+
workNumber: {
|
14
|
+
key: 'workNumber',
|
15
|
+
valueType: 'string',
|
16
|
+
},
|
17
|
+
mobileNumber: {
|
18
|
+
key: 'mobileNumber',
|
19
|
+
valueType: 'string',
|
20
|
+
},
|
21
|
+
address: {
|
22
|
+
key: 'address',
|
23
|
+
valueType: 'string',
|
24
|
+
},
|
25
|
+
city: {
|
26
|
+
key: 'city',
|
27
|
+
valueType: 'string',
|
28
|
+
},
|
29
|
+
state: {
|
30
|
+
key: 'state',
|
31
|
+
valueType: 'string',
|
32
|
+
},
|
33
|
+
zipcode: {
|
34
|
+
key: 'zipcode',
|
35
|
+
valueType: 'string',
|
36
|
+
},
|
37
|
+
country: {
|
38
|
+
key: 'country',
|
39
|
+
valueType: 'string',
|
40
|
+
},
|
41
|
+
timeZone: {
|
42
|
+
key: 'timeZone',
|
43
|
+
valueType: 'string',
|
44
|
+
},
|
45
|
+
displayName: {
|
46
|
+
key: 'displayName',
|
47
|
+
valueType: 'string',
|
48
|
+
},
|
49
|
+
firstName: {
|
50
|
+
key: 'firstName',
|
51
|
+
valueType: 'string',
|
52
|
+
},
|
53
|
+
lastName: {
|
54
|
+
key: 'lastName',
|
55
|
+
valueType: 'string',
|
56
|
+
},
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=dataPoints.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/freshsales/actions/getLead/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,MAAM;KAClB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,cAAc;QACnB,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,QAAQ;KACpB;IACD,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,QAAQ;KACpB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,WAAW;QAChB,SAAS,EAAE,QAAQ;KACpB;IACD,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { FieldType } from '@awell-health/extensions-core';
|
3
|
+
export declare const fields: {
|
4
|
+
leadId: {
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
description: string;
|
8
|
+
type: FieldType.STRING;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
13
|
+
leadId: z.ZodString;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
leadId: string;
|
16
|
+
}, {
|
17
|
+
leadId: string;
|
18
|
+
}>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FieldsValidationSchema = exports.fields = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
6
|
+
exports.fields = {
|
7
|
+
leadId: {
|
8
|
+
id: 'leadId',
|
9
|
+
label: 'Lead ID',
|
10
|
+
description: 'The ID of the lead to get',
|
11
|
+
type: extensions_core_1.FieldType.STRING,
|
12
|
+
required: true,
|
13
|
+
},
|
14
|
+
};
|
15
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
16
|
+
leadId: zod_1.z.string().min(1),
|
17
|
+
});
|
18
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/freshsales/actions/getLead/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACwB,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
|
4
|
+
var fields_1 = require("./fields");
|
5
|
+
Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
|
6
|
+
Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
|
7
|
+
var dataPoints_1 = require("./dataPoints");
|
8
|
+
Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/freshsales/actions/getLead/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getLead = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const validatePayloadAndCreateSdk_1 = require("../../lib/validatePayloadAndCreateSdk");
|
6
|
+
const config_1 = require("./config");
|
7
|
+
const lodash_1 = require("lodash");
|
8
|
+
exports.getLead = {
|
9
|
+
key: 'getLead',
|
10
|
+
category: extensions_core_1.Category.CUSTOMER_SUPPORT,
|
11
|
+
title: 'Get lead',
|
12
|
+
description: 'Get a lead from Freshsales.',
|
13
|
+
fields: config_1.fields,
|
14
|
+
previewable: false,
|
15
|
+
dataPoints: config_1.dataPoints,
|
16
|
+
onEvent: async ({ payload, onComplete }) => {
|
17
|
+
const { fields, freshsalesSdk } = await (0, validatePayloadAndCreateSdk_1.validatePayloadAndCreateSdk)({
|
18
|
+
fieldsSchema: config_1.FieldsValidationSchema,
|
19
|
+
payload,
|
20
|
+
});
|
21
|
+
const { data } = await freshsalesSdk.getLead(fields.leadId);
|
22
|
+
await onComplete({
|
23
|
+
data_points: {
|
24
|
+
leadData: JSON.stringify(data),
|
25
|
+
email: (0, lodash_1.isNil)(data.lead.email) ? undefined : data.lead.email,
|
26
|
+
workNumber: (0, lodash_1.isNil)(data.lead.work_number)
|
27
|
+
? undefined
|
28
|
+
: data.lead.work_number,
|
29
|
+
mobileNumber: (0, lodash_1.isNil)(data.lead.mobile_number)
|
30
|
+
? undefined
|
31
|
+
: data.lead.mobile_number,
|
32
|
+
address: (0, lodash_1.isNil)(data.lead.address) ? undefined : data.lead.address,
|
33
|
+
city: (0, lodash_1.isNil)(data.lead.city) ? undefined : data.lead.city,
|
34
|
+
state: (0, lodash_1.isNil)(data.lead.state) ? undefined : data.lead.state,
|
35
|
+
zipcode: (0, lodash_1.isNil)(data.lead.zipcode) ? undefined : data.lead.zipcode,
|
36
|
+
country: (0, lodash_1.isNil)(data.lead.country) ? undefined : data.lead.country,
|
37
|
+
timeZone: (0, lodash_1.isNil)(data.lead.time_zone) ? undefined : data.lead.time_zone,
|
38
|
+
displayName: (0, lodash_1.isNil)(data.lead.display_name)
|
39
|
+
? undefined
|
40
|
+
: data.lead.display_name,
|
41
|
+
firstName: (0, lodash_1.isNil)(data.lead.first_name)
|
42
|
+
? undefined
|
43
|
+
: data.lead.first_name,
|
44
|
+
lastName: (0, lodash_1.isNil)(data.lead.last_name) ? undefined : data.lead.last_name,
|
45
|
+
},
|
46
|
+
});
|
47
|
+
},
|
48
|
+
};
|
49
|
+
//# sourceMappingURL=getLead.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getLead.js","sourceRoot":"","sources":["../../../../../extensions/freshsales/actions/getLead/getLead.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AACxD,uFAAmF;AAEnF,qCAAqE;AACrE,mCAA8B;AAEjB,QAAA,OAAO,GAIhB;IACF,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,UAAU;IACjB,WAAW,EAAE,6BAA6B;IAC1C,MAAM,EA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CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK;gBAC3D,OAAO,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;gBACjE,OAAO,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO;gBACjE,QAAQ,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS;gBACtE,WAAW,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;oBACxC,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY;gBAC1B,SAAS,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;oBACpC,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU;gBACxB,QAAQ,EAAE,IAAA,cAAK,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS;aACvE;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './getLead';
|
@@ -0,0 +1,18 @@
|
|
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("./getLead"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/freshsales/actions/getLead/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export declare const actions: {
|
2
|
+
getLead: import("@awell-health/extensions-core").Action<{
|
3
|
+
leadId: {
|
4
|
+
id: string;
|
5
|
+
label: string;
|
6
|
+
description: string;
|
7
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
8
|
+
required: true;
|
9
|
+
};
|
10
|
+
}, {
|
11
|
+
domain: {
|
12
|
+
key: string;
|
13
|
+
label: string;
|
14
|
+
description: string;
|
15
|
+
required: true;
|
16
|
+
obfuscated: false;
|
17
|
+
};
|
18
|
+
apiKey: {
|
19
|
+
key: string;
|
20
|
+
label: string;
|
21
|
+
description: string;
|
22
|
+
required: true;
|
23
|
+
obfuscated: true;
|
24
|
+
};
|
25
|
+
}, "firstName" | "lastName" | "email" | "city" | "country" | "state" | "timeZone" | "address" | "displayName" | "zipcode" | "leadData" | "workNumber" | "mobileNumber">;
|
26
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/freshsales/actions/index.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAE9B,QAAA,OAAO,GAAG;IACrB,OAAO,EAAP,iBAAO;CACR,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.freshsales = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const actions_1 = require("./actions");
|
6
|
+
const settings_1 = require("./settings");
|
7
|
+
exports.freshsales = {
|
8
|
+
key: 'freshsales',
|
9
|
+
title: 'Freshsales',
|
10
|
+
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1751917615/Awell%20Extensions/freshsales.png',
|
11
|
+
description: 'Freshsales is a cloud-based, AI-powered customer relationship management (CRM) software designed to help sales teams organize, manage, and close deals more efficiently.',
|
12
|
+
category: extensions_core_1.Category.CUSTOMER_SUPPORT,
|
13
|
+
author: {
|
14
|
+
authorType: extensions_core_1.AuthorType.AWELL,
|
15
|
+
},
|
16
|
+
actions: actions_1.actions,
|
17
|
+
settings: settings_1.settings,
|
18
|
+
};
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/freshsales/index.ts"],"names":[],"mappings":";;;AACA,mEAAoE;AACpE,uCAAmC;AACnC,yCAAqC;AAExB,QAAA,UAAU,GAAc;IACnC,GAAG,EAAE,YAAY;IACjB,KAAK,EAAE,YAAY;IACnB,QAAQ,EACN,iGAAiG;IACnG,WAAW,EACT,0KAA0K;IAC5K,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { type AxiosResponse } from 'axios';
|
2
|
+
import { type GetLeadResponseType } from './schema';
|
3
|
+
export declare class FreshsalesApiClient {
|
4
|
+
private readonly client;
|
5
|
+
constructor({ baseUrl, apiKey }: {
|
6
|
+
baseUrl: string;
|
7
|
+
apiKey: string;
|
8
|
+
});
|
9
|
+
getLead(leadId: string): Promise<AxiosResponse<GetLeadResponseType>>;
|
10
|
+
}
|
@@ -0,0 +1,24 @@
|
|
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.FreshsalesApiClient = void 0;
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
8
|
+
class FreshsalesApiClient {
|
9
|
+
constructor({ baseUrl, apiKey }) {
|
10
|
+
this.client = axios_1.default.create({
|
11
|
+
baseURL: baseUrl,
|
12
|
+
headers: {
|
13
|
+
Authorization: apiKey,
|
14
|
+
'Content-Type': 'application/json',
|
15
|
+
},
|
16
|
+
});
|
17
|
+
}
|
18
|
+
async getLead(leadId) {
|
19
|
+
const response = await this.client.get(`/leads/${leadId}`);
|
20
|
+
return response;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
exports.FreshsalesApiClient = FreshsalesApiClient;
|
24
|
+
//# sourceMappingURL=client.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../extensions/freshsales/lib/api/client.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAqE;AAGrE,MAAa,mBAAmB;IAG9B,YAAY,EAAE,OAAO,EAAE,MAAM,EAAuC;QAClE,IAAI,CAAC,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC;YACzB,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE;gBACP,aAAa,EAAE,MAAM;gBACrB,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,MAAc;QAC1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CACpC,UAAU,MAAM,EAAE,CACnB,CAAA;QAED,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF;AApBD,kDAoBC"}
|
@@ -0,0 +1,252 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const GetLeadResponseSchema: z.ZodObject<{
|
3
|
+
lead: z.ZodObject<{
|
4
|
+
id: z.ZodNumber;
|
5
|
+
job_title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
6
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
7
|
+
work_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
8
|
+
mobile_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
9
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
10
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
11
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
12
|
+
zipcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
13
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
14
|
+
time_zone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
15
|
+
display_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
16
|
+
avatar: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
17
|
+
keyword: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
18
|
+
medium: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
19
|
+
last_seen: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
20
|
+
last_contacted: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
21
|
+
lead_score: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
22
|
+
stage_updated_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
23
|
+
first_name: z.ZodString;
|
24
|
+
last_name: z.ZodString;
|
25
|
+
company: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
26
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
27
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
28
|
+
address: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
29
|
+
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
30
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
31
|
+
zipcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
32
|
+
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
33
|
+
number_of_employees: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
34
|
+
annual_revenue: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
35
|
+
website: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
36
|
+
phone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
37
|
+
industry_type_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
38
|
+
business_type_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
id?: number | null | undefined;
|
41
|
+
phone?: string | null | undefined;
|
42
|
+
city?: string | null | undefined;
|
43
|
+
country?: string | null | undefined;
|
44
|
+
state?: string | null | undefined;
|
45
|
+
address?: string | null | undefined;
|
46
|
+
name?: string | null | undefined;
|
47
|
+
zipcode?: string | null | undefined;
|
48
|
+
number_of_employees?: number | null | undefined;
|
49
|
+
annual_revenue?: number | null | undefined;
|
50
|
+
website?: string | null | undefined;
|
51
|
+
industry_type_id?: number | null | undefined;
|
52
|
+
business_type_id?: number | null | undefined;
|
53
|
+
}, {
|
54
|
+
id?: number | null | undefined;
|
55
|
+
phone?: string | null | undefined;
|
56
|
+
city?: string | null | undefined;
|
57
|
+
country?: string | null | undefined;
|
58
|
+
state?: string | null | undefined;
|
59
|
+
address?: string | null | undefined;
|
60
|
+
name?: string | null | undefined;
|
61
|
+
zipcode?: string | null | undefined;
|
62
|
+
number_of_employees?: number | null | undefined;
|
63
|
+
annual_revenue?: number | null | undefined;
|
64
|
+
website?: string | null | undefined;
|
65
|
+
industry_type_id?: number | null | undefined;
|
66
|
+
business_type_id?: number | null | undefined;
|
67
|
+
}>>>;
|
68
|
+
deal: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
|
69
|
+
links: z.ZodNullable<z.ZodOptional<z.ZodUnknown>>;
|
70
|
+
updated_at: z.ZodString;
|
71
|
+
facebook: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
72
|
+
twitter: z.ZodNullable<z.ZodString>;
|
73
|
+
linkedin: z.ZodNullable<z.ZodString>;
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
75
|
+
id: number;
|
76
|
+
first_name: string;
|
77
|
+
last_name: string;
|
78
|
+
updated_at: string;
|
79
|
+
twitter: string | null;
|
80
|
+
linkedin: string | null;
|
81
|
+
email?: string | null | undefined;
|
82
|
+
city?: string | null | undefined;
|
83
|
+
country?: string | null | undefined;
|
84
|
+
state?: string | null | undefined;
|
85
|
+
address?: string | null | undefined;
|
86
|
+
job_title?: string | null | undefined;
|
87
|
+
work_number?: string | null | undefined;
|
88
|
+
mobile_number?: string | null | undefined;
|
89
|
+
zipcode?: string | null | undefined;
|
90
|
+
time_zone?: string | null | undefined;
|
91
|
+
display_name?: string | null | undefined;
|
92
|
+
avatar?: string | null | undefined;
|
93
|
+
keyword?: string | null | undefined;
|
94
|
+
medium?: string | null | undefined;
|
95
|
+
last_seen?: string | null | undefined;
|
96
|
+
last_contacted?: string | null | undefined;
|
97
|
+
lead_score?: number | null | undefined;
|
98
|
+
stage_updated_time?: string | null | undefined;
|
99
|
+
company?: {
|
100
|
+
id?: number | null | undefined;
|
101
|
+
phone?: string | null | undefined;
|
102
|
+
city?: string | null | undefined;
|
103
|
+
country?: string | null | undefined;
|
104
|
+
state?: string | null | undefined;
|
105
|
+
address?: string | null | undefined;
|
106
|
+
name?: string | null | undefined;
|
107
|
+
zipcode?: string | null | undefined;
|
108
|
+
number_of_employees?: number | null | undefined;
|
109
|
+
annual_revenue?: number | null | undefined;
|
110
|
+
website?: string | null | undefined;
|
111
|
+
industry_type_id?: number | null | undefined;
|
112
|
+
business_type_id?: number | null | undefined;
|
113
|
+
} | null | undefined;
|
114
|
+
deal?: unknown;
|
115
|
+
links?: unknown;
|
116
|
+
facebook?: string | null | undefined;
|
117
|
+
}, {
|
118
|
+
id: number;
|
119
|
+
first_name: string;
|
120
|
+
last_name: string;
|
121
|
+
updated_at: string;
|
122
|
+
twitter: string | null;
|
123
|
+
linkedin: string | null;
|
124
|
+
email?: string | null | undefined;
|
125
|
+
city?: string | null | undefined;
|
126
|
+
country?: string | null | undefined;
|
127
|
+
state?: string | null | undefined;
|
128
|
+
address?: string | null | undefined;
|
129
|
+
job_title?: string | null | undefined;
|
130
|
+
work_number?: string | null | undefined;
|
131
|
+
mobile_number?: string | null | undefined;
|
132
|
+
zipcode?: string | null | undefined;
|
133
|
+
time_zone?: string | null | undefined;
|
134
|
+
display_name?: string | null | undefined;
|
135
|
+
avatar?: string | null | undefined;
|
136
|
+
keyword?: string | null | undefined;
|
137
|
+
medium?: string | null | undefined;
|
138
|
+
last_seen?: string | null | undefined;
|
139
|
+
last_contacted?: string | null | undefined;
|
140
|
+
lead_score?: number | null | undefined;
|
141
|
+
stage_updated_time?: string | null | undefined;
|
142
|
+
company?: {
|
143
|
+
id?: number | null | undefined;
|
144
|
+
phone?: string | null | undefined;
|
145
|
+
city?: string | null | undefined;
|
146
|
+
country?: string | null | undefined;
|
147
|
+
state?: string | null | undefined;
|
148
|
+
address?: string | null | undefined;
|
149
|
+
name?: string | null | undefined;
|
150
|
+
zipcode?: string | null | undefined;
|
151
|
+
number_of_employees?: number | null | undefined;
|
152
|
+
annual_revenue?: number | null | undefined;
|
153
|
+
website?: string | null | undefined;
|
154
|
+
industry_type_id?: number | null | undefined;
|
155
|
+
business_type_id?: number | null | undefined;
|
156
|
+
} | null | undefined;
|
157
|
+
deal?: unknown;
|
158
|
+
links?: unknown;
|
159
|
+
facebook?: string | null | undefined;
|
160
|
+
}>;
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
162
|
+
lead: {
|
163
|
+
id: number;
|
164
|
+
first_name: string;
|
165
|
+
last_name: string;
|
166
|
+
updated_at: string;
|
167
|
+
twitter: string | null;
|
168
|
+
linkedin: string | null;
|
169
|
+
email?: string | null | undefined;
|
170
|
+
city?: string | null | undefined;
|
171
|
+
country?: string | null | undefined;
|
172
|
+
state?: string | null | undefined;
|
173
|
+
address?: string | null | undefined;
|
174
|
+
job_title?: string | null | undefined;
|
175
|
+
work_number?: string | null | undefined;
|
176
|
+
mobile_number?: string | null | undefined;
|
177
|
+
zipcode?: string | null | undefined;
|
178
|
+
time_zone?: string | null | undefined;
|
179
|
+
display_name?: string | null | undefined;
|
180
|
+
avatar?: string | null | undefined;
|
181
|
+
keyword?: string | null | undefined;
|
182
|
+
medium?: string | null | undefined;
|
183
|
+
last_seen?: string | null | undefined;
|
184
|
+
last_contacted?: string | null | undefined;
|
185
|
+
lead_score?: number | null | undefined;
|
186
|
+
stage_updated_time?: string | null | undefined;
|
187
|
+
company?: {
|
188
|
+
id?: number | null | undefined;
|
189
|
+
phone?: string | null | undefined;
|
190
|
+
city?: string | null | undefined;
|
191
|
+
country?: string | null | undefined;
|
192
|
+
state?: string | null | undefined;
|
193
|
+
address?: string | null | undefined;
|
194
|
+
name?: string | null | undefined;
|
195
|
+
zipcode?: string | null | undefined;
|
196
|
+
number_of_employees?: number | null | undefined;
|
197
|
+
annual_revenue?: number | null | undefined;
|
198
|
+
website?: string | null | undefined;
|
199
|
+
industry_type_id?: number | null | undefined;
|
200
|
+
business_type_id?: number | null | undefined;
|
201
|
+
} | null | undefined;
|
202
|
+
deal?: unknown;
|
203
|
+
links?: unknown;
|
204
|
+
facebook?: string | null | undefined;
|
205
|
+
};
|
206
|
+
}, {
|
207
|
+
lead: {
|
208
|
+
id: number;
|
209
|
+
first_name: string;
|
210
|
+
last_name: string;
|
211
|
+
updated_at: string;
|
212
|
+
twitter: string | null;
|
213
|
+
linkedin: string | null;
|
214
|
+
email?: string | null | undefined;
|
215
|
+
city?: string | null | undefined;
|
216
|
+
country?: string | null | undefined;
|
217
|
+
state?: string | null | undefined;
|
218
|
+
address?: string | null | undefined;
|
219
|
+
job_title?: string | null | undefined;
|
220
|
+
work_number?: string | null | undefined;
|
221
|
+
mobile_number?: string | null | undefined;
|
222
|
+
zipcode?: string | null | undefined;
|
223
|
+
time_zone?: string | null | undefined;
|
224
|
+
display_name?: string | null | undefined;
|
225
|
+
avatar?: string | null | undefined;
|
226
|
+
keyword?: string | null | undefined;
|
227
|
+
medium?: string | null | undefined;
|
228
|
+
last_seen?: string | null | undefined;
|
229
|
+
last_contacted?: string | null | undefined;
|
230
|
+
lead_score?: number | null | undefined;
|
231
|
+
stage_updated_time?: string | null | undefined;
|
232
|
+
company?: {
|
233
|
+
id?: number | null | undefined;
|
234
|
+
phone?: string | null | undefined;
|
235
|
+
city?: string | null | undefined;
|
236
|
+
country?: string | null | undefined;
|
237
|
+
state?: string | null | undefined;
|
238
|
+
address?: string | null | undefined;
|
239
|
+
name?: string | null | undefined;
|
240
|
+
zipcode?: string | null | undefined;
|
241
|
+
number_of_employees?: number | null | undefined;
|
242
|
+
annual_revenue?: number | null | undefined;
|
243
|
+
website?: string | null | undefined;
|
244
|
+
industry_type_id?: number | null | undefined;
|
245
|
+
business_type_id?: number | null | undefined;
|
246
|
+
} | null | undefined;
|
247
|
+
deal?: unknown;
|
248
|
+
links?: unknown;
|
249
|
+
facebook?: string | null | undefined;
|
250
|
+
};
|
251
|
+
}>;
|
252
|
+
export type GetLeadResponseType = z.infer<typeof GetLeadResponseSchema>;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetLeadResponseSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.GetLeadResponseSchema = zod_1.z.object({
|
6
|
+
lead: zod_1.z.object({
|
7
|
+
id: zod_1.z.number(),
|
8
|
+
job_title: zod_1.z.string().optional().nullable(),
|
9
|
+
email: zod_1.z.string().optional().nullable(),
|
10
|
+
work_number: zod_1.z.string().optional().nullable(),
|
11
|
+
mobile_number: zod_1.z.string().optional().nullable(),
|
12
|
+
address: zod_1.z.string().optional().nullable(),
|
13
|
+
city: zod_1.z.string().optional().nullable(),
|
14
|
+
state: zod_1.z.string().optional().nullable(),
|
15
|
+
zipcode: zod_1.z.string().optional().nullable(),
|
16
|
+
country: zod_1.z.string().optional().nullable(),
|
17
|
+
time_zone: zod_1.z.string().optional().nullable(),
|
18
|
+
display_name: zod_1.z.string().optional().nullable(),
|
19
|
+
avatar: zod_1.z.string().optional().nullable(),
|
20
|
+
keyword: zod_1.z.string().optional().nullable(),
|
21
|
+
medium: zod_1.z.string().optional().nullable(),
|
22
|
+
last_seen: zod_1.z.string().optional().nullable(),
|
23
|
+
last_contacted: zod_1.z.string().optional().nullable(),
|
24
|
+
lead_score: zod_1.z.number().optional().nullable(),
|
25
|
+
stage_updated_time: zod_1.z.string().optional().nullable(),
|
26
|
+
first_name: zod_1.z.string(),
|
27
|
+
last_name: zod_1.z.string(),
|
28
|
+
company: zod_1.z
|
29
|
+
.object({
|
30
|
+
id: zod_1.z.number().optional().nullable(),
|
31
|
+
name: zod_1.z.string().optional().nullable(),
|
32
|
+
address: zod_1.z.string().optional().nullable(),
|
33
|
+
city: zod_1.z.string().optional().nullable(),
|
34
|
+
state: zod_1.z.string().optional().nullable(),
|
35
|
+
zipcode: zod_1.z.string().optional().nullable(),
|
36
|
+
country: zod_1.z.string().optional().nullable(),
|
37
|
+
number_of_employees: zod_1.z.number().optional().nullable(),
|
38
|
+
annual_revenue: zod_1.z.number().optional().nullable(),
|
39
|
+
website: zod_1.z.string().optional().nullable(),
|
40
|
+
phone: zod_1.z.string().optional().nullable(),
|
41
|
+
industry_type_id: zod_1.z.number().optional().nullable(),
|
42
|
+
business_type_id: zod_1.z.number().optional().nullable(),
|
43
|
+
})
|
44
|
+
.optional()
|
45
|
+
.nullable(),
|
46
|
+
deal: zod_1.z.unknown().optional().nullable(),
|
47
|
+
links: zod_1.z.unknown().optional().nullable(),
|
48
|
+
updated_at: zod_1.z.string(),
|
49
|
+
facebook: zod_1.z.string().optional().nullable(),
|
50
|
+
twitter: zod_1.z.string().nullable(),
|
51
|
+
linkedin: zod_1.z.string().nullable(),
|
52
|
+
}),
|
53
|
+
});
|
54
|
+
//# sourceMappingURL=GetLead.schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"GetLead.schema.js","sourceRoot":"","sources":["../../../../../../extensions/freshsales/lib/api/schema/GetLead.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACvC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QA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C,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAChC,CAAC;CACH,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './GetLead.schema';
|
@@ -0,0 +1,18 @@
|
|
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("./GetLead.schema"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/freshsales/lib/api/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { type NewActivityPayload, type Pathway, type Patient } from '@awell-health/extensions-core';
|
2
|
+
import z from 'zod';
|
3
|
+
import { SettingsValidationSchema } from '../settings';
|
4
|
+
import { type Activity } from '@awell-health/extensions-core/dist/types/Activity';
|
5
|
+
import { FreshsalesApiClient } from './api/client';
|
6
|
+
type ValidatePayloadAndCreateSdk = <T extends z.ZodTypeAny, P extends NewActivityPayload<any, any>>(args: {
|
7
|
+
fieldsSchema: T;
|
8
|
+
payload: P;
|
9
|
+
}) => Promise<{
|
10
|
+
freshsalesSdk: FreshsalesApiClient;
|
11
|
+
fields: z.infer<(typeof args)['fieldsSchema']>;
|
12
|
+
settings: z.infer<typeof SettingsValidationSchema>;
|
13
|
+
pathway: Pathway;
|
14
|
+
patient: Patient;
|
15
|
+
activity: Activity;
|
16
|
+
}>;
|
17
|
+
export declare const validatePayloadAndCreateSdk: ValidatePayloadAndCreateSdk;
|
18
|
+
export {};
|
@@ -0,0 +1,35 @@
|
|
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.validatePayloadAndCreateSdk = void 0;
|
7
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
const settings_1 = require("../settings");
|
10
|
+
const client_1 = require("./api/client");
|
11
|
+
const validatePayloadAndCreateSdk = async ({ fieldsSchema, payload, }) => {
|
12
|
+
const { settings, fields } = (0, extensions_core_1.validate)({
|
13
|
+
schema: zod_1.default.object({
|
14
|
+
fields: fieldsSchema,
|
15
|
+
settings: settings_1.SettingsValidationSchema,
|
16
|
+
}),
|
17
|
+
payload,
|
18
|
+
});
|
19
|
+
const { patient, pathway, activity } = payload;
|
20
|
+
const baseUrl = `https://${settings.domain}.freshsales.io/api`;
|
21
|
+
const freshsalesSdk = new client_1.FreshsalesApiClient({
|
22
|
+
baseUrl,
|
23
|
+
apiKey: settings.apiKey,
|
24
|
+
});
|
25
|
+
return {
|
26
|
+
freshsalesSdk,
|
27
|
+
settings,
|
28
|
+
fields,
|
29
|
+
patient,
|
30
|
+
pathway,
|
31
|
+
activity,
|
32
|
+
};
|
33
|
+
};
|
34
|
+
exports.validatePayloadAndCreateSdk = validatePayloadAndCreateSdk;
|
35
|
+
//# sourceMappingURL=validatePayloadAndCreateSdk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validatePayloadAndCreateSdk.js","sourceRoot":"","sources":["../../../../extensions/freshsales/lib/validatePayloadAndCreateSdk.ts"],"names":[],"mappings":";;;;;;AAAA,mEAKsC;AACtC,8CAAmB;AACnB,0CAAsD;AAEtD,yCAAkD;AAiB3C,MAAM,2BAA2B,GAAgC,KAAK,EAAE,EAC7E,YAAY,EACZ,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAA,0BAAQ,EAAC;QACpC,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;YACf,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,mCAAwB;SACnC,CAAC;QACF,OAAO;KACR,CAAC,CAAA;IAEF,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAA;IAE9C,MAAM,OAAO,GAAG,WAAW,QAAQ,CAAC,MAAM,oBAAoB,CAAA;IAE9D,MAAM,aAAa,GAAG,IAAI,4BAAmB,CAAC;QAC5C,OAAO;QACP,MAAM,EAAE,QAAQ,CAAC,MAAM;KACxB,CAAC,CAAA;IAEF,OAAO;QACL,aAAa;QACb,QAAQ;QACR,MAAM;QACN,OAAO;QACP,OAAO;QACP,QAAQ;KACT,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,2BAA2B,+BA6BvC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const settings: {
|
3
|
+
domain: {
|
4
|
+
key: string;
|
5
|
+
label: string;
|
6
|
+
description: string;
|
7
|
+
required: true;
|
8
|
+
obfuscated: false;
|
9
|
+
};
|
10
|
+
apiKey: {
|
11
|
+
key: string;
|
12
|
+
label: string;
|
13
|
+
description: string;
|
14
|
+
required: true;
|
15
|
+
obfuscated: true;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export declare const SettingsValidationSchema: z.ZodObject<{
|
19
|
+
domain: z.ZodString;
|
20
|
+
apiKey: z.ZodString;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
apiKey: string;
|
23
|
+
domain: string;
|
24
|
+
}, {
|
25
|
+
apiKey: string;
|
26
|
+
domain: string;
|
27
|
+
}>;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SettingsValidationSchema = exports.settings = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.settings = {
|
6
|
+
domain: {
|
7
|
+
key: 'domain',
|
8
|
+
label: 'Freshsales domain',
|
9
|
+
description: 'Will be used to construct the API URL. E.g. https://<domain>.freshsales.io/',
|
10
|
+
required: true,
|
11
|
+
obfuscated: false,
|
12
|
+
},
|
13
|
+
apiKey: {
|
14
|
+
key: 'apiKey',
|
15
|
+
label: 'API key',
|
16
|
+
description: '',
|
17
|
+
required: true,
|
18
|
+
obfuscated: true,
|
19
|
+
},
|
20
|
+
};
|
21
|
+
exports.SettingsValidationSchema = zod_1.z.object({
|
22
|
+
domain: zod_1.z.string().min(1),
|
23
|
+
apiKey: zod_1.z.string().min(1),
|
24
|
+
});
|
25
|
+
//# sourceMappingURL=settings.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/freshsales/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EACT,6EAA6E;QAC/E,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,KAAK;KAClB;IACD,MAAM,EAAE;QACN,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;KACjB;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC0B,CAAC,CAAA"}
|
package/dist/extensions/index.js
CHANGED
@@ -57,6 +57,7 @@ const experimental_1 = require("./experimental");
|
|
57
57
|
const external_server_1 = require("./external-server");
|
58
58
|
const formsort_1 = require("./formsort");
|
59
59
|
const freshdesk_1 = require("./freshdesk");
|
60
|
+
const freshsales_1 = require("./freshsales");
|
60
61
|
const gridspace_1 = require("./gridspace");
|
61
62
|
const healthie_1 = require("./healthie");
|
62
63
|
const hello_world_1 = require("./hello-world");
|
@@ -112,6 +113,7 @@ exports.extensions = [
|
|
112
113
|
external_server_1.ExternalServer,
|
113
114
|
formsort_1.Formsort,
|
114
115
|
freshdesk_1.freshdesk,
|
116
|
+
freshsales_1.freshsales,
|
115
117
|
gridspace_1.Gridspace,
|
116
118
|
healthie_1.Healthie,
|
117
119
|
hello_world_1.HelloWorld,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,0CAA0C;AAC1C,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,uCAAmC;AACnC,iCAA6B;AAE7B,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,aAAa;IACb,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;IACP,WAAI;CACL,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";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BAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,aAAa;IACb,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;IACP,WAAI;CACL,CAAA"}
|
@@ -88,7 +88,11 @@
|
|
88
88
|
"changelog": "# Formsort changelog"
|
89
89
|
},
|
90
90
|
"freshdesk": {
|
91
|
-
"readme": "---\ntitle: Freshdesk
|
91
|
+
"readme": "---\ntitle: Freshdesk\ndescription: Freshdesk is a cloud-based customer service software that helps businesses manage and streamline their customer support operations.\n---\n\n# Freshdesk\n\nFreshdesk is a cloud-based customer service software that helps businesses manage and streamline their customer support operations.\n\n## Extension settings\n\nTo set up this extension, you will need to provide your Freshdesk helpdesk domain and API key.",
|
92
|
+
"changelog": "# CHANGELOG"
|
93
|
+
},
|
94
|
+
"freshsales": {
|
95
|
+
"readme": "---\ntitle: Freshsales\ndescription: Freshsales is a cloud-based, AI-powered customer relationship management (CRM) software designed to help sales teams organize, manage, and close deals more efficiently.\n---\n\n# Freshsales\n\nFreshsales is a cloud-based, AI-powered customer relationship management (CRM) software designed to help sales teams organize, manage, and close deals more efficiently.\n\n## Extension settings\n\nTo set up this extension, you will need to provide your Freshsales CRM domain and API key.",
|
92
96
|
"changelog": "# CHANGELOG"
|
93
97
|
},
|
94
98
|
"gridspace": {
|