@voyantjs/finance-react 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) 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 +28 -0
  5. package/dist/hooks/use-admin-booking-payments.d.ts.map +1 -0
  6. package/dist/hooks/use-admin-booking-payments.js +18 -0
  7. package/dist/hooks/use-booking-guarantees.d.ts +3 -3
  8. package/dist/hooks/use-invoice-mutation.d.ts +4 -0
  9. package/dist/hooks/use-invoice-mutation.d.ts.map +1 -1
  10. package/dist/hooks/use-invoice-payment-mutation.d.ts +1 -1
  11. package/dist/hooks/use-invoice-payments.d.ts +1 -1
  12. package/dist/hooks/use-invoice.d.ts +2 -0
  13. package/dist/hooks/use-invoice.d.ts.map +1 -1
  14. package/dist/hooks/use-invoices.d.ts +2 -0
  15. package/dist/hooks/use-invoices.d.ts.map +1 -1
  16. package/dist/hooks/use-public-booking-payments.d.ts +1 -1
  17. package/dist/hooks/use-public-payment-session-mutation.d.ts +3 -2
  18. package/dist/hooks/use-public-payment-session-mutation.d.ts.map +1 -1
  19. package/dist/hooks/use-public-payment-session.d.ts +3 -2
  20. package/dist/hooks/use-public-payment-session.d.ts.map +1 -1
  21. package/dist/hooks/use-supplier-payment-mutation.d.ts +2 -2
  22. package/dist/hooks/use-supplier-payments.d.ts +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +2 -2
  26. package/dist/operations.d.ts +34 -7
  27. package/dist/operations.d.ts.map +1 -1
  28. package/dist/operations.js +9 -0
  29. package/dist/query-keys.d.ts +9 -0
  30. package/dist/query-keys.d.ts.map +1 -1
  31. package/dist/query-keys.js +1 -0
  32. package/dist/query-options.d.ts +120 -24
  33. package/dist/query-options.d.ts.map +1 -1
  34. package/dist/query-options.js +16 -1
  35. package/dist/schemas.d.ts +35 -13
  36. package/dist/schemas.d.ts.map +1 -1
  37. package/dist/schemas.js +14 -2
  38. package/package.json +5 -5
@@ -86,7 +86,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
86
86
  bookingPaymentScheduleId: string | null;
87
87
  bookingItemId: string | null;
88
88
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
89
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
89
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
90
90
  currency: string | null;
91
91
  amountCents: number | null;
92
92
  provider: string | null;
@@ -105,7 +105,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
105
105
  bookingPaymentScheduleId: string | null;
106
106
  bookingItemId: string | null;
107
107
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
108
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
108
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
109
109
  currency: string | null;
110
110
  amountCents: number | null;
111
111
  provider: string | null;
@@ -125,7 +125,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
125
125
  bookingPaymentScheduleId: string | null;
126
126
  bookingItemId: string | null;
127
127
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
128
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
128
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
129
129
  currency: string | null;
130
130
  amountCents: number | null;
131
131
  provider: string | null;
@@ -147,7 +147,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
147
147
  bookingPaymentScheduleId: string | null;
148
148
  bookingItemId: string | null;
149
149
  guaranteeType: "other" | "voucher" | "bank_transfer" | "credit_card" | "deposit" | "preauth" | "card_on_file" | "agency_letter";
150
- status: "pending" | "active" | "expired" | "cancelled" | "released" | "failed";
150
+ status: "pending" | "active" | "failed" | "expired" | "cancelled" | "released";
151
151
  currency: string | null;
152
152
  amountCents: number | null;
153
153
  provider: string | null;
@@ -165,6 +165,7 @@ export declare function getBookingGuaranteesQueryOptions(client: FetchWithValida
165
165
  };
