@blackcode_sa/metaestetics-api 1.7.37 → 1.7.38
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 +4 -0
- package/dist/admin/index.d.ts +4 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
- package/src/types/appointment/index.ts +6 -0
- package/src/validations/appointment.schema.ts +1 -0
package/dist/admin/index.d.mts
CHANGED
|
@@ -1691,6 +1691,8 @@ interface Appointment {
|
|
|
1691
1691
|
recurringAppointmentId?: string | null;
|
|
1692
1692
|
/** NEW: Flag for soft deletion or archiving */
|
|
1693
1693
|
isArchived?: boolean;
|
|
1694
|
+
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
1695
|
+
metadata?: any;
|
|
1694
1696
|
}
|
|
1695
1697
|
/**
|
|
1696
1698
|
* Data needed to create a new Appointment
|
|
@@ -1758,6 +1760,8 @@ interface UpdateAppointmentData {
|
|
|
1758
1760
|
/** NEW: For archiving/unarchiving */
|
|
1759
1761
|
isArchived?: boolean;
|
|
1760
1762
|
updatedAt?: FieldValue;
|
|
1763
|
+
/** NEW: For updating metadata */
|
|
1764
|
+
metadata?: any;
|
|
1761
1765
|
}
|
|
1762
1766
|
/**
|
|
1763
1767
|
* Parameters for searching appointments
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -1691,6 +1691,8 @@ interface Appointment {
|
|
|
1691
1691
|
recurringAppointmentId?: string | null;
|
|
1692
1692
|
/** NEW: Flag for soft deletion or archiving */
|
|
1693
1693
|
isArchived?: boolean;
|
|
1694
|
+
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
1695
|
+
metadata?: any;
|
|
1694
1696
|
}
|
|
1695
1697
|
/**
|
|
1696
1698
|
* Data needed to create a new Appointment
|
|
@@ -1758,6 +1760,8 @@ interface UpdateAppointmentData {
|
|
|
1758
1760
|
/** NEW: For archiving/unarchiving */
|
|
1759
1761
|
isArchived?: boolean;
|
|
1760
1762
|
updatedAt?: FieldValue;
|
|
1763
|
+
/** NEW: For updating metadata */
|
|
1764
|
+
metadata?: any;
|
|
1761
1765
|
}
|
|
1762
1766
|
/**
|
|
1763
1767
|
* Parameters for searching appointments
|
package/dist/index.d.mts
CHANGED
|
@@ -4767,6 +4767,8 @@ interface Appointment {
|
|
|
4767
4767
|
recurringAppointmentId?: string | null;
|
|
4768
4768
|
/** NEW: Flag for soft deletion or archiving */
|
|
4769
4769
|
isArchived?: boolean;
|
|
4770
|
+
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
4771
|
+
metadata?: any;
|
|
4770
4772
|
}
|
|
4771
4773
|
/**
|
|
4772
4774
|
* Data needed to create a new Appointment
|
|
@@ -4834,6 +4836,8 @@ interface UpdateAppointmentData {
|
|
|
4834
4836
|
/** NEW: For archiving/unarchiving */
|
|
4835
4837
|
isArchived?: boolean;
|
|
4836
4838
|
updatedAt?: FieldValue;
|
|
4839
|
+
/** NEW: For updating metadata */
|
|
4840
|
+
metadata?: any;
|
|
4837
4841
|
}
|
|
4838
4842
|
/**
|
|
4839
4843
|
* Parameters for searching appointments
|
|
@@ -5031,6 +5035,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5031
5035
|
}>>, z.ZodAny]>>;
|
|
5032
5036
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
5033
5037
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
5038
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
5034
5039
|
}, "strip", z.ZodTypeAny, {
|
|
5035
5040
|
updatedAt?: any;
|
|
5036
5041
|
status?: AppointmentStatus | undefined;
|
|
@@ -5060,6 +5065,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5060
5065
|
reviewInfo?: any;
|
|
5061
5066
|
finalizedDetails?: any;
|
|
5062
5067
|
isArchived?: boolean | undefined;
|
|
5068
|
+
metadata?: any;
|
|
5063
5069
|
}, {
|
|
5064
5070
|
updatedAt?: any;
|
|
5065
5071
|
status?: AppointmentStatus | undefined;
|
|
@@ -5089,6 +5095,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5089
5095
|
reviewInfo?: any;
|
|
5090
5096
|
finalizedDetails?: any;
|
|
5091
5097
|
isArchived?: boolean | undefined;
|
|
5098
|
+
metadata?: any;
|
|
5092
5099
|
}>, {
|
|
5093
5100
|
updatedAt?: any;
|
|
5094
5101
|
status?: AppointmentStatus | undefined;
|
|
@@ -5118,6 +5125,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5118
5125
|
reviewInfo?: any;
|
|
5119
5126
|
finalizedDetails?: any;
|
|
5120
5127
|
isArchived?: boolean | undefined;
|
|
5128
|
+
metadata?: any;
|
|
5121
5129
|
}, {
|
|
5122
5130
|
updatedAt?: any;
|
|
5123
5131
|
status?: AppointmentStatus | undefined;
|
|
@@ -5147,6 +5155,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5147
5155
|
reviewInfo?: any;
|
|
5148
5156
|
finalizedDetails?: any;
|
|
5149
5157
|
isArchived?: boolean | undefined;
|
|
5158
|
+
metadata?: any;
|
|
5150
5159
|
}>, {
|
|
5151
5160
|
updatedAt?: any;
|
|
5152
5161
|
status?: AppointmentStatus | undefined;
|
|
@@ -5176,6 +5185,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5176
5185
|
reviewInfo?: any;
|
|
5177
5186
|
finalizedDetails?: any;
|
|
5178
5187
|
isArchived?: boolean | undefined;
|
|
5188
|
+
metadata?: any;
|
|
5179
5189
|
}, {
|
|
5180
5190
|
updatedAt?: any;
|
|
5181
5191
|
status?: AppointmentStatus | undefined;
|
|
@@ -5205,6 +5215,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5205
5215
|
reviewInfo?: any;
|
|
5206
5216
|
finalizedDetails?: any;
|
|
5207
5217
|
isArchived?: boolean | undefined;
|
|
5218
|
+
metadata?: any;
|
|
5208
5219
|
}>;
|
|
5209
5220
|
/**
|
|
5210
5221
|
* Schema for validating appointment search parameters
|
package/dist/index.d.ts
CHANGED
|
@@ -4767,6 +4767,8 @@ interface Appointment {
|
|
|
4767
4767
|
recurringAppointmentId?: string | null;
|
|
4768
4768
|
/** NEW: Flag for soft deletion or archiving */
|
|
4769
4769
|
isArchived?: boolean;
|
|
4770
|
+
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
4771
|
+
metadata?: any;
|
|
4770
4772
|
}
|
|
4771
4773
|
/**
|
|
4772
4774
|
* Data needed to create a new Appointment
|
|
@@ -4834,6 +4836,8 @@ interface UpdateAppointmentData {
|
|
|
4834
4836
|
/** NEW: For archiving/unarchiving */
|
|
4835
4837
|
isArchived?: boolean;
|
|
4836
4838
|
updatedAt?: FieldValue;
|
|
4839
|
+
/** NEW: For updating metadata */
|
|
4840
|
+
metadata?: any;
|
|
4837
4841
|
}
|
|
4838
4842
|
/**
|
|
4839
4843
|
* Parameters for searching appointments
|
|
@@ -5031,6 +5035,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5031
5035
|
}>>, z.ZodAny]>>;
|
|
5032
5036
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
5033
5037
|
updatedAt: z.ZodOptional<z.ZodAny>;
|
|
5038
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
5034
5039
|
}, "strip", z.ZodTypeAny, {
|
|
5035
5040
|
updatedAt?: any;
|
|
5036
5041
|
status?: AppointmentStatus | undefined;
|
|
@@ -5060,6 +5065,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5060
5065
|
reviewInfo?: any;
|
|
5061
5066
|
finalizedDetails?: any;
|
|
5062
5067
|
isArchived?: boolean | undefined;
|
|
5068
|
+
metadata?: any;
|
|
5063
5069
|
}, {
|
|
5064
5070
|
updatedAt?: any;
|
|
5065
5071
|
status?: AppointmentStatus | undefined;
|
|
@@ -5089,6 +5095,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5089
5095
|
reviewInfo?: any;
|
|
5090
5096
|
finalizedDetails?: any;
|
|
5091
5097
|
isArchived?: boolean | undefined;
|
|
5098
|
+
metadata?: any;
|
|
5092
5099
|
}>, {
|
|
5093
5100
|
updatedAt?: any;
|
|
5094
5101
|
status?: AppointmentStatus | undefined;
|
|
@@ -5118,6 +5125,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5118
5125
|
reviewInfo?: any;
|
|
5119
5126
|
finalizedDetails?: any;
|
|
5120
5127
|
isArchived?: boolean | undefined;
|
|
5128
|
+
metadata?: any;
|
|
5121
5129
|
}, {
|
|
5122
5130
|
updatedAt?: any;
|
|
5123
5131
|
status?: AppointmentStatus | undefined;
|
|
@@ -5147,6 +5155,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5147
5155
|
reviewInfo?: any;
|
|
5148
5156
|
finalizedDetails?: any;
|
|
5149
5157
|
isArchived?: boolean | undefined;
|
|
5158
|
+
metadata?: any;
|
|
5150
5159
|
}>, {
|
|
5151
5160
|
updatedAt?: any;
|
|
5152
5161
|
status?: AppointmentStatus | undefined;
|
|
@@ -5176,6 +5185,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5176
5185
|
reviewInfo?: any;
|
|
5177
5186
|
finalizedDetails?: any;
|
|
5178
5187
|
isArchived?: boolean | undefined;
|
|
5188
|
+
metadata?: any;
|
|
5179
5189
|
}, {
|
|
5180
5190
|
updatedAt?: any;
|
|
5181
5191
|
status?: AppointmentStatus | undefined;
|
|
@@ -5205,6 +5215,7 @@ declare const updateAppointmentSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
5205
5215
|
reviewInfo?: any;
|
|
5206
5216
|
finalizedDetails?: any;
|
|
5207
5217
|
isArchived?: boolean | undefined;
|
|
5218
|
+
metadata?: any;
|
|
5208
5219
|
}>;
|
|
5209
5220
|
/**
|
|
5210
5221
|
* Schema for validating appointment search parameters
|
package/dist/index.js
CHANGED
|
@@ -644,7 +644,8 @@ var updateAppointmentSchema = import_zod2.z.object({
|
|
|
644
644
|
reviewInfo: import_zod2.z.union([patientReviewInfoSchema.nullable(), import_zod2.z.any()]).optional(),
|
|
645
645
|
finalizedDetails: import_zod2.z.union([finalizedDetailsSchema.nullable(), import_zod2.z.any()]).optional(),
|
|
646
646
|
isArchived: import_zod2.z.boolean().optional(),
|
|
647
|
-
updatedAt: import_zod2.z.any().optional()
|
|
647
|
+
updatedAt: import_zod2.z.any().optional(),
|
|
648
|
+
metadata: import_zod2.z.any().optional()
|
|
648
649
|
}).refine(
|
|
649
650
|
(data) => {
|
|
650
651
|
if (data.status === "canceled_clinic" /* CANCELED_CLINIC */ || data.status === "canceled_patient" /* CANCELED_PATIENT */ || data.status === "canceled_patient_rescheduled" /* CANCELED_PATIENT_RESCHEDULED */) {
|
package/dist/index.mjs
CHANGED
|
@@ -399,7 +399,8 @@ var updateAppointmentSchema = z2.object({
|
|
|
399
399
|
reviewInfo: z2.union([patientReviewInfoSchema.nullable(), z2.any()]).optional(),
|
|
400
400
|
finalizedDetails: z2.union([finalizedDetailsSchema.nullable(), z2.any()]).optional(),
|
|
401
401
|
isArchived: z2.boolean().optional(),
|
|
402
|
-
updatedAt: z2.any().optional()
|
|
402
|
+
updatedAt: z2.any().optional(),
|
|
403
|
+
metadata: z2.any().optional()
|
|
403
404
|
}).refine(
|
|
404
405
|
(data) => {
|
|
405
406
|
if (data.status === "canceled_clinic" /* CANCELED_CLINIC */ || data.status === "canceled_patient" /* CANCELED_PATIENT */ || data.status === "canceled_patient_rescheduled" /* CANCELED_PATIENT_RESCHEDULED */) {
|
package/package.json
CHANGED
|
@@ -207,6 +207,9 @@ export interface Appointment {
|
|
|
207
207
|
|
|
208
208
|
/** NEW: Flag for soft deletion or archiving */
|
|
209
209
|
isArchived?: boolean;
|
|
210
|
+
|
|
211
|
+
/** NEW: Metadata for the appointment - used for area selection and photos */
|
|
212
|
+
metadata?: any;
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
/**
|
|
@@ -279,6 +282,9 @@ export interface UpdateAppointmentData {
|
|
|
279
282
|
isArchived?: boolean;
|
|
280
283
|
|
|
281
284
|
updatedAt?: FieldValue; // To set server timestamp
|
|
285
|
+
|
|
286
|
+
/** NEW: For updating metadata */
|
|
287
|
+
metadata?: any;
|
|
282
288
|
}
|
|
283
289
|
|
|
284
290
|
/**
|