@bizmap/sdk 0.0.92 → 0.0.94

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 +134 -238
  2. package/dist/main.js +230 -178
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -41,10 +41,10 @@ declare const companyServiceSelectors: z.ZodEnum<{
41
41
  doctor: "doctor";
42
42
  }>;
43
43
  type CompanyServiceSelector = z.infer<typeof companyServiceSelectors>;
44
- declare const companyTypes: z.ZodEnum<{
45
- MEDICAL: "MEDICAL";
44
+ declare const industries: z.ZodEnum<{
45
+ healthcare: "healthcare";
46
46
  }>;
47
- type CompanyType = z.infer<typeof companyTypes>;
47
+ type Industry = z.infer<typeof industries>;
48
48
  declare const companyUserStatus: z.ZodEnum<{
49
49
  inviteSent: "inviteSent";
50
50
  active: "active";
@@ -70,12 +70,10 @@ declare const genders: z.ZodEnum<{
70
70
  female: "female";
71
71
  }>;
72
72
  type Gender = z.infer<typeof genders>;
73
- declare const nidClasses: z.ZodEnum<{
74
- passportNo: "passportNo";
75
- trn: "trn";
76
- nin: "nin";
73
+ declare const acceptedCurrencies: z.ZodEnum<{
74
+ JMD: "JMD";
77
75
  }>;
78
- type NidClass = z.infer<typeof nidClasses>;
76
+ type AcceptedCurrency = z.infer<typeof acceptedCurrencies>;
79
77
 
80
78
  declare const vitalKeys: z.ZodEnum<{
81
79
  heartRate: "heartRate";
@@ -89,15 +87,12 @@ declare const serviceProviders: z.ZodEnum<{
89
87
  physAsst: "physAsst";
90
88
  scheduler: "scheduler";
91
89
  doctor: "doctor";
92
- cashier: "cashier";
90
+ debtCollector: "debtCollector";
93
91
  }>;
94
92
 
95
93
  declare const CompanyDetails: z.ZodObject<{
96
94
  _id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
97
95
  identity: z.ZodObject<{
98
- type: z.ZodReadonly<z.ZodEnum<{
99
- MEDICAL: "MEDICAL";
100
- }>>;
101
96
  lastModified: z.ZodNullable<z.ZodInt>;
102
97
  version: z.ZodInt;
103
98
  alias: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -108,6 +103,9 @@ declare const CompanyDetails: z.ZodObject<{
108
103
  country: z.ZodString;
109
104
  }, z.core.$strip>>;
110
105
  logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ industry: z.ZodReadonly<z.ZodEnum<{
107
+ healthcare: "healthcare";
108
+ }>>;
111
109
  contact: z.ZodObject<{
112
110
  email: z.ZodEmail;
113
111
  phoneNumber: z.ZodOptional<z.ZodString>;
@@ -146,10 +144,6 @@ declare const CompanyDetails: z.ZodObject<{
146
144
  createdAt: z.ZodReadonly<z.ZodInt>;
147
145
  currency: z.ZodEnum<{
148
146
  JMD: "JMD";
149
- USD: "USD";
150
- EUR: "EUR";
151
- GBP: "GBP";
152
- CAD: "CAD";
153
147
  }>;
154
148
  item: z.ZodString;
155
149
  cost: z.ZodNumber;
@@ -194,15 +188,11 @@ declare const CompanyDetails: z.ZodObject<{
194
188
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
195
189
  createdAt: z.ZodReadonly<z.ZodInt>;
196
190
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
197
- description: z.ZodOptional<z.ZodString>;
191
+ description: z.ZodString;
198
192
  fixedAmount: z.ZodObject<{
199
193
  value: z.ZodNumber;
200
194
  currency: z.ZodEnum<{
201
195
  JMD: "JMD";
202
- USD: "USD";
203
- EUR: "EUR";
204
- GBP: "GBP";
205
- CAD: "CAD";
206
196
  }>;
207
197
  }, z.core.$strip>;
208
198
  percentage: z.ZodNumber;
@@ -211,15 +201,11 @@ declare const CompanyDetails: z.ZodObject<{
211
201
  discounts: z.ZodRecord<z.ZodUUID, z.ZodObject<{
212
202
  createdAt: z.ZodReadonly<z.ZodInt>;
213
203
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
214
- description: z.ZodOptional<z.ZodString>;
204
+ description: z.ZodString;
215
205
  fixedAmount: z.ZodObject<{
216
206
  value: z.ZodNumber;
217
207
  currency: z.ZodEnum<{
218
208
  JMD: "JMD";
219
- USD: "USD";
220
- EUR: "EUR";
221
- GBP: "GBP";
222
- CAD: "CAD";
223
209
  }>;
224
210
  }, z.core.$strip>;
225
211
  percentage: z.ZodNumber;
@@ -228,15 +214,11 @@ declare const CompanyDetails: z.ZodObject<{
228
214
  prepayments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
229
215
  createdAt: z.ZodReadonly<z.ZodInt>;
230
216
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
231
- description: z.ZodOptional<z.ZodString>;
217
+ description: z.ZodString;
232
218
  fixedAmount: z.ZodObject<{
233
219
  value: z.ZodNumber;
234
220
  currency: z.ZodEnum<{
235
221
  JMD: "JMD";
236
- USD: "USD";
237
- EUR: "EUR";
238
- GBP: "GBP";
239
- CAD: "CAD";
240
222
  }>;
241
223
  }, z.core.$strip>;
242
224
  percentage: z.ZodNumber;
@@ -249,10 +231,6 @@ declare const CompanyDetails: z.ZodObject<{
249
231
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
250
232
  currency: z.ZodEnum<{
251
233
  JMD: "JMD";
252
- USD: "USD";
253
- EUR: "EUR";
254
- GBP: "GBP";
255
- CAD: "CAD";
256
234
  }>;
257
235
  item: z.ZodString;
258
236
  cost: z.ZodNumber;
@@ -351,15 +329,11 @@ declare const MutableCompanyDetails: z.ZodObject<{
351
329
  additionalFees: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
352
330
  createdAt: z.ZodReadonly<z.ZodInt>;
353
331
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
354
- description: z.ZodOptional<z.ZodString>;
332
+ description: z.ZodString;
355
333
  fixedAmount: z.ZodObject<{
356
334
  value: z.ZodNumber;
357
335
  currency: z.ZodEnum<{
358
336
  JMD: "JMD";
359
- USD: "USD";
360
- EUR: "EUR";
361
- GBP: "GBP";
362
- CAD: "CAD";
363
337
  }>;
364
338
  }, z.core.$strip>;
365
339
  percentage: z.ZodNumber;
@@ -368,15 +342,11 @@ declare const MutableCompanyDetails: z.ZodObject<{
368
342
  discounts: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
369
343
  createdAt: z.ZodReadonly<z.ZodInt>;
370
344
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
371
- description: z.ZodOptional<z.ZodString>;
345
+ description: z.ZodString;
372
346
  fixedAmount: z.ZodObject<{
373
347
  value: z.ZodNumber;
374
348
  currency: z.ZodEnum<{
375
349
  JMD: "JMD";
376
- USD: "USD";
377
- EUR: "EUR";
378
- GBP: "GBP";
379
- CAD: "CAD";
380
350
  }>;
381
351
  }, z.core.$strip>;
382
352
  percentage: z.ZodNumber;
@@ -385,15 +355,11 @@ declare const MutableCompanyDetails: z.ZodObject<{
385
355
  prepayments: z.ZodOptional<z.ZodRecord<z.ZodUUID, z.ZodObject<{
386
356
  createdAt: z.ZodReadonly<z.ZodInt>;
387
357
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
388
- description: z.ZodOptional<z.ZodString>;
358
+ description: z.ZodString;
389
359
  fixedAmount: z.ZodObject<{
390
360
  value: z.ZodNumber;
391
361
  currency: z.ZodEnum<{
392
362
  JMD: "JMD";
393
- USD: "USD";
394
- EUR: "EUR";
395
- GBP: "GBP";
396
- CAD: "CAD";
397
363
  }>;
398
364
  }, z.core.$strip>;
399
365
  percentage: z.ZodNumber;
@@ -406,10 +372,6 @@ declare const MutableCompanyDetails: z.ZodObject<{
406
372
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
407
373
  currency: z.ZodEnum<{
408
374
  JMD: "JMD";
409
- USD: "USD";
410
- EUR: "EUR";
411
- GBP: "GBP";
412
- CAD: "CAD";
413
375
  }>;
414
376
  item: z.ZodString;
415
377
  cost: z.ZodNumber;
@@ -445,15 +407,11 @@ declare const CompanyBilling: z.ZodObject<{
445
407
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
446
408
  createdAt: z.ZodReadonly<z.ZodInt>;
447
409
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
448
- description: z.ZodOptional<z.ZodString>;
410
+ description: z.ZodString;
449
411
  fixedAmount: z.ZodObject<{
450
412
  value: z.ZodNumber;
451
413
  currency: z.ZodEnum<{
452
414
  JMD: "JMD";
453
- USD: "USD";
454
- EUR: "EUR";
455
- GBP: "GBP";
456
- CAD: "CAD";
457
415
  }>;
458
416
  }, z.core.$strip>;
459
417
  percentage: z.ZodNumber;
@@ -462,15 +420,11 @@ declare const CompanyBilling: z.ZodObject<{
462
420
  discounts: z.ZodRecord<z.ZodUUID, z.ZodObject<{
463
421
  createdAt: z.ZodReadonly<z.ZodInt>;
464
422
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
465
- description: z.ZodOptional<z.ZodString>;
423
+ description: z.ZodString;
466
424
  fixedAmount: z.ZodObject<{
467
425
  value: z.ZodNumber;
468
426
  currency: z.ZodEnum<{
469
427
  JMD: "JMD";
470
- USD: "USD";
471
- EUR: "EUR";
472
- GBP: "GBP";
473
- CAD: "CAD";
474
428
  }>;
475
429
  }, z.core.$strip>;
476
430
  percentage: z.ZodNumber;
@@ -479,15 +433,11 @@ declare const CompanyBilling: z.ZodObject<{
479
433
  prepayments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
480
434
  createdAt: z.ZodReadonly<z.ZodInt>;
481
435
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
482
- description: z.ZodOptional<z.ZodString>;
436
+ description: z.ZodString;
483
437
  fixedAmount: z.ZodObject<{
484
438
  value: z.ZodNumber;
485
439
  currency: z.ZodEnum<{
486
440
  JMD: "JMD";
487
- USD: "USD";
488
- EUR: "EUR";
489
- GBP: "GBP";
490
- CAD: "CAD";
491
441
  }>;
492
442
  }, z.core.$strip>;
493
443
  percentage: z.ZodNumber;
@@ -500,10 +450,6 @@ declare const CompanyBilling: z.ZodObject<{
500
450
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
501
451
  currency: z.ZodEnum<{
502
452
  JMD: "JMD";
503
- USD: "USD";
504
- EUR: "EUR";
505
- GBP: "GBP";
506
- CAD: "CAD";
507
453
  }>;
508
454
  item: z.ZodString;
509
455
  cost: z.ZodNumber;
@@ -519,15 +465,11 @@ declare const MutableCompanyBilling: z.ZodObject<{
519
465
  additionalFees: z.ZodRecord<z.ZodUUID, z.ZodObject<{
520
466
  createdAt: z.ZodReadonly<z.ZodInt>;
521
467
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
522
- description: z.ZodOptional<z.ZodString>;
468
+ description: z.ZodString;
523
469
  fixedAmount: z.ZodObject<{
524
470
  value: z.ZodNumber;
525
471
  currency: z.ZodEnum<{
526
472
  JMD: "JMD";
527
- USD: "USD";
528
- EUR: "EUR";
529
- GBP: "GBP";
530
- CAD: "CAD";
531
473
  }>;
532
474
  }, z.core.$strip>;
533
475
  percentage: z.ZodNumber;
@@ -536,15 +478,11 @@ declare const MutableCompanyBilling: z.ZodObject<{
536
478
  discounts: z.ZodRecord<z.ZodUUID, z.ZodObject<{
537
479
  createdAt: z.ZodReadonly<z.ZodInt>;
538
480
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
539
- description: z.ZodOptional<z.ZodString>;
481
+ description: z.ZodString;
540
482
  fixedAmount: z.ZodObject<{
541
483
  value: z.ZodNumber;
542
484
  currency: z.ZodEnum<{
543
485
  JMD: "JMD";
544
- USD: "USD";
545
- EUR: "EUR";
546
- GBP: "GBP";
547
- CAD: "CAD";
548
486
  }>;
549
487
  }, z.core.$strip>;
550
488
  percentage: z.ZodNumber;
@@ -553,15 +491,11 @@ declare const MutableCompanyBilling: z.ZodObject<{
553
491
  prepayments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
554
492
  createdAt: z.ZodReadonly<z.ZodInt>;
555
493
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
556
- description: z.ZodOptional<z.ZodString>;
494
+ description: z.ZodString;
557
495
  fixedAmount: z.ZodObject<{
558
496
  value: z.ZodNumber;
559
497
  currency: z.ZodEnum<{
560
498
  JMD: "JMD";
561
- USD: "USD";
562
- EUR: "EUR";
563
- GBP: "GBP";
564
- CAD: "CAD";
565
499
  }>;
566
500
  }, z.core.$strip>;
567
501
  percentage: z.ZodNumber;
@@ -574,10 +508,6 @@ declare const MutableCompanyBilling: z.ZodObject<{
574
508
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
575
509
  currency: z.ZodEnum<{
576
510
  JMD: "JMD";
577
- USD: "USD";
578
- EUR: "EUR";
579
- GBP: "GBP";
580
- CAD: "CAD";
581
511
  }>;
582
512
  item: z.ZodString;
583
513
  cost: z.ZodNumber;
@@ -596,8 +526,8 @@ declare const CompanyIdentity: z.ZodObject<{
596
526
  country: z.ZodString;
597
527
  }, z.core.$strip>>;
598
528
  logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
599
- type: z.ZodReadonly<z.ZodEnum<{
600
- MEDICAL: "MEDICAL";
529
+ industry: z.ZodReadonly<z.ZodEnum<{
530
+ healthcare: "healthcare";
601
531
  }>>;
602
532
  contact: z.ZodObject<{
603
533
  email: z.ZodEmail;
@@ -862,8 +792,8 @@ declare const CompanyInviteList: z.ZodRecord<z.ZodEmail, z.ZodObject<{
862
792
  type CompanyInviteList = z.infer<typeof CompanyInviteList>;
863
793
 
864
794
  declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
865
- type: z.ZodReadonly<z.ZodEnum<{
866
- MEDICAL: "MEDICAL";
795
+ industry: z.ZodReadonly<z.ZodEnum<{
796
+ healthcare: "healthcare";
867
797
  }>>;
868
798
  address: z.ZodOptional<z.ZodObject<{
869
799
  streetAddress: z.ZodString;
@@ -877,7 +807,7 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
877
807
  alias: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
878
808
  picture: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
809
  }, z.core.$strip>, z.ZodTransform<{
880
- type: "MEDICAL";
810
+ industry: "healthcare";
881
811
  email: string;
882
812
  domain: string;
883
813
  address?: {
@@ -890,7 +820,7 @@ declare const CreateCompanyForm: z.ZodPipe<z.ZodObject<{
890
820
  alias?: string | undefined;
891
821
  picture?: string | null | undefined;
892
822
  }, {
893
- type: "MEDICAL";
823
+ industry: "healthcare";
894
824
  email: string;
895
825
  domain: string;
896
826
  address?: {
@@ -937,15 +867,26 @@ declare const CreditCurrency: z.ZodObject<{
937
867
  value: z.ZodNumber;
938
868
  currency: z.ZodEnum<{
939
869
  JMD: "JMD";
940
- USD: "USD";
941
- EUR: "EUR";
942
- GBP: "GBP";
943
- CAD: "CAD";
944
870
  }>;
945
871
  }, z.core.$strip>;
946
872
  value: z.ZodInt;
947
873
  }, z.core.$strip>;
948
874
  type CreditCurrency = z.infer<typeof CreditCurrency>;
875
+ declare const PaymentDetails: z.ZodObject<{
876
+ createdAt: z.ZodReadonly<z.ZodInt>;
877
+ lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
878
+ uid: z.ZodUUID;
879
+ method: z.ZodEnum<{
880
+ cash: "cash";
881
+ card: "card";
882
+ insurance: "insurance";
883
+ }>;
884
+ currency: z.ZodEnum<{
885
+ JMD: "JMD";
886
+ }>;
887
+ amount: z.ZodNumber;
888
+ }, z.core.$strip>;
889
+ type PaymentDetails = z.infer<typeof PaymentDetails>;
949
890
 
950
891
  declare const Vitals: z.ZodRecord<z.ZodEnum<{
951
892
  heartRate: "heartRate";
@@ -1021,19 +962,16 @@ declare const Reason: z.ZodObject<{
1021
962
  lastModified: z.ZodInt;
1022
963
  }, z.core.$strip>;
1023
964
  declare const Version: z.ZodInt;
965
+ declare const AlphaNumeric: z.ZodString;
1024
966
 
1025
967
  declare const PriceAdjustment: z.ZodObject<{
1026
968
  createdAt: z.ZodReadonly<z.ZodInt>;
1027
969
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1028
- description: z.ZodOptional<z.ZodString>;
970
+ description: z.ZodString;
1029
971
  fixedAmount: z.ZodObject<{
1030
972
  value: z.ZodNumber;
1031
973
  currency: z.ZodEnum<{
1032
974
  JMD: "JMD";
1033
- USD: "USD";
1034
- EUR: "EUR";
1035
- GBP: "GBP";
1036
- CAD: "CAD";
1037
975
  }>;
1038
976
  }, z.core.$strip>;
1039
977
  percentage: z.ZodNumber;
@@ -1048,10 +986,6 @@ declare const PriceTag: z.ZodObject<{
1048
986
  cost: z.ZodNumber;
1049
987
  currency: z.ZodEnum<{
1050
988
  JMD: "JMD";
1051
- USD: "USD";
1052
- EUR: "EUR";
1053
- GBP: "GBP";
1054
- CAD: "CAD";
1055
989
  }>;
1056
990
  }, z.core.$strip>;
1057
991
  type PriceTag = z.infer<typeof PriceTag>;
@@ -1059,10 +993,6 @@ declare const Receipts: z.ZodArray<z.ZodObject<{
1059
993
  createdAt: z.ZodReadonly<z.ZodInt>;
1060
994
  currency: z.ZodEnum<{
1061
995
  JMD: "JMD";
1062
- USD: "USD";
1063
- EUR: "EUR";
1064
- GBP: "GBP";
1065
- CAD: "CAD";
1066
996
  }>;
1067
997
  item: z.ZodString;
1068
998
  cost: z.ZodNumber;
@@ -1115,17 +1045,14 @@ declare const ClientIdentity: z.ZodObject<{
1115
1045
  isGlobal: z.ZodBoolean;
1116
1046
  origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1117
1047
  nid: z.ZodOptional<z.ZodObject<{
1118
- class: z.ZodEnum<{
1119
- passportNo: "passportNo";
1120
- trn: "trn";
1121
- nin: "nin";
1122
- }>;
1123
- value: z.ZodString;
1048
+ trn: z.ZodOptional<z.ZodString>;
1049
+ nin: z.ZodOptional<z.ZodString>;
1050
+ passportNo: z.ZodOptional<z.ZodString>;
1124
1051
  }, z.core.$strip>>;
1125
1052
  attributes: z.ZodObject<{
1126
- mothersMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1127
- fathersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1128
- mothersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1053
+ motherMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1054
+ fatherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1055
+ motherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1129
1056
  oldestSiblingMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1130
1057
  firstSchoolName: z.ZodOptional<z.ZodString>;
1131
1058
  }, z.core.$strip>;
@@ -1165,28 +1092,21 @@ declare const MiniAppointmentDetails: z.ZodObject<{
1165
1092
  charges: z.ZodArray<z.ZodObject<{
1166
1093
  createdAt: z.ZodReadonly<z.ZodInt>;
1167
1094
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1095
+ uid: z.ZodUUID;
1096
+ item: z.ZodString;
1097
+ cost: z.ZodNumber;
1168
1098
  currency: z.ZodEnum<{
1169
1099
  JMD: "JMD";
1170
- USD: "USD";
1171
- EUR: "EUR";
1172
- GBP: "GBP";
1173
- CAD: "CAD";
1174
1100
  }>;
1175
- item: z.ZodString;
1176
- cost: z.ZodNumber;
1177
1101
  }, z.core.$strip>>;
1178
1102
  additionalFees: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1179
1103
  createdAt: z.ZodReadonly<z.ZodInt>;
1180
1104
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1181
- description: z.ZodOptional<z.ZodString>;
1105
+ description: z.ZodString;
1182
1106
  fixedAmount: z.ZodObject<{
1183
1107
  value: z.ZodNumber;
1184
1108
  currency: z.ZodEnum<{
1185
1109
  JMD: "JMD";
1186
- USD: "USD";
1187
- EUR: "EUR";
1188
- GBP: "GBP";
1189
- CAD: "CAD";
1190
1110
  }>;
1191
1111
  }, z.core.$strip>;
1192
1112
  percentage: z.ZodNumber;
@@ -1195,15 +1115,11 @@ declare const MiniAppointmentDetails: z.ZodObject<{
1195
1115
  discounts: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1196
1116
  createdAt: z.ZodReadonly<z.ZodInt>;
1197
1117
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1198
- description: z.ZodOptional<z.ZodString>;
1118
+ description: z.ZodString;
1199
1119
  fixedAmount: z.ZodObject<{
1200
1120
  value: z.ZodNumber;
1201
1121
  currency: z.ZodEnum<{
1202
1122
  JMD: "JMD";
1203
- USD: "USD";
1204
- EUR: "EUR";
1205
- GBP: "GBP";
1206
- CAD: "CAD";
1207
1123
  }>;
1208
1124
  }, z.core.$strip>;
1209
1125
  percentage: z.ZodNumber;
@@ -1212,15 +1128,11 @@ declare const MiniAppointmentDetails: z.ZodObject<{
1212
1128
  prepayments: z.ZodNullable<z.ZodArray<z.ZodObject<{
1213
1129
  createdAt: z.ZodReadonly<z.ZodInt>;
1214
1130
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1215
- description: z.ZodOptional<z.ZodString>;
1131
+ description: z.ZodString;
1216
1132
  fixedAmount: z.ZodObject<{
1217
1133
  value: z.ZodNumber;
1218
1134
  currency: z.ZodEnum<{
1219
1135
  JMD: "JMD";
1220
- USD: "USD";
1221
- EUR: "EUR";
1222
- GBP: "GBP";
1223
- CAD: "CAD";
1224
1136
  }>;
1225
1137
  }, z.core.$strip>;
1226
1138
  percentage: z.ZodNumber;
@@ -1273,11 +1185,15 @@ declare const MiniAppointmentDetails: z.ZodObject<{
1273
1185
  payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1274
1186
  createdAt: z.ZodReadonly<z.ZodInt>;
1275
1187
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1188
+ uid: z.ZodUUID;
1276
1189
  method: z.ZodEnum<{
1277
1190
  cash: "cash";
1278
1191
  card: "card";
1279
1192
  insurance: "insurance";
1280
1193
  }>;
1194
+ currency: z.ZodEnum<{
1195
+ JMD: "JMD";
1196
+ }>;
1281
1197
  amount: z.ZodNumber;
1282
1198
  }, z.core.$strip>>>>;
1283
1199
  lockedBy: z.ZodOptional<z.ZodUUID>;
@@ -1294,10 +1210,11 @@ declare const MiniAppointmentDetails: z.ZodObject<{
1294
1210
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1295
1211
  userUid: z.ZodNonOptional<z.ZodUUID>;
1296
1212
  }, z.core.$strip>;
1297
- cashier: z.ZodNullable<z.ZodObject<{
1213
+ debtCollector: z.ZodNullable<z.ZodArray<z.ZodObject<{
1214
+ collectedPayments: z.ZodRecord<z.ZodUUID, z.ZodInt>;
1298
1215
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1299
1216
  userUid: z.ZodNonOptional<z.ZodUUID>;
1300
- }, z.core.$strip>>;
1217
+ }, z.core.$strip>>>;
1301
1218
  }, z.core.$strip>;
1302
1219
  }, z.core.$strip>;
1303
1220
  type MiniAppointmentDetails = z.infer<typeof MiniAppointmentDetails>;
@@ -1308,15 +1225,11 @@ declare const AppointmentDetails: z.ZodObject<{
1308
1225
  additionalFees: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1309
1226
  createdAt: z.ZodReadonly<z.ZodInt>;
1310
1227
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1311
- description: z.ZodOptional<z.ZodString>;
1228
+ description: z.ZodString;
1312
1229
  fixedAmount: z.ZodObject<{
1313
1230
  value: z.ZodNumber;
1314
1231
  currency: z.ZodEnum<{
1315
1232
  JMD: "JMD";
1316
- USD: "USD";
1317
- EUR: "EUR";
1318
- GBP: "GBP";
1319
- CAD: "CAD";
1320
1233
  }>;
1321
1234
  }, z.core.$strip>;
1322
1235
  percentage: z.ZodNumber;
@@ -1325,15 +1238,11 @@ declare const AppointmentDetails: z.ZodObject<{
1325
1238
  discounts: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1326
1239
  createdAt: z.ZodReadonly<z.ZodInt>;
1327
1240
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1328
- description: z.ZodOptional<z.ZodString>;
1241
+ description: z.ZodString;
1329
1242
  fixedAmount: z.ZodObject<{
1330
1243
  value: z.ZodNumber;
1331
1244
  currency: z.ZodEnum<{
1332
1245
  JMD: "JMD";
1333
- USD: "USD";
1334
- EUR: "EUR";
1335
- GBP: "GBP";
1336
- CAD: "CAD";
1337
1246
  }>;
1338
1247
  }, z.core.$strip>;
1339
1248
  percentage: z.ZodNumber;
@@ -1342,15 +1251,11 @@ declare const AppointmentDetails: z.ZodObject<{
1342
1251
  prepayments: z.ZodNullable<z.ZodArray<z.ZodObject<{
1343
1252
  createdAt: z.ZodReadonly<z.ZodInt>;
1344
1253
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1345
- description: z.ZodOptional<z.ZodString>;
1254
+ description: z.ZodString;
1346
1255
  fixedAmount: z.ZodObject<{
1347
1256
  value: z.ZodNumber;
1348
1257
  currency: z.ZodEnum<{
1349
1258
  JMD: "JMD";
1350
- USD: "USD";
1351
- EUR: "EUR";
1352
- GBP: "GBP";
1353
- CAD: "CAD";
1354
1259
  }>;
1355
1260
  }, z.core.$strip>;
1356
1261
  percentage: z.ZodNumber;
@@ -1399,15 +1304,12 @@ declare const AppointmentDetails: z.ZodObject<{
1399
1304
  charges: z.ZodArray<z.ZodObject<{
1400
1305
  createdAt: z.ZodReadonly<z.ZodInt>;
1401
1306
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1307
+ uid: z.ZodUUID;
1308
+ item: z.ZodString;
1309
+ cost: z.ZodNumber;
1402
1310
  currency: z.ZodEnum<{
1403
1311
  JMD: "JMD";
1404
- USD: "USD";
1405
- EUR: "EUR";
1406
- GBP: "GBP";
1407
- CAD: "CAD";
1408
1312
  }>;
1409
- item: z.ZodString;
1410
- cost: z.ZodNumber;
1411
1313
  }, z.core.$strip>>;
1412
1314
  cancelled: z.ZodOptional<z.ZodObject<{
1413
1315
  doneAt: z.ZodInt;
@@ -1423,11 +1325,15 @@ declare const AppointmentDetails: z.ZodObject<{
1423
1325
  payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1424
1326
  createdAt: z.ZodReadonly<z.ZodInt>;
1425
1327
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1328
+ uid: z.ZodUUID;
1426
1329
  method: z.ZodEnum<{
1427
1330
  cash: "cash";
1428
1331
  card: "card";
1429
1332
  insurance: "insurance";
1430
1333
  }>;
1334
+ currency: z.ZodEnum<{
1335
+ JMD: "JMD";
1336
+ }>;
1431
1337
  amount: z.ZodNumber;
1432
1338
  }, z.core.$strip>>>>;
1433
1339
  lockedBy: z.ZodOptional<z.ZodUUID>;
@@ -1444,10 +1350,11 @@ declare const AppointmentDetails: z.ZodObject<{
1444
1350
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1445
1351
  userUid: z.ZodNonOptional<z.ZodUUID>;
1446
1352
  }, z.core.$strip>;
1447
- cashier: z.ZodNullable<z.ZodObject<{
1353
+ debtCollector: z.ZodNullable<z.ZodArray<z.ZodObject<{
1354
+ collectedPayments: z.ZodRecord<z.ZodUUID, z.ZodInt>;
1448
1355
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1449
1356
  userUid: z.ZodNonOptional<z.ZodUUID>;
1450
- }, z.core.$strip>>;
1357
+ }, z.core.$strip>>>;
1451
1358
  }, z.core.$strip>;
1452
1359
  client: z.ZodObject<{
1453
1360
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -1468,17 +1375,14 @@ declare const AppointmentDetails: z.ZodObject<{
1468
1375
  isGlobal: z.ZodBoolean;
1469
1376
  origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1470
1377
  nid: z.ZodOptional<z.ZodObject<{
1471
- class: z.ZodEnum<{
1472
- passportNo: "passportNo";
1473
- trn: "trn";
1474
- nin: "nin";
1475
- }>;
1476
- value: z.ZodString;
1378
+ trn: z.ZodOptional<z.ZodString>;
1379
+ nin: z.ZodOptional<z.ZodString>;
1380
+ passportNo: z.ZodOptional<z.ZodString>;
1477
1381
  }, z.core.$strip>>;
1478
1382
  attributes: z.ZodObject<{
1479
- mothersMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1480
- fathersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1481
- mothersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1383
+ motherMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1384
+ fatherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1385
+ motherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1482
1386
  oldestSiblingMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1483
1387
  firstSchoolName: z.ZodOptional<z.ZodString>;
1484
1388
  }, z.core.$strip>;
@@ -1499,15 +1403,11 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1499
1403
  additionalFees: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1500
1404
  createdAt: z.ZodReadonly<z.ZodInt>;
1501
1405
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1502
- description: z.ZodOptional<z.ZodString>;
1406
+ description: z.ZodString;
1503
1407
  fixedAmount: z.ZodObject<{
1504
1408
  value: z.ZodNumber;
1505
1409
  currency: z.ZodEnum<{
1506
1410
  JMD: "JMD";
1507
- USD: "USD";
1508
- EUR: "EUR";
1509
- GBP: "GBP";
1510
- CAD: "CAD";
1511
1411
  }>;
1512
1412
  }, z.core.$strip>;
1513
1413
  percentage: z.ZodNumber;
@@ -1516,15 +1416,11 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1516
1416
  discounts: z.ZodReadonly<z.ZodNullable<z.ZodArray<z.ZodObject<{
1517
1417
  createdAt: z.ZodReadonly<z.ZodInt>;
1518
1418
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1519
- description: z.ZodOptional<z.ZodString>;
1419
+ description: z.ZodString;
1520
1420
  fixedAmount: z.ZodObject<{
1521
1421
  value: z.ZodNumber;
1522
1422
  currency: z.ZodEnum<{
1523
1423
  JMD: "JMD";
1524
- USD: "USD";
1525
- EUR: "EUR";
1526
- GBP: "GBP";
1527
- CAD: "CAD";
1528
1424
  }>;
1529
1425
  }, z.core.$strip>;
1530
1426
  percentage: z.ZodNumber;
@@ -1533,15 +1429,11 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1533
1429
  prepayments: z.ZodNullable<z.ZodArray<z.ZodObject<{
1534
1430
  createdAt: z.ZodReadonly<z.ZodInt>;
1535
1431
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1536
- description: z.ZodOptional<z.ZodString>;
1432
+ description: z.ZodString;
1537
1433
  fixedAmount: z.ZodObject<{
1538
1434
  value: z.ZodNumber;
1539
1435
  currency: z.ZodEnum<{
1540
1436
  JMD: "JMD";
1541
- USD: "USD";
1542
- EUR: "EUR";
1543
- GBP: "GBP";
1544
- CAD: "CAD";
1545
1437
  }>;
1546
1438
  }, z.core.$strip>;
1547
1439
  percentage: z.ZodNumber;
@@ -1590,15 +1482,12 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1590
1482
  charges: z.ZodArray<z.ZodObject<{
1591
1483
  createdAt: z.ZodReadonly<z.ZodInt>;
1592
1484
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1485
+ uid: z.ZodUUID;
1486
+ item: z.ZodString;
1487
+ cost: z.ZodNumber;
1593
1488
  currency: z.ZodEnum<{
1594
1489
  JMD: "JMD";
1595
- USD: "USD";
1596
- EUR: "EUR";
1597
- GBP: "GBP";
1598
- CAD: "CAD";
1599
1490
  }>;
1600
- item: z.ZodString;
1601
- cost: z.ZodNumber;
1602
1491
  }, z.core.$strip>>;
1603
1492
  cancelled: z.ZodOptional<z.ZodObject<{
1604
1493
  doneAt: z.ZodInt;
@@ -1614,11 +1503,15 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1614
1503
  payments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1615
1504
  createdAt: z.ZodReadonly<z.ZodInt>;
1616
1505
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1506
+ uid: z.ZodUUID;
1617
1507
  method: z.ZodEnum<{
1618
1508
  cash: "cash";
1619
1509
  card: "card";
1620
1510
  insurance: "insurance";
1621
1511
  }>;
1512
+ currency: z.ZodEnum<{
1513
+ JMD: "JMD";
1514
+ }>;
1622
1515
  amount: z.ZodNumber;
1623
1516
  }, z.core.$strip>>>>;
1624
1517
  lockedBy: z.ZodOptional<z.ZodUUID>;
@@ -1635,10 +1528,11 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1635
1528
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1636
1529
  userUid: z.ZodNonOptional<z.ZodUUID>;
1637
1530
  }, z.core.$strip>;
1638
- cashier: z.ZodNullable<z.ZodObject<{
1531
+ debtCollector: z.ZodNullable<z.ZodArray<z.ZodObject<{
1532
+ collectedPayments: z.ZodRecord<z.ZodUUID, z.ZodInt>;
1639
1533
  postedAt: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1640
1534
  userUid: z.ZodNonOptional<z.ZodUUID>;
1641
- }, z.core.$strip>>;
1535
+ }, z.core.$strip>>>;
1642
1536
  }, z.core.$strip>;
1643
1537
  client: z.ZodObject<{
1644
1538
  createdAt: z.ZodReadonly<z.ZodInt>;
@@ -1659,17 +1553,14 @@ declare const MutableAppointmentDetails: z.ZodObject<{
1659
1553
  isGlobal: z.ZodBoolean;
1660
1554
  origin: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1661
1555
  nid: z.ZodOptional<z.ZodObject<{
1662
- class: z.ZodEnum<{
1663
- passportNo: "passportNo";
1664
- trn: "trn";
1665
- nin: "nin";
1666
- }>;
1667
- value: z.ZodString;
1556
+ trn: z.ZodOptional<z.ZodString>;
1557
+ nin: z.ZodOptional<z.ZodString>;
1558
+ passportNo: z.ZodOptional<z.ZodString>;
1668
1559
  }, z.core.$strip>>;
1669
1560
  attributes: z.ZodObject<{
1670
- mothersMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1671
- fathersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1672
- mothersMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1561
+ motherMaidenName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1562
+ fatherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1563
+ motherMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1673
1564
  oldestSiblingMiddleName: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1674
1565
  firstSchoolName: z.ZodOptional<z.ZodString>;
1675
1566
  }, z.core.$strip>;
@@ -1692,28 +1583,21 @@ declare const ScheduleAppointmentForm: z.ZodObject<{
1692
1583
  charges: z.ZodOptional<z.ZodArray<z.ZodObject<{
1693
1584
  createdAt: z.ZodReadonly<z.ZodInt>;
1694
1585
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1586
+ uid: z.ZodUUID;
1587
+ item: z.ZodString;
1588
+ cost: z.ZodNumber;
1695
1589
  currency: z.ZodEnum<{
1696
1590
  JMD: "JMD";
1697
- USD: "USD";
1698
- EUR: "EUR";
1699
- GBP: "GBP";
1700
- CAD: "CAD";
1701
1591
  }>;
1702
- item: z.ZodString;
1703
- cost: z.ZodNumber;
1704
1592
  }, z.core.$strip>>>;
1705
1593
  prepayments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1706
1594
  createdAt: z.ZodReadonly<z.ZodInt>;
1707
1595
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1708
- description: z.ZodOptional<z.ZodString>;
1596
+ description: z.ZodString;
1709
1597
  fixedAmount: z.ZodObject<{
1710
1598
  value: z.ZodNumber;
1711
1599
  currency: z.ZodEnum<{
1712
1600
  JMD: "JMD";
1713
- USD: "USD";
1714
- EUR: "EUR";
1715
- GBP: "GBP";
1716
- CAD: "CAD";
1717
1601
  }>;
1718
1602
  }, z.core.$strip>;
1719
1603
  percentage: z.ZodNumber;
@@ -1722,11 +1606,15 @@ declare const ScheduleAppointmentForm: z.ZodObject<{
1722
1606
  payments: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1723
1607
  createdAt: z.ZodReadonly<z.ZodInt>;
1724
1608
  lastModified: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1609
+ uid: z.ZodUUID;
1725
1610
  method: z.ZodEnum<{
1726
1611
  cash: "cash";
1727
1612
  card: "card";
1728
1613
  insurance: "insurance";
1729
1614
  }>;
1615
+ currency: z.ZodEnum<{
1616
+ JMD: "JMD";
1617
+ }>;
1730
1618
  amount: z.ZodNumber;
1731
1619
  }, z.core.$strip>>>>>;
1732
1620
  }, z.core.$strip>;
@@ -1812,44 +1700,45 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1812
1700
  _id: string;
1813
1701
  additionalFees: readonly {
1814
1702
  createdAt: number;
1703
+ description: string;
1815
1704
  fixedAmount: {
1816
1705
  value: number;
1817
- currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
1706
+ currency: "JMD";
1818
1707
  };
1819
1708
  percentage: number;
1820
1709
  isOptional: boolean;
1821
1710
  lastModified?: number | null | undefined;
1822
- description?: string | undefined;
1823
1711
  }[] | null;
1824
1712
  discounts: readonly {
1825
1713
  createdAt: number;
1714
+ description: string;
1826
1715
  fixedAmount: {
1827
1716
  value: number;
1828
- currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
1717
+ currency: "JMD";
1829
1718
  };
1830
1719
  percentage: number;
1831
1720
  isOptional: boolean;
1832
1721
  lastModified?: number | null | undefined;
1833
- description?: string | undefined;
1834
1722
  }[] | null;
1835
1723
  prepayments: {
1836
1724
  createdAt: number;
1725
+ description: string;
1837
1726
  fixedAmount: {
1838
1727
  value: number;
1839
- currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
1728
+ currency: "JMD";
1840
1729
  };
1841
1730
  percentage: number;
1842
1731
  isOptional: boolean;
1843
1732
  lastModified?: number | null | undefined;
1844
- description?: string | undefined;
1845
1733
  }[] | null;
1846
1734
  src: string;
1847
1735
  tkt: number;
1848
1736
  charges: {
1849
1737
  createdAt: number;
1850
- currency: "JMD" | "USD" | "EUR" | "GBP" | "CAD";
1738
+ uid: string;
1851
1739
  item: string;
1852
1740
  cost: number;
1741
+ currency: "JMD";
1853
1742
  lastModified?: number | null | undefined;
1854
1743
  }[];
1855
1744
  timeline: {
@@ -1865,10 +1754,11 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1865
1754
  userUid: string;
1866
1755
  postedAt?: number | null | undefined;
1867
1756
  };
1868
- cashier: {
1757
+ debtCollector: {
1758
+ collectedPayments: Record<string, number>;
1869
1759
  userUid: string;
1870
1760
  postedAt?: number | null | undefined;
1871
- } | null;
1761
+ }[] | null;
1872
1762
  };
1873
1763
  client: {
1874
1764
  createdAt: number;
@@ -1882,9 +1772,9 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1882
1772
  isGlobal: boolean;
1883
1773
  origin: string;
1884
1774
  attributes: {
1885
- mothersMaidenName?: string | undefined;
1886
- fathersMiddleName?: string | undefined;
1887
- mothersMiddleName?: string | undefined;
1775
+ motherMaidenName?: string | undefined;
1776
+ fatherMiddleName?: string | undefined;
1777
+ motherMiddleName?: string | undefined;
1888
1778
  oldestSiblingMiddleName?: string | undefined;
1889
1779
  firstSchoolName?: string | undefined;
1890
1780
  };
@@ -1893,8 +1783,9 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1893
1783
  photoUrl?: string | null | undefined;
1894
1784
  email?: string | undefined;
1895
1785
  nid?: {
1896
- class: "passportNo" | "trn" | "nin";
1897
- value: string;
1786
+ trn?: string | undefined;
1787
+ nin?: string | undefined;
1788
+ passportNo?: string | undefined;
1898
1789
  } | undefined;
1899
1790
  address?: {
1900
1791
  streetAddress: string;
@@ -1948,7 +1839,9 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1948
1839
  } | undefined;
1949
1840
  payments?: {
1950
1841
  createdAt: number;
1842
+ uid: string;
1951
1843
  method: "cash" | "card" | "insurance";
1844
+ currency: "JMD";
1952
1845
  amount: number;
1953
1846
  lastModified?: number | null | undefined;
1954
1847
  }[] | null | undefined;
@@ -1956,6 +1849,9 @@ declare function scheduleAppointment(request: RequestParameter): Promise<{
1956
1849
  };
1957
1850
  }>;
1958
1851
 
1852
+ /** @disclaimer This doesn't handle currency conversion */
1853
+ declare function calcAppointmentFee(appointment: Pick<AppointmentDetails, "charges" | "discounts" | "additionalFees" | "prepayments">): number;
1854
+
1959
1855
  /**
1960
1856
  * @param {CompanyUserRole} role The role used to filter the staff members
1961
1857
  * @param {CompanyStaff} staff The staff object to query
@@ -2009,7 +1905,7 @@ declare const findConflictingPartners: (...partners: (CompanyUser | MiniCompanyU
2009
1905
  * */
2010
1906
  declare const getCompatibleRoles: (role: CompanyUserRole) => CompanyUserRole[];
2011
1907
  declare const normalizeCompanyId: (id: string) => string;
2012
- declare const normalizeNidClass: (value: NidClass) => string;
1908
+ declare const normalizeNidKey: (value: keyof NonNullable<ClientIdentity["nid"]>) => string;
2013
1909
  declare const parseClientName: ({ firstName, middleName, lastName, }: Pick<ClientIdentity, "firstName" | "middleName" | "lastName">) => string;
2014
1910
 
2015
1911
  declare function createNotifId(options?: {
@@ -2017,4 +1913,4 @@ declare function createNotifId(options?: {
2017
1913
  to: string;
2018
1914
  }): string;
2019
1915
 
2020
- export { AppointmentDetails, type AppointmentDistAlg, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, type CompanyType, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, type NidClass, Notification, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Version, Vitals, adminRoles, appointmentDistAlgs, companyPartnerRoles, companyServiceSelectors, companyTypes, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, nidClasses, normalizeCompanyId, normalizeNidClass, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };
1916
+ export { type AcceptedCurrency, AlphaNumeric, AppointmentDetails, type AppointmentDistAlg, ClientForm, ClientIdentity, CompanyBilling, CompanyDetails, CompanyIdentity, CompanyInviteList, CompanyNotifications, type CompanyPartnerRole, CompanyPreferences, type CompanyServiceSelector, CompanyStaff, CompanyState, CompanyUser, type CompanyUserRole, CompanyUserSession, type CompanyUserStatus, CreateCompanyForm, CreditCurrency, type EmployeeRole, type Gender, type HealthcareProviderRole, type Industry, InviteResponse, InvoiceNo, MedicalDetails, Medicine, MiniAppointmentDetails, MiniCompanyUser, MutableAppointmentDetails, MutableCompanyBilling, MutableCompanyDetails, MutableCompanyIdentity, MutableCompanyPreferences, Notification, PaymentDetails, type PaymentMethod, PriceAdjustment, PriceTag, Reason, Receipts, ScheduleAppointmentForm, StandardTime, TicketNo, type Tier, TierList, TimeLog, Timestamp, Trn, UserDetails, Version, Vitals, acceptedCurrencies, adminRoles, appointmentDistAlgs, calcAppointmentFee, companyPartnerRoles, companyServiceSelectors, companyUserRoles, companyUserStatus, createNotifId, employeeRoles, findAvailableStaff, findConflictingPartners, findNextAvailableStaff, genders, getCompatibleRoles, healthcareProviderRoles, industries, normalizeCompanyId, normalizeNidKey, parseClientName, paymentMethods, scheduleAppointment, serviceProviders, tiers, vitalKeys };