@awell-health/awell-extensions 1.0.115 → 1.0.117
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/docuSign/settings.d.ts +2 -2
- package/dist/extensions/healthie/actions/createMetricEntry/config/fields.d.ts +38 -0
- package/dist/extensions/healthie/actions/createMetricEntry/config/fields.js +34 -0
- package/dist/extensions/healthie/actions/createMetricEntry/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/config/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/config/index.js +7 -0
- package/dist/extensions/healthie/actions/createMetricEntry/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.d.ts +4 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js +81 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.js.map +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.d.ts +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js +35 -0
- package/dist/extensions/healthie/actions/createMetricEntry/createMetricEntry.test.js.map +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/createMetricEntry/index.js +6 -0
- package/dist/extensions/healthie/actions/createMetricEntry/index.js.map +1 -0
- package/dist/extensions/healthie/actions/index.d.ts +43 -9
- 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 +5564 -1707
- package/dist/extensions/healthie/gql/sdk.js +26 -1
- package/dist/extensions/healthie/gql/sdk.js.map +1 -1
- package/dist/extensions/healthie/settings.d.ts +11 -0
- package/dist/extensions/healthie/settings.js +10 -1
- package/dist/extensions/healthie/settings.js.map +1 -1
- package/dist/extensions/iterable/v1/actions/index.d.ts +1 -0
- package/dist/extensions/iterable/v1/actions/index.js +3 -1
- package/dist/extensions/iterable/v1/actions/index.js.map +1 -1
- package/dist/extensions/iterable/v1/actions/sendEmail/sendEmail.test.js +1 -1
- package/dist/extensions/iterable/v1/actions/sendEmail/sendEmail.test.js.map +1 -1
- package/dist/extensions/iterable/v1/actions/trackEvent/config/fields.d.ts +58 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/config/fields.js +61 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/config/fields.js.map +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/config/index.d.ts +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/config/index.js +7 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/config/index.js.map +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/index.d.ts +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/index.js +6 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/index.js.map +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.d.ts +4 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.js +36 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.js.map +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.test.d.ts +1 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.test.js +29 -0
- package/dist/extensions/iterable/v1/actions/trackEvent/trackEvent.test.js.map +1 -0
- package/dist/extensions/iterable/v1/client/client.d.ts +9 -1
- package/dist/extensions/iterable/v1/client/client.js +14 -0
- package/dist/extensions/iterable/v1/client/client.js.map +1 -1
- package/dist/extensions/iterable/v1/client/types.d.ts +11 -0
- package/dist/extensions/markdown.json +3 -3
- package/package.json +1 -1
@@ -51,16 +51,16 @@ export declare const SettingsValidationSchema: z.ZodObject<{
|
|
51
51
|
baseApiUrl: z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>, string, string | undefined>;
|
52
52
|
returnUrlTemplate: z.ZodEffects<z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>, string, string | undefined>;
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
54
|
+
userId: string;
|
54
55
|
integrationKey: string;
|
55
56
|
accountId: string;
|
56
|
-
userId: string;
|
57
57
|
rsaKey: string;
|
58
58
|
baseApiUrl: string;
|
59
59
|
returnUrlTemplate: string;
|
60
60
|
}, {
|
61
|
+
userId: string;
|
61
62
|
integrationKey: string;
|
62
63
|
accountId: string;
|
63
|
-
userId: string;
|
64
64
|
rsaKey: string;
|
65
65
|
baseApiUrl?: string | undefined;
|
66
66
|
returnUrlTemplate?: string | undefined;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
2
|
+
import { z } from 'zod';
|
3
|
+
export declare const fields: {
|
4
|
+
userId: {
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
description: string;
|
8
|
+
type: FieldType.STRING;
|
9
|
+
required: true;
|
10
|
+
};
|
11
|
+
category: {
|
12
|
+
id: string;
|
13
|
+
label: string;
|
14
|
+
description: string;
|
15
|
+
type: FieldType.STRING;
|
16
|
+
required: true;
|
17
|
+
};
|
18
|
+
metricStat: {
|
19
|
+
id: string;
|
20
|
+
label: string;
|
21
|
+
description: string;
|
22
|
+
type: FieldType.NUMERIC;
|
23
|
+
required: true;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
27
|
+
userId: z.ZodString;
|
28
|
+
category: z.ZodString;
|
29
|
+
metricStat: z.ZodNumber;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
category: string;
|
32
|
+
userId: string;
|
33
|
+
metricStat: number;
|
34
|
+
}, {
|
35
|
+
category: string;
|
36
|
+
userId: string;
|
37
|
+
metricStat: number;
|
38
|
+
}>;
|
@@ -0,0 +1,34 @@
|
|
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
|
+
userId: {
|
8
|
+
id: 'userId',
|
9
|
+
label: 'User ID',
|
10
|
+
description: 'The ID of the patient that this entry should be attached to',
|
11
|
+
type: extensions_core_1.FieldType.STRING,
|
12
|
+
required: true,
|
13
|
+
},
|
14
|
+
category: {
|
15
|
+
id: 'category',
|
16
|
+
label: 'Category',
|
17
|
+
description: 'Specifies what kind of metric we are storing',
|
18
|
+
type: extensions_core_1.FieldType.STRING,
|
19
|
+
required: true,
|
20
|
+
},
|
21
|
+
metricStat: {
|
22
|
+
id: 'metricStat',
|
23
|
+
label: 'Metric stat',
|
24
|
+
description: 'The actual data value for the metric',
|
25
|
+
type: extensions_core_1.FieldType.NUMERIC,
|
26
|
+
required: true,
|
27
|
+
},
|
28
|
+
};
|
29
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
30
|
+
userId: zod_1.z.string().nonempty(),
|
31
|
+
category: zod_1.z.string().nonempty(),
|
32
|
+
metricStat: zod_1.z.number(),
|
33
|
+
});
|
34
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createMetricEntry/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,MAAM,EAAE;QACN,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,6DAA6D;QAC1E,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,UAAU,EAAE;QACV,EAAE,EAAE,YAAY;QAChB,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,2BAAS,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CAC2B,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { fields, FieldsValidationSchema } from './fields';
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
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
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/createMetricEntry/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA"}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createMetricEntry = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const extensions_core_2 = require("@awell-health/extensions-core");
|
6
|
+
const zod_1 = require("zod");
|
7
|
+
const zod_validation_error_1 = require("zod-validation-error");
|
8
|
+
const errors_1 = require("../../errors");
|
9
|
+
const sdk_1 = require("../../gql/sdk");
|
10
|
+
const graphqlClient_1 = require("../../graphqlClient");
|
11
|
+
const settings_1 = require("../../settings");
|
12
|
+
const config_1 = require("./config");
|
13
|
+
exports.createMetricEntry = {
|
14
|
+
key: 'createMetricEntry',
|
15
|
+
category: extensions_core_2.Category.EHR_INTEGRATIONS,
|
16
|
+
title: 'Create metric entry',
|
17
|
+
description: 'Create a metric entry for a patient in Healthie.',
|
18
|
+
fields: config_1.fields,
|
19
|
+
previewable: true,
|
20
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
21
|
+
try {
|
22
|
+
const { settings, fields: { userId, category, metricStat }, } = (0, extensions_core_1.validate)({
|
23
|
+
schema: zod_1.z.object({
|
24
|
+
settings: settings_1.settingsValidationSchema,
|
25
|
+
fields: config_1.FieldsValidationSchema,
|
26
|
+
}),
|
27
|
+
payload,
|
28
|
+
});
|
29
|
+
const client = (0, graphqlClient_1.initialiseClient)(settings);
|
30
|
+
if (client != null) {
|
31
|
+
const sdk = (0, sdk_1.getSdk)(client);
|
32
|
+
await sdk.createEntry({
|
33
|
+
metric_stat: String(metricStat),
|
34
|
+
user_id: userId,
|
35
|
+
type: 'MetricEntry',
|
36
|
+
category,
|
37
|
+
});
|
38
|
+
await onComplete({});
|
39
|
+
}
|
40
|
+
}
|
41
|
+
catch (err) {
|
42
|
+
if (err instanceof zod_1.ZodError) {
|
43
|
+
const error = (0, zod_validation_error_1.fromZodError)(err);
|
44
|
+
await onError({
|
45
|
+
events: [
|
46
|
+
{
|
47
|
+
date: new Date().toISOString(),
|
48
|
+
text: { en: error.message },
|
49
|
+
error: {
|
50
|
+
category: 'WRONG_INPUT',
|
51
|
+
message: error.message,
|
52
|
+
},
|
53
|
+
},
|
54
|
+
],
|
55
|
+
});
|
56
|
+
}
|
57
|
+
else if (err instanceof errors_1.HealthieError) {
|
58
|
+
const errors = (0, errors_1.mapHealthieToActivityError)(err.errors);
|
59
|
+
await onError({
|
60
|
+
events: errors,
|
61
|
+
});
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
const error = err;
|
65
|
+
await onError({
|
66
|
+
events: [
|
67
|
+
{
|
68
|
+
date: new Date().toISOString(),
|
69
|
+
text: { en: 'Healthie API reported an error' },
|
70
|
+
error: {
|
71
|
+
category: 'SERVER_ERROR',
|
72
|
+
message: error.message,
|
73
|
+
},
|
74
|
+
},
|
75
|
+
],
|
76
|
+
});
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
};
|
81
|
+
//# sourceMappingURL=createMetricEntry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createMetricEntry.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createMetricEntry/createMetricEntry.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,mEAAwD;AACxD,6BAAiC;AACjC,+DAAmD;AACnD,yCAAwE;AACxE,uCAAsC;AACtC,uDAAsD;AACtD,6CAAwE;AACxE,qCAAyD;AAE5C,QAAA,iBAAiB,GAA2C;IACvE,GAAG,EAAE,mBAAmB;IACxB,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,kDAAkD;IAC/D,MAAM,EAAN,eAAM;IACN,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,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GACzC,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,EAAC,MAAM,CAAC,CAAA;gBAC1B,MAAM,GAAG,CAAC,WAAW,CAAC;oBACpB,WAAW,EAAE,MAAM,CAAC,UAAU,CAAC;oBAC/B,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,aAAa;oBACnB,QAAQ;iBACT,CAAC,CAAA;gBACF,MAAM,UAAU,CAAC,EAAE,CAAC,CAAA;aACrB;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,GAAG,YAAY,cAAQ,EAAE;gBAC3B,MAAM,KAAK,GAAG,IAAA,mCAAY,EAAC,GAAG,CAAC,CAAA;gBAC/B,MAAM,OAAO,CAAC;oBACZ,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;4BAC9B,IAAI,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,EAAE;4BAC3B,KAAK,EAAE;gCACL,QAAQ,EAAE,aAAa;gCACvB,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,35 @@
|
|
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 createMetricEntry_1 = require("../createMetricEntry");
|
7
|
+
jest.mock('../../gql/sdk');
|
8
|
+
jest.mock('../../graphqlClient');
|
9
|
+
describe('createMetricEntry action', () => {
|
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 create a metric entry', async () => {
|
20
|
+
await createMetricEntry_1.createMetricEntry.onActivityCreated((0, tests_1.generateTestPayload)({
|
21
|
+
fields: {
|
22
|
+
userId: '60',
|
23
|
+
category: 'Weight',
|
24
|
+
metricStat: 182,
|
25
|
+
},
|
26
|
+
settings: {
|
27
|
+
apiKey: 'apiKey',
|
28
|
+
apiUrl: 'test-url',
|
29
|
+
},
|
30
|
+
}), onComplete, onError);
|
31
|
+
expect(onComplete).toBeCalledTimes(1);
|
32
|
+
expect(onError).toBeCalledTimes(0);
|
33
|
+
});
|
34
|
+
});
|
35
|
+
//# sourceMappingURL=createMetricEntry.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"createMetricEntry.test.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createMetricEntry/createMetricEntry.test.ts"],"names":[],"mappings":";;AAAA,iDAA2D;AAC3D,uCAAsC;AACtC,iDAAoD;AACpD,4DAAwD;AAExD,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;AAC1B,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;AAEhC,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,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,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,qCAAiB,CAAC,iBAAiB,CACvC,IAAA,2BAAmB,EAAC;YAClB,MAAM,EAAE;gBACN,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,GAAG;aAChB;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,QAAQ;gBAChB,MAAM,EAAE,UAAU;aACnB;SACF,CAAC,EACF,UAAU,EACV,OAAO,CACR,CAAA;QACD,MAAM,CAAC,UAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;IACpC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { createMetricEntry } from './createMetricEntry';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.createMetricEntry = void 0;
|
4
|
+
var createMetricEntry_1 = require("./createMetricEntry");
|
5
|
+
Object.defineProperty(exports, "createMetricEntry", { enumerable: true, get: function () { return createMetricEntry_1.createMetricEntry; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/createMetricEntry/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
|
@@ -90,7 +90,10 @@ export declare const actions: {
|
|
90
90
|
};
|
91
91
|
reminderIntervalValue: {
|
92
92
|
id: string;
|
93
|
-
label: string;
|
93
|
+
label: string; /**
|
94
|
+
* There is bug in Healthie that prevents linking an address with a patient
|
95
|
+
* Waiting for fix
|
96
|
+
**/
|
94
97
|
description: string;
|
95
98
|
type: import("@awell-health/extensions-core").FieldType.STRING;
|
96
99
|
required: false;
|
@@ -255,10 +258,6 @@ export declare const actions: {
|
|
255
258
|
description: string;
|
256
259
|
type: import("@awell-health/extensions-core").FieldType.BOOLEAN;
|
257
260
|
};
|
258
|
-
/**
|
259
|
-
* Specs of this API endpoint are unclear so we are not sure what
|
260
|
-
* functional value it delivers in the current state. Needs to be revisited.
|
261
|
-
**/
|
262
261
|
provider_id: {
|
263
262
|
id: string;
|
264
263
|
label: string;
|
@@ -538,10 +537,7 @@ export declare const actions: {
|
|
538
537
|
description: string;
|
539
538
|
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
540
539
|
required: false;
|
541
|
-
};
|
542
|
-
* There is bug in Healthie that prevents linking an address with a patient
|
543
|
-
* Waiting for fix
|
544
|
-
**/
|
540
|
+
};
|
545
541
|
minute: {
|
546
542
|
id: string;
|
547
543
|
label: string;
|
@@ -776,4 +772,42 @@ export declare const actions: {
|
|
776
772
|
description: string;
|
777
773
|
};
|
778
774
|
}, string, never>;
|
775
|
+
createMetricEntry: import("@awell-health/extensions-core").Action<{
|
776
|
+
userId: {
|
777
|
+
id: string;
|
778
|
+
label: string;
|
779
|
+
description: string;
|
780
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
781
|
+
required: true;
|
782
|
+
};
|
783
|
+
category: {
|
784
|
+
id: string;
|
785
|
+
label: string;
|
786
|
+
description: string;
|
787
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
788
|
+
required: true;
|
789
|
+
};
|
790
|
+
metricStat: {
|
791
|
+
id: string;
|
792
|
+
label: string;
|
793
|
+
description: string;
|
794
|
+
type: import("@awell-health/extensions-core").FieldType.NUMERIC;
|
795
|
+
required: true;
|
796
|
+
};
|
797
|
+
}, {
|
798
|
+
apiUrl: {
|
799
|
+
key: string;
|
800
|
+
label: string;
|
801
|
+
obfuscated: false;
|
802
|
+
required: true;
|
803
|
+
description: string;
|
804
|
+
};
|
805
|
+
apiKey: {
|
806
|
+
key: string;
|
807
|
+
label: string;
|
808
|
+
obfuscated: true;
|
809
|
+
required: true;
|
810
|
+
description: string;
|
811
|
+
};
|
812
|
+
}, string, never>;
|
779
813
|
};
|
@@ -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 createMetricEntry_1 = require("./createMetricEntry");
|
23
24
|
exports.actions = {
|
24
25
|
createAppointment: createAppointment_1.createAppointment,
|
25
26
|
createTask: createTask_1.createTask,
|
@@ -49,5 +50,6 @@ exports.actions = {
|
|
49
50
|
deleteTask: deleteTask_1.deleteTask,
|
50
51
|
completeTask: completeTask_1.completeTask,
|
51
52
|
assignPatientToGroup: assignPatientToGroup_1.assignPatientToGroup,
|
53
|
+
createMetricEntry: createMetricEntry_1.createMetricEntry,
|
52
54
|
};
|
53
55
|
//# sourceMappingURL=index.js.map
|
@@ -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;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;
|
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,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,iBAAiB,EAAjB,qCAAiB;CAClB,CAAA"}
|