@bizmap/sdk 0.0.132 → 0.0.134

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 +195 -166
  2. package/dist/main.js +281 -246
  3. package/package.json +2 -2
package/dist/main.d.ts CHANGED
@@ -73,10 +73,13 @@ declare const CompanyDetails: z.ZodObject<{
73
73
  identity: z.ZodObject<{
74
74
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
75
75
  lastModified: z.ZodOptional<z.ZodISODateTime>;
76
+ email: z.ZodEmail;
77
+ phoneNumber: z.ZodOptional<z.ZodString>;
78
+ ownerId: z.ZodUUID;
76
79
  address: z.ZodObject<{
77
80
  streetAddress: z.ZodString;
78
81
  city: z.ZodOptional<z.ZodString>;
79
- parish: z.ZodString;
82
+ state: z.ZodString;
80
83
  country: z.ZodString;
81
84
  }, z.core.$strip>;
82
85
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -85,8 +88,6 @@ declare const CompanyDetails: z.ZodObject<{
85
88
  healthcare: "healthcare";
86
89
  }>;
87
90
  sector: z.ZodString;
88
- email: z.ZodEmail;
89
- phoneNumber: z.ZodOptional<z.ZodString>;
90
91
  emailVerified: z.ZodBoolean;
91
92
  verified: z.ZodBoolean;
92
93
  legal: z.ZodOptional<z.ZodObject<{
@@ -98,14 +99,11 @@ declare const CompanyDetails: z.ZodObject<{
98
99
  state: z.ZodObject<{
99
100
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
100
101
  lastModified: z.ZodOptional<z.ZodISODateTime>;
102
+ ownerId: z.ZodUUID;
101
103
  credits: z.ZodObject<{
102
104
  current: z.ZodNumber;
103
105
  lastModified: z.ZodOptional<z.ZodISODateTime>;
104
106
  }, z.core.$strip>;
105
- usedStorageInBytes: z.ZodObject<{
106
- current: z.ZodNumber;
107
- lastModified: z.ZodOptional<z.ZodISODateTime>;
108
- }, z.core.$strip>;
109
107
  tierId: z.ZodObject<{
110
108
  current: z.ZodString;
111
109
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -118,6 +116,7 @@ declare const CompanyDetails: z.ZodObject<{
118
116
  preference: z.ZodObject<{
119
117
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
120
118
  lastModified: z.ZodOptional<z.ZodISODateTime>;
119
+ ownerId: z.ZodUUID;
121
120
  serviceSelector: z.ZodEnum<{
122
121
  scheduler: "scheduler";
123
122
  doctor: "doctor";
@@ -132,6 +131,7 @@ declare const CompanyDetails: z.ZodObject<{
132
131
  billing: z.ZodObject<{
133
132
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
134
133
  lastModified: z.ZodOptional<z.ZodISODateTime>;
134
+ ownerId: z.ZodUUID;
135
135
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
136
136
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
137
137
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -184,6 +184,7 @@ declare const CompanyDetails: z.ZodObject<{
184
184
  staff: z.ZodObject<{
185
185
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
186
186
  lastModified: z.ZodOptional<z.ZodISODateTime>;
187
+ ownerId: z.ZodUUID;
187
188
  members: z.ZodRecord<z.ZodUUID, z.ZodObject<{
188
189
  invitedAt: z.ZodOptional<z.ZodISODateTime>;
189
190
  joinedAt: z.ZodISODateTime;
@@ -228,11 +229,12 @@ declare const _CompanyDetails: z.ZodObject<{
228
229
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
229
230
  lastModified: z.ZodOptional<z.ZodISODateTime>;
230
231
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
232
+ ownerId: z.ZodUUID;
231
233
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
232
234
  address: z.ZodObject<{
233
235
  streetAddress: z.ZodString;
234
236
  city: z.ZodOptional<z.ZodString>;
235
- parish: z.ZodString;
237
+ state: z.ZodString;
236
238
  country: z.ZodString;
237
239
  }, z.core.$strip>;
238
240
  logo: z.ZodOptional<z.ZodString>;
@@ -254,14 +256,11 @@ declare const _CompanyDetails: z.ZodObject<{
254
256
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
255
257
  lastModified: z.ZodOptional<z.ZodISODateTime>;
256
258
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
259
+ ownerId: z.ZodUUID;
257
260
  credits: z.ZodObject<{
258
261
  current: z.ZodNumber;
259
262
  lastModified: z.ZodOptional<z.ZodISODateTime>;
260
263
  }, z.core.$strip>;
261
- usedStorageInBytes: z.ZodObject<{
262
- current: z.ZodNumber;
263
- lastModified: z.ZodOptional<z.ZodISODateTime>;
264
- }, z.core.$strip>;
265
264
  tierId: z.ZodObject<{
266
265
  current: z.ZodString;
267
266
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -275,6 +274,7 @@ declare const _CompanyDetails: z.ZodObject<{
275
274
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
276
275
  lastModified: z.ZodOptional<z.ZodISODateTime>;
277
276
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
277
+ ownerId: z.ZodUUID;
278
278
  serviceSelector: z.ZodEnum<{
279
279
  scheduler: "scheduler";
280
280
  doctor: "doctor";
@@ -290,6 +290,7 @@ declare const _CompanyDetails: z.ZodObject<{
290
290
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
291
291
  lastModified: z.ZodOptional<z.ZodISODateTime>;
292
292
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
293
+ ownerId: z.ZodUUID;
293
294
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
294
295
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
295
296
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -343,6 +344,7 @@ declare const _CompanyDetails: z.ZodObject<{
343
344
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
344
345
  lastModified: z.ZodOptional<z.ZodISODateTime>;
345
346
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
347
+ ownerId: z.ZodUUID;
346
348
  members: z.ZodRecord<z.ZodUUID, z.ZodObject<{
347
349
  invitedAt: z.ZodOptional<z.ZodISODateTime>;
348
350
  joinedAt: z.ZodISODateTime;
@@ -387,7 +389,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
387
389
  address: z.ZodOptional<z.ZodObject<{
388
390
  streetAddress: z.ZodString;
389
391
  city: z.ZodOptional<z.ZodString>;
390
- parish: z.ZodString;
392
+ state: z.ZodString;
391
393
  country: z.ZodString;
392
394
  }, z.core.$strip>>;
393
395
  alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -395,6 +397,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
395
397
  }, z.core.$strip>>;
396
398
  preferences: z.ZodOptional<z.ZodObject<{
397
399
  createdAt: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
400
+ ownerId: z.ZodOptional<z.ZodUUID>;
398
401
  serviceSelector: z.ZodOptional<z.ZodEnum<{
399
402
  scheduler: "scheduler";
400
403
  doctor: "doctor";
@@ -409,6 +412,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
409
412
  billing: z.ZodOptional<z.ZodObject<{
410
413
  createdAt: z.ZodOptional<z.ZodReadonly<z.ZodISODateTime>>;
411
414
  _id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
415
+ ownerId: z.ZodOptional<z.ZodUUID>;
412
416
  additionalFees: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
413
417
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
414
418
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -487,6 +491,7 @@ declare const CompanyBilling: z.ZodObject<{
487
491
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
488
492
  lastModified: z.ZodOptional<z.ZodISODateTime>;
489
493
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
494
+ ownerId: z.ZodUUID;
490
495
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
491
496
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
492
497
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -540,6 +545,7 @@ type CompanyBilling = z.infer<typeof CompanyBilling>;
540
545
  declare const MutableCompanyBilling: z.ZodObject<{
541
546
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
542
547
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
548
+ ownerId: z.ZodUUID;
543
549
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
544
550
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
545
551
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -595,11 +601,12 @@ declare const CompanyIdentity: z.ZodObject<{
595
601
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
596
602
  lastModified: z.ZodOptional<z.ZodISODateTime>;
597
603
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
604
+ ownerId: z.ZodUUID;
598
605
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
599
606
  address: z.ZodObject<{
600
607
  streetAddress: z.ZodString;
601
608
  city: z.ZodOptional<z.ZodString>;
602
- parish: z.ZodString;
609
+ state: z.ZodString;
603
610
  country: z.ZodString;
604
611
  }, z.core.$strip>;
605
612
  logo: z.ZodOptional<z.ZodString>;
@@ -622,7 +629,7 @@ declare const MutableCompanyIdentity: z.ZodObject<{
622
629
  address: z.ZodObject<{
623
630
  streetAddress: z.ZodString;
624
631
  city: z.ZodOptional<z.ZodString>;
625
- parish: z.ZodString;
632
+ state: z.ZodString;
626
633
  country: z.ZodString;
627
634
  }, z.core.$strip>;
628
635
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -649,6 +656,7 @@ declare const CompanyPreference: z.ZodObject<{
649
656
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
650
657
  lastModified: z.ZodOptional<z.ZodISODateTime>;
651
658
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
659
+ ownerId: z.ZodUUID;
652
660
  serviceSelector: z.ZodEnum<{
653
661
  scheduler: "scheduler";
654
662
  doctor: "doctor";
@@ -663,6 +671,7 @@ declare const CompanyPreference: z.ZodObject<{
663
671
  type CompanyPreference = z.infer<typeof CompanyPreference>;
664
672
  declare const MutableCompanyPreferences: z.ZodObject<{
665
673
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
674
+ ownerId: z.ZodUUID;
666
675
  serviceSelector: z.ZodEnum<{
667
676
  scheduler: "scheduler";
668
677
  doctor: "doctor";
@@ -689,6 +698,7 @@ declare const CompanyStaff: z.ZodObject<{
689
698
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
690
699
  lastModified: z.ZodOptional<z.ZodISODateTime>;
691
700
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
701
+ ownerId: z.ZodUUID;
692
702
  members: z.ZodRecord<z.ZodUUID, z.ZodObject<{
693
703
  invitedAt: z.ZodOptional<z.ZodISODateTime>;
694
704
  joinedAt: z.ZodISODateTime;
@@ -755,14 +765,11 @@ declare const CompanyState: z.ZodObject<{
755
765
  createdAt: z.ZodReadonly<z.ZodISODateTime>;
756
766
  lastModified: z.ZodOptional<z.ZodISODateTime>;
757
767
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
768
+ ownerId: z.ZodUUID;
758
769
  credits: z.ZodObject<{
759
770
  current: z.ZodNumber;
760
771
  lastModified: z.ZodOptional<z.ZodISODateTime>;
761
772
  }, z.core.$strip>;
762
- usedStorageInBytes: z.ZodObject<{
763
- current: z.ZodNumber;
764
- lastModified: z.ZodOptional<z.ZodISODateTime>;
765
- }, z.core.$strip>;
766
773
  tierId: z.ZodObject<{
767
774
  current: z.ZodString;
768
775
  lastModified: z.ZodOptional<z.ZodISODateTime>;
@@ -807,7 +814,7 @@ declare const ClientDetails: z.ZodObject<{
807
814
  address: z.ZodOptional<z.ZodObject<{
808
815
  streetAddress: z.ZodString;
809
816
  city: z.ZodOptional<z.ZodString>;
810
- parish: z.ZodString;
817
+ state: z.ZodString;
811
818
  country: z.ZodString;
812
819
  }, z.core.$strip>>;
813
820
  linkedTo: z.ZodOptional<z.ZodUUID>;
@@ -827,11 +834,13 @@ declare const ClientForm: z.ZodObject<{
827
834
  type ClientForm = z.infer<typeof ClientForm>;
828
835
 
829
836
  declare const CreateCompanyForm: z.ZodObject<{
837
+ email: z.ZodEmail;
830
838
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
839
+ phoneNumber: z.ZodOptional<z.ZodString>;
831
840
  address: z.ZodObject<{
832
841
  streetAddress: z.ZodString;
833
842
  city: z.ZodOptional<z.ZodString>;
834
- parish: z.ZodString;
843
+ state: z.ZodString;
835
844
  country: z.ZodString;
836
845
  }, z.core.$strip>;
837
846
  logo: z.ZodOptional<z.ZodString>;
@@ -839,8 +848,6 @@ declare const CreateCompanyForm: z.ZodObject<{
839
848
  healthcare: "healthcare";
840
849
  }>;
841
850
  sector: z.ZodString;
842
- email: z.ZodEmail;
843
- phoneNumber: z.ZodOptional<z.ZodString>;
844
851
  alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
845
852
  }, z.core.$strip>;
846
853
  type CreateCompanyForm = z.infer<typeof CreateCompanyForm>;
@@ -885,61 +892,6 @@ declare const CompanySession: z.ZodObject<{
885
892
  }, z.core.$strip>;
886
893
  type CompanySession = z.infer<typeof CompanySession>;
887
894
 
888
- declare const COMPANY_USER_RELATIONSHIP: Partial<Record<CompanyUserRole, CompanyUserRole[]>>;
889
-
890
- declare const TierList: z.ZodRecord<z.ZodEnum<{
891
- basic: "basic";
892
- pro: "pro";
893
- premium: "premium";
894
- gold: "gold";
895
- }>, z.ZodObject<{
896
- cost: z.ZodNumber;
897
- perks: z.ZodArray<z.ZodString>;
898
- }, z.core.$strip>>;
899
- type TierList = z.infer<typeof TierList>;
900
- declare const Notification: z.ZodObject<{
901
- _id: z.ZodString;
902
- code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
903
- payload: z.ZodString;
904
- isArchived: z.ZodOptional<z.ZodBoolean>;
905
- rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
906
- src: z.ZodObject<{
907
- _id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
908
- name: z.ZodString;
909
- photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
- }, z.core.$strip>;
911
- createdAt: z.ZodISODateTime;
912
- }, z.core.$strip>;
913
- type Notification = z.infer<typeof Notification>;
914
- declare const CreditCurrency: z.ZodObject<{
915
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
916
- lastModified: z.ZodOptional<z.ZodISODateTime>;
917
- uid: z.ZodUUID;
918
- cost: z.ZodObject<{
919
- value: z.ZodNumber;
920
- currency: z.ZodEnum<{
921
- JMD: "JMD";
922
- }>;
923
- }, z.core.$strip>;
924
- value: z.ZodInt;
925
- }, z.core.$strip>;
926
- type CreditCurrency = z.infer<typeof CreditCurrency>;
927
- declare const PaymentDetails: z.ZodObject<{
928
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
929
- lastModified: z.ZodOptional<z.ZodISODateTime>;
930
- uid: z.ZodUUID;
931
- method: z.ZodEnum<{
932
- cash: "cash";
933
- card: "card";
934
- insurance: "insurance";
935
- }>;
936
- currency: z.ZodEnum<{
937
- JMD: "JMD";
938
- }>;
939
- amount: z.ZodNumber;
940
- }, z.core.$strip>;
941
- type PaymentDetails = z.infer<typeof PaymentDetails>;
942
-
943
895
  declare const Vitals: z.ZodRecord<z.ZodEnum<{
944
896
  heartRate: "heartRate";
945
897
  respiratoryRate: "respiratoryRate";
@@ -994,93 +946,6 @@ declare const MedicalDetails: z.ZodObject<{
994
946
  }, z.core.$strip>;
995
947
  type MedicalDetails = z.infer<typeof MedicalDetails>;
996
948
 
997
- declare const InvoiceNo: z.ZodString;
998
- declare const Trn: z.ZodString;
999
- declare const StandardTime: z.ZodString;
1000
- declare const Timestamp: z.ZodISODateTime;
1001
- declare const InviteResponse: z.ZodEnum<{
1002
- accepted: "accepted";
1003
- declined: "declined";
1004
- }>;
1005
- type InviteResponse = z.infer<typeof InviteResponse>;
1006
- declare const TimeLog: z.ZodObject<{
1007
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1008
- lastModified: z.ZodOptional<z.ZodISODateTime>;
1009
- }, z.core.$strip>;
1010
- type TimeLog = z.infer<typeof TimeLog>;
1011
- declare const TicketNo: z.ZodReadonly<z.ZodInt>;
1012
- declare const Reason: z.ZodObject<{
1013
- value: z.ZodString;
1014
- lastModified: z.ZodISODateTime;
1015
- }, z.core.$strip>;
1016
- declare const AlphaNumeric: z.ZodString;
1017
-
1018
- declare const PriceMod: z.ZodObject<{
1019
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1020
- lastModified: z.ZodOptional<z.ZodISODateTime>;
1021
- description: z.ZodString;
1022
- fixedAmount: z.ZodObject<{
1023
- value: z.ZodNumber;
1024
- currency: z.ZodEnum<{
1025
- JMD: "JMD";
1026
- }>;
1027
- }, z.core.$strip>;
1028
- percentage: z.ZodNumber;
1029
- isOptional: z.ZodBoolean;
1030
- }, z.core.$strip>;
1031
- type PriceMod = z.infer<typeof PriceMod>;
1032
- declare const PriceModList: z.ZodRecord<z.ZodUUID, z.ZodObject<{
1033
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1034
- lastModified: z.ZodOptional<z.ZodISODateTime>;
1035
- description: z.ZodString;
1036
- fixedAmount: z.ZodObject<{
1037
- value: z.ZodNumber;
1038
- currency: z.ZodEnum<{
1039
- JMD: "JMD";
1040
- }>;
1041
- }, z.core.$strip>;
1042
- percentage: z.ZodNumber;
1043
- isOptional: z.ZodBoolean;
1044
- }, z.core.$strip>>;
1045
- type PriceModList = z.infer<typeof PriceModList>;
1046
- declare const PriceTag: z.ZodObject<{
1047
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1048
- lastModified: z.ZodOptional<z.ZodISODateTime>;
1049
- uid: z.ZodUUID;
1050
- item: z.ZodString;
1051
- cost: z.ZodNumber;
1052
- currency: z.ZodEnum<{
1053
- JMD: "JMD";
1054
- }>;
1055
- }, z.core.$strip>;
1056
- type PriceTag = z.infer<typeof PriceTag>;
1057
- declare const Receipts: z.ZodArray<z.ZodObject<{
1058
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1059
- currency: z.ZodEnum<{
1060
- JMD: "JMD";
1061
- }>;
1062
- item: z.ZodString;
1063
- cost: z.ZodNumber;
1064
- }, z.core.$strip>>;
1065
-
1066
- declare const UserDetails: z.ZodObject<{
1067
- createdAt: z.ZodReadonly<z.ZodISODateTime>;
1068
- lastModified: z.ZodOptional<z.ZodISODateTime>;
1069
- _id: z.ZodUUID;
1070
- email: z.ZodEmail;
1071
- phoneNumber: z.ZodOptional<z.ZodString>;
1072
- name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1073
- publicKey: z.ZodOptional<z.ZodString>;
1074
- availableStorageInBytes: z.ZodOptional<z.ZodNumber>;
1075
- lastSignedIn: z.ZodObject<{
1076
- auto: z.ZodOptional<z.ZodISODateTime>;
1077
- manual: z.ZodOptional<z.ZodISODateTime>;
1078
- }, z.core.$strip>;
1079
- companyIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1080
- photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1081
- }, z.core.$strip>;
1082
- type UserDetails = z.infer<typeof UserDetails>;
1083
-
1084
949
  declare const ServiceSeverity: z.ZodObject<{
1085
950
  "1": z.ZodLiteral<"Emergency">;
1086
951
  "2": z.ZodLiteral<"Important">;
@@ -1361,6 +1226,170 @@ declare const MutableServiceDetails: z.ZodObject<{
1361
1226
  }, z.core.$strip>;
1362
1227
  type MutableServiceDetails = z.infer<typeof MutableServiceDetails>;
1363
1228
 
1229
+ declare const COMPANY_USER_RELATIONSHIP: Partial<Record<CompanyUserRole, CompanyUserRole[]>>;
1230
+
1231
+ declare const TierList: z.ZodRecord<z.ZodEnum<{
1232
+ basic: "basic";
1233
+ pro: "pro";
1234
+ premium: "premium";
1235
+ gold: "gold";
1236
+ }>, z.ZodObject<{
1237
+ cost: z.ZodNumber;
1238
+ perks: z.ZodArray<z.ZodString>;
1239
+ }, z.core.$strip>>;
1240
+ type TierList = z.infer<typeof TierList>;
1241
+ declare const Notification: z.ZodObject<{
1242
+ _id: z.ZodString;
1243
+ code: z.ZodLiteral<"INVITE_RESPONSE" | "COMPANY_INVITE" | "DEV_MESSAGE" | "ALERT">;
1244
+ payload: z.ZodString;
1245
+ isArchived: z.ZodOptional<z.ZodBoolean>;
1246
+ rcpt: z.ZodNullable<z.ZodUnion<[z.ZodUUID, z.ZodUUID]>>;
1247
+ src: z.ZodObject<{
1248
+ _id: z.ZodUnion<[z.ZodUUID, z.ZodUUID]>;
1249
+ name: z.ZodString;
1250
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1251
+ }, z.core.$strip>;
1252
+ createdAt: z.ZodISODateTime;
1253
+ }, z.core.$strip>;
1254
+ type Notification = z.infer<typeof Notification>;
1255
+ declare const CreditCurrency: z.ZodObject<{
1256
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1257
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1258
+ uid: z.ZodUUID;
1259
+ cost: z.ZodObject<{
1260
+ value: z.ZodNumber;
1261
+ currency: z.ZodEnum<{
1262
+ JMD: "JMD";
1263
+ }>;
1264
+ }, z.core.$strip>;
1265
+ value: z.ZodInt;
1266
+ }, z.core.$strip>;
1267
+ type CreditCurrency = z.infer<typeof CreditCurrency>;
1268
+ declare const PaymentDetails: z.ZodObject<{
1269
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1270
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1271
+ uid: z.ZodUUID;
1272
+ method: z.ZodEnum<{
1273
+ cash: "cash";
1274
+ card: "card";
1275
+ insurance: "insurance";
1276
+ }>;
1277
+ currency: z.ZodEnum<{
1278
+ JMD: "JMD";
1279
+ }>;
1280
+ amount: z.ZodNumber;
1281
+ }, z.core.$strip>;
1282
+ type PaymentDetails = z.infer<typeof PaymentDetails>;
1283
+
1284
+ declare const InvoiceNo: z.ZodString;
1285
+ declare const Trn: z.ZodString;
1286
+ declare const StandardTime: z.ZodString;
1287
+ declare const Timestamp: z.ZodISODateTime;
1288
+ declare const InviteResponse: z.ZodEnum<{
1289
+ accepted: "accepted";
1290
+ declined: "declined";
1291
+ }>;
1292
+ type InviteResponse = z.infer<typeof InviteResponse>;
1293
+ declare const TimeLog: z.ZodObject<{
1294
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1295
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1296
+ }, z.core.$strip>;
1297
+ type TimeLog = z.infer<typeof TimeLog>;
1298
+ declare const TicketNo: z.ZodReadonly<z.ZodInt>;
1299
+ declare const Reason: z.ZodObject<{
1300
+ value: z.ZodString;
1301
+ lastModified: z.ZodISODateTime;
1302
+ }, z.core.$strip>;
1303
+ declare const AlphaNumeric: z.ZodString;
1304
+
1305
+ declare const PriceMod: z.ZodObject<{
1306
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1307
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1308
+ description: z.ZodString;
1309
+ fixedAmount: z.ZodObject<{
1310
+ value: z.ZodNumber;
1311
+ currency: z.ZodEnum<{
1312
+ JMD: "JMD";
1313
+ }>;
1314
+ }, z.core.$strip>;
1315
+ percentage: z.ZodNumber;
1316
+ isOptional: z.ZodBoolean;
1317
+ }, z.core.$strip>;
1318
+ type PriceMod = z.infer<typeof PriceMod>;
1319
+ declare const PriceModList: z.ZodRecord<z.ZodUUID, z.ZodObject<{
1320
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1321
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1322
+ description: z.ZodString;
1323
+ fixedAmount: z.ZodObject<{
1324
+ value: z.ZodNumber;
1325
+ currency: z.ZodEnum<{
1326
+ JMD: "JMD";
1327
+ }>;
1328
+ }, z.core.$strip>;
1329
+ percentage: z.ZodNumber;
1330
+ isOptional: z.ZodBoolean;
1331
+ }, z.core.$strip>>;
1332
+ type PriceModList = z.infer<typeof PriceModList>;
1333
+ declare const PriceTag: z.ZodObject<{
1334
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1335
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1336
+ uid: z.ZodUUID;
1337
+ item: z.ZodString;
1338
+ cost: z.ZodNumber;
1339
+ currency: z.ZodEnum<{
1340
+ JMD: "JMD";
1341
+ }>;
1342
+ }, z.core.$strip>;
1343
+ type PriceTag = z.infer<typeof PriceTag>;
1344
+ declare const Receipts: z.ZodArray<z.ZodObject<{
1345
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1346
+ currency: z.ZodEnum<{
1347
+ JMD: "JMD";
1348
+ }>;
1349
+ item: z.ZodString;
1350
+ cost: z.ZodNumber;
1351
+ }, z.core.$strip>>;
1352
+
1353
+ declare const UserDetails: z.ZodObject<{
1354
+ createdAt: z.ZodReadonly<z.ZodISODateTime>;
1355
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1356
+ email: z.ZodEmail;
1357
+ _id: z.ZodUUID;
1358
+ name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1359
+ publicKey: z.ZodOptional<z.ZodString>;
1360
+ lastSignedIn: z.ZodObject<{
1361
+ auto: z.ZodOptional<z.ZodISODateTime>;
1362
+ manual: z.ZodOptional<z.ZodISODateTime>;
1363
+ }, z.core.$strip>;
1364
+ companyIds: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1365
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
+ phoneNumber: z.ZodOptional<z.ZodString>;
1367
+ }, z.core.$strip>;
1368
+ type UserDetails = z.infer<typeof UserDetails>;
1369
+
1370
+ declare const UserStorage: z.ZodObject<{
1371
+ profile: z.ZodObject<{
1372
+ current: z.ZodNumber;
1373
+ class: z.ZodString;
1374
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1375
+ }, z.core.$strip>;
1376
+ company: z.ZodRecord<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodObject<{
1377
+ class: z.ZodString;
1378
+ items: z.ZodRecord<z.ZodEnum<{
1379
+ state: "state";
1380
+ identity: "identity";
1381
+ preference: "preference";
1382
+ billing: "billing";
1383
+ staff: "staff";
1384
+ }>, z.ZodObject<{
1385
+ current: z.ZodNumber;
1386
+ lastModified: z.ZodOptional<z.ZodISODateTime>;
1387
+ }, z.core.$strip>>;
1388
+ }, z.core.$strip>>;
1389
+ createdAt: z.ZodISODateTime;
1390
+ }, z.core.$strip>;
1391
+ type UserStorage = z.infer<typeof UserStorage>;
1392
+
1364
1393
  /** @disclaimer This doesn't handle currency conversion */
1365
1394
  declare function calcBalance(components: Prettify<Partial<Pick<ServiceDetails, "charges" | "discounts" | "additionalFees" | "prepayments" | "payments">>>, options?: {
1366
1395
  logger?: boolean;
@@ -1382,4 +1411,4 @@ declare function createNotifId(options?: {
1382
1411
  to: string;
1383
1412
  }): string;
1384
1413
 
1385
- export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyMemberRoles, CompanyNotifications, CompanyPreference, type CompanyServiceSelector, CompanySession, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableServiceDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ServiceDetails, type ServiceDistAlg, ServiceSeverity, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Vitals, _CompanyDetails, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, safeParseSector, serviceDistAlgs, tiers, vitalKeys };
1414
+ export { type AcceptedCurrency, AlphaNumeric, COMPANY_USER_RELATIONSHIP, ClientDetails, ClientForm, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyIndustry, CompanyMemberRoles, CompanyNotifications, CompanyPreference, type CompanyServiceSelector, CompanySession, CompanyStaff, CompanyState, type CompanyUserRole, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MAX_COMPANY_PRICE_MODS, MedicalDetails, Medicine, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, MutableCompanyStaff, MutableServiceDetails, Notification, PaymentDetails, type PaymentMethod, PriceMod, PriceModList, PriceTag, Reason, Receipts, ServiceDetails, type ServiceDistAlg, ServiceSeverity, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, UserStorage, Vitals, _CompanyDetails, acceptedCurrencies, adminRoles, calcBalance, calcPriceMod, companyServiceSelectors, companyUserRoles, createNotifId, employeeRoles, genders, getCompatibleRoles, getIncompatibleRoles, healthcareProviderRoles, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, safeParseSector, serviceDistAlgs, tiers, vitalKeys };