@voyant-travel/operations-react 0.18.0 → 0.18.1

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 (266) hide show
  1. package/dist/availability/admin/availability-index-host.d.ts +1 -1
  2. package/dist/availability/admin/availability-index-host.d.ts.map +1 -1
  3. package/dist/availability/admin/availability-index-host.js +8 -8
  4. package/dist/availability/admin/option-resource-template-seat-map.d.ts +1 -1
  5. package/dist/availability/admin/option-resource-template-seat-map.d.ts.map +1 -1
  6. package/dist/availability/admin/option-resource-templates-panel.d.ts +1 -1
  7. package/dist/availability/admin/option-resource-templates-panel.d.ts.map +1 -1
  8. package/dist/availability/admin/option-resource-templates-panel.js +1 -1
  9. package/dist/availability/admin/pages/availability-rule-detail-page.d.ts +1 -1
  10. package/dist/availability/admin/pages/availability-rule-detail-page.d.ts.map +1 -1
  11. package/dist/availability/admin/pages/availability-rule-detail-page.js +1 -0
  12. package/dist/availability/admin/pages/availability-slot-detail-page.d.ts +1 -1
  13. package/dist/availability/admin/pages/availability-slot-detail-page.d.ts.map +1 -1
  14. package/dist/availability/admin/pages/availability-slot-detail-page.js +1 -0
  15. package/dist/availability/admin/pages/availability-start-time-detail-page.d.ts +1 -1
  16. package/dist/availability/admin/pages/availability-start-time-detail-page.d.ts.map +1 -1
  17. package/dist/availability/admin/pages/availability-start-time-detail-page.js +1 -0
  18. package/dist/availability/admin/rule-detail-host.d.ts +1 -1
  19. package/dist/availability/admin/rule-detail-host.d.ts.map +1 -1
  20. package/dist/availability/admin/slot-detail-host.d.ts +1 -1
  21. package/dist/availability/admin/slot-detail-host.d.ts.map +1 -1
  22. package/dist/availability/admin/start-time-detail-host.d.ts +1 -1
  23. package/dist/availability/admin/start-time-detail-host.d.ts.map +1 -1
  24. package/dist/availability/allocation/components/seat-map-builder.d.ts +1 -1
  25. package/dist/availability/allocation/components/seat-map-builder.d.ts.map +1 -1
  26. package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.d.ts +1 -1
  27. package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.d.ts.map +1 -1
  28. package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.js +1 -1
  29. package/dist/availability/allocation/components/slot-allocation-page-panels.d.ts +2 -2
  30. package/dist/availability/allocation/components/slot-allocation-page-panels.d.ts.map +1 -1
  31. package/dist/availability/allocation/components/slot-allocation-page.d.ts +1 -1
  32. package/dist/availability/allocation/components/slot-allocation-page.d.ts.map +1 -1
  33. package/dist/availability/allocation/components/slot-allocation-resource-view-rows.d.ts +2 -2
  34. package/dist/availability/allocation/components/slot-allocation-resource-view-rows.d.ts.map +1 -1
  35. package/dist/availability/allocation/components/slot-allocation-resource-view.d.ts +1 -1
  36. package/dist/availability/allocation/components/slot-allocation-resource-view.d.ts.map +1 -1
  37. package/dist/availability/allocation/components/slot-allocation-seat-view.d.ts +1 -1
  38. package/dist/availability/allocation/components/slot-allocation-seat-view.d.ts.map +1 -1
  39. package/dist/availability/allocation/components/slot-allocation-seat-view.js +3 -3
  40. package/dist/availability/allocation/components/slot-allocation-shared.d.ts +6 -6
  41. package/dist/availability/allocation/components/slot-allocation-shared.d.ts.map +1 -1
  42. package/dist/availability/allocation/i18n/provider.d.ts +1 -1
  43. package/dist/availability/allocation/i18n/provider.d.ts.map +1 -1
  44. package/dist/availability/components/availability-dialogs/closeout-dialog.d.ts +1 -1
  45. package/dist/availability/components/availability-dialogs/closeout-dialog.d.ts.map +1 -1
  46. package/dist/availability/components/availability-dialogs/closeout-dialog.js +1 -1
  47. package/dist/availability/components/availability-dialogs/pickup-point-dialog.d.ts +1 -1
  48. package/dist/availability/components/availability-dialogs/pickup-point-dialog.d.ts.map +1 -1
  49. package/dist/availability/components/availability-dialogs/pickup-point-dialog.js +1 -1
  50. package/dist/availability/components/availability-dialogs/rule-dialog.d.ts +1 -1
  51. package/dist/availability/components/availability-dialogs/rule-dialog.d.ts.map +1 -1
  52. package/dist/availability/components/availability-dialogs/rule-dialog.js +1 -1
  53. package/dist/availability/components/availability-dialogs/shared.d.ts +3 -3
  54. package/dist/availability/components/availability-dialogs/shared.d.ts.map +1 -1
  55. package/dist/availability/components/availability-dialogs/slot-dialog.d.ts +1 -1
  56. package/dist/availability/components/availability-dialogs/slot-dialog.d.ts.map +1 -1
  57. package/dist/availability/components/availability-dialogs/slot-dialog.js +1 -1
  58. package/dist/availability/components/availability-dialogs/start-time-dialog.d.ts +1 -1
  59. package/dist/availability/components/availability-dialogs/start-time-dialog.d.ts.map +1 -1
  60. package/dist/availability/components/availability-dialogs/start-time-dialog.js +1 -1
  61. package/dist/availability/components/availability-overview.d.ts +1 -1
  62. package/dist/availability/components/availability-overview.d.ts.map +1 -1
  63. package/dist/availability/components/availability-page.d.ts +1 -1
  64. package/dist/availability/components/availability-page.d.ts.map +1 -1
  65. package/dist/availability/components/availability-rule-detail-page.d.ts +6 -6
  66. package/dist/availability/components/availability-rule-detail-page.d.ts.map +1 -1
  67. package/dist/availability/components/availability-rule-detail-page.js +1 -1
  68. package/dist/availability/components/availability-section-header.d.ts +1 -1
  69. package/dist/availability/components/availability-section-header.d.ts.map +1 -1
  70. package/dist/availability/components/availability-skeletons.d.ts +5 -5
  71. package/dist/availability/components/availability-skeletons.d.ts.map +1 -1
  72. package/dist/availability/components/availability-slot-detail-activity.d.ts +1 -1
  73. package/dist/availability/components/availability-slot-detail-activity.d.ts.map +1 -1
  74. package/dist/availability/components/availability-slot-detail-financials.d.ts +1 -1
  75. package/dist/availability/components/availability-slot-detail-financials.d.ts.map +1 -1
  76. package/dist/availability/components/availability-slot-detail-meta.d.ts +1 -1
  77. package/dist/availability/components/availability-slot-detail-meta.d.ts.map +1 -1
  78. package/dist/availability/components/availability-slot-detail-page.d.ts +6 -6
  79. package/dist/availability/components/availability-slot-detail-page.d.ts.map +1 -1
  80. package/dist/availability/components/availability-start-time-detail-page.d.ts +6 -6
  81. package/dist/availability/components/availability-start-time-detail-page.d.ts.map +1 -1
  82. package/dist/availability/components/availability-start-time-detail-page.js +1 -1
  83. package/dist/availability/components/availability-tabs/other-tabs.d.ts +4 -4
  84. package/dist/availability/components/availability-tabs/other-tabs.d.ts.map +1 -1
  85. package/dist/availability/components/availability-tabs/other-tabs.js +10 -10
  86. package/dist/availability/components/availability-tabs/slots-tab.d.ts +1 -1
  87. package/dist/availability/components/availability-tabs/slots-tab.d.ts.map +1 -1
  88. package/dist/availability/components/availability-tabs/slots-tab.js +4 -4
  89. package/dist/availability/hooks/use-availability-batch-mutations.d.ts +7 -7
  90. package/dist/availability/hooks/use-availability-batch-mutations.d.ts.map +1 -1
  91. package/dist/availability/hooks/use-availability-batch-mutations.js +10 -10
  92. package/dist/availability/hooks/use-availability-closeout-mutation.js +3 -3
  93. package/dist/availability/hooks/use-availability-overview.d.ts +3 -3
  94. package/dist/availability/hooks/use-availability-overview.d.ts.map +1 -1
  95. package/dist/availability/hooks/use-availability-pickup-point-mutation.js +3 -3
  96. package/dist/availability/hooks/use-availability-rule-mutation.js +3 -3
  97. package/dist/availability/hooks/use-availability-slot-mutation.d.ts +3 -3
  98. package/dist/availability/hooks/use-availability-slot-mutation.js +3 -3
  99. package/dist/availability/hooks/use-availability-start-time-mutation.js +3 -3
  100. package/dist/availability/hooks/use-closeouts.d.ts +2 -2
  101. package/dist/availability/hooks/use-closeouts.d.ts.map +1 -1
  102. package/dist/availability/hooks/use-pickup-points.d.ts +2 -2
  103. package/dist/availability/hooks/use-pickup-points.d.ts.map +1 -1
  104. package/dist/availability/hooks/use-products.d.ts +2 -2
  105. package/dist/availability/hooks/use-products.d.ts.map +1 -1
  106. package/dist/availability/hooks/use-rules.d.ts +2 -2
  107. package/dist/availability/hooks/use-rules.d.ts.map +1 -1
  108. package/dist/availability/hooks/use-slot-allocation.d.ts +6 -6
  109. package/dist/availability/hooks/use-slot-allocation.d.ts.map +1 -1
  110. package/dist/availability/hooks/use-slot-allocation.js +4 -3
  111. package/dist/availability/hooks/use-slot-unit-availability.d.ts +2 -2
  112. package/dist/availability/hooks/use-slot-unit-availability.d.ts.map +1 -1
  113. package/dist/availability/hooks/use-slots.d.ts +3 -3
  114. package/dist/availability/hooks/use-slots.d.ts.map +1 -1
  115. package/dist/availability/hooks/use-start-times.d.ts +2 -2
  116. package/dist/availability/hooks/use-start-times.d.ts.map +1 -1
  117. package/dist/availability/i18n/provider.d.ts +1 -1
  118. package/dist/availability/i18n/provider.d.ts.map +1 -1
  119. package/dist/availability/query-options.d.ts +12 -12
  120. package/dist/availability/query-options.d.ts.map +1 -1
  121. package/dist/availability/query-options.js +15 -15
  122. package/dist/availability/schemas.d.ts +8 -8
  123. package/dist/ground/hooks/use-ground-driver-mutation.js +3 -3
  124. package/dist/ground/hooks/use-ground-drivers.d.ts +2 -2
  125. package/dist/ground/hooks/use-ground-drivers.d.ts.map +1 -1
  126. package/dist/ground/hooks/use-ground-operator-mutation.js +3 -3
  127. package/dist/ground/hooks/use-ground-operators.d.ts +2 -2
  128. package/dist/ground/hooks/use-ground-operators.d.ts.map +1 -1
  129. package/dist/ground/hooks/use-ground-vehicle-mutation.js +3 -3
  130. package/dist/ground/hooks/use-ground-vehicles.d.ts +2 -2
  131. package/dist/ground/hooks/use-ground-vehicles.d.ts.map +1 -1
  132. package/dist/ground/query-options.js +6 -6
  133. package/dist/ground/schemas.d.ts +3 -3
  134. package/dist/places/components/facility-badge.d.ts +1 -1
  135. package/dist/places/components/facility-badge.d.ts.map +1 -1
  136. package/dist/places/components/facility-combobox.d.ts +2 -1
  137. package/dist/places/components/facility-combobox.d.ts.map +1 -1
  138. package/dist/places/hooks/use-facilities.d.ts +4 -4
  139. package/dist/places/hooks/use-facilities.d.ts.map +1 -1
  140. package/dist/places/hooks/use-facility-feature-mutation.d.ts +2 -2
  141. package/dist/places/hooks/use-facility-feature-mutation.js +3 -3
  142. package/dist/places/hooks/use-facility-features.d.ts +3 -3
  143. package/dist/places/hooks/use-facility-features.d.ts.map +1 -1
  144. package/dist/places/hooks/use-facility-mutation.d.ts +7 -7
  145. package/dist/places/hooks/use-facility-mutation.js +3 -3
  146. package/dist/places/hooks/use-facility-operation-schedule-mutation.js +3 -3
  147. package/dist/places/hooks/use-facility-operation-schedules.d.ts +2 -2
  148. package/dist/places/hooks/use-facility-operation-schedules.d.ts.map +1 -1
  149. package/dist/places/hooks/use-facility.d.ts +4 -4
  150. package/dist/places/hooks/use-facility.d.ts.map +1 -1
  151. package/dist/places/hooks/use-properties.d.ts +2 -2
  152. package/dist/places/hooks/use-properties.d.ts.map +1 -1
  153. package/dist/places/hooks/use-property-group-member-mutation.js +3 -3
  154. package/dist/places/hooks/use-property-group-members.d.ts +2 -2
  155. package/dist/places/hooks/use-property-group-members.d.ts.map +1 -1
  156. package/dist/places/hooks/use-property-group-mutation.d.ts +6 -6
  157. package/dist/places/hooks/use-property-group-mutation.js +3 -3
  158. package/dist/places/hooks/use-property-group.d.ts +4 -4
  159. package/dist/places/hooks/use-property-group.d.ts.map +1 -1
  160. package/dist/places/hooks/use-property-groups.d.ts +4 -4
  161. package/dist/places/hooks/use-property-groups.d.ts.map +1 -1
  162. package/dist/places/hooks/use-property-mutation.js +3 -3
  163. package/dist/places/hooks/use-property.d.ts +2 -2
  164. package/dist/places/hooks/use-property.d.ts.map +1 -1
  165. package/dist/places/i18n/provider.d.ts +1 -1
  166. package/dist/places/i18n/provider.d.ts.map +1 -1
  167. package/dist/places/query-options.d.ts +40 -46
  168. package/dist/places/query-options.d.ts.map +1 -1
  169. package/dist/places/query-options.js +12 -18
  170. package/dist/places/schemas.d.ts +15 -15
  171. package/dist/resources/admin/detail-hosts.d.ts +4 -4
  172. package/dist/resources/admin/detail-hosts.d.ts.map +1 -1
  173. package/dist/resources/admin/detail-hosts.js +4 -4
  174. package/dist/resources/admin/pages/resource-allocation-detail-page.d.ts +1 -1
  175. package/dist/resources/admin/pages/resource-allocation-detail-page.d.ts.map +1 -1
  176. package/dist/resources/admin/pages/resource-allocation-detail-page.js +1 -0
  177. package/dist/resources/admin/pages/resource-assignment-detail-page.d.ts +1 -1
  178. package/dist/resources/admin/pages/resource-assignment-detail-page.d.ts.map +1 -1
  179. package/dist/resources/admin/pages/resource-assignment-detail-page.js +1 -0
  180. package/dist/resources/admin/pages/resource-detail-page.d.ts +1 -1
  181. package/dist/resources/admin/pages/resource-detail-page.d.ts.map +1 -1
  182. package/dist/resources/admin/pages/resource-detail-page.js +1 -0
  183. package/dist/resources/admin/pages/resource-pool-detail-page.d.ts +1 -1
  184. package/dist/resources/admin/pages/resource-pool-detail-page.d.ts.map +1 -1
  185. package/dist/resources/admin/pages/resource-pool-detail-page.js +1 -0
  186. package/dist/resources/admin/resources-dialog-allocation.d.ts +1 -1
  187. package/dist/resources/admin/resources-dialog-allocation.d.ts.map +1 -1
  188. package/dist/resources/admin/resources-dialog-allocation.js +3 -3
  189. package/dist/resources/admin/resources-dialogs-core.d.ts +2 -2
  190. package/dist/resources/admin/resources-dialogs-core.d.ts.map +1 -1
  191. package/dist/resources/admin/resources-dialogs-core.js +6 -6
  192. package/dist/resources/admin/resources-dialogs-ops.d.ts +2 -2
  193. package/dist/resources/admin/resources-dialogs-ops.d.ts.map +1 -1
  194. package/dist/resources/admin/resources-dialogs-ops.js +10 -7
  195. package/dist/resources/admin/resources-dialogs.d.ts +1 -1
  196. package/dist/resources/admin/resources-dialogs.d.ts.map +1 -1
  197. package/dist/resources/admin/resources-host.d.ts +1 -1
  198. package/dist/resources/admin/resources-host.d.ts.map +1 -1
  199. package/dist/resources/admin/resources-page-skeleton.d.ts +2 -2
  200. package/dist/resources/admin/resources-page-skeleton.d.ts.map +1 -1
  201. package/dist/resources/components/resource-allocation-detail-page.d.ts +1 -1
  202. package/dist/resources/components/resource-allocation-detail-page.d.ts.map +1 -1
  203. package/dist/resources/components/resource-assignment-detail-page.d.ts +1 -1
  204. package/dist/resources/components/resource-assignment-detail-page.d.ts.map +1 -1
  205. package/dist/resources/components/resource-detail-data.d.ts +1 -1
  206. package/dist/resources/components/resource-detail-data.d.ts.map +1 -1
  207. package/dist/resources/components/resource-detail-data.js +1 -1
  208. package/dist/resources/components/resource-detail-page.d.ts +2 -2
  209. package/dist/resources/components/resource-detail-page.d.ts.map +1 -1
  210. package/dist/resources/components/resource-detail-shared.d.ts +5 -5
  211. package/dist/resources/components/resource-detail-shared.d.ts.map +1 -1
  212. package/dist/resources/components/resource-detail-skeletons.d.ts +4 -4
  213. package/dist/resources/components/resource-detail-skeletons.d.ts.map +1 -1
  214. package/dist/resources/components/resource-pool-detail-page.d.ts +2 -2
  215. package/dist/resources/components/resource-pool-detail-page.d.ts.map +1 -1
  216. package/dist/resources/components/resources-overview.d.ts +1 -1
  217. package/dist/resources/components/resources-overview.d.ts.map +1 -1
  218. package/dist/resources/components/resources-page-filters.d.ts +1 -1
  219. package/dist/resources/components/resources-page-filters.d.ts.map +1 -1
  220. package/dist/resources/components/resources-page.d.ts +1 -1
  221. package/dist/resources/components/resources-page.d.ts.map +1 -1
  222. package/dist/resources/components/resources-section-header.d.ts +1 -1
  223. package/dist/resources/components/resources-section-header.d.ts.map +1 -1
  224. package/dist/resources/components/resources-tabs-primary.d.ts +3 -3
  225. package/dist/resources/components/resources-tabs-primary.d.ts.map +1 -1
  226. package/dist/resources/components/resources-tabs-primary.js +7 -7
  227. package/dist/resources/components/resources-tabs-secondary.d.ts +2 -2
  228. package/dist/resources/components/resources-tabs-secondary.d.ts.map +1 -1
  229. package/dist/resources/components/resources-tabs-secondary.js +4 -4
  230. package/dist/resources/hooks/use-allocation.d.ts +2 -2
  231. package/dist/resources/hooks/use-allocation.d.ts.map +1 -1
  232. package/dist/resources/hooks/use-allocations.d.ts +2 -2
  233. package/dist/resources/hooks/use-allocations.d.ts.map +1 -1
  234. package/dist/resources/hooks/use-assignment.d.ts +2 -2
  235. package/dist/resources/hooks/use-assignment.d.ts.map +1 -1
  236. package/dist/resources/hooks/use-assignments.d.ts +2 -2
  237. package/dist/resources/hooks/use-assignments.d.ts.map +1 -1
  238. package/dist/resources/hooks/use-bookings.d.ts +2 -2
  239. package/dist/resources/hooks/use-bookings.d.ts.map +1 -1
  240. package/dist/resources/hooks/use-closeouts.d.ts +2 -2
  241. package/dist/resources/hooks/use-closeouts.d.ts.map +1 -1
  242. package/dist/resources/hooks/use-pool.d.ts +3 -3
  243. package/dist/resources/hooks/use-pool.d.ts.map +1 -1
  244. package/dist/resources/hooks/use-pools.d.ts +3 -3
  245. package/dist/resources/hooks/use-pools.d.ts.map +1 -1
  246. package/dist/resources/hooks/use-products.d.ts +2 -2
  247. package/dist/resources/hooks/use-products.d.ts.map +1 -1
  248. package/dist/resources/hooks/use-resource.d.ts +3 -3
  249. package/dist/resources/hooks/use-resource.d.ts.map +1 -1
  250. package/dist/resources/hooks/use-resources.d.ts +3 -3
  251. package/dist/resources/hooks/use-resources.d.ts.map +1 -1
  252. package/dist/resources/hooks/use-rules.d.ts +2 -2
  253. package/dist/resources/hooks/use-rules.d.ts.map +1 -1
  254. package/dist/resources/hooks/use-slots.d.ts +2 -2
  255. package/dist/resources/hooks/use-slots.d.ts.map +1 -1
  256. package/dist/resources/hooks/use-start-times.d.ts +2 -2
  257. package/dist/resources/hooks/use-start-times.d.ts.map +1 -1
  258. package/dist/resources/hooks/use-suppliers.d.ts +2 -2
  259. package/dist/resources/hooks/use-suppliers.d.ts.map +1 -1
  260. package/dist/resources/i18n/provider.d.ts +1 -1
  261. package/dist/resources/i18n/provider.d.ts.map +1 -1
  262. package/dist/resources/query-options.d.ts +16 -16
  263. package/dist/resources/query-options.d.ts.map +1 -1
  264. package/dist/resources/query-options.js +15 -15
  265. package/dist/resources/schemas.d.ts +18 -18
  266. package/package.json +26 -26
