@voyantjs/finance 0.5.0 → 0.6.0

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.
@@ -53,8 +53,8 @@ export declare const insertBookingItemCommissionSchema: z.ZodObject<{
53
53
  rateBasisPoints: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
54
54
  status: z.ZodDefault<z.ZodEnum<{
55
55
  pending: "pending";
56
- paid: "paid";
57
56
  void: "void";
57
+ paid: "paid";
58
58
  accrued: "accrued";
59
59
  payable: "payable";
60
60
  }>>;
@@ -84,8 +84,8 @@ export declare const updateBookingItemCommissionSchema: z.ZodObject<{
84
84
  rateBasisPoints: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
85
85
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
86
86
  pending: "pending";
87
- paid: "paid";
88
87
  void: "void";
88
+ paid: "paid";
89
89
  accrued: "accrued";
90
90
  payable: "payable";
91
91
  }>>>;
@@ -99,12 +99,12 @@ export declare const insertInvoiceSchema: z.ZodObject<{
99
99
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
100
100
  organizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
101
  status: z.ZodDefault<z.ZodEnum<{
102
+ void: "void";
102
103
  draft: "draft";
103
104
  sent: "sent";
104
105
  partially_paid: "partially_paid";
105
106
  paid: "paid";
106
107
  overdue: "overdue";
107
- void: "void";
108
108
  }>>;
109
109
  currency: z.ZodString;
110
110
  baseCurrency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -131,12 +131,12 @@ export declare const updateInvoiceSchema: z.ZodObject<{
131
131
  personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
132
132
  organizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
133
133
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
134
+ void: "void";
134
135
  draft: "draft";
135
136
  sent: "sent";
136
137
  partially_paid: "partially_paid";
137
138
  paid: "paid";
138
139
  overdue: "overdue";
139
- void: "void";
140
140
  }>>>;
141
141
  currency: z.ZodOptional<z.ZodString>;
142
142
  baseCurrency: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -159,12 +159,12 @@ export declare const updateInvoiceSchema: z.ZodObject<{
159
159
  }, z.core.$strip>;
160
160
  export declare const invoiceListQuerySchema: z.ZodObject<{
161
161
  status: z.ZodOptional<z.ZodEnum<{
162
+ void: "void";
162
163
  draft: "draft";
163
164
  sent: "sent";
164
165
  partially_paid: "partially_paid";
165
166
  paid: "paid";
166
167
  overdue: "overdue";
167
- void: "void";
168
168
  }>>;
169
169
  bookingId: z.ZodOptional<z.ZodString>;
170
170
  search: z.ZodOptional<z.ZodString>;
@@ -501,12 +501,12 @@ export declare const polledInvoiceSettlementProviderResultSchema: z.ZodObject<{
501
501
  export declare const polledInvoiceSettlementResultSchema: z.ZodObject<{
502
502
  invoiceId: z.ZodString;
503
503
  invoiceStatus: z.ZodEnum<{
504
+ void: "void";
504
505
  draft: "draft";
505
506
  sent: "sent";
506
507
  partially_paid: "partially_paid";
507
508
  paid: "paid";
508
509
  overdue: "overdue";
509
- void: "void";
510
510
  }>;
511
511
  paidCents: z.ZodNumber;
512
512
  balanceDueCents: z.ZodNumber;
@@ -143,9 +143,9 @@ export declare const insertPaymentSessionSchema: z.ZodObject<{
143
143
  paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  paymentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
145
  status: z.ZodDefault<z.ZodEnum<{
146
+ pending: "pending";
146
147
  expired: "expired";
147
148
  cancelled: "cancelled";
148
- pending: "pending";
149
149
  failed: "failed";
150
150
  paid: "paid";
151
151
  requires_redirect: "requires_redirect";
@@ -210,9 +210,9 @@ export declare const updatePaymentSessionSchema: z.ZodObject<{
210
210
  paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
211
211
  paymentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
212
212
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
213
+ pending: "pending";
213
214
  expired: "expired";
214
215
  cancelled: "cancelled";
215
- pending: "pending";
216
216
  failed: "failed";
217
217
  paid: "paid";
218
218
  requires_redirect: "requires_redirect";
@@ -274,9 +274,9 @@ export declare const paymentSessionListQuerySchema: z.ZodObject<{
274
274
  booking_guarantee: "booking_guarantee";
275
275
  }>>;
276
276
  status: z.ZodOptional<z.ZodEnum<{
277
+ pending: "pending";
277
278
  expired: "expired";
278
279
  cancelled: "cancelled";
279
- pending: "pending";
280
280
  failed: "failed";
281
281
  paid: "paid";
282
282
  requires_redirect: "requires_redirect";
@@ -477,8 +477,8 @@ export declare const insertPaymentAuthorizationSchema: z.ZodObject<{
477
477
  bookingGuaranteeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
478
478
  paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
479
479
  status: z.ZodDefault<z.ZodEnum<{
480
- expired: "expired";
481
480
  pending: "pending";
481
+ expired: "expired";
482
482
  failed: "failed";
483
483
  authorized: "authorized";
484
484
  partially_captured: "partially_captured";
@@ -506,8 +506,8 @@ export declare const updatePaymentAuthorizationSchema: z.ZodObject<{
506
506
  bookingGuaranteeId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
507
507
  paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
508
508
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
509
- expired: "expired";
510
509
  pending: "pending";
510
+ expired: "expired";
511
511
  failed: "failed";
512
512
  authorized: "authorized";
513
513
  partially_captured: "partially_captured";
@@ -537,8 +537,8 @@ export declare const paymentAuthorizationListQuerySchema: z.ZodObject<{
537
537
  bookingGuaranteeId: z.ZodOptional<z.ZodString>;
538
538
  paymentInstrumentId: z.ZodOptional<z.ZodString>;
539
539
  status: z.ZodOptional<z.ZodEnum<{
540
- expired: "expired";
541
540
  pending: "pending";
541
+ expired: "expired";
542
542
  failed: "failed";
543
543
  authorized: "authorized";
544
544
  partially_captured: "partially_captured";
@@ -550,8 +550,8 @@ export declare const insertPaymentCaptureSchema: z.ZodObject<{
550
550
  paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
551
551
  invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
552
552
  status: z.ZodDefault<z.ZodEnum<{
553
- completed: "completed";
554
553
  pending: "pending";
554
+ completed: "completed";
555
555
  failed: "failed";
556
556
  refunded: "refunded";
557
557
  voided: "voided";
@@ -568,8 +568,8 @@ export declare const updatePaymentCaptureSchema: z.ZodObject<{
568
568
  paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
569
569
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
570
570
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
571
- completed: "completed";
572
571
  pending: "pending";
572
+ completed: "completed";
573
573
  failed: "failed";
574
574
  refunded: "refunded";
575
575
  voided: "voided";
@@ -588,8 +588,8 @@ export declare const paymentCaptureListQuerySchema: z.ZodObject<{
588
588
  paymentAuthorizationId: z.ZodOptional<z.ZodString>;
589
589
  invoiceId: z.ZodOptional<z.ZodString>;
590
590
  status: z.ZodOptional<z.ZodEnum<{
591
- completed: "completed";
592
591
  pending: "pending";
592
+ completed: "completed";
593
593
  failed: "failed";
594
594
  refunded: "refunded";
595
595
  voided: "voided";
@@ -605,9 +605,9 @@ export declare const insertBookingPaymentScheduleSchema: z.ZodObject<{
605
605
  hold: "hold";
606
606
  }>>;
607
607
  status: z.ZodDefault<z.ZodEnum<{
608
+ pending: "pending";
608
609
  expired: "expired";
609
610
  cancelled: "cancelled";
610
- pending: "pending";
611
611
  paid: "paid";
612
612
  due: "due";
613
613
  waived: "waived";
@@ -627,9 +627,9 @@ export declare const updateBookingPaymentScheduleSchema: z.ZodObject<{
627
627
  hold: "hold";
628
628
  }>>>;
629
629
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
630
+ pending: "pending";
630
631
  expired: "expired";
631
632
  cancelled: "cancelled";
632
- pending: "pending";
633
633
  paid: "paid";
634
634
  due: "due";
635
635
  waived: "waived";
@@ -653,9 +653,9 @@ export declare const insertBookingGuaranteeSchema: z.ZodObject<{
653
653
  agency_letter: "agency_letter";
654
654
  }>;
655
655
  status: z.ZodDefault<z.ZodEnum<{
656
+ pending: "pending";
656
657
  expired: "expired";
657
658
  cancelled: "cancelled";
658
- pending: "pending";
659
659
  released: "released";
660
660
  failed: "failed";
661
661
  active: "active";
@@ -685,9 +685,9 @@ export declare const updateBookingGuaranteeSchema: z.ZodObject<{
685
685
  agency_letter: "agency_letter";
686
686
  }>>;
687
687
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
688
+ pending: "pending";
688
689
  expired: "expired";
689
690
  cancelled: "cancelled";
690
- pending: "pending";
691
691
  released: "released";
692
692
  failed: "failed";
693
693
  active: "active";
@@ -724,8 +724,8 @@ export declare const insertPaymentSchema: z.ZodObject<{
724
724
  paymentAuthorizationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
725
725
  paymentCaptureId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
726
726
  status: z.ZodDefault<z.ZodEnum<{
727
- completed: "completed";
728
727
  pending: "pending";
728
+ completed: "completed";
729
729
  failed: "failed";
730
730
  refunded: "refunded";
731
731
  }>>;
@@ -754,8 +754,8 @@ export declare const updatePaymentSchema: z.ZodObject<{
754
754
  paymentAuthorizationId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
755
755
  paymentCaptureId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
756
756
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
757
- completed: "completed";
758
757
  pending: "pending";
758
+ completed: "completed";
759
759
  failed: "failed";
760
760
  refunded: "refunded";
761
761
  }>>>;
@@ -785,8 +785,8 @@ export declare const insertSupplierPaymentSchema: z.ZodObject<{
785
785
  }>;
786
786
  paymentInstrumentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
787
787
  status: z.ZodDefault<z.ZodEnum<{
788
- completed: "completed";
789
788
  pending: "pending";
789
+ completed: "completed";
790
790
  failed: "failed";
791
791
  refunded: "refunded";
792
792
  }>>;
@@ -816,8 +816,8 @@ export declare const updateSupplierPaymentSchema: z.ZodObject<{
816
816
  }>>;
817
817
  paymentInstrumentId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
818
818
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
819
- completed: "completed";
820
819
  pending: "pending";
820
+ completed: "completed";
821
821
  failed: "failed";
822
822
  refunded: "refunded";
823
823
  }>>>;
@@ -829,8 +829,8 @@ export declare const supplierPaymentListQuerySchema: z.ZodObject<{
829
829
  bookingId: z.ZodOptional<z.ZodString>;
830
830
  supplierId: z.ZodOptional<z.ZodString>;
831
831
  status: z.ZodOptional<z.ZodEnum<{
832
- completed: "completed";
833
832
  pending: "pending";
833
+ completed: "completed";
834
834
  failed: "failed";
835
835
  refunded: "refunded";
836
836
  }>>;
@@ -109,9 +109,9 @@ export declare const publicBookingPaymentScheduleSchema: z.ZodObject<{
109
109
  hold: "hold";
110
110
  }>;
111
111
  status: z.ZodEnum<{
112
+ pending: "pending";
112
113
  expired: "expired";
113
114
  cancelled: "cancelled";
114
- pending: "pending";
115
115
  paid: "paid";
116
116
  due: "due";
117
117
  waived: "waived";
@@ -172,9 +172,9 @@ export declare const publicBookingPaymentOptionsSchema: z.ZodObject<{
172
172
  hold: "hold";
173
173
  }>;
174
174
  status: z.ZodEnum<{
175
+ pending: "pending";
175
176
  expired: "expired";
176
177
  cancelled: "cancelled";
177
- pending: "pending";
178
178
  paid: "paid";
179
179
  due: "due";
180
180
  waived: "waived";
@@ -220,9 +220,9 @@ export declare const publicPaymentSessionSchema: z.ZodObject<{
220
220
  bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
221
221
  bookingGuaranteeId: z.ZodNullable<z.ZodString>;
222
222
  status: z.ZodEnum<{
223
+ pending: "pending";
223
224
  expired: "expired";
224
225
  cancelled: "cancelled";
225
- pending: "pending";
226
226
  failed: "failed";
227
227
  paid: "paid";
228
228
  requires_redirect: "requires_redirect";
@@ -266,12 +266,12 @@ export declare const publicFinanceBookingDocumentSchema: z.ZodObject<{
266
266
  credit_note: "credit_note";
267
267
  }>;
268
268
  invoiceStatus: z.ZodEnum<{
269
+ void: "void";
269
270
  draft: "draft";
270
271
  sent: "sent";
271
272
  partially_paid: "partially_paid";
272
273
  paid: "paid";
273
274
  overdue: "overdue";
274
- void: "void";
275
275
  }>;
276
276
  currency: z.ZodString;
277
277
  totalCents: z.ZodNumber;
@@ -310,12 +310,12 @@ export declare const publicBookingFinanceDocumentsSchema: z.ZodObject<{
310
310
  credit_note: "credit_note";
311
311
  }>;
312
312
  invoiceStatus: z.ZodEnum<{
313
+ void: "void";
313
314
  draft: "draft";
314
315
  sent: "sent";
315
316
  partially_paid: "partially_paid";
316
317
  paid: "paid";
317
318
  overdue: "overdue";
318
- void: "void";
319
319
  }>;
320
320
  currency: z.ZodString;
321
321
  totalCents: z.ZodNumber;
@@ -353,12 +353,12 @@ export declare const publicFinanceDocumentLookupSchema: z.ZodObject<{
353
353
  credit_note: "credit_note";
354
354
  }>;
355
355
  invoiceStatus: z.ZodEnum<{
356
+ void: "void";
356
357
  draft: "draft";
357
358
  sent: "sent";
358
359
  partially_paid: "partially_paid";
359
360
  paid: "paid";
360
361
  overdue: "overdue";
361
- void: "void";
362
362
  }>;
363
363
  currency: z.ZodString;
364
364
  totalCents: z.ZodNumber;
@@ -397,8 +397,8 @@ export declare const publicFinanceBookingPaymentSchema: z.ZodObject<{
397
397
  credit_note: "credit_note";
398
398
  }>;
399
399
  status: z.ZodEnum<{
400
- completed: "completed";
401
400
  pending: "pending";
401
+ completed: "completed";
402
402
  failed: "failed";
403
403
  refunded: "refunded";
404
404
  }>;
@@ -431,8 +431,8 @@ export declare const publicBookingFinancePaymentsSchema: z.ZodObject<{
431
431
  credit_note: "credit_note";
432
432
  }>;
433
433
  status: z.ZodEnum<{
434
- completed: "completed";
435
434
  pending: "pending";
435
+ completed: "completed";
436
436
  failed: "failed";
437
437
  refunded: "refunded";
438
438
  }>;
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const invoiceStatusSchema: z.ZodEnum<{
3
+ void: "void";
3
4
  draft: "draft";
4
5
  sent: "sent";
5
6
  partially_paid: "partially_paid";
6
7
  paid: "paid";
7
8
  overdue: "overdue";
8
- void: "void";
9
9
  }>;
10
10
  export declare const paymentMethodSchema: z.ZodEnum<{
11
11
  other: "other";
@@ -19,15 +19,15 @@ export declare const paymentMethodSchema: z.ZodEnum<{
19
19
  direct_bill: "direct_bill";
20
20
  }>;
21
21
  export declare const paymentStatusSchema: z.ZodEnum<{
22
- completed: "completed";
23
22
  pending: "pending";
23
+ completed: "completed";
24
24
  failed: "failed";
25
25
  refunded: "refunded";
26
26
  }>;
27
27
  export declare const paymentSessionStatusSchema: z.ZodEnum<{
28
+ pending: "pending";
28
29
  expired: "expired";
29
30
  cancelled: "cancelled";
30
- pending: "pending";
31
31
  failed: "failed";
32
32
  paid: "paid";
33
33
  requires_redirect: "requires_redirect";
@@ -68,8 +68,8 @@ export declare const paymentInstrumentStatusSchema: z.ZodEnum<{
68
68
  failed_verification: "failed_verification";
69
69
  }>;
70
70
  export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
71
- expired: "expired";
72
71
  pending: "pending";
72
+ expired: "expired";
73
73
  failed: "failed";
74
74
  authorized: "authorized";
75
75
  partially_captured: "partially_captured";
@@ -77,8 +77,8 @@ export declare const paymentAuthorizationStatusSchema: z.ZodEnum<{
77
77
  voided: "voided";
78
78
  }>;
79
79
  export declare const paymentCaptureStatusSchema: z.ZodEnum<{
80
- completed: "completed";
81
80
  pending: "pending";
81
+ completed: "completed";
82
82
  failed: "failed";
83
83
  refunded: "refunded";
84
84
  voided: "voided";
@@ -100,9 +100,9 @@ export declare const paymentScheduleTypeSchema: z.ZodEnum<{
100
100
  hold: "hold";
101
101
  }>;
102
102
  export declare const paymentScheduleStatusSchema: z.ZodEnum<{
103
+ pending: "pending";
103
104
  expired: "expired";
104
105
  cancelled: "cancelled";
105
- pending: "pending";
106
106
  paid: "paid";
107
107
  due: "due";
108
108
  waived: "waived";
@@ -118,9 +118,9 @@ export declare const guaranteeTypeSchema: z.ZodEnum<{
118
118
  agency_letter: "agency_letter";
119
119
  }>;
120
120
  export declare const guaranteeStatusSchema: z.ZodEnum<{
121
+ pending: "pending";
121
122
  expired: "expired";
122
123
  cancelled: "cancelled";
123
- pending: "pending";
124
124
  released: "released";
125
125
  failed: "failed";
126
126
  active: "active";
@@ -147,8 +147,8 @@ export declare const commissionModelSchema: z.ZodEnum<{
147
147
  }>;
148
148
  export declare const commissionStatusSchema: z.ZodEnum<{
149
149
  pending: "pending";
150
- paid: "paid";
151
150
  void: "void";
151
+ paid: "paid";
152
152
  accrued: "accrued";
153
153
  payable: "payable";
154
154
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/finance",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,12 +33,12 @@
33
33
  "drizzle-orm": "^0.45.2",
34
34
  "hono": "^4.12.10",
35
35
  "zod": "^4.3.6",
36
- "@voyantjs/bookings": "0.5.0",
37
- "@voyantjs/core": "0.5.0",
38
- "@voyantjs/db": "0.5.0",
39
- "@voyantjs/hono": "0.5.0",
40
- "@voyantjs/utils": "0.5.0",
41
- "@voyantjs/voyant-storage": "0.5.0"
36
+ "@voyantjs/bookings": "0.6.0",
37
+ "@voyantjs/core": "0.6.0",
38
+ "@voyantjs/db": "0.6.0",
39
+ "@voyantjs/hono": "0.6.0",
40
+ "@voyantjs/utils": "0.6.0",
41
+ "@voyantjs/voyant-storage": "0.6.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^6.0.2",