@awell-health/awell-extensions 2.0.291 → 2.0.293

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 (38) hide show
  1. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/dataPoints.d.ts +6 -0
  2. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/dataPoints.js +10 -0
  3. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/dataPoints.js.map +1 -0
  4. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/fields.d.ts +3 -0
  5. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/fields.js +7 -0
  6. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/fields.js.map +1 -0
  7. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/index.d.ts +2 -0
  8. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/index.js +9 -0
  9. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/config/index.js.map +1 -0
  10. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/getInsuranceVerificationDemo.d.ts +4 -0
  11. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/getInsuranceVerificationDemo.js +25 -0
  12. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/getInsuranceVerificationDemo.js.map +1 -0
  13. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/index.d.ts +1 -0
  14. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/index.js +18 -0
  15. package/dist/extensions/availity/actions/getInsuranceVerificationDemo/index.js.map +1 -0
  16. package/dist/extensions/availity/actions/index.d.ts +3 -0
  17. package/dist/extensions/availity/actions/index.js +8 -0
  18. package/dist/extensions/availity/actions/index.js.map +1 -0
  19. package/dist/extensions/availity/index.d.ts +2 -0
  20. package/dist/extensions/availity/index.js +19 -0
  21. package/dist/extensions/availity/index.js.map +1 -0
  22. package/dist/extensions/availity/settings.d.ts +3 -0
  23. package/dist/extensions/availity/settings.js +7 -0
  24. package/dist/extensions/availity/settings.js.map +1 -0
  25. package/dist/extensions/freshdesk/webhooks/TicketCreated/__testdata__/ticketCreated.mock.d.ts +5 -1
  26. package/dist/extensions/freshdesk/webhooks/TicketCreated/__testdata__/ticketCreated.mock.js +5 -1
  27. package/dist/extensions/freshdesk/webhooks/TicketCreated/__testdata__/ticketCreated.mock.js.map +1 -1
  28. package/dist/extensions/freshdesk/webhooks/TicketCreated/ticketCreated.d.ts +6 -1
  29. package/dist/extensions/freshdesk/webhooks/TicketCreated/ticketCreated.js +20 -2
  30. package/dist/extensions/freshdesk/webhooks/TicketCreated/ticketCreated.js.map +1 -1
  31. package/dist/extensions/freshdesk/webhooks/TicketCreated/types.d.ts +19 -1
  32. package/dist/extensions/freshdesk/webhooks/TicketCreated/types.js +22 -0
  33. package/dist/extensions/freshdesk/webhooks/TicketCreated/types.js.map +1 -1
  34. package/dist/extensions/freshdesk/webhooks/index.d.ts +5 -1
  35. package/dist/extensions/index.js +2 -0
  36. package/dist/extensions/index.js.map +1 -1
  37. package/dist/extensions/markdown.json +4 -0
  38. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ export declare const dataPoints: {
2
+ verified: {
3
+ key: string;
4
+ valueType: "boolean";
5
+ };
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = void 0;
4
+ exports.dataPoints = {
5
+ verified: {
6
+ key: 'verified',
7
+ valueType: 'boolean',
8
+ },
9
+ };
10
+ //# sourceMappingURL=dataPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataPoints.js","sourceRoot":"","sources":["../../../../../../extensions/availity/actions/getInsuranceVerificationDemo/config/dataPoints.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,SAAS;KACrB;CAC4C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const fields: {};
3
+ export declare const FieldsValidationSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsValidationSchema = exports.fields = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.fields = {};
6
+ exports.FieldsValidationSchema = zod_1.z.object({});
7
+ //# sourceMappingURL=fields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../../../extensions/availity/actions/getInsuranceVerificationDemo/config/fields.ts"],"names":[],"mappings":";;;AAAA,6BAAwC;AAG3B,QAAA,MAAM,GAAG,EAAkC,CAAA;AAE3C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAC5C,EAAoD,CACrD,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { fields, FieldsValidationSchema } from './fields';
2
+ export { dataPoints } from './dataPoints';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dataPoints = exports.FieldsValidationSchema = exports.fields = void 0;
4
+ var fields_1 = require("./fields");
5
+ Object.defineProperty(exports, "fields", { enumerable: true, get: function () { return fields_1.fields; } });
6
+ Object.defineProperty(exports, "FieldsValidationSchema", { enumerable: true, get: function () { return fields_1.FieldsValidationSchema; } });
7
+ var dataPoints_1 = require("./dataPoints");
8
+ Object.defineProperty(exports, "dataPoints", { enumerable: true, get: function () { return dataPoints_1.dataPoints; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../extensions/availity/actions/getInsuranceVerificationDemo/config/index.ts"],"names":[],"mappings":";;;AAAA,mCAAyD;AAAhD,gGAAA,MAAM,OAAA;AAAE,gHAAA,sBAAsB,OAAA;AACvC,2CAAyC;AAAhC,wGAAA,UAAU,OAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Action } from '@awell-health/extensions-core';
2
+ import { type settings } from '../../settings';
3
+ import { fields, dataPoints } from './config';
4
+ export declare const getInsuranceVerificationDemo: Action<typeof fields, typeof settings, keyof typeof dataPoints>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getInsuranceVerificationDemo = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const config_1 = require("./config");
6
+ const lodash_1 = require("lodash");
7
+ exports.getInsuranceVerificationDemo = {
8
+ key: 'getInsuranceVerificationDemo',
9
+ category: extensions_core_1.Category.BILLING,
10
+ title: 'Get insurance verification (demo)',
11
+ description: 'This is a dummy action that either returns a verified or unverified status.',
12
+ fields: config_1.fields,
13
+ previewable: false,
14
+ dataPoints: config_1.dataPoints,
15
+ onEvent: async ({ payload, onComplete }) => {
16
+ const options = [true, false];
17
+ const random = (0, lodash_1.sample)(options);
18
+ await onComplete({
19
+ data_points: {
20
+ verified: !(0, lodash_1.isNil)(random) ? JSON.stringify(random) : undefined,
21
+ },
22
+ });
23
+ },
24
+ };
25
+ //# sourceMappingURL=getInsuranceVerificationDemo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInsuranceVerificationDemo.js","sourceRoot":"","sources":["../../../../../extensions/availity/actions/getInsuranceVerificationDemo/getInsuranceVerificationDemo.ts"],"names":[],"mappings":";;;AACA,mEAAwD;AAExD,qCAA6C;AAC7C,mCAAsC;AAEzB,QAAA,4BAA4B,GAIrC;IACF,GAAG,EAAE,8BAA8B;IACnC,QAAQ,EAAE,0BAAQ,CAAC,OAAO;IAC1B,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EACT,6EAA6E;IAC/E,MAAM,EAAN,eAAM;IACN,WAAW,EAAE,KAAK;IAClB,UAAU,EAAV,mBAAU;IACV,OAAO,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAiB,EAAE;QACxD,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAC7B,MAAM,MAAM,GAAG,IAAA,eAAM,EAAC,OAAO,CAAC,CAAA;QAE9B,MAAM,UAAU,CAAC;YACf,WAAW,EAAE;gBACX,QAAQ,EAAE,CAAC,IAAA,cAAK,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS;aAC9D;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './getInsuranceVerificationDemo';
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./getInsuranceVerificationDemo"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../extensions/availity/actions/getInsuranceVerificationDemo/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA8C"}
@@ -0,0 +1,3 @@
1
+ export declare const actions: {
2
+ getInsuranceVerificationDemo: import("@awell-health/extensions-core").Action<{}, {}, "verified">;
3
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.actions = void 0;
4
+ const getInsuranceVerificationDemo_1 = require("./getInsuranceVerificationDemo");
5
+ exports.actions = {
6
+ getInsuranceVerificationDemo: getInsuranceVerificationDemo_1.getInsuranceVerificationDemo,
7
+ };
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../extensions/availity/actions/index.ts"],"names":[],"mappings":";;;AAAA,iFAA6E;AAEhE,QAAA,OAAO,GAAG;IACrB,4BAA4B,EAA5B,2DAA4B;CAC7B,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { type Extension } from '@awell-health/extensions-core';
2
+ export declare const availity: Extension;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.availity = void 0;
4
+ const extensions_core_1 = require("@awell-health/extensions-core");
5
+ const actions_1 = require("./actions");
6
+ const settings_1 = require("./settings");
7
+ exports.availity = {
8
+ key: 'availity',
9
+ title: 'Availity',
10
+ icon_url: 'https://res.cloudinary.com/da7x4rzl4/image/upload/v1752487435/Awell%20Extensions/availity.png',
11
+ description: "Availity's two-sided network allows payers and providers to share accurate, up-to-date information earlier in the healthcare lifecycle.",
12
+ category: extensions_core_1.Category.BILLING,
13
+ author: {
14
+ authorType: extensions_core_1.AuthorType.AWELL,
15
+ },
16
+ actions: actions_1.actions,
17
+ settings: settings_1.settings,
18
+ };
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../extensions/availity/index.ts"],"names":[],"mappings":";;;AACA,mEAAoE;AACpE,uCAAmC;AACnC,yCAAqC;AAExB,QAAA,QAAQ,GAAc;IACjC,GAAG,EAAE,UAAU;IACf,KAAK,EAAE,UAAU;IACjB,QAAQ,EACN,+FAA+F;IACjG,WAAW,EACT,yIAAyI;IAC3I,QAAQ,EAAE,0BAAQ,CAAC,OAAO;IAC1B,MAAM,EAAE;QACN,UAAU,EAAE,4BAAU,CAAC,KAAK;KAC7B;IACD,OAAO,EAAP,iBAAO;IACP,QAAQ,EAAR,mBAAQ;CACT,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/availity/settings.ts"],"names":[],"mappings":";;;AACA,6BAAwC;AAE3B,QAAA,QAAQ,GAAG,EAAoC,CAAA;AAE/C,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAC9C,EAAsD,CACvD,CAAA"}
@@ -1 +1,5 @@
1
- export declare const ticketCreatedPayload: {};
1
+ export declare const ticketCreatedPayload: {
2
+ freshdesk_webhook: {
3
+ ticket_id: string;
4
+ };
5
+ };
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ticketCreatedPayload = void 0;
4
- exports.ticketCreatedPayload = {};
4
+ exports.ticketCreatedPayload = {
5
+ freshdesk_webhook: {
6
+ ticket_id: '295186',
7
+ },
8
+ };
5
9
  //# sourceMappingURL=ticketCreated.mock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ticketCreated.mock.js","sourceRoot":"","sources":["../../../../../../extensions/freshdesk/webhooks/TicketCreated/__testdata__/ticketCreated.mock.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG,EAAwC,CAAA"}
1
+ {"version":3,"file":"ticketCreated.mock.js","sourceRoot":"","sources":["../../../../../../extensions/freshdesk/webhooks/TicketCreated/__testdata__/ticketCreated.mock.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAClC,iBAAiB,EAAE;QACjB,SAAS,EAAE,QAAQ;KACpB;CACoC,CAAA"}
@@ -1,7 +1,12 @@
1
1
  import { type Webhook } from '@awell-health/extensions-core';
2
2
  import { type settings } from '../../settings';
3
3
  import { type TicketCreatedWebhookPayload } from './types';
4
- declare const dataPoints: {};
4
+ declare const dataPoints: {
5
+ ticketId: {
6
+ key: string;
7
+ valueType: "string";
8
+ };
9
+ };
5
10
  export declare const ticketCreated: Webhook<keyof typeof dataPoints, TicketCreatedWebhookPayload, typeof settings>;
6
11
  export type TicketCreated = typeof ticketCreated;
7
12
  export {};
@@ -1,13 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ticketCreated = void 0;
4
- const dataPoints = {};
4
+ const types_1 = require("./types");
5
+ const dataPoints = {
6
+ ticketId: {
7
+ key: 'ticketId',
8
+ valueType: 'string',
9
+ },
10
+ };
5
11
  exports.ticketCreated = {
6
12
  key: 'ticketCreated',
7
13
  dataPoints,
8
14
  onEvent: async ({ payload: { payload, rawBody, headers, settings }, onSuccess, onError, }) => {
15
+ const parsedPayload = types_1.zTicketCreatedWebhookPayload.safeParse(payload);
16
+ if (!parsedPayload.success) {
17
+ await onError({
18
+ response: {
19
+ statusCode: 400,
20
+ message: JSON.stringify(parsedPayload.error, null, 2),
21
+ },
22
+ });
23
+ return;
24
+ }
9
25
  await onSuccess({
10
- data_points: {},
26
+ data_points: {
27
+ ticketId: parsedPayload.data.freshdesk_webhook.ticket_id,
28
+ },
11
29
  });
12
30
  },
13
31
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ticketCreated.js","sourceRoot":"","sources":["../../../../../extensions/freshdesk/webhooks/TicketCreated/ticketCreated.ts"],"names":[],"mappings":";;;AAOA,MAAM,UAAU,GAAG,EAAgD,CAAA;AAEtD,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,UAAU;IACV,OAAO,EAAE,KAAK,EAAE,EACd,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAChD,SAAS,EACT,OAAO,GACR,EAAE,EAAE;QACH,MAAM,SAAS,CAAC;YACd,WAAW,EAAE,EAAE;SAChB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"ticketCreated.js","sourceRoot":"","sources":["../../../../../extensions/freshdesk/webhooks/TicketCreated/ticketCreated.ts"],"names":[],"mappings":";;;AAMA,mCAAsD;AAEtD,MAAM,UAAU,GAAG;IACjB,QAAQ,EAAE;QACR,GAAG,EAAE,UAAU;QACf,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,aAAa,GAItB;IACF,GAAG,EAAE,eAAe;IACpB,UAAU;IACV,OAAO,EAAE,KAAK,EAAE,EACd,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAChD,SAAS,EACT,OAAO,GACR,EAAE,EAAE;QACH,MAAM,aAAa,GAAG,oCAA4B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;QAErE,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;YAC3B,MAAM,OAAO,CAAC;gBACZ,QAAQ,EAAE;oBACR,UAAU,EAAE,GAAG;oBACf,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;iBACtD;aACF,CAAC,CAAA;YACF,OAAM;QACR,CAAC;QAED,MAAM,SAAS,CAAC;YACd,WAAW,EAAE;gBACX,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,SAAS;aACzD;SACF,CAAC,CAAA;IACJ,CAAC;CACF,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  /**
2
3
  * Problem:
3
4
  * Freshdesk allows their users to define a custom webhook payload.
@@ -13,4 +14,21 @@
13
14
  *
14
15
  * See https://support.freshdesk.com/support/solutions/articles/132589-using-webhooks-in-automation-rules
15
16
  */
16
- export type TicketCreatedWebhookPayload = Record<string, unknown>;
17
+ export declare const zTicketCreatedWebhookPayload: z.ZodObject<{
18
+ freshdesk_webhook: z.ZodObject<{
19
+ ticket_id: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ ticket_id: string;
22
+ }, {
23
+ ticket_id: string;
24
+ }>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ freshdesk_webhook: {
27
+ ticket_id: string;
28
+ };
29
+ }, {
30
+ freshdesk_webhook: {
31
+ ticket_id: string;
32
+ };
33
+ }>;
34
+ export type TicketCreatedWebhookPayload = z.infer<typeof zTicketCreatedWebhookPayload>;
@@ -1,3 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.zTicketCreatedWebhookPayload = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Problem:
7
+ * Freshdesk allows their users to define a custom webhook payload.
8
+ * This means there's no "standard" webhook payload and it's not possible to define a "standard" schema for it.
9
+ *
10
+ * Alternative 1:
11
+ * If a customer wants to use a webhook-based integration with Freshdesk, we register the webhook
12
+ * in a private extension and define a custom contract/schema together with the customer and use that instead.
13
+ *
14
+ * Alternative 2:
15
+ * We try to define a schema for the webhook payload that is flexible enough to handle all possible payloads.
16
+ * Haven't attempted this yet.
17
+ *
18
+ * See https://support.freshdesk.com/support/solutions/articles/132589-using-webhooks-in-automation-rules
19
+ */
20
+ exports.zTicketCreatedWebhookPayload = zod_1.z.object({
21
+ freshdesk_webhook: zod_1.z.object({
22
+ ticket_id: zod_1.z.string(),
23
+ }),
24
+ });
3
25
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../extensions/freshdesk/webhooks/TicketCreated/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../extensions/freshdesk/webhooks/TicketCreated/types.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB;;;;;;;;;;;;;;GAcG;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,iBAAiB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC1B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;KACtB,CAAC;CACH,CAAC,CAAA"}
@@ -1,4 +1,8 @@
1
- export declare const webhooks: import("@awell-health/extensions-core").Webhook<never, import("./TicketCreated/types").TicketCreatedWebhookPayload, {
1
+ export declare const webhooks: import("@awell-health/extensions-core").Webhook<"ticketId", {
2
+ freshdesk_webhook: {
3
+ ticket_id: string;
4
+ };
5
+ }, {
2
6
  domain: {
3
7
  key: string;
4
8
  label: string;
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.extensions = exports.markdown = void 0;
37
37
  const athenahealth_1 = require("./athenahealth");
38
+ const availity_1 = require("./availity");
38
39
  const awell_1 = require("./awell");
39
40
  const awellTasks_1 = require("./awellTasks");
40
41
  const bland_1 = require("./bland");
@@ -93,6 +94,7 @@ exports.extensions = [
93
94
  bland_1.bland,
94
95
  braze_1.Braze,
95
96
  athenahealth_1.athenahealth,
97
+ availity_1.availity,
96
98
  awell_1.Awell,
97
99
  awellTasks_1.awellTasks,
98
100
  calDotCom_1.CalDotCom,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,0CAA0C;AAC1C,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,uCAAmC;AACnC,iCAA6B;AAE7B,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,aAAa;IACb,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;IACP,WAAI;CACL,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../extensions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA6C;AAC7C,yCAAqC;AACrC,mCAA+B;AAC/B,6CAAyC;AACzC,mCAA+B;AAC/B,mCAA+B;AAC/B,2CAAuC;AACvC,yCAAqC;AACrC,mDAA+C;AAC/C,qCAAiC;AACjC,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,6CAAyC;AACzC,+CAA2C;AAC3C,6CAAyC;AACzC,yCAAqC;AACrC,+CAA2C;AAC3C,uCAAmC;AACnC,iCAA6B;AAC7B,iDAA6C;AAC7C,uDAAkD;AAClD,yCAAqC;AACrC,2CAAuC;AACvC,6CAAyC;AACzC,2CAAuC;AACvC,yCAAqC;AACrC,+CAA0C;AAC1C,uCAAmC;AACnC,iEAA6D;AAC7D,uCAAmC;AACnC,yCAAqC;AACrC,2CAAuC;AACvC,uCAAmC;AACnC,iCAAsC;AACtC,uCAAmC;AACnC,+CAA2C;AAC3C,0CAA0C;AAC1C,+CAA2C;AAC3C,iCAA6B;AAC7B,yCAAqC;AACrC,6DAA+C;AAC/C,iCAA6B;AAC7B,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,yCAAqC;AACrC,+CAAyC;AACzC,2CAAuC;AACvC,qCAAiC;AACjC,uCAAmC;AACnC,yCAAqC;AACrC,uCAAmC;AACnC,iCAA6B;AAE7B,sDAAuC;AAG1B,QAAA,QAAQ,GAAa,IAAI,CAAA;AAEzB,QAAA,UAAU,GAAG;IACxB,aAAK;IACL,aAAK;IACL,2BAAY;IACZ,mBAAQ;IACR,aAAK;IACL,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,6BAAa;IACb,eAAM;IACN,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,uBAAU;IACV,yBAAW;IACX,uBAAU;IACV,mBAAQ;IACR,yBAAW;IACX,iBAAO;IACP,WAAI;IACJ,2BAAY;IACZ,gCAAc;IACd,mBAAQ;IACR,qBAAS;IACT,uBAAU;IACV,qBAAS;IACT,mBAAQ;IACR,wBAAU;IACV,iBAAO;IACP,2CAAoB;IACpB,iBAAO;IACP,mBAAQ;IACR,qBAAS;IACT,iBAAO;IACP,oBAAa;IACb,yBAAW;IACX,iBAAO;IACP,aAAa;IACb,yBAAW;IACX,WAAI;IACJ,mBAAQ;IACR,6BAAQ;IACR,WAAI;IACJ,eAAM;IACN,eAAM;IACN,mBAAQ;IACR,mBAAQ;IACR,uBAAS;IACT,qBAAS;IACT,eAAM;IACN,iBAAO;IACP,mBAAQ;IACR,iBAAO;IACP,WAAI;CACL,CAAA"}
@@ -3,6 +3,10 @@
3
3
  "readme": "---\ntitle: Athena\ndescription: Athena offers medical groups, hospitals, and health systems cloud-based EHR, practice management, and patient engagement services that seamlessly connect care and drive results for every client. \n---\n\n## Athenahealth\n\nAthena offers medical groups, hospitals, and health systems cloud-based EHR, practice management, and patient engagement services that seamlessly connect care and drive results for every client.\n\n## Extension settings\n\nFor the extension to function correctly, you must configure the following settings:\n\n- Auth server URL (e.g. https://api.preview.platform.athenahealth.com/oauth2/v1/token)\n- Client ID\n- Client secret\n- API URL (https://api.preview.platform.athenahealth.com)\n- Scope\n- Practice ID\n\n\n## Actions\n\n### Create patient\n\nCreates a patient in athenahealth. First name, last name, date of birth, email, and department ID are required. If a patient with the same name, date of birth, and email already exists, a new patient record will not be created. Instead, the existing patient's ID will be returned.\n\n### Get patient\n\nRetrieve the details of a given patient within a given practice.\n\n### Get appointment\n\nRetrieve the details of an appointment.\n\n### Create appointment note\n\nCreate a note which will be appended to an appointment",
4
4
  "changelog": "# Athena changelog"
5
5
  },
6
+ "availity": {
7
+ "readme": "---\ntitle: Availity\ndescription: Availity's two-sided network allows payers and providers to share accurate, up-to-date information earlier in the healthcare lifecycle.\n\n---\n\n# Availity\n\nAvaility's two-sided network allows payers and providers to share accurate, up-to-date information earlier in the healthcare lifecycle.\n",
8
+ "changelog": "# CHANGELOG"
9
+ },
6
10
  "awell": {
7
11
  "readme": "---\ntitle: Awell Workflow\ndescription: Enrich your care flows with powerful Awell actions.\n---\n\n# Awell API extension\n\n## Extension settings\n\nYou will need to provide the [API URL](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/endpoints) and an [API key](https://developers.awellhealth.com/awell-orchestration/api-reference/overview/authorization).\n\n## Custom Actions\n\n### Start care flow\n\nStarts a new care flow for the patient enrolled in your current care flow.\n\n**Passing baseline info:**\nPlease read the documentation on [our developer hub](https://developers.awellhealth.com/awell-orchestration/api-reference/mutations/start-pathway) to learn more about how to pass baseline info.\n\n**Example of how to configure a value for the baseline info action field:**\n\n```json\n[\n {\n \"data_point_definition_id\": \"age\",\n \"value\": \"29\"\n },\n {\n \"data_point_definition_id\": \"dob\",\n \"value\": \"1993-11-30\"\n }\n]\n```\n\n### Stop care flow\n\nStops the care flow the patient is currently enrolled in. A reason is why you are stopping the care flow is mandatory.\n\n### Update patient\n\nAllows updating patient data for the patient currently enrolled in the care flow.\n\n### Is patient already enrolled in care flow\n\nChecks whether the patient is already enrolled in a care flow definition. The care flow the patient is currently enrolled in does not count and is excluded from the results.\n\n**Action fields:**\n\n- pathwayStatus: a comma-separated string of care flow statuses that will be used when looking for care flows the patient is already enrolled in. By default, we only look at active care flows. Options: \"active\", \"completed\", \"missing_baseline_info\", \"starting\", and \"stopped\".\n- careFlowDefinitionIds: a comma-separated string of care flow definition ids that will be used when looking for care flows the patient is already enrolled in. By default, we only search for care flows that match the current care flow definition id (i.e. is the patient already included in the current care flow?).\n\n**Data points:**\n\n- result: a boolean indicating whether the patient is already enrolled in another care flow that matches your criteria (status & care flow definition id)\n- nbrOfResults: the number of care flows found for the patient that match the criteria.\n- careFlowIds: a comma-separated string of care flow ids that matched your search criteria. It will be empty when the result is `false` because then there are no other care flow ids that match your criteria.\n\n### Search patients by patient code\n\nNote that this action is deprecated and we recommend using [identifiers](https://developers.awellhealth.com/awell-orchestration/docs/misc/patient-identifiers) instead.\n\nSearch whether, apart from the patient currently enrolled in the care flow, another patient with the same `patient_code` already exists.\n\n**Data points:**\n\n1. patientAlreadyExists: a boolean which will be true if minimum one patient with the patient code already exists.\n2. numberOfPatientsFound: the number of patients found with the same patient code.\n3. awellPatientIds: a comma-separated string of all Awell patient ids (except the current patient) that have the same patient code as the patient currently enrolled in the care flow. Will return an empty string when there are no other patients with the same patient code.\n\n### Get patient by identifier\n\nThis action lets you check if a patient with a specific identifier already exists in Awell. It's particularly useful when a patient's identity is initially anonymous during the start of the care flow, but later becomes identifiable through the identifiers collected during the care flow. This check ensures whether a patient with that identifier is already present or not.\n\n### Add identifier to patient\n\nThis action allows you to add a unique identifier to the current patient's profile. If the patient already has an identifier with the same system but a different value, this action will update the existing identifier with the new value provided. \n\nFirst, it checks if this identifier (system and value) is already associated with another patient. If it's safe to proceed, it will add or update the identifier as needed. However, if another patient already has this identifier, the action will stop and notify you, preventing duplicates. To avoid conflicts, we recommend first running the \"Get patient by identifier\" action to check for any existing matches.\n\n### Get data point value\n\nThis action allows you to read the most recent data point value of a given data point definition id from a care flow different from the current one. The action returns multiple data points, each with a different value type. Pick the one you need from the returned data points based on the value type of the data point you want to read the value from.\n\n**Example:**\nIf the data point you want to read the value from is of type `number`, then you should use the `valueNumber` data point.\n\n## Webhooks\n\nWebhooks in the Awell extension offer ways to trigger a care flow based on the end of another care flow, or from any event that happens in your system (via the pathwayStart webhook).\n",
8
12
  "changelog": "# Awell changelog\n\n## April 2024\n\nTwo new action were added: \"Get patient by identifier\" and \"Add identifier to patient\".\n\n## October 26, 2023\n\nGeneric webhook to start a care flow added\n\n## April 19, 2023\n\nStop care flow action added.\nSearch patients by patient code action was added.\n\"Is patient enrolled in care flow\" action added.\n"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/awell-extensions",
3
- "version": "2.0.291",
3
+ "version": "2.0.293",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "main": "dist/src/index.js",
6
6
  "repository": {