@aprilium/tripsm_global-states 0.0.385 → 0.0.387
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 +79 -50
- package/lib/index.js +9 -0
- package/package.json +6 -4
package/lib/index.d.ts
CHANGED
|
@@ -33,76 +33,104 @@ import { State as tripTransportationState } from "@aprilium/tripsm_trip-transpor
|
|
|
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
35
|
import { State as passengerPathologyState } from "@aprilium/tripsm_passenger-pathology/lib/state";
|
|
36
|
+
import { State as packOptionState } from "@aprilium/tripsm_Pack-options/lib/state";
|
|
37
|
+
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
38
|
+
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
36
39
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
40
|
+
import groupSaga from "@aprilium/tripsm_trip-group/lib/effects";
|
|
37
41
|
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";
|
|
38
49
|
import HotelSaga from "@aprilium/tripsm_hotel/lib/effects";
|
|
39
50
|
import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
51
|
+
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";
|
|
40
57
|
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
|
+
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";
|
|
41
66
|
import PassengerPathologySaga from "@aprilium/tripsm_passenger-pathology/lib/effects";
|
|
67
|
+
import packOptionSaga from "@aprilium/tripsm_pack-options/lib/effects";
|
|
42
68
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
43
69
|
export declare const reducers: {
|
|
44
|
-
passengersState:
|
|
70
|
+
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/state").PassengerState>;
|
|
45
71
|
constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
|
|
46
|
-
trip:
|
|
47
|
-
group:
|
|
72
|
+
trip: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip/lib/state").TripState>;
|
|
73
|
+
group: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-group/lib/state").GroupState>;
|
|
48
74
|
user: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_user/lib/state").UserState>;
|
|
49
|
-
guest:
|
|
50
|
-
visaType:
|
|
51
|
-
visaCategory:
|
|
52
|
-
visaStatus:
|
|
53
|
-
visa:
|
|
54
|
-
visaRequest:
|
|
55
|
-
identity:
|
|
56
|
-
passengerHotel:
|
|
75
|
+
guest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_guest/lib/state").GuestState>;
|
|
76
|
+
visaType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa-type/lib/state").VisaTypeState>;
|
|
77
|
+
visaCategory: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa-category/lib/state").VisaCategoryState>;
|
|
78
|
+
visaStatus: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa-status/lib/state").VisaStatusState>;
|
|
79
|
+
visa: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa/lib/state").VisaState>;
|
|
80
|
+
visaRequest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_visa-request/lib/state").VisaRequestState>;
|
|
81
|
+
identity: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity/lib/state").IdentityState>;
|
|
82
|
+
passengerHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-hotel/lib/state").PassengerHotelState>;
|
|
57
83
|
hotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_hotel/lib/state").HotelState>;
|
|
58
84
|
ticket: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_ticket/lib/state").TicketState>;
|
|
59
|
-
tripHotel:
|
|
60
|
-
passengerGroup:
|
|
61
|
-
passengerPack:
|
|
62
|
-
luggage:
|
|
63
|
-
luggageTracking:
|
|
64
|
-
identityType:
|
|
85
|
+
tripHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-hotel/lib/state").TripHotelState>;
|
|
86
|
+
passengerGroup: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-group/lib/state").PassengerGroupState>;
|
|
87
|
+
passengerPack: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pack/lib/state").PassengerPackState>;
|
|
88
|
+
luggage: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage/lib/state").LuggageState>;
|
|
89
|
+
luggageTracking: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_luggage-tracking/lib/state").LuggageTrackingState>;
|
|
90
|
+
identityType: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity-type/lib/state").IdentityTypeState>;
|
|
65
91
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
66
|
-
payment:
|
|
67
|
-
reservation:
|
|
68
|
-
room:
|
|
69
|
-
pack:
|
|
70
|
-
paymentHistory:
|
|
71
|
-
customer:
|
|
72
|
-
tripTransportation:
|
|
92
|
+
payment: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment/lib/state").PaymentState>;
|
|
93
|
+
reservation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation/lib/state").ReservationState>;
|
|
94
|
+
room: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_room/lib/state").RoomState>;
|
|
95
|
+
pack: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack/lib/state").PackState>;
|
|
96
|
+
paymentHistory: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_payment-history/lib/state").PaymentHistoryState>;
|
|
97
|
+
customer: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_customer/lib/state").CustomerState>;
|
|
98
|
+
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
73
99
|
passengerPathology: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pathology/lib/state").PassengerPathologyState>;
|
|
100
|
+
packOption: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_Pack-options/lib/state").PackOptionState>;
|
|
74
101
|
};
|
|
75
102
|
export declare const initialSagas: {
|
|
76
|
-
passenger:
|
|
103
|
+
passenger: typeof passengerSaga;
|
|
77
104
|
constants: typeof constantsSaga;
|
|
78
|
-
trip:
|
|
79
|
-
group:
|
|
105
|
+
trip: typeof TripSaga;
|
|
106
|
+
group: typeof groupSaga;
|
|
80
107
|
user: typeof userSaga;
|
|
81
|
-
guest:
|
|
82
|
-
visaType:
|
|
83
|
-
visaCategory:
|
|
84
|
-
visaStatus:
|
|
85
|
-
visa:
|
|
86
|
-
visaRequest:
|
|
87
|
-
identity:
|
|
88
|
-
passengerHotel:
|
|
108
|
+
guest: typeof guestSaga;
|
|
109
|
+
visaType: typeof visaTypeSaga;
|
|
110
|
+
visaCategory: typeof visaCategorySaga;
|
|
111
|
+
visaStatus: typeof VisaStatusSaga;
|
|
112
|
+
visa: typeof VisaSaga;
|
|
113
|
+
visaRequest: typeof VisaRequestSaga;
|
|
114
|
+
identity: typeof IdentitySaga;
|
|
115
|
+
passengerHotel: typeof PassengerHotelSaga;
|
|
89
116
|
hotel: typeof HotelSaga;
|
|
90
117
|
ticket: typeof TicketSaga;
|
|
91
|
-
tripHotel:
|
|
92
|
-
passengerGroup:
|
|
93
|
-
passengerPack:
|
|
94
|
-
luggage:
|
|
95
|
-
luggageTracking:
|
|
96
|
-
identityType:
|
|
118
|
+
tripHotel: typeof TripHotelSaga;
|
|
119
|
+
passengerGroup: typeof PassengerGroupSaga;
|
|
120
|
+
passengerPack: typeof PassengerPackSaga;
|
|
121
|
+
luggage: typeof LuggageSaga;
|
|
122
|
+
luggageTracking: typeof LuggageTrackingSaga;
|
|
123
|
+
identityType: typeof IdentityTypeSaga;
|
|
97
124
|
relation: typeof RelationSaga;
|
|
98
|
-
payment:
|
|
99
|
-
reservation:
|
|
100
|
-
room:
|
|
101
|
-
pack:
|
|
102
|
-
paymentHistory:
|
|
103
|
-
customer:
|
|
104
|
-
tripTransportation:
|
|
125
|
+
payment: typeof PaymentSaga;
|
|
126
|
+
reservation: typeof ReservationSaga;
|
|
127
|
+
room: typeof RoomSaga;
|
|
128
|
+
pack: typeof PackSaga;
|
|
129
|
+
paymentHistory: typeof PaymentHistorySaga;
|
|
130
|
+
customer: typeof CustomerSaga;
|
|
131
|
+
tripTransportation: typeof TripTransportationSaga;
|
|
105
132
|
passengerPathology: typeof PassengerPathologySaga;
|
|
133
|
+
packOption: typeof packOptionSaga;
|
|
106
134
|
};
|
|
107
135
|
export type States = {
|
|
108
136
|
passengersState: passengersState;
|
|
@@ -135,10 +163,11 @@ export type States = {
|
|
|
135
163
|
pack: packState;
|
|
136
164
|
tripTransportation: tripTransportationState;
|
|
137
165
|
passengerPathology: passengerPathologyState;
|
|
166
|
+
packOption: packOptionState;
|
|
138
167
|
};
|
|
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";
|
|
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";
|
|
140
169
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
141
|
-
export declare const sagas:
|
|
170
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | typeof guestSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof PassengerPackSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof TripSaga | typeof PaymentSaga | typeof ReservationSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof RoomSaga | typeof PackSaga | typeof PassengerPathologySaga | typeof packOptionSaga)[];
|
|
142
171
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
143
172
|
waitForRehydrate?: boolean): void;
|
|
144
173
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -87,6 +87,7 @@ 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
89
|
var lib_31 = require("@aprilium/tripsm_passenger-pathology/lib");
|
|
90
|
+
var lib_32 = require("@aprilium/tripsm_pack-options/lib");
|
|
90
91
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
91
92
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
92
93
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -117,6 +118,7 @@ var state_27 = require("@aprilium/tripsm_trip-transportation/lib/state");
|
|
|
117
118
|
var state_28 = require("@aprilium/tripsm_room/lib/state");
|
|
118
119
|
var state_29 = require("@aprilium/tripsm_pack/lib/state");
|
|
119
120
|
var state_30 = require("@aprilium/tripsm_passenger-pathology/lib/state");
|
|
121
|
+
var state_31 = require("@aprilium/tripsm_Pack-options/lib/state");
|
|
120
122
|
//import sagas
|
|
121
123
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
122
124
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -148,6 +150,7 @@ var effects_28 = __importDefault(require("@aprilium/tripsm_trip-transportation/l
|
|
|
148
150
|
var effects_29 = __importDefault(require("@aprilium/tripsm_room/lib/effects"));
|
|
149
151
|
var effects_30 = __importDefault(require("@aprilium/tripsm_pack/lib/effects"));
|
|
150
152
|
var effects_31 = __importDefault(require("@aprilium/tripsm_passenger-pathology/lib/effects"));
|
|
153
|
+
var effects_32 = __importDefault(require("@aprilium/tripsm_pack-options/lib/effects"));
|
|
151
154
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
152
155
|
exports.reducers = {
|
|
153
156
|
passengersState: state_22.passengerReducerFunction,
|
|
@@ -180,6 +183,7 @@ exports.reducers = {
|
|
|
180
183
|
customer: state_26.CustomerReducerFunction,
|
|
181
184
|
tripTransportation: state_27.TripTransportationReducerFunction,
|
|
182
185
|
passengerPathology: state_30.PassengerPathologyReducerFunction,
|
|
186
|
+
packOption: state_31.PackOptionReducerFunction,
|
|
183
187
|
};
|
|
184
188
|
exports.initialSagas = {
|
|
185
189
|
passenger: effects_2.default,
|
|
@@ -212,6 +216,7 @@ exports.initialSagas = {
|
|
|
212
216
|
customer: effects_27.default,
|
|
213
217
|
tripTransportation: effects_28.default,
|
|
214
218
|
passengerPathology: effects_31.default,
|
|
219
|
+
packOption: effects_32.default,
|
|
215
220
|
};
|
|
216
221
|
function setUrlConfig(coreApi, debugMode) {
|
|
217
222
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -339,6 +344,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
339
344
|
CORE_BASE_URL: coreApi,
|
|
340
345
|
DEBUG_MODE: debugMode,
|
|
341
346
|
});
|
|
347
|
+
lib_32.urlsConfig.setURls({
|
|
348
|
+
CORE_BASE_URL: coreApi,
|
|
349
|
+
DEBUG_MODE: debugMode,
|
|
350
|
+
});
|
|
342
351
|
}
|
|
343
352
|
exports.setUrlConfig = setUrlConfig;
|
|
344
353
|
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.387",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@aprilium/tripsm_common": "^0.0.12",
|
|
16
|
-
"@aprilium/tripsm_constants": "^0.0.
|
|
16
|
+
"@aprilium/tripsm_constants": "^0.0.52",
|
|
17
17
|
"@aprilium/tripsm_customer": "^0.0.2",
|
|
18
18
|
"@aprilium/tripsm_guest": "^0.0.1",
|
|
19
19
|
"@aprilium/tripsm_hotel": "^0.0.10",
|
|
@@ -33,8 +33,8 @@
|
|
|
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.16",
|
|
37
|
+
"@aprilium/tripsm_trip-transportation": "^0.0.5",
|
|
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",
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
"@aprilium/tripsm_visa-type": "^0.0.6",
|
|
44
44
|
"@aprilium/tripsm_pack": "^0.0.8",
|
|
45
45
|
"@aprilium/tripsm_passenger-pathology": "^0.0.6",
|
|
46
|
+
"@aprilium/tripsm_pack-options": "^0.0.1",
|
|
47
|
+
|
|
46
48
|
|
|
47
49
|
"@types/react": "^17.0.0",
|
|
48
50
|
"axios": "^0.21.1",
|