@awell-health/awell-extensions 2.0.64 → 2.0.65
Sign up to get free protection for your applications and to get access to all the features.
- 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/actions/lockFormAnswer/config/datapoints.d.ts +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/datapoints.js +5 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/datapoints.js.map +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/fields.d.ts +18 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/fields.js +21 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/fields.js.map +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/index.d.ts +2 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/index.js +9 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/config/index.js.map +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/index.d.ts +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/index.js +6 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/index.js.map +1 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/lockFormAnswerGroup.d.ts +4 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/lockFormAnswerGroup.js +35 -0
- package/dist/extensions/healthie/actions/lockFormAnswer/lockFormAnswerGroup.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.d.ts +931 -26
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js +141 -14
- package/dist/extensions/healthie/lib/sdk/genql/generated/schema.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.d.ts +295 -4
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js +10271 -9543
- package/dist/extensions/healthie/lib/sdk/genql/generated/types.js.map +1 -1
- package/package.json +1 -1
@@ -1147,4 +1147,28 @@ export declare const actions: {
|
|
1147
1147
|
description: string;
|
1148
1148
|
};
|
1149
1149
|
}, "formAnswerGroupId">;
|
1150
|
+
lockFormAnswerGroup: import("@awell-health/extensions-core").Action<{
|
1151
|
+
id: {
|
1152
|
+
id: string;
|
1153
|
+
label: string;
|
1154
|
+
description: string;
|
1155
|
+
type: import("@awell-health/extensions-core").FieldType.STRING;
|
1156
|
+
required: true;
|
1157
|
+
};
|
1158
|
+
}, {
|
1159
|
+
apiUrl: {
|
1160
|
+
key: string;
|
1161
|
+
label: string;
|
1162
|
+
obfuscated: false;
|
1163
|
+
required: true;
|
1164
|
+
description: string;
|
1165
|
+
};
|
1166
|
+
apiKey: {
|
1167
|
+
key: string;
|
1168
|
+
label: string;
|
1169
|
+
obfuscated: true;
|
1170
|
+
required: true;
|
1171
|
+
description: string;
|
1172
|
+
};
|
1173
|
+
}, string>;
|
1150
1174
|
};
|
@@ -30,6 +30,7 @@ const createGoal_1 = require("./createGoal");
|
|
30
30
|
const deleteGoal_1 = require("./deleteGoal");
|
31
31
|
const getSetPasswordLink_1 = require("./getSetPasswordLink");
|
32
32
|
const dataExchange_1 = require("./dataExchange");
|
33
|
+
const lockFormAnswer_1 = require("./lockFormAnswer");
|
33
34
|
exports.actions = {
|
34
35
|
deleteGoal: deleteGoal_1.deleteGoal,
|
35
36
|
getSetPasswordLink: getSetPasswordLink_1.getSetPasswordLink,
|
@@ -70,5 +71,6 @@ exports.actions = {
|
|
70
71
|
getFormAnswers: getFormAnswers_1.getFormAnswers,
|
71
72
|
pushFormResponseToHealthie: dataExchange_1.pushFormResponseToHealthie,
|
72
73
|
pushFormResponsesToHealthie: dataExchange_1.pushFormResponsesToHealthie,
|
74
|
+
lockFormAnswerGroup: lockFormAnswer_1.lockFormAnswerGroup,
|
73
75
|
};
|
74
76
|
//# 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;AACvD,qDAAiD;AACjD,qEAAiE;AACjE,2DAAuD;AACvD,uDAAmD;AACnD,6EAAyE;AACzE,qDAAiD;AACjD,6CAAyC;AACzC,6CAAyC;AACzC,6DAAyD;AACzD,iDAGuB;
|
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;AACvD,uDAAmD;AACnD,6EAAyE;AACzE,qDAAiD;AACjD,6CAAyC;AACzC,6CAAyC;AACzC,6DAAyD;AACzD,iDAGuB;AACvB,qDAAsD;AAEzC,QAAA,OAAO,GAAG;IACrB,UAAU,EAAV,uBAAU;IACV,kBAAkB,EAAlB,uCAAkB;IAClB,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,UAAU,EAAV,uBAAU;IACV;;;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;IACjB,eAAe,EAAf,iCAAe;IACf,0BAA0B,EAA1B,uDAA0B;IAC1B,cAAc,EAAd,+BAAc;IACd,0BAA0B,EAA1B,yCAA0B;IAC1B,2BAA2B,EAA3B,0CAA2B;IAC3B,mBAAmB,EAAnB,oCAAmB;CACpB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const dataPoints: {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/lockFormAnswer/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG,EAAgD,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FieldType } from '@awell-health/extensions-core';
|
2
|
+
import z from 'zod';
|
3
|
+
export declare const fields: {
|
4
|
+
id: {
|
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
|
+
id: z.ZodString;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
id: string;
|
16
|
+
}, {
|
17
|
+
id: string;
|
18
|
+
}>;
|
@@ -0,0 +1,21 @@
|
|
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.FieldsValidationSchema = exports.fields = void 0;
|
7
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
9
|
+
exports.fields = {
|
10
|
+
id: {
|
11
|
+
id: 'id',
|
12
|
+
label: 'ID',
|
13
|
+
description: 'The ID of the form answer group to lock (prevents further editing)',
|
14
|
+
type: extensions_core_1.FieldType.STRING,
|
15
|
+
required: true,
|
16
|
+
},
|
17
|
+
};
|
18
|
+
exports.FieldsValidationSchema = zod_1.default.object({
|
19
|
+
id: zod_1.default.string().min(1),
|
20
|
+
});
|
21
|
+
//# sourceMappingURL=fields.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/healthie/actions/lockFormAnswer/config/fields.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAqE;AACrE,8CAAwC;AAE3B,QAAA,MAAM,GAAG;IACpB,EAAE,EAAE;QACF,EAAE,EAAE,IAAI;QACR,KAAK,EAAE,IAAI;QACX,WAAW,EACT,oEAAoE;QACtE,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC4B,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/lockFormAnswer/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { lockFormAnswerGroup } from './lockFormAnswerGroup';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lockFormAnswerGroup = void 0;
|
4
|
+
var lockFormAnswerGroup_1 = require("./lockFormAnswerGroup");
|
5
|
+
Object.defineProperty(exports, "lockFormAnswerGroup", { enumerable: true, get: function () { return lockFormAnswerGroup_1.lockFormAnswerGroup; } });
|
6
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/lockFormAnswer/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,0HAAA,mBAAmB,OAAA"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lockFormAnswerGroup = void 0;
|
4
|
+
const extensions_core_1 = require("@awell-health/extensions-core");
|
5
|
+
const config_1 = require("./config");
|
6
|
+
const validatePayloadAndCreateSdk_1 = require("../../lib/sdk/validatePayloadAndCreateSdk");
|
7
|
+
exports.lockFormAnswerGroup = {
|
8
|
+
key: 'lockFormAnswerGroup',
|
9
|
+
category: extensions_core_1.Category.EHR_INTEGRATIONS,
|
10
|
+
title: 'Lock form answers',
|
11
|
+
description: 'Lock form answers from form answer group to prevent further editing',
|
12
|
+
fields: config_1.fields,
|
13
|
+
previewable: true,
|
14
|
+
dataPoints: config_1.dataPoints,
|
15
|
+
onActivityCreated: async (payload, onComplete, onError) => {
|
16
|
+
const { fields, healthieSdk } = await (0, validatePayloadAndCreateSdk_1.validatePayloadAndCreateSdk)({
|
17
|
+
fieldsSchema: config_1.FieldsValidationSchema,
|
18
|
+
payload,
|
19
|
+
});
|
20
|
+
await healthieSdk.client.mutation({
|
21
|
+
lockFormAnswerGroup: {
|
22
|
+
__args: {
|
23
|
+
input: {
|
24
|
+
id: fields.id,
|
25
|
+
},
|
26
|
+
},
|
27
|
+
form_answer_group: {
|
28
|
+
id: true,
|
29
|
+
},
|
30
|
+
},
|
31
|
+
});
|
32
|
+
await onComplete();
|
33
|
+
},
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=lockFormAnswerGroup.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lockFormAnswerGroup.js","sourceRoot":"","sources":["../../../../../extensions/healthie/actions/lockFormAnswer/lockFormAnswerGroup.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AAExD,qCAAqE;AACrE,2FAAuF;AAE1E,QAAA,mBAAmB,GAA2C;IACzE,GAAG,EAAE,qBAAqB;IAC1B,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EACT,qEAAqE;IACvE,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,IAAI;IACjB,UAAU,EAAV,mBAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAiB,EAAE;QACvE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,yDAA2B,EAAC;YAChE,YAAY,EAAE,+BAAsB;YACpC,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC;YAChC,mBAAmB,EAAE;gBACnB,MAAM,EAAE;oBACN,KAAK,EAAE;wBACL,EAAE,EAAE,MAAM,CAAC,EAAE;qBACd;iBACF;gBACD,iBAAiB,EAAE;oBACjB,EAAE,EAAE,IAAI;iBACT;aACF;SACF,CAAC,CAAA;QAEF,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
|