@blackcode_sa/metaestetics-api 1.7.11 → 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.
@@ -204,6 +204,10 @@ export interface ClinicGroup {
204
204
  calendarSyncEnabled?: boolean;
205
205
  autoConfirmAppointments?: boolean;
206
206
  businessIdentificationNumber?: string | null;
207
+ onboarding?: {
208
+ completed?: boolean;
209
+ step?: number;
210
+ };
207
211
  }
208
212
 
209
213
  /**
@@ -224,6 +228,10 @@ export interface CreateClinicGroupData {
224
228
  calendarSyncEnabled?: boolean;
225
229
  autoConfirmAppointments?: boolean;
226
230
  businessIdentificationNumber?: string | null;
231
+ onboarding?: {
232
+ completed?: boolean;
233
+ step?: number;
234
+ };
227
235
  }
228
236
 
229
237
  /**
@@ -326,6 +334,10 @@ export interface CreateDefaultClinicGroupData {
326
334
  practiceType?: PracticeType;
327
335
  languages?: Language[];
328
336
  subscriptionModel?: SubscriptionModel;
337
+ onboarding?: {
338
+ completed?: boolean;
339
+ step?: number;
340
+ };
329
341
  }
330
342
 
331
343
  /**
@@ -360,6 +372,10 @@ export interface ClinicGroupSetupData {
360
372
  calendarSyncEnabled: boolean;
361
373
  autoConfirmAppointments: boolean;
362
374
  businessIdentificationNumber: string | null;
375
+ onboarding?: {
376
+ completed?: boolean;
377
+ step?: number;
378
+ };
363
379
  }
364
380
 
365
381
  /**
@@ -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
+ ]);