@aprilium/tripsm_global-states 0.0.331 → 0.0.332

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/lib/index.d.ts CHANGED
@@ -29,6 +29,7 @@ import { State as reservationState } from "@aprilium/tripsm_reservation/lib/stat
29
29
  import { State as paymentHistorysState } from "@aprilium/tripsm_payment-history/lib/state";
30
30
  import { State as customerState } from "@aprilium/tripsm_customer/lib/state";
31
31
  import { State as tripTransportationState } from "@aprilium/tripsm_trip-transportation/lib/state";
32
+ import { State as roomState } from "@aprilium/tripsm_room/lib/state";
32
33
  import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
33
34
  import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
34
35
  import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
@@ -55,6 +56,7 @@ import ReservationSaga from "@aprilium/tripsm_reservation/lib/effects";
55
56
  import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
56
57
  import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
57
58
  import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
59
+ import RoomSaga from "@aprilium/tripsm_room/lib/effects";
58
60
  export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
59
61
  export declare const reducers: {
60
62
  passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
@@ -80,6 +82,7 @@ export declare const reducers: {
80
82
  relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
81
83
  payment: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment/lib/state").PaymentState>;
82
84
  reservation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation/lib/state").ReservationState>;
85
+ room: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_room/lib/state").RoomState>;
83
86
  paymentHistory: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment-history/lib/state").PaymentHistoryState>;
84
87
  customer: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_customer/lib/state").CustomerState>;
85
88
  tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
@@ -108,6 +111,7 @@ export declare const initialSagas: {
108
111
  relation: typeof RelationSaga;
109
112
  payment: typeof PaymentSaga;
110
113
  reservation: typeof ReservationSaga;
114
+ room: typeof RoomSaga;
111
115
  paymentHistory: typeof PaymentHistorySaga;
112
116
  customer: typeof CustomerSaga;
113
117
  tripTransportation: typeof TripTransportationSaga;
@@ -138,11 +142,12 @@ export type States = {
138
142
  paymentHistory: paymentHistorysState;
139
143
  customer: customerState;
140
144
  reservation: reservationState;
145
+ room: roomState;
141
146
  tripTransportation: tripTransportationState;
142
147
  };
143
- export type StateName = "guest" | "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "passengerHotel" | "tripHotel" | "hotel" | "ticket" | "passenger-group" | "luggage" | "luggage-tracking" | "identity-type" | "relation" | "trip" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation";
148
+ export type StateName = "room" | "guest" | "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "passengerHotel" | "tripHotel" | "hotel" | "ticket" | "passenger-group" | "luggage" | "luggage-tracking" | "identity-type" | "relation" | "trip" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation";
144
149
  export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
145
- export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | typeof guestSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof TripSaga | typeof PaymentSaga | typeof ReservationSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga)[];
150
+ export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | typeof guestSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof TripSaga | typeof PaymentSaga | typeof ReservationSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof RoomSaga)[];
146
151
  export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
147
152
  waitForRehydrate?: boolean): void;
148
153
  declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
package/lib/index.js CHANGED
@@ -83,6 +83,7 @@ var lib_24 = require("@aprilium/tripsm_reservation/lib");
83
83
  var lib_25 = require("@aprilium/tripsm_payment-history/lib");
84
84
  var lib_26 = require("@aprilium/tripsm_customer/lib");
85
85
  var lib_27 = require("@aprilium/tripsm_trip-transportation/lib");
86
+ var lib_28 = require("@aprilium/tripsm_room/lib");
86
87
  var state_1 = require("@aprilium/tripsm_visa/lib/state");
87
88
  var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
88
89
  var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
@@ -109,6 +110,7 @@ var state_23 = require("@aprilium/tripsm_reservation/lib/state");
109
110
  var state_24 = require("@aprilium/tripsm_payment-history/lib/state");
110
111
  var state_25 = require("@aprilium/tripsm_customer/lib/state");
111
112
  var state_26 = require("@aprilium/tripsm_trip-transportation/lib/state");
113
+ var state_27 = require("@aprilium/tripsm_room/lib/state");
112
114
  //import sagas
113
115
  var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
114
116
  var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
@@ -136,6 +138,7 @@ var effects_24 = __importDefault(require("@aprilium/tripsm_reservation/lib/effec
136
138
  var effects_25 = __importDefault(require("@aprilium/tripsm_payment-history/lib/effects"));
137
139
  var effects_26 = __importDefault(require("@aprilium/tripsm_customer/lib/effects"));
138
140
  var effects_27 = __importDefault(require("@aprilium/tripsm_trip-transportation/lib/effects"));
141
+ var effects_28 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
139
142
  exports.sagaMiddleware = (0, redux_saga_1.default)();
140
143
  exports.reducers = {
141
144
  passengersState: state_21.passengerReducerFunction,
@@ -161,6 +164,7 @@ exports.reducers = {
161
164
  relation: state_19.RelationReducerFunction,
162
165
  payment: state_22.PaymentReducerFunction,
163
166
  reservation: state_23.ReservationReducerFunction,
167
+ room: state_27.RoomReducerFunction,
164
168
  paymentHistory: state_24.PaymentHistoryReducerFunction,
165
169
  customer: state_25.CustomerReducerFunction,
166
170
  tripTransportation: state_26.TripTransportationReducerFunction,
@@ -189,6 +193,7 @@ exports.initialSagas = {
189
193
  relation: effects_21.default,
190
194
  payment: effects_23.default,
191
195
  reservation: effects_24.default,
196
+ room: effects_28.default,
192
197
  paymentHistory: effects_25.default,
193
198
  customer: effects_26.default,
194
199
  tripTransportation: effects_27.default,
@@ -211,6 +216,10 @@ function setUrlConfig(coreApi, debugMode) {
211
216
  CORE_BASE_URL: coreApi,
212
217
  DEBUG_MODE: debugMode,
213
218
  });
219
+ lib_28.urlsConfig.setURls({
220
+ CORE_BASE_URL: coreApi,
221
+ DEBUG_MODE: debugMode,
222
+ });
214
223
  lib_4.urlsConfig.setURls({
215
224
  CORE_BASE_URL: coreApi,
216
225
  DEBUG_MODE: debugMode,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprilium/tripsm_global-states",
3
- "version": "0.0.331",
3
+ "version": "0.0.332",
4
4
  "description": "global states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@aprilium/tripsm_passenger": "^0.0.80",
16
+ "@aprilium/tripsm_room": "^0.0.1",
16
17
  "@aprilium/tripsm_common": "^0.0.7",
17
18
  "@aprilium/tripsm_constants": "^0.0.42",
18
19
  "@aprilium/tripsm_trip": "^0.0.28",