166
166
  export declare function getInvoicesQueryOptions(client: FetchWithValidationOptions, options?: UseInvoicesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
167
167
  data: {
168
+ [x: string]: unknown;
168
169
  id: string;
169
170
  invoiceNumber: string;
170
171
  bookingId: string;
@@ -182,12 +183,14 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
182
183
  notes: string | null;
183
184
  createdAt: string;
184
185
  updatedAt: string;
186
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
185
187
  }[];
186
188
  total: number;
187
189
  limit: number;
188
190
  offset: number;
189
191
  }, Error, {
190
192
  data: {
193
+ [x: string]: unknown;
191
194
  id: string;
192
195
  invoiceNumber: string;
193
196
  bookingId: string;
@@ -205,6 +208,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
205
208
  notes: string | null;
206
209
  createdAt: string;
207
210
  updatedAt: string;
211
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
208
212
  }[];
209
213
  total: number;
210
214
  limit: number;
@@ -212,6 +216,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
212
216
  }, readonly ["voyant", "finance", "invoices", "list", import("./query-keys.js").FinanceInvoiceListFilters]>, "queryFn"> & {
213
217
  queryFn?: import("@tanstack/react-query").QueryFunction<{
214
218
  data: {
219
+ [x: string]: unknown;
215
220
  id: string;
216
221
  invoiceNumber: string;
217
222
  bookingId: string;
@@ -229,6 +234,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
229
234
  notes: string | null;
230
235
  createdAt: string;
231
236
  updatedAt: string;
237
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
232
238
  }[];
233
239
  total: number;
234
240
  limit: number;
@@ -238,6 +244,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
238
244
  queryKey: readonly ["voyant", "finance", "invoices", "list", import("./query-keys.js").FinanceInvoiceListFilters] & {
239
245
  [dataTagSymbol]: {
240
246
  data: {
247
+ [x: string]: unknown;
241
248
  id: string;
242
249
  invoiceNumber: string;
243
250
  bookingId: string;
@@ -255,6 +262,7 @@ export declare function getInvoicesQueryOptions(client: FetchWithValidationOptio
255
262
  notes: string | null;
256
263
  createdAt: string;
257
264
  updatedAt: string;
265
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
258
266
  }[];
259
267
  total: number;
260
268
  limit: number;
@@ -271,7 +279,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
271
279
  amountCents: number;
272
280
  currency: string;
273
281
  paymentMethod: string;
274
- status: "pending" | "completed" | "failed" | "refunded";
282
+ status: "pending" | "failed" | "completed" | "refunded";
275
283
  referenceNumber: string | null;
276
284
  paymentDate: string;
277
285
  createdAt: string;
@@ -288,7 +296,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
288
296
  amountCents: number;
289
297
  currency: string;
290
298
  paymentMethod: string;
291
- status: "pending" | "completed" | "failed" | "refunded";
299
+ status: "pending" | "failed" | "completed" | "refunded";
292
300
  referenceNumber: string | null;
293
301
  paymentDate: string;
294
302
  createdAt: string;
@@ -306,7 +314,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
306
314
  amountCents: number;
307
315
  currency: string;
308
316
  paymentMethod: string;
309
- status: "pending" | "completed" | "failed" | "refunded";
317
+ status: "pending" | "failed" | "completed" | "refunded";
310
318
  referenceNumber: string | null;
311
319
  paymentDate: string;
312
320
  createdAt: string;
@@ -326,7 +334,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
326
334
  amountCents: number;
327
335
  currency: string;
328
336
  paymentMethod: string;
329
- status: "pending" | "completed" | "failed" | "refunded";
337
+ status: "pending" | "failed" | "completed" | "refunded";
330
338
  referenceNumber: string | null;
331
339
  paymentDate: string;
332
340
  createdAt: string;
@@ -341,6 +349,7 @@ export declare function getSupplierPaymentsQueryOptions(client: FetchWithValidat
341
349
  };
342
350
  export declare function getInvoiceQueryOptions(client: FetchWithValidationOptions, id: string | null | undefined, options?: UseInvoiceOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
343
351
  data: {
352
+ [x: string]: unknown;
344
353
  id: string;
345
354
  invoiceNumber: string;
346
355
  bookingId: string;
@@ -358,9 +367,11 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
358
367
  notes: string | null;
359
368
  createdAt: string;
360
369
  updatedAt: string;
370
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
361
371
  };
362
372
  }, Error, {
363
373
  data: {
374
+ [x: string]: unknown;
364
375
  id: string;
365
376
  invoiceNumber: string;
366
377
  bookingId: string;
@@ -378,10 +389,12 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
378
389
  notes: string | null;
379
390
  createdAt: string;
380
391
  updatedAt: string;
392
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
381
393
  };
382
394
  }, readonly ["voyant", "finance", "invoices", "detail", string]>, "queryFn"> & {
383
395
  queryFn?: import("@tanstack/react-query").QueryFunction<{
384
396
  data: {
397
+ [x: string]: unknown;
385
398
  id: string;
386
399
  invoiceNumber: string;
387
400
  bookingId: string;
@@ -399,12 +412,14 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
399
412
  notes: string | null;
400
413
  createdAt: string;
401
414
  updatedAt: string;
415
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
402
416
  };
403
417
  }, readonly ["voyant", "finance", "invoices", "detail", string], never> | undefined;
404
418
  } & {
405
419
  queryKey: readonly ["voyant", "finance", "invoices", "detail", string] & {
406
420
  [dataTagSymbol]: {
407
421
  data: {
422
+ [x: string]: unknown;
408
423
  id: string;
409
424
  invoiceNumber: string;
410
425
  bookingId: string;
@@ -422,6 +437,7 @@ export declare function getInvoiceQueryOptions(client: FetchWithValidationOption
422
437
  notes: string | null;
423
438
  createdAt: string;
424
439
  updatedAt: string;
440
+ invoiceType?: "invoice" | "proforma" | "credit_note" | undefined;
425
441
  };
426
442
  };
427
443
  [dataTagErrorSymbol]: Error;
@@ -490,7 +506,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
490
506
  amountCents: number;
491
507
  currency: string;
492
508
  paymentMethod: string;
493
- status: "pending" | "completed" | "failed" | "refunded";
509
+ status: "pending" | "failed" | "completed" | "refunded";
494
510
  referenceNumber: string | null;
495
511
  paymentDate: string;
496
512
  notes: string | null;
@@ -503,7 +519,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
503
519
  amountCents: number;
504
520
  currency: string;
505
521
  paymentMethod: string;
506
- status: "pending" | "completed" | "failed" | "refunded";
522
+ status: "pending" | "failed" | "completed" | "refunded";
507
523
  referenceNumber: string | null;
508
524
  paymentDate: string;
509
525
  notes: string | null;
@@ -517,7 +533,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
517
533
  amountCents: number;
518
534
  currency: string;
519
535
  paymentMethod: string;
520
- status: "pending" | "completed" | "failed" | "refunded";
536
+ status: "pending" | "failed" | "completed" | "refunded";
521
537
  referenceNumber: string | null;
522
538
  paymentDate: string;
523
539
  notes: string | null;
@@ -533,7 +549,7 @@ export declare function getInvoicePaymentsQueryOptions(client: FetchWithValidati
533
549
  amountCents: number;
534
550
  currency: string;
535
551
  paymentMethod: string;
536
- status: "pending" | "completed" | "failed" | "refunded";
552
+ status: "pending" | "failed" | "completed" | "refunded";
537
553
  referenceNumber: string | null;
538
554
  paymentDate: string;
539
555
  notes: string | null;
@@ -1019,7 +1035,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
1019
1035
  invoiceId: string;
1020
1036
  invoiceNumber: string;
1021
1037
  invoiceType: "invoice" | "proforma" | "credit_note";
1022
- status: "pending" | "completed" | "failed" | "refunded";
1038
+ status: "pending" | "failed" | "completed" | "refunded";
1023
1039
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1024
1040
  amountCents: number;
1025
1041
  currency: string;
@@ -1036,7 +1052,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
1036
1052
  invoiceId: string;
1037
1053
  invoiceNumber: string;
1038
1054
  invoiceType: "invoice" | "proforma" | "credit_note";
1039
- status: "pending" | "completed" | "failed" | "refunded";
1055
+ status: "pending" | "failed" | "completed" | "refunded";
1040
1056
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1041
1057
  amountCents: number;
1042
1058
  currency: string;
@@ -1054,7 +1070,7 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
1054
1070
  invoiceId: string;
1055
1071
  invoiceNumber: string;
1056
1072
  invoiceType: "invoice" | "proforma" | "credit_note";
1057
- status: "pending" | "completed" | "failed" | "refunded";
1073
+ status: "pending" | "failed" | "completed" | "refunded";
1058
1074
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1059
1075
  amountCents: number;
1060
1076
  currency: string;
@@ -1074,7 +1090,83 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
1074
1090
  invoiceId: string;
1075
1091
  invoiceNumber: string;
1076
1092
  invoiceType: "invoice" | "proforma" | "credit_note";
1077
- status: "pending" | "completed" | "failed" | "refunded";
1093
+ status: "pending" | "failed" | "completed" | "refunded";
1094
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1095
+ amountCents: number;
1096
+ currency: string;
1097
+ paymentDate: string;
1098
+ referenceNumber: string | null;
1099
+ notes: string | null;
1100
+ }[];
1101
+ };
1102
+ };
1103
+ [dataTagErrorSymbol]: Error;
1104
+ };
1105
+ };
1106
+ export declare function getAdminBookingPaymentsQueryOptions(client: FetchWithValidationOptions, bookingId: string | null | undefined): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1107
+ data: {
1108
+ bookingId: string;
1109
+ payments: {
1110
+ id: string;
1111
+ invoiceId: string;
1112
+ invoiceNumber: string;
1113
+ invoiceType: "invoice" | "proforma" | "credit_note";
1114
+ status: "pending" | "failed" | "completed" | "refunded";
1115
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1116
+ amountCents: number;
1117
+ currency: string;
1118
+ paymentDate: string;
1119
+ referenceNumber: string | null;
1120
+ notes: string | null;
1121
+ }[];
1122
+ };
1123
+ }, Error, {
1124
+ data: {
1125
+ bookingId: string;
1126
+ payments: {
1127
+ id: string;
1128
+ invoiceId: string;
1129
+ invoiceNumber: string;
1130
+ invoiceType: "invoice" | "proforma" | "credit_note";
1131
+ status: "pending" | "failed" | "completed" | "refunded";
1132
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1133
+ amountCents: number;
1134
+ currency: string;
1135
+ paymentDate: string;
1136
+ referenceNumber: string | null;
1137
+ notes: string | null;
1138
+ }[];
1139
+ };
1140
+ }, readonly ["voyant", "finance", "admin-booking-payments", string]>, "queryFn"> & {
1141
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1142
+ data: {
1143
+ bookingId: string;
1144
+ payments: {
1145
+ id: string;
1146
+ invoiceId: string;
1147
+ invoiceNumber: string;
1148
+ invoiceType: "invoice" | "proforma" | "credit_note";
1149
+ status: "pending" | "failed" | "completed" | "refunded";
1150
+ paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1151
+ amountCents: number;
1152
+ currency: string;
1153
+ paymentDate: string;
1154
+ referenceNumber: string | null;
1155
+ notes: string | null;
1156
+ }[];
1157
+ };
1158
+ }, readonly ["voyant", "finance", "admin-booking-payments", string], never> | undefined;
1159
+ } & {
1160
+ queryKey: readonly ["voyant", "finance", "admin-booking-payments", string] & {
1161
+ [dataTagSymbol]: {
1162
+ data: {
1163
+ bookingId: string;
1164
+ payments: {
1165
+ id: string;
1166
+ invoiceId: string;
1167
+ invoiceNumber: string;
1168
+ invoiceType: "invoice" | "proforma" | "credit_note";
1169
+ status: "pending" | "failed" | "completed" | "refunded";
1078
1170
  paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
1079
1171
  amountCents: number;
1080
1172
  currency: string;
@@ -1090,13 +1182,13 @@ export declare function getPublicBookingPaymentsQueryOptions(client: FetchWithVa
1090
1182
  export declare function getPublicPaymentSessionQueryOptions(client: FetchWithValidationOptions, sessionId: string | null | undefined, options?: UsePublicPaymentSessionOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1091
1183
  data: {
1092
1184
  id: string;
1093
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1185
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1094
1186
  targetId: string | null;
1095
1187
  bookingId: string | null;
1096
1188
  invoiceId: string | null;
1097
1189
  bookingPaymentScheduleId: string | null;
1098
1190
  bookingGuaranteeId: string | null;
1099
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1191
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1100
1192
  provider: string | null;
1101
1193
  providerSessionId: string | null;
1102
1194
  providerPaymentId: string | null;
@@ -1114,17 +1206,18 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1114
1206
  completedAt: string | null;
1115
1207
  failureCode: string | null;
1116
1208
  failureMessage: string | null;
1209
+ notes: string | null;
1117
1210
  };
1118
1211
  }, Error, {
1119
1212
  data: {
1120
1213
  id: string;
1121
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1214
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1122
1215
  targetId: string | null;
1123
1216
  bookingId: string | null;
1124
1217
  invoiceId: string | null;
1125
1218
  bookingPaymentScheduleId: string | null;
1126
1219
  bookingGuaranteeId: string | null;
1127
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1220
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1128
1221
  provider: string | null;
1129
1222
  providerSessionId: string | null;
1130
1223
  providerPaymentId: string | null;
@@ -1142,18 +1235,19 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1142
1235
  completedAt: string | null;
1143
1236
  failureCode: string | null;
1144
1237
  failureMessage: string | null;
1238
+ notes: string | null;
1145
1239
  };
1146
1240
  }, readonly ["voyant", "finance", "public-checkout", "payment-session", string]>, "queryFn"> & {
1147
1241
  queryFn?: import("@tanstack/react-query").QueryFunction<{
1148
1242
  data: {
1149
1243
  id: string;
1150
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1244
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1151
1245
  targetId: string | null;
1152
1246
  bookingId: string | null;
1153
1247
  invoiceId: string | null;
1154
1248
  bookingPaymentScheduleId: string | null;
1155
1249
  bookingGuaranteeId: string | null;
1156
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1250
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1157
1251
  provider: string | null;
1158
1252
  providerSessionId: string | null;
1159
1253
  providerPaymentId: string | null;
@@ -1171,6 +1265,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1171
1265
  completedAt: string | null;
1172
1266
  failureCode: string | null;
1173
1267
  failureMessage: string | null;
1268
+ notes: string | null;
1174
1269
  };
1175
1270
  }, readonly ["voyant", "finance", "public-checkout", "payment-session", string], never> | undefined;
1176
1271
  } & {
@@ -1178,13 +1273,13 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1178
1273
  [dataTagSymbol]: {
1179
1274
  data: {
1180
1275
  id: string;
1181
- targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee";
1276
+ targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
1182
1277
  targetId: string | null;
1183
1278
  bookingId: string | null;
1184
1279
  invoiceId: string | null;
1185
1280
  bookingPaymentScheduleId: string | null;
1186
1281
  bookingGuaranteeId: string | null;
1187
- status: "pending" | "expired" | "cancelled" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
1282
+ status: "pending" | "failed" | "expired" | "cancelled" | "paid" | "requires_redirect" | "processing" | "authorized";
1188
1283
  provider: string | null;
1189
1284
  providerSessionId: string | null;
1190
1285
  providerPaymentId: string | null;
@@ -1202,6 +1297,7 @@ export declare function getPublicPaymentSessionQueryOptions(client: FetchWithVal
1202
1297
  completedAt: string | null;
1203
1298
  failureCode: string | null;
1204
1299
  failureMessage: string | null;
1300
+ notes: string | null;
1205
1301
  };
1206
1302
  };
1207
1303
  [dataTagErrorSymbol]: Error;
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc7C;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BjC;AAED,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,0BAA0B,EAClC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,iBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { queryOptions } from "@tanstack/react-query";
3
3
  import { fetchWithValidation } from "./client.js";
4
- import { getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, } from "./operations.js";
4
+ import { getAdminBookingPayments, getPublicBookingDocuments, getPublicBookingPaymentOptions, getPublicBookingPayments, getPublicFinanceDocumentByReference, getPublicPaymentSession, } from "./operations.js";
5
5
  import { financeQueryKeys } from "./query-keys.js";
6
6
  import { bookingGuaranteesResponse, bookingPaymentSchedulesResponse, invoiceCreditNotesResponse, invoiceLineItemsResponse, invoiceListResponse, invoiceNotesResponse, invoicePaymentsResponse, invoiceSingleResponse, supplierPaymentListResponse, voucherDetailResponse, voucherListResponse, } from "./schemas.js";
7
7
  export function getBookingPaymentSchedulesQueryOptions(client, bookingId, options = {}) {
@@ -26,6 +26,10 @@ export function getInvoicesQueryOptions(client, options = {}) {
26
26
  const params = new URLSearchParams();
27
27
  if (filters.search)
28
28
  params.set("search", filters.search);
29
+ if (filters.bookingId)
30
+ params.set("bookingId", filters.bookingId);
31
+ if (filters.status)
32
+ params.set("status", filters.status);
29
33
  if (filters.limit !== undefined)
30
34
  params.set("limit", String(filters.limit));
31
35
  if (filters.offset !== undefined)
@@ -153,6 +157,17 @@ export function getPublicBookingPaymentsQueryOptions(client, bookingId, options
153
157
  },
154
158
  });
155
159
  }
160
+ export function getAdminBookingPaymentsQueryOptions(client, bookingId) {
161
+ return queryOptions({
162
+ queryKey: financeQueryKeys.adminBookingPayments(bookingId ?? ""),
163
+ queryFn: async () => {
164
+ if (!bookingId) {
165
+ throw new Error("getAdminBookingPaymentsQueryOptions requires a bookingId");
166
+ }
167
+ return getAdminBookingPayments(client, bookingId);
168
+ },
169
+ });
170
+ }
156
171
  export function getPublicPaymentSessionQueryOptions(client, sessionId, options = {}) {
157
172
  const { enabled: _enabled = true } = options;
158
173
  return queryOptions({