@voyant-travel/finance 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 (294) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +192 -0
  3. package/dist/action-ledger-drift.d.ts +29 -0
  4. package/dist/action-ledger-drift.d.ts.map +1 -0
  5. package/dist/action-ledger-drift.js +166 -0
  6. package/dist/booking-tax.d.ts +124 -0
  7. package/dist/booking-tax.d.ts.map +1 -0
  8. package/dist/booking-tax.js +264 -0
  9. package/dist/checkout-routes.d.ts +1154 -0
  10. package/dist/checkout-routes.d.ts.map +1 -0
  11. package/dist/checkout-routes.js +116 -0
  12. package/dist/checkout-service-plan.d.ts +137 -0
  13. package/dist/checkout-service-plan.d.ts.map +1 -0
  14. package/dist/checkout-service-plan.js +119 -0
  15. package/dist/checkout-service.d.ts +9 -0
  16. package/dist/checkout-service.d.ts.map +1 -0
  17. package/dist/checkout-service.js +324 -0
  18. package/dist/checkout-validation.d.ts +1682 -0
  19. package/dist/checkout-validation.d.ts.map +1 -0
  20. package/dist/checkout-validation.js +228 -0
  21. package/dist/document-download.d.ts +3 -0
  22. package/dist/document-download.d.ts.map +1 -0
  23. package/dist/document-download.js +1 -0
  24. package/dist/fx-money.d.ts +17 -0
  25. package/dist/fx-money.d.ts.map +1 -0
  26. package/dist/fx-money.js +194 -0
  27. package/dist/index.d.ts +65 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +108 -0
  30. package/dist/invoice-fx.d.ts +134 -0
  31. package/dist/invoice-fx.d.ts.map +1 -0
  32. package/dist/invoice-fx.js +240 -0
  33. package/dist/invoice-number-errors.d.ts +2 -0
  34. package/dist/invoice-number-errors.d.ts.map +1 -0
  35. package/dist/invoice-number-errors.js +58 -0
  36. package/dist/markets-ref.d.ts +149 -0
  37. package/dist/markets-ref.d.ts.map +1 -0
  38. package/dist/markets-ref.js +17 -0
  39. package/dist/payment-link.d.ts +23 -0
  40. package/dist/payment-link.d.ts.map +1 -0
  41. package/dist/payment-link.js +30 -0
  42. package/dist/payment-policy.d.ts +113 -0
  43. package/dist/payment-policy.d.ts.map +1 -0
  44. package/dist/payment-policy.js +193 -0
  45. package/dist/route-runtime.d.ts +22 -0
  46. package/dist/route-runtime.d.ts.map +1 -0
  47. package/dist/route-runtime.js +18 -0
  48. package/dist/routes-action-ledger.d.ts +181 -0
  49. package/dist/routes-action-ledger.d.ts.map +1 -0
  50. package/dist/routes-action-ledger.js +142 -0
  51. package/dist/routes-booking-billing.d.ts +852 -0
  52. package/dist/routes-booking-billing.d.ts.map +1 -0
  53. package/dist/routes-booking-billing.js +223 -0
  54. package/dist/routes-booking-create.d.ts +3 -0
  55. package/dist/routes-booking-create.d.ts.map +1 -0
  56. package/dist/routes-booking-create.js +194 -0
  57. package/dist/routes-booking-reads.d.ts +46 -0
  58. package/dist/routes-booking-reads.d.ts.map +1 -0
  59. package/dist/routes-booking-reads.js +20 -0
  60. package/dist/routes-documents.d.ts +195 -0
  61. package/dist/routes-documents.d.ts.map +1 -0
  62. package/dist/routes-documents.js +93 -0
  63. package/dist/routes-invoice-core.d.ts +794 -0
  64. package/dist/routes-invoice-core.d.ts.map +1 -0
  65. package/dist/routes-invoice-core.js +238 -0
  66. package/dist/routes-invoice-documents.d.ts +401 -0
  67. package/dist/routes-invoice-documents.d.ts.map +1 -0
  68. package/dist/routes-invoice-documents.js +91 -0
  69. package/dist/routes-invoice-issue.d.ts +384 -0
  70. package/dist/routes-invoice-issue.d.ts.map +1 -0
  71. package/dist/routes-invoice-issue.js +208 -0
  72. package/dist/routes-payment-processing.d.ts +1193 -0
  73. package/dist/routes-payment-processing.d.ts.map +1 -0
  74. package/dist/routes-payment-processing.js +238 -0
  75. package/dist/routes-payments.d.ts +309 -0
  76. package/dist/routes-payments.d.ts.map +1 -0
  77. package/dist/routes-payments.js +94 -0
  78. package/dist/routes-public.d.ts +1948 -0
  79. package/dist/routes-public.d.ts.map +1 -0
  80. package/dist/routes-public.js +275 -0
  81. package/dist/routes-reference-data.d.ts +977 -0
  82. package/dist/routes-reference-data.d.ts.map +1 -0
  83. package/dist/routes-reference-data.js +191 -0
  84. package/dist/routes-reports.d.ts +344 -0
  85. package/dist/routes-reports.d.ts.map +1 -0
  86. package/dist/routes-reports.js +93 -0
  87. package/dist/routes-runtime.d.ts +71 -0
  88. package/dist/routes-runtime.d.ts.map +1 -0
  89. package/dist/routes-runtime.js +59 -0
  90. package/dist/routes-settlement.d.ts +67 -0
  91. package/dist/routes-settlement.d.ts.map +1 -0
  92. package/dist/routes-settlement.js +23 -0
  93. package/dist/routes-shared.d.ts +35 -0
  94. package/dist/routes-shared.d.ts.map +1 -0
  95. package/dist/routes-shared.js +10 -0
  96. package/dist/routes-supplier-invoices.d.ts +778 -0
  97. package/dist/routes-supplier-invoices.d.ts.map +1 -0
  98. package/dist/routes-supplier-invoices.js +159 -0
  99. package/dist/routes-vouchers.d.ts +228 -0
  100. package/dist/routes-vouchers.d.ts.map +1 -0
  101. package/dist/routes-vouchers.js +54 -0
  102. package/dist/routes.d.ts +5577 -0
  103. package/dist/routes.d.ts.map +1 -0
  104. package/dist/routes.js +44 -0
  105. package/dist/schema/booking-billing.d.ts +1006 -0
  106. package/dist/schema/booking-billing.d.ts.map +1 -0
  107. package/dist/schema/booking-billing.js +106 -0
  108. package/dist/schema/enums.d.ts +48 -0
  109. package/dist/schema/enums.d.ts.map +1 -0
  110. package/dist/schema/enums.js +237 -0
  111. package/dist/schema/invoice-documents.d.ts +1245 -0
  112. package/dist/schema/invoice-documents.d.ts.map +1 -0
  113. package/dist/schema/invoice-documents.js +140 -0
  114. package/dist/schema/payment-instruments.d.ts +418 -0
  115. package/dist/schema/payment-instruments.d.ts.map +1 -0
  116. package/dist/schema/payment-instruments.js +45 -0
  117. package/dist/schema/payment-processing.d.ts +563 -0
  118. package/dist/schema/payment-processing.d.ts.map +1 -0
  119. package/dist/schema/payment-processing.js +65 -0
  120. package/dist/schema/payment-sessions.d.ts +728 -0
  121. package/dist/schema/payment-sessions.d.ts.map +1 -0
  122. package/dist/schema/payment-sessions.js +79 -0
  123. package/dist/schema/receivables.d.ts +1474 -0
  124. package/dist/schema/receivables.d.ts.map +1 -0
  125. package/dist/schema/receivables.js +179 -0
  126. package/dist/schema/relations.d.ts +82 -0
  127. package/dist/schema/relations.d.ts.map +1 -0
  128. package/dist/schema/relations.js +144 -0
  129. package/dist/schema/supplier-invoices.d.ts +1619 -0
  130. package/dist/schema/supplier-invoices.d.ts.map +1 -0
  131. package/dist/schema/supplier-invoices.js +228 -0
  132. package/dist/schema/tax.d.ts +712 -0
  133. package/dist/schema/tax.d.ts.map +1 -0
  134. package/dist/schema/tax.js +98 -0
  135. package/dist/schema/vouchers.d.ts +444 -0
  136. package/dist/schema/vouchers.d.ts.map +1 -0
  137. package/dist/schema/vouchers.js +64 -0
  138. package/dist/schema.d.ts +12 -0
  139. package/dist/schema.d.ts.map +1 -0
  140. package/dist/schema.js +11 -0
  141. package/dist/service-accountant-shares.d.ts +106 -0
  142. package/dist/service-accountant-shares.d.ts.map +1 -0
  143. package/dist/service-accountant-shares.js +331 -0
  144. package/dist/service-action-ledger-accounting.d.ts +104 -0
  145. package/dist/service-action-ledger-accounting.d.ts.map +1 -0
  146. package/dist/service-action-ledger-accounting.js +386 -0
  147. package/dist/service-action-ledger-booking-payments.d.ts +48 -0
  148. package/dist/service-action-ledger-booking-payments.d.ts.map +1 -0
  149. package/dist/service-action-ledger-booking-payments.js +178 -0
  150. package/dist/service-action-ledger-bookings.d.ts +44 -0
  151. package/dist/service-action-ledger-bookings.d.ts.map +1 -0
  152. package/dist/service-action-ledger-bookings.js +81 -0
  153. package/dist/service-action-ledger-payment-authorizations.d.ts +48 -0
  154. package/dist/service-action-ledger-payment-authorizations.d.ts.map +1 -0
  155. package/dist/service-action-ledger-payment-authorizations.js +209 -0
  156. package/dist/service-action-ledger-payment-sessions.d.ts +83 -0
  157. package/dist/service-action-ledger-payment-sessions.d.ts.map +1 -0
  158. package/dist/service-action-ledger-payment-sessions.js +294 -0
  159. package/dist/service-action-ledger-supplier-invoices.d.ts +27 -0
  160. package/dist/service-action-ledger-supplier-invoices.d.ts.map +1 -0
  161. package/dist/service-action-ledger-supplier-invoices.js +111 -0
  162. package/dist/service-action-ledger-supplier-payments.d.ts +21 -0
  163. package/dist/service-action-ledger-supplier-payments.d.ts.map +1 -0
  164. package/dist/service-action-ledger-supplier-payments.js +97 -0
  165. package/dist/service-action-ledger.d.ts +7 -0
  166. package/dist/service-action-ledger.d.ts.map +1 -0
  167. package/dist/service-action-ledger.js +6 -0
  168. package/dist/service-aggregates.d.ts +96 -0
  169. package/dist/service-aggregates.d.ts.map +1 -0
  170. package/dist/service-aggregates.js +294 -0
  171. package/dist/service-booking-billing.d.ts +2322 -0
  172. package/dist/service-booking-billing.d.ts.map +1 -0
  173. package/dist/service-booking-billing.js +8 -0
  174. package/dist/service-booking-create.d.ts +410 -0
  175. package/dist/service-booking-create.d.ts.map +1 -0
  176. package/dist/service-booking-create.js +1256 -0
  177. package/dist/service-booking-guarantees.d.ts +725 -0
  178. package/dist/service-booking-guarantees.d.ts.map +1 -0
  179. package/dist/service-booking-guarantees.js +153 -0
  180. package/dist/service-booking-item-billing.d.ts +1062 -0
  181. package/dist/service-booking-item-billing.d.ts.map +1 -0
  182. package/dist/service-booking-item-billing.js +77 -0
  183. package/dist/service-booking-payment-schedules.d.ts +557 -0
  184. package/dist/service-booking-payment-schedules.d.ts.map +1 -0
  185. package/dist/service-booking-payment-schedules.js +372 -0
  186. package/dist/service-bookings-dual-create.d.ts +308 -0
  187. package/dist/service-bookings-dual-create.d.ts.map +1 -0
  188. package/dist/service-bookings-dual-create.js +131 -0
  189. package/dist/service-boundary-sql.d.ts +6 -0
  190. package/dist/service-boundary-sql.d.ts.map +1 -0
  191. package/dist/service-boundary-sql.js +15 -0
  192. package/dist/service-cost-categories.d.ts +26 -0
  193. package/dist/service-cost-categories.d.ts.map +1 -0
  194. package/dist/service-cost-categories.js +76 -0
  195. package/dist/service-documents.d.ts +80 -0
  196. package/dist/service-documents.d.ts.map +1 -0
  197. package/dist/service-documents.js +228 -0
  198. package/dist/service-invoice-artifacts.d.ts +246 -0
  199. package/dist/service-invoice-artifacts.d.ts.map +1 -0
  200. package/dist/service-invoice-artifacts.js +277 -0
  201. package/dist/service-invoice-core.d.ts +405 -0
  202. package/dist/service-invoice-core.d.ts.map +1 -0
  203. package/dist/service-invoice-core.js +290 -0
  204. package/dist/service-invoice-credit-notes.d.ts +973 -0
  205. package/dist/service-invoice-credit-notes.d.ts.map +1 -0
  206. package/dist/service-invoice-credit-notes.js +142 -0
  207. package/dist/service-invoice-from-booking.d.ts +41 -0
  208. package/dist/service-invoice-from-booking.d.ts.map +1 -0
  209. package/dist/service-invoice-from-booking.js +267 -0
  210. package/dist/service-invoice-line-items.d.ts +432 -0
  211. package/dist/service-invoice-line-items.d.ts.map +1 -0
  212. package/dist/service-invoice-line-items.js +102 -0
  213. package/dist/service-invoice-numbering.d.ts +227 -0
  214. package/dist/service-invoice-numbering.d.ts.map +1 -0
  215. package/dist/service-invoice-numbering.js +260 -0
  216. package/dist/service-invoice-payments.d.ts +673 -0
  217. package/dist/service-invoice-payments.d.ts.map +1 -0
  218. package/dist/service-invoice-payments.js +398 -0
  219. package/dist/service-invoices.d.ts +2501 -0
  220. package/dist/service-invoices.d.ts.map +1 -0
  221. package/dist/service-invoices.js +12 -0
  222. package/dist/service-issue.d.ts +207 -0
  223. package/dist/service-issue.d.ts.map +1 -0
  224. package/dist/service-issue.js +431 -0
  225. package/dist/service-payment-authorizations.d.ts +164 -0
  226. package/dist/service-payment-authorizations.d.ts.map +1 -0
  227. package/dist/service-payment-authorizations.js +227 -0
  228. package/dist/service-payment-instruments.d.ts +116 -0
  229. package/dist/service-payment-instruments.d.ts.map +1 -0
  230. package/dist/service-payment-instruments.js +99 -0
  231. package/dist/service-payment-processing.d.ts +676 -0
  232. package/dist/service-payment-processing.d.ts.map +1 -0
  233. package/dist/service-payment-processing.js +10 -0
  234. package/dist/service-payment-session-completion.d.ts +48 -0
  235. package/dist/service-payment-session-completion.d.ts.map +1 -0
  236. package/dist/service-payment-session-completion.js +238 -0
  237. package/dist/service-payment-sessions.d.ts +361 -0
  238. package/dist/service-payment-sessions.d.ts.map +1 -0
  239. package/dist/service-payment-sessions.js +280 -0
  240. package/dist/service-profitability.d.ts +114 -0
  241. package/dist/service-profitability.d.ts.map +1 -0
  242. package/dist/service-profitability.js +794 -0
  243. package/dist/service-public.d.ts +553 -0
  244. package/dist/service-public.d.ts.map +1 -0
  245. package/dist/service-public.js +583 -0
  246. package/dist/service-reference-data.d.ts +272 -0
  247. package/dist/service-reference-data.d.ts.map +1 -0
  248. package/dist/service-reference-data.js +280 -0
  249. package/dist/service-rendition-wait.d.ts +38 -0
  250. package/dist/service-rendition-wait.d.ts.map +1 -0
  251. package/dist/service-rendition-wait.js +67 -0
  252. package/dist/service-reports.d.ts +37 -0
  253. package/dist/service-reports.d.ts.map +1 -0
  254. package/dist/service-reports.js +62 -0
  255. package/dist/service-settlement.d.ts +46 -0
  256. package/dist/service-settlement.d.ts.map +1 -0
  257. package/dist/service-settlement.js +185 -0
  258. package/dist/service-shared.d.ts +541 -0
  259. package/dist/service-shared.d.ts.map +1 -0
  260. package/dist/service-shared.js +764 -0
  261. package/dist/service-supplier-invoices.d.ts +871 -0
  262. package/dist/service-supplier-invoices.d.ts.map +1 -0
  263. package/dist/service-supplier-invoices.js +744 -0
  264. package/dist/service-supplier-payments.d.ts +69 -0
  265. package/dist/service-supplier-payments.d.ts.map +1 -0
  266. package/dist/service-supplier-payments.js +136 -0
  267. package/dist/service-vouchers-migration.d.ts +44 -0
  268. package/dist/service-vouchers-migration.d.ts.map +1 -0
  269. package/dist/service-vouchers-migration.js +148 -0
  270. package/dist/service-vouchers.d.ts +157 -0
  271. package/dist/service-vouchers.d.ts.map +1 -0
  272. package/dist/service-vouchers.js +191 -0
  273. package/dist/service.d.ts +6490 -0
  274. package/dist/service.d.ts.map +1 -0
  275. package/dist/service.js +29 -0
  276. package/dist/validation-billing.d.ts +2 -0
  277. package/dist/validation-billing.d.ts.map +1 -0
  278. package/dist/validation-billing.js +1 -0
  279. package/dist/validation-payments.d.ts +2 -0
  280. package/dist/validation-payments.d.ts.map +1 -0
  281. package/dist/validation-payments.js +1 -0
  282. package/dist/validation-public.d.ts +2 -0
  283. package/dist/validation-public.d.ts.map +1 -0
  284. package/dist/validation-public.js +1 -0
  285. package/dist/validation-shared.d.ts +2 -0
  286. package/dist/validation-shared.d.ts.map +1 -0
  287. package/dist/validation-shared.js +1 -0
  288. package/dist/validation-vouchers.d.ts +2 -0
  289. package/dist/validation-vouchers.d.ts.map +1 -0
  290. package/dist/validation-vouchers.js +1 -0
  291. package/dist/validation.d.ts +2 -0
  292. package/dist/validation.d.ts.map +1 -0
  293. package/dist/validation.js +1 -0
  294. package/package.json +121 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-item-billing.d.ts","sourceRoot":"","sources":["../src/service-booking-item-billing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,kBAAkB,EAClB,gCAAgC,EAChC,6BAA6B,EAC9B,MAAM,qBAAqB,CAAA;AAU5B,eAAO,MAAM,gCAAgC;gCACf,kBAAkB,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAS/D,kBAAkB,iBACP,MAAM,QACf,6BAA6B;;;;;;;;;;;;;;;;iCAqB/B,kBAAkB,aACX,MAAM,QACX,6BAA6B;;;;;;;;;;;;;;;;iCAWF,kBAAkB,aAAa,MAAM;;;mCASzC,kBAAkB,iBAAiB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCASlE,kBAAkB,iBACP,MAAM,QACf,gCAAgC;;;;;;;;;;;;;;;;oCAqBlC,kBAAkB,gBACR,MAAM,QACd,gCAAgC;;;;;;;;;;;;;;;;oCAWF,kBAAkB,gBAAgB,MAAM;;;CAQ/E,CAAA"}
