@blackcode_sa/metaestetics-api 1.4.8 → 1.4.10
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 +31 -16
- package/dist/index.d.ts +31 -16
- package/dist/index.js +742 -187
- package/dist/index.mjs +761 -199
- package/package.json +1 -1
- package/src/services/auth.service.ts +33 -11
- package/src/services/clinic/clinic-group.service.ts +63 -9
- package/src/services/clinic/clinic.service.ts +32 -9
- package/src/services/clinic/utils/admin.utils.ts +6 -51
- package/src/services/clinic/utils/clinic-group.utils.ts +178 -45
- package/src/services/clinic/utils/clinic.utils.ts +482 -39
- package/src/services/clinic/utils/photos.utils.ts +188 -0
- package/src/services/clinic/utils/review.utils.ts +24 -17
- package/src/services/clinic/utils/tag.utils.ts +33 -8
- package/src/types/clinic/index.ts +8 -5
- package/src/validations/clinic.schema.ts +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -1060,7 +1060,7 @@ interface ClinicGroup {
|
|
|
1060
1060
|
admins: string[];
|
|
1061
1061
|
adminsInfo: AdminInfo[];
|
|
1062
1062
|
adminTokens: AdminToken[];
|
|
1063
|
-
ownerId: string;
|
|
1063
|
+
ownerId: string | null;
|
|
1064
1064
|
createdAt: Timestamp;
|
|
1065
1065
|
updatedAt: Timestamp;
|
|
1066
1066
|
isActive: boolean;
|
|
@@ -1070,6 +1070,7 @@ interface ClinicGroup {
|
|
|
1070
1070
|
subscriptionModel: SubscriptionModel;
|
|
1071
1071
|
calendarSyncEnabled?: boolean;
|
|
1072
1072
|
autoConfirmAppointments?: boolean;
|
|
1073
|
+
businessIdentificationNumber?: string | null;
|
|
1073
1074
|
}
|
|
1074
1075
|
/**
|
|
1075
1076
|
* Interface for creating a clinic group
|
|
@@ -1080,7 +1081,7 @@ interface CreateClinicGroupData {
|
|
|
1080
1081
|
hqLocation: ClinicLocation;
|
|
1081
1082
|
contactInfo: ClinicContactInfo;
|
|
1082
1083
|
contactPerson: ContactPerson;
|
|
1083
|
-
ownerId: string;
|
|
1084
|
+
ownerId: string | null;
|
|
1084
1085
|
isActive: boolean;
|
|
1085
1086
|
logo?: string | null;
|
|
1086
1087
|
practiceType?: PracticeType;
|
|
@@ -1088,6 +1089,7 @@ interface CreateClinicGroupData {
|
|
|
1088
1089
|
subscriptionModel?: SubscriptionModel;
|
|
1089
1090
|
calendarSyncEnabled?: boolean;
|
|
1090
1091
|
autoConfirmAppointments?: boolean;
|
|
1092
|
+
businessIdentificationNumber?: string | null;
|
|
1091
1093
|
}
|
|
1092
1094
|
/**
|
|
1093
1095
|
* Interface for updating a clinic group
|
|
@@ -1215,12 +1217,12 @@ interface UpdateClinicData extends Partial<CreateClinicData> {
|
|
|
1215
1217
|
*/
|
|
1216
1218
|
interface CreateDefaultClinicGroupData {
|
|
1217
1219
|
name: string;
|
|
1218
|
-
ownerId: string;
|
|
1220
|
+
ownerId: string | null;
|
|
1219
1221
|
contactPerson: ContactPerson;
|
|
1220
1222
|
contactInfo: ClinicContactInfo;
|
|
1221
1223
|
hqLocation: ClinicLocation;
|
|
1222
1224
|
isActive: boolean;
|
|
1223
|
-
logo?: string;
|
|
1225
|
+
logo?: string | null;
|
|
1224
1226
|
practiceType?: PracticeType;
|
|
1225
1227
|
languages?: Language[];
|
|
1226
1228
|
subscriptionModel?: SubscriptionModel;
|
|
@@ -1255,6 +1257,7 @@ interface ClinicGroupSetupData {
|
|
|
1255
1257
|
logo: string;
|
|
1256
1258
|
calendarSyncEnabled: boolean;
|
|
1257
1259
|
autoConfirmAppointments: boolean;
|
|
1260
|
+
businessIdentificationNumber: string | null;
|
|
1258
1261
|
}
|
|
1259
1262
|
/**
|
|
1260
1263
|
* Interface for clinic branch setup data
|
|
@@ -8303,7 +8306,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8303
8306
|
expiresAt: Timestamp | Date;
|
|
8304
8307
|
usedByUserRef?: string | undefined;
|
|
8305
8308
|
}>, "many">;
|
|
8306
|
-
ownerId: z.ZodString
|
|
8309
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
8307
8310
|
createdAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
8308
8311
|
updatedAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
8309
8312
|
isActive: z.ZodBoolean;
|
|
@@ -8313,6 +8316,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8313
8316
|
subscriptionModel: z.ZodNativeEnum<typeof SubscriptionModel>;
|
|
8314
8317
|
calendarSyncEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8315
8318
|
autoConfirmAppointments: z.ZodOptional<z.ZodBoolean>;
|
|
8319
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8316
8320
|
}, "strip", z.ZodTypeAny, {
|
|
8317
8321
|
id: string;
|
|
8318
8322
|
isActive: boolean;
|
|
@@ -8342,7 +8346,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8342
8346
|
title?: string | null | undefined;
|
|
8343
8347
|
phoneNumber?: string | null | undefined;
|
|
8344
8348
|
};
|
|
8345
|
-
ownerId: string;
|
|
8349
|
+
ownerId: string | null;
|
|
8346
8350
|
subscriptionModel: SubscriptionModel;
|
|
8347
8351
|
admins: string[];
|
|
8348
8352
|
clinicsInfo: {
|
|
@@ -8385,6 +8389,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8385
8389
|
languages?: Language[] | undefined;
|
|
8386
8390
|
calendarSyncEnabled?: boolean | undefined;
|
|
8387
8391
|
autoConfirmAppointments?: boolean | undefined;
|
|
8392
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
8388
8393
|
}, {
|
|
8389
8394
|
id: string;
|
|
8390
8395
|
isActive: boolean;
|
|
@@ -8414,7 +8419,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8414
8419
|
title?: string | null | undefined;
|
|
8415
8420
|
phoneNumber?: string | null | undefined;
|
|
8416
8421
|
};
|
|
8417
|
-
ownerId: string;
|
|
8422
|
+
ownerId: string | null;
|
|
8418
8423
|
subscriptionModel: SubscriptionModel;
|
|
8419
8424
|
admins: string[];
|
|
8420
8425
|
clinicsInfo: {
|
|
@@ -8457,6 +8462,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8457
8462
|
languages?: Language[] | undefined;
|
|
8458
8463
|
calendarSyncEnabled?: boolean | undefined;
|
|
8459
8464
|
autoConfirmAppointments?: boolean | undefined;
|
|
8465
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
8460
8466
|
}>;
|
|
8461
8467
|
/**
|
|
8462
8468
|
* Validaciona šema za recenziju klinike
|
|
@@ -9372,7 +9378,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9372
9378
|
title?: string | null | undefined;
|
|
9373
9379
|
phoneNumber?: string | null | undefined;
|
|
9374
9380
|
}>;
|
|
9375
|
-
ownerId: z.ZodString
|
|
9381
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
9376
9382
|
isActive: z.ZodBoolean;
|
|
9377
9383
|
logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9378
9384
|
practiceType: z.ZodOptional<z.ZodNativeEnum<typeof PracticeType>>;
|
|
@@ -9380,6 +9386,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9380
9386
|
subscriptionModel: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof SubscriptionModel>>>;
|
|
9381
9387
|
calendarSyncEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
9382
9388
|
autoConfirmAppointments: z.ZodOptional<z.ZodBoolean>;
|
|
9389
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9383
9390
|
}, "strip", z.ZodTypeAny, {
|
|
9384
9391
|
isActive: boolean;
|
|
9385
9392
|
name: string;
|
|
@@ -9405,7 +9412,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9405
9412
|
title?: string | null | undefined;
|
|
9406
9413
|
phoneNumber?: string | null | undefined;
|
|
9407
9414
|
};
|
|
9408
|
-
ownerId: string;
|
|
9415
|
+
ownerId: string | null;
|
|
9409
9416
|
subscriptionModel: SubscriptionModel;
|
|
9410
9417
|
description?: string | undefined;
|
|
9411
9418
|
logo?: string | null | undefined;
|
|
@@ -9413,6 +9420,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9413
9420
|
languages?: Language[] | undefined;
|
|
9414
9421
|
calendarSyncEnabled?: boolean | undefined;
|
|
9415
9422
|
autoConfirmAppointments?: boolean | undefined;
|
|
9423
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
9416
9424
|
}, {
|
|
9417
9425
|
isActive: boolean;
|
|
9418
9426
|
name: string;
|
|
@@ -9438,7 +9446,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9438
9446
|
title?: string | null | undefined;
|
|
9439
9447
|
phoneNumber?: string | null | undefined;
|
|
9440
9448
|
};
|
|
9441
|
-
ownerId: string;
|
|
9449
|
+
ownerId: string | null;
|
|
9442
9450
|
description?: string | undefined;
|
|
9443
9451
|
logo?: string | null | undefined;
|
|
9444
9452
|
practiceType?: PracticeType | undefined;
|
|
@@ -9446,6 +9454,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9446
9454
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
9447
9455
|
calendarSyncEnabled?: boolean | undefined;
|
|
9448
9456
|
autoConfirmAppointments?: boolean | undefined;
|
|
9457
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
9449
9458
|
}>;
|
|
9450
9459
|
/**
|
|
9451
9460
|
* Validaciona šema za kreiranje klinike
|
|
@@ -10012,7 +10021,7 @@ declare const createClinicSchema: z.ZodObject<{
|
|
|
10012
10021
|
*/
|
|
10013
10022
|
declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
10014
10023
|
name: z.ZodString;
|
|
10015
|
-
ownerId: z.ZodString
|
|
10024
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
10016
10025
|
contactPerson: z.ZodObject<{
|
|
10017
10026
|
firstName: z.ZodString;
|
|
10018
10027
|
lastName: z.ZodString;
|
|
@@ -10103,7 +10112,7 @@ declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
|
10103
10112
|
title?: string | null | undefined;
|
|
10104
10113
|
phoneNumber?: string | null | undefined;
|
|
10105
10114
|
};
|
|
10106
|
-
ownerId: string;
|
|
10115
|
+
ownerId: string | null;
|
|
10107
10116
|
subscriptionModel: SubscriptionModel;
|
|
10108
10117
|
logo?: string | null | undefined;
|
|
10109
10118
|
practiceType?: PracticeType | undefined;
|
|
@@ -10133,7 +10142,7 @@ declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
|
10133
10142
|
title?: string | null | undefined;
|
|
10134
10143
|
phoneNumber?: string | null | undefined;
|
|
10135
10144
|
};
|
|
10136
|
-
ownerId: string;
|
|
10145
|
+
ownerId: string | null;
|
|
10137
10146
|
logo?: string | null | undefined;
|
|
10138
10147
|
practiceType?: PracticeType | undefined;
|
|
10139
10148
|
languages?: Language[] | undefined;
|
|
@@ -10304,6 +10313,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10304
10313
|
logo: z.ZodString;
|
|
10305
10314
|
calendarSyncEnabled: z.ZodBoolean;
|
|
10306
10315
|
autoConfirmAppointments: z.ZodBoolean;
|
|
10316
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10307
10317
|
}, "strip", z.ZodTypeAny, {
|
|
10308
10318
|
description: string;
|
|
10309
10319
|
logo: string;
|
|
@@ -10311,6 +10321,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10311
10321
|
languages: Language[];
|
|
10312
10322
|
calendarSyncEnabled: boolean;
|
|
10313
10323
|
autoConfirmAppointments: boolean;
|
|
10324
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
10314
10325
|
}, {
|
|
10315
10326
|
description: string;
|
|
10316
10327
|
logo: string;
|
|
@@ -10318,6 +10329,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10318
10329
|
languages: Language[];
|
|
10319
10330
|
calendarSyncEnabled: boolean;
|
|
10320
10331
|
autoConfirmAppointments: boolean;
|
|
10332
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
10321
10333
|
}>;
|
|
10322
10334
|
/**
|
|
10323
10335
|
* Validaciona šema za kreiranje klinike
|
|
@@ -10985,7 +10997,7 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
10985
10997
|
title?: string | null | undefined;
|
|
10986
10998
|
phoneNumber?: string | null | undefined;
|
|
10987
10999
|
}>>;
|
|
10988
|
-
ownerId: z.ZodOptional<z.ZodString
|
|
11000
|
+
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10989
11001
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
10990
11002
|
logo: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10991
11003
|
practiceType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof PracticeType>>>;
|
|
@@ -10993,6 +11005,7 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
10993
11005
|
subscriptionModel: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof SubscriptionModel>>>>;
|
|
10994
11006
|
calendarSyncEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
10995
11007
|
autoConfirmAppointments: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
11008
|
+
businessIdentificationNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10996
11009
|
}, "strip", z.ZodTypeAny, {
|
|
10997
11010
|
description?: string | undefined;
|
|
10998
11011
|
isActive?: boolean | undefined;
|
|
@@ -11019,13 +11032,14 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
11019
11032
|
title?: string | null | undefined;
|
|
11020
11033
|
phoneNumber?: string | null | undefined;
|
|
11021
11034
|
} | undefined;
|
|
11022
|
-
ownerId?: string | undefined;
|
|
11035
|
+
ownerId?: string | null | undefined;
|
|
11023
11036
|
logo?: string | null | undefined;
|
|
11024
11037
|
practiceType?: PracticeType | undefined;
|
|
11025
11038
|
languages?: Language[] | undefined;
|
|
11026
11039
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
11027
11040
|
calendarSyncEnabled?: boolean | undefined;
|
|
11028
11041
|
autoConfirmAppointments?: boolean | undefined;
|
|
11042
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
11029
11043
|
}, {
|
|
11030
11044
|
description?: string | undefined;
|
|
11031
11045
|
isActive?: boolean | undefined;
|
|
@@ -11052,13 +11066,14 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
11052
11066
|
title?: string | null | undefined;
|
|
11053
11067
|
phoneNumber?: string | null | undefined;
|
|
11054
11068
|
} | undefined;
|
|
11055
|
-
ownerId?: string | undefined;
|
|
11069
|
+
ownerId?: string | null | undefined;
|
|
11056
11070
|
logo?: string | null | undefined;
|
|
11057
11071
|
practiceType?: PracticeType | undefined;
|
|
11058
11072
|
languages?: Language[] | undefined;
|
|
11059
11073
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
11060
11074
|
calendarSyncEnabled?: boolean | undefined;
|
|
11061
11075
|
autoConfirmAppointments?: boolean | undefined;
|
|
11076
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
11062
11077
|
}>;
|
|
11063
11078
|
/**
|
|
11064
11079
|
* Validaciona šema za updating clinic
|
package/dist/index.d.ts
CHANGED
|
@@ -1060,7 +1060,7 @@ interface ClinicGroup {
|
|
|
1060
1060
|
admins: string[];
|
|
1061
1061
|
adminsInfo: AdminInfo[];
|
|
1062
1062
|
adminTokens: AdminToken[];
|
|
1063
|
-
ownerId: string;
|
|
1063
|
+
ownerId: string | null;
|
|
1064
1064
|
createdAt: Timestamp;
|
|
1065
1065
|
updatedAt: Timestamp;
|
|
1066
1066
|
isActive: boolean;
|
|
@@ -1070,6 +1070,7 @@ interface ClinicGroup {
|
|
|
1070
1070
|
subscriptionModel: SubscriptionModel;
|
|
1071
1071
|
calendarSyncEnabled?: boolean;
|
|
1072
1072
|
autoConfirmAppointments?: boolean;
|
|
1073
|
+
businessIdentificationNumber?: string | null;
|
|
1073
1074
|
}
|
|
1074
1075
|
/**
|
|
1075
1076
|
* Interface for creating a clinic group
|
|
@@ -1080,7 +1081,7 @@ interface CreateClinicGroupData {
|
|
|
1080
1081
|
hqLocation: ClinicLocation;
|
|
1081
1082
|
contactInfo: ClinicContactInfo;
|
|
1082
1083
|
contactPerson: ContactPerson;
|
|
1083
|
-
ownerId: string;
|
|
1084
|
+
ownerId: string | null;
|
|
1084
1085
|
isActive: boolean;
|
|
1085
1086
|
logo?: string | null;
|
|
1086
1087
|
practiceType?: PracticeType;
|
|
@@ -1088,6 +1089,7 @@ interface CreateClinicGroupData {
|
|
|
1088
1089
|
subscriptionModel?: SubscriptionModel;
|
|
1089
1090
|
calendarSyncEnabled?: boolean;
|
|
1090
1091
|
autoConfirmAppointments?: boolean;
|
|
1092
|
+
businessIdentificationNumber?: string | null;
|
|
1091
1093
|
}
|
|
1092
1094
|
/**
|
|
1093
1095
|
* Interface for updating a clinic group
|
|
@@ -1215,12 +1217,12 @@ interface UpdateClinicData extends Partial<CreateClinicData> {
|
|
|
1215
1217
|
*/
|
|
1216
1218
|
interface CreateDefaultClinicGroupData {
|
|
1217
1219
|
name: string;
|
|
1218
|
-
ownerId: string;
|
|
1220
|
+
ownerId: string | null;
|
|
1219
1221
|
contactPerson: ContactPerson;
|
|
1220
1222
|
contactInfo: ClinicContactInfo;
|
|
1221
1223
|
hqLocation: ClinicLocation;
|
|
1222
1224
|
isActive: boolean;
|
|
1223
|
-
logo?: string;
|
|
1225
|
+
logo?: string | null;
|
|
1224
1226
|
practiceType?: PracticeType;
|
|
1225
1227
|
languages?: Language[];
|
|
1226
1228
|
subscriptionModel?: SubscriptionModel;
|
|
@@ -1255,6 +1257,7 @@ interface ClinicGroupSetupData {
|
|
|
1255
1257
|
logo: string;
|
|
1256
1258
|
calendarSyncEnabled: boolean;
|
|
1257
1259
|
autoConfirmAppointments: boolean;
|
|
1260
|
+
businessIdentificationNumber: string | null;
|
|
1258
1261
|
}
|
|
1259
1262
|
/**
|
|
1260
1263
|
* Interface for clinic branch setup data
|
|
@@ -8303,7 +8306,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8303
8306
|
expiresAt: Timestamp | Date;
|
|
8304
8307
|
usedByUserRef?: string | undefined;
|
|
8305
8308
|
}>, "many">;
|
|
8306
|
-
ownerId: z.ZodString
|
|
8309
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
8307
8310
|
createdAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
8308
8311
|
updatedAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
8309
8312
|
isActive: z.ZodBoolean;
|
|
@@ -8313,6 +8316,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8313
8316
|
subscriptionModel: z.ZodNativeEnum<typeof SubscriptionModel>;
|
|
8314
8317
|
calendarSyncEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
8315
8318
|
autoConfirmAppointments: z.ZodOptional<z.ZodBoolean>;
|
|
8319
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8316
8320
|
}, "strip", z.ZodTypeAny, {
|
|
8317
8321
|
id: string;
|
|
8318
8322
|
isActive: boolean;
|
|
@@ -8342,7 +8346,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8342
8346
|
title?: string | null | undefined;
|
|
8343
8347
|
phoneNumber?: string | null | undefined;
|
|
8344
8348
|
};
|
|
8345
|
-
ownerId: string;
|
|
8349
|
+
ownerId: string | null;
|
|
8346
8350
|
subscriptionModel: SubscriptionModel;
|
|
8347
8351
|
admins: string[];
|
|
8348
8352
|
clinicsInfo: {
|
|
@@ -8385,6 +8389,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8385
8389
|
languages?: Language[] | undefined;
|
|
8386
8390
|
calendarSyncEnabled?: boolean | undefined;
|
|
8387
8391
|
autoConfirmAppointments?: boolean | undefined;
|
|
8392
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
8388
8393
|
}, {
|
|
8389
8394
|
id: string;
|
|
8390
8395
|
isActive: boolean;
|
|
@@ -8414,7 +8419,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8414
8419
|
title?: string | null | undefined;
|
|
8415
8420
|
phoneNumber?: string | null | undefined;
|
|
8416
8421
|
};
|
|
8417
|
-
ownerId: string;
|
|
8422
|
+
ownerId: string | null;
|
|
8418
8423
|
subscriptionModel: SubscriptionModel;
|
|
8419
8424
|
admins: string[];
|
|
8420
8425
|
clinicsInfo: {
|
|
@@ -8457,6 +8462,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
8457
8462
|
languages?: Language[] | undefined;
|
|
8458
8463
|
calendarSyncEnabled?: boolean | undefined;
|
|
8459
8464
|
autoConfirmAppointments?: boolean | undefined;
|
|
8465
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
8460
8466
|
}>;
|
|
8461
8467
|
/**
|
|
8462
8468
|
* Validaciona šema za recenziju klinike
|
|
@@ -9372,7 +9378,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9372
9378
|
title?: string | null | undefined;
|
|
9373
9379
|
phoneNumber?: string | null | undefined;
|
|
9374
9380
|
}>;
|
|
9375
|
-
ownerId: z.ZodString
|
|
9381
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
9376
9382
|
isActive: z.ZodBoolean;
|
|
9377
9383
|
logo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9378
9384
|
practiceType: z.ZodOptional<z.ZodNativeEnum<typeof PracticeType>>;
|
|
@@ -9380,6 +9386,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9380
9386
|
subscriptionModel: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof SubscriptionModel>>>;
|
|
9381
9387
|
calendarSyncEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
9382
9388
|
autoConfirmAppointments: z.ZodOptional<z.ZodBoolean>;
|
|
9389
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
9383
9390
|
}, "strip", z.ZodTypeAny, {
|
|
9384
9391
|
isActive: boolean;
|
|
9385
9392
|
name: string;
|
|
@@ -9405,7 +9412,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9405
9412
|
title?: string | null | undefined;
|
|
9406
9413
|
phoneNumber?: string | null | undefined;
|
|
9407
9414
|
};
|
|
9408
|
-
ownerId: string;
|
|
9415
|
+
ownerId: string | null;
|
|
9409
9416
|
subscriptionModel: SubscriptionModel;
|
|
9410
9417
|
description?: string | undefined;
|
|
9411
9418
|
logo?: string | null | undefined;
|
|
@@ -9413,6 +9420,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9413
9420
|
languages?: Language[] | undefined;
|
|
9414
9421
|
calendarSyncEnabled?: boolean | undefined;
|
|
9415
9422
|
autoConfirmAppointments?: boolean | undefined;
|
|
9423
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
9416
9424
|
}, {
|
|
9417
9425
|
isActive: boolean;
|
|
9418
9426
|
name: string;
|
|
@@ -9438,7 +9446,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9438
9446
|
title?: string | null | undefined;
|
|
9439
9447
|
phoneNumber?: string | null | undefined;
|
|
9440
9448
|
};
|
|
9441
|
-
ownerId: string;
|
|
9449
|
+
ownerId: string | null;
|
|
9442
9450
|
description?: string | undefined;
|
|
9443
9451
|
logo?: string | null | undefined;
|
|
9444
9452
|
practiceType?: PracticeType | undefined;
|
|
@@ -9446,6 +9454,7 @@ declare const createClinicGroupSchema: z.ZodObject<{
|
|
|
9446
9454
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
9447
9455
|
calendarSyncEnabled?: boolean | undefined;
|
|
9448
9456
|
autoConfirmAppointments?: boolean | undefined;
|
|
9457
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
9449
9458
|
}>;
|
|
9450
9459
|
/**
|
|
9451
9460
|
* Validaciona šema za kreiranje klinike
|
|
@@ -10012,7 +10021,7 @@ declare const createClinicSchema: z.ZodObject<{
|
|
|
10012
10021
|
*/
|
|
10013
10022
|
declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
10014
10023
|
name: z.ZodString;
|
|
10015
|
-
ownerId: z.ZodString
|
|
10024
|
+
ownerId: z.ZodNullable<z.ZodString>;
|
|
10016
10025
|
contactPerson: z.ZodObject<{
|
|
10017
10026
|
firstName: z.ZodString;
|
|
10018
10027
|
lastName: z.ZodString;
|
|
@@ -10103,7 +10112,7 @@ declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
|
10103
10112
|
title?: string | null | undefined;
|
|
10104
10113
|
phoneNumber?: string | null | undefined;
|
|
10105
10114
|
};
|
|
10106
|
-
ownerId: string;
|
|
10115
|
+
ownerId: string | null;
|
|
10107
10116
|
subscriptionModel: SubscriptionModel;
|
|
10108
10117
|
logo?: string | null | undefined;
|
|
10109
10118
|
practiceType?: PracticeType | undefined;
|
|
@@ -10133,7 +10142,7 @@ declare const createDefaultClinicGroupSchema: z.ZodObject<{
|
|
|
10133
10142
|
title?: string | null | undefined;
|
|
10134
10143
|
phoneNumber?: string | null | undefined;
|
|
10135
10144
|
};
|
|
10136
|
-
ownerId: string;
|
|
10145
|
+
ownerId: string | null;
|
|
10137
10146
|
logo?: string | null | undefined;
|
|
10138
10147
|
practiceType?: PracticeType | undefined;
|
|
10139
10148
|
languages?: Language[] | undefined;
|
|
@@ -10304,6 +10313,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10304
10313
|
logo: z.ZodString;
|
|
10305
10314
|
calendarSyncEnabled: z.ZodBoolean;
|
|
10306
10315
|
autoConfirmAppointments: z.ZodBoolean;
|
|
10316
|
+
businessIdentificationNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
10307
10317
|
}, "strip", z.ZodTypeAny, {
|
|
10308
10318
|
description: string;
|
|
10309
10319
|
logo: string;
|
|
@@ -10311,6 +10321,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10311
10321
|
languages: Language[];
|
|
10312
10322
|
calendarSyncEnabled: boolean;
|
|
10313
10323
|
autoConfirmAppointments: boolean;
|
|
10324
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
10314
10325
|
}, {
|
|
10315
10326
|
description: string;
|
|
10316
10327
|
logo: string;
|
|
@@ -10318,6 +10329,7 @@ declare const clinicGroupSetupSchema: z.ZodObject<{
|
|
|
10318
10329
|
languages: Language[];
|
|
10319
10330
|
calendarSyncEnabled: boolean;
|
|
10320
10331
|
autoConfirmAppointments: boolean;
|
|
10332
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
10321
10333
|
}>;
|
|
10322
10334
|
/**
|
|
10323
10335
|
* Validaciona šema za kreiranje klinike
|
|
@@ -10985,7 +10997,7 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
10985
10997
|
title?: string | null | undefined;
|
|
10986
10998
|
phoneNumber?: string | null | undefined;
|
|
10987
10999
|
}>>;
|
|
10988
|
-
ownerId: z.ZodOptional<z.ZodString
|
|
11000
|
+
ownerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10989
11001
|
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
10990
11002
|
logo: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10991
11003
|
practiceType: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof PracticeType>>>;
|
|
@@ -10993,6 +11005,7 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
10993
11005
|
subscriptionModel: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof SubscriptionModel>>>>;
|
|
10994
11006
|
calendarSyncEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
10995
11007
|
autoConfirmAppointments: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
11008
|
+
businessIdentificationNumber: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
10996
11009
|
}, "strip", z.ZodTypeAny, {
|
|
10997
11010
|
description?: string | undefined;
|
|
10998
11011
|
isActive?: boolean | undefined;
|
|
@@ -11019,13 +11032,14 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
11019
11032
|
title?: string | null | undefined;
|
|
11020
11033
|
phoneNumber?: string | null | undefined;
|
|
11021
11034
|
} | undefined;
|
|
11022
|
-
ownerId?: string | undefined;
|
|
11035
|
+
ownerId?: string | null | undefined;
|
|
11023
11036
|
logo?: string | null | undefined;
|
|
11024
11037
|
practiceType?: PracticeType | undefined;
|
|
11025
11038
|
languages?: Language[] | undefined;
|
|
11026
11039
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
11027
11040
|
calendarSyncEnabled?: boolean | undefined;
|
|
11028
11041
|
autoConfirmAppointments?: boolean | undefined;
|
|
11042
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
11029
11043
|
}, {
|
|
11030
11044
|
description?: string | undefined;
|
|
11031
11045
|
isActive?: boolean | undefined;
|
|
@@ -11052,13 +11066,14 @@ declare const updateClinicGroupSchema: z.ZodObject<{
|
|
|
11052
11066
|
title?: string | null | undefined;
|
|
11053
11067
|
phoneNumber?: string | null | undefined;
|
|
11054
11068
|
} | undefined;
|
|
11055
|
-
ownerId?: string | undefined;
|
|
11069
|
+
ownerId?: string | null | undefined;
|
|
11056
11070
|
logo?: string | null | undefined;
|
|
11057
11071
|
practiceType?: PracticeType | undefined;
|
|
11058
11072
|
languages?: Language[] | undefined;
|
|
11059
11073
|
subscriptionModel?: SubscriptionModel | undefined;
|
|
11060
11074
|
calendarSyncEnabled?: boolean | undefined;
|
|
11061
11075
|
autoConfirmAppointments?: boolean | undefined;
|
|
11076
|
+
businessIdentificationNumber?: string | null | undefined;
|
|
11062
11077
|
}>;
|
|
11063
11078
|
/**
|
|
11064
11079
|
* Validaciona šema za updating clinic
|