@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.
@@ -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).min(1), // Use stored format schema
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),