@bizmap/sdk 0.0.70 → 0.0.71

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.
Files changed (3) hide show
  1. package/dist/main.d.ts +120 -99
  2. package/dist/main.js +51 -42
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -77,6 +77,7 @@ declare const CompanyDetails: z.ZodObject<{
77
77
  MEDICAL: "MEDICAL";
78
78
  }>>;
79
79
  lastModified: z.ZodNullable<z.ZodInt>;
80
+ version: z.ZodInt;
80
81
  address: z.ZodObject<{
81
82
  streetAddress: z.ZodString;
82
83
  city: z.ZodOptional<z.ZodString>;
@@ -134,6 +135,7 @@ declare const CompanyDetails: z.ZodObject<{
134
135
  state: z.ZodObject<{
135
136
  createdAt: z.ZodInt;
136
137
  lastModified: z.ZodNullable<z.ZodInt>;
138
+ version: z.ZodInt;
137
139
  credits: z.ZodObject<{
138
140
  current: z.ZodNumber;
139
141
  lastModified: z.ZodNullable<z.ZodInt>;
@@ -152,6 +154,7 @@ declare const CompanyDetails: z.ZodObject<{
152
154
  }, z.core.$strip>;
153
155
  preferences: z.ZodObject<{
154
156
  lastModified: z.ZodNullable<z.ZodInt>;
157
+ version: z.ZodInt;
155
158
  serviceSelector: z.ZodEnum<{
156
159
  scheduler: "scheduler";
157
160
  doctor: "doctor";
@@ -164,6 +167,7 @@ declare const CompanyDetails: z.ZodObject<{
164
167
  }, z.core.$strip>;
165
168
  billing: z.ZodObject<{
166
169
  lastModified: z.ZodNullable<z.ZodInt>;
170
+ version: z.ZodInt;
167
171
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
168
172
  createdAt: z.ZodReadonly<z.ZodInt>;
169
173
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -234,6 +238,7 @@ declare const CompanyDetails: z.ZodObject<{
234
238
  }, z.core.$strip>;
235
239
  staff: z.ZodObject<{
236
240
  lastModified: z.ZodNullable<z.ZodInt>;
241
+ version: z.ZodInt;
237
242
  members: z.ZodRecord<z.ZodUUID, z.ZodObject<{
238
243
  _id: z.ZodUUID;
239
244
  email: z.ZodEmail;
@@ -260,7 +265,7 @@ declare const CompanyDetails: z.ZodObject<{
260
265
  active: "active";
261
266
  inactive: "inactive";
262
267
  }>;
263
- inviteSent: z.ZodNullable<z.ZodInt>;
268
+ inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
264
269
  appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
265
270
  lastActive: z.ZodNullable<z.ZodInt>;
266
271
  inviteAccepted: z.ZodNullable<z.ZodInt>;
@@ -309,6 +314,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
309
314
  }, z.core.$strip>>>;
310
315
  }, z.core.$strip>>;
311
316
  preferences: z.ZodOptional<z.ZodObject<{
317
+ version: z.ZodOptional<z.ZodInt>;
312
318
  _id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
313
319
  serviceSelector: z.ZodOptional<z.ZodEnum<{
314
320
  scheduler: "scheduler";
@@ -321,6 +327,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
321
327
  }>>>;
322
328
  }, z.core.$strip>>;
323
329
  billing: z.ZodOptional<z.ZodObject<{
330
+ version: z.ZodOptional<z.ZodInt>;
324
331
  _id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
325
332
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
326
333
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -482,10 +489,12 @@ declare const CompanyBilling: z.ZodObject<{
482
489
  cost: z.ZodNumber;
483
490
  }, z.core.$strip>>;
484
491
  }, z.core.$strip>;
492
+ version: z.ZodInt;
485
493
  lastModified: z.ZodNullable<z.ZodInt>;
486
494
  }, z.core.$strip>;
487
495
  type CompanyBilling = z.infer<typeof CompanyBilling>;
488
496
  declare const MutableCompanyBilling: z.ZodObject<{
497
+ version: z.ZodInt;
489
498
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
490
499
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
491
500
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -560,16 +569,16 @@ type MutableCompanyBilling = z.infer<typeof MutableCompanyBilling>;
560
569
  declare const CompanyIdentity: z.ZodObject<{
561
570
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
562
571
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
563
- logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
- type: z.ZodReadonly<z.ZodEnum<{
565
- MEDICAL: "MEDICAL";
566
- }>>;
567
572
  address: z.ZodObject<{
568
573
  streetAddress: z.ZodString;
569
574
  city: z.ZodOptional<z.ZodString>;
570
575
  parish: z.ZodString;
571
576
  country: z.ZodString;
572
577
  }, z.core.$strip>;
578
+ logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
+ type: z.ZodReadonly<z.ZodEnum<{
580
+ MEDICAL: "MEDICAL";
581
+ }>>;
573
582
  contact: z.ZodObject<{
574
583
  email: z.ZodEmail;
575
584
  phoneNumber: z.ZodOptional<z.ZodString>;
@@ -590,6 +599,7 @@ declare const CompanyIdentity: z.ZodObject<{
590
599
  trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
600
  gctRegNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
601
  }, z.core.$strip>>;
602
+ version: z.ZodInt;
593
603
  lastModified: z.ZodNullable<z.ZodInt>;
594
604
  }, z.core.$strip>;
595
605
  type CompanyIdentity = z.infer<typeof CompanyIdentity>;
@@ -641,10 +651,12 @@ declare const CompanyPreferences: z.ZodObject<{
641
651
  RR: "RR";
642
652
  LOR: "LOR";
643
653
  }>>;
654
+ version: z.ZodInt;
644
655
  lastModified: z.ZodNullable<z.ZodInt>;
645
656
  }, z.core.$strip>;
646
657
  type CompanyPreferences = z.infer<typeof CompanyPreferences>;
647
658
  declare const MutableCompanyPreferences: z.ZodObject<{
659
+ version: z.ZodInt;
648
660
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
649
661
  serviceSelector: z.ZodEnum<{
650
662
  scheduler: "scheduler";
@@ -685,7 +697,7 @@ declare const CompanyStaff: z.ZodObject<{
685
697
  active: "active";
686
698
  inactive: "inactive";
687
699
  }>;
688
- inviteSent: z.ZodNullable<z.ZodInt>;
700
+ inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
689
701
  appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
690
702
  lastActive: z.ZodNullable<z.ZodInt>;
691
703
  inviteAccepted: z.ZodNullable<z.ZodInt>;
@@ -709,6 +721,7 @@ declare const CompanyStaff: z.ZodObject<{
709
721
  addedAt: z.ZodInt;
710
722
  }, z.core.$strip>>;
711
723
  }, z.core.$strip>>;
724
+ version: z.ZodInt;
712
725
  lastModified: z.ZodNullable<z.ZodInt>;
713
726
  }, z.core.$strip>;
714
727
  type CompanyStaff = z.infer<typeof CompanyStaff>;
@@ -732,6 +745,7 @@ declare const CompanyState: z.ZodObject<{
732
745
  tktNoCounter: z.ZodInt;
733
746
  lastSavedAt: z.ZodNullable<z.ZodInt>;
734
747
  lastModified: z.ZodNullable<z.ZodInt>;
748
+ version: z.ZodInt;
735
749
  createdAt: z.ZodInt;
736
750
  }, z.core.$strip>;
737
751
  type CompanyState = z.infer<typeof CompanyState>;
@@ -760,7 +774,7 @@ declare const MiniCompanyUser: z.ZodObject<{
760
774
  }>;
761
775
  appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
762
776
  lastActive: z.ZodNullable<z.ZodInt>;
763
- inviteSent: z.ZodNullable<z.ZodInt>;
777
+ inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
764
778
  inviteAccepted: z.ZodNullable<z.ZodInt>;
765
779
  }, z.core.$strip>;
766
780
  type MiniCompanyUser = z.infer<typeof MiniCompanyUser>;
@@ -790,7 +804,7 @@ declare const CompanyUser: z.ZodObject<{
790
804
  active: "active";
791
805
  inactive: "inactive";
792
806
  }>;
793
- inviteSent: z.ZodNullable<z.ZodInt>;
807
+ inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
794
808
  appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
795
809
  lastActive: z.ZodNullable<z.ZodInt>;
796
810
  inviteAccepted: z.ZodNullable<z.ZodInt>;
@@ -809,71 +823,6 @@ declare const CompanyInviteList: z.ZodRecord<z.ZodEmail, z.ZodObject<{
809
823
  }, z.core.$strip>>;
810
824
  type CompanyInviteList = z.infer<typeof CompanyInviteList>;
811
825
 
812
- declare const PriceAdjustment: z.ZodObject<{
813
- createdAt: z.ZodReadonly<z.ZodInt>;
814
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
815
- description: z.ZodOptional<z.ZodString>;
816
- fixedAmount: z.ZodObject<{
817
- value: z.ZodNumber;
818
- currency: z.ZodEnum<{
819
- JMD: "JMD";
820
- USD: "USD";
821
- EUR: "EUR";
822
- GBP: "GBP";
823
- CAD: "CAD";
824
- }>;
825
- }, z.core.$strip>;
826
- percentage: z.ZodNumber;
827
- isOptional: z.ZodBoolean;
828
- }, z.core.$strip>;
829
- type PriceAdjustment = z.infer<typeof PriceAdjustment>;
830
- declare const PriceTag: z.ZodObject<{
831
- createdAt: z.ZodReadonly<z.ZodInt>;
832
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
833
- uid: z.ZodUUID;
834
- item: z.ZodString;
835
- cost: z.ZodNumber;
836
- currency: z.ZodEnum<{
837
- JMD: "JMD";
838
- USD: "USD";
839
- EUR: "EUR";
840
- GBP: "GBP";
841
- CAD: "CAD";
842
- }>;
843
- }, z.core.$strip>;
844
- type PriceTag = z.infer<typeof PriceTag>;
845
- declare const Receipts: z.ZodArray<z.ZodObject<{
846
- createdAt: z.ZodReadonly<z.ZodInt>;
847
- currency: z.ZodEnum<{
848
- JMD: "JMD";
849
- USD: "USD";
850
- EUR: "EUR";
851
- GBP: "GBP";
852
- CAD: "CAD";
853
- }>;
854
- item: z.ZodString;
855
- cost: z.ZodNumber;
856
- }, z.core.$strip>>;
857
-
858
- declare const ClientIdentity: z.ZodObject<{
859
- createdAt: z.ZodReadonly<z.ZodInt>;
860
- lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
861
- _id: z.ZodUUID;
862
- email: z.ZodEmail;
863
- phoneNumber: z.ZodOptional<z.ZodString>;
864
- name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
865
- photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
866
- linked: z.ZodBoolean;
867
- dob: z.ZodOptional<z.ZodInt>;
868
- address: z.ZodOptional<z.ZodObject<{
869
- streetAddress: z.ZodString;
870
- city: z.ZodOptional<z.ZodString>;
871
- parish: z.ZodString;
872
- country: z.ZodString;
873
- }, z.core.$strip>>;
874
- }, z.core.$strip>;
875
- type ClientIdentity = z.infer<typeof ClientIdentity>;
876
-
877
826
  declare const TierList: z.ZodRecord<z.ZodEnum<{
878
827
  basic: "basic";
879
828
  pro: "pro";
@@ -970,9 +919,76 @@ declare const MedicalDetails: z.ZodObject<{
970
919
  }, z.core.$strip>;
971
920
  type MedicalDetails = z.infer<typeof MedicalDetails>;
972
921
 
922
+ declare const InvoiceNo: z.ZodString;
923
+ declare const StandardTime: z.ZodString;
924
+ declare const Timestamp: z.ZodInt;
925
+ declare const InviteResponse: z.ZodEnum<{
926
+ accepted: "accepted";
927
+ declined: "declined";
928
+ }>;
929
+ type InviteResponse = z.infer<typeof InviteResponse>;
930
+ declare const TimeLog: z.ZodObject<{
931
+ createdAt: z.ZodReadonly<z.ZodInt>;
932
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
933
+ }, z.core.$strip>;
934
+ type TimeLog = z.infer<typeof TimeLog>;
935
+ declare const TicketNo: z.ZodReadonly<z.ZodInt>;
936
+ declare const Reason: z.ZodObject<{
937
+ value: z.ZodString;
938
+ lastModified: z.ZodInt;
939
+ }, z.core.$strip>;
940
+ declare const Version: z.ZodInt;
941
+
942
+ declare const PriceAdjustment: z.ZodObject<{
943
+ createdAt: z.ZodReadonly<z.ZodInt>;
944
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
945
+ description: z.ZodOptional<z.ZodString>;
946
+ fixedAmount: z.ZodObject<{
947
+ value: z.ZodNumber;
948
+ currency: z.ZodEnum<{
949
+ JMD: "JMD";
950
+ USD: "USD";
951
+ EUR: "EUR";
952
+ GBP: "GBP";
953
+ CAD: "CAD";
954
+ }>;
955
+ }, z.core.$strip>;
956
+ percentage: z.ZodNumber;
957
+ isOptional: z.ZodBoolean;
958
+ }, z.core.$strip>;
959
+ type PriceAdjustment = z.infer<typeof PriceAdjustment>;
960
+ declare const PriceTag: z.ZodObject<{
961
+ createdAt: z.ZodReadonly<z.ZodInt>;
962
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
963
+ uid: z.ZodUUID;
964
+ item: z.ZodString;
965
+ cost: z.ZodNumber;
966
+ currency: z.ZodEnum<{
967
+ JMD: "JMD";
968
+ USD: "USD";
969
+ EUR: "EUR";
970
+ GBP: "GBP";
971
+ CAD: "CAD";
972
+ }>;
973
+ }, z.core.$strip>;
974
+ type PriceTag = z.infer<typeof PriceTag>;
975
+ declare const Receipts: z.ZodArray<z.ZodObject<{
976
+ createdAt: z.ZodReadonly<z.ZodInt>;
977
+ currency: z.ZodEnum<{
978
+ JMD: "JMD";
979
+ USD: "USD";
980
+ EUR: "EUR";
981
+ GBP: "GBP";
982
+ CAD: "CAD";
983
+ }>;
984
+ item: z.ZodString;
985
+ cost: z.ZodNumber;
986
+ }, z.core.$strip>>;
987
+
973
988
  declare const UserDetails: z.ZodObject<{
974
989
  createdAt: z.ZodReadonly<z.ZodInt>;
975
990
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
991
+ version: z.ZodInt;
976
992
  _id: z.ZodUUID;
977
993
  email: z.ZodEmail;
978
994
  phoneNumber: z.ZodOptional<z.ZodString>;
@@ -992,28 +1008,28 @@ declare const UserDetails: z.ZodObject<{
992
1008
  }, z.core.$strip>;
993
1009
  createdAt: z.ZodInt;
994
1010
  }, z.core.$strip>>;
995
- linked: z.ZodBoolean;
996
1011
  }, z.core.$strip>;
997
1012
  type UserDetails = z.infer<typeof UserDetails>;
998
1013
 
999
- declare const InvoiceNo: z.ZodString;
1000
- declare const StandardTime: z.ZodString;
1001
- declare const Timestamp: z.ZodInt;
1002
- declare const InviteResponse: z.ZodEnum<{
1003
- accepted: "accepted";
1004
- declined: "declined";
1005
- }>;
1006
- type InviteResponse = z.infer<typeof InviteResponse>;
1007
- declare const TimeLog: z.ZodObject<{
1014
+ declare const ClientIdentity: z.ZodObject<{
1008
1015
  createdAt: z.ZodReadonly<z.ZodInt>;
1009
1016
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1017
+ version: z.ZodInt;
1018
+ _id: z.ZodUUID;
1019
+ phoneNumber: z.ZodOptional<z.ZodString>;
1020
+ name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1021
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1022
+ email: z.ZodOptional<z.ZodEmail>;
1023
+ dob: z.ZodOptional<z.ZodInt>;
1024
+ address: z.ZodOptional<z.ZodObject<{
1025
+ streetAddress: z.ZodString;
1026
+ city: z.ZodOptional<z.ZodString>;
1027
+ parish: z.ZodString;
1028
+ country: z.ZodString;
1029
+ }, z.core.$strip>>;
1030
+ linkedTo: z.ZodOptional<z.ZodUUID>;
1010
1031
  }, z.core.$strip>;
1011
- type TimeLog = z.infer<typeof TimeLog>;
1012
- declare const TicketNo: z.ZodReadonly<z.ZodInt>;
1013
- declare const Reason: z.ZodObject<{
1014
- value: z.ZodString;
1015
- lastModified: z.ZodInt;
1016
- }, z.core.$strip>;
1032
+ type ClientIdentity = z.infer<typeof ClientIdentity>;
1017
1033
 
1018
1034
  declare const MiniAppointmentDetails: z.ZodObject<{
1019
1035
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -1315,12 +1331,12 @@ declare const AppointmentDetails: z.ZodObject<{
1315
1331
  client: z.ZodObject<{
1316
1332
  createdAt: z.ZodReadonly<z.ZodInt>;
1317
1333
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1334
+ version: z.ZodInt;
1318
1335
  _id: z.ZodUUID;
1319
- email: z.ZodEmail;
1320
1336
  phoneNumber: z.ZodOptional<z.ZodString>;
1321
1337
  name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1322
1338
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1323
- linked: z.ZodBoolean;
1339
+ email: z.ZodOptional<z.ZodEmail>;
1324
1340
  dob: z.ZodOptional<z.ZodInt>;
1325
1341
  address: z.ZodOptional<z.ZodObject<{
1326
1342
  streetAddress: z.ZodString;
@@ -1328,6 +1344,7 @@ declare const AppointmentDetails: z.ZodObject<{
1328
1344
  parish: z.ZodString;
1329
1345
  country: z.ZodString;
1330
1346
  }, z.core.$strip>>;
1347
+ linkedTo: z.ZodOptional<z.ZodUUID>;
1331
1348
  }, z.core.$strip>;
1332
1349
  }, z.core.$strip>;
1333
1350
  type AppointmentDetails = z.infer<typeof AppointmentDetails>;
@@ -1481,12 +1498,12 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1481
1498
  client: z.ZodObject<{
1482
1499
  createdAt: z.ZodReadonly<z.ZodInt>;
1483
1500
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1501
+ version: z.ZodInt;
1484
1502
  _id: z.ZodUUID;
1485
- email: z.ZodEmail;
1486
1503
  phoneNumber: z.ZodOptional<z.ZodString>;
1487
1504
  name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1488
1505
  photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1489
- linked: z.ZodBoolean;
1506
+ email: z.ZodOptional<z.ZodEmail>;
1490
1507
  dob: z.ZodOptional<z.ZodInt>;
1491
1508
  address: z.ZodOptional<z.ZodObject<{
1492
1509
  streetAddress: z.ZodString;
@@ -1494,6 +1511,7 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1494
1511
  parish: z.ZodString;
1495
1512
  country: z.ZodString;
1496
1513
  }, z.core.$strip>>;
1514
+ linkedTo: z.ZodOptional<z.ZodUUID>;
1497
1515
  }, z.core.$strip>;
1498
1516
  _hash: z.ZodString;
1499
1517
  }, z.core.$strip>;
@@ -1584,6 +1602,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1584
1602
  tktNoCounter: number;
1585
1603
  lastSavedAt: number | null;
1586
1604
  lastModified: number | null;
1605
+ version: number;
1587
1606
  createdAt: number;
1588
1607
  };
1589
1608
  staffDetails: {
@@ -1601,12 +1620,12 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1601
1620
  lastModified: number | null;
1602
1621
  };
1603
1622
  status: "inviteSent" | "active" | "inactive";
1604
- inviteSent: number | null;
1605
1623
  appointments: Record<"ongoing" | "completed", number>;
1606
1624
  lastActive: number | null;
1607
1625
  inviteAccepted: number | null;
1608
1626
  phoneNumber?: string | undefined;
1609
1627
  photoUrl?: string | null | undefined;
1628
+ inviteSent?: number | null | undefined;
1610
1629
  }>;
1611
1630
  _id: string;
1612
1631
  partnerMap: Record<string, Record<string, {
@@ -1621,6 +1640,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1621
1640
  addedAt: number;
1622
1641
  } | undefined;
1623
1642
  }>;
1643
+ version: number;
1624
1644
  lastModified: number | null;
1625
1645
  };
1626
1646
  };
@@ -1689,13 +1709,13 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1689
1709
  };
1690
1710
  client: {
1691
1711
  createdAt: number;
1712
+ version: number;
1692
1713
  _id: string;
1693
- email: string;
1694
1714
  name: string;
1695
- linked: boolean;
1696
1715
  lastModified?: number | null | undefined;
1697
1716
  phoneNumber?: string | undefined;
1698
1717
  photoUrl?: string | null | undefined;
1718
+ email?: string | undefined;
1699
1719
  dob?: number | undefined;
1700
1720
  address?: {
1701
1721
  streetAddress: string;
@@ -1703,6 +1723,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1703
1723
  country: string;
1704
1724
  city?: string | undefined;
1705
1725
  } | undefined;
1726
+ linkedTo?: string | undefined;
1706
1727
  };
1707
1728
  _hash: string;
1708
1729
  lastModified?: number | null | undefined;
@@ -1788,12 +1809,12 @@ declare const findConflictingPartners: (...partners: (CompanyUser | MiniCompanyU
1788
1809
  lastModified: number | null;
1789
1810
  };
1790
1811
  status: "inviteSent" | "active" | "inactive";
1791
- inviteSent: number | null;
1792
1812
  appointments: Record<"ongoing" | "completed", number>;
1793
1813
  lastActive: number | null;
1794
1814
  inviteAccepted: number | null;
1795
1815
  phoneNumber?: string | undefined;
1796
1816
  photoUrl?: string | null | undefined;
1817
+ inviteSent?: number | null | undefined;
1797
1818
  } | {
1798
1819
  _id: string;
1799
1820
  roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
@@ -1808,8 +1829,8 @@ declare const findConflictingPartners: (...partners: (CompanyUser | MiniCompanyU
1808
1829
  status: "inviteSent" | "active" | "inactive";
1809
1830
  appointments: Record<"ongoing" | "completed", number>;
1810
1831
  lastActive: number | null;
1811
- inviteSent: number | null;
1812
1832
  inviteAccepted: number | null;
1833
+ inviteSent?: number | null | undefined;
1813
1834
  })[] | null;
1814
1835
  /**
1815
1836
  * @param {CompanyUserRole} role
@@ -1822,4 +1843,4 @@ declare function createNotifId(options?: {
1822
1843
  to: string;
1823
1844
  }): string;
1824
1845
 
1825
- export { AppointmentDetails, type AppointmentDistAlg, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CreditCurrency, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Vitals, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, getCompatibleRoles, healthcareProviderRoles, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
1846
+ export { AppointmentDetails, type AppointmentDistAlg, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CreditCurrency, type EmployeeRole, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, UserDetails, Version, Vitals, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, getCompatibleRoles, healthcareProviderRoles, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
package/dist/main.js CHANGED
@@ -47,11 +47,14 @@ var serviceProviders = z4.enum([
47
47
  // src/schemas/company/CompanyDetails.ts
48
48
  import * as z16 from "zod";
49
49
 
50
- // src/schemas/Billing.ts
50
+ // src/schemas/company/components/Billing.ts
51
+ import * as z8 from "zod";
52
+
53
+ // src/schemas/utils/billing.ts
51
54
  import { currencies } from "@wavy/util";
52
55
  import * as z6 from "zod";
53
56
 
54
- // src/schemas/utils.ts
57
+ // src/schemas/utils/core.ts
55
58
  import * as z5 from "zod";
56
59
  var InvoiceNo = z5.string().regex(
57
60
  /^[0-9]{4}-(01|(0[2-9])|(1[0-2]))-(30|31|([1-2][0-9])|0[1-9])-[0-9]{7}/,
@@ -78,8 +81,9 @@ var Reason = z5.object({
78
81
  value: z5.string().trim().max(150),
79
82
  lastModified: Timestamp
80
83
  });
84
+ var Version = z5.int().min(1);
81
85
 
82
- // src/schemas/Billing.ts
86
+ // src/schemas/utils/billing.ts
83
87
  var PriceAdjustment = z6.object({
84
88
  description: z6.string().trim().min(3, "A description must have atleast (3) characters.").max(25, "A description can't have more that (25) characters.").optional(),
85
89
  fixedAmount: z6.object({
@@ -102,9 +106,6 @@ var Receipts = z6.array(
102
106
  PriceTag.omit({ uid: true, lastModified: true })
103
107
  );
104
108
 
105
- // src/schemas/company/components/Billing.ts
106
- import * as z8 from "zod";
107
-
108
109
  // src/schemas/company/components/State.ts
109
110
  import * as z7 from "zod";
110
111
  var CompanyState = z7.object({
@@ -141,6 +142,7 @@ var CompanyState = z7.object({
141
142
  tktNoCounter: z7.int().min(1),
142
143
  lastSavedAt: Timestamp.nullable(),
143
144
  lastModified: Timestamp.nullable(),
145
+ version: Version,
144
146
  createdAt: Timestamp
145
147
  });
146
148
 
@@ -174,6 +176,7 @@ var CompanyBilling = z8.object({
174
176
  );
175
177
  }
176
178
  }),
179
+ version: Version,
177
180
  lastModified: Timestamp.nullable()
178
181
  });
179
182
  var MutableCompanyBilling = CompanyBilling.omit({
@@ -189,9 +192,9 @@ var CompanyIdentity = z9.object({
189
192
  alias: z9.string().trim().min(3).max(63).regex(/[a-z1-9 ]/gi).transform(
190
193
  (data) => data.replace(/[^a-z1-9 ]/gi, "").replace(/\s+/g, " ")
191
194
  ),
192
- logo: z9.string().max(150).nullish(),
193
- type: companyTypes.readonly(),
194
195
  address: Address,
196
+ logo: z9.string().nullish(),
197
+ type: companyTypes.readonly(),
195
198
  contact: z9.object({
196
199
  email: z9.email().max(25),
197
200
  phoneNumber: PhoneNumber.optional(),
@@ -209,6 +212,7 @@ var CompanyIdentity = z9.object({
209
212
  trn: z9.string().regex(/[0-9]{3}-[0-9]{3}-[0-9]{3}/).nullish(),
210
213
  gctRegNo: z9.string().max(15).nullish()
211
214
  }).optional(),
215
+ version: Version,
212
216
  lastModified: Timestamp.nullable()
213
217
  }).superRefine((data, ctx) => {
214
218
  const hasLegalInfo = "legal" in data;
@@ -352,6 +356,7 @@ var CompanyPreferences = z12.object({
352
356
  * @property LOR (Least Outstanding Requests): Distribute based on availability.
353
357
  */
354
358
  apptDistAlg: appointmentDistAlgs.default("RR"),
359
+ version: Version,
355
360
  lastModified: Timestamp.nullable()
356
361
  }).refine(
357
362
  (data) => !data.enforcePaidAppointments || data.enforcePaidAppointments && data.serviceSelector === "scheduler",
@@ -369,7 +374,7 @@ import * as z15 from "zod";
369
374
  import { UserModel as UserModel2 } from "@wavy/util";
370
375
  import * as z14 from "zod";
371
376
 
372
- // src/schemas/User.ts
377
+ // src/schemas/profiles/User.ts
373
378
  import { UserModel } from "@wavy/util";
374
379
  import * as z13 from "zod";
375
380
  var UserDetails = z13.object({
@@ -392,8 +397,7 @@ var UserDetails = z13.object({
392
397
  email: UserModel.shape.email,
393
398
  publicKey: z13.string().nullable(),
394
399
  notifications: z13.array(Notification),
395
- /** Only true when linked to a client */
396
- linked: z13.boolean(),
400
+ version: Version,
397
401
  ...TimeLog.shape
398
402
  }).omit({ uid: true });
399
403
 
@@ -453,7 +457,7 @@ var MiniCompanyUser2 = z14.object({
453
457
  status: z14.enum(["inviteSent", "active", "inactive"]),
454
458
  appointments: z14.record(z14.literal(["ongoing", "completed"]), z14.int().min(0)),
455
459
  lastActive: Timestamp.nullable(),
456
- inviteSent: Timestamp.nullable(),
460
+ inviteSent: Timestamp.nullish(),
457
461
  inviteAccepted: Timestamp.nullable()
458
462
  }).superRefine((data, ctx) => {
459
463
  if (!data.isAvailable && data.status !== "active") {
@@ -501,6 +505,7 @@ var MiniRawCompanyStaff = z15.object({
501
505
  })
502
506
  }).partial()
503
507
  ),
508
+ version: Version,
504
509
  lastModified: Timestamp.nullable()
505
510
  });
506
511
  var RawCompanyStaff = z15.object({
@@ -599,54 +604,57 @@ var CompanyInviteList = z17.record(
599
604
  "Insufficient amount of members invited."
600
605
  );
601
606
 
602
- // src/schemas/appointment/components/Client.ts
607
+ // src/schemas/appointment/components/Medical.ts
603
608
  import * as z18 from "zod";
604
- import { Address as Address2 } from "@wavy/util";
605
- var ClientIdentity = UserDetails.omit({
606
- notifications: true,
607
- publicKey: true
608
- }).safeExtend(
609
- z18.object({
610
- dob: Timestamp.optional(),
611
- address: Address2.optional()
612
- }).shape
613
- );
614
-
615
- // src/schemas/appointment/components/payload/Medical.ts
616
- import * as z19 from "zod";
617
- var Vitals = z19.record(
609
+ var Vitals = z18.record(
618
610
  vitalKeys,
619
- z19.object({
620
- value: z19.string().trim().regex(/^\d{0,3}((\/|\.)\d{1,3})?/),
611
+ z18.object({
612
+ value: z18.string().trim().regex(/^\d{0,3}((\/|\.)\d{1,3})?/),
621
613
  lastModified: Timestamp.nullable()
622
614
  })
623
615
  );
624
- var Medicine = z19.object({
625
- brand: z19.string().trim(),
616
+ var Medicine = z18.object({
617
+ brand: z18.string().trim(),
626
618
  expiresAt: Timestamp.nullish(),
627
- quantity: z19.string().trim().regex(/^\d+(\.\d{1,3})? ?[a-zA-Z]{1,20}/, {
619
+ quantity: z18.string().trim().regex(/^\d+(\.\d{1,3})? ?[a-zA-Z]{1,20}/, {
628
620
  error: "Failed to match the pattern <number>+(.<number>{1,3})? ?[a-zA-Z]{1,20}"
629
621
  }),
630
- refills: z19.string().trim().regex(/^[0-8]/, { error: "Must be between 0 and 8" }),
631
- directions: z19.string().trim().max(100, { error: "Must be 100 characters or less" }),
622
+ refills: z18.string().trim().regex(/^[0-8]/, { error: "Must be between 0 and 8" }),
623
+ directions: z18.string().trim().max(100, { error: "Must be 100 characters or less" }),
632
624
  ...TimeLog.shape
633
625
  });
634
- var MedicalDetails = z19.object({
626
+ var MedicalDetails = z18.object({
635
627
  vitals: Vitals,
636
- prescriptions: z19.array(z19.array(Medicine)).nullish(),
637
- doctorNote: z19.object({
638
- value: z19.string(),
628
+ prescriptions: z18.array(z18.array(Medicine)).nullish(),
629
+ doctorNote: z18.object({
630
+ value: z18.string(),
639
631
  lastModified: Timestamp.nullable()
640
632
  }),
641
- physAsstNotes: z19.array(
642
- z19.object({
643
- title: z19.string(),
644
- content: z19.string(),
633
+ physAsstNotes: z18.array(
634
+ z18.object({
635
+ title: z18.string(),
636
+ content: z18.string(),
645
637
  ...TimeLog.shape
646
638
  })
647
639
  ).optional()
648
640
  });
649
641
 
642
+ // src/schemas/profiles/Client.ts
643
+ import * as z19 from "zod";
644
+ import { Address as Address2 } from "@wavy/util";
645
+ var ClientIdentity = UserDetails.omit({
646
+ notifications: true,
647
+ publicKey: true,
648
+ email: true
649
+ }).safeExtend(
650
+ z19.object({
651
+ email: UserDetails.shape.email.optional(),
652
+ dob: Timestamp.optional(),
653
+ address: Address2.optional(),
654
+ linkedTo: UserDetails.shape._id.optional()
655
+ }).shape
656
+ );
657
+
650
658
  // src/schemas/appointment/Appointment.ts
651
659
  import * as z20 from "zod";
652
660
  var TimelineActivity = z20.object({
@@ -958,6 +966,7 @@ export {
958
966
  TimeLog,
959
967
  Timestamp,
960
968
  UserDetails,
969
+ Version,
961
970
  Vitals,
962
971
  appointmentDistAlgs,
963
972
  companyPartnerRoles,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizmap/sdk",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "main": "./dist/main.js",
5
5
  "types": "./dist/main.d.ts",
6
6
  "type": "module",