@odynn/awayz-core 0.6.41 → 0.6.44

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.
Files changed (43) hide show
  1. package/dist/{TripsService-C2OJGPHg.js → TripsService-CUPnO2tz.js} +1 -1
  2. package/dist/_styles.flight-booking-BhlwjkAV.js +5 -0
  3. package/dist/assets/_styles3.css +1 -1
  4. package/dist/assets/_styles4.css +1 -1
  5. package/dist/components/Bookings/FlightBooking/FlightBooking.js +3 -4
  6. package/dist/components/Bookings/HotelBooking/HotelBooking.js +1 -1
  7. package/dist/components/CashValue/CashValue.js +6 -8
  8. package/dist/components/CashValue/CashValue.stories.js +19 -20
  9. package/dist/components/Wallet/Card/Card.stories.js +13 -15
  10. package/dist/configs/endpoints.js +3 -3
  11. package/dist/hooks/useAwayzAuth/useAwayzAuth.js +55 -48
  12. package/dist/hooks/useBookingManagement/useBookingManagement.js +96 -82
  13. package/dist/hooks/useBookingManagement/useBookingManagement.test.js +3 -5
  14. package/dist/hooks/useFeatureFlags.js +1 -1
  15. package/dist/hooks/useSearchLimit.js +1 -1
  16. package/dist/hooks/useTripManagement/useTripManagement.js +45 -44
  17. package/dist/hooks/useTripManagement/useTripManagement.test.js +4 -6
  18. package/dist/hooks/useWallet/useWallet.js +25 -27
  19. package/dist/hooks/useWallet/useWallet.test.js +3 -5
  20. package/dist/lib/configs/endpoints.d.ts +2 -1
  21. package/dist/lib/hooks/useTripManagement/useTripManagement.d.ts +4 -0
  22. package/dist/lib/services/bookings/BookingService.d.ts +2 -1
  23. package/dist/lib/services/bookings/BookingService.types.d.ts +16 -0
  24. package/dist/lib/types/index.d.ts +1 -0
  25. package/dist/main.js +14 -14
  26. package/dist/{AccountService-DHR8seWS.js → noRetryInstance-BMCc2uw4.js} +370 -358
  27. package/dist/providers/AwayzProvider.js +13 -16
  28. package/dist/services/account/AccountService.js +2 -2
  29. package/dist/services/bookings/BookingService.js +79 -55
  30. package/dist/services/currency/CurrencyService.js +8 -10
  31. package/dist/services/features/featureService.js +1 -1
  32. package/dist/services/index.js +11 -12
  33. package/dist/services/instance.js +2 -2
  34. package/dist/services/instanceConfig.js +17 -9
  35. package/dist/services/noRetryInstance.js +2 -8
  36. package/dist/services/preferences/PreferencesService.js +1 -1
  37. package/dist/services/rewards/RewardsService.js +5 -5
  38. package/dist/services/trips/TripsService.js +2 -2
  39. package/dist/services/wallet/WalletService.js +1 -1
  40. package/dist/types/index.js +4 -2
  41. package/package.json +1 -1
  42. package/dist/keys-BcBfU51M.js +0 -5
  43. /package/dist/assets/{_styles5.css → noRetryInstance.css} +0 -0
@@ -1,38 +1,35 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import { QueryClientProvider as l } from "@tanstack/react-query";
2
+ import { QueryClientProvider as m } from "@tanstack/react-query";
3
3
  import "../arrayExtensions-DlcBOj5a.js";
4
- import { a as r } from "../keys-BcBfU51M.js";
5
- import { useEffect as i } from "react";
6
- import { setCustomBaseUrl as u, setBaseUrl as d } from "../configs/baseUrl.js";
4
+ import { a as r } from "../_styles.flight-booking-BhlwjkAV.js";
5
+ import { useEffect as u } from "react";
6
+ import { setCustomBaseUrl as d, setBaseUrl as i } from "../configs/baseUrl.js";
7
7
  import { defaultAwayzConfig as p } from "../configs/defaultAwayzConfig.js";
