@awell-health/awell-extensions 1.0.139 → 1.0.141

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 (56) hide show
  1. package/dist/extensions/markdown.json +4 -0
  2. package/dist/extensions/nexuzhealth/index.d.ts +2 -0
  3. package/dist/extensions/nexuzhealth/index.js +42 -0
  4. package/dist/extensions/nexuzhealth/index.js.map +1 -0
  5. package/dist/extensions/nexuzhealth/settings.d.ts +3 -0
  6. package/dist/extensions/nexuzhealth/settings.js +7 -0
  7. package/dist/extensions/nexuzhealth/settings.js.map +1 -0
  8. package/dist/extensions/nexuzhealth/v1/actions/index.d.ts +3 -0
  9. package/dist/extensions/nexuzhealth/v1/actions/index.js +10 -0
  10. package/dist/extensions/nexuzhealth/v1/actions/index.js.map +1 -0
  11. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/fields.d.ts +18 -0
  12. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/fields.js +18 -0
  13. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/fields.js.map +1 -0
  14. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/index.d.ts +1 -0
  15. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/index.js +7 -0
  16. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/config/index.js.map +1 -0
  17. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/index.d.ts +1 -0
  18. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/index.js +6 -0
  19. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/index.js.map +1 -0
  20. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.d.ts +4 -0
  21. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.js +17 -0
  22. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.js.map +1 -0
  23. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.test.d.ts +1 -0
  24. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.test.js +23 -0
  25. package/dist/extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.test.js.map +1 -0
  26. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/fields.d.ts +26 -0
  27. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/fields.js +24 -0
  28. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/fields.js.map +1 -0
  29. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/index.d.ts +1 -0
  30. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/index.js +7 -0
  31. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/config/index.js.map +1 -0
  32. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/index.d.ts +1 -0
  33. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/index.js +6 -0
  34. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/index.js.map +1 -0
  35. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.d.ts +4 -0
  36. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.js +17 -0
  37. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.js.map +1 -0
  38. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.test.d.ts +1 -0
  39. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.test.js +24 -0
  40. package/dist/extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.test.js.map +1 -0
  41. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/fields.d.ts +18 -0
  42. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/fields.js +18 -0
  43. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/fields.js.map +1 -0
  44. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/index.d.ts +1 -0
  45. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/index.js +7 -0
  46. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/index.js.map +1 -0
  47. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/index.d.ts +1 -0
  48. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/index.js +6 -0
  49. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/index.js.map +1 -0
  50. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.d.ts +4 -0
  51. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.js +17 -0
  52. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.js.map +1 -0
  53. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.test.d.ts +1 -0
  54. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.test.js +23 -0
  55. package/dist/extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.test.js.map +1 -0
  56. package/package.json +1 -1
@@ -79,6 +79,10 @@
79
79
  "readme": "---\ntitle: Metriport\ndescription: Metriport is Plaid for healthcare data.\n---\n# Metriport\n\nMetriport is Plaid for healthcare data. We help digital health companies access and manage patient health and medical data, through an open-source and universal API.\n\nThrough a single integration, our API enables modern health companies to get the comprehensive patient data they need from both HIEs and EHRs, as well as popular wearable devices.\n\nAs a developer-first interoperability solution, Metriport is powering the next wave of innovative companies, accelerating a revolution in digital health.\n\nTo learn more visit [https://www.metriport.com/](https://www.metriport.com/)\n# Extension settings\n\nIn order to set up this extension, **you will need to provide a Metriport API key**. You can obtain an API key via the Metriport dashboard by selecting the `Developers tab`. To learn more on how to get started with Metriport visit our [quick start docs](https://docs.metriport.com/medical-api/getting-started/quickstart) for our Medical API. Also, to better understand how our API keys work check out the [API Keys section](https://docs.metriport.com/home/api-info/api-keys) of our docs as well.\n\n# Custom Actions\n\n**GENERAL NOTE: Make sure to create Organizations and Facilities in Metriport before using this extension. A Patient must be associated with a Facility by providing the facilityId when stated in the actions.**\n\n## Create Patient\n\nCreates a Patient in Metriport for the specified Facility where the Patient is receiving care.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/create-patient) for more info.\n\n## Update Patient\n\nUpdates the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/update-patient) for more info.\n\n## Get Patient\n\nRetrieves the specified Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/get-patient) for more info.\n\n## Remove Patient\n\nRemoves a Patient at Metriport and at HIEs the Patient is linked to.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/patient/delete-patient) for more info.\n\n## List Documents\n\nLists all Documents that can be retrieved for a Patient.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/list-documents) for more info.\n\n**NOTE: It also returns the status of querying Document references across HIEs, indicating whether there is an asynchronous query in progress (status processing) or not (status completed). If the query is in progress, you will also receive the total number of Documents to be queried as well as the ones that have already been completed.**\n\n## Query Documents\n\nTriggers a Document query for the specified Patient across HIEs.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/start-document-query) for more info.\n\n**NOTE: When executed, this endpoint triggers an asynchronous Document query with HIEs and immediately returns the status of Document query, processing .**\n\n## Get Document Url\n\nGets a presigned URL for downloading the specified Document.\n\nVisit [endpoint docs](https://docs.metriport.com/medical-api/api-reference/document/get-document) for more info.\n\n**NOTE: This endpoint returns a URL which you can use to download the specified Document using the file name provided from the List Documents endpoint.**\n\n## More Info\n\nFor more information on how to integrate with Metriport please visit our [Medical API docs](https://docs.metriport.com/medical-api/getting-started/quickstart)\n",
