@voyant-travel/operations-react 0.17.2 → 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.
- package/dist/availability/admin/availability-index-host.d.ts +1 -1
- package/dist/availability/admin/availability-index-host.d.ts.map +1 -1
- package/dist/availability/admin/availability-index-host.js +8 -8
- package/dist/availability/admin/option-resource-template-seat-map.d.ts +1 -1
- package/dist/availability/admin/option-resource-template-seat-map.d.ts.map +1 -1
- package/dist/availability/admin/option-resource-templates-panel.d.ts +1 -1
- package/dist/availability/admin/option-resource-templates-panel.d.ts.map +1 -1
- package/dist/availability/admin/option-resource-templates-panel.js +1 -1
- package/dist/availability/admin/pages/availability-rule-detail-page.d.ts +1 -1
- package/dist/availability/admin/pages/availability-rule-detail-page.d.ts.map +1 -1
- package/dist/availability/admin/pages/availability-rule-detail-page.js +1 -0
- package/dist/availability/admin/pages/availability-slot-detail-page.d.ts +1 -1
- package/dist/availability/admin/pages/availability-slot-detail-page.d.ts.map +1 -1
- package/dist/availability/admin/pages/availability-slot-detail-page.js +1 -0
- package/dist/availability/admin/pages/availability-start-time-detail-page.d.ts +1 -1
- package/dist/availability/admin/pages/availability-start-time-detail-page.d.ts.map +1 -1
- package/dist/availability/admin/pages/availability-start-time-detail-page.js +1 -0
- package/dist/availability/admin/rule-detail-host.d.ts +1 -1
- package/dist/availability/admin/rule-detail-host.d.ts.map +1 -1
- package/dist/availability/admin/slot-detail-host.d.ts +1 -1
- package/dist/availability/admin/slot-detail-host.d.ts.map +1 -1
- package/dist/availability/admin/start-time-detail-host.d.ts +1 -1
- package/dist/availability/admin/start-time-detail-host.d.ts.map +1 -1
- package/dist/availability/allocation/components/seat-map-builder.d.ts +1 -1
- package/dist/availability/allocation/components/seat-map-builder.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.d.ts +1 -1
- package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-add-resource-dialog.js +1 -1
- package/dist/availability/allocation/components/slot-allocation-page-panels.d.ts +2 -2
- package/dist/availability/allocation/components/slot-allocation-page-panels.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-page.d.ts +1 -1
- package/dist/availability/allocation/components/slot-allocation-page.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-resource-view-rows.d.ts +2 -2
- package/dist/availability/allocation/components/slot-allocation-resource-view-rows.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-resource-view.d.ts +1 -1
- package/dist/availability/allocation/components/slot-allocation-resource-view.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-seat-view.d.ts +1 -1
- package/dist/availability/allocation/components/slot-allocation-seat-view.d.ts.map +1 -1
- package/dist/availability/allocation/components/slot-allocation-seat-view.js +3 -3
- package/dist/availability/allocation/components/slot-allocation-shared.d.ts +6 -6
- package/dist/availability/allocation/components/slot-allocation-shared.d.ts.map +1 -1
- package/dist/availability/allocation/i18n/provider.d.ts +1 -1
- package/dist/availability/allocation/i18n/provider.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/closeout-dialog.d.ts +1 -1
- package/dist/availability/components/availability-dialogs/closeout-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/closeout-dialog.js +1 -1
- package/dist/availability/components/availability-dialogs/pickup-point-dialog.d.ts +1 -1
- package/dist/availability/components/availability-dialogs/pickup-point-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/pickup-point-dialog.js +1 -1
- package/dist/availability/components/availability-dialogs/rule-dialog.d.ts +1 -1
- package/dist/availability/components/availability-dialogs/rule-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/rule-dialog.js +1 -1
- package/dist/availability/components/availability-dialogs/shared.d.ts +3 -3
- package/dist/availability/components/availability-dialogs/shared.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/slot-dialog.d.ts +1 -1
- package/dist/availability/components/availability-dialogs/slot-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/slot-dialog.js +1 -1
- package/dist/availability/components/availability-dialogs/start-time-dialog.d.ts +1 -1
- package/dist/availability/components/availability-dialogs/start-time-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/start-time-dialog.js +1 -1
- package/dist/availability/components/availability-overview.d.ts +1 -1
- package/dist/availability/components/availability-overview.d.ts.map +1 -1
- package/dist/availability/components/availability-page.d.ts +1 -1
- package/dist/availability/components/availability-page.d.ts.map +1 -1
- package/dist/availability/components/availability-rule-detail-page.d.ts +6 -6
- package/dist/availability/components/availability-rule-detail-page.d.ts.map +1 -1
- package/dist/availability/components/availability-rule-detail-page.js +1 -1
- package/dist/availability/components/availability-section-header.d.ts +1 -1
- package/dist/availability/components/availability-section-header.d.ts.map +1 -1
- package/dist/availability/components/availability-skeletons.d.ts +5 -5
- package/dist/availability/components/availability-skeletons.d.ts.map +1 -1
- package/dist/availability/components/availability-slot-detail-activity.d.ts +1 -1
- package/dist/availability/components/availability-slot-detail-activity.d.ts.map +1 -1
- package/dist/availability/components/availability-slot-detail-financials.d.ts +1 -1
- package/dist/availability/components/availability-slot-detail-financials.d.ts.map +1 -1
- package/dist/availability/components/availability-slot-detail-meta.d.ts +1 -1
- package/dist/availability/components/availability-slot-detail-meta.d.ts.map +1 -1
- package/dist/availability/components/availability-slot-detail-page.d.ts +6 -6
- package/dist/availability/components/availability-slot-detail-page.d.ts.map +1 -1
- package/dist/availability/components/availability-start-time-detail-page.d.ts +6 -6
- package/dist/availability/components/availability-start-time-detail-page.d.ts.map +1 -1
- package/dist/availability/components/availability-start-time-detail-page.js +1 -1
- package/dist/availability/components/availability-tabs/other-tabs.d.ts +4 -4
- package/dist/availability/components/availability-tabs/other-tabs.d.ts.map +1 -1
- package/dist/availability/components/availability-tabs/other-tabs.js +10 -10
- package/dist/availability/components/availability-tabs/slots-tab.d.ts +1 -1
- package/dist/availability/components/availability-tabs/slots-tab.d.ts.map +1 -1
- package/dist/availability/components/availability-tabs/slots-tab.js +4 -4
- package/dist/availability/hooks/use-availability-batch-mutations.d.ts +7 -7
- package/dist/availability/hooks/use-availability-batch-mutations.d.ts.map +1 -1
- package/dist/availability/hooks/use-availability-batch-mutations.js +10 -10
- package/dist/availability/hooks/use-availability-closeout-mutation.js +3 -3
- package/dist/availability/hooks/use-availability-overview.d.ts +3 -3
- package/dist/availability/hooks/use-availability-overview.d.ts.map +1 -1
- package/dist/availability/hooks/use-availability-pickup-point-mutation.js +3 -3
- package/dist/availability/hooks/use-availability-rule-mutation.js +3 -3
- package/dist/availability/hooks/use-availability-slot-mutation.d.ts +3 -3
- package/dist/availability/hooks/use-availability-slot-mutation.js +3 -3
- package/dist/availability/hooks/use-availability-start-time-mutation.js +3 -3
- package/dist/availability/hooks/use-closeouts.d.ts +2 -2
- package/dist/availability/hooks/use-closeouts.d.ts.map +1 -1
- package/dist/availability/hooks/use-pickup-points.d.ts +2 -2
- package/dist/availability/hooks/use-pickup-points.d.ts.map +1 -1
- package/dist/availability/hooks/use-products.d.ts +2 -2
- package/dist/availability/hooks/use-products.d.ts.map +1 -1
- package/dist/availability/hooks/use-rules.d.ts +2 -2
- package/dist/availability/hooks/use-rules.d.ts.map +1 -1
- package/dist/availability/hooks/use-slot-allocation.d.ts +6 -6
- package/dist/availability/hooks/use-slot-allocation.d.ts.map +1 -1
- package/dist/availability/hooks/use-slot-allocation.js +4 -3
- package/dist/availability/hooks/use-slot-unit-availability.d.ts +2 -2
- package/dist/availability/hooks/use-slot-unit-availability.d.ts.map +1 -1
- package/dist/availability/hooks/use-slots.d.ts +3 -3
- package/dist/availability/hooks/use-slots.d.ts.map +1 -1
- package/dist/availability/hooks/use-start-times.d.ts +2 -2
- package/dist/availability/hooks/use-start-times.d.ts.map +1 -1
- package/dist/availability/i18n/provider.d.ts +1 -1
- package/dist/availability/i18n/provider.d.ts.map +1 -1
- package/dist/availability/query-options.d.ts +12 -12
- package/dist/availability/query-options.d.ts.map +1 -1
- package/dist/availability/query-options.js +15 -15
- package/dist/availability/schemas.d.ts +8 -8
- package/dist/ground/hooks/use-ground-driver-mutation.js +3 -3
- package/dist/ground/hooks/use-ground-drivers.d.ts +2 -2
- package/dist/ground/hooks/use-ground-drivers.d.ts.map +1 -1
- package/dist/ground/hooks/use-ground-operator-mutation.js +3 -3
- package/dist/ground/hooks/use-ground-operators.d.ts +2 -2
- package/dist/ground/hooks/use-ground-operators.d.ts.map +1 -1
- package/dist/ground/hooks/use-ground-vehicle-mutation.js +3 -3
- package/dist/ground/hooks/use-ground-vehicles.d.ts +2 -2
- package/dist/ground/hooks/use-ground-vehicles.d.ts.map +1 -1
- package/dist/ground/query-options.js +6 -6
- package/dist/ground/schemas.d.ts +3 -3
- package/dist/places/components/facility-badge.d.ts +1 -1
- package/dist/places/components/facility-badge.d.ts.map +1 -1
- package/dist/places/components/facility-combobox.d.ts +2 -1
- package/dist/places/components/facility-combobox.d.ts.map +1 -1
- package/dist/places/hooks/use-facilities.d.ts +4 -4
- package/dist/places/hooks/use-facilities.d.ts.map +1 -1
- package/dist/places/hooks/use-facility-feature-mutation.d.ts +2 -2
- package/dist/places/hooks/use-facility-feature-mutation.js +3 -3
- package/dist/places/hooks/use-facility-features.d.ts +3 -3
- package/dist/places/hooks/use-facility-features.d.ts.map +1 -1
- package/dist/places/hooks/use-facility-mutation.d.ts +7 -7
- package/dist/places/hooks/use-facility-mutation.js +3 -3
- package/dist/places/hooks/use-facility-operation-schedule-mutation.js +3 -3
- package/dist/places/hooks/use-facility-operation-schedules.d.ts +2 -2
- package/dist/places/hooks/use-facility-operation-schedules.d.ts.map +1 -1
- package/dist/places/hooks/use-facility.d.ts +4 -4
- package/dist/places/hooks/use-facility.d.ts.map +1 -1
- package/dist/places/hooks/use-properties.d.ts +2 -2
- package/dist/places/hooks/use-properties.d.ts.map +1 -1
- package/dist/places/hooks/use-property-group-member-mutation.js +3 -3
- package/dist/places/hooks/use-property-group-members.d.ts +2 -2
- package/dist/places/hooks/use-property-group-members.d.ts.map +1 -1
- package/dist/places/hooks/use-property-group-mutation.d.ts +6 -6
- package/dist/places/hooks/use-property-group-mutation.js +3 -3
- package/dist/places/hooks/use-property-group.d.ts +4 -4
- package/dist/places/hooks/use-property-group.d.ts.map +1 -1
- package/dist/places/hooks/use-property-groups.d.ts +4 -4
- package/dist/places/hooks/use-property-groups.d.ts.map +1 -1
- package/dist/places/hooks/use-property-mutation.js +3 -3
- package/dist/places/hooks/use-property.d.ts +2 -2
- package/dist/places/hooks/use-property.d.ts.map +1 -1
- package/dist/places/i18n/provider.d.ts +1 -1
- package/dist/places/i18n/provider.d.ts.map +1 -1
- package/dist/places/query-options.d.ts +40 -46
- package/dist/places/query-options.d.ts.map +1 -1
- package/dist/places/query-options.js +12 -18
- package/dist/places/schemas.d.ts +15 -15
- package/dist/resources/admin/detail-hosts.d.ts +4 -4
- package/dist/resources/admin/detail-hosts.d.ts.map +1 -1
- package/dist/resources/admin/detail-hosts.js +4 -4
- package/dist/resources/admin/pages/resource-allocation-detail-page.d.ts +1 -1
- package/dist/resources/admin/pages/resource-allocation-detail-page.d.ts.map +1 -1
- package/dist/resources/admin/pages/resource-allocation-detail-page.js +1 -0
- package/dist/resources/admin/pages/resource-assignment-detail-page.d.ts +1 -1
- package/dist/resources/admin/pages/resource-assignment-detail-page.d.ts.map +1 -1
- package/dist/resources/admin/pages/resource-assignment-detail-page.js +1 -0
- package/dist/resources/admin/pages/resource-detail-page.d.ts +1 -1
- package/dist/resources/admin/pages/resource-detail-page.d.ts.map +1 -1
- package/dist/resources/admin/pages/resource-detail-page.js +1 -0
- package/dist/resources/admin/pages/resource-pool-detail-page.d.ts +1 -1
- package/dist/resources/admin/pages/resource-pool-detail-page.d.ts.map +1 -1
- package/dist/resources/admin/pages/resource-pool-detail-page.js +1 -0
- package/dist/resources/admin/resources-dialog-allocation.d.ts +1 -1
- package/dist/resources/admin/resources-dialog-allocation.d.ts.map +1 -1
- package/dist/resources/admin/resources-dialog-allocation.js +3 -3
- package/dist/resources/admin/resources-dialogs-core.d.ts +2 -2
- package/dist/resources/admin/resources-dialogs-core.d.ts.map +1 -1
- package/dist/resources/admin/resources-dialogs-core.js +6 -6
- package/dist/resources/admin/resources-dialogs-ops.d.ts +2 -2
- package/dist/resources/admin/resources-dialogs-ops.d.ts.map +1 -1
- package/dist/resources/admin/resources-dialogs-ops.js +10 -7
- package/dist/resources/admin/resources-dialogs.d.ts +1 -1
- package/dist/resources/admin/resources-dialogs.d.ts.map +1 -1
- package/dist/resources/admin/resources-host.d.ts +1 -1
- package/dist/resources/admin/resources-host.d.ts.map +1 -1
- package/dist/resources/admin/resources-page-skeleton.d.ts +2 -2
- package/dist/resources/admin/resources-page-skeleton.d.ts.map +1 -1
- package/dist/resources/components/resource-allocation-detail-page.d.ts +1 -1
- package/dist/resources/components/resource-allocation-detail-page.d.ts.map +1 -1
- package/dist/resources/components/resource-assignment-detail-page.d.ts +1 -1
- package/dist/resources/components/resource-assignment-detail-page.d.ts.map +1 -1
- package/dist/resources/components/resource-detail-data.d.ts +1 -1
- package/dist/resources/components/resource-detail-data.d.ts.map +1 -1
- package/dist/resources/components/resource-detail-data.js +1 -1
- package/dist/resources/components/resource-detail-page.d.ts +2 -2
- package/dist/resources/components/resource-detail-page.d.ts.map +1 -1
- package/dist/resources/components/resource-detail-shared.d.ts +5 -5
- package/dist/resources/components/resource-detail-shared.d.ts.map +1 -1
- package/dist/resources/components/resource-detail-skeletons.d.ts +4 -4
- package/dist/resources/components/resource-detail-skeletons.d.ts.map +1 -1
- package/dist/resources/components/resource-pool-detail-page.d.ts +2 -2
- package/dist/resources/components/resource-pool-detail-page.d.ts.map +1 -1
- package/dist/resources/components/resources-overview.d.ts +1 -1
- package/dist/resources/components/resources-overview.d.ts.map +1 -1
- package/dist/resources/components/resources-page-filters.d.ts +1 -1
- package/dist/resources/components/resources-page-filters.d.ts.map +1 -1
- package/dist/resources/components/resources-page.d.ts +1 -1
- package/dist/resources/components/resources-page.d.ts.map +1 -1
- package/dist/resources/components/resources-section-header.d.ts +1 -1
- package/dist/resources/components/resources-section-header.d.ts.map +1 -1
- package/dist/resources/components/resources-tabs-primary.d.ts +3 -3
- package/dist/resources/components/resources-tabs-primary.d.ts.map +1 -1
- package/dist/resources/components/resources-tabs-primary.js +7 -7
- package/dist/resources/components/resources-tabs-secondary.d.ts +2 -2
- package/dist/resources/components/resources-tabs-secondary.d.ts.map +1 -1
- package/dist/resources/components/resources-tabs-secondary.js +4 -4
- package/dist/resources/hooks/use-allocation.d.ts +2 -2
- package/dist/resources/hooks/use-allocation.d.ts.map +1 -1
- package/dist/resources/hooks/use-allocations.d.ts +2 -2
- package/dist/resources/hooks/use-allocations.d.ts.map +1 -1
- package/dist/resources/hooks/use-assignment.d.ts +2 -2
- package/dist/resources/hooks/use-assignment.d.ts.map +1 -1
- package/dist/resources/hooks/use-assignments.d.ts +2 -2
- package/dist/resources/hooks/use-assignments.d.ts.map +1 -1
- package/dist/resources/hooks/use-bookings.d.ts +2 -2
- package/dist/resources/hooks/use-bookings.d.ts.map +1 -1
- package/dist/resources/hooks/use-closeouts.d.ts +2 -2
- package/dist/resources/hooks/use-closeouts.d.ts.map +1 -1
- package/dist/resources/hooks/use-pool.d.ts +3 -3
- package/dist/resources/hooks/use-pool.d.ts.map +1 -1
- package/dist/resources/hooks/use-pools.d.ts +3 -3
- package/dist/resources/hooks/use-pools.d.ts.map +1 -1
- package/dist/resources/hooks/use-products.d.ts +2 -2
- package/dist/resources/hooks/use-products.d.ts.map +1 -1
- package/dist/resources/hooks/use-resource.d.ts +3 -3
- package/dist/resources/hooks/use-resource.d.ts.map +1 -1
- package/dist/resources/hooks/use-resources.d.ts +3 -3
- package/dist/resources/hooks/use-resources.d.ts.map +1 -1
- package/dist/resources/hooks/use-rules.d.ts +2 -2
- package/dist/resources/hooks/use-rules.d.ts.map +1 -1
- package/dist/resources/hooks/use-slots.d.ts +2 -2
- package/dist/resources/hooks/use-slots.d.ts.map +1 -1
- package/dist/resources/hooks/use-start-times.d.ts +2 -2
- package/dist/resources/hooks/use-start-times.d.ts.map +1 -1
- package/dist/resources/hooks/use-suppliers.d.ts +2 -2
- package/dist/resources/hooks/use-suppliers.d.ts.map +1 -1
- package/dist/resources/i18n/provider.d.ts +1 -1
- package/dist/resources/i18n/provider.d.ts.map +1 -1
- package/dist/resources/query-options.d.ts +16 -16
- package/dist/resources/query-options.d.ts.map +1 -1
- package/dist/resources/query-options.js +15 -15
- package/dist/resources/schemas.d.ts +18 -18
- package/package.json +26 -26
|
@@ -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
|
});
|
package/dist/ground/schemas.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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):
|
|
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":"
|
|
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" | "
|
|
8
|
-
status: "active" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;
|
|
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" | "
|
|
8
|
-
status: "active" | "
|
|
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" | "
|
|
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?: "
|
|
30
|
+
ownerType?: "supplier" | "other" | "internal" | "organization" | null | undefined;
|
|
31
31
|
ownerId?: string | null | undefined;
|
|
32
|
-
status?: "active" | "
|
|
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" | "
|
|
48
|
-
status: "active" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;
|
|
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" | "
|
|
6
|
-
status: "active" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;;;;;;
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;;;
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;
|
|
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: "
|
|
8
|
-
status: "active" | "
|
|
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?: "
|
|
22
|
-
status?: "active" | "
|
|
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: "
|
|
32
|
-
status: "active" | "
|
|
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: "
|
|
6
|
-
status: "active" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;
|
|
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: "
|
|
8
|
-
status: "active" | "
|
|
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
|
-
}
|
|
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;;;;;;;;;;;;;;;;;
|
|
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
|
-
}
|
|
16
|
+
}>, Error>;
|
|
17
17
|
//# sourceMappingURL=use-property.d.ts.map
|