@aprilium/tripsm_global-states 0.0.186 → 0.0.188
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 +1 -10
- package/package.json +2 -7
package/lib/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { State as identityTypeState } from "@aprilium/tripsm_identity-type/lib/s
|
|
|
23
23
|
import { State as relationState } from "@aprilium/tripsm_relation/lib/state";
|
|
24
24
|
import { State as tripState } from "@aprilium/tripsm_trip/lib/state";
|
|
25
25
|
import { State as passengersState } from "@aprilium/tripsm_passenger/lib/state";
|
|
26
|
-
import { State as passengerGroupsState } from "@aprilium/tripsm_passenger-groups/lib/state";
|
|
27
26
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
28
27
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
29
28
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
@@ -44,7 +43,6 @@ import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
|
44
43
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
45
44
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
46
45
|
import TripSaga from "@aprilium/tripsm_trip/lib/effects";
|
|
47
|
-
import PassengerGroupsSaga from "@aprilium/tripsm_passenger-groups/lib/effects";
|
|
48
46
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
49
47
|
export declare const reducers: {
|
|
50
48
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -67,7 +65,6 @@ export declare const reducers: {
|
|
|
67
65
|
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
68
66
|
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
69
67
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
70
|
-
passengerGroups: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-groups/lib/state").PassengerGroupsState>;
|
|
71
68
|
};
|
|
72
69
|
export declare const initialSagas: {
|
|
73
70
|
passenger: typeof passengerSaga;
|
|
@@ -90,7 +87,6 @@ export declare const initialSagas: {
|
|
|
90
87
|
luggageTracking: typeof LuggageTrackingSaga;
|
|
91
88
|
identityType: typeof IdentityTypeSaga;
|
|
92
89
|
relation: typeof RelationSaga;
|
|
93
|
-
passengerGroups: typeof PassengerGroupsSaga;
|
|
94
90
|
};
|
|
95
91
|
export type States = {
|
|
96
92
|
passengersState: passengersState;
|
|
@@ -113,11 +109,10 @@ export type States = {
|
|
|
113
109
|
luggagTracking: luggageTrackingState;
|
|
114
110
|
identityType: identityTypeState;
|
|
115
111
|
relation: relationState;
|
|
116
|
-
passengerGrous: passengerGroupsState;
|
|
117
112
|
};
|
|
118
|
-
export type StateName = "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "
|
|
113
|
+
export type StateName = "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "passenger-group" | "luggage" | "luggage-tracking" | "IdentityType" | "relation" | "trip" | "passengers";
|
|
119
114
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
120
|
-
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
|
|
115
|
+
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)[];
|
|
121
116
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
122
117
|
waitForRehydrate?: boolean): void;
|
|
123
118
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -77,7 +77,6 @@ var lib_18 = require("@aprilium/tripsm_identity-type/lib");
|
|
|
77
77
|
var lib_19 = require("@aprilium/tripsm_relation/lib");
|
|
78
78
|
var lib_20 = require("@aprilium/tripsm_trip/lib");
|
|
79
79
|
var lib_21 = require("@aprilium/tripsm_passenger/lib");
|
|
80
|
-
var lib_22 = require("@aprilium/tripsm_passenger-groups/lib");
|
|
81
80
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
82
81
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
83
82
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -98,7 +97,6 @@ var state_17 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
|
98
97
|
var state_18 = require("@aprilium/tripsm_relation/lib/state");
|
|
99
98
|
var state_19 = require("@aprilium/tripsm_trip/lib/state");
|
|
100
99
|
var state_20 = require("@aprilium/tripsm_passenger/lib/state");
|
|
101
|
-
var state_21 = require("@aprilium/tripsm_passenger-groups/lib/state");
|
|
102
100
|
//import sagas
|
|
103
101
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
104
102
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -120,7 +118,6 @@ var effects_18 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/
|
|
|
120
118
|
var effects_19 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
121
119
|
var effects_20 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
122
120
|
var effects_21 = __importDefault(require("@aprilium/tripsm_trip/lib/effects"));
|
|
123
|
-
var effects_22 = __importDefault(require("@aprilium/tripsm_passenger-groups/lib/effects"));
|
|
124
121
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
125
122
|
exports.reducers = {
|
|
126
123
|
passengersState: state_20.passengerReducerFunction,
|
|
@@ -138,12 +135,11 @@ exports.reducers = {
|
|
|
138
135
|
hotel: state_11.HotelReducerFunction,
|
|
139
136
|
ticket: state_12.TicketReducerFunction,
|
|
140
137
|
tripHotel: state_13.TripHotelReducerFunction,
|
|
141
|
-
passengerGroup: state_14.
|
|
138
|
+
passengerGroup: state_14.PassengerGroupReducerFunction,
|
|
142
139
|
luggage: state_15.LuggageReducerFunction,
|
|
143
140
|
luggageTracking: state_16.LuggageTrackingReducerFunction,
|
|
144
141
|
identityType: state_17.IdentityTypeReducerFunction,
|
|
145
142
|
relation: state_18.RelationReducerFunction,
|
|
146
|
-
passengerGroups: state_21.PassengerGroupsReducerFunction,
|
|
147
143
|
};
|
|
148
144
|
exports.initialSagas = {
|
|
149
145
|
passenger: effects_2.default,
|
|
@@ -166,7 +162,6 @@ exports.initialSagas = {
|
|
|
166
162
|
luggageTracking: effects_18.default,
|
|
167
163
|
identityType: effects_19.default,
|
|
168
164
|
relation: effects_20.default,
|
|
169
|
-
passengerGroups: effects_22.default,
|
|
170
165
|
};
|
|
171
166
|
function setUrlConfig(coreApi, debugMode) {
|
|
172
167
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -254,10 +249,6 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
254
249
|
CORE_BASE_URL: coreApi,
|
|
255
250
|
DEBUG_MODE: debugMode,
|
|
256
251
|
});
|
|
257
|
-
lib_22.urlsConfig.setURls({
|
|
258
|
-
CORE_BASE_URL: coreApi,
|
|
259
|
-
DEBUG_MODE: debugMode,
|
|
260
|
-
});
|
|
261
252
|
}
|
|
262
253
|
exports.setUrlConfig = setUrlConfig;
|
|
263
254
|
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.188",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@aprilium/tripsm_identity": "^0.0.4",
|
|
26
26
|
"@aprilium/tripsm_luggage": "^0.0.6",
|
|
27
27
|
"@aprilium/tripsm_luggage-tracking": "^0.0.2",
|
|
28
|
-
"@aprilium/tripsm_passenger-group": "^0.0.
|
|
28
|
+
"@aprilium/tripsm_passenger-group": "^0.0.7",
|
|
29
29
|
"@aprilium/tripsm_ticket": "^0.0.4",
|
|
30
30
|
"@aprilium/tripsm_visa": "^0.0.4",
|
|
31
31
|
"@aprilium/tripsm_visa-category": "^0.0.5",
|
|
@@ -33,11 +33,6 @@
|
|
|
33
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
|
-
"@aprilium/tripsm_trips": "^0.0.4",
|
|
37
|
-
"@aprilium/tripsm_passenger-groups": "^0.0.2",
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
36
|
|
|
42
37
|
"@types/react": "^17.0.0",
|
|
43
38
|
"axios": "^0.21.1",
|