@aprilium/tripsm_global-states 0.0.355 → 0.0.357
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 -1
- package/lib/index.js +9 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -32,11 +32,13 @@ import { State as customerState } from "@aprilium/tripsm_customer/lib/state";
|
|
|
32
32
|
import { State as tripTransportationState } from "@aprilium/tripsm_trip-transportation/lib/state";
|
|
33
33
|
import { State as roomState } from "@aprilium/tripsm_room/lib/state";
|
|
34
34
|
import { State as packState } from "@aprilium/tripsm_pack/lib/state";
|
|
35
|
+
import { State as passengerPathologyState } from "@aprilium/tripsm_passenger-pathology/lib/state";
|
|
35
36
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
36
37
|
import HotelSaga from "@aprilium/tripsm_hotel/lib/effects";
|
|
37
38
|
import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
38
39
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
39
40
|
import PackSaga from "@aprilium/tripsm_pack/lib/effects";
|
|
41
|
+
import PassengerPathologySaga from "@aprilium/tripsm_passenger-pathology/lib/effects";
|
|
40
42
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
41
43
|
export declare const reducers: {
|
|
42
44
|
passengersState: any;
|
|
@@ -68,6 +70,7 @@ export declare const reducers: {
|
|
|
68
70
|
paymentHistory: any;
|
|
69
71
|
customer: any;
|
|
70
72
|
tripTransportation: any;
|
|
73
|
+
passengerPathology: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pathology/lib/state").PassengerPathologyState>;
|
|
71
74
|
};
|
|
72
75
|
export declare const initialSagas: {
|
|
73
76
|
passenger: any;
|
|
@@ -99,6 +102,7 @@ export declare const initialSagas: {
|
|
|
99
102
|
paymentHistory: any;
|
|
100
103
|
customer: any;
|
|
101
104
|
tripTransportation: any;
|
|
105
|
+
passengerPathology: typeof PassengerPathologySaga;
|
|
102
106
|
};
|
|
103
107
|
export type States = {
|
|
104
108
|
passengersState: passengersState;
|
|
@@ -130,8 +134,9 @@ export type States = {
|
|
|
130
134
|
room: roomState;
|
|
131
135
|
pack: packState;
|
|
132
136
|
tripTransportation: tripTransportationState;
|
|
137
|
+
passengerPathology: passengerPathologyState;
|
|
133
138
|
};
|
|
134
|
-
export type StateName = "passenger-pack" | "room" | "pack" | "guest" | "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "passengerHotel" | "tripHotel" | "hotel" | "ticket" | "passenger-group" | "luggage" | "luggage-tracking" | "identity-type" | "relation" | "trip" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation";
|
|
139
|
+
export type StateName = "passenger-pack" | "room" | "pack" | "guest" | "passengersState" | "constants" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "passengerHotel" | "tripHotel" | "hotel" | "ticket" | "passenger-group" | "luggage" | "luggage-tracking" | "identity-type" | "relation" | "trip" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation" | "passenger-pathology";
|
|
135
140
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
136
141
|
export declare const sagas: any[];
|
|
137
142
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
package/lib/index.js
CHANGED
|
@@ -86,6 +86,7 @@ var lib_27 = require("@aprilium/tripsm_customer/lib");
|
|
|
86
86
|
var lib_28 = require("@aprilium/tripsm_trip-transportation/lib");
|
|
87
87
|
var lib_29 = require("@aprilium/tripsm_room/lib");
|
|
88
88
|
var lib_30 = require("@aprilium/tripsm_pack/lib");
|
|
89
|
+
var lib_31 = require("@aprilium/tripsm_passenger-pathology/lib");
|
|
89
90
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
90
91
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
91
92
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -115,6 +116,7 @@ var state_26 = require("@aprilium/tripsm_customer/lib/state");
|
|
|
115
116
|
var state_27 = require("@aprilium/tripsm_trip-transportation/lib/state");
|
|
116
117
|
var state_28 = require("@aprilium/tripsm_room/lib/state");
|
|
117
118
|
var state_29 = require("@aprilium/tripsm_pack/lib/state");
|
|
119
|
+
var state_30 = require("@aprilium/tripsm_passenger-pathology/lib/state");
|
|
118
120
|
//import sagas
|
|
119
121
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
120
122
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -145,6 +147,7 @@ var effects_27 = __importDefault(require("@aprilium/tripsm_customer/lib/effects"
|
|
|
145
147
|
var effects_28 = __importDefault(require("@aprilium/tripsm_trip-transportation/lib/effects"));
|
|
146
148
|
var effects_29 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
|
|
147
149
|
var effects_30 = __importDefault(require("@aprilium/tripsm_pack/lib/effects"));
|
|
150
|
+
var effects_31 = __importDefault(require("@aprilium/tripsm_passenger-pathology/lib/effects"));
|
|
148
151
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
149
152
|
exports.reducers = {
|
|
150
153
|
passengersState: state_22.passengerReducerFunction,
|
|
@@ -176,6 +179,7 @@ exports.reducers = {
|
|
|
176
179
|
paymentHistory: state_25.PaymentHistoryReducerFunction,
|
|
177
180
|
customer: state_26.CustomerReducerFunction,
|
|
178
181
|
tripTransportation: state_27.TripTransportationReducerFunction,
|
|
182
|
+
passengerPathology: state_30.PassengerPathologyReducerFunction,
|
|
179
183
|
};
|
|
180
184
|
exports.initialSagas = {
|
|
181
185
|
passenger: effects_2.default,
|
|
@@ -207,6 +211,7 @@ exports.initialSagas = {
|
|
|
207
211
|
paymentHistory: effects_26.default,
|
|
208
212
|
customer: effects_27.default,
|
|
209
213
|
tripTransportation: effects_28.default,
|
|
214
|
+
passengerPathology: effects_31.default,
|
|
210
215
|
};
|
|
211
216
|
function setUrlConfig(coreApi, debugMode) {
|
|
212
217
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -330,6 +335,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
330
335
|
CORE_BASE_URL: coreApi,
|
|
331
336
|
DEBUG_MODE: debugMode,
|
|
332
337
|
});
|
|
338
|
+
lib_31.urlsConfig.setURls({
|
|
339
|
+
CORE_BASE_URL: coreApi,
|
|
340
|
+
DEBUG_MODE: debugMode,
|
|
341
|
+
});
|
|
333
342
|
}
|
|
334
343
|
exports.setUrlConfig = setUrlConfig;
|
|
335
344
|
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.357",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@aprilium/tripsm_customer": "^0.0.2",
|
|
42
42
|
"@aprilium/tripsm_trip-transportation": "^0.0.3",
|
|
43
43
|
"@aprilium/tripsm_room": "^0.0.7",
|
|
44
|
-
"@aprilium/tripsm_pack": "^0.0.
|
|
44
|
+
"@aprilium/tripsm_pack": "^0.0.5",
|
|
45
45
|
"@aprilium/tripsm_passenger-pathology": "^0.0.1",
|
|
46
46
|
|
|
47
47
|
"@types/react": "^17.0.0",
|