@voyant-travel/operations-react 0.18.0 → 0.19.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 (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 +24 -24
@@ -17,14 +17,14 @@ export function getGroundOperatorsQueryOptions(client, options = {}) {
17
17
  const { enabled: _enabled = true, ...filters } = options;
18
18
  return queryOptions({
19
19
  queryKey: groundQueryKeys.operatorsList(filters),
20
- queryFn: () => fetchWithValidation(`/v1/operations/operators${toQueryString(filters)}`, groundOperatorListResponse, client),
20
+ queryFn: () => fetchWithValidation(`/v1/admin/operations/operators${toQueryString(filters)}`, groundOperatorListResponse, client),
21
21
  });
22
22
  }
23
23
  export function getGroundOperatorQueryOptions(client, id) {
24
24
  return queryOptions({
25
25
  queryKey: groundQueryKeys.operator(id),
26
26
  queryFn: async () => {
27
- const { data } = await fetchWithValidation(`/v1/operations/operators/${id}`, groundOperatorSingleResponse, client);
27
+ const { data } = await fetchWithValidation(`/v1/admin/operations/operators/${id}`, groundOperatorSingleResponse, client);
28
28
  return data;
29
29
  },
30
30
  });
@@ -33,14 +33,14 @@ export function getGroundVehiclesQueryOptions(client, options = {}) {
33
33
  const { enabled: _enabled = true, ...filters } = options;
34
34
  return queryOptions({
35
35
  queryKey: groundQueryKeys.vehiclesList(filters),
36
- queryFn: () => fetchWithValidation(`/v1/operations/vehicles${toQueryString(filters)}`, groundVehicleListResponse, client),
36
+ queryFn: () => fetchWithValidation(`/v1/admin/operations/vehicles${toQueryString(filters)}`, groundVehicleListResponse, client),
37
37
  });
38
38
  }
39
39
  export function getGroundVehicleQueryOptions(client, id) {
40
40
  return queryOptions({
41
41
  queryKey: groundQueryKeys.vehicle(id),
42
42
  queryFn: async () => {
43
- const { data } = await fetchWithValidation(`/v1/operations/vehicles/${id}`, groundVehicleSingleResponse, client);
43
+ const { data } = await fetchWithValidation(`/v1/admin/operations/vehicles/${id}`, groundVehicleSingleResponse, client);
44
44
  return data;
45
45
  },
46
46
  });
@@ -49,14 +49,14 @@ export function getGroundDriversQueryOptions(client, options = {}) {
49
49
  const { enabled: _enabled = true, ...filters } = options;
50
50
  return queryOptions({
51
51
  queryKey: groundQueryKeys.driversList(filters),
52
- queryFn: () => fetchWithValidation(`/v1/operations/drivers${toQueryString(filters)}`, groundDriverListResponse, client),
52
+ queryFn: () => fetchWithValidation(`/v1/admin/operations/drivers${toQueryString(filters)}`, groundDriverListResponse, client),
53
53
  });
54
54
  }
55
55
  export function getGroundDriverQueryOptions(client, id) {
56
56
  return queryOptions({
57
57
  queryKey: groundQueryKeys.driver(id),
58
58
  queryFn: async () => {
59
- const { data } = await fetchWithValidation(`/v1/operations/drivers/${id}`, groundDriverSingleResponse, client);
59
+ const { data } = await fetchWithValidation(`/v1/admin/operations/drivers/${id}`, groundDriverSingleResponse, client);
60
60
  return data;
61
61
  },
62
62
  });
@@ -23,13 +23,13 @@ export declare const groundVehicleRecordSchema: z.ZodObject<{
23
23
  resourceId: z.ZodString;
24
24
  category: z.ZodDefault<z.ZodEnum<{
25
25
  other: "other";
26
- boat: "boat";
27
26
  car: "car";
28
27
  sedan: "sedan";
29
28
  suv: "suv";
30
29
  van: "van";
31
30
  minibus: "minibus";
32
31
  bus: "bus";
32
+ boat: "boat";
33
33
  train: "train";
34
34
  }>>;
35
35
  vehicleClass: z.ZodDefault<z.ZodEnum<{
@@ -102,13 +102,13 @@ export declare const groundVehicleListResponse: z.ZodObject<{
102
102
  resourceId: z.ZodString;
103
103
  category: z.ZodDefault<z.ZodEnum<{
104
104
  other: "other";
105
- boat: "boat";
106
105
  car: "car";
107
106
  sedan: "sedan";
108
107
  suv: "suv";
109
108
  van: "van";
110
109
  minibus: "minibus";
111
110
  bus: "bus";
111
+ boat: "boat";
112
112
  train: "train";
113
113
  }>>;
114
114
  vehicleClass: z.ZodDefault<z.ZodEnum<{
@@ -141,13 +141,13 @@ export declare const groundVehicleSingleResponse: z.ZodObject<{
141
141
  resourceId: z.ZodString;
142
142
  category: z.ZodDefault<z.ZodEnum<{
143
143
  other: "other";
144
- boat: "boat";
145
144
  car: "car";
146
145
  sedan: "sedan";
147
146
  suv: "suv";
148
147
  van: "van";
149
148
  minibus: "minibus";
150
149
  bus: "bus";
150
+ boat: "boat";
151
151
  train: "train";
152
152
  }>>;
153
153
  vehicleClass: z.ZodDefault<z.ZodEnum<{
@@ -8,6 +8,6 @@ type Props = {
8
8
  label?: string | null;
9
9
  className?: string;
10
10
  };
11
- export declare function FacilityBadge({ facilityId, label, className }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export declare function FacilityBadge({ facilityId, label, className }: Props): import("react").JSX.Element;
12
12
  export {};
13
13
  //# sourceMappingURL=facility-badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"facility-badge.d.ts","sourceRoot":"","sources":["../../../src/places/components/facility-badge.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,2CAoBpE"}
1
+ {"version":3,"file":"facility-badge.d.ts","sourceRoot":"","sources":["../../../src/places/components/facility-badge.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACrC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,aAAa,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,KAAK,+BAoBpE"}
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  type Props = {
2
3
  value: string | null | undefined;
3
4
  onChange: (value: string | null) => void;
@@ -11,6 +12,6 @@ type Props = {
11
12
  disabled?: boolean;
12
13
  excludeId?: string | null;
13
14
  };
14
- export declare function FacilityCombobox({ value, onChange, kind, placeholder, disabled, excludeId, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export declare function FacilityCombobox({ value, onChange, kind, placeholder, disabled, excludeId, }: Props): React.JSX.Element;
15
16
  export {};
16
17
  //# sourceMappingURL=facility-combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"facility-combobox.d.ts","sourceRoot":"","sources":["../../../src/places/components/facility-combobox.tsx"],"names":[],"mappings":"AAeA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAID,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,KAAK,2CAiFP"}
1
+ {"version":3,"file":"facility-combobox.d.ts","sourceRoot":"","sources":["../../../src/places/components/facility-combobox.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA;AAID,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,GACV,EAAE,KAAK,qBAiFP"}
@@ -2,10 +2,10 @@ import type { FacilitiesListFilters } from "../query-keys.js";
2
2
  export interface UseFacilitiesOptions extends FacilitiesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useFacilities(options?: UseFacilitiesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useFacilities(options?: UseFacilitiesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
- kind: "property" | "other" | "hotel" | "restaurant" | "meeting_point" | "resort" | "venue" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction";
8
- status: "active" | "inactive" | "archived";
7
+ kind: "property" | "other" | "hotel" | "resort" | "camp" | "lodge" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "office" | "attraction" | "restaurant";
8
+ status: "active" | "archived" | "inactive";
9
9
  name: string;
10
10
  id: string;
11
11
  parentFacilityId: string | null;
@@ -27,5 +27,5 @@ export declare function useFacilities(options?: UseFacilitiesOptions): import("@
27
27
  total: number;
28
28
  limit: number;
29
29
  offset: number;
30
- }, Error>;
30
+ }>, Error>;
31
31
  //# sourceMappingURL=use-facilities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-facilities.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;UAQ/D"}
1
+ {"version":3,"file":"use-facilities.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;WAQ/D"}
@@ -6,7 +6,7 @@ export type CreateFacilityFeatureInput = z.input<typeof insertFacilityFeatureSch
6
6
  export type UpdateFacilityFeatureInput = z.input<typeof updateFacilityFeatureSchema>;
7
7
  export declare function useFacilityFeatureMutation(): {
8
8
  create: import("@tanstack/react-query").UseMutationResult<{
9
- category: "security" | "other" | "service" | "policy" | "amenity" | "accessibility";
9
+ category: "security" | "accessibility" | "other" | "service" | "amenity" | "policy";
10
10
  name: string;
11
11
  highlighted: boolean;
12
12
  sortOrder: number;
@@ -17,7 +17,7 @@ export declare function useFacilityFeatureMutation(): {
17
17
  valueText: string | null;
18
18
  }, Error, CreateFacilityFeatureInput, unknown>;
19
19
  update: import("@tanstack/react-query").UseMutationResult<{
20
- category: "security" | "other" | "service" | "policy" | "amenity" | "accessibility";
20
+ category: "security" | "accessibility" | "other" | "service" | "amenity" | "policy";
21
21
  name: string;
22
22
  highlighted: boolean;
23
23
  sortOrder: number;
@@ -9,7 +9,7 @@ export function useFacilityFeatureMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async ({ facilityId, ...input }) => {
12
- const { data } = await fetchWithValidation(`/v1/operations/facilities/${facilityId}/features`, facilityFeatureSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation(`/v1/admin/operations/facilities/${facilityId}/features`, facilityFeatureSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useFacilityFeatureMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/facility-features/${id}`, facilityFeatureSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/facility-features/${id}`, facilityFeatureSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useFacilityFeatureMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/facility-features/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/facility-features/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
32
32
  onSuccess: (_data, id) => {
33
33
  void queryClient.invalidateQueries({ queryKey: facilitiesQueryKeys.facilityFeatures() });
34
34
  queryClient.removeQueries({ queryKey: facilitiesQueryKeys.facilityFeature(id) });
@@ -2,9 +2,9 @@ import type { FacilityFeaturesListFilters } from "../query-keys.js";
2
2
  export interface UseFacilityFeaturesOptions extends FacilityFeaturesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useFacilityFeatures(options: UseFacilityFeaturesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useFacilityFeatures(options: UseFacilityFeaturesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
- category: "security" | "other" | "service" | "policy" | "amenity" | "accessibility";
7
+ category: "security" | "accessibility" | "other" | "service" | "amenity" | "policy";
8
8
  name: string;
9
9
  highlighted: boolean;
10
10
  sortOrder: number;
@@ -17,5 +17,5 @@ export declare function useFacilityFeatures(options: UseFacilityFeaturesOptions)
17
17
  total: number;
18
18
  limit: number;
19
19
  offset: number;
20
- }, Error>;
20
+ }>, Error>;
21
21
  //# sourceMappingURL=use-facility-features.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-facility-features.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility-features.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAGnE,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;;;;;;;;;;;;;UAQtE"}
1
+ {"version":3,"file":"use-facility-features.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility-features.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAGnE,MAAM,WAAW,0BAA2B,SAAQ,2BAA2B;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B;;;;;;;;;;;;;;;WAQtE"}
@@ -4,8 +4,8 @@ export type CreateFacilityInput = z.input<typeof insertFacilitySchema>;
4
4
  export type UpdateFacilityInput = z.input<typeof updateFacilitySchema>;
5
5
  export declare function useFacilityMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
- kind: "property" | "other" | "hotel" | "restaurant" | "meeting_point" | "resort" | "venue" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction";
8
- status: "active" | "inactive" | "archived";
7
+ kind: "property" | "other" | "hotel" | "resort" | "camp" | "lodge" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "office" | "attraction" | "restaurant";
8
+ status: "active" | "archived" | "inactive";
9
9
  name: string;
10
10
  id: string;
11
11
  parentFacilityId: string | null;
@@ -24,12 +24,12 @@ export declare function useFacilityMutation(): {
24
24
  longitude: number | null;
25
25
  tags: string[];
26
26
  }, Error, {
27
- kind: "property" | "other" | "hotel" | "restaurant" | "meeting_point" | "resort" | "venue" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction";
27
+ kind: "property" | "other" | "hotel" | "resort" | "camp" | "lodge" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "office" | "attraction" | "restaurant";
28
28
  name: string;
29
29
  parentFacilityId?: string | null | undefined;
30
- ownerType?: "other" | "organization" | "supplier" | "internal" | null | undefined;
30
+ ownerType?: "supplier" | "other" | "internal" | "organization" | null | undefined;
31
31
  ownerId?: string | null | undefined;
32
- status?: "active" | "inactive" | "archived" | undefined;
32
+ status?: "active" | "archived" | "inactive" | undefined;
33
33
  code?: string | null | undefined;
34
34
  description?: string | null | undefined;
35
35
  timezone?: string | null | undefined;
@@ -44,8 +44,8 @@ export declare function useFacilityMutation(): {
44
44
  tags?: string[] | undefined;
45
45
  }, unknown>;
46
46
  update: import("@tanstack/react-query").UseMutationResult<{
47
- kind: "property" | "other" | "hotel" | "restaurant" | "meeting_point" | "resort" | "venue" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction";
48
- status: "active" | "inactive" | "archived";
47
+ kind: "property" | "other" | "hotel" | "resort" | "camp" | "lodge" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "office" | "attraction" | "restaurant";
48
+ status: "active" | "archived" | "inactive";
49
49
  name: string;
50
50
  id: string;
51
51
  parentFacilityId: string | null;
@@ -9,7 +9,7 @@ export function useFacilityMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/facilities", facilitySingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/facilities", facilitySingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useFacilityMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/facilities/${id}`, facilitySingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/facilities/${id}`, facilitySingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useFacilityMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/facilities/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/facilities/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -9,7 +9,7 @@ export function useFacilityOperationScheduleMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async ({ facilityId, ...input }) => {
12
- const { data } = await fetchWithValidation(`/v1/operations/facilities/${facilityId}/operation-schedules`, facilityOperationScheduleSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation(`/v1/admin/operations/facilities/${facilityId}/operation-schedules`, facilityOperationScheduleSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -21,7 +21,7 @@ export function useFacilityOperationScheduleMutation() {
21
21
  });
22
22
  const update = useMutation({
23
23
  mutationFn: async ({ id, input, }) => {
24
- const { data } = await fetchWithValidation(`/v1/operations/facility-operation-schedules/${id}`, facilityOperationScheduleSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
24
+ const { data } = await fetchWithValidation(`/v1/admin/operations/facility-operation-schedules/${id}`, facilityOperationScheduleSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
25
25
  return data;
26
26
  },
27
27
  onSuccess: (data) => {
@@ -32,7 +32,7 @@ export function useFacilityOperationScheduleMutation() {
32
32
  },
33
33
  });
34
34
  const remove = useMutation({
35
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/facility-operation-schedules/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
35
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/facility-operation-schedules/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
36
36
  onSuccess: (_data, id) => {
37
37
  void queryClient.invalidateQueries({
38
38
  queryKey: facilitiesQueryKeys.facilityOperationSchedules(),
@@ -2,7 +2,7 @@ import type { FacilityOperationSchedulesListFilters } from "../query-keys.js";
2
2
  export interface UseFacilityOperationSchedulesOptions extends FacilityOperationSchedulesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useFacilityOperationSchedules(options: UseFacilityOperationSchedulesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useFacilityOperationSchedules(options: UseFacilityOperationSchedulesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  closed: boolean;
8
8
  id: string;
@@ -17,5 +17,5 @@ export declare function useFacilityOperationSchedules(options: UseFacilityOperat
17
17
  total: number;
18
18
  limit: number;
19
19
  offset: number;
20
- }, Error>;
20
+ }>, Error>;
21
21
  //# sourceMappingURL=use-facility-operation-schedules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-facility-operation-schedules.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility-operation-schedules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAA;AAG7E,MAAM,WAAW,oCACf,SAAQ,qCAAqC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,oCAAoC;;;;;;;;;;;;;;;UAQ1F"}
1
+ {"version":3,"file":"use-facility-operation-schedules.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility-operation-schedules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAA;AAG7E,MAAM,WAAW,oCACf,SAAQ,qCAAqC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,oCAAoC;;;;;;;;;;;;;;;WAQ1F"}
@@ -1,9 +1,9 @@
1
1
  export interface UseFacilityOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useFacility(id: string | null | undefined, options?: UseFacilityOptions): import("@tanstack/react-query").UseQueryResult<{
5
- kind: "property" | "other" | "hotel" | "restaurant" | "meeting_point" | "resort" | "venue" | "transfer_hub" | "airport" | "station" | "marina" | "camp" | "lodge" | "office" | "attraction";
6
- status: "active" | "inactive" | "archived";
4
+ export declare function useFacility(id: string | null | undefined, options?: UseFacilityOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
5
+ kind: "property" | "other" | "hotel" | "resort" | "camp" | "lodge" | "venue" | "meeting_point" | "transfer_hub" | "airport" | "station" | "marina" | "office" | "attraction" | "restaurant";
6
+ status: "active" | "archived" | "inactive";
7
7
  name: string;
8
8
  id: string;
9
9
  parentFacilityId: string | null;
@@ -21,5 +21,5 @@ export declare function useFacility(id: string | null | undefined, options?: Use
21
21
  latitude: number | null;
22
22
  longitude: number | null;
23
23
  tags: string[];
24
- }, Error>;
24
+ }>, Error>;
25
25
  //# sourceMappingURL=use-facility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-facility.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;UAQ1F"}
1
+ {"version":3,"file":"use-facility.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-facility.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;WAQ1F"}
@@ -2,7 +2,7 @@ import type { PropertiesListFilters } from "../query-keys.js";
2
2
  export interface UsePropertiesOptions extends PropertiesListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useProperties(options?: UsePropertiesOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useProperties(options?: UsePropertiesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  facilityId: string;
8
8
  propertyType: "other" | "hotel" | "resort" | "camp" | "lodge" | "villa" | "apartment" | "hostel";
@@ -19,5 +19,5 @@ export declare function useProperties(options?: UsePropertiesOptions): import("@
19
19
  total: number;
20
20
  limit: number;
21
21
  offset: number;
22
- }, Error>;
22
+ }>, Error>;
23
23
  //# sourceMappingURL=use-properties.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-properties.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;;UAQ/D"}
1
+ {"version":3,"file":"use-properties.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-properties.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAG7D,MAAM,WAAW,oBAAqB,SAAQ,qBAAqB;IACjE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,OAAO,GAAE,oBAAyB;;;;;;;;;;;;;;;;;WAQ/D"}
@@ -9,7 +9,7 @@ export function usePropertyGroupMemberMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/property-group-members", propertyGroupMemberSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/property-group-members", propertyGroupMemberSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function usePropertyGroupMemberMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/property-group-members/${id}`, propertyGroupMemberSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/property-group-members/${id}`, propertyGroupMemberSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function usePropertyGroupMemberMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/property-group-members/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/property-group-members/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
32
32
  onSuccess: (_data, id) => {
33
33
  void queryClient.invalidateQueries({ queryKey: facilitiesQueryKeys.propertyGroupMembers() });
34
34
  queryClient.removeQueries({ queryKey: facilitiesQueryKeys.propertyGroupMember(id) });
@@ -2,7 +2,7 @@ import type { PropertyGroupMembersListFilters } from "../query-keys.js";
2
2
  export interface UsePropertyGroupMembersOptions extends PropertyGroupMembersListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function usePropertyGroupMembers(options: UsePropertyGroupMembersOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function usePropertyGroupMembers(options: UsePropertyGroupMembersOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
7
  groupId: string;
8
8
  propertyId: string;
@@ -16,5 +16,5 @@ export declare function usePropertyGroupMembers(options: UsePropertyGroupMembers
16
16
  total: number;
17
17
  limit: number;
18
18
  offset: number;
19
- }, Error>;
19
+ }>, Error>;
20
20
  //# sourceMappingURL=use-property-group-members.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-property-group-members.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-group-members.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAA;AAGvE,MAAM,WAAW,8BAA+B,SAAQ,+BAA+B;IACrF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,8BAA8B;;;;;;;;;;;;;;UAQ9E"}
1
+ {"version":3,"file":"use-property-group-members.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-group-members.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAA;AAGvE,MAAM,WAAW,8BAA+B,SAAQ,+BAA+B;IACrF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,8BAA8B;;;;;;;;;;;;;;WAQ9E"}
@@ -4,8 +4,8 @@ export type CreatePropertyGroupInput = z.input<typeof insertPropertyGroupSchema>
4
4
  export type UpdatePropertyGroupInput = z.input<typeof updatePropertyGroupSchema>;
5
5
  export declare function usePropertyGroupMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
- groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
8
- status: "active" | "inactive" | "archived";
7
+ groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
8
+ status: "active" | "archived" | "inactive";
9
9
  name: string;
10
10
  id: string;
11
11
  parentGroupId: string | null;
@@ -18,8 +18,8 @@ export declare function usePropertyGroupMutation(): {
18
18
  }, Error, {
19
19
  name: string;
20
20
  parentGroupId?: string | null | undefined;
21
- groupType?: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster" | undefined;
22
- status?: "active" | "inactive" | "archived" | undefined;
21
+ groupType?: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster" | undefined;
22
+ status?: "active" | "archived" | "inactive" | undefined;
23
23
  code?: string | null | undefined;
24
24
  brandName?: string | null | undefined;
25
25
  legalName?: string | null | undefined;
@@ -28,8 +28,8 @@ export declare function usePropertyGroupMutation(): {
28
28
  metadata?: Record<string, unknown> | null | undefined;
29
29
  }, unknown>;
30
30
  update: import("@tanstack/react-query").UseMutationResult<{
31
- groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
32
- status: "active" | "inactive" | "archived";
31
+ groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
32
+ status: "active" | "archived" | "inactive";
33
33
  name: string;
34
34
  id: string;
35
35
  parentGroupId: string | null;
@@ -9,7 +9,7 @@ export function usePropertyGroupMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/property-groups", propertyGroupSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/property-groups", propertyGroupSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function usePropertyGroupMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/property-groups/${id}`, propertyGroupSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/property-groups/${id}`, propertyGroupSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function usePropertyGroupMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/property-groups/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/property-groups/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
32
32
  onSuccess: (_data, id) => {
33
33
  void queryClient.invalidateQueries({ queryKey: facilitiesQueryKeys.propertyGroups() });
34
34
  queryClient.removeQueries({ queryKey: facilitiesQueryKeys.propertyGroup(id) });
@@ -1,9 +1,9 @@
1
1
  export interface UsePropertyGroupOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function usePropertyGroup(id: string | null | undefined, options?: UsePropertyGroupOptions): import("@tanstack/react-query").UseQueryResult<{
5
- groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
6
- status: "active" | "inactive" | "archived";
4
+ export declare function usePropertyGroup(id: string | null | undefined, options?: UsePropertyGroupOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
5
+ groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
6
+ status: "active" | "archived" | "inactive";
7
7
  name: string;
8
8
  id: string;
9
9
  parentGroupId: string | null;
@@ -13,5 +13,5 @@ export declare function usePropertyGroup(id: string | null | undefined, options?
13
13
  website: string | null;
14
14
  notes: string | null;
15
15
  metadata?: Record<string, unknown> | null | undefined;
16
- }, Error>;
16
+ }>, Error>;
17
17
  //# sourceMappingURL=use-property-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-property-group.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-group.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,uBAA4B;;;;;;;;;;;;UAStC"}
1
+ {"version":3,"file":"use-property-group.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-group.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7B,OAAO,GAAE,uBAA4B;;;;;;;;;;;;WAStC"}
@@ -2,10 +2,10 @@ import type { PropertyGroupsListFilters } from "../query-keys.js";
2
2
  export interface UsePropertyGroupsOptions extends PropertyGroupsListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function usePropertyGroups(options?: UsePropertyGroupsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function usePropertyGroups(options?: UsePropertyGroupsOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
6
6
  data: {
7
- groupType: "other" | "brand" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
8
- status: "active" | "inactive" | "archived";
7
+ groupType: "brand" | "other" | "chain" | "management_company" | "collection" | "portfolio" | "cluster";
8
+ status: "active" | "archived" | "inactive";
9
9
  name: string;
10
10
  id: string;
11
11
  parentGroupId: string | null;
@@ -19,5 +19,5 @@ export declare function usePropertyGroups(options?: UsePropertyGroupsOptions): i
19
19
  total: number;
20
20
  limit: number;
21
21
  offset: number;
22
- }, Error>;
22
+ }>, Error>;
23
23
  //# sourceMappingURL=use-property-groups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-property-groups.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-groups.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-property-groups.d.ts","sourceRoot":"","sources":["../../../src/places/hooks/use-property-groups.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"}
@@ -9,7 +9,7 @@ export function usePropertyMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/operations/properties", propertySingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/operations/properties", propertySingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function usePropertyMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/operations/properties/${id}`, propertySingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/operations/properties/${id}`, propertySingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function usePropertyMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/operations/properties/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/operations/properties/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -1,7 +1,7 @@
1
1
  export interface UsePropertyOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useProperty(id: string | null | undefined, options?: UsePropertyOptions): import("@tanstack/react-query").UseQueryResult<{
4
+ export declare function useProperty(id: string | null | undefined, options?: UsePropertyOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
5
5
  facilityId: string;
6
6
  propertyType: "other" | "hotel" | "resort" | "camp" | "lodge" | "villa" | "apartment" | "hostel";
7
7
  id: string;
@@ -13,5 +13,5 @@ export declare function useProperty(id: string | null | undefined, options?: Use
13
13
  checkOutTime: string | null;
14
14
  policyNotes: string | null;
15
15
  amenityNotes: string | null;
16
- }, Error>;
16
+ }>, Error>;
17
17
  //# sourceMappingURL=use-property.d.ts.map