@blackcode_sa/metaestetics-api 1.5.19 → 1.5.27
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/index.js
CHANGED
|
@@ -9492,7 +9492,8 @@ var CalendarServiceV2 = class extends BaseService {
|
|
|
9492
9492
|
* @returns Updated calendar event
|
|
9493
9493
|
*/
|
|
9494
9494
|
async updateAppointmentStatus(appointmentId, clinicId, status) {
|
|
9495
|
-
const
|
|
9495
|
+
const baseCollectionPath = `${CLINICS_COLLECTION}/${clinicId}/${CALENDAR_COLLECTION}`;
|
|
9496
|
+
const appointmentRef = (0, import_firestore34.doc)(this.db, baseCollectionPath, appointmentId);
|
|
9496
9497
|
const appointmentDoc = await (0, import_firestore34.getDoc)(appointmentRef);
|
|
9497
9498
|
if (!appointmentDoc.exists()) {
|
|
9498
9499
|
throw new Error(`Appointment with ID ${appointmentId} not found`);
|
|
@@ -9505,6 +9506,8 @@ var CalendarServiceV2 = class extends BaseService {
|
|
|
9505
9506
|
const updateParams = {
|
|
9506
9507
|
appointmentId,
|
|
9507
9508
|
clinicId,
|
|
9509
|
+
eventTime: appointment.eventTime,
|
|
9510
|
+
description: appointment.description,
|
|
9508
9511
|
doctorId: appointment.practitionerProfileId || "",
|
|
9509
9512
|
patientId: appointment.patientProfileId || "",
|
|
9510
9513
|
status
|
package/dist/index.mjs
CHANGED
|
@@ -9552,7 +9552,8 @@ var CalendarServiceV2 = class extends BaseService {
|
|
|
9552
9552
|
* @returns Updated calendar event
|
|
9553
9553
|
*/
|
|
9554
9554
|
async updateAppointmentStatus(appointmentId, clinicId, status) {
|
|
9555
|
-
const
|
|
9555
|
+
const baseCollectionPath = `${CLINICS_COLLECTION}/${clinicId}/${CALENDAR_COLLECTION}`;
|
|
9556
|
+
const appointmentRef = doc22(this.db, baseCollectionPath, appointmentId);
|
|
9556
9557
|
const appointmentDoc = await getDoc24(appointmentRef);
|
|
9557
9558
|
if (!appointmentDoc.exists()) {
|
|
9558
9559
|
throw new Error(`Appointment with ID ${appointmentId} not found`);
|
|
@@ -9565,6 +9566,8 @@ var CalendarServiceV2 = class extends BaseService {
|
|
|
9565
9566
|
const updateParams = {
|
|
9566
9567
|
appointmentId,
|
|
9567
9568
|
clinicId,
|
|
9569
|
+
eventTime: appointment.eventTime,
|
|
9570
|
+
description: appointment.description,
|
|
9568
9571
|
doctorId: appointment.practitionerProfileId || "",
|
|
9569
9572
|
patientId: appointment.patientProfileId || "",
|
|
9570
9573
|
status
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackcode_sa/metaestetics-api",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.27",
|
|
5
5
|
"description": "Firebase authentication service with anonymous upgrade support",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"src"
|
|
45
45
|
],
|
|
46
46
|
"publishConfig": {
|
|
47
|
-
"access": "
|
|
47
|
+
"access": "public",
|
|
48
|
+
"registry": "https://registry.npmjs.org/"
|
|
48
49
|
},
|
|
49
50
|
"keywords": [
|
|
50
51
|
"firebase",
|
|
@@ -1084,7 +1084,8 @@ export class CalendarServiceV2 extends BaseService {
|
|
|
1084
1084
|
status: CalendarEventStatus
|
|
1085
1085
|
): Promise<CalendarEvent> {
|
|
1086
1086
|
// Get the appointment
|
|
1087
|
-
const
|
|
1087
|
+
const baseCollectionPath = `${CLINICS_COLLECTION}/${clinicId}/${CALENDAR_COLLECTION}`;
|
|
1088
|
+
const appointmentRef = doc(this.db, baseCollectionPath, appointmentId);
|
|
1088
1089
|
const appointmentDoc = await getDoc(appointmentRef);
|
|
1089
1090
|
|
|
1090
1091
|
if (!appointmentDoc.exists()) {
|
|
@@ -1105,6 +1106,8 @@ export class CalendarServiceV2 extends BaseService {
|
|
|
1105
1106
|
const updateParams: UpdateAppointmentParams = {
|
|
1106
1107
|
appointmentId,
|
|
1107
1108
|
clinicId,
|
|
1109
|
+
eventTime: appointment.eventTime,
|
|
1110
|
+
description: appointment.description,
|
|
1108
1111
|
doctorId: appointment.practitionerProfileId || "",
|
|
1109
1112
|
patientId: appointment.patientProfileId || "",
|
|
1110
1113
|
status,
|