@odynn/awayz-core 0.10.30 → 0.10.31
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/AccountService-B582vLTc.js +2149 -0
- package/dist/{TripsService-B2m7Yy9W.js → TripsService-BwBvXdDC.js} +6 -6
- package/dist/assets/_styles5.css +1 -1
- package/dist/assets/_styles6.css +1 -1
- package/dist/assets/_styles7.css +1 -0
- package/dist/components/CashValue/CashValue.js +15 -13
- package/dist/components/CashValue/CashValue.stories.js +22 -21
- package/dist/components/ClientPointsValue/ClientPointsValue.js +20 -18
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +16 -14
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +15 -13
- package/dist/hooks/useBookingManagement/useBookingManagement.js +6 -4
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +5 -3
- package/dist/hooks/useFeatureFlags.js +1 -1
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +7 -5
- package/dist/hooks/useTripManagement/useTripManagement.test.js +5 -3
- package/dist/hooks/useWallet/useWallet.js +31 -29
- package/dist/hooks/useWallet/useWallet.test.js +4 -2
- package/dist/lib/services/account/AccountService.d.ts +12 -2
- package/dist/lib/services/account/AccountServices.types.d.ts +13 -0
- package/dist/lib/services/index.d.ts +2 -0
- package/dist/lib/services/instanceConfig.d.ts +1 -1
- package/dist/main.js +43 -39
- package/dist/providers/AwayzProvider.js +10 -8
- package/dist/services/account/AccountService.js +3 -2
- package/dist/services/bookings/BookingService.js +3 -3
- package/dist/services/currency/CurrencyService.js +16 -14
- package/dist/services/features/featureService.js +1 -1
- package/dist/services/index.js +13 -9
- package/dist/services/instance.js +1 -1
- package/dist/services/instanceConfig.js +8 -20
- package/dist/services/noRetryInstance.js +9 -2
- package/dist/services/preferences/PreferencesService.js +1 -1
- package/dist/services/rewards/RewardsService.js +1 -1
- package/dist/services/trips/TripsService.js +2 -2
- package/dist/services/wallet/WalletService.js +1 -1
- package/dist/utils/clientPoints.js +6 -4
- package/package.json +1 -1
- package/dist/assets/noRetryInstance.css +0 -1
- package/dist/noRetryInstance-DNLgOg0E.js +0 -2134
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
3
3
|
import "../keys-BcBfU51M.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { c as m, g as p, i as s } from "../
|
|
5
|
+
import { c as m, g as p, i as s } from "../AccountService-B582vLTc.js";
|
|
6
6
|
import "../configs/baseUrl.js";
|
|
7
7
|
export {
|
|
8
8
|
m as clientInstance,
|
|
@@ -2,28 +2,16 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
3
3
|
import "../keys-BcBfU51M.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { n as l, l as g, m as n, e as h, k as u, h as d, p as f } from "../AccountService-B582vLTc.js";
|
|
6
6
|
import "../configs/baseUrl.js";
|
|
7
7
|
import "../configs/endpoints.js";
|
|
8
8
|
import "../configs/gatewayBaseUrl.js";
|
|
9
|
-
import "@tanstack/react-query";
|
|
10
|
-
import "react-i18next";
|
|
11
|
-
import '../assets/_styles4.css';import '../assets/_styles6.css';import '../assets/_styles5.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles3.css';/* empty css */
|
|
12
|
-
/* empty css */
|
|
13
|
-
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
|
-
/* empty css */
|
|
16
|
-
import "../index-Cv-wvFlM.js";
|
|
17
|
-
import "../context/AwayzContext.js";
|
|
18
|
-
/* empty css */
|
|
19
|
-
import "../configs/awayzClient.js";
|
|
20
|
-
import "../types/EAuthFlow.js";
|
|
21
9
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
l as authFailurePostMessage,
|
|
11
|
+
g as delay,
|
|
12
|
+
n as executeWithDelay,
|
|
13
|
+
h as getClientConfig,
|
|
14
|
+
u as getGatewayConfig,
|
|
15
|
+
d as handleAxiosError,
|
|
16
|
+
f as processFailedRequests
|
|
29
17
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as t, e as s, h as n } from "../AccountService-B582vLTc.js";
|
|
2
|
+
const r = t.create();
|
|
3
|
+
r.interceptors.request.use((e) => (e = s(e), e));
|
|
4
|
+
const o = 1;
|
|
5
|
+
r.interceptors.response.use(
|
|
6
|
+
null,
|
|
7
|
+
(e) => n(e, o, r)
|
|
8
|
+
);
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
r as clientNoRetryInstance
|
|
4
11
|
};
|
|
@@ -2,7 +2,7 @@ var a = Object.defineProperty;
|
|
|
2
2
|
var o = (s, e, r) => e in s ? a(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
|
|
3
3
|
var n = (s, e, r) => o(s, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { EPreferencesEndpoints as u } from "../../configs/endpoints.js";
|
|
5
|
-
import { c as i } from "../../
|
|
5
|
+
import { c as i } from "../../AccountService-B582vLTc.js";
|
|
6
6
|
class E {
|
|
7
7
|
constructor() {
|
|
8
8
|
n(this, "setCurrency", async (e) => {
|
|
@@ -3,7 +3,7 @@ var o = (t, e, a) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var r = (t, e, a) => o(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
6
|
-
import { c as n,
|
|
6
|
+
import { c as n, a as i } from "../../AccountService-B582vLTc.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { ERewardsEndpoints as c } from "../../configs/endpoints.js";
|
|
9
9
|
class m {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import "../../
|
|
4
|
-
import { T as a } from "../../TripsService-
|
|
3
|
+
import "../../AccountService-B582vLTc.js";
|
|
4
|
+
import { T as a } from "../../TripsService-BwBvXdDC.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../configs/defaultAwayzConfig.js";
|
|
7
7
|
import "../../configs/endpoints.js";
|
|
@@ -3,7 +3,7 @@ var i = (o, a, t) => a in o ? d(o, a, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var r = (o, a, t) => i(o, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
import "react/jsx-runtime";
|
|
5
5
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
6
|
-
import { c as e,
|
|
6
|
+
import { c as e, a as c, g as A } from "../../AccountService-B582vLTc.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { EWalletEndpoints as s } from "../../configs/endpoints.js";
|
|
9
9
|
class u {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as m } from "../
|
|
3
|
+
import { E as m } from "../AccountService-B582vLTc.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-i18next";
|
|
6
|
-
import '../assets/_styles4.css';import '../assets/
|
|
6
|
+
import '../assets/_styles4.css';import '../assets/_styles5.css';import '../assets/_styles7.css';import '../assets/_styles6.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles3.css';/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "@tanstack/react-query";
|
|
@@ -11,10 +11,12 @@ import { CurrencyService as n } from "../services/currency/CurrencyService.js";
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
import "../index-Cv-wvFlM.js";
|
|
14
|
+
/* empty css */
|
|
14
15
|
import "../context/AwayzContext.js";
|
|
15
16
|
import { awayzClient as a } from "../configs/awayzClient.js";
|
|
16
17
|
/* empty css */
|
|
17
|
-
|
|
18
|
+
import "../services/noRetryInstance.js";
|
|
19
|
+
const Q = async ({
|
|
18
20
|
cashAmount: o,
|
|
19
21
|
currency: e,
|
|
20
22
|
pointsAsCash: r
|
|
@@ -33,5 +35,5 @@ const w = async ({
|
|
|
33
35
|
return Math.round(i / r.valuePerPoint);
|
|
34
36
|
};
|
|
35
37
|
export {
|
|
36
|
-
|
|
38
|
+
Q as convertCashToClientPoints
|
|
37
39
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.currency-conversion{max-width:fit-content}.currency-conversion sub{vertical-align:text-bottom}.currency-conversion svg{fill:var(--primary, #1495f2);transform:scaleX(.75)}.currency-conversion.loading{background-color:var(--border, #e7eef3);background-size:300%;background-position:100% 0;animation:shimmer 2s infinite;color:transparent;padding:0 .5rem;border-radius:.5rem}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:var(--primary, #1495f2);height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:var(--primary, #1495f2);width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}
|