@odynn/awayz-core 0.3.8 → 0.3.9
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/types/ECurrency.d.ts +32 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/main.js +30 -27
- package/dist/types/ECurrency.js +11 -0
- package/dist/types/index.js +5 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing supported hotel currency options.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* This enum defines the set of currency codes that can be used for hotel-related transactions.
|
|
6
|
+
*
|
|
7
|
+
* @enum {string}
|
|
8
|
+
* @property {string} AUD - Australian Dollar
|
|
9
|
+
* @property {string} GBP - British Pound Sterling
|
|
10
|
+
* @property {string} EUR - Euro
|
|
11
|
+
* @property {string} USD - United States Dollar
|
|
12
|
+
*/
|
|
13
|
+
export declare enum EHotelCurrencyOption {
|
|
14
|
+
AUD = "AUD",
|
|
15
|
+
GBP = "GBP",
|
|
16
|
+
EUR = "EUR",
|
|
17
|
+
USD = "USD"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Maps each hotel currency option to its corresponding currency symbol.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* This object uses the {@link EHotelCurrencyOption} enum as keys and provides the appropriate
|
|
24
|
+
* currency symbol as a string value for each supported currency.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* currencySymbols[EHotelCurrencyOption.USD]; // Returns: '$'
|
|
29
|
+
* currencySymbols[EHotelCurrencyOption.AUD]; // Returns: 'A$'
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const currencySymbols: Record<EHotelCurrencyOption, string>;
|
package/dist/main.js
CHANGED
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
import { AwayzProvider as r } from "./providers/AwayzProvider.js";
|
|
2
|
-
import { useAwayzContext as
|
|
2
|
+
import { useAwayzContext as n } from "./hooks/useAwayzContext.js";
|
|
3
3
|
import { useSearchLimit as i } from "./hooks/useSearchLimit.js";
|
|
4
4
|
import { useWallet as m } from "./hooks/useWallet/useWallet.js";
|
|
5
|
-
import { useTripManagement as f, validateUpdateTripArgs as
|
|
5
|
+
import { useTripManagement as f, validateUpdateTripArgs as l } from "./hooks/useTripManagement/useTripManagement.js";
|
|
6
6
|
import { useBookingManagement as c } from "./hooks/useBookingManagement/useBookingManagement.js";
|
|
7
|
-
import { EAuthFlow as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
7
|
+
import { EAuthFlow as y } from "./types/EAuthFlow.js";
|
|
8
|
+
import { EHotelCurrencyOption as A, currencySymbols as B } from "./types/ECurrency.js";
|
|
9
|
+
import { c as E, i as T } from "./AccountService-D_6U8vP6.js";
|
|
10
|
+
import { clientNoRetryInstance as h } from "./services/noRetryInstance.js";
|
|
11
|
+
import { CurrencyService as v } from "./services/currency/CurrencyService.js";
|
|
12
|
+
import { EBookingType as z } from "./services/trips/TripService.types.js";
|
|
13
|
+
import { awayzClient as S } from "./configs/awayzClient.js";
|
|
14
|
+
import { CashValue as H } from "./components/CashValue/CashValue.js";
|
|
15
|
+
import { EInvalidAmountDisplayOption as O, EToolTipPosition as P } from "./components/CashValue/CashValueTypes.js";
|
|
16
|
+
import { FlightBooking as b } from "./components/Bookings/FlightBooking/FlightBooking.js";
|
|
17
|
+
import { HotelBooking as L } from "./components/Bookings/HotelBooking/HotelBooking.js";
|
|
18
|
+
import { getBaseUrl as R } from "./configs/baseUrl.js";
|
|
18
19
|
export {
|
|
19
20
|
r as AwayzProvider,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
H as CashValue,
|
|
22
|
+
v as CurrencyService,
|
|
23
|
+
y as EAuthFlow,
|
|
24
|
+
z as EBookingType,
|
|
25
|
+
A as EHotelCurrencyOption,
|
|
26
|
+
O as EInvalidAmountDisplayOption,
|
|
25
27
|
P as EToolTipPosition,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
b as FlightBooking,
|
|
29
|
+
L as HotelBooking,
|
|
30
|
+
S as awayzClient,
|
|
31
|
+
E as clientInstance,
|
|
32
|
+
h as clientNoRetryInstance,
|
|
33
|
+
B as currencySymbols,
|
|
34
|
+
R as getBaseUrl,
|
|
35
|
+
T as instance,
|
|
36
|
+
n as useAwayzContext,
|
|
34
37
|
c as useBookingManagement,
|
|
35
38
|
i as useSearchLimit,
|
|
36
39
|
f as useTripManagement,
|
|
37
40
|
m as useWallet,
|
|
38
|
-
|
|
41
|
+
l as validateUpdateTripArgs
|
|
39
42
|
};
|
package/dist/types/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { EAuthFlow as
|
|
1
|
+
import { EAuthFlow as e } from "./EAuthFlow.js";
|
|
2
|
+
import { EHotelCurrencyOption as c, currencySymbols as l } from "./ECurrency.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
e as EAuthFlow,
|
|
5
|
+
c as EHotelCurrencyOption,
|
|
6
|
+
l as currencySymbols
|
|
4
7
|
};
|