@voyantjs/finance-react 0.28.1 → 0.28.3

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 (34) hide show
  1. package/dist/hooks/index.d.ts +2 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +2 -0
  4. package/dist/hooks/use-admin-booking-payments.d.ts +1 -1
  5. package/dist/hooks/use-all-payments.d.ts +35 -0
  6. package/dist/hooks/use-all-payments.d.ts.map +1 -0
  7. package/dist/hooks/use-all-payments.js +12 -0
  8. package/dist/hooks/use-booking-guarantees.d.ts +3 -3
  9. package/dist/hooks/use-invoice-payment-mutation.d.ts +1 -1
  10. package/dist/hooks/use-invoice-payment-mutation.d.ts.map +1 -1
  11. package/dist/hooks/use-invoice-payment-mutation.js +1 -0
  12. package/dist/hooks/use-invoice-payments.d.ts +1 -1
  13. package/dist/hooks/use-payment.d.ts +31 -0
  14. package/dist/hooks/use-payment.d.ts.map +1 -0
  15. package/dist/hooks/use-payment.js +12 -0
  16. package/dist/hooks/use-public-booking-payments.d.ts +1 -1
  17. package/dist/hooks/use-supplier-payment-mutation.d.ts +2 -2
  18. package/dist/hooks/use-supplier-payment-mutation.d.ts.map +1 -1
  19. package/dist/hooks/use-supplier-payment-mutation.js +2 -0
  20. package/dist/hooks/use-supplier-payments.d.ts +1 -1
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -2
  24. package/dist/operations.d.ts +2 -2
  25. package/dist/query-keys.d.ts +42 -0
  26. package/dist/query-keys.d.ts.map +1 -1
  27. package/dist/query-keys.js +3 -0
  28. package/dist/query-options.d.ts +258 -20
  29. package/dist/query-options.d.ts.map +1 -1
  30. package/dist/query-options.js +83 -1
  31. package/dist/schemas.d.ts +120 -9
  32. package/dist/schemas.d.ts.map +1 -1
  33. package/dist/schemas.js +28 -0
  34. package/package.json +5 -5
@@ -1,4 +1,5 @@
1
1
  export * from "./use-admin-booking-payments.js";
2
+ export * from "./use-all-payments.js";
2
3
  export * from "./use-booking-guarantees.js";
3
4
  export * from "./use-booking-payment-schedules.js";
4
5
  export * from "./use-invoice.js";
@@ -12,6 +13,7 @@ export * from "./use-invoice-notes.js";
12
13
  export * from "./use-invoice-payment-mutation.js";
13
14
  export * from "./use-invoice-payments.js";
14
15
  export * from "./use-invoices.js";
16
+ export * from "./use-payment.js";
15
17
  export * from "./use-public-booking-documents.js";
16
18
  export * from "./use-public-booking-payment-options.js";
17
19
  export * from "./use-public-booking-payments.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mCAAmC,CAAA;AACjD,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AACvD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0CAA0C,CAAA;AACxD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAA;AAC/C,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,oCAAoC,CAAA;AAClD,cAAc,kBAAkB,CAAA;AAChC,cAAc,uCAAuC,CAAA;AACrD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,wBAAwB,CAAA;AACtC,cAAc,mCAAmC,CAAA;AACjD,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,mCAAmC,CAAA;AACjD,cAAc,yCAAyC,CAAA;AACvD,cAAc,kCAAkC,CAAA;AAChD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iCAAiC,CAAA;AAC/C,cAAc,0CAA0C,CAAA;AACxD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,oCAAoC,CAAA;AAClD,cAAc,4BAA4B,CAAA;AAC1C,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA;AACzC,cAAc,mBAAmB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export * from "./use-admin-booking-payments.js";
2
+ export * from "./use-all-payments.js";
2
3
  export * from "./use-booking-guarantees.js";
3
4
  export * from "./use-booking-payment-schedules.js";
4
5
  export * from "./use-invoice.js";
