@awell-health/awell-extensions 2.1.65 → 2.1.66

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.
Files changed (24) hide show
  1. package/dist/extensions/awell/index.js +1 -0
  2. package/dist/extensions/awell/index.js.map +1 -1
  3. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/dataPoints.d.ts +10 -0
  4. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/dataPoints.js +14 -0
  5. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/dataPoints.js.map +1 -0
  6. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/fields.d.ts +3 -0
  7. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/fields.js +7 -0
  8. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/fields.js.map +1 -0
  9. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/index.d.ts +3 -0
  10. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/index.js +11 -0
  11. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/index.js.map +1 -0
  12. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/pathway.d.ts +11 -0
  13. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/pathway.js +9 -0
  14. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/config/pathway.js.map +1 -0
  15. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/getCurrentCareflowId.d.ts +4 -0
  16. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/getCurrentCareflowId.js +30 -0
  17. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/getCurrentCareflowId.js.map +1 -0
  18. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/index.d.ts +1 -0
  19. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/index.js +6 -0
  20. package/dist/extensions/awell/v1/actions/getCurrentCareflowId/index.js.map +1 -0
  21. package/dist/extensions/awell/v1/actions/index.d.ts +1 -0
  22. package/dist/extensions/awell/v1/actions/index.js +3 -1
  23. package/dist/extensions/awell/v1/actions/index.js.map +1 -1
  24. package/package.json +1 -1
@@ -32,6 +32,7 @@ exports.Awell = {
32
32
  getDataPointValue: actions_1.getDataPointValue,
33
33
  listFormAnswers: actions_1.listFormAnswers,
34
34
  createNaviSession: actions_1.createNaviSession,
35
+ getCurrentCareflowId: actions_1.getCurrentCareflowId,
35
36
  },
36
37
  webhooks: webhooks_1.webhooks,
