@blackcode_sa/metaestetics-api 1.6.4 → 1.6.6
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.
- package/dist/admin/index.d.mts +236 -2
- package/dist/admin/index.d.ts +236 -2
- package/dist/admin/index.js +11251 -10447
- package/dist/admin/index.mjs +11251 -10447
- package/dist/backoffice/index.d.mts +2 -0
- package/dist/backoffice/index.d.ts +2 -0
- package/dist/index.d.mts +50 -77
- package/dist/index.d.ts +50 -77
- package/dist/index.js +77 -305
- package/dist/index.mjs +78 -306
- package/package.json +1 -1
- package/src/admin/aggregation/appointment/README.md +128 -0
- package/src/admin/aggregation/appointment/appointment.aggregation.service.ts +1053 -0
- package/src/admin/booking/README.md +125 -0
- package/src/admin/booking/booking.admin.ts +638 -3
- package/src/admin/calendar/calendar.admin.service.ts +183 -0
- package/src/admin/documentation-templates/document-manager.admin.ts +131 -0
- package/src/admin/mailing/appointment/appointment.mailing.service.ts +264 -0
- package/src/admin/mailing/appointment/templates/patient/appointment-confirmed.html +40 -0
- package/src/admin/mailing/base.mailing.service.ts +1 -1
- package/src/admin/mailing/index.ts +2 -0
- package/src/admin/notifications/notifications.admin.ts +397 -1
- package/src/backoffice/types/product.types.ts +2 -0
- package/src/services/appointment/appointment.service.ts +89 -182
- package/src/services/procedure/procedure.service.ts +1 -0
- package/src/types/appointment/index.ts +3 -1
- package/src/types/notifications/index.ts +4 -2
- package/src/types/procedure/index.ts +7 -0
- package/src/validations/appointment.schema.ts +2 -3
- package/src/validations/procedure.schema.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -671,7 +671,9 @@ interface Product {
|
|
|
671
671
|
id?: string;
|
|
672
672
|
name: string;
|
|
673
673
|
brandId: string;
|
|
674
|
+
brandName: string;
|
|
674
675
|
technologyId: string;
|
|
676
|
+
technologyName: string;
|
|
675
677
|
createdAt: Date;
|
|
676
678
|
updatedAt: Date;
|
|
677
679
|
isActive: boolean;
|
|
@@ -750,6 +752,8 @@ interface Procedure {
|
|
|
750
752
|
id: string;
|
|
751
753
|
/** Name of the procedure */
|
|
752
754
|
name: string;
|
|
755
|
+
/** Photos of the procedure */
|
|
756
|
+
photos?: string[];
|
|
753
757
|
/** Detailed description of the procedure */
|
|
754
758
|
description: string;
|
|
755
759
|
/** Family of procedures this belongs to (aesthetics/surgery) */
|
|
@@ -774,6 +778,8 @@ interface Procedure {
|
|
|
774
778
|
blockingConditions: BlockingCondition[];
|
|
775
779
|
/** Treatment benefits of this procedure */
|
|
776
780
|
treatmentBenefits: TreatmentBenefit[];
|
|
781
|
+
/** Contraindications of this procedure */
|
|
782
|
+
contraindications: Contraindication[];
|
|
777
783
|
/** Pre-procedure requirements */
|
|
778
784
|
preRequirements: Requirement[];
|
|
779
785
|
/** Post-procedure requirements */
|
|
@@ -816,6 +822,7 @@ interface CreateProcedureData {
|
|
|
816
822
|
duration: number;
|
|
817
823
|
practitionerId: string;
|
|
818
824
|
clinicBranchId: string;
|
|
825
|
+
photos?: string[];
|
|
819
826
|
}
|
|
820
827
|
/**
|
|
821
828
|
* Data that can be updated for an existing procedure
|
|
@@ -834,6 +841,7 @@ interface UpdateProcedureData {
|
|
|
834
841
|
technologyId?: string;
|
|
835
842
|
productId?: string;
|
|
836
843
|
clinicBranchId?: string;
|
|
844
|
+
photos?: string[];
|
|
837
845
|
}
|
|
838
846
|
/**
|
|
839
847
|
* Collection name for procedures in Firestore
|
|
@@ -4429,6 +4437,7 @@ interface LinkedFormInfo {
|
|
|
4429
4437
|
templateVersion: number;
|
|
4430
4438
|
title: string;
|
|
4431
4439
|
isUserForm: boolean;
|
|
4440
|
+
isRequired?: boolean;
|
|
4432
4441
|
status: FilledDocumentStatus;
|
|
4433
4442
|
path: string;
|
|
4434
4443
|
submittedAt?: Timestamp;
|
|
@@ -4500,6 +4509,7 @@ interface Appointment {
|
|
|
4500
4509
|
completedPreRequirements?: string[];
|
|
4501
4510
|
completedPostRequirements?: string[];
|
|
4502
4511
|
/** NEW: Linked forms (consent, procedure-specific forms, etc.) */
|
|
4512
|
+
linkedFormIds?: string[];
|
|
4503
4513
|
linkedForms?: LinkedFormInfo[];
|
|
4504
4514
|
pendingUserFormsIds?: string[];
|
|
4505
4515
|
/** NEW: Media items (before/after photos, scanned documents, etc.) */
|
|
@@ -4525,7 +4535,6 @@ interface Appointment {
|
|
|
4525
4535
|
* Data needed to create a new Appointment
|
|
4526
4536
|
*/
|
|
4527
4537
|
interface CreateAppointmentData {
|
|
4528
|
-
calendarEventId: string;
|
|
4529
4538
|
clinicBranchId: string;
|
|
4530
4539
|
practitionerId: string;
|
|
4531
4540
|
patientId: string;
|
|
@@ -4563,6 +4572,7 @@ interface UpdateAppointmentData {
|
|
|
4563
4572
|
clinicBranchId?: string;
|
|
4564
4573
|
practitionerId?: string;
|
|
4565
4574
|
/** NEW: For updating linked forms - typically managed by dedicated methods */
|
|
4575
|
+
linkedFormIds?: string[] | FieldValue;
|
|
4566
4576
|
linkedForms?: LinkedFormInfo[] | FieldValue;
|
|
4567
4577
|
/** NEW: For updating media items - typically managed by dedicated methods */
|
|
4568
4578
|
media?: AppointmentMediaItem[] | FieldValue;
|
|
@@ -4598,7 +4608,6 @@ declare const APPOINTMENTS_COLLECTION = "appointments";
|
|
|
4598
4608
|
* Schema for validating appointment creation data
|
|
4599
4609
|
*/
|
|
4600
4610
|
declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
4601
|
-
calendarEventId: z.ZodString;
|
|
4602
4611
|
clinicBranchId: z.ZodString;
|
|
4603
4612
|
practitionerId: z.ZodString;
|
|
4604
4613
|
patientId: z.ZodString;
|
|
@@ -4615,7 +4624,6 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4615
4624
|
procedureId: string;
|
|
4616
4625
|
practitionerId: string;
|
|
4617
4626
|
cost: number;
|
|
4618
|
-
calendarEventId: string;
|
|
4619
4627
|
clinicBranchId: string;
|
|
4620
4628
|
currency: string;
|
|
4621
4629
|
initialStatus: AppointmentStatus;
|
|
@@ -4628,7 +4636,6 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4628
4636
|
procedureId: string;
|
|
4629
4637
|
practitionerId: string;
|
|
4630
4638
|
cost: number;
|
|
4631
|
-
calendarEventId: string;
|
|
4632
4639
|
clinicBranchId: string;
|
|
4633
4640
|
currency: string;
|
|
4634
4641
|
initialStatus: AppointmentStatus;
|
|
@@ -4641,7 +4648,6 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4641
4648
|
procedureId: string;
|
|
4642
4649
|
practitionerId: string;
|
|
4643
4650
|
cost: number;
|
|
4644
|
-
calendarEventId: string;
|
|
4645
4651
|
clinicBranchId: string;
|
|
4646
4652
|
currency: string;
|
|
4647
4653
|
initialStatus: AppointmentStatus;
|
|
@@ -4654,7 +4660,6 @@ declare const createAppointmentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4654
4660
|
procedureId: string;
|
|
4655
4661
|
practitionerId: string;
|
|
4656
4662
|
cost: number;
|
|
4657
|
-
calendarEventId: string;
|
|
4658
4663
|
clinicBranchId: string;
|
|
4659
4664
|
currency: string;
|
|
4660
4665
|
initialStatus: AppointmentStatus;
|
|
@@ -4681,6 +4686,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4681
4686
|
paymentTransactionId: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
4682
4687
|
completedPreRequirements: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodAny]>>;
|
|
4683
4688
|
completedPostRequirements: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodAny]>>;
|
|
4689
|
+
linkedFormIds: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodAny]>>;
|
|
4684
4690
|
pendingUserFormsIds: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodAny]>>;
|
|
4685
4691
|
appointmentStartTime: z.ZodOptional<z.ZodEffects<z.ZodAny, any, any>>;
|
|
4686
4692
|
appointmentEndTime: z.ZodOptional<z.ZodEffects<z.ZodAny, any, any>>;
|
|
@@ -4694,6 +4700,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4694
4700
|
templateVersion: z.ZodNumber;
|
|
4695
4701
|
title: z.ZodString;
|
|
4696
4702
|
isUserForm: z.ZodBoolean;
|
|
4703
|
+
isRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4697
4704
|
status: z.ZodNativeEnum<typeof FilledDocumentStatus>;
|
|
4698
4705
|
path: z.ZodString;
|
|
4699
4706
|
submittedAt: z.ZodOptional<z.ZodEffects<z.ZodAny, any, any>>;
|
|
@@ -4706,6 +4713,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4706
4713
|
templateId: string;
|
|
4707
4714
|
templateVersion: number;
|
|
4708
4715
|
formId: string;
|
|
4716
|
+
isRequired?: boolean | undefined;
|
|
4709
4717
|
submittedAt?: any;
|
|
4710
4718
|
completedAt?: any;
|
|
4711
4719
|
}, {
|
|
@@ -4716,6 +4724,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4716
4724
|
templateId: string;
|
|
4717
4725
|
templateVersion: number;
|
|
4718
4726
|
formId: string;
|
|
4727
|
+
isRequired?: boolean | undefined;
|
|
4719
4728
|
submittedAt?: any;
|
|
4720
4729
|
completedAt?: any;
|
|
4721
4730
|
}>, "many">, z.ZodAny]>>;
|
|
@@ -4780,7 +4789,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4780
4789
|
status?: AppointmentStatus | undefined;
|
|
4781
4790
|
practitionerId?: string | undefined;
|
|
4782
4791
|
cost?: number | undefined;
|
|
4783
|
-
calendarEventId?: string | undefined;
|
|
4784
4792
|
clinicBranchId?: string | undefined;
|
|
4785
4793
|
appointmentStartTime?: any;
|
|
4786
4794
|
appointmentEndTime?: any;
|
|
@@ -4797,7 +4805,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4797
4805
|
paymentTransactionId?: any;
|
|
4798
4806
|
completedPreRequirements?: any;
|
|
4799
4807
|
completedPostRequirements?: any;
|
|
4808
|
+
linkedFormIds?: any;
|
|
4800
4809
|
pendingUserFormsIds?: any;
|
|
4810
|
+
calendarEventId?: string | undefined;
|
|
4801
4811
|
linkedForms?: any;
|
|
4802
4812
|
media?: any;
|
|
4803
4813
|
reviewInfo?: any;
|
|
@@ -4808,7 +4818,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4808
4818
|
status?: AppointmentStatus | undefined;
|
|
4809
4819
|
practitionerId?: string | undefined;
|
|
4810
4820
|
cost?: number | undefined;
|
|
4811
|
-
calendarEventId?: string | undefined;
|
|
4812
4821
|
clinicBranchId?: string | undefined;
|
|
4813
4822
|
appointmentStartTime?: any;
|
|
4814
4823
|
appointmentEndTime?: any;
|
|
@@ -4825,7 +4834,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4825
4834
|
paymentTransactionId?: any;
|
|
4826
4835
|
completedPreRequirements?: any;
|
|
4827
4836
|
completedPostRequirements?: any;
|
|
4837
|
+
linkedFormIds?: any;
|
|
4828
4838
|
pendingUserFormsIds?: any;
|
|
4839
|
+
calendarEventId?: string | undefined;
|
|
4829
4840
|
linkedForms?: any;
|
|
4830
4841
|
media?: any;
|
|
4831
4842
|
reviewInfo?: any;
|
|
@@ -4836,7 +4847,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4836
4847
|
status?: AppointmentStatus | undefined;
|
|
4837
4848
|
practitionerId?: string | undefined;
|
|
4838
4849
|
cost?: number | undefined;
|
|
4839
|
-
calendarEventId?: string | undefined;
|
|
4840
4850
|
clinicBranchId?: string | undefined;
|
|
4841
4851
|
appointmentStartTime?: any;
|
|
4842
4852
|
appointmentEndTime?: any;
|
|
@@ -4853,7 +4863,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4853
4863
|
paymentTransactionId?: any;
|
|
4854
4864
|
completedPreRequirements?: any;
|
|
4855
4865
|
completedPostRequirements?: any;
|
|
4866
|
+
linkedFormIds?: any;
|
|
4856
4867
|
pendingUserFormsIds?: any;
|
|
4868
|
+
calendarEventId?: string | undefined;
|
|
4857
4869
|
linkedForms?: any;
|
|
4858
4870
|
media?: any;
|
|
4859
4871
|
reviewInfo?: any;
|
|
@@ -4864,7 +4876,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4864
4876
|
status?: AppointmentStatus | undefined;
|
|
4865
4877
|
practitionerId?: string | undefined;
|
|
4866
4878
|
cost?: number | undefined;
|
|
4867
|
-
calendarEventId?: string | undefined;
|
|
4868
4879
|
clinicBranchId?: string | undefined;
|
|
4869
4880
|
appointmentStartTime?: any;
|
|
4870
4881
|
appointmentEndTime?: any;
|
|
@@ -4881,7 +4892,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4881
4892
|
paymentTransactionId?: any;
|
|
4882
4893
|
completedPreRequirements?: any;
|
|
4883
4894
|
completedPostRequirements?: any;
|
|
4895
|
+
linkedFormIds?: any;
|
|
4884
4896
|
pendingUserFormsIds?: any;
|
|
4897
|
+
calendarEventId?: string | undefined;
|
|
4885
4898
|
linkedForms?: any;
|
|
4886
4899
|
media?: any;
|
|
4887
4900
|
reviewInfo?: any;
|
|
@@ -4892,7 +4905,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4892
4905
|
status?: AppointmentStatus | undefined;
|
|
4893
4906
|
practitionerId?: string | undefined;
|
|
4894
4907
|
cost?: number | undefined;
|
|
4895
|
-
calendarEventId?: string | undefined;
|
|
4896
4908
|
clinicBranchId?: string | undefined;
|
|
4897
4909
|
appointmentStartTime?: any;
|
|
4898
4910
|
appointmentEndTime?: any;
|
|
@@ -4909,7 +4921,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4909
4921
|
paymentTransactionId?: any;
|
|
4910
4922
|
completedPreRequirements?: any;
|
|
4911
4923
|
completedPostRequirements?: any;
|
|
4924
|
+
linkedFormIds?: any;
|
|
4912
4925
|
pendingUserFormsIds?: any;
|
|
4926
|
+
calendarEventId?: string | undefined;
|
|
4913
4927
|
linkedForms?: any;
|
|
4914
4928
|
media?: any;
|
|
4915
4929
|
reviewInfo?: any;
|
|
@@ -4920,7 +4934,6 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4920
4934
|
status?: AppointmentStatus | undefined;
|
|
4921
4935
|
practitionerId?: string | undefined;
|
|
4922
4936
|
cost?: number | undefined;
|
|
4923
|
-
calendarEventId?: string | undefined;
|
|
4924
4937
|
clinicBranchId?: string | undefined;
|
|
4925
4938
|
appointmentStartTime?: any;
|
|
4926
4939
|
appointmentEndTime?: any;
|
|
@@ -4937,7 +4950,9 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
4937
4950
|
paymentTransactionId?: any;
|
|
4938
4951
|
completedPreRequirements?: any;
|
|
4939
4952
|
completedPostRequirements?: any;
|
|
4953
|
+
linkedFormIds?: any;
|
|
4940
4954
|
pendingUserFormsIds?: any;
|
|
4955
|
+
calendarEventId?: string | undefined;
|
|
4941
4956
|
linkedForms?: any;
|
|
4942
4957
|
media?: any;
|
|
4943
4958
|
reviewInfo?: any;
|
|
@@ -5996,6 +6011,8 @@ declare enum NotificationType {
|
|
|
5996
6011
|
APPOINTMENT_STATUS_CHANGE = "appointmentStatusChange",// Generic for status changes like confirmed, checked-in etc.
|
|
5997
6012
|
APPOINTMENT_RESCHEDULED_PROPOSAL = "appointmentRescheduledProposal",// When clinic proposes a new time
|
|
5998
6013
|
APPOINTMENT_CANCELLED = "appointmentCancelled",// When an appointment is cancelled
|
|
6014
|
+
PRE_REQUIREMENT_INSTRUCTION_DUE = "preRequirementInstructionDue",
|
|
6015
|
+
POST_REQUIREMENT_INSTRUCTION_DUE = "postRequirementInstructionDue",
|
|
5999
6016
|
REQUIREMENT_INSTRUCTION_DUE = "requirementInstructionDue",// For specific pre/post care instructions
|
|
6000
6017
|
FORM_REMINDER = "formReminder",// Reminds user to fill a specific form
|
|
6001
6018
|
FORM_SUBMISSION_CONFIRMATION = "formSubmissionConfirmation",// Confirms form was submitted
|
|
@@ -6061,7 +6078,7 @@ declare enum NotificationStatus {
|
|
|
6061
6078
|
* Notifikacija za pre-requirement
|
|
6062
6079
|
*/
|
|
6063
6080
|
interface PreRequirementNotification extends BaseNotification {
|
|
6064
|
-
notificationType: NotificationType.
|
|
6081
|
+
notificationType: NotificationType.PRE_REQUIREMENT_INSTRUCTION_DUE;
|
|
6065
6082
|
/** ID tretmana za koji je vezan pre-requirement */
|
|
6066
6083
|
treatmentId: string;
|
|
6067
6084
|
/** Lista pre-requirements koji treba da se ispune */
|
|
@@ -6073,7 +6090,7 @@ interface PreRequirementNotification extends BaseNotification {
|
|
|
6073
6090
|
* Notifikacija za post-requirement
|
|
6074
6091
|
*/
|
|
6075
6092
|
interface PostRequirementNotification extends BaseNotification {
|
|
6076
|
-
notificationType: NotificationType.
|
|
6093
|
+
notificationType: NotificationType.POST_REQUIREMENT_INSTRUCTION_DUE;
|
|
6077
6094
|
/** ID tretmana za koji je vezan post-requirement */
|
|
6078
6095
|
treatmentId: string;
|
|
6079
6096
|
/** Lista post-requirements koji treba da se ispune */
|
|
@@ -7186,29 +7203,6 @@ declare class AppointmentService extends BaseService {
|
|
|
7186
7203
|
* @param clinicService Clinic service instance
|
|
7187
7204
|
*/
|
|
7188
7205
|
constructor(db: Firestore, auth: Auth, app: FirebaseApp, calendarService: CalendarServiceV2, patientService: PatientService, practitionerService: PractitionerService, clinicService: ClinicService, filledDocumentService: FilledDocumentService);
|
|
7189
|
-
/**
|
|
7190
|
-
* Test method using the callable function version of getAvailableBookingSlots
|
|
7191
|
-
* For development and testing purposes only - not for production use
|
|
7192
|
-
*
|
|
7193
|
-
* @param clinicId ID of the clinic
|
|
7194
|
-
* @param practitionerId ID of the practitioner
|
|
7195
|
-
* @param procedureId ID of the procedure
|
|
7196
|
-
* @param startDate Start date of the time range to check
|
|
7197
|
-
* @param endDate End date of the time range to check
|
|
7198
|
-
* @returns Test result from the callable function
|
|
7199
|
-
*/
|
|
7200
|
-
testGetAvailableBookingSlots(clinicId: string, practitionerId: string, procedureId: string, startDate: Date, endDate: Date): Promise<any>;
|
|
7201
|
-
/**
|
|
7202
|
-
* Gets available booking slots for a specific clinic, practitioner, and procedure.
|
|
7203
|
-
*
|
|
7204
|
-
* @param clinicId ID of the clinic
|
|
7205
|
-
* @param practitionerId ID of the practitioner
|
|
7206
|
-
* @param procedureId ID of the procedure
|
|
7207
|
-
* @param startDate Start date of the time range to check
|
|
7208
|
-
* @param endDate End date of the time range to check
|
|
7209
|
-
* @returns Array of available booking slots
|
|
7210
|
-
*/
|
|
7211
|
-
getAvailableBookingSlots(clinicId: string, practitionerId: string, procedureId: string, startDate: Date, endDate: Date): Promise<AvailableSlot[]>;
|
|
7212
7206
|
/**
|
|
7213
7207
|
* Gets available booking slots for a specific clinic, practitioner, and procedure using HTTP request.
|
|
7214
7208
|
* This is an alternative implementation using direct HTTP request instead of callable function.
|
|
@@ -7222,12 +7216,12 @@ declare class AppointmentService extends BaseService {
|
|
|
7222
7216
|
*/
|
|
7223
7217
|
getAvailableBookingSlotsHttp(clinicId: string, practitionerId: string, procedureId: string, startDate: Date, endDate: Date): Promise<AvailableSlot[]>;
|
|
7224
7218
|
/**
|
|
7225
|
-
* Creates
|
|
7219
|
+
* Creates an appointment via the Cloud Function orchestrateAppointmentCreation
|
|
7226
7220
|
*
|
|
7227
|
-
* @param data
|
|
7221
|
+
* @param data - CreateAppointmentData object
|
|
7228
7222
|
* @returns The created appointment
|
|
7229
7223
|
*/
|
|
7230
|
-
|
|
7224
|
+
createAppointmentHttp(data: CreateAppointmentData): Promise<Appointment>;
|
|
7231
7225
|
/**
|
|
7232
7226
|
* Gets an appointment by ID.
|
|
7233
7227
|
*
|
|
@@ -7377,22 +7371,6 @@ declare class AppointmentService extends BaseService {
|
|
|
7377
7371
|
* Updates the payment status of an appointment.
|
|
7378
7372
|
*/
|
|
7379
7373
|
updatePaymentStatus(appointmentId: string, paymentStatus: PaymentStatus, paymentTransactionId?: string): Promise<Appointment>;
|
|
7380
|
-
/**
|
|
7381
|
-
* Marks pre-procedure requirements as completed.
|
|
7382
|
-
*
|
|
7383
|
-
* @param appointmentId ID of the appointment
|
|
7384
|
-
* @param requirementIds IDs of the requirements to mark as completed
|
|
7385
|
-
* @returns The updated appointment
|
|
7386
|
-
*/
|
|
7387
|
-
completePreRequirements(appointmentId: string, requirementIds: string[]): Promise<Appointment>;
|
|
7388
|
-
/**
|
|
7389
|
-
* Marks post-procedure requirements as completed.
|
|
7390
|
-
*
|
|
7391
|
-
* @param appointmentId ID of the appointment
|
|
7392
|
-
* @param requirementIds IDs of the requirements to mark as completed
|
|
7393
|
-
* @returns The updated appointment
|
|
7394
|
-
*/
|
|
7395
|
-
completePostRequirements(appointmentId: string, requirementIds: string[]): Promise<Appointment>;
|
|
7396
7374
|
/**
|
|
7397
7375
|
* Updates the internal notes of an appointment.
|
|
7398
7376
|
*
|
|
@@ -7401,11 +7379,6 @@ declare class AppointmentService extends BaseService {
|
|
|
7401
7379
|
* @returns The updated appointment
|
|
7402
7380
|
*/
|
|
7403
7381
|
updateInternalNotes(appointmentId: string, notes: string | null): Promise<Appointment>;
|
|
7404
|
-
/**
|
|
7405
|
-
* Debug helper: Get the current user's ID token for testing purposes
|
|
7406
|
-
* Use this token in Postman with Authorization: Bearer TOKEN
|
|
7407
|
-
*/
|
|
7408
|
-
getDebugToken(): Promise<string | null>;
|
|
7409
7382
|
}
|
|
7410
7383
|
|
|
7411
7384
|
/**
|
|
@@ -11306,6 +11279,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11306
11279
|
}, "strip", z.ZodTypeAny, {
|
|
11307
11280
|
id: string;
|
|
11308
11281
|
name: string;
|
|
11282
|
+
technologyName: string;
|
|
11309
11283
|
duration: number;
|
|
11310
11284
|
practitionerId: string;
|
|
11311
11285
|
clinicId: string;
|
|
@@ -11313,7 +11287,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11313
11287
|
currency: Currency;
|
|
11314
11288
|
categoryName: string;
|
|
11315
11289
|
subcategoryName: string;
|
|
11316
|
-
technologyName: string;
|
|
11317
11290
|
price: number;
|
|
11318
11291
|
pricingMeasure: PricingMeasure;
|
|
11319
11292
|
clinicName: string;
|
|
@@ -11323,6 +11296,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11323
11296
|
}, {
|
|
11324
11297
|
id: string;
|
|
11325
11298
|
name: string;
|
|
11299
|
+
technologyName: string;
|
|
11326
11300
|
duration: number;
|
|
11327
11301
|
practitionerId: string;
|
|
11328
11302
|
clinicId: string;
|
|
@@ -11330,7 +11304,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11330
11304
|
currency: Currency;
|
|
11331
11305
|
categoryName: string;
|
|
11332
11306
|
subcategoryName: string;
|
|
11333
|
-
technologyName: string;
|
|
11334
11307
|
price: number;
|
|
11335
11308
|
pricingMeasure: PricingMeasure;
|
|
11336
11309
|
clinicName: string;
|
|
@@ -11462,6 +11435,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11462
11435
|
proceduresInfo: {
|
|
11463
11436
|
id: string;
|
|
11464
11437
|
name: string;
|
|
11438
|
+
technologyName: string;
|
|
11465
11439
|
duration: number;
|
|
11466
11440
|
practitionerId: string;
|
|
11467
11441
|
clinicId: string;
|
|
@@ -11469,7 +11443,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11469
11443
|
currency: Currency;
|
|
11470
11444
|
categoryName: string;
|
|
11471
11445
|
subcategoryName: string;
|
|
11472
|
-
technologyName: string;
|
|
11473
11446
|
price: number;
|
|
11474
11447
|
pricingMeasure: PricingMeasure;
|
|
11475
11448
|
clinicName: string;
|
|
@@ -11578,6 +11551,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11578
11551
|
proceduresInfo: {
|
|
11579
11552
|
id: string;
|
|
11580
11553
|
name: string;
|
|
11554
|
+
technologyName: string;
|
|
11581
11555
|
duration: number;
|
|
11582
11556
|
practitionerId: string;
|
|
11583
11557
|
clinicId: string;
|
|
@@ -11585,7 +11559,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
11585
11559
|
currency: Currency;
|
|
11586
11560
|
categoryName: string;
|
|
11587
11561
|
subcategoryName: string;
|
|
11588
|
-
technologyName: string;
|
|
11589
11562
|
price: number;
|
|
11590
11563
|
pricingMeasure: PricingMeasure;
|
|
11591
11564
|
clinicName: string;
|
|
@@ -11982,6 +11955,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
11982
11955
|
}, "strip", z.ZodTypeAny, {
|
|
11983
11956
|
id: string;
|
|
11984
11957
|
name: string;
|
|
11958
|
+
technologyName: string;
|
|
11985
11959
|
duration: number;
|
|
11986
11960
|
practitionerId: string;
|
|
11987
11961
|
clinicId: string;
|
|
@@ -11989,7 +11963,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
11989
11963
|
currency: Currency;
|
|
11990
11964
|
categoryName: string;
|
|
11991
11965
|
subcategoryName: string;
|
|
11992
|
-
technologyName: string;
|
|
11993
11966
|
price: number;
|
|
11994
11967
|
pricingMeasure: PricingMeasure;
|
|
11995
11968
|
clinicName: string;
|
|
@@ -11999,6 +11972,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
11999
11972
|
}, {
|
|
12000
11973
|
id: string;
|
|
12001
11974
|
name: string;
|
|
11975
|
+
technologyName: string;
|
|
12002
11976
|
duration: number;
|
|
12003
11977
|
practitionerId: string;
|
|
12004
11978
|
clinicId: string;
|
|
@@ -12006,7 +11980,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
12006
11980
|
currency: Currency;
|
|
12007
11981
|
categoryName: string;
|
|
12008
11982
|
subcategoryName: string;
|
|
12009
|
-
technologyName: string;
|
|
12010
11983
|
price: number;
|
|
12011
11984
|
pricingMeasure: PricingMeasure;
|
|
12012
11985
|
clinicName: string;
|
|
@@ -12104,6 +12077,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
12104
12077
|
proceduresInfo?: {
|
|
12105
12078
|
id: string;
|
|
12106
12079
|
name: string;
|
|
12080
|
+
technologyName: string;
|
|
12107
12081
|
duration: number;
|
|
12108
12082
|
practitionerId: string;
|
|
12109
12083
|
clinicId: string;
|
|
@@ -12111,7 +12085,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
12111
12085
|
currency: Currency;
|
|
12112
12086
|
categoryName: string;
|
|
12113
12087
|
subcategoryName: string;
|
|
12114
|
-
technologyName: string;
|
|
12115
12088
|
price: number;
|
|
12116
12089
|
pricingMeasure: PricingMeasure;
|
|
12117
12090
|
clinicName: string;
|
|
@@ -12206,6 +12179,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
12206
12179
|
proceduresInfo?: {
|
|
12207
12180
|
id: string;
|
|
12208
12181
|
name: string;
|
|
12182
|
+
technologyName: string;
|
|
12209
12183
|
duration: number;
|
|
12210
12184
|
practitionerId: string;
|
|
12211
12185
|
clinicId: string;
|
|
@@ -12213,7 +12187,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
12213
12187
|
currency: Currency;
|
|
12214
12188
|
categoryName: string;
|
|
12215
12189
|
subcategoryName: string;
|
|
12216
|
-
technologyName: string;
|
|
12217
12190
|
price: number;
|
|
12218
12191
|
pricingMeasure: PricingMeasure;
|
|
12219
12192
|
clinicName: string;
|
|
@@ -12599,6 +12572,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12599
12572
|
}, "strip", z.ZodTypeAny, {
|
|
12600
12573
|
id: string;
|
|
12601
12574
|
name: string;
|
|
12575
|
+
technologyName: string;
|
|
12602
12576
|
duration: number;
|
|
12603
12577
|
practitionerId: string;
|
|
12604
12578
|
clinicId: string;
|
|
@@ -12606,7 +12580,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12606
12580
|
currency: Currency;
|
|
12607
12581
|
categoryName: string;
|
|
12608
12582
|
subcategoryName: string;
|
|
12609
|
-
technologyName: string;
|
|
12610
12583
|
price: number;
|
|
12611
12584
|
pricingMeasure: PricingMeasure;
|
|
12612
12585
|
clinicName: string;
|
|
@@ -12616,6 +12589,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12616
12589
|
}, {
|
|
12617
12590
|
id: string;
|
|
12618
12591
|
name: string;
|
|
12592
|
+
technologyName: string;
|
|
12619
12593
|
duration: number;
|
|
12620
12594
|
practitionerId: string;
|
|
12621
12595
|
clinicId: string;
|
|
@@ -12623,7 +12597,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12623
12597
|
currency: Currency;
|
|
12624
12598
|
categoryName: string;
|
|
12625
12599
|
subcategoryName: string;
|
|
12626
|
-
technologyName: string;
|
|
12627
12600
|
price: number;
|
|
12628
12601
|
pricingMeasure: PricingMeasure;
|
|
12629
12602
|
clinicName: string;
|
|
@@ -12718,6 +12691,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12718
12691
|
proceduresInfo?: {
|
|
12719
12692
|
id: string;
|
|
12720
12693
|
name: string;
|
|
12694
|
+
technologyName: string;
|
|
12721
12695
|
duration: number;
|
|
12722
12696
|
practitionerId: string;
|
|
12723
12697
|
clinicId: string;
|
|
@@ -12725,7 +12699,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12725
12699
|
currency: Currency;
|
|
12726
12700
|
categoryName: string;
|
|
12727
12701
|
subcategoryName: string;
|
|
12728
|
-
technologyName: string;
|
|
12729
12702
|
price: number;
|
|
12730
12703
|
pricingMeasure: PricingMeasure;
|
|
12731
12704
|
clinicName: string;
|
|
@@ -12818,6 +12791,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12818
12791
|
proceduresInfo?: {
|
|
12819
12792
|
id: string;
|
|
12820
12793
|
name: string;
|
|
12794
|
+
technologyName: string;
|
|
12821
12795
|
duration: number;
|
|
12822
12796
|
practitionerId: string;
|
|
12823
12797
|
clinicId: string;
|
|
@@ -12825,7 +12799,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
12825
12799
|
currency: Currency;
|
|
12826
12800
|
categoryName: string;
|
|
12827
12801
|
subcategoryName: string;
|
|
12828
|
-
technologyName: string;
|
|
12829
12802
|
price: number;
|
|
12830
12803
|
pricingMeasure: PricingMeasure;
|
|
12831
12804
|
clinicName: string;
|
|
@@ -14389,6 +14362,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14389
14362
|
}, "strip", z.ZodTypeAny, {
|
|
14390
14363
|
id: string;
|
|
14391
14364
|
name: string;
|
|
14365
|
+
technologyName: string;
|
|
14392
14366
|
duration: number;
|
|
14393
14367
|
practitionerId: string;
|
|
14394
14368
|
clinicId: string;
|
|
@@ -14396,7 +14370,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14396
14370
|
currency: Currency;
|
|
14397
14371
|
categoryName: string;
|
|
14398
14372
|
subcategoryName: string;
|
|
14399
|
-
technologyName: string;
|
|
14400
14373
|
price: number;
|
|
14401
14374
|
pricingMeasure: PricingMeasure;
|
|
14402
14375
|
clinicName: string;
|
|
@@ -14406,6 +14379,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14406
14379
|
}, {
|
|
14407
14380
|
id: string;
|
|
14408
14381
|
name: string;
|
|
14382
|
+
technologyName: string;
|
|
14409
14383
|
duration: number;
|
|
14410
14384
|
practitionerId: string;
|
|
14411
14385
|
clinicId: string;
|
|
@@ -14413,7 +14387,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14413
14387
|
currency: Currency;
|
|
14414
14388
|
categoryName: string;
|
|
14415
14389
|
subcategoryName: string;
|
|
14416
|
-
technologyName: string;
|
|
14417
14390
|
price: number;
|
|
14418
14391
|
pricingMeasure: PricingMeasure;
|
|
14419
14392
|
clinicName: string;
|
|
@@ -14466,6 +14439,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14466
14439
|
proceduresInfo: {
|
|
14467
14440
|
id: string;
|
|
14468
14441
|
name: string;
|
|
14442
|
+
technologyName: string;
|
|
14469
14443
|
duration: number;
|
|
14470
14444
|
practitionerId: string;
|
|
14471
14445
|
clinicId: string;
|
|
@@ -14473,7 +14447,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14473
14447
|
currency: Currency;
|
|
14474
14448
|
categoryName: string;
|
|
14475
14449
|
subcategoryName: string;
|
|
14476
|
-
technologyName: string;
|
|
14477
14450
|
price: number;
|
|
14478
14451
|
pricingMeasure: PricingMeasure;
|
|
14479
14452
|
clinicName: string;
|
|
@@ -14595,6 +14568,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14595
14568
|
proceduresInfo: {
|
|
14596
14569
|
id: string;
|
|
14597
14570
|
name: string;
|
|
14571
|
+
technologyName: string;
|
|
14598
14572
|
duration: number;
|
|
14599
14573
|
practitionerId: string;
|
|
14600
14574
|
clinicId: string;
|
|
@@ -14602,7 +14576,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
14602
14576
|
currency: Currency;
|
|
14603
14577
|
categoryName: string;
|
|
14604
14578
|
subcategoryName: string;
|
|
14605
|
-
technologyName: string;
|
|
14606
14579
|
price: number;
|
|
14607
14580
|
pricingMeasure: PricingMeasure;
|
|
14608
14581
|
clinicName: string;
|