@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.
- package/dist/admin/index.d.mts +5 -4
- package/dist/admin/index.d.ts +5 -4
- package/dist/index.d.mts +246 -144
- package/dist/index.d.ts +246 -144
- package/dist/index.js +555 -875
- package/dist/index.mjs +597 -922
- package/package.json +1 -1
- package/src/admin/aggregation/reviews/reviews.aggregation.service.ts +641 -0
- package/src/index.ts +8 -0
- package/src/services/auth.service.ts +4 -0
- package/src/services/clinic/clinic-group.service.ts +49 -0
- package/src/services/clinic/clinic.service.ts +12 -0
- package/src/services/media/media.service.ts +6 -1
- package/src/services/reviews/reviews.service.ts +6 -572
- package/src/types/clinic/index.ts +17 -5
- package/src/validations/clinic.schema.ts +25 -9
- package/src/validations/media.schema.ts +10 -0
|
@@ -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
|
/**
|