@odynn/awayz-core 0.6.34 → 0.6.35
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-BvTrzHHa.js → AccountService-1J5lfb5Q.js} +8 -8
- package/dist/{TripsService-BKYI3xjY.js → TripsService-IENCtrR_.js} +1 -1
- package/dist/components/CashValue/CashValue.js +1 -1
- package/dist/components/CashValue/CashValue.stories.js +8 -7
- package/dist/components/Wallet/Card/Card.stories.js +5 -4
- package/dist/configs/gatewayBaseUrl.js +8 -0
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
- package/dist/hooks/useFeatureFlags.js +1 -1
- package/dist/hooks/useSearchLimit.js +1 -1
- package/dist/hooks/useTripManagement/useTripManagement.js +2 -2
- package/dist/hooks/useTripManagement/useTripManagement.test.js +2 -2
- package/dist/hooks/useWallet/useWallet.js +1 -1
- package/dist/hooks/useWallet/useWallet.test.js +1 -1
- package/dist/lib/configs/awayzConfig.d.ts +4 -0
- package/dist/lib/configs/gatewayBaseUrl.d.ts +2 -0
- package/dist/lib/services/instance.d.ts +1 -1
- package/dist/lib/services/instanceConfig.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/providers/AwayzProvider.js +13 -13
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/bookings/BookingService.js +1 -1
- package/dist/services/currency/CurrencyService.js +1 -1
- package/dist/services/features/featureService.js +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +4 -4
- package/dist/services/instanceConfig.js +3 -3
- package/dist/services/noRetryInstance.js +1 -1
- 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 +3 -3
- package/package.json +1 -1
- package/dist/configs/msBaseUrl.js +0 -8
- package/dist/lib/configs/msBaseUrl.d.ts +0 -2
|
@@ -7,7 +7,7 @@ import "react";
|
|
|
7
7
|
import { awayzClient as $ } from "./configs/awayzClient.js";
|
|
8
8
|
import { EAuthEndpoints as T } from "./configs/endpoints.js";
|
|
9
9
|
import { getBaseUrl as qe } from "./configs/baseUrl.js";
|
|
10
|
-
import {
|
|
10
|
+
import { getGatewayBaseUrl as dt } from "./configs/gatewayBaseUrl.js";
|
|
11
11
|
import { EAuthFlow as pt } from "./types/EAuthFlow.js";
|
|
12
12
|
const P = (e) => Array.isArray(e) ? e.map((t) => P(t)) : typeof e == "object" && e !== null ? Object.keys(e).reduce((t, n) => {
|
|
13
13
|
const r = Et(n);
|
|
@@ -2069,15 +2069,15 @@ export {
|
|
|
2069
2069
|
Rt as b,
|
|
2070
2070
|
C as c,
|
|
2071
2071
|
y as d,
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2072
|
+
Xn as e,
|
|
2073
|
+
Wn as f,
|
|
2074
|
+
nr as g,
|
|
2075
2075
|
er as h,
|
|
2076
2076
|
tr as i,
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2077
|
+
we as j,
|
|
2078
|
+
Yn as k,
|
|
2079
|
+
Zn as l,
|
|
2080
|
+
Qn as m,
|
|
2081
2081
|
De as n,
|
|
2082
2082
|
Fe as p,
|
|
2083
2083
|
mt as r,
|
|
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
|
|
|
2
2
|
var g = (r, e, s) => e in r ? m(r, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[e] = s;
|
|
3
3
|
var t = (r, e, s) => g(r, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import "./arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as n,
|
|
5
|
+
import { c as n, j as p, a as c, r as T } from "./AccountService-1J5lfb5Q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EMyTripsEndpoints as i } from "./configs/endpoints.js";
|
|
8
8
|
import { EBookingType as l } from "./services/trips/TripService.types.js";
|
|
@@ -6,7 +6,7 @@ import { r as yt, R as gt } from "../../index-Cv-wvFlM.js";
|
|
|
6
6
|
import { useQuery as Ct } from "@tanstack/react-query";
|
|
7
7
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
8
8
|
import { a as Et, b as ue, c as j } from "../../cashUtils-BDa0CVyi.js";
|
|
9
|
-
import { E as wt } from "../../AccountService-
|
|
9
|
+
import { E as wt } from "../../AccountService-1J5lfb5Q.js";
|
|
10
10
|
import { c as pe } from "../../index-c5toY3Pm.js";
|
|
11
11
|
import { EInvalidAmountDisplayOption as S, EToolTipPosition as Pt } from "./CashValueTypes.js";
|
|
12
12
|
import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';/* empty css */
|
|
@@ -11,7 +11,7 @@ import "react-i18next";
|
|
|
11
11
|
import "../../configs/awayzClient.js";
|
|
12
12
|
import "../../context/AwayzContext.js";
|
|
13
13
|
import "@tanstack/react-query";
|
|
14
|
-
import "../../AccountService-
|
|
14
|
+
import "../../AccountService-1J5lfb5Q.js";
|
|
15
15
|
import { AwayzProvider as a } from "../../providers/AwayzProvider.js";
|
|
16
16
|
import "../../services/noRetryInstance.js";
|
|
17
17
|
import { EAuthFlow as i } from "../../types/EAuthFlow.js";
|
|
@@ -47,6 +47,7 @@ const h = {
|
|
|
47
47
|
a,
|
|
48
48
|
{
|
|
49
49
|
config: {
|
|
50
|
+
gatewayBaseUrl: "TODO:",
|
|
50
51
|
authFlow: i.STANDARD,
|
|
51
52
|
clientId: void 0,
|
|
52
53
|
trustedOrigins: ["*"],
|
|
@@ -69,14 +70,14 @@ const h = {
|
|
|
69
70
|
amount: "invalid",
|
|
70
71
|
currency: "EUR"
|
|
71
72
|
}
|
|
72
|
-
},
|
|
73
|
+
}, U = {
|
|
73
74
|
name: "Zero Amount with Display as Zero",
|
|
74
75
|
args: {
|
|
75
76
|
amount: 0,
|
|
76
77
|
zeroDisplayOption: o.DISPLAY_AS_ZERO,
|
|
77
78
|
currency: "EUR"
|
|
78
79
|
}
|
|
79
|
-
},
|
|
80
|
+
}, I = {
|
|
80
81
|
name: "Zero Amount with Display as Zero With Currency",
|
|
81
82
|
args: {
|
|
82
83
|
amount: 0,
|
|
@@ -96,7 +97,7 @@ const h = {
|
|
|
96
97
|
amount: -100,
|
|
97
98
|
currency: "EUR"
|
|
98
99
|
}
|
|
99
|
-
},
|
|
100
|
+
}, T = {
|
|
100
101
|
name: "Custom Zero Amount",
|
|
101
102
|
args: {
|
|
102
103
|
amount: 0,
|
|
@@ -106,12 +107,12 @@ const h = {
|
|
|
106
107
|
}
|
|
107
108
|
};
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
T as CustomZeroAmount,
|
|
110
111
|
_ as Default,
|
|
111
112
|
v as InvalidAmount,
|
|
112
113
|
N as NegativeAmount,
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
U as ZeroAmount,
|
|
115
|
+
I as ZeroCurrencyAmount,
|
|
115
116
|
b as ZeroCurrencyNoDecimalAmount,
|
|
116
117
|
h as default
|
|
117
118
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Card as r } from "./Card.js";
|
|
3
2
|
import "@tanstack/react-query";
|
|
4
3
|
import "../../../arrayExtensions-DlcBOj5a.js";
|
|
5
4
|
import "react";
|
|
6
5
|
import "../../../configs/awayzClient.js";
|
|
7
|
-
import "../../../AccountService-
|
|
6
|
+
import "../../../AccountService-1J5lfb5Q.js";
|
|
8
7
|
import '../../../assets/_styles4.css';import '../../../assets/_styles3.css';import '../../../assets/_styles2.css';import '../../../assets/_styles5.css';/* empty css */
|
|
8
|
+
import { Card as r } from "./Card.js";
|
|
9
9
|
import "react-i18next";
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
@@ -14,7 +14,7 @@ import "../../../context/AwayzContext.js";
|
|
|
14
14
|
import { AwayzProvider as a } from "../../../providers/AwayzProvider.js";
|
|
15
15
|
import "../../../services/noRetryInstance.js";
|
|
16
16
|
import { EAuthFlow as e } from "../../../types/EAuthFlow.js";
|
|
17
|
-
const
|
|
17
|
+
const v = {
|
|
18
18
|
title: "Wallet/Card",
|
|
19
19
|
component: r,
|
|
20
20
|
parameters: {
|
|
@@ -28,6 +28,7 @@ const y = {
|
|
|
28
28
|
config: {
|
|
29
29
|
testMode: !0,
|
|
30
30
|
authFlow: e.STANDARD,
|
|
31
|
+
gatewayBaseUrl: "TODO:",
|
|
31
32
|
trustedOrigins: ["*"],
|
|
32
33
|
clientId: "6790e7c295a102749a33795e"
|
|
33
34
|
},
|
|
@@ -59,5 +60,5 @@ const y = {
|
|
|
59
60
|
export {
|
|
60
61
|
z as DarkCard,
|
|
61
62
|
D as LightCard,
|
|
62
|
-
|
|
63
|
+
v as default
|
|
63
64
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import { g as P } from "../../cashUtils-BDa0CVyi.js";
|
|
3
|
-
import {
|
|
3
|
+
import { f as M, A as l, E as K } from "../../AccountService-1J5lfb5Q.js";
|
|
4
4
|
import { a as c } from "../../keys-BcBfU51M.js";
|
|
5
5
|
import { useState as f, useCallback as I, useEffect as S } from "react";
|
|
6
6
|
import { awayzClient as R } from "../../configs/awayzClient.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery as g, useMutation as c } from "@tanstack/react-query";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as o } from "../../AccountService-
|
|
3
|
+
import { E as o } from "../../AccountService-1J5lfb5Q.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import { awayzClient as v } from "../../configs/awayzClient.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EBookingEndpoints as i } from "../../configs/endpoints.js";
|
|
2
|
-
import { c } from "../../AccountService-
|
|
2
|
+
import { c } from "../../AccountService-1J5lfb5Q.js";
|
|
3
3
|
import "../../services/noRetryInstance.js";
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { t as F } from "../AccountService-
|
|
2
|
+
import { t as F } from "../AccountService-1J5lfb5Q.js";
|
|
3
3
|
import { useState as e, useEffect as S } from "react";
|
|
4
4
|
import { FeatureService as a } from "../services/features/featureService.js";
|
|
5
5
|
const r = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery as u } from "@tanstack/react-query";
|
|
2
2
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as m, A as c, a as f } from "../AccountService-
|
|
3
|
+
import { E as m, A as c, a as f } from "../AccountService-1J5lfb5Q.js";
|
|
4
4
|
import { useEffect as d } from "react";
|
|
5
5
|
import { useAwayzContext as y } from "./useAwayzContext.js";
|
|
6
6
|
var i = /* @__PURE__ */ ((r) => (r.HOTEL = "Hotel", r.FLIGHT = "Flight", r))(i || {});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery as p, useMutation as s } from "@tanstack/react-query";
|
|
2
2
|
import { h as m } from "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as e } from "../../AccountService-
|
|
3
|
+
import { E as e } from "../../AccountService-1J5lfb5Q.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { T as t } from "../../TripsService-
|
|
5
|
+
import { T as t } from "../../TripsService-IENCtrR_.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import { awayzClient as o } from "../../configs/awayzClient.js";
|
|
8
8
|
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles5.css';/* empty css */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h as p } from "../../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { D as f } from "../../TripsService-
|
|
2
|
+
import { D as f } from "../../TripsService-IENCtrR_.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { renderHook as o, waitFor as i } from "../../tests/TestWrapper.js";
|
|
5
5
|
import { EMyTripsEndpoints as c } from "../../configs/endpoints.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "@tanstack/react-query";
|
|
8
8
|
import "../../configs/awayzClient.js";
|
|
9
|
-
import { c as d } from "../../AccountService-
|
|
9
|
+
import { c as d } from "../../AccountService-1J5lfb5Q.js";
|
|
10
10
|
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles5.css';/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
import "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery as n, useMutation as i } from "@tanstack/react-query";
|
|
2
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
3
|
-
import { E as a, b as u } from "../../AccountService-
|
|
3
|
+
import { E as a, b as u } from "../../AccountService-1J5lfb5Q.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import { awayzClient as s } from "../../configs/awayzClient.js";
|
|
@@ -4,7 +4,7 @@ import "@tanstack/react-query";
|
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../configs/awayzClient.js";
|
|
7
|
-
import { c as l } from "../../AccountService-
|
|
7
|
+
import { c as l } from "../../AccountService-1J5lfb5Q.js";
|
|
8
8
|
import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles5.css';/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "react-i18next";
|
|
@@ -58,6 +58,10 @@ export interface IAwayzConfig {
|
|
|
58
58
|
* Allow overriding the base URL for the Awayz API.
|
|
59
59
|
*/
|
|
60
60
|
overrideBaseUrl?: string;
|
|
61
|
+
/**
|
|
62
|
+
* API Gateway for microservices hosted in AWS. Will replace all base urls for node api
|
|
63
|
+
*/
|
|
64
|
+
gatewayBaseUrl: string;
|
|
61
65
|
/**
|
|
62
66
|
* A URL to an image that will be used as a fallback logo in case flight/hotel logos fail to load.
|
|
63
67
|
*/
|
|
@@ -53,7 +53,7 @@ export declare const getClientConfig: (config: InternalAxiosRequestConfig<any>)
|
|
|
53
53
|
withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined);
|
|
54
54
|
fetchOptions?: Record<string, any>;
|
|
55
55
|
};
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const getGatewayConfig: (config: InternalAxiosRequestConfig<any>) => {
|
|
57
57
|
headers: import('axios').AxiosRequestHeaders;
|
|
58
58
|
url?: string;
|
|
59
59
|
method?: import('axios').Method | string;
|
package/dist/main.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useSearchLimit as B } from "./hooks/useSearchLimit.js";
|
|
|
11
11
|
import { useTripManagement as k } from "./hooks/useTripManagement/useTripManagement.js";
|
|
12
12
|
import { useWallet as z } from "./hooks/useWallet/useWallet.js";
|
|
13
13
|
import { AwayzProvider as T } from "./providers/AwayzProvider.js";
|
|
14
|
-
import { c as S, i as F } from "./AccountService-
|
|
14
|
+
import { c as S, i as F } from "./AccountService-1J5lfb5Q.js";
|
|
15
15
|
import { clientNoRetryInstance as P } from "./services/noRetryInstance.js";
|
|
16
16
|
import { CurrencyService as D } from "./services/currency/CurrencyService.js";
|
|
17
17
|
import { EBookingType as L } from "./services/trips/TripService.types.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClientProvider as l } from "@tanstack/react-query";
|
|
3
3
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as r } from "../keys-BcBfU51M.js";
|
|
5
5
|
import { useEffect as i } from "react";
|
|
6
6
|
import { setCustomBaseUrl as u, setBaseUrl as d } from "../configs/baseUrl.js";
|
|
7
7
|
import { defaultAwayzConfig as p } from "../configs/defaultAwayzConfig.js";
|
|
8
|
-
import {
|
|
8
|
+
import { setGatewayBaseUrl as h } from "../configs/gatewayBaseUrl.js";
|
|
9
9
|
import { AwayzContext as w } from "../context/AwayzContext.js";
|
|
10
|
-
import { useAwayzAuth as
|
|
11
|
-
import
|
|
12
|
-
import { awayzClient as
|
|
13
|
-
import "../AccountService-
|
|
10
|
+
import { useAwayzAuth as y } from "../hooks/useAwayzAuth/useAwayzAuth.js";
|
|
11
|
+
import A from "../hooks/useFeatureFlags.js";
|
|
12
|
+
import { awayzClient as F } from "../configs/awayzClient.js";
|
|
13
|
+
import "../AccountService-1J5lfb5Q.js";
|
|
14
14
|
import '../assets/_styles4.css';import '../assets/_styles3.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles5.css';/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "react-i18next";
|
|
@@ -19,29 +19,29 @@ import "react-i18next";
|
|
|
19
19
|
/* empty css */
|
|
20
20
|
import "../services/noRetryInstance.js";
|
|
21
21
|
const N = ({ children: o, config: e }) => {
|
|
22
|
-
const
|
|
22
|
+
const a = y({
|
|
23
23
|
authFlow: e.authFlow,
|
|
24
24
|
onSuccess: e.onAuthSuccess,
|
|
25
25
|
onError: e.onAuthFailure,
|
|
26
26
|
trustedOrigins: e.trustedOrigins,
|
|
27
27
|
isTestMode: e.testMode
|
|
28
|
-
}), { featureFlags:
|
|
28
|
+
}), { featureFlags: s, loaded: m } = A();
|
|
29
29
|
return i(() => {
|
|
30
30
|
if (!e.clientId) {
|
|
31
31
|
console.error("You need to provide a client ID to the AwayzProvider");
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
localStorage.setItem(
|
|
35
|
-
}, [e]), /* @__PURE__ */
|
|
34
|
+
localStorage.setItem(r.CLIENT_ID, e.clientId), localStorage.setItem(r.AUTH_FLOW, e.authFlow), e.debugRefreshToken && e.testMode && (localStorage.setItem(r.REFRESH_TOKEN, e.debugRefreshToken), localStorage.setItem(r.TOKEN, e.debugRefreshToken)), e.overrideBaseUrl ? u(e.overrideBaseUrl) : d(e.testMode ?? !1), h(e.gatewayBaseUrl);
|
|
35
|
+
}, [e]), /* @__PURE__ */ t(l, { client: F, children: /* @__PURE__ */ t(
|
|
36
36
|
w.Provider,
|
|
37
37
|
{
|
|
38
38
|
value: {
|
|
39
|
-
...
|
|
39
|
+
...a,
|
|
40
40
|
config: {
|
|
41
41
|
...p,
|
|
42
42
|
...e
|
|
43
43
|
},
|
|
44
|
-
featureFlags:
|
|
44
|
+
featureFlags: s,
|
|
45
45
|
featureFlagsLoaded: m
|
|
46
46
|
},
|
|
47
47
|
children: o
|
|
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
|
|
|
2
2
|
var p = (n, e, a) => e in n ? m(n, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : n[e] = a;
|
|
3
3
|
var c = (n, e, a) => p(n, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as r, a as _ } from "../../AccountService-
|
|
5
|
+
import { c as r, a as _ } from "../../AccountService-1J5lfb5Q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EBookingEndpoints as d } from "../../configs/endpoints.js";
|
|
8
8
|
const g = (n) => {
|
|
@@ -2,7 +2,7 @@ import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '..
|
|
|
2
2
|
var m = (t, r, e) => r in t ? y(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
|
|
3
3
|
var n = (t, r, e) => m(t, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { A as C, E, c as s } from "../../AccountService-
|
|
5
|
+
import { A as C, E, c as s } from "../../AccountService-1J5lfb5Q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { ECurrencyEndpoints as i } from "../../configs/endpoints.js";
|
|
8
8
|
import "react/jsx-runtime";
|
package/dist/services/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as o, i as t } from "../AccountService-
|
|
1
|
+
import { c as o, i as t } from "../AccountService-1J5lfb5Q.js";
|
|
2
2
|
import { clientNoRetryInstance as c } from "./noRetryInstance.js";
|
|
3
3
|
import { CurrencyService as a } from "./currency/CurrencyService.js";
|
|
4
4
|
import { EBookingType as s } from "./trips/TripService.types.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as r, g as s, i as c } from "../AccountService-1J5lfb5Q.js";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
c as
|
|
7
|
+
r as clientInstance,
|
|
8
|
+
s as gatewayInstance,
|
|
9
|
+
c as instance
|
|
10
10
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { n as l,
|
|
4
|
+
import { n as l, l as g, m as n, e as h, k as u, h as d, p as f } from "../AccountService-1J5lfb5Q.js";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
import "../configs/endpoints.js";
|
|
7
|
-
import "../configs/
|
|
7
|
+
import "../configs/gatewayBaseUrl.js";
|
|
8
8
|
import "../types/EAuthFlow.js";
|
|
9
9
|
export {
|
|
10
10
|
l as authFailurePostMessage,
|
|
11
11
|
g as delay,
|
|
12
12
|
n as executeWithDelay,
|
|
13
13
|
h as getClientConfig,
|
|
14
|
-
u as
|
|
14
|
+
u as getGatewayConfig,
|
|
15
15
|
d as handleAxiosError,
|
|
16
16
|
f as processFailedRequests
|
|
17
17
|
};
|
|
@@ -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 "../../AccountService-
|
|
5
|
+
import { c as i } from "../../AccountService-1J5lfb5Q.js";
|
|
6
6
|
class E {
|
|
7
7
|
constructor() {
|
|
8
8
|
n(this, "setCurrency", async (e) => {
|
|
@@ -2,7 +2,7 @@ var s = Object.defineProperty;
|
|
|
2
2
|
var n = (a, e, t) => e in a ? s(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var r = (a, e, t) => n(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as o, a as c } from "../../AccountService-
|
|
5
|
+
import { c as o, a as c } from "../../AccountService-1J5lfb5Q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { ERewardsEndpoints as i } from "../../configs/endpoints.js";
|
|
8
8
|
class m {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import "../../AccountService-
|
|
3
|
-
import { T } from "../../TripsService-
|
|
2
|
+
import "../../AccountService-1J5lfb5Q.js";
|
|
3
|
+
import { T } from "../../TripsService-IENCtrR_.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../configs/endpoints.js";
|
|
6
6
|
import "./TripService.types.js";
|
|
@@ -2,7 +2,7 @@ var o = Object.defineProperty;
|
|
|
2
2
|
var i = (d, a, t) => a in d ? o(d, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[a] = t;
|
|
3
3
|
var r = (d, a, t) => i(d, typeof a != "symbol" ? a + "" : a, t);
|
|
4
4
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
|
-
import { c as e, a as c,
|
|
5
|
+
import { c as e, a as c, g as A } from "../../AccountService-1J5lfb5Q.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EWalletEndpoints as s } from "../../configs/endpoints.js";
|
|
8
8
|
class u {
|
|
@@ -107,7 +107,7 @@ class u {
|
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const l = new u();
|
|
111
111
|
export {
|
|
112
|
-
|
|
112
|
+
l as WalletService
|
|
113
113
|
};
|
package/package.json
CHANGED