@awell-health/awell-extensions 2.0.279 → 2.0.280

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.
@@ -1 +1,2 @@
1
1
  export * from './log';
2
+ export * from './log_two';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./log"), exports);
18
+ __exportStar(require("./log_two"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,4CAAyB"}
@@ -0,0 +1,18 @@
1
+ import { FieldType, type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../settings';
3
+ declare const fields: {
4
+ hello: {
5
+ id: string;
6
+ label: string;
7
+ description: string;
8
+ type: FieldType.STRING;
9
+ };
10
+ };
11
+ declare const dataPoints: {
12
+ world: {
13
+ key: string;
14
+ valueType: "string";
15
+ };
16
+ };
17
+ export declare const logTwo: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
18
+ export {};
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.logTwo = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const extensions_core_2 = require("@awell-health/extensions-core");
6
+ const fields = {
7
+ hello: {
8
+ id: 'hello',
9
+ label: 'Hello',
10
+ description: 'A string field configured at design time',
11
+ type: extensions_core_1.FieldType.STRING,
12
+ },
13
+ };
14
+ const dataPoints = {
15
+ world: {
16
+ key: 'world',
17
+ valueType: 'string',
18
+ },
19
+ };
20
+ exports.logTwo = {
21
+ key: 'log-two',
22
+ category: extensions_core_2.Category.DEMO,
23
+ title: 'Log a second time',
24
+ description: 'This is a dummy Custom Action for extension developers.',
25
+ fields,
26
+ previewable: true,
27
+ dataPoints,
28
+ onActivityCreated: async (payload, onComplete) => {
29
+ const { fields } = payload;
30
+ await onComplete({
31
+ data_points: {
32
+ world: fields.hello,
33
+ },
34
+ });
35
+ },
36
+ };
37
+ //# sourceMappingURL=log_two.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log_two.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/log_two.ts"],"names":[],"mappings":";;;AAAA,mEAKsC;AACtC,mEAAwD;AAGxD,MAAM,MAAM,GAAG;IACb,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,2BAAS,CAAC,MAAM;KACvB;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,KAAK,EAAE;QACL,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,MAAM,GAIf;IACF,GAAG,EAAE,SAAS;IACd,QAAQ,EAAE,0BAAQ,CAAC,IAAI;IACvB,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,yDAAyD;IACtE,MAAM;IACN,WAAW,EAAE,IAAI;IACjB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAiB,EAAE;QAC9D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;QAC1B,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -17,6 +17,7 @@ exports.HelloWorld = {
17
17
  settings: settings_1.settings,
18
18
  actions: {
19
19
  log: actions_1.log,
20
+ logTwo: actions_1.logTwo,
20
21
  },
21
22
  webhooks: webhooks_1.webhooks,
22
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/hello-world/index.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAE/B,yCAAqC;AACrC,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,UAAU,GAAc;IACnC,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,iGAAiG;IACnG,QAAQ,EACN,iGAAiG;IACnG,QAAQ,EAAE,0BAAQ,CAAC,IAAI;IACvB,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,GAAG,EAAH,aAAG;KACJ;IACD,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/hello-world/index.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,yCAAqC;AACrC,yCAAqC;AACrC,mEAAoE;AAEvD,QAAA,UAAU,GAAc;IACnC,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,eAAe;IACtB,WAAW,EACT,iGAAiG;IACnG,QAAQ,EACN,iGAAiG;IACnG,QAAQ,EAAE,0BAAQ,CAAC,IAAI;IACvB,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAE;QACP,GAAG,EAAH,aAAG;QACH,MAAM,EAAN,gBAAM;KACP;IACD,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.279",
3
+ "version": "2.0.280",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {