@blackcode_sa/metaestetics-api 1.4.5 → 1.4.7
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/index.d.mts +92 -92
- package/dist/index.d.ts +92 -92
- package/dist/index.js +380 -75
- package/dist/index.mjs +380 -75
- package/package.json +1 -1
- package/src/services/auth.service.ts +139 -29
- package/src/services/clinic/utils/admin.utils.ts +155 -34
- package/src/services/clinic/utils/clinic-group.utils.ts +99 -12
- package/src/types/clinic/index.ts +4 -4
- package/src/validations/clinic.schema.ts +5 -5
|
@@ -84,9 +84,9 @@ export interface WorkingHours {
|
|
|
84
84
|
export interface ContactPerson {
|
|
85
85
|
firstName: string;
|
|
86
86
|
lastName: string;
|
|
87
|
-
title
|
|
87
|
+
title?: string | null;
|
|
88
88
|
email: string;
|
|
89
|
-
phoneNumber
|
|
89
|
+
phoneNumber?: string | null;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -199,7 +199,7 @@ export interface ClinicGroup {
|
|
|
199
199
|
createdAt: Timestamp;
|
|
200
200
|
updatedAt: Timestamp;
|
|
201
201
|
isActive: boolean;
|
|
202
|
-
logo?: string;
|
|
202
|
+
logo?: string | null;
|
|
203
203
|
practiceType?: PracticeType;
|
|
204
204
|
languages?: Language[];
|
|
205
205
|
subscriptionModel: SubscriptionModel;
|
|
@@ -218,7 +218,7 @@ export interface CreateClinicGroupData {
|
|
|
218
218
|
contactPerson: ContactPerson;
|
|
219
219
|
ownerId: string;
|
|
220
220
|
isActive: boolean;
|
|
221
|
-
logo?: string;
|
|
221
|
+
logo?: string | null;
|
|
222
222
|
practiceType?: PracticeType;
|
|
223
223
|
languages?: Language[];
|
|
224
224
|
subscriptionModel?: SubscriptionModel;
|
|
@@ -76,9 +76,9 @@ export const clinicTagsSchema = z.object({
|
|
|
76
76
|
export const contactPersonSchema = z.object({
|
|
77
77
|
firstName: z.string(),
|
|
78
78
|
lastName: z.string(),
|
|
79
|
-
title: z.string(),
|
|
79
|
+
title: z.string().nullable().optional(),
|
|
80
80
|
email: z.string().email(),
|
|
81
|
-
phoneNumber: z.string(),
|
|
81
|
+
phoneNumber: z.string().nullable().optional(),
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -204,7 +204,7 @@ export const clinicGroupSchema = z.object({
|
|
|
204
204
|
createdAt: z.instanceof(Date).or(z.instanceof(Timestamp)), // Timestamp
|
|
205
205
|
updatedAt: z.instanceof(Date).or(z.instanceof(Timestamp)), // Timestamp
|
|
206
206
|
isActive: z.boolean(),
|
|
207
|
-
logo: z.string().optional(),
|
|
207
|
+
logo: z.string().optional().nullable(),
|
|
208
208
|
practiceType: z.nativeEnum(PracticeType).optional(),
|
|
209
209
|
languages: z.array(z.nativeEnum(Language)).optional(),
|
|
210
210
|
subscriptionModel: z.nativeEnum(SubscriptionModel),
|
|
@@ -292,7 +292,7 @@ export const createClinicGroupSchema = z.object({
|
|
|
292
292
|
contactPerson: contactPersonSchema,
|
|
293
293
|
ownerId: z.string(),
|
|
294
294
|
isActive: z.boolean(),
|
|
295
|
-
logo: z.string().optional(),
|
|
295
|
+
logo: z.string().optional().nullable(),
|
|
296
296
|
practiceType: z.nativeEnum(PracticeType).optional(),
|
|
297
297
|
languages: z.array(z.nativeEnum(Language)).optional(),
|
|
298
298
|
subscriptionModel: z
|
|
@@ -342,7 +342,7 @@ export const createDefaultClinicGroupSchema = z.object({
|
|
|
342
342
|
contactInfo: clinicContactInfoSchema,
|
|
343
343
|
hqLocation: clinicLocationSchema,
|
|
344
344
|
isActive: z.boolean(),
|
|
345
|
-
logo: z.string().optional(),
|
|
345
|
+
logo: z.string().optional().nullable(),
|
|
346
346
|
practiceType: z.nativeEnum(PracticeType).optional(),
|
|
347
347
|
languages: z.array(z.nativeEnum(Language)).optional(),
|
|
348
348
|
subscriptionModel: z
|