@odynn/awayz-core 0.3.4 → 0.3.5

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.
@@ -1,8 +1,8 @@
1
1
  var _ = Object.defineProperty;
2
- var g = (a, e, s) => e in a ? _(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
3
- var t = (a, e, s) => g(a, typeof e != "symbol" ? e + "" : e, s);
2
+ var T = (a, e, s) => e in a ? _(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
3
+ var t = (a, e, s) => T(a, typeof e != "symbol" ? e + "" : e, s);
4
4
  import { c as n, j as u, b as o, r as y } from "./AccountService-D_6U8vP6.js";
5
- import { EBookingType as T } from "./services/trips/TripService.types.js";
5
+ import { EBookingType as g } from "./services/trips/TripService.types.js";
6
6
  import { EMyTripsEndpoints as i } from "./configs/endpoints.js";
7
7
  import { h as c } from "./arrayExtensions-DlcBOj5a.js";
8
8
  import "react";
@@ -12,7 +12,11 @@ class f {
12
12
  t(this, "createTrip", async (e) => {
13
13
  const { data: s } = await n.post(
14
14
  i.TRIPS,
15
- u(e)
15
+ u({
16
+ ...e,
17
+ hotel_bookings: [],
18
+ flight_bookings: []
19
+ })
16
20
  );
17
21
  return s;
18
22
  });
@@ -80,7 +84,7 @@ const m = (a) => a.map(
80
84
  reference: e.booking_reference,
81
85
  startDate: c(e.departure_date),
82
86
  endDate: c(e.arrival_date),
83
- bookingType: T.FLIGHT,
87
+ bookingType: g.FLIGHT,
84
88
  airlines: e.slices.map((s) => ({
85
89
  logo: b + ".svg",
86
90
  name: s.carriers.operating[0]
@@ -105,7 +109,7 @@ const m = (a) => a.map(
105
109
  reference: e.reference,
106
110
  startDate: c(e.start_date),
107
111
  endDate: c(e.end_date),
108
- bookingType: T.HOTEL,
112
+ bookingType: g.HOTEL,
109
113
  name: e.rooms[0].name,
110
114
  image: e.images[0],
111
115
  guests: e.number_of_guests,
@@ -113,8 +117,8 @@ const m = (a) => a.map(
113
117
  rooms: e.rooms.length,
114
118
  bookingId: e.booking_id
115
119
  })
116
- ), k = new f();
120
+ ), E = new f();
117
121
  export {
118
122
  b as D,
119
- k as T
123
+ E as T
120
124
  };
@@ -2,7 +2,7 @@ import { useQuery as d, useMutation as p } from "@tanstack/react-query";
2
2
  import { h as c } from "../../arrayExtensions-DlcBOj5a.js";
3
3
  import { E as e } from "../../AccountService-D_6U8vP6.js";
4
4
  import "react";
5
- import { T as o } from "../../TripsService-BGx--gfb.js";
5
+ import { T as o } from "../../TripsService-w7U0Clec.js";
6
6
  import "react/jsx-runtime";
7
7
  import "../../context/AwayzContext.js";
8
8
  import { awayzClient as t } from "../../configs/awayzClient.js";
@@ -4,7 +4,7 @@ import { useTripManagement as n } from "./useTripManagement.js";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "../../context/AwayzContext.js";
7
- import { D as f } from "../../TripsService-BGx--gfb.js";
7
+ import { D as f } from "../../TripsService-w7U0Clec.js";
8
8
  import { c as d } from "../../AccountService-D_6U8vP6.js";
9
9
  import { EMyTripsEndpoints as c } from "../../configs/endpoints.js";
10
10
  import "../../configs/awayzClient.js";
@@ -2,7 +2,7 @@ import "../../AccountService-D_6U8vP6.js";
2
2
  import "./TripService.types.js";
3
3
  import "../../configs/endpoints.js";
4
4
  import "../../arrayExtensions-DlcBOj5a.js";
5
- import { T as s } from "../../TripsService-BGx--gfb.js";
5
+ import { T as s } from "../../TripsService-w7U0Clec.js";
6
6
  import "react";
7
7
  export {
8
8
  s as TripsService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odynn/awayz-core",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"