@aprilium/tripsm_global-states 0.0.170 → 0.0.171
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 +13 -3
- package/lib/index.js +23 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { State as luggageState } from "@aprilium/tripsm_luggage/lib/state";
|
|
|
23
23
|
import { State as luggageTrackingState } from "@aprilium/tripsm_luggage-tracking/lib/state";
|
|
24
24
|
import { State as identityTypeState } from "@aprilium/tripsm_identity-type/lib/state";
|
|
25
25
|
import { State as relationState } from "@aprilium/tripsm_relation/lib/state";
|
|
26
|
+
import { State as tripsState } from "@aprilium/tripsm_trips/lib/state";
|
|
27
|
+
import { State as passengersState } from "@aprilium/tripsm_passengers/lib/state";
|
|
26
28
|
import { State as passengerGroupsState } from "@aprilium/tripsm_passenger-groups/lib/state";
|
|
27
29
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
28
30
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
@@ -44,6 +46,8 @@ import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
|
44
46
|
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
45
47
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
46
48
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
49
|
+
import TripsSaga from "@aprilium/tripsm_trips/lib/effects";
|
|
50
|
+
import PassengersSaga from "@aprilium/tripsm_passengers/lib/effects";
|
|
47
51
|
import PassengerGroupsSaga from "@aprilium/tripsm_passenger-groups/lib/effects";
|
|
48
52
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
49
53
|
export declare const reducers: {
|
|
@@ -67,6 +71,8 @@ export declare const reducers: {
|
|
|
67
71
|
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
68
72
|
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
69
73
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
74
|
+
trips: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trips/lib/state").TripsState>;
|
|
75
|
+
passengers: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passengers/lib/state").PassengersState>;
|
|
70
76
|
passengerGroups: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-groups/lib/state").PassengerGroupsState>;
|
|
71
77
|
};
|
|
72
78
|
export declare const initialSagas: {
|
|
@@ -90,6 +96,8 @@ export declare const initialSagas: {
|
|
|
90
96
|
luggageTracking: typeof LuggageTrackingSaga;
|
|
91
97
|
identityType: typeof IdentityTypeSaga;
|
|
92
98
|
relation: typeof RelationSaga;
|
|
99
|
+
trips: typeof TripsSaga;
|
|
100
|
+
passengers: typeof PassengersSaga;
|
|
93
101
|
passengerGroups: typeof PassengerGroupsSaga;
|
|
94
102
|
};
|
|
95
103
|
export type States = {
|
|
@@ -113,11 +121,13 @@ export type States = {
|
|
|
113
121
|
luggagTracking: luggageTrackingState;
|
|
114
122
|
identityType: identityTypeState;
|
|
115
123
|
relation: relationState;
|
|
116
|
-
|
|
124
|
+
trips: tripsState;
|
|
125
|
+
passengers: passengersState;
|
|
126
|
+
passengerGrous: passengerGroupsState;
|
|
117
127
|
};
|
|
118
|
-
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation" | "passenger-groups";
|
|
128
|
+
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation" | "trips" | "passengers" | "passenger-groups";
|
|
119
129
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
120
|
-
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof TripSaga | 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 PassengerGroupsSaga)[];
|
|
130
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof TripSaga | 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 TripsSaga | typeof PassengersSaga | typeof PassengerGroupsSaga)[];
|
|
121
131
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
122
132
|
waitForRehydrate?: boolean): void;
|
|
123
133
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -76,7 +76,9 @@ var lib_17 = require("@aprilium/tripsm_luggage/lib");
|
|
|
76
76
|
var lib_18 = require("@aprilium/tripsm_luggage-tracking/lib");
|
|
77
77
|
var lib_19 = require("@aprilium/tripsm_identity-type/lib");
|
|
78
78
|
var lib_20 = require("@aprilium/tripsm_relation/lib");
|
|
79
|
-
var lib_21 = require("@aprilium/
|
|
79
|
+
var lib_21 = require("@aprilium/tripsm_trips/lib");
|
|
80
|
+
var lib_22 = require("@aprilium/tripsm_passengers/lib");
|
|
81
|
+
var lib_23 = require("@aprilium/tripsm_passenger-groups/lib");
|
|
80
82
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
81
83
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
82
84
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -97,7 +99,9 @@ var state_17 = require("@aprilium/tripsm_luggage/lib/state");
|
|
|
97
99
|
var state_18 = require("@aprilium/tripsm_luggage-tracking/lib/state");
|
|
98
100
|
var state_19 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
99
101
|
var state_20 = require("@aprilium/tripsm_relation/lib/state");
|
|
100
|
-
var state_21 = require("@aprilium/
|
|
102
|
+
var state_21 = require("@aprilium/tripsm_trips/lib/state");
|
|
103
|
+
var state_22 = require("@aprilium/tripsm_passengers/lib/state");
|
|
104
|
+
var state_23 = require("@aprilium/tripsm_passenger-groups/lib/state");
|
|
101
105
|
//import sagas
|
|
102
106
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
103
107
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -119,7 +123,9 @@ var effects_18 = __importDefault(require("@aprilium/tripsm_luggage/lib/effects")
|
|
|
119
123
|
var effects_19 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/effects"));
|
|
120
124
|
var effects_20 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
121
125
|
var effects_21 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
122
|
-
var effects_22 = __importDefault(require("@aprilium/
|
|
126
|
+
var effects_22 = __importDefault(require("@aprilium/tripsm_trips/lib/effects"));
|
|
127
|
+
var effects_23 = __importDefault(require("@aprilium/tripsm_passengers/lib/effects"));
|
|
128
|
+
var effects_24 = __importDefault(require("@aprilium/tripsm_passenger-groups/lib/effects"));
|
|
123
129
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
124
130
|
exports.reducers = {
|
|
125
131
|
passenger: state_6.passengerReducerFunction,
|
|
@@ -142,7 +148,9 @@ exports.reducers = {
|
|
|
142
148
|
luggageTracking: state_18.LuggageTrackingReducerFunction,
|
|
143
149
|
identityType: state_19.IdentityTypeReducerFunction,
|
|
144
150
|
relation: state_20.RelationReducerFunction,
|
|
145
|
-
|
|
151
|
+
trips: state_21.TripsReducerFunction,
|
|
152
|
+
passengers: state_22.PassengersReducerFunction,
|
|
153
|
+
passengerGroups: state_23.PassengerGroupsReducerFunction,
|
|
146
154
|
};
|
|
147
155
|
exports.initialSagas = {
|
|
148
156
|
passenger: effects_2.default,
|
|
@@ -165,7 +173,9 @@ exports.initialSagas = {
|
|
|
165
173
|
luggageTracking: effects_19.default,
|
|
166
174
|
identityType: effects_20.default,
|
|
167
175
|
relation: effects_21.default,
|
|
168
|
-
|
|
176
|
+
trips: effects_22.default,
|
|
177
|
+
passengers: effects_23.default,
|
|
178
|
+
passengerGroups: effects_24.default,
|
|
169
179
|
};
|
|
170
180
|
function setUrlConfig(coreApi, debugMode) {
|
|
171
181
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -253,6 +263,14 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
253
263
|
CORE_BASE_URL: coreApi,
|
|
254
264
|
DEBUG_MODE: debugMode,
|
|
255
265
|
});
|
|
266
|
+
lib_22.urlsConfig.setURls({
|
|
267
|
+
CORE_BASE_URL: coreApi,
|
|
268
|
+
DEBUG_MODE: debugMode,
|
|
269
|
+
});
|
|
270
|
+
lib_23.urlsConfig.setURls({
|
|
271
|
+
CORE_BASE_URL: coreApi,
|
|
272
|
+
DEBUG_MODE: debugMode,
|
|
273
|
+
});
|
|
256
274
|
}
|
|
257
275
|
exports.setUrlConfig = setUrlConfig;
|
|
258
276
|
exports.sagas = Object.keys(exports.initialSagas).map(function (key) { return exports.initialSagas[key]; });
|