@aprilium/tripsm_global-states 0.0.176 → 0.0.177
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 +23 -6
- package/lib/index.js +27 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -23,9 +23,13 @@ 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";
|
|
28
|
+
import { State as passengerGroupsState } from "@aprilium/tripsm_passenger-groups/lib/state";
|
|
26
29
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
27
30
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
28
31
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
32
|
+
import TripSaga from "@aprilium/tripsm_trip/lib/effects";
|
|
29
33
|
import groupSaga from "@aprilium/tripsm_trip-group/lib/effects";
|
|
30
34
|
import userSaga from "@aprilium/tripsm_user/lib/effects";
|
|
31
35
|
import visaCategorySaga from "@aprilium/tripsm_visa-category/lib/effects";
|
|
@@ -39,13 +43,17 @@ import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
|
39
43
|
import TripHotelSaga from "@aprilium/tripsm_trip-hotel/lib/effects";
|
|
40
44
|
import PassengerGroupSaga from "@aprilium/tripsm_passenger-group/lib/effects";
|
|
41
45
|
import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
46
|
+
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
42
47
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
43
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";
|
|
51
|
+
import PassengerGroupsSaga from "@aprilium/tripsm_passenger-groups/lib/effects";
|
|
44
52
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
45
53
|
export declare const reducers: {
|
|
46
54
|
passenger: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
47
55
|
constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
|
|
48
|
-
trip:
|
|
56
|
+
trip: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip/lib/state").TripState>;
|
|
49
57
|
group: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-group/lib/state").GroupState>;
|
|
50
58
|
user: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_user/lib/state").UserState>;
|
|
51
59
|
visaType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa-type/lib/state").VisaTypeState>;
|
|
@@ -60,14 +68,17 @@ export declare const reducers: {
|
|
|
60
68
|
tripHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-hotel/lib/state").TripHotelState>;
|
|
61
69
|
passengerGroup: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-group/lib/state").PassengerGroupState>;
|
|
62
70
|
luggage: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage/lib/state").LuggageState>;
|
|
63
|
-
luggageTracking:
|
|
71
|
+
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
64
72
|
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
65
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>;
|
|
76
|
+
passengerGroups: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-groups/lib/state").PassengerGroupsState>;
|
|
66
77
|
};
|
|
67
78
|
export declare const initialSagas: {
|
|
68
79
|
passenger: typeof passengerSaga;
|
|
69
80
|
constants: typeof constantsSaga;
|
|
70
|
-
trip:
|
|
81
|
+
trip: typeof TripSaga;
|
|
71
82
|
group: typeof groupSaga;
|
|
72
83
|
user: typeof userSaga;
|
|
73
84
|
visaType: typeof visaTypeSaga;
|
|
@@ -82,9 +93,12 @@ export declare const initialSagas: {
|
|
|
82
93
|
tripHotel: typeof TripHotelSaga;
|
|
83
94
|
passengerGroup: typeof PassengerGroupSaga;
|
|
84
95
|
luggage: typeof LuggageSaga;
|
|
85
|
-
luggageTracking:
|
|
96
|
+
luggageTracking: typeof LuggageTrackingSaga;
|
|
86
97
|
identityType: typeof IdentityTypeSaga;
|
|
87
98
|
relation: typeof RelationSaga;
|
|
99
|
+
trips: typeof TripsSaga;
|
|
100
|
+
passengers: typeof PassengersSaga;
|
|
101
|
+
passengerGroups: typeof PassengerGroupsSaga;
|
|
88
102
|
};
|
|
89
103
|
export type States = {
|
|
90
104
|
passenger: passengerState;
|
|
@@ -107,10 +121,13 @@ export type States = {
|
|
|
107
121
|
luggagTracking: luggageTrackingState;
|
|
108
122
|
identityType: identityTypeState;
|
|
109
123
|
relation: relationState;
|
|
124
|
+
trips: tripsState;
|
|
125
|
+
passengers: passengersState;
|
|
126
|
+
passengerGrous: passengerGroupsState;
|
|
110
127
|
};
|
|
111
|
-
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation";
|
|
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";
|
|
112
129
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
113
|
-
export declare const sagas:
|
|
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)[];
|
|
114
131
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
115
132
|
waitForRehydrate?: boolean): void;
|
|
116
133
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -76,6 +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/tripsm_trips/lib");
|
|
80
|
+
var lib_22 = require("@aprilium/tripsm_passengers/lib");
|
|
81
|
+
var lib_23 = require("@aprilium/tripsm_passenger-groups/lib");
|
|
79
82
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
80
83
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
81
84
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -96,6 +99,9 @@ var state_17 = require("@aprilium/tripsm_luggage/lib/state");
|
|
|
96
99
|
var state_18 = require("@aprilium/tripsm_luggage-tracking/lib/state");
|
|
97
100
|
var state_19 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
98
101
|
var state_20 = require("@aprilium/tripsm_relation/lib/state");
|
|
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");
|
|
99
105
|
//import sagas
|
|
100
106
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
101
107
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -117,6 +123,9 @@ var effects_18 = __importDefault(require("@aprilium/tripsm_luggage/lib/effects")
|
|
|
117
123
|
var effects_19 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/effects"));
|
|
118
124
|
var effects_20 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
119
125
|
var effects_21 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
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"));
|
|
120
129
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
121
130
|
exports.reducers = {
|
|
122
131
|
passenger: state_6.passengerReducerFunction,
|
|
@@ -139,6 +148,9 @@ exports.reducers = {
|
|
|
139
148
|
luggageTracking: state_18.LuggageTrackingReducerFunction,
|
|
140
149
|
identityType: state_19.IdentityTypeReducerFunction,
|
|
141
150
|
relation: state_20.RelationReducerFunction,
|
|
151
|
+
trips: state_21.TripsReducerFunction,
|
|
152
|
+
passengers: state_22.PassengersReducerFunction,
|
|
153
|
+
passengerGroups: state_23.PassengerGroupsReducerFunction,
|
|
142
154
|
};
|
|
143
155
|
exports.initialSagas = {
|
|
144
156
|
passenger: effects_2.default,
|
|
@@ -161,6 +173,9 @@ exports.initialSagas = {
|
|
|
161
173
|
luggageTracking: effects_19.default,
|
|
162
174
|
identityType: effects_20.default,
|
|
163
175
|
relation: effects_21.default,
|
|
176
|
+
trips: effects_22.default,
|
|
177
|
+
passengers: effects_23.default,
|
|
178
|
+
passengerGroups: effects_24.default,
|
|
164
179
|
};
|
|
165
180
|
function setUrlConfig(coreApi, debugMode) {
|
|
166
181
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -244,6 +259,18 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
244
259
|
CORE_BASE_URL: coreApi,
|
|
245
260
|
DEBUG_MODE: debugMode,
|
|
246
261
|
});
|
|
262
|
+
lib_21.urlsConfig.setURls({
|
|
263
|
+
CORE_BASE_URL: coreApi,
|
|
264
|
+
DEBUG_MODE: debugMode,
|
|
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
|
+
});
|
|
247
274
|
}
|
|
248
275
|
exports.setUrlConfig = setUrlConfig;
|
|
249
276
|
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.177",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@aprilium/tripsm_visa": "^0.0.4",
|
|
31
31
|
"@aprilium/tripsm_visa-category": "^0.0.5",
|
|
32
32
|
"@aprilium/tripsm_visa-status": "^0.0.4",
|
|
33
|
-
"@aprilium/tripsm_visa-type": "^0.0.
|
|
33
|
+
"@aprilium/tripsm_visa-type": "^0.0.5",
|
|
34
34
|
"@aprilium/tripsm_visa-request": "^0.0.5",
|
|
35
35
|
"@aprilium/tripsm_relation": "^0.0.1",
|
|
36
36
|
"@aprilium/tripsm_trips": "^0.0.4",
|