@odynn/awayz-hotels 0.2.13 → 0.2.14

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.
@@ -0,0 +1,625 @@
1
+ export declare const testHotels: ({
2
+ hotelId: string;
3
+ address: string;
4
+ amenities: string[];
5
+ bookingLink: string;
6
+ bookingLinkCash: string;
7
+ bookingLinkPoints: string;
8
+ cashValue: {
9
+ currency: string;
10
+ amount: number;
11
+ };
12
+ city: string;
13
+ cityCode: string;
14
+ coordinates: {
15
+ latitude: string;
16
+ longitude: string;
17
+ };
18
+ country: string;
19
+ countryCode: string;
20
+ createdAt: string;
21
+ description: string;
22
+ hotelGroup: string;
23
+ hotelStatus: string;
24
+ images: string[];
25
+ legacyCoordinates: number[];
26
+ name: string;
27
+ points: number;
28
+ reviewCount: string;
29
+ reviewRating: string;
30
+ state: null;
31
+ stateCode: null;
32
+ subdivision: string;
33
+ telephone: string;
34
+ slugCity: string;
35
+ chainRating: number;
36
+ status: string;
37
+ writeAt: string;
38
+ hasCalendarCash: boolean;
39
+ cashAvailable: boolean;
40
+ awardPoints: number;
41
+ rooms: never[];
42
+ hasCalendarPoints: boolean;
43
+ pointsType: string;
44
+ premiumPointsAvailable: boolean;
45
+ standardPointsAvailable: boolean;
46
+ partners: {
47
+ program: string;
48
+ ratio: number;
49
+ bonus: number;
50
+ transferMinutes: number;
51
+ minimumTransfer: number;
52
+ transferDenominator: number;
53
+ stepBonus: {
54
+ bonus: number;
55
+ stepThreshold: number;
56
+ };
57
+ }[];
58
+ hotelProgram: {
59
+ program: string;
60
+ ratio: number;
61
+ bonus: number;
62
+ transferMinutes: number;
63
+ minimumTransfer: number;
64
+ transferDenominator: number;
65
+ stepBonus: {
66
+ bonus: number;
67
+ stepThreshold: number;
68
+ };
69
+ };
70
+ bestValue: string;
71
+ liveScrapingCheckNeeded: boolean;
72
+ imagesS3?: undefined;
73
+ autoAddedAt?: undefined;
74
+ awardCategory?: undefined;
75
+ priority?: undefined;
76
+ } | {
77
+ hotelId: string;
78
+ address: string;
79
+ amenities: string[];
80
+ bookingLink: string;
81
+ bookingLinkCash: string;
82
+ bookingLinkPoints: string;
83
+ cashValue: {
84
+ currency: string;
85
+ amount: number;
86
+ };
87
+ city: string;
88
+ cityCode: string;
89
+ coordinates: {
90
+ latitude: string;
91
+ longitude: string;
92
+ };
93
+ country: string;
94
+ countryCode: string;
95
+ createdAt: string;
96
+ description: string;
97
+ hotelGroup: string;
98
+ hotelStatus: string;
99
+ images: string[];
100
+ legacyCoordinates: number[];
101
+ name: string;
102
+ points: number;
103
+ reviewCount: string;
104
+ reviewRating: string;
105
+ state: null;
106
+ stateCode: null;
107
+ subdivision: string;
108
+ telephone: string;
109
+ slugCity: string;
110
+ chainRating: number;
111
+ imagesS3: string[];
112
+ status: string;
113
+ writeAt: string;
114
+ autoAddedAt: string;
115
+ hasCalendarCash: boolean;
116
+ cashAvailable: boolean;
117
+ awardPoints: number;
118
+ rooms: never[];
119
+ hasCalendarPoints: boolean;
120
+ pointsType: string;
121
+ premiumPointsAvailable: boolean;
122
+ standardPointsAvailable: boolean;
123
+ partners: {
124
+ program: string;
125
+ ratio: number;
126
+ bonus: number;
127
+ transferMinutes: number;
128
+ minimumTransfer: number;
129
+ transferDenominator: number;
130
+ stepBonus: {
131
+ bonus: number;
132
+ stepThreshold: number;
133
+ };
134
+ }[];
135
+ hotelProgram: {
136
+ program: string;
137
+ ratio: number;
138
+ bonus: number;
139
+ transferMinutes: number;
140
+ minimumTransfer: number;
141
+ transferDenominator: number;
142
+ stepBonus: {
143
+ bonus: number;
144
+ stepThreshold: number;
145
+ };
146
+ };
147
+ bestValue: string;
148
+ liveScrapingCheckNeeded: boolean;
149
+ awardCategory?: undefined;
150
+ priority?: undefined;
151
+ } | {
152
+ hotelId: string;
153
+ address: string;
154
+ amenities: string[];
155
+ bookingLink: string;
156
+ bookingLinkCash: string;
157
+ bookingLinkPoints: string;
158
+ cashValue: {
159
+ currency: string;
160
+ amount: number;
161
+ };
162
+ city: string;
163
+ cityCode: string;
164
+ coordinates: {
165
+ latitude: number;
166
+ longitude: number;
167
+ };
168
+ country: string;
169
+ countryCode: string;
170
+ createdAt: string;
171
+ description: string;
172
+ hotelGroup: string;
173
+ hotelStatus: string;
174
+ images: string[];
175
+ legacyCoordinates: number[];
176
+ name: string;
177
+ points: number;
178
+ reviewCount: null;
179
+ reviewRating: null;
180
+ state: null;
181
+ stateCode: null;
182
+ subdivision: string;
183
+ telephone: string;
184
+ slugCity: string;
185
+ chainRating: number;
186
+ imagesS3: string[];
187
+ status: string;
188
+ writeAt: string;
189
+ hasCalendarCash: boolean;
190
+ cashAvailable: boolean;
191
+ awardPoints: number;
192
+ rooms: never[];
193
+ hasCalendarPoints: boolean;
194
+ pointsType: string;
195
+ premiumPointsAvailable: boolean;
196
+ standardPointsAvailable: boolean;
197
+ partners: {
198
+ program: string;
199
+ ratio: number;
200
+ bonus: number;
201
+ transferMinutes: number;
202
+ minimumTransfer: number;
203
+ transferDenominator: number;
204
+ stepBonus: {
205
+ bonus: number;
206
+ stepThreshold: number;
207
+ };
208
+ }[];
209
+ hotelProgram: {
210
+ program: string;
211
+ ratio: number;
212
+ bonus: number;
213
+ transferMinutes: number;
214
+ minimumTransfer: number;
215
+ transferDenominator: number;
216
+ stepBonus: {
217
+ bonus: number;
218
+ stepThreshold: number;
219
+ };
220
+ };
221
+ bestValue: string;
222
+ liveScrapingCheckNeeded: boolean;
223
+ autoAddedAt?: undefined;
224
+ awardCategory?: undefined;
225
+ priority?: undefined;
226
+ } | {
227
+ hotelId: string;
228
+ address: string;
229
+ amenities: string[];
230
+ autoAddedAt: string;
231
+ bookingLink: string;
232
+ bookingLinkCash: string;
233
+ bookingLinkPoints: string;
234
+ cashValue: {
235
+ currency: string;
236
+ amount: number;
237
+ };
238
+ city: string;
239
+ cityCode: string;
240
+ coordinates: {
241
+ latitude: string;
242
+ longitude: string;
243
+ };
244
+ country: string;
245
+ countryCode: string;
246
+ createdAt: string;
247
+ description: string;
248
+ hotelGroup: string;
249
+ hotelStatus: string;
250
+ images: string[];
251
+ legacyCoordinates: number[];
252
+ name: string;
253
+ points: number;
254
+ reviewCount: string;
255
+ reviewRating: string;
256
+ slugCity: string;
257
+ state: null;
258
+ stateCode: null;
259
+ status: string;
260
+ subdivision: string;
261
+ telephone: string;
262
+ writeAt: string;
263
+ hasCalendarCash: boolean;
264
+ cashAvailable: boolean;
265
+ awardPoints: number;
266
+ rooms: never[];
267
+ hasCalendarPoints: boolean;
268
+ pointsType: string;
269
+ premiumPointsAvailable: boolean;
270
+ standardPointsAvailable: boolean;
271
+ partners: {
272
+ program: string;
273
+ ratio: number;
274
+ bonus: number;
275
+ transferMinutes: number;
276
+ minimumTransfer: number;
277
+ transferDenominator: number;
278
+ stepBonus: {
279
+ bonus: number;
280
+ stepThreshold: number;
281
+ };
282
+ }[];
283
+ hotelProgram: {
284
+ program: string;
285
+ ratio: number;
286
+ bonus: number;
287
+ transferMinutes: number;
288
+ minimumTransfer: number;
289
+ transferDenominator: number;
290
+ stepBonus: {
291
+ bonus: number;
292
+ stepThreshold: number;
293
+ };
294
+ };
295
+ bestValue: string;
296
+ liveScrapingCheckNeeded: boolean;
297
+ chainRating?: undefined;
298
+ imagesS3?: undefined;
299
+ awardCategory?: undefined;
300
+ priority?: undefined;
301
+ } | {
302
+ hotelId: string;
303
+ address: string;
304
+ amenities: string[];
305
+ bookingLink: string;
306
+ bookingLinkCash: string;
307
+ bookingLinkPoints: string;
308
+ cashValue: {
309
+ currency: string;
310
+ amount: number;
311
+ };
312
+ city: string;
313
+ cityCode: string;
314
+ coordinates: {
315
+ latitude: number;
316
+ longitude: number;
317
+ };
318
+ country: string;
319
+ countryCode: string;
320
+ createdAt: string;
321
+ description: string;
322
+ hotelGroup: string;
323
+ hotelStatus: string;
324
+ images: string[];
325
+ legacyCoordinates: number[];
326
+ name: string;
327
+ points: number;
328
+ reviewCount: string;
329
+ reviewRating: string;
330
+ state: string;
331
+ stateCode: string;
332
+ subdivision: string;
333
+ telephone: string;
334
+ slugCity: string;
335
+ chainRating: number;
336
+ imagesS3: string[];
337
+ writeAt: string;
338
+ status: string;
339
+ hasCalendarCash: boolean;
340
+ cashAvailable: boolean;
341
+ awardPoints: number;
342
+ rooms: never[];
343
+ hasCalendarPoints: boolean;
344
+ pointsType: string;
345
+ premiumPointsAvailable: boolean;
346
+ standardPointsAvailable: boolean;
347
+ partners: {
348
+ program: string;
349
+ ratio: number;
350
+ bonus: number;
351
+ transferMinutes: number;
352
+ minimumTransfer: number;
353
+ transferDenominator: number;
354
+ stepBonus: {
355
+ bonus: number;
356
+ stepThreshold: number;
357
+ };
358
+ }[];
359
+ hotelProgram: {
360
+ program: string;
361
+ ratio: number;
362
+ bonus: number;
363
+ transferMinutes: number;
364
+ minimumTransfer: number;
365
+ transferDenominator: number;
366
+ stepBonus: {
367
+ bonus: number;
368
+ stepThreshold: number;
369
+ };
370
+ };
371
+ bestValue: string;
372
+ liveScrapingCheckNeeded: boolean;
373
+ autoAddedAt?: undefined;
374
+ awardCategory?: undefined;
375
+ priority?: undefined;
376
+ } | {
377
+ hotelId: string;
378
+ address: string;
379
+ amenities: string[];
380
+ bookingLink: string;
381
+ bookingLinkCash: string;
382
+ bookingLinkPoints: string;
383
+ cashValue: {
384
+ currency: string;
385
+ amount: number;
386
+ };
387
+ city: string;
388
+ cityCode: string;
389
+ coordinates: {
390
+ latitude: number;
391
+ longitude: number;
392
+ };
393
+ country: string;
394
+ countryCode: string;
395
+ createdAt: string;
396
+ description: string;
397
+ hotelGroup: string;
398
+ hotelStatus: string;
399
+ images: string[];
400
+ legacyCoordinates: number[];
401
+ name: string;
402
+ points: number;
403
+ reviewCount: string;
404
+ reviewRating: null;
405
+ state: string;
406
+ stateCode: string;
407
+ subdivision: string;
408
+ telephone: string;
409
+ slugCity: string;
410
+ chainRating: number;
411
+ imagesS3: string[];
412
+ writeAt: string;
413
+ status: string;
414
+ hasCalendarCash: boolean;
415
+ cashAvailable: boolean;
416
+ awardPoints: number;
417
+ rooms: never[];
418
+ hasCalendarPoints: boolean;
419
+ pointsType: string;
420
+ premiumPointsAvailable: boolean;
421
+ standardPointsAvailable: boolean;
422
+ partners: {
423
+ program: string;
424
+ ratio: number;
425
+ bonus: number;
426
+ transferMinutes: number;
427
+ minimumTransfer: number;
428
+ transferDenominator: number;
429
+ stepBonus: {
430
+ bonus: number;
431
+ stepThreshold: number;
432
+ };
433
+ }[];
434
+ hotelProgram: {
435
+ program: string;
436
+ ratio: number;
437
+ bonus: number;
438
+ transferMinutes: number;
439
+ minimumTransfer: number;
440
+ transferDenominator: number;
441
+ stepBonus: {
442
+ bonus: number;
443
+ stepThreshold: number;
444
+ };
445
+ };
446
+ bestValue: string;
447
+ liveScrapingCheckNeeded: boolean;
448
+ autoAddedAt?: undefined;
449
+ awardCategory?: undefined;
450
+ priority?: undefined;
451
+ } | {
452
+ hotelId: string;
453
+ address: string;
454
+ amenities: string[];
455
+ bookingLink: string;
456
+ bookingLinkCash: string;
457
+ bookingLinkPoints: string;
458
+ cashValue: {
459
+ currency: string;
460
+ amount: number;
461
+ };
462
+ city: string;
463
+ cityCode: string;
464
+ coordinates: {
465
+ latitude: string;
466
+ longitude: string;
467
+ };
468
+ country: string;
469
+ countryCode: string;
470
+ createdAt: string;
471
+ description: string;
472
+ hotelGroup: string;
473
+ hotelStatus: string;
474
+ images: string[];
475
+ legacyCoordinates: number[];
476
+ name: string;
477
+ points: number;
478
+ reviewCount: string;
479
+ reviewRating: string;
480
+ state: null;
481
+ stateCode: null;
482
+ subdivision: string;
483
+ telephone: null;
484
+ slugCity: string;
485
+ chainRating: number;
486
+ imagesS3: string[];
487
+ writeAt: string;
488
+ status: string;
489
+ autoAddedAt: string;
490
+ hasCalendarCash: boolean;
491
+ cashAvailable: boolean;
492
+ awardPoints: number;
493
+ rooms: never[];
494
+ hasCalendarPoints: boolean;
495
+ pointsType: string;
496
+ premiumPointsAvailable: boolean;
497
+ standardPointsAvailable: boolean;
498
+ partners: {
499
+ program: string;
500
+ ratio: number;
501
+ bonus: number;
502
+ transferMinutes: number;
503
+ minimumTransfer: number;
504
+ transferDenominator: number;
505
+ stepBonus: {
506
+ bonus: number;
507
+ stepThreshold: number;
508
+ };
509
+ }[];
510
+ hotelProgram: {
511
+ program: string;
512
+ ratio: number;
513
+ bonus: number;
514
+ transferMinutes: number;
515
+ minimumTransfer: number;
516
+ transferDenominator: number;
517
+ stepBonus: {
518
+ bonus: number;
519
+ stepThreshold: number;
520
+ };
521
+ };
522
+ bestValue: string;
523
+ liveScrapingCheckNeeded: boolean;
524
+ awardCategory?: undefined;
525
+ priority?: undefined;
526
+ } | {
527
+ hotelId: string;
528
+ address: string;
529
+ amenities: string[];
530
+ bookingLink: string;
531
+ bookingLinkCash: string;
532
+ bookingLinkPoints: string;
533
+ cashValue: {
534
+ currency: string;
535
+ amount: number;
536
+ };
537
+ city: string;
538
+ cityCode: string;
539
+ coordinates: {
540
+ latitude: number;
541
+ longitude: number;
542
+ };
543
+ country: string;
544
+ countryCode: string;
545
+ createdAt: string;
546
+ description: string;
547
+ hotelGroup: string;
548
+ hotelStatus: string;
549
+ images: string[];
550
+ legacyCoordinates: number[];
551
+ name: string;
552
+ points: number;
553
+ reviewCount: null;
554
+ reviewRating: null;
555
+ state: string;
556
+ stateCode: null;
557
+ subdivision: string;
558
+ telephone: string;
559
+ awardCategory: string;
560
+ slugCity: string;
561
+ chainRating: number;
562
+ imagesS3: string[];
563
+ writeAt: string;
564
+ status: string;
565
+ priority: boolean;
566
+ hasCalendarCash: boolean;
567
+ cashAvailable: boolean;
568
+ awardPoints: number;
569
+ rooms: {
570
+ roomId: string;
571
+ roomTitle: string;
572
+ roomType: string;
573
+ roomCategory: string;
574
+ roomDescription: string;
575
+ roomImage: string;
576
+ lowestPointsRate: number;
577
+ lowestAwardPointsRate: number;
578
+ lowestCashRate: {
579
+ cashAmount: number;
580
+ currency: string;
581
+ };
582
+ roomRatePlans: {
583
+ ratePlanId: string;
584
+ ratePlanName: string;
585
+ ratePlanType: string;
586
+ ratePlanCategory: string;
587
+ ratePlanPoints: number;
588
+ ratePlanCash: {
589
+ cashAmount: number;
590
+ currency: string;
591
+ };
592
+ }[];
593
+ }[];
594
+ hasCalendarPoints: boolean;
595
+ pointsType: string;
596
+ premiumPointsAvailable: boolean;
597
+ standardPointsAvailable: boolean;
598
+ partners: {
599
+ program: string;
600
+ ratio: number;
601
+ bonus: number;
602
+ transferMinutes: number;
603
+ minimumTransfer: number;
604
+ transferDenominator: number;
605
+ stepBonus: {
606
+ bonus: number;
607
+ stepThreshold: number;
608
+ };
609
+ }[];
610
+ hotelProgram: {
611
+ program: string;
612
+ ratio: number;
613
+ bonus: number;
614
+ transferMinutes: number;
615
+ minimumTransfer: number;
616
+ transferDenominator: number;
617
+ stepBonus: {
618
+ bonus: number;
619
+ stepThreshold: number;
620
+ };
621
+ };
622
+ bestValue: string;
623
+ liveScrapingCheckNeeded: boolean;
624
+ autoAddedAt?: undefined;
625
+ })[];
package/dist/main.js CHANGED
@@ -1,19 +1,21 @@
1
1
  import { ESearchType as r } from "./services/hotel/HotelService.types.js";
