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