@blackcode_sa/metaestetics-api 1.7.40 → 1.7.42

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 CHANGED
@@ -1347,10 +1347,10 @@ interface PractitionerBasicInfo {
1347
1347
  lastName: string;
1348
1348
  title: string;
1349
1349
  email: string;
1350
- phoneNumber: string;
1351
- dateOfBirth: Timestamp | Date;
1350
+ phoneNumber: string | null;
1351
+ dateOfBirth: Timestamp | Date | null;
1352
1352
  gender: "male" | "female" | "other";
1353
- profileImageUrl?: MediaResource;
1353
+ profileImageUrl?: MediaResource | null;
1354
1354
  bio?: string;
1355
1355
  languages: string[];
1356
1356
  }
@@ -1363,7 +1363,7 @@ interface PractitionerCertification {
1363
1363
  licenseNumber: string;
1364
1364
  issuingAuthority: string;
1365
1365
  issueDate: Timestamp | Date;
1366
- expiryDate?: Timestamp | Date;
1366
+ expiryDate?: Timestamp | Date | null;
1367
1367
  verificationStatus: "pending" | "verified" | "rejected";
1368
1368
  }
1369
1369
  /**
@@ -6780,7 +6780,7 @@ declare class AuthService extends BaseService {
6780
6780
  private facebookProvider;
6781
6781
  private appleProvider;
6782
6782
  private userService;
6783
- constructor(db: Firestore, auth: Auth, app: FirebaseApp, userService?: UserService);
6783
+ constructor(db: Firestore, auth: Auth, app: FirebaseApp, userService: UserService);
6784
6784
  /**
6785
6785
  * Registruje novog korisnika sa email-om i lozinkom
6786
6786
  */
