@aprilium/tripsm_global-states 0.0.350 → 0.0.351
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 -0
- package/package.json +3 -1
package/lib/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { State as paymentHistorysState } from "@aprilium/tripsm_payment-history/
|
|
|
31
31
|
import { State as customerState } from "@aprilium/tripsm_customer/lib/state";
|
|
32
32
|
import { State as tripTransportationState } from "@aprilium/tripsm_trip-transportation/lib/state";
|
|
33
33
|
import { State as roomState } from "@aprilium/tripsm_room/lib/state";
|
|
34
|
+
import { State as packState } from "@aprilium/tripsm_pack/lib/state";
|
|
34
35
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
35
36
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
36
37
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
@@ -59,6 +60,7 @@ import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
|
|
|
59
60
|
import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
|
|
60
61
|
import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
|
|
61
62
|
import RoomSaga from "@aprilium/tripsm_room/lib/effects";
|
|
63
|
+
import PackSaga from "@aprilium/tripsm_pack/lib/effects";
|
|
62
64
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
63
65
|
export declare const reducers: {
|
|
64
66
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -86,6 +88,7 @@ export declare const reducers: {
|
|
|
86
88
|
payment: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment/lib/state").PaymentState>;
|
|
87
89
|
reservation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation/lib/state").ReservationState>;
|
|
88
90
|
room: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_room/lib/state").RoomState>;
|
|
91
|
+
pack: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack/lib/state").PackState>;
|
|
89
92
|
paymentHistory: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment-history/lib/state").PaymentHistoryState>;
|
|
90
93
|
customer: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_customer/lib/state").CustomerState>;
|
|
91
94
|
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
@@ -116,6 +119,7 @@ export declare const initialSagas: {
|
|
|
116
119
|
payment: typeof PaymentSaga;
|
|
117
120
|
reservation: typeof ReservationSaga;
|
|
118
121
|
room: typeof RoomSaga;
|
|
122
|
+
pack: typeof PackSaga;
|
|
119
123
|
paymentHistory: typeof PaymentHistorySaga;
|
|
120
124
|
customer: typeof CustomerSaga;
|
|
121
125
|
tripTransportation: typeof TripTransportationSaga;
|
|
@@ -148,11 +152,12 @@ export type States = {
|
|
|
148
152
|
customer: customerState;
|
|
149
153
|
reservation: reservationState;
|
|
150
154
|
room: roomState;
|
|
155
|
+
pack: packState;
|
|
151
156
|
tripTransportation: tripTransportationState;
|
|
152
157
|
};
|
|
153
|
-
export type StateName = "passenger-
|
|
158
|
+
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";
|
|
154
159
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
155
|
-
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)[];
|
|
160
|
+
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)[];
|
|
156
161
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
157
162
|
waitForRehydrate?: boolean): void;
|
|
158
163
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -85,6 +85,7 @@ var lib_26 = require("@aprilium/tripsm_payment-history/lib");
|
|
|
85
85
|
var lib_27 = require("@aprilium/tripsm_customer/lib");
|
|
86
86
|
var lib_28 = require("@aprilium/tripsm_trip-transportation/lib");
|
|
87
87
|
var lib_29 = require("@aprilium/tripsm_room/lib");
|
|
88
|
+
var lib_30 = require("@aprilium/tripsm_pack/lib");
|
|
88
89
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
89
90
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
90
91
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -113,6 +114,7 @@ var state_25 = require("@aprilium/tripsm_payment-history/lib/state");
|
|
|
113
114
|
var state_26 = require("@aprilium/tripsm_customer/lib/state");
|
|
114
115
|
var state_27 = require("@aprilium/tripsm_trip-transportation/lib/state");
|
|
115
116
|
var state_28 = require("@aprilium/tripsm_room/lib/state");
|
|
117
|
+
var state_29 = require("@aprilium/tripsm_pack/lib/state");
|
|
116
118
|
//import sagas
|
|
117
119
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
118
120
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -142,6 +144,7 @@ var effects_26 = __importDefault(require("@aprilium/tripsm_payment-history/lib/e
|
|
|
142
144
|
var effects_27 = __importDefault(require("@aprilium/tripsm_customer/lib/effects"));
|
|
143
145
|
var effects_28 = __importDefault(require("@aprilium/tripsm_trip-transportation/lib/effects"));
|
|
144
146
|
var effects_29 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
|
|
147
|
+
var effects_30 = __importDefault(require("@aprilium/tripsm_pack/lib/effects"));
|
|
145
148
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
146
149
|
exports.reducers = {
|
|
147
150
|
passengersState: state_22.passengerReducerFunction,
|
|
@@ -169,6 +172,7 @@ exports.reducers = {
|
|
|
169
172
|
payment: state_23.PaymentReducerFunction,
|
|
170
173
|
reservation: state_24.ReservationReducerFunction,
|
|
171
174
|
room: state_28.RoomReducerFunction,
|
|
175
|
+
pack: state_29.PackReducerFunction,
|
|
172
176
|
paymentHistory: state_25.PaymentHistoryReducerFunction,
|
|
173
177
|
customer: state_26.CustomerReducerFunction,
|
|
174
178
|
tripTransportation: state_27.TripTransportationReducerFunction,
|
|
@@ -199,6 +203,7 @@ exports.initialSagas = {
|
|
|
199
203
|
payment: effects_24.default,
|
|
200
204
|
reservation: effects_25.default,
|
|
201
205
|
room: effects_29.default,
|
|
206
|
+
pack: effects_30.default,
|
|
202
207
|
paymentHistory: effects_26.default,
|
|
203
208
|
customer: effects_27.default,
|
|
204
209
|
tripTransportation: effects_28.default,
|
|
@@ -321,6 +326,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
321
326
|
CORE_BASE_URL: coreApi,
|
|
322
327
|
DEBUG_MODE: debugMode,
|
|
323
328
|
});
|
|
329
|
+
lib_30.urlsConfig.setURls({
|
|
330
|
+
CORE_BASE_URL: coreApi,
|
|
331
|
+
DEBUG_MODE: debugMode,
|
|
332
|
+
});
|
|
324
333
|
}
|
|
325
334
|
exports.setUrlConfig = setUrlConfig;
|
|
326
335
|
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.351",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -41,6 +41,8 @@
|
|
|
41
41
|
"@aprilium/tripsm_customer": "^0.0.2",
|
|
42
42
|
"@aprilium/tripsm_trip-transportation": "^0.0.3",
|
|
43
43
|
"@aprilium/tripsm_room": "^0.0.7",
|
|
44
|
+
"@aprilium/tripsm_pack": "^0.0.1",
|
|
45
|
+
|
|
44
46
|
"@types/react": "^17.0.0",
|
|
45
47
|
"axios": "^0.21.1",
|
|
46
48
|
"immer": "^9.0.15",
|