@bizmap/sdk 0.0.69 → 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.
- package/dist/main.d.ts +227 -177
- package/dist/main.js +60 -54
- 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;
|
|
@@ -247,17 +252,23 @@ declare const CompanyDetails: z.ZodObject<{
|
|
|
247
252
|
cshr: "cshr";
|
|
248
253
|
admin: "admin";
|
|
249
254
|
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
|
|
250
|
-
isAvailable: z.
|
|
251
|
-
|
|
255
|
+
isAvailable: z.ZodObject<{
|
|
256
|
+
value: z.ZodBoolean;
|
|
257
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
isBusy: z.ZodObject<{
|
|
260
|
+
value: z.ZodBoolean;
|
|
261
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
262
|
+
}, z.core.$strip>;
|
|
252
263
|
status: z.ZodEnum<{
|
|
253
264
|
inviteSent: "inviteSent";
|
|
254
265
|
active: "active";
|
|
255
266
|
inactive: "inactive";
|
|
256
267
|
}>;
|
|
268
|
+
inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
257
269
|
appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
|
|
258
270
|
lastActive: z.ZodNullable<z.ZodInt>;
|
|
259
|
-
|
|
260
|
-
isBusyLastModified: z.ZodNullable<z.ZodInt>;
|
|
271
|
+
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
261
272
|
}, z.core.$strip>>;
|
|
262
273
|
partnerMap: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
263
274
|
addedAt: z.ZodInt;
|
|
@@ -277,10 +288,6 @@ declare const CompanyDetails: z.ZodObject<{
|
|
|
277
288
|
addedAt: z.ZodInt;
|
|
278
289
|
}, z.core.$strip>>;
|
|
279
290
|
}, z.core.$strip>>;
|
|
280
|
-
timeline: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
281
|
-
inviteSent: z.ZodNullable<z.ZodInt>;
|
|
282
|
-
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
283
|
-
}, z.core.$strip>>;
|
|
284
291
|
}, z.core.$strip>;
|
|
285
292
|
}, z.core.$strip>;
|
|
286
293
|
type CompanyDetails = z.infer<typeof CompanyDetails>;
|
|
@@ -307,6 +314,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
|
|
|
307
314
|
}, z.core.$strip>>>;
|
|
308
315
|
}, z.core.$strip>>;
|
|
309
316
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
317
|
+
version: z.ZodOptional<z.ZodInt>;
|
|
310
318
|
_id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
311
319
|
serviceSelector: z.ZodOptional<z.ZodEnum<{
|
|
312
320
|
scheduler: "scheduler";
|
|
@@ -319,6 +327,7 @@ declare const MutableCompanyDetails: z.ZodObject<{
|
|
|
319
327
|
}>>>;
|
|
320
328
|
}, z.core.$strip>>;
|
|
321
329
|
billing: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
version: z.ZodOptional<z.ZodInt>;
|
|
322
331
|
_id: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
323
332
|
additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
324
333
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -480,10 +489,12 @@ declare const CompanyBilling: z.ZodObject<{
|
|
|
480
489
|
cost: z.ZodNumber;
|
|
481
490
|
}, z.core.$strip>>;
|
|
482
491
|
}, z.core.$strip>;
|
|
492
|
+
version: z.ZodInt;
|
|
483
493
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
484
494
|
}, z.core.$strip>;
|
|
485
495
|
type CompanyBilling = z.infer<typeof CompanyBilling>;
|
|
486
496
|
declare const MutableCompanyBilling: z.ZodObject<{
|
|
497
|
+
version: z.ZodInt;
|
|
487
498
|
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
488
499
|
additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
489
500
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -558,16 +569,16 @@ type MutableCompanyBilling = z.infer<typeof MutableCompanyBilling>;
|
|
|
558
569
|
declare const CompanyIdentity: z.ZodObject<{
|
|
559
570
|
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
560
571
|
alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
561
|
-
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
-
type: z.ZodReadonly<z.ZodEnum<{
|
|
563
|
-
MEDICAL: "MEDICAL";
|
|
564
|
-
}>>;
|
|
565
572
|
address: z.ZodObject<{
|
|
566
573
|
streetAddress: z.ZodString;
|
|
567
574
|
city: z.ZodOptional<z.ZodString>;
|
|
568
575
|
parish: z.ZodString;
|
|
569
576
|
country: z.ZodString;
|
|
570
577
|
}, z.core.$strip>;
|
|
578
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
579
|
+
type: z.ZodReadonly<z.ZodEnum<{
|
|
580
|
+
MEDICAL: "MEDICAL";
|
|
581
|
+
}>>;
|
|
571
582
|
contact: z.ZodObject<{
|
|
572
583
|
email: z.ZodEmail;
|
|
573
584
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -588,6 +599,7 @@ declare const CompanyIdentity: z.ZodObject<{
|
|
|
588
599
|
trn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
589
600
|
gctRegNo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
601
|
}, z.core.$strip>>;
|
|
602
|
+
version: z.ZodInt;
|
|
591
603
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
592
604
|
}, z.core.$strip>;
|
|
593
605
|
type CompanyIdentity = z.infer<typeof CompanyIdentity>;
|
|
@@ -639,10 +651,12 @@ declare const CompanyPreferences: z.ZodObject<{
|
|
|
639
651
|
RR: "RR";
|
|
640
652
|
LOR: "LOR";
|
|
641
653
|
}>>;
|
|
654
|
+
version: z.ZodInt;
|
|
642
655
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
643
656
|
}, z.core.$strip>;
|
|
644
657
|
type CompanyPreferences = z.infer<typeof CompanyPreferences>;
|
|
645
658
|
declare const MutableCompanyPreferences: z.ZodObject<{
|
|
659
|
+
version: z.ZodInt;
|
|
646
660
|
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
647
661
|
serviceSelector: z.ZodEnum<{
|
|
648
662
|
scheduler: "scheduler";
|
|
@@ -670,17 +684,23 @@ declare const CompanyStaff: z.ZodObject<{
|
|
|
670
684
|
cshr: "cshr";
|
|
671
685
|
admin: "admin";
|
|
672
686
|
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
|
|
673
|
-
isAvailable: z.
|
|
674
|
-
|
|
687
|
+
isAvailable: z.ZodObject<{
|
|
688
|
+
value: z.ZodBoolean;
|
|
689
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
isBusy: z.ZodObject<{
|
|
692
|
+
value: z.ZodBoolean;
|
|
693
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
694
|
+
}, z.core.$strip>;
|
|
675
695
|
status: z.ZodEnum<{
|
|
676
696
|
inviteSent: "inviteSent";
|
|
677
697
|
active: "active";
|
|
678
698
|
inactive: "inactive";
|
|
679
699
|
}>;
|
|
700
|
+
inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
680
701
|
appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
|
|
681
702
|
lastActive: z.ZodNullable<z.ZodInt>;
|
|
682
|
-
|
|
683
|
-
isBusyLastModified: z.ZodNullable<z.ZodInt>;
|
|
703
|
+
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
684
704
|
}, z.core.$strip>>;
|
|
685
705
|
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
686
706
|
partnerMap: z.ZodRecord<z.ZodUUID, z.ZodRecord<z.ZodUUID, z.ZodObject<{
|
|
@@ -701,10 +721,7 @@ declare const CompanyStaff: z.ZodObject<{
|
|
|
701
721
|
addedAt: z.ZodInt;
|
|
702
722
|
}, z.core.$strip>>;
|
|
703
723
|
}, z.core.$strip>>;
|
|
704
|
-
|
|
705
|
-
inviteSent: z.ZodNullable<z.ZodInt>;
|
|
706
|
-
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
707
|
-
}, z.core.$strip>>;
|
|
724
|
+
version: z.ZodInt;
|
|
708
725
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
709
726
|
}, z.core.$strip>;
|
|
710
727
|
type CompanyStaff = z.infer<typeof CompanyStaff>;
|
|
@@ -728,6 +745,7 @@ declare const CompanyState: z.ZodObject<{
|
|
|
728
745
|
tktNoCounter: z.ZodInt;
|
|
729
746
|
lastSavedAt: z.ZodNullable<z.ZodInt>;
|
|
730
747
|
lastModified: z.ZodNullable<z.ZodInt>;
|
|
748
|
+
version: z.ZodInt;
|
|
731
749
|
createdAt: z.ZodInt;
|
|
732
750
|
}, z.core.$strip>;
|
|
733
751
|
type CompanyState = z.infer<typeof CompanyState>;
|
|
@@ -741,8 +759,14 @@ declare const MiniCompanyUser: z.ZodObject<{
|
|
|
741
759
|
cshr: "cshr";
|
|
742
760
|
admin: "admin";
|
|
743
761
|
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
|
|
744
|
-
isAvailable: z.
|
|
745
|
-
|
|
762
|
+
isAvailable: z.ZodObject<{
|
|
763
|
+
value: z.ZodBoolean;
|
|
764
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
765
|
+
}, z.core.$strip>;
|
|
766
|
+
isBusy: z.ZodObject<{
|
|
767
|
+
value: z.ZodBoolean;
|
|
768
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
769
|
+
}, z.core.$strip>;
|
|
746
770
|
status: z.ZodEnum<{
|
|
747
771
|
inviteSent: "inviteSent";
|
|
748
772
|
active: "active";
|
|
@@ -750,8 +774,8 @@ declare const MiniCompanyUser: z.ZodObject<{
|
|
|
750
774
|
}>;
|
|
751
775
|
appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
|
|
752
776
|
lastActive: z.ZodNullable<z.ZodInt>;
|
|
753
|
-
|
|
754
|
-
|
|
777
|
+
inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
778
|
+
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
755
779
|
}, z.core.$strip>;
|
|
756
780
|
type MiniCompanyUser = z.infer<typeof MiniCompanyUser>;
|
|
757
781
|
declare const CompanyUser: z.ZodObject<{
|
|
@@ -767,17 +791,23 @@ declare const CompanyUser: z.ZodObject<{
|
|
|
767
791
|
cshr: "cshr";
|
|
768
792
|
admin: "admin";
|
|
769
793
|
}>>, z.ZodTransform<("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[], ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[]>>;
|
|
770
|
-
isAvailable: z.
|
|
771
|
-
|
|
794
|
+
isAvailable: z.ZodObject<{
|
|
795
|
+
value: z.ZodBoolean;
|
|
796
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
isBusy: z.ZodObject<{
|
|
799
|
+
value: z.ZodBoolean;
|
|
800
|
+
lastModified: z.ZodNullable<z.ZodInt>;
|
|
801
|
+
}, z.core.$strip>;
|
|
772
802
|
status: z.ZodEnum<{
|
|
773
803
|
inviteSent: "inviteSent";
|
|
774
804
|
active: "active";
|
|
775
805
|
inactive: "inactive";
|
|
776
806
|
}>;
|
|
807
|
+
inviteSent: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
777
808
|
appointments: z.ZodRecord<z.ZodLiteral<"ongoing" | "completed">, z.ZodInt>;
|
|
778
809
|
lastActive: z.ZodNullable<z.ZodInt>;
|
|
779
|
-
|
|
780
|
-
isBusyLastModified: z.ZodNullable<z.ZodInt>;
|
|
810
|
+
inviteAccepted: z.ZodNullable<z.ZodInt>;
|
|
781
811
|
}, z.core.$strip>;
|
|
782
812
|
type CompanyUser = z.infer<typeof CompanyUser>;
|
|
783
813
|
|
|
@@ -793,71 +823,6 @@ declare const CompanyInviteList: z.ZodRecord<z.ZodEmail, z.ZodObject<{
|
|
|
793
823
|
}, z.core.$strip>>;
|
|
794
824
|
type CompanyInviteList = z.infer<typeof CompanyInviteList>;
|
|
795
825
|
|
|
796
|
-
declare const PriceAdjustment: z.ZodObject<{
|
|
797
|
-
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
798
|
-
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
799
|
-
description: z.ZodOptional<z.ZodString>;
|
|
800
|
-
fixedAmount: z.ZodObject<{
|
|
801
|
-
value: z.ZodNumber;
|
|
802
|
-
currency: z.ZodEnum<{
|
|
803
|
-
JMD: "JMD";
|
|
804
|
-
USD: "USD";
|
|
805
|
-
EUR: "EUR";
|
|
806
|
-
GBP: "GBP";
|
|
807
|
-
CAD: "CAD";
|
|
808
|
-
}>;
|
|
809
|
-
}, z.core.$strip>;
|
|
810
|
-
percentage: z.ZodNumber;
|
|
811
|
-
isOptional: z.ZodBoolean;
|
|
812
|
-
}, z.core.$strip>;
|
|
813
|
-
type PriceAdjustment = z.infer<typeof PriceAdjustment>;
|
|
814
|
-
declare const PriceTag: z.ZodObject<{
|
|
815
|
-
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
816
|
-
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
817
|
-
uid: z.ZodUUID;
|
|
818
|
-
item: z.ZodString;
|
|
819
|
-
cost: z.ZodNumber;
|
|
820
|
-
currency: z.ZodEnum<{
|
|
821
|
-
JMD: "JMD";
|
|
822
|
-
USD: "USD";
|
|
823
|
-
EUR: "EUR";
|
|
824
|
-
GBP: "GBP";
|
|
825
|
-
CAD: "CAD";
|
|
826
|
-
}>;
|
|
827
|
-
}, z.core.$strip>;
|
|
828
|
-
type PriceTag = z.infer<typeof PriceTag>;
|
|
829
|
-
declare const Receipts: z.ZodArray<z.ZodObject<{
|
|
830
|
-
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
831
|
-
currency: z.ZodEnum<{
|
|
832
|
-
JMD: "JMD";
|
|
833
|
-
USD: "USD";
|
|
834
|
-
EUR: "EUR";
|
|
835
|
-
GBP: "GBP";
|
|
836
|
-
CAD: "CAD";
|
|
837
|
-
}>;
|
|
838
|
-
item: z.ZodString;
|
|
839
|
-
cost: z.ZodNumber;
|
|
840
|
-
}, z.core.$strip>>;
|
|
841
|
-
|
|
842
|
-
declare const ClientIdentity: z.ZodObject<{
|
|
843
|
-
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
844
|
-
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
845
|
-
_id: z.ZodUUID;
|
|
846
|
-
email: z.ZodEmail;
|
|
847
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
848
|
-
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
849
|
-
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
850
|
-
linked: z.ZodBoolean;
|
|
851
|
-
dob: z.ZodOptional<z.ZodInt>;
|
|
852
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
853
|
-
streetAddress: z.ZodString;
|
|
854
|
-
city: z.ZodOptional<z.ZodString>;
|
|
855
|
-
parish: z.ZodString;
|
|
856
|
-
country: z.ZodString;
|
|
857
|
-
}, z.core.$strip>>;
|
|
858
|
-
}, z.core.$strip>;
|
|
859
|
-
type ClientIdentity = z.infer<typeof ClientIdentity>;
|
|
860
|
-
|
|
861
826
|
declare const TierList: z.ZodRecord<z.ZodEnum<{
|
|
862
827
|
basic: "basic";
|
|
863
828
|
pro: "pro";
|
|
@@ -954,9 +919,76 @@ declare const MedicalDetails: z.ZodObject<{
|
|
|
954
919
|
}, z.core.$strip>;
|
|
955
920
|
type MedicalDetails = z.infer<typeof MedicalDetails>;
|
|
956
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
|
+
|
|
957
988
|
declare const UserDetails: z.ZodObject<{
|
|
958
989
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
959
990
|
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
991
|
+
version: z.ZodInt;
|
|
960
992
|
_id: z.ZodUUID;
|
|
961
993
|
email: z.ZodEmail;
|
|
962
994
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
@@ -976,28 +1008,28 @@ declare const UserDetails: z.ZodObject<{
|
|
|
976
1008
|
}, z.core.$strip>;
|
|
977
1009
|
createdAt: z.ZodInt;
|
|
978
1010
|
}, z.core.$strip>>;
|
|
979
|
-
linked: z.ZodBoolean;
|
|
980
1011
|
}, z.core.$strip>;
|
|
981
1012
|
type UserDetails = z.infer<typeof UserDetails>;
|
|
982
1013
|
|
|
983
|
-
declare const
|
|
984
|
-
declare const StandardTime: z.ZodString;
|
|
985
|
-
declare const Timestamp: z.ZodInt;
|
|
986
|
-
declare const InviteResponse: z.ZodEnum<{
|
|
987
|
-
accepted: "accepted";
|
|
988
|
-
declined: "declined";
|
|
989
|
-
}>;
|
|
990
|
-
type InviteResponse = z.infer<typeof InviteResponse>;
|
|
991
|
-
declare const TimeLog: z.ZodObject<{
|
|
1014
|
+
declare const ClientIdentity: z.ZodObject<{
|
|
992
1015
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
993
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>;
|
|
994
1031
|
}, z.core.$strip>;
|
|
995
|
-
type
|
|
996
|
-
declare const TicketNo: z.ZodReadonly<z.ZodInt>;
|
|
997
|
-
declare const Reason: z.ZodObject<{
|
|
998
|
-
value: z.ZodString;
|
|
999
|
-
lastModified: z.ZodInt;
|
|
1000
|
-
}, z.core.$strip>;
|
|
1032
|
+
type ClientIdentity = z.infer<typeof ClientIdentity>;
|
|
1001
1033
|
|
|
1002
1034
|
declare const MiniAppointmentDetails: z.ZodObject<{
|
|
1003
1035
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -1237,24 +1269,6 @@ declare const AppointmentDetails: z.ZodObject<{
|
|
|
1237
1269
|
}, z.core.$strip>>>;
|
|
1238
1270
|
}, z.core.$strip>>>;
|
|
1239
1271
|
src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1240
|
-
timeline: z.ZodObject<{
|
|
1241
|
-
scheduler: z.ZodObject<{
|
|
1242
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1243
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1244
|
-
}, z.core.$strip>;
|
|
1245
|
-
physAsst: z.ZodUnion<[z.ZodObject<{
|
|
1246
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1247
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1248
|
-
}, z.core.$strip>, z.ZodLiteral<"none">]>;
|
|
1249
|
-
doctor: z.ZodObject<{
|
|
1250
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1251
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1252
|
-
}, z.core.$strip>;
|
|
1253
|
-
cashier: z.ZodNullable<z.ZodObject<{
|
|
1254
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1255
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1256
|
-
}, z.core.$strip>>;
|
|
1257
|
-
}, z.core.$strip>;
|
|
1258
1272
|
tkt: z.ZodReadonly<z.ZodInt>;
|
|
1259
1273
|
reason: z.ZodOptional<z.ZodObject<{
|
|
1260
1274
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -1296,15 +1310,33 @@ declare const AppointmentDetails: z.ZodObject<{
|
|
|
1296
1310
|
}>;
|
|
1297
1311
|
amount: z.ZodNumber;
|
|
1298
1312
|
}, z.core.$strip>>>>;
|
|
1313
|
+
timeline: z.ZodObject<{
|
|
1314
|
+
scheduler: z.ZodObject<{
|
|
1315
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1316
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1317
|
+
}, z.core.$strip>;
|
|
1318
|
+
physAsst: z.ZodUnion<[z.ZodObject<{
|
|
1319
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1320
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1321
|
+
}, z.core.$strip>, z.ZodLiteral<"none">]>;
|
|
1322
|
+
doctor: z.ZodObject<{
|
|
1323
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1324
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1325
|
+
}, z.core.$strip>;
|
|
1326
|
+
cashier: z.ZodNullable<z.ZodObject<{
|
|
1327
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1328
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1329
|
+
}, z.core.$strip>>;
|
|
1330
|
+
}, z.core.$strip>;
|
|
1299
1331
|
client: z.ZodObject<{
|
|
1300
1332
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
1301
1333
|
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1334
|
+
version: z.ZodInt;
|
|
1302
1335
|
_id: z.ZodUUID;
|
|
1303
|
-
email: z.ZodEmail;
|
|
1304
1336
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1305
1337
|
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1306
1338
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1307
|
-
|
|
1339
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
1308
1340
|
dob: z.ZodOptional<z.ZodInt>;
|
|
1309
1341
|
address: z.ZodOptional<z.ZodObject<{
|
|
1310
1342
|
streetAddress: z.ZodString;
|
|
@@ -1312,6 +1344,7 @@ declare const AppointmentDetails: z.ZodObject<{
|
|
|
1312
1344
|
parish: z.ZodString;
|
|
1313
1345
|
country: z.ZodString;
|
|
1314
1346
|
}, z.core.$strip>>;
|
|
1347
|
+
linkedTo: z.ZodOptional<z.ZodUUID>;
|
|
1315
1348
|
}, z.core.$strip>;
|
|
1316
1349
|
}, z.core.$strip>;
|
|
1317
1350
|
type AppointmentDetails = z.infer<typeof AppointmentDetails>;
|
|
@@ -1403,24 +1436,6 @@ declare const MutableAppointmentDetails: z.ZodObject<{
|
|
|
1403
1436
|
}, z.core.$strip>>>;
|
|
1404
1437
|
}, z.core.$strip>>>;
|
|
1405
1438
|
src: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1406
|
-
timeline: z.ZodObject<{
|
|
1407
|
-
scheduler: z.ZodObject<{
|
|
1408
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1409
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1410
|
-
}, z.core.$strip>;
|
|
1411
|
-
physAsst: z.ZodUnion<[z.ZodObject<{
|
|
1412
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1413
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1414
|
-
}, z.core.$strip>, z.ZodLiteral<"none">]>;
|
|
1415
|
-
doctor: z.ZodObject<{
|
|
1416
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1417
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1418
|
-
}, z.core.$strip>;
|
|
1419
|
-
cashier: z.ZodNullable<z.ZodObject<{
|
|
1420
|
-
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1421
|
-
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1422
|
-
}, z.core.$strip>>;
|
|
1423
|
-
}, z.core.$strip>;
|
|
1424
1439
|
tkt: z.ZodReadonly<z.ZodInt>;
|
|
1425
1440
|
reason: z.ZodOptional<z.ZodObject<{
|
|
1426
1441
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
@@ -1462,15 +1477,33 @@ declare const MutableAppointmentDetails: z.ZodObject<{
|
|
|
1462
1477
|
}>;
|
|
1463
1478
|
amount: z.ZodNumber;
|
|
1464
1479
|
}, z.core.$strip>>>>;
|
|
1480
|
+
timeline: z.ZodObject<{
|
|
1481
|
+
scheduler: z.ZodObject<{
|
|
1482
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1483
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1484
|
+
}, z.core.$strip>;
|
|
1485
|
+
physAsst: z.ZodUnion<[z.ZodObject<{
|
|
1486
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1487
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1488
|
+
}, z.core.$strip>, z.ZodLiteral<"none">]>;
|
|
1489
|
+
doctor: z.ZodObject<{
|
|
1490
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1491
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1492
|
+
}, z.core.$strip>;
|
|
1493
|
+
cashier: z.ZodNullable<z.ZodObject<{
|
|
1494
|
+
postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1495
|
+
userUid: z.ZodNonOptional<z.ZodUUID>;
|
|
1496
|
+
}, z.core.$strip>>;
|
|
1497
|
+
}, z.core.$strip>;
|
|
1465
1498
|
client: z.ZodObject<{
|
|
1466
1499
|
createdAt: z.ZodReadonly<z.ZodInt>;
|
|
1467
1500
|
lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
1501
|
+
version: z.ZodInt;
|
|
1468
1502
|
_id: z.ZodUUID;
|
|
1469
|
-
email: z.ZodEmail;
|
|
1470
1503
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1471
1504
|
name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
1472
1505
|
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1473
|
-
|
|
1506
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
1474
1507
|
dob: z.ZodOptional<z.ZodInt>;
|
|
1475
1508
|
address: z.ZodOptional<z.ZodObject<{
|
|
1476
1509
|
streetAddress: z.ZodString;
|
|
@@ -1478,6 +1511,7 @@ declare const MutableAppointmentDetails: z.ZodObject<{
|
|
|
1478
1511
|
parish: z.ZodString;
|
|
1479
1512
|
country: z.ZodString;
|
|
1480
1513
|
}, z.core.$strip>>;
|
|
1514
|
+
linkedTo: z.ZodOptional<z.ZodUUID>;
|
|
1481
1515
|
}, z.core.$strip>;
|
|
1482
1516
|
_hash: z.ZodString;
|
|
1483
1517
|
}, z.core.$strip>;
|
|
@@ -1568,6 +1602,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1568
1602
|
tktNoCounter: number;
|
|
1569
1603
|
lastSavedAt: number | null;
|
|
1570
1604
|
lastModified: number | null;
|
|
1605
|
+
version: number;
|
|
1571
1606
|
createdAt: number;
|
|
1572
1607
|
};
|
|
1573
1608
|
staffDetails: {
|
|
@@ -1576,15 +1611,21 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1576
1611
|
email: string;
|
|
1577
1612
|
name: string;
|
|
1578
1613
|
roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
|
|
1579
|
-
isAvailable:
|
|
1580
|
-
|
|
1614
|
+
isAvailable: {
|
|
1615
|
+
value: boolean;
|
|
1616
|
+
lastModified: number | null;
|
|
1617
|
+
};
|
|
1618
|
+
isBusy: {
|
|
1619
|
+
value: boolean;
|
|
1620
|
+
lastModified: number | null;
|
|
1621
|
+
};
|
|
1581
1622
|
status: "inviteSent" | "active" | "inactive";
|
|
1582
1623
|
appointments: Record<"ongoing" | "completed", number>;
|
|
1583
1624
|
lastActive: number | null;
|
|
1584
|
-
|
|
1585
|
-
isBusyLastModified: number | null;
|
|
1625
|
+
inviteAccepted: number | null;
|
|
1586
1626
|
phoneNumber?: string | undefined;
|
|
1587
1627
|
photoUrl?: string | null | undefined;
|
|
1628
|
+
inviteSent?: number | null | undefined;
|
|
1588
1629
|
}>;
|
|
1589
1630
|
_id: string;
|
|
1590
1631
|
partnerMap: Record<string, Record<string, {
|
|
@@ -1599,10 +1640,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1599
1640
|
addedAt: number;
|
|
1600
1641
|
} | undefined;
|
|
1601
1642
|
}>;
|
|
1602
|
-
|
|
1603
|
-
inviteSent: number | null;
|
|
1604
|
-
inviteAccepted: number | null;
|
|
1605
|
-
}>;
|
|
1643
|
+
version: number;
|
|
1606
1644
|
lastModified: number | null;
|
|
1607
1645
|
};
|
|
1608
1646
|
};
|
|
@@ -1643,6 +1681,14 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1643
1681
|
description?: string | undefined;
|
|
1644
1682
|
}[] | null;
|
|
1645
1683
|
src: string;
|
|
1684
|
+
tkt: number;
|
|
1685
|
+
charges: {
|
|
1686
|
+
createdAt: number;
|
|
1687
|
+
currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
|
|
1688
|
+
item: string;
|
|
1689
|
+
cost: number;
|
|
1690
|
+
lastModified?: number | null | undefined;
|
|
1691
|
+
}[];
|
|
1646
1692
|
timeline: {
|
|
1647
1693
|
scheduler: {
|
|
1648
1694
|
userUid: string;
|
|
@@ -1661,23 +1707,15 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1661
1707
|
postedAt?: number | null | undefined;
|
|
1662
1708
|
} | null;
|
|
1663
1709
|
};
|
|
1664
|
-
tkt: number;
|
|
1665
|
-
charges: {
|
|
1666
|
-
createdAt: number;
|
|
1667
|
-
currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
|
|
1668
|
-
item: string;
|
|
1669
|
-
cost: number;
|
|
1670
|
-
lastModified?: number | null | undefined;
|
|
1671
|
-
}[];
|
|
1672
1710
|
client: {
|
|
1673
1711
|
createdAt: number;
|
|
1712
|
+
version: number;
|
|
1674
1713
|
_id: string;
|
|
1675
|
-
email: string;
|
|
1676
1714
|
name: string;
|
|
1677
|
-
linked: boolean;
|
|
1678
1715
|
lastModified?: number | null | undefined;
|
|
1679
1716
|
phoneNumber?: string | undefined;
|
|
1680
1717
|
photoUrl?: string | null | undefined;
|
|
1718
|
+
email?: string | undefined;
|
|
1681
1719
|
dob?: number | undefined;
|
|
1682
1720
|
address?: {
|
|
1683
1721
|
streetAddress: string;
|
|
@@ -1685,6 +1723,7 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
|
|
|
1685
1723
|
country: string;
|
|
1686
1724
|
city?: string | undefined;
|
|
1687
1725
|
} | undefined;
|
|
1726
|
+
linkedTo?: string | undefined;
|
|
1688
1727
|
};
|
|
1689
1728
|
_hash: string;
|
|
1690
1729
|
lastModified?: number | null | undefined;
|
|
@@ -1761,36 +1800,47 @@ declare const findConflictingPartners: (...partners: (CompanyUser | MiniCompanyU
|
|
|
1761
1800
|
email: string;
|
|
1762
1801
|
name: string;
|
|
1763
1802
|
roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
|
|
1764
|
-
isAvailable:
|
|
1765
|
-
|
|
1803
|
+
isAvailable: {
|
|
1804
|
+
value: boolean;
|
|
1805
|
+
lastModified: number | null;
|
|
1806
|
+
};
|
|
1807
|
+
isBusy: {
|
|
1808
|
+
value: boolean;
|
|
1809
|
+
lastModified: number | null;
|
|
1810
|
+
};
|
|
1766
1811
|
status: "inviteSent" | "active" | "inactive";
|
|
1767
1812
|
appointments: Record<"ongoing" | "completed", number>;
|
|
1768
1813
|
lastActive: number | null;
|
|
1769
|
-
|
|
1770
|
-
isBusyLastModified: number | null;
|
|
1814
|
+
inviteAccepted: number | null;
|
|
1771
1815
|
phoneNumber?: string | undefined;
|
|
1772
1816
|
photoUrl?: string | null | undefined;
|
|
1817
|
+
inviteSent?: number | null | undefined;
|
|
1773
1818
|
} | {
|
|
1774
1819
|
_id: string;
|
|
1775
1820
|
roles: ("doc" | "physAsst" | "rcpst" | "cshr" | "admin")[];
|
|
1776
|
-
isAvailable:
|
|
1777
|
-
|
|
1821
|
+
isAvailable: {
|
|
1822
|
+
value: boolean;
|
|
1823
|
+
lastModified: number | null;
|
|
1824
|
+
};
|
|
1825
|
+
isBusy: {
|
|
1826
|
+
value: boolean;
|
|
1827
|
+
lastModified: number | null;
|
|
1828
|
+
};
|
|
1778
1829
|
status: "inviteSent" | "active" | "inactive";
|
|
1779
1830
|
appointments: Record<"ongoing" | "completed", number>;
|
|
1780
1831
|
lastActive: number | null;
|
|
1781
|
-
|
|
1782
|
-
|
|
1832
|
+
inviteAccepted: number | null;
|
|
1833
|
+
inviteSent?: number | null | undefined;
|
|
1783
1834
|
})[] | null;
|
|
1784
1835
|
/**
|
|
1785
1836
|
* @param {CompanyUserRole} role
|
|
1786
1837
|
* @returns {CompanyUserRole[]} The roles that are compatible with the selected role.
|
|
1787
1838
|
* */
|
|
1788
1839
|
declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
|
|
1789
|
-
declare const parseCompanyName: (name: string) => string;
|
|
1790
1840
|
|
|
1791
1841
|
declare function createNotifId(options?: {
|
|
1792
1842
|
from: string;
|
|
1793
1843
|
to: string;
|
|
1794
1844
|
}): string;
|
|
1795
1845
|
|
|
1796
|
-
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,
|
|
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/
|
|
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
|
-
|
|
396
|
-
linked: z13.boolean(),
|
|
400
|
+
version: Version,
|
|
397
401
|
...TimeLog.shape
|
|
398
402
|
}).omit({ uid: true });
|
|
399
403
|
|
|
@@ -427,7 +431,6 @@ var getCompatibleRoles = (role) => {
|
|
|
427
431
|
}
|
|
428
432
|
return companyUserRoles.exclude([role]).options;
|
|
429
433
|
};
|
|
430
|
-
var parseCompanyName = (name) => name.replace(/-/g, " ");
|
|
431
434
|
|
|
432
435
|
// src/schemas/company/components/User.ts
|
|
433
436
|
var MiniCompanyUser2 = z14.object({
|
|
@@ -443,13 +446,19 @@ var MiniCompanyUser2 = z14.object({
|
|
|
443
446
|
(role, i) => i === 0 || getCompatibleRoles(roles[0]).includes(role)
|
|
444
447
|
);
|
|
445
448
|
}, "A user is not allowed to have conflicting roles."),
|
|
446
|
-
isAvailable: z14.
|
|
447
|
-
|
|
449
|
+
isAvailable: z14.object({
|
|
450
|
+
value: z14.boolean(),
|
|
451
|
+
lastModified: Timestamp.nullable()
|
|
452
|
+
}),
|
|
453
|
+
isBusy: z14.object({
|
|
454
|
+
value: z14.boolean(),
|
|
455
|
+
lastModified: Timestamp.nullable()
|
|
456
|
+
}),
|
|
448
457
|
status: z14.enum(["inviteSent", "active", "inactive"]),
|
|
449
458
|
appointments: z14.record(z14.literal(["ongoing", "completed"]), z14.int().min(0)),
|
|
450
459
|
lastActive: Timestamp.nullable(),
|
|
451
|
-
|
|
452
|
-
|
|
460
|
+
inviteSent: Timestamp.nullish(),
|
|
461
|
+
inviteAccepted: Timestamp.nullable()
|
|
453
462
|
}).superRefine((data, ctx) => {
|
|
454
463
|
if (!data.isAvailable && data.status !== "active") {
|
|
455
464
|
ctx.addIssue('Unavailable users MUST also have the "active" status.');
|
|
@@ -496,13 +505,7 @@ var MiniRawCompanyStaff = z15.object({
|
|
|
496
505
|
})
|
|
497
506
|
}).partial()
|
|
498
507
|
),
|
|
499
|
-
|
|
500
|
-
CompanyUser.shape._id,
|
|
501
|
-
z15.object({
|
|
502
|
-
inviteSent: Timestamp.nullable(),
|
|
503
|
-
inviteAccepted: Timestamp.nullable()
|
|
504
|
-
})
|
|
505
|
-
),
|
|
508
|
+
version: Version,
|
|
506
509
|
lastModified: Timestamp.nullable()
|
|
507
510
|
});
|
|
508
511
|
var RawCompanyStaff = z15.object({
|
|
@@ -601,54 +604,57 @@ var CompanyInviteList = z17.record(
|
|
|
601
604
|
"Insufficient amount of members invited."
|
|
602
605
|
);
|
|
603
606
|
|
|
604
|
-
// src/schemas/appointment/components/
|
|
607
|
+
// src/schemas/appointment/components/Medical.ts
|
|
605
608
|
import * as z18 from "zod";
|
|
606
|
-
|
|
607
|
-
var ClientIdentity = UserDetails.omit({
|
|
608
|
-
notifications: true,
|
|
609
|
-
publicKey: true
|
|
610
|
-
}).safeExtend(
|
|
611
|
-
z18.object({
|
|
612
|
-
dob: Timestamp.optional(),
|
|
613
|
-
address: Address2.optional()
|
|
614
|
-
}).shape
|
|
615
|
-
);
|
|
616
|
-
|
|
617
|
-
// src/schemas/appointment/components/payload/Medical.ts
|
|
618
|
-
import * as z19 from "zod";
|
|
619
|
-
var Vitals = z19.record(
|
|
609
|
+
var Vitals = z18.record(
|
|
620
610
|
vitalKeys,
|
|
621
|
-
|
|
622
|
-
value:
|
|
611
|
+
z18.object({
|
|
612
|
+
value: z18.string().trim().regex(/^\d{0,3}((\/|\.)\d{1,3})?/),
|
|
623
613
|
lastModified: Timestamp.nullable()
|
|
624
614
|
})
|
|
625
615
|
);
|
|
626
|
-
var Medicine =
|
|
627
|
-
brand:
|
|
616
|
+
var Medicine = z18.object({
|
|
617
|
+
brand: z18.string().trim(),
|
|
628
618
|
expiresAt: Timestamp.nullish(),
|
|
629
|
-
quantity:
|
|
619
|
+
quantity: z18.string().trim().regex(/^\d+(\.\d{1,3})? ?[a-zA-Z]{1,20}/, {
|
|
630
620
|
error: "Failed to match the pattern <number>+(.<number>{1,3})? ?[a-zA-Z]{1,20}"
|
|
631
621
|
}),
|
|
632
|
-
refills:
|
|
633
|
-
directions:
|
|
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" }),
|
|
634
624
|
...TimeLog.shape
|
|
635
625
|
});
|
|
636
|
-
var MedicalDetails =
|
|
626
|
+
var MedicalDetails = z18.object({
|
|
637
627
|
vitals: Vitals,
|
|
638
|
-
prescriptions:
|
|
639
|
-
doctorNote:
|
|
640
|
-
value:
|
|
628
|
+
prescriptions: z18.array(z18.array(Medicine)).nullish(),
|
|
629
|
+
doctorNote: z18.object({
|
|
630
|
+
value: z18.string(),
|
|
641
631
|
lastModified: Timestamp.nullable()
|
|
642
632
|
}),
|
|
643
|
-
physAsstNotes:
|
|
644
|
-
|
|
645
|
-
title:
|
|
646
|
-
content:
|
|
633
|
+
physAsstNotes: z18.array(
|
|
634
|
+
z18.object({
|
|
635
|
+
title: z18.string(),
|
|
636
|
+
content: z18.string(),
|
|
647
637
|
...TimeLog.shape
|
|
648
638
|
})
|
|
649
639
|
).optional()
|
|
650
640
|
});
|
|
651
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
|
+
|
|
652
658
|
// src/schemas/appointment/Appointment.ts
|
|
653
659
|
import * as z20 from "zod";
|
|
654
660
|
var TimelineActivity = z20.object({
|
|
@@ -960,6 +966,7 @@ export {
|
|
|
960
966
|
TimeLog,
|
|
961
967
|
Timestamp,
|
|
962
968
|
UserDetails,
|
|
969
|
+
Version,
|
|
963
970
|
Vitals,
|
|
964
971
|
appointmentDistAlgs,
|
|
965
972
|
companyPartnerRoles,
|
|
@@ -973,7 +980,6 @@ export {
|
|
|
973
980
|
findNextAvailableStaff,
|
|
974
981
|
getCompatibleRoles,
|
|
975
982
|
healthcareProviderRoles,
|
|
976
|
-
parseCompanyName,
|
|
977
983
|
paymentMethods,
|
|
978
984
|
scheduleAppointment,
|
|
979
985
|
serviceProviders,
|