@@ -6876,8 +6876,8 @@ declare class AuthService extends BaseService {
6876
6876
  */
6877
6877
  confirmPasswordReset(oobCode: string, newPassword: string): Promise<void>;
6878
6878
  /**
6879
- * Registers a new practitioner user with email and password
6880
- * Can either create a new practitioner profile or claim an existing draft profile with a token
6879
+ * Registers a new practitioner user with email and password (ATOMIC VERSION)
6880
+ * Uses Firestore transactions to ensure atomicity and proper rollback on failures
6881
6881
  *
6882
6882
  * @param data - Practitioner signup data containing either new profile details or token for claiming draft profile
6883
6883
  * @returns Object containing the created user and practitioner profile
@@ -6893,6 +6893,11 @@ declare class AuthService extends BaseService {
6893
6893
  user: User;
6894
6894
  practitioner: Practitioner;
6895
6895
  }>;
6896
+ /**
6897
+ * Pre-validate all signup data before any mutations
6898
+ * Prevents partial creation by catching issues early
6899
+ */
6900
+ private validateSignupData;
6896
6901
  /**
6897
6902
  * Signs in a user with email and password specifically for practitioner role
6898
6903
  * @param email - User's email
@@ -11010,6 +11015,7 @@ declare const createPatientLocationInfoSchema: z.ZodObject<{
11010
11015
  declare const patientSensitiveInfoSchema: z.ZodObject<{
11011
11016
  patientId: z.ZodString;
11012
11017
  userRef: z.ZodString;
11018
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11013
11019
  firstName: z.ZodString;
11014
11020
  lastName: z.ZodString;
11015
11021
  dateOfBirth: z.ZodNullable<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
@@ -11060,6 +11066,7 @@ declare const patientSensitiveInfoSchema: z.ZodObject<{
11060
11066
  lastName: string;
11061
11067
  dateOfBirth: Timestamp | null;
11062
11068
  gender: Gender;
11069
+ photoUrl?: string | null | undefined;
11063
11070
  email?: string | undefined;
11064
11071
  phoneNumber?: string | undefined;
11065
11072
  alternativePhoneNumber?: string | undefined;
@@ -11084,6 +11091,7 @@ declare const patientSensitiveInfoSchema: z.ZodObject<{
11084
11091
  lastName: string;
11085
11092
  dateOfBirth: Timestamp | null;
11086
11093
  gender: Gender;
11094
+ photoUrl?: string | null | undefined;
11087
11095
  email?: string | undefined;
11088
11096
  phoneNumber?: string | undefined;
11089
11097
  alternativePhoneNumber?: string | undefined;
@@ -11533,33 +11541,33 @@ declare const practitionerBasicInfoSchema: z.ZodObject<{
11533
11541
  lastName: z.ZodString;
11534
11542
  title: z.ZodString;
11535
11543
  email: z.ZodString;
11536
- phoneNumber: z.ZodString;
11537
- dateOfBirth: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11544
+ phoneNumber: z.ZodNullable<z.ZodString>;
11545
+ dateOfBirth: z.ZodNullable<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
11538
11546
  gender: z.ZodEnum<["male", "female", "other"]>;
11539
- profileImageUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
11547
+ profileImageUrl: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>>;
11540
11548
  bio: z.ZodOptional<z.ZodString>;
11541
11549
  languages: z.ZodArray<z.ZodString, "many">;
11542
11550
  }, "strip", z.ZodTypeAny, {
11543
11551
  firstName: string;
11544
11552
  lastName: string;
11545
- dateOfBirth: Date | Timestamp;
11553
+ dateOfBirth: Date | Timestamp | null;
11546
11554
  gender: "male" | "female" | "other";
11547
11555
  email: string;
11548
- phoneNumber: string;
11556
+ phoneNumber: string | null;
11549
11557
  languages: string[];
11550
11558
  title: string;
11551
- profileImageUrl?: string | File | Blob | undefined;
11559
+ profileImageUrl?: string | File | Blob | null | undefined;
11552
11560
  bio?: string | undefined;
11553
11561
  }, {
11554
11562
  firstName: string;
11555
11563
  lastName: string;
11556
- dateOfBirth: Date | Timestamp;
11564
+ dateOfBirth: Date | Timestamp | null;
11557
11565
  gender: "male" | "female" | "other";
11558
11566
  email: string;
11559
- phoneNumber: string;
11567
+ phoneNumber: string | null;
11560
11568
  languages: string[];
11561
11569
  title: string;
11562
- profileImageUrl?: string | File | Blob | undefined;
11570
+ profileImageUrl?: string | File | Blob | null | undefined;
11563
11571
  bio?: string | undefined;
11564
11572
  }>;
11565
11573
  /**
@@ -11571,7 +11579,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11571
11579
  licenseNumber: z.ZodString;
11572
11580
  issuingAuthority: z.ZodString;
11573
11581
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11574
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
11582
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
11575
11583
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
11576
11584
  }, "strip", z.ZodTypeAny, {
11577
11585
  level: CertificationLevel;
@@ -11580,7 +11588,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11580
11588
  issuingAuthority: string;
11581
11589
  issueDate: Date | Timestamp;
11582
11590
  verificationStatus: "pending" | "rejected" | "verified";
11583
- expiryDate?: Date | Timestamp | undefined;
11591
+ expiryDate?: Date | Timestamp | null | undefined;
11584
11592
  }, {
11585
11593
  level: CertificationLevel;
11586
11594
  specialties: CertificationSpecialty[];
@@ -11588,7 +11596,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11588
11596
  issuingAuthority: string;
11589
11597
  issueDate: Date | Timestamp;
11590
11598
  verificationStatus: "pending" | "rejected" | "verified";
11591
- expiryDate?: Date | Timestamp | undefined;
11599
+ expiryDate?: Date | Timestamp | null | undefined;
11592
11600
  }>;
11593
11601
  declare const practitionerWorkingHoursSchema: z.ZodObject<{
11594
11602
  practitionerId: z.ZodString;
@@ -11955,33 +11963,33 @@ declare const practitionerSchema: z.ZodObject<{
11955
11963
  lastName: z.ZodString;
11956
11964
  title: z.ZodString;
11957
11965
  email: z.ZodString;
11958
- phoneNumber: z.ZodString;
11959
- dateOfBirth: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11966
+ phoneNumber: z.ZodNullable<z.ZodString>;
11967
+ dateOfBirth: z.ZodNullable<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
11960
11968
  gender: z.ZodEnum<["male", "female", "other"]>;
11961
- profileImageUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
11969
+ profileImageUrl: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>>;
11962
11970
  bio: z.ZodOptional<z.ZodString>;
11963
11971
  languages: z.ZodArray<z.ZodString, "many">;
11964
11972
  }, "strip", z.ZodTypeAny, {
11965
11973
  firstName: string;
11966
11974
  lastName: string;
11967
- dateOfBirth: Date | Timestamp;
11975
+ dateOfBirth: Date | Timestamp | null;
11968
11976
  gender: "male" | "female" | "other";
11969
11977
  email: string;
11970
- phoneNumber: string;
11978
+ phoneNumber: string | null;
11971
11979
  languages: string[];
11972
11980
  title: string;
11973
- profileImageUrl?: string | File | Blob | undefined;
11981
+ profileImageUrl?: string | File | Blob | null | undefined;
11974
11982
  bio?: string | undefined;
11975
11983
  }, {
11976
11984
  firstName: string;
11977
11985
  lastName: string;
11978
- dateOfBirth: Date | Timestamp;
11986
+ dateOfBirth: Date | Timestamp | null;
11979
11987
  gender: "male" | "female" | "other";
11980
11988
  email: string;
11981
- phoneNumber: string;
11989
+ phoneNumber: string | null;
11982
11990
  languages: string[];
11983
11991
  title: string;
11984
- profileImageUrl?: string | File | Blob | undefined;
11992
+ profileImageUrl?: string | File | Blob | null | undefined;
11985
11993
  bio?: string | undefined;
11986
11994
  }>;
11987
11995
  certification: z.ZodObject<{
@@ -11990,7 +11998,7 @@ declare const practitionerSchema: z.ZodObject<{
11990
11998
  licenseNumber: z.ZodString;
11991
11999
  issuingAuthority: z.ZodString;
11992
12000
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11993
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
12001
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
11994
12002
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
11995
12003
  }, "strip", z.ZodTypeAny, {
11996
12004
  level: CertificationLevel;
@@ -11999,7 +12007,7 @@ declare const practitionerSchema: z.ZodObject<{
11999
12007
  issuingAuthority: string;
12000
12008
  issueDate: Date | Timestamp;
12001
12009
  verificationStatus: "pending" | "rejected" | "verified";
12002
- expiryDate?: Date | Timestamp | undefined;
12010
+ expiryDate?: Date | Timestamp | null | undefined;
12003
12011
  }, {
12004
12012
  level: CertificationLevel;
12005
12013
  specialties: CertificationSpecialty[];
@@ -12007,7 +12015,7 @@ declare const practitionerSchema: z.ZodObject<{
12007
12015
  issuingAuthority: string;
12008
12016
  issueDate: Date | Timestamp;
12009
12017
  verificationStatus: "pending" | "rejected" | "verified";
12010
- expiryDate?: Date | Timestamp | undefined;
12018
+ expiryDate?: Date | Timestamp | null | undefined;
12011
12019
  }>;
12012
12020
  clinics: z.ZodArray<z.ZodString, "many">;
12013
12021
  clinicWorkingHours: z.ZodArray<z.ZodObject<{
@@ -12400,13 +12408,13 @@ declare const practitionerSchema: z.ZodObject<{
12400
12408
  basicInfo: {
12401
12409
  firstName: string;
12402
12410
  lastName: string;
12403
- dateOfBirth: Date | Timestamp;
12411
+ dateOfBirth: Date | Timestamp | null;
12404
12412
  gender: "male" | "female" | "other";
12405
12413
  email: string;
12406
- phoneNumber: string;
12414
+ phoneNumber: string | null;
12407
12415
  languages: string[];
12408
12416
  title: string;
12409
- profileImageUrl?: string | File | Blob | undefined;
12417
+ profileImageUrl?: string | File | Blob | null | undefined;
12410
12418
  bio?: string | undefined;
12411
12419
  };
12412
12420
  certification: {
@@ -12416,7 +12424,7 @@ declare const practitionerSchema: z.ZodObject<{
12416
12424
  issuingAuthority: string;
12417
12425
  issueDate: Date | Timestamp;
12418
12426
  verificationStatus: "pending" | "rejected" | "verified";
12419
- expiryDate?: Date | Timestamp | undefined;
12427
+ expiryDate?: Date | Timestamp | null | undefined;
12420
12428
  };
12421
12429
  clinics: string[];
12422
12430
  clinicWorkingHours: {
@@ -12517,13 +12525,13 @@ declare const practitionerSchema: z.ZodObject<{
12517
12525
  basicInfo: {
12518
12526
  firstName: string;
12519
12527
  lastName: string;
12520
- dateOfBirth: Date | Timestamp;
12528
+ dateOfBirth: Date | Timestamp | null;
12521
12529
  gender: "male" | "female" | "other";
12522
12530
  email: string;
12523
- phoneNumber: string;
12531
+ phoneNumber: string | null;
12524
12532
  languages: string[];
12525
12533
  title: string;
12526
- profileImageUrl?: string | File | Blob | undefined;
12534
+ profileImageUrl?: string | File | Blob | null | undefined;
12527
12535
  bio?: string | undefined;
12528
12536
  };
12529
12537
  certification: {
@@ -12533,7 +12541,7 @@ declare const practitionerSchema: z.ZodObject<{
12533
12541
  issuingAuthority: string;
12534
12542
  issueDate: Date | Timestamp;
12535
12543
  verificationStatus: "pending" | "rejected" | "verified";
12536
- expiryDate?: Date | Timestamp | undefined;
12544
+ expiryDate?: Date | Timestamp | null | undefined;
12537
12545
  };
12538
12546
  clinics: string[];
12539
12547
  clinicWorkingHours: {
@@ -12635,33 +12643,33 @@ declare const createPractitionerSchema: z.ZodObject<{
12635
12643
  lastName: z.ZodString;
12636
12644
  title: z.ZodString;
12637
12645
  email: z.ZodString;
12638
- phoneNumber: z.ZodString;
12639
- dateOfBirth: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
12646
+ phoneNumber: z.ZodNullable<z.ZodString>;
12647
+ dateOfBirth: z.ZodNullable<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
12640
12648
  gender: z.ZodEnum<["male", "female", "other"]>;
12641
- profileImageUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
12649
+ profileImageUrl: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>>;
12642
12650
  bio: z.ZodOptional<z.ZodString>;
12643
12651
  languages: z.ZodArray<z.ZodString, "many">;
12644
12652
  }, "strip", z.ZodTypeAny, {
12645
12653
  firstName: string;
12646
12654
  lastName: string;
12647
- dateOfBirth: Date | Timestamp;
12655
+ dateOfBirth: Date | Timestamp | null;
12648
12656
  gender: "male" | "female" | "other";
12649
12657
  email: string;
12650
- phoneNumber: string;
12658
+ phoneNumber: string | null;
12651
12659
  languages: string[];
12652
12660
  title: string;
12653
- profileImageUrl?: string | File | Blob | undefined;
12661
+ profileImageUrl?: string | File | Blob | null | undefined;
12654
12662
  bio?: string | undefined;
12655
12663
  }, {
12656
12664
  firstName: string;
12657
12665
  lastName: string;
12658
- dateOfBirth: Date | Timestamp;
12666
+ dateOfBirth: Date | Timestamp | null;
12659
12667
  gender: "male" | "female" | "other";
12660
12668
  email: string;
12661
- phoneNumber: string;
12669
+ phoneNumber: string | null;
12662
12670
  languages: string[];
12663
12671
  title: string;
12664
- profileImageUrl?: string | File | Blob | undefined;
12672
+ profileImageUrl?: string | File | Blob | null | undefined;
12665
12673
  bio?: string | undefined;
12666
12674
  }>;
12667
12675
  certification: z.ZodObject<{
@@ -12670,7 +12678,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12670
12678
  licenseNumber: z.ZodString;
12671
12679
  issuingAuthority: z.ZodString;
12672
12680
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
12673
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
12681
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
12674
12682
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
12675
12683
  }, "strip", z.ZodTypeAny, {
12676
12684
  level: CertificationLevel;
@@ -12679,7 +12687,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12679
12687
  issuingAuthority: string;
12680
12688
  issueDate: Date | Timestamp;
12681
12689
  verificationStatus: "pending" | "rejected" | "verified";
12682
- expiryDate?: Date | Timestamp | undefined;
12690
+ expiryDate?: Date | Timestamp | null | undefined;
12683
12691
  }, {
12684
12692
  level: CertificationLevel;
12685
12693
  specialties: CertificationSpecialty[];
@@ -12687,7 +12695,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12687
12695
  issuingAuthority: string;
12688
12696
  issueDate: Date | Timestamp;
12689
12697
  verificationStatus: "pending" | "rejected" | "verified";
12690
- expiryDate?: Date | Timestamp | undefined;
12698
+ expiryDate?: Date | Timestamp | null | undefined;
12691
12699
  }>;
12692
12700
  clinics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12693
12701
  clinicWorkingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -13045,13 +13053,13 @@ declare const createPractitionerSchema: z.ZodObject<{
13045
13053
  basicInfo: {
13046
13054
  firstName: string;
13047
13055
  lastName: string;
13048
- dateOfBirth: Date | Timestamp;
13056
+ dateOfBirth: Date | Timestamp | null;
13049
13057
  gender: "male" | "female" | "other";
13050
13058
  email: string;
13051
- phoneNumber: string;
13059
+ phoneNumber: string | null;
13052
13060
  languages: string[];
13053
13061
  title: string;
13054
- profileImageUrl?: string | File | Blob | undefined;
13062
+ profileImageUrl?: string | File | Blob | null | undefined;
13055
13063
  bio?: string | undefined;
13056
13064
  };
13057
13065
  certification: {
@@ -13061,7 +13069,7 @@ declare const createPractitionerSchema: z.ZodObject<{
13061
13069
  issuingAuthority: string;
13062
13070
  issueDate: Date | Timestamp;
13063
13071
  verificationStatus: "pending" | "rejected" | "verified";
13064
- expiryDate?: Date | Timestamp | undefined;
13072
+ expiryDate?: Date | Timestamp | null | undefined;
13065
13073
  };
13066
13074
  isVerified: boolean;
13067
13075
  clinics?: string[] | undefined;
@@ -13148,13 +13156,13 @@ declare const createPractitionerSchema: z.ZodObject<{
13148
13156
  basicInfo: {
13149
13157
  firstName: string;
13150
13158
  lastName: string;
13151
- dateOfBirth: Date | Timestamp;
13159
+ dateOfBirth: Date | Timestamp | null;
13152
13160
  gender: "male" | "female" | "other";
13153
13161
  email: string;
13154
- phoneNumber: string;
13162
+ phoneNumber: string | null;
13155
13163
  languages: string[];
13156
13164
  title: string;
13157
- profileImageUrl?: string | File | Blob | undefined;
13165
+ profileImageUrl?: string | File | Blob | null | undefined;
13158
13166
  bio?: string | undefined;
13159
13167
  };
13160
13168
  certification: {
@@ -13164,7 +13172,7 @@ declare const createPractitionerSchema: z.ZodObject<{
13164
13172
  issuingAuthority: string;
13165
13173
  issueDate: Date | Timestamp;
13166
13174
  verificationStatus: "pending" | "rejected" | "verified";
13167
- expiryDate?: Date | Timestamp | undefined;
13175
+ expiryDate?: Date | Timestamp | null | undefined;
13168
13176
  };
13169
13177
  isVerified: boolean;
13170
13178
  clinics?: string[] | undefined;
@@ -13255,33 +13263,33 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13255
13263
  lastName: z.ZodString;
13256
13264
  title: z.ZodString;
13257
13265
  email: z.ZodString;
13258
- phoneNumber: z.ZodString;
13259
- dateOfBirth: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
13266
+ phoneNumber: z.ZodNullable<z.ZodString>;
13267
+ dateOfBirth: z.ZodNullable<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
13260
13268
  gender: z.ZodEnum<["male", "female", "other"]>;
13261
- profileImageUrl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>;
13269
+ profileImageUrl: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>>;
13262
13270
  bio: z.ZodOptional<z.ZodString>;
13263
13271
  languages: z.ZodArray<z.ZodString, "many">;
13264
13272
  }, "strip", z.ZodTypeAny, {
13265
13273
  firstName: string;
13266
13274
  lastName: string;
13267
- dateOfBirth: Date | Timestamp;
13275
+ dateOfBirth: Date | Timestamp | null;
13268
13276
  gender: "male" | "female" | "other";
13269
13277
  email: string;
13270
- phoneNumber: string;
13278
+ phoneNumber: string | null;
13271
13279
  languages: string[];
13272
13280
  title: string;
13273
- profileImageUrl?: string | File | Blob | undefined;
13281
+ profileImageUrl?: string | File | Blob | null | undefined;
13274
13282
  bio?: string | undefined;
13275
13283
  }, {
13276
13284
  firstName: string;
13277
13285
  lastName: string;
13278
- dateOfBirth: Date | Timestamp;
13286
+ dateOfBirth: Date | Timestamp | null;
13279
13287
  gender: "male" | "female" | "other";
13280
13288
  email: string;
13281
- phoneNumber: string;
13289
+ phoneNumber: string | null;
13282
13290
  languages: string[];
13283
13291
  title: string;
13284
- profileImageUrl?: string | File | Blob | undefined;
13292
+ profileImageUrl?: string | File | Blob | null | undefined;
13285
13293
  bio?: string | undefined;
13286
13294
  }>;
13287
13295
  certification: z.ZodObject<{
@@ -13290,7 +13298,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13290
13298
  licenseNumber: z.ZodString;
13291
13299
  issuingAuthority: z.ZodString;
13292
13300
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
13293
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
13301
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
13294
13302
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
13295
13303
  }, "strip", z.ZodTypeAny, {
13296
13304
  level: CertificationLevel;
@@ -13299,7 +13307,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13299
13307
  issuingAuthority: string;
13300
13308
  issueDate: Date | Timestamp;
13301
13309
  verificationStatus: "pending" | "rejected" | "verified";
13302
- expiryDate?: Date | Timestamp | undefined;
13310
+ expiryDate?: Date | Timestamp | null | undefined;
13303
13311
  }, {
13304
13312
  level: CertificationLevel;
13305
13313
  specialties: CertificationSpecialty[];
@@ -13307,7 +13315,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13307
13315
  issuingAuthority: string;
13308
13316
  issueDate: Date | Timestamp;
13309
13317
  verificationStatus: "pending" | "rejected" | "verified";
13310
- expiryDate?: Date | Timestamp | undefined;
13318
+ expiryDate?: Date | Timestamp | null | undefined;
13311
13319
  }>;
13312
13320
  clinics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13313
13321
  clinicWorkingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -13663,13 +13671,13 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13663
13671
  basicInfo: {
13664
13672
  firstName: string;
13665
13673
  lastName: string;
13666
- dateOfBirth: Date | Timestamp;
13674
+ dateOfBirth: Date | Timestamp | null;
13667
13675
  gender: "male" | "female" | "other";
13668
13676
  email: string;
13669
- phoneNumber: string;
13677
+ phoneNumber: string | null;
13670
13678
  languages: string[];
13671
13679
  title: string;
13672
- profileImageUrl?: string | File | Blob | undefined;
13680
+ profileImageUrl?: string | File | Blob | null | undefined;
13673
13681
  bio?: string | undefined;
13674
13682
  };
13675
13683
  certification: {
@@ -13679,7 +13687,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13679
13687
  issuingAuthority: string;
13680
13688
  issueDate: Date | Timestamp;
13681
13689
  verificationStatus: "pending" | "rejected" | "verified";
13682
- expiryDate?: Date | Timestamp | undefined;
13690
+ expiryDate?: Date | Timestamp | null | undefined;
13683
13691
  };
13684
13692
  isVerified: boolean;
13685
13693
  clinics?: string[] | undefined;
@@ -13763,13 +13771,13 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13763
13771
  basicInfo: {
13764
13772
  firstName: string;
13765
13773
  lastName: string;
13766
- dateOfBirth: Date | Timestamp;
13774
+ dateOfBirth: Date | Timestamp | null;
13767
13775
  gender: "male" | "female" | "other";
13768
13776
  email: string;
13769
- phoneNumber: string;
13777
+ phoneNumber: string | null;
13770
13778
  languages: string[];
13771
13779
  title: string;
13772
- profileImageUrl?: string | File | Blob | undefined;
13780
+ profileImageUrl?: string | File | Blob | null | undefined;
13773
13781
  bio?: string | undefined;
13774
13782
  };
13775
13783
  certification: {
@@ -13779,7 +13787,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13779
13787
  issuingAuthority: string;
13780
13788
  issueDate: Date | Timestamp;
13781
13789
  verificationStatus: "pending" | "rejected" | "verified";
13782
- expiryDate?: Date | Timestamp | undefined;
13790
+ expiryDate?: Date | Timestamp | null | undefined;
13783
13791
  };
13784
13792
  isActive?: boolean | undefined;
13785
13793
  clinics?: string[] | undefined;
@@ -18512,7 +18520,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18512
18520
  licenseNumber: z.ZodString;
18513
18521
  issuingAuthority: z.ZodString;
18514
18522
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
18515
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
18523
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
18516
18524
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
18517
18525
  }, "strip", z.ZodTypeAny, {
18518
18526
  level: CertificationLevel;
@@ -18521,7 +18529,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18521
18529
  issuingAuthority: string;
18522
18530
  issueDate: Date | Timestamp;
18523
18531
  verificationStatus: "pending" | "rejected" | "verified";
18524
- expiryDate?: Date | Timestamp | undefined;
18532
+ expiryDate?: Date | Timestamp | null | undefined;
18525
18533
  }, {
18526
18534
  level: CertificationLevel;
18527
18535
  specialties: CertificationSpecialty[];
@@ -18529,7 +18537,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18529
18537
  issuingAuthority: string;
18530
18538
  issueDate: Date | Timestamp;
18531
18539
  verificationStatus: "pending" | "rejected" | "verified";
18532
- expiryDate?: Date | Timestamp | undefined;
18540
+ expiryDate?: Date | Timestamp | null | undefined;
18533
18541
  }>;
18534
18542
  }, "strip", z.ZodTypeAny, {
18535
18543
  id: string;
@@ -18541,7 +18549,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18541
18549
  issuingAuthority: string;
18542
18550
  issueDate: Date | Timestamp;
18543
18551
  verificationStatus: "pending" | "rejected" | "verified";
18544
- expiryDate?: Date | Timestamp | undefined;
18552
+ expiryDate?: Date | Timestamp | null | undefined;
18545
18553
  };
18546
18554
  email: string;
18547
18555
  practitionerPhoto: string | null;
@@ -18556,7 +18564,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18556
18564
  issuingAuthority: string;
18557
18565
  issueDate: Date | Timestamp;
18558
18566
  verificationStatus: "pending" | "rejected" | "verified";
18559
- expiryDate?: Date | Timestamp | undefined;
18567
+ expiryDate?: Date | Timestamp | null | undefined;
18560
18568
  };
18561
18569
  email: string;
18562
18570
  practitionerPhoto: string | null;
@@ -18691,7 +18699,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18691
18699
  issuingAuthority: string;
18692
18700
  issueDate: Date | Timestamp;
18693
18701
  verificationStatus: "pending" | "rejected" | "verified";
18694
- expiryDate?: Date | Timestamp | undefined;
18702
+ expiryDate?: Date | Timestamp | null | undefined;
18695
18703
  };
18696
18704
  email: string;
18697
18705
  practitionerPhoto: string | null;
@@ -18748,7 +18756,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18748
18756
  issuingAuthority: string;
18749
18757
  issueDate: Date | Timestamp;
18750
18758
  verificationStatus: "pending" | "rejected" | "verified";
18751
- expiryDate?: Date | Timestamp | undefined;
18759
+ expiryDate?: Date | Timestamp | null | undefined;
18752
18760
  };
18753
18761
  email: string;
18754
18762
  practitionerPhoto: string | null;
@@ -18870,7 +18878,7 @@ declare const calendarEventSchema: z.ZodObject<{
18870
18878
  licenseNumber: z.ZodString;
18871
18879
  issuingAuthority: z.ZodString;
18872
18880
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
18873
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
18881
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
18874
18882
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
18875
18883
  }, "strip", z.ZodTypeAny, {
18876
18884
  level: CertificationLevel;
@@ -18879,7 +18887,7 @@ declare const calendarEventSchema: z.ZodObject<{
18879
18887
  issuingAuthority: string;
18880
18888
  issueDate: Date | Timestamp;
18881
18889
  verificationStatus: "pending" | "rejected" | "verified";
18882
- expiryDate?: Date | Timestamp | undefined;
18890
+ expiryDate?: Date | Timestamp | null | undefined;
18883
18891
  }, {
18884
18892
  level: CertificationLevel;
18885
18893
  specialties: CertificationSpecialty[];
@@ -18887,7 +18895,7 @@ declare const calendarEventSchema: z.ZodObject<{
18887
18895
  issuingAuthority: string;
18888
18896
  issueDate: Date | Timestamp;
18889
18897
  verificationStatus: "pending" | "rejected" | "verified";
18890
- expiryDate?: Date | Timestamp | undefined;
18898
+ expiryDate?: Date | Timestamp | null | undefined;
18891
18899
  }>;
18892
18900
  }, "strip", z.ZodTypeAny, {
18893
18901
  id: string;
@@ -18899,7 +18907,7 @@ declare const calendarEventSchema: z.ZodObject<{
18899
18907
  issuingAuthority: string;
18900
18908
  issueDate: Date | Timestamp;
18901
18909
  verificationStatus: "pending" | "rejected" | "verified";
18902
- expiryDate?: Date | Timestamp | undefined;
18910
+ expiryDate?: Date | Timestamp | null | undefined;
18903
18911
  };
18904
18912
  email: string;
18905
18913
  practitionerPhoto: string | null;
@@ -18914,7 +18922,7 @@ declare const calendarEventSchema: z.ZodObject<{
18914
18922
  issuingAuthority: string;
18915
18923
  issueDate: Date | Timestamp;
18916
18924
  verificationStatus: "pending" | "rejected" | "verified";
18917
- expiryDate?: Date | Timestamp | undefined;
18925
+ expiryDate?: Date | Timestamp | null | undefined;
18918
18926
  };
18919
18927
  email: string;
18920
18928
  practitionerPhoto: string | null;
@@ -19087,7 +19095,7 @@ declare const calendarEventSchema: z.ZodObject<{
19087
19095
  issuingAuthority: string;
19088
19096
  issueDate: Date | Timestamp;
19089
19097
  verificationStatus: "pending" | "rejected" | "verified";
19090
- expiryDate?: Date | Timestamp | undefined;
19098
+ expiryDate?: Date | Timestamp | null | undefined;
19091
19099
  };
19092
19100
  email: string;
19093
19101
  practitionerPhoto: string | null;
@@ -19158,7 +19166,7 @@ declare const calendarEventSchema: z.ZodObject<{
19158
19166
  issuingAuthority: string;
19159
19167
  issueDate: Date | Timestamp;
19160
19168
  verificationStatus: "pending" | "rejected" | "verified";
19161
- expiryDate?: Date | Timestamp | undefined;
19169
+ expiryDate?: Date | Timestamp | null | undefined;
19162
19170
  };
19163
19171
  email: string;
19164
19172
  practitionerPhoto: string | null;
@@ -19318,7 +19326,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19318
19326
  licenseNumber: z.ZodString;
19319
19327
  issuingAuthority: z.ZodString;
19320
19328
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
19321
- expiryDate: z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>;
19329
+ expiryDate: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>>>;
19322
19330
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
19323
19331
  }, "strip", z.ZodTypeAny, {
19324
19332
  level: CertificationLevel;
@@ -19327,7 +19335,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19327
19335
  issuingAuthority: string;
19328
19336
  issueDate: Date | Timestamp;
19329
19337
  verificationStatus: "pending" | "rejected" | "verified";
19330
- expiryDate?: Date | Timestamp | undefined;
19338
+ expiryDate?: Date | Timestamp | null | undefined;
19331
19339
  }, {
19332
19340
  level: CertificationLevel;
19333
19341
  specialties: CertificationSpecialty[];
@@ -19335,7 +19343,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19335
19343
  issuingAuthority: string;
19336
19344
  issueDate: Date | Timestamp;
19337
19345
  verificationStatus: "pending" | "rejected" | "verified";
19338
- expiryDate?: Date | Timestamp | undefined;
19346
+ expiryDate?: Date | Timestamp | null | undefined;
19339
19347
  }>;
19340
19348
  }, "strip", z.ZodTypeAny, {
19341
19349
  id: string;
@@ -19347,7 +19355,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19347
19355
  issuingAuthority: string;
19348
19356
  issueDate: Date | Timestamp;
19349
19357
  verificationStatus: "pending" | "rejected" | "verified";
19350
- expiryDate?: Date | Timestamp | undefined;
19358
+ expiryDate?: Date | Timestamp | null | undefined;
19351
19359
  };
19352
19360
  email: string;
19353
19361
  practitionerPhoto: string | null;
@@ -19362,7 +19370,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19362
19370
  issuingAuthority: string;
19363
19371
  issueDate: Date | Timestamp;
19364
19372
  verificationStatus: "pending" | "rejected" | "verified";
19365
- expiryDate?: Date | Timestamp | undefined;
19373
+ expiryDate?: Date | Timestamp | null | undefined;
19366
19374
  };
19367
19375
  email: string;
19368
19376
  practitionerPhoto: string | null;