@aprilium/tripsm_global-states 0.0.534 → 0.0.536
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 +7 -2
- package/lib/index.js +9 -1
- package/package.json +5 -5
package/lib/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { State as packHotelState } from "@aprilium/tripsm_pack-hotel/lib/state";
|
|
|
39
39
|
import { State as packTransportationState } from "@aprilium/tripsm_pack-transportation/lib/state";
|
|
40
40
|
import { State as passengerLocationState } from "@aprilium/tripsm_passengers-location/lib/state";
|
|
41
41
|
import { State as reservationRequestState } from "@aprilium/tripsm_reservation-request/lib/state";
|
|
42
|
+
import { State as tripfavorisState } from "@aprilium/tripsm_trip-favoris/lib/state";
|
|
42
43
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
43
44
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
44
45
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
@@ -75,6 +76,7 @@ import PackHotelSaga from "@aprilium/tripsm_pack-hotel/lib/effects";
|
|
|
75
76
|
import PackTransportationSaga from "@aprilium/tripsm_pack-transportation/lib/effects";
|
|
76
77
|
import PassengerLocationSaga from "@aprilium/tripsm_passengers-location/lib/effects";
|
|
77
78
|
import ReservationRequestSaga from "@aprilium/tripsm_reservation-request/lib/effects";
|
|
79
|
+
import tripFavorisSaga from "@aprilium/tripsm_trip-favoris/lib/effects";
|
|
78
80
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
79
81
|
export declare const reducers: {
|
|
80
82
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -113,6 +115,7 @@ export declare const reducers: {
|
|
|
113
115
|
packTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-transportation/lib/state").PackTransportationState>;
|
|
114
116
|
passengerLocation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passengers-location/lib/state").PassengerLocationState>;
|
|
115
117
|
reservationRequest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation-request/lib/state").ReservationRequestState>;
|
|
118
|
+
tripfavoris: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-favoris/lib/state").TripFavorisState>;
|
|
116
119
|
};
|
|
117
120
|
export declare const initialSagas: {
|
|
118
121
|
passenger: typeof passengerSaga;
|
|
@@ -151,6 +154,7 @@ export declare const initialSagas: {
|
|
|
151
154
|
packTransportation: typeof PackTransportationSaga;
|
|
152
155
|
passengerLocation: typeof PassengerLocationSaga;
|
|
153
156
|
reservationRequest: typeof ReservationRequestSaga;
|
|
157
|
+
tripFavoris: typeof tripFavorisSaga;
|
|
154
158
|
};
|
|
155
159
|
export type States = {
|
|
156
160
|
passengersState: passengersState;
|
|
@@ -189,10 +193,11 @@ export type States = {
|
|
|
189
193
|
packTransportation: packTransportationState;
|
|
190
194
|
passengerLocation: passengerLocationState;
|
|
191
195
|
reservationRequest: reservationRequestState;
|
|
196
|
+
tripfavoris: tripfavorisState;
|
|
192
197
|
};
|
|
193
|
-
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" | "trip-picture" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation" | "passenger-pathology" | "packOption" | "pack-hotel" | "pack-transportation" | "passenger-location";
|
|
198
|
+
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" | "trip-picture" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation" | "passenger-pathology" | "packOption" | "pack-hotel" | "pack-transportation" | "passenger-location" | "reservation-request" | "trip-favoris";
|
|
194
199
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
195
|
-
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof TripSaga | typeof TripPictureSaga | 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 PaymentSaga | typeof ReservationSaga | typeof RoomSaga | typeof PackSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof PassengerPathologySaga | typeof packOptionSaga | typeof PackHotelSaga | typeof PackTransportationSaga | typeof PassengerLocationSaga | typeof ReservationRequestSaga)[];
|
|
200
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof TripSaga | typeof TripPictureSaga | 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 PaymentSaga | typeof ReservationSaga | typeof RoomSaga | typeof PackSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof PassengerPathologySaga | typeof packOptionSaga | typeof PackHotelSaga | typeof PackTransportationSaga | typeof PassengerLocationSaga | typeof ReservationRequestSaga | typeof tripFavorisSaga)[];
|
|
196
201
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
197
202
|
waitForRehydrate?: boolean): void;
|
|
198
203
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -93,6 +93,7 @@ var lib_34 = require("@aprilium/tripsm_pack-hotel/lib");
|
|
|
93
93
|
var lib_35 = require("@aprilium/tripsm_pack-transportation/lib");
|
|
94
94
|
var lib_36 = require("@aprilium/tripsm_passengers-location/lib");
|
|
95
95
|
var lib_37 = require("@aprilium/tripsm_reservation-request/lib");
|
|
96
|
+
var lib_38 = require("@aprilium/tripsm_trip-favoris/lib");
|
|
96
97
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
97
98
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
98
99
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -129,6 +130,7 @@ var state_33 = require("@aprilium/tripsm_pack-hotel/lib/state");
|
|
|
129
130
|
var state_34 = require("@aprilium/tripsm_pack-transportation/lib/state");
|
|
130
131
|
var state_35 = require("@aprilium/tripsm_passengers-location/lib/state");
|
|
131
132
|
var state_36 = require("@aprilium/tripsm_reservation-request/lib/state");
|
|
133
|
+
var state_37 = require("@aprilium/tripsm_trip-favoris/lib/state");
|
|
132
134
|
//import sagas
|
|
133
135
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
134
136
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -166,6 +168,7 @@ var effects_34 = __importDefault(require("@aprilium/tripsm_pack-hotel/lib/effect
|
|
|
166
168
|
var effects_35 = __importDefault(require("@aprilium/tripsm_pack-transportation/lib/effects"));
|
|
167
169
|
var effects_36 = __importDefault(require("@aprilium/tripsm_passengers-location/lib/effects"));
|
|
168
170
|
var effects_37 = __importDefault(require("@aprilium/tripsm_reservation-request/lib/effects"));
|
|
171
|
+
var effects_38 = __importDefault(require("@aprilium/tripsm_trip-favoris/lib/effects"));
|
|
169
172
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
170
173
|
exports.reducers = {
|
|
171
174
|
passengersState: state_23.passengerReducerFunction,
|
|
@@ -204,6 +207,7 @@ exports.reducers = {
|
|
|
204
207
|
packTransportation: state_34.PackTransportationReducerFunction,
|
|
205
208
|
passengerLocation: state_35.PassengerLocationReducerFunction,
|
|
206
209
|
reservationRequest: state_36.ReservationRequestReducerFunction,
|
|
210
|
+
tripfavoris: state_37.TripFavorisReducerFunction,
|
|
207
211
|
};
|
|
208
212
|
exports.initialSagas = {
|
|
209
213
|
passenger: effects_2.default,
|
|
@@ -242,8 +246,8 @@ exports.initialSagas = {
|
|
|
242
246
|
packTransportation: effects_35.default,
|
|
243
247
|
passengerLocation: effects_36.default,
|
|
244
248
|
reservationRequest: effects_37.default,
|
|
249
|
+
tripFavoris: effects_38.default,
|
|
245
250
|
};
|
|
246
|
-
"reservation-request";
|
|
247
251
|
function setUrlConfig(coreApi, debugMode) {
|
|
248
252
|
if (debugMode === void 0) { debugMode = false; }
|
|
249
253
|
lib_1.urlsConfig.setURls({
|
|
@@ -394,6 +398,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
394
398
|
CORE_BASE_URL: coreApi,
|
|
395
399
|
DEBUG_MODE: debugMode,
|
|
396
400
|
});
|
|
401
|
+
lib_38.urlsConfig.setURls({
|
|
402
|
+
CORE_BASE_URL: coreApi,
|
|
403
|
+
DEBUG_MODE: debugMode,
|
|
404
|
+
});
|
|
397
405
|
}
|
|
398
406
|
exports.setUrlConfig = setUrlConfig;
|
|
399
407
|
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.
|
|
3
|
+
"version": "0.0.536",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"@aprilium/tripsm_guest": "^0.0.11",
|
|
19
19
|
"@aprilium/tripsm_hotel": "^0.0.11",
|
|
20
20
|
"@aprilium/tripsm_identity": "^0.0.27",
|
|
21
|
-
|
|
21
|
+
"@aprilium/tripsm_trip": "^0.0.46",
|
|
22
|
+
"@aprilium/tripsm_trip-group": "^0.0.24",
|
|
22
23
|
"@aprilium/tripsm_identity-type": "^0.0.10",
|
|
23
24
|
"@aprilium/tripsm_luggage": "^0.0.14",
|
|
24
25
|
"@aprilium/tripsm_luggage-tracking": "^0.0.10",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"@aprilium/tripsm_pack-hotel": "^0.0.8",
|
|
27
28
|
"@aprilium/tripsm_pack-options": "^0.0.7",
|
|
28
29
|
"@aprilium/tripsm_pack-transportation": "^0.0.3",
|
|
29
|
-
"@aprilium/tripsm_passenger": "^0.0.
|
|
30
|
+
"@aprilium/tripsm_passenger": "^0.0.109",
|
|
30
31
|
"@aprilium/tripsm_passenger-group": "^0.0.16",
|
|
31
32
|
"@aprilium/tripsm_passenger-hotel": "^0.0.16",
|
|
32
33
|
"@aprilium/tripsm_passenger-pack": "^0.0.13",
|
|
@@ -38,8 +39,6 @@
|
|
|
38
39
|
"@aprilium/tripsm_reservation": "^0.0.12",
|
|
39
40
|
"@aprilium/tripsm_room": "^0.0.8",
|
|
40
41
|
"@aprilium/tripsm_ticket": "^0.0.26",
|
|
41
|
-
"@aprilium/tripsm_trip": "^0.0.46",
|
|
42
|
-
"@aprilium/tripsm_trip-group": "^0.0.24",
|
|
43
42
|
"@aprilium/tripsm_trip-hotel": "^0.0.18",
|
|
44
43
|
"@aprilium/tripsm_trip-picture": "^0.0.9",
|
|
45
44
|
"@aprilium/tripsm_trip-transportation": "^0.0.13",
|
|
@@ -50,6 +49,7 @@
|
|
|
50
49
|
"@aprilium/tripsm_visa-status": "^0.0.9",
|
|
51
50
|
"@aprilium/tripsm_visa-type": "^0.0.7",
|
|
52
51
|
"@aprilium/tripsm_reservation-request": "^0.0.2",
|
|
52
|
+
"@aprilium/tripsm_trip-favoris": "^0.0.2",
|
|
53
53
|
"@types/react": "^17.0.0",
|
|
54
54
|
"axios": "^0.21.1",
|
|
55
55
|
"dotenv": "^16.4.5",
|