@blackcode_sa/metaestetics-api 1.7.10 → 1.7.12

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.
@@ -19,15 +19,7 @@ import {
19
19
  clinicInfoSchema,
20
20
  doctorInfoSchema,
21
21
  } from "./shared.schema";
22
-
23
- /**
24
- * Schema for validating both URL strings and File objects
25
- */
26
- const mediaResourceSchema = z.union([
27
- z.string(),
28
- z.instanceof(File),
29
- z.instanceof(Blob),
30
- ]);
22
+ import { mediaResourceSchema } from "./media.schema";
31
23
 
32
24
  /**
33
25
  * Validaciona šema za kontakt informacije
@@ -191,6 +183,12 @@ export const clinicGroupSchema = z.object({
191
183
  calendarSyncEnabled: z.boolean().optional(),
192
184
  autoConfirmAppointments: z.boolean().optional(),
193
185
  businessIdentificationNumber: z.string().optional().nullable(),
186
+ onboarding: z
187
+ .object({
188
+ completed: z.boolean().optional().default(false),
189
+ step: z.number().optional().default(1),
190
+ })
191
+ .optional(),
194
192
  });
195
193
 
196
194
  /**
@@ -263,6 +261,12 @@ export const createClinicGroupSchema = z.object({
263
261
  calendarSyncEnabled: z.boolean().optional(),
264
262
  autoConfirmAppointments: z.boolean().optional(),
265
263
  businessIdentificationNumber: z.string().optional().nullable(),
264
+ onboarding: z
265
+ .object({
266
+ completed: z.boolean().optional().default(false),
267
+ step: z.number().optional().default(1),
268
+ })
269
+ .optional(),
266
270
  // clinics, clinicsInfo, admins, adminsInfo, adminTokens are managed internally
267
271
  });
268
272
 
@@ -313,6 +317,12 @@ export const createDefaultClinicGroupSchema = z.object({
313
317
  .nativeEnum(SubscriptionModel)
314
318
  .optional()
315
319
  .default(SubscriptionModel.NO_SUBSCRIPTION),
320
+ onboarding: z
321
+ .object({
322
+ completed: z.boolean().optional().default(false),
323
+ step: z.number().optional().default(1),
324
+ })
325
+ .optional(),
316
326
  });
317
327
 
318
328
  /**
@@ -352,6 +362,12 @@ export const clinicGroupSetupSchema = z.object({
352
362
  calendarSyncEnabled: z.boolean(),
353
363
  autoConfirmAppointments: z.boolean(),
354
364
  businessIdentificationNumber: z.string().optional().nullable(),
365
+ onboarding: z
366
+ .object({
367
+ completed: z.boolean().optional().default(false),
368
+ step: z.number().optional().default(1),
369
+ })
370
+ .optional(),
355
371
  });
356
372
 
357
373
  /**
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+
3
+ /**
4
+ * Schema for validating both URL strings and File objects
5
+ */
6
+ export const mediaResourceSchema = z.union([
7
+ z.string(),
8
+ z.instanceof(File),
9
+ z.instanceof(Blob),
10
+ ]);