@odynn/awayz-core 0.6.35 → 0.6.38
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-1J5lfb5Q.js → AccountService-DHR8seWS.js} +26 -26
- package/dist/{TripsService-IENCtrR_.js → TripsService-C2OJGPHg.js} +1 -1
- package/dist/components/CashValue/CashValue.js +2 -2
- package/dist/components/CashValue/CashValue.stories.js +1 -1
- package/dist/components/Wallet/Card/Card.stories.js +1 -1
- package/dist/hooks/useAwayzAuth/useAwayzAuth.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.js +1 -1
- package/dist/hooks/useBookingManagement/useBookingManagement.test.js +2 -2
- 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/services/index.d.ts +5 -5
- package/dist/main.js +25 -24
- package/dist/providers/AwayzProvider.js +1 -1
- 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 +12 -11
- 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
|
@@ -31,9 +31,9 @@ function He(e, t) {
|
|
|
31
31
|
const { toString: St } = Object.prototype, { getPrototypeOf: Re } = Object, { iterator: te, toStringTag: Me } = Symbol, ne = /* @__PURE__ */ ((e) => (t) => {
|
|
32
32
|
const n = St.call(t);
|
|
33
33
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
34
|
-
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: z } = Array,
|
|
34
|
+
})(/* @__PURE__ */ Object.create(null)), x = (e) => (e = e.toLowerCase(), (t) => ne(t) === e), re = (e) => (t) => typeof t === e, { isArray: z } = Array, V = re("undefined");
|
|
35
35
|
function gt(e) {
|
|
36
|
-
return e !== null && !
|
|
36
|
+
return e !== null && !V(e) && e.constructor !== null && !V(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
37
37
|
}
|
|
38
38
|
const je = x("ArrayBuffer");
|
|
39
39
|
function yt(e) {
|
|
@@ -50,7 +50,7 @@ const wt = re("string"), _ = re("function"), ze = re("number"), se = (e) => e !=
|
|
|
50
50
|
return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ne(e)) === "formdata" || // detect form-data instance
|
|
51
51
|
t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
|
|
52
52
|
}, It = x("URLSearchParams"), [Ut, xt, Lt, kt] = ["ReadableStream", "Request", "Response", "Headers"].map(x), Pt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
53
|
-
function
|
|
53
|
+
function v(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
54
54
|
if (e === null || typeof e > "u")
|
|
55
55
|
return;
|
|
56
56
|
let r, s;
|
|
@@ -73,17 +73,17 @@ function Ge(e, t) {
|
|
|
73
73
|
return s;
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
|
-
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $e = (e) => !
|
|
76
|
+
const q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, $e = (e) => !V(e) && e !== q;
|
|
77
77
|
function fe() {
|
|
78
78
|
const { caseless: e } = $e(this) && this || {}, t = {}, n = (r, s) => {
|
|
79
79
|
const o = e && Ge(t, s) || s;
|
|
80
80
|
X(t[o]) && X(r) ? t[o] = fe(t[o], r) : X(r) ? t[o] = fe({}, r) : z(r) ? t[o] = r.slice() : t[o] = r;
|
|
81
81
|
};
|
|
82
82
|
for (let r = 0, s = arguments.length; r < s; r++)
|
|
83
|
-
arguments[r] &&
|
|
83
|
+
arguments[r] && v(arguments[r], n);
|
|
84
84
|
return t;
|
|
85
85
|
}
|
|
86
|
-
const Ft = (e, t, n, { allOwnKeys: r } = {}) => (
|
|
86
|
+
const Ft = (e, t, n, { allOwnKeys: r } = {}) => (v(t, (s, o) => {
|
|
87
87
|
n && _(s) ? e[o] = He(s, n) : e[o] = s;
|
|
88
88
|
}, { allOwnKeys: r }), e), Dt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Bt = (e, t, n, r) => {
|
|
89
89
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -130,13 +130,13 @@ const Ft = (e, t, n, { allOwnKeys: r } = {}) => (V(t, (s, o) => {
|
|
|
130
130
|
function(n, r, s) {
|
|
131
131
|
return r.toUpperCase() + s;
|
|
132
132
|
}
|
|
133
|
-
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
133
|
+
), be = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Vt = x("RegExp"), Ke = (e, t) => {
|
|
134
134
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
135
|
-
|
|
135
|
+
v(n, (s, o) => {
|
|
136
136
|
let i;
|
|
137
137
|
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
138
138
|
}), Object.defineProperties(e, r);
|
|
139
|
-
},
|
|
139
|
+
}, vt = (e) => {
|
|
140
140
|
Ke(e, (t, n) => {
|
|
141
141
|
if (_(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
142
142
|
return !1;
|
|
@@ -171,23 +171,23 @@ const Zt = (e) => {
|
|
|
171
171
|
if (!("toJSON" in r)) {
|
|
172
172
|
t[s] = r;
|
|
173
173
|
const o = z(r) ? [] : {};
|
|
174
|
-
return
|
|
174
|
+
return v(r, (i, c) => {
|
|
175
175
|
const f = n(i, s + 1);
|
|
176
|
-
!
|
|
176
|
+
!V(f) && (o[c] = f);
|
|
177
177
|
}), t[s] = void 0, o;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
return r;
|
|
181
181
|
};
|
|
182
182
|
return n(e, 0);
|
|
183
|
-
}, Qt = x("AsyncFunction"), en = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch),
|
|
183
|
+
}, Qt = x("AsyncFunction"), en = (e) => e && (se(e) || _(e)) && _(e.then) && _(e.catch), Ve = ((e, t) => e ? setImmediate : t ? ((n, r) => (q.addEventListener("message", ({ source: s, data: o }) => {
|
|
184
184
|
s === q && o === n && r.length && r.shift()();
|
|
185
185
|
}, !1), (s) => {
|
|
186
186
|
r.push(s), q.postMessage(n, "*");
|
|
187
187
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
188
188
|
typeof setImmediate == "function",
|
|
189
189
|
_(q.postMessage)
|
|
190
|
-
), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick ||
|
|
190
|
+
), tn = typeof queueMicrotask < "u" ? queueMicrotask.bind(q) : typeof process < "u" && process.nextTick || Ve, nn = (e) => e != null && _(e[te]), a = {
|
|
191
191
|
isArray: z,
|
|
192
192
|
isArrayBuffer: je,
|
|
193
193
|
isBuffer: gt,
|
|
@@ -202,17 +202,17 @@ const Zt = (e) => {
|
|
|
202
202
|
isRequest: xt,
|
|
203
203
|
isResponse: Lt,
|
|
204
204
|
isHeaders: kt,
|
|
205
|
-
isUndefined:
|
|
205
|
+
isUndefined: V,
|
|
206
206
|
isDate: Tt,
|
|
207
207
|
isFile: Ot,
|
|
208
208
|
isBlob: At,
|
|
209
|
-
isRegExp:
|
|
209
|
+
isRegExp: Vt,
|
|
210
210
|
isFunction: _,
|
|
211
211
|
isStream: Nt,
|
|
212
212
|
isURLSearchParams: It,
|
|
213
213
|
isTypedArray: jt,
|
|
214
214
|
isFileList: _t,
|
|
215
|
-
forEach:
|
|
215
|
+
forEach: v,
|
|
216
216
|
merge: fe,
|
|
217
217
|
extend: Ft,
|
|
218
218
|
trim: Pt,
|
|
@@ -230,7 +230,7 @@ const Zt = (e) => {
|
|
|
230
230
|
hasOwnProp: be,
|
|
231
231
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
232
232
|
reduceDescriptors: Ke,
|
|
233
|
-
freezeMethods:
|
|
233
|
+
freezeMethods: vt,
|
|
234
234
|
toObjectSet: Jt,
|
|
235
235
|
toCamelCase: Kt,
|
|
236
236
|
noop: Wt,
|
|
@@ -242,7 +242,7 @@ const Zt = (e) => {
|
|
|
242
242
|
toJSONObject: Zt,
|
|
243
243
|
isAsyncFn: Qt,
|
|
244
244
|
isThenable: en,
|
|
245
|
-
setImmediate:
|
|
245
|
+
setImmediate: Ve,
|
|
246
246
|
asap: tn,
|
|
247
247
|
isIterable: nn
|
|
248
248
|
};
|
|
@@ -270,7 +270,7 @@ a.inherits(E, Error, {
|
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
const
|
|
273
|
+
const ve = E.prototype, Je = {};
|
|
274
274
|
[
|
|
275
275
|
"ERR_BAD_OPTION_VALUE",
|
|
276
276
|
"ERR_BAD_OPTION",
|
|
@@ -289,9 +289,9 @@ const Ve = E.prototype, Je = {};
|
|
|
289
289
|
Je[e] = { value: e };
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperties(E, Je);
|
|
292
|
-
Object.defineProperty(
|
|
292
|
+
Object.defineProperty(ve, "isAxiosError", { value: !0 });
|
|
293
293
|
E.from = (e, t, n, r, s, o) => {
|
|
294
|
-
const i = Object.create(
|
|
294
|
+
const i = Object.create(ve);
|
|
295
295
|
return a.toFlatObject(e, i, function(f) {
|
|
296
296
|
return f !== Error.prototype;
|
|
297
297
|
}, (c) => c !== "isAxiosError"), E.call(i, e.message, t, n, r, s), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
@@ -1529,7 +1529,7 @@ a.forEach(["post", "put", "patch"], function(t) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
|
|
1531
1531
|
});
|
|
1532
|
-
let
|
|
1532
|
+
let Vn = class ct {
|
|
1533
1533
|
constructor(t) {
|
|
1534
1534
|
if (typeof t != "function")
|
|
1535
1535
|
throw new TypeError("executor must be a function.");
|
|
@@ -1602,7 +1602,7 @@ let vn = class ct {
|
|
|
1602
1602
|
};
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
|
-
function
|
|
1605
|
+
function vn(e) {
|
|
1606
1606
|
return function(n) {
|
|
1607
1607
|
return e.apply(null, n);
|
|
1608
1608
|
};
|
|
@@ -1687,7 +1687,7 @@ function ut(e) {
|
|
|
1687
1687
|
const y = ut(J);
|
|
1688
1688
|
y.Axios = H;
|
|
1689
1689
|
y.CanceledError = G;
|
|
1690
|
-
y.CancelToken =
|
|
1690
|
+
y.CancelToken = Vn;
|
|
1691
1691
|
y.isCancel = et;
|
|
1692
1692
|
y.VERSION = at;
|
|
1693
1693
|
y.toFormData = oe;
|
|
@@ -1696,7 +1696,7 @@ y.Cancel = y.CanceledError;
|
|
|
1696
1696
|
y.all = function(t) {
|
|
1697
1697
|
return Promise.all(t);
|
|
1698
1698
|
};
|
|
1699
|
-
y.spread =
|
|
1699
|
+
y.spread = vn;
|
|
1700
1700
|
y.isAxiosError = Jn;
|
|
1701
1701
|
y.mergeConfig = M;
|
|
1702
1702
|
y.AxiosHeaders = N;
|
|
@@ -1721,7 +1721,7 @@ const {
|
|
|
1721
1721
|
formToJSON: Ir,
|
|
1722
1722
|
getAdapter: Ur,
|
|
1723
1723
|
mergeConfig: xr
|
|
1724
|
-
} = y, Xn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Yn = (e) => (e.baseURL = dt(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Fe = (e, t, n) => {
|
|
1724
|
+
} = y, Xn = (e) => (e.baseURL = qe(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Yn = (e) => (e.baseURL = dt(), e.headers.Authorization = localStorage.getItem(I.TOKEN), e.headers["client-id"] = localStorage.getItem(I.CLIENT_ID), e.headers["Api-Version"] = "1.0", e.metadata = { startTime: /* @__PURE__ */ new Date() }, { ...e }), Fe = (e, t, n) => {
|
|
1725
1725
|
for (const r of e)
|
|
1726
1726
|
t ? r.rej(t) : r.res(n);
|
|
1727
1727
|
}, Zn = async (e) => new Promise((t, n) => {
|
|
@@ -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, j as p, a as c, r as T } from "./AccountService-
|
|
5
|
+
import { c as n, j as p, a as c, r as T } from "./AccountService-DHR8seWS.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-DHR8seWS.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 */
|
|
@@ -17,8 +17,8 @@ import "react-i18next";
|
|
|
17
17
|
import "../../configs/awayzClient.js";
|
|
18
18
|
import { useAwayzContext as bt } from "../../hooks/useAwayzContext.js";
|
|
19
19
|
import "../../context/AwayzContext.js";
|
|
20
|
-
import "../../services/noRetryInstance.js";
|
|
21
20
|
import { CurrencyService as xt } from "../../services/currency/CurrencyService.js";
|
|
21
|
+
import "../../services/noRetryInstance.js";
|
|
22
22
|
/* empty css */
|
|
23
23
|
// @__NO_SIDE_EFFECTS__
|
|
24
24
|
function Tt(e) {
|
|
@@ -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-DHR8seWS.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";
|
|
@@ -3,7 +3,7 @@ import "@tanstack/react-query";
|
|
|
3
3
|
import "../../../arrayExtensions-DlcBOj5a.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "../../../configs/awayzClient.js";
|
|
6
|
-
import "../../../AccountService-
|
|
6
|
+
import "../../../AccountService-DHR8seWS.js";
|
|
7
7
|
import '../../../assets/_styles4.css';import '../../../assets/_styles3.css';import '../../../assets/_styles2.css';import '../../../assets/_styles5.css';/* empty css */
|
|
8
8
|
import { Card as r } from "./Card.js";
|
|
9
9
|
import "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import { g as P } from "../../cashUtils-BDa0CVyi.js";
|
|
3
|
-
import { f as M, A as l, E as K } from "../../AccountService-
|
|
3
|
+
import { f as M, A as l, E as K } from "../../AccountService-DHR8seWS.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-DHR8seWS.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import { awayzClient as v } from "../../configs/awayzClient.js";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { EBookingEndpoints as i } from "../../configs/endpoints.js";
|
|
2
|
-
import { c } from "../../AccountService-1J5lfb5Q.js";
|
|
3
|
-
import "../../services/noRetryInstance.js";
|
|
4
2
|
import "../../arrayExtensions-DlcBOj5a.js";
|
|
5
3
|
import "react";
|
|
6
4
|
import "react/jsx-runtime";
|
|
@@ -14,7 +12,9 @@ import "react-i18next";
|
|
|
14
12
|
import "../../configs/awayzClient.js";
|
|
15
13
|
import "../../context/AwayzContext.js";
|
|
16
14
|
import { useBookingManagement as t } from "./useBookingManagement.js";
|
|
15
|
+
import { c } from "../../AccountService-DHR8seWS.js";
|
|
17
16
|
import { EBookingType as r } from "../../services/trips/TripService.types.js";
|
|
17
|
+
import "../../services/noRetryInstance.js";
|
|
18
18
|
import { renderHook as a, waitFor as n } from "../../tests/TestWrapper.js";
|
|
19
19
|
import { d as s, v as u, t as l, g as e } from "../../vi.ClIskdbk-k6t29WRA.js";
|
|
20
20
|
const d = { _id: "6811290ef16af25943018944", order_id: "ord_0000AvQk8IXqiCE2o20e00", user_id: "67d82b1c52c4a4dbe4e640c0", void_window_ends_at: null, documents: [{ passenger_ids: ["pas_0000AvQjcLZRvVQivKWRxi"], unique_identifier: "1", type: "electronic_ticket" }], synced_at: "2025-06-23T18:32:48Z", available_actions: ["cancel", "change", "update"], airline_initiated_changes: [], cancellation: null, tax_currency: "USD", base_currency: "USD", base_amount: "77.49", tax_amount: "13.94", total_currency: "USD", offer_id: "off_0000AvQjcLqSuF2bm6U2U7", booking_reference: "GHNRHO", created_at: "2025-06-23T18:31:58.211428Z", payment_status: { paid_at: "2025-06-23T18:31:58Z", price_guarantee_expires_at: null, payment_required_by: null, awaiting_payment: !1 }, live_mode: !1, total_amount: "91.43", slices: [{ destination_type: "airport", origin_type: "airport", fare_brand_name: "Basic", segments: [{ origin_terminal: "2", destination_terminal: "1", aircraft: { iata_code: "773", name: "Boeing 777-300", id: "arc_00009VMF8AhXSSRnQDI6HE" }, departing_at: "2025-07-30T22:27:00", arriving_at: "2025-07-31T00:24:00", operating_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, marketing_carrier: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, stops: [], operating_carrier_flight_number: "9596", marketing_carrier_flight_number: "9596", distance: "1034.9960998474376", passengers: [{ baggages: [{ quantity: 1, type: "checked" }, { quantity: 1, type: "carry_on" }], cabin_class_marketing_name: "Economy", passenger_id: "pas_0000AvQjcLZRvVQivKWRxi", seat: null, cabin_class: "economy" }], duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "seg_0000AvQjcLqSuF2bm6U2U5" }], conditions: { change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, duration: "PT1H57M", destination: { icao_code: "LFPG", iata_country_code: "FR", iata_city_code: "PAR", city_name: "Paris", iata_code: "CDG", latitude: 49.011244, longitude: 2.548962, city: { icao_code: null, iata_country_code: "FR", iata_city_code: "PAR", city_name: null, iata_code: "PAR", latitude: null, longitude: null, time_zone: null, type: "city", name: "Paris", id: "cit_par_fr" }, time_zone: "Europe/Paris", type: "airport", name: "Paris Charles de Gaulle Airport", id: "arp_cdg_fr" }, origin: { icao_code: "LOWW", iata_country_code: "AT", iata_city_code: "VIE", city_name: "Vienna", iata_code: "VIE", latitude: 48.113065, longitude: 16.568137, city: null, time_zone: "Europe/Vienna", type: "airport", name: "Vienna International Airport", id: "arp_vie_at" }, id: "sli_0000AvQjcLqSuF2bm6U2U6" }], passengers: [{ born_on: "2007-04-29", loyalty_programme_accounts: [], family_name: "Botha", given_name: "Adriaan", gender: "m", infant_passenger_id: null, phone_number: "+12345642342", user_id: null, email: "adriaan.botha@typedev.co.za", title: "mr", type: "adult", id: "pas_0000AvQjcLZRvVQivKWRxi" }], conditions: { refund_before_departure: { penalty_currency: null, penalty_amount: null, allowed: !1 }, change_before_departure: { penalty_currency: "GBP", penalty_amount: "10.00", allowed: !0 } }, cancelled_at: null, changes: [], content: "managed", services: [], users: ["icu_0000Asbm8q0FlWOhf0fDUm"], metadata: null, type: "instant", owner: { logo_symbol_url: "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/ZZ.svg", logo_lockup_url: null, conditions_of_carriage_url: "https://duffelairways.com/dummy-url/conditions-of-carriage", iata_code: "ZZ", name: "Duffel Airways", id: "arl_00009VME7D6ivUu8dn35WK" }, id: "ord_0000AvQk8IXqiCE2o20e00", status: "flight confirmed" }, m = "Flight booking found", g = !0, _ = { internalRequestId: "f6b54196-4d33-434d-9800-d9dc72a074ab" }, h = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
|
-
import { t as F } from "../AccountService-
|
|
2
|
+
import { t as F } from "../AccountService-DHR8seWS.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-DHR8seWS.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-DHR8seWS.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { T as t } from "../../TripsService-
|
|
5
|
+
import { T as t } from "../../TripsService-C2OJGPHg.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-C2OJGPHg.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-DHR8seWS.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-DHR8seWS.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-DHR8seWS.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { instance, clientInstance } from './instance';
|
|
2
|
-
export { clientNoRetryInstance } from './noRetryInstance';
|
|
3
|
-
export * from './currency/CurrencyService';
|
|
4
|
-
export * from './wallet/WalletService.types';
|
|
5
|
-
export * from './trips/TripService.types';
|
|
6
1
|
export * from './bookings/BookingService.types';
|
|
2
|
+
export * from './currency/CurrencyService';
|
|
3
|
+
export { clientInstance, gatewayInstance, instance } from './instance';
|
|
4
|
+
export { clientNoRetryInstance } from './noRetryInstance';
|
|
7
5
|
export * from './rewards/RewardsService';
|
|
6
|
+
export * from './trips/TripService.types';
|
|
7
|
+
export * from './wallet/WalletService.types';
|
package/dist/main.js
CHANGED
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { CashValue as r } from "./components/CashValue/CashValue.js";
|
|
2
|
-
import { EInvalidAmountDisplayOption as
|
|
3
|
-
import { Card as
|
|
2
|
+
import { EInvalidAmountDisplayOption as a, EToolTipPosition as n } from "./components/CashValue/CashValueTypes.js";
|
|
3
|
+
import { Card as m } from "./components/Wallet/Card/Card.js";
|
|
4
4
|
import { FlightBooking as f } from "./components/Bookings/FlightBooking/FlightBooking.js";
|
|
5
5
|
import { HotelBooking as s } from "./components/Bookings/HotelBooking/HotelBooking.js";
|
|
6
6
|
import { awayzClient as c } from "./configs/awayzClient.js";
|
|
7
|
-
import { defaultAwayzConfig as
|
|
7
|
+
import { defaultAwayzConfig as u } from "./configs/defaultAwayzConfig.js";
|
|
8
8
|
import { useAwayzContext as w } from "./hooks/useAwayzContext.js";
|
|
9
9
|
import { useBookingManagement as d } from "./hooks/useBookingManagement/useBookingManagement.js";
|
|
10
10
|
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
|
-
import { AwayzProvider as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { EAuthFlow as
|
|
20
|
-
import { getBaseUrl as
|
|
13
|
+
import { AwayzProvider as I } from "./providers/AwayzProvider.js";
|
|
14
|
+
import { CurrencyService as S } from "./services/currency/CurrencyService.js";
|
|
15
|
+
import { c as M, g as P, i as R } from "./AccountService-DHR8seWS.js";
|
|
16
|
+
import { clientNoRetryInstance as H } from "./services/noRetryInstance.js";
|
|
17
|
+
import { RewardsService as N } from "./services/rewards/RewardsService.js";
|
|
18
|
+
import { EBookingType as U } from "./services/trips/TripService.types.js";
|
|
19
|
+
import { EAuthFlow as W } from "./types/EAuthFlow.js";
|
|
20
|
+
import { getBaseUrl as j } from "./configs/baseUrl.js";
|
|
21
21
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
I as AwayzProvider,
|
|
23
|
+
m as Card,
|
|
24
24
|
r as CashValue,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
S as CurrencyService,
|
|
26
|
+
W as EAuthFlow,
|
|
27
|
+
U as EBookingType,
|
|
28
|
+
a as EInvalidAmountDisplayOption,
|
|
29
|
+
n as EToolTipPosition,
|
|
30
30
|
f as FlightBooking,
|
|
31
31
|
s as HotelBooking,
|
|
32
|
-
|
|
32
|
+
N as RewardsService,
|
|
33
33
|
c as awayzClient,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
M as clientInstance,
|
|
35
|
+
H as clientNoRetryInstance,
|
|
36
|
+
u as defaultAwayzConfig,
|
|
37
|
+
P as gatewayInstance,
|
|
38
|
+
j as getBaseUrl,
|
|
39
|
+
R as instance,
|
|
39
40
|
w as useAwayzContext,
|
|
40
41
|
d as useBookingManagement,
|
|
41
42
|
B as useSearchLimit,
|
|
@@ -10,7 +10,7 @@ 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-
|
|
13
|
+
import "../AccountService-DHR8seWS.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";
|
|
@@ -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-DHR8seWS.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-DHR8seWS.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,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
13
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { c as r, g as s, i as c } from "../AccountService-
|
|
4
|
+
import { c as r, g as s, i as c } from "../AccountService-DHR8seWS.js";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
export {
|
|
7
7
|
r as clientInstance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../arrayExtensions-DlcBOj5a.js";
|
|
2
2
|
import "../keys-BcBfU51M.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-
|
|
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";
|
|
5
5
|
import "../configs/baseUrl.js";
|
|
6
6
|
import "../configs/endpoints.js";
|
|
7
7
|
import "../configs/gatewayBaseUrl.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-DHR8seWS.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-DHR8seWS.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-DHR8seWS.js";
|
|
3
|
+
import { T } from "../../TripsService-C2OJGPHg.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-
|
|
5
|
+
import { c as e, a as c, g as A } from "../../AccountService-DHR8seWS.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { EWalletEndpoints as s } from "../../configs/endpoints.js";
|
|
8
8
|
class u {
|