@@ -19,6 +19,7 @@ const pairSharingGroupResponse = singleEnvelope(z.object({
19
19
  sharingGroupId: z.string(),
20
20
  travelerIds: z.array(z.string()),
21
21
  }));
22
+ const productAvailabilityPath = (productId) => `/v1/admin/operations/availability/products/${productId}`;
22
23
  export function useSlotAllocation({ slotId, enabled = true }) {
23
24
  const client = useVoyantAvailabilityContext();
24
25
  return useQuery({
@@ -79,7 +80,7 @@ export function useResourceTemplateMutation(productId) {
79
80
  };
80
81
  const upsert = useMutation({
81
82
  mutationFn: async ({ optionId, kind, input, }) => {
82
- const { data } = await fetchWithValidation(`/v1/admin/operations/${productId}/options/${optionId}/allocation/resource-templates/${kind}`, singleEnvelope(resourceTemplateSchema), { baseUrl, fetcher }, { method: "PUT", body: JSON.stringify(input) });
83
+ const { data } = await fetchWithValidation(`${productAvailabilityPath(productId)}/options/${optionId}/allocation/resource-templates/${kind}`, singleEnvelope(resourceTemplateSchema), { baseUrl, fetcher }, { method: "PUT", body: JSON.stringify(input) });
83
84
  return data;
84
85
  },
85
86
  onSuccess: invalidate,
@@ -87,7 +88,7 @@ export function useResourceTemplateMutation(productId) {
87
88
  const remove = useMutation({
88
89
  // refId targets a single template when an option holds several of the same
89
90
  // kind (e.g. one "room" per option_unit); omit it for ref-less templates.
90
- mutationFn: async ({ optionId, kind, refId, }) => fetchWithValidation(`/v1/admin/operations/${productId}/options/${optionId}/allocation/resource-templates/${kind}${refId ? `?refId=${encodeURIComponent(refId)}` : ""}`, singleEnvelope(z.object({ productOptionId: z.string(), kind: z.string() })), { baseUrl, fetcher }, { method: "DELETE" }),
91
+ mutationFn: async ({ optionId, kind, refId, }) => fetchWithValidation(`${productAvailabilityPath(productId)}/options/${optionId}/allocation/resource-templates/${kind}${refId ? `?refId=${encodeURIComponent(refId)}` : ""}`, singleEnvelope(z.object({ productOptionId: z.string(), kind: z.string() })), { baseUrl, fetcher }, { method: "DELETE" }),
91
92
  onSuccess: invalidate,
92
93
  });
93
94
  return { upsert, remove };
@@ -103,7 +104,7 @@ export function useMaterializeOpenSlotsMutation(productId) {
103
104
  const queryClient = useQueryClient();
104
105
  return useMutation({
105
106
  mutationFn: async (input) => {
106
- const result = await fetchWithValidation(`/v1/admin/operations/${productId}/allocation/materialize-open-slots`, singleEnvelope(z.object({ slots: z.number(), created: z.number() })), { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
107
+ const result = await fetchWithValidation(`${productAvailabilityPath(productId)}/allocation/materialize-open-slots`, singleEnvelope(z.object({ slots: z.number(), created: z.number() })), { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
107
108
  return result.data;
108
109
  },
109
110
  onSuccess: () => {
@@ -12,7 +12,7 @@ export interface UseSlotUnitAvailabilityOptions {
12
12
  * Active booking statuses counted: draft, on_hold, confirmed, in_progress,
13
13
  * completed. cancelled + expired are excluded.
14
14
  */
15
- export declare function useSlotUnitAvailability({ slotId, enabled, }: UseSlotUnitAvailabilityOptions): import("@tanstack/react-query").UseQueryResult<{
15
+ export declare function useSlotUnitAvailability({ slotId, enabled, }: UseSlotUnitAvailabilityOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
16
16
  data: {
17
17
  optionUnitId: string;
18
18
  unitName: string;
@@ -21,5 +21,5 @@ export declare function useSlotUnitAvailability({ slotId, enabled, }: UseSlotUni
21
21
  reserved: number;
22
22
  remaining: number | null;
23
23
  }[];
24
- }, Error>;
24
+ }>, Error>;
25
25
  //# sourceMappingURL=use-slot-unit-availability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-slot-unit-availability.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-slot-unit-availability.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,OAAc,GACf,EAAE,8BAA8B;;;;;;;;;UAMhC"}
1
+ {"version":3,"file":"use-slot-unit-availability.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-slot-unit-availability.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,OAAc,GACf,EAAE,8BAA8B;;;;;;;;;WAMhC"}
@@ -2,7 +2,7 @@ import type { AvailabilitySlotsListFilters } from "../query-keys.js";
2
2
  export interface UseSlotsOptions extends AvailabilitySlotsListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  id: string;
8
8
  productId: string;
@@ -15,7 +15,7 @@ export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/r
15
15
  startsAt: string;
16
16
  endsAt: string | null;
17
17
  timezone: string;
18
- status: "open" | "closed" | "cancelled" | "sold_out";
18
+ status: "open" | "closed" | "sold_out" | "cancelled";
19
19
  unlimited: boolean;
20
20
  initialPax: number | null;
21
21
  remainingPax: number | null;
@@ -28,5 +28,5 @@ export declare function useSlots(options?: UseSlotsOptions): import("@tanstack/r
28
28
  total: number;
29
29
  limit: number;
30
30
  offset: number;
31
- }, Error>;
31
+ }>, Error>;
32
32
  //# sourceMappingURL=use-slots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-slots.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-slots.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAGpE,MAAM,WAAW,eAAgB,SAAQ,4BAA4B;IACnE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;UAIrD"}
1
+ {"version":3,"file":"use-slots.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-slots.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAGpE,MAAM,WAAW,eAAgB,SAAQ,4BAA4B;IACnE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;WAIrD"}
@@ -2,7 +2,7 @@ import type { AvailabilityStartTimesListFilters } from "../query-keys.js";
2
2
  export interface UseStartTimesOptions extends AvailabilityStartTimesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useStartTimes(options?: UseStartTimesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useStartTimes(options?: UseStartTimesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  id: string;
8
8
  productId: string;
@@ -18,5 +18,5 @@ export declare function useStartTimes(options?: UseStartTimesOptions): import("@
18
18
  total: number;
19
19
  limit: number;
20
20
  offset: number;
21
- }, Error>;
21
+ }>, Error>;
22
22
  //# sourceMappingURL=use-start-times.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-start-times.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-start-times.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAGzE,MAAM,WAAW,oBAAqB,SAAQ,iCAAiC;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;UAI/D"}
1
+ {"version":3,"file":"use-start-times.d.ts","sourceRoot":"","sources":["../../../src/availability/hooks/use-start-times.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,kBAAkB,CAAA;AAGzE,MAAM,WAAW,oBAAqB,SAAQ,iCAAiC;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;WAI/D"}
@@ -2030,7 +2030,7 @@ export declare function AvailabilityUiMessagesProvider({ children, locale, overr
2030
2030
  children: ReactNode;
2031
2031
  locale: string | null | undefined;
2032
2032
  overrides?: AvailabilityUiMessageOverrides | null;
2033
- }): import("react/jsx-runtime").JSX.Element;
2033
+ }): import("react").JSX.Element;
2034
2034
  export declare const useAvailabilityUiI18n: () => PackageI18nValue<AvailabilityUiMessages>;
2035
2035
  export declare const useAvailabilityUiMessages: () => AvailabilityUiMessages;
2036
2036
  export declare function useAvailabilityUiI18nOrDefault(): PackageI18nValue<AvailabilityUiMessages>;
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/availability/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EAIzB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,CAAA;AAErF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,GAAG;IAC9D,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAA;QAClB,WAAW,EAAE,MAAM,CAAA;QACnB,OAAO,EAAE;YACP,WAAW,EAAE,MAAM,CAAA;YACnB,UAAU,EAAE,MAAM,CAAA;YAClB,cAAc,EAAE,MAAM,CAAA;YACtB,OAAO,EAAE,MAAM,CAAA;YACf,WAAW,EAAE,MAAM,CAAA;YACnB,SAAS,EAAE,MAAM,CAAA;YACjB,MAAM,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,MAAM,CAAA;YAChB,KAAK,EAAE,MAAM,CAAA;YACb,kBAAkB,EAAE,MAAM,CAAA;SAC3B,CAAA;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,M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C,SAAS,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAA;CAClD,GAAG,gBAAgB,CAAC,sBAAsB,CAAC,CAU3C;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,8BAA8B,GAAG,IAAI,CAAA;CAClD,+BAWA;AAED,eAAO,MAAM,qBAAqB,gDAAgC,CAAA;AAClE,eAAO,MAAM,yBAAyB,8BAAoC,CAAA;AAE1E,wBAAgB,8BAA8B,6CAE7C;AAED,wBAAgB,kCAAkC,2BAEjD"}
@@ -239,7 +239,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
239
239
  startsAt: string;
240
240
  endsAt: string | null;
241
241
  timezone: string;
242
- status: "open" | "closed" | "cancelled" | "sold_out";
242
+ status: "open" | "closed" | "sold_out" | "cancelled";
243
243
  unlimited: boolean;
244
244
  initialPax: number | null;
245
245
  remainingPax: number | null;
@@ -265,7 +265,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
265
265
  startsAt: string;
266
266
  endsAt: string | null;
267
267
  timezone: string;
268
- status: "open" | "closed" | "cancelled" | "sold_out";
268
+ status: "open" | "closed" | "sold_out" | "cancelled";
269
269
  unlimited: boolean;
270
270
  initialPax: number | null;
271
271
  remainingPax: number | null;
@@ -292,7 +292,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
292
292
  startsAt: string;
293
293
  endsAt: string | null;
294
294
  timezone: string;
295
- status: "open" | "closed" | "cancelled" | "sold_out";
295
+ status: "open" | "closed" | "sold_out" | "cancelled";
296
296
  unlimited: boolean;
297
297
  initialPax: number | null;
298
298
  remainingPax: number | null;
@@ -321,7 +321,7 @@ export declare function getSlotsQueryOptions(client: FetchWithValidationOptions,
321
321
  startsAt: string;
322
322
  endsAt: string | null;
323
323
  timezone: string;
324
- status: "open" | "closed" | "cancelled" | "sold_out";
324
+ status: "open" | "closed" | "sold_out" | "cancelled";
325
325
  unlimited: boolean;
326
326
  initialPax: number | null;
327
327
  remainingPax: number | null;
@@ -367,7 +367,7 @@ export declare function getAvailabilityOverviewQueryOptions(client: FetchWithVal
367
367
  startsAt: string;
368
368
  endsAt: string | null;
369
369
  timezone: string;
370
- status: "open" | "closed" | "cancelled" | "sold_out";
370
+ status: "open" | "closed" | "sold_out" | "cancelled";
371
371
  unlimited: boolean;
372
372
  initialPax: number | null;
373
373
  remainingPax: number | null;
@@ -407,7 +407,7 @@ export declare function getAvailabilityOverviewQueryOptions(client: FetchWithVal
407
407
  startsAt: string;
408
408
  endsAt: string | null;
409
409
  timezone: string;
410
- status: "open" | "closed" | "cancelled" | "sold_out";
410
+ status: "open" | "closed" | "sold_out" | "cancelled";
411
411
  unlimited: boolean;
412
412
  initialPax: number | null;
413
413
  remainingPax: number | null;
@@ -448,7 +448,7 @@ export declare function getAvailabilityOverviewQueryOptions(client: FetchWithVal
448
448
  startsAt: string;
449
449
  endsAt: string | null;
450
450
  timezone: string;
451
- status: "open" | "closed" | "cancelled" | "sold_out";
451
+ status: "open" | "closed" | "sold_out" | "cancelled";
452
452
  unlimited: boolean;
453
453
  initialPax: number | null;
454
454
  remainingPax: number | null;
@@ -491,7 +491,7 @@ export declare function getAvailabilityOverviewQueryOptions(client: FetchWithVal
491
491
  startsAt: string;
492
492
  endsAt: string | null;
493
493
  timezone: string;
494
- status: "open" | "closed" | "cancelled" | "sold_out";
494
+ status: "open" | "closed" | "sold_out" | "cancelled";
495
495
  unlimited: boolean;
496
496
  initialPax: number | null;
497
497
  remainingPax: number | null;
@@ -639,7 +639,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
639
639
  startsAt: string;
640
640
  endsAt: string | null;
641
641
  timezone: string;
642
- status: "open" | "closed" | "cancelled" | "sold_out";
642
+ status: "open" | "closed" | "sold_out" | "cancelled";
643
643
  unlimited: boolean;
644
644
  initialPax: number | null;
645
645
  remainingPax: number | null;
@@ -669,7 +669,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
669
669
  startsAt: string;
670
670
  endsAt: string | null;
671
671
  timezone: string;
672
- status: "open" | "closed" | "cancelled" | "sold_out";
672
+ status: "open" | "closed" | "sold_out" | "cancelled";
673
673
  unlimited: boolean;
674
674
  initialPax: number | null;
675
675
  remainingPax: number | null;
@@ -700,7 +700,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
700
700
  startsAt: string;
701
701
  endsAt: string | null;
702
702
  timezone: string;
703
- status: "open" | "closed" | "cancelled" | "sold_out";
703
+ status: "open" | "closed" | "sold_out" | "cancelled";
704
704
  unlimited: boolean;
705
705
  initialPax: number | null;
706
706
  remainingPax: number | null;
@@ -733,7 +733,7 @@ export declare function getSlotQueryOptions(client: FetchWithValidationOptions,
733
733
  startsAt: string;
734
734
  endsAt: string | null;
735
735
  timezone: string;
736
- status: "open" | "closed" | "cancelled" | "sold_out";
736
+ status: "open" | "closed" | "sold_out" | "cancelled";
737
737
  unlimited: boolean;
738
738
  initialPax: number | null;
739
739
  remainingPax: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../../src/availability/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4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EAClC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,GAAE,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5D;AAED,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,0BAA0B,EAClC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjC,OAAO,GAAE,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,QAAQ,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBxD;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe3D;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe3D"}
@@ -19,7 +19,7 @@ export function getProductsQueryOptions(client, options = {}) {
19
19
  params.set("search", filters.search);
20
20
  appendPagination(params, filters);
21
21
  const qs = params.toString();
22
- return fetchWithValidation(`/v1/products${qs ? `?${qs}` : ""}`, productListResponse, client);
22
+ return fetchWithValidation(`/v1/admin/products${qs ? `?${qs}` : ""}`, productListResponse, client);
23
23
  },
24
24
  });
25
25
  }
@@ -33,7 +33,7 @@ export function getRulesQueryOptions(client, options = {}) {
33
33
  params.set("productId", filters.productId);
34
34
  appendPagination(params, filters);
35
35
  const qs = params.toString();
36
- return fetchWithValidation(`/v1/operations/availability/rules${qs ? `?${qs}` : ""}`, availabilityRuleListResponse, client);
36
+ return fetchWithValidation(`/v1/admin/operations/availability/rules${qs ? `?${qs}` : ""}`, availabilityRuleListResponse, client);
37
37
  },
38
38
  });
39
39
  }
@@ -47,7 +47,7 @@ export function getStartTimesQueryOptions(client, options = {}) {
47
47
  params.set("productId", filters.productId);
48
48
  appendPagination(params, filters);
49
49
  const qs = params.toString();
50
- return fetchWithValidation(`/v1/operations/availability/start-times${qs ? `?${qs}` : ""}`, availabilityStartTimeListResponse, client);
50
+ return fetchWithValidation(`/v1/admin/operations/availability/start-times${qs ? `?${qs}` : ""}`, availabilityStartTimeListResponse, client);
51
51
  },
52
52
  });
53
53
  }
@@ -77,7 +77,7 @@ export function getSlotsQueryOptions(client, options = {}) {
77
77
  params.set("status", filters.status);
78
78
  appendPagination(params, filters);
79
79
  const qs = params.toString();
80
- return fetchWithValidation(`/v1/operations/availability/slots${qs ? `?${qs}` : ""}`, availabilitySlotListResponse, client);
80
+ return fetchWithValidation(`/v1/admin/operations/availability/slots${qs ? `?${qs}` : ""}`, availabilitySlotListResponse, client);
81
81
  },
82
82
  });
83
83
  }
@@ -93,7 +93,7 @@ export function getAvailabilityOverviewQueryOptions(client, options = {}) {
93
93
  params.set("attentionLimit", String(filters.attentionLimit));
94
94
  }
95
95
  const qs = params.toString();
96
- return fetchWithValidation(`/v1/operations/availability/overview${qs ? `?${qs}` : ""}`, availabilityOverviewResponse, client);
96
+ return fetchWithValidation(`/v1/admin/operations/availability/overview${qs ? `?${qs}` : ""}`, availabilityOverviewResponse, client);
97
97
  },
98
98
  });
99
99
  }
@@ -109,7 +109,7 @@ export function getCloseoutsQueryOptions(client, options = {}) {
109
109
  params.set("slotId", filters.slotId);
110
110
  appendPagination(params, filters);
111
111
  const qs = params.toString();
112
- return fetchWithValidation(`/v1/operations/availability/closeouts${qs ? `?${qs}` : ""}`, availabilityCloseoutListResponse, client);
112
+ return fetchWithValidation(`/v1/admin/operations/availability/closeouts${qs ? `?${qs}` : ""}`, availabilityCloseoutListResponse, client);
113
113
  },
114
114
  });
115
115
  }
@@ -125,7 +125,7 @@ export function getPickupPointsQueryOptions(client, options = {}) {
125
125
  params.set("active", String(filters.active));
126
126
  appendPagination(params, filters);
127
127
  const qs = params.toString();
128
- return fetchWithValidation(`/v1/operations/availability/pickup-points${qs ? `?${qs}` : ""}`, availabilityPickupPointListResponse, client);
128
+ return fetchWithValidation(`/v1/admin/operations/availability/pickup-points${qs ? `?${qs}` : ""}`, availabilityPickupPointListResponse, client);
129
129
  },
130
130
  });
