@aprilium/tripsm_global-states 0.0.396 → 0.0.398
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 +58 -71
- package/lib/index.js +18 -0
- package/package.json +6 -4
package/lib/index.d.ts
CHANGED
|
@@ -34,103 +34,88 @@ import { State as roomState } from "@aprilium/tripsm_room/lib/state";
|
|
|
34
34
|
import { State as packState } from "@aprilium/tripsm_pack/lib/state";
|
|
35
35
|
import { State as passengerPathologyState } from "@aprilium/tripsm_passenger-pathology/lib/state";
|
|
36
36
|
import { State as packOptionState } from "@aprilium/tripsm_pack-options/lib/state";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
37
|
+
import { State as packHotelState } from "@aprilium/tripsm_pack-hotel/lib/state";
|
|
38
|
+
import { State as packTransportationState } from "@aprilium/tripsm_pack-transportation/lib/state";
|
|
39
39
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
40
|
-
import groupSaga from "@aprilium/tripsm_trip-group/lib/effects";
|
|
41
40
|
import userSaga from "@aprilium/tripsm_user/lib/effects";
|
|
42
|
-
import guestSaga from "@aprilium/tripsm_guest/lib/effects";
|
|
43
|
-
import visaCategorySaga from "@aprilium/tripsm_visa-category/lib/effects";
|
|
44
|
-
import VisaStatusSaga from "@aprilium/tripsm_visa-status/lib/effects";
|
|
45
|
-
import VisaSaga from "@aprilium/tripsm_visa/lib/effects";
|
|
46
|
-
import VisaRequestSaga from "@aprilium/tripsm_visa-request/lib/effects";
|
|
47
|
-
import IdentitySaga from "@aprilium/tripsm_identity/lib/effects";
|
|
48
|
-
import PassengerHotelSaga from "@aprilium/tripsm_passenger-hotel/lib/effects";
|
|
49
41
|
import HotelSaga from "@aprilium/tripsm_hotel/lib/effects";
|
|
50
42
|
import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
51
43
|
import TripHotelSaga from "@aprilium/tripsm_trip-hotel/lib/effects";
|
|
52
|
-
import PassengerGroupSaga from "@aprilium/tripsm_passenger-group/lib/effects";
|
|
53
|
-
import PassengerPackSaga from "@aprilium/tripsm_passenger-pack/lib/effects";
|
|
54
|
-
import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
55
|
-
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
56
|
-
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
57
44
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
58
|
-
import TripSaga from "@aprilium/tripsm_trip/lib/effects";
|
|
59
|
-
import PaymentSaga from "@aprilium/tripsm_payment/lib/effects";
|
|
60
|
-
import ReservationSaga from "@aprilium/tripsm_reservation/lib/effects";
|
|
61
|
-
import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
|
|
62
|
-
import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
|
|
63
45
|
import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
|
|
64
|
-
import RoomSaga from "@aprilium/tripsm_room/lib/effects";
|
|
65
|
-
import PackSaga from "@aprilium/tripsm_pack/lib/effects";
|
|
66
46
|
import PassengerPathologySaga from "@aprilium/tripsm_passenger-pathology/lib/effects";
|
|
67
|
-
import
|
|
47
|
+
import PackHotelSaga from "@aprilium/tripsm_pack-hotel/lib/effects";
|
|
48
|
+
import PackTransportationSaga from "@aprilium/tripsm_pack-transportation/lib/effects";
|
|
68
49
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
69
50
|
export declare const reducers: {
|
|
70
|
-
passengersState:
|
|
51
|
+
passengersState: any;
|
|
71
52
|
constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
|
|
72
|
-
trip:
|
|
73
|
-
group:
|
|
53
|
+
trip: any;
|
|
54
|
+
group: any;
|
|
74
55
|
user: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_user/lib/state").UserState>;
|
|
75
|
-
guest:
|
|
76
|
-
visaType:
|
|
77
|
-
visaCategory:
|
|
78
|
-
visaStatus:
|
|
79
|
-
visa:
|
|
80
|
-
visaRequest:
|
|
81
|
-
identity:
|
|
82
|
-
passengerHotel:
|
|
56
|
+
guest: any;
|
|
57
|
+
visaType: any;
|
|
58
|
+
visaCategory: any;
|
|
59
|
+
visaStatus: any;
|
|
60
|
+
visa: any;
|
|
61
|
+
visaRequest: any;
|
|
62
|
+
identity: any;
|
|
63
|
+
passengerHotel: any;
|
|
83
64
|
hotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_hotel/lib/state").HotelState>;
|
|
84
65
|
ticket: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_ticket/lib/state").TicketState>;
|
|
85
66
|
tripHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-hotel/lib/state").TripHotelState>;
|
|
86
|
-
passengerGroup:
|
|
87
|
-
passengerPack:
|
|
88
|
-
luggage:
|
|
89
|
-
luggageTracking:
|
|
90
|
-
identityType:
|
|
67
|
+
passengerGroup: any;
|
|
68
|
+
passengerPack: any;
|
|
69
|
+
luggage: any;
|
|
70
|
+
luggageTracking: any;
|
|
71
|
+
identityType: any;
|
|
91
72
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
92
|
-
payment:
|
|
93
|
-
reservation:
|
|
94
|
-
room:
|
|
95
|
-
pack:
|
|
96
|
-
paymentHistory:
|
|
97
|
-
customer:
|
|
73
|
+
payment: any;
|
|
74
|
+
reservation: any;
|
|
75
|
+
room: any;
|
|
76
|
+
pack: any;
|
|
77
|
+
paymentHistory: any;
|
|
78
|
+
customer: any;
|
|
98
79
|
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
99
80
|
passengerPathology: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pathology/lib/state").PassengerPathologyState>;
|
|
100
|
-
packOption:
|
|
81
|
+
packOption: any;
|
|
82
|
+
packHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-hotel/lib/state").PackHotelState>;
|
|
83
|
+
packTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-transportation/lib/state").PackTransportationState>;
|
|
101
84
|
};
|
|
102
85
|
export declare const initialSagas: {
|
|
103
|
-
passenger:
|
|
86
|
+
passenger: any;
|
|
104
87
|
constants: typeof constantsSaga;
|
|
105
|
-
trip:
|
|
106
|
-
group:
|
|
88
|
+
trip: any;
|
|
89
|
+
group: any;
|
|
107
90
|
user: typeof userSaga;
|
|
108
|
-
guest:
|
|
109
|
-
visaType:
|
|
110
|
-
visaCategory:
|
|
111
|
-
visaStatus:
|
|
112
|
-
visa:
|
|
113
|
-
visaRequest:
|
|
114
|
-
identity:
|
|
115
|
-
passengerHotel:
|
|
91
|
+
guest: any;
|
|
92
|
+
visaType: any;
|
|
93
|
+
visaCategory: any;
|
|
94
|
+
visaStatus: any;
|
|
95
|
+
visa: any;
|
|
96
|
+
visaRequest: any;
|
|
97
|
+
identity: any;
|
|
98
|
+
passengerHotel: any;
|
|
116
99
|
hotel: typeof HotelSaga;
|
|
117
100
|
ticket: typeof TicketSaga;
|
|
118
101
|
tripHotel: typeof TripHotelSaga;
|
|
119
|
-
passengerGroup:
|
|
120
|
-
passengerPack:
|
|
121
|
-
luggage:
|
|
122
|
-
luggageTracking:
|
|
123
|
-
identityType:
|
|
102
|
+
passengerGroup: any;
|
|
103
|
+
passengerPack: any;
|
|
104
|
+
luggage: any;
|
|
105
|
+
luggageTracking: any;
|
|
106
|
+
identityType: any;
|
|
124
107
|
relation: typeof RelationSaga;
|
|
125
|
-
payment:
|
|
126
|
-
reservation:
|
|
127
|
-
room:
|
|
128
|
-
pack:
|
|
129
|
-
paymentHistory:
|
|
130
|
-
customer:
|
|
108
|
+
payment: any;
|
|
109
|
+
reservation: any;
|
|
110
|
+
room: any;
|
|
111
|
+
pack: any;
|
|
112
|
+
paymentHistory: any;
|
|
113
|
+
customer: any;
|
|
131
114
|
tripTransportation: typeof TripTransportationSaga;
|
|
132
115
|
passengerPathology: typeof PassengerPathologySaga;
|
|
133
|
-
packOption:
|
|
116
|
+
packOption: any;
|
|
117
|
+
packHotel: typeof PackHotelSaga;
|
|
118
|
+
packTransportation: typeof PackTransportationSaga;
|
|
134
119
|
};
|
|
135
120
|
export type States = {
|
|
136
121
|
passengersState: passengersState;
|
|
@@ -164,10 +149,12 @@ export type States = {
|
|
|
164
149
|
tripTransportation: tripTransportationState;
|
|
165
150
|
passengerPathology: passengerPathologyState;
|
|
166
151
|
packOption: packOptionState;
|
|
152
|
+
packHotel: packHotelState;
|
|
153
|
+
packTransportation: packTransportationState;
|
|
167
154
|
};
|
|
168
|
-
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" | "packOption";
|
|
155
|
+
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" | "packOption" | "pack-hotel" | "pack-transportation";
|
|
169
156
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
170
|
-
export declare const sagas:
|
|
157
|
+
export declare const sagas: any[];
|
|
171
158
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
172
159
|
waitForRehydrate?: boolean): void;
|
|
173
160
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -88,6 +88,8 @@ var lib_29 = require("@aprilium/tripsm_room/lib");
|
|
|
88
88
|
var lib_30 = require("@aprilium/tripsm_pack/lib");
|
|
89
89
|
var lib_31 = require("@aprilium/tripsm_passenger-pathology/lib");
|
|
90
90
|
var lib_32 = require("@aprilium/tripsm_pack-options/lib");
|
|
91
|
+
var lib_33 = require("@aprilium/tripsm_pack-hotel/lib");
|
|
92
|
+
var lib_34 = require("@aprilium/tripsm_pack-transportation/lib");
|
|
91
93
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
92
94
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
93
95
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -119,6 +121,8 @@ var state_28 = require("@aprilium/tripsm_room/lib/state");
|
|
|
119
121
|
var state_29 = require("@aprilium/tripsm_pack/lib/state");
|
|
120
122
|
var state_30 = require("@aprilium/tripsm_passenger-pathology/lib/state");
|
|
121
123
|
var state_31 = require("@aprilium/tripsm_pack-options/lib/state");
|
|
124
|
+
var state_32 = require("@aprilium/tripsm_pack-hotel/lib/state");
|
|
125
|
+
var state_33 = require("@aprilium/tripsm_pack-transportation/lib/state");
|
|
122
126
|
//import sagas
|
|
123
127
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
124
128
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -151,6 +155,8 @@ var effects_29 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
|
|
|
151
155
|
var effects_30 = __importDefault(require("@aprilium/tripsm_pack/lib/effects"));
|
|
152
156
|
var effects_31 = __importDefault(require("@aprilium/tripsm_passenger-pathology/lib/effects"));
|
|
153
157
|
var effects_32 = __importDefault(require("@aprilium/tripsm_pack-options/lib/effects"));
|
|
158
|
+
var effects_33 = __importDefault(require("@aprilium/tripsm_pack-hotel/lib/effects"));
|
|
159
|
+
var effects_34 = __importDefault(require("@aprilium/tripsm_pack-transportation/lib/effects"));
|
|
154
160
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
155
161
|
exports.reducers = {
|
|
156
162
|
passengersState: state_22.passengerReducerFunction,
|
|
@@ -184,6 +190,8 @@ exports.reducers = {
|
|
|
184
190
|
tripTransportation: state_27.TripTransportationReducerFunction,
|
|
185
191
|
passengerPathology: state_30.PassengerPathologyReducerFunction,
|
|
186
192
|
packOption: state_31.PackOptionReducerFunction,
|
|
193
|
+
packHotel: state_32.PackHotelReducerFunction,
|
|
194
|
+
packTransportation: state_33.PackTransportationReducerFunction,
|
|
187
195
|
};
|
|
188
196
|
exports.initialSagas = {
|
|
189
197
|
passenger: effects_2.default,
|
|
@@ -217,6 +225,8 @@ exports.initialSagas = {
|
|
|
217
225
|
tripTransportation: effects_28.default,
|
|
218
226
|
passengerPathology: effects_31.default,
|
|
219
227
|
packOption: effects_32.default,
|
|
228
|
+
packHotel: effects_33.default,
|
|
229
|
+
packTransportation: effects_34.default,
|
|
220
230
|
};
|
|
221
231
|
function setUrlConfig(coreApi, debugMode) {
|
|
222
232
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -348,6 +358,14 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
348
358
|
CORE_BASE_URL: coreApi,
|
|
349
359
|
DEBUG_MODE: debugMode,
|
|
350
360
|
});
|
|
361
|
+
lib_33.urlsConfig.setURls({
|
|
362
|
+
CORE_BASE_URL: coreApi,
|
|
363
|
+
DEBUG_MODE: debugMode,
|
|
364
|
+
});
|
|
365
|
+
lib_34.urlsConfig.setURls({
|
|
366
|
+
CORE_BASE_URL: coreApi,
|
|
367
|
+
DEBUG_MODE: debugMode,
|
|
368
|
+
});
|
|
351
369
|
}
|
|
352
370
|
exports.setUrlConfig = setUrlConfig;
|
|
353
371
|
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.398",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -33,17 +33,19 @@
|
|
|
33
33
|
"@aprilium/tripsm_reservation": "^0.0.12",
|
|
34
34
|
"@aprilium/tripsm_room": "^0.0.8",
|
|
35
35
|
"@aprilium/tripsm_ticket": "^0.0.26",
|
|
36
|
-
"@aprilium/tripsm_trip-hotel": "^0.0.
|
|
37
|
-
"@aprilium/tripsm_trip-transportation": "^0.0.
|
|
36
|
+
"@aprilium/tripsm_trip-hotel": "^0.0.17",
|
|
37
|
+
"@aprilium/tripsm_trip-transportation": "^0.0.6",
|
|
38
38
|
"@aprilium/tripsm_user": "^0.0.24",
|
|
39
39
|
"@aprilium/tripsm_visa": "^0.0.12",
|
|
40
40
|
"@aprilium/tripsm_visa-category": "^0.0.6",
|
|
41
41
|
"@aprilium/tripsm_visa-request": "^0.0.12",
|
|
42
42
|
"@aprilium/tripsm_visa-status": "^0.0.8",
|
|
43
43
|
"@aprilium/tripsm_visa-type": "^0.0.6",
|
|
44
|
-
"@aprilium/tripsm_pack": "^0.0.
|
|
44
|
+
"@aprilium/tripsm_pack": "^0.0.11",
|
|
45
45
|
"@aprilium/tripsm_passenger-pathology": "^0.0.6",
|
|
46
46
|
"@aprilium/tripsm_pack-options": "^0.0.2",
|
|
47
|
+
"@aprilium/tripsm_pack-hotel": "^0.0.2",
|
|
48
|
+
"@aprilium/tripsm_pack-transportation": "^0.0.1",
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
"@types/react": "^17.0.0",
|