@blackcode_sa/metaestetics-api 1.6.9 → 1.6.10
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.js +8 -32
- package/dist/admin/index.mjs +8 -32
- package/package.json +1 -1
- package/src/admin/booking/booking.admin.ts +8 -32
package/dist/admin/index.js
CHANGED
|
@@ -33291,14 +33291,8 @@ var BookingAdmin = class {
|
|
|
33291
33291
|
}
|
|
33292
33292
|
const newAppointmentId = this.db.collection(APPOINTMENTS_COLLECTION).doc().id;
|
|
33293
33293
|
const eventTimeForCalendarEvents = {
|
|
33294
|
-
start:
|
|
33295
|
-
|
|
33296
|
-
data.appointmentStartTime.nanoseconds
|
|
33297
|
-
),
|
|
33298
|
-
end: new Timestamp(
|
|
33299
|
-
data.appointmentEndTime.seconds,
|
|
33300
|
-
data.appointmentEndTime.nanoseconds
|
|
33301
|
-
)
|
|
33294
|
+
start: data.appointmentStartTime,
|
|
33295
|
+
end: data.appointmentEndTime
|
|
33302
33296
|
};
|
|
33303
33297
|
const practitionerCalendarEventId = this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
33304
33298
|
const practitionerCalendarEventData = {
|
|
@@ -33412,22 +33406,10 @@ var BookingAdmin = class {
|
|
|
33412
33406
|
),
|
|
33413
33407
|
procedureExtendedInfo: this._generateProcedureExtendedInfo(procedure),
|
|
33414
33408
|
status: initialAppointmentStatus,
|
|
33415
|
-
bookingTime:
|
|
33416
|
-
|
|
33417
|
-
|
|
33418
|
-
|
|
33419
|
-
confirmationTime: initialAppointmentStatus === "confirmed" /* CONFIRMED */ ? new Timestamp(
|
|
33420
|
-
adminTsNow.seconds,
|
|
33421
|
-
adminTsNow.nanoseconds
|
|
33422
|
-
) : null,
|
|
33423
|
-
appointmentStartTime: new Timestamp(
|
|
33424
|
-
data.appointmentStartTime.seconds,
|
|
33425
|
-
data.appointmentStartTime.nanoseconds
|
|
33426
|
-
),
|
|
33427
|
-
appointmentEndTime: new Timestamp(
|
|
33428
|
-
data.appointmentEndTime.seconds,
|
|
33429
|
-
data.appointmentEndTime.nanoseconds
|
|
33430
|
-
),
|
|
33409
|
+
bookingTime: adminTsNow,
|
|
33410
|
+
confirmationTime: initialAppointmentStatus === "confirmed" /* CONFIRMED */ ? adminTsNow : null,
|
|
33411
|
+
appointmentStartTime: data.appointmentStartTime,
|
|
33412
|
+
appointmentEndTime: data.appointmentEndTime,
|
|
33431
33413
|
cost: procedure.price,
|
|
33432
33414
|
currency: procedure.currency,
|
|
33433
33415
|
paymentStatus: procedure.price > 0 ? "unpaid" /* UNPAID */ : "not_applicable" /* NOT_APPLICABLE */,
|
|
@@ -33454,14 +33436,8 @@ var BookingAdmin = class {
|
|
|
33454
33436
|
isRecurring: false,
|
|
33455
33437
|
recurringAppointmentId: null,
|
|
33456
33438
|
isArchived: false,
|
|
33457
|
-
createdAt:
|
|
33458
|
-
|
|
33459
|
-
adminTsNow.nanoseconds
|
|
33460
|
-
),
|
|
33461
|
-
updatedAt: new Timestamp(
|
|
33462
|
-
adminTsNow.seconds,
|
|
33463
|
-
adminTsNow.nanoseconds
|
|
33464
|
-
)
|
|
33439
|
+
createdAt: adminTsNow,
|
|
33440
|
+
updatedAt: adminTsNow
|
|
33465
33441
|
};
|
|
33466
33442
|
batch.set(
|
|
33467
33443
|
this.db.collection(APPOINTMENTS_COLLECTION).doc(newAppointmentId),
|
package/dist/admin/index.mjs
CHANGED
|
@@ -33268,14 +33268,8 @@ var BookingAdmin = class {
|
|
|
33268
33268
|
}
|
|
33269
33269
|
const newAppointmentId = this.db.collection(APPOINTMENTS_COLLECTION).doc().id;
|
|
33270
33270
|
const eventTimeForCalendarEvents = {
|
|
33271
|
-
start:
|
|
33272
|
-
|
|
33273
|
-
data.appointmentStartTime.nanoseconds
|
|
33274
|
-
),
|
|
33275
|
-
end: new Timestamp(
|
|
33276
|
-
data.appointmentEndTime.seconds,
|
|
33277
|
-
data.appointmentEndTime.nanoseconds
|
|
33278
|
-
)
|
|
33271
|
+
start: data.appointmentStartTime,
|
|
33272
|
+
end: data.appointmentEndTime
|
|
33279
33273
|
};
|
|
33280
33274
|
const practitionerCalendarEventId = this.db.collection(PRACTITIONERS_COLLECTION).doc(practitionerData.id).collection(CALENDAR_COLLECTION).doc().id;
|
|
33281
33275
|
const practitionerCalendarEventData = {
|
|
@@ -33389,22 +33383,10 @@ var BookingAdmin = class {
|
|
|
33389
33383
|
),
|
|
33390
33384
|
procedureExtendedInfo: this._generateProcedureExtendedInfo(procedure),
|
|
33391
33385
|
status: initialAppointmentStatus,
|
|
33392
|
-
bookingTime:
|
|
33393
|
-
|
|
33394
|
-
|
|
33395
|
-
|
|
33396
|
-
confirmationTime: initialAppointmentStatus === "confirmed" /* CONFIRMED */ ? new Timestamp(
|
|
33397
|
-
adminTsNow.seconds,
|
|
33398
|
-
adminTsNow.nanoseconds
|
|
33399
|
-
) : null,
|
|
33400
|
-
appointmentStartTime: new Timestamp(
|
|
33401
|
-
data.appointmentStartTime.seconds,
|
|
33402
|
-
data.appointmentStartTime.nanoseconds
|
|
33403
|
-
),
|
|
33404
|
-
appointmentEndTime: new Timestamp(
|
|
33405
|
-
data.appointmentEndTime.seconds,
|
|
33406
|
-
data.appointmentEndTime.nanoseconds
|
|
33407
|
-
),
|
|
33386
|
+
bookingTime: adminTsNow,
|
|
33387
|
+
confirmationTime: initialAppointmentStatus === "confirmed" /* CONFIRMED */ ? adminTsNow : null,
|
|
33388
|
+
appointmentStartTime: data.appointmentStartTime,
|
|
33389
|
+
appointmentEndTime: data.appointmentEndTime,
|
|
33408
33390
|
cost: procedure.price,
|
|
33409
33391
|
currency: procedure.currency,
|
|
33410
33392
|
paymentStatus: procedure.price > 0 ? "unpaid" /* UNPAID */ : "not_applicable" /* NOT_APPLICABLE */,
|
|
@@ -33431,14 +33413,8 @@ var BookingAdmin = class {
|
|
|
33431
33413
|
isRecurring: false,
|
|
33432
33414
|
recurringAppointmentId: null,
|
|
33433
33415
|
isArchived: false,
|
|
33434
|
-
createdAt:
|
|
33435
|
-
|
|
33436
|
-
adminTsNow.nanoseconds
|
|
33437
|
-
),
|
|
33438
|
-
updatedAt: new Timestamp(
|
|
33439
|
-
adminTsNow.seconds,
|
|
33440
|
-
adminTsNow.nanoseconds
|
|
33441
|
-
)
|
|
33416
|
+
createdAt: adminTsNow,
|
|
33417
|
+
updatedAt: adminTsNow
|
|
33442
33418
|
};
|
|
33443
33419
|
batch.set(
|
|
33444
33420
|
this.db.collection(APPOINTMENTS_COLLECTION).doc(newAppointmentId),
|
package/package.json
CHANGED
|
@@ -556,14 +556,8 @@ export class BookingAdmin {
|
|
|
556
556
|
.doc().id;
|
|
557
557
|
|
|
558
558
|
const eventTimeForCalendarEvents: CalendarEventTime = {
|
|
559
|
-
start:
|
|
560
|
-
|
|
561
|
-
data.appointmentStartTime.nanoseconds
|
|
562
|
-
),
|
|
563
|
-
end: new FirebaseClientTimestamp(
|
|
564
|
-
data.appointmentEndTime.seconds,
|
|
565
|
-
data.appointmentEndTime.nanoseconds
|
|
566
|
-
),
|
|
559
|
+
start: data.appointmentStartTime as any,
|
|
560
|
+
end: data.appointmentEndTime as any,
|
|
567
561
|
};
|
|
568
562
|
|
|
569
563
|
// Practitioner Calendar Event
|
|
@@ -716,25 +710,13 @@ export class BookingAdmin {
|
|
|
716
710
|
),
|
|
717
711
|
procedureExtendedInfo: this._generateProcedureExtendedInfo(procedure),
|
|
718
712
|
status: initialAppointmentStatus,
|
|
719
|
-
bookingTime:
|
|
720
|
-
adminTsNow.seconds,
|
|
721
|
-
adminTsNow.nanoseconds
|
|
722
|
-
),
|
|
713
|
+
bookingTime: adminTsNow as any,
|
|
723
714
|
confirmationTime:
|
|
724
715
|
initialAppointmentStatus === AppointmentStatus.CONFIRMED
|
|
725
|
-
?
|
|
726
|
-
adminTsNow.seconds,
|
|
727
|
-
adminTsNow.nanoseconds
|
|
728
|
-
)
|
|
716
|
+
? (adminTsNow as any)
|
|
729
717
|
: null,
|
|
730
|
-
appointmentStartTime:
|
|
731
|
-
|
|
732
|
-
data.appointmentStartTime.nanoseconds
|
|
733
|
-
),
|
|
734
|
-
appointmentEndTime: new FirebaseClientTimestamp(
|
|
735
|
-
data.appointmentEndTime.seconds,
|
|
736
|
-
data.appointmentEndTime.nanoseconds
|
|
737
|
-
),
|
|
718
|
+
appointmentStartTime: data.appointmentStartTime as any,
|
|
719
|
+
appointmentEndTime: data.appointmentEndTime as any,
|
|
738
720
|
cost: procedure.price,
|
|
739
721
|
currency: procedure.currency,
|
|
740
722
|
paymentStatus:
|
|
@@ -764,14 +746,8 @@ export class BookingAdmin {
|
|
|
764
746
|
isRecurring: false,
|
|
765
747
|
recurringAppointmentId: null,
|
|
766
748
|
isArchived: false,
|
|
767
|
-
createdAt:
|
|
768
|
-
|
|
769
|
-
adminTsNow.nanoseconds
|
|
770
|
-
),
|
|
771
|
-
updatedAt: new FirebaseClientTimestamp(
|
|
772
|
-
adminTsNow.seconds,
|
|
773
|
-
adminTsNow.nanoseconds
|
|
774
|
-
),
|
|
749
|
+
createdAt: adminTsNow as any,
|
|
750
|
+
updatedAt: adminTsNow as any,
|
|
775
751
|
};
|
|
776
752
|
|
|
777
753
|
batch.set(
|