@voyant-travel/finance-react 0.119.5

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 (517) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +75 -0
  3. package/dist/admin/booking-invoices-widget.d.ts +19 -0
  4. package/dist/admin/booking-invoices-widget.d.ts.map +1 -0
  5. package/dist/admin/booking-invoices-widget.js +204 -0
  6. package/dist/admin/booking-payment-policy-widget.d.ts +21 -0
  7. package/dist/admin/booking-payment-policy-widget.d.ts.map +1 -0
  8. package/dist/admin/booking-payment-policy-widget.js +128 -0
  9. package/dist/admin/booking-pending-payment-sessions-widget.d.ts +24 -0
  10. package/dist/admin/booking-pending-payment-sessions-widget.d.ts.map +1 -0
  11. package/dist/admin/booking-pending-payment-sessions-widget.js +139 -0
  12. package/dist/admin/credit-note-dialog.d.ts +9 -0
  13. package/dist/admin/credit-note-dialog.d.ts.map +1 -0
  14. package/dist/admin/credit-note-dialog.js +70 -0
  15. package/dist/admin/finance-shared.d.ts +7 -0
  16. package/dist/admin/finance-shared.d.ts.map +1 -0
  17. package/dist/admin/finance-shared.js +30 -0
  18. package/dist/admin/index.d.ts +99 -0
  19. package/dist/admin/index.d.ts.map +1 -0
  20. package/dist/admin/index.js +286 -0
  21. package/dist/admin/invoice-detail-host.d.ts +19 -0
  22. package/dist/admin/invoice-detail-host.d.ts.map +1 -0
  23. package/dist/admin/invoice-detail-host.js +147 -0
  24. package/dist/admin/invoice-detail-sections.d.ts +31 -0
  25. package/dist/admin/invoice-detail-sections.d.ts.map +1 -0
  26. package/dist/admin/invoice-detail-sections.js +109 -0
  27. package/dist/admin/invoice-detail-skeleton.d.ts +11 -0
  28. package/dist/admin/invoice-detail-skeleton.d.ts.map +1 -0
  29. package/dist/admin/invoice-detail-skeleton.js +33 -0
  30. package/dist/admin/line-item-dialog.d.ts +10 -0
  31. package/dist/admin/line-item-dialog.d.ts.map +1 -0
  32. package/dist/admin/line-item-dialog.js +91 -0
  33. package/dist/admin/pages/invoice-detail.d.ts +8 -0
  34. package/dist/admin/pages/invoice-detail.d.ts.map +1 -0
  35. package/dist/admin/pages/invoice-detail.js +11 -0
  36. package/dist/admin/pages/invoices-index.d.ts +8 -0
  37. package/dist/admin/pages/invoices-index.d.ts.map +1 -0
  38. package/dist/admin/pages/invoices-index.js +14 -0
  39. package/dist/admin/pages/payment-detail.d.ts +8 -0
  40. package/dist/admin/pages/payment-detail.d.ts.map +1 -0
  41. package/dist/admin/pages/payment-detail.js +11 -0
  42. package/dist/admin/pages/payments-index.d.ts +9 -0
  43. package/dist/admin/pages/payments-index.d.ts.map +1 -0
  44. package/dist/admin/pages/payments-index.js +21 -0
  45. package/dist/admin/pages/profitability.d.ts +10 -0
  46. package/dist/admin/pages/profitability.d.ts.map +1 -0
  47. package/dist/admin/pages/profitability.js +32 -0
  48. package/dist/admin/pages/supplier-invoice-detail.d.ts +20 -0
  49. package/dist/admin/pages/supplier-invoice-detail.d.ts.map +1 -0
  50. package/dist/admin/pages/supplier-invoice-detail.js +102 -0
  51. package/dist/admin/pages/supplier-invoices-index.d.ts +9 -0
  52. package/dist/admin/pages/supplier-invoices-index.d.ts.map +1 -0
  53. package/dist/admin/pages/supplier-invoices-index.js +16 -0
  54. package/dist/admin/payment-detail-host.d.ts +12 -0
  55. package/dist/admin/payment-detail-host.d.ts.map +1 -0
  56. package/dist/admin/payment-detail-host.js +108 -0
  57. package/dist/admin/payment-detail-skeleton.d.ts +8 -0
  58. package/dist/admin/payment-detail-skeleton.d.ts.map +1 -0
  59. package/dist/admin/payment-detail-skeleton.js +15 -0
  60. package/dist/admin/payment-dialog.d.ts +9 -0
  61. package/dist/admin/payment-dialog.d.ts.map +1 -0
  62. package/dist/admin/payment-dialog.js +99 -0
  63. package/dist/admin/record-payment-dialog.d.ts +16 -0
  64. package/dist/admin/record-payment-dialog.d.ts.map +1 -0
  65. package/dist/admin/record-payment-dialog.js +219 -0
  66. package/dist/admin/supplier-payment-policy-widget.d.ts +18 -0
  67. package/dist/admin/supplier-payment-policy-widget.d.ts.map +1 -0
  68. package/dist/admin/supplier-payment-policy-widget.js +31 -0
  69. package/dist/admin/use-supplier-picker.d.ts +19 -0
  70. package/dist/admin/use-supplier-picker.d.ts.map +1 -0
  71. package/dist/admin/use-supplier-picker.js +30 -0
  72. package/dist/checkout-components/collect-payment-dialog.d.ts +45 -0
  73. package/dist/checkout-components/collect-payment-dialog.d.ts.map +1 -0
  74. package/dist/checkout-components/collect-payment-dialog.js +121 -0
  75. package/dist/checkout-components/payment-link-landing-page.d.ts +76 -0
  76. package/dist/checkout-components/payment-link-landing-page.d.ts.map +1 -0
  77. package/dist/checkout-components/payment-link-landing-page.js +173 -0
  78. package/dist/checkout-components/payment-step.d.ts +42 -0
  79. package/dist/checkout-components/payment-step.d.ts.map +1 -0
  80. package/dist/checkout-components/payment-step.js +113 -0
  81. package/dist/checkout-hooks/index.d.ts +5 -0
  82. package/dist/checkout-hooks/index.d.ts.map +1 -0
  83. package/dist/checkout-hooks/index.js +4 -0
  84. package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts +20 -0
  85. package/dist/checkout-hooks/use-checkout-payment-link-config.d.ts.map +1 -0
  86. package/dist/checkout-hooks/use-checkout-payment-link-config.js +26 -0
  87. package/dist/checkout-hooks/use-collect-payment.d.ts +227 -0
  88. package/dist/checkout-hooks/use-collect-payment.d.ts.map +1 -0
  89. package/dist/checkout-hooks/use-collect-payment.js +80 -0
  90. package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts +308 -0
  91. package/dist/checkout-hooks/use-initiate-checkout-collection.d.ts.map +1 -0
  92. package/dist/checkout-hooks/use-initiate-checkout-collection.js +35 -0
  93. package/dist/checkout-hooks/use-preview-checkout-collection.d.ts +65 -0
  94. package/dist/checkout-hooks/use-preview-checkout-collection.d.ts.map +1 -0
  95. package/dist/checkout-hooks/use-preview-checkout-collection.js +27 -0
  96. package/dist/checkout-i18n/en.d.ts +3 -0
  97. package/dist/checkout-i18n/en.d.ts.map +1 -0
  98. package/dist/checkout-i18n/en.js +127 -0
  99. package/dist/checkout-i18n/index.d.ts +5 -0
  100. package/dist/checkout-i18n/index.d.ts.map +1 -0
  101. package/dist/checkout-i18n/index.js +3 -0
  102. package/dist/checkout-i18n/messages.d.ts +121 -0
  103. package/dist/checkout-i18n/messages.d.ts.map +1 -0
  104. package/dist/checkout-i18n/messages.js +1 -0
  105. package/dist/checkout-i18n/provider.d.ts +26 -0
  106. package/dist/checkout-i18n/provider.d.ts.map +1 -0
  107. package/dist/checkout-i18n/provider.js +41 -0
  108. package/dist/checkout-i18n/ro.d.ts +3 -0
  109. package/dist/checkout-i18n/ro.d.ts.map +1 -0
  110. package/dist/checkout-i18n/ro.js +127 -0
  111. package/dist/checkout-types.d.ts +53 -0
  112. package/dist/checkout-types.d.ts.map +1 -0
  113. package/dist/checkout-types.js +1 -0
  114. package/dist/checkout-ui.d.ts +7 -0
  115. package/dist/checkout-ui.d.ts.map +1 -0
  116. package/dist/checkout-ui.js +4 -0
  117. package/dist/checkout.d.ts +5 -0
  118. package/dist/checkout.d.ts.map +1 -0
  119. package/dist/checkout.js +3 -0
  120. package/dist/client.d.ts +16 -0
  121. package/dist/client.d.ts.map +1 -0
  122. package/dist/client.js +79 -0
  123. package/dist/components/accountant-portal/body.d.ts +8 -0
  124. package/dist/components/accountant-portal/body.d.ts.map +1 -0
  125. package/dist/components/accountant-portal/body.js +114 -0
  126. package/dist/components/accountant-portal/widgets.d.ts +13 -0
  127. package/dist/components/accountant-portal/widgets.d.ts.map +1 -0
  128. package/dist/components/accountant-portal/widgets.js +27 -0
  129. package/dist/components/accountant-portal.d.ts +10 -0
  130. package/dist/components/accountant-portal.d.ts.map +1 -0
  131. package/dist/components/accountant-portal.js +22 -0
  132. package/dist/components/accountant-share-dialog.d.ts +6 -0
  133. package/dist/components/accountant-share-dialog.d.ts.map +1 -0
  134. package/dist/components/accountant-share-dialog.js +53 -0
  135. package/dist/components/async-combobox.d.ts +33 -0
  136. package/dist/components/async-combobox.d.ts.map +1 -0
  137. package/dist/components/async-combobox.js +100 -0
  138. package/dist/components/booking-invoice-dialog.d.ts +63 -0
  139. package/dist/components/booking-invoice-dialog.d.ts.map +1 -0
  140. package/dist/components/booking-invoice-dialog.js +383 -0
  141. package/dist/components/cost-categories-page.d.ts +5 -0
  142. package/dist/components/cost-categories-page.d.ts.map +1 -0
  143. package/dist/components/cost-categories-page.js +30 -0
  144. package/dist/components/invoice-action-ledger-card.d.ts +15 -0
  145. package/dist/components/invoice-action-ledger-card.d.ts.map +1 -0
  146. package/dist/components/invoice-action-ledger-card.js +76 -0
  147. package/dist/components/invoice-bulk-actions.d.ts +10 -0
  148. package/dist/components/invoice-bulk-actions.d.ts.map +1 -0
  149. package/dist/components/invoice-bulk-actions.js +19 -0
  150. package/dist/components/invoice-detail-page/cards.d.ts +44 -0
  151. package/dist/components/invoice-detail-page/cards.d.ts.map +1 -0
  152. package/dist/components/invoice-detail-page/cards.js +43 -0
  153. package/dist/components/invoice-detail-page/header.d.ts +15 -0
  154. package/dist/components/invoice-detail-page/header.d.ts.map +1 -0
  155. package/dist/components/invoice-detail-page/header.js +30 -0
  156. package/dist/components/invoice-detail-page/notes-dialogs.d.ts +28 -0
  157. package/dist/components/invoice-detail-page/notes-dialogs.d.ts.map +1 -0
  158. package/dist/components/invoice-detail-page/notes-dialogs.js +104 -0
  159. package/dist/components/invoice-detail-page/primitives.d.ts +47 -0
  160. package/dist/components/invoice-detail-page/primitives.d.ts.map +1 -0
  161. package/dist/components/invoice-detail-page/primitives.js +76 -0
  162. package/dist/components/invoice-detail-page-with-action-ledger.d.ts +7 -0
  163. package/dist/components/invoice-detail-page-with-action-ledger.d.ts.map +1 -0
  164. package/dist/components/invoice-detail-page-with-action-ledger.js +11 -0
  165. package/dist/components/invoice-detail-page.d.ts +46 -0
  166. package/dist/components/invoice-detail-page.d.ts.map +1 -0
  167. package/dist/components/invoice-detail-page.js +134 -0
  168. package/dist/components/invoice-dialog.d.ts +9 -0
  169. package/dist/components/invoice-dialog.d.ts.map +1 -0
  170. package/dist/components/invoice-dialog.js +145 -0
  171. package/dist/components/invoice-number-series-dialog.d.ts +9 -0
  172. package/dist/components/invoice-number-series-dialog.d.ts.map +1 -0
  173. package/dist/components/invoice-number-series-dialog.js +134 -0
  174. package/dist/components/invoice-number-series-format.d.ts +3 -0
  175. package/dist/components/invoice-number-series-format.d.ts.map +1 -0
  176. package/dist/components/invoice-number-series-format.js +4 -0
  177. package/dist/components/invoice-number-series-page.d.ts +5 -0
  178. package/dist/components/invoice-number-series-page.d.ts.map +1 -0
  179. package/dist/components/invoice-number-series-page.js +55 -0
  180. package/dist/components/invoice-table-parts.d.ts +25 -0
  181. package/dist/components/invoice-table-parts.d.ts.map +1 -0
  182. package/dist/components/invoice-table-parts.js +32 -0
  183. package/dist/components/invoices-page-skeleton.d.ts +5 -0
  184. package/dist/components/invoices-page-skeleton.d.ts.map +1 -0
  185. package/dist/components/invoices-page-skeleton.js +13 -0
  186. package/dist/components/invoices-page.d.ts +6 -0
  187. package/dist/components/invoices-page.d.ts.map +1 -0
  188. package/dist/components/invoices-page.js +145 -0
  189. package/dist/components/payment-detail-page.d.ts +47 -0
  190. package/dist/components/payment-detail-page.d.ts.map +1 -0
  191. package/dist/components/payment-detail-page.js +90 -0
  192. package/dist/components/payment-policy-form.d.ts +49 -0
  193. package/dist/components/payment-policy-form.d.ts.map +1 -0
  194. package/dist/components/payment-policy-form.js +82 -0
  195. package/dist/components/payments-page/controls.d.ts +23 -0
  196. package/dist/components/payments-page/controls.d.ts.map +1 -0
  197. package/dist/components/payments-page/controls.js +20 -0
  198. package/dist/components/payments-page-skeleton.d.ts +5 -0
  199. package/dist/components/payments-page-skeleton.d.ts.map +1 -0
  200. package/dist/components/payments-page-skeleton.js +13 -0
  201. package/dist/components/payments-page.d.ts +20 -0
  202. package/dist/components/payments-page.d.ts.map +1 -0
  203. package/dist/components/payments-page.js +143 -0
  204. package/dist/components/profitability-page/sections.d.ts +24 -0
  205. package/dist/components/profitability-page/sections.d.ts.map +1 -0
  206. package/dist/components/profitability-page/sections.js +43 -0
  207. package/dist/components/profitability-page.d.ts +13 -0
  208. package/dist/components/profitability-page.d.ts.map +1 -0
  209. package/dist/components/profitability-page.js +175 -0
  210. package/dist/components/record-booking-payment-dialog/shared.d.ts +54 -0
  211. package/dist/components/record-booking-payment-dialog/shared.d.ts.map +1 -0
  212. package/dist/components/record-booking-payment-dialog/shared.js +47 -0
  213. package/dist/components/record-booking-payment-dialog.d.ts +4 -0
  214. package/dist/components/record-booking-payment-dialog.d.ts.map +1 -0
  215. package/dist/components/record-booking-payment-dialog.js +256 -0
  216. package/dist/components/supplier-invoice-detail-page/dialogs.d.ts +34 -0
  217. package/dist/components/supplier-invoice-detail-page/dialogs.d.ts.map +1 -0
  218. package/dist/components/supplier-invoice-detail-page/dialogs.js +119 -0
  219. package/dist/components/supplier-invoice-detail-page/shared.d.ts +64 -0
  220. package/dist/components/supplier-invoice-detail-page/shared.d.ts.map +1 -0
  221. package/dist/components/supplier-invoice-detail-page/shared.js +70 -0
  222. package/dist/components/supplier-invoice-detail-page.d.ts +4 -0
  223. package/dist/components/supplier-invoice-detail-page.d.ts.map +1 -0
  224. package/dist/components/supplier-invoice-detail-page.js +101 -0
  225. package/dist/components/supplier-invoice-form-dialog.d.ts +45 -0
  226. package/dist/components/supplier-invoice-form-dialog.d.ts.map +1 -0
  227. package/dist/components/supplier-invoice-form-dialog.js +102 -0
  228. package/dist/components/supplier-invoices-page.d.ts +14 -0
  229. package/dist/components/supplier-invoices-page.d.ts.map +1 -0
  230. package/dist/components/supplier-invoices-page.js +69 -0
  231. package/dist/components/supplier-payment-dialog.d.ts +7 -0
  232. package/dist/components/supplier-payment-dialog.d.ts.map +1 -0
  233. package/dist/components/supplier-payment-dialog.js +103 -0
  234. package/dist/components/taxes-page/policy-profile-sheet.d.ts +8 -0
  235. package/dist/components/taxes-page/policy-profile-sheet.d.ts.map +1 -0
  236. package/dist/components/taxes-page/policy-profile-sheet.js +52 -0
  237. package/dist/components/taxes-page/policy-rule-sheet.d.ts +10 -0
  238. package/dist/components/taxes-page/policy-rule-sheet.d.ts.map +1 -0
  239. package/dist/components/taxes-page/policy-rule-sheet.js +137 -0
  240. package/dist/components/taxes-page/shared.d.ts +128 -0
  241. package/dist/components/taxes-page/shared.d.ts.map +1 -0
  242. package/dist/components/taxes-page/shared.js +288 -0
  243. package/dist/components/taxes-page/sheets.d.ts +4 -0
  244. package/dist/components/taxes-page/sheets.d.ts.map +1 -0
  245. package/dist/components/taxes-page/sheets.js +3 -0
  246. package/dist/components/taxes-page/tax-sheet.d.ts +9 -0
  247. package/dist/components/taxes-page/tax-sheet.d.ts.map +1 -0
  248. package/dist/components/taxes-page/tax-sheet.js +108 -0
  249. package/dist/components/taxes-page.d.ts +4 -0
  250. package/dist/components/taxes-page.d.ts.map +1 -0
  251. package/dist/components/taxes-page.js +165 -0
  252. package/dist/hooks/index.d.ts +53 -0
  253. package/dist/hooks/index.d.ts.map +1 -0
  254. package/dist/hooks/index.js +52 -0
  255. package/dist/hooks/use-accountant-share-mutation.d.ts +20 -0
  256. package/dist/hooks/use-accountant-share-mutation.d.ts.map +1 -0
  257. package/dist/hooks/use-accountant-share-mutation.js +27 -0
  258. package/dist/hooks/use-accountant-shares.d.ts +13 -0
  259. package/dist/hooks/use-accountant-shares.d.ts.map +1 -0
  260. package/dist/hooks/use-accountant-shares.js +8 -0
  261. package/dist/hooks/use-admin-booking-payments.d.ts +30 -0
  262. package/dist/hooks/use-admin-booking-payments.d.ts.map +1 -0
  263. package/dist/hooks/use-admin-booking-payments.js +18 -0
  264. package/dist/hooks/use-all-payments.d.ts +35 -0
  265. package/dist/hooks/use-all-payments.d.ts.map +1 -0
  266. package/dist/hooks/use-all-payments.js +12 -0
  267. package/dist/hooks/use-booking-guarantees.d.ts +82 -0
  268. package/dist/hooks/use-booking-guarantees.d.ts.map +1 -0
  269. package/dist/hooks/use-booking-guarantees.js +46 -0
  270. package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts +44 -0
  271. package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.d.ts.map +1 -0
  272. package/dist/hooks/use-booking-payment-schedule-regenerate-mutation.js +27 -0
  273. package/dist/hooks/use-booking-payment-schedules.d.ts +63 -0
  274. package/dist/hooks/use-booking-payment-schedules.d.ts.map +1 -0
  275. package/dist/hooks/use-booking-payment-schedules.js +47 -0
  276. package/dist/hooks/use-cost-categories.d.ts +14 -0
  277. package/dist/hooks/use-cost-categories.d.ts.map +1 -0
  278. package/dist/hooks/use-cost-categories.js +9 -0
  279. package/dist/hooks/use-cost-category-mutation.d.ts +31 -0
  280. package/dist/hooks/use-cost-category-mutation.d.ts.map +1 -0
  281. package/dist/hooks/use-cost-category-mutation.js +27 -0
  282. package/dist/hooks/use-departure-profitability.d.ts +56 -0
  283. package/dist/hooks/use-departure-profitability.d.ts.map +1 -0
  284. package/dist/hooks/use-departure-profitability.js +12 -0
  285. package/dist/hooks/use-finance-action-ledger.d.ts +94 -0
  286. package/dist/hooks/use-finance-action-ledger.d.ts.map +1 -0
  287. package/dist/hooks/use-finance-action-ledger.js +20 -0
  288. package/dist/hooks/use-invoice-attachment-mutation.d.ts +43 -0
  289. package/dist/hooks/use-invoice-attachment-mutation.d.ts.map +1 -0
  290. package/dist/hooks/use-invoice-attachment-mutation.js +39 -0
  291. package/dist/hooks/use-invoice-attachments.d.ts +18 -0
  292. package/dist/hooks/use-invoice-attachments.d.ts.map +1 -0
  293. package/dist/hooks/use-invoice-attachments.js +12 -0
  294. package/dist/hooks/use-invoice-bulk-status-mutation.d.ts +51 -0
  295. package/dist/hooks/use-invoice-bulk-status-mutation.d.ts.map +1 -0
  296. package/dist/hooks/use-invoice-bulk-status-mutation.js +66 -0
  297. package/dist/hooks/use-invoice-credit-note-mutation.d.ts +38 -0
  298. package/dist/hooks/use-invoice-credit-note-mutation.d.ts.map +1 -0
  299. package/dist/hooks/use-invoice-credit-note-mutation.js +35 -0
  300. package/dist/hooks/use-invoice-credit-notes.d.ts +17 -0
  301. package/dist/hooks/use-invoice-credit-notes.d.ts.map +1 -0
  302. package/dist/hooks/use-invoice-credit-notes.js +12 -0
  303. package/dist/hooks/use-invoice-fx-rate.d.ts +19 -0
  304. package/dist/hooks/use-invoice-fx-rate.d.ts.map +1 -0
  305. package/dist/hooks/use-invoice-fx-rate.js +13 -0
  306. package/dist/hooks/use-invoice-line-item-mutation.d.ts +40 -0
  307. package/dist/hooks/use-invoice-line-item-mutation.d.ts.map +1 -0
  308. package/dist/hooks/use-invoice-line-item-mutation.js +42 -0
  309. package/dist/hooks/use-invoice-line-items.d.ts +17 -0
  310. package/dist/hooks/use-invoice-line-items.d.ts.map +1 -0
  311. package/dist/hooks/use-invoice-line-items.js +12 -0
  312. package/dist/hooks/use-invoice-mutation.d.ts +225 -0
  313. package/dist/hooks/use-invoice-mutation.d.ts.map +1 -0
  314. package/dist/hooks/use-invoice-mutation.js +121 -0
  315. package/dist/hooks/use-invoice-note-mutation.d.ts +11 -0
  316. package/dist/hooks/use-invoice-note-mutation.d.ts.map +1 -0
  317. package/dist/hooks/use-invoice-note-mutation.js +23 -0
  318. package/dist/hooks/use-invoice-notes.d.ts +13 -0
  319. package/dist/hooks/use-invoice-notes.d.ts.map +1 -0
  320. package/dist/hooks/use-invoice-notes.js +12 -0
  321. package/dist/hooks/use-invoice-number-series-mutation.d.ts +62 -0
  322. package/dist/hooks/use-invoice-number-series-mutation.d.ts.map +1 -0
  323. package/dist/hooks/use-invoice-number-series-mutation.js +39 -0
  324. package/dist/hooks/use-invoice-number-series.d.ts +28 -0
  325. package/dist/hooks/use-invoice-number-series.d.ts.map +1 -0
  326. package/dist/hooks/use-invoice-number-series.js +12 -0
  327. package/dist/hooks/use-invoice-payment-mutation.d.ts +29 -0
  328. package/dist/hooks/use-invoice-payment-mutation.d.ts.map +1 -0
  329. package/dist/hooks/use-invoice-payment-mutation.js +35 -0
  330. package/dist/hooks/use-invoice-payments.d.ts +21 -0
  331. package/dist/hooks/use-invoice-payments.d.ts.map +1 -0
  332. package/dist/hooks/use-invoice-payments.js +12 -0
  333. package/dist/hooks/use-invoice.d.ts +32 -0
  334. package/dist/hooks/use-invoice.d.ts.map +1 -0
  335. package/dist/hooks/use-invoice.js +12 -0
  336. package/dist/hooks/use-invoices.d.ts +36 -0
  337. package/dist/hooks/use-invoices.d.ts.map +1 -0
  338. package/dist/hooks/use-invoices.js +12 -0
  339. package/dist/hooks/use-payment-mutation.d.ts +57 -0
  340. package/dist/hooks/use-payment-mutation.d.ts.map +1 -0
  341. package/dist/hooks/use-payment-mutation.js +59 -0
  342. package/dist/hooks/use-payment-session-mutation.d.ts +205 -0
  343. package/dist/hooks/use-payment-session-mutation.d.ts.map +1 -0
  344. package/dist/hooks/use-payment-session-mutation.js +38 -0
  345. package/dist/hooks/use-payment-sessions.d.ts +97 -0
  346. package/dist/hooks/use-payment-sessions.d.ts.map +1 -0
  347. package/dist/hooks/use-payment-sessions.js +17 -0
  348. package/dist/hooks/use-payment.d.ts +31 -0
  349. package/dist/hooks/use-payment.d.ts.map +1 -0
  350. package/dist/hooks/use-payment.js +12 -0
  351. package/dist/hooks/use-product-profitability.d.ts +52 -0
  352. package/dist/hooks/use-product-profitability.d.ts.map +1 -0
  353. package/dist/hooks/use-product-profitability.js +12 -0
  354. package/dist/hooks/use-public-booking-documents.d.ts +29 -0
  355. package/dist/hooks/use-public-booking-documents.d.ts.map +1 -0
  356. package/dist/hooks/use-public-booking-documents.js +12 -0
  357. package/dist/hooks/use-public-booking-payment-options.d.ts +47 -0
  358. package/dist/hooks/use-public-booking-payment-options.d.ts.map +1 -0
  359. package/dist/hooks/use-public-booking-payment-options.js +12 -0
  360. package/dist/hooks/use-public-booking-payments.d.ts +24 -0
  361. package/dist/hooks/use-public-booking-payments.d.ts.map +1 -0
  362. package/dist/hooks/use-public-booking-payments.js +12 -0
  363. package/dist/hooks/use-public-finance-document-by-reference.d.ts +27 -0
  364. package/dist/hooks/use-public-finance-document-by-reference.d.ts.map +1 -0
  365. package/dist/hooks/use-public-finance-document-by-reference.js +12 -0
  366. package/dist/hooks/use-public-payment-session-mutation.d.ts +82 -0
  367. package/dist/hooks/use-public-payment-session-mutation.d.ts.map +1 -0
  368. package/dist/hooks/use-public-payment-session-mutation.js +33 -0
  369. package/dist/hooks/use-public-payment-session.d.ts +73 -0
  370. package/dist/hooks/use-public-payment-session.d.ts.map +1 -0
  371. package/dist/hooks/use-public-payment-session.js +12 -0
  372. package/dist/hooks/use-public-voucher-validation-mutation.d.ts +23 -0
  373. package/dist/hooks/use-public-voucher-validation-mutation.d.ts.map +1 -0
  374. package/dist/hooks/use-public-voucher-validation-mutation.js +17 -0
  375. package/dist/hooks/use-supplier-invoice-attachments.d.ts +17 -0
  376. package/dist/hooks/use-supplier-invoice-attachments.d.ts.map +1 -0
  377. package/dist/hooks/use-supplier-invoice-attachments.js +12 -0
  378. package/dist/hooks/use-supplier-invoice-mutation.d.ts +353 -0
  379. package/dist/hooks/use-supplier-invoice-mutation.d.ts.map +1 -0
  380. package/dist/hooks/use-supplier-invoice-mutation.js +81 -0
  381. package/dist/hooks/use-supplier-invoice-payments.d.ts +26 -0
  382. package/dist/hooks/use-supplier-invoice-payments.d.ts.map +1 -0
  383. package/dist/hooks/use-supplier-invoice-payments.js +12 -0
  384. package/dist/hooks/use-supplier-invoice.d.ts +65 -0
  385. package/dist/hooks/use-supplier-invoice.d.ts.map +1 -0
  386. package/dist/hooks/use-supplier-invoice.js +12 -0
  387. package/dist/hooks/use-supplier-invoices.d.ts +36 -0
  388. package/dist/hooks/use-supplier-invoices.d.ts.map +1 -0
  389. package/dist/hooks/use-supplier-invoices.js +12 -0
  390. package/dist/hooks/use-supplier-payment-mutation.d.ts +55 -0
  391. package/dist/hooks/use-supplier-payment-mutation.d.ts.map +1 -0
  392. package/dist/hooks/use-supplier-payment-mutation.js +35 -0
  393. package/dist/hooks/use-supplier-payments.d.ts +27 -0
  394. package/dist/hooks/use-supplier-payments.d.ts.map +1 -0
  395. package/dist/hooks/use-supplier-payments.js +12 -0
  396. package/dist/hooks/use-traveler-profitability.d.ts +24 -0
  397. package/dist/hooks/use-traveler-profitability.d.ts.map +1 -0
  398. package/dist/hooks/use-traveler-profitability.js +11 -0
  399. package/dist/hooks/use-voucher-mutation.d.ts +105 -0
  400. package/dist/hooks/use-voucher-mutation.d.ts.map +1 -0
  401. package/dist/hooks/use-voucher-mutation.js +50 -0
  402. package/dist/hooks/use-voucher.d.ts +38 -0
  403. package/dist/hooks/use-voucher.d.ts.map +1 -0
  404. package/dist/hooks/use-voucher.js +17 -0
  405. package/dist/hooks/use-vouchers.d.ts +34 -0
  406. package/dist/hooks/use-vouchers.d.ts.map +1 -0
  407. package/dist/hooks/use-vouchers.js +18 -0
  408. package/dist/i18n/en/invoices.d.ts +278 -0
  409. package/dist/i18n/en/invoices.d.ts.map +1 -0
  410. package/dist/i18n/en/invoices.js +277 -0
  411. package/dist/i18n/en/numberingAndPayments.d.ts +387 -0
  412. package/dist/i18n/en/numberingAndPayments.d.ts.map +1 -0
  413. package/dist/i18n/en/numberingAndPayments.js +386 -0
  414. package/dist/i18n/en/profitability.d.ts +147 -0
  415. package/dist/i18n/en/profitability.d.ts.map +1 -0
  416. package/dist/i18n/en/profitability.js +146 -0
  417. package/dist/i18n/en/suppliers.d.ts +187 -0
  418. package/dist/i18n/en/suppliers.d.ts.map +1 -0
  419. package/dist/i18n/en/suppliers.js +186 -0
  420. package/dist/i18n/en.d.ts +998 -0
  421. package/dist/i18n/en.d.ts.map +1 -0
  422. package/dist/i18n/en.js +22 -0
  423. package/dist/i18n/index.d.ts +5 -0
  424. package/dist/i18n/index.d.ts.map +1 -0
  425. package/dist/i18n/index.js +3 -0
  426. package/dist/i18n/messages/core.d.ts +18 -0
  427. package/dist/i18n/messages/core.d.ts.map +1 -0
  428. package/dist/i18n/messages/core.js +30 -0
  429. package/dist/i18n/messages/invoices.d.ts +252 -0
  430. package/dist/i18n/messages/invoices.d.ts.map +1 -0
  431. package/dist/i18n/messages/invoices.js +1 -0
  432. package/dist/i18n/messages/numberingAndPayments.d.ts +277 -0
  433. package/dist/i18n/messages/numberingAndPayments.d.ts.map +1 -0
  434. package/dist/i18n/messages/numberingAndPayments.js +1 -0
  435. package/dist/i18n/messages/profitability.d.ts +151 -0
  436. package/dist/i18n/messages/profitability.d.ts.map +1 -0
  437. package/dist/i18n/messages/profitability.js +1 -0
  438. package/dist/i18n/messages/suppliers.d.ts +167 -0
  439. package/dist/i18n/messages/suppliers.d.ts.map +1 -0
  440. package/dist/i18n/messages/suppliers.js +1 -0
  441. package/dist/i18n/messages.d.ts +29 -0
  442. package/dist/i18n/messages.d.ts.map +1 -0
  443. package/dist/i18n/messages.js +1 -0
  444. package/dist/i18n/provider.d.ts +2018 -0
  445. package/dist/i18n/provider.d.ts.map +1 -0
  446. package/dist/i18n/provider.js +44 -0
  447. package/dist/i18n/ro/invoices.d.ts +278 -0
  448. package/dist/i18n/ro/invoices.d.ts.map +1 -0
  449. package/dist/i18n/ro/invoices.js +277 -0
  450. package/dist/i18n/ro/numberingAndPayments.d.ts +387 -0
  451. package/dist/i18n/ro/numberingAndPayments.d.ts.map +1 -0
  452. package/dist/i18n/ro/numberingAndPayments.js +386 -0
  453. package/dist/i18n/ro/profitability.d.ts +147 -0
  454. package/dist/i18n/ro/profitability.d.ts.map +1 -0
  455. package/dist/i18n/ro/profitability.js +146 -0
  456. package/dist/i18n/ro/suppliers.d.ts +187 -0
  457. package/dist/i18n/ro/suppliers.d.ts.map +1 -0
  458. package/dist/i18n/ro/suppliers.js +186 -0
  459. package/dist/i18n/ro.d.ts +998 -0
  460. package/dist/i18n/ro.d.ts.map +1 -0
  461. package/dist/i18n/ro.js +22 -0
  462. package/dist/index.d.ts +11 -0
  463. package/dist/index.d.ts.map +1 -0
  464. package/dist/index.js +9 -0
  465. package/dist/operations.d.ts +484 -0
  466. package/dist/operations.d.ts.map +1 -0
  467. package/dist/operations.js +52 -0
  468. package/dist/provider.d.ts +2 -0
  469. package/dist/provider.d.ts.map +1 -0
  470. package/dist/provider.js +1 -0
  471. package/dist/query-keys.d.ts +195 -0
  472. package/dist/query-keys.d.ts.map +1 -0
  473. package/dist/query-keys.js +49 -0
  474. package/dist/query-options/public-reporting.d.ts +2129 -0
  475. package/dist/query-options/public-reporting.d.ts.map +1 -0
  476. package/dist/query-options/public-reporting.js +193 -0
  477. package/dist/query-options-action-ledger.d.ts +382 -0
  478. package/dist/query-options-action-ledger.d.ts.map +1 -0
  479. package/dist/query-options-action-ledger.js +36 -0
  480. package/dist/query-options.d.ts +2057 -0
  481. package/dist/query-options.d.ts.map +1 -0
  482. package/dist/query-options.js +328 -0
  483. package/dist/schemas/accountant.d.ts +168 -0
  484. package/dist/schemas/accountant.d.ts.map +1 -0
  485. package/dist/schemas/accountant.js +53 -0
  486. package/dist/schemas/action-ledger.d.ts +206 -0
  487. package/dist/schemas/action-ledger.d.ts.map +1 -0
  488. package/dist/schemas/action-ledger.js +83 -0
  489. package/dist/schemas/common.d.ts +17 -0
  490. package/dist/schemas/common.d.ts.map +1 -0
  491. package/dist/schemas/common.js +10 -0
  492. package/dist/schemas/invoice.d.ts +1451 -0
  493. package/dist/schemas/invoice.d.ts.map +1 -0
  494. package/dist/schemas/invoice.js +438 -0
  495. package/dist/schemas/profitability.d.ts +333 -0
  496. package/dist/schemas/profitability.d.ts.map +1 -0
  497. package/dist/schemas/profitability.js +84 -0
  498. package/dist/schemas/public.d.ts +481 -0
  499. package/dist/schemas/public.d.ts.map +1 -0
  500. package/dist/schemas/public.js +9 -0
  501. package/dist/schemas/responses.d.ts +632 -0
  502. package/dist/schemas/responses.d.ts.map +1 -0
  503. package/dist/schemas/responses.js +27 -0
  504. package/dist/schemas/supplier.d.ts +226 -0
  505. package/dist/schemas/supplier.d.ts.map +1 -0
  506. package/dist/schemas/supplier.js +103 -0
  507. package/dist/schemas/vouchers.d.ts +283 -0
  508. package/dist/schemas/vouchers.d.ts.map +1 -0
  509. package/dist/schemas/vouchers.js +49 -0
  510. package/dist/schemas.d.ts +10 -0
  511. package/dist/schemas.d.ts.map +1 -0
  512. package/dist/schemas.js +9 -0
  513. package/dist/ui.d.ts +27 -0
  514. package/dist/ui.d.ts.map +1 -0
  515. package/dist/ui.js +26 -0
  516. package/package.json +181 -0
  517. package/src/styles.css +12 -0
