@blackcode_sa/metaestetics-api 1.12.46 → 1.12.48
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 +5 -4
- package/dist/admin/index.d.ts +5 -4
- package/dist/admin/index.js +3 -26
- package/dist/admin/index.mjs +3 -26
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +81 -55
- package/dist/index.mjs +81 -55
- package/package.json +1 -1
- package/src/admin/booking/booking.admin.ts +21 -17
- package/src/admin/free-consultation/free-consultation-utils.admin.ts +4 -31
- package/src/services/appointment/utils/appointment.utils.ts +2 -2
- package/src/services/appointment/utils/extended-procedure.utils.ts +82 -53
- package/src/services/appointment/utils/recommended-procedure.utils.ts +8 -6
- package/src/services/practitioner/practitioner.service.ts +2 -10
- package/src/services/procedure/procedure.service.ts +67 -30
- package/src/types/procedure/index.ts +5 -5
- package/src/validations/appointment.schema.ts +60 -53
- package/src/validations/procedure.schema.ts +4 -4
|
@@ -52,11 +52,11 @@ export const createProcedureSchema = z.object({
|
|
|
52
52
|
categoryId: z.string().min(1),
|
|
53
53
|
subcategoryId: z.string().min(1),
|
|
54
54
|
technologyId: z.string().min(1),
|
|
55
|
-
productId: z.string().min(1),
|
|
55
|
+
productId: z.string().min(1).optional(),
|
|
56
56
|
price: z.number().min(0),
|
|
57
57
|
currency: z.nativeEnum(Currency),
|
|
58
58
|
pricingMeasure: z.nativeEnum(PricingMeasure),
|
|
59
|
-
productsMetadata: z.array(procedureProductDataSchema).min(1),
|
|
59
|
+
productsMetadata: z.array(procedureProductDataSchema).min(1).optional(),
|
|
60
60
|
duration: z.number().min(1).max(480), // Max 8 hours
|
|
61
61
|
practitionerId: z.string().min(1),
|
|
62
62
|
clinicBranchId: z.string().min(1),
|
|
@@ -97,8 +97,8 @@ export const procedureSchema = z.object({
|
|
|
97
97
|
category: z.any(), // We'll validate the full category object separately
|
|
98
98
|
subcategory: z.any(), // We'll validate the full subcategory object separately
|
|
99
99
|
technology: z.any(), // We'll validate the full technology object separately
|
|
100
|
-
product: z.any(), // We'll validate the full product object separately
|
|
101
|
-
productsMetadata: z.array(storedProcedureProductSchema).
|
|
100
|
+
product: z.any().optional(), // We'll validate the full product object separately (optional for consultations)
|
|
101
|
+
productsMetadata: z.array(storedProcedureProductSchema).optional(), // Use stored format schema (optional for consultations)
|
|
102
102
|
price: z.number().min(0),
|
|
103
103
|
currency: z.nativeEnum(Currency),
|
|
104
104
|
pricingMeasure: z.nativeEnum(PricingMeasure),
|