@odynn/awayz-core 0.6.26 → 0.6.28
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-B9DbWoCe.js → AccountService-DEwilAk3.js} +603 -607
- package/dist/{TripsService-DJhDDtrv.js → TripsService-Dqw5SICI.js} +1 -1
- package/dist/components/CashValue/CashValue.js +1 -1
- package/dist/components/CashValue/CashValue.stories.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +1 -1
- package/dist/configs/endpoints.js +1 -1
- package/dist/context/AwayzContext.js +4 -2
- 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 +72 -0
- 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 +49 -48
- package/dist/hooks/useWallet/useWallet.test.js +1 -1
- package/dist/lib/configs/endpoints.d.ts +2 -1
- package/dist/lib/context/AwayzContext.d.ts +3 -0
- package/dist/lib/hooks/useFeatureFlags.d.ts +19 -0
- package/dist/lib/services/bookings/BookingService.types.d.ts +7 -5
- package/dist/lib/services/features/featureService.d.ts +8 -0
- package/dist/main.js +1 -1
- package/dist/providers/AwayzProvider.js +21 -18
- package/dist/services/account/AccountService.js +1 -1
- package/dist/services/bookings/BookingService.js +16 -11
- package/dist/services/currency/CurrencyService.js +1 -1
- package/dist/services/features/featureService.js +27 -0
- package/dist/services/index.js +1 -1
- package/dist/services/instance.js +1 -1
- package/dist/services/instanceConfig.js +1 -1
- 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 +1 -1
- package/package.json +1 -1
|
@@ -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-DEwilAk3.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { ECurrencyEndpoints as i } from "../../configs/endpoints.js";
|
|
8
8
|
import "react/jsx-runtime";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EAuthEndpoints as a } from "../../configs/endpoints.js";
|
|
2
|
+
import { c as o } from "../../AccountService-DEwilAk3.js";
|
|
3
|
+
class i {
|
|
4
|
+
static async getFeatures() {
|
|
5
|
+
try {
|
|
6
|
+
const { data: r } = await o.get(a.FEATURES), t = {};
|
|
7
|
+
for (const e of r.data)
|
|
8
|
+
e.type !== "array" ? t[e.name] = e.value : t[e.name] = e.values.join(",");
|
|
9
|
+
return t;
|
|
10
|
+
} catch (r) {
|
|
11
|
+
return console.error("in service error", r), {};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
static async getFeatureFlags() {
|
|
15
|
+
try {
|
|
16
|
+
const { data: r } = await o.get(a.FEATURES), t = {};
|
|
17
|
+
for (const e of r.data)
|
|
18
|
+
e.type !== "array" ? t[e.name] = e.value : t[e.name] = e.values;
|
|
19
|
+
return t;
|
|
20
|
+
} catch (r) {
|
|
21
|
+
return console.error("in service error", r), {};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
i as FeatureService
|
|
27
|
+
};
|
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-DEwilAk3.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,7 +1,7 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { c as p, i as a } from "../AccountService-
|
|
4
|
+
import { c as p, i as a } from "../AccountService-DEwilAk3.js";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
export {
|
|
7
7
|
p as clientInstance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { l, j as m, k as g, g as h, h as u, p as d } from "../AccountService-
|
|
4
|
+
import { l, j as m, k as g, g as h, h as u, p as d } from "../AccountService-DEwilAk3.js";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
import "../configs/endpoints.js";
|
|
7
7
|
import "../types/EAuthFlow.js";
|
|
@@ -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-DEwilAk3.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-DEwilAk3.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-DEwilAk3.js";
|
|
3
|
+
import { T } from "../../TripsService-Dqw5SICI.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 s, a as c } from "../../AccountService-
|
|
5
|
+
import { c as s, a as c } from "../../AccountService-DEwilAk3.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EWalletEndpoints as e } from "../../configs/endpoints.js";
|
|
8
8
|
class A {
|