@@ -0,0 +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,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAA;AACpF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,0CAA0C,CAAA;AACjG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAA;AACtF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAA;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,yBA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L,kCAAkC,EAClC,yCAAyC,EACzC,KAAK,6BAA6B,GACnC,MAAM,kCAAkC,CAAA"}
@@ -0,0 +1,328 @@
1
+ "use client";
2
+ import { queryOptions } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "./client.js";
4
+ import { getInvoiceFxRate } from "./operations.js";
5
+ import { financeQueryKeys } from "./query-keys.js";
6
+ import { allPaymentsListResponse, bookingGuaranteesResponse, bookingPaymentSchedulesResponse, invoiceAttachmentsResponse, invoiceCreditNotesResponse, invoiceLineItemsResponse, invoiceListResponse, invoiceNotesResponse, invoiceNumberSeriesListResponse, invoicePaymentsResponse, invoiceSingleResponse, paymentSessionListResponse, paymentSingleResponse, supplierInvoiceAttachmentsResponse, supplierInvoiceListResponse, supplierInvoiceSingleResponse, supplierPaymentListResponse, } from "./schemas.js";
7
+ export function getBookingPaymentSchedulesQueryOptions(client, bookingId, options = {}) {
8
+ const { enabled: _enabled = true } = options;
9
+ return queryOptions({
10
+ queryKey: financeQueryKeys.bookingPaymentSchedules(bookingId ?? ""),
11
+ queryFn: () => fetchWithValidation(`/v1/admin/finance/bookings/${bookingId}/payment-schedules`, bookingPaymentSchedulesResponse, client),
12
+ });
13
+ }
14
+ export function getBookingGuaranteesQueryOptions(client, bookingId, options = {}) {
15
+ const { enabled: _enabled = true } = options;
16
+ return queryOptions({
17
+ queryKey: financeQueryKeys.bookingGuarantees(bookingId ?? ""),
18
+ queryFn: () => fetchWithValidation(`/v1/admin/finance/bookings/${bookingId}/guarantees`, bookingGuaranteesResponse, client),
19
+ });
20
+ }
21
+ export function getInvoiceFxRateQueryOptions(client, options) {
22
+ const { enabled: _enabled = true, ...input } = options;
23
+ return queryOptions({
24
+ queryKey: financeQueryKeys.invoiceFxRate(input),
25
+ queryFn: async () => {
26
+ if (!input.baseCurrency || !input.quoteCurrency) {
27
+ throw new Error("getInvoiceFxRateQueryOptions requires both currencies");
28
+ }
29
+ return getInvoiceFxRate(client, {
30
+ baseCurrency: input.baseCurrency,
31
+ quoteCurrency: input.quoteCurrency,
32
+ date: input.date,
33
+ });
34
+ },
35
+ });
36
+ }
37
+ export function getInvoicesQueryOptions(client, options = {}) {
38
+ const { enabled: _enabled = true, ...filters } = options;
39
+ return queryOptions({
40
+ queryKey: financeQueryKeys.invoicesList(filters),
41
+ queryFn: () => {
42
+ const params = new URLSearchParams();
43
+ if (filters.search)
44
+ params.set("search", filters.search);
45
+ if (filters.bookingId)
46
+ params.set("bookingId", filters.bookingId);
47
+ if (filters.personId)
48
+ params.set("personId", filters.personId);
49
+ if (filters.organizationId)
50
+ params.set("organizationId", filters.organizationId);
51
+ if (filters.status)
52
+ params.set("status", filters.status);
53
+ if (filters.currency)
54
+ params.set("currency", filters.currency);
55
+ if (filters.dueDateFrom)
56
+ params.set("dueDateFrom", filters.dueDateFrom);
57
+ if (filters.dueDateTo)
58
+ params.set("dueDateTo", filters.dueDateTo);
59
+ if (filters.sortBy)
60
+ params.set("sortBy", filters.sortBy);
61
+ if (filters.sortDir)
62
+ params.set("sortDir", filters.sortDir);
63
+ if (filters.limit !== undefined)
64
+ params.set("limit", String(filters.limit));
65
+ if (filters.offset !== undefined)
66
+ params.set("offset", String(filters.offset));
67
+ const qs = params.toString();
68
+ return fetchWithValidation(`/v1/admin/finance/invoices${qs ? `?${qs}` : ""}`, invoiceListResponse, client);
69
+ },
70
+ });
71
+ }
72
+ export function getSupplierInvoicesQueryOptions(client, options = {}) {
73
+ const { enabled: _enabled = true, ...filters } = options;
74
+ return queryOptions({
75
+ queryKey: financeQueryKeys.supplierInvoicesList(filters),
76
+ queryFn: () => {
77
+ const params = new URLSearchParams();
78
+ if (filters.supplierId)
79
+ params.set("supplierId", filters.supplierId);
80
+ if (filters.status)
81
+ params.set("status", filters.status);
82
+ if (filters.currency)
83
+ params.set("currency", filters.currency);
84
+ if (filters.dueDateFrom)
85
+ params.set("dueDateFrom", filters.dueDateFrom);
86
+ if (filters.dueDateTo)
87
+ params.set("dueDateTo", filters.dueDateTo);
88
+ if (filters.departureId)
89
+ params.set("departureId", filters.departureId);
90
+ if (filters.productId)
91
+ params.set("productId", filters.productId);
92
+ if (filters.bookingId)
93
+ params.set("bookingId", filters.bookingId);
94
+ if (filters.search)
95
+ params.set("search", filters.search);
96
+ if (filters.sortBy)
97
+ params.set("sortBy", filters.sortBy);
98
+ if (filters.sortDir)
99
+ params.set("sortDir", filters.sortDir);
100
+ if (filters.limit !== undefined)
101
+ params.set("limit", String(filters.limit));
102
+ if (filters.offset !== undefined)
103
+ params.set("offset", String(filters.offset));
104
+ const qs = params.toString();
105
+ return fetchWithValidation(`/v1/admin/finance/supplier-invoices${qs ? `?${qs}` : ""}`, supplierInvoiceListResponse, client);
106
+ },
107
+ });
108
+ }
109
+ export function getSupplierInvoiceQueryOptions(client, id, options = {}) {
110
+ const { enabled: _enabled = true } = options;
111
+ return queryOptions({
112
+ queryKey: financeQueryKeys.supplierInvoice(id ?? ""),
113
+ queryFn: () => fetchWithValidation(`/v1/admin/finance/supplier-invoices/${id}`, supplierInvoiceSingleResponse, client),
114
+ });
115
+ }
116
+ export function getSupplierInvoicePaymentsQueryOptions(client, id) {
117
+ return queryOptions({
118
+ queryKey: financeQueryKeys.supplierInvoicePayments(id ?? ""),
119
+ queryFn: () => fetchWithValidation(`/v1/admin/finance/supplier-invoices/${id}/payments`, supplierPaymentListResponse, client),
120
+ });
121
+ }
122
+ export function getSupplierInvoiceAttachmentsQueryOptions(client, id) {
123
+ return queryOptions({
124
+ queryKey: financeQueryKeys.supplierInvoiceAttachments(id ?? ""),
125
+ queryFn: () => fetchWithValidation(`/v1/admin/finance/supplier-invoices/${id}/attachments`, supplierInvoiceAttachmentsResponse, client),
126
+ });
127
+ }
128
+ export function getInvoiceNumberSeriesQueryOptions(client, options = {}) {
129
+ const { enabled: _enabled = true, ...filters } = options;
130
+ return queryOptions({
131
+ queryKey: financeQueryKeys.invoiceNumberSeriesList(filters),
132
+ queryFn: () => {
133
+ const params = new URLSearchParams();
134
+ if (filters.scope)
135
+ params.set("scope", filters.scope);
136
+ if (filters.active !== undefined)
137
+ params.set("active", filters.active ? "true" : "false");
138
+ if (filters.limit !== undefined)
139
+ params.set("limit", String(filters.limit));
140
+ if (filters.offset !== undefined)
141
+ params.set("offset", String(filters.offset));
142
+ const qs = params.toString();
143
+ return fetchWithValidation(`/v1/admin/finance/invoice-number-series${qs ? `?${qs}` : ""}`, invoiceNumberSeriesListResponse, client);
144
+ },
145
+ });
146
+ }
147
+ export function getAllPaymentsQueryOptions(client, options = {}) {
148
+ const { enabled: _enabled = true, ...filters } = options;
149
+ return queryOptions({
150
+ queryKey: financeQueryKeys.allPaymentsList(filters),
151
+ queryFn: () => {
152
+ const params = new URLSearchParams();
153
+ if (filters.kind)
154
+ params.set("kind", filters.kind);
155
+ if (filters.status)
156
+ params.set("status", filters.status);
157
+ if (filters.paymentMethod)
158
+ params.set("paymentMethod", filters.paymentMethod);
159
+ if (filters.currency)
160
+ params.set("currency", filters.currency);
161
+ if (filters.invoiceId)
162
+ params.set("invoiceId", filters.invoiceId);
163
+ if (filters.bookingId)
164
+ params.set("bookingId", filters.bookingId);
165
+ if (filters.supplierId)
166
+ params.set("supplierId", filters.supplierId);
167
+ if (filters.paymentDateFrom)
168
+ params.set("paymentDateFrom", filters.paymentDateFrom);
169
+ if (filters.paymentDateTo)
170
+ params.set("paymentDateTo", filters.paymentDateTo);
171
+ if (filters.search)
172
+ params.set("search", filters.search);
173
+ if (filters.sortBy)
174
+ params.set("sortBy", filters.sortBy);
175
+ if (filters.sortDir)
176
+ params.set("sortDir", filters.sortDir);
177
+ if (filters.limit !== undefined)
178
+ params.set("limit", String(filters.limit));
179
+ if (filters.offset !== undefined)
180
+ params.set("offset", String(filters.offset));
181
+ const qs = params.toString();
182
+ return fetchWithValidation(`/v1/admin/finance/payments${qs ? `?${qs}` : ""}`, allPaymentsListResponse, client);
183
+ },
184
+ });
185
+ }
186
+ export function getPaymentSessionsQueryOptions(client, options = {}) {
187
+ const { enabled: _enabled = true, ...filters } = options;
188
+ return queryOptions({
189
+ queryKey: financeQueryKeys.paymentSessionsList(filters),
190
+ queryFn: () => {
191
+ const params = new URLSearchParams();
192
+ if (filters.bookingId)
193
+ params.set("bookingId", filters.bookingId);
194
+ const legacyOrderId = filters.legacyOrderId ?? filters.orderId;
195
+ if (legacyOrderId)
196
+ params.set("legacyOrderId", legacyOrderId);
197
+ if (filters.invoiceId)
198
+ params.set("invoiceId", filters.invoiceId);
199
+ if (filters.bookingPaymentScheduleId) {
200
+ params.set("bookingPaymentScheduleId", filters.bookingPaymentScheduleId);
201
+ }
202
+ if (filters.bookingGuaranteeId)
203
+ params.set("bookingGuaranteeId", filters.bookingGuaranteeId);
204
+ if (filters.status)
205
+ params.set("status", filters.status);
206
+ if (filters.provider)
207
+ params.set("provider", filters.provider);
208
+ if (filters.limit !== undefined)
209
+ params.set("limit", String(filters.limit));
210
+ if (filters.offset !== undefined)
211
+ params.set("offset", String(filters.offset));
212
+ const qs = params.toString();
213
+ return fetchWithValidation(`/v1/admin/finance/payment-sessions${qs ? `?${qs}` : ""}`, paymentSessionListResponse, client);
214
+ },
215
+ });
216
+ }
217
+ export function getPaymentQueryOptions(client, id, options = {}) {
218
+ const { enabled: _enabled = true } = options;
219
+ return queryOptions({
220
+ queryKey: financeQueryKeys.payment(id ?? ""),
221
+ queryFn: async () => {
222
+ if (!id)
223
+ throw new Error("getPaymentQueryOptions requires an id");
224
+ return fetchWithValidation(`/v1/admin/finance/payments/${id}`, paymentSingleResponse, client);
225
+ },
226
+ });
227
+ }
228
+ export function getSupplierPaymentsQueryOptions(client, options = {}) {
229
+ const { enabled: _enabled = true, ...filters } = options;
230
+ return queryOptions({
231
+ queryKey: financeQueryKeys.supplierPaymentsList(filters),
232
+ queryFn: () => {
233
+ const params = new URLSearchParams();
234
+ if (filters.bookingId)
235
+ params.set("bookingId", filters.bookingId);
236
+ if (filters.supplierId)
237
+ params.set("supplierId", filters.supplierId);
238
+ if (filters.status)
239
+ params.set("status", filters.status);
240
+ if (filters.paymentMethod)
241
+ params.set("paymentMethod", filters.paymentMethod);
242
+ if (filters.currency)
243
+ params.set("currency", filters.currency);
244
+ if (filters.paymentDateFrom)
245
+ params.set("paymentDateFrom", filters.paymentDateFrom);
246
+ if (filters.paymentDateTo)
247
+ params.set("paymentDateTo", filters.paymentDateTo);
248
+ if (filters.sortBy)
249
+ params.set("sortBy", filters.sortBy);
250
+ if (filters.sortDir)
251
+ params.set("sortDir", filters.sortDir);
252
+ if (filters.limit !== undefined)
253
+ params.set("limit", String(filters.limit));
254
+ if (filters.offset !== undefined)
255
+ params.set("offset", String(filters.offset));
256
+ const qs = params.toString();
257
+ return fetchWithValidation(`/v1/admin/finance/supplier-payments${qs ? `?${qs}` : ""}`, supplierPaymentListResponse, client);
258
+ },
259
+ });
260
+ }
261
+ export function getInvoiceQueryOptions(client, id, options = {}) {
262
+ const { enabled: _enabled = true } = options;
263
+ return queryOptions({
264
+ queryKey: financeQueryKeys.invoice(id ?? ""),
265
+ queryFn: async () => {
266
+ if (!id)
267
+ throw new Error("getInvoiceQueryOptions requires an id");
268
+ return fetchWithValidation(`/v1/admin/finance/invoices/${id}`, invoiceSingleResponse, client);
269
+ },
270
+ });
271
+ }
272
+ export function getInvoiceLineItemsQueryOptions(client, invoiceId, options = {}) {
273
+ const { enabled: _enabled = true } = options;
274
+ return queryOptions({
275
+ queryKey: financeQueryKeys.lineItems(invoiceId ?? ""),
276
+ queryFn: async () => {
277
+ if (!invoiceId)
278
+ throw new Error("getInvoiceLineItemsQueryOptions requires an invoiceId");
279
+ return fetchWithValidation(`/v1/admin/finance/invoices/${invoiceId}/line-items`, invoiceLineItemsResponse, client);
280
+ },
281
+ });
282
+ }
283
+ export function getInvoicePaymentsQueryOptions(client, invoiceId, options = {}) {
284
+ const { enabled: _enabled = true } = options;
285
+ return queryOptions({
286
+ queryKey: financeQueryKeys.payments(invoiceId ?? ""),
287
+ queryFn: async () => {
288
+ if (!invoiceId)
289
+ throw new Error("getInvoicePaymentsQueryOptions requires an invoiceId");
290
+ return fetchWithValidation(`/v1/admin/finance/invoices/${invoiceId}/payments`, invoicePaymentsResponse, client);
291
+ },
292
+ });
293
+ }
294
+ export function getInvoiceCreditNotesQueryOptions(client, invoiceId, options = {}) {
295
+ const { enabled: _enabled = true } = options;
296
+ return queryOptions({
297
+ queryKey: financeQueryKeys.creditNotes(invoiceId ?? ""),
298
+ queryFn: async () => {
299
+ if (!invoiceId)
300
+ throw new Error("getInvoiceCreditNotesQueryOptions requires an invoiceId");
301
+ return fetchWithValidation(`/v1/admin/finance/invoices/${invoiceId}/credit-notes`, invoiceCreditNotesResponse, client);
302
+ },
303
+ });
304
+ }
305
+ export function getInvoiceNotesQueryOptions(client, invoiceId, options = {}) {
306
+ const { enabled: _enabled = true } = options;
307
+ return queryOptions({
308
+ queryKey: financeQueryKeys.notes(invoiceId ?? ""),
309
+ queryFn: async () => {
310
+ if (!invoiceId)
311
+ throw new Error("getInvoiceNotesQueryOptions requires an invoiceId");
312
+ return fetchWithValidation(`/v1/admin/finance/invoices/${invoiceId}/notes`, invoiceNotesResponse, client);
313
+ },
314
+ });
315
+ }
316
+ export function getInvoiceAttachmentsQueryOptions(client, invoiceId, options = {}) {
317
+ const { enabled: _enabled = true } = options;
318
+ return queryOptions({
319
+ queryKey: financeQueryKeys.attachments(invoiceId ?? ""),
320
+ queryFn: async () => {
321
+ if (!invoiceId)
322
+ throw new Error("getInvoiceAttachmentsQueryOptions requires an invoiceId");
323
+ return fetchWithValidation(`/v1/admin/finance/invoices/${invoiceId}/attachments`, invoiceAttachmentsResponse, client);
324
+ },
325
+ });
326
+ }
327
+ export { getAccountantInvoicesQueryOptions, getAccountantSharesQueryOptions, getAccountantSummaryQueryOptions, getAdminBookingPaymentsQueryOptions, getCostCategoriesQueryOptions, getDepartureProfitabilityQueryOptions, getProductProfitabilityQueryOptions, getPublicBookingDocumentsQueryOptions, getPublicBookingPaymentOptionsQueryOptions, getPublicBookingPaymentsQueryOptions, getPublicFinanceDocumentByReferenceQueryOptions, getPublicPaymentSessionQueryOptions, getTravelerProfitabilityQueryOptions, getVoucherQueryOptions, getVouchersQueryOptions, } from "./query-options/public-reporting.js";
328
+ export { getInvoiceActionLedgerQueryOptions, getPaymentSessionActionLedgerQueryOptions, } from "./query-options-action-ledger.js";
@@ -0,0 +1,168 @@
1
+ import { z } from "zod";
2
+ export declare const accountantShareScopeSchema: z.ZodObject<{
3
+ from: z.ZodNullable<z.ZodString>;
4
+ to: z.ZodNullable<z.ZodString>;
5
+ baseCurrency: z.ZodNullable<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export declare const accountantShareRecordSchema: z.ZodObject<{
8
+ from: z.ZodNullable<z.ZodString>;
9
+ to: z.ZodNullable<z.ZodString>;
10
+ baseCurrency: z.ZodNullable<z.ZodString>;
11
+ id: z.ZodString;
12
+ createdAt: z.ZodString;
13
+ expiresAt: z.ZodString;
14
+ lastAccessedAt: z.ZodNullable<z.ZodString>;
15
+ accessCount: z.ZodNumber;
16
+ }, z.core.$strip>;
17
+ export type AccountantShareRecord = z.infer<typeof accountantShareRecordSchema>;
18
+ export declare const accountantShareCreatedSchema: z.ZodObject<{
19
+ from: z.ZodNullable<z.ZodString>;
20
+ to: z.ZodNullable<z.ZodString>;
21
+ baseCurrency: z.ZodNullable<z.ZodString>;
22
+ id: z.ZodString;
23
+ url: z.ZodString;
24
+ expiresAt: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export type AccountantShareCreated = z.infer<typeof accountantShareCreatedSchema>;
27
+ export declare const accountantInvoiceAttachmentSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ name: z.ZodString;
30
+ mimeType: z.ZodNullable<z.ZodString>;
31
+ fileSize: z.ZodNullable<z.ZodNumber>;
32
+ hasFile: z.ZodBoolean;
33
+ }, z.core.$strip>;
34
+ export declare const accountantInvoiceRecordSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ kind: z.ZodEnum<{
37
+ client: "client";
38
+ supplier: "supplier";
39
+ }>;
40
+ invoiceNumber: z.ZodString;
41
+ status: z.ZodString;
42
+ currency: z.ZodString;
43
+ totalCents: z.ZodNumber;
44
+ paidCents: z.ZodNumber;
45
+ balanceDueCents: z.ZodNumber;
46
+ issueDate: z.ZodString;
47
+ dueDate: z.ZodNullable<z.ZodString>;
48
+ attachments: z.ZodArray<z.ZodObject<{
49
+ id: z.ZodString;
50
+ name: z.ZodString;
51
+ mimeType: z.ZodNullable<z.ZodString>;
52
+ fileSize: z.ZodNullable<z.ZodNumber>;
53
+ hasFile: z.ZodBoolean;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ export type AccountantInvoiceRecord = z.infer<typeof accountantInvoiceRecordSchema>;
57
+ export declare const accountantSummarySchema: z.ZodObject<{
58
+ scope: z.ZodObject<{
59
+ from: z.ZodNullable<z.ZodString>;
60
+ to: z.ZodNullable<z.ZodString>;
61
+ baseCurrency: z.ZodNullable<z.ZodString>;
62
+ }, z.core.$strip>;
63
+ departures: z.ZodObject<{
64
+ rows: z.ZodArray<z.ZodObject<{
65
+ departureId: z.ZodString;
66
+ departureLabel: z.ZodNullable<z.ZodString>;
67
+ productId: z.ZodNullable<z.ZodString>;
68
+ productName: z.ZodNullable<z.ZodString>;
69
+ departureDate: z.ZodNullable<z.ZodString>;
70
+ currency: z.ZodString;
71
+ revenueCents: z.ZodNumber;
72
+ actualCostCents: z.ZodNumber;
73
+ plannedCostCents: z.ZodNumber;
74
+ profitCents: z.ZodNumber;
75
+ marginPercent: z.ZodNullable<z.ZodNumber>;
76
+ varianceCents: z.ZodNumber;
77
+ }, z.core.$strip>>;
78
+ costByServiceType: z.ZodArray<z.ZodObject<{
79
+ serviceType: z.ZodString;
80
+ currency: z.ZodString;
81
+ amountCents: z.ZodNumber;
82
+ }, z.core.$strip>>;
83
+ unattributed: z.ZodArray<z.ZodObject<{
84
+ currency: z.ZodString;
85
+ amountCents: z.ZodNumber;
86
+ }, z.core.$strip>>;
87
+ base: z.ZodOptional<z.ZodObject<{
88
+ currency: z.ZodString;
89
+ rows: z.ZodArray<z.ZodObject<{
90
+ departureId: z.ZodString;
91
+ departureLabel: z.ZodNullable<z.ZodString>;
92
+ productId: z.ZodNullable<z.ZodString>;
93
+ productName: z.ZodNullable<z.ZodString>;
94
+ departureDate: z.ZodNullable<z.ZodString>;
95
+ currency: z.ZodString;
96
+ revenueCents: z.ZodNumber;
97
+ actualCostCents: z.ZodNumber;
98
+ plannedCostCents: z.ZodNumber;
99
+ profitCents: z.ZodNumber;
100
+ marginPercent: z.ZodNullable<z.ZodNumber>;
101
+ varianceCents: z.ZodNumber;
102
+ }, z.core.$strip>>;
103
+ costByServiceType: z.ZodArray<z.ZodObject<{
104
+ serviceType: z.ZodString;
105
+ currency: z.ZodString;
106
+ amountCents: z.ZodNumber;
107
+ }, z.core.$strip>>;
108
+ unattributedCents: z.ZodNumber;
109
+ unconvertibleCurrencies: z.ZodArray<z.ZodString>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>;
112
+ products: z.ZodObject<{
113
+ rows: z.ZodArray<z.ZodObject<{
114
+ productId: z.ZodString;
115
+ productName: z.ZodNullable<z.ZodString>;
116
+ currency: z.ZodString;
117
+ departureCount: z.ZodNumber;
118
+ revenueCents: z.ZodNumber;
119
+ actualCostCents: z.ZodNumber;
120
+ plannedCostCents: z.ZodNumber;
121
+ profitCents: z.ZodNumber;
122
+ marginPercent: z.ZodNullable<z.ZodNumber>;
123
+ varianceCents: z.ZodNumber;
124
+ }, z.core.$strip>>;
125
+ costByServiceType: z.ZodArray<z.ZodObject<{
126
+ serviceType: z.ZodString;
127
+ currency: z.ZodString;
128
+ amountCents: z.ZodNumber;
129
+ }, z.core.$strip>>;
130
+ unattributed: z.ZodArray<z.ZodObject<{
131
+ currency: z.ZodString;
132
+ amountCents: z.ZodNumber;
133
+ }, z.core.$strip>>;
134
+ base: z.ZodOptional<z.ZodObject<{
135
+ currency: z.ZodString;
136
+ rows: z.ZodArray<z.ZodObject<{
137
+ productId: z.ZodString;
138
+ productName: z.ZodNullable<z.ZodString>;
139
+ currency: z.ZodString;
140
+ departureCount: z.ZodNumber;
141
+ revenueCents: z.ZodNumber;
142
+ actualCostCents: z.ZodNumber;
143
+ plannedCostCents: z.ZodNumber;
144
+ profitCents: z.ZodNumber;
145
+ marginPercent: z.ZodNullable<z.ZodNumber>;
146
+ varianceCents: z.ZodNumber;
147
+ }, z.core.$strip>>;
148
+ costByServiceType: z.ZodArray<z.ZodObject<{
149
+ serviceType: z.ZodString;
150
+ currency: z.ZodString;
151
+ amountCents: z.ZodNumber;
152
+ }, z.core.$strip>>;
153
+ unattributedCents: z.ZodNumber;
154
+ unconvertibleCurrencies: z.ZodArray<z.ZodString>;
155
+ }, z.core.$strip>>;
156
+ }, z.core.$strip>;
157
+ }, z.core.$strip>;
158
+ export type AccountantSummary = z.infer<typeof accountantSummarySchema>;
159
+ export declare const costCategoryRecordSchema: z.ZodObject<{
160
+ id: z.ZodString;
161
+ name: z.ZodString;
162
+ sortOrder: z.ZodNumber;
163
+ archived: z.ZodBoolean;
164
+ createdAt: z.ZodString;
165
+ updatedAt: z.ZodString;
166
+ }, z.core.$strip>;
167
+ export type CostCategoryRecord = z.infer<typeof costCategoryRecordSchema>;
168
+ //# sourceMappingURL=accountant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountant.d.ts","sourceRoot":"","sources":["../../src/schemas/accountant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;iBAMtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E,eAAO,MAAM,4BAA4B;;;;;;;iBAIvC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEjF,eAAO,MAAM,iCAAiC;;;;;;iBAM5C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;iBAYxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAIvE,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
@@ -0,0 +1,53 @@
1
+ import { z } from "zod";
2
+ import { departureProfitabilityReportSchema, productProfitabilityReportSchema, } from "./profitability.js";
3
+ export const accountantShareScopeSchema = z.object({
4
+ from: z.string().nullable(),
5
+ to: z.string().nullable(),
6
+ baseCurrency: z.string().nullable(),
7
+ });
8
+ export const accountantShareRecordSchema = accountantShareScopeSchema.extend({
9
+ id: z.string(),
10
+ createdAt: z.string(),
11
+ expiresAt: z.string(),
12
+ lastAccessedAt: z.string().nullable(),
13
+ accessCount: z.number().int(),
14
+ });
15
+ export const accountantShareCreatedSchema = accountantShareScopeSchema.extend({
16
+ id: z.string(),
17
+ url: z.string(),
18
+ expiresAt: z.string(),
19
+ });
20
+ export const accountantInvoiceAttachmentSchema = z.object({
21
+ id: z.string(),
22
+ name: z.string(),
23
+ mimeType: z.string().nullable(),
24
+ fileSize: z.number().int().nullable(),
25
+ hasFile: z.boolean(),
26
+ });
27
+ export const accountantInvoiceRecordSchema = z.object({
28
+ id: z.string(),
29
+ kind: z.enum(["client", "supplier"]),
30
+ invoiceNumber: z.string(),
31
+ status: z.string(),
32
+ currency: z.string(),
33
+ totalCents: z.number().int(),
34
+ paidCents: z.number().int(),
35
+ balanceDueCents: z.number().int(),
36
+ issueDate: z.string(),
37
+ dueDate: z.string().nullable(),
38
+ attachments: z.array(accountantInvoiceAttachmentSchema),
39
+ });
40
+ export const accountantSummarySchema = z.object({
41
+ scope: accountantShareScopeSchema,
42
+ departures: departureProfitabilityReportSchema,
43
+ products: productProfitabilityReportSchema,
44
+ });
45
+ // ---------- cost categories ----------
46
+ export const costCategoryRecordSchema = z.object({
47
+ id: z.string(),
48
+ name: z.string(),
49
+ sortOrder: z.number().int(),
50
+ archived: z.boolean(),
51
+ createdAt: z.string(),
52
+ updatedAt: z.string(),
53
+ });