2
2
  import { HotelResult as p } from "./components/HotelResult/HotelResult.js";
3
- import { HotelResults as f } from "./components/HotelResults/HotelResults.js";
4
- import { useHotelSearch as s } from "./hooks/useHotelSearch/useHotelSearch.js";
5
- import { useLocationSearch as u } from "./hooks/useLocationSearch/useLocationSearch.js";
6
- import { useHotelDetails as S } from "./hooks/useHotelDetails/useHotelDetails.js";
7
- import { useHotelSort as c } from "./hooks/useHotelSort/useHotelSort.js";
8
- import { EHotelSortOption as h, ESortingOrder as n } from "./enums/index.js";
3
+ import { HotelResults as l } from "./components/HotelResults/HotelResults.js";
4
+ import { Legend as x } from "./components/Legend/Legend.js";
5
+ import { useHotelSearch as u } from "./hooks/useHotelSearch/useHotelSearch.js";
6
+ import { useLocationSearch as S } from "./hooks/useLocationSearch/useLocationSearch.js";
7
+ import { useHotelDetails as c } from "./hooks/useHotelDetails/useHotelDetails.js";
8
+ import { useHotelSort as n } from "./hooks/useHotelSort/useHotelSort.js";
9
+ import { EHotelSortOption as E, ESortingOrder as d } from "./enums/index.js";
9
10
  export {
10
- h as EHotelSortOption,
11
+ E as EHotelSortOption,
11
12
  r as ESearchType,
12
- n as ESortingOrder,
13
+ d as ESortingOrder,
13
14
  p as HotelResult,
14
- f as HotelResults,
15
- S as useHotelDetails,
16
- s as useHotelSearch,
17
- c as useHotelSort,
18
- u as useLocationSearch
15
+ l as HotelResults,
16
+ x as Legend,
17
+ c as useHotelDetails,
18
+ u as useHotelSearch,
19
+ n as useHotelSort,
20
+ S as useLocationSearch
19
21
  };