@aprilium/tripsm_global-states 0.0.397 → 0.0.399

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
@@ -34,6 +34,8 @@ import { State as roomState } from "@aprilium/tripsm_room/lib/state";
34
34
  import { State as packState } from "@aprilium/tripsm_pack/lib/state";
35
35
  import { State as passengerPathologyState } from "@aprilium/tripsm_passenger-pathology/lib/state";
36
36
  import { State as packOptionState } from "@aprilium/tripsm_pack-options/lib/state";
37
+ import { State as packHotelState } from "@aprilium/tripsm_pack-hotel/lib/state";
38
+ import { State as packTransportationState } from "@aprilium/tripsm_pack-transportation/lib/state";
37
39
  import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
38
40
  import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
39
41
  import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
@@ -65,6 +67,8 @@ import RoomSaga from "@aprilium/tripsm_room/lib/effects";
65
67
  import PackSaga from "@aprilium/tripsm_pack/lib/effects";
66
68
  import PassengerPathologySaga from "@aprilium/tripsm_passenger-pathology/lib/effects";
67
69
  import packOptionSaga from "@aprilium/tripsm_pack-options/lib/effects";
70
+ import PackHotelSaga from "@aprilium/tripsm_pack-hotel/lib/effects";
71
+ import PackTransportationSaga from "@aprilium/tripsm_pack-transportation/lib/effects";
68
72
  export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
69
73
  export declare const reducers: {
70
74
  passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
@@ -98,6 +102,8 @@ export declare const reducers: {
98
102
  tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
99
103
  passengerPathology: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pathology/lib/state").PassengerPathologyState>;
100
104
  packOption: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-options/lib/state").PackOptionState>;
105
+ packHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-hotel/lib/state").PackHotelState>;
106
+ packTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-transportation/lib/state").PackTransportationState>;
101
107
  };
102
108
  export declare const initialSagas: {
103
109
  passenger: typeof passengerSaga;
@@ -131,6 +137,8 @@ export declare const initialSagas: {
131
137
  tripTransportation: typeof TripTransportationSaga;
132
138
  passengerPathology: typeof PassengerPathologySaga;
133
139
  packOption: typeof packOptionSaga;
140
+ packHotel: typeof PackHotelSaga;
141
+ packTransportation: typeof PackTransportationSaga;
134
142
  };
135
143
  export type States = {
136
144
  passengersState: passengersState;
@@ -164,10 +172,12 @@ export type States = {
164
172
  tripTransportation: tripTransportationState;
165
173
  passengerPathology: passengerPathologyState;
166
174
  packOption: packOptionState;
175
+ packHotel: packHotelState;
176
+ packTransportation: packTransportationState;
167
177
  };
168
- export type StateName = "passenger-pack" | "room" | "pack" | "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" | "passenger-pathology" | "packOption";
178
+ export type StateName = "passenger-pack" | "room" | "pack" | "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" | "passenger-pathology" | "packOption" | "pack-hotel" | "pack-transportation";
169
179
  export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
170
- 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 PassengerPackSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof TripSaga | typeof PaymentSaga | typeof ReservationSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof RoomSaga | typeof PackSaga | typeof PassengerPathologySaga | typeof packOptionSaga)[];
180
+ 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 PassengerPackSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof TripSaga | typeof PaymentSaga | typeof ReservationSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof RoomSaga | typeof PackSaga | typeof PassengerPathologySaga | typeof packOptionSaga | typeof PackHotelSaga | typeof PackTransportationSaga)[];
171
181
  export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
172
182
  waitForRehydrate?: boolean): void;
173
183
  declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
package/lib/index.js CHANGED
@@ -88,6 +88,8 @@ var lib_29 = require("@aprilium/tripsm_room/lib");
88
88
  var lib_30 = require("@aprilium/tripsm_pack/lib");
89
89
  var lib_31 = require("@aprilium/tripsm_passenger-pathology/lib");
90
90
  var lib_32 = require("@aprilium/tripsm_pack-options/lib");
91
+ var lib_33 = require("@aprilium/tripsm_pack-hotel/lib");
92
+ var lib_34 = require("@aprilium/tripsm_pack-transportation/lib");
91
93
  var state_1 = require("@aprilium/tripsm_visa/lib/state");
92
94
  var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
93
95
  var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
@@ -119,6 +121,8 @@ var state_28 = require("@aprilium/tripsm_room/lib/state");
119
121
  var state_29 = require("@aprilium/tripsm_pack/lib/state");
120
122
  var state_30 = require("@aprilium/tripsm_passenger-pathology/lib/state");
121
123
  var state_31 = require("@aprilium/tripsm_pack-options/lib/state");
124
+ var state_32 = require("@aprilium/tripsm_pack-hotel/lib/state");
125
+ var state_33 = require("@aprilium/tripsm_pack-transportation/lib/state");
122
126
  //import sagas
