@voyantjs/finance-react 0.52.1 → 0.52.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 (40) hide show
  1. package/dist/hooks/index.d.ts +1 -0
  2. package/dist/hooks/index.d.ts.map +1 -1
  3. package/dist/hooks/index.js +1 -0
  4. package/dist/hooks/use-admin-booking-payments.d.ts +1 -1
  5. package/dist/hooks/use-booking-guarantees.d.ts +6 -6
  6. package/dist/hooks/use-booking-payment-schedules.d.ts +3 -3
  7. package/dist/hooks/use-finance-action-ledger.d.ts +94 -0
  8. package/dist/hooks/use-finance-action-ledger.d.ts.map +1 -0
  9. package/dist/hooks/use-finance-action-ledger.js +20 -0
  10. package/dist/hooks/use-invoice-mutation.d.ts +72 -0
  11. package/dist/hooks/use-invoice-mutation.d.ts.map +1 -1
  12. package/dist/hooks/use-invoice-mutation.js +59 -1
  13. package/dist/hooks/use-public-booking-documents.d.ts +2 -2
  14. package/dist/hooks/use-public-booking-payment-options.d.ts +3 -3
  15. package/dist/hooks/use-public-booking-payments.d.ts +1 -1
  16. package/dist/hooks/use-public-finance-document-by-reference.d.ts +2 -2
  17. package/dist/hooks/use-public-payment-session-mutation.d.ts +2 -2
  18. package/dist/hooks/use-public-payment-session.d.ts +2 -2
  19. package/dist/hooks/use-voucher-mutation.d.ts +3 -3
  20. package/dist/hooks/use-voucher.d.ts +1 -1
  21. package/dist/hooks/use-vouchers.d.ts +1 -1
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +2 -2
  25. package/dist/operations.d.ts +112 -15
  26. package/dist/operations.d.ts.map +1 -1
  27. package/dist/operations.js +14 -1
  28. package/dist/query-keys.d.ts +11 -0
  29. package/dist/query-keys.d.ts.map +1 -1
  30. package/dist/query-keys.js +2 -0
  31. package/dist/query-options-action-ledger.d.ts +382 -0
  32. package/dist/query-options-action-ledger.d.ts.map +1 -0
  33. package/dist/query-options-action-ledger.js +36 -0
  34. package/dist/query-options.d.ts +65 -64
  35. package/dist/query-options.d.ts.map +1 -1
  36. package/dist/query-options.js +1 -0
  37. package/dist/schemas.d.ts +245 -41
  38. package/dist/schemas.d.ts.map +1 -1
  39. package/dist/schemas.js +83 -1
  40. package/package.json +5 -5
@@ -1,5 +1,102 @@
1
1
  import { type FetchWithValidationOptions } from "./client.js";
2
+ import type { FinanceActionLedgerListCursor } from "./query-keys.js";
2
3
  import { type PublicFinanceDocumentLookupQuery, type PublicStartPaymentSessionInput, type PublicValidateVoucherInput } from "./schemas.js";