80
80
  "changelog": "# Metriport changelog"
81
81
  },
82
+ "nexuzhealth": {
83
+ "readme": "---\ntitle: nexuzhealth\ndescription: Demo extension for nexuzhealth\n---\n\nThis is an extension that can only be used for demo purposes.",
84
+ "changelog": "# nexuzhealth changelog"
85
+ },
82
86
  "sendbird": {
83
87
  "readme": "---\ntitle: Sendbird\ndescription: Sendbird is a cloud-based chat and messaging platform that enables developers to integrate real-time messaging functionality into their applications.\n---\n\n# Sendbird\n\nSendbird is a cloud-based chat and messaging platform that enables developers to integrate real-time messaging functionality into their applications.\n\nSendbird offers a range of features, including real-time chat, group chat, one-on-one messaging, push notifications, and file sharing. It supports various platforms and programming languages, making it flexible and accessible for developers to integrate with different applications.\n\n## Extension settings\n\nIn order to set up this extension, you will need:\n\n1. An **Application ID** - visit https://dashboard.sendbird.com/ to retrieve **Application ID** for the app of your choosing\n2. A **Chat API token** - visit Application's settings and go to **Settings > Application > General > API tokens** to retrieve either Master API token or Secondary API token\n3. A **Desk API token** - visit Application's settings and go to **Settings > Desk > Credentials** to retrieve Desk API token\n\n## Custom Actions\n\n### Create user\n\nCreates a user in Sendbird using the Chat API. See [Update metadata](#update-metadata) to check metadata field details. The `userId` of the newly created user is then saved as a data point.\n\n### Update user\n\nUpdates a user using the Chat API.\n\nPlease note that updating `metadata` of a user needs to be done with the [Update metadata action](#update-metadata).\n\n### Delete user\n\nDeletes a user in Sendbird using the Chat API.\n\n### Get user\n\nRetrieve information about a user using the Chat API. The following fields are saved as a data point:\n\n- Nickname\n- Access token\n- Is active\n- Created at\n- Last seen at\n- Has ever logged in\n- Metadata (stored as string)\n\n### Update metadata\n\nUpdates the user's metadata using the Chat API. Only updates existing or adds new fields to metadata. To delete some metedata fields, check the [Delete metadata action](#delete-metadata).\n\nMetadata is a JSON object that can store up to five key-value items of additional user information such as a phone number, an email address, or a long description of the user. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters.\n\n### Delete metadata\n\nDeletes user metadata using the Chat API. Takes the key of a metadata item to be deleted (deletes one key at a time if a key is provided). If not specified, all items of the metadata are deleted.\n\n### Deactivate user\n\nDeactivates a user, using the \"Update user\" endpoint, in the Chat API. Optionally, it can be set for the user to `Leave all group channels upon deactivation`.\n\nThe user is deactivated by setting `is_active` to false.\n\n### Activate user\n\nActivates a user, using the \"Update user\" endpoint, in the Chat API. The user is activated by setting `is_active` to true.\n\n### Create customer\n\nCreates a customer using the Desk API. Only the `sendbirdId` is passed and it must be an ID that already exists in Sendbird's Chat platform (eg: the `userId` of an existing user). The `customerId` of the newly created customer is stored as data point.\n\nTo add custom fields to your customer, use the [Update custom fields action](#update-customers-custom-fields).\n\n### Get customer\n\nRetrieves information on a specific customer using the Desk API. The following fields are saved as a data point:\n\n- Sendbird ID\n- Channel Type\n- Project\n- Created At\n- Display Name\n- Custom Fields (stored as string)\n\n### Update customer's custom fields\n\nUpdates a customer's custom fields using the Desk API.\n\nCustom fields is a JSON object that can store up to twenty key-value items for additional customer information such as a phone number, an email address, or a long description of the customer.\n\nThe specified keys must be registered as a custom field in Settings > Customer fields of your dashboard beforehand. The key must not have a comma (,) and its length is limited to 20 characters. The value's length is limited to 190 characters.\n\n### Create ticket\n\nCreates a ticket using the Desk API. The `ticketId` of the newly created ticket is stored as data point.\n\nPlease note that the Ticket won't be shown in the Sendbird console **until** the user for which that Ticket was created writes a message inside the Chat.\n",
84
88
  "changelog": "# Sendbird changelog\n\n## 2023-08-22\n\n- add `relatedChannelUrls` field to `Create ticket` action\n"
@@ -0,0 +1,2 @@
1
+ import { type Extension } from '@awell-health/extensions-core';
2
+ export declare const nexuzhealth: 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.nexuzhealth = void 0;
27
+ const settings_1 = require("./settings");
28
+ const extensions_core_1 = require("@awell-health/extensions-core");
29
+ const actions = __importStar(require("./v1/actions"));
30
+ exports.nexuzhealth = {
31
+ key: 'nexuzhealth',
32
+ title: 'nexuzhealth',
33
+ description: 'Nexuzhealth develops KWS (Klinisch Werkstation), an EHR for hospitals, healthcare institutions, home nursing, and general practitioners.',
34
+ icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1702299062/Awell%20Extensions/nexuzhealth.png',
35
+ category: extensions_core_1.Category.EHR_INTEGRATIONS,
36
+ author: {
37
+ authorType: extensions_core_1.AuthorType.AWELL,
38
+ },
39
+ settings: settings_1.settings,
40
+ actions,
41
+ };
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/nexuzhealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAAqC;AACrC,mEAAoE;AACpE,sDAAuC;AAE1B,QAAA,WAAW,GAAc;IACpC,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,0IAA0I;IAC5I,QAAQ,EACN,kGAAkG;IACpG,QAAQ,EAAE,0BAAQ,CAAC,gBAAgB;IACnC,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,QAAQ,EAAR,mBAAQ;IACR,OAAO;CACR,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const settings: {};
3
+ export declare const SettingsValidationSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsValidationSchema = exports.settings = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.settings = {};
6
+ exports.SettingsValidationSchema = zod_1.z.object({});
7
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../extensions/nexuzhealth/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG,EAAoC,CAAA;AAE/C,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAC9C,EAAsD,CACvD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { sendQuestionnaire } from './sendQuestionnaire';
2
+ export { sendMessage } from './sendMessage';
3
+ export { sendDocumentation } from './sendDocumentation';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendDocumentation = exports.sendMessage = exports.sendQuestionnaire = void 0;
4
+ var sendQuestionnaire_1 = require("./sendQuestionnaire");
5
+ Object.defineProperty(exports, "sendQuestionnaire", { enumerable: true, get: function () { return sendQuestionnaire_1.sendQuestionnaire; } });
6
+ var sendMessage_1 = require("./sendMessage");
7
+ Object.defineProperty(exports, "sendMessage", { enumerable: true, get: function () { return sendMessage_1.sendMessage; } });
8
+ var sendDocumentation_1 = require("./sendDocumentation");
9
+ Object.defineProperty(exports, "sendDocumentation", { enumerable: true, get: function () { return sendDocumentation_1.sendDocumentation; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/nexuzhealth/v1/actions/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { FieldType } from '@awell-health/extensions-core';
3
+ export declare const fields: {
4
+ documentationId: {
5
+ id: string;
6
+ label: string;
7
+ type: FieldType.STRING;
8
+ description: string;
9
+ required: true;
10
+ };
11
+ };
12
+ export declare const FieldsValidationSchema: z.ZodObject<{
13
+ documentationId: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ documentationId: string;
16
+ }, {
17
+ documentationId: string;
18
+ }>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsValidationSchema = exports.fields = void 0;
4
+ const zod_1 = require("zod");
5
+ const extensions_core_1 = require("@awell-health/extensions-core");
6
+ exports.fields = {
7
+ documentationId: {
8
+ id: 'documentationId',
9
+ label: 'Documentation',
10
+ type: extensions_core_1.FieldType.STRING,
11
+ description: 'Selecteer de documentatie die je beschikbaar wil maken',
12
+ required: true,
13
+ },
14
+ };
15
+ exports.FieldsValidationSchema = zod_1.z.object({
16
+ documentationId: zod_1.z.string(),
17
+ });
18
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendDocumentation/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,WAAW,EAAE,wDAAwD;QACrE,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CACsB,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { FieldsValidationSchema, fields } from './fields';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.FieldsValidationSchema = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
6
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendDocumentation/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gHAAA,sBAAsB,OAAA;AAAE,gGAAA,MAAM,OAAA"}
@@ -0,0 +1 @@
1
+ export { sendDocumentation } from './sendDocumentation';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendDocumentation = void 0;
4
+ var sendDocumentation_1 = require("./sendDocumentation");
5
+ Object.defineProperty(exports, "sendDocumentation", { enumerable: true, get: function () { return sendDocumentation_1.sendDocumentation; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendDocumentation/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
@@ -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 sendDocumentation: Action<typeof fields, typeof settings>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendDocumentation = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const config_1 = require("./config");
6
+ exports.sendDocumentation = {
7
+ key: 'sendDocumentation',
8
+ title: 'Stuur documentatie (mynexuzhealth)',
9
+ description: 'Trigger documentation in the mynexuzhealth app',
10
+ category: extensions_core_1.Category.COMMUNICATION,
11
+ fields: config_1.fields,
12
+ previewable: false,
13
+ onActivityCreated: async (payload, onComplete, onError) => {
14
+ await onComplete();
15
+ },
16
+ };
17
+ //# sourceMappingURL=sendDocumentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendDocumentation.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.ts"],"names":[],"mappings":";;;AAEA,mEAAwD;AACxD,qCAAiC;AAEpB,QAAA,iBAAiB,GAA2C;IACvE,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,oCAAoC;IAC3C,WAAW,EAAE,gDAAgD;IAC7D,QAAQ,EAAE,0BAAQ,CAAC,aAAa;IAChC,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ const tests_1 = require("../../../../../src/tests");
5
+ describe('Send documentation', () => {
6
+ const onComplete = jest.fn();
7
+ const onError = jest.fn();
8
+ const basePayload = (0, tests_1.generateTestPayload)({
9
+ fields: {
10
+ documentationId: 'test-documentation',
11
+ },
12
+ settings: {},
13
+ });
14
+ beforeEach(() => {
15
+ jest.clearAllMocks();
16
+ });
17
+ test('Should call the onComplete callback', async () => {
18
+ await _1.sendDocumentation.onActivityCreated(basePayload, onComplete, onError);
19
+ expect(onComplete).toHaveBeenCalled();
20
+ expect(onError).not.toHaveBeenCalled();
21
+ });
22
+ });
23
+ //# sourceMappingURL=sendDocumentation.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendDocumentation.test.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendDocumentation/sendDocumentation.test.ts"],"names":[],"mappings":";;AAAA,wBAAqC;AACrC,oDAA8D;AAE9D,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,MAAM,WAAW,GAAG,IAAA,2BAAmB,EAAC;QACtC,MAAM,EAAE;YACN,eAAe,EAAE,oBAAoB;SACtC;QACD,QAAQ,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,oBAAiB,CAAC,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAE3E,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import { FieldType } from '@awell-health/extensions-core';
3
+ export declare const fields: {
4
+ subject: {
5
+ id: string;
6
+ label: string;
7
+ type: FieldType.STRING;
8
+ required: true;
9
+ };
10
+ body: {
11
+ id: string;
12
+ label: string;
13
+ type: FieldType.HTML;
14
+ required: true;
15
+ };
16
+ };
17
+ export declare const FieldsValidationSchema: z.ZodObject<{
18
+ subject: z.ZodString;
19
+ body: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ body: string;
22
+ subject: string;
23
+ }, {
24
+ body: string;
25
+ subject: string;
26
+ }>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsValidationSchema = exports.fields = void 0;
4
+ const zod_1 = require("zod");
5
+ const extensions_core_1 = require("@awell-health/extensions-core");
6
+ exports.fields = {
7
+ subject: {
8
+ id: 'subject',
9
+ label: 'Onderwerp',
10
+ type: extensions_core_1.FieldType.STRING,
11
+ required: true,
12
+ },
13
+ body: {
14
+ id: 'body',
15
+ label: 'Bericht',
16
+ type: extensions_core_1.FieldType.HTML,
17
+ required: true,
18
+ },
19
+ };
20
+ exports.FieldsValidationSchema = zod_1.z.object({
21
+ subject: zod_1.z.string(),
22
+ body: zod_1.z.string(),
23
+ });
24
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendMessage/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,QAAQ,EAAE,IAAI;KACf;IACD,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM;QACV,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2BAAS,CAAC,IAAI;QACpB,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACiC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { FieldsValidationSchema, fields } from './fields';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.FieldsValidationSchema = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
6
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendMessage/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gHAAA,sBAAsB,OAAA;AAAE,gGAAA,MAAM,OAAA"}
@@ -0,0 +1 @@
1
+ export { sendMessage } from './sendMessage';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendMessage = void 0;
4
+ var sendMessage_1 = require("./sendMessage");
5
+ Object.defineProperty(exports, "sendMessage", { enumerable: true, get: function () { return sendMessage_1.sendMessage; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendMessage/index.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAAlC,0GAAA,WAAW,OAAA"}
@@ -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 sendMessage: Action<typeof fields, typeof settings>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendMessage = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const config_1 = require("./config");
6
+ exports.sendMessage = {
7
+ key: 'sendMessage',
8
+ title: 'Stuur bericht (mynexuzhealth)',
9
+ description: 'Trigger a message in the mynexuzhealth app',
10
+ category: extensions_core_1.Category.COMMUNICATION,
11
+ fields: config_1.fields,
12
+ previewable: false,
13
+ onActivityCreated: async (payload, onComplete, onError) => {
14
+ await onComplete();
15
+ },
16
+ };
17
+ //# sourceMappingURL=sendMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendMessage.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.ts"],"names":[],"mappings":";;;AAEA,mEAAwD;AACxD,qCAAiC;AAEpB,QAAA,WAAW,GAA2C;IACjE,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,+BAA+B;IACtC,WAAW,EAAE,4CAA4C;IACzD,QAAQ,EAAE,0BAAQ,CAAC,aAAa;IAChC,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ const tests_1 = require("../../../../../src/tests");
5
+ describe('Send message', () => {
6
+ const onComplete = jest.fn();
7
+ const onError = jest.fn();
8
+ const basePayload = (0, tests_1.generateTestPayload)({
9
+ fields: {
10
+ subject: 'test-subject',
11
+ body: 'test-body',
12
+ },
13
+ settings: {},
14
+ });
15
+ beforeEach(() => {
16
+ jest.clearAllMocks();
17
+ });
18
+ test('Should call the onComplete callback', async () => {
19
+ await _1.sendMessage.onActivityCreated(basePayload, onComplete, onError);
20
+ expect(onComplete).toHaveBeenCalled();
21
+ expect(onError).not.toHaveBeenCalled();
22
+ });
23
+ });
24
+ //# sourceMappingURL=sendMessage.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendMessage.test.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendMessage/sendMessage.test.ts"],"names":[],"mappings":";;AAAA,wBAA+B;AAC/B,oDAA8D;AAE9D,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,MAAM,WAAW,GAAG,IAAA,2BAAmB,EAAC;QACtC,MAAM,EAAE;YACN,OAAO,EAAE,cAAc;YACvB,IAAI,EAAE,WAAW;SAClB;QACD,QAAQ,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,cAAW,CAAC,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAErE,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { FieldType } from '@awell-health/extensions-core';
3
+ export declare const fields: {
4
+ questionnaireId: {
5
+ id: string;
6
+ label: string;
7
+ type: FieldType.STRING;
8
+ description: string;
9
+ required: true;
10
+ };
11
+ };
12
+ export declare const FieldsValidationSchema: z.ZodObject<{
13
+ questionnaireId: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ questionnaireId: string;
16
+ }, {
17
+ questionnaireId: string;
18
+ }>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsValidationSchema = exports.fields = void 0;
4
+ const zod_1 = require("zod");
5
+ const extensions_core_1 = require("@awell-health/extensions-core");
6
+ exports.fields = {
7
+ questionnaireId: {
8
+ id: 'questionnaireId',
9
+ label: 'Vragenlijst',
10
+ type: extensions_core_1.FieldType.STRING,
11
+ description: 'Selecteer de vragenlijst die de patiënt moet invullen',
12
+ required: true,
13
+ },
14
+ };
15
+ exports.FieldsValidationSchema = zod_1.z.object({
16
+ questionnaireId: zod_1.z.string(),
17
+ });
18
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AACxC,mEAAqE;AAExD,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,EAAE,EAAE,iBAAiB;QACrB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,2BAAS,CAAC,MAAM;QACtB,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE,IAAI;KACf;CAC8B,CAAA;AAEpB,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE;CACsB,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export { FieldsValidationSchema, fields } from './fields';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fields = exports.FieldsValidationSchema = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
6
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../extensions/nexuzhealth/v1/actions/sendQuestionnaire/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gHAAA,sBAAsB,OAAA;AAAE,gGAAA,MAAM,OAAA"}
@@ -0,0 +1 @@
1
+ export { sendQuestionnaire } from './sendQuestionnaire';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendQuestionnaire = void 0;
4
+ var sendQuestionnaire_1 = require("./sendQuestionnaire");
5
+ Object.defineProperty(exports, "sendQuestionnaire", { enumerable: true, get: function () { return sendQuestionnaire_1.sendQuestionnaire; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendQuestionnaire/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
@@ -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 sendQuestionnaire: Action<typeof fields, typeof settings>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendQuestionnaire = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const config_1 = require("./config");
6
+ exports.sendQuestionnaire = {
7
+ key: 'sendQuestionnaire',
8
+ title: 'Stuur vragenlijst (mynexuzhealth)',
9
+ description: 'Trigger a questionaire in the mynexuzhealth app',
10
+ category: extensions_core_1.Category.COMMUNICATION,
11
+ fields: config_1.fields,
12
+ previewable: false,
13
+ onActivityCreated: async (payload, onComplete, onError) => {
14
+ await onComplete();
15
+ },
16
+ };
17
+ //# sourceMappingURL=sendQuestionnaire.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendQuestionnaire.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.ts"],"names":[],"mappings":";;;AAEA,mEAAwD;AACxD,qCAAiC;AAEpB,QAAA,iBAAiB,GAA2C;IACvE,GAAG,EAAE,mBAAmB;IACxB,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,0BAAQ,CAAC,aAAa;IAChC,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE;QACxD,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC;CACF,CAAA"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const _1 = require(".");
4
+ const tests_1 = require("../../../../../src/tests");
5
+ describe('Send questionnaire', () => {
6
+ const onComplete = jest.fn();
7
+ const onError = jest.fn();
8
+ const basePayload = (0, tests_1.generateTestPayload)({
9
+ fields: {
10
+ questionnaireId: 'test-questionnaire',
11
+ },
12
+ settings: {},
13
+ });
14
+ beforeEach(() => {
15
+ jest.clearAllMocks();
16
+ });
17
+ test('Should call the onComplete callback', async () => {
18
+ await _1.sendQuestionnaire.onActivityCreated(basePayload, onComplete, onError);
19
+ expect(onComplete).toHaveBeenCalled();
20
+ expect(onError).not.toHaveBeenCalled();
21
+ });
22
+ });
23
+ //# sourceMappingURL=sendQuestionnaire.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendQuestionnaire.test.js","sourceRoot":"","sources":["../../../../../../extensions/nexuzhealth/v1/actions/sendQuestionnaire/sendQuestionnaire.test.ts"],"names":[],"mappings":";;AAAA,wBAAqC;AACrC,oDAA8D;AAE9D,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAA;IAEzB,MAAM,WAAW,GAAG,IAAA,2BAAmB,EAAC;QACtC,MAAM,EAAE;YACN,eAAe,EAAE,oBAAoB;SACtC;QACD,QAAQ,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAA;IACtB,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,oBAAiB,CAAC,iBAAiB,CAAC,WAAW,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAE3E,MAAM,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAA;QACrC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAA;IACxC,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.0.139",
3
+ "version": "1.0.141",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {