@aprilium/tripsm_global-states 0.0.883 → 0.0.885
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 +17 -2
- package/lib/index.js +27 -0
- package/package.json +8 -2
package/lib/index.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ import { State as passengerConversationState } from "@aprilium/tripsm_passenger-
|
|
|
50
50
|
import { State as reservationRequestUserSeenState } from "@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/state";
|
|
51
51
|
import { State as reservationRequestPassengerLinkState } from "@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/state";
|
|
52
52
|
import { State as permissionState } from "@aprilium/tripsm_permission/lib/packages/permission/src/state";
|
|
53
|
+
import { State as supportConversationState } from "@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/state";
|
|
54
|
+
import { State as messageSupportState } from "@aprilium/tripsm_message-support/lib/packages/message-support/src/state";
|
|
55
|
+
import { State as conversationNotificationState } from "@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/state";
|
|
53
56
|
import passengerSaga from "@aprilium/tripsm_passenger/lib/packages/passenger/src/effects";
|
|
54
57
|
import visaTypeSaga from "@aprilium/tripsm_visa-type/lib/packages/visa-type/src/effects";
|
|
55
58
|
import constantsSaga from "@aprilium/tripsm_constants/lib/packages/constant/src/effects";
|
|
@@ -97,6 +100,9 @@ import PassengerConversationSaga from "@aprilium/tripsm_passenger-conversation/l
|
|
|
97
100
|
import ConversationOneToOneSaga from "@aprilium/tripsm_private-conversation/lib/packages/private-conversation/src/effects";
|
|
98
101
|
import ReservationRequestUserSeenSaga from "@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/effects";
|
|
99
102
|
import ReservationRequestPassengerLinkSaga from "@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/effects";
|
|
103
|
+
import SupportConversationSaga from "@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/effects";
|
|
104
|
+
import MessageSupportSaga from "@aprilium/tripsm_message-support/lib/packages/message-support/src/effects";
|
|
105
|
+
import ConversationNotificationSaga from "@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/effects";
|
|
100
106
|
export declare const sagaMiddleware: import("redux-saga").SagaMiddleware<object>;
|
|
101
107
|
export declare const reducers: {
|
|
102
108
|
passengersState: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_passenger/lib/packages/passenger/src/state").PassengerState>;
|
|
@@ -146,6 +152,9 @@ export declare const reducers: {
|
|
|
146
152
|
reservationRequestUserSeen: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/state").ReservationRequestUserSeenState>;
|
|
147
153
|
reservationRequestPassengerLink: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/state").ReservationRequestPassengerLinkState>;
|
|
148
154
|
permission: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_permission/lib/packages/permission/src/state").PermissionState>;
|
|
155
|
+
supportConversation: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/state").SupportConversationState>;
|
|
156
|
+
messageSupport: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_message-support/lib/packages/message-support/src/state").MessageSupportState>;
|
|
157
|
+
conversationNotification: import("immer-reducer").ImmerReducerFunction<typeof import("@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/state").ConversationNotificationState>;
|
|
149
158
|
};
|
|
150
159
|
export declare const initialSagas: {
|
|
151
160
|
passenger: typeof passengerSaga;
|
|
@@ -195,6 +204,9 @@ export declare const initialSagas: {
|
|
|
195
204
|
reservationRequestUserSeen: typeof ReservationRequestUserSeenSaga;
|
|
196
205
|
reservationRequestPassengerLink: typeof ReservationRequestPassengerLinkSaga;
|
|
197
206
|
permission: typeof PermissionSaga;
|
|
207
|
+
supportConversation: typeof SupportConversationSaga;
|
|
208
|
+
messageSupport: typeof MessageSupportSaga;
|
|
209
|
+
conversationNotification: typeof ConversationNotificationSaga;
|
|
198
210
|
};
|
|
199
211
|
export type States = {
|
|
200
212
|
passengersState: passengersState;
|
|
@@ -244,10 +256,13 @@ export type States = {
|
|
|
244
256
|
reservationRequestUserSeen: reservationRequestUserSeenState;
|
|
245
257
|
reservationRequestPassengerLink: reservationRequestPassengerLinkState;
|
|
246
258
|
permission: permissionState;
|
|
259
|
+
supportConversation: supportConversationState;
|
|
260
|
+
messagageSupport: messageSupportState;
|
|
261
|
+
conversationNotification: conversationNotificationState;
|
|
247
262
|
};
|
|
248
|
-
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" | "hotelOptions" | "pack-hotel" | "pack-transportation" | "passenger-location" | "reservation-request" | "trip-favoris" | "guest-expo-token" | "favoris-pack" | "visa" | "passenger-conversation" | "message" | "reservation-request-seen" | "private-message" | "private-conversation" | "reservation-request-link" | "permission";
|
|
263
|
+
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" | "hotelOptions" | "pack-hotel" | "pack-transportation" | "passenger-location" | "reservation-request" | "trip-favoris" | "guest-expo-token" | "favoris-pack" | "visa" | "passenger-conversation" | "message" | "reservation-request-seen" | "private-message" | "private-conversation" | "reservation-request-link" | "permission" | "support-conversation" | "message-support" | "conversation-notification";
|
|
249
264
|
export declare function setUrlConfig(coreApi: string, debugMode?: boolean): void;
|
|
250
|
-
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof TripSaga | typeof TripPictureSaga | typeof groupSaga | typeof userSaga | typeof guestSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof MessageSaga | typeof MessageOneToOneSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof PassengerPackSaga | typeof TripFavorisSaga | typeof PackFavorisSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof PaymentSaga | typeof ReservationSaga | typeof RoomSaga | typeof PackSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof PassengerPathologySaga | typeof packOptionSaga | typeof hotelOptionsSaga | typeof PackHotelSaga | typeof PackTransportationSaga | typeof PassengerLocationSaga | typeof ReservationRequestSaga | typeof GuestExpoTokenSaga | typeof PassengerConversationSaga | typeof ConversationOneToOneSaga | typeof ReservationRequestUserSeenSaga | typeof ReservationRequestPassengerLinkSaga | typeof PermissionSaga)[];
|
|
265
|
+
export declare const sagas: (typeof passengerSaga | typeof constantsSaga | typeof TripSaga | typeof TripPictureSaga | typeof groupSaga | typeof userSaga | typeof guestSaga | typeof visaTypeSaga | typeof visaCategorySaga | typeof VisaStatusSaga | typeof VisaSaga | typeof MessageSaga | typeof MessageOneToOneSaga | typeof VisaRequestSaga | typeof IdentitySaga | typeof PassengerHotelSaga | typeof HotelSaga | typeof TicketSaga | typeof TripHotelSaga | typeof PassengerGroupSaga | typeof PassengerPackSaga | typeof TripFavorisSaga | typeof PackFavorisSaga | typeof LuggageSaga | typeof LuggageTrackingSaga | typeof IdentityTypeSaga | typeof RelationSaga | typeof PaymentSaga | typeof ReservationSaga | typeof RoomSaga | typeof PackSaga | typeof PaymentHistorySaga | typeof CustomerSaga | typeof TripTransportationSaga | typeof PassengerPathologySaga | typeof packOptionSaga | typeof hotelOptionsSaga | typeof PackHotelSaga | typeof PackTransportationSaga | typeof PassengerLocationSaga | typeof ReservationRequestSaga | typeof GuestExpoTokenSaga | typeof PassengerConversationSaga | typeof ConversationOneToOneSaga | typeof ReservationRequestUserSeenSaga | typeof ReservationRequestPassengerLinkSaga | typeof PermissionSaga | typeof SupportConversationSaga | typeof MessageSupportSaga | typeof ConversationNotificationSaga)[];
|
|
251
266
|
export declare function initSagaMiddleware(extraSagas?: Array<Saga>, // local sagas from frontEnd Client
|
|
252
267
|
waitForRehydrate?: boolean): void;
|
|
253
268
|
declare function configStore(extraMiddleWares: any[] | undefined, // Adding other middlewares
|
package/lib/index.js
CHANGED
|
@@ -104,6 +104,9 @@ var index_45 = require("@aprilium/tripsm_guest-expo-token/lib/packages/guest-exp
|
|
|
104
104
|
var index_46 = require("@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/index");
|
|
105
105
|
var index_47 = require("@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/index");
|
|
106
106
|
var index_48 = require("@aprilium/tripsm_permission/lib/packages/permission/src/index");
|
|
107
|
+
var index_49 = require("@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/index");
|
|
108
|
+
var index_50 = require("@aprilium/tripsm_message-support/lib/packages/message-support/src/index");
|
|
109
|
+
var index_51 = require("@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/index");
|
|
107
110
|
var state_1 = require("@aprilium/tripsm_private-message/lib/packages/private-message/src/state");
|
|
108
111
|
var state_2 = require("@aprilium/tripsm_private-conversation/lib/packages/private-conversation/src/state");
|
|
109
112
|
var state_3 = require("@aprilium/tripsm_message/lib/packages/message/src/state");
|
|
@@ -151,6 +154,9 @@ var state_44 = require("@aprilium/tripsm_passenger-conversation/lib/packages/pas
|
|
|
151
154
|
var state_45 = require("@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/state");
|
|
152
155
|
var state_46 = require("@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/state");
|
|
153
156
|
var state_47 = require("@aprilium/tripsm_permission/lib/packages/permission/src/state");
|
|
157
|
+
var state_48 = require("@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/state");
|
|
158
|
+
var state_49 = require("@aprilium/tripsm_message-support/lib/packages/message-support/src/state");
|
|
159
|
+
var state_50 = require("@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/state");
|
|
154
160
|
//import sagas
|
|
155
161
|
var effects_2 = __importDefault(require("@aprilium/tripsm_passenger/lib/packages/passenger/src/effects"));
|
|
156
162
|
var effects_3 = __importDefault(require("@aprilium/tripsm_visa-type/lib/packages/visa-type/src/effects"));
|
|
@@ -199,6 +205,9 @@ var effects_45 = __importDefault(require("@aprilium/tripsm_passenger-conversatio
|
|
|
199
205
|
var effects_46 = __importDefault(require("@aprilium/tripsm_private-conversation/lib/packages/private-conversation/src/effects"));
|
|
200
206
|
var effects_47 = __importDefault(require("@aprilium/tripsm_reservation-request-seen/lib/packages/reservation-request-seen/src/effects"));
|
|
201
207
|
var effects_48 = __importDefault(require("@aprilium/tripsm_reservation-request-link/lib/packages/reservation-request-link/src/effects"));
|
|
208
|
+
var effects_49 = __importDefault(require("@aprilium/tripsm_support-conversation/lib/packages/support-conversation/src/effects"));
|
|
209
|
+
var effects_50 = __importDefault(require("@aprilium/tripsm_message-support/lib/packages/message-support/src/effects"));
|
|
210
|
+
var effects_51 = __importDefault(require("@aprilium/tripsm_conversation-notification/lib/packages/conversation-notification/src/effects"));
|
|
202
211
|
exports.sagaMiddleware = (0, redux_saga_1.default)();
|
|
203
212
|
exports.reducers = {
|
|
204
213
|
passengersState: state_28.passengerReducerFunction,
|
|
@@ -248,6 +257,9 @@ exports.reducers = {
|
|
|
248
257
|
reservationRequestUserSeen: state_45.ReservationRequestUserSeenReducerFunction,
|
|
249
258
|
reservationRequestPassengerLink: state_46.ReservationRequestPassengerLinkReducerFunction,
|
|
250
259
|
permission: state_47.PermissionReducerFunction,
|
|
260
|
+
supportConversation: state_48.SupportConversationReducerFunction,
|
|
261
|
+
messageSupport: state_49.MessageSupportReducerFunction,
|
|
262
|
+
conversationNotification: state_50.ConversationNotificationReducerFunction,
|
|
251
263
|
};
|
|
252
264
|
exports.initialSagas = {
|
|
253
265
|
passenger: effects_2.default,
|
|
@@ -297,6 +309,9 @@ exports.initialSagas = {
|
|
|
297
309
|
reservationRequestUserSeen: effects_47.default,
|
|
298
310
|
reservationRequestPassengerLink: effects_48.default,
|
|
299
311
|
permission: effects_43.default,
|
|
312
|
+
supportConversation: effects_49.default,
|
|
313
|
+
messageSupport: effects_50.default,
|
|
314
|
+
conversationNotification: effects_51.default,
|
|
300
315
|
};
|
|
301
316
|
function setUrlConfig(coreApi, debugMode) {
|
|
302
317
|
if (debugMode === void 0) { debugMode = false; }
|
|
@@ -492,6 +507,18 @@ function setUrlConfig(coreApi, debugMode) {
|
|
|
492
507
|
CORE_BASE_URL: coreApi,
|
|
493
508
|
DEBUG_MODE: debugMode,
|
|
494
509
|
});
|
|
510
|
+
index_49.urlsConfig.setURls({
|
|
511
|
+
CORE_BASE_URL: coreApi,
|
|
512
|
+
DEBUG_MODE: debugMode,
|
|
513
|
+
});
|
|
514
|
+
index_50.urlsConfig.setURls({
|
|
515
|
+
CORE_BASE_URL: coreApi,
|
|
516
|
+
DEBUG_MODE: debugMode,
|
|
517
|
+
});
|
|
518
|
+
index_51.urlsConfig.setURls({
|
|
519
|
+
CORE_BASE_URL: coreApi,
|
|
520
|
+
DEBUG_MODE: debugMode,
|
|
521
|
+
});
|
|
495
522
|
}
|
|
496
523
|
exports.setUrlConfig = setUrlConfig;
|
|
497
524
|
exports.sagas = Object.keys(exports.initialSagas).map(function (key) { return exports.initialSagas[key]; });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aprilium/tripsm_global-states",
|
|
3
3
|
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.885",
|
|
5
5
|
|
|
6
6
|
"description": "global states",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@aprilium/tripsm_common": "^0.0.15",
|
|
18
18
|
"@aprilium/tripsm_constants": "^0.0.77",
|
|
19
19
|
"@aprilium/tripsm_customer": "^0.0.5",
|
|
20
|
-
"@aprilium/tripsm_guest": "^0.0.
|
|
20
|
+
"@aprilium/tripsm_guest": "^0.0.68",
|
|
21
21
|
"@aprilium/tripsm_hotel": "^0.0.13",
|
|
22
22
|
"@aprilium/tripsm_identity": "^0.0.31",
|
|
23
23
|
"@aprilium/tripsm_identity-type": "^0.0.12",
|
|
@@ -62,6 +62,12 @@
|
|
|
62
62
|
"@aprilium/tripsm_payment":"^0.0.13",
|
|
63
63
|
"@aprilium/tripsm_hotel-options": "^0.0.7",
|
|
64
64
|
"@aprilium/tripsm_permission": "^0.0.4",
|
|
65
|
+
"@aprilium/tripsm_support-conversation": "^0.0.1",
|
|
66
|
+
"@aprilium/tripsm_message-support": "^0.0.1",
|
|
67
|
+
"@aprilium/tripsm_conversation-notification": "^0.0.2",
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
65
71
|
|
|
66
72
|
"@types/react": "^17.0.0",
|
|
67
73
|
"axios": "^0.21.1",
|