@awell-health/awell-extensions 2.0.330 → 2.0.331-beta.0

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.
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import type { ComponentProps } from "@awell-health/extensions-core";
3
+ declare const FrontendComponent: React.FC<ComponentProps>;
4
+ export default FrontendComponent;
@@ -0,0 +1,13 @@
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
+ const jsx_runtime_1 = require("react/jsx-runtime");
7
+ const react_1 = __importDefault(require("react"));
8
+ const FrontendComponent = ({ activityDetails, onSubmit }) => {
9
+ const [value, setValue] = react_1.default.useState('');
10
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { children: ["Completing activity id: ", activityDetails.activity_id] }), (0, jsx_runtime_1.jsx)("pre", { children: JSON.stringify(activityDetails, null, 2) }), (0, jsx_runtime_1.jsx)("input", { type: "text", value: value, onChange: (e) => { setValue(e.target.value); } }), (0, jsx_runtime_1.jsx)("button", { onClick: () => { void onSubmit(activityDetails.activity_id, [{ key: 'world', value: String(value) }]); }, children: "Submit" })] }));
11
+ };
12
+ exports.default = FrontendComponent;
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../components/hello-world/frontend/index.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,MAAM,iBAAiB,GAA6B,CAAC,EACnD,eAAe,EACf,QAAQ,EACT,EAAE,EAAE;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IAC5C,OAAO,CACL,4CACE,wEAA8B,eAAe,CAAC,WAAW,IAAO,EAChE,0CAAM,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,GAAO,EACrD,kCAAO,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA,CAAC,CAAC,GAAI,EAClF,mCAAQ,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,QAAQ,CAAC,eAAe,CAAC,WAAW,EAAE,CAAE,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA,CAAC,CAAC,uBAAiB,IAC7H,CACP,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
@@ -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 frontend: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
18
+ export {};
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.frontend = 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.frontend = {
21
+ key: 'frontend',
22
+ category: extensions_core_2.Category.FORMS,
23
+ title: 'Frontend',
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, settings } = payload;
30
+ void fields;
31
+ void settings;
32
+ },
33
+ };
34
+ //# sourceMappingURL=frontend.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/frontend.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,QAAQ,GAIjB;IACF,GAAG,EAAE,UAAU;IACf,QAAQ,EAAE,0BAAQ,CAAC,KAAK;IACxB,KAAK,EAAE,UAAU;IACjB,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,QAAQ,EAAE,GAAG,OAAO,CAAA;QACpC,KAAK,MAAM,CAAA;QACX,KAAK,QAAQ,CAAA;IACf,CAAC;CACF,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './log';
2
2
  export * from './log_two';
3
+ export * from './frontend';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./log"), exports);
18
18
  __exportStar(require("./log_two"), exports);
19
+ __exportStar(require("./frontend"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/hello-world/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,4CAAyB;AACzB,6CAA0B"}
@@ -18,6 +18,7 @@ exports.HelloWorld = {
18
18
  actions: {
19
19
  log: actions_1.log,
20
20
  logTwo: actions_1.logTwo,
21
+ frontend: actions_1.frontend,
21
22
  },
22
23
  webhooks: webhooks_1.webhooks,
23
24
  };
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/hello-world/index.ts"],"names":[],"mappings":";;;AAAA,uCAAiD;AAEjD,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;QACN,QAAQ,EAAR,kBAAQ;KACT;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.330",
3
+ "version": "2.0.331-beta.0",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "build": "tsc -p tsconfig.build.json && echo 'Built new dist/' && yarn copy-markdown",
18
18
  "copy-markdown": "node copy-markdown.js && echo 'Copied markdown files to dist/'",
19
19
  "start": "node dist/src/index.js",
20
- "lint": "eslint \"**/*.ts\"",
20
+ "lint": "eslint \"**/*.{ts,tsx}\"",
21
21
  "test": "jest --verbose --testPathIgnorePatterns '.*\\.local\\.test\\.ts$'",
22
22
  "test-local": "jest --verbose",
23
23
  "prepack": "yarn build",
@@ -25,6 +25,19 @@
25
25
  "prepare": "husky"
26
26
  },
27
27
  "types": "dist/src/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/src/index.d.ts",
31
+ "require": "./dist/src/index.js",
32
+ "import": "./dist/src/index.js"
33
+ },
34
+ "./components/*": {
35
+ "types": "./dist/components/*/index.d.ts",
36
+ "require": "./dist/components/*/index.js",
37
+ "import": "./dist/components/*/index.js"
38
+ },
39
+ "./package.json": "./package.json"
40
+ },
28
41
  "files": [
29
42
  "dist",
30
43
  "!**/*.test.ts",
@@ -55,6 +68,7 @@
55
68
  "@types/node-fetch": "^2.6.2",
56
69
  "@types/nodemailer": "^6.4.15",
57
70
  "@types/pdfmake": "^0.2.9",
71
+ "@types/react": "^19.1.12",
58
72
  "@types/sanitize-html": "^2.13.0",
59
73
  "@types/showdown": "^2.0.0",
60
74
  "@types/uuid": "^10.0.0",
@@ -86,7 +100,7 @@
86
100
  "dependencies": {
87
101
  "@airtop/sdk": "^0.1.44",
88
102
  "@awell-health/awell-sdk": "0.1.24",
89
- "@awell-health/extensions-core": "1.0.28",
103
+ "@awell-health/extensions-core": "1.1.3",
90
104
  "@awell-health/healthie-sdk": "^0.1.1",
91
105
  "@dropbox/sign": "^1.8.0",
92
106
  "@hubspot/api-client": "^11.2.0",