@awell-health/awell-extensions 1.1.42 → 1.1.43-beta42
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/awell/v1/webhooks/index.d.ts +1 -1
- package/dist/extensions/awell/v1/webhooks/pathwayStart.d.ts +3 -1
- package/dist/extensions/awell/v1/webhooks/pathwayStart.js +13 -3
- package/dist/extensions/awell/v1/webhooks/pathwayStart.js.map +1 -1
- package/dist/extensions/calDotCom/webhooks/index.d.ts +1 -1
- package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
- package/dist/extensions/elation/actions/updatePatient.js +1 -0
- package/dist/extensions/elation/actions/updatePatient.js.map +1 -1
- package/dist/extensions/elation/webhooks/index.d.ts +1 -1
- package/dist/extensions/healthie/lib/sdk/createSdk.d.ts +10 -0
- package/dist/extensions/healthie/lib/sdk/createSdk.js +17 -0
- package/dist/extensions/healthie/lib/sdk/createSdk.js.map +1 -0
- package/dist/extensions/healthie/lib/sdk/errors.d.ts +1 -0
- package/dist/extensions/healthie/lib/sdk/errors.js +42 -1
- package/dist/extensions/healthie/lib/sdk/errors.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/generated/sdk.d.ts +373 -9
- package/dist/extensions/healthie/lib/sdk/generated/sdk.js +110 -3
- package/dist/extensions/healthie/lib/sdk/generated/sdk.js.map +1 -1
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.d.ts +11 -1
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js +15 -1
- package/dist/extensions/healthie/lib/sdk/validatePayloadAndCreateSdk.js.map +1 -1
- package/dist/extensions/healthie/lib/types.d.ts +1 -0
- package/dist/extensions/healthie/lib/types.js +2 -0
- package/dist/extensions/healthie/lib/types.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appliedTagCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js +19 -7
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js +19 -7
- package/dist/extensions/healthie/webhooks/appliedTagDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.js +25 -6
- package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js +21 -6
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentUpdated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js +25 -6
- package/dist/extensions/healthie/webhooks/appointmentUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js +26 -7
- package/dist/extensions/healthie/webhooks/formAnswerGroupCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js +20 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js +25 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupLocked.js.map +1 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.d.ts +6 -1
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js +25 -6
- package/dist/extensions/healthie/webhooks/formAnswerGroupSigned.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalCreated.d.ts +3 -2
- package/dist/extensions/healthie/webhooks/goalCreated.js +21 -9
- package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/goalUpdated.js +20 -8
- package/dist/extensions/healthie/webhooks/goalUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/index.d.ts +316 -5
- package/dist/extensions/healthie/webhooks/index.js +0 -8
- package/dist/extensions/healthie/webhooks/index.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/labOrderCreated.js +19 -7
- package/dist/extensions/healthie/webhooks/labOrderCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/labOrderUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js +19 -7
- package/dist/extensions/healthie/webhooks/labOrderUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/messageCreated.js +20 -7
- package/dist/extensions/healthie/webhooks/messageCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/messageDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/messageDeleted.js +20 -7
- package/dist/extensions/healthie/webhooks/messageDeleted.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js +19 -7
- package/dist/extensions/healthie/webhooks/metricEntryCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js +19 -7
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientCreated.js +5 -0
- package/dist/extensions/healthie/webhooks/patientCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientUpdated.js +5 -0
- package/dist/extensions/healthie/webhooks/patientUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js +19 -7
- package/dist/extensions/healthie/webhooks/requestedFormCompletionCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js +19 -7
- package/dist/extensions/healthie/webhooks/requestedFormCompletionUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/taskCreated.js +19 -7
- package/dist/extensions/healthie/webhooks/taskCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/taskUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/taskUpdated.js +20 -8
- package/dist/extensions/healthie/webhooks/taskUpdated.js.map +1 -1
- package/dist/extensions/hello-world/webhooks/index.d.ts +1 -1
- package/dist/extensions/markdown.json +0 -4
- package/dist/extensions/zusHealth/webhooks/index.d.ts +37 -1
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.d.ts +2 -1
- package/dist/extensions/zusHealth/webhooks/patientAdmitted.js.map +1 -1
- package/dist/extensions/zusHealth/webhooks/patientDischarged.d.ts +2 -1
- package/dist/extensions/zusHealth/webhooks/patientDischarged.js.map +1 -1
- package/dist/src/test-server.js +4 -0
- package/dist/src/test-server.js.map +1 -1
- package/package.json +6 -5
- package/dist/extensions/healthie/webhooks/goalDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/goalDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/goalDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/metricEntryDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/requestedFormCompletionDeleted.js.map +0 -1
- package/dist/extensions/healthie/webhooks/taskDeleted.d.ts +0 -11
- package/dist/extensions/healthie/webhooks/taskDeleted.js +0 -30
- package/dist/extensions/healthie/webhooks/taskDeleted.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.d.ts +0 -11
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js +0 -39
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js +0 -85
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/checkFlourishCustomer.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.d.ts +0 -18
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js +0 -18
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/fields.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.d.ts +0 -2
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js +0 -9
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.d.ts +0 -35
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js +0 -17
- package/dist/extensions/wellinks-public/actions/checkFlourishCustomer/config/settings.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.d.ts +0 -33
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js +0 -129
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js +0 -154
- package/dist/extensions/wellinks-public/actions/checkForChat/checkForChat.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.d.ts +0 -26
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js +0 -139
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js +0 -185
- package/dist/extensions/wellinks-public/actions/checkForCheckInOverride/checkForCheckInOverride.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.d.ts +0 -23
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js +0 -153
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js +0 -184
- package/dist/extensions/wellinks-public/actions/checkForOverride/checkForOverride.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.d.ts +0 -26
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js +0 -118
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js +0 -119
- package/dist/extensions/wellinks-public/actions/checkForScheduledAppointment/checkForScheduledAppointment.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.d.ts +0 -82
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js +0 -78
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/fields.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js +0 -6
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/config/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js +0 -152
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced-fail.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.d.ts +0 -4
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js +0 -86
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js +0 -42
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/createChartingNoteAdvanced.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js +0 -6
- package/dist/extensions/wellinks-public/actions/createChartingNoteAdvanced/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.d.ts +0 -58
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js +0 -56
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/fields.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.d.ts +0 -2
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js +0 -9
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.d.ts +0 -35
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js +0 -17
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/config/settings.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.d.ts +0 -11
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js +0 -56
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js +0 -53
- package/dist/extensions/wellinks-public/actions/createFlourishCustomer/createFlourishCustomer.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/index.d.ts +0 -967
- package/dist/extensions/wellinks-public/actions/index.js +0 -24
- package/dist/extensions/wellinks-public/actions/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.d.ts +0 -78
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js +0 -66
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/fields.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.d.ts +0 -2
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js +0 -9
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.d.ts +0 -38
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js +0 -11
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/config/settings.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.d.ts +0 -11
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js +0 -75
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js +0 -133
- package/dist/extensions/wellinks-public/actions/insertMemberListEvent/insertMemberListEvent.test.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.d.ts +0 -188
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js +0 -160
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/fields.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.d.ts +0 -2
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js +0 -9
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/index.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.d.ts +0 -35
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js +0 -17
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/config/settings.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.d.ts +0 -19
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js +0 -66
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.js.map +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js +0 -125
- package/dist/extensions/wellinks-public/actions/submitPamSurvey/submitPamSurvey.test.js.map +0 -1
- package/dist/extensions/wellinks-public/api/clients/wellinksClient.d.ts +0 -16
- package/dist/extensions/wellinks-public/api/clients/wellinksClient.js +0 -40
- package/dist/extensions/wellinks-public/api/clients/wellinksClient.js.map +0 -1
- package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.d.ts +0 -14
- package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js +0 -201
- package/dist/extensions/wellinks-public/api/clients/wellinksFlourishClient.js.map +0 -1
- package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.d.ts +0 -3
- package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js +0 -23
- package/dist/extensions/wellinks-public/api/clients/wellinksGraphqlClient.js.map +0 -1
- package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.d.ts +0 -1
- package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js +0 -192
- package/dist/extensions/wellinks-public/api/test/wellinksFlourishClient.test.js.map +0 -1
- package/dist/extensions/wellinks-public/codegen.d.ts +0 -3
- package/dist/extensions/wellinks-public/codegen.js +0 -21
- package/dist/extensions/wellinks-public/codegen.js.map +0 -1
- package/dist/extensions/wellinks-public/config/settings.d.ts +0 -107
- package/dist/extensions/wellinks-public/config/settings.js +0 -89
- package/dist/extensions/wellinks-public/config/settings.js.map +0 -1
- package/dist/extensions/wellinks-public/config/types.d.ts +0 -5
- package/dist/extensions/wellinks-public/config/types.js +0 -3
- package/dist/extensions/wellinks-public/config/types.js.map +0 -1
- package/dist/extensions/wellinks-public/gql/wellinksSdk.d.ts +0 -24110
- package/dist/extensions/wellinks-public/gql/wellinksSdk.js +0 -635
- package/dist/extensions/wellinks-public/gql/wellinksSdk.js.map +0 -1
- package/dist/extensions/wellinks-public/graphql/mutations.d.ts +0 -1
- package/dist/extensions/wellinks-public/graphql/mutations.js +0 -17
- package/dist/extensions/wellinks-public/graphql/mutations.js.map +0 -1
- package/dist/extensions/wellinks-public/graphql/queries.d.ts +0 -5
- package/dist/extensions/wellinks-public/graphql/queries.js +0 -66
- package/dist/extensions/wellinks-public/graphql/queries.js.map +0 -1
- package/dist/extensions/wellinks-public/index.d.ts +0 -2
- package/dist/extensions/wellinks-public/index.js +0 -20
- package/dist/extensions/wellinks-public/index.js.map +0 -1
@@ -2,6 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.appointmentDeleted = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
deletedAppointmentId: {
|
7
10
|
key: 'deletedAppointmentId',
|
@@ -12,19 +15,31 @@ exports.appointmentDeleted = {
|
|
12
15
|
key: 'appointmentDeleted',
|
13
16
|
dataPoints,
|
14
17
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
18
|
+
var _a, _b, _c;
|
19
|
+
try {
|
20
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
21
|
+
const deletedAppointmentId = payload.resource_id.toString();
|
22
|
+
const response = await sdk.getAppointment({
|
23
|
+
id: deletedAppointmentId,
|
24
|
+
include_deleted: true,
|
19
25
|
});
|
20
|
-
|
21
|
-
else {
|
26
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.appointment) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
27
|
await onSuccess({
|
23
28
|
data_points: {
|
24
29
|
deletedAppointmentId,
|
25
30
|
},
|
31
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
32
|
+
patient_identifier: {
|
33
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
34
|
+
value: healthiePatientId,
|
35
|
+
},
|
36
|
+
}),
|
26
37
|
});
|
27
38
|
}
|
39
|
+
catch (error) {
|
40
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
41
|
+
await onError(formattedError);
|
42
|
+
}
|
28
43
|
},
|
29
44
|
};
|
30
45
|
//# sourceMappingURL=appointmentDeleted.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appointmentDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/appointmentDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"appointmentDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/appointmentDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAGhD,MAAM,UAAU,GAAG;IACjB,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE3D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC;gBACxC,EAAE,EAAE,oBAAoB;gBACxB,eAAe,EAAE,IAAI;aACtB,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,WAAW,0CAAE,IAAI,0CAAE,EAAE,CAAA;YAC/D,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,oBAAoB;iBACrB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../../awell/settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
updatedAppointmentId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
9
|
+
appointment: {
|
10
|
+
key: string;
|
11
|
+
valueType: "json";
|
12
|
+
};
|
8
13
|
};
|
9
|
-
export declare const appointmentUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
14
|
+
export declare const appointmentUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
15
|
export type AppointmentUpdated = typeof appointmentUpdated;
|
11
16
|
export {};
|
@@ -2,29 +2,48 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.appointmentUpdated = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
updatedAppointmentId: {
|
7
10
|
key: 'updatedAppointmentId',
|
8
11
|
valueType: 'string',
|
9
12
|
},
|
13
|
+
appointment: {
|
14
|
+
key: 'appointment',
|
15
|
+
valueType: 'json',
|
16
|
+
},
|
10
17
|
};
|
11
18
|
exports.appointmentUpdated = {
|
12
19
|
key: 'appointmentUpdated',
|
13
20
|
dataPoints,
|
14
21
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
22
|
+
var _a, _b, _c, _d;
|
23
|
+
try {
|
24
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
25
|
+
const updatedAppointmentId = payload.resource_id.toString();
|
26
|
+
const response = await sdk.getAppointment({
|
27
|
+
id: updatedAppointmentId,
|
19
28
|
});
|
20
|
-
|
21
|
-
else {
|
29
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.appointment) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
30
|
await onSuccess({
|
23
31
|
data_points: {
|
24
32
|
updatedAppointmentId,
|
33
|
+
appointment: JSON.stringify((_d = response === null || response === void 0 ? void 0 : response.data) === null || _d === void 0 ? void 0 : _d.appointment),
|
25
34
|
},
|
35
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
36
|
+
patient_identifier: {
|
37
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
38
|
+
value: healthiePatientId,
|
39
|
+
},
|
40
|
+
}),
|
26
41
|
});
|
27
42
|
}
|
43
|
+
catch (error) {
|
44
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
45
|
+
await onError(formattedError);
|
46
|
+
}
|
28
47
|
},
|
29
48
|
};
|
30
49
|
//# sourceMappingURL=appointmentUpdated.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"appointmentUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/appointmentUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"appointmentUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/appointmentUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,oBAAoB,EAAE;QACpB,GAAG,EAAE,sBAAsB;QAC3B,SAAS,EAAE,QAAQ;KACpB;IACD,WAAW,EAAE;QACX,GAAG,EAAE,aAAa;QAClB,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,kBAAkB,GAI3B;IACF,GAAG,EAAE,oBAAoB;IACzB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAA;YAE3D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC;gBACxC,EAAE,EAAE,oBAAoB;aACzB,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,WAAW,0CAAE,IAAI,0CAAE,EAAE,CAAA;YAC/D,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,oBAAoB;oBACpB,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,WAAW,CAAC;iBACzD;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
createdFormAnswerGroupId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
9
|
+
createdFormAnswerGroup: {
|
10
|
+
key: string;
|
11
|
+
valueType: "json";
|
12
|
+
};
|
8
13
|
};
|
9
|
-
export declare const formAnswerGroupCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
14
|
+
export declare const formAnswerGroupCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
15
|
export type FormAnswerGroupCreated = typeof formAnswerGroupCreated;
|
11
16
|
export {};
|
@@ -2,29 +2,48 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.formAnswerGroupCreated = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
createdFormAnswerGroupId: {
|
7
10
|
key: 'createdFormAnswerGroupId',
|
8
11
|
valueType: 'string',
|
9
12
|
},
|
13
|
+
createdFormAnswerGroup: {
|
14
|
+
key: 'createdFormAnswerGroup',
|
15
|
+
valueType: 'json',
|
16
|
+
},
|
10
17
|
};
|
11
18
|
exports.formAnswerGroupCreated = {
|
12
19
|
key: 'formAnswerGroupCreated',
|
13
20
|
dataPoints,
|
14
21
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
22
|
+
var _a, _b, _c, _d;
|
23
|
+
try {
|
24
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
25
|
+
const createdFormAnswerGroupId = payload.resource_id.toString();
|
26
|
+
const response = await sdk.getFormAnswerGroup({
|
27
|
+
id: createdFormAnswerGroupId,
|
19
28
|
});
|
20
|
-
|
21
|
-
else {
|
29
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.formAnswerGroup) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
30
|
await onSuccess({
|
23
31
|
data_points: {
|
24
32
|
createdFormAnswerGroupId,
|
33
|
+
createdFormAnswerGroup: JSON.stringify((_d = response === null || response === void 0 ? void 0 : response.data) === null || _d === void 0 ? void 0 : _d.formAnswerGroup),
|
25
34
|
},
|
35
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
36
|
+
patient_identifier: {
|
37
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
38
|
+
value: healthiePatientId,
|
39
|
+
},
|
40
|
+
}),
|
26
41
|
});
|
27
42
|
}
|
28
|
-
|
43
|
+
catch (error) {
|
44
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
45
|
+
await onError(formattedError);
|
46
|
+
}
|
47
|
+
}
|
29
48
|
};
|
30
49
|
//# sourceMappingURL=formAnswerGroupCreated.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formAnswerGroupCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"formAnswerGroupCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,wBAAwB,EAAE;QACxB,GAAG,EAAE,0BAA0B;QAC/B,SAAS,EAAE,QAAQ;KACpB;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,wBAAwB;QAC7B,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,sBAAsB,GAI/B;IACF,GAAG,EAAE,wBAAwB;IAC7B,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAEhE,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC;gBAC5C,EAAE,EAAE,wBAAwB;aAC7B,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,0CAAE,IAAI,0CAAE,EAAE,CAAA;YACnE,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,wBAAwB;oBACxB,sBAAsB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,CAAC;iBACxE;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
deletedFormAnswerGroupId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
8
9
|
};
|
9
|
-
export declare const formAnswerGroupDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
10
|
+
export declare const formAnswerGroupDeleted: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
11
|
export type FormAnswerGroupDeleted = typeof formAnswerGroupDeleted;
|
11
12
|
export {};
|
@@ -2,6 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.formAnswerGroupDeleted = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
deletedFormAnswerGroupId: {
|
7
10
|
key: 'deletedFormAnswerGroupId',
|
@@ -12,19 +15,30 @@ exports.formAnswerGroupDeleted = {
|
|
12
15
|
key: 'formAnswerGroupDeleted',
|
13
16
|
dataPoints,
|
14
17
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
18
|
+
var _a, _b, _c;
|
19
|
+
try {
|
20
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
21
|
+
const deletedFormAnswerGroupId = payload.resource_id.toString();
|
22
|
+
const response = await sdk.getFormAnswerGroup({
|
23
|
+
id: deletedFormAnswerGroupId,
|
19
24
|
});
|
20
|
-
|
21
|
-
else {
|
25
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.formAnswerGroup) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
26
|
await onSuccess({
|
23
27
|
data_points: {
|
24
28
|
deletedFormAnswerGroupId,
|
25
29
|
},
|
30
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
31
|
+
patient_identifier: {
|
32
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
33
|
+
value: healthiePatientId,
|
34
|
+
},
|
35
|
+
}),
|
26
36
|
});
|
27
37
|
}
|
38
|
+
catch (error) {
|
39
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
40
|
+
await onError(formattedError);
|
41
|
+
}
|
28
42
|
},
|
29
43
|
};
|
30
44
|
//# sourceMappingURL=formAnswerGroupDeleted.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formAnswerGroupDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"formAnswerGroupDeleted.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupDeleted.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,wBAAwB,EAAE;QACxB,GAAG,EAAE,0BAA0B;QAC/B,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,sBAAsB,GAI/B;IACF,GAAG,EAAE,wBAAwB;IAC7B,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAEhE,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC;gBAC5C,EAAE,EAAE,wBAAwB;aAC7B,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,0CAAE,IAAI,0CAAE,EAAE,CAAA;YACnE,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,wBAAwB;iBACzB;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IAEH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
lockedFormAnswerGroupId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
9
|
+
lockedFormAnswerGroup: {
|
10
|
+
key: string;
|
11
|
+
valueType: "json";
|
12
|
+
};
|
8
13
|
};
|
9
|
-
export declare const formAnswerGroupLocked: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
14
|
+
export declare const formAnswerGroupLocked: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
15
|
export type FormAnswerGroupLocked = typeof formAnswerGroupLocked;
|
11
16
|
export {};
|
@@ -2,29 +2,48 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.formAnswerGroupLocked = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
lockedFormAnswerGroupId: {
|
7
10
|
key: 'lockedFormAnswerGroupId',
|
8
11
|
valueType: 'string',
|
9
12
|
},
|
13
|
+
lockedFormAnswerGroup: {
|
14
|
+
key: 'lockedFormAnswerGroup',
|
15
|
+
valueType: 'json',
|
16
|
+
},
|
10
17
|
};
|
11
18
|
exports.formAnswerGroupLocked = {
|
12
19
|
key: 'formAnswerGroupLocked',
|
13
20
|
dataPoints,
|
14
21
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
22
|
+
var _a, _b, _c, _d;
|
23
|
+
try {
|
24
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
25
|
+
const lockedFormAnswerGroupId = payload.resource_id.toString();
|
26
|
+
const response = await sdk.getFormAnswerGroup({
|
27
|
+
id: lockedFormAnswerGroupId,
|
19
28
|
});
|
20
|
-
|
21
|
-
else {
|
29
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.formAnswerGroup) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
30
|
await onSuccess({
|
23
31
|
data_points: {
|
24
32
|
lockedFormAnswerGroupId,
|
33
|
+
lockedFormAnswerGroup: JSON.stringify((_d = response === null || response === void 0 ? void 0 : response.data) === null || _d === void 0 ? void 0 : _d.formAnswerGroup),
|
25
34
|
},
|
35
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
36
|
+
patient_identifier: {
|
37
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
38
|
+
value: healthiePatientId,
|
39
|
+
},
|
40
|
+
}),
|
26
41
|
});
|
27
42
|
}
|
43
|
+
catch (error) {
|
44
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
45
|
+
await onError(formattedError);
|
46
|
+
}
|
28
47
|
},
|
29
48
|
};
|
30
49
|
//# sourceMappingURL=formAnswerGroupLocked.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formAnswerGroupLocked.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupLocked.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"formAnswerGroupLocked.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupLocked.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uBAAuB;QAC5B,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAE/D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC;gBAC5C,EAAE,EAAE,uBAAuB;aAC5B,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,0CAAE,IAAI,0CAAE,EAAE,CAAA;YACnE,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;oBACvB,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,CAAC;iBACvE;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,16 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
signedFormAnswerGroupId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
9
|
+
signedFormAnswerGroup: {
|
10
|
+
key: string;
|
11
|
+
valueType: "json";
|
12
|
+
};
|
8
13
|
};
|
9
|
-
export declare const formAnswerGroupSigned: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
14
|
+
export declare const formAnswerGroupSigned: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
15
|
export type FormAnswerGroupSigned = typeof formAnswerGroupSigned;
|
11
16
|
export {};
|
@@ -2,29 +2,48 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.formAnswerGroupSigned = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const errors_1 = require("../lib/sdk/errors");
|
7
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
5
8
|
const dataPoints = {
|
6
9
|
signedFormAnswerGroupId: {
|
7
10
|
key: 'signedFormAnswerGroupId',
|
8
11
|
valueType: 'string',
|
9
12
|
},
|
13
|
+
signedFormAnswerGroup: {
|
14
|
+
key: 'signedFormAnswerGroup',
|
15
|
+
valueType: 'json',
|
16
|
+
},
|
10
17
|
};
|
11
18
|
exports.formAnswerGroupSigned = {
|
12
19
|
key: 'formAnswerGroupSigned',
|
13
20
|
dataPoints,
|
14
21
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
22
|
+
var _a, _b, _c, _d;
|
23
|
+
try {
|
24
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
25
|
+
const signedFormAnswerGroupId = payload.resource_id.toString();
|
26
|
+
const response = await sdk.getFormAnswerGroup({
|
27
|
+
id: signedFormAnswerGroupId,
|
19
28
|
});
|
20
|
-
|
21
|
-
else {
|
29
|
+
const healthiePatientId = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.formAnswerGroup) === null || _b === void 0 ? void 0 : _b.user) === null || _c === void 0 ? void 0 : _c.id;
|
22
30
|
await onSuccess({
|
23
31
|
data_points: {
|
24
32
|
signedFormAnswerGroupId,
|
33
|
+
signedFormAnswerGroup: JSON.stringify((_d = response === null || response === void 0 ? void 0 : response.data) === null || _d === void 0 ? void 0 : _d.formAnswerGroup),
|
25
34
|
},
|
35
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
36
|
+
patient_identifier: {
|
37
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
38
|
+
value: healthiePatientId,
|
39
|
+
},
|
40
|
+
}),
|
26
41
|
});
|
27
42
|
}
|
43
|
+
catch (error) {
|
44
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
45
|
+
await onError(formattedError);
|
46
|
+
}
|
28
47
|
},
|
29
48
|
};
|
30
49
|
//# sourceMappingURL=formAnswerGroupSigned.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formAnswerGroupSigned.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupSigned.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"formAnswerGroupSigned.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/formAnswerGroupSigned.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,8CAAgD;AAChD,oDAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,uBAAuB,EAAE;QACvB,GAAG,EAAE,yBAAyB;QAC9B,SAAS,EAAE,QAAQ;KACpB;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uBAAuB;QAC5B,SAAS,EAAE,MAAM;KAClB;CAC4C,CAAA;AAElC,QAAA,qBAAqB,GAI9B;IACF,GAAG,EAAE,uBAAuB;IAC5B,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAE/D,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,kBAAkB,CAAC;gBAC5C,EAAE,EAAE,uBAAuB;aAC5B,CAAC,CAAA;YACF,MAAM,iBAAiB,GAAG,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,0CAAE,IAAI,0CAAE,EAAE,CAAA;YACnE,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,uBAAuB;oBACvB,qBAAqB,EAAE,IAAI,CAAC,SAAS,CAAC,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,eAAe,CAAC;iBACvE;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
createdGoalId: {
|
5
6
|
key: string;
|
6
|
-
valueType: "
|
7
|
+
valueType: "number";
|
7
8
|
};
|
8
9
|
};
|
9
|
-
export declare const goalCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
10
|
+
export declare const goalCreated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
11
|
export type GoalCreated = typeof goalCreated;
|
11
12
|
export {};
|
@@ -2,29 +2,41 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.goalCreated = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
7
|
+
const errors_1 = require("../lib/sdk/errors");
|
5
8
|
const dataPoints = {
|
6
9
|
createdGoalId: {
|
7
10
|
key: 'createdGoalId',
|
8
|
-
valueType: '
|
11
|
+
valueType: 'number',
|
9
12
|
},
|
10
13
|
};
|
11
14
|
exports.goalCreated = {
|
12
15
|
key: 'goalCreated',
|
13
16
|
dataPoints,
|
14
17
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
19
|
-
});
|
20
|
-
|
21
|
-
else {
|
18
|
+
var _a, _b;
|
19
|
+
try {
|
20
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
21
|
+
const createdGoalId = payload.resource_id.toString();
|
22
|
+
const response = await sdk.getGoal({ id: createdGoalId });
|
23
|
+
const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.goal) === null || _b === void 0 ? void 0 : _b.user_id;
|
22
24
|
await onSuccess({
|
23
25
|
data_points: {
|
24
26
|
createdGoalId,
|
25
27
|
},
|
28
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
29
|
+
patient_identifier: {
|
30
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
31
|
+
value: healthiePatientId,
|
32
|
+
},
|
33
|
+
}),
|
26
34
|
});
|
27
35
|
}
|
28
|
-
|
36
|
+
catch (error) {
|
37
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
38
|
+
await onError(formattedError);
|
39
|
+
}
|
40
|
+
}
|
29
41
|
};
|
30
42
|
//# sourceMappingURL=goalCreated.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"goalCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/goalCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"goalCreated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/goalCreated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAC/E,oDAAgD;AAEhD,8CAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EACJ,GAAG,EACJ,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAG/B,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YACrD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,OAAO,CAAA;YAEvD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
import { type HealthieWebhookPayload } from '../lib/types';
|
3
|
+
import { type settings } from '../settings';
|
3
4
|
declare const dataPoints: {
|
4
5
|
updatedGoalId: {
|
5
6
|
key: string;
|
6
7
|
valueType: "string";
|
7
8
|
};
|
8
9
|
};
|
9
|
-
export declare const goalUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload>;
|
10
|
+
export declare const goalUpdated: Webhook<keyof typeof dataPoints, HealthieWebhookPayload, typeof settings>;
|
10
11
|
export type GoalUpdated = typeof goalUpdated;
|
11
12
|
export {};
|
@@ -2,6 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.goalUpdated = void 0;
|
4
4
|
const lodash_1 = require("lodash");
|
5
|
+
const types_1 = require("../lib/types");
|
6
|
+
const createSdk_1 = require("../lib/sdk/createSdk");
|
7
|
+
const errors_1 = require("../lib/sdk/errors");
|
5
8
|
const dataPoints = {
|
6
9
|
updatedGoalId: {
|
7
10
|
key: 'updatedGoalId',
|
@@ -12,19 +15,28 @@ exports.goalUpdated = {
|
|
12
15
|
key: 'goalUpdated',
|
13
16
|
dataPoints,
|
14
17
|
onWebhookReceived: async ({ payload, settings }, onSuccess, onError) => {
|
15
|
-
|
16
|
-
|
17
|
-
await
|
18
|
-
|
19
|
-
});
|
20
|
-
|
21
|
-
else {
|
18
|
+
var _a, _b;
|
19
|
+
try {
|
20
|
+
const { sdk } = await (0, createSdk_1.createSdk)({ settings });
|
21
|
+
const updatedGoalId = payload.resource_id.toString();
|
22
|
+
const response = await sdk.getGoal({ id: updatedGoalId });
|
23
|
+
const healthiePatientId = (_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.goal) === null || _b === void 0 ? void 0 : _b.user_id;
|
22
24
|
await onSuccess({
|
23
25
|
data_points: {
|
24
26
|
updatedGoalId,
|
25
27
|
},
|
28
|
+
...(!(0, lodash_1.isNil)(healthiePatientId) && {
|
29
|
+
patient_identifier: {
|
30
|
+
system: types_1.HEALTHIE_IDENTIFIER,
|
31
|
+
value: healthiePatientId,
|
32
|
+
},
|
33
|
+
}),
|
26
34
|
});
|
27
35
|
}
|
28
|
-
|
36
|
+
catch (error) {
|
37
|
+
const formattedError = (0, errors_1.formatErrors)(error);
|
38
|
+
await onError(formattedError);
|
39
|
+
}
|
40
|
+
}
|
29
41
|
};
|
30
42
|
//# sourceMappingURL=goalUpdated.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"goalUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/goalUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;
|
1
|
+
{"version":3,"file":"goalUpdated.js","sourceRoot":"","sources":["../../../../extensions/healthie/webhooks/goalUpdated.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAK9B,wCAA+E;AAE/E,oDAAgD;AAChD,8CAAgD;AAEhD,MAAM,UAAU,GAAG;IACjB,aAAa,EAAE;QACb,GAAG,EAAE,eAAe;QACpB,SAAS,EAAE,QAAQ;KACpB;CAC4C,CAAA;AAElC,QAAA,WAAW,GAIpB;IACF,GAAG,EAAE,aAAa;IAClB,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;;QACrE,IAAI;YACF,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,qBAAS,EAAC,EAAC,QAAQ,EAAC,CAAC,CAAA;YAC3C,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;YAErD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;YACzD,MAAM,iBAAiB,GAAG,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,0CAAE,IAAI,0CAAE,OAAO,CAAA;YACvD,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE;oBACX,aAAa;iBACd;gBACD,GAAG,CAAC,CAAC,IAAA,cAAK,EAAC,iBAAiB,CAAC,IAAI;oBAC/B,kBAAkB,EAAE;wBAClB,MAAM,EAAE,2BAAmB;wBAC3B,KAAK,EAAE,iBAAiB;qBACzB;iBACF,CAAC;aACH,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,MAAM,cAAc,GAAG,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAA;YAC1C,MAAM,OAAO,CAAC,cAAc,CAAC,CAAA;SAC9B;IACH,CAAC;CACF,CAAA"}
|