@@ -12,6 +13,7 @@ export * from "./use-invoice-notes.js";
12
13
  export * from "./use-invoice-payment-mutation.js";
13
14
  export * from "./use-invoice-payments.js";
14
15
  export * from "./use-invoices.js";
16
+ export * from "./use-payment.js";
15
17
  export * from "./use-public-booking-documents.js";
16
18
  export * from "./use-public-booking-payment-options.js";
17
19
  export * from "./use-public-booking-payments.js";
@@ -15,7 +15,7 @@ export declare function useAdminBookingPayments(bookingId: string | null | undef
15
15
  invoiceId: string;
16
16
  invoiceNumber: string;
17
17
  invoiceType: "invoice" | "proforma" | "credit_note";
18
- status: "pending" | "failed" | "completed" | "refunded";
18
+ status: "pending" | "completed" | "failed" | "refunded";
19
19
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
20
20
  amountCents: number;
21
21
  currency: string;
@@ -0,0 +1,35 @@
1
+ import type { FinanceAllPaymentsListFilters } from "../query-keys.js";
2
+ export interface UseAllPaymentsOptions extends FinanceAllPaymentsListFilters {
3
+ enabled?: boolean;
4
+ }
5
+ export declare function useAllPayments(options?: UseAllPaymentsOptions): import("@tanstack/react-query").UseQueryResult<{
6
+ data: {
7
+ kind: "customer" | "supplier";
8
+ id: string;
9
+ invoiceId: string | null;
10
+ invoiceNumber: string | null;
11
+ bookingId: string | null;
12
+ bookingNumber: string | null;
13
+ supplierId: string | null;
14
+ supplierName: string | null;
15
+ personId: string | null;
16
+ personName: string | null;
17
+ organizationId: string | null;
18
+ organizationName: string | null;
19
+ amountCents: number;
20
+ currency: string;
21
+ baseCurrency: string | null;
22
+ baseAmountCents: number | null;
23
+ paymentMethod: string;
24
+ status: "pending" | "completed" | "failed" | "refunded";
25
+ referenceNumber: string | null;
26
+ paymentDate: string;
27
+ notes: string | null;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ }[];
31
+ total: number;
32
+ limit: number;
33
+ offset: number;
34
+ }, Error>;
35
+ //# sourceMappingURL=use-all-payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-all-payments.d.ts","sourceRoot":"","sources":["../../src/hooks/use-all-payments.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAGrE,MAAM,WAAW,qBAAsB,SAAQ,6BAA6B;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQjE"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantFinanceContext } from "../provider.js";
4
+ import { getAllPaymentsQueryOptions } from "../query-options.js";
5
+ export function useAllPayments(options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantFinanceContext();
7
+ const { enabled = true, ...filters } = options;
8
+ return useQuery({
9
+ ...getAllPaymentsQueryOptions({ baseUrl, fetcher }, filters),
10
+ enabled,
11
+ });
12
+ }
@@ -8,7 +8,7 @@ export declare function useBookingGuarantees(bookingId: string | null | undefine
8
8
  bookingPaymentScheduleId: string | null;
9
9
  bookingItemId: string | null;
10
10
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
11
- status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
11
+ status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
12
12
  currency: string | null;
13
13
  amountCents: number | null;
14
14
  provider: string | null;
@@ -42,7 +42,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
42
42
  bookingPaymentScheduleId: string | null;
43
43
  bookingItemId: string | null;
44
44
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
45
- status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
45
+ status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
46
46
  currency: string | null;
47
47
  amountCents: number | null;
48
48
  provider: string | null;
@@ -60,7 +60,7 @@ export declare function useBookingGuaranteeMutation(bookingId: string): {
60
60
  bookingPaymentScheduleId: string | null;
61
61
  bookingItemId: string | null;
62
62
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
63
- status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
63
+ status: "pending" | "failed" | "active" | "expired" | "cancelled" | "released";
64
64
  currency: string | null;
65
65
  amountCents: number | null;
66
66
  provider: string | null;
@@ -13,7 +13,7 @@ export declare function useInvoicePaymentMutation(invoiceId: string): import("@t
13
13
  amountCents: number;
14
14
  currency: string;
15
15
  paymentMethod: string;
16
- status: "pending" | "failed" | "completed" | "refunded";
16
+ status: "pending" | "completed" | "failed" | "refunded";
17
17
  referenceNumber: string | null;
18
18
  paymentDate: string;
19
19
  notes: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"use-invoice-payment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-invoice-payment-mutation.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5E,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAMD,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;8CAmB1D"}
1
+ {"version":3,"file":"use-invoice-payment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-invoice-payment-mutation.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5E,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAMD,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;8CAoB1D"}
@@ -19,6 +19,7 @@ export function useInvoicePaymentMutation(invoiceId) {
19
19
  onSuccess: () => {
20
20
  void queryClient.invalidateQueries({ queryKey: financeQueryKeys.payments(invoiceId) });
21
21
  void queryClient.invalidateQueries({ queryKey: financeQueryKeys.invoice(invoiceId) });
22
+ void queryClient.invalidateQueries({ queryKey: financeQueryKeys.allPayments() });
22
23
  },
23
24
  });
24
25
  }
@@ -8,7 +8,7 @@ export declare function useInvoicePayments(invoiceId: string | null | undefined,
8
8
  amountCents: number;
9
9
  currency: string;
10
10
  paymentMethod: string;
11
- status: "pending" | "failed" | "completed" | "refunded";
11
+ status: "pending" | "completed" | "failed" | "refunded";
12
12
  referenceNumber: string | null;
13
13
  paymentDate: string;
14
14
  notes: string | null;
@@ -0,0 +1,31 @@
1
+ export interface UsePaymentOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function usePayment(id: string | null | undefined, options?: UsePaymentOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ data: {
6
+ kind: "customer" | "supplier";
7
+ id: string;
8
+ invoiceId: string | null;
9
+ invoiceNumber: string | null;
10
+ bookingId: string | null;
11
+ bookingNumber: string | null;
12
+ supplierId: string | null;
13
+ supplierName: string | null;
14
+ personId: string | null;
15
+ personName: string | null;
16
+ organizationId: string | null;
17
+ organizationName: string | null;
18
+ amountCents: number;
19
+ currency: string;
20
+ baseCurrency: string | null;
21
+ baseAmountCents: number | null;
22
+ paymentMethod: string;
23
+ status: "pending" | "completed" | "failed" | "refunded";
24
+ referenceNumber: string | null;
25
+ paymentDate: string;
26
+ notes: string | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ };
30
+ }, Error>;
31
+ //# sourceMappingURL=use-payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-payment.d.ts","sourceRoot":"","sources":["../../src/hooks/use-payment.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;UAQxF"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantFinanceContext } from "../provider.js";
4
+ import { getPaymentQueryOptions } from "../query-options.js";
5
+ export function usePayment(id, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantFinanceContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getPaymentQueryOptions({ baseUrl, fetcher }, id),
10
+ enabled: enabled && Boolean(id),
11
+ });
12
+ }
@@ -9,7 +9,7 @@ export declare function usePublicBookingPayments(bookingId: string | null | unde
9
9
  invoiceId: string;
10
10
  invoiceNumber: string;
11
11
  invoiceType: "invoice" | "proforma" | "credit_note";
12
- status: "pending" | "failed" | "completed" | "refunded";
12
+ status: "pending" | "completed" | "failed" | "refunded";
13
13
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
14
14
  amountCents: number;
15
15
  currency: string;
@@ -18,7 +18,7 @@ export declare function useSupplierPaymentMutation(): {
18
18
  amountCents: number;
19
19
  currency: string;
20
20
  paymentMethod: string;
21
- status: "pending" | "failed" | "completed" | "refunded";
21
+ status: "pending" | "completed" | "failed" | "refunded";
22
22
  referenceNumber: string | null;
23
23
  paymentDate: string;
24
24
  createdAt: string;
@@ -31,7 +31,7 @@ export declare function useSupplierPaymentMutation(): {
31
31
  amountCents: number;
32
32
  currency: string;
33
33
  paymentMethod: string;
34
- status: "pending" | "failed" | "completed" | "refunded";
34
+ status: "pending" | "completed" | "failed" | "refunded";
35
35
  referenceNumber: string | null;
36
36
  paymentDate: string;
37
37
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"use-supplier-payment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-supplier-payment-mutation.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5E,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAM5E,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBE,MAAM;eAAS,0BAA0B;;EAepF"}
1
+ {"version":3,"file":"use-supplier-payment-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-supplier-payment-mutation.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,eAAe,GAAG,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC5E,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;IACvD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAA;AAM5E,wBAAgB,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqBE,MAAM;eAAS,0BAA0B;;EAgBpF"}
@@ -18,6 +18,7 @@ export function useSupplierPaymentMutation() {
18
18
  },
19
19
  onSuccess: () => {
20
20
  void queryClient.invalidateQueries({ queryKey: financeQueryKeys.supplierPayments() });
21
+ void queryClient.invalidateQueries({ queryKey: financeQueryKeys.allPayments() });
21
22
  },
22
23
  });
