@awell-health/awell-extensions 1.1.33 → 1.1.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
1
  export declare const dataPoints: {
2
+ stringifiedMedicationData: {
3
+ key: string;
4
+ valueType: "string";
5
+ };
2
6
  medicationData: {
3
7
  key: string;
4
8
  valueType: "json";
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dataPoints = void 0;
4
4
  exports.dataPoints = {
5
+ // This data point should be deprecated but keeping it here for backward compatibility
6
+ stringifiedMedicationData: {
7
+ key: 'stringifiedMedicationData',
8
+ valueType: 'string',
9
+ },
5
10
  medicationData: {
6
11
  key: 'medicationData',
7
12
  valueType: 'json',
@@ -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,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA"}
1
+ {"version":3,"file":"datapoints.js","sourceRoot":"","sources":["../../../../../../../extensions/experimental/v1/actions/enterMedication/config/datapoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,sFAAsF;IACtF,yBAAyB,EAAE;QACzB,GAAG,EAAE,2BAA2B;QAChC,SAAS,EAAE,QAAQ;KACpB;IACD,cAAc,EAAE;QACd,GAAG,EAAE,gBAAgB;QACrB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA"}
@@ -4,7 +4,7 @@ export declare const fields: {
4
4
  label: {
5
5
  id: string;
6
6
  label: string;
7
- type: FieldType.HTML;
7
+ type: FieldType.STRING;
8
8
  required: false;
9
9
  description: string;
10
10
  };
@@ -7,7 +7,7 @@ exports.fields = {
7
7
  label: {
8
8
  id: 'label',
9
9
  label: 'Label',
10
- type: extensions_core_1.FieldType.HTML,
10
+ type: extensions_core_1.FieldType.STRING,
11
11
  required: false,
12
12
  description: 'A label or description that will be shown above the question',
13
13
  },
@@ -1 +1 @@
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,IAAI;QACpB,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"}
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"}
@@ -16,8 +16,8 @@ describe('Experimental - Enter medication', () => {
16
16
  settings: {},
17
17
  });
18
18
  await _1.enterMedication.onActivityCreated(mockOnActivityCreateParams, onComplete, onError);
19
- expect(onError).not.toBeCalled();
20
- expect(onComplete).not.toBeCalled();
19
+ expect(onError).not.toHaveBeenCalled();
20
+ expect(onComplete).not.toHaveBeenCalled();
21
21
  });
22
22
  });
23
23
  //# sourceMappingURL=enterMedication.test.js.map
@@ -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;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"}
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,gBAAgB,EAAE,CAAA;QACtC,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;IAC3C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {