@aprilium/tripsm_global-states 0.0.332 → 0.0.333
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 +52 -82
- package/lib/index.js +0 -9
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -29,92 +29,63 @@ import { State as reservationState } from "@aprilium/tripsm_reservation/lib/stat
|
|
|
29
29
|
import { State as paymentHistorysState } from "@aprilium/tripsm_payment-history/lib/state";
|
|
30
30
|
import { State as customerState } from "@aprilium/tripsm_customer/lib/state";
|
|
31
31
|
import { State as tripTransportationState } from "@aprilium/tripsm_trip-transportation/lib/state";
|
|
32
|
-
import { State as roomState } from "@aprilium/tripsm_room/lib/state";
|
|
33
|
-
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
34
|
-
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
35
32
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
36
|
-
import groupSaga from "@aprilium/tripsm_trip-group/lib/effects";
|
|
37
|
-
import userSaga from "@aprilium/tripsm_user/lib/effects";
|
|
38
|
-
import guestSaga from "@aprilium/tripsm_guest/lib/effects";
|
|
39
|
-
import visaCategorySaga from "@aprilium/tripsm_visa-category/lib/effects";
|
|
40
|
-
import VisaStatusSaga from "@aprilium/tripsm_visa-status/lib/effects";
|
|
41
|
-
import VisaSaga from "@aprilium/tripsm_visa/lib/effects";
|
|
42
|
-
import VisaRequestSaga from "@aprilium/tripsm_visa-request/lib/effects";
|
|
43
|
-
import IdentitySaga from "@aprilium/tripsm_identity/lib/effects";
|
|
44
|
-
import PassengerHotelSaga from "@aprilium/tripsm_passenger-hotel/lib/effects";
|
|
45
|
-
import HotelSaga from "@aprilium/tripsm_hotel/lib/effects";
|
|
46
|
-
import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
47
|
-
import TripHotelSaga from "@aprilium/tripsm_trip-hotel/lib/effects";
|
|
48
|
-
import PassengerGroupSaga from "@aprilium/tripsm_passenger-group/lib/effects";
|
|
49
|
-
import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
50
|
-
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
51
|
-
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
52
|
-
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
53
|
-
import TripSaga from "@aprilium/tripsm_trip/lib/effects";
|
|
54
|
-
import PaymentSaga from "@aprilium/tripsm_payment/lib/effects";
|
|
55
|
-
import ReservationSaga from "@aprilium/tripsm_reservation/lib/effects";
|
|
56
|
-
import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
|
|
57
|
-
import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
|
|
58
|
-
import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
|
|
59
|
-
import RoomSaga from "@aprilium/tripsm_room/lib/effects";
|
|
60
33
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
61
34
|
export declare const reducers: {
|
|
62
|
-
passengersState:
|
|
35
|
+
passengersState: any;
|
|
63
36
|
constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
|
|
64
|
-
trip:
|
|
65
|
-
group:
|
|
66
|
-
user:
|
|
67
|
-
guest:
|
|
68
|
-
visaType:
|
|
69
|
-
visaCategory:
|
|
70
|
-
visaStatus:
|
|
71
|
-
visa:
|
|
72
|
-
visaRequest:
|
|
73
|
-
identity:
|
|
74
|
-
passengerHotel:
|
|
75
|
-
hotel:
|
|
76
|
-
ticket:
|
|
77
|
-
tripHotel:
|
|
78
|
-
passengerGroup:
|
|
79
|
-
luggage:
|
|
80
|
-
luggageTracking:
|
|
81
|
-
identityType:
|
|
82
|
-
relation:
|
|
83
|
-
payment:
|
|
84
|
-
reservation:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
37
|
+
trip: any;
|
|
38
|
+
group: any;
|
|
39
|
+
user: any;
|
|
40
|
+
guest: any;
|
|
41
|
+
visaType: any;
|
|
42
|
+
visaCategory: any;
|
|
43
|
+
visaStatus: any;
|
|
44
|
+
visa: any;
|
|
45
|
+
visaRequest: any;
|
|
46
|
+
identity: any;
|
|
47
|
+
passengerHotel: any;
|
|
48
|
+
hotel: any;
|
|
49
|
+
ticket: any;
|
|
50
|
+
tripHotel: any;
|
|
51
|
+
passengerGroup: any;
|
|
52
|
+
luggage: any;
|
|
53
|
+
luggageTracking: any;
|
|
54
|
+
identityType: any;
|
|
55
|
+
relation: any;
|
|
56
|
+
payment: any;
|
|
57
|
+
reservation: any;
|
|
58
|
+
paymentHistory: any;
|
|
59
|
+
customer: any;
|
|
60
|
+
tripTransportation: any;
|
|
89
61
|
};
|
|
90
62
|
export declare const initialSagas: {
|
|
91
|
-
passenger:
|
|
63
|
+
passenger: any;
|
|
92
64
|
constants: typeof constantsSaga;
|
|
93
|
-
trip:
|
|
94
|
-
group:
|
|
95
|
-
user:
|
|
96
|
-
guest:
|
|
97
|
-
visaType:
|
|
98
|
-
visaCategory:
|
|
99
|
-
visaStatus:
|
|
100
|
-
visa:
|
|
101
|
-
visaRequest:
|
|
102
|
-
identity:
|
|
103
|
-
passengerHotel:
|
|
104
|
-
hotel:
|
|
105
|
-
ticket:
|
|
106
|
-
tripHotel:
|
|
107
|
-
passengerGroup:
|
|
108
|
-
luggage:
|
|
109
|
-
luggageTracking:
|
|
110
|
-
identityType:
|
|
111
|
-
relation:
|
|
112
|
-
payment:
|
|
113
|
-
reservation:
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
tripTransportation: typeof TripTransportationSaga;
|
|
65
|
+
trip: any;
|
|
66
|
+
group: any;
|
|
67
|
+
user: any;
|
|
68
|
+
guest: any;
|
|
69
|
+
visaType: any;
|
|
70
|
+
visaCategory: any;
|
|
71
|
+
visaStatus: any;
|
|
72
|
+
visa: any;
|
|
73
|
+
visaRequest: any;
|
|
74
|
+
identity: any;
|
|
75
|
+
passengerHotel: any;
|
|
76
|
+
hotel: any;
|
|
77
|
+
ticket: any;
|
|
78
|
+
tripHotel: any;
|
|
79
|
+
passengerGroup: any;
|
|
80
|
+
luggage: any;
|
|
81
|
+
luggageTracking: any;
|
|
82
|
+
identityType: any;
|
|
83
|
+
relation: any;
|
|
84
|
+
payment: any;
|
|
85
|
+
reservation: any;
|
|
86
|
+
paymentHistory: any;
|
|
87
|
+
customer: any;
|
|
88
|
+
tripTransportation: any;
|
|
118
89
|
};
|
|
119
90
|
export type States = {
|
|
120
91
|
passengersState: passengersState;
|
|
@@ -142,12 +113,11 @@ export type States = {
|
|
|
142
113
|
paymentHistory: paymentHistorysState;
|
|
143
114
|
customer: customerState;
|
|
144
115
|
reservation: reservationState;
|
|
145
|
-
room: roomState;
|
|
146
116
|
tripTransportation: tripTransportationState;
|
|
147
117
|
};
|
|
148
|
-
export type StateName = "
|
|
118
|
+
export type StateName = "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";
|
|
149
119
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
150
|
-
export declare const sagas:
|
|
120
|
+
export declare const sagas: any[];
|
|
151
121
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
152
122
|
waitForRehydrate?: boolean): void;
|
|
153
123
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -83,7 +83,6 @@ var lib_24 = require("@aprilium/tripsm_reservation/lib");
|
|
|
83
83
|
var lib_25 = require("@aprilium/tripsm_payment-history/lib");
|
|
84
84
|
var lib_26 = require("@aprilium/tripsm_customer/lib");
|
|
85
85
|
var lib_27 = require("@aprilium/tripsm_trip-transportation/lib");
|
|
86
|
-
var lib_28 = require("@aprilium/tripsm_room/lib");
|
|
87
86
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
88
87
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
89
88
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -110,7 +109,6 @@ var state_23 = require("@aprilium/tripsm_reservation/lib/state");
|
|
|
110
109
|
var state_24 = require("@aprilium/tripsm_payment-history/lib/state");
|
|
111
110
|
var state_25 = require("@aprilium/tripsm_customer/lib/state");
|
|
112
111
|
var state_26 = require("@aprilium/tripsm_trip-transportation/lib/state");
|
|
113
|
-
var state_27 = require("@aprilium/tripsm_room/lib/state");
|
|
114
112
|
//import sagas
|
|
115
113
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
116
114
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -138,7 +136,6 @@ var effects_24 = __importDefault(require("@aprilium/tripsm_reservation/lib/effec
|
|
|
138
136
|
var effects_25 = __importDefault(require("@aprilium/tripsm_payment-history/lib/effects"));
|
|
139
137
|
var effects_26 = __importDefault(require("@aprilium/tripsm_customer/lib/effects"));
|
|
140
138
|
var effects_27 = __importDefault(require("@aprilium/tripsm_trip-transportation/lib/effects"));
|
|
141
|
-
var effects_28 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
|
|
142
139
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
143
140
|
exports.reducers = {
|
|
144
141
|
passengersState: state_21.passengerReducerFunction,
|
|
@@ -164,7 +161,6 @@ exports.reducers = {
|
|
|
164
161
|
relation: state_19.RelationReducerFunction,
|
|
165
162
|
payment: state_22.PaymentReducerFunction,
|
|
166
163
|
reservation: state_23.ReservationReducerFunction,
|
|
167
|
-
room: state_27.RoomReducerFunction,
|
|
168
164
|
paymentHistory: state_24.PaymentHistoryReducerFunction,
|
|
169
165
|
customer: state_25.CustomerReducerFunction,
|
|
170
166
|
tripTransportation: state_26.TripTransportationReducerFunction,
|
|
@@ -193,7 +189,6 @@ exports.initialSagas = {
|
|
|
193
189
|
relation: effects_21.default,
|
|
194
190
|
payment: effects_23.default,
|
|
195
191
|
reservation: effects_24.default,
|
|
196
|
-
room: effects_28.default,
|
|
197
192
|
paymentHistory: effects_25.default,
|
|
198
193
|
customer: effects_26.default,
|
|
199
194
|
tripTransportation: effects_27.default,
|
|
@@ -216,10 +211,6 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
216
211
|
CORE_BASE_URL: coreApi,
|
|
217
212
|
DEBUG_MODE: debugMode,
|
|
218
213
|
});
|
|
219
|
-
lib_28.urlsConfig.setURls({
|
|
220
|
-
CORE_BASE_URL: coreApi,
|
|
221
|
-
DEBUG_MODE: debugMode,
|
|
222
|
-
});
|
|
223
214
|
lib_4.urlsConfig.setURls({
|
|
224
215
|
CORE_BASE_URL: coreApi,
|
|
225
216
|
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.333",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@aprilium/tripsm_passenger": "^0.0.80",
|
|
16
|
-
"@aprilium/tripsm_room": "^0.0.1",
|
|
17
16
|
"@aprilium/tripsm_common": "^0.0.7",
|
|
18
|
-
"@aprilium/tripsm_constants": "^0.0.
|
|
17
|
+
"@aprilium/tripsm_constants": "^0.0.43",
|
|
19
18
|
"@aprilium/tripsm_trip": "^0.0.28",
|
|
20
19
|
"@aprilium/tripsm_trip-group": "^0.0.24",
|
|
21
20
|
"@aprilium/tripsm_hotel": "^0.0.9",
|
|
@@ -40,6 +39,7 @@
|
|
|
40
39
|
"@aprilium/tripsm_payment-history": "^0.0.4",
|
|
41
40
|
"@aprilium/tripsm_customer": "^0.0.2",
|
|
42
41
|
"@aprilium/tripsm_trip-transportation": "^0.0.3",
|
|
42
|
+
"@aprilium/tripsm_room": "^0.0.1",
|
|
43
43
|
"@types/react": "^17.0.0",
|
|
44
44
|
"axios": "^0.21.1",
|
|
45
45
|
"immer": "^9.0.15",
|