23
24
  const update = useMutation({
@@ -27,6 +28,7 @@ export function useSupplierPaymentMutation() {
27
28
  },
28
29
  onSuccess: () => {
29
30
  void queryClient.invalidateQueries({ queryKey: financeQueryKeys.supplierPayments() });
31
+ void queryClient.invalidateQueries({ queryKey: financeQueryKeys.allPayments() });
30
32
  },
31
33
  });
32
34
  return { create, update };
@@ -10,7 +10,7 @@ export declare function useSupplierPayments(options?: UseSupplierPaymentsOptions
10
10
  amountCents: number;
11
11
  currency: string;
12
12
  paymentMethod: string;
13
- status: "pending" | "failed" | "completed" | "refunded";
13
+ status: "pending" | "completed" | "failed" | "refunded";
14
14
  referenceNumber: string | null;
15
15
  paymentDate: string;
16
16
  createdAt: string;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher
2
2
  export * from "./hooks/index.js";
3
3
  export { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
4
4
  export { useVoyantFinanceContext, type VoyantFinanceContextValue, VoyantFinanceProvider, type VoyantFinanceProviderProps, } from "./provider.js";
5
- export { financeQueryKeys } from "./query-keys.js";
6
- export { getAdminBookingPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
5
+ export { type FinanceAllPaymentsListFilters, type FinanceAllPaymentsListSortDir, type FinanceAllPaymentsListSortField, type FinanceInvoiceListFilters, type FinanceInvoiceListSortDir, type FinanceInvoiceListSortField, type FinancePaymentKind, type FinanceSupplierPaymentListFilters, type FinanceSupplierPaymentListSortDir, type FinanceSupplierPaymentListSortField, financeQueryKeys, } from "./query-keys.js";
6
+ export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
7
7
  export * from "./schemas.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,uBAAuB,EACvB,yCAAyC,EACzC,wCAAwC,EACxC,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EACL,mCAAmC,EACnC,gCAAgC,EAChC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,+CAA+C,EAC/C,mCAAmC,EACnC,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,mCAAmC,EACnC,uBAAuB,EACvB,yCAAyC,EACzC,wCAAwC,EACxC,qBAAqB,GACtB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,mCAAmC,EACnC,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,iCAAiC,EACjC,+BAA+B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,+CAA+C,EAC/C,mCAAmC,EACnC,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -2,6 +2,6 @@ export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, }
2
2
  export * from "./hooks/index.js";
3
3
  export { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, startPublicBookingGuaranteePaymentSession, startPublicBookingSchedulePaymentSession, validatePublicVoucher, } from "./operations.js";
4
4
  export { useVoyantFinanceContext, VoyantFinanceProvider, } from "./provider.js";
5
- export { financeQueryKeys } from "./query-keys.js";
6
- export { getAdminBookingPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
5
+ export { financeQueryKeys, } from "./query-keys.js";
6
+ export { getAdminBookingPaymentsQueryOptions, getAllPaymentsQueryOptions, getBookingGuaranteesQueryOptions, getBookingPaymentSchedulesQueryOptions, getInvoiceCreditNotesQueryOptions, getInvoiceLineItemsQueryOptions, getInvoiceNotesQueryOptions, getInvoicePaymentsQueryOptions, getInvoiceQueryOptions, getInvoicesQueryOptions, getPaymentQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getSupplierPaymentsQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options.js";
7
7
  export * from "./schemas.js";
@@ -56,7 +56,7 @@ export declare function getPublicBookingPayments(client: FetchWithValidationOpti
56
56
  invoiceId: string;
57
57
  invoiceNumber: string;
58
58
  invoiceType: "invoice" | "proforma" | "credit_note";
59
- status: "pending" | "failed" | "completed" | "refunded";
59
+ status: "pending" | "completed" | "failed" | "refunded";
60
60
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
61
61
  amountCents: number;
62
62
  currency: string;
@@ -80,7 +80,7 @@ export declare function getAdminBookingPayments(client: FetchWithValidationOptio
80
80
  invoiceId: string;
81
81
  invoiceNumber: string;
82
82
  invoiceType: "invoice" | "proforma" | "credit_note";
83
- status: "pending" | "failed" | "completed" | "refunded";
83
+ status: "pending" | "completed" | "failed" | "refunded";
84
84
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
85
85
  amountCents: number;
86
86
  currency: string;
@@ -1,3 +1,5 @@
1
+ export type FinanceInvoiceListSortField = "invoiceNumber" | "status" | "totalCents" | "paidCents" | "balanceDueCents" | "issueDate" | "dueDate" | "createdAt";
2
+ export type FinanceInvoiceListSortDir = "asc" | "desc";
1
3
  export interface FinanceInvoiceListFilters {
2
4
  search?: string | undefined;
3
5
  /**
@@ -8,10 +10,47 @@ export interface FinanceInvoiceListFilters {
8
10
  bookingId?: string | undefined;
9
11
  /** Filter by invoice status (draft, sent, paid, …). */
10
12
  status?: string | undefined;
13
+ personId?: string | undefined;
14
+ organizationId?: string | undefined;
15
+ currency?: string | undefined;
16
+ dueDateFrom?: string | undefined;
17
+ dueDateTo?: string | undefined;
18
+ sortBy?: FinanceInvoiceListSortField | undefined;
19
+ sortDir?: FinanceInvoiceListSortDir | undefined;
11
20
  limit?: number | undefined;
12
21
  offset?: number | undefined;
13
22
  }
23
+ export type FinanceSupplierPaymentListSortField = "amountCents" | "status" | "paymentDate" | "createdAt";
24
+ export type FinanceSupplierPaymentListSortDir = "asc" | "desc";
14
25
  export interface FinanceSupplierPaymentListFilters {
26
+ bookingId?: string | undefined;
27
+ supplierId?: string | undefined;
28
+ status?: string | undefined;
29
+ paymentMethod?: string | undefined;
30
+ currency?: string | undefined;
31
+ paymentDateFrom?: string | undefined;
32
+ paymentDateTo?: string | undefined;
33
+ sortBy?: FinanceSupplierPaymentListSortField | undefined;
34
+ sortDir?: FinanceSupplierPaymentListSortDir | undefined;
35
+ limit?: number | undefined;
36
+ offset?: number | undefined;
37
+ }
38
+ export type FinancePaymentKind = "customer" | "supplier";
39
+ export type FinanceAllPaymentsListSortField = "amountCents" | "status" | "paymentDate" | "createdAt";
40
+ export type FinanceAllPaymentsListSortDir = "asc" | "desc";
41
+ export interface FinanceAllPaymentsListFilters {
42
+ kind?: FinancePaymentKind | undefined;
43
+ status?: string | undefined;
44
+ paymentMethod?: string | undefined;
45
+ currency?: string | undefined;
46
+ invoiceId?: string | undefined;
47
+ bookingId?: string | undefined;
48
+ supplierId?: string | undefined;
49
+ paymentDateFrom?: string | undefined;
50
+ paymentDateTo?: string | undefined;
51
+ search?: string | undefined;
52
+ sortBy?: FinanceAllPaymentsListSortField | undefined;
53
+ sortDir?: FinanceAllPaymentsListSortDir | undefined;
15
54
  limit?: number | undefined;
16
55
  offset?: number | undefined;
17
56
  }
@@ -47,6 +86,9 @@ export declare const financeQueryKeys: {
47
86
  readonly bookingGuarantees: (bookingId: string) => readonly ["voyant", "finance", "booking-guarantees", string];
48
87
  readonly supplierPayments: () => readonly ["voyant", "finance", "supplier-payments"];
49
88
  readonly supplierPaymentsList: (filters: FinanceSupplierPaymentListFilters) => readonly ["voyant", "finance", "supplier-payments", "list", FinanceSupplierPaymentListFilters];
89
+ readonly allPayments: () => readonly ["voyant", "finance", "all-payments"];
90
+ readonly allPaymentsList: (filters: FinanceAllPaymentsListFilters) => readonly ["voyant", "finance", "all-payments", "list", FinanceAllPaymentsListFilters];
91
+ readonly payment: (id: string) => readonly ["voyant", "finance", "all-payments", "detail", string];
50
92
  readonly publicCheckout: () => readonly ["voyant", "finance", "public-checkout"];
51
93
  readonly publicFinanceDocumentLookup: (filters: PublicFinanceDocumentLookupFilters) => readonly ["voyant", "finance", "public-checkout", "document-lookup", PublicFinanceDocumentLookupFilters];
52
94
  readonly publicBookingDocuments: (bookingId: string) => readonly ["voyant", "finance", "public-checkout", "booking-documents", string];
@@ -1 +1 @@
1
- {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,C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,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACtC;AAED,MAAM,WAAW,kCAAkC;IACjD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B;AAED,eAAO,MAAM,gBAAgB;;;qCAIH,yBAAyB;2BAEnC,MAAM;oCACG,MAAM;mCACP,MAAM;sCACH,MAAM;gCAEZ,MAAM;kDAEY,MAAM;4CAEZ,MAAM;;6CAIL,iCAAiC;;wCAItC,6BAA6B;2BAE1C,MAAM;;oDAGmB,kCAAkC;iDAErC,MAAM;gDAEP,MAAM;+CAEP,MAAM;sDAEC,MAAM,WAAW,kCAAkC;+CAE1D,MAAM;;;qCAMhB,yBAAyB;2BAEnC,MAAM;CACZ,CAAA"}
@@ -11,6 +11,9 @@ export const financeQueryKeys = {
11
11
  bookingGuarantees: (bookingId) => [...financeQueryKeys.all, "booking-guarantees", bookingId],
12
12
  supplierPayments: () => [...financeQueryKeys.all, "supplier-payments"],
13
13
  supplierPaymentsList: (filters) => [...financeQueryKeys.supplierPayments(), "list", filters],
14
+ allPayments: () => [...financeQueryKeys.all, "all-payments"],
15
+ allPaymentsList: (filters) => [...financeQueryKeys.allPayments(), "list", filters],
16
+ payment: (id) => [...financeQueryKeys.allPayments(), "detail", id],
14
17
  publicCheckout: () => [...financeQueryKeys.all, "public-checkout"],
15
18
  publicFinanceDocumentLookup: (filters) => [...financeQueryKeys.publicCheckout(), "document-lookup", filters],
16
19
  publicBookingDocuments: (bookingId) => [...financeQueryKeys.publicCheckout(), "booking-documents", bookingId],