@aprilium/tripsm_global-states 0.0.167 → 0.0.169
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 +7 -2
- package/lib/index.js +9 -0
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ 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 passengersState } from "@aprilium/tripsm_passengers/lib/state";
|
|
26
27
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
27
28
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
28
29
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
@@ -43,6 +44,7 @@ import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
|
43
44
|
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
44
45
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
45
46
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
47
|
+
import PassengersSaga from "@aprilium/tripsm_passengers/lib/effects";
|
|
46
48
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
47
49
|
export declare const reducers: {
|
|
48
50
|
passenger: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
@@ -65,6 +67,7 @@ export declare const reducers: {
|
|
|
65
67
|
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
66
68
|
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
67
69
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
70
|
+
passengers: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passengers/lib/state").PassengersState>;
|
|
68
71
|
};
|
|
69
72
|
export declare const initialSagas: {
|
|
70
73
|
passenger: typeof passengerSaga;
|
|
@@ -87,6 +90,7 @@ export declare const initialSagas: {
|
|
|
87
90
|
luggageTracking: typeof LuggageTrackingSaga;
|
|
88
91
|
identityType: typeof IdentityTypeSaga;
|
|
89
92
|
relation: typeof RelationSaga;
|
|
93
|
+
passengers: typeof PassengersSaga;
|
|
90
94
|
};
|
|
91
95
|
export type States = {
|
|
92
96
|
passenger: passengerState;
|
|
@@ -109,10 +113,11 @@ export type States = {
|
|
|
109
113
|
luggagTracking: luggageTrackingState;
|
|
110
114
|
identityType: identityTypeState;
|
|
111
115
|
relation: relationState;
|
|
116
|
+
passengers: passengersState;
|
|
112
117
|
};
|
|
113
|
-
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation";
|
|
118
|
+
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "luggage-tracking" | "IdentityType" | "relation" | "passengers";
|
|
114
119
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
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)[];
|
|
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 PassengersSaga)[];
|
|
116
121
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
117
122
|
waitForRehydrate?: boolean): void;
|
|
118
123
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -76,6 +76,7 @@ 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_passengers/lib");
|
|
79
80
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
80
81
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
81
82
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -96,6 +97,7 @@ var state_17 = require("@aprilium/tripsm_luggage/lib/state");
|
|
|
96
97
|
var state_18 = require("@aprilium/tripsm_luggage-tracking/lib/state");
|
|
97
98
|
var state_19 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
98
99
|
var state_20 = require("@aprilium/tripsm_relation/lib/state");
|
|
100
|
+
var state_21 = require("@aprilium/tripsm_passengers/lib/state");
|
|
99
101
|
//import sagas
|
|
100
102
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
101
103
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -117,6 +119,7 @@ var effects_18 = __importDefault(require("@aprilium/tripsm_luggage/lib/effects")
|
|
|
117
119
|
var effects_19 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/effects"));
|
|
118
120
|
var effects_20 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
119
121
|
var effects_21 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
122
|
+
var effects_22 = __importDefault(require("@aprilium/tripsm_passengers/lib/effects"));
|
|
120
123
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
121
124
|
exports.reducers = {
|
|
122
125
|
passenger: state_6.passengerReducerFunction,
|
|
@@ -139,6 +142,7 @@ exports.reducers = {
|
|
|
139
142
|
luggageTracking: state_18.LuggageTrackingReducerFunction,
|
|
140
143
|
identityType: state_19.IdentityTypeReducerFunction,
|
|
141
144
|
relation: state_20.RelationReducerFunction,
|
|
145
|
+
passengers: state_21.PassengersReducerFunction,
|
|
142
146
|
};
|
|
143
147
|
exports.initialSagas = {
|
|
144
148
|
passenger: effects_2.default,
|
|
@@ -161,6 +165,7 @@ exports.initialSagas = {
|
|
|
161
165
|
luggageTracking: effects_19.default,
|
|
162
166
|
identityType: effects_20.default,
|
|
163
167
|
relation: effects_21.default,
|
|
168
|
+
passengers: effects_22.default,
|
|
164
169
|
};
|
|
165
170
|
function setUrlConfig(coreApi, debugMode) {
|
|
166
171
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -244,6 +249,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
244
249
|
CORE_BASE_URL: coreApi,
|
|
245
250
|
DEBUG_MODE: debugMode,
|
|
246
251
|
});
|
|
252
|
+
lib_21.urlsConfig.setURls({
|
|
253
|
+
CORE_BASE_URL: coreApi,
|
|
254
|
+
DEBUG_MODE: debugMode,
|
|
255
|
+
});
|
|
247
256
|
}
|
|
248
257
|
exports.setUrlConfig = setUrlConfig;
|
|
249
258
|
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.169",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -33,7 +33,9 @@
|
|
|
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.2",
|
|
36
|
+
"@aprilium/tripsm_trips": "^0.0.2",
|
|
37
|
+
"@aprilium/tripsm_passengers": "^0.0.4",
|
|
38
|
+
|
|
37
39
|
|
|
38
40
|
"@types/react": "^17.0.0",
|
|
39
41
|
"axios": "^0.21.1",
|