@blackcode_sa/metaestetics-api 1.7.41 → 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.ts 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
@@ -11536,33 +11541,33 @@ declare const practitionerBasicInfoSchema: z.ZodObject<{
11536
11541
  lastName: z.ZodString;
11537
11542
  title: z.ZodString;
11538
11543
  email: z.ZodString;
11539
- phoneNumber: z.ZodString;
11540
- 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]>>;
11541
11546
  gender: z.ZodEnum<["male", "female", "other"]>;
11542
- 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>]>>>;
11543
11548
  bio: z.ZodOptional<z.ZodString>;
11544
11549
  languages: z.ZodArray<z.ZodString, "many">;
11545
11550
  }, "strip", z.ZodTypeAny, {
11546
11551
  firstName: string;
11547
11552
  lastName: string;
11548
- dateOfBirth: Date | Timestamp;
11553
+ dateOfBirth: Date | Timestamp | null;
11549
11554
  gender: "male" | "female" | "other";
11550
11555
  email: string;
11551
- phoneNumber: string;
11556
+ phoneNumber: string | null;
11552
11557
  languages: string[];
11553
11558
  title: string;
11554
- profileImageUrl?: string | File | Blob | undefined;
11559
+ profileImageUrl?: string | File | Blob | null | undefined;
11555
11560
  bio?: string | undefined;
11556
11561
  }, {
11557
11562
  firstName: string;
11558
11563
  lastName: string;
11559
- dateOfBirth: Date | Timestamp;
11564
+ dateOfBirth: Date | Timestamp | null;
11560
11565
  gender: "male" | "female" | "other";
11561
11566
  email: string;
11562
- phoneNumber: string;
11567
+ phoneNumber: string | null;
11563
11568
  languages: string[];
11564
11569
  title: string;
11565
- profileImageUrl?: string | File | Blob | undefined;
11570
+ profileImageUrl?: string | File | Blob | null | undefined;
11566
11571
  bio?: string | undefined;
11567
11572
  }>;
