@odynn/awayz-hotels 0.2.25 → 0.2.27
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/lib/hooks/index.d.ts +1 -0
- package/dist/lib/hooks/useHotelDetails/useHotelDetails.api.d.ts +1 -1
- package/dist/lib/hooks/useHotelDetails/useHotelDetails.d.ts +1 -1
- package/dist/lib/hooks/useHotelDetails/useHotelDetails.types.d.ts +28 -0
- package/dist/lib/services/hotel/HotelService.d.ts +2 -2
- package/dist/lib/services/hotel/HotelService.types.d.ts +0 -28
- package/package.json +2 -2
|
@@ -2,3 +2,4 @@ export { useHotelSearch } from './useHotelSearch/useHotelSearch';
|
|
|
2
2
|
export { useLocationSearch } from './useLocationSearch/useLocationSearch';
|
|
3
3
|
export { useHotelDetails } from './useHotelDetails/useHotelDetails';
|
|
4
4
|
export { useHotelSort } from './useHotelSort/useHotelSort';
|
|
5
|
+
export * from './useHotelDetails/useHotelDetails.types';
|
|
@@ -3,7 +3,7 @@ import { IHotelDetails } from '../../components/HotelResult/HotelResult.types';
|
|
|
3
3
|
import { IRoom } from '../../services/booking/BookingService.types';
|
|
4
4
|
import { IPointsAsCash } from '../../utilities/pointsAsCashUtils';
|
|
5
5
|
import { IBestCheckout } from './useHotelDetails.types';
|
|
6
|
-
export declare const fetchTransferPartners: (hotelGroup: string) => Promise<import('
|
|
6
|
+
export declare const fetchTransferPartners: (hotelGroup: string) => Promise<import('./useHotelDetails.types').ITransferPartner[]>;
|
|
7
7
|
interface IPointsCheckResult {
|
|
8
8
|
pointsHotelDetails: IHotelDetails;
|
|
9
9
|
pointsRooms: IRoom[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IHotelDetails } from '../../components/HotelResult/HotelResult.types';
|
|
2
2
|
export declare const useHotelDetails: (hotel: IHotelDetails) => {
|
|
3
|
-
transferPartners: import('
|
|
3
|
+
transferPartners: import('./useHotelDetails.types').ITransferPartner[];
|
|
4
4
|
loadingTransferPartners: boolean;
|
|
5
5
|
pointsRooms: import('../../main').IRoom[];
|
|
6
6
|
loadingLivePointsCheck: boolean;
|
|
@@ -123,3 +123,31 @@ export interface IBestCheckout {
|
|
|
123
123
|
*/
|
|
124
124
|
nightlyCashCost: number;
|
|
125
125
|
}
|
|
126
|
+
export interface ITransferPartner {
|
|
127
|
+
partnerProgram: string;
|
|
128
|
+
ratio: number;
|
|
129
|
+
bonus: number;
|
|
130
|
+
transferMinutes: number;
|
|
131
|
+
minimumTransfer: number;
|
|
132
|
+
transferDenominator: number;
|
|
133
|
+
stepBonus: {
|
|
134
|
+
bonus: number;
|
|
135
|
+
stepThreshold: number;
|
|
136
|
+
};
|
|
137
|
+
steps: IStep[];
|
|
138
|
+
shortName: string;
|
|
139
|
+
program: string;
|
|
140
|
+
region: string;
|
|
141
|
+
partnerProgramCategory: string[];
|
|
142
|
+
transferTime: string;
|
|
143
|
+
}
|
|
144
|
+
export interface IStep {
|
|
145
|
+
text: string;
|
|
146
|
+
links: ITransferLink[];
|
|
147
|
+
id: string;
|
|
148
|
+
}
|
|
149
|
+
export interface ITransferLink {
|
|
150
|
+
text: string;
|
|
151
|
+
url: string;
|
|
152
|
+
id: string;
|
|
153
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IHotelPointsCheckArgs, ISearchByHotelIdRequest, ISearchHotelsParams, ISearchLocation
|
|
1
|
+
import { IHotelPointsCheckArgs, ISearchByHotelIdRequest, ISearchHotelsParams, ISearchLocation } from './HotelService.types';
|
|
2
2
|
import { IHotelDetails, ILiveHotelCheck } from '../../components/HotelResult/HotelResult.types';
|
|
3
3
|
import { TServiceResponse } from '@type-op/shared';
|
|
4
|
-
import { IBestCheckout } from '../../hooks/useHotelDetails/useHotelDetails.types';
|
|
4
|
+
import { IBestCheckout, ITransferPartner } from '../../hooks/useHotelDetails/useHotelDetails.types';
|
|
5
5
|
declare class _HotelService {
|
|
6
6
|
getLocations: (searchInputQuery: string) => Promise<TServiceResponse<ISearchLocation[]>>;
|
|
7
7
|
searchByCoords: (request: ISearchHotelsParams) => Promise<TServiceResponse<IHotelDetails[]>>;
|
|
@@ -201,32 +201,4 @@ export interface IHotelPointsCheckArgs {
|
|
|
201
201
|
checkinDate: Moment;
|
|
202
202
|
checkoutDate: Moment;
|
|
203
203
|
}
|
|
204
|
-
export interface ITransferPartner {
|
|
205
|
-
partnerProgram: string;
|
|
206
|
-
ratio: number;
|
|
207
|
-
bonus: number;
|
|
208
|
-
transferMinutes: number;
|
|
209
|
-
minimumTransfer: number;
|
|
210
|
-
transferDenominator: number;
|
|
211
|
-
stepBonus: {
|
|
212
|
-
bonus: number;
|
|
213
|
-
stepThreshold: number;
|
|
214
|
-
};
|
|
215
|
-
steps: IStep[];
|
|
216
|
-
shortName: string;
|
|
217
|
-
program: string;
|
|
218
|
-
region: string;
|
|
219
|
-
partnerProgramCategory: string[];
|
|
220
|
-
transferTime: string;
|
|
221
|
-
}
|
|
222
|
-
export interface IStep {
|
|
223
|
-
text: string;
|
|
224
|
-
links: ITransferLink[];
|
|
225
|
-
id: string;
|
|
226
|
-
}
|
|
227
|
-
export interface ITransferLink {
|
|
228
|
-
text: string;
|
|
229
|
-
url: string;
|
|
230
|
-
id: string;
|
|
231
|
-
}
|
|
232
204
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odynn/awayz-hotels",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.27",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@odynn/awayz-core": "^0.2.
|
|
64
|
+
"@odynn/awayz-core": "^0.2.33",
|
|
65
65
|
"@tanstack/react-query": "^5.66.9",
|
|
66
66
|
"string-comparison": "^1.3.0"
|
|
67
67
|
}
|