@voyantjs/finance-react 0.77.8 → 0.77.12
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.
- package/dist/hooks/use-invoice-bulk-status-mutation.d.ts +2 -2
- package/dist/hooks/use-invoice-mutation.d.ts +6 -5
- package/dist/hooks/use-invoice-mutation.d.ts.map +1 -1
- package/dist/hooks/use-invoice-mutation.js +2 -3
- package/dist/hooks/use-invoice.d.ts +1 -1
- package/dist/hooks/use-invoices.d.ts +1 -1
- package/dist/hooks/use-public-booking-documents.d.ts +1 -1
- package/dist/hooks/use-public-finance-document-by-reference.d.ts +1 -1
- package/dist/operations.d.ts +2 -2
- package/dist/query-keys.d.ts +1 -1
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-options.d.ts +16 -16
- package/dist/schemas.d.ts +6 -6
- package/dist/schemas.js +1 -1
- package/package.json +5 -5
|
@@ -17,7 +17,7 @@ export interface InvoiceBulkStatusResult {
|
|
|
17
17
|
failed: InvoiceBulkStatusFailure[];
|
|
18
18
|
}
|
|
19
19
|
export declare function useInvoiceBulkStatusMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
20
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
20
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
21
21
|
total: number;
|
|
22
22
|
updated: {
|
|
23
23
|
[x: string]: unknown;
|
|
@@ -26,7 +26,7 @@ export declare function useInvoiceBulkStatusMutation(): import("@tanstack/react-
|
|
|
26
26
|
bookingId: string;
|
|
27
27
|
personId: string | null;
|
|
28
28
|
organizationId: string | null;
|
|
29
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
29
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
30
30
|
currency: string;
|
|
31
31
|
subtotalCents: number;
|
|
32
32
|
taxCents: number;
|
|
@@ -24,7 +24,7 @@ export declare function useInvoiceMutation(): {
|
|
|
24
24
|
bookingId: string;
|
|
25
25
|
personId: string | null;
|
|
26
26
|
organizationId: string | null;
|
|
27
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
27
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
28
28
|
currency: string;
|
|
29
29
|
subtotalCents: number;
|
|
30
30
|
taxCents: number;
|
|
@@ -45,7 +45,7 @@ export declare function useInvoiceMutation(): {
|
|
|
45
45
|
bookingId: string;
|
|
46
46
|
personId: string | null;
|
|
47
47
|
organizationId: string | null;
|
|
48
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
48
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
49
49
|
currency: string;
|
|
50
50
|
subtotalCents: number;
|
|
51
51
|
taxCents: number;
|
|
@@ -66,7 +66,7 @@ export declare function useInvoiceMutation(): {
|
|
|
66
66
|
bookingId: string;
|
|
67
67
|
personId: string | null;
|
|
68
68
|
organizationId: string | null;
|
|
69
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
69
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
70
70
|
currency: string;
|
|
71
71
|
subtotalCents: number;
|
|
72
72
|
taxCents: number;
|
|
@@ -97,7 +97,7 @@ export declare function useInvoiceMutation(): {
|
|
|
97
97
|
bookingId: string;
|
|
98
98
|
personId: string | null;
|
|
99
99
|
organizationId: string | null;
|
|
100
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
100
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
101
101
|
currency: string;
|
|
102
102
|
subtotalCents: number;
|
|
103
103
|
taxCents: number;
|
|
@@ -126,7 +126,8 @@ export interface ConvertProformaInput {
|
|
|
126
126
|
}
|
|
127
127
|
export interface CreateInvoiceFromBookingInput {
|
|
128
128
|
bookingId: string;
|
|
129
|
-
|
|
129
|
+
bookingPaymentScheduleId?: string;
|
|
130
|
+
invoiceNumber?: string;
|
|
130
131
|
issueDate: string;
|
|
131
132
|
dueDate: string;
|
|
132
133
|
notes?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-invoice-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-invoice-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,eAAe,CAAA;AAE1F,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAE5D,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-invoice-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-invoice-mutation.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,eAAe,CAAA;AAE1F,MAAM,WAAW,kBAAkB;IACjC,a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A6E;IAC7E,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IACvB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B"}
|
|
@@ -43,9 +43,8 @@ export function useInvoiceMutation() {
|
|
|
43
43
|
});
|
|
44
44
|
/**
|
|
45
45
|
* Create + issue an invoice (or proforma) from an existing booking. The
|
|
46
|
-
* server
|
|
47
|
-
* `invoice.issued` event post-commit.
|
|
48
|
-
* booking detail page to bootstrap an invoice when none exists yet.
|
|
46
|
+
* server builds line items from either the booking items or a targeted
|
|
47
|
+
* payment schedule row, then emits an `invoice.issued` event post-commit.
|
|
49
48
|
*/
|
|
50
49
|
const createFromBooking = useMutation({
|
|
51
50
|
mutationFn: async (input) => {
|
|
@@ -9,7 +9,7 @@ export declare function useInvoice(id: string | null | undefined, options?: UseI
|
|
|
9
9
|
bookingId: string;
|
|
10
10
|
personId: string | null;
|
|
11
11
|
organizationId: string | null;
|
|
12
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
12
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
13
13
|
currency: string;
|
|
14
14
|
subtotalCents: number;
|
|
15
15
|
taxCents: number;
|
|
@@ -10,7 +10,7 @@ export declare function useInvoices(options?: UseInvoicesOptions): import("@tans
|
|
|
10
10
|
bookingId: string;
|
|
11
11
|
personId: string | null;
|
|
12
12
|
organizationId: string | null;
|
|
13
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
13
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
14
14
|
currency: string;
|
|
15
15
|
subtotalCents: number;
|
|
16
16
|
taxCents: number;
|
|
@@ -8,7 +8,7 @@ export declare function usePublicBookingDocuments(bookingId: string | null | und
|
|
|
8
8
|
invoiceId: string;
|
|
9
9
|
invoiceNumber: string;
|
|
10
10
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
11
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
11
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
12
12
|
currency: string;
|
|
13
13
|
totalCents: number;
|
|
14
14
|
paidCents: number;
|
|
@@ -6,7 +6,7 @@ export declare function usePublicFinanceDocumentByReference(reference: string |
|
|
|
6
6
|
invoiceId: string;
|
|
7
7
|
invoiceNumber: string;
|
|
8
8
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
9
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
9
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
10
10
|
currency: string;
|
|
11
11
|
totalCents: number;
|
|
12
12
|
paidCents: number;
|
package/dist/operations.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare function getPublicFinanceDocumentByReference(client: FetchWithVal
|
|
|
107
107
|
invoiceId: string;
|
|
108
108
|
invoiceNumber: string;
|
|
109
109
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
110
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
110
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
111
111
|
currency: string;
|
|
112
112
|
totalCents: number;
|
|
113
113
|
paidCents: number;
|
|
@@ -132,7 +132,7 @@ export declare function getPublicBookingDocuments(client: FetchWithValidationOpt
|
|
|
132
132
|
invoiceId: string;
|
|
133
133
|
invoiceNumber: string;
|
|
134
134
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
135
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
135
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
136
136
|
currency: string;
|
|
137
137
|
totalCents: number;
|
|
138
138
|
paidCents: number;
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface FinanceInvoiceListFilters {
|
|
|
8
8
|
* `bookings.id`, no fuzzy matching.
|
|
9
9
|
*/
|
|
10
10
|
bookingId?: string | undefined;
|
|
11
|
-
/** Filter by invoice status (draft,
|
|
11
|
+
/** Filter by invoice status (draft, issued, paid, ...). */
|
|
12
12
|
status?: string | undefined;
|
|
13
13
|
personId?: string | undefined;
|
|
14
14
|
organizationId?: string | undefined;
|
package/dist/query-keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GACnC,eAAe,GACf,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,SAAS,GACT,WAAW,CAAA;AAEf,MAAM,MAAM,yBAAyB,GAAG,KAAK,GAAG,MAAM,CAAA;AAEtD,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GACnC,eAAe,GACf,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,SAAS,GACT,WAAW,CAAA;AAEf,MAAM,MAAM,yBAAyB,GAAG,KAAK,GAAG,MAAM,CAAA;AAEtD,MAAM,WAAW,yBAAyB;IACxC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9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D,MAAM;;;qCAMhB,yBAAyB;2BAEnC,MAAM;CACZ,CAAA"}
|
package/dist/query-options.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
211
211
|
bookingId: string;
|
|
212
212
|
personId: string | null;
|
|
213
213
|
organizationId: string | null;
|
|
214
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
214
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
215
215
|
currency: string;
|
|
216
216
|
subtotalCents: number;
|
|
217
217
|
taxCents: number;
|
|
@@ -236,7 +236,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
236
236
|
bookingId: string;
|
|
237
237
|
personId: string | null;
|
|
238
238
|
organizationId: string | null;
|
|
239
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
239
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
240
240
|
currency: string;
|
|
241
241
|
subtotalCents: number;
|
|
242
242
|
taxCents: number;
|
|
@@ -262,7 +262,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
262
262
|
bookingId: string;
|
|
263
263
|
personId: string | null;
|
|
264
264
|
organizationId: string | null;
|
|
265
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
265
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
266
266
|
currency: string;
|
|
267
267
|
subtotalCents: number;
|
|
268
268
|
taxCents: number;
|
|
@@ -290,7 +290,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
|
|
|
290
290
|
bookingId: string;
|
|
291
291
|
personId: string | null;
|
|
292
292
|
organizationId: string | null;
|
|
293
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
293
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
294
294
|
currency: string;
|
|
295
295
|
subtotalCents: number;
|
|
296
296
|
taxCents: number;
|
|
@@ -643,7 +643,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
643
643
|
bookingId: string;
|
|
644
644
|
personId: string | null;
|
|
645
645
|
organizationId: string | null;
|
|
646
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
646
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
647
647
|
currency: string;
|
|
648
648
|
subtotalCents: number;
|
|
649
649
|
taxCents: number;
|
|
@@ -665,7 +665,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
665
665
|
bookingId: string;
|
|
666
666
|
personId: string | null;
|
|
667
667
|
organizationId: string | null;
|
|
668
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
668
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
669
669
|
currency: string;
|
|
670
670
|
subtotalCents: number;
|
|
671
671
|
taxCents: number;
|
|
@@ -688,7 +688,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
688
688
|
bookingId: string;
|
|
689
689
|
personId: string | null;
|
|
690
690
|
organizationId: string | null;
|
|
691
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
691
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
692
692
|
currency: string;
|
|
693
693
|
subtotalCents: number;
|
|
694
694
|
taxCents: number;
|
|
@@ -713,7 +713,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
|
|
|
713
713
|
bookingId: string;
|
|
714
714
|
personId: string | null;
|
|
715
715
|
organizationId: string | null;
|
|
716
|
-
status: "void" | "draft" | "pending_external_allocation" | "
|
|
716
|
+
status: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
717
717
|
currency: string;
|
|
718
718
|
subtotalCents: number;
|
|
719
719
|
taxCents: number;
|
|
@@ -1194,7 +1194,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
1194
1194
|
invoiceId: string;
|
|
1195
1195
|
invoiceNumber: string;
|
|
1196
1196
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1197
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1197
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1198
1198
|
currency: string;
|
|
1199
1199
|
totalCents: number;
|
|
1200
1200
|
paidCents: number;
|
|
@@ -1218,7 +1218,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
1218
1218
|
invoiceId: string;
|
|
1219
1219
|
invoiceNumber: string;
|
|
1220
1220
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1221
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1221
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1222
1222
|
currency: string;
|
|
1223
1223
|
totalCents: number;
|
|
1224
1224
|
paidCents: number;
|
|
@@ -1243,7 +1243,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
1243
1243
|
invoiceId: string;
|
|
1244
1244
|
invoiceNumber: string;
|
|
1245
1245
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1246
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1246
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1247
1247
|
currency: string;
|
|
1248
1248
|
totalCents: number;
|
|
1249
1249
|
paidCents: number;
|
|
@@ -1270,7 +1270,7 @@ export declare function getPublicBookingDocumentsQueryOptions(client: FetchWithV
|
|
|
1270
1270
|
invoiceId: string;
|
|
1271
1271
|
invoiceNumber: string;
|
|
1272
1272
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1273
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1273
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1274
1274
|
currency: string;
|
|
1275
1275
|
totalCents: number;
|
|
1276
1276
|
paidCents: number;
|
|
@@ -1296,7 +1296,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
1296
1296
|
invoiceId: string;
|
|
1297
1297
|
invoiceNumber: string;
|
|
1298
1298
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1299
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1299
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1300
1300
|
currency: string;
|
|
1301
1301
|
totalCents: number;
|
|
1302
1302
|
paidCents: number;
|
|
@@ -1318,7 +1318,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
1318
1318
|
invoiceId: string;
|
|
1319
1319
|
invoiceNumber: string;
|
|
1320
1320
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1321
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1321
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1322
1322
|
currency: string;
|
|
1323
1323
|
totalCents: number;
|
|
1324
1324
|
paidCents: number;
|
|
@@ -1341,7 +1341,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
1341
1341
|
invoiceId: string;
|
|
1342
1342
|
invoiceNumber: string;
|
|
1343
1343
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1344
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1344
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1345
1345
|
currency: string;
|
|
1346
1346
|
totalCents: number;
|
|
1347
1347
|
paidCents: number;
|
|
@@ -1366,7 +1366,7 @@ export declare function getPublicFinanceDocumentByReferenceQueryOptions(client:
|
|
|
1366
1366
|
invoiceId: string;
|
|
1367
1367
|
invoiceNumber: string;
|
|
1368
1368
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
1369
|
-
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "
|
|
1369
|
+
invoiceStatus: "void" | "draft" | "pending_external_allocation" | "issued" | "partially_paid" | "paid" | "overdue";
|
|
1370
1370
|
currency: string;
|
|
1371
1371
|
totalCents: number;
|
|
1372
1372
|
paidCents: number;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare const invoiceStatusSchema: z.ZodEnum<{
|
|
|
19
19
|
void: "void";
|
|
20
20
|
draft: "draft";
|
|
21
21
|
pending_external_allocation: "pending_external_allocation";
|
|
22
|
-
|
|
22
|
+
issued: "issued";
|
|
23
23
|
partially_paid: "partially_paid";
|
|
24
24
|
paid: "paid";
|
|
25
25
|
overdue: "overdue";
|
|
@@ -68,7 +68,7 @@ export declare const invoiceRecordSchema: z.ZodObject<{
|
|
|
68
68
|
void: "void";
|
|
69
69
|
draft: "draft";
|
|
70
70
|
pending_external_allocation: "pending_external_allocation";
|
|
71
|
-
|
|
71
|
+
issued: "issued";
|
|
72
72
|
partially_paid: "partially_paid";
|
|
73
73
|
paid: "paid";
|
|
74
74
|
overdue: "overdue";
|
|
@@ -406,7 +406,7 @@ export declare const invoiceListResponse: z.ZodObject<{
|
|
|
406
406
|
void: "void";
|
|
407
407
|
draft: "draft";
|
|
408
408
|
pending_external_allocation: "pending_external_allocation";
|
|
409
|
-
|
|
409
|
+
issued: "issued";
|
|
410
410
|
partially_paid: "partially_paid";
|
|
411
411
|
paid: "paid";
|
|
412
412
|
overdue: "overdue";
|
|
@@ -542,7 +542,7 @@ export declare const invoiceSingleResponse: z.ZodObject<{
|
|
|
542
542
|
void: "void";
|
|
543
543
|
draft: "draft";
|
|
544
544
|
pending_external_allocation: "pending_external_allocation";
|
|
545
|
-
|
|
545
|
+
issued: "issued";
|
|
546
546
|
partially_paid: "partially_paid";
|
|
547
547
|
paid: "paid";
|
|
548
548
|
overdue: "overdue";
|
|
@@ -928,7 +928,7 @@ export declare const publicBookingFinanceDocumentsResponse: z.ZodObject<{
|
|
|
928
928
|
void: "void";
|
|
929
929
|
draft: "draft";
|
|
930
930
|
pending_external_allocation: "pending_external_allocation";
|
|
931
|
-
|
|
931
|
+
issued: "issued";
|
|
932
932
|
partially_paid: "partially_paid";
|
|
933
933
|
paid: "paid";
|
|
934
934
|
overdue: "overdue";
|
|
@@ -974,7 +974,7 @@ export declare const publicFinanceDocumentLookupResponse: z.ZodObject<{
|
|
|
974
974
|
void: "void";
|
|
975
975
|
draft: "draft";
|
|
976
976
|
pending_external_allocation: "pending_external_allocation";
|
|
977
|
-
|
|
977
|
+
issued: "issued";
|
|
978
978
|
partially_paid: "partially_paid";
|
|
979
979
|
paid: "paid";
|
|
980
980
|
overdue: "overdue";
|
package/dist/schemas.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/finance-react",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"react-dom": "^19.0.0",
|
|
43
43
|
"zod": "^4.0.0",
|
|
44
|
-
"@voyantjs/finance": "0.77.
|
|
44
|
+
"@voyantjs/finance": "0.77.12"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.100.11",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "^6.0.2",
|
|
53
53
|
"vitest": "^4.1.2",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/finance": "0.77.
|
|
56
|
-
"@voyantjs/react": "0.77.
|
|
55
|
+
"@voyantjs/finance": "0.77.12",
|
|
56
|
+
"@voyantjs/react": "0.77.12",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.77.
|
|
60
|
+
"@voyantjs/react": "0.77.12"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|