@awell-health/awell-extensions 1.0.156 → 1.0.158

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,2 @@
1
+ import { type Extension } from '@awell-health/extensions-core';
2
+ export declare const Transform: Extension;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Transform = void 0;
27
+ const extensions_core_1 = require("@awell-health/extensions-core");
28
+ const actions = __importStar(require("./v1/actions"));
29
+ const settings_1 = require("./settings");
30
+ exports.Transform = {
31
+ key: 'external',
32
+ title: 'External Server',
33
+ icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1696493305/Awell%20Extensions/imgbin-computer-icons-data-migration-extract-transform-load-others-z1r9GD10ftiy2XXyhy7kWi413.jpg',
34
+ description: 'External server used for prototyping. See README for additional documentation.',
35
+ category: extensions_core_1.Category.DATA,
36
+ author: {
37
+ authorType: extensions_core_1.AuthorType.AWELL,
38
+ },
39
+ actions,
40
+ settings: settings_1.settings,
41
+ };
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/external-server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,mEAAoE;AACpE,sDAAuC;AACvC,yCAAqC;AAExB,QAAA,SAAS,GAAc;IAClC,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,iBAAiB;IACxB,QAAQ,EACN,mLAAmL;IACrL,WAAW,EACT,gFAAgF;IAClF,QAAQ,EAAE,0BAAQ,CAAC,IAAI;IACvB,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare const settings: {
2
+ url: {
3
+ key: string;
4
+ label: string;
5
+ obfuscated: true;
6
+ description: string;
7
+ };
8
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.settings = void 0;
4
+ exports.settings = {
5
+ url: {
6
+ key: 'url',
7
+ label: 'URL',
8
+ obfuscated: true,
9
+ description: 'The URL you want to use in order to test your local extensions',
10
+ },
11
+ };
12
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/external-server/settings.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAG;IACtB,GAAG,EAAE;QACH,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;QACZ,UAAU,EAAE,IAAI;QAChB,WAAW,EACT,gEAAgE;KACnE;CACgC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { type Action, type Fields } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ declare const fields: Fields;
4
+ declare const dataPoints: {
5
+ data_points: {
6
+ key: string;
7
+ valueType: "json";
8
+ };
9
+ };
10
+ export declare const externalServer: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
11
+ export {};
@@ -0,0 +1,74 @@
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.externalServer = void 0;
7
+ const extensions_core_1 = require("@awell-health/extensions-core");
8
+ const extensions_core_2 = require("@awell-health/extensions-core");
9
+ const zod_1 = require("zod");
10
+ const axios_1 = __importDefault(require("axios"));
11
+ const fields = {
12
+ extension: {
13
+ type: extensions_core_1.FieldType.STRING,
14
+ id: 'extension',
15
+ label: 'Extension Key',
16
+ description: 'The key of the extension you want to use',
17
+ required: true,
18
+ },
19
+ action: {
20
+ type: extensions_core_1.FieldType.STRING,
21
+ id: 'action',
22
+ label: 'Action Key',
23
+ description: 'The key of the action you want to use',
24
+ required: true,
25
+ },
26
+ input: {
27
+ type: extensions_core_1.FieldType.JSON,
28
+ id: 'input',
29
+ label: 'Input',
30
+ description: "The input (in JSON format: {'fields': {key: val}, 'settings': {key: val}})",
31
+ },
32
+ };
33
+ const dataPoints = {
34
+ data_points: {
35
+ key: 'data_points',
36
+ valueType: 'json',
37
+ },
38
+ };
39
+ const PayloadSchema = zod_1.z.object({
40
+ fields: zod_1.z.object({
41
+ extension: zod_1.z.string(),
42
+ action: zod_1.z.string(),
43
+ input: zod_1.z.any(),
44
+ }),
45
+ settings: zod_1.z.object({
46
+ url: zod_1.z.string(),
47
+ }),
48
+ });
49
+ exports.externalServer = {
50
+ key: 'parseDateToUnixTimestamp',
51
+ title: 'Parse date to unix timestamp',
52
+ description: 'Transform or parse a date to a unix timestamp.',
53
+ category: extensions_core_2.Category.DATA,
54
+ fields,
55
+ dataPoints,
56
+ previewable: true,
57
+ onActivityCreated: async (payload, onComplete, onError) => {
58
+ const { fields, settings } = PayloadSchema.parse(payload);
59
+ const client = new axios_1.default.Axios({ validateStatus: (s) => s === 200 });
60
+ const { data } = await client.post(settings.url, fields);
61
+ // eslint-disable-next-line @typescript-eslint/naming-convention
62
+ const { response, data_points, events } = data;
63
+ if (response === 'success') {
64
+ await onComplete({
65
+ data_points,
66
+ events,
67
+ });
68
+ }
69
+ else {
70
+ await onError({ events });
71
+ }
72
+ },
73
+ };
74
+ //# sourceMappingURL=external-extension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external-extension.js","sourceRoot":"","sources":["../../../../../extensions/external-server/v1/actions/external-extension.ts"],"names":[],"mappings":";;;;;;AAAA,mEAMsC;AACtC,mEAAwD;AAExD,6BAAuB;AACvB,kDAAyB;AAEzB,MAAM,MAAM,GAAW;IACrB,SAAS,EAAE;QACT,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,EAAE,EAAE,WAAW;QACf,KAAK,EAAE,eAAe;QACtB,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE,IAAI;KACf;IACD,MAAM,EAAE;QACN,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,YAAY;QACnB,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;KACf;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,OAAO;QACd,WAAW,EACT,4EAA4E;KAC/E;CAC8B,CAAA;AAEjC,MAAM,UAAU,GAAG;IACjB,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAE/C,MAAM,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7B,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;QAClB,KAAK,EAAE,OAAC,CAAC,GAAG,EAAE;KACf,CAAC;IACF,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC;CACH,CAAC,CAAA;AAEW,QAAA,cAAc,GAIvB;IACF,GAAG,EAAE,0BAA0B;IAC/B,KAAK,EAAE,8BAA8B;IACrC,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,0BAAQ,CAAC,IAAI;IACvB,MAAM;IACN,UAAU;IACV,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QAEzD,MAAM,MAAM,GAAG,IAAI,eAAK,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAA;QAEpE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;QACxD,gEAAgE;QAChE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAC9C,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,UAAU,CAAC;gBACf,WAAW;gBACX,MAAM;aACP,CAAC,CAAA;SACH;aAAM;YACL,MAAM,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;SAC1B;IACH,CAAC;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export { externalServer } from './external-extension';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.externalServer = void 0;
4
+ var external_extension_1 = require("./external-extension");
5
+ Object.defineProperty(exports, "externalServer", { enumerable: true, get: function () { return external_extension_1.externalServer; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/external-server/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,2DAAqD;AAA5C,oHAAA,cAAc,OAAA"}
@@ -43,6 +43,10 @@
43
43
  "readme": "---\ntitle: Elation\ndescription: Elation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices.\n---\n# Elation\n\nElation is a cloud-based health record system designed for healthcare providers, clinics, and medical practices. It offers a range of features including patient scheduling, charting, e-prescribing, billing, and telemedicine. Overall, Elation is designed to streamline the workflow of medical practices, improve patient care, and increase efficiency.\n\n## Setup\n\n### Webhooks\n\nThe integration of webhooks with Elation presents unique challenges and considerations:\n\n- **Non-Discriminative Triggers**: Elation does not differentiate between the creation or update of a resource. Both actions will set off webhook with action `saved`, which might not provide enough discriminative information for some use cases.\n- **Programmatic Setup**: Elation webhooks can only be configured programmatically, as there's no dedicated user interface in Elation to set up webhooks. View [this demo video](https://youtu.be/v8u6E8MEI8E) for a step-by-step guide on how to set up your webhooks in Elation.\n- **Limitation on user-triggered actions**: Elation has a concept called \"Preventing echo\". This means that that any action carried out by the user affiliated with the API credentials that created the subscription doesn't trigger a webhook. You can read more about this behaviour [here](https://docs.elationhealth.com/reference/webhooks). If you are not receiving any webhooks from Elation after setting up your subscription, then this is the reason. A feasible workaround to the above limitation is creating a dedicated user not meant for human interactions but serves the sole purpose of facilitating M2M communication.\n\nIf you need help setting up your webhooks in Elation, reach out! We are happy to help you.\n\n### Extension settings\n\nIn order to use this extension you will need to provide the extension with the following settings:\n\n- Base URL / endpoint URL of the API\n- Authorization URL\n- Client ID for OAuth2 Password authentication\n- Client Secret for OAuth2 Password authentication\n- API Username for OAuth2 Password authentication\n- API Password for OAuth2 Password authentication\n\nNot sure where you can find all of this information? Click [here](https://docs.elationhealth.com/reference/introduction) to have a look at Elation's Developer documentation.\n\n## Actions\n\nThe following actions are supported with Elation today:\n\n### Create Patient\n\nThis action creates a patient in Elation.\n\n**When creating a patient, you will have to specifiy the primary physician and caregiver practice ID:**\n- Primary physician ID: you can retrieve this ID by using the [Find Physicians](https://docs.elationhealth.com/reference/find-physicians) API call, or by using the `Find Physician` action\n- Caregiver Practice ID: similar to the primary physician ID, you can find this ID by using the same API call or action\n\n### Get Patient\n\nUsing a patient identifier, retrieve a patient object from Elation. \n\nNote that when retrieve the mobile phone number, we are tranforming the number to an international format. We apply a heuristic and assume all mobile numbers in Elation are in US national format so we prepend the number with the +1 country code. Having the number in international format unlocks more powerful functionality like sending text messages with 3rd party services like Twilio and MessageBird.\n\n### Update Patient\n\nUpdate a patient in Elation using any fields available in create patient. We use Elation's `PATCH` method to apply partial modifications to a the patient resource (i.e. update only what is needed).\n\n### Create Appointment\n\nEasily create a patient appointment in Elation.\n\nCreating an appointment requires a few strings to be well-formulated:\n- `Scheduled date` must be a datetime string (ISO-8601). For example, January 1, 2023 at noon, Pacific Time (-8 hours) would be shown as such: `2023-01-01T12:00:00.000-08:00`\n- `Reason` must not be free text. This value comes from the following list of appointment types (`Follow-Up`, `Office Visit`, `Physical Exam`, etc.):\n![Appointment types](./assets/elation-appointment-reason.png?raw=true \"Elation Appointment Types\")\n- `Patient` is the patient ID.\n- `Physician` is the physician ID (see `Find Physician`)\n- `Practice` is the practice ID (again, see `Find Physician`)\n\nYou can also include a duration (default to 15 minutes, or whatever has been set in your EHR)\n\n### Get Appointment\n\nRetrieve appointment details using an appointment ID. \n\n### Create Non-Visit Note\n\nThe non-visit note is a special kind of note that, as the name suggests, is not associated with a visit. These notes, in their simplest form, provide a chronological account of information about the patient.\n\n**Additional documentation for some of the action fields:**\n1. Category: The default category is \"Problem\" but you can choose any of \"Past\", \"Family\", \"Social\", \"Instr\", \"PE\", \"ROS\", \"Med\", \"Data\", \"Assessment\", \"Test\", \"Tx\", \"Narrative\", \"Followup\", \"Reason\", \"Plan\", \"Objective\", \"Hpi\", \"Allergies\", \"Habits\", \"Assessplan\", \"Consultant\", \"Attending\", \"Dateprocedure\", \"Surgical\", \"Orders\", \"Referenced\", \"Procedure\".\n2. Chart and document date automatically get set to the current date, i.e. the date when the action is orchestrated.\n\n### Delete Non-Visit Note\n\nDeletes the non-visit note identified by an ID.\n\n### Get Non-Visit Note\n\nRetrieve the details of a non-visit note identified by an ID.\n### Get physician\n\nUsing a physician identifier, retrieve a physician object from Elation.\n\n### Find physicians\n\nSearch a physician based on a set of parameters. The ID of the physician matching the search parameters will be returned. To retrieve the details of the physician, you can use the the \"Get physician\" action.\n\nNote that this action can only support finding one physician so if your search criteria match multiple physicians the action will throw an error.\n\n",
44
44
  "changelog": "# Elation Changelog\n\n## October 3, 2023\n\n- The README is now more concise with less unneeded detail. A section on the particularities of Elation subscriptions (webhooks) was added.\n- Misc. updates to labels, descriptions, action fields order\n- Action updates\n - Create Non-Visit Note:\n - Simplify the action by removing some optional action fields (we can always expand later)\n - `document_date` and `chart_date` are now automatically set to the date of today so that the corresponding action fields could be removed\n - Create patient\n - `dob` is now a `date` field type (was a string)\n - You can pass a mobile phone number and email when creating a patient \n - Find physician\n - Only returns the physician ID instead of all the details of the physician. To retrieve the details one can use the new `Get physician` action\n - Update patient\n - `dob` is now a `date` field type (was a string)\n - We are now using `PATCH` instead of `PUT` which allows for a partial update, i.e. only update the fields that are needed. \n- New actions\n - Get physician: Using a physician identifier, retrieve a physician object from Elation. \n- Removed actions\n - Update Non-Visit Note\n- Webhooks\n - Fix the type of `patientId` in `patientCreatedOrUpdated` webhook\n - Added `appointmentCreatedOrUpdated` webhook \n\n## September 4, 2023\n\n- rename `onCreatePatient` webhook to `patientCreatedOrUpdated`\n- filter non `saved` actions for this webhook\n\n## August 21, 2023\n\n- make non-visit note text a large input (`StringType.TEXT`)\n"
45
45
  },
46
+ "external-server": {
47
+ "readme": "# External Server\n\nHere will be some instructions.",
48
+ "changelog": "# CHANGELOG"
49
+ },
46
50
  "formsort": {
47
51
  "readme": "---\ntitle: Formsort\ndescription: Formsort is a fully-managed form-building platform.\n---\n# Formsort\n\nFormsort is a fully-managed form-building platform. Team can use the online studio (a specialized content management system for forms) to create form content, modify styles, and configure integrations.\n\nFormsort hosts your fully-branded forms, either on one of your subdomains or embedded in a page on your site. When responders submit answers, Formsort sends the answers to a destination of your liking directly. Formsort doesn't store the responder's answers. \n\n## Flow settings\n\nIn order for the flows to work well with Awell care flows, make sure your flow settings are set as follows:\n\n- There should be no redirects\n- \"Start each session as a new responder\" should be checked\n- \"Enable URL navigation\" should be disabled\n- \"Enable restart once flow completed\" should be disabled\n- \"Enable close once flow completed\" should be disabled\n\n## Custom Actions\n\n### Complete flow\n\nLet a stakeholder complete a Formsort flow from within Awell Hosted Pages.\n\n**Limitations:**\nCurrently data from the flow is not ingested into Awell yet and cannot be used in your care flow as data points.\n",
48
52
  "changelog": "# Formsort changelog"
@@ -39,7 +39,7 @@ class WellinksFlourishClient {
39
39
  method: 'POST',
40
40
  body: buildCreateUserRequest(this._clientextid, this._apiKey, firstName, lastName, dateOfBirth, subgroupId, thirdPartyIdentifier),
41
41
  headers: {
42
- contentType: 'text/xml',
42
+ 'Content-Type': 'text/xml',
43
43
  accept: 'application/xml',
44
44
  },
45
45
  });
@@ -1 +1 @@
1
- {"version":3,"file":"wellinksFlourishClient.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/api/clients/wellinksFlourishClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA8B;AAC9B,+CAAgC;AAChC,mCAA8B;AAE9B,MAAa,sBAAsB;IAKjC,YAAY,MAAc,EAAE,MAAc,EAAE,WAAmB;QAMtD,SAAI,GAAG;YACd,MAAM,EAAE,KAAK,EACX,SAAiB,EACjB,QAAgB,EAChB,WAAmB,EACnB,UAAkB,EAClB,oBAA4B,EACV,EAAE;gBACpB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAI,CAAC,OAAO,aAAa,E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EZ,MAAM,cAAc,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,CAAA;IAC1C,OAAO;;;;uBAIc,WAAW;yBACT,MAAM;gCACC,oBAAoB;;;gBAGpC,QAAQ;;0BAEE,cAAc,CAAC,OAAO,EAAE,UAAU,cAAc,CAAC,QAAQ,EAAE,SAAS,cAAc,CAAC,WAAW,EAAE;8BAC5F,GAAG,WAAW,MAAM;2BACvB,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;4BACF,IAAI;4BACJ,IAAI;4BACJ,IAAI;4BACJ,IAAI;;;;GAI7B,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"wellinksFlourishClient.js","sourceRoot":"","sources":["../../../../../extensions/wellinks/api/clients/wellinksFlourishClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAA8B;AAC9B,+CAAgC;AAChC,mCAA8B;AAE9B,MAAa,sBAAsB;IAKjC,YAAY,MAAc,EAAE,MAAc,EAAE,WAAmB;QAMtD,SAAI,GAAG;YACd,MAAM,EAAE,KAAK,EACX,SAAiB,EACjB,QAAgB,EAChB,WAAmB,EACnB,UAAkB,EAClB,oBAA4B,EACV,EAAE;gBACpB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,IAAI,CAAC,OAAO,aAAa,EAAE;wBACzD,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,sBAAsB,CAC1B,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,EACZ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,oBAAoB,CACrB;wBACD,OAAO,EAAE;4BACP,cAAc,EAAE,UAAU;4BAC1B,MAAM,EAAE,iBAAiB;yBAC1B;qBACF,CAAC,CAAA;oBACF,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CA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G;2BACH,GAAG;2BACH,GAAG;2BACH,GAAG;4BACF,IAAI;4BACJ,IAAI;4BACJ,IAAI;4BACJ,IAAI;;;;GAI7B,CAAA;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,81 @@
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
+ /* eslint-disable @typescript-eslint/no-misused-promises */
7
+ const express_1 = __importDefault(require("express"));
8
+ const body_parser_1 = __importDefault(require("body-parser"));
9
+ const extensions_core_1 = require("@awell-health/extensions-core");
10
+ const extensions_1 = require("../extensions");
11
+ const app = (0, express_1.default)();
12
+ const port = 3000;
13
+ const queue = [];
14
+ app.use(body_parser_1.default.json());
15
+ app.get('/:extension', async (req, res) => {
16
+ const extensionKey = req.params.extension;
17
+ const extension = extensions_1.extensions.find(({ key }) => key === extensionKey);
18
+ if (extension === undefined) {
19
+ res.status(404).send(`Extension ${extensionKey} not found`);
20
+ return;
21
+ }
22
+ res.send(extension);
23
+ });
24
+ app.post('/:extension/:action', async (req, res) => {
25
+ const extensionKey = req.params.extension;
26
+ const actionKey = req.params.action;
27
+ const extension = extensions_1.extensions.find(({ key }) => key === extensionKey);
28
+ if (extension === undefined) {
29
+ res.status(404).send(`Extension ${extensionKey} not found`);
30
+ return;
31
+ }
32
+ const action = Object.values(extension.actions).find(({ key }) => key === actionKey);
33
+ if (action === undefined) {
34
+ res
35
+ .status(404)
36
+ .send(`Action ${actionKey} not found in extension ${extensionKey}`);
37
+ return;
38
+ }
39
+ const payload = req.body;
40
+ const onCompleteCb = createOnCompleteCallback(payload);
41
+ const onErrorCb = createOnErrorCallback(payload);
42
+ await action
43
+ .onActivityCreated(payload, onCompleteCb, onErrorCb)
44
+ .catch((err) => {
45
+ const error = new extensions_core_1.AwellError({
46
+ error: err,
47
+ action: actionKey,
48
+ extension: extensionKey,
49
+ });
50
+ void onErrorCb({
51
+ events: [
52
+ {
53
+ text: { en: error.title },
54
+ date: error.date.toISOString(),
55
+ error: {
56
+ category: error.category,
57
+ message: error.message,
58
+ },
59
+ },
60
+ ],
61
+ });
62
+ });
63
+ const result = queue.shift();
64
+ res.send(result);
65
+ });
66
+ app.listen(port, () => {
67
+ console.log(`Test server listening at http://localhost:${port}`);
68
+ });
69
+ const createOnCompleteCallback = (payload) => {
70
+ return async (params = {}) => {
71
+ queue.push({ ...params, response: 'success' });
72
+ console.log({ ...params, response: 'success' });
73
+ };
74
+ };
75
+ const createOnErrorCallback = (payload) => {
76
+ return async (params = {}) => {
77
+ queue.push({ ...params, response: 'failure' });
78
+ console.error({ ...params, response: 'failure' });
79
+ };
80
+ };
81
+ //# sourceMappingURL=test-server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-server.js","sourceRoot":"","sources":["../../src/test-server.ts"],"names":[],"mappings":";;;;;AAAA,2DAA2D;AAC3D,sDAA6B;AAC7B,8DAAoC;AACpC,mEAKsC;AACtC,8CAA0C;AAE1C,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAA;AACrB,MAAM,IAAI,GAAG,IAAI,CAAA;AAOjB,MAAM,KAAK,GAAiB,EAAE,CAAA;AAE9B,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,CAAC,CAAA;AAE1B,GAAG,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE;IACxC,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAA;IACzC,MAAM,SAAS,GAAG,uBAAU,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,YAAY,CAAC,CAAA;IACpE,IAAI,SAAS,KAAK,SAAS,EAAE;QAC3B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,YAAY,YA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AAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAA;IACnD,CAAC,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "1.0.156",
3
+ "version": "1.0.158",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {
@@ -19,7 +19,8 @@
19
19
  "lint": "eslint **/*.ts",
20
20
  "postinstall": "husky install",
21
21
  "test": "jest",
22
- "prepack": "yarn build"
22
+ "prepack": "yarn build",
23
+ "test-server": "ts-node-dev --respawn --transpile-only ./src/test-server.ts"
23
24
  },
24
25
  "types": "dist/src/index.d.ts",
25
26
  "files": [
@@ -36,7 +37,9 @@
36
37
  "@graphql-codegen/typescript-operations": "^3.0.2",
37
38
  "@graphql-tools/apollo-engine-loader": "^7.3.26",
38
39
  "@graphql-typed-document-node/core": "^3.1.2",
40
+ "@types/body-parser": "^1.19.3",
39
41
  "@types/docusign-esign": "^5.19.0",
42
+ "@types/express": "^4.17.19",
40
43
  "@types/jest": "^29.4.0",
41
44
  "@types/lodash": "^4.14.191",
42
45
  "@types/mailchimp__mailchimp_transactional": "^1.0.5",
@@ -70,10 +73,12 @@
70
73
  "@sendgrid/mail": "^7.7.0",
71
74
  "api": "^6.0.0",
72
75
  "axios": "^1.3.4",
76
+ "body-parser": "^1.20.2",
73
77
  "cheerio": "^1.0.0-rc.12",
74
78
  "date-fns": "^2.29.3",
75
79
  "docusign-esign": "^6.3.0",
76
80
  "driver-license-validator": "2.0.2",
81
+ "express": "^4.18.2",
77
82
  "form-data": "^4.0.0",
78
83
  "graphql": "^16.8.1",
79
84
  "graphql-request": "5.1.0",