@aprilium/tripsm_global-states 0.0.150 → 0.0.151
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 +19 -10
- package/package.json +3 -2
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { State as ticketState } from "@aprilium/tripsm_ticket/lib/state";
|
|
|
20
20
|
import { State as tripHotelState } from "@aprilium/tripsm_trip-hotel/lib/state";
|
|
21
21
|
import { State as passengerGroupState } from "@aprilium/tripsm_passenger-group/lib/state";
|
|
22
22
|
import { State as luggageState } from "@aprilium/tripsm_luggage/lib/state";
|
|
23
|
+
import { State as luggageTrackingState } from "@aprilium/tripsm_luggage-tracking/lib/state";
|
|
23
24
|
import { State as identityTypeState } from "@aprilium/tripsm_identity-type/lib/state";
|
|
24
25
|
import { State as relationState } from "@aprilium/tripsm_relation/lib/state";
|
|
25
26
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
@@ -39,6 +40,7 @@ import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
|
39
40
|
import TripHotelSaga from "@aprilium/tripsm_trip-hotel/lib/effects";
|
|
40
41
|
import PassengerGroupSaga from "@aprilium/tripsm_passenger-group/lib/effects";
|
|
41
42
|
import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
43
|
+
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
42
44
|
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
43
45
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
44
46
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
@@ -60,6 +62,7 @@ export declare const reducers: {
|
|
|
60
62
|
tripHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-hotel/lib/state").TripHotelState>;
|
|
61
63
|
passengerGroup: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-group/lib/state").PassengerGroupState>;
|
|
62
64
|
luggage: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage/lib/state").LuggageState>;
|
|
65
|
+
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
63
66
|
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
64
67
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
65
68
|
};
|
|
@@ -81,6 +84,7 @@ export declare const initialSagas: {
|
|
|
81
84
|
tripHotel: typeof TripHotelSaga;
|
|
82
85
|
passengerGroup: typeof PassengerGroupSaga;
|
|
83
86
|
luggage: typeof LuggageSaga;
|
|
87
|
+
luggageTracking: typeof LuggageTrackingSaga;
|
|
84
88
|
identityType: typeof IdentityTypeSaga;
|
|
85
89
|
relation: typeof RelationSaga;
|
|
86
90
|
};
|
|
@@ -102,12 +106,13 @@ export type States = {
|
|
|
102
106
|
tripHotel: tripHotelState;
|
|
103
107
|
passengerGroup: passengerGroupState;
|
|
104
108
|
luggage: luggageState;
|
|
109
|
+
luggagTracking: luggageTrackingState;
|
|
105
110
|
identityType: identityTypeState;
|
|
106
111
|
relation: relationState;
|
|
107
112
|
};
|
|
108
|
-
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "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";
|
|
109
114
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
110
|
-
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 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)[];
|
|
111
116
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
112
117
|
waitForRehydrate?: boolean): void;
|
|
113
118
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -73,8 +73,9 @@ var lib_14 = require("@aprilium/tripsm_ticket/lib");
|
|
|
73
73
|
var lib_15 = require("@aprilium/tripsm_trip-hotel/lib");
|
|
74
74
|
var lib_16 = require("@aprilium/tripsm_passenger-group/lib");
|
|
75
75
|
var lib_17 = require("@aprilium/tripsm_luggage/lib");
|
|
76
|
-
var lib_18 = require("@aprilium/
|
|
77
|
-
var lib_19 = require("@aprilium/
|
|
76
|
+
var lib_18 = require("@aprilium/tripsm_luggage-tracking/lib");
|
|
77
|
+
var lib_19 = require("@aprilium/tripsm_identity-type/lib");
|
|
78
|
+
var lib_20 = require("@aprilium/tripsm_relation/lib");
|
|
78
79
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
79
80
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
80
81
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -92,8 +93,9 @@ var state_14 = require("@aprilium/tripsm_ticket/lib/state");
|
|
|
92
93
|
var state_15 = require("@aprilium/tripsm_trip-hotel/lib/state");
|
|
93
94
|
var state_16 = require("@aprilium/tripsm_passenger-group/lib/state");
|
|
94
95
|
var state_17 = require("@aprilium/tripsm_luggage/lib/state");
|
|
95
|
-
var state_18 = require("@aprilium/
|
|
96
|
-
var state_19 = require("@aprilium/
|
|
96
|
+
var state_18 = require("@aprilium/tripsm_luggage-tracking/lib/state");
|
|
97
|
+
var state_19 = require("@aprilium/tripsm_identity-type/lib/state");
|
|
98
|
+
var state_20 = require("@aprilium/tripsm_relation/lib/state");
|
|
97
99
|
//import sagas
|
|
98
100
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
99
101
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -112,8 +114,9 @@ var effects_15 = __importDefault(require("@aprilium/tripsm_ticket/lib/effects"))
|
|
|
112
114
|
var effects_16 = __importDefault(require("@aprilium/tripsm_trip-hotel/lib/effects"));
|
|
113
115
|
var effects_17 = __importDefault(require("@aprilium/tripsm_passenger-group/lib/effects"));
|
|
114
116
|
var effects_18 = __importDefault(require("@aprilium/tripsm_luggage/lib/effects"));
|
|
115
|
-
var effects_19 = __importDefault(require("@aprilium/
|
|
116
|
-
var effects_20 = __importDefault(require("@aprilium/
|
|
117
|
+
var effects_19 = __importDefault(require("@aprilium/tripsm_luggage-tracking/lib/effects"));
|
|
118
|
+
var effects_20 = __importDefault(require("@aprilium/tripsm_identity-type/lib/effects"));
|
|
119
|
+
var effects_21 = __importDefault(require("@aprilium/tripsm_relation/lib/effects"));
|
|
117
120
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
118
121
|
exports.reducers = {
|
|
119
122
|
passenger: state_6.passengerReducerFunction,
|
|
@@ -133,8 +136,9 @@ exports.reducers = {
|
|
|
133
136
|
tripHotel: state_15.TripHotelReducerFunction,
|
|
134
137
|
passengerGroup: state_16.passengerGroupReducerFunction,
|
|
135
138
|
luggage: state_17.LuggageReducerFunction,
|
|
136
|
-
|
|
137
|
-
|
|
139
|
+
luggageTracking: state_18.LuggageTrackingReducerFunction,
|
|
140
|
+
identityType: state_19.IdentityTypeReducerFunction,
|
|
141
|
+
relation: state_20.RelationReducerFunction,
|
|
138
142
|
};
|
|
139
143
|
exports.initialSagas = {
|
|
140
144
|
passenger: effects_2.default,
|
|
@@ -154,8 +158,9 @@ exports.initialSagas = {
|
|
|
154
158
|
tripHotel: effects_16.default,
|
|
155
159
|
passengerGroup: effects_17.default,
|
|
156
160
|
luggage: effects_18.default,
|
|
157
|
-
|
|
158
|
-
|
|
161
|
+
luggageTracking: effects_19.default,
|
|
162
|
+
identityType: effects_20.default,
|
|
163
|
+
relation: effects_21.default,
|
|
159
164
|
};
|
|
160
165
|
function setUrlConfig(coreApi, debugMode) {
|
|
161
166
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -231,6 +236,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
231
236
|
CORE_BASE_URL: coreApi,
|
|
232
237
|
DEBUG_MODE: debugMode,
|
|
233
238
|
});
|
|
239
|
+
lib_20.urlsConfig.setURls({
|
|
240
|
+
CORE_BASE_URL: coreApi,
|
|
241
|
+
DEBUG_MODE: debugMode,
|
|
242
|
+
});
|
|
234
243
|
lib_4.urlsConfig.setURls({
|
|
235
244
|
CORE_BASE_URL: coreApi,
|
|
236
245
|
DEBUG_MODE: debugMode,
|
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.151",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -24,13 +24,14 @@
|
|
|
24
24
|
"@aprilium/tripsm_trip-hotel": "^0.0.6",
|
|
25
25
|
"@aprilium/tripsm_identity": "^0.0.4",
|
|
26
26
|
"@aprilium/tripsm_luggage": "^0.0.5",
|
|
27
|
+
"@aprilium/tripsm_luggage-tracking": "^0.0.2",
|
|
27
28
|
"@aprilium/tripsm_passenger-group": "^0.0.3",
|
|
28
29
|
"@aprilium/tripsm_ticket": "^0.0.4",
|
|
29
30
|
"@aprilium/tripsm_visa": "^0.0.3",
|
|
30
31
|
"@aprilium/tripsm_visa-category": "^0.0.5",
|
|
31
32
|
"@aprilium/tripsm_visa-status": "^0.0.4",
|
|
32
33
|
"@aprilium/tripsm_visa-type": "^0.0.4",
|
|
33
|
-
"@aprilium/tripsm_visa-request": "^0.0.
|
|
34
|
+
"@aprilium/tripsm_visa-request": "^0.0.5",
|
|
34
35
|
"@aprilium/tripsm_relation": "^0.0.1",
|
|
35
36
|
|
|
36
37
|
"@types/react": "^17.0.0",
|