@aprilium/tripsm_global-states 0.0.165 → 0.0.167
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 +3 -4
package/lib/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ 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
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 LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
|
44
43
|
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
45
44
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
46
45
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
47
|
-
import TripsSaga from "@aprilium/tripsm_trips/lib/effects";
|
|
48
46
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
49
47
|
export declare const reducers: {
|
|
50
48
|
passenger: 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
|
-
trips: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trips/lib/state").TripsState>;
|
|
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
|
-
trips: typeof TripsSaga;
|
|
94
90
|
};
|
|
95
91
|
export type States = {
|
|
96
92
|
passenger: passengerState;
|
|
@@ -113,11 +109,10 @@ export type States = {
|
|
|
113
109
|
luggagTracking: luggageTrackingState;
|
|
114
110
|
identityType: identityTypeState;
|
|
115
111
|
relation: relationState;
|
|
116
|
-
trips: tripsState;
|
|
117
112
|
};
|
|
118
|
-
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation"
|
|
113
|
+
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation";
|
|
119
114
|
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
|
|
115
|
+
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)[];
|
|
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
|
@@ -76,7 +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
79
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
81
80
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
82
81
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -97,7 +96,6 @@ var state_17 = require("@aprilium/tripsm_luggage/lib/state");
|
|
|
97
96
|
var state_18 = require("@aprilium/tripsm_luggage-tracking/lib/state");
|
|
98
97
|
var state_19 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
99
98
|
var state_20 = require("@aprilium/tripsm_relation/lib/state");
|
|
100
|
-
var state_21 = require("@aprilium/tripsm_trips/lib/state");
|
|
101
99
|
//import sagas
|
|
102
100
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
103
101
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -119,7 +117,6 @@ var effects_18 = __importDefault(require("@aprilium/tripsm_luggage/lib/effects")
|
|
|
119
117
|
var effects_19 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/effects"));
|
|
120
118
|
var effects_20 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
121
119
|
var effects_21 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
122
|
-
var effects_22 = __importDefault(require("@aprilium/tripsm_trips/lib/effects"));
|
|
123
120
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
124
121
|
exports.reducers = {
|
|
125
122
|
passenger: state_6.passengerReducerFunction,
|
|
@@ -142,7 +139,6 @@ exports.reducers = {
|
|
|
142
139
|
luggageTracking: state_18.LuggageTrackingReducerFunction,
|
|
143
140
|
identityType: state_19.IdentityTypeReducerFunction,
|
|
144
141
|
relation: state_20.RelationReducerFunction,
|
|
145
|
-
trips: state_21.TripsReducerFunction,
|
|
146
142
|
};
|
|
147
143
|
exports.initialSagas = {
|
|
148
144
|
passenger: effects_2.default,
|
|
@@ -165,7 +161,6 @@ exports.initialSagas = {
|
|
|
165
161
|
luggageTracking: effects_19.default,
|
|
166
162
|
identityType: effects_20.default,
|
|
167
163
|
relation: effects_21.default,
|
|
168
|
-
trips: effects_22.default,
|
|
169
164
|
};
|
|
170
165
|
function setUrlConfig(coreApi, debugMode) {
|
|
171
166
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -249,10 +244,6 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
249
244
|
CORE_BASE_URL: coreApi,
|
|
250
245
|
DEBUG_MODE: debugMode,
|
|
251
246
|
});
|
|
252
|
-
lib_21.urlsConfig.setURls({
|
|
253
|
-
CORE_BASE_URL: coreApi,
|
|
254
|
-
DEBUG_MODE: debugMode,
|
|
255
|
-
});
|
|
256
247
|
}
|
|
257
248
|
exports.setUrlConfig = setUrlConfig;
|
|
258
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.167",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -27,14 +27,13 @@
|
|
|
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",
|
|
30
|
-
"@aprilium/tripsm_visa": "^0.0.
|
|
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
33
|
"@aprilium/tripsm_visa-type": "^0.0.4",
|
|
34
34
|
"@aprilium/tripsm_visa-request": "^0.0.5",
|
|
35
35
|
"@aprilium/tripsm_relation": "^0.0.1",
|
|
36
|
-
"@aprilium/tripsm_trips": "^0.0.
|
|
37
|
-
|
|
36
|
+
"@aprilium/tripsm_trips": "^0.0.2",
|
|
38
37
|
|
|
39
38
|
"@types/react": "^17.0.0",
|
|
40
39
|
"axios": "^0.21.1",
|