@voyantjs/finance 0.52.2 → 0.52.4

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 (51) hide show
  1. package/dist/action-ledger-drift.d.ts +29 -0
  2. package/dist/action-ledger-drift.d.ts.map +1 -0
  3. package/dist/action-ledger-drift.js +163 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +2 -0
  6. package/dist/routes-action-ledger.d.ts +181 -0
  7. package/dist/routes-action-ledger.d.ts.map +1 -0
  8. package/dist/routes-action-ledger.js +142 -0
  9. package/dist/routes-documents.d.ts +8 -8
  10. package/dist/routes-public.d.ts +48 -48
  11. package/dist/routes-settlement.d.ts +1 -1
  12. package/dist/routes-shared.d.ts +12 -0
  13. package/dist/routes-shared.d.ts.map +1 -1
  14. package/dist/routes.d.ts +224 -224
  15. package/dist/routes.d.ts.map +1 -1
  16. package/dist/routes.js +252 -46
  17. package/dist/schema.d.ts +22 -22
  18. package/dist/service-action-ledger-accounting.d.ts +77 -0
  19. package/dist/service-action-ledger-accounting.d.ts.map +1 -0
  20. package/dist/service-action-ledger-accounting.js +307 -0
  21. package/dist/service-action-ledger-booking-payments.d.ts +48 -0
  22. package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
  23. package/dist/service-action-ledger-booking-payments.js +178 -0
  24. package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
  25. package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
  26. package/dist/service-action-ledger-payment-authorizations.js +209 -0
  27. package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
  28. package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
  29. package/dist/service-action-ledger-payment-sessions.js +294 -0
  30. package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
  31. package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
  32. package/dist/service-action-ledger-supplier-payments.js +70 -0
  33. package/dist/service-action-ledger.d.ts +6 -0
  34. package/dist/service-action-ledger.d.ts.map +1 -0
  35. package/dist/service-action-ledger.js +5 -0
  36. package/dist/service-booking-create.d.ts +12 -12
  37. package/dist/service-bookings-dual-create.d.ts +12 -12
  38. package/dist/service-issue.d.ts +15 -12
  39. package/dist/service-issue.d.ts.map +1 -1
  40. package/dist/service-issue.js +24 -3
  41. package/dist/service-public.d.ts +13 -13
  42. package/dist/service-vouchers.d.ts +10 -10
  43. package/dist/service.d.ts +291 -279
  44. package/dist/service.d.ts.map +1 -1
  45. package/dist/service.js +731 -234
  46. package/dist/validation-billing.d.ts +37 -37
  47. package/dist/validation-payments.d.ts +102 -102
  48. package/dist/validation-public.d.ts +45 -45
  49. package/dist/validation-shared.d.ts +32 -32
  50. package/dist/validation-vouchers.d.ts +2 -2
  51. package/package.json +13 -7
@@ -124,7 +124,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
124
124
  invoiceId: string;
125
125
  invoiceNumber: string;
126
126
  invoiceType: "invoice" | "proforma" | "credit_note";
127
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
127
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
128
128
  currency: string;
129
129
  totalCents: number;
130
130
  paidCents: number;
@@ -132,8 +132,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
132
132
  issueDate: string;
133
133
  dueDate: string;
134
134
  renditionId: string | null;
135
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
136
- format: "json" | "pdf" | "html" | "xml" | null;
135
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
136
+ format: "json" | "html" | "pdf" | "xml" | null;
137
137
  language: string | null;
138
138
  generatedAt: string | null;
139
139
  fileSize: number | null;
@@ -172,7 +172,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
172
172
  invoiceId: string;
173
173
  invoiceNumber: string;
174
174
  invoiceType: "invoice" | "proforma" | "credit_note";
175
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
175
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
176
176
  currency: string;
177
177
  totalCents: number;
178
178
  paidCents: number;
@@ -180,8 +180,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
180
180
  issueDate: string;
181
181
  dueDate: string;
182
182
  renditionId: string | null;
183
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
184
- format: "json" | "pdf" | "html" | "xml" | null;
183
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
184
+ format: "json" | "html" | "pdf" | "xml" | null;
185
185
  language: string | null;
186
186
  generatedAt: string | null;
187
187
  fileSize: number | null;
@@ -218,7 +218,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
218
218
  invoiceId: string;
219
219
  invoiceNumber: string;
220
220
  invoiceType: "invoice" | "proforma" | "credit_note";
221
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
221
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
222
222
  currency: string;
223
223
  totalCents: number;