131
131
  }
@@ -135,7 +135,7 @@ export function getSlotQueryOptions(client, id) {
135
135
  queryFn: async () => {
136
136
  if (!id)
137
137
  throw new Error("getSlotQueryOptions requires an id");
138
- return fetchWithValidation(`/v1/operations/availability/slots/${id}`, availabilitySlotSingleResponse, client);
138
+ return fetchWithValidation(`/v1/admin/operations/availability/slots/${id}`, availabilitySlotSingleResponse, client);
139
139
  },
140
140
  });
141
141
  }
@@ -145,7 +145,7 @@ export function getSlotUnitAvailabilityQueryOptions(client, slotId) {
145
145
  queryFn: async () => {
146
146
  if (!slotId)
147
147
  throw new Error("getSlotUnitAvailabilityQueryOptions requires a slotId");
148
- return fetchWithValidation(`/v1/operations/availability/slots/${slotId}/unit-availability`, slotUnitAvailabilityListResponse, client);
148
+ return fetchWithValidation(`/v1/admin/operations/availability/slots/${slotId}/unit-availability`, slotUnitAvailabilityListResponse, client);
149
149
  },
150
150
  });
151
151
  }
@@ -175,7 +175,7 @@ export function getProductQueryOptions(client, id) {
175
175
  queryFn: async () => {
176
176
  if (!id)
177
177
  throw new Error("getProductQueryOptions requires an id");
178
- return fetchWithValidation(`/v1/products/${id}`, productSingleResponse, client);
178
+ return fetchWithValidation(`/v1/admin/products/${id}`, productSingleResponse, client);
179
179
  },
180
180
  });