37
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/awell/index.ts"],"names":[],"mappings":";;;AAAA,0CAiBqB;AAErB,yCAAqC;AACrC,4CAAwC;AACxC,mEAAoE;AAEvD,QAAA,KAAK,GAAc;IAC9B,GAAG,EAAE,OAAO;IACZ,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EACN,iGAAiG;IACnG,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,sBAAsB,EAAtB,gCAAsB;QACtB,sBAAsB,EAAtB,gCAAsB;QACtB,aAAa,EAAb,uBAAa;QACb,aAAa,EAAb,uBAAa;QACb,YAAY,EAAZ,sBAAY;QACZ,SAAS,EAAT,mBAAS;QACT,2BAA2B,EAA3B,qCAA2B;QAC3B,2BAA2B,EAA3B,qCAA2B;QAC3B,wBAAwB,EAAxB,kCAAwB;QACxB,kBAAkB,EAAlB,4BAAkB;QAClB,uBAAuB,EAAvB,iCAAuB;QACvB,uBAAuB,EAAvB,iCAAuB;QACvB,iBAAiB,EAAjB,2BAAiB;QACjB,eAAe,EAAf,yBAAe;QACf,iBAAiB,EAAjB,2BAAiB;KAClB;IACD,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/awell/index.ts"],"names":[],"mappings":";;;AAAA,0CAkBqB;AAErB,yCAAqC;AACrC,4CAAwC;AACxC,mEAAoE;AAEvD,QAAA,KAAK,GAAc;IAC9B,GAAG,EAAE,OAAO;IACZ,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EACN,iGAAiG;IACnG,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,sBAAsB,EAAtB,gCAAsB;QACtB,sBAAsB,EAAtB,gCAAsB;QACtB,aAAa,EAAb,uBAAa;QACb,aAAa,EAAb,uBAAa;QACb,YAAY,EAAZ,sBAAY;QACZ,SAAS,EAAT,mBAAS;QACT,2BAA2B,EAA3B,qCAA2B;QAC3B,2BAA2B,EAA3B,qCAA2B;QAC3B,wBAAwB,EAAxB,kCAAwB;QACxB,kBAAkB,EAAlB,4BAAkB;QAClB,uBAAuB,EAAvB,iCAAuB;QACvB,uBAAuB,EAAvB,iCAAuB;QACvB,iBAAiB,EAAjB,2BAAiB;QACjB,eAAe,EAAf,yBAAe;QACf,iBAAiB,EAAjB,2BAAiB;QACjB,oBAAoB,EAApB,8BAAoB;KACrB;IACD,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
@@ -0,0 +1,10 @@
1
+ export declare const dataPoints: {
2
+ careFlowId: {
3
+ key: string;
4
+ valueType: "string";
5
+ };
6
+ careFlowDefinitionId: {
7
+ key: string;
8
+ valueType: "string";
9
+ };
10
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ careFlowId: {
6
+ key: 'careFlowId',
7
+ valueType: 'string',
8
+ },
9
+ careFlowDefinitionId: {
10
+ key: 'careFlowDefinitionId',
11
+ valueType: 'string',
12
+ },
13
+ };
14
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,UAAU,EAAE;QACV,GAAG,EAAE,YAAY;QACjB,SAAS,EAAE,QAAQ;KACpB;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const fields: {};
3
+ export declare const FieldsValidationSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsValidationSchema = exports.fields = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.fields = {};
6
+ exports.FieldsValidationSchema = zod_1.z.object({});
7
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/config/fields.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,MAAM,GAAG,EAAkC,CAAA;AAE3C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAoD,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { fields, FieldsValidationSchema } from './fields';
2
+ export { PathwayValidationSchema } from './pathway';
3
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.PathwayValidationSchema = 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 pathway_1 = require("./pathway");
8
+ Object.defineProperty(exports, "PathwayValidationSchema", { enumerable: true, get: function () { return pathway_1.PathwayValidationSchema; } });
9
+ var dataPoints_1 = require("./dataPoints");
10
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,qCAAmD;AAA1C,kHAAA,uBAAuB,OAAA;AAChC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const PathwayValidationSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ definition_id: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ id: string;
7
+ definition_id: string;
8
+ }, {
9
+ id: string;
10
+ definition_id: string;
11
+ }>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PathwayValidationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PathwayValidationSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ definition_id: zod_1.z.string(),
8
+ });
9
+ //# sourceMappingURL=pathway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathway.js","sourceRoot":"","sources":["../../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/config/pathway.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../../settings';
3
+ import { fields } from './config';
4
+ export declare const getCurrentCareflowId: Action<typeof fields, typeof settings>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCurrentCareflowId = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const config_1 = require("./config");
6
+ const zod_1 = require("zod");
7
+ exports.getCurrentCareflowId = {
8
+ key: 'getCurrentCareflowId',
9
+ category: extensions_core_1.Category.WORKFLOW,
10
+ title: 'Get current care flow ID',
11
+ description: 'Get the current care flow ID',
12
+ fields: config_1.fields,
13
+ dataPoints: config_1.dataPoints,
14
+ previewable: false, // We don't have pathways in Preview, only cases.
15
+ onEvent: async ({ payload, onComplete, helpers }) => {
16
+ const { pathway: { id: currentCareflowId, definition_id: currentCareflowDefinitionId }, } = (0, extensions_core_1.validate)({
17
+ schema: zod_1.z.object({
18
+ pathway: config_1.PathwayValidationSchema,
19
+ }),
20
+ payload,
21
+ });
22
+ await onComplete({
23
+ data_points: {
24
+ careFlowId: currentCareflowId,
25
+ careFlowDefinitionId: currentCareflowDefinitionId,
26
+ },
27
+ });
28
+ },
29
+ };
30
+ //# sourceMappingURL=getCurrentCareflowId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentCareflowId.js","sourceRoot":"","sources":["../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/getCurrentCareflowId.ts"],"names":[],"mappings":";;;AAEA,mEAAkE;AAClE,qCAIiB;AACjB,6BAAuB;AAEV,QAAA,oBAAoB,GAA2C;IAC1E,GAAG,EAAE,sBAAsB;IAC3B,QAAQ,EAAE,0BAAQ,CAAC,QAAQ;IAC3B,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,8BAA8B;IAChC,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,mBAAU;IACV,WAAW,EAAE,KAAK,EAAE,iDAAiD;IACrE,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAiB,EAAE;QACjE,MAAM,EACJ,OAAO,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,2BAA2B,EAAE,GAC/E,GAAG,IAAA,0BAAQ,EAAC;YACX,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;gBACf,OAAO,EAAE,gCAAuB;aACjC,CAAC;YACF,OAAO;SACR,CAAC,CAAA;QAEF,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,UAAU,EAAE,iBAAiB;gBAC7B,oBAAoB,EAAE,2BAA2B;aAClD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export { getCurrentCareflowId } from './getCurrentCareflowId';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCurrentCareflowId = void 0;
4
+ var getCurrentCareflowId_1 = require("./getCurrentCareflowId");
5
+ Object.defineProperty(exports, "getCurrentCareflowId", { enumerable: true, get: function () { return getCurrentCareflowId_1.getCurrentCareflowId; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/awell/v1/actions/getCurrentCareflowId/index.ts"],"names":[],"mappings":";;;AAAA,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA"}
@@ -14,3 +14,4 @@ export { startCareFlowAndSession } from './startCareFlowAndSession';
14
14
  export { getDataPointValue } from './getDataPointValue';
15
15
  export { listFormAnswers } from './listFormAnswers';
16
16
  export { createNaviSession } from './createNaviSession';
17
+ export { getCurrentCareflowId } from './getCurrentCareflowId';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNaviSession = exports.listFormAnswers = exports.getDataPointValue = exports.startCareFlowAndSession = exports.startHostedPagesSession = exports.addIdentifierToPatient = exports.getPatientByIdentifier = exports.updateBaselineInfo = exports.isPatientEnrolledInTrack = exports.isPatientEnrolledInCareFlow = exports.searchPatientsByPatientCode = exports.stopTrack = exports.stopCareFlow = exports.updatePatient = exports.startCareFlow = exports.addAdhocTrack = void 0;
3
+ exports.getCurrentCareflowId = exports.createNaviSession = exports.listFormAnswers = exports.getDataPointValue = exports.startCareFlowAndSession = exports.startHostedPagesSession = exports.addIdentifierToPatient = exports.getPatientByIdentifier = exports.updateBaselineInfo = exports.isPatientEnrolledInTrack = exports.isPatientEnrolledInCareFlow = exports.searchPatientsByPatientCode = exports.stopTrack = exports.stopCareFlow = exports.updatePatient = exports.startCareFlow = exports.addAdhocTrack = void 0;
4
4
  var addAdhocTrack_1 = require("./addAdhocTrack");
5
5
  Object.defineProperty(exports, "addAdhocTrack", { enumerable: true, get: function () { return addAdhocTrack_1.addAdhocTrack; } });
6
6
  var startCareFlow_1 = require("./startCareFlow");
@@ -33,4 +33,6 @@ var listFormAnswers_1 = require("./listFormAnswers");
33
33
  Object.defineProperty(exports, "listFormAnswers", { enumerable: true, get: function () { return listFormAnswers_1.listFormAnswers; } });
34
34
  var createNaviSession_1 = require("./createNaviSession");
35
35
  Object.defineProperty(exports, "createNaviSession", { enumerable: true, get: function () { return createNaviSession_1.createNaviSession; } });
36
+ var getCurrentCareflowId_1 = require("./getCurrentCareflowId");
37
+ Object.defineProperty(exports, "getCurrentCareflowId", { enumerable: true, get: function () { return getCurrentCareflowId_1.getCurrentCareflowId; } });
36
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/awell/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;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AA;AAChC,qEAAmE;AAA1D,kIAAA,uBAAuB,OAAA;AAChC,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.1.65",
3
+ "version": "2.1.66",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {