@blackcode_sa/metaestetics-api 1.5.15 → 1.5.17
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/backoffice/index.d.mts +2 -2
- package/dist/backoffice/index.d.ts +2 -2
- package/dist/index.d.mts +232 -38
- package/dist/index.d.ts +232 -38
- package/dist/index.js +698 -342
- package/dist/index.mjs +942 -570
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/services/calendar/calendar-refactored.service.ts +147 -0
- package/src/services/calendar/utils/calendar-event.utils.ts +136 -0
- package/src/services/calendar/utils/index.ts +5 -5
- package/src/services/clinic/utils/clinic-group.utils.ts +3 -0
- package/src/services/patient/patient.service.ts +29 -0
- package/src/services/patient/utils/medical-stuff.utils.ts +69 -18
- package/src/services/patient/utils/profile.utils.ts +116 -0
- package/src/types/calendar/index.ts +41 -0
- package/src/types/clinic/index.ts +2 -0
- package/src/types/patient/index.ts +31 -1
- package/src/types/practitioner/index.ts +13 -14
- package/src/validations/clinic.schema.ts +2 -0
- package/src/validations/patient.schema.ts +43 -0
package/dist/index.d.mts
CHANGED
|
@@ -356,7 +356,7 @@ interface PractitionerBasicInfo {
|
|
|
356
356
|
email: string;
|
|
357
357
|
phoneNumber: string;
|
|
358
358
|
dateOfBirth: Timestamp;
|
|
359
|
-
gender:
|
|
359
|
+
gender: 'male' | 'female' | 'other';
|
|
360
360
|
profileImageUrl?: string;
|
|
361
361
|
bio?: string;
|
|
362
362
|
languages: string[];
|
|
@@ -371,7 +371,7 @@ interface PractitionerCertification {
|
|
|
371
371
|
issuingAuthority: string;
|
|
372
372
|
issueDate: Timestamp;
|
|
373
373
|
expiryDate?: Timestamp;
|
|
374
|
-
verificationStatus:
|
|
374
|
+
verificationStatus: 'pending' | 'verified' | 'rejected';
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
377
|
* Interfejs za radno vreme zdravstvenog radnika u klinici
|
|
@@ -910,6 +910,8 @@ interface PatientProfile {
|
|
|
910
910
|
dateOfBirth?: Timestamp | null;
|
|
911
911
|
doctors: PatientDoctor[];
|
|
912
912
|
clinics: PatientClinic[];
|
|
913
|
+
doctorIds: string[];
|
|
914
|
+
clinicIds: string[];
|
|
913
915
|
createdAt: Timestamp;
|
|
914
916
|
updatedAt: Timestamp;
|
|
915
917
|
}
|
|
@@ -925,13 +927,37 @@ interface CreatePatientProfileData {
|
|
|
925
927
|
isVerified: boolean;
|
|
926
928
|
doctors?: PatientDoctor[];
|
|
927
929
|
clinics?: PatientClinic[];
|
|
930
|
+
doctorIds?: string[];
|
|
931
|
+
clinicIds?: string[];
|
|
928
932
|
}
|
|
929
933
|
/**
|
|
930
934
|
* Tip za ažuriranje Patient profila
|
|
931
935
|
*/
|
|
932
|
-
interface UpdatePatientProfileData extends Partial<
|
|
936
|
+
interface UpdatePatientProfileData extends Partial<Omit<PatientProfile, "id" | "createdAt" | "updatedAt">> {
|
|
933
937
|
updatedAt?: FieldValue;
|
|
934
938
|
}
|
|
939
|
+
/**
|
|
940
|
+
* Parameters for searching patient profiles.
|
|
941
|
+
*/
|
|
942
|
+
interface SearchPatientsParams {
|
|
943
|
+
/** Optional: Filter patients associated with this clinic ID. */
|
|
944
|
+
clinicId?: string;
|
|
945
|
+
/** Optional: Filter patients associated with this practitioner ID. */
|
|
946
|
+
practitionerId?: string;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Information about the entity requesting the patient search.
|
|
950
|
+
*/
|
|
951
|
+
interface RequesterInfo {
|
|
952
|
+
/** ID of the clinic admin user or practitioner user making the request. */
|
|
953
|
+
id: string;
|
|
954
|
+
/** Role of the requester, determining the search context. */
|
|
955
|
+
role: "clinic_admin" | "practitioner";
|
|
956
|
+
/** If role is 'clinic_admin', this is the associated clinic ID. */
|
|
957
|
+
associatedClinicId?: string;
|
|
958
|
+
/** If role is 'practitioner', this is the associated practitioner profile ID. */
|
|
959
|
+
associatedPractitionerId?: string;
|
|
960
|
+
}
|
|
935
961
|
|
|
936
962
|
interface PatientProfileComplete {
|
|
937
963
|
patientProfile?: PatientProfile;
|
|
@@ -1233,6 +1259,7 @@ declare enum AdminTokenStatus {
|
|
|
1233
1259
|
interface AdminToken {
|
|
1234
1260
|
id: string;
|
|
1235
1261
|
token: string;
|
|
1262
|
+
email?: string | null;
|
|
1236
1263
|
status: AdminTokenStatus;
|
|
1237
1264
|
usedByUserRef?: string;
|
|
1238
1265
|
createdAt: Timestamp;
|
|
@@ -1312,6 +1339,7 @@ interface UpdateClinicGroupData extends Partial<CreateClinicGroupData> {
|
|
|
1312
1339
|
*/
|
|
1313
1340
|
interface CreateAdminTokenData {
|
|
1314
1341
|
expiresInDays?: number;
|
|
1342
|
+
email?: string | null;
|
|
1315
1343
|
}
|
|
1316
1344
|
/**
|
|
1317
1345
|
* Interface for doctor information
|
|
@@ -3497,8 +3525,8 @@ declare class CategoryService extends BaseService {
|
|
|
3497
3525
|
isActive: boolean;
|
|
3498
3526
|
updatedAt: Date;
|
|
3499
3527
|
name: string;
|
|
3500
|
-
description: string;
|
|
3501
3528
|
createdAt: Date;
|
|
3529
|
+
description: string;
|
|
3502
3530
|
family: ProcedureFamily;
|
|
3503
3531
|
id: string;
|
|
3504
3532
|
}>;
|
|
@@ -3562,8 +3590,8 @@ declare class SubcategoryService extends BaseService {
|
|
|
3562
3590
|
isActive: boolean;
|
|
3563
3591
|
updatedAt: Date;
|
|
3564
3592
|
name: string;
|
|
3565
|
-
description?: string | undefined;
|
|
3566
3593
|
createdAt: Date;
|
|
3594
|
+
description?: string | undefined;
|
|
3567
3595
|
categoryId: string;
|
|
3568
3596
|
id: string;
|
|
3569
3597
|
}>;
|
|
@@ -3636,8 +3664,8 @@ declare class TechnologyService extends BaseService {
|
|
|
3636
3664
|
blockingConditions: BlockingCondition[];
|
|
3637
3665
|
contraindications: Contraindication[];
|
|
3638
3666
|
name: string;
|
|
3639
|
-
description: string;
|
|
3640
3667
|
createdAt: Date;
|
|
3668
|
+
description: string;
|
|
3641
3669
|
technicalDetails?: string | undefined;
|
|
3642
3670
|
family: ProcedureFamily;
|
|
3643
3671
|
categoryId: string;
|
|
@@ -3857,8 +3885,8 @@ declare class BrandService extends BaseService {
|
|
|
3857
3885
|
isActive: boolean;
|
|
3858
3886
|
updatedAt: Date;
|
|
3859
3887
|
name: string;
|
|
3860
|
-
description?: string | undefined;
|
|
3861
3888
|
createdAt: Date;
|
|
3889
|
+
description?: string | undefined;
|
|
3862
3890
|
manufacturer: string;
|
|
3863
3891
|
website?: string | undefined;
|
|
3864
3892
|
id: string;
|
|
@@ -4129,6 +4157,44 @@ interface UpdateAppointmentParams {
|
|
|
4129
4157
|
* Collection names for calendar
|
|
4130
4158
|
*/
|
|
4131
4159
|
declare const CALENDAR_COLLECTION = "calendar";
|
|
4160
|
+
/**
|
|
4161
|
+
* Enum for specifying the primary search location for calendar events
|
|
4162
|
+
*/
|
|
4163
|
+
declare enum SearchLocationEnum {
|
|
4164
|
+
PRACTITIONER = "practitioner",
|
|
4165
|
+
PATIENT = "patient",
|
|
4166
|
+
CLINIC = "clinic"
|
|
4167
|
+
}
|
|
4168
|
+
/**
|
|
4169
|
+
* Interface for defining a date range
|
|
4170
|
+
*/
|
|
4171
|
+
interface DateRange {
|
|
4172
|
+
start: Timestamp;
|
|
4173
|
+
end: Timestamp;
|
|
4174
|
+
}
|
|
4175
|
+
/**
|
|
4176
|
+
* Interface for general calendar event search parameters
|
|
4177
|
+
*/
|
|
4178
|
+
interface SearchCalendarEventsParams {
|
|
4179
|
+
/** The primary location to search within (practitioner, patient, or clinic calendar). */
|
|
4180
|
+
searchLocation: SearchLocationEnum;
|
|
4181
|
+
/** The ID of the entity (practitioner, patient, or clinic) whose calendar/events are being searched. */
|
|
4182
|
+
entityId: string;
|
|
4183
|
+
/** Optional filter for clinic ID. If searchLocation is CLINIC, this is implicitly applied using entityId. */
|
|
4184
|
+
clinicId?: string;
|
|
4185
|
+
/** Optional filter for practitioner ID. */
|
|
4186
|
+
practitionerId?: string;
|
|
4187
|
+
/** Optional filter for patient ID. */
|
|
4188
|
+
patientId?: string;
|
|
4189
|
+
/** Optional filter for procedure ID. */
|
|
4190
|
+
procedureId?: string;
|
|
4191
|
+
/** Optional filter for a specific date range (based on event start time). */
|
|
4192
|
+
dateRange?: DateRange;
|
|
4193
|
+
/** Optional filter for event status. */
|
|
4194
|
+
eventStatus?: CalendarEventStatus;
|
|
4195
|
+
/** Optional filter for event type. */
|
|
4196
|
+
eventType?: CalendarEventType;
|
|
4197
|
+
}
|
|
4132
4198
|
|
|
4133
4199
|
declare enum UserRole {
|
|
4134
4200
|
PATIENT = "patient",
|
|
@@ -4210,6 +4276,15 @@ declare class PatientService extends BaseService {
|
|
|
4210
4276
|
deleteProfilePhoto(patientId: string): Promise<void>;
|
|
4211
4277
|
updatePatientProfile(patientId: string, data: Partial<Omit<PatientProfile, "id" | "createdAt" | "updatedAt">>): Promise<PatientProfile>;
|
|
4212
4278
|
updatePatientProfileByUserRef(userRef: string, data: Partial<Omit<PatientProfile, "id" | "createdAt" | "updatedAt">>): Promise<PatientProfile>;
|
|
4279
|
+
/**
|
|
4280
|
+
* Searches for patient profiles based on clinic/practitioner association.
|
|
4281
|
+
* Requires information about the requester for security checks.
|
|
4282
|
+
*
|
|
4283
|
+
* @param {SearchPatientsParams} params - The search criteria (clinicId, practitionerId).
|
|
4284
|
+
* @param {RequesterInfo} requester - Information about the user performing the search (ID, role, associated IDs).
|
|
4285
|
+
* @returns {Promise<PatientProfile[]>} A promise resolving to an array of matching patient profiles.
|
|
4286
|
+
*/
|
|
4287
|
+
searchPatients(params: SearchPatientsParams, requester: RequesterInfo): Promise<PatientProfile[]>;
|
|
4213
4288
|
}
|
|
4214
4289
|
|
|
4215
4290
|
declare class ClinicGroupService extends BaseService {
|
|
@@ -5245,6 +5320,54 @@ declare class CalendarServiceV2 extends BaseService {
|
|
|
5245
5320
|
* @param interval - Interval in hours
|
|
5246
5321
|
*/
|
|
5247
5322
|
createScheduledSyncJob(interval?: number): void;
|
|
5323
|
+
/**
|
|
5324
|
+
* Searches for calendar events based on specified criteria.
|
|
5325
|
+
*
|
|
5326
|
+
* @param {SearchCalendarEventsParams} params - The search parameters.
|
|
5327
|
+
* @param {SearchLocationEnum} params.searchLocation - The primary location to search (practitioner, patient, or clinic).
|
|
5328
|
+
* @param {string} params.entityId - The ID of the entity (practitioner, patient, or clinic) to search within/for.
|
|
5329
|
+
* @param {string} [params.clinicId] - Optional clinic ID to filter by.
|
|
5330
|
+
* @param {string} [params.practitionerId] - Optional practitioner ID to filter by.
|
|
5331
|
+
* @param {string} [params.patientId] - Optional patient ID to filter by.
|
|
5332
|
+
* @param {string} [params.procedureId] - Optional procedure ID to filter by.
|
|
5333
|
+
* @param {DateRange} [params.dateRange] - Optional date range to filter by (event start time).
|
|
5334
|
+
* @param {CalendarEventStatus} [params.eventStatus] - Optional event status to filter by.
|
|
5335
|
+
* @param {CalendarEventType} [params.eventType] - Optional event type to filter by.
|
|
5336
|
+
* @returns {Promise<CalendarEvent[]>} A promise that resolves to an array of matching calendar events.
|
|
5337
|
+
* @throws {Error} If the search location requires an entity ID that is not provided.
|
|
5338
|
+
*/
|
|
5339
|
+
searchCalendarEvents(params: SearchCalendarEventsParams): Promise<CalendarEvent[]>;
|
|
5340
|
+
/**
|
|
5341
|
+
* Gets a doctor's upcoming appointments for a specific date range
|
|
5342
|
+
*
|
|
5343
|
+
* @param {string} doctorId - ID of the practitioner
|
|
5344
|
+
* @param {Date} startDate - Start date of the range
|
|
5345
|
+
* @param {Date} endDate - End date of the range
|
|
5346
|
+
* @param {CalendarEventStatus} [status] - Optional status filter (defaults to CONFIRMED)
|
|
5347
|
+
* @returns {Promise<CalendarEvent[]>} A promise that resolves to an array of appointments
|
|
5348
|
+
*/
|
|
5349
|
+
getPractitionerUpcomingAppointments(doctorId: string, startDate: Date, endDate: Date, status?: CalendarEventStatus): Promise<CalendarEvent[]>;
|
|
5350
|
+
/**
|
|
5351
|
+
* Gets a patient's appointments for a specific date range
|
|
5352
|
+
*
|
|
5353
|
+
* @param {string} patientId - ID of the patient
|
|
5354
|
+
* @param {Date} startDate - Start date of the range
|
|
5355
|
+
* @param {Date} endDate - End date of the range
|
|
5356
|
+
* @param {CalendarEventStatus} [status] - Optional status filter (defaults to all non-canceled appointments)
|
|
5357
|
+
* @returns {Promise<CalendarEvent[]>} A promise that resolves to an array of appointments
|
|
5358
|
+
*/
|
|
5359
|
+
getPatientAppointments(patientId: string, startDate: Date, endDate: Date, status?: CalendarEventStatus): Promise<CalendarEvent[]>;
|
|
5360
|
+
/**
|
|
5361
|
+
* Gets all appointments for a clinic within a specific date range
|
|
5362
|
+
*
|
|
5363
|
+
* @param {string} clinicId - ID of the clinic
|
|
5364
|
+
* @param {Date} startDate - Start date of the range
|
|
5365
|
+
* @param {Date} endDate - End date of the range
|
|
5366
|
+
* @param {string} [doctorId] - Optional doctor ID to filter by
|
|
5367
|
+
* @param {CalendarEventStatus} [status] - Optional status filter
|
|
5368
|
+
* @returns {Promise<CalendarEvent[]>} A promise that resolves to an array of appointments
|
|
5369
|
+
*/
|
|
5370
|
+
getClinicAppointments(clinicId: string, startDate: Date, endDate: Date, doctorId?: string, status?: CalendarEventStatus): Promise<CalendarEvent[]>;
|
|
5248
5371
|
/**
|
|
5249
5372
|
* Validates appointment creation parameters
|
|
5250
5373
|
* @param params - Appointment parameters to validate
|
|
@@ -8272,6 +8395,8 @@ declare const patientProfileSchema: z.ZodObject<{
|
|
|
8272
8395
|
notes?: string | undefined;
|
|
8273
8396
|
assignedBy?: string | undefined;
|
|
8274
8397
|
}>, "many">;
|
|
8398
|
+
doctorIds: z.ZodArray<z.ZodString, "many">;
|
|
8399
|
+
clinicIds: z.ZodArray<z.ZodString, "many">;
|
|
8275
8400
|
createdAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
8276
8401
|
updatedAt: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
8277
8402
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8287,12 +8412,14 @@ declare const patientProfileSchema: z.ZodObject<{
|
|
|
8287
8412
|
isActive: boolean;
|
|
8288
8413
|
isVerified: boolean;
|
|
8289
8414
|
updatedAt: Timestamp;
|
|
8415
|
+
createdAt: Timestamp;
|
|
8290
8416
|
displayName: string;
|
|
8291
|
-
|
|
8417
|
+
profilePhoto: string | null;
|
|
8292
8418
|
gamification: {
|
|
8293
8419
|
level: number;
|
|
8294
8420
|
points: number;
|
|
8295
8421
|
};
|
|
8422
|
+
expoTokens: string[];
|
|
8296
8423
|
doctors: {
|
|
8297
8424
|
userRef: string;
|
|
8298
8425
|
isActive: boolean;
|
|
@@ -8300,8 +8427,8 @@ declare const patientProfileSchema: z.ZodObject<{
|
|
|
8300
8427
|
notes?: string | undefined;
|
|
8301
8428
|
assignedBy?: string | undefined;
|
|
8302
8429
|
}[];
|
|
8303
|
-
|
|
8304
|
-
|
|
8430
|
+
doctorIds: string[];
|
|
8431
|
+
clinicIds: string[];
|
|
8305
8432
|
}, {
|
|
8306
8433
|
id: string;
|
|
8307
8434
|
userRef: string;
|
|
@@ -8315,12 +8442,14 @@ declare const patientProfileSchema: z.ZodObject<{
|
|
|
8315
8442
|
isActive: boolean;
|
|
8316
8443
|
isVerified: boolean;
|
|
8317
8444
|
updatedAt: Timestamp;
|
|
8445
|
+
createdAt: Timestamp;
|
|
8318
8446
|
displayName: string;
|
|
8319
|
-
|
|
8447
|
+
profilePhoto: string | null;
|
|
8320
8448
|
gamification: {
|
|
8321
8449
|
level: number;
|
|
8322
8450
|
points: number;
|
|
8323
8451
|
};
|
|
8452
|
+
expoTokens: string[];
|
|
8324
8453
|
doctors: {
|
|
8325
8454
|
userRef: string;
|
|
8326
8455
|
isActive: boolean;
|
|
@@ -8328,8 +8457,8 @@ declare const patientProfileSchema: z.ZodObject<{
|
|
|
8328
8457
|
notes?: string | undefined;
|
|
8329
8458
|
assignedBy?: string | undefined;
|
|
8330
8459
|
}[];
|
|
8331
|
-
|
|
8332
|
-
|
|
8460
|
+
doctorIds: string[];
|
|
8461
|
+
clinicIds: string[];
|
|
8333
8462
|
}>;
|
|
8334
8463
|
/**
|
|
8335
8464
|
* Šema za validaciju podataka pri kreiranju profila
|
|
@@ -8389,6 +8518,8 @@ declare const createPatientProfileSchema: z.ZodObject<{
|
|
|
8389
8518
|
notes?: string | undefined;
|
|
8390
8519
|
assignedBy?: string | undefined;
|
|
8391
8520
|
}>, "many">>;
|
|
8521
|
+
doctorIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8522
|
+
clinicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8392
8523
|
}, "strip", z.ZodTypeAny, {
|
|
8393
8524
|
userRef: string;
|
|
8394
8525
|
isActive: boolean;
|
|
@@ -8402,6 +8533,7 @@ declare const createPatientProfileSchema: z.ZodObject<{
|
|
|
8402
8533
|
notes?: string | undefined;
|
|
8403
8534
|
assignedBy?: string | undefined;
|
|
8404
8535
|
}[] | undefined;
|
|
8536
|
+
profilePhoto?: string | null | undefined;
|
|
8405
8537
|
gamification?: {
|
|
8406
8538
|
level: number;
|
|
8407
8539
|
points: number;
|
|
@@ -8413,7 +8545,8 @@ declare const createPatientProfileSchema: z.ZodObject<{
|
|
|
8413
8545
|
notes?: string | undefined;
|
|
8414
8546
|
assignedBy?: string | undefined;
|
|
8415
8547
|
}[] | undefined;
|
|
8416
|
-
|
|
8548
|
+
doctorIds?: string[] | undefined;
|
|
8549
|
+
clinicIds?: string[] | undefined;
|
|
8417
8550
|
}, {
|
|
8418
8551
|
userRef: string;
|
|
8419
8552
|
isActive: boolean;
|
|
@@ -8427,6 +8560,7 @@ declare const createPatientProfileSchema: z.ZodObject<{
|
|
|
8427
8560
|
notes?: string | undefined;
|
|
8428
8561
|
assignedBy?: string | undefined;
|
|
8429
8562
|
}[] | undefined;
|
|
8563
|
+
profilePhoto?: string | null | undefined;
|
|
8430
8564
|
gamification?: {
|
|
8431
8565
|
level: number;
|
|
8432
8566
|
points: number;
|
|
@@ -8438,7 +8572,8 @@ declare const createPatientProfileSchema: z.ZodObject<{
|
|
|
8438
8572
|
notes?: string | undefined;
|
|
8439
8573
|
assignedBy?: string | undefined;
|
|
8440
8574
|
}[] | undefined;
|
|
8441
|
-
|
|
8575
|
+
doctorIds?: string[] | undefined;
|
|
8576
|
+
clinicIds?: string[] | undefined;
|
|
8442
8577
|
}>;
|
|
8443
8578
|
/**
|
|
8444
8579
|
* Šema za validaciju podataka pri kreiranju osetljivih informacija
|
|
@@ -8533,6 +8668,54 @@ declare const createPatientSensitiveInfoSchema: z.ZodObject<{
|
|
|
8533
8668
|
isNotifiable: boolean;
|
|
8534
8669
|
}[] | undefined;
|
|
8535
8670
|
}>;
|
|
8671
|
+
/**
|
|
8672
|
+
* Schema for validating patient search parameters.
|
|
8673
|
+
*/
|
|
8674
|
+
declare const searchPatientsSchema: z.ZodEffects<z.ZodObject<{
|
|
8675
|
+
clinicId: z.ZodOptional<z.ZodString>;
|
|
8676
|
+
practitionerId: z.ZodOptional<z.ZodString>;
|
|
8677
|
+
}, "strip", z.ZodTypeAny, {
|
|
8678
|
+
practitionerId?: string | undefined;
|
|
8679
|
+
clinicId?: string | undefined;
|
|
8680
|
+
}, {
|
|
8681
|
+
practitionerId?: string | undefined;
|
|
8682
|
+
clinicId?: string | undefined;
|
|
8683
|
+
}>, {
|
|
8684
|
+
practitionerId?: string | undefined;
|
|
8685
|
+
clinicId?: string | undefined;
|
|
8686
|
+
}, {
|
|
8687
|
+
practitionerId?: string | undefined;
|
|
8688
|
+
clinicId?: string | undefined;
|
|
8689
|
+
}>;
|
|
8690
|
+
/**
|
|
8691
|
+
* Schema for validating requester information during patient search.
|
|
8692
|
+
*/
|
|
8693
|
+
declare const requesterInfoSchema: z.ZodEffects<z.ZodObject<{
|
|
8694
|
+
id: z.ZodString;
|
|
8695
|
+
role: z.ZodEnum<["clinic_admin", "practitioner"]>;
|
|
8696
|
+
associatedClinicId: z.ZodOptional<z.ZodString>;
|
|
8697
|
+
associatedPractitionerId: z.ZodOptional<z.ZodString>;
|
|
8698
|
+
}, "strip", z.ZodTypeAny, {
|
|
8699
|
+
id: string;
|
|
8700
|
+
role: "clinic_admin" | "practitioner";
|
|
8701
|
+
associatedClinicId?: string | undefined;
|
|
8702
|
+
associatedPractitionerId?: string | undefined;
|
|
8703
|
+
}, {
|
|
8704
|
+
id: string;
|
|
8705
|
+
role: "clinic_admin" | "practitioner";
|
|
8706
|
+
associatedClinicId?: string | undefined;
|
|
8707
|
+
associatedPractitionerId?: string | undefined;
|
|
8708
|
+
}>, {
|
|
8709
|
+
id: string;
|
|
8710
|
+
role: "clinic_admin" | "practitioner";
|
|
8711
|
+
associatedClinicId?: string | undefined;
|
|
8712
|
+
associatedPractitionerId?: string | undefined;
|
|
8713
|
+
}, {
|
|
8714
|
+
id: string;
|
|
8715
|
+
role: "clinic_admin" | "practitioner";
|
|
8716
|
+
associatedClinicId?: string | undefined;
|
|
8717
|
+
associatedPractitionerId?: string | undefined;
|
|
8718
|
+
}>;
|
|
8536
8719
|
|
|
8537
8720
|
/**
|
|
8538
8721
|
* Šema za validaciju osnovnih informacija o zdravstvenom radniku
|
|
@@ -8882,6 +9065,7 @@ declare const practitionerClinicWorkingHoursSchema: z.ZodObject<{
|
|
|
8882
9065
|
}, "strip", z.ZodTypeAny, {
|
|
8883
9066
|
isActive: boolean;
|
|
8884
9067
|
updatedAt: Timestamp;
|
|
9068
|
+
createdAt: Timestamp;
|
|
8885
9069
|
workingHours: {
|
|
8886
9070
|
monday: {
|
|
8887
9071
|
start: string;
|
|
@@ -8912,11 +9096,11 @@ declare const practitionerClinicWorkingHoursSchema: z.ZodObject<{
|
|
|
8912
9096
|
end: string;
|
|
8913
9097
|
} | null;
|
|
8914
9098
|
};
|
|
8915
|
-
createdAt: Timestamp;
|
|
8916
9099
|
clinicId: string;
|
|
8917
9100
|
}, {
|
|
8918
9101
|
isActive: boolean;
|
|
8919
9102
|
updatedAt: Timestamp;
|
|
9103
|
+
createdAt: Timestamp;
|
|
8920
9104
|
workingHours: {
|
|
8921
9105
|
monday: {
|
|
8922
9106
|
start: string;
|
|
@@ -8947,7 +9131,6 @@ declare const practitionerClinicWorkingHoursSchema: z.ZodObject<{
|
|
|
8947
9131
|
end: string;
|
|
8948
9132
|
} | null;
|
|
8949
9133
|
};
|
|
8950
|
-
createdAt: Timestamp;
|
|
8951
9134
|
clinicId: string;
|
|
8952
9135
|
}>;
|
|
8953
9136
|
/**
|
|
@@ -9213,6 +9396,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9213
9396
|
}, "strip", z.ZodTypeAny, {
|
|
9214
9397
|
isActive: boolean;
|
|
9215
9398
|
updatedAt: Timestamp;
|
|
9399
|
+
createdAt: Timestamp;
|
|
9216
9400
|
workingHours: {
|
|
9217
9401
|
monday: {
|
|
9218
9402
|
start: string;
|
|
@@ -9243,11 +9427,11 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9243
9427
|
end: string;
|
|
9244
9428
|
} | null;
|
|
9245
9429
|
};
|
|
9246
|
-
createdAt: Timestamp;
|
|
9247
9430
|
clinicId: string;
|
|
9248
9431
|
}, {
|
|
9249
9432
|
isActive: boolean;
|
|
9250
9433
|
updatedAt: Timestamp;
|
|
9434
|
+
createdAt: Timestamp;
|
|
9251
9435
|
workingHours: {
|
|
9252
9436
|
monday: {
|
|
9253
9437
|
start: string;
|
|
@@ -9278,7 +9462,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9278
9462
|
end: string;
|
|
9279
9463
|
} | null;
|
|
9280
9464
|
};
|
|
9281
|
-
createdAt: Timestamp;
|
|
9282
9465
|
clinicId: string;
|
|
9283
9466
|
}>, "many">;
|
|
9284
9467
|
isActive: z.ZodBoolean;
|
|
@@ -9314,6 +9497,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9314
9497
|
clinicWorkingHours: {
|
|
9315
9498
|
isActive: boolean;
|
|
9316
9499
|
updatedAt: Timestamp;
|
|
9500
|
+
createdAt: Timestamp;
|
|
9317
9501
|
workingHours: {
|
|
9318
9502
|
monday: {
|
|
9319
9503
|
start: string;
|
|
@@ -9344,7 +9528,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9344
9528
|
end: string;
|
|
9345
9529
|
} | null;
|
|
9346
9530
|
};
|
|
9347
|
-
createdAt: Timestamp;
|
|
9348
9531
|
clinicId: string;
|
|
9349
9532
|
}[];
|
|
9350
9533
|
isActive: boolean;
|
|
@@ -9380,6 +9563,7 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9380
9563
|
clinicWorkingHours: {
|
|
9381
9564
|
isActive: boolean;
|
|
9382
9565
|
updatedAt: Timestamp;
|
|
9566
|
+
createdAt: Timestamp;
|
|
9383
9567
|
workingHours: {
|
|
9384
9568
|
monday: {
|
|
9385
9569
|
start: string;
|
|
@@ -9410,7 +9594,6 @@ declare const practitionerSchema: z.ZodObject<{
|
|
|
9410
9594
|
end: string;
|
|
9411
9595
|
} | null;
|
|
9412
9596
|
};
|
|
9413
|
-
createdAt: Timestamp;
|
|
9414
9597
|
clinicId: string;
|
|
9415
9598
|
}[];
|
|
9416
9599
|
isActive: boolean;
|
|
@@ -9622,6 +9805,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9622
9805
|
}, "strip", z.ZodTypeAny, {
|
|
9623
9806
|
isActive: boolean;
|
|
9624
9807
|
updatedAt: Timestamp;
|
|
9808
|
+
createdAt: Timestamp;
|
|
9625
9809
|
workingHours: {
|
|
9626
9810
|
monday: {
|
|
9627
9811
|
start: string;
|
|
@@ -9652,11 +9836,11 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9652
9836
|
end: string;
|
|
9653
9837
|
} | null;
|
|
9654
9838
|
};
|
|
9655
|
-
createdAt: Timestamp;
|
|
9656
9839
|
clinicId: string;
|
|
9657
9840
|
}, {
|
|
9658
9841
|
isActive: boolean;
|
|
9659
9842
|
updatedAt: Timestamp;
|
|
9843
|
+
createdAt: Timestamp;
|
|
9660
9844
|
workingHours: {
|
|
9661
9845
|
monday: {
|
|
9662
9846
|
start: string;
|
|
@@ -9687,7 +9871,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9687
9871
|
end: string;
|
|
9688
9872
|
} | null;
|
|
9689
9873
|
};
|
|
9690
|
-
createdAt: Timestamp;
|
|
9691
9874
|
clinicId: string;
|
|
9692
9875
|
}>, "many">>;
|
|
9693
9876
|
isActive: z.ZodBoolean;
|
|
@@ -9722,6 +9905,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9722
9905
|
clinicWorkingHours?: {
|
|
9723
9906
|
isActive: boolean;
|
|
9724
9907
|
updatedAt: Timestamp;
|
|
9908
|
+
createdAt: Timestamp;
|
|
9725
9909
|
workingHours: {
|
|
9726
9910
|
monday: {
|
|
9727
9911
|
start: string;
|
|
@@ -9752,7 +9936,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9752
9936
|
end: string;
|
|
9753
9937
|
} | null;
|
|
9754
9938
|
};
|
|
9755
|
-
createdAt: Timestamp;
|
|
9756
9939
|
clinicId: string;
|
|
9757
9940
|
}[] | undefined;
|
|
9758
9941
|
status?: PractitionerStatus | undefined;
|
|
@@ -9785,6 +9968,7 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9785
9968
|
clinicWorkingHours?: {
|
|
9786
9969
|
isActive: boolean;
|
|
9787
9970
|
updatedAt: Timestamp;
|
|
9971
|
+
createdAt: Timestamp;
|
|
9788
9972
|
workingHours: {
|
|
9789
9973
|
monday: {
|
|
9790
9974
|
start: string;
|
|
@@ -9815,7 +9999,6 @@ declare const createPractitionerSchema: z.ZodObject<{
|
|
|
9815
9999
|
end: string;
|
|
9816
10000
|
} | null;
|
|
9817
10001
|
};
|
|
9818
|
-
createdAt: Timestamp;
|
|
9819
10002
|
clinicId: string;
|
|
9820
10003
|
}[] | undefined;
|
|
9821
10004
|
status?: PractitionerStatus | undefined;
|
|
@@ -10022,6 +10205,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10022
10205
|
}, "strip", z.ZodTypeAny, {
|
|
10023
10206
|
isActive: boolean;
|
|
10024
10207
|
updatedAt: Timestamp;
|
|
10208
|
+
createdAt: Timestamp;
|
|
10025
10209
|
workingHours: {
|
|
10026
10210
|
monday: {
|
|
10027
10211
|
start: string;
|
|
@@ -10052,11 +10236,11 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10052
10236
|
end: string;
|
|
10053
10237
|
} | null;
|
|
10054
10238
|
};
|
|
10055
|
-
createdAt: Timestamp;
|
|
10056
10239
|
clinicId: string;
|
|
10057
10240
|
}, {
|
|
10058
10241
|
isActive: boolean;
|
|
10059
10242
|
updatedAt: Timestamp;
|
|
10243
|
+
createdAt: Timestamp;
|
|
10060
10244
|
workingHours: {
|
|
10061
10245
|
monday: {
|
|
10062
10246
|
start: string;
|
|
@@ -10087,7 +10271,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10087
10271
|
end: string;
|
|
10088
10272
|
} | null;
|
|
10089
10273
|
};
|
|
10090
|
-
createdAt: Timestamp;
|
|
10091
10274
|
clinicId: string;
|
|
10092
10275
|
}>, "many">>;
|
|
10093
10276
|
isActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -10120,6 +10303,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10120
10303
|
clinicWorkingHours?: {
|
|
10121
10304
|
isActive: boolean;
|
|
10122
10305
|
updatedAt: Timestamp;
|
|
10306
|
+
createdAt: Timestamp;
|
|
10123
10307
|
workingHours: {
|
|
10124
10308
|
monday: {
|
|
10125
10309
|
start: string;
|
|
@@ -10150,7 +10334,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10150
10334
|
end: string;
|
|
10151
10335
|
} | null;
|
|
10152
10336
|
};
|
|
10153
|
-
createdAt: Timestamp;
|
|
10154
10337
|
clinicId: string;
|
|
10155
10338
|
}[] | undefined;
|
|
10156
10339
|
}, {
|
|
@@ -10179,6 +10362,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10179
10362
|
clinicWorkingHours?: {
|
|
10180
10363
|
isActive: boolean;
|
|
10181
10364
|
updatedAt: Timestamp;
|
|
10365
|
+
createdAt: Timestamp;
|
|
10182
10366
|
workingHours: {
|
|
10183
10367
|
monday: {
|
|
10184
10368
|
start: string;
|
|
@@ -10209,7 +10393,6 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
|
|
|
10209
10393
|
end: string;
|
|
10210
10394
|
} | null;
|
|
10211
10395
|
};
|
|
10212
|
-
createdAt: Timestamp;
|
|
10213
10396
|
clinicId: string;
|
|
10214
10397
|
}[] | undefined;
|
|
10215
10398
|
isActive?: boolean | undefined;
|
|
@@ -11004,6 +11187,7 @@ declare const clinicAdminSchema: z.ZodObject<{
|
|
|
11004
11187
|
userRef: string;
|
|
11005
11188
|
isActive: boolean;
|
|
11006
11189
|
updatedAt: Timestamp | Date;
|
|
11190
|
+
createdAt: Timestamp | Date;
|
|
11007
11191
|
clinicGroupId: string;
|
|
11008
11192
|
isGroupOwner: boolean;
|
|
11009
11193
|
clinicsManaged: string[];
|
|
@@ -11036,12 +11220,12 @@ declare const clinicAdminSchema: z.ZodObject<{
|
|
|
11036
11220
|
title?: string | null | undefined;
|
|
11037
11221
|
};
|
|
11038
11222
|
roleTitle: string;
|
|
11039
|
-
createdAt: Timestamp | Date;
|
|
11040
11223
|
}, {
|
|
11041
11224
|
id: string;
|
|
11042
11225
|
userRef: string;
|
|
11043
11226
|
isActive: boolean;
|
|
11044
11227
|
updatedAt: Timestamp | Date;
|
|
11228
|
+
createdAt: Timestamp | Date;
|
|
11045
11229
|
clinicGroupId: string;
|
|
11046
11230
|
isGroupOwner: boolean;
|
|
11047
11231
|
clinicsManaged: string[];
|
|
@@ -11074,7 +11258,6 @@ declare const clinicAdminSchema: z.ZodObject<{
|
|
|
11074
11258
|
title?: string | null | undefined;
|
|
11075
11259
|
};
|
|
11076
11260
|
roleTitle: string;
|
|
11077
|
-
createdAt: Timestamp | Date;
|
|
11078
11261
|
}>;
|
|
11079
11262
|
/**
|
|
11080
11263
|
* Validaciona šema za admin token
|
|
@@ -11082,6 +11265,7 @@ declare const clinicAdminSchema: z.ZodObject<{
|
|
|
11082
11265
|
declare const adminTokenSchema: z.ZodObject<{
|
|
11083
11266
|
id: z.ZodString;
|
|
11084
11267
|
token: z.ZodString;
|
|
11268
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11085
11269
|
status: z.ZodNativeEnum<typeof AdminTokenStatus>;
|
|
11086
11270
|
usedByUserRef: z.ZodOptional<z.ZodString>;
|
|
11087
11271
|
createdAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
@@ -11092,6 +11276,7 @@ declare const adminTokenSchema: z.ZodObject<{
|
|
|
11092
11276
|
createdAt: Timestamp | Date;
|
|
11093
11277
|
token: string;
|
|
11094
11278
|
expiresAt: Timestamp | Date;
|
|
11279
|
+
email?: string | null | undefined;
|
|
11095
11280
|
usedByUserRef?: string | undefined;
|
|
11096
11281
|
}, {
|
|
11097
11282
|
id: string;
|
|
@@ -11099,6 +11284,7 @@ declare const adminTokenSchema: z.ZodObject<{
|
|
|
11099
11284
|
createdAt: Timestamp | Date;
|
|
11100
11285
|
token: string;
|
|
11101
11286
|
expiresAt: Timestamp | Date;
|
|
11287
|
+
email?: string | null | undefined;
|
|
11102
11288
|
usedByUserRef?: string | undefined;
|
|
11103
11289
|
}>;
|
|
11104
11290
|
/**
|
|
@@ -11106,9 +11292,12 @@ declare const adminTokenSchema: z.ZodObject<{
|
|
|
11106
11292
|
*/
|
|
11107
11293
|
declare const createAdminTokenSchema: z.ZodObject<{
|
|
11108
11294
|
expiresInDays: z.ZodOptional<z.ZodNumber>;
|
|
11295
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11109
11296
|
}, "strip", z.ZodTypeAny, {
|
|
11297
|
+
email?: string | null | undefined;
|
|
11110
11298
|
expiresInDays?: number | undefined;
|
|
11111
11299
|
}, {
|
|
11300
|
+
email?: string | null | undefined;
|
|
11112
11301
|
expiresInDays?: number | undefined;
|
|
11113
11302
|
}>;
|
|
11114
11303
|
/**
|
|
@@ -11283,6 +11472,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11283
11472
|
adminTokens: z.ZodArray<z.ZodObject<{
|
|
11284
11473
|
id: z.ZodString;
|
|
11285
11474
|
token: z.ZodString;
|
|
11475
|
+
email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11286
11476
|
status: z.ZodNativeEnum<typeof AdminTokenStatus>;
|
|
11287
11477
|
usedByUserRef: z.ZodOptional<z.ZodString>;
|
|
11288
11478
|
createdAt: z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>]>;
|
|
@@ -11293,6 +11483,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11293
11483
|
createdAt: Timestamp | Date;
|
|
11294
11484
|
token: string;
|
|
11295
11485
|
expiresAt: Timestamp | Date;
|
|
11486
|
+
email?: string | null | undefined;
|
|
11296
11487
|
usedByUserRef?: string | undefined;
|
|
11297
11488
|
}, {
|
|
11298
11489
|
id: string;
|
|
@@ -11300,6 +11491,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11300
11491
|
createdAt: Timestamp | Date;
|
|
11301
11492
|
token: string;
|
|
11302
11493
|
expiresAt: Timestamp | Date;
|
|
11494
|
+
email?: string | null | undefined;
|
|
11303
11495
|
usedByUserRef?: string | undefined;
|
|
11304
11496
|
}>, "many">;
|
|
11305
11497
|
ownerId: z.ZodNullable<z.ZodString>;
|
|
@@ -11319,6 +11511,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11319
11511
|
isActive: boolean;
|
|
11320
11512
|
updatedAt: Timestamp | Date;
|
|
11321
11513
|
name: string;
|
|
11514
|
+
createdAt: Timestamp | Date;
|
|
11322
11515
|
contactInfo: {
|
|
11323
11516
|
email: string;
|
|
11324
11517
|
phoneNumber: string;
|
|
@@ -11344,7 +11537,6 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11344
11537
|
ownerId: string | null;
|
|
11345
11538
|
subscriptionModel: SubscriptionModel;
|
|
11346
11539
|
admins: string[];
|
|
11347
|
-
createdAt: Timestamp | Date;
|
|
11348
11540
|
clinicsInfo: {
|
|
11349
11541
|
id: string;
|
|
11350
11542
|
name: string;
|
|
@@ -11377,6 +11569,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11377
11569
|
createdAt: Timestamp | Date;
|
|
11378
11570
|
token: string;
|
|
11379
11571
|
expiresAt: Timestamp | Date;
|
|
11572
|
+
email?: string | null | undefined;
|
|
11380
11573
|
usedByUserRef?: string | undefined;
|
|
11381
11574
|
}[];
|
|
11382
11575
|
description?: string | null | undefined;
|
|
@@ -11392,6 +11585,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11392
11585
|
isActive: boolean;
|
|
11393
11586
|
updatedAt: Timestamp | Date;
|
|
11394
11587
|
name: string;
|
|
11588
|
+
createdAt: Timestamp | Date;
|
|
11395
11589
|
contactInfo: {
|
|
11396
11590
|
email: string;
|
|
11397
11591
|
phoneNumber: string;
|
|
@@ -11417,7 +11611,6 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11417
11611
|
ownerId: string | null;
|
|
11418
11612
|
subscriptionModel: SubscriptionModel;
|
|
11419
11613
|
admins: string[];
|
|
11420
|
-
createdAt: Timestamp | Date;
|
|
11421
11614
|
clinicsInfo: {
|
|
11422
11615
|
id: string;
|
|
11423
11616
|
name: string;
|
|
@@ -11450,6 +11643,7 @@ declare const clinicGroupSchema: z.ZodObject<{
|
|
|
11450
11643
|
createdAt: Timestamp | Date;
|
|
11451
11644
|
token: string;
|
|
11452
11645
|
expiresAt: Timestamp | Date;
|
|
11646
|
+
email?: string | null | undefined;
|
|
11453
11647
|
usedByUserRef?: string | undefined;
|
|
11454
11648
|
}[];
|
|
11455
11649
|
description?: string | null | undefined;
|
|
@@ -11989,6 +12183,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
11989
12183
|
isVerified: boolean;
|
|
11990
12184
|
updatedAt: Timestamp | Date;
|
|
11991
12185
|
name: string;
|
|
12186
|
+
createdAt: Timestamp | Date;
|
|
11992
12187
|
doctors: string[];
|
|
11993
12188
|
clinicGroupId: string;
|
|
11994
12189
|
contactInfo: {
|
|
@@ -12069,7 +12264,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
12069
12264
|
services: string[];
|
|
12070
12265
|
admins: string[];
|
|
12071
12266
|
featuredPhotos: string[];
|
|
12072
|
-
createdAt: Timestamp | Date;
|
|
12073
12267
|
rating: {
|
|
12074
12268
|
average: number;
|
|
12075
12269
|
count: number;
|
|
@@ -12122,6 +12316,7 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
12122
12316
|
isVerified: boolean;
|
|
12123
12317
|
updatedAt: Timestamp | Date;
|
|
12124
12318
|
name: string;
|
|
12319
|
+
createdAt: Timestamp | Date;
|
|
12125
12320
|
doctors: string[];
|
|
12126
12321
|
clinicGroupId: string;
|
|
12127
12322
|
contactInfo: {
|
|
@@ -12202,7 +12397,6 @@ declare const clinicSchema: z.ZodObject<{
|
|
|
12202
12397
|
services: string[];
|
|
12203
12398
|
admins: string[];
|
|
12204
12399
|
featuredPhotos: string[];
|
|
12205
|
-
createdAt: Timestamp | Date;
|
|
12206
12400
|
rating: {
|
|
12207
12401
|
average: number;
|
|
12208
12402
|
count: number;
|
|
@@ -15102,8 +15296,8 @@ declare const createCalendarEventSchema: z.ZodObject<{
|
|
|
15102
15296
|
syncStatus: CalendarSyncStatus;
|
|
15103
15297
|
eventType: CalendarEventType;
|
|
15104
15298
|
updatedAt?: any;
|
|
15105
|
-
description?: string | undefined;
|
|
15106
15299
|
createdAt?: any;
|
|
15300
|
+
description?: string | undefined;
|
|
15107
15301
|
appointmentId?: string | null | undefined;
|
|
15108
15302
|
clinicBranchId?: string | null | undefined;
|
|
15109
15303
|
procedureId?: string | null | undefined;
|
|
@@ -15159,8 +15353,8 @@ declare const createCalendarEventSchema: z.ZodObject<{
|
|
|
15159
15353
|
syncStatus: CalendarSyncStatus;
|
|
15160
15354
|
eventType: CalendarEventType;
|
|
15161
15355
|
updatedAt?: any;
|
|
15162
|
-
description?: string | undefined;
|
|
15163
15356
|
createdAt?: any;
|
|
15357
|
+
description?: string | undefined;
|
|
15164
15358
|
appointmentId?: string | null | undefined;
|
|
15165
15359
|
clinicBranchId?: string | null | undefined;
|
|
15166
15360
|
procedureId?: string | null | undefined;
|
|
@@ -15760,4 +15954,4 @@ declare enum FirebaseErrorCode {
|
|
|
15760
15954
|
POPUP_ALREADY_OPEN = "auth/cancelled-popup-request"
|
|
15761
15955
|
}
|
|
15762
15956
|
|
|
15763
|
-
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, type Requirement, type ReviewInfo, SYNCED_CALENDARS_COLLECTION, type ServiceInfo, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createPractitionerTokenSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, reviewInfoSchema, serviceInfoSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|
|
15957
|
+
export { AUTH_ERRORS, type AddAllergyData, type AddBlockingConditionData, type AddContraindicationData, type AddMedicationData, type AddressData, type AdminInfo, type AdminToken, AdminTokenStatus, type Allergy, type AllergySubtype, AllergyType, type AllergyTypeWithSubtype, type AppointmentNotification, type AppointmentReminderNotification, AuthError, AuthService, type BaseNotification, BlockingCondition, type Brand, BrandService, CALENDAR_COLLECTION, CLINICS_COLLECTION, CLINIC_ADMINS_COLLECTION, CLINIC_GROUPS_COLLECTION, type CalendarEvent, CalendarEventStatus, type CalendarEventTime, CalendarEventType, CalendarServiceV2, CalendarSyncStatus, type Category, CategoryService, CertificationLevel, CertificationSpecialty, type Clinic, type ClinicAdmin, ClinicAdminService, type ClinicAdminSignupData, type ClinicBranchSetupData, type ClinicContactInfo, type ClinicGroup, ClinicGroupService, type ClinicGroupSetupData, type ClinicInfo, type ClinicLocation, ClinicPhotoTag, type ClinicReview, ClinicService, ClinicTag, type ClinicTags, type ContactPerson, Contraindication, CosmeticAllergySubtype, type CreateAdminTokenData, type CreateAppointmentParams, type CreateCalendarEventData, type CreateClinicAdminData, type CreateClinicData, type CreateClinicGroupData, type CreateDefaultClinicGroupData, type CreateDocumentTemplateData, type CreateDraftPractitionerData, type CreatePatientLocationInfoData, type CreatePatientMedicalInfoData, type CreatePatientProfileData, type CreatePatientSensitiveInfoData, type CreatePractitionerData, type CreatePractitionerTokenData, type CreateProcedureData, type CreateSyncedCalendarData, type CreateUserData, Currency, DOCUMENTATION_TEMPLATES_COLLECTION, type DoctorInfo, type DocumentElement, DocumentElementType, type DocumentTemplate, DocumentationTemplateService, DynamicVariable, type EmergencyContact, EnvironmentalAllergySubtype, FILLED_DOCUMENTS_COLLECTION, type FilledDocument, FilledDocumentService, FilledDocumentStatus, FirebaseErrorCode, type FirebaseUser, FoodAllergySubtype, type GamificationInfo, Gender, HeadingLevel, Language, ListType, type LocationData, MedicationAllergySubtype, type Notification, NotificationService, NotificationStatus, NotificationType, PATIENTS_COLLECTION, PATIENT_APPOINTMENTS_COLLECTION, PATIENT_LOCATION_INFO_COLLECTION, PATIENT_MEDICAL_HISTORY_COLLECTION, PATIENT_MEDICAL_INFO_COLLECTION, PATIENT_SENSITIVE_INFO_COLLECTION, PRACTITIONERS_COLLECTION, PROCEDURES_COLLECTION, type PatientClinic, type PatientDoctor, type PatientLocationInfo, type PatientMedicalInfo, type PatientProfile, type PatientProfileComplete, type PatientProfileInfo, type PatientSensitiveInfo, PatientService, type PostRequirementNotification, PracticeType, type Practitioner, type PractitionerBasicInfo, type PractitionerCertification, type PractitionerClinicProcedures, type PractitionerClinicWorkingHours, type PractitionerProfileInfo, type PractitionerReview, PractitionerService, PractitionerStatus, type PractitionerToken, PractitionerTokenStatus, type PractitionerWorkingHours, type PreRequirementNotification, PricingMeasure, type Procedure, type ProcedureCategorization, ProcedureFamily, type ProcedureInfo, ProcedureService, type Product, ProductService, REGISTER_TOKENS_COLLECTION, type RequesterInfo, type Requirement, type ReviewInfo, SYNCED_CALENDARS_COLLECTION, type SearchPatientsParams, type ServiceInfo, type Subcategory, SubcategoryService, SubscriptionModel, type SyncedCalendar, type SyncedCalendarEvent, SyncedCalendarProvider, SyncedCalendarsService, type Technology, TechnologyService, type TimeSlot, TreatmentBenefit, USER_ERRORS, type UpdateAllergyData, type UpdateAppointmentParams, type UpdateBlockingConditionData, type UpdateCalendarEventData, type UpdateClinicAdminData, type UpdateClinicData, type UpdateClinicGroupData, type UpdateContraindicationData, type UpdateDocumentTemplateData, type UpdateMedicationData, type UpdatePatientLocationInfoData, type UpdatePatientMedicalInfoData, type UpdatePatientProfileData, type UpdatePatientSensitiveInfoData, type UpdatePractitionerData, type UpdateProcedureData, type UpdateSyncedCalendarData, type UpdateVitalStatsData, type User, UserRole, UserService, type ValidationSchema, type VitalStats, type WorkingHours, addAllergySchema, addBlockingConditionSchema, addContraindicationSchema, addMedicationSchema, addressDataSchema, adminInfoSchema, adminTokenSchema, allergySchema, allergySubtypeSchema, appointmentNotificationSchema, appointmentReminderNotificationSchema, baseNotificationSchema, blockingConditionSchema, calendarEventSchema, calendarEventTimeSchema, clinicAdminOptionsSchema, clinicAdminSchema, clinicAdminSignupSchema, clinicBranchSetupSchema, clinicContactInfoSchema, clinicGroupSchema, clinicGroupSetupSchema, clinicInfoSchema, clinicLocationSchema, clinicReviewSchema, clinicSchema, clinicTagsSchema, contactPersonSchema, contraindicationSchema, createAdminTokenSchema, createAppointmentSchema, createCalendarEventSchema, createClinicAdminSchema, createClinicGroupSchema, createClinicSchema, createDefaultClinicGroupSchema, createDocumentTemplateSchema, createDraftPractitionerSchema, createPatientLocationInfoSchema, createPatientMedicalInfoSchema, createPatientProfileSchema, createPatientSensitiveInfoSchema, createPractitionerSchema, createPractitionerTokenSchema, createUserOptionsSchema, doctorInfoSchema, documentElementSchema, documentElementWithoutIdSchema, documentTemplateSchema, emailSchema, emergencyContactSchema, gamificationSchema, getFirebaseApp, getFirebaseAuth, getFirebaseDB, getFirebaseInstance, initializeFirebase, locationDataSchema, medicationSchema, notificationSchema, passwordSchema, patientClinicSchema, patientDoctorSchema, patientLocationInfoSchema, patientMedicalInfoSchema, patientProfileInfoSchema, patientProfileSchema, patientSensitiveInfoSchema, postRequirementNotificationSchema, practitionerBasicInfoSchema, practitionerCertificationSchema, practitionerClinicProceduresSchema, practitionerClinicWorkingHoursSchema, practitionerProfileInfoSchema, practitionerReviewSchema, practitionerSchema, practitionerTokenSchema, practitionerWorkingHoursSchema, preRequirementNotificationSchema, procedureCategorizationSchema, procedureInfoSchema, requesterInfoSchema, reviewInfoSchema, searchPatientsSchema, serviceInfoSchema, syncedCalendarEventSchema, timeSlotSchema, timestampSchema, updateAllergySchema, updateAppointmentSchema, updateBlockingConditionSchema, updateCalendarEventSchema, updateClinicAdminSchema, updateClinicGroupSchema, updateClinicSchema, updateContraindicationSchema, updateDocumentTemplateSchema, updateMedicationSchema, updatePatientMedicalInfoSchema, updateVitalStatsSchema, userRoleSchema, userRolesSchema, userSchema, vitalStatsSchema, workingHoursSchema };
|