@awell-health/awell-extensions 1.1.32 → 1.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/experimental/v1/actions/enterMedication/config/datapoints.d.ts +2 -2
- package/dist/extensions/experimental/v1/actions/enterMedication/config/datapoints.js +3 -3
- package/dist/extensions/experimental/v1/actions/enterMedication/config/datapoints.js.map +1 -1
- package/dist/extensions/experimental/v1/actions/enterMedication/config/fields.d.ts +17 -2
- package/dist/extensions/experimental/v1/actions/enterMedication/config/fields.js +13 -2
- package/dist/extensions/experimental/v1/actions/enterMedication/config/fields.js.map +1 -1
- package/dist/extensions/experimental/v1/actions/enterMedication/enterMedication.test.js +3 -1
- package/dist/extensions/experimental/v1/actions/enterMedication/enterMedication.test.js.map +1 -1
- package/package.json +1 -1
@@ -2,9 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.dataPoints = void 0;
|
4
4
|
exports.dataPoints = {
|
5
|
-
|
6
|
-
key: '
|
7
|
-
valueType: '
|
5
|
+
medicationData: {
|
6
|
+
key: 'medicationData',
|
7
|
+
valueType: 'json',
|
8
8
|
},
|
9
9
|
};
|
10
10
|
//# sourceMappingURL=datapoints.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../../extensions/experimental/v1/actions/enterMedication/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,
|
1
|
+
{"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../../extensions/experimental/v1/actions/enterMedication/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA"}
|
@@ -1,3 +1,18 @@
|
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
1
2
|
import { z } from 'zod';
|
2
|
-
export declare const fields: {
|
3
|
-
|
3
|
+
export declare const fields: {
|
4
|
+
label: {
|
5
|
+
id: string;
|
6
|
+
label: string;
|
7
|
+
type: FieldType.STRING;
|
8
|
+
required: false;
|
9
|
+
description: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
export declare const FieldsValidationSchema: z.ZodObject<{
|
13
|
+
label: z.ZodOptional<z.ZodString>;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
label?: string | undefined;
|
16
|
+
}, {
|
17
|
+
label?: string | undefined;
|
18
|
+
}>;
|
@@ -1,7 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.FieldsValidationSchema = exports.fields = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
4
5
|
const zod_1 = require("zod");
|
5
|
-
exports.fields = {
|
6
|
-
|
6
|
+
exports.fields = {
|
7
|
+
label: {
|
8
|
+
id: 'label',
|
9
|
+
label: 'Label',
|
10
|
+
type: extensions_core_1.FieldType.STRING,
|
11
|
+
required: false,
|
12
|
+
description: 'A label or description that will be shown above the question',
|
13
|
+
},
|
14
|
+
};
|
15
|
+
exports.FieldsValidationSchema = zod_1.z.object({
|
16
|
+
label: zod_1.z.string().optional(),
|
17
|
+
});
|
7
18
|
//# sourceMappingURL=fields.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/experimental/v1/actions/enterMedication/config/fields.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/experimental/v1/actions/enterMedication/config/fields.ts"],"names":[],"mappings":";;;AAAA,mEAAqE;AACrE,6BAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;KAC5E;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACqB,CAAC,CAAA"}
|
@@ -10,7 +10,9 @@ describe('Experimental - Enter medication', () => {
|
|
10
10
|
});
|
11
11
|
test('Should work', async () => {
|
12
12
|
const mockOnActivityCreateParams = (0, tests_1.generateTestPayload)({
|
13
|
-
fields: {
|
13
|
+
fields: {
|
14
|
+
label: '<p>Test</p>',
|
15
|
+
},
|
14
16
|
settings: {},
|
15
17
|
});
|
16
18
|
await _1.enterMedication.onActivityCreated(mockOnActivityCreateParams, onComplete, onError);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enterMedication.test.js","sourceRoot":"","sources":["../../../../../../extensions/experimental/v1/actions/enterMedication/enterMedication.test.ts"],"names":[],"mappings":";;AAAA,wBAAmC;AACnC,oDAA8D;AAE9D,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,0BAA0B,GAAG,IAAA,2BAAmB,EAAC;YACrD,MAAM,EAAE,EAAE;
|
1
|
+
{"version":3,"file":"enterMedication.test.js","sourceRoot":"","sources":["../../../../../../extensions/experimental/v1/actions/enterMedication/enterMedication.test.ts"],"names":[],"mappings":";;AAAA,wBAAmC;AACnC,oDAA8D;AAE9D,QAAQ,CAAC,iCAAiC,EAAE,GAAG,EAAE;IAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;QAC7B,MAAM,0BAA0B,GAAG,IAAA,2BAAmB,EAAC;YACrD,MAAM,EAAE;gBACN,KAAK,EAAE,aAAa;aACrB;YACD,QAAQ,EAAE,EAAE;SACb,CAAC,CAAA;QAEF,MAAM,kBAAe,CAAC,iBAAiB,CACrC,0BAA0B,EAC1B,UAAU,EACV,OAAO,CACR,CAAA;QAED,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;QAChC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|