181
181
  }
@@ -200,7 +200,7 @@ export function getSlotPickupsQueryOptions(client, slotId, options = {}) {
200
200
  params.set("slotId", slotId);
201
201
  appendPagination(params, options);
202
202
  const qs = params.toString();
203
- return fetchWithValidation(`/v1/operations/availability/slot-pickups?${qs}`, availabilitySlotPickupListResponse, client);
203
+ return fetchWithValidation(`/v1/admin/operations/availability/slot-pickups?${qs}`, availabilitySlotPickupListResponse, client);
204
204
  },
205
205
  });
206
206
  }
@@ -215,7 +215,7 @@ export function getSlotCloseoutsQueryOptions(client, slotId, options = {}) {
215
215
  params.set("slotId", slotId);
216
216
  appendPagination(params, options);
217
217
  const qs = params.toString();
218
- return fetchWithValidation(`/v1/operations/availability/closeouts?${qs}`, availabilityCloseoutListResponse, client);
218
+ return fetchWithValidation(`/v1/admin/operations/availability/closeouts?${qs}`, availabilityCloseoutListResponse, client);
219
219
  },
220
220
  });
221
221
  }
@@ -230,7 +230,7 @@ export function getSlotAssignmentsQueryOptions(client, slotId, options = {}) {
230
230
  params.set("slotId", slotId);
231
231
  appendPagination(params, options);
232
232
  const qs = params.toString();
233
- return fetchWithValidation(`/v1/operations/slot-assignments?${qs}`, availabilitySlotAssignmentListResponse, client);
233
+ return fetchWithValidation(`/v1/admin/operations/slot-assignments?${qs}`, availabilitySlotAssignmentListResponse, client);
234
234
  },
