@awell-health/awell-extensions 1.1.43 → 1.1.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/extensions/athenahealth/actions/index.d.ts +1 -1
- package/dist/extensions/athenahealth/settings.d.ts +2 -2
- package/dist/extensions/awell/v1/actions/updatePatient/config/fields.d.ts +2 -2
- 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/actions/createBooking/config/fields.d.ts +12 -12
- package/dist/extensions/calDotCom/actions/updateBooking/config/fields.d.ts +6 -6
- package/dist/extensions/calDotCom/schema.d.ts +70 -70
- package/dist/extensions/calDotCom/webhooks/index.d.ts +1 -1
- package/dist/extensions/calendly/schema.d.ts +262 -262
- package/dist/extensions/calendly/webhooks/index.d.ts +1 -1
- package/dist/extensions/canvasMedical/v1/actions/createClaim/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/createCoverage/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/createQuestionnaireResponses/config/fields.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/actions/updateCoverage/config/fields.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/address.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/appointment.zod.d.ts +48 -48
- package/dist/extensions/canvasMedical/v1/validation/claim.d.ts +6 -6
- package/dist/extensions/canvasMedical/v1/validation/coding.zod.d.ts +2 -2
- package/dist/extensions/canvasMedical/v1/validation/coverage.zod.d.ts +6 -6
- package/dist/extensions/canvasMedical/v1/validation/identifier.zod.d.ts +8 -8
- package/dist/extensions/canvasMedical/v1/validation/patient.zod.d.ts +148 -148
- package/dist/extensions/canvasMedical/v1/validation/questionnaireResponses.zod.d.ts +30 -30
- package/dist/extensions/canvasMedical/v1/validation/settings.zod.d.ts +4 -4
- package/dist/extensions/canvasMedical/v1/validation/task.zod.d.ts +12 -12
- package/dist/extensions/collectData/v1/actions/remoteSingleSelect/config/fields.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/patientReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskGroup.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskListReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/taskWorkflowStatusReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/atoms/userReference.schema.d.ts +2 -2
- package/dist/extensions/dockHealth/api/schema/patient.schema.d.ts +10 -10
- package/dist/extensions/dockHealth/api/schema/task.schema.d.ts +77 -77
- package/dist/extensions/dockHealth/lib/dock.types.d.ts +2 -2
- package/dist/extensions/elation/actions/index.d.ts +2 -2
- package/dist/extensions/elation/validation/appointment.zod.d.ts +18 -18
- package/dist/extensions/elation/validation/labOrder.zod.d.ts +2 -2
- package/dist/extensions/elation/validation/nonVisitNote.zod.d.ts +6 -6
- package/dist/extensions/elation/validation/patient.zod.d.ts +116 -116
- package/dist/extensions/elation/validation/physician.zod.d.ts +2 -2
- package/dist/extensions/elation/validation/settings.zod.d.ts +6 -6
- package/dist/extensions/elation/webhooks/index.d.ts +1 -1
- package/dist/extensions/formsort/settings.d.ts +3 -3
- package/dist/extensions/healthie/lib/helpers.d.ts +8 -0
- package/dist/extensions/healthie/lib/helpers.js +6 -1
- package/dist/extensions/healthie/lib/helpers.js.map +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 +46 -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.js.map +1 -1
- package/dist/extensions/healthie/lib/types.d.ts +2 -1
- package/dist/extensions/healthie/lib/types.js +2 -0
- package/dist/extensions/healthie/lib/types.js.map +1 -1
- package/dist/extensions/healthie/lib/validation/createTask.zod.d.ts +1 -1
- package/dist/extensions/healthie/lib/validation/sendFormCompletionRequest.zod.d.ts +4 -4
- package/dist/extensions/healthie/webhooks/appliedTagCreated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appliedTagCreated.js +20 -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 +20 -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 +26 -6
- package/dist/extensions/healthie/webhooks/appointmentCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.d.ts +1 -0
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.js +61 -0
- package/dist/extensions/healthie/webhooks/appointmentCreated.test.js.map +1 -0
- package/dist/extensions/healthie/webhooks/appointmentDeleted.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/appointmentDeleted.js +22 -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 +26 -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 +27 -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 +21 -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 +26 -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 +26 -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 +22 -9
- package/dist/extensions/healthie/webhooks/goalCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/goalCreated.test.d.ts +1 -0
- package/dist/extensions/healthie/webhooks/goalCreated.test.js +35 -0
- package/dist/extensions/healthie/webhooks/goalCreated.test.js.map +1 -0
- package/dist/extensions/healthie/webhooks/goalUpdated.d.ts +2 -1
- package/dist/extensions/healthie/webhooks/goalUpdated.js +21 -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 +20 -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 +20 -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 +21 -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 +21 -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 +20 -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 +20 -7
- package/dist/extensions/healthie/webhooks/metricEntryUpdated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientCreated.js +8 -1
- package/dist/extensions/healthie/webhooks/patientCreated.js.map +1 -1
- package/dist/extensions/healthie/webhooks/patientUpdated.js +8 -1
- 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 +20 -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 +20 -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 +20 -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 +21 -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/infobip/v1/actions/sendEmail/config/fields.d.ts +2 -2
- package/dist/extensions/mailgun/settings.d.ts +1 -1
- package/dist/extensions/mailgun/v1/actions/sendEmailWithTemplate/config/fields.d.ts +2 -2
- package/dist/extensions/math/v1/actions/calculateDateDifference/config/fields.d.ts +2 -2
- package/dist/extensions/math/v1/actions/generateRandomNumber/config/fields.d.ts +2 -2
- package/dist/extensions/medplum/actions/createPatient/config/fields.d.ts +4 -4
- package/dist/extensions/medplum/actions/createServiceRequest/config/fields.d.ts +4 -4
- package/dist/extensions/medplum/actions/createTask/config/fields.d.ts +6 -6
- package/dist/extensions/medplum/fhir/schemas/atoms/PeriodSchema.d.ts +2 -2
- package/dist/extensions/medplum/fhir/schemas/resources/patient.schema.d.ts +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/serviceRequest.schema.d.ts +4 -4
- package/dist/extensions/medplum/fhir/schemas/resources/task.schema.d.ts +6 -6
- package/dist/extensions/metriport/actions/index.d.ts +1 -1
- package/dist/extensions/metriport/actions/patient/validation.d.ts +4 -4
- package/dist/extensions/stripe/actions/createCustomer/config/fields.d.ts +2 -2
- package/dist/extensions/stripe/actions/embeddedCheckout/config/fields.d.ts +2 -2
- package/dist/extensions/talkDesk/settings.d.ts +1 -1
- package/dist/extensions/textline/client/schema.d.ts +10 -10
- package/dist/extensions/westFax/actions/sendFax/sendFax.test.js +13 -3
- package/dist/extensions/westFax/actions/sendFax/sendFax.test.js.map +1 -1
- package/dist/extensions/westFax/settings.d.ts +2 -2
- package/dist/extensions/zendesk/v1/actions/createTask/config/fields.d.ts +2 -2
- package/dist/extensions/zusHealth/validation/settings.zod.d.ts +6 -6
- 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 +4 -3
- 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
@@ -102,7 +102,7 @@ declare const actions: {
|
|
102
102
|
required: true;
|
103
103
|
description: string;
|
104
104
|
};
|
105
|
-
}, "
|
105
|
+
}, "status" | "date" | "patientId" | "startTime" | "duration" | "appointmentTypeId" | "appointmentTypeName">;
|
106
106
|
createPatient: import("@awell-health/extensions-core").Action<{
|
107
107
|
departmentid: {
|
108
108
|
id: string;
|
@@ -51,16 +51,16 @@ export declare const SettingsValidationSchema: z.ZodObject<{
|
|
51
51
|
scope: z.ZodString;
|
52
52
|
practiceId: z.ZodString;
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
54
|
+
client_secret: string;
|
54
55
|
auth_url: string;
|
55
56
|
client_id: string;
|
56
|
-
client_secret: string;
|
57
57
|
scope: string;
|
58
58
|
practiceId: string;
|
59
59
|
api_url: string;
|
60
60
|
}, {
|
61
|
+
client_secret: string;
|
61
62
|
auth_url: string;
|
62
63
|
client_id: string;
|
63
|
-
client_secret: string;
|
64
64
|
scope: string;
|
65
65
|
practiceId: string;
|
66
66
|
api_url: string;
|
@@ -117,7 +117,6 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
117
117
|
sex: z.ZodOptional<z.ZodEffects<z.ZodEnum<[Sex.Female, Sex.Male, Sex.NotKnown]>, Sex, unknown>>;
|
118
118
|
nationalRegistryNumber: z.ZodOptional<z.ZodString>;
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
120
|
-
state?: string | undefined;
|
121
120
|
email?: string | undefined;
|
122
121
|
phone?: import("libphonenumber-js").E164Number | undefined;
|
123
122
|
sex?: Sex | undefined;
|
@@ -129,11 +128,11 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
129
128
|
preferredLanguage?: string | undefined;
|
130
129
|
city?: string | undefined;
|
131
130
|
country?: string | undefined;
|
131
|
+
state?: string | undefined;
|
132
132
|
street?: string | undefined;
|
133
133
|
zip?: string | undefined;
|
134
134
|
nationalRegistryNumber?: string | undefined;
|
135
135
|
}, {
|
136
|
-
state?: string | undefined;
|
137
136
|
email?: string | undefined;
|
138
137
|
phone?: string | undefined;
|
139
138
|
sex?: unknown;
|
@@ -145,6 +144,7 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
145
144
|
preferredLanguage?: string | undefined;
|
146
145
|
city?: string | undefined;
|
147
146
|
country?: string | undefined;
|
147
|
+
state?: string | undefined;
|
148
148
|
street?: string | undefined;
|
149
149
|
zip?: string | undefined;
|
150
150
|
nationalRegistryNumber?: string | undefined;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export type { PathwayCompletedPayload } from './pathwayCompleted';
|
2
2
|
export type { PathwayStartPayload } from './pathwayStart';
|
3
|
-
export declare const webhooks: (import("@awell-health/extensions-core").Webhook<"pathway_definition_id" | "complete_date", import("./pathwayCompleted").PathwayCompletedPayload
|
3
|
+
export declare const webhooks: (import("@awell-health/extensions-core").Webhook<"pathway_definition_id" | "complete_date", import("./pathwayCompleted").PathwayCompletedPayload, Record<string, import("@awell-health/extensions-core").Setting>> | import("@awell-health/extensions-core").Webhook<never, import("./pathwayStart").PathwayStartPayload, Record<string, import("@awell-health/extensions-core").Setting>>)[];
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { type Webhook } from '@awell-health/extensions-core';
|
2
2
|
declare const dataPoints: {};
|
3
|
-
export type PathwayStartPayload = Record<string, unknown
|
3
|
+
export type PathwayStartPayload = Record<string, unknown> & {
|
4
|
+
patient_id: string;
|
5
|
+
};
|
4
6
|
export declare const pathwayStart: Webhook<keyof typeof dataPoints, PathwayStartPayload>;
|
5
7
|
export type PathwayStartWebhook = typeof pathwayStart;
|
6
8
|
export {};
|
@@ -1,15 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.pathwayStart = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
4
5
|
const dataPoints = {};
|
5
6
|
exports.pathwayStart = {
|
6
7
|
key: 'pathwayStart',
|
7
8
|
description: 'Start a pathway via webhook. No data points are expected nor required.',
|
8
9
|
dataPoints,
|
9
10
|
onWebhookReceived: async ({ payload }, onSuccess) => {
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
if (!(0, lodash_1.isNil)(payload.patient_id)) {
|
12
|
+
const { patient_id } = payload;
|
13
|
+
await onSuccess({
|
14
|
+
data_points: {},
|
15
|
+
patient_id,
|
16
|
+
});
|
17
|
+
}
|
18
|
+
else {
|
19
|
+
await onSuccess({
|
20
|
+
data_points: {},
|
21
|
+
});
|
22
|
+
}
|
13
23
|
},
|
14
24
|
};
|
15
25
|
//# sourceMappingURL=pathwayStart.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pathwayStart.js","sourceRoot":"","sources":["../../../../../extensions/awell/v1/webhooks/pathwayStart.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"pathwayStart.js","sourceRoot":"","sources":["../../../../../extensions/awell/v1/webhooks/pathwayStart.ts"],"names":[],"mappings":";;;AAIA,mCAA8B;AAE9B,MAAM,UAAU,GAAG,EAAgD,CAAA;AAMtD,QAAA,YAAY,GAGrB;IACF,GAAG,EAAE,cAAc;IACnB,WAAW,EACT,wEAAwE;IAC1E,UAAU;IACV,iBAAiB,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE;QAClD,IAAI,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YAC9B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;YAC9B,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE,EAAE;gBACf,UAAU;aACX,CAAC,CAAA;SACH;aAAM;YACL,MAAM,SAAS,CAAC;gBACd,WAAW,EAAE,EAAE;aAChB,CAAC,CAAA;SACH;IACH,CAAC;CACF,CAAA"}
|
@@ -104,32 +104,32 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
104
104
|
description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
105
105
|
status: z.ZodUnion<[z.ZodOptional<z.ZodEnum<["ACCEPTED", "PENDING", "CANCELLED", "REJECTED"]>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
107
|
+
timeZone: string;
|
108
|
+
eventTypeId: number;
|
107
109
|
start: string;
|
108
|
-
language: string;
|
109
110
|
responses: {
|
110
111
|
name: string;
|
111
112
|
email: string;
|
112
113
|
metadata: object;
|
113
114
|
location: string;
|
114
115
|
};
|
115
|
-
|
116
|
-
|
117
|
-
end?: string | undefined;
|
116
|
+
language: string;
|
117
|
+
status?: "ACCEPTED" | "PENDING" | "CANCELLED" | "REJECTED" | undefined;
|
118
118
|
title?: string | undefined;
|
119
|
-
metadata?: object | undefined;
|
120
119
|
description?: string | undefined;
|
121
|
-
|
120
|
+
metadata?: object | undefined;
|
121
|
+
end?: string | undefined;
|
122
122
|
recurringEventId?: number | undefined;
|
123
123
|
}, {
|
124
|
-
start: Date;
|
125
|
-
language: string;
|
126
|
-
responses: string;
|
127
124
|
timeZone: string;
|
128
125
|
eventTypeId: number;
|
129
|
-
|
126
|
+
start: Date;
|
127
|
+
responses: string;
|
128
|
+
language: string;
|
129
|
+
status?: "" | "ACCEPTED" | "PENDING" | "CANCELLED" | "REJECTED" | undefined;
|
130
130
|
title?: string | undefined;
|
131
|
-
metadata?: string | undefined;
|
132
131
|
description?: string | undefined;
|
133
|
-
|
132
|
+
metadata?: string | undefined;
|
133
|
+
end?: "" | Date | undefined;
|
134
134
|
recurringEventId?: number | "" | undefined;
|
135
135
|
}>;
|
@@ -53,16 +53,16 @@ export declare const FieldsValidationSchema: z.ZodObject<{
|
|
53
53
|
end: z.ZodUnion<[z.ZodOptional<z.ZodEffects<z.ZodDate, string, Date>>, z.ZodEffects<z.ZodLiteral<"">, undefined, "">]>;
|
54
54
|
}, "strip", z.ZodTypeAny, {
|
55
55
|
bookingId: string;
|
56
|
-
|
57
|
-
start?: string | undefined;
|
56
|
+
status?: "ACCEPTED" | "PENDING" | "CANCELLED" | "REJECTED" | undefined;
|
58
57
|
title?: string | undefined;
|
59
58
|
description?: string | undefined;
|
60
|
-
|
59
|
+
start?: string | undefined;
|
60
|
+
end?: string | undefined;
|
61
61
|
}, {
|
62
62
|
bookingId: string;
|
63
|
-
|
64
|
-
start?: "" | Date | undefined;
|
63
|
+
status?: "" | "ACCEPTED" | "PENDING" | "CANCELLED" | "REJECTED" | undefined;
|
65
64
|
title?: string | undefined;
|
66
65
|
description?: string | undefined;
|
67
|
-
|
66
|
+
start?: "" | Date | undefined;
|
67
|
+
end?: "" | Date | undefined;
|
68
68
|
}>;
|
@@ -12,13 +12,13 @@ declare const UserSchema: z.ZodObject<{
|
|
12
12
|
timeZone: z.ZodString;
|
13
13
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
15
|
-
name: string;
|
16
15
|
email: string;
|
16
|
+
name: string;
|
17
17
|
timeZone: string;
|
18
18
|
locale?: string | null | undefined;
|
19
19
|
}, {
|
20
|
-
name: string;
|
21
20
|
email: string;
|
21
|
+
name: string;
|
22
22
|
timeZone: string;
|
23
23
|
locale?: string | null | undefined;
|
24
24
|
}>;
|
@@ -38,13 +38,13 @@ export declare const BookingSchema: z.ZodObject<{
|
|
38
38
|
timeZone: z.ZodString;
|
39
39
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
41
|
-
name: string;
|
42
41
|
email: string;
|
42
|
+
name: string;
|
43
43
|
timeZone: string;
|
44
44
|
locale?: string | null | undefined;
|
45
45
|
}, {
|
46
|
-
name: string;
|
47
46
|
email: string;
|
47
|
+
name: string;
|
48
48
|
timeZone: string;
|
49
49
|
locale?: string | null | undefined;
|
50
50
|
}>;
|
@@ -54,13 +54,13 @@ export declare const BookingSchema: z.ZodObject<{
|
|
54
54
|
timeZone: z.ZodString;
|
55
55
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
57
|
-
name: string;
|
58
57
|
email: string;
|
58
|
+
name: string;
|
59
59
|
timeZone: string;
|
60
60
|
locale?: string | null | undefined;
|
61
61
|
}, {
|
62
|
-
name: string;
|
63
62
|
email: string;
|
63
|
+
name: string;
|
64
64
|
timeZone: string;
|
65
65
|
locale?: string | null | undefined;
|
66
66
|
}>, "many">;
|
@@ -72,53 +72,53 @@ export declare const BookingSchema: z.ZodObject<{
|
|
72
72
|
videoCallUrl?: string | undefined;
|
73
73
|
}>;
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
75
|
-
|
76
|
-
startTime: string;
|
75
|
+
status: string;
|
77
76
|
id: number;
|
77
|
+
eventTypeId: number;
|
78
78
|
title: string;
|
79
|
-
metadata: {
|
80
|
-
videoCallUrl?: string | undefined;
|
81
|
-
};
|
82
79
|
description: string;
|
83
|
-
|
80
|
+
startTime: string;
|
81
|
+
endTime: string;
|
82
|
+
uid: string;
|
84
83
|
user: {
|
85
|
-
name: string;
|
86
84
|
email: string;
|
85
|
+
name: string;
|
87
86
|
timeZone: string;
|
88
87
|
locale?: string | null | undefined;
|
89
88
|
};
|
90
|
-
uid: string;
|
91
|
-
eventTypeId: number;
|
92
89
|
attendees: {
|
93
|
-
name: string;
|
94
90
|
email: string;
|
91
|
+
name: string;
|
95
92
|
timeZone: string;
|
96
93
|
locale?: string | null | undefined;
|
97
94
|
}[];
|
98
|
-
}, {
|
99
|
-
endTime: string;
|
100
|
-
startTime: string;
|
101
|
-
id: number;
|
102
|
-
title: string;
|
103
95
|
metadata: {
|
104
96
|
videoCallUrl?: string | undefined;
|
105
97
|
};
|
106
|
-
|
98
|
+
}, {
|
107
99
|
status: string;
|
100
|
+
id: number;
|
101
|
+
eventTypeId: number;
|
102
|
+
title: string;
|
103
|
+
description: string;
|
104
|
+
startTime: string;
|
105
|
+
endTime: string;
|
106
|
+
uid: string;
|
108
107
|
user: {
|
109
|
-
name: string;
|
110
108
|
email: string;
|
109
|
+
name: string;
|
111
110
|
timeZone: string;
|
112
111
|
locale?: string | null | undefined;
|
113
112
|
};
|
114
|
-
uid: string;
|
115
|
-
eventTypeId: number;
|
116
113
|
attendees: {
|
117
|
-
name: string;
|
118
114
|
email: string;
|
115
|
+
name: string;
|
119
116
|
timeZone: string;
|
120
117
|
locale?: string | null | undefined;
|
121
118
|
}[];
|
119
|
+
metadata: {
|
120
|
+
videoCallUrl?: string | undefined;
|
121
|
+
};
|
122
122
|
}>;
|
123
123
|
export declare const GetBookingResponseSchema: z.ZodObject<{
|
124
124
|
booking: z.ZodObject<{
|
@@ -136,13 +136,13 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
|
|
136
136
|
timeZone: z.ZodString;
|
137
137
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
139
|
-
name: string;
|
140
139
|
email: string;
|
140
|
+
name: string;
|
141
141
|
timeZone: string;
|
142
142
|
locale?: string | null | undefined;
|
143
143
|
}, {
|
144
|
-
name: string;
|
145
144
|
email: string;
|
145
|
+
name: string;
|
146
146
|
timeZone: string;
|
147
147
|
locale?: string | null | undefined;
|
148
148
|
}>;
|
@@ -152,13 +152,13 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
|
|
152
152
|
timeZone: z.ZodString;
|
153
153
|
locale: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
154
154
|
}, "strip", z.ZodTypeAny, {
|
155
|
-
name: string;
|
156
155
|
email: string;
|
156
|
+
name: string;
|
157
157
|
timeZone: string;
|
158
158
|
locale?: string | null | undefined;
|
159
159
|
}, {
|
160
|
-
name: string;
|
161
160
|
email: string;
|
161
|
+
name: string;
|
162
162
|
timeZone: string;
|
163
163
|
locale?: string | null | undefined;
|
164
164
|
}>, "many">;
|
@@ -170,105 +170,105 @@ export declare const GetBookingResponseSchema: z.ZodObject<{
|
|
170
170
|
videoCallUrl?: string | undefined;
|
171
171
|
}>;
|
172
172
|
}, "strip", z.ZodTypeAny, {
|
173
|
-
|
174
|
-
startTime: string;
|
173
|
+
status: string;
|
175
174
|
id: number;
|
175
|
+
eventTypeId: number;
|
176
176
|
title: string;
|
177
|
-
metadata: {
|
178
|
-
videoCallUrl?: string | undefined;
|
179
|
-
};
|
180
177
|
description: string;
|
181
|
-
|
178
|
+
startTime: string;
|
179
|
+
endTime: string;
|
180
|
+
uid: string;
|
182
181
|
user: {
|
183
|
-
name: string;
|
184
182
|
email: string;
|
183
|
+
name: string;
|
185
184
|
timeZone: string;
|
186
185
|
locale?: string | null | undefined;
|
187
186
|
};
|
188
|
-
uid: string;
|
189
|
-
eventTypeId: number;
|
190
187
|
attendees: {
|
191
|
-
name: string;
|
192
188
|
email: string;
|
189
|
+
name: string;
|
193
190
|
timeZone: string;
|
194
191
|
locale?: string | null | undefined;
|
195
192
|
}[];
|
196
|
-
}, {
|
197
|
-
endTime: string;
|
198
|
-
startTime: string;
|
199
|
-
id: number;
|
200
|
-
title: string;
|
201
193
|
metadata: {
|
202
194
|
videoCallUrl?: string | undefined;
|
203
195
|
};
|
204
|
-
|
196
|
+
}, {
|
205
197
|
status: string;
|
198
|
+
id: number;
|
199
|
+
eventTypeId: number;
|
200
|
+
title: string;
|
201
|
+
description: string;
|
202
|
+
startTime: string;
|
203
|
+
endTime: string;
|
204
|
+
uid: string;
|
206
205
|
user: {
|
207
|
-
name: string;
|
208
206
|
email: string;
|
207
|
+
name: string;
|
209
208
|
timeZone: string;
|
210
209
|
locale?: string | null | undefined;
|
211
210
|
};
|
212
|
-
uid: string;
|
213
|
-
eventTypeId: number;
|
214
211
|
attendees: {
|
215
|
-
name: string;
|
216
212
|
email: string;
|
213
|
+
name: string;
|
217
214
|
timeZone: string;
|
218
215
|
locale?: string | null | undefined;
|
219
216
|
}[];
|
217
|
+
metadata: {
|
218
|
+
videoCallUrl?: string | undefined;
|
219
|
+
};
|
220
220
|
}>;
|
221
221
|
}, "strip", z.ZodTypeAny, {
|
222
222
|
booking: {
|
223
|
-
|
224
|
-
startTime: string;
|
223
|
+
status: string;
|
225
224
|
id: number;
|
225
|
+
eventTypeId: number;
|
226
226
|
title: string;
|
227
|
-
metadata: {
|
228
|
-
videoCallUrl?: string | undefined;
|
229
|
-
};
|
230
227
|
description: string;
|
231
|
-
|
228
|
+
startTime: string;
|
229
|
+
endTime: string;
|
230
|
+
uid: string;
|
232
231
|
user: {
|
233
|
-
name: string;
|
234
232
|
email: string;
|
233
|
+
name: string;
|
235
234
|
timeZone: string;
|
236
235
|
locale?: string | null | undefined;
|
237
236
|
};
|
238
|
-
uid: string;
|
239
|
-
eventTypeId: number;
|
240
237
|
attendees: {
|
241
|
-
name: string;
|
242
238
|
email: string;
|
239
|
+
name: string;
|
243
240
|
timeZone: string;
|
244
241
|
locale?: string | null | undefined;
|
245
242
|
}[];
|
243
|
+
metadata: {
|
244
|
+
videoCallUrl?: string | undefined;
|
245
|
+
};
|
246
246
|
};
|
247
247
|
}, {
|
248
248
|
booking: {
|
249
|
-
|
250
|
-
startTime: string;
|
249
|
+
status: string;
|
251
250
|
id: number;
|
251
|
+
eventTypeId: number;
|
252
252
|
title: string;
|
253
|
-
metadata: {
|
254
|
-
videoCallUrl?: string | undefined;
|
255
|
-
};
|
256
253
|
description: string;
|
257
|
-
|
254
|
+
startTime: string;
|
255
|
+
endTime: string;
|
256
|
+
uid: string;
|
258
257
|
user: {
|
259
|
-
name: string;
|
260
258
|
email: string;
|
259
|
+
name: string;
|
261
260
|
timeZone: string;
|
262
261
|
locale?: string | null | undefined;
|
263
262
|
};
|
264
|
-
uid: string;
|
265
|
-
eventTypeId: number;
|
266
263
|
attendees: {
|
267
|
-
name: string;
|
268
264
|
email: string;
|
265
|
+
name: string;
|
269
266
|
timeZone: string;
|
270
267
|
locale?: string | null | undefined;
|
271
268
|
}[];
|
269
|
+
metadata: {
|
270
|
+
videoCallUrl?: string | undefined;
|
271
|
+
};
|
272
272
|
};
|
273
273
|
}>;
|
274
274
|
export type Booking = z.infer<typeof BookingSchema>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export type { BookingCreated } from './bookingCreated';
|
2
2
|
export type { BookingCancelled } from './bookingCancelled';
|
3
3
|
export type { BookingRescheduled } from './bookingRescheduled';
|
4
|
-
export declare const webhooks: import("@awell-health/extensions-core").Webhook<"bookingId" | "bookingUid", import("../types").CalComWebhookPayload
|
4
|
+
export declare const webhooks: import("@awell-health/extensions-core").Webhook<"bookingId" | "bookingUid", import("../types").CalComWebhookPayload, Record<string, import("@awell-health/extensions-core").Setting>>[];
|