@aprilium/tripsm_global-states 0.0.121 → 0.0.123
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 +3 -3
- package/lib/index.js +5 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { State as visaStatusState } from "@aprilium/tripsm_visa-status/lib/state
|
|
|
10
10
|
import { State as visaTypeState } from "@aprilium/tripsm_visa-type/lib/state";
|
|
11
11
|
import { State as passengerState } from "@aprilium/tripsm_passenger/lib/state";
|
|
12
12
|
import { State as constantState } from "@aprilium/tripsm_constants/lib/state";
|
|
13
|
-
import { State as
|
|
13
|
+
import { State as TripState } from "@aprilium/tripsm_trip/lib/state";
|
|
14
14
|
import { State as groupState } from "@aprilium/tripsm_trip-group/lib/state";
|
|
15
15
|
import { State as userState } from "@aprilium/tripsm_user/lib/state";
|
|
16
16
|
import { State as identityState } from "@aprilium/tripsm_identity/lib/state";
|
|
@@ -84,7 +84,7 @@ export type States = {
|
|
|
84
84
|
passenger: passengerState;
|
|
85
85
|
constants: constantState;
|
|
86
86
|
group: groupState;
|
|
87
|
-
trip:
|
|
87
|
+
trip: TripState;
|
|
88
88
|
user: userState;
|
|
89
89
|
visaType: visaTypeState;
|
|
90
90
|
visaStatus: visaStatusState;
|
|
@@ -100,7 +100,7 @@ export type States = {
|
|
|
100
100
|
luggage: luggageState;
|
|
101
101
|
identityType: identityTypeState;
|
|
102
102
|
};
|
|
103
|
-
export type StateName = "passenger" | "constants" | "
|
|
103
|
+
export type StateName = "passenger" | "constants" | "Trip" | "group" | "user" | "visaType" | "visaCategory" | "VisaStatus" | "visa" | "visaRequest" | "identity" | "PassengerHotel" | "hotel" | "ticket" | "PassengerGroup" | "luggage" | "IdentityType";
|
|
104
104
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
105
105
|
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof groupSaga | typeof userSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof LuggageSaga | typeof IdentityTypeSaga | typeof TripSaga)[];
|
|
106
106
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
package/lib/index.js
CHANGED
|
@@ -73,6 +73,7 @@ var lib_14 = require("@aprilium/tripsm_trip-hotel/lib");
|
|
|
73
73
|
var lib_15 = require("@aprilium/tripsm_passenger-group/lib");
|
|
74
74
|
var lib_16 = require("@aprilium/tripsm_luggage/lib");
|
|
75
75
|
var lib_17 = require("@aprilium/tripsm_identity-type/lib");
|
|
76
|
+
var lib_18 = require("@aprilium/tripsm_trip/lib");
|
|
76
77
|
var state_1 = require("@aprilium/tripsm_visa/lib/state");
|
|
77
78
|
var state_2 = require("@aprilium/tripsm_visa-request/lib/state");
|
|
78
79
|
var state_3 = require("@aprilium/tripsm_visa-category/lib/state");
|
|
@@ -221,6 +222,10 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
221
222
|
CORE_BASE_URL: coreApi,
|
|
222
223
|
DEBUG_MODE: debugMode,
|
|
223
224
|
});
|
|
225
|
+
lib_18.urlsConfig.setURls({
|
|
226
|
+
CORE_BASE_URL: coreApi,
|
|
227
|
+
DEBUG_MODE: debugMode,
|
|
228
|
+
});
|
|
224
229
|
}
|
|
225
230
|
exports.setUrlConfig = setUrlConfig;
|
|
226
231
|
exports.sagas = Object.keys(exports.initialSagas).map(function (key) { return exports.initialSagas[key]; });
|