@aprilium/tripsm_global-states 0.0.527 → 0.0.529
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 +38 -50
- package/lib/index.js +9 -1
- package/package.json +5 -4
package/lib/index.d.ts
CHANGED
|
@@ -39,16 +39,11 @@ import { State as packHotelState } from "@aprilium/tripsm_pack-hotel/lib/state";
|
|
|
39
39
|
import { State as packTransportationState } from "@aprilium/tripsm_pack-transportation/lib/state";
|
|
40
40
|
import { State as passengerLocationState } from "@aprilium/tripsm_passengers-location/lib/state";
|
|
41
41
|
import { State as reservationRequestState } from "@aprilium/tripsm_reservation-request/lib/state";
|
|
42
|
+
import { State as tripfavorisState } from "@aprilium/tripsm_reservation-request/lib/state";
|
|
42
43
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/effects";
|
|
43
|
-
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/effects";
|
|
44
44
|
import constantsSaga from "@aprilium/tripsm_constants/lib/effects";
|
|
45
|
-
import groupSaga from "@aprilium/tripsm_trip-group/lib/effects";
|
|
46
45
|
import userSaga from "@aprilium/tripsm_user/lib/effects";
|
|
47
46
|
import guestSaga from "@aprilium/tripsm_guest/lib/effects";
|
|
48
|
-
import visaCategorySaga from "@aprilium/tripsm_visa-category/lib/effects";
|
|
49
|
-
import VisaStatusSaga from "@aprilium/tripsm_visa-status/lib/effects";
|
|
50
|
-
import VisaSaga from "@aprilium/tripsm_visa/lib/effects";
|
|
51
|
-
import VisaRequestSaga from "@aprilium/tripsm_visa-request/lib/effects";
|
|
52
47
|
import IdentitySaga from "@aprilium/tripsm_identity/lib/effects";
|
|
53
48
|
import PassengerHotelSaga from "@aprilium/tripsm_passenger-hotel/lib/effects";
|
|
54
49
|
import HotelSaga from "@aprilium/tripsm_hotel/lib/effects";
|
|
@@ -56,24 +51,14 @@ import TicketSaga from "@aprilium/tripsm_ticket/lib/effects";
|
|
|
56
51
|
import TripHotelSaga from "@aprilium/tripsm_trip-hotel/lib/effects";
|
|
57
52
|
import PassengerGroupSaga from "@aprilium/tripsm_passenger-group/lib/effects";
|
|
58
53
|
import PassengerPackSaga from "@aprilium/tripsm_passenger-pack/lib/effects";
|
|
59
|
-
import LuggageSaga from "@aprilium/tripsm_luggage/lib/effects";
|
|
60
|
-
import LuggageTrackingSaga from "@aprilium/tripsm_luggage-tracking/lib/effects";
|
|
61
|
-
import IdentityTypeSaga from "@aprilium/tripsm_identity-type/lib/effects";
|
|
62
54
|
import RelationSaga from "@aprilium/tripsm_relation/lib/effects";
|
|
63
55
|
import TripSaga from "@aprilium/tripsm_trip/lib/effects";
|
|
64
56
|
import TripPictureSaga from "@aprilium/tripsm_trip-picture/lib/effects";
|
|
65
|
-
import PaymentSaga from "@aprilium/tripsm_payment/lib/effects";
|
|
66
|
-
import ReservationSaga from "@aprilium/tripsm_reservation/lib/effects";
|
|
67
|
-
import PaymentHistorySaga from "@aprilium/tripsm_payment-history/lib/effects";
|
|
68
|
-
import CustomerSaga from "@aprilium/tripsm_customer/lib/effects";
|
|
69
57
|
import TripTransportationSaga from "@aprilium/tripsm_trip-transportation/lib/effects";
|
|
70
|
-
import RoomSaga from "@aprilium/tripsm_room/lib/effects";
|
|
71
|
-
import PackSaga from "@aprilium/tripsm_pack/lib/effects";
|
|
72
58
|
import PassengerPathologySaga from "@aprilium/tripsm_passenger-pathology/lib/effects";
|
|
73
59
|
import packOptionSaga from "@aprilium/tripsm_pack-options/lib/effects";
|
|
74
60
|
import PackHotelSaga from "@aprilium/tripsm_pack-hotel/lib/effects";
|
|
75
61
|
import PackTransportationSaga from "@aprilium/tripsm_pack-transportation/lib/effects";
|
|
76
|
-
import PassengerLocationSaga from "@aprilium/tripsm_passengers-location/lib/effects";
|
|
77
62
|
import ReservationRequestSaga from "@aprilium/tripsm_reservation-request/lib/effects";
|
|
78
63
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
79
64
|
export declare const reducers: {
|
|
@@ -81,14 +66,14 @@ export declare const reducers: {
|
|
|
81
66
|
constants: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_constants/lib/state").ConstantState>;
|
|
82
67
|
trip: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip/lib/state").TripState>;
|
|
83
68
|
tripPicture: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-picture/lib/state").TripPictureState>;
|
|
84
|
-
group:
|
|
69
|
+
group: any;
|
|
85
70
|
user: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_user/lib/state").UserState>;
|
|
86
71
|
guest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_guest/lib/state").GuestState>;
|
|
87
|
-
visaType:
|
|
88
|
-
visaCategory:
|
|
89
|
-
visaStatus:
|
|
90
|
-
visa:
|
|
91
|
-
visaRequest:
|
|
72
|
+
visaType: any;
|
|
73
|
+
visaCategory: any;
|
|
74
|
+
visaStatus: any;
|
|
75
|
+
visa: any;
|
|
76
|
+
visaRequest: any;
|
|
92
77
|
identity: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_identity/lib/state").IdentityState>;
|
|
93
78
|
passengerHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-hotel/lib/state").PassengerHotelState>;
|
|
94
79
|
hotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_hotel/lib/state").HotelState>;
|
|
@@ -96,37 +81,38 @@ export declare const reducers: {
|
|
|
96
81
|
tripHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-hotel/lib/state").TripHotelState>;
|
|
97
82
|
passengerGroup: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-group/lib/state").PassengerGroupState>;
|
|
98
83
|
passengerPack: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pack/lib/state").PassengerPackState>;
|
|
99
|
-
luggage:
|
|
100
|
-
luggageTracking:
|
|
101
|
-
identityType:
|
|
84
|
+
luggage: any;
|
|
85
|
+
luggageTracking: any;
|
|
86
|
+
identityType: any;
|
|
102
87
|
relation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_relation/lib/state").RelationState>;
|
|
103
|
-
payment:
|
|
104
|
-
reservation:
|
|
105
|
-
room:
|
|
106
|
-
pack:
|
|
107
|
-
paymentHistory:
|
|
108
|
-
customer:
|
|
88
|
+
payment: any;
|
|
89
|
+
reservation: any;
|
|
90
|
+
room: any;
|
|
91
|
+
pack: any;
|
|
92
|
+
paymentHistory: any;
|
|
93
|
+
customer: any;
|
|
109
94
|
tripTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_trip-transportation/lib/state").TripTransportationState>;
|
|
110
95
|
passengerPathology: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger-pathology/lib/state").PassengerPathologyState>;
|
|
111
96
|
packOption: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-options/lib/state").PackOptionState>;
|
|
112
97
|
packHotel: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-hotel/lib/state").PackHotelState>;
|
|
113
98
|
packTransportation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_pack-transportation/lib/state").PackTransportationState>;
|
|
114
|
-
passengerLocation:
|
|
99
|
+
passengerLocation: any;
|
|
115
100
|
reservationRequest: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation-request/lib/state").ReservationRequestState>;
|
|
101
|
+
tripfavoris: any;
|
|
116
102
|
};
|
|
117
103
|
export declare const initialSagas: {
|
|
118
104
|
passenger: typeof passengerSaga;
|
|
119
105
|
constants: typeof constantsSaga;
|
|
120
106
|
trip: typeof TripSaga;
|
|
121
107
|
tripPicture: typeof TripPictureSaga;
|
|
122
|
-
group:
|
|
108
|
+
group: any;
|
|
123
109
|
user: typeof userSaga;
|
|
124
110
|
guest: typeof guestSaga;
|
|
125
|
-
visaType:
|
|
126
|
-
visaCategory:
|
|
127
|
-
visaStatus:
|
|
128
|
-
visa:
|
|
129
|
-
visaRequest:
|
|
111
|
+
visaType: any;
|
|
112
|
+
visaCategory: any;
|
|
113
|
+
visaStatus: any;
|
|
114
|
+
visa: any;
|
|
115
|
+
visaRequest: any;
|
|
130
116
|
identity: typeof IdentitySaga;
|
|
131
117
|
passengerHotel: typeof PassengerHotelSaga;
|
|
132
118
|
hotel: typeof HotelSaga;
|
|
@@ -134,23 +120,24 @@ export declare const initialSagas: {
|
|
|
134
120
|
tripHotel: typeof TripHotelSaga;
|
|
135
121
|
passengerGroup: typeof PassengerGroupSaga;
|
|
136
122
|
passengerPack: typeof PassengerPackSaga;
|
|
137
|
-
luggage:
|
|
138
|
-
luggageTracking:
|
|
139
|
-
identityType:
|
|
123
|
+
luggage: any;
|
|
124
|
+
luggageTracking: any;
|
|
125
|
+
identityType: any;
|
|
140
126
|
relation: typeof RelationSaga;
|
|
141
|
-
payment:
|
|
142
|
-
reservation:
|
|
143
|
-
room:
|
|
144
|
-
pack:
|
|
145
|
-
paymentHistory:
|
|
146
|
-
customer:
|
|
127
|
+
payment: any;
|
|
128
|
+
reservation: any;
|
|
129
|
+
room: any;
|
|
130
|
+
pack: any;
|
|
131
|
+
paymentHistory: any;
|
|
132
|
+
customer: any;
|
|
147
133
|
tripTransportation: typeof TripTransportationSaga;
|
|
148
134
|
passengerPathology: typeof PassengerPathologySaga;
|
|
149
135
|
packOption: typeof packOptionSaga;
|
|
150
136
|
packHotel: typeof PackHotelSaga;
|
|
151
137
|
packTransportation: typeof PackTransportationSaga;
|
|
152
|
-
passengerLocation:
|
|
138
|
+
passengerLocation: any;
|
|
153
139
|
reservationRequest: typeof ReservationRequestSaga;
|
|
140
|
+
tripFavoris: any;
|
|
154
141
|
};
|
|
155
142
|
export type States = {
|
|
156
143
|
passengersState: passengersState;
|
|
@@ -189,10 +176,11 @@ export type States = {
|
|
|
189
176
|
packTransportation: packTransportationState;
|
|
190
177
|
passengerLocation: passengerLocationState;
|
|
191
178
|
reservationRequest: reservationRequestState;
|
|
179
|
+
tripfavoris: tripfavorisState;
|
|
192
180
|
};
|
|
193
|
-
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" | "trip-picture" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation" | "passenger-pathology" | "packOption" | "pack-hotel" | "pack-transportation" | "passenger-location";
|
|
181
|
+
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" | "trip-picture" | "payment-state" | "payment-history" | "customer" | "reservation" | "trip-transportation" | "passenger-pathology" | "packOption" | "pack-hotel" | "pack-transportation" | "passenger-location" | "reservation-request" | "trip-favoris";
|
|
194
182
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
195
|
-
export declare const sagas:
|
|
183
|
+
export declare const sagas: any[];
|
|
196
184
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
197
185
|
waitForRehydrate?: boolean): void;
|
|
198
186
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -93,6 +93,7 @@ var lib_34 = require("@aprilium/tripsm_pack-hotel/lib");
|
|
|
93
93
|
var lib_35 = require("@aprilium/tripsm_pack-transportation/lib");
|
|
94
94
|
var lib_36 = require("@aprilium/tripsm_passengers-location/lib");
|
|
95
95
|
var lib_37 = require("@aprilium/tripsm_reservation-request/lib");
|
|
96
|
+
var lib_38 = require("@aprilium/tripsm_trip-favoris/lib");
|
|
96
97
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
97
98
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
98
99
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -129,6 +130,7 @@ var state_33 = require("@aprilium/tripsm_pack-hotel/lib/state");
|
|
|
129
130
|
var state_34 = require("@aprilium/tripsm_pack-transportation/lib/state");
|
|
130
131
|
var state_35 = require("@aprilium/tripsm_passengers-location/lib/state");
|
|
131
132
|
var state_36 = require("@aprilium/tripsm_reservation-request/lib/state");
|
|
133
|
+
var state_37 = require("@aprilium/tripsm_reservation-request/lib/state");
|
|
132
134
|
//import sagas
|
|
133
135
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/effects"));
|
|
134
136
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/effects"));
|
|
@@ -166,6 +168,7 @@ var effects_34 = __importDefault(require("@aprilium/tripsm_pack-hotel/lib/effect
|
|
|
166
168
|
var effects_35 = __importDefault(require("@aprilium/tripsm_pack-transportation/lib/effects"));
|
|
167
169
|
var effects_36 = __importDefault(require("@aprilium/tripsm_passengers-location/lib/effects"));
|
|
168
170
|
var effects_37 = __importDefault(require("@aprilium/tripsm_reservation-request/lib/effects"));
|
|
171
|
+
var effects_38 = __importDefault(require("@aprilium/tripsm_trip-favoris/lib/effects"));
|
|
169
172
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
170
173
|
exports.reducers = {
|
|
171
174
|
passengersState: state_23.passengerReducerFunction,
|
|
@@ -204,6 +207,7 @@ exports.reducers = {
|
|
|
204
207
|
packTransportation: state_34.PackTransportationReducerFunction,
|
|
205
208
|
passengerLocation: state_35.PassengerLocationReducerFunction,
|
|
206
209
|
reservationRequest: state_36.ReservationRequestReducerFunction,
|
|
210
|
+
tripfavoris: state_37.TripFavorisReducerFunction,
|
|
207
211
|
};
|
|
208
212
|
exports.initialSagas = {
|
|
209
213
|
passenger: effects_2.default,
|
|
@@ -242,8 +246,8 @@ exports.initialSagas = {
|
|
|
242
246
|
packTransportation: effects_35.default,
|
|
243
247
|
passengerLocation: effects_36.default,
|
|
244
248
|
reservationRequest: effects_37.default,
|
|
249
|
+
tripFavoris: effects_38.default,
|
|
245
250
|
};
|
|
246
|
-
"reservation-request";
|
|
247
251
|
function setUrlConfig(coreApi, debugMode) {
|
|
248
252
|
if (debugMode === void 0) { debugMode = false; }
|
|
249
253
|
lib_1.urlsConfig.setURls({
|
|
@@ -394,6 +398,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
394
398
|
CORE_BASE_URL: coreApi,
|
|
395
399
|
DEBUG_MODE: debugMode,
|
|
396
400
|
});
|
|
401
|
+
lib_38.urlsConfig.setURls({
|
|
402
|
+
CORE_BASE_URL: coreApi,
|
|
403
|
+
DEBUG_MODE: debugMode,
|
|
404
|
+
});
|
|
397
405
|
}
|
|
398
406
|
exports.setUrlConfig = setUrlConfig;
|
|
399
407
|
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.529",
|
|
4
4
|
"description": "global states",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"@aprilium/tripsm_guest": "^0.0.11",
|
|
19
19
|
"@aprilium/tripsm_hotel": "^0.0.11",
|
|
20
20
|
"@aprilium/tripsm_identity": "^0.0.27",
|
|
21
|
+
"@aprilium/tripsm_trip": "^0.0.45",
|
|
22
|
+
"@aprilium/tripsm_trip-group": "^0.0.24",
|
|
21
23
|
"@aprilium/tripsm_identity-type": "^0.0.10",
|
|
22
24
|
"@aprilium/tripsm_luggage": "^0.0.14",
|
|
23
25
|
"@aprilium/tripsm_luggage-tracking": "^0.0.10",
|
|
@@ -37,8 +39,6 @@
|
|
|
37
39
|
"@aprilium/tripsm_reservation": "^0.0.12",
|
|
38
40
|
"@aprilium/tripsm_room": "^0.0.8",
|
|
39
41
|
"@aprilium/tripsm_ticket": "^0.0.26",
|
|
40
|
-
"@aprilium/tripsm_trip": "^0.0.44",
|
|
41
|
-
"@aprilium/tripsm_trip-group": "^0.0.24",
|
|
42
42
|
"@aprilium/tripsm_trip-hotel": "^0.0.18",
|
|
43
43
|
"@aprilium/tripsm_trip-picture": "^0.0.9",
|
|
44
44
|
"@aprilium/tripsm_trip-transportation": "^0.0.13",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@aprilium/tripsm_visa-status": "^0.0.9",
|
|
50
50
|
"@aprilium/tripsm_visa-type": "^0.0.7",
|
|
51
51
|
"@aprilium/tripsm_reservation-request": "^0.0.2",
|
|
52
|
+
"@aprilium/tripsm_trip-favoris": "^0.0.1",
|
|
52
53
|
"@types/react": "^17.0.0",
|
|
53
54
|
"axios": "^0.21.1",
|
|
54
55
|
"dotenv": "^16.4.5",
|
|
@@ -64,4 +65,4 @@
|
|
|
64
65
|
},
|
|
65
66
|
"author": "Jomma",
|
|
66
67
|
"license": "ISC"
|
|
67
|
-
}
|
|
68
|
+
}
|