235
235
  });
236
236
  }
@@ -241,7 +241,7 @@ export function getSlotResourcesQueryOptions(client, options = {}) {
241
241
  const params = new URLSearchParams();
242
242
  appendPagination(params, options);
243
243
  const qs = params.toString();
244
- return fetchWithValidation(`/v1/operations/resources${qs ? `?${qs}` : ""}`, resourceSummaryListResponse, client);
244
+ return fetchWithValidation(`/v1/admin/operations/resources${qs ? `?${qs}` : ""}`, resourceSummaryListResponse, client);
245
245
  },
246
246
  });
247
247
  }
@@ -252,7 +252,7 @@ export function getSlotBookingsQueryOptions(client, options = {}) {
252
252
  const params = new URLSearchParams();
253
253
  appendPagination(params, options);
254
254
  const qs = params.toString();
255
- return fetchWithValidation(`/v1/bookings${qs ? `?${qs}` : ""}`, bookingSummaryListResponse, client);
255
+ return fetchWithValidation(`/v1/admin/bookings${qs ? `?${qs}` : ""}`, bookingSummaryListResponse, client);
256
256
  },
257
257
  });
258
258
  }
@@ -102,8 +102,8 @@ export declare const availabilitySlotRecordSchema: z.ZodObject<{
102
102
  status: z.ZodEnum<{
103
103
  open: "open";
104
104
  closed: "closed";
105
- cancelled: "cancelled";
106
105
  sold_out: "sold_out";
106
+ cancelled: "cancelled";
107
107
  }>;
108
108
  unlimited: z.ZodBoolean;
109
109
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -131,8 +131,8 @@ export declare const availabilitySlotDetailSchema: z.ZodObject<{
131
131
  status: z.ZodEnum<{
132
132
  open: "open";
133
133
  closed: "closed";
134
- cancelled: "cancelled";
135
134
  sold_out: "sold_out";
135
+ cancelled: "cancelled";
136
136
  }>;
137
137
  unlimited: z.ZodBoolean;
138
138
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -317,8 +317,8 @@ export declare const availabilitySlotListResponse: z.ZodObject<{
317
317
  status: z.ZodEnum<{
318
318
  open: "open";
319
319
  closed: "closed";
320
- cancelled: "cancelled";
321
320
  sold_out: "sold_out";
321
+ cancelled: "cancelled";
322
322
  }>;
323
323
  unlimited: z.ZodBoolean;
324
324
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -349,8 +349,8 @@ export declare const availabilitySlotRecordResponse: z.ZodObject<{
349
349
  status: z.ZodEnum<{
350
350
  open: "open";
351
351
  closed: "closed";
352
- cancelled: "cancelled";
353
352
  sold_out: "sold_out";
353
+ cancelled: "cancelled";
354
354
  }>;
355
355
  unlimited: z.ZodBoolean;
356
356
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -378,8 +378,8 @@ export declare const availabilitySlotSingleResponse: z.ZodObject<{
378
378
  status: z.ZodEnum<{
379
379
  open: "open";
380
380
  closed: "closed";
381
- cancelled: "cancelled";
382
381
  sold_out: "sold_out";
382
+ cancelled: "cancelled";
383
383
  }>;
384
384
  unlimited: z.ZodBoolean;
385
385
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -430,8 +430,8 @@ export declare const availabilityOverviewResponse: z.ZodObject<{
430
430
  status: z.ZodEnum<{
431
431
  open: "open";
432
432
  closed: "closed";
433
- cancelled: "cancelled";
434
433
  sold_out: "sold_out";
434
+ cancelled: "cancelled";
435
435
  }>;
436
436
  unlimited: z.ZodBoolean;
437
437
  initialPax: z.ZodNullable<z.ZodNumber>;
@@ -800,8 +800,8 @@ export declare const slotAllocationManifestResponse: z.ZodObject<{
800
800
  */
801
801
  export declare const seatLayoutCellSchema: z.ZodEnum<{
802
802
  void: "void";
803
- aisle: "aisle";
804
803
  seat: "seat";
804
+ aisle: "aisle";
805
805
  door: "door";
806
806
  }>;
807
807
  export type SeatLayoutCell = z.infer<typeof seatLayoutCellSchema>;
@@ -809,8 +809,8 @@ export declare const seatLayoutSpecSchema: z.ZodObject<{
809
809
  rows: z.ZodArray<z.ZodObject<{
810
810
  cells: z.ZodArray<z.ZodEnum<{
811
811
  void: "void";
812
- aisle: "aisle";
813
812
  seat: "seat";
813
+ aisle: "aisle";
814
814
  door: "door";
815
815
  }>>;
816
816
  }, z.core.$strip>>;
@@ -9,7 +9,7 @@ export function useGroundDriverMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/drivers", groundDriverSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/drivers", groundDriverSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useGroundDriverMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/drivers/${id}`, groundDriverSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/drivers/${id}`, groundDriverSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useGroundDriverMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/drivers/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/drivers/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -2,7 +2,7 @@ import type { GroundDriversListFilters } from "../query-keys.js";
2
2
  export interface UseGroundDriversOptions extends GroundDriversListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useGroundDrivers(options?: UseGroundDriversOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useGroundDrivers(options?: UseGroundDriversOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  resourceId: string;
8
8
  spokenLanguages: string[];
@@ -19,5 +19,5 @@ export declare function useGroundDrivers(options?: UseGroundDriversOptions): imp
19
19
  total: number;
20
20
  limit: number;
21
21
  offset: number;
22
- }, Error>;
22
+ }>, Error>;
23
23
  //# sourceMappingURL=use-ground-drivers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-ground-drivers.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-drivers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAGhE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;UAQrE"}
1
+ {"version":3,"file":"use-ground-drivers.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-drivers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAGhE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;WAQrE"}
@@ -9,7 +9,7 @@ export function useGroundOperatorMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/operators", groundOperatorSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/operators", groundOperatorSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useGroundOperatorMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/operators/${id}`, groundOperatorSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/operators/${id}`, groundOperatorSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useGroundOperatorMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/operators/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/operators/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -2,7 +2,7 @@ import type { GroundOperatorsListFilters } from "../query-keys.js";
2
2
  export interface UseGroundOperatorsOptions extends GroundOperatorsListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useGroundOperators(options?: UseGroundOperatorsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useGroundOperators(options?: UseGroundOperatorsOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  name: string;
8
8
  active: boolean;
@@ -17,5 +17,5 @@ export declare function useGroundOperators(options?: UseGroundOperatorsOptions):
17
17
  total: number;
18
18
  limit: number;
19
19
  offset: number;
20
- }, Error>;
20
+ }>, Error>;
21
21
  //# sourceMappingURL=use-ground-operators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-ground-operators.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-operators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAGlE,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;UAQzE"}
1
+ {"version":3,"file":"use-ground-operators.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-operators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAGlE,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B;;;;;;;;;;;;;;;WAQzE"}
@@ -9,7 +9,7 @@ export function useGroundVehicleMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/vehicles", groundVehicleSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/vehicles", groundVehicleSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useGroundVehicleMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/vehicles/${id}`, groundVehicleSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/vehicles/${id}`, groundVehicleSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useGroundVehicleMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/vehicles/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/vehicles/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -2,7 +2,7 @@ import type { GroundVehiclesListFilters } from "../query-keys.js";
2
2
  export interface UseGroundVehiclesOptions extends GroundVehiclesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useGroundVehicles(options?: UseGroundVehiclesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useGroundVehicles(options?: UseGroundVehiclesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  resourceId: string;
8
8
  category: "other" | "boat" | "car" | "sedan" | "suv" | "van" | "minibus" | "bus" | "train";
@@ -23,5 +23,5 @@ export declare function useGroundVehicles(options?: UseGroundVehiclesOptions): i
23
23
  total: number;
24
24
  limit: number;
25
25
  offset: number;
26
- }, Error>;
26
+ }>, Error>;
27
27
  //# sourceMappingURL=use-ground-vehicles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-ground-vehicles.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-vehicles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAGjE,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;UAQvE"}
1
+ {"version":3,"file":"use-ground-vehicles.d.ts","sourceRoot":"","sources":["../../../src/ground/hooks/use-ground-vehicles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAGjE,MAAM,WAAW,wBAAyB,SAAQ,yBAAyB;IACzE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,wBAA6B;;;;;;;;;;;;;;;;;;;;;WAQvE"}