224
224
  paidCents: number;
@@ -226,8 +226,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
226
226
  issueDate: string;
227
227
  dueDate: string;
228
228
  renditionId: string | null;
229
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
230
- format: "json" | "pdf" | "html" | "xml" | null;
229
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
230
+ format: "json" | "html" | "pdf" | "xml" | null;
231
231
  language: string | null;
232
232
  generatedAt: string | null;
233
233
  fileSize: number | null;
@@ -267,8 +267,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
267
267
  invoiceId: string;
268
268
  invoiceNumber: string;
269
269
  invoiceType: "invoice" | "proforma" | "credit_note";
270
- status: "pending" | "completed" | "failed" | "refunded";
271
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
270
+ status: "failed" | "pending" | "completed" | "refunded";
271
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
272
272
  amountCents: number;
273
273
  currency: string;
274
274
  paymentDate: string;
@@ -307,8 +307,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
307
307
  id: string;
308
308
  label: string;
309
309
  provider: string | null;
310
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
311
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
310
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
311
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
312
312
  brand: string | null;
313
313
  last4: string | null;
314
314
  expiryMonth: number | null;
@@ -318,7 +318,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
318
318
  schedules: {
319
319
  id: string;
320
320
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
321
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
321
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
322
322
  dueDate: string;
323
323
  currency: string;
324
324
  amountCents: number;
@@ -327,8 +327,8 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
327
327
  guarantees: {
328
328
  id: string;
329
329
  bookingPaymentScheduleId: string | null;
330
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
331
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
330
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
331
+ status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
332
332
  currency: string | null;
333
333
  amountCents: number | null;
334
334
  provider: string | null;
@@ -374,7 +374,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
374
374
  invoiceId: string | null;
375
375
  bookingPaymentScheduleId: string | null;
376
376
  bookingGuaranteeId: string | null;
377
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
377
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
378
378
  provider: string | null;
379
379
  providerSessionId: string | null;
380
380
  providerPaymentId: string | null;
@@ -382,7 +382,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
382
382
  clientReference: string | null;
383
383
  currency: string;
384
384
  amountCents: number;
385
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
385
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
386
386
  payerEmail: string | null;
387
387
  payerName: string | null;
388
388
  redirectUrl: string | null;
@@ -418,7 +418,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
418
418
  invoiceId: string | null;
419
419
  bookingPaymentScheduleId: string | null;
420
420
  bookingGuaranteeId: string | null;
421
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
421
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
422
422
  provider: string | null;
423
423
  providerSessionId: string | null;
424
424
  providerPaymentId: string | null;
@@ -426,7 +426,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
426
426
  clientReference: string | null;
427
427
  currency: string;
428
428
  amountCents: number;
429
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
429
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
430
430
  payerEmail: string | null;
431
431
  payerName: string | null;
432
432
  redirectUrl: string | null;
@@ -501,7 +501,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
501
501
  invoiceId: string | null;
502
502
  bookingPaymentScheduleId: string | null;
503
503
  bookingGuaranteeId: string | null;
504
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
504
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
505
505
  provider: string | null;
506
506
  providerSessionId: string | null;
507
507
  providerPaymentId: string | null;
@@ -509,7 +509,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
509
509
  clientReference: string | null;
510
510
  currency: string;
511
511
  amountCents: number;
512
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
512
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
513
513
  payerEmail: string | null;
514
514
  payerName: string | null;
515
515
  redirectUrl: string | null;
@@ -567,7 +567,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
567
567
  invoiceId: string | null;
568
568
  bookingPaymentScheduleId: string | null;
569
569
  bookingGuaranteeId: string | null;
570
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
570
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
571
571
  provider: string | null;
572
572
  providerSessionId: string | null;
573
573
  providerPaymentId: string | null;
@@ -575,7 +575,7 @@ export declare function createPublicFinanceRoutes(options?: PublicFinanceRouteOp
575
575
  clientReference: string | null;
576
576
  currency: string;
577
577
  amountCents: number;
578
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
578
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
579
579
  payerEmail: string | null;
580
580
  payerName: string | null;
581
581
  redirectUrl: string | null;
@@ -726,7 +726,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
726
726
  invoiceId: string;
727
727
  invoiceNumber: string;
728
728
  invoiceType: "invoice" | "proforma" | "credit_note";
729
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
729
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
730
730
  currency: string;
731
731
  totalCents: number;
732
732
  paidCents: number;
@@ -734,8 +734,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
734
734
  issueDate: string;
735
735
  dueDate: string;
736
736
  renditionId: string | null;
737
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
738
- format: "json" | "pdf" | "html" | "xml" | null;
737
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
738
+ format: "json" | "html" | "pdf" | "xml" | null;
739
739
  language: string | null;
740
740
  generatedAt: string | null;
741
741
  fileSize: number | null;
@@ -774,7 +774,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
774
774
  invoiceId: string;
775
775
  invoiceNumber: string;
776
776
  invoiceType: "invoice" | "proforma" | "credit_note";
777
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
777
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
778
778
  currency: string;
779
779
  totalCents: number;
780
780
  paidCents: number;
@@ -782,8 +782,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
782
782
  issueDate: string;
783
783
  dueDate: string;
784
784
  renditionId: string | null;
785
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
786
- format: "json" | "pdf" | "html" | "xml" | null;
785
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
786
+ format: "json" | "html" | "pdf" | "xml" | null;
787
787
  language: string | null;
788
788
  generatedAt: string | null;
789
789
  fileSize: number | null;
@@ -820,7 +820,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
820
820
  invoiceId: string;
821
821
  invoiceNumber: string;
822
822
  invoiceType: "invoice" | "proforma" | "credit_note";
823
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
823
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
824
824
  currency: string;
825
825
  totalCents: number;
826
826
  paidCents: number;
@@ -828,8 +828,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
828
828
  issueDate: string;
829
829
  dueDate: string;
830
830
  renditionId: string | null;
831
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
832
- format: "json" | "pdf" | "html" | "xml" | null;
831
+ documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
832
+ format: "json" | "html" | "pdf" | "xml" | null;
833
833
  language: string | null;
834
834
  generatedAt: string | null;
835
835
  fileSize: number | null;
@@ -869,8 +869,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
869
869
  invoiceId: string;
870
870
  invoiceNumber: string;
871
871
  invoiceType: "invoice" | "proforma" | "credit_note";
872
- status: "pending" | "completed" | "failed" | "refunded";
873
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
872
+ status: "failed" | "pending" | "completed" | "refunded";
873
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
874
874
  amountCents: number;
875
875
  currency: string;
876
876
  paymentDate: string;
@@ -909,8 +909,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
909
909
  id: string;
910
910
  label: string;
911
911
  provider: string | null;
912
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
913
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
912
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
913
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
914
914
  brand: string | null;
915
915
  last4: string | null;
916
916
  expiryMonth: number | null;
@@ -920,7 +920,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
920
920
  schedules: {
921
921
  id: string;
922
922
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
923
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
923
+ status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
924
924
  dueDate: string;
925
925
  currency: string;
926
926
  amountCents: number;
@@ -929,8 +929,8 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
929
929
  guarantees: {
930
930
  id: string;
931
931
  bookingPaymentScheduleId: string | null;
932
- guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
933
- status: "pending" | "failed" | "cancelled" | "active" | "expired" | "released";
932
+ guaranteeType: "bank_transfer" | "credit_card" | "voucher" | "other" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
933
+ status: "failed" | "expired" | "cancelled" | "pending" | "active" | "released";
934
934
  currency: string | null;
935
935
  amountCents: number | null;
936
936
  provider: string | null;
@@ -976,7 +976,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
976
976
  invoiceId: string | null;
977
977
  bookingPaymentScheduleId: string | null;
978
978
  bookingGuaranteeId: string | null;
979
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
979
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
980
980
  provider: string | null;
981
981
  providerSessionId: string | null;
982
982
  providerPaymentId: string | null;
@@ -984,7 +984,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
984
984
  clientReference: string | null;
985
985
  currency: string;
986
986
  amountCents: number;
987
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
987
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
988
988
  payerEmail: string | null;
989
989
  payerName: string | null;
990
990
  redirectUrl: string | null;
@@ -1020,7 +1020,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1020
1020
  invoiceId: string | null;
1021
1021
  bookingPaymentScheduleId: string | null;
1022
1022
  bookingGuaranteeId: string | null;
1023
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1023
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1024
1024
  provider: string | null;
1025
1025
  providerSessionId: string | null;
1026
1026
  providerPaymentId: string | null;
@@ -1028,7 +1028,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1028
1028
  clientReference: string | null;
1029
1029
  currency: string;
1030
1030
  amountCents: number;
1031
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1031
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1032
1032
  payerEmail: string | null;
1033
1033
  payerName: string | null;
1034
1034
  redirectUrl: string | null;
@@ -1103,7 +1103,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1103
1103
  invoiceId: string | null;
1104
1104
  bookingPaymentScheduleId: string | null;
1105
1105
  bookingGuaranteeId: string | null;
1106
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1106
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1107
1107
  provider: string | null;
1108
1108
  providerSessionId: string | null;
1109
1109
  providerPaymentId: string | null;
@@ -1111,7 +1111,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1111
1111
  clientReference: string | null;
1112
1112
  currency: string;
1113
1113
  amountCents: number;
1114
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1114
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1115
1115
  payerEmail: string | null;
1116
1116
  payerName: string | null;
1117
1117
  redirectUrl: string | null;
@@ -1169,7 +1169,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1169
1169
  invoiceId: string | null;
1170
1170
  bookingPaymentScheduleId: string | null;
1171
1171
  bookingGuaranteeId: string | null;
1172
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
1172
+ status: "failed" | "expired" | "cancelled" | "pending" | "processing" | "paid" | "requires_redirect" | "authorized";
1173
1173
  provider: string | null;
1174
1174
  providerSessionId: string | null;
1175
1175
  providerPaymentId: string | null;
@@ -1177,7 +1177,7 @@ export declare const publicFinanceRoutes: import("hono/hono-base").HonoBase<Env,
1177
1177
  clientReference: string | null;
1178
1178
  currency: string;
1179
1179
  amountCents: number;
1180
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
1180
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
1181
1181
  payerEmail: string | null;
1182
1182
  payerName: string | null;
1183
1183
  redirectUrl: string | null;
@@ -36,7 +36,7 @@ export declare function createFinanceAdminSettlementRoutes(options?: FinanceSett
36
36
  output: {
37
37
  data: {
38
38
  invoiceId: string;
39
- invoiceStatus: "void" | "draft" | "sent" | "partially_paid" | "paid" | "overdue";
39
+ invoiceStatus: "draft" | "sent" | "partially_paid" | "paid" | "overdue" | "void";
40
40
  paidCents: number;
41
41
  balanceDueCents: number;
42
42
  results: {
@@ -13,6 +13,18 @@ export type Env = {
13
13
  Variables: {
14
14
  db: PostgresJsDatabase;
15
15
  userId?: string;
16
+ agentId?: string;
17
+ workflowPrincipalId?: string;
18
+ principalSubtype?: string;
19
+ sessionId?: string;
20
+ organizationId?: string | null;
21
+ callerType?: "session" | "api_key" | "internal" | "agent" | "workflow";
22
+ actor?: string;
23
+ apiTokenId?: string;
24
+ apiKeyId?: string;
25
+ workflowRunId?: string;
26
+ workflowStepId?: string;
27
+ isInternalRequest?: boolean;
16
28
  container?: ModuleContainer;
17
29
  };
18
30
  };
@@ -1 +1 @@
1
- {"version":3,"file":"routes-shared.d.ts","sourceRoot":"","sources":["../src/routes-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,EAAE,OAAO,CAAC;QAChB,iCAAiC,EAAE,MAAM,CAAA;QACzC,0BAA0B,EAAE,MAAM,CAAA;QAClC,sCAAsC,EAAE,MAAM,CAAA;QAC9C,+BAA+B,EAAE,MAAM,CAAA;QACvC,qBAAqB,EAAE,MAAM,CAAA;QAC7B,kBAAkB,EAAE,MAAM,CAAA;KAC3B,CAAC,CAAA;IACF,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,eAAe,CAAA;KAC5B,CAAA;CACF,CAAA;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,OAYvC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM;;gBAEnE"}
1
+ {"version":3,"file":"routes-shared.d.ts","sourceRoot":"","sources":["../src/routes-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,EAAE,OAAO,CAAC;QAChB,iCAAiC,EAAE,MAAM,CAAA;QACzC,0BAA0B,EAAE,MAAM,CAAA;QAClC,sCAAsC,EAAE,MAAM,CAAA;QAC9C,+BAA+B,EAAE,MAAM,CAAA;QACvC,qBAAqB,EAAE,MAAM,CAAA;QAC7B,kBAAkB,EAAE,MAAM,CAAA;KAC3B,CAAC,CAAA;IACF,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,mBAAmB,CAAC,EAAE,MAAM,CAAA;QAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAA;QACzB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,CAAA;QACtE,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAA;QAC3B,SAAS,CAAC,EAAE,eAAe,CAAA;KAC5B,CAAA;CACF,CAAA;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,OAAO,OAYvC;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM;;gBAEnE"}