8
8
  import { setGatewayBaseUrl as h } from "../configs/gatewayBaseUrl.js";
9
9
  import { AwayzContext as w } from "../context/AwayzContext.js";
10
10
  import { useAwayzAuth as y } from "../hooks/useAwayzAuth/useAwayzAuth.js";
11
11
  import A from "../hooks/useFeatureFlags.js";
12
12
  import { awayzClient as F } from "../configs/awayzClient.js";
13
- import "../AccountService-DHR8seWS.js";
14
- import '../assets/_styles4.css';import '../assets/_styles3.css';import '../assets/_styles2.css';import '../assets/_styles.css';import '../assets/_styles5.css';/* empty css */
15
- /* empty css */
13
+ import "../noRetryInstance-BMCc2uw4.js";
14
+ import '../assets/_styles3.css';import '../assets/_styles2.css';import '../assets/_styles.css';/* empty css */
16
15
  import "react-i18next";
17
16
  /* empty css */
18
- /* empty css */
19
17
  /* empty css */
20
- import "../services/noRetryInstance.js";
21
- const N = ({ children: o, config: e }) => {
18
+ const x = ({ children: o, config: e }) => {
22
19
  const a = y({
23
20
  authFlow: e.authFlow,
24
21
  onSuccess: e.onAuthSuccess,
25
22
  onError: e.onAuthFailure,
26
23
  trustedOrigins: e.trustedOrigins,
27
24
  isTestMode: e.testMode
28
- }), { featureFlags: s, loaded: m } = A();
29
- return i(() => {
25
+ }), { featureFlags: s, loaded: l } = A();
26
+ return u(() => {
30
27
  if (!e.clientId) {
31
28
  console.error("You need to provide a client ID to the AwayzProvider");
32
29
  return;
33
30
  }
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(
31
+ 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 ? d(e.overrideBaseUrl) : i(e.testMode ?? !1), h(e.gatewayBaseUrl);
32
+ }, [e]), /* @__PURE__ */ t(m, { client: F, children: /* @__PURE__ */ t(
36
33
  w.Provider,
37
34
  {
38
35
  value: {
@@ -42,12 +39,12 @@ const N = ({ children: o, config: e }) => {
42
39
  ...e
43
40
  },
44
41
  featureFlags: s,
45
- featureFlagsLoaded: m
42
+ featureFlagsLoaded: l
46
43
  },
47
44
  children: o
48
45
  }
49
46
  ) });
50
47
  };
51
48
  export {
52
- N as AwayzProvider
49
+ x as AwayzProvider
53
50
  };
@@ -1,6 +1,6 @@
1
1
  import "../../arrayExtensions-DlcBOj5a.js";
2
- import { A as e } from "../../AccountService-DHR8seWS.js";
3
- import "../../keys-BcBfU51M.js";
2
+ import { A as e } from "../../noRetryInstance-BMCc2uw4.js";
3
+ import "../../_styles.flight-booking-BhlwjkAV.js";
4
4
  import "react";
5
5
  import "../../configs/awayzClient.js";
6
6
  import "../../configs/endpoints.js";
@@ -1,27 +1,30 @@
1
1
  var p = Object.defineProperty;
2
- var g = (i, e, a) => e in i ? p(i, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : i[e] = a;
3
- var c = (i, e, a) => g(i, typeof e != "symbol" ? e + "" : e, a);
2
+ var g = (i, t, a) => t in i ? p(i, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : i[t] = a;
3
+ var c = (i, t, a) => g(i, typeof t != "symbol" ? t + "" : t, a);
4
4
  import "../../arrayExtensions-DlcBOj5a.js";
5
- import { c as r, a as u } from "../../AccountService-DHR8seWS.js";
5
+ import { c as r, b as l, g as h } from "../../noRetryInstance-BMCc2uw4.js";
6
6
  import "react";
7
- import { EBookingEndpoints as s } from "../../configs/endpoints.js";
7
+ import { EBookingEndpoints as d } from "../../configs/endpoints.js";
8
8
  const f = (i) => {
9
- const e = /P((\d+)D)?T((\d+)H)?((\d+)M)?/, a = i.match(e);
9
+ const t = /P((\d+)D)?T((\d+)H)?((\d+)M)?/, a = i.match(t);
10
10
  if (a) {
11
- const o = a[2] ? `${a[2]}d ` : "", t = a[4] ? `${a[4]}h ` : "", _ = a[6] ? `${a[6]}m` : "";
12
- return `${o}${t}${_}`.trim();
11
+ const o = a[2] ? `${a[2]}d ` : "", e = a[4] ? `${a[4]}h ` : "", _ = a[6] ? `${a[6]}m` : "";
12
+ return `${o}${e}${_}`.trim();
13
13
  } else
14
14
  return i;
15
15
  };
16
16
  class y {
17
17
  constructor() {
18
- c(this, "getHotelBooking", async (e) => {
18
+ c(this, "getHotelBooking", async (t) => {
19
19
  var _, m;
20
20
  const { data: a } = await r.get(
21
- `${s.USER_HOTEL_BOOKINGS}/${e}`
21
+ `${d.USER_HOTEL_BOOKINGS}/${t}`
22
22
  ), o = a.data.accommodation.rooms[0].rates[0];
23
23
  return {
24
24
  id: a.data._id,
25
+ rateId: a.data.rate_id,
26
+ quoteId: a.data.quote_id,
27
+ bookingId: a.data.id,
25
28
  totalAmount: parseFloat(o.total_amount),
26
29
  feeAmount: parseFloat(o.fee_amount),
27
30
  taxAmount: parseFloat(o.tax_amount),
@@ -51,12 +54,12 @@ class y {
51
54
  longitude: a.data.accommodation.location.geographic_coordinates.longitude
52
55
  },
53
56
  images: a.data.accommodation.photos.map((n) => n.url),
54
- guests: a.data.guests.map((n, l) => {
55
- var d;
57
+ guests: a.data.guests.map((n, u) => {
58
+ var s;
56
59
  return {
57
60
  familyName: n.family_name,
58
61
  givenName: n.given_name,
59
- type: (d = a.data.guest_types[l]) == null ? void 0 : d.type
62
+ type: (s = a.data.guest_types[u]) == null ? void 0 : s.type
60
63
  };
61
64
  }),
62
65
  numberOfRooms: (_ = a.data.rooms) == null ? void 0 : _.length,
@@ -70,24 +73,27 @@ class y {
70
73
  pointsAsCash: a.data.points_as_cash ? {
71
74
  authCode: a.data.points_as_cash.auth_code,
72
75
  points: a.data.points_as_cash.points,
73
- pointsValue: a.data.points_as_cash.points_value
76
+ pointsValue: a.data.points_as_cash.points_value,
77
+ confirmationCode: a.data.points_as_cash.confirmation_code,
78
+ provider: a.data.points_as_cash.provider,
79
+ cashValue: a.data.points_as_cash.cash_value
74
80
  } : void 0,
75
81
  rooms: (m = a.data.rooms) == null ? void 0 : m.map((n) => {
76
- var l;
82
+ var u;
77
83
  return {
78
- beds: (l = n.beds) == null ? void 0 : l.map((d) => ({
79
- type: d.type,
80
- count: d.count
84
+ beds: (u = n.beds) == null ? void 0 : u.map((s) => ({
85
+ type: s.type,
86
+ count: s.count
81
87
  })),
82
- totalAmount: parseFloat(n.rates[0].total_amount),
88
+ totalAmount: parseFloat(n.total_amount),
83
89
  name: n.name
84
90
  };
85
91
  })
86
92
  };
87
93
  });
88
- c(this, "getFlightBooking", async (e) => {
94
+ c(this, "getFlightBooking", async (t) => {
89
95
  const { data: a } = await r.get(
90
- `${s.USER_FLIGHT_BOOKINGS}/${e}`
96
+ `${d.USER_FLIGHT_BOOKINGS}/${t}`
91
97
  );
92
98
  return {
93
99
  id: a.data._id,
@@ -115,76 +121,94 @@ class y {
115
121
  },
116
122
  class: a.data.slices[0].fare_brand_name,
117
123
  flightOfferId: a.data.offer_id,
124
+ orderId: a.data.order_id,
118
125
  cancelledAt: a.data.cancelled_at,
119
- airlines: a.data.slices[0].segments.map((t) => ({
120
- name: t.operating_carrier.name,
121
- code: t.operating_carrier.iata_code,
122
- logo: t.operating_carrier.logo_symbol_url
126
+ airlines: a.data.slices[0].segments.map((e) => ({
127
+ name: e.operating_carrier.name,
128
+ code: e.operating_carrier.iata_code,
129
+ logo: e.operating_carrier.logo_symbol_url
123
130
  })),
124
- passengers: a.data.passengers.map((t) => ({
125
- id: t.id,
126
- givenName: t.given_name,
127
- familyName: t.family_name,
128
- type: t.type,
129
- title: t.title,
130
- email: t.email,
131
- gender: t.gender,
132
- phoneNumber: t.phone_number
131
+ passengers: a.data.passengers.map((e) => ({
132
+ id: e.id,
133
+ givenName: e.given_name,
134
+ familyName: e.family_name,
135
+ type: e.type,
136
+ title: e.title,
137
+ email: e.email,
138
+ gender: e.gender,
139
+ phoneNumber: e.phone_number
133
140
  })),
134
- flights: a.data.slices.map((t) => ({
135
- departingAt: t.segments[0].departing_at,
136
- arrivingAt: t.segments.getLast().arriving_at,
137
- numberOfStops: t.segments.length - 1,
141
+ flights: a.data.slices.map((e) => ({
142
+ departingAt: e.segments[0].departing_at,
143
+ arrivingAt: e.segments.getLast().arriving_at,
144
+ numberOfStops: e.segments.length - 1,
138
145
  reference: a.data.booking_reference,
139
- durationInMinutes: f(t.duration),
140
- origin: u(t.origin),
141
- destination: u(t.destination)
146
+ durationInMinutes: f(e.duration),
147
+ origin: l(e.origin),
148
+ destination: l(e.destination)
142
149
  })),
143
150
  availableActions: a.data.available_actions,
144
- airlineInitiatedChanges: u(a.data.airline_initiated_changes) || [],
151
+ airlineInitiatedChanges: l(a.data.airline_initiated_changes) || [],
145
152
  pointsAsCash: a.data.points_as_cash ? {
146
153
  authCode: a.data.points_as_cash.auth_code,
147
154
  points: a.data.points_as_cash.points,
148
- pointsValue: a.data.points_as_cash.points_value
155
+ pointsValue: a.data.points_as_cash.points_value,
156
+ confirmationCode: a.data.points_as_cash.confirmation_code,
157
+ provider: a.data.points_as_cash.provider,
158
+ cashValue: a.data.points_as_cash.cash_value
149
159
  } : void 0
150
160
  };
151
161
  });
152
- c(this, "initiateCancelFlightBooking", async (e) => {
162
+ c(this, "initiateCancelFlightBooking", async (t) => {
153
163
  const { data: a } = await r.put(
154
- `${s.INITIATE_FLIGHT_CANCEL}/${e}`
164
+ `${d.INITIATE_FLIGHT_CANCEL}/${t}`
155
165
  );
156
166
  return a.success;
157
167
  });
158
- c(this, "confirmCancelFlightBooking", async (e) => {
168
+ c(this, "confirmCancelFlightBooking", async (t) => {
159
169
  const { data: a } = await r.put(
160
- `${s.CONFIRM_FLIGHT_CANCEL}/${e}`
170
+ `${d.CONFIRM_FLIGHT_CANCEL}/${t}`
161
171
  );
162
172
  return a.success;
163
173
  });
164
- c(this, "cancelHotelBooking", async (e) => {
174
+ c(this, "cancelHotelBooking", async (t) => {
165
175
  const { data: a } = await r.post(
166
- `${s.CANCEL_HOTEL_BOOKING}/${e}`
176
+ `${d.CANCEL_HOTEL_BOOKING}/${t}`
167
177
  );
168
178
  return a.success;
169
179
  });
170
180
  c(this, "actionAirlineChanges", async ({
171
- bookingId: e,
181
+ bookingId: t,
172
182
  acceptChanges: a,
173
183
  aicId: o
174
184
  }) => {
175
- const { data: t } = await r.post(
176
- s.ACTION_AIRLINE_CHANGES,
185
+ const { data: e } = await r.post(
186
+ d.ACTION_AIRLINE_CHANGES,
177
187
  {
178
- booking_id: e,
188
+ booking_id: t,
179
189
  action_taken: a ? "accepted" : "cancelled",
180
190
  aic_id: o
181
191
  }
182
192
  );
183
- return t.success;
193
+ return e.success;
194
+ });
195
+ c(this, "cancelPointsBooking", async (t) => {
196
+ const { data: a } = await h.post(
197
+ `${d.REFUND_POINTS_BOOKING}`,
198
+ {
199
+ confirmationCode: t.confirmationCode,
200
+ orderId: t.orderId,
201
+ provider: t.provider,
202
+ type: t.type,
203
+ pointsAmount: t.pointsAmount,
204
+ cashAmount: t.cashAmount
205
+ }
206
+ );
207
+ return a.success;
184
208
  });
185
209
  }
186
210
  }
187
- const F = new y();
211
+ const v = new y();
188
212
  export {
189
- F as BookingService
213
+ v as BookingService
190
214
  };
@@ -1,21 +1,19 @@
1
- import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';import '../../assets/_styles5.css';var y = Object.defineProperty;
2
- var m = (t, r, e) => r in t ? y(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
1
+ import '../../assets/_styles3.css';import '../../assets/_styles2.css';import '../../assets/_styles.css';var p = Object.defineProperty;
2
+ var m = (t, r, e) => r in t ? p(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-DHR8seWS.js";
5
+ import { A as C, E, c as s } from "../../noRetryInstance-BMCc2uw4.js";
6
6
  import "react";
7
7
  import { ECurrencyEndpoints as i } from "../../configs/endpoints.js";
8
8
  import "react/jsx-runtime";
9
9
  import "@tanstack/react-query";
10
- /* empty css */
11
10
  /* empty css */
12
11
  import "react-i18next";
13
12
  /* empty css */
14
- /* empty css */
13
+ import "../../_styles.flight-booking-BhlwjkAV.js";
15
14
  /* empty css */
16
15
  import { awayzClient as _ } from "../../configs/awayzClient.js";
17
16
  import "../../context/AwayzContext.js";
18
- import "../noRetryInstance.js";
19
17
  class d {
20
18
  constructor() {
21
19
  n(this, "convertCurrency", async ({
@@ -29,8 +27,8 @@ class d {
29
27
  });
30
28
  if (!c)
31
29
  throw new Error("Failed to fetch user data");
32
- const { userRegion: u, preferences: p } = o, { data: a } = await s.post(i.CURRENCY_CONVERSION, {
33
- target_currency: e ?? p.currency ?? u.currency,
30
+ const { userRegion: u, preferences: y } = o, { data: a } = await s.post(i.CURRENCY_CONVERSION, {
31
+ target_currency: e ?? y.currency ?? u.currency,
34
32
  base_currency: r
35
33
  });
36
34
  if (c && a.data)
@@ -68,7 +66,7 @@ class d {
68
66
  });
69
67
  }
70
68
  }
71
- const F = new d();
69
+ const q = new d();
72
70
  export {
73
- F as CurrencyService
71
+ q as CurrencyService
74
72
  };
@@ -1,5 +1,5 @@
1
1
  import { EAuthEndpoints as a } from "../../configs/endpoints.js";
2
- import { c as o } from "../../AccountService-DHR8seWS.js";
2
+ import { c as o } from "../../noRetryInstance-BMCc2uw4.js";
3
3
  class i {
4
4
  static async getFeatures() {
5
5
  try {
@@ -1,14 +1,13 @@
1
- import { CurrencyService as o } from "./currency/CurrencyService.js";
2
- import { c as n, g as a, i as c } from "../AccountService-DHR8seWS.js";
3
- import { clientNoRetryInstance as i } from "./noRetryInstance.js";
4
- import { RewardsService as f } from "./rewards/RewardsService.js";
5
- import { EBookingType as x } from "./trips/TripService.types.js";
1
+ import { CurrencyService as a } from "./currency/CurrencyService.js";
2
+ import { c as t, a as o, g as c, i as s } from "../noRetryInstance-BMCc2uw4.js";
3
+ import { RewardsService as p } from "./rewards/RewardsService.js";
4
+ import { EBookingType as m } from "./trips/TripService.types.js";
6
5
  export {
7
- o as CurrencyService,
8
- x as EBookingType,
9
- f as RewardsService,
10
- n as clientInstance,
11
- i as clientNoRetryInstance,
12
- a as gatewayInstance,
13
- c as instance
6
+ a as CurrencyService,
7
+ m as EBookingType,
8
+ p as RewardsService,
9
+ t as clientInstance,
10
+ o as clientNoRetryInstance,
11
+ c as gatewayInstance,
12
+ s as instance
14
13
  };
@@ -1,7 +1,7 @@
1
1
  import "../arrayExtensions-DlcBOj5a.js";
2
- import "../keys-BcBfU51M.js";
2
+ import "../_styles.flight-booking-BhlwjkAV.js";
3
3
  import "react";
4
- import { c as r, g as s, i as c } from "../AccountService-DHR8seWS.js";
4
+ import { c as r, g as s, i as c } from "../noRetryInstance-BMCc2uw4.js";
5
5
  import "../configs/baseUrl.js";
6
6
  export {
7
7
  r as clientInstance,
@@ -1,17 +1,25 @@
1
1
  import "../arrayExtensions-DlcBOj5a.js";
2
- import "../keys-BcBfU51M.js";
2
+ import "../_styles.flight-booking-BhlwjkAV.js";
3
3
  import "react";
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-DHR8seWS.js";
4
+ import { m as y, k as C, l as c, h as F, j, n as k, p as q } from "../noRetryInstance-BMCc2uw4.js";
5
5
  import "../configs/baseUrl.js";
6
6
  import "../configs/endpoints.js";
7
7
  import "../configs/gatewayBaseUrl.js";
8
+ import "@tanstack/react-query";
9
+ import "react/jsx-runtime";
10
+ import '../assets/_styles3.css';import '../assets/_styles2.css';import '../assets/_styles.css';/* empty css */
11
+ import "react-i18next";
12
+ /* empty css */
13
+ /* empty css */
14
+ import "../configs/awayzClient.js";
15
+ import "../context/AwayzContext.js";
8
16
  import "../types/EAuthFlow.js";
9
17
  export {
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
18
+ y as authFailurePostMessage,
19
+ C as delay,
20
+ c as executeWithDelay,
21
+ F as getClientConfig,
22
+ j as getGatewayConfig,
23
+ k as handleAxiosError,
24
+ q as processFailedRequests
17
25
  };
@@ -1,10 +1,4 @@
1
- import { d as t, e as r, h as n } from "../AccountService-DHR8seWS.js";
2
- const s = t.create();
3
- s.interceptors.request.use((e) => (e = r(e), e));
4
- const o = 1;
5
- let a = !1;
6
- const i = [];
7
- s.interceptors.response.use(null, (e) => n(i, e, o, a, s));
1
+ import { a } from "../noRetryInstance-BMCc2uw4.js";
8
2
  export {
9
- s as clientNoRetryInstance
3
+ a as clientNoRetryInstance
10
4
  };
@@ -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-DHR8seWS.js";
5
+ import { c as i } from "../../noRetryInstance-BMCc2uw4.js";
6
6
  class E {
7
7
  constructor() {
8
8
  n(this, "setCurrency", async (e) => {
@@ -1,8 +1,8 @@
1
1
  var s = Object.defineProperty;
2
- var n = (a, e, t) => e in a ? s(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var r = (a, e, t) => n(a, typeof e != "symbol" ? e + "" : e, t);
2
+ var n = (t, e, a) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
+ var r = (t, e, a) => n(t, typeof e != "symbol" ? e + "" : e, a);
4
4
  import "../../arrayExtensions-DlcBOj5a.js";
5
- import { c as o, a as c } from "../../AccountService-DHR8seWS.js";
5
+ import { c as o, b as c } from "../../noRetryInstance-BMCc2uw4.js";
6
6
  import "react";
7
7
  import { ERewardsEndpoints as i } from "../../configs/endpoints.js";
8
8
  class m {
@@ -30,7 +30,7 @@ class m {
30
30
  * }
31
31
  */
32
32
  r(this, "getCentPerPoint", async (e) => {
33
- const { data: t } = await o.get(
33
+ const { data: a } = await o.get(
34
34
  i.POINTS_PER_CENT,
35
35
  {
36
36
  params: {
@@ -38,7 +38,7 @@ class m {
38
38
  }
39
39
  }
40
40
  );
41
- return c(t.data);
41
+ return c(a.data);
42
42
  });
43
43
  }
44
44
  }
@@ -1,6 +1,6 @@
1
1
  import "../../arrayExtensions-DlcBOj5a.js";
2
- import "../../AccountService-DHR8seWS.js";
3
- import { T } from "../../TripsService-C2OJGPHg.js";
2
+ import "../../noRetryInstance-BMCc2uw4.js";
3
+ import { T } from "../../TripsService-CUPnO2tz.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, g as A } from "../../AccountService-DHR8seWS.js";
5
+ import { c as e, b as c, g as A } from "../../noRetryInstance-BMCc2uw4.js";
6
6
  import "react";
7
7
  import { EWalletEndpoints as s } from "../../configs/endpoints.js";
8
8
  class u {
@@ -1,4 +1,6 @@
1
- import { EAuthFlow as t } from "./EAuthFlow.js";
1
+ import { ETripStatus as t } from "../hooks/useTripManagement/useTripManagement.js";
2
+ import { EAuthFlow as e } from "./EAuthFlow.js";
2
3
  export {
3
- t as EAuthFlow
4
+ e as EAuthFlow,
5
+ t as ETripStatus
4
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.6.41",
3
+ "version": "0.6.44",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,5 +0,0 @@
1
- var T = /* @__PURE__ */ ((_) => (_.TOKEN = "token", _.REFRESH_TOKEN = "refreshToken", _.CLIENT_ID = "clientId", _.AUTH_FLOW = "authFlow", _.OVERRIDE_TOKEN_EXCHANGE_ENDPOINT = "overrideExchangeTokenEndpoint", _))(T || {}), d = /* @__PURE__ */ ((_) => (_.ISO = "dates:iso", _.DISPLAY_SHORT = "dates:displayShort", _.DISPLAY_MEDIUM = "dates:displayMedium", _.DISPLAY_LONG = "dates:displayLong", _.DISPLAY_FULL = "dates:displayFull", _.DISPLAY_SHORT_WITH_YEAR = "dates:displayShortWithYear", _.DISPLAY_MEDIUM_WITH_YEAR = "dates:displayMediumWithYear", _.DISPLAY_LONG_WITH_YEAR = "dates:displayLongWithYear", _.DISPLAY_FULL_WITH_YEAR = "dates:displayFullWithYear", _.DATE_TIME_SHORT = "dates:dateTimeShort", _.DATE_TIME_MEDIUM = "dates:dateTimeMedium", _.DATE_TIME_LONG = "dates:dateTimeLong", _.DATE_TIME_FULL = "dates:dateTimeFull", _.DATE_TIME_SHORT_WITH_YEAR = "dates:dateTimeShortWithYear", _.DATE_TIME_MEDIUM_WITH_YEAR = "dates:dateTimeMediumWithYear", _.DATE_TIME_LONG_WITH_YEAR = "dates:dateTimeLongWithYear", _.DATE_TIME_FULL_WITH_YEAR = "dates:dateTimeFullWithYear", _.TIME_ONLY = "dates:timeOnly", _.TIME_WITH_SECONDS = "dates:timeWithSeconds", _))(d || {});
2
- export {
3
- d as E,
4
- T as a
5
- };