11568
11573
  /**
@@ -11574,7 +11579,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11574
11579
  licenseNumber: z.ZodString;
11575
11580
  issuingAuthority: z.ZodString;
11576
11581
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11577
- 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]>>>;
11578
11583
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
11579
11584
  }, "strip", z.ZodTypeAny, {
11580
11585
  level: CertificationLevel;
@@ -11583,7 +11588,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11583
11588
  issuingAuthority: string;
11584
11589
  issueDate: Date | Timestamp;
11585
11590
  verificationStatus: "pending" | "rejected" | "verified";
11586
- expiryDate?: Date | Timestamp | undefined;
11591
+ expiryDate?: Date | Timestamp | null | undefined;
11587
11592
  }, {
11588
11593
  level: CertificationLevel;
11589
11594
  specialties: CertificationSpecialty[];
@@ -11591,7 +11596,7 @@ declare const practitionerCertificationSchema: z.ZodObject<{
11591
11596
  issuingAuthority: string;
11592
11597
  issueDate: Date | Timestamp;
11593
11598
  verificationStatus: "pending" | "rejected" | "verified";
11594
- expiryDate?: Date | Timestamp | undefined;
11599
+ expiryDate?: Date | Timestamp | null | undefined;
11595
11600
  }>;
11596
11601
  declare const practitionerWorkingHoursSchema: z.ZodObject<{
11597
11602
  practitionerId: z.ZodString;
@@ -11958,33 +11963,33 @@ declare const practitionerSchema: z.ZodObject<{
11958
11963
  lastName: z.ZodString;
11959
11964
  title: z.ZodString;
11960
11965
  email: z.ZodString;
11961
- phoneNumber: z.ZodString;
11962
- 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]>>;
11963
11968
  gender: z.ZodEnum<["male", "female", "other"]>;
11964
- 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>]>>>;
11965
11970
  bio: z.ZodOptional<z.ZodString>;
11966
11971
  languages: z.ZodArray<z.ZodString, "many">;
11967
11972
  }, "strip", z.ZodTypeAny, {
11968
11973
  firstName: string;
11969
11974
  lastName: string;
11970
- dateOfBirth: Date | Timestamp;
11975
+ dateOfBirth: Date | Timestamp | null;
11971
11976
  gender: "male" | "female" | "other";
11972
11977
  email: string;
11973
- phoneNumber: string;
11978
+ phoneNumber: string | null;
11974
11979
  languages: string[];
11975
11980
  title: string;
11976
- profileImageUrl?: string | File | Blob | undefined;
11981
+ profileImageUrl?: string | File | Blob | null | undefined;
11977
11982
  bio?: string | undefined;
11978
11983
  }, {
11979
11984
  firstName: string;
11980
11985
  lastName: string;
11981
- dateOfBirth: Date | Timestamp;
11986
+ dateOfBirth: Date | Timestamp | null;
11982
11987
  gender: "male" | "female" | "other";
11983
11988
  email: string;
11984
- phoneNumber: string;
11989
+ phoneNumber: string | null;
11985
11990
  languages: string[];
11986
11991
  title: string;
11987
- profileImageUrl?: string | File | Blob | undefined;
11992
+ profileImageUrl?: string | File | Blob | null | undefined;
11988
11993
  bio?: string | undefined;
11989
11994
  }>;
11990
11995
  certification: z.ZodObject<{
@@ -11993,7 +11998,7 @@ declare const practitionerSchema: z.ZodObject<{
11993
11998
  licenseNumber: z.ZodString;
11994
11999
  issuingAuthority: z.ZodString;
11995
12000
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
11996
- 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]>>>;
11997
12002
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
11998
12003
  }, "strip", z.ZodTypeAny, {
11999
12004
  level: CertificationLevel;
@@ -12002,7 +12007,7 @@ declare const practitionerSchema: z.ZodObject<{
12002
12007
  issuingAuthority: string;
12003
12008
  issueDate: Date | Timestamp;
12004
12009
  verificationStatus: "pending" | "rejected" | "verified";
12005
- expiryDate?: Date | Timestamp | undefined;
12010
+ expiryDate?: Date | Timestamp | null | undefined;
12006
12011
  }, {
12007
12012
  level: CertificationLevel;
12008
12013
  specialties: CertificationSpecialty[];
@@ -12010,7 +12015,7 @@ declare const practitionerSchema: z.ZodObject<{
12010
12015
  issuingAuthority: string;
12011
12016
  issueDate: Date | Timestamp;
12012
12017
  verificationStatus: "pending" | "rejected" | "verified";
12013
- expiryDate?: Date | Timestamp | undefined;
12018
+ expiryDate?: Date | Timestamp | null | undefined;
12014
12019
  }>;
12015
12020
  clinics: z.ZodArray<z.ZodString, "many">;
12016
12021
  clinicWorkingHours: z.ZodArray<z.ZodObject<{
@@ -12403,13 +12408,13 @@ declare const practitionerSchema: z.ZodObject<{
12403
12408
  basicInfo: {
12404
12409
  firstName: string;
12405
12410
  lastName: string;
12406
- dateOfBirth: Date | Timestamp;
12411
+ dateOfBirth: Date | Timestamp | null;
12407
12412
  gender: "male" | "female" | "other";
12408
12413
  email: string;
12409
- phoneNumber: string;
12414
+ phoneNumber: string | null;
12410
12415
  languages: string[];
12411
12416
  title: string;
12412
- profileImageUrl?: string | File | Blob | undefined;
12417
+ profileImageUrl?: string | File | Blob | null | undefined;
12413
12418
  bio?: string | undefined;
12414
12419
  };
12415
12420
  certification: {
@@ -12419,7 +12424,7 @@ declare const practitionerSchema: z.ZodObject<{
12419
12424
  issuingAuthority: string;
12420
12425
  issueDate: Date | Timestamp;
12421
12426
  verificationStatus: "pending" | "rejected" | "verified";
12422
- expiryDate?: Date | Timestamp | undefined;
12427
+ expiryDate?: Date | Timestamp | null | undefined;
12423
12428
  };
12424
12429
  clinics: string[];
12425
12430
  clinicWorkingHours: {
@@ -12520,13 +12525,13 @@ declare const practitionerSchema: z.ZodObject<{
12520
12525
  basicInfo: {
12521
12526
  firstName: string;
12522
12527
  lastName: string;
12523
- dateOfBirth: Date | Timestamp;
12528
+ dateOfBirth: Date | Timestamp | null;
12524
12529
  gender: "male" | "female" | "other";
12525
12530
  email: string;
12526
- phoneNumber: string;
12531
+ phoneNumber: string | null;
12527
12532
  languages: string[];
12528
12533
  title: string;
12529
- profileImageUrl?: string | File | Blob | undefined;
12534
+ profileImageUrl?: string | File | Blob | null | undefined;
12530
12535
  bio?: string | undefined;
12531
12536
  };
12532
12537
  certification: {
@@ -12536,7 +12541,7 @@ declare const practitionerSchema: z.ZodObject<{
12536
12541
  issuingAuthority: string;
12537
12542
  issueDate: Date | Timestamp;
12538
12543
  verificationStatus: "pending" | "rejected" | "verified";
12539
- expiryDate?: Date | Timestamp | undefined;
12544
+ expiryDate?: Date | Timestamp | null | undefined;
12540
12545
  };
12541
12546
  clinics: string[];
12542
12547
  clinicWorkingHours: {
@@ -12638,33 +12643,33 @@ declare const createPractitionerSchema: z.ZodObject<{
12638
12643
  lastName: z.ZodString;
12639
12644
  title: z.ZodString;
12640
12645
  email: z.ZodString;
12641
- phoneNumber: z.ZodString;
12642
- 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]>>;
12643
12648
  gender: z.ZodEnum<["male", "female", "other"]>;
12644
- 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>]>>>;
12645
12650
  bio: z.ZodOptional<z.ZodString>;
12646
12651
  languages: z.ZodArray<z.ZodString, "many">;
12647
12652
  }, "strip", z.ZodTypeAny, {
12648
12653
  firstName: string;
12649
12654
  lastName: string;
12650
- dateOfBirth: Date | Timestamp;
12655
+ dateOfBirth: Date | Timestamp | null;
12651
12656
  gender: "male" | "female" | "other";
12652
12657
  email: string;
12653
- phoneNumber: string;
12658
+ phoneNumber: string | null;
12654
12659
  languages: string[];
12655
12660
  title: string;
12656
- profileImageUrl?: string | File | Blob | undefined;
12661
+ profileImageUrl?: string | File | Blob | null | undefined;
12657
12662
  bio?: string | undefined;
12658
12663
  }, {
12659
12664
  firstName: string;
12660
12665
  lastName: string;
12661
- dateOfBirth: Date | Timestamp;
12666
+ dateOfBirth: Date | Timestamp | null;
12662
12667
  gender: "male" | "female" | "other";
12663
12668
  email: string;
12664
- phoneNumber: string;
12669
+ phoneNumber: string | null;
12665
12670
  languages: string[];
12666
12671
  title: string;
12667
- profileImageUrl?: string | File | Blob | undefined;
12672
+ profileImageUrl?: string | File | Blob | null | undefined;
12668
12673
  bio?: string | undefined;
12669
12674
  }>;
12670
12675
  certification: z.ZodObject<{
@@ -12673,7 +12678,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12673
12678
  licenseNumber: z.ZodString;
12674
12679
  issuingAuthority: z.ZodString;
12675
12680
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
12676
- 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]>>>;
12677
12682
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
12678
12683
  }, "strip", z.ZodTypeAny, {
12679
12684
  level: CertificationLevel;
@@ -12682,7 +12687,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12682
12687
  issuingAuthority: string;
12683
12688
  issueDate: Date | Timestamp;
12684
12689
  verificationStatus: "pending" | "rejected" | "verified";
12685
- expiryDate?: Date | Timestamp | undefined;
12690
+ expiryDate?: Date | Timestamp | null | undefined;
12686
12691
  }, {
12687
12692
  level: CertificationLevel;
12688
12693
  specialties: CertificationSpecialty[];
@@ -12690,7 +12695,7 @@ declare const createPractitionerSchema: z.ZodObject<{
12690
12695
  issuingAuthority: string;
12691
12696
  issueDate: Date | Timestamp;
12692
12697
  verificationStatus: "pending" | "rejected" | "verified";
12693
- expiryDate?: Date | Timestamp | undefined;
12698
+ expiryDate?: Date | Timestamp | null | undefined;
12694
12699
  }>;
12695
12700
  clinics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12696
12701
  clinicWorkingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -13048,13 +13053,13 @@ declare const createPractitionerSchema: z.ZodObject<{
13048
13053
  basicInfo: {
13049
13054
  firstName: string;
13050
13055
  lastName: string;
13051
- dateOfBirth: Date | Timestamp;
13056
+ dateOfBirth: Date | Timestamp | null;
13052
13057
  gender: "male" | "female" | "other";
13053
13058
  email: string;
13054
- phoneNumber: string;
13059
+ phoneNumber: string | null;
13055
13060
  languages: string[];
13056
13061
  title: string;
13057
- profileImageUrl?: string | File | Blob | undefined;
13062
+ profileImageUrl?: string | File | Blob | null | undefined;
13058
13063
  bio?: string | undefined;
13059
13064
  };
13060
13065
  certification: {
@@ -13064,7 +13069,7 @@ declare const createPractitionerSchema: z.ZodObject<{
13064
13069
  issuingAuthority: string;
13065
13070
  issueDate: Date | Timestamp;
13066
13071
  verificationStatus: "pending" | "rejected" | "verified";
13067
- expiryDate?: Date | Timestamp | undefined;
13072
+ expiryDate?: Date | Timestamp | null | undefined;
13068
13073
  };
13069
13074
  isVerified: boolean;
13070
13075
  clinics?: string[] | undefined;
@@ -13151,13 +13156,13 @@ declare const createPractitionerSchema: z.ZodObject<{
13151
13156
  basicInfo: {
13152
13157
  firstName: string;
13153
13158
  lastName: string;
13154
- dateOfBirth: Date | Timestamp;
13159
+ dateOfBirth: Date | Timestamp | null;
13155
13160
  gender: "male" | "female" | "other";
13156
13161
  email: string;
13157
- phoneNumber: string;
13162
+ phoneNumber: string | null;
13158
13163
  languages: string[];
13159
13164
  title: string;
13160
- profileImageUrl?: string | File | Blob | undefined;
13165
+ profileImageUrl?: string | File | Blob | null | undefined;
13161
13166
  bio?: string | undefined;
13162
13167
  };
13163
13168
  certification: {
@@ -13167,7 +13172,7 @@ declare const createPractitionerSchema: z.ZodObject<{
13167
13172
  issuingAuthority: string;
13168
13173
  issueDate: Date | Timestamp;
13169
13174
  verificationStatus: "pending" | "rejected" | "verified";
13170
- expiryDate?: Date | Timestamp | undefined;
13175
+ expiryDate?: Date | Timestamp | null | undefined;
13171
13176
  };
13172
13177
  isVerified: boolean;
13173
13178
  clinics?: string[] | undefined;
@@ -13258,33 +13263,33 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13258
13263
  lastName: z.ZodString;
13259
13264
  title: z.ZodString;
13260
13265
  email: z.ZodString;
13261
- phoneNumber: z.ZodString;
13262
- 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]>>;
13263
13268
  gender: z.ZodEnum<["male", "female", "other"]>;
13264
- 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>]>>>;
13265
13270
  bio: z.ZodOptional<z.ZodString>;
13266
13271
  languages: z.ZodArray<z.ZodString, "many">;
13267
13272
  }, "strip", z.ZodTypeAny, {
13268
13273
  firstName: string;
13269
13274
  lastName: string;
13270
- dateOfBirth: Date | Timestamp;
13275
+ dateOfBirth: Date | Timestamp | null;
13271
13276
  gender: "male" | "female" | "other";
13272
13277
  email: string;
13273
- phoneNumber: string;
13278
+ phoneNumber: string | null;
13274
13279
  languages: string[];
13275
13280
  title: string;
13276
- profileImageUrl?: string | File | Blob | undefined;
13281
+ profileImageUrl?: string | File | Blob | null | undefined;
13277
13282
  bio?: string | undefined;
13278
13283
  }, {
13279
13284
  firstName: string;
13280
13285
  lastName: string;
13281
- dateOfBirth: Date | Timestamp;
13286
+ dateOfBirth: Date | Timestamp | null;
13282
13287
  gender: "male" | "female" | "other";
13283
13288
  email: string;
13284
- phoneNumber: string;
13289
+ phoneNumber: string | null;
13285
13290
  languages: string[];
13286
13291
  title: string;
13287
- profileImageUrl?: string | File | Blob | undefined;
13292
+ profileImageUrl?: string | File | Blob | null | undefined;
13288
13293
  bio?: string | undefined;
13289
13294
  }>;
13290
13295
  certification: z.ZodObject<{
@@ -13293,7 +13298,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13293
13298
  licenseNumber: z.ZodString;
13294
13299
  issuingAuthority: z.ZodString;
13295
13300
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
13296
- 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]>>>;
13297
13302
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
13298
13303
  }, "strip", z.ZodTypeAny, {
13299
13304
  level: CertificationLevel;
@@ -13302,7 +13307,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13302
13307
  issuingAuthority: string;
13303
13308
  issueDate: Date | Timestamp;
13304
13309
  verificationStatus: "pending" | "rejected" | "verified";
13305
- expiryDate?: Date | Timestamp | undefined;
13310
+ expiryDate?: Date | Timestamp | null | undefined;
13306
13311
  }, {
13307
13312
  level: CertificationLevel;
13308
13313
  specialties: CertificationSpecialty[];
@@ -13310,7 +13315,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13310
13315
  issuingAuthority: string;
13311
13316
  issueDate: Date | Timestamp;
13312
13317
  verificationStatus: "pending" | "rejected" | "verified";
13313
- expiryDate?: Date | Timestamp | undefined;
13318
+ expiryDate?: Date | Timestamp | null | undefined;
13314
13319
  }>;
13315
13320
  clinics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13316
13321
  clinicWorkingHours: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -13666,13 +13671,13 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13666
13671
  basicInfo: {
13667
13672
  firstName: string;
13668
13673
  lastName: string;
13669
- dateOfBirth: Date | Timestamp;
13674
+ dateOfBirth: Date | Timestamp | null;
13670
13675
  gender: "male" | "female" | "other";
13671
13676
  email: string;
13672
- phoneNumber: string;
13677
+ phoneNumber: string | null;
13673
13678
  languages: string[];
13674
13679
  title: string;
13675
- profileImageUrl?: string | File | Blob | undefined;
13680
+ profileImageUrl?: string | File | Blob | null | undefined;
13676
13681
  bio?: string | undefined;
13677
13682
  };
13678
13683
  certification: {
@@ -13682,7 +13687,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13682
13687
  issuingAuthority: string;
13683
13688
  issueDate: Date | Timestamp;
13684
13689
  verificationStatus: "pending" | "rejected" | "verified";
13685
- expiryDate?: Date | Timestamp | undefined;
13690
+ expiryDate?: Date | Timestamp | null | undefined;
13686
13691
  };
13687
13692
  isVerified: boolean;
13688
13693
  clinics?: string[] | undefined;
@@ -13766,13 +13771,13 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13766
13771
  basicInfo: {
13767
13772
  firstName: string;
13768
13773
  lastName: string;
13769
- dateOfBirth: Date | Timestamp;
13774
+ dateOfBirth: Date | Timestamp | null;
13770
13775
  gender: "male" | "female" | "other";
13771
13776
  email: string;
13772
- phoneNumber: string;
13777
+ phoneNumber: string | null;
13773
13778
  languages: string[];
13774
13779
  title: string;
13775
- profileImageUrl?: string | File | Blob | undefined;
13780
+ profileImageUrl?: string | File | Blob | null | undefined;
13776
13781
  bio?: string | undefined;
13777
13782
  };
13778
13783
  certification: {
@@ -13782,7 +13787,7 @@ declare const createDraftPractitionerSchema: z.ZodObject<{
13782
13787
  issuingAuthority: string;
13783
13788
  issueDate: Date | Timestamp;
13784
13789
  verificationStatus: "pending" | "rejected" | "verified";
13785
- expiryDate?: Date | Timestamp | undefined;
13790
+ expiryDate?: Date | Timestamp | null | undefined;
13786
13791
  };
13787
13792
  isActive?: boolean | undefined;
13788
13793
  clinics?: string[] | undefined;
@@ -18515,7 +18520,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18515
18520
  licenseNumber: z.ZodString;
18516
18521
  issuingAuthority: z.ZodString;
18517
18522
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
18518
- 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]>>>;
18519
18524
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
18520
18525
  }, "strip", z.ZodTypeAny, {
18521
18526
  level: CertificationLevel;
@@ -18524,7 +18529,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18524
18529
  issuingAuthority: string;
18525
18530
  issueDate: Date | Timestamp;
18526
18531
  verificationStatus: "pending" | "rejected" | "verified";
18527
- expiryDate?: Date | Timestamp | undefined;
18532
+ expiryDate?: Date | Timestamp | null | undefined;
18528
18533
  }, {
18529
18534
  level: CertificationLevel;
18530
18535
  specialties: CertificationSpecialty[];
@@ -18532,7 +18537,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18532
18537
  issuingAuthority: string;
18533
18538
  issueDate: Date | Timestamp;
18534
18539
  verificationStatus: "pending" | "rejected" | "verified";
18535
- expiryDate?: Date | Timestamp | undefined;
18540
+ expiryDate?: Date | Timestamp | null | undefined;
18536
18541
  }>;
18537
18542
  }, "strip", z.ZodTypeAny, {
18538
18543
  id: string;
@@ -18544,7 +18549,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18544
18549
  issuingAuthority: string;
18545
18550
  issueDate: Date | Timestamp;
18546
18551
  verificationStatus: "pending" | "rejected" | "verified";
18547
- expiryDate?: Date | Timestamp | undefined;
18552
+ expiryDate?: Date | Timestamp | null | undefined;
18548
18553
  };
18549
18554
  email: string;
18550
18555
  practitionerPhoto: string | null;
@@ -18559,7 +18564,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18559
18564
  issuingAuthority: string;
18560
18565
  issueDate: Date | Timestamp;
18561
18566
  verificationStatus: "pending" | "rejected" | "verified";
18562
- expiryDate?: Date | Timestamp | undefined;
18567
+ expiryDate?: Date | Timestamp | null | undefined;
18563
18568
  };
18564
18569
  email: string;
18565
18570
  practitionerPhoto: string | null;
@@ -18694,7 +18699,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18694
18699
  issuingAuthority: string;
18695
18700
  issueDate: Date | Timestamp;
18696
18701
  verificationStatus: "pending" | "rejected" | "verified";
18697
- expiryDate?: Date | Timestamp | undefined;
18702
+ expiryDate?: Date | Timestamp | null | undefined;
18698
18703
  };
18699
18704
  email: string;
18700
18705
  practitionerPhoto: string | null;
@@ -18751,7 +18756,7 @@ declare const createCalendarEventSchema: z.ZodObject<{
18751
18756
  issuingAuthority: string;
18752
18757
  issueDate: Date | Timestamp;
18753
18758
  verificationStatus: "pending" | "rejected" | "verified";
18754
- expiryDate?: Date | Timestamp | undefined;
18759
+ expiryDate?: Date | Timestamp | null | undefined;
18755
18760
  };
18756
18761
  email: string;
18757
18762
  practitionerPhoto: string | null;
@@ -18873,7 +18878,7 @@ declare const calendarEventSchema: z.ZodObject<{
18873
18878
  licenseNumber: z.ZodString;
18874
18879
  issuingAuthority: z.ZodString;
18875
18880
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
18876
- 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]>>>;
18877
18882
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
18878
18883
  }, "strip", z.ZodTypeAny, {
18879
18884
  level: CertificationLevel;
@@ -18882,7 +18887,7 @@ declare const calendarEventSchema: z.ZodObject<{
18882
18887
  issuingAuthority: string;
18883
18888
  issueDate: Date | Timestamp;
18884
18889
  verificationStatus: "pending" | "rejected" | "verified";
18885
- expiryDate?: Date | Timestamp | undefined;
18890
+ expiryDate?: Date | Timestamp | null | undefined;
18886
18891
  }, {
18887
18892
  level: CertificationLevel;
18888
18893
  specialties: CertificationSpecialty[];
@@ -18890,7 +18895,7 @@ declare const calendarEventSchema: z.ZodObject<{
18890
18895
  issuingAuthority: string;
18891
18896
  issueDate: Date | Timestamp;
18892
18897
  verificationStatus: "pending" | "rejected" | "verified";
18893
- expiryDate?: Date | Timestamp | undefined;
18898
+ expiryDate?: Date | Timestamp | null | undefined;
18894
18899
  }>;
18895
18900
  }, "strip", z.ZodTypeAny, {
18896
18901
  id: string;
@@ -18902,7 +18907,7 @@ declare const calendarEventSchema: z.ZodObject<{
18902
18907
  issuingAuthority: string;
18903
18908
  issueDate: Date | Timestamp;
18904
18909
  verificationStatus: "pending" | "rejected" | "verified";
18905
- expiryDate?: Date | Timestamp | undefined;
18910
+ expiryDate?: Date | Timestamp | null | undefined;
18906
18911
  };
18907
18912
  email: string;
18908
18913
  practitionerPhoto: string | null;
@@ -18917,7 +18922,7 @@ declare const calendarEventSchema: z.ZodObject<{
18917
18922
  issuingAuthority: string;
18918
18923
  issueDate: Date | Timestamp;
18919
18924
  verificationStatus: "pending" | "rejected" | "verified";
18920
- expiryDate?: Date | Timestamp | undefined;
18925
+ expiryDate?: Date | Timestamp | null | undefined;
18921
18926
  };
18922
18927
  email: string;
18923
18928
  practitionerPhoto: string | null;
@@ -19090,7 +19095,7 @@ declare const calendarEventSchema: z.ZodObject<{
19090
19095
  issuingAuthority: string;
19091
19096
  issueDate: Date | Timestamp;
19092
19097
  verificationStatus: "pending" | "rejected" | "verified";
19093
- expiryDate?: Date | Timestamp | undefined;
19098
+ expiryDate?: Date | Timestamp | null | undefined;
19094
19099
  };
19095
19100
  email: string;
19096
19101
  practitionerPhoto: string | null;
@@ -19161,7 +19166,7 @@ declare const calendarEventSchema: z.ZodObject<{
19161
19166
  issuingAuthority: string;
19162
19167
  issueDate: Date | Timestamp;
19163
19168
  verificationStatus: "pending" | "rejected" | "verified";
19164
- expiryDate?: Date | Timestamp | undefined;
19169
+ expiryDate?: Date | Timestamp | null | undefined;
19165
19170
  };
19166
19171
  email: string;
19167
19172
  practitionerPhoto: string | null;
@@ -19321,7 +19326,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19321
19326
  licenseNumber: z.ZodString;
19322
19327
  issuingAuthority: z.ZodString;
19323
19328
  issueDate: z.ZodUnion<[z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>, z.ZodDate]>;
19324
- 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]>>>;
19325
19330
  verificationStatus: z.ZodEnum<["pending", "verified", "rejected"]>;
19326
19331
  }, "strip", z.ZodTypeAny, {
19327
19332
  level: CertificationLevel;
@@ -19330,7 +19335,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19330
19335
  issuingAuthority: string;
19331
19336
  issueDate: Date | Timestamp;
19332
19337
  verificationStatus: "pending" | "rejected" | "verified";
19333
- expiryDate?: Date | Timestamp | undefined;
19338
+ expiryDate?: Date | Timestamp | null | undefined;
19334
19339
  }, {
19335
19340
  level: CertificationLevel;
19336
19341
  specialties: CertificationSpecialty[];
@@ -19338,7 +19343,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19338
19343
  issuingAuthority: string;
19339
19344
  issueDate: Date | Timestamp;
19340
19345
  verificationStatus: "pending" | "rejected" | "verified";
19341
- expiryDate?: Date | Timestamp | undefined;
19346
+ expiryDate?: Date | Timestamp | null | undefined;
19342
19347
  }>;
19343
19348
  }, "strip", z.ZodTypeAny, {
19344
19349
  id: string;
@@ -19350,7 +19355,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19350
19355
  issuingAuthority: string;
19351
19356
  issueDate: Date | Timestamp;
19352
19357
  verificationStatus: "pending" | "rejected" | "verified";
19353
- expiryDate?: Date | Timestamp | undefined;
19358
+ expiryDate?: Date | Timestamp | null | undefined;
19354
19359
  };
19355
19360
  email: string;
19356
19361
  practitionerPhoto: string | null;
@@ -19365,7 +19370,7 @@ declare const practitionerProfileInfoSchema: z.ZodObject<{
19365
19370
  issuingAuthority: string;
19366
19371
  issueDate: Date | Timestamp;
19367
19372
  verificationStatus: "pending" | "rejected" | "verified";
19368
- expiryDate?: Date | Timestamp | undefined;
19373
+ expiryDate?: Date | Timestamp | null | undefined;
19369
19374
  };
19370
19375
  email: string;
19371
19376
  practitionerPhoto: string | null;