@voyant-travel/commerce-react 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (618) hide show
  1. package/LICENSE +201 -0
  2. package/dist/admin.d.ts +16 -0
  3. package/dist/admin.d.ts.map +1 -0
  4. package/dist/admin.js +32 -0
  5. package/dist/admin.js.map +1 -0
  6. package/dist/i18n.d.ts +22 -0
  7. package/dist/i18n.d.ts.map +1 -0
  8. package/dist/i18n.js +13 -0
  9. package/dist/i18n.js.map +1 -0
  10. package/dist/index.d.ts +6 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +6 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/markets/client.d.ts +14 -0
  15. package/dist/markets/client.d.ts.map +1 -0
  16. package/dist/markets/client.js +59 -0
  17. package/dist/markets/client.js.map +1 -0
  18. package/dist/markets/components/market-currency-dialog.d.ts +10 -0
  19. package/dist/markets/components/market-currency-dialog.d.ts.map +1 -0
  20. package/dist/markets/components/market-currency-dialog.js +86 -0
  21. package/dist/markets/components/market-currency-dialog.js.map +1 -0
  22. package/dist/markets/components/market-dialog.d.ts +9 -0
  23. package/dist/markets/components/market-dialog.d.ts.map +1 -0
  24. package/dist/markets/components/market-dialog.js +102 -0
  25. package/dist/markets/components/market-dialog.js.map +1 -0
  26. package/dist/markets/components/market-locale-dialog.d.ts +10 -0
  27. package/dist/markets/components/market-locale-dialog.d.ts.map +1 -0
  28. package/dist/markets/components/market-locale-dialog.js +73 -0
  29. package/dist/markets/components/market-locale-dialog.js.map +1 -0
  30. package/dist/markets/hooks/index.d.ts +10 -0
  31. package/dist/markets/hooks/index.d.ts.map +1 -0
  32. package/dist/markets/hooks/index.js +10 -0
  33. package/dist/markets/hooks/index.js.map +1 -0
  34. package/dist/markets/hooks/use-market-currencies.d.ts +20 -0
  35. package/dist/markets/hooks/use-market-currencies.d.ts.map +1 -0
  36. package/dist/markets/hooks/use-market-currencies.js +13 -0
  37. package/dist/markets/hooks/use-market-currencies.js.map +1 -0
  38. package/dist/markets/hooks/use-market-currency-mutation.d.ts +36 -0
  39. package/dist/markets/hooks/use-market-currency-mutation.d.ts.map +1 -0
  40. package/dist/markets/hooks/use-market-currency-mutation.js +41 -0
  41. package/dist/markets/hooks/use-market-currency-mutation.js.map +1 -0
  42. package/dist/markets/hooks/use-market-locale-mutation.d.ts +32 -0
  43. package/dist/markets/hooks/use-market-locale-mutation.d.ts.map +1 -0
  44. package/dist/markets/hooks/use-market-locale-mutation.js +41 -0
  45. package/dist/markets/hooks/use-market-locale-mutation.js.map +1 -0
  46. package/dist/markets/hooks/use-market-locales.d.ts +18 -0
  47. package/dist/markets/hooks/use-market-locales.d.ts.map +1 -0
  48. package/dist/markets/hooks/use-market-locales.js +13 -0
  49. package/dist/markets/hooks/use-market-locales.js.map +1 -0
  50. package/dist/markets/hooks/use-market-mutation.d.ts +50 -0
  51. package/dist/markets/hooks/use-market-mutation.d.ts.map +1 -0
  52. package/dist/markets/hooks/use-market-mutation.js +43 -0
  53. package/dist/markets/hooks/use-market-mutation.js.map +1 -0
  54. package/dist/markets/hooks/use-market-product-rule-mutation.d.ts +53 -0
  55. package/dist/markets/hooks/use-market-product-rule-mutation.d.ts.map +1 -0
  56. package/dist/markets/hooks/use-market-product-rule-mutation.js +39 -0
  57. package/dist/markets/hooks/use-market-product-rule-mutation.js.map +1 -0
  58. package/dist/markets/hooks/use-market-product-rules.d.ts +24 -0
  59. package/dist/markets/hooks/use-market-product-rules.d.ts.map +1 -0
  60. package/dist/markets/hooks/use-market-product-rules.js +13 -0
  61. package/dist/markets/hooks/use-market-product-rules.js.map +1 -0
  62. package/dist/markets/hooks/use-market.d.ts +17 -0
  63. package/dist/markets/hooks/use-market.d.ts.map +1 -0
  64. package/dist/markets/hooks/use-market.js +13 -0
  65. package/dist/markets/hooks/use-market.js.map +1 -0
  66. package/dist/markets/hooks/use-markets.d.ts +23 -0
  67. package/dist/markets/hooks/use-markets.d.ts.map +1 -0
  68. package/dist/markets/hooks/use-markets.js +13 -0
  69. package/dist/markets/hooks/use-markets.js.map +1 -0
  70. package/dist/markets/i18n/en.d.ts +88 -0
  71. package/dist/markets/i18n/en.d.ts.map +1 -0
  72. package/dist/markets/i18n/en.js +88 -0
  73. package/dist/markets/i18n/en.js.map +1 -0
  74. package/dist/markets/i18n/index.d.ts +5 -0
  75. package/dist/markets/i18n/index.d.ts.map +1 -0
  76. package/dist/markets/i18n/index.js +4 -0
  77. package/dist/markets/i18n/index.js.map +1 -0
  78. package/dist/markets/i18n/messages.d.ts +90 -0
  79. package/dist/markets/i18n/messages.d.ts.map +1 -0
  80. package/dist/markets/i18n/messages.js +2 -0
  81. package/dist/markets/i18n/messages.js.map +1 -0
  82. package/dist/markets/i18n/provider.d.ts +198 -0
  83. package/dist/markets/i18n/provider.d.ts.map +1 -0
  84. package/dist/markets/i18n/provider.js +45 -0
  85. package/dist/markets/i18n/provider.js.map +1 -0
  86. package/dist/markets/i18n/ro.d.ts +88 -0
  87. package/dist/markets/i18n/ro.d.ts.map +1 -0
  88. package/dist/markets/i18n/ro.js +88 -0
  89. package/dist/markets/i18n/ro.js.map +1 -0
  90. package/dist/markets/index.d.ts +7 -0
  91. package/dist/markets/index.d.ts.map +1 -0
  92. package/dist/markets/index.js +7 -0
  93. package/dist/markets/index.js.map +1 -0
  94. package/dist/markets/provider.d.ts +2 -0
  95. package/dist/markets/provider.d.ts.map +1 -0
  96. package/dist/markets/provider.js +2 -0
  97. package/dist/markets/provider.js.map +1 -0
  98. package/dist/markets/query-keys.d.ts +46 -0
  99. package/dist/markets/query-keys.d.ts.map +1 -0
  100. package/dist/markets/query-keys.js +16 -0
  101. package/dist/markets/query-keys.js.map +1 -0
  102. package/dist/markets/query-options.d.ts +478 -0
  103. package/dist/markets/query-options.d.ts.map +1 -0
  104. package/dist/markets/query-options.js +88 -0
  105. package/dist/markets/query-options.js.map +1 -0
  106. package/dist/markets/schemas.d.ts +232 -0
  107. package/dist/markets/schemas.d.ts.map +1 -0
  108. package/dist/markets/schemas.js +45 -0
  109. package/dist/markets/schemas.js.map +1 -0
  110. package/dist/markets/ui.d.ts +5 -0
  111. package/dist/markets/ui.d.ts.map +1 -0
  112. package/dist/markets/ui.js +5 -0
  113. package/dist/markets/ui.js.map +1 -0
  114. package/dist/markets.d.ts +2 -0
  115. package/dist/markets.d.ts.map +1 -0
  116. package/dist/markets.js +2 -0
  117. package/dist/markets.js.map +1 -0
  118. package/dist/pricing/client.d.ts +14 -0
  119. package/dist/pricing/client.d.ts.map +1 -0
  120. package/dist/pricing/client.js +60 -0
  121. package/dist/pricing/client.js.map +1 -0
  122. package/dist/pricing/components/cancellation-policy-combobox.d.ts +9 -0
  123. package/dist/pricing/components/cancellation-policy-combobox.d.ts.map +1 -0
  124. package/dist/pricing/components/cancellation-policy-combobox.js +52 -0
  125. package/dist/pricing/components/cancellation-policy-combobox.js.map +1 -0
  126. package/dist/pricing/components/cancellation-policy-rule-dialog.d.ts +11 -0
  127. package/dist/pricing/components/cancellation-policy-rule-dialog.d.ts.map +1 -0
  128. package/dist/pricing/components/cancellation-policy-rule-dialog.js +96 -0
  129. package/dist/pricing/components/cancellation-policy-rule-dialog.js.map +1 -0
  130. package/dist/pricing/components/dropoff-price-rule-dialog.d.ts +10 -0
  131. package/dist/pricing/components/dropoff-price-rule-dialog.d.ts.map +1 -0
  132. package/dist/pricing/components/dropoff-price-rule-dialog.js +118 -0
  133. package/dist/pricing/components/dropoff-price-rule-dialog.js.map +1 -0
  134. package/dist/pricing/components/extra-price-rule-dialog.d.ts +10 -0
  135. package/dist/pricing/components/extra-price-rule-dialog.d.ts.map +1 -0
  136. package/dist/pricing/components/extra-price-rule-dialog.js +111 -0
  137. package/dist/pricing/components/extra-price-rule-dialog.js.map +1 -0
  138. package/dist/pricing/components/option-price-rule-combobox.d.ts +9 -0
  139. package/dist/pricing/components/option-price-rule-combobox.d.ts.map +1 -0
  140. package/dist/pricing/components/option-price-rule-combobox.js +48 -0
  141. package/dist/pricing/components/option-price-rule-combobox.js.map +1 -0
  142. package/dist/pricing/components/option-price-rule-dialog.d.ts +9 -0
  143. package/dist/pricing/components/option-price-rule-dialog.d.ts.map +1 -0
  144. package/dist/pricing/components/option-price-rule-dialog.js +145 -0
  145. package/dist/pricing/components/option-price-rule-dialog.js.map +1 -0
  146. package/dist/pricing/components/option-start-time-rule-dialog.d.ts +10 -0
  147. package/dist/pricing/components/option-start-time-rule-dialog.d.ts.map +1 -0
  148. package/dist/pricing/components/option-start-time-rule-dialog.js +114 -0
  149. package/dist/pricing/components/option-start-time-rule-dialog.js.map +1 -0
  150. package/dist/pricing/components/option-unit-combobox.d.ts +11 -0
  151. package/dist/pricing/components/option-unit-combobox.d.ts.map +1 -0
  152. package/dist/pricing/components/option-unit-combobox.js +54 -0
  153. package/dist/pricing/components/option-unit-combobox.js.map +1 -0
  154. package/dist/pricing/components/option-unit-price-rule-combobox.d.ts +9 -0
  155. package/dist/pricing/components/option-unit-price-rule-combobox.d.ts.map +1 -0
  156. package/dist/pricing/components/option-unit-price-rule-combobox.js +57 -0
  157. package/dist/pricing/components/option-unit-price-rule-combobox.js.map +1 -0
  158. package/dist/pricing/components/option-unit-price-rule-dialog.d.ts +10 -0
  159. package/dist/pricing/components/option-unit-price-rule-dialog.d.ts.map +1 -0
  160. package/dist/pricing/components/option-unit-price-rule-dialog.js +130 -0
  161. package/dist/pricing/components/option-unit-price-rule-dialog.js.map +1 -0
  162. package/dist/pricing/components/option-unit-tier-dialog.d.ts +10 -0
  163. package/dist/pricing/components/option-unit-tier-dialog.d.ts.map +1 -0
  164. package/dist/pricing/components/option-unit-tier-dialog.js +97 -0
  165. package/dist/pricing/components/option-unit-tier-dialog.js.map +1 -0
  166. package/dist/pricing/components/pickup-price-rule-dialog.d.ts +10 -0
  167. package/dist/pricing/components/pickup-price-rule-dialog.d.ts.map +1 -0
  168. package/dist/pricing/components/pickup-price-rule-dialog.js +109 -0
  169. package/dist/pricing/components/pickup-price-rule-dialog.js.map +1 -0
  170. package/dist/pricing/components/price-catalog-combobox.d.ts +9 -0
  171. package/dist/pricing/components/price-catalog-combobox.d.ts.map +1 -0
  172. package/dist/pricing/components/price-catalog-combobox.js +50 -0
  173. package/dist/pricing/components/price-catalog-combobox.js.map +1 -0
  174. package/dist/pricing/components/price-catalogs-page.d.ts +6 -0
  175. package/dist/pricing/components/price-catalogs-page.d.ts.map +1 -0
  176. package/dist/pricing/components/price-catalogs-page.js +130 -0
  177. package/dist/pricing/components/price-catalogs-page.js.map +1 -0
  178. package/dist/pricing/components/price-schedule-combobox.d.ts +10 -0
  179. package/dist/pricing/components/price-schedule-combobox.d.ts.map +1 -0
  180. package/dist/pricing/components/price-schedule-combobox.js +51 -0
  181. package/dist/pricing/components/price-schedule-combobox.js.map +1 -0
  182. package/dist/pricing/components/price-schedule-dialog.d.ts +9 -0
  183. package/dist/pricing/components/price-schedule-dialog.d.ts.map +1 -0
  184. package/dist/pricing/components/price-schedule-dialog.js +99 -0
  185. package/dist/pricing/components/price-schedule-dialog.js.map +1 -0
  186. package/dist/pricing/components/pricing-categories-page.d.ts +7 -0
  187. package/dist/pricing/components/pricing-categories-page.d.ts.map +1 -0
  188. package/dist/pricing/components/pricing-categories-page.js +10 -0
  189. package/dist/pricing/components/pricing-categories-page.js.map +1 -0
  190. package/dist/pricing/components/pricing-category-combobox.d.ts +9 -0
  191. package/dist/pricing/components/pricing-category-combobox.d.ts.map +1 -0
  192. package/dist/pricing/components/pricing-category-combobox.js +57 -0
  193. package/dist/pricing/components/pricing-category-combobox.js.map +1 -0
  194. package/dist/pricing/components/pricing-category-dependency-dialog.d.ts +9 -0
  195. package/dist/pricing/components/pricing-category-dependency-dialog.d.ts.map +1 -0
  196. package/dist/pricing/components/pricing-category-dependency-dialog.js +16 -0
  197. package/dist/pricing/components/pricing-category-dependency-dialog.js.map +1 -0
  198. package/dist/pricing/components/pricing-category-dependency-form.d.ts +15 -0
  199. package/dist/pricing/components/pricing-category-dependency-form.d.ts.map +1 -0
  200. package/dist/pricing/components/pricing-category-dependency-form.js +100 -0
  201. package/dist/pricing/components/pricing-category-dependency-form.js.map +1 -0
  202. package/dist/pricing/components/pricing-category-dialog.d.ts +9 -0
  203. package/dist/pricing/components/pricing-category-dialog.d.ts.map +1 -0
  204. package/dist/pricing/components/pricing-category-dialog.js +18 -0
  205. package/dist/pricing/components/pricing-category-dialog.js.map +1 -0
  206. package/dist/pricing/components/pricing-category-form.d.ts +15 -0
  207. package/dist/pricing/components/pricing-category-form.d.ts.map +1 -0
  208. package/dist/pricing/components/pricing-category-form.js +107 -0
  209. package/dist/pricing/components/pricing-category-form.js.map +1 -0
  210. package/dist/pricing/components/pricing-category-list.d.ts +5 -0
  211. package/dist/pricing/components/pricing-category-list.d.ts.map +1 -0
  212. package/dist/pricing/components/pricing-category-list.js +49 -0
  213. package/dist/pricing/components/pricing-category-list.js.map +1 -0
  214. package/dist/pricing/components/pricing-shared-labels.d.ts +22 -0
  215. package/dist/pricing/components/pricing-shared-labels.d.ts.map +1 -0
  216. package/dist/pricing/components/pricing-shared-labels.js +33 -0
  217. package/dist/pricing/components/pricing-shared-labels.js.map +1 -0
  218. package/dist/pricing/components/product-combobox.d.ts +9 -0
  219. package/dist/pricing/components/product-combobox.d.ts.map +1 -0
  220. package/dist/pricing/components/product-combobox.js +46 -0
  221. package/dist/pricing/components/product-combobox.js.map +1 -0
  222. package/dist/pricing/components/product-option-combobox.d.ts +11 -0
  223. package/dist/pricing/components/product-option-combobox.d.ts.map +1 -0
  224. package/dist/pricing/components/product-option-combobox.js +54 -0
  225. package/dist/pricing/components/product-option-combobox.js.map +1 -0
  226. package/dist/pricing/hooks/index.d.ts +44 -0
  227. package/dist/pricing/hooks/index.d.ts.map +1 -0
  228. package/dist/pricing/hooks/index.js +44 -0
  229. package/dist/pricing/hooks/index.js.map +1 -0
  230. package/dist/pricing/hooks/use-cancellation-policies.d.ts +20 -0
  231. package/dist/pricing/hooks/use-cancellation-policies.d.ts.map +1 -0
  232. package/dist/pricing/hooks/use-cancellation-policies.js +13 -0
  233. package/dist/pricing/hooks/use-cancellation-policies.js.map +1 -0
  234. package/dist/pricing/hooks/use-cancellation-policy-mutation.d.ts +57 -0
  235. package/dist/pricing/hooks/use-cancellation-policy-mutation.d.ts.map +1 -0
  236. package/dist/pricing/hooks/use-cancellation-policy-mutation.js +50 -0
  237. package/dist/pricing/hooks/use-cancellation-policy-mutation.js.map +1 -0
  238. package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.d.ts +58 -0
  239. package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.d.ts.map +1 -0
  240. package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.js +50 -0
  241. package/dist/pricing/hooks/use-cancellation-policy-rule-mutation.js.map +1 -0
  242. package/dist/pricing/hooks/use-cancellation-policy-rule.d.ts +15 -0
  243. package/dist/pricing/hooks/use-cancellation-policy-rule.d.ts.map +1 -0
  244. package/dist/pricing/hooks/use-cancellation-policy-rule.js +13 -0
  245. package/dist/pricing/hooks/use-cancellation-policy-rule.js.map +1 -0
  246. package/dist/pricing/hooks/use-cancellation-policy-rules.d.ts +21 -0
  247. package/dist/pricing/hooks/use-cancellation-policy-rules.d.ts.map +1 -0
  248. package/dist/pricing/hooks/use-cancellation-policy-rules.js +13 -0
  249. package/dist/pricing/hooks/use-cancellation-policy-rules.js.map +1 -0
  250. package/dist/pricing/hooks/use-cancellation-policy.d.ts +14 -0
  251. package/dist/pricing/hooks/use-cancellation-policy.d.ts.map +1 -0
  252. package/dist/pricing/hooks/use-cancellation-policy.js +13 -0
  253. package/dist/pricing/hooks/use-cancellation-policy.js.map +1 -0
  254. package/dist/pricing/hooks/use-departure-price-override-mutation.d.ts +58 -0
  255. package/dist/pricing/hooks/use-departure-price-override-mutation.d.ts.map +1 -0
  256. package/dist/pricing/hooks/use-departure-price-override-mutation.js +57 -0
  257. package/dist/pricing/hooks/use-departure-price-override-mutation.js.map +1 -0
  258. package/dist/pricing/hooks/use-departure-price-override.d.ts +15 -0
  259. package/dist/pricing/hooks/use-departure-price-override.d.ts.map +1 -0
  260. package/dist/pricing/hooks/use-departure-price-override.js +13 -0
  261. package/dist/pricing/hooks/use-departure-price-override.js.map +1 -0
  262. package/dist/pricing/hooks/use-departure-price-overrides.d.ts +22 -0
  263. package/dist/pricing/hooks/use-departure-price-overrides.d.ts.map +1 -0
  264. package/dist/pricing/hooks/use-departure-price-overrides.js +13 -0
  265. package/dist/pricing/hooks/use-departure-price-overrides.js.map +1 -0
  266. package/dist/pricing/hooks/use-dropoff-price-rule-mutation.d.ts +72 -0
  267. package/dist/pricing/hooks/use-dropoff-price-rule-mutation.d.ts.map +1 -0
  268. package/dist/pricing/hooks/use-dropoff-price-rule-mutation.js +53 -0
  269. package/dist/pricing/hooks/use-dropoff-price-rule-mutation.js.map +1 -0
  270. package/dist/pricing/hooks/use-dropoff-price-rule.d.ts +18 -0
  271. package/dist/pricing/hooks/use-dropoff-price-rule.d.ts.map +1 -0
  272. package/dist/pricing/hooks/use-dropoff-price-rule.js +13 -0
  273. package/dist/pricing/hooks/use-dropoff-price-rule.js.map +1 -0
  274. package/dist/pricing/hooks/use-dropoff-price-rules.d.ts +24 -0
  275. package/dist/pricing/hooks/use-dropoff-price-rules.d.ts.map +1 -0
  276. package/dist/pricing/hooks/use-dropoff-price-rules.js +13 -0
  277. package/dist/pricing/hooks/use-dropoff-price-rules.js.map +1 -0
  278. package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.d.ts +8 -0
  279. package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.d.ts.map +1 -0
  280. package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.js +65 -0
  281. package/dist/pricing/hooks/use-duplicate-option-pricing-mutation.js.map +1 -0
  282. package/dist/pricing/hooks/use-extra-price-rule-mutation.d.ts +72 -0
  283. package/dist/pricing/hooks/use-extra-price-rule-mutation.d.ts.map +1 -0
  284. package/dist/pricing/hooks/use-extra-price-rule-mutation.js +53 -0
  285. package/dist/pricing/hooks/use-extra-price-rule-mutation.js.map +1 -0
  286. package/dist/pricing/hooks/use-extra-price-rule.d.ts +18 -0
  287. package/dist/pricing/hooks/use-extra-price-rule.d.ts.map +1 -0
  288. package/dist/pricing/hooks/use-extra-price-rule.js +13 -0
  289. package/dist/pricing/hooks/use-extra-price-rule.js.map +1 -0
  290. package/dist/pricing/hooks/use-extra-price-rules.d.ts +24 -0
  291. package/dist/pricing/hooks/use-extra-price-rules.d.ts.map +1 -0
  292. package/dist/pricing/hooks/use-extra-price-rules.js +13 -0
  293. package/dist/pricing/hooks/use-extra-price-rules.js.map +1 -0
  294. package/dist/pricing/hooks/use-option-price-rule-mutation.d.ts +98 -0
  295. package/dist/pricing/hooks/use-option-price-rule-mutation.d.ts.map +1 -0
  296. package/dist/pricing/hooks/use-option-price-rule-mutation.js +67 -0
  297. package/dist/pricing/hooks/use-option-price-rule-mutation.js.map +1 -0
  298. package/dist/pricing/hooks/use-option-price-rule.d.ts +24 -0
  299. package/dist/pricing/hooks/use-option-price-rule.d.ts.map +1 -0
  300. package/dist/pricing/hooks/use-option-price-rule.js +13 -0
  301. package/dist/pricing/hooks/use-option-price-rule.js.map +1 -0
  302. package/dist/pricing/hooks/use-option-price-rules.d.ts +30 -0
  303. package/dist/pricing/hooks/use-option-price-rules.d.ts.map +1 -0
  304. package/dist/pricing/hooks/use-option-price-rules.js +13 -0
  305. package/dist/pricing/hooks/use-option-price-rules.js.map +1 -0
  306. package/dist/pricing/hooks/use-option-start-time-rule-mutation.d.ts +70 -0
  307. package/dist/pricing/hooks/use-option-start-time-rule-mutation.d.ts.map +1 -0
  308. package/dist/pricing/hooks/use-option-start-time-rule-mutation.js +52 -0
  309. package/dist/pricing/hooks/use-option-start-time-rule-mutation.js.map +1 -0
  310. package/dist/pricing/hooks/use-option-start-time-rule.d.ts +17 -0
  311. package/dist/pricing/hooks/use-option-start-time-rule.d.ts.map +1 -0
  312. package/dist/pricing/hooks/use-option-start-time-rule.js +13 -0
  313. package/dist/pricing/hooks/use-option-start-time-rule.js.map +1 -0
  314. package/dist/pricing/hooks/use-option-start-time-rules.d.ts +23 -0
  315. package/dist/pricing/hooks/use-option-start-time-rules.d.ts.map +1 -0
  316. package/dist/pricing/hooks/use-option-start-time-rules.js +13 -0
  317. package/dist/pricing/hooks/use-option-start-time-rules.js.map +1 -0
  318. package/dist/pricing/hooks/use-option-unit-price-rule-mutation.d.ts +79 -0
  319. package/dist/pricing/hooks/use-option-unit-price-rule-mutation.d.ts.map +1 -0
  320. package/dist/pricing/hooks/use-option-unit-price-rule-mutation.js +55 -0
  321. package/dist/pricing/hooks/use-option-unit-price-rule-mutation.js.map +1 -0
  322. package/dist/pricing/hooks/use-option-unit-price-rule.d.ts +19 -0
  323. package/dist/pricing/hooks/use-option-unit-price-rule.d.ts.map +1 -0
  324. package/dist/pricing/hooks/use-option-unit-price-rule.js +13 -0
  325. package/dist/pricing/hooks/use-option-unit-price-rule.js.map +1 -0
  326. package/dist/pricing/hooks/use-option-unit-price-rules.d.ts +25 -0
  327. package/dist/pricing/hooks/use-option-unit-price-rules.d.ts.map +1 -0
  328. package/dist/pricing/hooks/use-option-unit-price-rules.js +13 -0
  329. package/dist/pricing/hooks/use-option-unit-price-rules.js.map +1 -0
  330. package/dist/pricing/hooks/use-option-unit-tier-mutation.d.ts +50 -0
  331. package/dist/pricing/hooks/use-option-unit-tier-mutation.d.ts.map +1 -0
  332. package/dist/pricing/hooks/use-option-unit-tier-mutation.js +49 -0
  333. package/dist/pricing/hooks/use-option-unit-tier-mutation.js.map +1 -0
  334. package/dist/pricing/hooks/use-option-unit-tier.d.ts +14 -0
  335. package/dist/pricing/hooks/use-option-unit-tier.d.ts.map +1 -0
  336. package/dist/pricing/hooks/use-option-unit-tier.js +13 -0
  337. package/dist/pricing/hooks/use-option-unit-tier.js.map +1 -0
  338. package/dist/pricing/hooks/use-option-unit-tiers.d.ts +20 -0
  339. package/dist/pricing/hooks/use-option-unit-tiers.d.ts.map +1 -0
  340. package/dist/pricing/hooks/use-option-unit-tiers.js +13 -0
  341. package/dist/pricing/hooks/use-option-unit-tiers.js.map +1 -0
  342. package/dist/pricing/hooks/use-pickup-price-rule-mutation.d.ts +64 -0
  343. package/dist/pricing/hooks/use-pickup-price-rule-mutation.d.ts.map +1 -0
  344. package/dist/pricing/hooks/use-pickup-price-rule-mutation.js +51 -0
  345. package/dist/pricing/hooks/use-pickup-price-rule-mutation.js.map +1 -0
  346. package/dist/pricing/hooks/use-pickup-price-rule.d.ts +16 -0
  347. package/dist/pricing/hooks/use-pickup-price-rule.d.ts.map +1 -0
  348. package/dist/pricing/hooks/use-pickup-price-rule.js +13 -0
  349. package/dist/pricing/hooks/use-pickup-price-rule.js.map +1 -0
  350. package/dist/pricing/hooks/use-pickup-price-rules.d.ts +22 -0
  351. package/dist/pricing/hooks/use-pickup-price-rules.d.ts.map +1 -0
  352. package/dist/pricing/hooks/use-pickup-price-rules.js +13 -0
  353. package/dist/pricing/hooks/use-pickup-price-rules.js.map +1 -0
  354. package/dist/pricing/hooks/use-price-catalog-mutation.d.ts +60 -0
  355. package/dist/pricing/hooks/use-price-catalog-mutation.d.ts.map +1 -0
  356. package/dist/pricing/hooks/use-price-catalog-mutation.js +52 -0
  357. package/dist/pricing/hooks/use-price-catalog-mutation.js.map +1 -0
  358. package/dist/pricing/hooks/use-price-catalog.d.ts +14 -0
  359. package/dist/pricing/hooks/use-price-catalog.d.ts.map +1 -0
  360. package/dist/pricing/hooks/use-price-catalog.js +13 -0
  361. package/dist/pricing/hooks/use-price-catalog.js.map +1 -0
  362. package/dist/pricing/hooks/use-price-catalogs.d.ts +20 -0
  363. package/dist/pricing/hooks/use-price-catalogs.d.ts.map +1 -0
  364. package/dist/pricing/hooks/use-price-catalogs.js +13 -0
  365. package/dist/pricing/hooks/use-price-catalogs.js.map +1 -0
  366. package/dist/pricing/hooks/use-price-schedule-mutation.d.ts +76 -0
  367. package/dist/pricing/hooks/use-price-schedule-mutation.d.ts.map +1 -0
  368. package/dist/pricing/hooks/use-price-schedule-mutation.js +65 -0
  369. package/dist/pricing/hooks/use-price-schedule-mutation.js.map +1 -0
  370. package/dist/pricing/hooks/use-price-schedule.d.ts +18 -0
  371. package/dist/pricing/hooks/use-price-schedule.d.ts.map +1 -0
  372. package/dist/pricing/hooks/use-price-schedule.js +13 -0
  373. package/dist/pricing/hooks/use-price-schedule.js.map +1 -0
  374. package/dist/pricing/hooks/use-price-schedules.d.ts +28 -0
  375. package/dist/pricing/hooks/use-price-schedules.d.ts.map +1 -0
  376. package/dist/pricing/hooks/use-price-schedules.js +12 -0
  377. package/dist/pricing/hooks/use-price-schedules.js.map +1 -0
  378. package/dist/pricing/hooks/use-pricing-categories.d.ts +30 -0
  379. package/dist/pricing/hooks/use-pricing-categories.d.ts.map +1 -0
  380. package/dist/pricing/hooks/use-pricing-categories.js +36 -0
  381. package/dist/pricing/hooks/use-pricing-categories.js.map +1 -0
  382. package/dist/pricing/hooks/use-pricing-category-dependencies.d.ts +22 -0
  383. package/dist/pricing/hooks/use-pricing-category-dependencies.d.ts.map +1 -0
  384. package/dist/pricing/hooks/use-pricing-category-dependencies.js +33 -0
  385. package/dist/pricing/hooks/use-pricing-category-dependencies.js.map +1 -0
  386. package/dist/pricing/hooks/use-pricing-category-dependency-mutation.d.ts +43 -0
  387. package/dist/pricing/hooks/use-pricing-category-dependency-mutation.d.ts.map +1 -0
  388. package/dist/pricing/hooks/use-pricing-category-dependency-mutation.js +44 -0
  389. package/dist/pricing/hooks/use-pricing-category-dependency-mutation.js.map +1 -0
  390. package/dist/pricing/hooks/use-pricing-category-dependency.d.ts +16 -0
  391. package/dist/pricing/hooks/use-pricing-category-dependency.d.ts.map +1 -0
  392. package/dist/pricing/hooks/use-pricing-category-dependency.js +19 -0
  393. package/dist/pricing/hooks/use-pricing-category-dependency.js.map +1 -0
  394. package/dist/pricing/hooks/use-pricing-category-mutation.d.ts +67 -0
  395. package/dist/pricing/hooks/use-pricing-category-mutation.d.ts.map +1 -0
  396. package/dist/pricing/hooks/use-pricing-category-mutation.js +38 -0
  397. package/dist/pricing/hooks/use-pricing-category-mutation.js.map +1 -0
  398. package/dist/pricing/hooks/use-pricing-category.d.ts +24 -0
  399. package/dist/pricing/hooks/use-pricing-category.d.ts.map +1 -0
  400. package/dist/pricing/hooks/use-pricing-category.js +13 -0
  401. package/dist/pricing/hooks/use-pricing-category.js.map +1 -0
  402. package/dist/pricing/i18n/en.d.ts +479 -0
  403. package/dist/pricing/i18n/en.d.ts.map +1 -0
  404. package/dist/pricing/i18n/en.js +479 -0
  405. package/dist/pricing/i18n/en.js.map +1 -0
  406. package/dist/pricing/i18n/index.d.ts +5 -0
  407. package/dist/pricing/i18n/index.d.ts.map +1 -0
  408. package/dist/pricing/i18n/index.js +4 -0
  409. package/dist/pricing/i18n/index.js.map +1 -0
  410. package/dist/pricing/i18n/messages.d.ts +437 -0
  411. package/dist/pricing/i18n/messages.d.ts.map +1 -0
  412. package/dist/pricing/i18n/messages.js +18 -0
  413. package/dist/pricing/i18n/messages.js.map +1 -0
  414. package/dist/pricing/i18n/provider.d.ts +980 -0
  415. package/dist/pricing/i18n/provider.d.ts.map +1 -0
  416. package/dist/pricing/i18n/provider.js +45 -0
  417. package/dist/pricing/i18n/provider.js.map +1 -0
  418. package/dist/pricing/i18n/ro.d.ts +479 -0
  419. package/dist/pricing/i18n/ro.d.ts.map +1 -0
  420. package/dist/pricing/i18n/ro.js +479 -0
  421. package/dist/pricing/i18n/ro.js.map +1 -0
  422. package/dist/pricing/index.d.ts +7 -0
  423. package/dist/pricing/index.d.ts.map +1 -0
  424. package/dist/pricing/index.js +7 -0
  425. package/dist/pricing/index.js.map +1 -0
  426. package/dist/pricing/provider.d.ts +2 -0
  427. package/dist/pricing/provider.d.ts.map +1 -0
  428. package/dist/pricing/provider.js +2 -0
  429. package/dist/pricing/provider.js.map +1 -0
  430. package/dist/pricing/query-keys.d.ts +155 -0
  431. package/dist/pricing/query-keys.d.ts.map +1 -0
  432. package/dist/pricing/query-keys.js +46 -0
  433. package/dist/pricing/query-keys.js.map +1 -0
  434. package/dist/pricing/query-options/cancellation.d.ts +228 -0
  435. package/dist/pricing/query-options/cancellation.d.ts.map +1 -0
  436. package/dist/pricing/query-options/cancellation.js +61 -0
  437. package/dist/pricing/query-options/cancellation.js.map +1 -0
  438. package/dist/pricing/query-options/categories.d.ts +373 -0
  439. package/dist/pricing/query-options/categories.d.ts.map +1 -0
  440. package/dist/pricing/query-options/categories.js +92 -0
  441. package/dist/pricing/query-options/categories.js.map +1 -0
  442. package/dist/pricing/query-options/departure-overrides.d.ts +127 -0
  443. package/dist/pricing/query-options/departure-overrides.d.ts.map +1 -0
  444. package/dist/pricing/query-options/departure-overrides.js +40 -0
  445. package/dist/pricing/query-options/departure-overrides.js.map +1 -0
  446. package/dist/pricing/query-options/logistics.d.ts +542 -0
  447. package/dist/pricing/query-options/logistics.d.ts.map +1 -0
  448. package/dist/pricing/query-options/logistics.js +137 -0
  449. package/dist/pricing/query-options/logistics.js.map +1 -0
  450. package/dist/pricing/query-options/option-rules.d.ts +449 -0
  451. package/dist/pricing/query-options/option-rules.d.ts.map +1 -0
  452. package/dist/pricing/query-options/option-rules.js +108 -0
  453. package/dist/pricing/query-options/option-rules.js.map +1 -0
  454. package/dist/pricing/query-options/schedules.d.ts +143 -0
  455. package/dist/pricing/query-options/schedules.d.ts.map +1 -0
  456. package/dist/pricing/query-options/schedules.js +36 -0
  457. package/dist/pricing/query-options/schedules.js.map +1 -0
  458. package/dist/pricing/query-options.d.ts +7 -0
  459. package/dist/pricing/query-options.d.ts.map +1 -0
  460. package/dist/pricing/query-options.js +7 -0
  461. package/dist/pricing/query-options.js.map +1 -0
  462. package/dist/pricing/schemas.d.ts +900 -0
  463. package/dist/pricing/schemas.d.ts.map +1 -0
  464. package/dist/pricing/schemas.js +235 -0
  465. package/dist/pricing/schemas.js.map +1 -0
  466. package/dist/pricing/ui.d.ts +27 -0
  467. package/dist/pricing/ui.d.ts.map +1 -0
  468. package/dist/pricing/ui.js +26 -0
  469. package/dist/pricing/ui.js.map +1 -0
  470. package/dist/pricing.d.ts +2 -0
  471. package/dist/pricing.d.ts.map +1 -0
  472. package/dist/pricing.js +2 -0
  473. package/dist/pricing.js.map +1 -0
  474. package/dist/promotions/admin/index.d.ts +25 -0
  475. package/dist/promotions/admin/index.d.ts.map +1 -0
  476. package/dist/promotions/admin/index.js +45 -0
  477. package/dist/promotions/admin/index.js.map +1 -0
  478. package/dist/promotions/i18n/en.d.ts +3 -0
  479. package/dist/promotions/i18n/en.d.ts.map +1 -0
  480. package/dist/promotions/i18n/en.js +152 -0
  481. package/dist/promotions/i18n/en.js.map +1 -0
  482. package/dist/promotions/i18n/index.d.ts +5 -0
  483. package/dist/promotions/i18n/index.d.ts.map +1 -0
  484. package/dist/promotions/i18n/index.js +4 -0
  485. package/dist/promotions/i18n/index.js.map +1 -0
  486. package/dist/promotions/i18n/messages.d.ts +137 -0
  487. package/dist/promotions/i18n/messages.d.ts.map +1 -0
  488. package/dist/promotions/i18n/messages.js +2 -0
  489. package/dist/promotions/i18n/messages.js.map +1 -0
  490. package/dist/promotions/i18n/provider.d.ts +26 -0
  491. package/dist/promotions/i18n/provider.d.ts.map +1 -0
  492. package/dist/promotions/i18n/provider.js +45 -0
  493. package/dist/promotions/i18n/provider.js.map +1 -0
  494. package/dist/promotions/i18n/ro.d.ts +3 -0
  495. package/dist/promotions/i18n/ro.d.ts.map +1 -0
  496. package/dist/promotions/i18n/ro.js +152 -0
  497. package/dist/promotions/i18n/ro.js.map +1 -0
  498. package/dist/promotions/index.d.ts +736 -0
  499. package/dist/promotions/index.d.ts.map +1 -0
  500. package/dist/promotions/index.js +175 -0
  501. package/dist/promotions/index.js.map +1 -0
  502. package/dist/promotions/promotion-dialog.d.ts +9 -0
  503. package/dist/promotions/promotion-dialog.d.ts.map +1 -0
  504. package/dist/promotions/promotion-dialog.js +255 -0
  505. package/dist/promotions/promotion-dialog.js.map +1 -0
  506. package/dist/promotions/promotions-page-utils.d.ts +14 -0
  507. package/dist/promotions/promotions-page-utils.d.ts.map +1 -0
  508. package/dist/promotions/promotions-page-utils.js +117 -0
  509. package/dist/promotions/promotions-page-utils.js.map +1 -0
  510. package/dist/promotions/promotions-page.d.ts +77 -0
  511. package/dist/promotions/promotions-page.d.ts.map +1 -0
  512. package/dist/promotions/promotions-page.js +121 -0
  513. package/dist/promotions/promotions-page.js.map +1 -0
  514. package/dist/promotions/ui.d.ts +5 -0
  515. package/dist/promotions/ui.d.ts.map +1 -0
  516. package/dist/promotions/ui.js +4 -0
  517. package/dist/promotions/ui.js.map +1 -0
  518. package/dist/promotions-admin.d.ts +2 -0
  519. package/dist/promotions-admin.d.ts.map +1 -0
  520. package/dist/promotions-admin.js +2 -0
  521. package/dist/promotions-admin.js.map +1 -0
  522. package/dist/promotions.d.ts +2 -0
  523. package/dist/promotions.d.ts.map +1 -0
  524. package/dist/promotions.js +2 -0
  525. package/dist/promotions.js.map +1 -0
  526. package/dist/sellability/client.d.ts +14 -0
  527. package/dist/sellability/client.d.ts.map +1 -0
  528. package/dist/sellability/client.js +59 -0
  529. package/dist/sellability/client.js.map +1 -0
  530. package/dist/sellability/components/channel-combobox.d.ts +9 -0
  531. package/dist/sellability/components/channel-combobox.d.ts.map +1 -0
  532. package/dist/sellability/components/channel-combobox.js +54 -0
  533. package/dist/sellability/components/channel-combobox.js.map +1 -0
  534. package/dist/sellability/components/market-combobox.d.ts +9 -0
  535. package/dist/sellability/components/market-combobox.d.ts.map +1 -0
  536. package/dist/sellability/components/market-combobox.js +46 -0
  537. package/dist/sellability/components/market-combobox.js.map +1 -0
  538. package/dist/sellability/components/policy-dialog.d.ts +10 -0
  539. package/dist/sellability/components/policy-dialog.d.ts.map +1 -0
  540. package/dist/sellability/components/policy-dialog.js +149 -0
  541. package/dist/sellability/components/policy-dialog.js.map +1 -0
  542. package/dist/sellability/components/product-combobox.d.ts +9 -0
  543. package/dist/sellability/components/product-combobox.d.ts.map +1 -0
  544. package/dist/sellability/components/product-combobox.js +46 -0
  545. package/dist/sellability/components/product-combobox.js.map +1 -0
  546. package/dist/sellability/components/product-option-combobox.d.ts +10 -0
  547. package/dist/sellability/components/product-option-combobox.d.ts.map +1 -0
  548. package/dist/sellability/components/product-option-combobox.js +54 -0
  549. package/dist/sellability/components/product-option-combobox.js.map +1 -0
  550. package/dist/sellability/hooks/index.d.ts +4 -0
  551. package/dist/sellability/hooks/index.d.ts.map +1 -0
  552. package/dist/sellability/hooks/index.js +4 -0
  553. package/dist/sellability/hooks/index.js.map +1 -0
  554. package/dist/sellability/hooks/use-sellability-policies.d.ts +28 -0
  555. package/dist/sellability/hooks/use-sellability-policies.d.ts.map +1 -0
  556. package/dist/sellability/hooks/use-sellability-policies.js +13 -0
  557. package/dist/sellability/hooks/use-sellability-policies.js.map +1 -0
  558. package/dist/sellability/hooks/use-sellability-policy-mutation.d.ts +63 -0
  559. package/dist/sellability/hooks/use-sellability-policy-mutation.d.ts.map +1 -0
  560. package/dist/sellability/hooks/use-sellability-policy-mutation.js +41 -0
  561. package/dist/sellability/hooks/use-sellability-policy-mutation.js.map +1 -0
  562. package/dist/sellability/hooks/use-sellability-policy.d.ts +22 -0
  563. package/dist/sellability/hooks/use-sellability-policy.d.ts.map +1 -0
  564. package/dist/sellability/hooks/use-sellability-policy.js +13 -0
  565. package/dist/sellability/hooks/use-sellability-policy.js.map +1 -0
  566. package/dist/sellability/i18n/en.d.ts +102 -0
  567. package/dist/sellability/i18n/en.d.ts.map +1 -0
  568. package/dist/sellability/i18n/en.js +102 -0
  569. package/dist/sellability/i18n/en.js.map +1 -0
  570. package/dist/sellability/i18n/index.d.ts +5 -0
  571. package/dist/sellability/i18n/index.d.ts.map +1 -0
  572. package/dist/sellability/i18n/index.js +4 -0
  573. package/dist/sellability/i18n/index.js.map +1 -0
  574. package/dist/sellability/i18n/messages.d.ts +71 -0
  575. package/dist/sellability/i18n/messages.d.ts.map +1 -0
  576. package/dist/sellability/i18n/messages.js +2 -0
  577. package/dist/sellability/i18n/messages.js.map +1 -0
  578. package/dist/sellability/i18n/provider.d.ts +226 -0
  579. package/dist/sellability/i18n/provider.d.ts.map +1 -0
  580. package/dist/sellability/i18n/provider.js +45 -0
  581. package/dist/sellability/i18n/provider.js.map +1 -0
  582. package/dist/sellability/i18n/ro.d.ts +102 -0
  583. package/dist/sellability/i18n/ro.d.ts.map +1 -0
  584. package/dist/sellability/i18n/ro.js +102 -0
  585. package/dist/sellability/i18n/ro.js.map +1 -0
  586. package/dist/sellability/index.d.ts +7 -0
  587. package/dist/sellability/index.d.ts.map +1 -0
  588. package/dist/sellability/index.js +7 -0
  589. package/dist/sellability/index.js.map +1 -0
  590. package/dist/sellability/provider.d.ts +2 -0
  591. package/dist/sellability/provider.d.ts.map +1 -0
  592. package/dist/sellability/provider.js +2 -0
  593. package/dist/sellability/provider.js.map +1 -0
  594. package/dist/sellability/query-keys.d.ts +20 -0
  595. package/dist/sellability/query-keys.d.ts.map +1 -0
  596. package/dist/sellability/query-keys.js +7 -0
  597. package/dist/sellability/query-keys.js.map +1 -0
  598. package/dist/sellability/query-options.d.ts +175 -0
  599. package/dist/sellability/query-options.d.ts.map +1 -0
  600. package/dist/sellability/query-options.js +32 -0
  601. package/dist/sellability/query-options.js.map +1 -0
  602. package/dist/sellability/schemas.d.ts +121 -0
  603. package/dist/sellability/schemas.d.ts.map +1 -0
  604. package/dist/sellability/schemas.js +27 -0
  605. package/dist/sellability/schemas.js.map +1 -0
  606. package/dist/sellability/ui.d.ts +7 -0
  607. package/dist/sellability/ui.d.ts.map +1 -0
  608. package/dist/sellability/ui.js +7 -0
  609. package/dist/sellability/ui.js.map +1 -0
  610. package/dist/sellability.d.ts +2 -0
  611. package/dist/sellability.d.ts.map +1 -0
  612. package/dist/sellability.js +2 -0
  613. package/dist/sellability.js.map +1 -0
  614. package/package.json +306 -0
  615. package/src/markets/styles.css +12 -0
  616. package/src/pricing/styles.css +12 -0
  617. package/src/sellability/styles.css +12 -0
  618. package/src/styles.css +9 -0
