@awell-health/awell-extensions 1.0.118 → 1.0.120
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/healthie/actions/getMetricEntry/config/dataPoints.d.ts +14 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/dataPoints.js +18 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/dataPoints.js.map +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/fields.d.ts +18 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/fields.js +18 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/index.js +9 -0
- package/dist/extensions/healthie/actions/getMetricEntry/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.d.ts +4 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js +92 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.js.map +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js +39 -0
- package/dist/extensions/healthie/actions/getMetricEntry/getMetricEntry.test.js.map +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/getMetricEntry/index.js +6 -0
- package/dist/extensions/healthie/actions/getMetricEntry/index.js.map +1 -0
- package/dist/extensions/healthie/actions/index.d.ts +24 -0
- package/dist/extensions/healthie/actions/index.js +2 -0
- package/dist/extensions/healthie/actions/index.js.map +1 -1
- package/dist/extensions/healthie/gql/sdk.d.ts +20 -0
- package/dist/extensions/healthie/gql/sdk.js +14 -1
- package/dist/extensions/healthie/gql/sdk.js.map +1 -1
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/markdown.json +5 -1
- package/dist/extensions/zendesk/index.d.ts +2 -0
- package/dist/extensions/zendesk/index.js +42 -0
- package/dist/extensions/zendesk/index.js.map +1 -0
- package/dist/extensions/zendesk/settings.d.ts +17 -0
- package/dist/extensions/zendesk/settings.js +19 -0
- package/dist/extensions/zendesk/settings.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.d.ts +4 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.js +45 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.test.d.ts +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.test.js +30 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/completeTask.test.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/fields.d.ts +18 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/fields.js +18 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/fields.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/index.d.ts +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/index.js +7 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/config/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/index.d.ts +1 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/index.js +6 -0
- package/dist/extensions/zendesk/v1/actions/completeTask/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/dataPoints.d.ts +6 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/dataPoints.js +10 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/dataPoints.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +80 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.js +71 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/index.d.ts +2 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/index.js +9 -0
- package/dist/extensions/zendesk/v1/actions/createTask/config/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.d.ts +4 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.js +52 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.test.d.ts +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.test.js +44 -0
- package/dist/extensions/zendesk/v1/actions/createTask/createTask.test.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/index.d.ts +1 -0
- package/dist/extensions/zendesk/v1/actions/createTask/index.js +6 -0
- package/dist/extensions/zendesk/v1/actions/createTask/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/actions/index.d.ts +2 -0
- package/dist/extensions/zendesk/v1/actions/index.js +8 -0
- package/dist/extensions/zendesk/v1/actions/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/client/client.d.ts +18 -0
- package/dist/extensions/zendesk/v1/client/client.js +80 -0
- package/dist/extensions/zendesk/v1/client/client.js.map +1 -0
- package/dist/extensions/zendesk/v1/client/error.d.ts +5 -0
- package/dist/extensions/zendesk/v1/client/error.js +50 -0
- package/dist/extensions/zendesk/v1/client/error.js.map +1 -0
- package/dist/extensions/zendesk/v1/client/index.d.ts +2 -0
- package/dist/extensions/zendesk/v1/client/index.js +19 -0
- package/dist/extensions/zendesk/v1/client/index.js.map +1 -0
- package/dist/extensions/zendesk/v1/client/types.d.ts +37 -0
- package/dist/extensions/zendesk/v1/client/types.js +11 -0
- package/dist/extensions/zendesk/v1/client/types.js.map +1 -0
- package/dist/extensions/zendesk/v1/types.d.ts +18 -0
- package/dist/extensions/zendesk/v1/types.js +3 -0
- package/dist/extensions/zendesk/v1/types.js.map +1 -0
- package/dist/extensions/zusHealth/webhooks/index.d.ts +1 -1
- package/package.json +2 -2
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.dataPoints = void 0;
|
4
|
+
exports.dataPoints = {
|
5
|
+
metricId: {
|
6
|
+
key: 'metricId',
|
7
|
+
valueType: 'string',
|
8
|
+
},
|
9
|
+
metricValue: {
|
10
|
+
key: 'metricValue',
|
11
|
+
valueType: 'number',
|
12
|
+
},
|
13
|
+
createdAt: {
|
14
|
+
key: 'createdAt',
|
15
|
+
valueType: 'date',
|
16
|
+
},
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=dataPoints.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getMetricEntry/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,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,MAAM;KAClB;CAC4C,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
2
|
+
import { z } from 'zod';
|
3
|
+
export declare const fields: {
|
4
|
+
category: {
|
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
|
+
category: z.ZodString;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
category: string;
|
16
|
+
}, {
|
17
|
+
category: 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 extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const zod_1 = require("zod");
|
6
|
+
exports.fields = {
|
7
|
+
category: {
|
8
|
+
id: 'category',
|
9
|
+
label: 'Category',
|
10
|
+
description: 'Specifies the metric you would like to retrieve',
|
11
|
+
type: extensions_core_1.FieldType.STRING,
|
12
|
+
required: true,
|
13
|
+
},
|
14
|
+
};
|
15
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
16
|
+
category: zod_1.z.string().nonempty(),
|
17
|
+
});
|
18
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/getMetricEntry/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,iDAAiD;QAC9D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACkB,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/healthie/actions/getMetricEntry/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getMetricEntry = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const zod_validation_error_1 = require("zod-validation-error");
|
6
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
7
|
+
const extensions_core_2 = require("@awell-health/extensions-core");
|
8
|
+
const settings_1 = require("../../settings");
|
9
|
+
const errors_1 = require("../../errors");
|
10
|
+
const config_1 = require("./config");
|
11
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
12
|
+
const sdk_1 = require("../../gql/sdk");
|
13
|
+
const lodash_1 = require("lodash");
|
14
|
+
exports.getMetricEntry = {
|
15
|
+
key: 'getMetricEntry',
|
16
|
+
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
17
|
+
title: 'Get metric entry',
|
18
|
+
description: 'Get most recent metric entry of a given category from Healthie.',
|
19
|
+
fields: config_1.fields,
|
20
|
+
dataPoints: config_1.dataPoints,
|
21
|
+
previewable: true,
|
22
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
23
|
+
var _a, _b, _c;
|
24
|
+
try {
|
25
|
+
const { settings, fields: { category }, } = (0, extensions_core_1.validate)({
|
26
|
+
schema: zod_1.z.object({
|
27
|
+
settings: settings_1.settingsValidationSchema,
|
28
|
+
fields: config_1.FieldsValidationSchema,
|
29
|
+
}),
|
30
|
+
payload,
|
31
|
+
});
|
32
|
+
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
33
|
+
if (client != null) {
|
34
|
+
const sdk = (0, sdk_1.getSdk)(client);
|
35
|
+
const { data } = await sdk.entries({ type: 'MetricEntry', category });
|
36
|
+
const mostRecentMetricObject = data.entries === undefined || ((_a = data.entries) === null || _a === void 0 ? void 0 : _a.length) === 0
|
37
|
+
? undefined
|
38
|
+
: (_b = data.entries) === null || _b === void 0 ? void 0 : _b[0];
|
39
|
+
await onComplete({
|
40
|
+
data_points: {
|
41
|
+
metricId: mostRecentMetricObject === null || mostRecentMetricObject === void 0 ? void 0 : mostRecentMetricObject.id,
|
42
|
+
metricValue: (0, lodash_1.isEmpty)(mostRecentMetricObject)
|
43
|
+
? undefined
|
44
|
+
: String(mostRecentMetricObject === null || mostRecentMetricObject === void 0 ? void 0 : mostRecentMetricObject.metric_stat),
|
45
|
+
createdAt: (0, lodash_1.isEmpty)(mostRecentMetricObject)
|
46
|
+
? undefined
|
47
|
+
: new Date((_c = mostRecentMetricObject === null || mostRecentMetricObject === void 0 ? void 0 : mostRecentMetricObject.created_at) !== null && _c !== void 0 ? _c : '').toISOString(),
|
48
|
+
},
|
49
|
+
});
|
50
|
+
}
|
51
|
+
}
|
52
|
+
catch (err) {
|
53
|
+
if (err instanceof zod_1.ZodError) {
|
54
|
+
const error = (0, zod_validation_error_1.fromZodError)(err);
|
55
|
+
await onError({
|
56
|
+
events: [
|
57
|
+
{
|
58
|
+
date: new Date().toISOString(),
|
59
|
+
text: { en: error.message },
|
60
|
+
error: {
|
61
|
+
category: 'WRONG_INPUT',
|
62
|
+
message: error.message,
|
63
|
+
},
|
64
|
+
},
|
65
|
+
],
|
66
|
+
});
|
67
|
+
}
|
68
|
+
else if (err instanceof errors_1.HealthieError) {
|
69
|
+
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
70
|
+
await onError({
|
71
|
+
events: errors,
|
72
|
+
});
|
73
|
+
}
|
74
|
+
else {
|
75
|
+
const error = err;
|
76
|
+
await onError({
|
77
|
+
events: [
|
78
|
+
{
|
79
|
+
date: new Date().toISOString(),
|
80
|
+
text: { en: 'Healthie API reported an error' },
|
81
|
+
error: {
|
82
|
+
category: 'SERVER_ERROR',
|
83
|
+
message: error.message,
|
84
|
+
},
|
85
|
+
},
|
86
|
+
],
|
87
|
+
});
|
88
|
+
}
|
89
|
+
}
|
90
|
+
},
|
91
|
+
};
|
92
|
+
//# sourceMappingURL=getMetricEntry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMetricEntry.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getMetricEntry/getMetricEntry.ts"],"names":[],"mappings":";;;AAAA,6BAAiC;AACjC,+DAAmD;AACnD,mEAAqE;AACrE,mEAAwD;AACxD,6CAAwE;AACxE,yCAAwE;AACxE,qCAAqE;AACrE,uDAAsD;AACtD,uCAAsC;AACtC,mCAAgC;AAEnB,QAAA,cAAc,GAIvB;IACF,GAAG,EAAE,gBAAgB;IACrB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,kBAAkB;IACzB,WAAW,EACT,iEAAiE;IACnE,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;;QACvE,IAAI;YACF,MAAM,EACJ,QAAQ,EACR,MAAM,EAAE,EAAE,QAAQ,EAAE,GACrB,GAAG,IAAA,0BAAQ,EAAC;gBACX,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;oBACf,QAAQ,EAAE,mCAAwB;oBAClC,MAAM,EAAE,+BAAsB;iBAC/B,CAAC;gBACF,OAAO;aACR,CAAC,CAAA;YAEF,MAAM,MAAM,GAAG,IAAA,gCAAgB,EAAC,QAAQ,CAAC,CAAA;YACzC,IAAI,MAAM,IAAI,IAAI,EAAE;gBAClB,MAAM,GAAG,GAAG,IAAA,YAAM,E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ACvB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;iBAAM,IAAI,GAAG,YAAY,sBAAa,EAAE;gBACvC,MAAM,MAAM,GAAG,IAAA,mCAA0B,EAAC,GAAG,CAAC,MAAM,CAAC,CAAA;gBACrD,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE,MAAM;iBACf,CAAC,CAAA;aACH;iBAAM;gBACL,MAAM,KAAK,GAAG,GAAY,CAAA;gBAC1B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,gCAAgC,EAAE;4BAC9C,KAAK,EAAE;gCACL,QAAQ,EAAE,cAAc;gCACxB,OAAO,EAAE,KAAK,CAAC,OAAO;6BACvB;yBACF;qBACF;iBACF,CAAC,CAAA;aACH;SACF;IACH,CAAC;CACF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tests_1 = require("../../../../src/tests");
|
4
|
+
const sdk_1 = require("../../gql/sdk");
|
5
|
+
const sdk_2 = require("../../gql/__mocks__/sdk");
|
6
|
+
const _1 = require(".");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('Healthie - Get metric entry', () => {
|
10
|
+
const onComplete = jest.fn();
|
11
|
+
const onError = jest.fn();
|
12
|
+
beforeAll(() => {
|
13
|
+
;
|
14
|
+
sdk_1.getSdk.mockImplementation(sdk_2.mockGetSdk);
|
15
|
+
});
|
16
|
+
beforeEach(() => {
|
17
|
+
jest.clearAllMocks();
|
18
|
+
});
|
19
|
+
test('Should get most recent metric entry', async () => {
|
20
|
+
await _1.getMetricEntry.onActivityCreated((0, tests_1.generateTestPayload)({
|
21
|
+
fields: {
|
22
|
+
category: 'Weight',
|
23
|
+
},
|
24
|
+
settings: {
|
25
|
+
apiKey: 'api-key',
|
26
|
+
apiUrl: 'api-url',
|
27
|
+
},
|
28
|
+
}), onComplete, onError);
|
29
|
+
expect(onComplete).toBeCalledWith({
|
30
|
+
data_points: {
|
31
|
+
metricId: '714884',
|
32
|
+
metricValue: '190',
|
33
|
+
createdAt: '2023-10-06T10:08:34.000Z',
|
34
|
+
},
|
35
|
+
});
|
36
|
+
expect(onError).toBeCalledTimes(0);
|
37
|
+
});
|
38
|
+
});
|
39
|
+
//# sourceMappingURL=getMetricEntry.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getMetricEntry.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getMetricEntry/getMetricEntry.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAoD;AACpD,wBAAkC;AAElC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,CAAC;QAAC,YAAoB,CAAC,kBAAkB,CAAC,gBAAU,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,iBAAc,CAAC,iBAAiB,CACpC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,QAAQ,EAAE,QAAQ;aACnB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,SAAS;gBACjB,MAAM,EAAE,SAAS;aAClB;SACF,CAAC,EACF,UAAU,EACV,OAAO,CACR,CAAA;QAED,MAAM,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC;YAChC,WAAW,EAAE;gBACX,QAAQ,EAAE,QAAQ;gBAClB,WAAW,EAAE,KAAK;gBAClB,SAAS,EAAE,0BAA0B;aACtC;SACF,CAAC,CAAA;QACF,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { getMetricEntry } from './getMetricEntry';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getMetricEntry = void 0;
|
4
|
+
var getMetricEntry_1 = require("./getMetricEntry");
|
5
|
+
Object.defineProperty(exports, "getMetricEntry", { enumerable: true, get: function () { return getMetricEntry_1.getMetricEntry; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/getMetricEntry/index.ts"],"names":[],"mappings":";;;AAAA,mDAAiD;AAAxC,gHAAA,cAAc,OAAA"}
|
@@ -769,6 +769,30 @@ export declare const actions: {
|
|
769
769
|
description: string;
|
770
770
|
};
|
771
771
|
}, string, never>;
|
772
|
+
getMetricEntry: import("@awell-health/extensions-core").Action<{
|
773
|
+
category: {
|
774
|
+
id: string;
|
775
|
+
label: string;
|
776
|
+
description: string;
|
777
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
778
|
+
required: true;
|
779
|
+
};
|
780
|
+
}, {
|
781
|
+
apiUrl: {
|
782
|
+
key: string;
|
783
|
+
label: string;
|
784
|
+
obfuscated: false;
|
785
|
+
required: true;
|
786
|
+
description: string;
|
787
|
+
};
|
788
|
+
apiKey: {
|
789
|
+
key: string;
|
790
|
+
label: string;
|
791
|
+
obfuscated: true;
|
792
|
+
required: true;
|
793
|
+
description: string;
|
794
|
+
};
|
795
|
+
}, "metricId" | "metricValue" | "createdAt", never>;
|
772
796
|
updatePatientQuickNote: import("@awell-health/extensions-core").Action<{
|
773
797
|
patientId: {
|
774
798
|
id: string;
|
@@ -20,6 +20,7 @@ const assignPatientToGroup_1 = require("./assignPatientToGroup");
|
|
20
20
|
const updatePatient_1 = require("./updatePatient");
|
21
21
|
const getPatient_1 = require("./getPatient");
|
22
22
|
const applyTagToPatient_1 = require("./applyTagToPatient");
|
23
|
+
const getMetricEntry_1 = require("./getMetricEntry");
|
23
24
|
const updatePatientQuickNote_1 = require("./updatePatientQuickNote");
|
24
25
|
const createMetricEntry_1 = require("./createMetricEntry");
|
25
26
|
exports.actions = {
|
@@ -51,6 +52,7 @@ exports.actions = {
|
|
51
52
|
deleteTask: deleteTask_1.deleteTask,
|
52
53
|
completeTask: completeTask_1.completeTask,
|
53
54
|
assignPatientToGroup: assignPatientToGroup_1.assignPatientToGroup,
|
55
|
+
getMetricEntry: getMetricEntry_1.getMetricEntry,
|
54
56
|
updatePatientQuickNote: updatePatientQuickNote_1.updatePatientQuickNote,
|
55
57
|
createMetricEntry: createMetricEntry_1.createMetricEntry,
|
56
58
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AACvD,qEAAiE;AACjE,2DAAuD;AAE1C,QAAA,OAAO,GAAG;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,oBAAoB,EAApB,2CAAoB;IACpB,kBAAkB,EAAlB,uCAAkB;IAClB,yBAAyB,EAAzB,qDAAyB;IACzB,cAAc,EAAd,+BAAc;IACd;;;QAGI;IACJ,kBAAkB;IAClB,qBAAqB,EAArB,6CAAqB;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,iBAAiB,EAAjB,qCAAiB;IACjB;;;QAGI;IACJ,sBAAsB;IACtB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,oBAAoB,EAApB,2CAAoB;IACpB,sBAAsB,EAAtB,+CAAsB;IACtB,iBAAiB,EAAjB,qCAAiB;CAClB,CAAA"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/healthie/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAuD;AACvD,wDAAoD;AACpD,qDAAiD;AACjD,uDAAmD;AACnD,mDAA+C;AAC/C,iEAA6D;AAC7D,6DAAyD;AACzD,2EAAuE;AACvE,qDAAiD;AACjD,oDAAoD;AACpD,mEAA+D;AAC/D,2DAAuD;AACvD,2DAAuD;AACvD,6CAAyC;AACzC,iDAA6C;AAC7C,iEAA6D;AAC7D,mDAA+C;AAC/C,6CAAyC;AACzC,2DAAuD;AACvD,qDAAiD;AACjD,qEAAiE;AACjE,2DAAuD;AAE1C,QAAA,OAAO,GAAG;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,iCAAe;IACf,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,iBAAiB,EAAjB,qCAAiB;IACjB,oBAAoB,EAApB,2CAAoB;IACpB,kBAAkB,EAAlB,uCAAkB;IAClB,yBAAyB,EAAzB,qDAAyB;IACzB,cAAc,EAAd,+BAAc;IACd;;;QAGI;IACJ,kBAAkB;IAClB,qBAAqB,EAArB,6CAAqB;IACrB,iBAAiB,EAAjB,qCAAiB;IACjB,iBAAiB,EAAjB,qCAAiB;IACjB;;;QAGI;IACJ,sBAAsB;IACtB,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;IACd,sBAAsB,EAAtB,+CAAsB;IACtB,iBAAiB,EAAjB,qCAAiB;CAClB,CAAA"}
|
@@ -22675,6 +22675,19 @@ export type GetUserQuery = {
|
|
22675
22675
|
}> | null;
|
22676
22676
|
} | null;
|
22677
22677
|
};
|
22678
|
+
export type EntriesQueryVariables = Exact<{
|
22679
|
+
category?: InputMaybe<Scalars['String']>;
|
22680
|
+
type?: InputMaybe<Scalars['String']>;
|
22681
|
+
}>;
|
22682
|
+
export type EntriesQuery = {
|
22683
|
+
__typename?: 'Query';
|
22684
|
+
entries?: Array<{
|
22685
|
+
__typename?: 'Entry';
|
22686
|
+
id: string;
|
22687
|
+
metric_stat?: number | null;
|
22688
|
+
created_at: string;
|
22689
|
+
}> | null;
|
22690
|
+
};
|
22678
22691
|
export type RemoveTagFromUserMutationVariables = Exact<{
|
22679
22692
|
id?: InputMaybe<Scalars['ID']>;
|
22680
22693
|
taggable_user_id?: InputMaybe<Scalars['ID']>;
|
@@ -22809,6 +22822,7 @@ export declare const GetAppointmentDocument: import("graphql").DocumentNode;
|
|
22809
22822
|
export declare const GetConversationListDocument: import("graphql").DocumentNode;
|
22810
22823
|
export declare const GetFormTemplateDocument: import("graphql").DocumentNode;
|
22811
22824
|
export declare const GetUserDocument: import("graphql").DocumentNode;
|
22825
|
+
export declare const EntriesDocument: import("graphql").DocumentNode;
|
22812
22826
|
export declare const RemoveTagFromUserDocument: import("graphql").DocumentNode;
|
22813
22827
|
export declare const SendChatMessageDocument: import("graphql").DocumentNode;
|
22814
22828
|
export declare const UpdateAppointmentDocument: import("graphql").DocumentNode;
|
@@ -22913,6 +22927,12 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
22913
22927
|
headers: Dom.Headers;
|
22914
22928
|
status: number;
|
22915
22929
|
}>;
|
22930
|
+
entries(variables?: EntriesQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<{
|
22931
|
+
data: EntriesQuery;
|
22932
|
+
extensions?: any;
|
22933
|
+
headers: Dom.Headers;
|
22934
|
+
status: number;
|
22935
|
+
}>;
|
22916
22936
|
removeTagFromUser(variables?: RemoveTagFromUserMutationVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<{
|
22917
22937
|
data: RemoveTagFromUserMutation;
|
22918
22938
|
extensions?: any;
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.getSdk = exports.UpdateTaskDocument = exports.UpdatePatientDocument = exports.UpdateConversationDocument = exports.UpdateAppointmentDocument = exports.SendChatMessageDocument = exports.RemoveTagFromUserDocument = exports.GetUserDocument = exports.GetFormTemplateDocument = exports.GetConversationListDocument = exports.GetAppointmentDocument = exports.DeleteTaskDocument = exports.DeleteAppointmentDocument = exports.CreateTaskDocument = exports.CreatePatientDocument = exports.CreateLocationDocument = exports.CreateJournalEntryDocument = exports.CreateFormCompletionRequestDocument = exports.CreateFormAnswerGroupDocument = exports.CreateEntryDocument = exports.CreateConversationDocument = exports.CreateAppointmentDocument = exports.ApplyTagsToUserDocument = exports.IndividualClientNoteSorting = void 0;
|
6
|
+
exports.getSdk = exports.UpdateTaskDocument = exports.UpdatePatientDocument = exports.UpdateConversationDocument = exports.UpdateAppointmentDocument = exports.SendChatMessageDocument = exports.RemoveTagFromUserDocument = exports.EntriesDocument = exports.GetUserDocument = exports.GetFormTemplateDocument = exports.GetConversationListDocument = exports.GetAppointmentDocument = exports.DeleteTaskDocument = exports.DeleteAppointmentDocument = exports.CreateTaskDocument = exports.CreatePatientDocument = exports.CreateLocationDocument = exports.CreateJournalEntryDocument = exports.CreateFormCompletionRequestDocument = exports.CreateFormAnswerGroupDocument = exports.CreateEntryDocument = exports.CreateConversationDocument = exports.CreateAppointmentDocument = exports.ApplyTagsToUserDocument = exports.IndividualClientNoteSorting = void 0;
|
7
7
|
const graphql_1 = require("graphql");
|
8
8
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
9
9
|
/** Individual client note sorting enum */
|
@@ -281,6 +281,15 @@ exports.GetUserDocument = (0, graphql_tag_1.default) `
|
|
281
281
|
}
|
282
282
|
}
|
283
283
|
`;
|
284
|
+
exports.EntriesDocument = (0, graphql_tag_1.default) `
|
285
|
+
query entries($category: String, $type: String) {
|
286
|
+
entries(category: $category, type: $type) {
|
287
|
+
id
|
288
|
+
metric_stat
|
289
|
+
created_at
|
290
|
+
}
|
291
|
+
}
|
292
|
+
`;
|
284
293
|
exports.RemoveTagFromUserDocument = (0, graphql_tag_1.default) `
|
285
294
|
mutation removeTagFromUser($id: ID, $taggable_user_id: ID) {
|
286
295
|
removeAppliedTag(input: {id: $id, taggable_user_id: $taggable_user_id}) {
|
@@ -385,6 +394,7 @@ const GetAppointmentDocumentString = (0, graphql_1.print)(exports.GetAppointment
|
|
385
394
|
const GetConversationListDocumentString = (0, graphql_1.print)(exports.GetConversationListDocument);
|
386
395
|
const GetFormTemplateDocumentString = (0, graphql_1.print)(exports.GetFormTemplateDocument);
|
387
396
|
const GetUserDocumentString = (0, graphql_1.print)(exports.GetUserDocument);
|
397
|
+
const EntriesDocumentString = (0, graphql_1.print)(exports.EntriesDocument);
|
388
398
|
const RemoveTagFromUserDocumentString = (0, graphql_1.print)(exports.RemoveTagFromUserDocument);
|
389
399
|
const SendChatMessageDocumentString = (0, graphql_1.print)(exports.SendChatMessageDocument);
|
390
400
|
const UpdateAppointmentDocumentString = (0, graphql_1.print)(exports.UpdateAppointmentDocument);
|
@@ -441,6 +451,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
441
451
|
getUser(variables, requestHeaders) {
|
442
452
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(GetUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getUser', 'query');
|
443
453
|
},
|
454
|
+
entries(variables, requestHeaders) {
|
455
|
+
return withWrapper((wrappedRequestHeaders) => client.rawRequest(EntriesDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'entries', 'query');
|
456
|
+
},
|
444
457
|
removeTagFromUser(variables, requestHeaders) {
|
445
458
|
return withWrapper((wrappedRequestHeaders) => client.rawRequest(RemoveTagFromUserDocumentString, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'removeTagFromUser', 'mutation');
|
446
459
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../../extensions/healthie/gql/sdk.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA+B;AAC/B,8DAA8B;AAo6J9B,0CAA0C;AAC1C,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,6DAA8B,CAAA;IAC9B,gEAAiC,CAAA;AACnC,CAAC,EAHW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAGtC;
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../../extensions/healthie/gql/sdk.ts"],"names":[],"mappings":";;;;;;AAEA,qCAA+B;AAC/B,8DAA8B;AAo6J9B,0CAA0C;AAC1C,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,6DAA8B,CAAA;IAC9B,gEAAiC,CAAA;AACnC,CA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,CAAC;QAC/N,CAAC;QACD,aAAa,CAAC,SAAyC,EAAE,cAA2C;YAChG,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAwB,2BAA2B,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;QAChN,CAAC;QACD,UAAU,CAAC,SAAsC,EAAE,cAA2C;YAC1F,OAAO,WAAW,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAqB,wBAAwB,EAAE,SAAS,EAAE,EAAC,GAAG,cAAc,EAAE,GAAG,qBAAqB,EAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;QACvM,CAAC;KACF,CAAC;AACJ,CAAC;AAxED,wBAwEC"}
|
package/dist/extensions/index.js
CHANGED
@@ -47,6 +47,7 @@ const docuSign_1 = require("./docuSign");
|
|
47
47
|
const sendbird_1 = require("./sendbird");
|
48
48
|
const transform_1 = require("./transform");
|
49
49
|
const iterable_1 = require("./iterable");
|
50
|
+
const zendesk_1 = require("./zendesk");
|
50
51
|
const json = __importStar(require("./markdown.json"));
|
51
52
|
exports.markdown = json;
|
52
53
|
exports.extensions = [
|
@@ -75,5 +76,6 @@ exports.extensions = [
|
|
75
76
|
// ZusHealth is not ready for public use yet
|
76
77
|
// ZusHealth,
|
77
78
|
iterable_1.Iterable,
|
79
|
+
zendesk_1.Zendesk,
|
78
80
|
];
|
79
81
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,mDAA+C;AAC/C,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,yCAAqC;AACrC,6DAA+C;AAC/C,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,2CAAuC;AACvC,yCAAqC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kCAAkC;AAClC,mCAA+B;AAC/B,2CAAuC;AACvC,mDAA+C;AAC/C,6CAAyC;AACzC,+CAA2C;AAC3C,uCAAmC;AACnC,yCAAqC;AACrC,yCAAqC;AACrC,+CAA0C;AAC1C,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,+CAA2C;AAC3C,2CAAuC;AACvC,qCAAiC;AACjC,yCAAqC;AACrC,6DAA+C;AAC/C,yCAAqC;AACrC,yCAAqC;AACrC,yCAAqC;AACrC,2CAAuC;AACvC,yCAAqC;AACrC,uCAAmC;AAEnC,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,oFAAoF;IACpF,aAAK;IACL,qBAAS;IACT,6BAAa;IACb,uBAAU;IACV,yBAAW;IACX,iBAAO;IACP,mBAAQ;IACR,mBAAQ;IACR,wBAAU;IACV,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,qBAAS;IACT,qBAAS;IACT,eAAM;IACN,mBAAQ;IACR,6BAAQ;IACR,mBAAQ;IACR,mBAAQ;IACR,mBAAQ;IACR,4CAA4C;IAC5C,aAAa;IACb,mBAAQ;IACR,iBAAO;CACR,CAAA"}
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"changelog": "# Formsort changelog"
|
41
41
|
},
|
42
42
|
"healthie": {
|
43
|
-
"readme": "---\ntitle: Healthie\ndescription: Healthie offers infrastructure for next generation digital health organizations that provide virtual-first care.\n---\n\n# What is Healthie?\n\nHealthie offers infrastructure for next generation digital health organizations that provide virtual-first care. Healthie’s API-first and fully brandable suite of solutions (Scheduling, EMR, Client Engagement) enables healthcare builders to launch and scale best-in-class experiences for their members. Healthie also offers a built-in marketplace of business and clinical integrations used by our organizations.\n\nTo learn more, visit [www.gethealthie.com](www.gethealthie.com).\n\n## Healthie x Awell\n\nWith this extension, organizations are able to build clinical workflows in Awell’s low-code platform and easily integrate them into Healthie. By doing so, Healthie’s customers can automate routine clinical tasks, synchronize data between systems and drive seamless coordination between care team and patients.\n\nBy combining Healthie’s web and mobile platform with our clinical workflows, clinicians will be able to provide the right care, at the right time for the right patient.\n\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Healthie API key and Api url**. You can obtain an API key via the Healthie portal (`Settings > Developer > API keys`). You can obtain API url in the [DOCUMENTATION](https://docs.gethealthie.com/docs/#environments) in `Environments` section.\n\nPlease note that the extension automatically prefixes the API key with `Basic ` so please provide your raw API key without `Basic ` in front.\n\n# Custom Actions\n\n## Send chat message action\n\nSends a chat message to a patient in name of the provided provider ID. Will create a new conversation if no active conversation between patient and provider exists or sends a message in an existing conversation if there is an active conversation between the two.\n\n## Create patient\n\nCreates a new patient according to the passed fields. After completion the `healthiePatientId` will be exposed as a data point in the care flow.\n\n## Update patient\n\nUpdates a specific patient (defined by the provided `id`) according to the passed fields.\n\n## Apply tag to patient\n\nAdds a tag (existing one, identified by an `id`) to a patient. Although the Healthie API call allows assigning multiple tags per API call, for simplicity of the logic this action can only take one tag as input. Assigning multiple tags is possible by adding multiple actions.\n\n## Remove tag from patient\n\nRemoves a tag (identified by an `id`) from a patient.\n\n## Create charting note\n\nCreates a charting note with the provided `note_content`.\n\n**Prerequisites and set-up:**\n\n1. The form specified by the `form_id` exists in Healthie.\n2. The form specified by the `form_id` is a charting form (click \"Convert to charting form\" in the form options).\n3. The form contains at least one question of type `textarea` (long text answer). The action will write the content of the charting note in the first question of that type it finds in the form.\n\n## Send form completion request\n\nSend a form completion request to the patient. You will need the Healthie patient ID and the ID of the form you would like the patient to complete.\n\nAlthough the Healthie API call allows sending form completion requests to multiple users per API call (see recipient_ids in their docs), we decided that every action only sends one form completion request. This heavily simplifies the logic and better fits our domain model (1-to-1 relationship between patient and pathway). If a user would like to send multiple form completion requests, they you can just add multiple actions.\n\n## Archive patient\n\nArchives a patient with a given `id`.\n\n## Create location\n\nCreates a location. ID of the created location is stored as `locationId` data point.\n\n## Close chat conversation\n\nCloses chat conversation with a given `id` as a provider with the given `provider_id`.\n\n## Delete appointment\n\nDeletes an appointment with a given `id`.\n\n## Cancel appointment\n\nCancels an appointment with a given `id`.\n\n## Create metric entry\n\nCreate a metric entry for a patient in Healthie.\n",
|
43
|
+
"readme": "---\ntitle: Healthie\ndescription: Healthie offers infrastructure for next generation digital health organizations that provide virtual-first care.\n---\n\n# What is Healthie?\n\nHealthie offers infrastructure for next generation digital health organizations that provide virtual-first care. Healthie’s API-first and fully brandable suite of solutions (Scheduling, EMR, Client Engagement) enables healthcare builders to launch and scale best-in-class experiences for their members. Healthie also offers a built-in marketplace of business and clinical integrations used by our organizations.\n\nTo learn more, visit [www.gethealthie.com](www.gethealthie.com).\n\n## Healthie x Awell\n\nWith this extension, organizations are able to build clinical workflows in Awell’s low-code platform and easily integrate them into Healthie. By doing so, Healthie’s customers can automate routine clinical tasks, synchronize data between systems and drive seamless coordination between care team and patients.\n\nBy combining Healthie’s web and mobile platform with our clinical workflows, clinicians will be able to provide the right care, at the right time for the right patient.\n\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Healthie API key and Api url**. You can obtain an API key via the Healthie portal (`Settings > Developer > API keys`). You can obtain API url in the [DOCUMENTATION](https://docs.gethealthie.com/docs/#environments) in `Environments` section.\n\nPlease note that the extension automatically prefixes the API key with `Basic ` so please provide your raw API key without `Basic ` in front.\n\n# Custom Actions\n\n## Send chat message action\n\nSends a chat message to a patient in name of the provided provider ID. Will create a new conversation if no active conversation between patient and provider exists or sends a message in an existing conversation if there is an active conversation between the two.\n\n## Create patient\n\nCreates a new patient according to the passed fields. After completion the `healthiePatientId` will be exposed as a data point in the care flow.\n\n## Update patient\n\nUpdates a specific patient (defined by the provided `id`) according to the passed fields.\n\n## Apply tag to patient\n\nAdds a tag (existing one, identified by an `id`) to a patient. Although the Healthie API call allows assigning multiple tags per API call, for simplicity of the logic this action can only take one tag as input. Assigning multiple tags is possible by adding multiple actions.\n\n## Remove tag from patient\n\nRemoves a tag (identified by an `id`) from a patient.\n\n## Create charting note\n\nCreates a charting note with the provided `note_content`.\n\n**Prerequisites and set-up:**\n\n1. The form specified by the `form_id` exists in Healthie.\n2. The form specified by the `form_id` is a charting form (click \"Convert to charting form\" in the form options).\n3. The form contains at least one question of type `textarea` (long text answer). The action will write the content of the charting note in the first question of that type it finds in the form.\n\n## Send form completion request\n\nSend a form completion request to the patient. You will need the Healthie patient ID and the ID of the form you would like the patient to complete.\n\nAlthough the Healthie API call allows sending form completion requests to multiple users per API call (see recipient_ids in their docs), we decided that every action only sends one form completion request. This heavily simplifies the logic and better fits our domain model (1-to-1 relationship between patient and pathway). If a user would like to send multiple form completion requests, they you can just add multiple actions.\n\n## Archive patient\n\nArchives a patient with a given `id`.\n\n## Create location\n\nCreates a location. ID of the created location is stored as `locationId` data point.\n\n## Close chat conversation\n\nCloses chat conversation with a given `id` as a provider with the given `provider_id`.\n\n## Delete appointment\n\nDeletes an appointment with a given `id`.\n\n## Cancel appointment\n\nCancels an appointment with a given `id`.\n\n## Get metric entry\n\nRetrieve the most recent metric entry from a given `category`.\n## Create metric entry\n\nCreate a metric entry for a patient in Healthie.\n",
|
44
44
|
"changelog": "# Healthie changelog\n\n## October 2023\n\n- Add \"Update patient quick notes\" action\n- Add \"Create metric entry\" action.\n\n## September 5, 2023\n\n- add Healthie gender to Sex in iso format mapper in `getPatient`\n\n## May 2023\n\n- New webhooks added: `appliedTagCreated`, `appliedTagDeleted`, `appointmentDeleted`, `appointmentUpdated`, `formAnswerGroupCreated`, `formAnswerGroupDeleted`, `formAnswerGroupLocked`, `formAnswerGroupSigned`, `labOrderCreated`, `labOrderUpdated`, `messageCreated`, `messageDeleted`, `metricEntryCreated`, `metricEntryDeleted`, `metricEntryUpdated`, `patientUpdated`, `requestFormCompletionCreated`, `requestFormCompletionDeleted`, `requestFormCompletionUpdated`, `taskCreated`, `taskDeleted`, `taskUpdated`\n\n## April 2023\n\n- Create task action: now also adds support for reminders.\n"
|
45
45
|
},
|
46
46
|
"hello-world": {
|
@@ -91,6 +91,10 @@
|
|
91
91
|
"readme": "---\ntitle: Wellinks\ndescription: The purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n---\n# Wellinks Extension\n\nThe purpose of this extension is to keep application logic out of the Pathways and Tracks. Some actions require interactions with the Healthie API, hence the need for the API URL and Key in the settings.\n\n## Extension Settings\n\nYou will need to provide the API URL and Key for the Wellinks Healthie instance.\n\n# Custom Actions\n\n## Check for Override\n\nChecks to see if the patient in Healthie has an active Override form.\n\n## Check for Scheduled Appointments\n\nChecks to see if the patient in Healthie has an appointment of a specific type scheduled in the future.\n\n## Check for Chat\n\nChecks that a Chat message (either to or from a patient and coach) has happened at least 24 hours after an appointment\n\n## Insert Member List Event\n\nAdds an Insert Member List Event to the Platform Database.\n\n## Check for Flourish Customer\n\nQueries Flourish to see if there is a record that has a matching ThirdPartyIdentifier. Returns True/False.\n\n## Submit a PAM Survey\n\nSubmits a PAM 13 Survey (completed in the Careflow) to Flourish and returns the PAM Score and Levl.",
|
92
92
|
"changelog": "# Wellinks Changelog\n\n## May 18th, 2023\n\nAdded the checkForOverride action.\n\n## May 19th, 2023\n\nAdded the checkForScheduledAppointment action.\n\n## May 25th, 2023\n\nAdded datapoints for actions\n\n\n## July 6th, 2023\n\nAdded new action to unenroll user from Sendgrid.\n\n## July 16th, 2023\n\nAdded a new action to insert a Member Event List to the Platform DB. This requires setting the platform API URL and API Key values for the extension.\n\n## September 12th, 2023\n\nAdds a new action to check Flourish for a customer with a matching ThirdPartyIdentifier.\n\n## September 18th, 2023\n\nAdds a new action to submit a PAM13 survey to Flourish, returning a PAM Score, level, and whether or not the submission was a success.\n\n## September 19th, 2023\n\nAdds a new action to create a customer in Flourish, returning true or false based on whether or not the creation was a success."
|
93
93
|
},
|
94
|
+
"zendesk": {
|
95
|
+
"readme": "---\ntitle: Zendesk\ndescription: Zendesk is a customer service and support platform that provides a suite of tools and software for businesses to manage their customer interactions.\n---\n\n# Zendesk\n\nZendesk is a customer service and support platform that provides a suite of tools and software for businesses to manage their customer interactions. It offers a range of customer service solutions, including help desk ticketing systems, customer support and engagement, and self-service options. Zendesk is designed to help companies streamline their customer support processes, improve communication with their customers, and resolve issues more efficiently.\n\n## Extension settings\n\nIn order to set up this extension, you will need a **sales API token**. You can visit Zendesk Sales CRM dashboard and go to **Settings > Integration > OAuth** to enable and create an API token.\n\n## Custom Actions\n\n### Create task\n\nCreates a new task. You can create either a floating task or create a related task and associate it with one of the resource types: Leads, Contacts, Deals.\n\n### Complete task\n\nMarks a task as completed.\n",
|
96
|
+
"changelog": "# Zendesk changelog\n"
|
97
|
+
},
|
94
98
|
"zusHealth": {
|
95
99
|
"readme": "---\ntitle: Zus Health\ndescription: Zus is the only shared health data platform designed to accelerate healthcare data interoperability by providing easy-to-use patient data at the point of care via API, embedded components, and direct EHR integrations.\n---\n\n# Zus Health\n\n[Zus Health](https://zushealth.com/) is the only shared health data platform designed to accelerate healthcare data interoperability by providing easy-to-use patient data at the point of care via API, embedded components, and direct EHR integrations.\n\n## Zus Health x Awell\n\nThis extension allows you to fetch resource via webhooks\n\n## Extension settings\n\nFor the extension to function correctly, you must include the following elements in your settings:\n\n`client_id` and `client_secret`: These values are generated on the Zus Health platform.\n`base_url`: This determines the base URL for your FHIR endpoint, for example, https://api.sandbox.zusapi.com/fhir.\n`auth_url`: This determines the base URL for your authorization endpoint, for example, https://zus-sandbox.us.auth0.com/oauth/token.\n`audience`: This determines the API hostname, for example, https://api.sandbox.zusapi.com.\n\n## Webhooks\n\nWebhooks offer a great way to listen to updates to resources in Zus and trigger Awell care flows. These updates include ADT feed events for your patient population, and the relevant Encounter data can then be incorporated in the new flow.\n",
|
96
100
|
"changelog": "# Zus Health changelog\n"
|
@@ -0,0 +1,42 @@
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.Zendesk = void 0;
|
27
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
28
|
+
const actions = __importStar(require("./v1/actions"));
|
29
|
+
const settings_1 = require("./settings");
|
30
|
+
exports.Zendesk = {
|
31
|
+
key: 'zendesk',
|
32
|
+
title: 'Zendesk',
|
33
|
+
icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1697013804/Awell%20Extensions/ezgif.com-webp-to-png.png',
|
34
|
+
description: 'Zendesk is a customer service and support platform that provides a suite of tools and software for businesses to manage their customer interactions.',
|
35
|
+
category: extensions_core_1.Category.CUSTOMER_SUPPORT,
|
36
|
+
author: {
|
37
|
+
authorType: extensions_core_1.AuthorType.AWELL,
|
38
|
+
},
|
39
|
+
actions,
|
40
|
+
settings: settings_1.settings,
|
41
|
+
};
|
42
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/zendesk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,mEAAoE;AACpE,sDAAuC;AACvC,yCAAqC;AAExB,QAAA,OAAO,GAAc;IAChC,GAAG,EAAE,SAAS;IACd,KAAK,EAAE,SAAS;IAChB,QAAQ,EACN,4GAA4G;IAC9G,WAAW,EACT,sJAAsJ;IACxJ,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const settings: {
|
3
|
+
salesApiToken: {
|
4
|
+
label: string;
|
5
|
+
key: string;
|
6
|
+
obfuscated: true;
|
7
|
+
required: true;
|
8
|
+
description: string;
|
9
|
+
};
|
10
|
+
};
|
11
|
+
export declare const SettingsValidationSchema: z.ZodObject<{
|
12
|
+
salesApiToken: z.ZodString;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
salesApiToken: string;
|
15
|
+
}, {
|
16
|
+
salesApiToken: string;
|
17
|
+
}>;
|
@@ -0,0 +1,19 @@
|
|
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
|
+
salesApiToken: {
|
7
|
+
label: 'Sales API token',
|
8
|
+
key: 'salesApiToken',
|
9
|
+
obfuscated: true,
|
10
|
+
required: true,
|
11
|
+
description: 'Visit Zendesk Sales CRM dashboard and go to Settings > Integration > OAuth to enable and create an API token',
|
12
|
+
},
|
13
|
+
};
|
14
|
+
exports.SettingsValidationSchema = zod_1.z.object({
|
15
|
+
salesApiToken: zod_1.z.string().nonempty({
|
16
|
+
message: 'Missing "Sales API token" in the extension settings.',
|
17
|
+
}),
|
18
|
+
});
|
19
|
+
//# sourceMappingURL=settings.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/zendesk/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG;IACtB,aAAa,EAAE;QACb,KAAK,EAAE,iBAAiB;QACxB,GAAG,EAAE,eAAe;QACpB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,8GAA8G;KACjH;CACgC,CAAA;AAEtB,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC;QACjC,OAAO,EAAE,sDAAsD;KAChE,CAAC;CACiD,CAAC,CAAA"}
|