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