@@ -0,0 +1,542 @@
1
+ import { type FetchWithValidationOptions } from "../client.js";
2
+ import type { UseDropoffPriceRulesOptions } from "../hooks/use-dropoff-price-rules.js";
3
+ import type { UseExtraPriceRulesOptions } from "../hooks/use-extra-price-rules.js";
4
+ import type { UseOptionStartTimeRulesOptions } from "../hooks/use-option-start-time-rules.js";
5
+ import type { UsePickupPriceRulesOptions } from "../hooks/use-pickup-price-rules.js";
6
+ export declare function getPickupPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UsePickupPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
7
+ data: {
8
+ id: string;
9
+ optionPriceRuleId: string;
10
+ optionId: string;
11
+ pickupPointId: string;
12
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
13
+ sellAmountCents: number | null;
14
+ costAmountCents: number | null;
15
+ active: boolean;
16
+ sortOrder: number;
17
+ notes: string | null;
18
+ }[];
19
+ total: number;
20
+ limit: number;
21
+ offset: number;
22
+ }, Error, {
23
+ data: {
24
+ id: string;
25
+ optionPriceRuleId: string;
26
+ optionId: string;
27
+ pickupPointId: string;
28
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
29
+ sellAmountCents: number | null;
30
+ costAmountCents: number | null;
31
+ active: boolean;
32
+ sortOrder: number;
33
+ notes: string | null;
34
+ }[];
35
+ total: number;
36
+ limit: number;
37
+ offset: number;
38
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters]>, "queryFn"> & {
39
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
40
+ data: {
41
+ id: string;
42
+ optionPriceRuleId: string;
43
+ optionId: string;
44
+ pickupPointId: string;
45
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
46
+ sellAmountCents: number | null;
47
+ costAmountCents: number | null;
48
+ active: boolean;
49
+ sortOrder: number;
50
+ notes: string | null;
51
+ }[];
52
+ total: number;
53
+ limit: number;
54
+ offset: number;
55
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters], never> | undefined;
56
+ } & {
57
+ queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "list", import("../query-keys.js").PickupPriceRulesListFilters] & {
58
+ [dataTagSymbol]: {
59
+ data: {
60
+ id: string;
61
+ optionPriceRuleId: string;
62
+ optionId: string;
63
+ pickupPointId: string;
64
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
65
+ sellAmountCents: number | null;
66
+ costAmountCents: number | null;
67
+ active: boolean;
68
+ sortOrder: number;
69
+ notes: string | null;
70
+ }[];
71
+ total: number;
72
+ limit: number;
73
+ offset: number;
74
+ };
75
+ [dataTagErrorSymbol]: Error;
76
+ };
77
+ };
78
+ export declare function getPickupPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
79
+ id: string;
80
+ optionPriceRuleId: string;
81
+ optionId: string;
82
+ pickupPointId: string;
83
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
84
+ sellAmountCents: number | null;
85
+ costAmountCents: number | null;
86
+ active: boolean;
87
+ sortOrder: number;
88
+ notes: string | null;
89
+ }, Error, {
90
+ id: string;
91
+ optionPriceRuleId: string;
92
+ optionId: string;
93
+ pickupPointId: string;
94
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
95
+ sellAmountCents: number | null;
96
+ costAmountCents: number | null;
97
+ active: boolean;
98
+ sortOrder: number;
99
+ notes: string | null;
100
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string]>, "queryFn"> & {
101
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
102
+ id: string;
103
+ optionPriceRuleId: string;
104
+ optionId: string;
105
+ pickupPointId: string;
106
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
107
+ sellAmountCents: number | null;
108
+ costAmountCents: number | null;
109
+ active: boolean;
110
+ sortOrder: number;
111
+ notes: string | null;
112
+ }, readonly ["voyant", "pricing", "pickup-price-rules", "detail", string], never> | undefined;
113
+ } & {
114
+ queryKey: readonly ["voyant", "pricing", "pickup-price-rules", "detail", string] & {
115
+ [dataTagSymbol]: {
116
+ id: string;
117
+ optionPriceRuleId: string;
118
+ optionId: string;
119
+ pickupPointId: string;
120
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
121
+ sellAmountCents: number | null;
122
+ costAmountCents: number | null;
123
+ active: boolean;
124
+ sortOrder: number;
125
+ notes: string | null;
126
+ };
127
+ [dataTagErrorSymbol]: Error;
128
+ };
129
+ };
130
+ export declare function getDropoffPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseDropoffPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
131
+ data: {
132
+ id: string;
133
+ optionPriceRuleId: string;
134
+ optionId: string;
135
+ facilityId: string | null;
136
+ dropoffCode: string | null;
137
+ dropoffName: string;
138
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
139
+ sellAmountCents: number | null;
140
+ costAmountCents: number | null;
141
+ active: boolean;
142
+ sortOrder: number;
143
+ notes: string | null;
144
+ }[];
145
+ total: number;
146
+ limit: number;
147
+ offset: number;
148
+ }, Error, {
149
+ data: {
150
+ id: string;
151
+ optionPriceRuleId: string;
152
+ optionId: string;
153
+ facilityId: string | null;
154
+ dropoffCode: string | null;
155
+ dropoffName: string;
156
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
157
+ sellAmountCents: number | null;
158
+ costAmountCents: number | null;
159
+ active: boolean;
160
+ sortOrder: number;
161
+ notes: string | null;
162
+ }[];
163
+ total: number;
164
+ limit: number;
165
+ offset: number;
166
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters]>, "queryFn"> & {
167
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
168
+ data: {
169
+ id: string;
170
+ optionPriceRuleId: string;
171
+ optionId: string;
172
+ facilityId: string | null;
173
+ dropoffCode: string | null;
174
+ dropoffName: string;
175
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
176
+ sellAmountCents: number | null;
177
+ costAmountCents: number | null;
178
+ active: boolean;
179
+ sortOrder: number;
180
+ notes: string | null;
181
+ }[];
182
+ total: number;
183
+ limit: number;
184
+ offset: number;
185
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters], never> | undefined;
186
+ } & {
187
+ queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "list", import("../query-keys.js").DropoffPriceRulesListFilters] & {
188
+ [dataTagSymbol]: {
189
+ data: {
190
+ id: string;
191
+ optionPriceRuleId: string;
192
+ optionId: string;
193
+ facilityId: string | null;
194
+ dropoffCode: string | null;
195
+ dropoffName: string;
196
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
197
+ sellAmountCents: number | null;
198
+ costAmountCents: number | null;
199
+ active: boolean;
200
+ sortOrder: number;
201
+ notes: string | null;
202
+ }[];
203
+ total: number;
204
+ limit: number;
205
+ offset: number;
206
+ };
207
+ [dataTagErrorSymbol]: Error;
208
+ };
209
+ };
210
+ export declare function getDropoffPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
211
+ id: string;
212
+ optionPriceRuleId: string;
213
+ optionId: string;
214
+ facilityId: string | null;
215
+ dropoffCode: string | null;
216
+ dropoffName: string;
217
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
218
+ sellAmountCents: number | null;
219
+ costAmountCents: number | null;
220
+ active: boolean;
221
+ sortOrder: number;
222
+ notes: string | null;
223
+ }, Error, {
224
+ id: string;
225
+ optionPriceRuleId: string;
226
+ optionId: string;
227
+ facilityId: string | null;
228
+ dropoffCode: string | null;
229
+ dropoffName: string;
230
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
231
+ sellAmountCents: number | null;
232
+ costAmountCents: number | null;
233
+ active: boolean;
234
+ sortOrder: number;
235
+ notes: string | null;
236
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string]>, "queryFn"> & {
237
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
238
+ id: string;
239
+ optionPriceRuleId: string;
240
+ optionId: string;
241
+ facilityId: string | null;
242
+ dropoffCode: string | null;
243
+ dropoffName: string;
244
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
245
+ sellAmountCents: number | null;
246
+ costAmountCents: number | null;
247
+ active: boolean;
248
+ sortOrder: number;
249
+ notes: string | null;
250
+ }, readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string], never> | undefined;
251
+ } & {
252
+ queryKey: readonly ["voyant", "pricing", "dropoff-price-rules", "detail", string] & {
253
+ [dataTagSymbol]: {
254
+ id: string;
255
+ optionPriceRuleId: string;
256
+ optionId: string;
257
+ facilityId: string | null;
258
+ dropoffCode: string | null;
259
+ dropoffName: string;
260
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
261
+ sellAmountCents: number | null;
262
+ costAmountCents: number | null;
263
+ active: boolean;
264
+ sortOrder: number;
265
+ notes: string | null;
266
+ };
267
+ [dataTagErrorSymbol]: Error;
268
+ };
269
+ };
270
+ export declare function getExtraPriceRulesQueryOptions(client: FetchWithValidationOptions, options?: UseExtraPriceRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
271
+ data: {
272
+ id: string;
273
+ optionPriceRuleId: string;
274
+ optionId: string;
275
+ productExtraId: string | null;
276
+ optionExtraConfigId: string | null;
277
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
278
+ sellAmountCents: number | null;
279
+ costAmountCents: number | null;
280
+ active: boolean;
281
+ sortOrder: number;
282
+ notes: string | null;
283
+ metadata?: Record<string, unknown> | null | undefined;
284
+ }[];
285
+ total: number;
286
+ limit: number;
287
+ offset: number;
288
+ }, Error, {
289
+ data: {
290
+ id: string;
291
+ optionPriceRuleId: string;
292
+ optionId: string;
293
+ productExtraId: string | null;
294
+ optionExtraConfigId: string | null;
295
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
296
+ sellAmountCents: number | null;
297
+ costAmountCents: number | null;
298
+ active: boolean;
299
+ sortOrder: number;
300
+ notes: string | null;
301
+ metadata?: Record<string, unknown> | null | undefined;
302
+ }[];
303
+ total: number;
304
+ limit: number;
305
+ offset: number;
306
+ }, readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters]>, "queryFn"> & {
307
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
308
+ data: {
309
+ id: string;
310
+ optionPriceRuleId: string;
311
+ optionId: string;
312
+ productExtraId: string | null;
313
+ optionExtraConfigId: string | null;
314
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
315
+ sellAmountCents: number | null;
316
+ costAmountCents: number | null;
317
+ active: boolean;
318
+ sortOrder: number;
319
+ notes: string | null;
320
+ metadata?: Record<string, unknown> | null | undefined;
321
+ }[];
322
+ total: number;
323
+ limit: number;
324
+ offset: number;
325
+ }, readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters], never> | undefined;
326
+ } & {
327
+ queryKey: readonly ["voyant", "pricing", "extra-price-rules", "list", import("../query-keys.js").ExtraPriceRulesListFilters] & {
328
+ [dataTagSymbol]: {
329
+ data: {
330
+ id: string;
331
+ optionPriceRuleId: string;
332
+ optionId: string;
333
+ productExtraId: string | null;
334
+ optionExtraConfigId: string | null;
335
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
336
+ sellAmountCents: number | null;
337
+ costAmountCents: number | null;
338
+ active: boolean;
339
+ sortOrder: number;
340
+ notes: string | null;
341
+ metadata?: Record<string, unknown> | null | undefined;
342
+ }[];
343
+ total: number;
344
+ limit: number;
345
+ offset: number;
346
+ };
347
+ [dataTagErrorSymbol]: Error;
348
+ };
349
+ };
350
+ export declare function getExtraPriceRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
351
+ id: string;
352
+ optionPriceRuleId: string;
353
+ optionId: string;
354
+ productExtraId: string | null;
355
+ optionExtraConfigId: string | null;
356
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
357
+ sellAmountCents: number | null;
358
+ costAmountCents: number | null;
359
+ active: boolean;
360
+ sortOrder: number;
361
+ notes: string | null;
362
+ metadata?: Record<string, unknown> | null | undefined;
363
+ }, Error, {
364
+ id: string;
365
+ optionPriceRuleId: string;
366
+ optionId: string;
367
+ productExtraId: string | null;
368
+ optionExtraConfigId: string | null;
369
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
370
+ sellAmountCents: number | null;
371
+ costAmountCents: number | null;
372
+ active: boolean;
373
+ sortOrder: number;
374
+ notes: string | null;
375
+ metadata?: Record<string, unknown> | null | undefined;
376
+ }, readonly ["voyant", "pricing", "extra-price-rules", "detail", string]>, "queryFn"> & {
377
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
378
+ id: string;
379
+ optionPriceRuleId: string;
380
+ optionId: string;
381
+ productExtraId: string | null;
382
+ optionExtraConfigId: string | null;
383
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
384
+ sellAmountCents: number | null;
385
+ costAmountCents: number | null;
386
+ active: boolean;
387
+ sortOrder: number;
388
+ notes: string | null;
389
+ metadata?: Record<string, unknown> | null | undefined;
390
+ }, readonly ["voyant", "pricing", "extra-price-rules", "detail", string], never> | undefined;
391
+ } & {
392
+ queryKey: readonly ["voyant", "pricing", "extra-price-rules", "detail", string] & {
393
+ [dataTagSymbol]: {
394
+ id: string;
395
+ optionPriceRuleId: string;
396
+ optionId: string;
397
+ productExtraId: string | null;
398
+ optionExtraConfigId: string | null;
399
+ pricingMode: "on_request" | "unavailable" | "per_person" | "per_booking" | "included";
400
+ sellAmountCents: number | null;
401
+ costAmountCents: number | null;
402
+ active: boolean;
403
+ sortOrder: number;
404
+ notes: string | null;
405
+ metadata?: Record<string, unknown> | null | undefined;
406
+ };
407
+ [dataTagErrorSymbol]: Error;
408
+ };
409
+ };
410
+ export declare function getOptionStartTimeRulesQueryOptions(client: FetchWithValidationOptions, options?: UseOptionStartTimeRulesOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
411
+ data: {
412
+ id: string;
413
+ optionPriceRuleId: string;
414
+ optionId: string;
415
+ startTimeId: string;
416
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
417
+ adjustmentType: "fixed" | "percentage" | null;
418
+ sellAdjustmentCents: number | null;
419
+ costAdjustmentCents: number | null;
420
+ adjustmentBasisPoints: number | null;
421
+ active: boolean;
422
+ notes: string | null;
423
+ }[];
424
+ total: number;
425
+ limit: number;
426
+ offset: number;
427
+ }, Error, {
428
+ data: {
429
+ id: string;
430
+ optionPriceRuleId: string;
431
+ optionId: string;
432
+ startTimeId: string;
433
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
434
+ adjustmentType: "fixed" | "percentage" | null;
435
+ sellAdjustmentCents: number | null;
436
+ costAdjustmentCents: number | null;
437
+ adjustmentBasisPoints: number | null;
438
+ active: boolean;
439
+ notes: string | null;
440
+ }[];
441
+ total: number;
442
+ limit: number;
443
+ offset: number;
444
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters]>, "queryFn"> & {
445
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
446
+ data: {
447
+ id: string;
448
+ optionPriceRuleId: string;
449
+ optionId: string;
450
+ startTimeId: string;
451
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
452
+ adjustmentType: "fixed" | "percentage" | null;
453
+ sellAdjustmentCents: number | null;
454
+ costAdjustmentCents: number | null;
455
+ adjustmentBasisPoints: number | null;
456
+ active: boolean;
457
+ notes: string | null;
458
+ }[];
459
+ total: number;
460
+ limit: number;
461
+ offset: number;
462
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters], never> | undefined;
463
+ } & {
464
+ queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "list", import("../query-keys.js").OptionStartTimeRulesListFilters] & {
465
+ [dataTagSymbol]: {
466
+ data: {
467
+ id: string;
468
+ optionPriceRuleId: string;
469
+ optionId: string;
470
+ startTimeId: string;
471
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
472
+ adjustmentType: "fixed" | "percentage" | null;
473
+ sellAdjustmentCents: number | null;
474
+ costAdjustmentCents: number | null;
475
+ adjustmentBasisPoints: number | null;
476
+ active: boolean;
477
+ notes: string | null;
478
+ }[];
479
+ total: number;
480
+ limit: number;
481
+ offset: number;
482
+ };
483
+ [dataTagErrorSymbol]: Error;
484
+ };
485
+ };
486
+ export declare function getOptionStartTimeRuleQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
487
+ id: string;
488
+ optionPriceRuleId: string;
489
+ optionId: string;
490
+ startTimeId: string;
491
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
492
+ adjustmentType: "fixed" | "percentage" | null;
493
+ sellAdjustmentCents: number | null;
494
+ costAdjustmentCents: number | null;
495
+ adjustmentBasisPoints: number | null;
496
+ active: boolean;
497
+ notes: string | null;
498
+ }, Error, {
499
+ id: string;
500
+ optionPriceRuleId: string;
501
+ optionId: string;
502
+ startTimeId: string;
503
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
504
+ adjustmentType: "fixed" | "percentage" | null;
505
+ sellAdjustmentCents: number | null;
506
+ costAdjustmentCents: number | null;
507
+ adjustmentBasisPoints: number | null;
508
+ active: boolean;
509
+ notes: string | null;
510
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string]>, "queryFn"> & {
511
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
512
+ id: string;
513
+ optionPriceRuleId: string;
514
+ optionId: string;
515
+ startTimeId: string;
516
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
517
+ adjustmentType: "fixed" | "percentage" | null;
518
+ sellAdjustmentCents: number | null;
519
+ costAdjustmentCents: number | null;
520
+ adjustmentBasisPoints: number | null;
521
+ active: boolean;
522
+ notes: string | null;
523
+ }, readonly ["voyant", "pricing", "option-start-time-rules", "detail", string], never> | undefined;
524
+ } & {
525
+ queryKey: readonly ["voyant", "pricing", "option-start-time-rules", "detail", string] & {
526
+ [dataTagSymbol]: {
527
+ id: string;
528
+ optionPriceRuleId: string;
529
+ optionId: string;
530
+ startTimeId: string;
531
+ ruleMode: "override" | "included" | "excluded" | "adjustment";
532
+ adjustmentType: "fixed" | "percentage" | null;
533
+ sellAdjustmentCents: number | null;
534
+ costAdjustmentCents: number | null;
535
+ adjustmentBasisPoints: number | null;
536
+ active: boolean;
537
+ notes: string | null;
538
+ };
539
+ [dataTagErrorSymbol]: Error;
540
+ };
541
+ };
542
+ //# sourceMappingURL=logistics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logistics.d.ts","sourceRoot":"","sources":["../../../src/pricing/query-options/logistics.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,cAAc,CAAA;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AACtF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAClF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAA;AAC7F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAapF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBzC;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY5F;AAED,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,2BAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB1C;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY7F;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BxC;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY3F;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB7C;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYhG"}
@@ -0,0 +1,137 @@
1
+ "use client";
2
+ import { queryOptions } from "@tanstack/react-query";
3
+ import { fetchWithValidation } from "../client.js";
4
+ import { pricingQueryKeys } from "../query-keys.js";
5
+ import { dropoffPriceRuleListResponse, dropoffPriceRuleSingleResponse, extraPriceRuleListResponse, extraPriceRuleSingleResponse, optionStartTimeRuleListResponse, optionStartTimeRuleSingleResponse, pickupPriceRuleListResponse, pickupPriceRuleSingleResponse, } from "../schemas.js";
6
+ export function getPickupPriceRulesQueryOptions(client, options = {}) {
7
+ const { enabled: _enabled = true, ...filters } = options;
8
+ return queryOptions({
9
+ queryKey: pricingQueryKeys.pickupPriceRulesList(filters),
10
+ queryFn: () => {
11
+ const params = new URLSearchParams();
12
+ if (filters.optionPriceRuleId)
13
+ params.set("optionPriceRuleId", filters.optionPriceRuleId);
14
+ if (filters.optionId)
15
+ params.set("optionId", filters.optionId);
16
+ if (filters.pickupPointId)
17
+ params.set("pickupPointId", filters.pickupPointId);
18
+ if (filters.active !== undefined)
19
+ params.set("active", String(filters.active));
20
+ if (filters.limit !== undefined)
21
+ params.set("limit", String(filters.limit));
22
+ if (filters.offset !== undefined)
23
+ params.set("offset", String(filters.offset));
24
+ const qs = params.toString();
25
+ return fetchWithValidation(`/v1/pricing/pickup-price-rules${qs ? `?${qs}` : ""}`, pickupPriceRuleListResponse, client);
26
+ },
27
+ });
28
+ }
29
+ export function getPickupPriceRuleQueryOptions(client, id) {
30
+ return queryOptions({
31
+ queryKey: pricingQueryKeys.pickupPriceRule(id),
32
+ queryFn: async () => {
33
+ const { data } = await fetchWithValidation(`/v1/pricing/pickup-price-rules/${id}`, pickupPriceRuleSingleResponse, client);
34
+ return data;
35
+ },
36
+ });
37
+ }
38
+ export function getDropoffPriceRulesQueryOptions(client, options = {}) {
39
+ const { enabled: _enabled = true, ...filters } = options;
40
+ return queryOptions({
41
+ queryKey: pricingQueryKeys.dropoffPriceRulesList(filters),
42
+ queryFn: () => {
43
+ const params = new URLSearchParams();
44
+ if (filters.optionPriceRuleId)
45
+ params.set("optionPriceRuleId", filters.optionPriceRuleId);
46
+ if (filters.optionId)
47
+ params.set("optionId", filters.optionId);
48
+ if (filters.facilityId)
49
+ params.set("facilityId", filters.facilityId);
50
+ if (filters.active !== undefined)
51
+ params.set("active", String(filters.active));
52
+ if (filters.limit !== undefined)
53
+ params.set("limit", String(filters.limit));
54
+ if (filters.offset !== undefined)
55
+ params.set("offset", String(filters.offset));
56
+ const qs = params.toString();
57
+ return fetchWithValidation(`/v1/pricing/dropoff-price-rules${qs ? `?${qs}` : ""}`, dropoffPriceRuleListResponse, client);
58
+ },
59
+ });
60
+ }
61
+ export function getDropoffPriceRuleQueryOptions(client, id) {
62
+ return queryOptions({
63
+ queryKey: pricingQueryKeys.dropoffPriceRule(id),
64
+ queryFn: async () => {
65
+ const { data } = await fetchWithValidation(`/v1/pricing/dropoff-price-rules/${id}`, dropoffPriceRuleSingleResponse, client);
66
+ return data;
67
+ },
68
+ });
69
+ }
70
+ export function getExtraPriceRulesQueryOptions(client, options = {}) {
71
+ const { enabled: _enabled = true, ...filters } = options;
72
+ return queryOptions({
73
+ queryKey: pricingQueryKeys.extraPriceRulesList(filters),
74
+ queryFn: () => {
75
+ const params = new URLSearchParams();
76
+ if (filters.optionPriceRuleId)
77
+ params.set("optionPriceRuleId", filters.optionPriceRuleId);
78
+ if (filters.optionId)
79
+ params.set("optionId", filters.optionId);
80
+ if (filters.productExtraId)
81
+ params.set("productExtraId", filters.productExtraId);
82
+ if (filters.optionExtraConfigId) {
83
+ params.set("optionExtraConfigId", filters.optionExtraConfigId);
84
+ }
85
+ if (filters.active !== undefined)
86
+ params.set("active", String(filters.active));
87
+ if (filters.limit !== undefined)
88
+ params.set("limit", String(filters.limit));
89
+ if (filters.offset !== undefined)
90
+ params.set("offset", String(filters.offset));
91
+ const qs = params.toString();
92
+ return fetchWithValidation(`/v1/pricing/extra-price-rules${qs ? `?${qs}` : ""}`, extraPriceRuleListResponse, client);
93
+ },
94
+ });
95
+ }
96
+ export function getExtraPriceRuleQueryOptions(client, id) {
97
+ return queryOptions({
98
+ queryKey: pricingQueryKeys.extraPriceRule(id),
99
+ queryFn: async () => {
100
+ const { data } = await fetchWithValidation(`/v1/pricing/extra-price-rules/${id}`, extraPriceRuleSingleResponse, client);
101
+ return data;
102
+ },
103
+ });
104
+ }
105
+ export function getOptionStartTimeRulesQueryOptions(client, options = {}) {
106
+ const { enabled: _enabled = true, ...filters } = options;
107
+ return queryOptions({
108
+ queryKey: pricingQueryKeys.optionStartTimeRulesList(filters),
109
+ queryFn: () => {
110
+ const params = new URLSearchParams();
111
+ if (filters.optionPriceRuleId)
112
+ params.set("optionPriceRuleId", filters.optionPriceRuleId);
113
+ if (filters.optionId)
114
+ params.set("optionId", filters.optionId);
115
+ if (filters.startTimeId)
116
+ params.set("startTimeId", filters.startTimeId);
117
+ if (filters.active !== undefined)
118
+ params.set("active", String(filters.active));
119
+ if (filters.limit !== undefined)
120
+ params.set("limit", String(filters.limit));
121
+ if (filters.offset !== undefined)
122
+ params.set("offset", String(filters.offset));
123
+ const qs = params.toString();
124
+ return fetchWithValidation(`/v1/pricing/option-start-time-rules${qs ? `?${qs}` : ""}`, optionStartTimeRuleListResponse, client);
125
+ },
126
+ });
127
+ }
128
+ export function getOptionStartTimeRuleQueryOptions(client, id) {
129
+ return queryOptions({
130
+ queryKey: pricingQueryKeys.optionStartTimeRule(id),
131
+ queryFn: async () => {
132
+ const { data } = await fetchWithValidation(`/v1/pricing/option-start-time-rules/${id}`, optionStartTimeRuleSingleResponse, client);
133
+ return data;
134
+ },
135
+ });
136
+ }
137
+ //# sourceMappingURL=logistics.js.map