123
127
  var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
124
128
  var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
@@ -151,6 +155,8 @@ var effects_29 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
151
155
  var effects_30 = __importDefault(require("@aprilium/tripsm_pack/lib/effects"));
152
156
  var effects_31 = __importDefault(require("@aprilium/tripsm_passenger-pathology/lib/effects"));
153
157
  var effects_32 = __importDefault(require("@aprilium/tripsm_pack-options/lib/effects"));
158
+ var effects_33 = __importDefault(require("@aprilium/tripsm_pack-hotel/lib/effects"));
159
+ var effects_34 = __importDefault(require("@aprilium/tripsm_pack-transportation/lib/effects"));
154
160
  exports.sagaMiddleware = (0, redux_saga_1.default)();
155
161
  exports.reducers = {
156
162
  passengersState: state_22.passengerReducerFunction,
@@ -184,6 +190,8 @@ exports.reducers = {
184
190
  tripTransportation: state_27.TripTransportationReducerFunction,
185
191
  passengerPathology: state_30.PassengerPathologyReducerFunction,
186
192
  packOption: state_31.PackOptionReducerFunction,
193
+ packHotel: state_32.PackHotelReducerFunction,
194
+ packTransportation: state_33.PackTransportationReducerFunction,
187
195
  };
188
196
  exports.initialSagas = {
189
197
  passenger: effects_2.default,
@@ -217,6 +225,8 @@ exports.initialSagas = {
217
225
  tripTransportation: effects_28.default,
218
226
  passengerPathology: effects_31.default,
219
227
  packOption: effects_32.default,
228
+ packHotel: effects_33.default,
229
+ packTransportation: effects_34.default,
220
230
  };
221
231
  function setUrlConfig(coreApi, debugMode) {
222
232
  if (debugMode === void 0) { debugMode = false; }
@@ -348,6 +358,14 @@ function setUrlConfig(coreApi, debugMode) {
348
358
  CORE_BASE_URL: coreApi,
349
359
  DEBUG_MODE: debugMode,
350
360
  });
361
+ lib_33.urlsConfig.setURls({
362
+ CORE_BASE_URL: coreApi,
363
+ DEBUG_MODE: debugMode,
364
+ });
365
+ lib_34.urlsConfig.setURls({
366
+ CORE_BASE_URL: coreApi,
367
+ DEBUG_MODE: debugMode,
368
+ });
351
369
  }
352
370
  exports.setUrlConfig = setUrlConfig;
353
371
  exports.sagas = Object.keys(exports.initialSagas).map(function (key) { return exports.initialSagas[key]; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprilium/tripsm_global-states",
3
- "version": "0.0.397",
3
+ "version": "0.0.399",
4
4
  "description": "global states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@aprilium/tripsm_common": "^0.0.12",
16
- "@aprilium/tripsm_constants": "^0.0.56",
16
+ "@aprilium/tripsm_constants": "^0.0.58",
17
17
  "@aprilium/tripsm_customer": "^0.0.2",
18
18
  "@aprilium/tripsm_guest": "^0.0.1",
19
19
  "@aprilium/tripsm_hotel": "^0.0.10",
@@ -33,17 +33,19 @@
33
33
  "@aprilium/tripsm_reservation": "^0.0.12",
34
34
  "@aprilium/tripsm_room": "^0.0.8",
35
35
  "@aprilium/tripsm_ticket": "^0.0.26",
36
- "@aprilium/tripsm_trip-hotel": "^0.0.16",
37
- "@aprilium/tripsm_trip-transportation": "^0.0.5",
36
+ "@aprilium/tripsm_trip-hotel": "^0.0.17",
37
+ "@aprilium/tripsm_trip-transportation": "^0.0.6",
38
38
  "@aprilium/tripsm_user": "^0.0.24",
39
39
  "@aprilium/tripsm_visa": "^0.0.12",
40
40
  "@aprilium/tripsm_visa-category": "^0.0.6",
41
41
  "@aprilium/tripsm_visa-request": "^0.0.12",
42
42
  "@aprilium/tripsm_visa-status": "^0.0.8",
43
43
  "@aprilium/tripsm_visa-type": "^0.0.6",
44
- "@aprilium/tripsm_pack": "^0.0.11",
44
+ "@aprilium/tripsm_pack": "^0.0.12",
45
45
  "@aprilium/tripsm_passenger-pathology": "^0.0.6",
46
46
  "@aprilium/tripsm_pack-options": "^0.0.2",
47
+ "@aprilium/tripsm_pack-hotel": "^0.0.2",
48
+ "@aprilium/tripsm_pack-transportation": "^0.0.1",
47
49
 
48
50
 
49
51
  "@types/react": "^17.0.0",