@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.
@@ -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>;
@@ -1 +1,2 @@
1
1
  export * from './EAuthFlow';
2
+ export * from './ECurrency';
package/dist/main.js CHANGED
@@ -1,39 +1,42 @@
1
1
  import { AwayzProvider as r } from "./providers/AwayzProvider.js";
2
- import { useAwayzContext as p } from "./hooks/useAwayzContext.js";
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 s } from "./hooks/useTripManagement/useTripManagement.js";
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 u } from "./types/EAuthFlow.js";
8
- import { c as A, i as B } from "./AccountService-D_6U8vP6.js";
9
- import { clientNoRetryInstance as d } from "./services/noRetryInstance.js";
10
- import { CurrencyService as k } from "./services/currency/CurrencyService.js";
11
- import { EBookingType as w } from "./services/trips/TripService.types.js";
12
- import { awayzClient as E } from "./configs/awayzClient.js";
13
- import { CashValue as I } from "./components/CashValue/CashValue.js";
14
- import { EInvalidAmountDisplayOption as M, EToolTipPosition as P } from "./components/CashValue/CashValueTypes.js";
15
- import { FlightBooking as U } from "./components/Bookings/FlightBooking/FlightBooking.js";
16
- import { HotelBooking as H } from "./components/Bookings/HotelBooking/HotelBooking.js";
17
- import { getBaseUrl as N } from "./configs/baseUrl.js";
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
- I as CashValue,
21
- k as CurrencyService,
22
- u as EAuthFlow,
23
- w as EBookingType,
24
- M as EInvalidAmountDisplayOption,
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
- U as FlightBooking,
27
- H as HotelBooking,
28
- E as awayzClient,
29
- A as clientInstance,
30
- d as clientNoRetryInstance,
31
- N as getBaseUrl,
32
- B as instance,
33
- p as useAwayzContext,
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
- s as validateUpdateTripArgs
41
+ l as validateUpdateTripArgs
39
42
  };
@@ -0,0 +1,11 @@
1
+ var D = /* @__PURE__ */ ((U) => (U.AUD = "AUD", U.GBP = "GBP", U.EUR = "EUR", U.USD = "USD", U))(D || {});
2
+ const A = {
3
+ AUD: "A$",
4
+ GBP: "£",
5
+ EUR: "€",
6
+ USD: "$"
7
+ };
8
+ export {
9
+ D as EHotelCurrencyOption,
10
+ A as currencySymbols
11
+ };
@@ -1,4 +1,7 @@
1
- import { EAuthFlow as t } from "./EAuthFlow.js";
1
+ import { EAuthFlow as e } from "./EAuthFlow.js";
2
+ import { EHotelCurrencyOption as c, currencySymbols as l } from "./ECurrency.js";
2
3
  export {
3
- t as EAuthFlow
4
+ e as EAuthFlow,
5
+ c as EHotelCurrencyOption,
6
+ l as currencySymbols
4
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"