@@ -0,0 +1,77 @@
1
+ import { asc, bookingItemCommissions, bookingItems, bookingItemTaxLines, desc, eq, } from "./service-shared.js";
2
+ export const financeBookingItemBillingService = {
3
+ listBookingItemTaxLines(db, bookingItemId) {
4
+ return db
5
+ .select()
6
+ .from(bookingItemTaxLines)
7
+ .where(eq(bookingItemTaxLines.bookingItemId, bookingItemId))
8
+ .orderBy(asc(bookingItemTaxLines.sortOrder), asc(bookingItemTaxLines.createdAt));
9
+ },
10
+ async createBookingItemTaxLine(db, bookingItemId, data) {
11
+ const [bookingItem] = await db
12
+ .select({ id: bookingItems.id })
13
+ .from(bookingItems)
14
+ .where(eq(bookingItems.id, bookingItemId))
15
+ .limit(1);
16
+ if (!bookingItem) {
17
+ return null;
18
+ }
19
+ const [row] = await db
20
+ .insert(bookingItemTaxLines)
21
+ .values({ ...data, bookingItemId })
22
+ .returning();
23
+ return row ?? null;
24
+ },
25
+ async updateBookingItemTaxLine(db, taxLineId, data) {
26
+ const [row] = await db
27
+ .update(bookingItemTaxLines)
28
+ .set({ ...data, updatedAt: new Date() })
29
+ .where(eq(bookingItemTaxLines.id, taxLineId))
30
+ .returning();
31
+ return row ?? null;
32
+ },
33
+ async deleteBookingItemTaxLine(db, taxLineId) {
34
+ const [row] = await db
35
+ .delete(bookingItemTaxLines)
36
+ .where(eq(bookingItemTaxLines.id, taxLineId))
37
+ .returning({ id: bookingItemTaxLines.id });
38
+ return row ?? null;
39
+ },
40
+ listBookingItemCommissions(db, bookingItemId) {
41
+ return db
42
+ .select()
43
+ .from(bookingItemCommissions)
44
+ .where(eq(bookingItemCommissions.bookingItemId, bookingItemId))
45
+ .orderBy(desc(bookingItemCommissions.createdAt));
46
+ },
47
+ async createBookingItemCommission(db, bookingItemId, data) {
48
+ const [bookingItem] = await db
49
+ .select({ id: bookingItems.id })
50
+ .from(bookingItems)
51
+ .where(eq(bookingItems.id, bookingItemId))
52
+ .limit(1);
53
+ if (!bookingItem) {
54
+ return null;
55
+ }
56
+ const [row] = await db
57
+ .insert(bookingItemCommissions)
58
+ .values({ ...data, bookingItemId })
59
+ .returning();
60
+ return row ?? null;
61
+ },
62
+ async updateBookingItemCommission(db, commissionId, data) {
63
+ const [row] = await db
64
+ .update(bookingItemCommissions)
65
+ .set({ ...data, updatedAt: new Date() })
66
+ .where(eq(bookingItemCommissions.id, commissionId))
67
+ .returning();
68
+ return row ?? null;
69
+ },
70
+ async deleteBookingItemCommission(db, commissionId) {
71
+ const [row] = await db
72
+ .delete(bookingItemCommissions)
73
+ .where(eq(bookingItemCommissions.id, commissionId))
74
+ .returning({ id: bookingItemCommissions.id });
75
+ return row ?? null;
76
+ },
77
+ };
@@ -0,0 +1,557 @@
1
+ import type { ApplyDefaultBookingPaymentPlanInput, CreateBookingPaymentScheduleInput, CreatePaymentSessionFromInvoiceInput, CreatePaymentSessionFromScheduleInput, FinanceServiceRuntime, PostgresJsDatabase, UpdateBookingPaymentScheduleInput } from "./service-shared.js";
2
+ export declare const financeBookingPaymentScheduleService: {
3
+ listBookingPaymentSchedules(db: PostgresJsDatabase, bookingId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_payment_schedules", {
4
+ id: import("drizzle-orm/pg-core").PgColumn<{
5
+ name: string;
6
+ tableName: "booking_payment_schedules";
7
+ dataType: "string";
8
+ columnType: "PgText";
9
+ data: string;
10
+ driverParam: string;
11
+ notNull: true;
12
+ hasDefault: true;
13
+ isPrimaryKey: true;
14
+ isAutoincrement: false;
15
+ hasRuntimeDefault: true;
16
+ enumValues: [string, ...string[]];
17
+ baseColumn: never;
18
+ identity: undefined;
19
+ generated: undefined;
20
+ }, {}, {}>;
21
+ bookingId: import("drizzle-orm/pg-core").PgColumn<{
22
+ name: "booking_id";
23
+ tableName: "booking_payment_schedules";
24
+ dataType: "string";
25
+ columnType: "PgText";
26
+ data: string;
27
+ driverParam: string;
28
+ notNull: true;
29
+ hasDefault: false;
30
+ isPrimaryKey: false;
31
+ isAutoincrement: false;
32
+ hasRuntimeDefault: false;
33
+ enumValues: [string, ...string[]];
34
+ baseColumn: never;
35
+ identity: undefined;
36
+ generated: undefined;
37
+ }, {}, {}>;
38
+ bookingItemId: import("drizzle-orm/pg-core").PgColumn<{
39
+ name: "booking_item_id";
40
+ tableName: "booking_payment_schedules";
41
+ dataType: "string";
42
+ columnType: "PgText";
43
+ data: string;
44
+ driverParam: string;
45
+ notNull: false;
46
+ hasDefault: false;
47
+ isPrimaryKey: false;
48
+ isAutoincrement: false;
49
+ hasRuntimeDefault: false;
50
+ enumValues: [string, ...string[]];
51
+ baseColumn: never;
52
+ identity: undefined;
53
+ generated: undefined;
54
+ }, {}, {}>;
55
+ scheduleType: import("drizzle-orm/pg-core").PgColumn<{
56
+ name: "schedule_type";
57
+ tableName: "booking_payment_schedules";
58
+ dataType: "string";
59
+ columnType: "PgEnumColumn";
60
+ data: "other" | "deposit" | "balance" | "installment" | "hold";
61
+ driverParam: string;
62
+ notNull: true;
63
+ hasDefault: true;
64
+ isPrimaryKey: false;
65
+ isAutoincrement: false;
66
+ hasRuntimeDefault: false;
67
+ enumValues: ["deposit", "installment", "balance", "hold", "other"];
68
+ baseColumn: never;
69
+ identity: undefined;
70
+ generated: undefined;
71
+ }, {}, {}>;
72
+ status: import("drizzle-orm/pg-core").PgColumn<{
73
+ name: "status";
74
+ tableName: "booking_payment_schedules";
75
+ dataType: "string";
76
+ columnType: "PgEnumColumn";
77
+ data: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
78
+ driverParam: string;
79
+ notNull: true;
80
+ hasDefault: true;
81
+ isPrimaryKey: false;
82
+ isAutoincrement: false;
83
+ hasRuntimeDefault: false;
84
+ enumValues: ["pending", "due", "paid", "waived", "cancelled", "expired"];
85
+ baseColumn: never;
86
+ identity: undefined;
87
+ generated: undefined;
88
+ }, {}, {}>;
89
+ dueDate: import("drizzle-orm/pg-core").PgColumn<{
90
+ name: "due_date";
91
+ tableName: "booking_payment_schedules";
92
+ dataType: "string";
93
+ columnType: "PgDateString";
94
+ data: string;
95
+ driverParam: string;
96
+ notNull: true;
97
+ hasDefault: false;
98
+ isPrimaryKey: false;
99
+ isAutoincrement: false;
100
+ hasRuntimeDefault: false;
101
+ enumValues: undefined;
102
+ baseColumn: never;
103
+ identity: undefined;
104
+ generated: undefined;
105
+ }, {}, {}>;
106
+ currency: import("drizzle-orm/pg-core").PgColumn<{
107
+ name: "currency";
108
+ tableName: "booking_payment_schedules";
109
+ dataType: "string";
110
+ columnType: "PgText";
111
+ data: string;
112
+ driverParam: string;
113
+ notNull: true;
114
+ hasDefault: false;
115
+ isPrimaryKey: false;
116
+ isAutoincrement: false;
117
+ hasRuntimeDefault: false;
118
+ enumValues: [string, ...string[]];
119
+ baseColumn: never;
120
+ identity: undefined;
121
+ generated: undefined;
122
+ }, {}, {}>;
123
+ amountCents: import("drizzle-orm/pg-core").PgColumn<{
124
+ name: "amount_cents";
125
+ tableName: "booking_payment_schedules";
126
+ dataType: "number";
127
+ columnType: "PgInteger";
128
+ data: number;
129
+ driverParam: string | number;
130
+ notNull: true;
131
+ hasDefault: false;
132
+ isPrimaryKey: false;
133
+ isAutoincrement: false;
134
+ hasRuntimeDefault: false;
135
+ enumValues: undefined;
136
+ baseColumn: never;
137
+ identity: undefined;
138
+ generated: undefined;
139
+ }, {}, {}>;
140
+ notes: import("drizzle-orm/pg-core").PgColumn<{
141
+ name: "notes";
142
+ tableName: "booking_payment_schedules";
143
+ dataType: "string";
144
+ columnType: "PgText";
145
+ data: string;
146
+ driverParam: string;
147
+ notNull: false;
148
+ hasDefault: false;
149
+ isPrimaryKey: false;
150
+ isAutoincrement: false;
151
+ hasRuntimeDefault: false;
152
+ enumValues: [string, ...string[]];
153
+ baseColumn: never;
154
+ identity: undefined;
155
+ generated: undefined;
156
+ }, {}, {}>;
157
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
158
+ name: "created_at";
159
+ tableName: "booking_payment_schedules";
160
+ dataType: "date";
161
+ columnType: "PgTimestamp";
162
+ data: Date;
163
+ driverParam: string;
164
+ notNull: true;
165
+ hasDefault: true;
166
+ isPrimaryKey: false;
167
+ isAutoincrement: false;
168
+ hasRuntimeDefault: false;
169
+ enumValues: undefined;
170
+ baseColumn: never;
171
+ identity: undefined;
172
+ generated: undefined;
173
+ }, {}, {}>;
174
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
175
+ name: "updated_at";
176
+ tableName: "booking_payment_schedules";
177
+ dataType: "date";
178
+ columnType: "PgTimestamp";
179
+ data: Date;
180
+ driverParam: string;
181
+ notNull: true;
182
+ hasDefault: true;
183
+ isPrimaryKey: false;
184
+ isAutoincrement: false;
185
+ hasRuntimeDefault: false;
186
+ enumValues: undefined;
187
+ baseColumn: never;
188
+ identity: undefined;
189
+ generated: undefined;
190
+ }, {}, {}>;
191
+ }, "single", Record<"booking_payment_schedules", "not-null">, false, "where" | "orderBy", {
192
+ id: string;
193
+ bookingId: string;
194
+ bookingItemId: string | null;
195
+ scheduleType: "other" | "deposit" | "balance" | "installment" | "hold";
196
+ status: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
197
+ dueDate: string;
198
+ currency: string;
199
+ amountCents: number;
200
+ notes: string | null;
201
+ createdAt: Date;
202
+ updatedAt: Date;
203
+ }[], {
204
+ id: import("drizzle-orm/pg-core").PgColumn<{
205
+ name: string;
206
+ tableName: "booking_payment_schedules";
207
+ dataType: "string";
208
+ columnType: "PgText";
209
+ data: string;
210
+ driverParam: string;
211
+ notNull: true;
212
+ hasDefault: true;
213
+ isPrimaryKey: true;
214
+ isAutoincrement: false;
215
+ hasRuntimeDefault: true;
216
+ enumValues: [string, ...string[]];
217
+ baseColumn: never;
218
+ identity: undefined;
219
+ generated: undefined;
220
+ }, {}, {}>;
221
+ bookingId: import("drizzle-orm/pg-core").PgColumn<{
222
+ name: "booking_id";
223
+ tableName: "booking_payment_schedules";
224
+ dataType: "string";
225
+ columnType: "PgText";
226
+ data: string;
227
+ driverParam: string;
228
+ notNull: true;
229
+ hasDefault: false;
230
+ isPrimaryKey: false;
231
+ isAutoincrement: false;
232
+ hasRuntimeDefault: false;
233
+ enumValues: [string, ...string[]];
234
+ baseColumn: never;
235
+ identity: undefined;
236
+ generated: undefined;
237
+ }, {}, {}>;
238
+ bookingItemId: import("drizzle-orm/pg-core").PgColumn<{
239
+ name: "booking_item_id";
240
+ tableName: "booking_payment_schedules";
241
+ dataType: "string";
242
+ columnType: "PgText";
243
+ data: string;
244
+ driverParam: string;
245
+ notNull: false;
246
+ hasDefault: false;
247
+ isPrimaryKey: false;
248
+ isAutoincrement: false;
249
+ hasRuntimeDefault: false;
250
+ enumValues: [string, ...string[]];
251
+ baseColumn: never;
252
+ identity: undefined;
253
+ generated: undefined;
254
+ }, {}, {}>;
255
+ scheduleType: import("drizzle-orm/pg-core").PgColumn<{
256
+ name: "schedule_type";
257
+ tableName: "booking_payment_schedules";
258
+ dataType: "string";
259
+ columnType: "PgEnumColumn";
260
+ data: "other" | "deposit" | "balance" | "installment" | "hold";
261
+ driverParam: string;
262
+ notNull: true;
263
+ hasDefault: true;
264
+ isPrimaryKey: false;
265
+ isAutoincrement: false;
266
+ hasRuntimeDefault: false;
267
+ enumValues: ["deposit", "installment", "balance", "hold", "other"];
268
+ baseColumn: never;
269
+ identity: undefined;
270
+ generated: undefined;
271
+ }, {}, {}>;
272
+ status: import("drizzle-orm/pg-core").PgColumn<{
273
+ name: "status";
274
+ tableName: "booking_payment_schedules";
275
+ dataType: "string";
276
+ columnType: "PgEnumColumn";
277
+ data: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
278
+ driverParam: string;
279
+ notNull: true;
280
+ hasDefault: true;
281
+ isPrimaryKey: false;
282
+ isAutoincrement: false;
283
+ hasRuntimeDefault: false;
284
+ enumValues: ["pending", "due", "paid", "waived", "cancelled", "expired"];
285
+ baseColumn: never;
286
+ identity: undefined;
287
+ generated: undefined;
288
+ }, {}, {}>;
289
+ dueDate: import("drizzle-orm/pg-core").PgColumn<{
290
+ name: "due_date";
291
+ tableName: "booking_payment_schedules";
292
+ dataType: "string";
293
+ columnType: "PgDateString";
294
+ data: string;
295
+ driverParam: string;
296
+ notNull: true;
297
+ hasDefault: false;
298
+ isPrimaryKey: false;
299
+ isAutoincrement: false;
300
+ hasRuntimeDefault: false;
301
+ enumValues: undefined;
302
+ baseColumn: never;
303
+ identity: undefined;
304
+ generated: undefined;
305
+ }, {}, {}>;
306
+ currency: import("drizzle-orm/pg-core").PgColumn<{
307
+ name: "currency";
308
+ tableName: "booking_payment_schedules";
309
+ dataType: "string";
310
+ columnType: "PgText";
311
+ data: string;
312
+ driverParam: string;
313
+ notNull: true;
314
+ hasDefault: false;
315
+ isPrimaryKey: false;
316
+ isAutoincrement: false;
317
+ hasRuntimeDefault: false;
318
+ enumValues: [string, ...string[]];
319
+ baseColumn: never;
320
+ identity: undefined;
321
+ generated: undefined;
322
+ }, {}, {}>;
323
+ amountCents: import("drizzle-orm/pg-core").PgColumn<{
324
+ name: "amount_cents";
325
+ tableName: "booking_payment_schedules";
326
+ dataType: "number";
327
+ columnType: "PgInteger";
328
+ data: number;
329
+ driverParam: string | number;
330
+ notNull: true;
331
+ hasDefault: false;
332
+ isPrimaryKey: false;
333
+ isAutoincrement: false;
334
+ hasRuntimeDefault: false;
335
+ enumValues: undefined;
336
+ baseColumn: never;
337
+ identity: undefined;
338
+ generated: undefined;
339
+ }, {}, {}>;
340
+ notes: import("drizzle-orm/pg-core").PgColumn<{
341
+ name: "notes";
342
+ tableName: "booking_payment_schedules";
343
+ dataType: "string";
344
+ columnType: "PgText";
345
+ data: string;
346
+ driverParam: string;
347
+ notNull: false;
348
+ hasDefault: false;
349
+ isPrimaryKey: false;
350
+ isAutoincrement: false;
351
+ hasRuntimeDefault: false;
352
+ enumValues: [string, ...string[]];
353
+ baseColumn: never;
354
+ identity: undefined;
355
+ generated: undefined;
356
+ }, {}, {}>;
357
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
358
+ name: "created_at";
359
+ tableName: "booking_payment_schedules";
360
+ dataType: "date";
361
+ columnType: "PgTimestamp";
362
+ data: Date;
363
+ driverParam: string;
364
+ notNull: true;
365
+ hasDefault: true;
366
+ isPrimaryKey: false;
367
+ isAutoincrement: false;
368
+ hasRuntimeDefault: false;
369
+ enumValues: undefined;
370
+ baseColumn: never;
371
+ identity: undefined;
372
+ generated: undefined;
373
+ }, {}, {}>;
374
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
375
+ name: "updated_at";
376
+ tableName: "booking_payment_schedules";
377
+ dataType: "date";
378
+ columnType: "PgTimestamp";
379
+ data: Date;
380
+ driverParam: string;
381
+ notNull: true;
382
+ hasDefault: true;
383
+ isPrimaryKey: false;
384
+ isAutoincrement: false;
385
+ hasRuntimeDefault: false;
386
+ enumValues: undefined;
387
+ baseColumn: never;
388
+ identity: undefined;
389
+ generated: undefined;
390
+ }, {}, {}>;
391
+ }>, "where" | "orderBy">;
392
+ createBookingPaymentSchedule(db: PostgresJsDatabase, bookingId: string, data: CreateBookingPaymentScheduleInput, runtime?: FinanceServiceRuntime): Promise<{
393
+ currency: string;
394
+ id: string;
395
+ createdAt: Date;
396
+ updatedAt: Date;
397
+ status: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
398
+ bookingId: string;
399
+ amountCents: number;
400
+ notes: string | null;
401
+ bookingItemId: string | null;
402
+ scheduleType: "other" | "deposit" | "balance" | "installment" | "hold";
403
+ dueDate: string;
404
+ } | null>;
405
+ /**
406
+ * Persist a payment schedule that was already computed elsewhere
407
+ * (typically by `computePaymentSchedule()` from the policy primitive).
408
+ *
409
+ * Idempotency: when `replace: true` (the default), any existing
410
+ * pending/due schedule rows on the booking are cleared first so a
411
+ * re-fire of the same hook doesn't pile up duplicate rows. Set
412
+ * `replace: false` to insert alongside existing rows (e.g. when
413
+ * inserting a manually-added one-off installment).
414
+ *
415
+ * Skips silently when the booking row doesn't exist (returns
416
+ * `null`) or when there are no entries to persist.
417
+ */
418
+ applyComputedPaymentSchedule(db: PostgresJsDatabase, bookingId: string, entries: Array<{
419
+ scheduleType: "deposit" | "balance" | "installment" | "hold" | "other" | "full";
420
+ amountCents: number;
421
+ currency: string;
422
+ dueDate: string;
423
+ notes?: string | null;
424
+ }>, options?: {
425
+ replace?: boolean;
426
+ }): Promise<{
427
+ currency: string;
428
+ id: string;
429
+ createdAt: Date;
430
+ updatedAt: Date;
431
+ status: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
432
+ bookingId: string;
433
+ amountCents: number;
434
+ notes: string | null;
435
+ bookingItemId: string | null;
436
+ scheduleType: "other" | "deposit" | "balance" | "installment" | "hold";
437
+ dueDate: string;
438
+ }[] | null>;
439
+ applyDefaultBookingPaymentPlan(db: PostgresJsDatabase, bookingId: string, data: ApplyDefaultBookingPaymentPlanInput, runtime?: FinanceServiceRuntime): Promise<{
440
+ currency: string;
441
+ id: string;
442
+ createdAt: Date;
443
+ updatedAt: Date;
444
+ status: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
445
+ bookingId: string;
446
+ amountCents: number;
447
+ notes: string | null;
448
+ bookingItemId: string | null;
449
+ scheduleType: "other" | "deposit" | "balance" | "installment" | "hold";
450
+ dueDate: string;
451
+ }[] | null>;
452
+ updateBookingPaymentSchedule(db: PostgresJsDatabase, scheduleId: string, data: UpdateBookingPaymentScheduleInput, runtime?: FinanceServiceRuntime): Promise<{
453
+ id: string;
454
+ bookingId: string;
455
+ bookingItemId: string | null;
456
+ scheduleType: "other" | "deposit" | "balance" | "installment" | "hold";
457
+ status: "pending" | "cancelled" | "due" | "paid" | "waived" | "expired";
458
+ dueDate: string;
459
+ currency: string;
460
+ amountCents: number;
461
+ notes: string | null;
462
+ createdAt: Date;
463
+ updatedAt: Date;
464
+ } | null>;
465
+ deleteBookingPaymentSchedule(db: PostgresJsDatabase, scheduleId: string, runtime?: FinanceServiceRuntime): Promise<{
466
+ id: string;
467
+ } | null>;
468
+ createPaymentSessionFromBookingSchedule(db: PostgresJsDatabase, scheduleId: string, data: CreatePaymentSessionFromScheduleInput, runtime?: FinanceServiceRuntime): Promise<{
469
+ currency: string;
470
+ id: string;
471
+ createdAt: Date;
472
+ updatedAt: Date;
473
+ metadata: Record<string, unknown> | null;
474
+ idempotencyKey: string | null;
475
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
476
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
477
+ targetId: string | null;
478
+ bookingId: string | null;
479
+ provider: string | null;
480
+ invoiceId: string | null;
481
+ amountCents: number;
482
+ notes: string | null;
483
+ bookingPaymentScheduleId: string | null;
484
+ bookingGuaranteeId: string | null;
485
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
486
+ payerPersonId: string | null;
487
+ payerOrganizationId: string | null;
488
+ payerEmail: string | null;
489
+ payerName: string | null;
490
+ externalReference: string | null;
491
+ clientReference: string | null;
492
+ returnUrl: string | null;
493
+ cancelUrl: string | null;
494
+ callbackUrl: string | null;
495
+ expiresAt: Date | null;
496
+ providerPayload: Record<string, unknown> | null;
497
+ orderId: string | null;
498
+ paymentInstrumentId: string | null;
499
+ paymentAuthorizationId: string | null;
500
+ paymentCaptureId: string | null;
501
+ paymentId: string | null;
502
+ providerSessionId: string | null;
503
+ providerPaymentId: string | null;
504
+ redirectUrl: string | null;
505
+ completedAt: Date | null;
506
+ failedAt: Date | null;
507
+ cancelledAt: Date | null;
508
+ expiredAt: Date | null;
509
+ failureCode: string | null;
510
+ failureMessage: string | null;
511
+ } | null>;
512
+ createPaymentSessionFromInvoice(db: PostgresJsDatabase, invoiceId: string, data: CreatePaymentSessionFromInvoiceInput, runtime?: FinanceServiceRuntime): Promise<{
513
+ currency: string;
514
+ id: string;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ metadata: Record<string, unknown> | null;
518
+ idempotencyKey: string | null;
519
+ status: "processing" | "failed" | "pending" | "cancelled" | "paid" | "expired" | "authorized" | "requires_redirect";
520
+ targetType: "other" | "booking_payment_schedule" | "invoice" | "booking" | "booking_guarantee" | "flight_order" | "order";
521
+ targetId: string | null;
522
+ bookingId: string | null;
523
+ provider: string | null;
524
+ invoiceId: string | null;
525
+ amountCents: number;
526
+ notes: string | null;
527
+ bookingPaymentScheduleId: string | null;
528
+ bookingGuaranteeId: string | null;
529
+ paymentMethod: "other" | "bank_transfer" | "credit_card" | "voucher" | "debit_card" | "cash" | "cheque" | "wallet" | "direct_bill" | null;
530
+ payerPersonId: string | null;
531
+ payerOrganizationId: string | null;
532
+ payerEmail: string | null;
533
+ payerName: string | null;
534
+ externalReference: string | null;
535
+ clientReference: string | null;
536
+ returnUrl: string | null;
537
+ cancelUrl: string | null;
538
+ callbackUrl: string | null;
539
+ expiresAt: Date | null;
540
+ providerPayload: Record<string, unknown> | null;
541
+ orderId: string | null;
542
+ paymentInstrumentId: string | null;
543
+ paymentAuthorizationId: string | null;
544
+ paymentCaptureId: string | null;
545
+ paymentId: string | null;
546
+ providerSessionId: string | null;
547
+ providerPaymentId: string | null;
548
+ redirectUrl: string | null;
549
+ completedAt: Date | null;
550
+ failedAt: Date | null;
551
+ cancelledAt: Date | null;
552
+ expiredAt: Date | null;
553
+ failureCode: string | null;
554
+ failureMessage: string | null;
555
+ } | null>;
556
+ };
557
+ //# sourceMappingURL=service-booking-payment-schedules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-booking-payment-schedules.d.ts","sourceRoot":"","sources":["../src/service-booking-payment-schedules.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mCAAmC,EAEnC,iCAAiC,EACjC,oCAAoC,EACpC,qCAAqC,EACrC,qBAAqB,EACrB,kBAAkB,EAClB,iCAAiC,EAClC,MAAM,qBAAqB,CAAA;AAsB5B,eAAO,MAAM,oCAAoC;oCACf,kBAAkB,aAAa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAS/D,kBAAkB,aACX,MAAM,QACX,iCAAiC,YAC9B,qBAAqB;;;;;;;;;;;;;IAmDhC;;;;;;;;;;;;OAYG;qCAEG,kBAAkB,aACX,MAAM,WACR,KAAK,CAAC;QAGb,YAAY,EAAE,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAA;QAC/E,WAAW,EAAE,MAAM,CAAA;QACnB,QAAQ,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACtB,CAAC,YACO;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;;;;;;;;;;;;;uCAmD1B,kBAAkB,aACX,MAAM,QACX,mCAAmC,YAChC,qBAAqB;;;;;;;;;;;;;qCA2L1B,kBAAkB,cACV,MAAM,QACZ,iCAAiC,YAC9B,qBAAqB;;;;;;;;;;;;;qCA2D1B,kBAAkB,cACV,MAAM,YACT,qBAAqB;;;gDAsC1B,kBAAkB,cACV,MAAM,QACZ,qCAAqC,YAClC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAuD1B,kBAAkB,aACX,MAAM,QACX,oCAAoC,YACjC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDjC,CAAA"}