@aprilium/tripsm_global-states 0.0.253 → 0.0.255
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 +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { State as paymentState } from "@aprilium/tripsm_payment/lib/state";
|
|
|
27
27
|
import { State as reservationState } from "@aprilium/tripsm_reservation/lib/state";
|
|
28
28
|
import { State as paymentHistorysState } from "@aprilium/tripsm_payment-history/lib/state";
|
|
29
29
|
import { State as customerState } from "@aprilium/tripsm_customer/lib/state";
|
|
30
|
+
import { State as tripTransportationState } from "@aprilium/tripsm_trip-transportation/lib/state";
|
|
30
31
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
31
32
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
32
33
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
@@ -51,6 +52,7 @@ import PaymentSaga from "@aprilium/tripsm_payment/lib/effects";
|
|
|
51
52
|
import ReservationSaga from "@aprilium/tripsm_reservation/lib/effects";
|
|
52
53
|
import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
|
|
53
54
|
import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
|
|
55
|
+
import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
|
|
54
56
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
55
57
|
export declare const reducers: {
|
|
56
58
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -77,6 +79,7 @@ export declare const reducers: {
|
|
|
77
79
|
reservation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation/lib/state").ReservationState>;
|
|
78
80
|
paymentHistory: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment-history/lib/state").PaymentHistoryState>;
|
|
79
81
|
customer: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_customer/lib/state").CustomerState>;
|
|
82
|
+
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
80
83
|
};
|
|
81
84
|
export declare const initialSagas: {
|
|
82
85
|
passenger: typeof passengerSaga;
|
|
@@ -103,6 +106,7 @@ export declare const initialSagas: {
|
|
|
103
106
|
reservation: typeof ReservationSaga;
|
|
104
107
|
paymentHistory: typeof PaymentHistorySaga;
|
|
105
108
|
customer: typeof CustomerSaga;
|
|
109
|
+
tripTransportation: typeof TripTransportationSaga;
|
|
106
110
|
};
|
|
107
111
|
export type States = {
|
|
108
112
|
passengersState: passengersState;
|
|
@@ -129,10 +133,11 @@ export type States = {
|
|
|
129
133
|
paymentHistory: paymentHistorysState;
|
|
130
134
|
customer: customerState;
|
|
131
135
|
reservation: reservationState;
|
|
136
|
+
tripTransportation: tripTransportationState;
|
|
132
137
|
};
|
|
133
|
-
export type StateName = "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";
|
|
138
|
+
export type StateName = "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";
|
|
134
139
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
135
|
-
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | 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)[];
|
|
140
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | 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)[];
|
|
136
141
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
137
142
|
waitForRehydrate?: boolean): void;
|
|
138
143
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -81,6 +81,7 @@ var lib_22 = require("@aprilium/tripsm_payment/lib");
|
|
|
81
81
|
var lib_23 = require("@aprilium/tripsm_reservation/lib");
|
|
82
82
|
var lib_24 = require("@aprilium/tripsm_payment-history/lib");
|
|
83
83
|
var lib_25 = require("@aprilium/tripsm_customer/lib");
|
|
84
|
+
var lib_26 = require("@aprilium/tripsm_trip-transportation/lib");
|
|
84
85
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
85
86
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
86
87
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -105,6 +106,7 @@ var state_21 = require("@aprilium/tripsm_payment/lib/state");
|
|
|
105
106
|
var state_22 = require("@aprilium/tripsm_reservation/lib/state");
|
|
106
107
|
var state_23 = require("@aprilium/tripsm_payment-history/lib/state");
|
|
107
108
|
var state_24 = require("@aprilium/tripsm_customer/lib/state");
|
|
109
|
+
var state_25 = require("@aprilium/tripsm_trip-transportation/lib/state");
|
|
108
110
|
//import sagas
|
|
109
111
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
110
112
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -130,6 +132,7 @@ var effects_22 = __importDefault(require("@aprilium/tripsm_payment/lib/effects")
|
|
|
130
132
|
var effects_23 = __importDefault(require("@aprilium/tripsm_reservation/lib/effects"));
|
|
131
133
|
var effects_24 = __importDefault(require("@aprilium/tripsm_payment-history/lib/effects"));
|
|
132
134
|
var effects_25 = __importDefault(require("@aprilium/tripsm_customer/lib/effects"));
|
|
135
|
+
var effects_26 = __importDefault(require("@aprilium/tripsm_trip-transportation/lib/effects"));
|
|
133
136
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
134
137
|
exports.reducers = {
|
|
135
138
|
passengersState: state_20.passengerReducerFunction,
|
|
@@ -156,6 +159,7 @@ exports.reducers = {
|
|
|
156
159
|
reservation: state_22.ReservationReducerFunction,
|
|
157
160
|
paymentHistory: state_23.PaymentHistoryReducerFunction,
|
|
158
161
|
customer: state_24.CustomerReducerFunction,
|
|
162
|
+
tripTransportation: state_25.TripTransportationReducerFunction,
|
|
159
163
|
};
|
|
160
164
|
exports.initialSagas = {
|
|
161
165
|
passenger: effects_2.default,
|
|
@@ -182,6 +186,7 @@ exports.initialSagas = {
|
|
|
182
186
|
reservation: effects_23.default,
|
|
183
187
|
paymentHistory: effects_24.default,
|
|
184
188
|
customer: effects_25.default,
|
|
189
|
+
tripTransportation: effects_26.default,
|
|
185
190
|
};
|
|
186
191
|
function setUrlConfig(coreApi, debugMode) {
|
|
187
192
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -285,6 +290,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
285
290
|
CORE_BASE_URL: coreApi,
|
|
286
291
|
DEBUG_MODE: debugMode,
|
|
287
292
|
});
|
|
293
|
+
lib_26.urlsConfig.setURls({
|
|
294
|
+
CORE_BASE_URL: coreApi,
|
|
295
|
+
DEBUG_MODE: debugMode,
|
|
296
|
+
});
|
|
288
297
|
}
|
|
289
298
|
exports.setUrlConfig = setUrlConfig;
|
|
290
299
|
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.255",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aprilium/tripsm_luggage": "^0.0.9",
|
|
27
27
|
"@aprilium/tripsm_luggage-tracking": "^0.0.8",
|
|
28
28
|
"@aprilium/tripsm_passenger-group": "^0.0.8",
|
|
29
|
-
"@aprilium/tripsm_ticket": "^0.0.
|
|
29
|
+
"@aprilium/tripsm_ticket": "^0.0.10",
|
|
30
30
|
"@aprilium/tripsm_visa": "^0.0.5",
|
|
31
31
|
"@aprilium/tripsm_visa-category": "^0.0.6",
|
|
32
32
|
"@aprilium/tripsm_visa-status": "^0.0.8",
|