@aprilium/tripsm_global-states 0.0.608 → 0.0.609
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 +6 -1
- package/lib/index.js +10 -0
- package/package.json +24 -25
package/lib/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { State as packTransportationState } from "@aprilium/tripsm_pack-transpor
|
|
|
40
40
|
import { State as passengerLocationState } from "@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/state";
|
|
41
41
|
import { State as reservationRequestState } from "@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/state";
|
|
42
42
|
import { State as tripfavorisState } from "@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/state";
|
|
43
|
+
import { State as packFavorisState } from "@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/state";
|
|
43
44
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/packages/passenger/src/effects";
|
|
44
45
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/packages/visa-type/src/effects";
|
|
45
46
|
import constantsSaga from "@aprilium/tripsm_constants/lib/packages/constant/src/effects";
|
|
@@ -77,6 +78,7 @@ import PackTransportationSaga from "@aprilium/tripsm_pack-transportation/lib/pac
|
|
|
77
78
|
import PassengerLocationSaga from "@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/effects";
|
|
78
79
|
import ReservationRequestSaga from "@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/effects";
|
|
79
80
|
import tripFavorisSaga from "@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/effects";
|
|
81
|
+
import PackFavorisSaga from "@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/effects";
|
|
80
82
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
81
83
|
export declare const reducers: {
|
|
82
84
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/packages/passenger/src/state").PassengerState>;
|
|
@@ -116,6 +118,7 @@ export declare const reducers: {
|
|
|
116
118
|
passengerLocation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/state").PassengerLocationState>;
|
|
117
119
|
reservationRequest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/state").ReservationRequestState>;
|
|
118
120
|
tripfavoris: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/state").TripFavorisState>;
|
|
121
|
+
packfavoris: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/state").PackFavorisState>;
|
|
119
122
|
};
|
|
120
123
|
export declare const initialSagas: {
|
|
121
124
|
passenger: typeof passengerSaga;
|
|
@@ -155,6 +158,7 @@ export declare const initialSagas: {
|
|
|
155
158
|
passengerLocation: typeof PassengerLocationSaga;
|
|
156
159
|
reservationRequest: typeof ReservationRequestSaga;
|
|
157
160
|
tripFavoris: typeof tripFavorisSaga;
|
|
161
|
+
packFavoris: typeof PackFavorisSaga;
|
|
158
162
|
};
|
|
159
163
|
export type States = {
|
|
160
164
|
passengersState: passengersState;
|
|
@@ -194,10 +198,11 @@ export type States = {
|
|
|
194
198
|
passengerLocation: passengerLocationState;
|
|
195
199
|
reservationRequest: reservationRequestState;
|
|
196
200
|
tripfavoris: tripfavorisState;
|
|
201
|
+
packFavoris: packFavorisState;
|
|
197
202
|
};
|
|
198
203
|
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";
|
|
199
204
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
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)[];
|
|
205
|
+
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 | typeof PackFavorisSaga)[];
|
|
201
206
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
202
207
|
waitForRehydrate?: boolean): void;
|
|
203
208
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -94,6 +94,7 @@ var index_35 = require("@aprilium/tripsm_pack-transportation/lib/packages/pack-t
|
|
|
94
94
|
var index_36 = require("@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/index");
|
|
95
95
|
var index_37 = require("@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/index");
|
|
96
96
|
var index_38 = require("@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/index");
|
|
97
|
+
var index_39 = require("@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/index");
|
|
97
98
|
var state_1 = require("@aprilium/tripsm_visa/lib/packages/visa/src/state");
|
|
98
99
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/packages/visa-request/src/state");
|
|
99
100
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/packages/visa-category/src/state");
|
|
@@ -131,6 +132,7 @@ var state_34 = require("@aprilium/tripsm_pack-transportation/lib/packages/pack-t
|
|
|
131
132
|
var state_35 = require("@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/state");
|
|
132
133
|
var state_36 = require("@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/state");
|
|
133
134
|
var state_37 = require("@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/state");
|
|
135
|
+
var state_38 = require("@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/state");
|
|
134
136
|
//import sagas
|
|
135
137
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/packages/passenger/src/effects"));
|
|
136
138
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/packages/visa-type/src/effects"));
|
|
@@ -169,6 +171,7 @@ var effects_35 = __importDefault(require("@aprilium/tripsm_pack-transportation/l
|
|
|
169
171
|
var effects_36 = __importDefault(require("@aprilium/tripsm_passengers-location/lib/packages/passengers-location/src/effects"));
|
|
170
172
|
var effects_37 = __importDefault(require("@aprilium/tripsm_reservation-request/lib/packages/reservation-request/src/effects"));
|
|
171
173
|
var effects_38 = __importDefault(require("@aprilium/tripsm_trip-favoris/lib/packages/trip-favoris/src/effects"));
|
|
174
|
+
var effects_39 = __importDefault(require("@aprilium/tripsm_pack-favoris/lib/packages/pack-favoris/src/effects"));
|
|
172
175
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
173
176
|
exports.reducers = {
|
|
174
177
|
passengersState: state_23.passengerReducerFunction,
|
|
@@ -208,6 +211,7 @@ exports.reducers = {
|
|
|
208
211
|
passengerLocation: state_35.PassengerLocationReducerFunction,
|
|
209
212
|
reservationRequest: state_36.ReservationRequestReducerFunction,
|
|
210
213
|
tripfavoris: state_37.TripFavorisReducerFunction,
|
|
214
|
+
packfavoris: state_38.PackFavorisReducerFunction,
|
|
211
215
|
};
|
|
212
216
|
exports.initialSagas = {
|
|
213
217
|
passenger: effects_2.default,
|
|
@@ -247,7 +251,9 @@ exports.initialSagas = {
|
|
|
247
251
|
passengerLocation: effects_36.default,
|
|
248
252
|
reservationRequest: effects_37.default,
|
|
249
253
|
tripFavoris: effects_38.default,
|
|
254
|
+
packFavoris: effects_39.default
|
|
250
255
|
};
|
|
256
|
+
"pack-favoris";
|
|
251
257
|
function setUrlConfig(coreApi, debugMode) {
|
|
252
258
|
if (debugMode === void 0) { debugMode = false; }
|
|
253
259
|
index_1.urlsConfig.setURls({
|
|
@@ -402,6 +408,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
402
408
|
CORE_BASE_URL: coreApi,
|
|
403
409
|
DEBUG_MODE: debugMode,
|
|
404
410
|
});
|
|
411
|
+
index_39.urlsConfig.setURls({
|
|
412
|
+
CORE_BASE_URL: coreApi,
|
|
413
|
+
DEBUG_MODE: debugMode,
|
|
414
|
+
});
|
|
405
415
|
}
|
|
406
416
|
exports.setUrlConfig = setUrlConfig;
|
|
407
417
|
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.609",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -21,36 +21,35 @@
|
|
|
21
21
|
"@aprilium/tripsm_identity-type": "^0.0.12",
|
|
22
22
|
"@aprilium/tripsm_luggage": "^0.0.17",
|
|
23
23
|
"@aprilium/tripsm_luggage-tracking": "^0.0.13",
|
|
24
|
-
"@aprilium/tripsm_pack": "^0.0.
|
|
24
|
+
"@aprilium/tripsm_pack": "^0.0.26",
|
|
25
25
|
"@aprilium/tripsm_pack-hotel": "^0.0.14",
|
|
26
26
|
"@aprilium/tripsm_pack-options": "^0.0.12",
|
|
27
27
|
"@aprilium/tripsm_pack-transportation": "^0.0.5",
|
|
28
|
-
"@aprilium/
|
|
29
|
-
"@aprilium/tripsm_passenger": "^0.0.
|
|
30
|
-
"@aprilium/tripsm_passenger-
|
|
31
|
-
"@aprilium/tripsm_passenger-
|
|
32
|
-
"@aprilium/tripsm_passenger-
|
|
33
|
-
"@aprilium/
|
|
34
|
-
"@aprilium/
|
|
35
|
-
"@aprilium/tripsm_payment": "^0.0.
|
|
36
|
-
"@aprilium/
|
|
37
|
-
"@aprilium/
|
|
38
|
-
"@aprilium/tripsm_reservation": "^0.0.
|
|
39
|
-
"@aprilium/
|
|
40
|
-
"@aprilium/
|
|
41
|
-
"@aprilium/tripsm_ticket": "^0.0.29",
|
|
28
|
+
"@aprilium/tripsm_passenger": "^0.0.113",
|
|
29
|
+
"@aprilium/tripsm_passenger-group": "^0.0.17",
|
|
30
|
+
"@aprilium/tripsm_passenger-hotel": "^0.0.17",
|
|
31
|
+
"@aprilium/tripsm_passenger-pack": "^0.0.14",
|
|
32
|
+
"@aprilium/tripsm_passenger-pathology": "^0.0.10",
|
|
33
|
+
"@aprilium/tripsm_passengers-location": "^0.0.5",
|
|
34
|
+
"@aprilium/tripsm_payment": "^0.0.10",
|
|
35
|
+
"@aprilium/tripsm_payment-history": "^0.0.7",
|
|
36
|
+
"@aprilium/tripsm_relation": "^0.0.10",
|
|
37
|
+
"@aprilium/tripsm_reservation": "^0.0.15",
|
|
38
|
+
"@aprilium/tripsm_reservation-request": "^0.0.3",
|
|
39
|
+
"@aprilium/tripsm_room": "^0.0.10",
|
|
40
|
+
"@aprilium/tripsm_ticket": "^0.0.28",
|
|
42
41
|
"@aprilium/tripsm_trip": "^0.0.57",
|
|
43
|
-
"@aprilium/tripsm_trip-favoris": "^0.0.
|
|
44
|
-
"@aprilium/tripsm_trip-group": "^0.0.
|
|
42
|
+
"@aprilium/tripsm_trip-favoris": "^0.0.8",
|
|
43
|
+
"@aprilium/tripsm_trip-group": "^0.0.26",
|
|
45
44
|
"@aprilium/tripsm_trip-hotel": "^0.0.20",
|
|
46
|
-
"@aprilium/tripsm_trip-picture": "^0.0.
|
|
45
|
+
"@aprilium/tripsm_trip-picture": "^0.0.10",
|
|
47
46
|
"@aprilium/tripsm_trip-transportation": "^0.0.15",
|
|
48
|
-
"@aprilium/tripsm_user": "^0.0.
|
|
49
|
-
"@aprilium/tripsm_visa": "^0.0.
|
|
50
|
-
"@aprilium/tripsm_visa-category": "^0.0.
|
|
51
|
-
"@aprilium/tripsm_visa-request": "^0.0.
|
|
52
|
-
"@aprilium/tripsm_visa-status": "^0.0.
|
|
53
|
-
"@aprilium/tripsm_visa-type": "^0.0.
|
|
47
|
+
"@aprilium/tripsm_user": "^0.0.31",
|
|
48
|
+
"@aprilium/tripsm_visa": "^0.0.19",
|
|
49
|
+
"@aprilium/tripsm_visa-category": "^0.0.7",
|
|
50
|
+
"@aprilium/tripsm_visa-request": "^0.0.18",
|
|
51
|
+
"@aprilium/tripsm_visa-status": "^0.0.11",
|
|
52
|
+
"@aprilium/tripsm_visa-type": "^0.0.10",
|
|
54
53
|
"@types/react": "^17.0.0",
|
|
55
54
|
"axios": "^0.21.1",
|
|
56
55
|
"dotenv": "^16.4.5",
|