@voyantjs/hospitality-react 0.2.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.
- package/dist/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +59 -0
- package/dist/hooks/index.d.ts +35 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +34 -0
- package/dist/hooks/use-housekeeping-task-mutation.d.ts +54 -0
- package/dist/hooks/use-housekeeping-task-mutation.d.ts.map +1 -0
- package/dist/hooks/use-housekeeping-task-mutation.js +38 -0
- package/dist/hooks/use-housekeeping-tasks.d.ts +30 -0
- package/dist/hooks/use-housekeeping-tasks.d.ts.map +1 -0
- package/dist/hooks/use-housekeeping-tasks.js +11 -0
- package/dist/hooks/use-maintenance-block-mutation.d.ts +47 -0
- package/dist/hooks/use-maintenance-block-mutation.d.ts.map +1 -0
- package/dist/hooks/use-maintenance-block-mutation.js +38 -0
- package/dist/hooks/use-maintenance-blocks.d.ts +24 -0
- package/dist/hooks/use-maintenance-blocks.d.ts.map +1 -0
- package/dist/hooks/use-maintenance-blocks.js +11 -0
- package/dist/hooks/use-meal-plan-mutation.d.ts +53 -0
- package/dist/hooks/use-meal-plan-mutation.d.ts.map +1 -0
- package/dist/hooks/use-meal-plan-mutation.js +38 -0
- package/dist/hooks/use-meal-plan.d.ts +18 -0
- package/dist/hooks/use-meal-plan.d.ts.map +1 -0
- package/dist/hooks/use-meal-plan.js +12 -0
- package/dist/hooks/use-meal-plans.d.ts +27 -0
- package/dist/hooks/use-meal-plans.d.ts.map +1 -0
- package/dist/hooks/use-meal-plans.js +11 -0
- package/dist/hooks/use-rate-plan-inventory-override-mutation.d.ts +47 -0
- package/dist/hooks/use-rate-plan-inventory-override-mutation.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan-inventory-override-mutation.js +44 -0
- package/dist/hooks/use-rate-plan-inventory-overrides.d.ts +27 -0
- package/dist/hooks/use-rate-plan-inventory-overrides.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan-inventory-overrides.js +11 -0
- package/dist/hooks/use-rate-plan-mutation.d.ts +68 -0
- package/dist/hooks/use-rate-plan-mutation.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan-mutation.js +38 -0
- package/dist/hooks/use-rate-plan-room-type-mutation.d.ts +41 -0
- package/dist/hooks/use-rate-plan-room-type-mutation.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan-room-type-mutation.js +38 -0
- package/dist/hooks/use-rate-plan-room-types.d.ts +25 -0
- package/dist/hooks/use-rate-plan-room-types.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan-room-types.js +11 -0
- package/dist/hooks/use-rate-plan.d.ts +23 -0
- package/dist/hooks/use-rate-plan.d.ts.map +1 -0
- package/dist/hooks/use-rate-plan.js +12 -0
- package/dist/hooks/use-rate-plans.d.ts +32 -0
- package/dist/hooks/use-rate-plans.d.ts.map +1 -0
- package/dist/hooks/use-rate-plans.js +11 -0
- package/dist/hooks/use-room-block-mutation.d.ts +51 -0
- package/dist/hooks/use-room-block-mutation.d.ts.map +1 -0
- package/dist/hooks/use-room-block-mutation.js +38 -0
- package/dist/hooks/use-room-blocks.d.ts +25 -0
- package/dist/hooks/use-room-blocks.d.ts.map +1 -0
- package/dist/hooks/use-room-blocks.js +11 -0
- package/dist/hooks/use-room-inventory-mutation.d.ts +53 -0
- package/dist/hooks/use-room-inventory-mutation.d.ts.map +1 -0
- package/dist/hooks/use-room-inventory-mutation.js +38 -0
- package/dist/hooks/use-room-inventory.d.ts +29 -0
- package/dist/hooks/use-room-inventory.d.ts.map +1 -0
- package/dist/hooks/use-room-inventory.js +11 -0
- package/dist/hooks/use-room-type-mutation.d.ts +83 -0
- package/dist/hooks/use-room-type-mutation.d.ts.map +1 -0
- package/dist/hooks/use-room-type-mutation.js +38 -0
- package/dist/hooks/use-room-type-rate-mutation.d.ts +50 -0
- package/dist/hooks/use-room-type-rate-mutation.d.ts.map +1 -0
- package/dist/hooks/use-room-type-rate-mutation.js +38 -0
- package/dist/hooks/use-room-type-rates.d.ts +28 -0
- package/dist/hooks/use-room-type-rates.d.ts.map +1 -0
- package/dist/hooks/use-room-type-rates.js +11 -0
- package/dist/hooks/use-room-type.d.ts +28 -0
- package/dist/hooks/use-room-type.d.ts.map +1 -0
- package/dist/hooks/use-room-type.js +12 -0
- package/dist/hooks/use-room-types.d.ts +37 -0
- package/dist/hooks/use-room-types.d.ts.map +1 -0
- package/dist/hooks/use-room-types.js +11 -0
- package/dist/hooks/use-room-unit-mutation.d.ts +56 -0
- package/dist/hooks/use-room-unit-mutation.d.ts.map +1 -0
- package/dist/hooks/use-room-unit-mutation.js +38 -0
- package/dist/hooks/use-room-unit.d.ts +19 -0
- package/dist/hooks/use-room-unit.d.ts.map +1 -0
- package/dist/hooks/use-room-unit.js +12 -0
- package/dist/hooks/use-room-units.d.ts +28 -0
- package/dist/hooks/use-room-units.d.ts.map +1 -0
- package/dist/hooks/use-room-units.js +11 -0
- package/dist/hooks/use-stay-booking-item-mutation.d.ts +72 -0
- package/dist/hooks/use-stay-booking-item-mutation.d.ts.map +1 -0
- package/dist/hooks/use-stay-booking-item-mutation.js +38 -0
- package/dist/hooks/use-stay-booking-items.d.ts +39 -0
- package/dist/hooks/use-stay-booking-items.d.ts.map +1 -0
- package/dist/hooks/use-stay-booking-items.js +11 -0
- package/dist/hooks/use-stay-folio-mutation.d.ts +39 -0
- package/dist/hooks/use-stay-folio-mutation.d.ts.map +1 -0
- package/dist/hooks/use-stay-folio-mutation.js +38 -0
- package/dist/hooks/use-stay-folios.d.ts +22 -0
- package/dist/hooks/use-stay-folios.d.ts.map +1 -0
- package/dist/hooks/use-stay-folios.js +11 -0
- package/dist/hooks/use-stay-operation-mutation.d.ts +51 -0
- package/dist/hooks/use-stay-operation-mutation.d.ts.map +1 -0
- package/dist/hooks/use-stay-operation-mutation.js +38 -0
- package/dist/hooks/use-stay-operations.d.ts +28 -0
- package/dist/hooks/use-stay-operations.d.ts.map +1 -0
- package/dist/hooks/use-stay-operations.js +11 -0
- package/dist/hooks/use-stay-rule-mutation.d.ts +74 -0
- package/dist/hooks/use-stay-rule-mutation.d.ts.map +1 -0
- package/dist/hooks/use-stay-rule-mutation.js +38 -0
- package/dist/hooks/use-stay-rules.d.ts +33 -0
- package/dist/hooks/use-stay-rules.d.ts.map +1 -0
- package/dist/hooks/use-stay-rules.js +11 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +129 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +48 -0
- package/dist/query-options.d.ts +1678 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +189 -0
- package/dist/schemas.d.ts +965 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +225 -0
- package/package.json +79 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantHospitalityContext, type VoyantHospitalityContextValue, VoyantHospitalityProvider, type VoyantHospitalityProviderProps, } from "./provider.js";
|
|
4
|
+
export { hospitalityQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getHousekeepingTasksQueryOptions, getMaintenanceBlocksQueryOptions, getMealPlanQueryOptions, getMealPlansQueryOptions, getRatePlanInventoryOverridesQueryOptions, getRatePlanQueryOptions, getRatePlanRoomTypesQueryOptions, getRatePlansQueryOptions, getRoomBlocksQueryOptions, getRoomInventoryQueryOptions, getRoomTypeQueryOptions, getRoomTypeRatesQueryOptions, getRoomTypesQueryOptions, getRoomUnitQueryOptions, getRoomUnitsQueryOptions, getStayBookingItemsQueryOptions, getStayFoliosQueryOptions, getStayOperationsQueryOptions, getStayRulesQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,2BAA2B,EAC3B,KAAK,6BAA6B,EAClC,yBAAyB,EACzB,KAAK,8BAA8B,GACpC,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,EACvB,wBAAwB,EACxB,yCAAyC,EACzC,uBAAuB,EACvB,gCAAgC,EAChC,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantHospitalityContext, VoyantHospitalityProvider, } from "./provider.js";
|
|
4
|
+
export { hospitalityQueryKeys } from "./query-keys.js";
|
|
5
|
+
export { getHousekeepingTasksQueryOptions, getMaintenanceBlocksQueryOptions, getMealPlanQueryOptions, getMealPlansQueryOptions, getRatePlanInventoryOverridesQueryOptions, getRatePlanQueryOptions, getRatePlanRoomTypesQueryOptions, getRatePlansQueryOptions, getRoomBlocksQueryOptions, getRoomInventoryQueryOptions, getRoomTypeQueryOptions, getRoomTypeRatesQueryOptions, getRoomTypesQueryOptions, getRoomUnitQueryOptions, getRoomUnitsQueryOptions, getStayBookingItemsQueryOptions, getStayFoliosQueryOptions, getStayOperationsQueryOptions, getStayRulesQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantHospitalityContext, type VoyantReactContextValue as VoyantHospitalityContextValue, VoyantReactProvider as VoyantHospitalityProvider, type VoyantReactProviderProps as VoyantHospitalityProviderProps, } from "@voyantjs/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,2BAA2B,EACpD,KAAK,uBAAuB,IAAI,6BAA6B,EAC7D,mBAAmB,IAAI,yBAAyB,EAChD,KAAK,wBAAwB,IAAI,8BAA8B,GAChE,MAAM,iBAAiB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantHospitalityContext, VoyantReactProvider as VoyantHospitalityProvider, } from "@voyantjs/react";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export interface HospitalityListFilters {
|
|
2
|
+
propertyId?: string | null | undefined;
|
|
3
|
+
search?: string | undefined;
|
|
4
|
+
limit?: number | undefined;
|
|
5
|
+
offset?: number | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface HospitalityDateFilters extends HospitalityListFilters {
|
|
8
|
+
dateFrom?: string | undefined;
|
|
9
|
+
dateTo?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const hospitalityQueryKeys: {
|
|
12
|
+
all: readonly ["hospitality"];
|
|
13
|
+
roomTypes: () => readonly ["hospitality", "room-types"];
|
|
14
|
+
roomTypesList: (filters: HospitalityListFilters) => readonly ["hospitality", "room-types", HospitalityListFilters];
|
|
15
|
+
roomType: (id: string) => readonly ["hospitality", "room-types", string];
|
|
16
|
+
mealPlans: () => readonly ["hospitality", "meal-plans"];
|
|
17
|
+
mealPlansList: (filters: HospitalityListFilters) => readonly ["hospitality", "meal-plans", HospitalityListFilters];
|
|
18
|
+
mealPlan: (id: string) => readonly ["hospitality", "meal-plans", string];
|
|
19
|
+
roomUnits: () => readonly ["hospitality", "room-units"];
|
|
20
|
+
roomUnitsList: (filters: HospitalityListFilters) => readonly ["hospitality", "room-units", HospitalityListFilters];
|
|
21
|
+
roomUnit: (id: string) => readonly ["hospitality", "room-units", string];
|
|
22
|
+
maintenanceBlocks: () => readonly ["hospitality", "maintenance-blocks"];
|
|
23
|
+
maintenanceBlocksList: (filters: HospitalityListFilters) => readonly ["hospitality", "maintenance-blocks", HospitalityListFilters];
|
|
24
|
+
maintenanceBlock: (id: string) => readonly ["hospitality", "maintenance-blocks", string];
|
|
25
|
+
roomBlocks: () => readonly ["hospitality", "room-blocks"];
|
|
26
|
+
roomBlocksList: (filters: HospitalityListFilters) => readonly ["hospitality", "room-blocks", HospitalityListFilters];
|
|
27
|
+
roomBlock: (id: string) => readonly ["hospitality", "room-blocks", string];
|
|
28
|
+
roomInventory: () => readonly ["hospitality", "room-inventory"];
|
|
29
|
+
roomInventoryList: (filters: HospitalityDateFilters & {
|
|
30
|
+
dateFrom?: string | undefined;
|
|
31
|
+
dateTo?: string | undefined;
|
|
32
|
+
roomTypeId?: string | undefined;
|
|
33
|
+
}) => readonly ["hospitality", "room-inventory", HospitalityDateFilters & {
|
|
34
|
+
dateFrom?: string | undefined;
|
|
35
|
+
dateTo?: string | undefined;
|
|
36
|
+
roomTypeId?: string | undefined;
|
|
37
|
+
}];
|
|
38
|
+
roomInventoryItem: (id: string) => readonly ["hospitality", "room-inventory", string];
|
|
39
|
+
ratePlans: () => readonly ["hospitality", "rate-plans"];
|
|
40
|
+
ratePlansList: (filters: HospitalityListFilters) => readonly ["hospitality", "rate-plans", HospitalityListFilters];
|
|
41
|
+
ratePlan: (id: string) => readonly ["hospitality", "rate-plans", string];
|
|
42
|
+
ratePlanRoomTypes: () => readonly ["hospitality", "rate-plan-room-types"];
|
|
43
|
+
ratePlanRoomTypesList: (filters: HospitalityListFilters & {
|
|
44
|
+
ratePlanId?: string | undefined;
|
|
45
|
+
roomTypeId?: string | undefined;
|
|
46
|
+
productId?: string | undefined;
|
|
47
|
+
active?: boolean | undefined;
|
|
48
|
+
}) => readonly ["hospitality", "rate-plan-room-types", HospitalityListFilters & {
|
|
49
|
+
ratePlanId?: string | undefined;
|
|
50
|
+
roomTypeId?: string | undefined;
|
|
51
|
+
productId?: string | undefined;
|
|
52
|
+
active?: boolean | undefined;
|
|
53
|
+
}];
|
|
54
|
+
ratePlanRoomType: (id: string) => readonly ["hospitality", "rate-plan-room-types", string];
|
|
55
|
+
ratePlanInventoryOverrides: () => readonly ["hospitality", "rate-plan-inventory-overrides"];
|
|
56
|
+
ratePlanInventoryOverridesList: (filters: HospitalityDateFilters & {
|
|
57
|
+
ratePlanId?: string | undefined;
|
|
58
|
+
roomTypeId?: string | undefined;
|
|
59
|
+
}) => readonly ["hospitality", "rate-plan-inventory-overrides", HospitalityDateFilters & {
|
|
60
|
+
ratePlanId?: string | undefined;
|
|
61
|
+
roomTypeId?: string | undefined;
|
|
62
|
+
}];
|
|
63
|
+
ratePlanInventoryOverride: (id: string) => readonly ["hospitality", "rate-plan-inventory-overrides", string];
|
|
64
|
+
roomTypeRates: () => readonly ["hospitality", "room-type-rates"];
|
|
65
|
+
roomTypeRatesList: (filters: HospitalityListFilters & {
|
|
66
|
+
ratePlanId?: string | undefined;
|
|
67
|
+
roomTypeId?: string | undefined;
|
|
68
|
+
priceScheduleId?: string | undefined;
|
|
69
|
+
active?: boolean | undefined;
|
|
70
|
+
}) => readonly ["hospitality", "room-type-rates", HospitalityListFilters & {
|
|
71
|
+
ratePlanId?: string | undefined;
|
|
72
|
+
roomTypeId?: string | undefined;
|
|
73
|
+
priceScheduleId?: string | undefined;
|
|
74
|
+
active?: boolean | undefined;
|
|
75
|
+
}];
|
|
76
|
+
roomTypeRate: (id: string) => readonly ["hospitality", "room-type-rates", string];
|
|
77
|
+
stayRules: () => readonly ["hospitality", "stay-rules"];
|
|
78
|
+
stayRulesList: (filters: HospitalityListFilters) => readonly ["hospitality", "stay-rules", HospitalityListFilters];
|
|
79
|
+
stayRule: (id: string) => readonly ["hospitality", "stay-rules", string];
|
|
80
|
+
stayBookingItems: () => readonly ["hospitality", "stay-booking-items"];
|
|
81
|
+
stayBookingItemsList: (filters: HospitalityDateFilters & {
|
|
82
|
+
bookingItemId?: string | undefined;
|
|
83
|
+
roomTypeId?: string | undefined;
|
|
84
|
+
roomUnitId?: string | undefined;
|
|
85
|
+
ratePlanId?: string | undefined;
|
|
86
|
+
status?: string | undefined;
|
|
87
|
+
}) => readonly ["hospitality", "stay-booking-items", HospitalityDateFilters & {
|
|
88
|
+
bookingItemId?: string | undefined;
|
|
89
|
+
roomTypeId?: string | undefined;
|
|
90
|
+
roomUnitId?: string | undefined;
|
|
91
|
+
ratePlanId?: string | undefined;
|
|
92
|
+
status?: string | undefined;
|
|
93
|
+
}];
|
|
94
|
+
stayBookingItem: (id: string) => readonly ["hospitality", "stay-booking-items", string];
|
|
95
|
+
stayOperations: () => readonly ["hospitality", "stay-operations"];
|
|
96
|
+
stayOperationsList: (filters: HospitalityListFilters & {
|
|
97
|
+
stayBookingItemId?: string | undefined;
|
|
98
|
+
roomUnitId?: string | undefined;
|
|
99
|
+
operationStatus?: string | undefined;
|
|
100
|
+
}) => readonly ["hospitality", "stay-operations", HospitalityListFilters & {
|
|
101
|
+
stayBookingItemId?: string | undefined;
|
|
102
|
+
roomUnitId?: string | undefined;
|
|
103
|
+
operationStatus?: string | undefined;
|
|
104
|
+
}];
|
|
105
|
+
stayOperation: (id: string) => readonly ["hospitality", "stay-operations", string];
|
|
106
|
+
stayFolios: () => readonly ["hospitality", "stay-folios"];
|
|
107
|
+
stayFoliosList: (filters: HospitalityListFilters & {
|
|
108
|
+
stayOperationId?: string | undefined;
|
|
109
|
+
status?: string | undefined;
|
|
110
|
+
}) => readonly ["hospitality", "stay-folios", HospitalityListFilters & {
|
|
111
|
+
stayOperationId?: string | undefined;
|
|
112
|
+
status?: string | undefined;
|
|
113
|
+
}];
|
|
114
|
+
stayFolio: (id: string) => readonly ["hospitality", "stay-folios", string];
|
|
115
|
+
housekeepingTasks: () => readonly ["hospitality", "housekeeping-tasks"];
|
|
116
|
+
housekeepingTasksList: (filters: HospitalityListFilters & {
|
|
117
|
+
roomUnitId?: string | undefined;
|
|
118
|
+
stayBookingItemId?: string | undefined;
|
|
119
|
+
status?: string | undefined;
|
|
120
|
+
taskType?: string | undefined;
|
|
121
|
+
}) => readonly ["hospitality", "housekeeping-tasks", HospitalityListFilters & {
|
|
122
|
+
roomUnitId?: string | undefined;
|
|
123
|
+
stayBookingItemId?: string | undefined;
|
|
124
|
+
status?: string | undefined;
|
|
125
|
+
taskType?: string | undefined;
|
|
126
|
+
}];
|
|
127
|
+
housekeepingTask: (id: string) => readonly ["hospitality", "housekeeping-tasks", string];
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS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CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC9B;qBAJc,MAAM,GAAG,SAAS;4BACX,MAAM,GAAG,SAAS;iBAC7B,MAAM,GAAG,SAAS;mBAChB,MAAM,GAAG,SAAS;;2BAGV,MAAM;CAC9B,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const hospitalityQueryKeys = {
|
|
2
|
+
all: ["hospitality"],
|
|
3
|
+
roomTypes: () => [...hospitalityQueryKeys.all, "room-types"],
|
|
4
|
+
roomTypesList: (filters) => [...hospitalityQueryKeys.roomTypes(), filters],
|
|
5
|
+
roomType: (id) => [...hospitalityQueryKeys.roomTypes(), id],
|
|
6
|
+
mealPlans: () => [...hospitalityQueryKeys.all, "meal-plans"],
|
|
7
|
+
mealPlansList: (filters) => [...hospitalityQueryKeys.mealPlans(), filters],
|
|
8
|
+
mealPlan: (id) => [...hospitalityQueryKeys.mealPlans(), id],
|
|
9
|
+
roomUnits: () => [...hospitalityQueryKeys.all, "room-units"],
|
|
10
|
+
roomUnitsList: (filters) => [...hospitalityQueryKeys.roomUnits(), filters],
|
|
11
|
+
roomUnit: (id) => [...hospitalityQueryKeys.roomUnits(), id],
|
|
12
|
+
maintenanceBlocks: () => [...hospitalityQueryKeys.all, "maintenance-blocks"],
|
|
13
|
+
maintenanceBlocksList: (filters) => [...hospitalityQueryKeys.maintenanceBlocks(), filters],
|
|
14
|
+
maintenanceBlock: (id) => [...hospitalityQueryKeys.maintenanceBlocks(), id],
|
|
15
|
+
roomBlocks: () => [...hospitalityQueryKeys.all, "room-blocks"],
|
|
16
|
+
roomBlocksList: (filters) => [...hospitalityQueryKeys.roomBlocks(), filters],
|
|
17
|
+
roomBlock: (id) => [...hospitalityQueryKeys.roomBlocks(), id],
|
|
18
|
+
roomInventory: () => [...hospitalityQueryKeys.all, "room-inventory"],
|
|
19
|
+
roomInventoryList: (filters) => [...hospitalityQueryKeys.roomInventory(), filters],
|
|
20
|
+
roomInventoryItem: (id) => [...hospitalityQueryKeys.roomInventory(), id],
|
|
21
|
+
ratePlans: () => [...hospitalityQueryKeys.all, "rate-plans"],
|
|
22
|
+
ratePlansList: (filters) => [...hospitalityQueryKeys.ratePlans(), filters],
|
|
23
|
+
ratePlan: (id) => [...hospitalityQueryKeys.ratePlans(), id],
|
|
24
|
+
ratePlanRoomTypes: () => [...hospitalityQueryKeys.all, "rate-plan-room-types"],
|
|
25
|
+
ratePlanRoomTypesList: (filters) => [...hospitalityQueryKeys.ratePlanRoomTypes(), filters],
|
|
26
|
+
ratePlanRoomType: (id) => [...hospitalityQueryKeys.ratePlanRoomTypes(), id],
|
|
27
|
+
ratePlanInventoryOverrides: () => [...hospitalityQueryKeys.all, "rate-plan-inventory-overrides"],
|
|
28
|
+
ratePlanInventoryOverridesList: (filters) => [...hospitalityQueryKeys.ratePlanInventoryOverrides(), filters],
|
|
29
|
+
ratePlanInventoryOverride: (id) => [...hospitalityQueryKeys.ratePlanInventoryOverrides(), id],
|
|
30
|
+
roomTypeRates: () => [...hospitalityQueryKeys.all, "room-type-rates"],
|
|
31
|
+
roomTypeRatesList: (filters) => [...hospitalityQueryKeys.roomTypeRates(), filters],
|
|
32
|
+
roomTypeRate: (id) => [...hospitalityQueryKeys.roomTypeRates(), id],
|
|
33
|
+
stayRules: () => [...hospitalityQueryKeys.all, "stay-rules"],
|
|
34
|
+
stayRulesList: (filters) => [...hospitalityQueryKeys.stayRules(), filters],
|
|
35
|
+
stayRule: (id) => [...hospitalityQueryKeys.stayRules(), id],
|
|
36
|
+
stayBookingItems: () => [...hospitalityQueryKeys.all, "stay-booking-items"],
|
|
37
|
+
stayBookingItemsList: (filters) => [...hospitalityQueryKeys.stayBookingItems(), filters],
|
|
38
|
+
stayBookingItem: (id) => [...hospitalityQueryKeys.stayBookingItems(), id],
|
|
39
|
+
stayOperations: () => [...hospitalityQueryKeys.all, "stay-operations"],
|
|
40
|
+
stayOperationsList: (filters) => [...hospitalityQueryKeys.stayOperations(), filters],
|
|
41
|
+
stayOperation: (id) => [...hospitalityQueryKeys.stayOperations(), id],
|
|
42
|
+
stayFolios: () => [...hospitalityQueryKeys.all, "stay-folios"],
|
|
43
|
+
stayFoliosList: (filters) => [...hospitalityQueryKeys.stayFolios(), filters],
|
|
44
|
+
stayFolio: (id) => [...hospitalityQueryKeys.stayFolios(), id],
|
|
45
|
+
housekeepingTasks: () => [...hospitalityQueryKeys.all, "housekeeping-tasks"],
|
|
46
|
+
housekeepingTasksList: (filters) => [...hospitalityQueryKeys.housekeepingTasks(), filters],
|
|
47
|
+
housekeepingTask: (id) => [...hospitalityQueryKeys.housekeepingTasks(), id],
|
|
48
|
+
};
|