4
+ export interface FinanceActionLedgerListInput {
5
+ cursor?: FinanceActionLedgerListCursor | null | undefined;
6
+ limit?: number | undefined;
7
+ }
8
+ export declare function listInvoiceActionLedger(client: FetchWithValidationOptions, invoiceId: string, input?: FinanceActionLedgerListInput): Promise<{
9
+ data: {
10
+ id: string;
11
+ occurredAt: string;
12
+ actionName: string;
13
+ actionVersion: string;
14
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
15
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
16
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
17
+ actorType: string | null;
18
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
19
+ principalId: string;
20
+ principalSubtype: string | null;
21
+ sessionId: string | null;
22
+ apiTokenId: string | null;
23
+ internalRequest: boolean;
24
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
25
+ delegatedByPrincipalId: string | null;
26
+ delegationId: string | null;
27
+ callerType: string | null;
28
+ organizationId: string | null;
29
+ routeOrToolName: string | null;
30
+ workflowRunId: string | null;
31
+ workflowStepId: string | null;
32
+ correlationId: string | null;
33
+ causationActionId: string | null;
34
+ idempotencyScope: string | null;
35
+ idempotencyKey: string | null;
36
+ idempotencyFingerprint: string | null;
37
+ targetType: string;
38
+ targetId: string;
39
+ capabilityId: string | null;
40
+ capabilityVersion: string | null;
41
+ authorizationSource: string | null;
42
+ approvalId: string | null;
43
+ amendsActionId: string | null;
44
+ createdAt: string;
45
+ mutationSummary: string | null;
46
+ }[];
47
+ pageInfo: {
48
+ nextCursor: {
49
+ occurredAt: string;
50
+ id: string;
51
+ } | null;
52
+ };
53
+ }>;
54
+ export declare function listPaymentSessionActionLedger(client: FetchWithValidationOptions, paymentSessionId: string, input?: FinanceActionLedgerListInput): Promise<{
55
+ data: {
56
+ id: string;
57
+ occurredAt: string;
58
+ actionName: string;
59
+ actionVersion: string;
60
+ actionKind: "reverse" | "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "compensate" | "duplicate";
61
+ status: "failed" | "cancelled" | "expired" | "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "reversed" | "compensated" | "superseded";
62
+ evaluatedRisk: "high" | "low" | "medium" | "critical";
63
+ actorType: string | null;
64
+ principalType: "agent" | "user" | "api_key" | "workflow" | "system";
65
+ principalId: string;
66
+ principalSubtype: string | null;
67
+ sessionId: string | null;
68
+ apiTokenId: string | null;
69
+ internalRequest: boolean;
70
+ delegatedByPrincipalType: "agent" | "user" | "api_key" | "workflow" | "system" | null;
71
+ delegatedByPrincipalId: string | null;
72
+ delegationId: string | null;
73
+ callerType: string | null;
74
+ organizationId: string | null;
75
+ routeOrToolName: string | null;
76
+ workflowRunId: string | null;
77
+ workflowStepId: string | null;
78
+ correlationId: string | null;
79
+ causationActionId: string | null;
80
+ idempotencyScope: string | null;
81
+ idempotencyKey: string | null;
82
+ idempotencyFingerprint: string | null;
83
+ targetType: string;
84
+ targetId: string;
85
+ capabilityId: string | null;
86
+ capabilityVersion: string | null;
87
+ authorizationSource: string | null;
88
+ approvalId: string | null;
89
+ amendsActionId: string | null;
90
+ createdAt: string;
91
+ mutationSummary: string | null;
92
+ }[];
93
+ pageInfo: {
94
+ nextCursor: {
95
+ occurredAt: string;
96
+ id: string;
97
+ } | null;
98
+ };
99
+ }>;
3
100
  export declare function getPublicFinanceDocumentByReference(client: FetchWithValidationOptions, query: PublicFinanceDocumentLookupQuery): Promise<{
4
101
  data: {
5
102
  invoiceId: string;
@@ -13,8 +110,8 @@ export declare function getPublicFinanceDocumentByReference(client: FetchWithVal
13
110
  issueDate: string;
14
111
  dueDate: string;
15
112
  renditionId: string | null;
16
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
17
- format: "json" | "pdf" | "html" | "xml" | null;
113
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
114
+ format: "html" | "pdf" | "xml" | "json" | null;
18
115
  language: string | null;
19
116
  generatedAt: string | null;
20
117
  fileSize: number | null;
@@ -38,8 +135,8 @@ export declare function getPublicBookingDocuments(client: FetchWithValidationOpt
38
135
  issueDate: string;
39
136
  dueDate: string;
40
137
  renditionId: string | null;
41
- documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
42
- format: "json" | "pdf" | "html" | "xml" | null;
138
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
139
+ format: "html" | "pdf" | "xml" | "json" | null;
43
140
  language: string | null;
44
141
  generatedAt: string | null;
45
142
  fileSize: number | null;
@@ -57,7 +154,7 @@ export declare function getPublicBookingPayments(client: FetchWithValidationOpti
57
154
  invoiceNumber: string;
58
155
  invoiceType: "invoice" | "proforma" | "credit_note";
59
156
  status: "pending" | "completed" | "failed" | "refunded";
60
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
157
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
61
158
  amountCents: number;
62
159
  currency: string;
63
160
  paymentDate: string;
@@ -81,7 +178,7 @@ export declare function getAdminBookingPayments(client: FetchWithValidationOptio
81
178
  invoiceNumber: string;
82
179
  invoiceType: "invoice" | "proforma" | "credit_note";
83
180
  status: "pending" | "completed" | "failed" | "refunded";
84
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
181
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other";
85
182
  amountCents: number;
86
183
  currency: string;
87
184
  paymentDate: string;
@@ -103,8 +200,8 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
103
200
  id: string;
104
201
  label: string;
105
202
  provider: string | null;
106
- instrumentType: "other" | "voucher" | "wallet" | "credit_card" | "debit_card" | "cash" | "direct_bill" | "bank_account";
107
- status: "active" | "expired" | "revoked" | "inactive" | "failed_verification";
203
+ instrumentType: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "voucher" | "other" | "bank_account";
204
+ status: "expired" | "active" | "inactive" | "revoked" | "failed_verification";
108
205
  brand: string | null;
109
206
  last4: string | null;
110
207
  expiryMonth: number | null;
@@ -114,7 +211,7 @@ export declare function getPublicBookingPaymentOptions(client: FetchWithValidati
114
211
  schedules: {
115
212
  id: string;
116
213
  scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
117
- status: "pending" | "cancelled" | "expired" | "paid" | "due" | "waived";
214
+ status: "pending" | "paid" | "cancelled" | "expired" | "due" | "waived";
118
215
  dueDate: string;
119
216
  currency: string;
120
217
  amountCents: number;
@@ -147,7 +244,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
147
244
  invoiceId: string | null;
148
245
  bookingPaymentScheduleId: string | null;
149
246
  bookingGuaranteeId: string | null;
150
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
247
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
151
248
  provider: string | null;
152
249
  providerSessionId: string | null;
153
250
  providerPaymentId: string | null;
@@ -155,7 +252,7 @@ export declare function getPublicPaymentSession(client: FetchWithValidationOptio
155
252
  clientReference: string | null;
156
253
  currency: string;
157
254
  amountCents: number;
158
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
255
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
159
256
  payerEmail: string | null;
160
257
  payerName: string | null;
161
258
  redirectUrl: string | null;
@@ -177,7 +274,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
177
274
  invoiceId: string | null;
178
275
  bookingPaymentScheduleId: string | null;
179
276
  bookingGuaranteeId: string | null;
180
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
277
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
181
278
  provider: string | null;
182
279
  providerSessionId: string | null;
183
280
  providerPaymentId: string | null;
@@ -185,7 +282,7 @@ export declare function startPublicBookingSchedulePaymentSession(client: FetchWi
185
282
  clientReference: string | null;
186
283
  currency: string;
187
284
  amountCents: number;
188
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
285
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
189
286
  payerEmail: string | null;
190
287
  payerName: string | null;
191
288
  redirectUrl: string | null;
@@ -207,7 +304,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
207
304
  invoiceId: string | null;
208
305
  bookingPaymentScheduleId: string | null;
209
306
  bookingGuaranteeId: string | null;
210
- status: "pending" | "failed" | "cancelled" | "expired" | "paid" | "requires_redirect" | "processing" | "authorized";
307
+ status: "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized" | "cancelled" | "expired";
211
308
  provider: string | null;
212
309
  providerSessionId: string | null;
213
310
  providerPaymentId: string | null;
@@ -215,7 +312,7 @@ export declare function startPublicBookingGuaranteePaymentSession(client: FetchW
215
312
  clientReference: string | null;
216
313
  currency: string;
217
314
  amountCents: number;
218
- paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
315
+ paymentMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | "voucher" | "other" | null;
219
316
  payerEmail: string | null;
220
317
  payerName: string | null;
221
318
  redirectUrl: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAOhC,MAAM,cAAc,CAAA;AAErB,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;;GAOxC;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;GAM9F;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;GAM7F;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;GAM5F;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO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,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQtC;AAED,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,0BAA0B;;;;;;;;;;;;;;;GAQlC"}
@@ -1,6 +1,19 @@
1
1
  "use client";
2
2
  import { fetchWithValidation, withQueryParams } from "./client.js";
3
- import { publicBookingFinanceDocumentsResponse, publicBookingFinancePaymentsResponse, publicBookingPaymentOptionsResponse, publicFinanceDocumentLookupResponse, publicPaymentSessionResponse, publicVoucherValidationResponse, } from "./schemas.js";
3
+ import { financeActionLedgerListResponse, publicBookingFinanceDocumentsResponse, publicBookingFinancePaymentsResponse, publicBookingPaymentOptionsResponse, publicFinanceDocumentLookupResponse, publicPaymentSessionResponse, publicVoucherValidationResponse, } from "./schemas.js";
4
+ function toFinanceActionLedgerQuery(input) {
5
+ return {
6
+ cursorOccurredAt: input?.cursor?.occurredAt,
7
+ cursorId: input?.cursor?.id,
8
+ limit: input?.limit,
9
+ };
10
+ }
11
+ export function listInvoiceActionLedger(client, invoiceId, input = {}) {
12
+ return fetchWithValidation(withQueryParams(`/v1/finance/invoices/${invoiceId}/action-ledger`, toFinanceActionLedgerQuery(input)), financeActionLedgerListResponse, client);
13
+ }
14
+ export function listPaymentSessionActionLedger(client, paymentSessionId, input = {}) {
15
+ return fetchWithValidation(withQueryParams(`/v1/finance/payment-sessions/${paymentSessionId}/action-ledger`, toFinanceActionLedgerQuery(input)), financeActionLedgerListResponse, client);
16
+ }
4
17
  export function getPublicFinanceDocumentByReference(client, query) {
5
18
  return fetchWithValidation(withQueryParams("/v1/public/finance/documents/by-reference", query), publicFinanceDocumentLookupResponse, client);
6
19
  }
@@ -73,11 +73,21 @@ export interface PublicBookingPaymentOptionsFilters {
73
73
  export interface PublicFinanceDocumentLookupFilters {
74
74
  reference?: string | undefined;
75
75
  }
76
+ export interface FinanceActionLedgerListCursor {
77
+ occurredAt: string;
78
+ id: string;
79
+ }
80
+ export interface FinanceActionLedgerListFilters {
81
+ cursorOccurredAt?: string | undefined;
82
+ cursorId?: string | undefined;
83
+ limit?: number | undefined;
84
+ }
76
85
  export declare const financeQueryKeys: {
77
86
  readonly all: readonly ["voyant", "finance"];
78
87
  readonly invoices: () => readonly ["voyant", "finance", "invoices"];
79
88
  readonly invoicesList: (filters: FinanceInvoiceListFilters) => readonly ["voyant", "finance", "invoices", "list", FinanceInvoiceListFilters];
80
89
  readonly invoice: (id: string) => readonly ["voyant", "finance", "invoices", "detail", string];
90
+ readonly invoiceActionLedger: (id: string, filters?: FinanceActionLedgerListFilters) => readonly ["voyant", "finance", "invoices", "detail", string, "action-ledger", FinanceActionLedgerListFilters];
81
91
  readonly lineItems: (invoiceId: string) => readonly ["voyant", "finance", "invoices", "detail", string, "line-items"];
82
92
  readonly payments: (invoiceId: string) => readonly ["voyant", "finance", "invoices", "detail", string, "payments"];
83
93
  readonly creditNotes: (invoiceId: string) => readonly ["voyant", "finance", "invoices", "detail", string, "credit-notes"];
@@ -90,6 +100,7 @@ export declare const financeQueryKeys: {
90
100
  readonly allPayments: () => readonly ["voyant", "finance", "all-payments"];
91
101
  readonly allPaymentsList: (filters: FinanceAllPaymentsListFilters) => readonly ["voyant", "finance", "all-payments", "list", FinanceAllPaymentsListFilters];
92
102
  readonly payment: (id: string) => readonly ["voyant", "finance", "all-payments", "detail", string];
103
+ readonly paymentSessionActionLedger: (id: string, filters?: FinanceActionLedgerListFilters) => readonly ["voyant", "finance", "payment-sessions", string, "action-ledger", FinanceActionLedgerListFilters];
93
104
  readonly publicCheckout: () => readonly ["voyant", "finance", "public-checkout"];
94
105
  readonly publicFinanceDocumentLookup: (filters: PublicFinanceDocumentLookupFilters) => readonly ["voyant", "finance", "public-checkout", "document-lookup", PublicFinanceDocumentLookupFilters];
95
106
  readonly publicBookingDocuments: (bookingId: string) => readonly ["voyant", "finance", "public-checkout", "booking-documents", string];
@@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,6BAA6B;2BAE1C,MAAM;8CACa,MAAM,YAAW,8BAA8B;;oDAIzC,kCAAkC;iDAErC,MAAM;gDAEP,MAAM;+CAEP,MAAM;sDAEC,MAAM,WAAW,kCAAkC;+CAE1D,MAAM;;;qCAMhB,yBAAyB;2BAEnC,MAAM;CACZ,CAAA"}
@@ -3,6 +3,7 @@ export const financeQueryKeys = {
3
3
  invoices: () => [...financeQueryKeys.all, "invoices"],
4
4
  invoicesList: (filters) => [...financeQueryKeys.invoices(), "list", filters],
5
5
  invoice: (id) => [...financeQueryKeys.invoices(), "detail", id],
6
+ invoiceActionLedger: (id, filters = {}) => [...financeQueryKeys.invoice(id), "action-ledger", filters],
6
7
  lineItems: (invoiceId) => [...financeQueryKeys.invoice(invoiceId), "line-items"],
7
8
  payments: (invoiceId) => [...financeQueryKeys.invoice(invoiceId), "payments"],
8
9
  creditNotes: (invoiceId) => [...financeQueryKeys.invoice(invoiceId), "credit-notes"],
@@ -15,6 +16,7 @@ export const financeQueryKeys = {
15
16
  allPayments: () => [...financeQueryKeys.all, "all-payments"],
16
17
  allPaymentsList: (filters) => [...financeQueryKeys.allPayments(), "list", filters],
17
18
  payment: (id) => [...financeQueryKeys.allPayments(), "detail", id],
19
+ paymentSessionActionLedger: (id, filters = {}) => [...financeQueryKeys.all, "payment-sessions", id, "action-ledger", filters],
18
20
  publicCheckout: () => [...financeQueryKeys.all, "public-checkout"],
19
21
  publicFinanceDocumentLookup: (filters) => [...financeQueryKeys.publicCheckout(), "document-lookup", filters],
20
22
  publicBookingDocuments: (bookingId) => [...financeQueryKeys.publicCheckout(), "booking-documents", bookingId],