@blackcode_sa/metaestetics-api 1.7.15 → 1.7.16
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
CHANGED
|
@@ -2436,9 +2436,7 @@ declare class BookingAdmin {
|
|
|
2436
2436
|
success: boolean;
|
|
2437
2437
|
appointmentId?: string;
|
|
2438
2438
|
appointmentData?: Appointment;
|
|
2439
|
-
|
|
2440
|
-
patientCalendarEventId?: string;
|
|
2441
|
-
clinicCalendarEventId?: string;
|
|
2439
|
+
calendarEventId?: string;
|
|
2442
2440
|
error?: string;
|
|
2443
2441
|
}>;
|
|
2444
2442
|
private _generateProcedureSummaryInfo;
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -2436,9 +2436,7 @@ declare class BookingAdmin {
|
|
|
2436
2436
|
success: boolean;
|
|
2437
2437
|
appointmentId?: string;
|
|
2438
2438
|
appointmentData?: Appointment;
|
|
2439
|
-
|
|
2440
|
-
patientCalendarEventId?: string;
|
|
2441
|
-
clinicCalendarEventId?: string;
|
|
2439
|
+
calendarEventId?: string;
|
|
2442
2440
|
error?: string;
|
|
2443
2441
|
}>;
|
|
2444
2442
|
private _generateProcedureSummaryInfo;
|
package/dist/admin/index.js
CHANGED
|
@@ -6423,9 +6423,8 @@ var BookingAdmin = class {
|
|
|
6423
6423
|
this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6424
6424
|
practitionerCalendarEventData
|
|
6425
6425
|
);
|
|
6426
|
-
const patientCalendarEventId = this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
6427
6426
|
const patientCalendarEventData = {
|
|
6428
|
-
id:
|
|
6427
|
+
id: practitionerCalendarEventId,
|
|
6429
6428
|
appointmentId: newAppointmentId,
|
|
6430
6429
|
clinicBranchId: clinicData.id,
|
|
6431
6430
|
clinicBranchInfo: clinicInfo,
|
|
@@ -6444,12 +6443,11 @@ var BookingAdmin = class {
|
|
|
6444
6443
|
updatedAt: serverTimestampValue
|
|
6445
6444
|
};
|
|
6446
6445
|
batch.set(
|
|
6447
|
-
this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(
|
|
6446
|
+
this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6448
6447
|
patientCalendarEventData
|
|
6449
6448
|
);
|
|
6450
|
-
const clinicCalendarEventId = this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
6451
6449
|
const clinicCalendarEventData = {
|
|
6452
|
-
id:
|
|
6450
|
+
id: practitionerCalendarEventId,
|
|
6453
6451
|
appointmentId: newAppointmentId,
|
|
6454
6452
|
clinicBranchId: clinicData.id,
|
|
6455
6453
|
clinicBranchInfo: clinicInfo,
|
|
@@ -6470,7 +6468,7 @@ var BookingAdmin = class {
|
|
|
6470
6468
|
updatedAt: serverTimestampValue
|
|
6471
6469
|
};
|
|
6472
6470
|
batch.set(
|
|
6473
|
-
this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(
|
|
6471
|
+
this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6474
6472
|
clinicCalendarEventData
|
|
6475
6473
|
);
|
|
6476
6474
|
let initializedFormsInfo = [];
|
|
@@ -6558,9 +6556,7 @@ var BookingAdmin = class {
|
|
|
6558
6556
|
success: true,
|
|
6559
6557
|
appointmentId: newAppointmentId,
|
|
6560
6558
|
appointmentData: newAppointmentData,
|
|
6561
|
-
practitionerCalendarEventId
|
|
6562
|
-
patientCalendarEventId,
|
|
6563
|
-
clinicCalendarEventId
|
|
6559
|
+
calendarEventId: practitionerCalendarEventId
|
|
6564
6560
|
};
|
|
6565
6561
|
} catch (error) {
|
|
6566
6562
|
console.error(
|
package/dist/admin/index.mjs
CHANGED
|
@@ -6366,9 +6366,8 @@ var BookingAdmin = class {
|
|
|
6366
6366
|
this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6367
6367
|
practitionerCalendarEventData
|
|
6368
6368
|
);
|
|
6369
|
-
const patientCalendarEventId = this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
6370
6369
|
const patientCalendarEventData = {
|
|
6371
|
-
id:
|
|
6370
|
+
id: practitionerCalendarEventId,
|
|
6372
6371
|
appointmentId: newAppointmentId,
|
|
6373
6372
|
clinicBranchId: clinicData.id,
|
|
6374
6373
|
clinicBranchInfo: clinicInfo,
|
|
@@ -6387,12 +6386,11 @@ var BookingAdmin = class {
|
|
|
6387
6386
|
updatedAt: serverTimestampValue
|
|
6388
6387
|
};
|
|
6389
6388
|
batch.set(
|
|
6390
|
-
this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(
|
|
6389
|
+
this.db.collection(PATIENTS_COLLECTION).doc(patientProfileData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6391
6390
|
patientCalendarEventData
|
|
6392
6391
|
);
|
|
6393
|
-
const clinicCalendarEventId = this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
6394
6392
|
const clinicCalendarEventData = {
|
|
6395
|
-
id:
|
|
6393
|
+
id: practitionerCalendarEventId,
|
|
6396
6394
|
appointmentId: newAppointmentId,
|
|
6397
6395
|
clinicBranchId: clinicData.id,
|
|
6398
6396
|
clinicBranchInfo: clinicInfo,
|
|
@@ -6413,7 +6411,7 @@ var BookingAdmin = class {
|
|
|
6413
6411
|
updatedAt: serverTimestampValue
|
|
6414
6412
|
};
|
|
6415
6413
|
batch.set(
|
|
6416
|
-
this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(
|
|
6414
|
+
this.db.collection(CLINICS_COLLECTION).doc(clinicData.id).collection(CALENDAR_COLLECTION).doc(practitionerCalendarEventId),
|
|
6417
6415
|
clinicCalendarEventData
|
|
6418
6416
|
);
|
|
6419
6417
|
let initializedFormsInfo = [];
|
|
@@ -6501,9 +6499,7 @@ var BookingAdmin = class {
|
|
|
6501
6499
|
success: true,
|
|
6502
6500
|
appointmentId: newAppointmentId,
|
|
6503
6501
|
appointmentData: newAppointmentData,
|
|
6504
|
-
practitionerCalendarEventId
|
|
6505
|
-
patientCalendarEventId,
|
|
6506
|
-
clinicCalendarEventId
|
|
6502
|
+
calendarEventId: practitionerCalendarEventId
|
|
6507
6503
|
};
|
|
6508
6504
|
} catch (error) {
|
|
6509
6505
|
console.error(
|
package/package.json
CHANGED
|
@@ -470,9 +470,7 @@ export class BookingAdmin {
|
|
|
470
470
|
success: boolean;
|
|
471
471
|
appointmentId?: string;
|
|
472
472
|
appointmentData?: Appointment;
|
|
473
|
-
|
|
474
|
-
patientCalendarEventId?: string;
|
|
475
|
-
clinicCalendarEventId?: string;
|
|
473
|
+
calendarEventId?: string;
|
|
476
474
|
error?: string;
|
|
477
475
|
}> {
|
|
478
476
|
console.log(
|
|
@@ -729,13 +727,9 @@ export class BookingAdmin {
|
|
|
729
727
|
);
|
|
730
728
|
|
|
731
729
|
// Patient Calendar Event
|
|
732
|
-
|
|
733
|
-
.collection(PATIENTS_COLLECTION)
|
|
734
|
-
.doc(patientProfileData.id)
|
|
735
|
-
.collection(CALENDAR_COLLECTION)
|
|
736
|
-
.doc().id;
|
|
730
|
+
// Use same ID as practitionerCalendarEventId
|
|
737
731
|
const patientCalendarEventData: CalendarEvent = {
|
|
738
|
-
id:
|
|
732
|
+
id: practitionerCalendarEventId,
|
|
739
733
|
appointmentId: newAppointmentId,
|
|
740
734
|
clinicBranchId: clinicData.id,
|
|
741
735
|
clinicBranchInfo: clinicInfo,
|
|
@@ -758,18 +752,14 @@ export class BookingAdmin {
|
|
|
758
752
|
.collection(PATIENTS_COLLECTION)
|
|
759
753
|
.doc(patientProfileData.id)
|
|
760
754
|
.collection(CALENDAR_COLLECTION)
|
|
761
|
-
.doc(
|
|
755
|
+
.doc(practitionerCalendarEventId),
|
|
762
756
|
patientCalendarEventData
|
|
763
757
|
);
|
|
764
758
|
|
|
765
759
|
// Clinic Calendar Event
|
|
766
|
-
|
|
767
|
-
.collection(CLINICS_COLLECTION)
|
|
768
|
-
.doc(clinicData.id)
|
|
769
|
-
.collection(CALENDAR_COLLECTION)
|
|
770
|
-
.doc().id;
|
|
760
|
+
// Use same ID as practitionerCalendarEventId
|
|
771
761
|
const clinicCalendarEventData: CalendarEvent = {
|
|
772
|
-
id:
|
|
762
|
+
id: practitionerCalendarEventId,
|
|
773
763
|
appointmentId: newAppointmentId,
|
|
774
764
|
clinicBranchId: clinicData.id,
|
|
775
765
|
clinicBranchInfo: clinicInfo,
|
|
@@ -794,7 +784,7 @@ export class BookingAdmin {
|
|
|
794
784
|
.collection(CLINICS_COLLECTION)
|
|
795
785
|
.doc(clinicData.id)
|
|
796
786
|
.collection(CALENDAR_COLLECTION)
|
|
797
|
-
.doc(
|
|
787
|
+
.doc(practitionerCalendarEventId),
|
|
798
788
|
clinicCalendarEventData
|
|
799
789
|
);
|
|
800
790
|
|
|
@@ -901,9 +891,7 @@ export class BookingAdmin {
|
|
|
901
891
|
success: true,
|
|
902
892
|
appointmentId: newAppointmentId,
|
|
903
893
|
appointmentData: newAppointmentData,
|
|
904
|
-
practitionerCalendarEventId,
|
|
905
|
-
patientCalendarEventId,
|
|
906
|
-
clinicCalendarEventId,
|
|
894
|
+
calendarEventId: practitionerCalendarEventId,
|
|
907
895
|
};
|
|
908
896
|
} catch (error) {
|
|
909
897
|
console.error(
|