@aprilium/tripsm_support-conversation 0.0.7 → 0.0.9
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/packages/support-conversation/src/parameters/UpdateSupportConversation.d.ts +4 -0
- package/lib/packages/support-conversation/src/parameters/UpdateSupportConversation.js +2 -0
- package/lib/packages/support-conversation/src/selectors.d.ts +1 -1
- package/lib/packages/support-conversation/src/selectors.js +5 -5
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ export type UpdateSupportConversationDataType = {
|
|
|
5
5
|
LanguageId: number;
|
|
6
6
|
NewStaffId?: number | null;
|
|
7
7
|
IsUnread?: number | null;
|
|
8
|
+
NewMessageCountGuest?: number | null;
|
|
9
|
+
NewMessageCountStaff?: number | null;
|
|
8
10
|
};
|
|
9
11
|
declare class UpdateSupportConversation {
|
|
10
12
|
ConversationId: number;
|
|
@@ -13,6 +15,8 @@ declare class UpdateSupportConversation {
|
|
|
13
15
|
LanguageId: number;
|
|
14
16
|
NewStaffId?: number | null;
|
|
15
17
|
IsUnread?: number | null;
|
|
18
|
+
NewMessageCountGuest?: number | null;
|
|
19
|
+
NewMessageCountStaff?: number | null;
|
|
16
20
|
constructor(props: UpdateSupportConversationDataType);
|
|
17
21
|
}
|
|
18
22
|
export default UpdateSupportConversation;
|
|
@@ -8,6 +8,8 @@ var UpdateSupportConversation = /** @class */ (function () {
|
|
|
8
8
|
this.LanguageId = props.LanguageId;
|
|
9
9
|
this.NewStaffId = props.NewStaffId;
|
|
10
10
|
this.IsUnread = props.IsUnread;
|
|
11
|
+
this.NewMessageCountGuest = props.NewMessageCountGuest;
|
|
12
|
+
this.NewMessageCountStaff = props.NewMessageCountStaff;
|
|
11
13
|
}
|
|
12
14
|
return UpdateSupportConversation;
|
|
13
15
|
}());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { States } from "./index";
|
|
2
2
|
import SupportConversation from "./models/SupportConversation";
|
|
3
3
|
import { State } from "./state";
|
|
4
|
+
export declare function getSupportConversationState(states: Partial<States>): State | undefined;
|
|
4
5
|
export declare function getSupportConversationByGuest(states: Partial<States>): SupportConversation[] | null;
|
|
5
6
|
export declare function getSupportConversationByUser(states: Partial<States>): SupportConversation[] | null;
|
|
6
|
-
export declare function getReservationState(states: Partial<States>): State | undefined;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getSupportConversationByUser = exports.getSupportConversationByGuest = exports.getSupportConversationState = void 0;
|
|
4
|
+
function getSupportConversationState(states) {
|
|
5
|
+
return states === null || states === void 0 ? void 0 : states.supportConversation;
|
|
6
|
+
}
|
|
7
|
+
exports.getSupportConversationState = getSupportConversationState;
|
|
4
8
|
function getSupportConversationByGuest(states) {
|
|
5
9
|
var _a, _b;
|
|
6
10
|
return (_b = (_a = states === null || states === void 0 ? void 0 : states.supportConversation) === null || _a === void 0 ? void 0 : _a.SupportConversationByGuest) !== null && _b !== void 0 ? _b : null;
|
|
@@ -11,7 +15,3 @@ function getSupportConversationByUser(states) {
|
|
|
11
15
|
return (_b = (_a = states === null || states === void 0 ? void 0 : states.supportConversation) === null || _a === void 0 ? void 0 : _a.SupportConversationByUser) !== null && _b !== void 0 ? _b : null;
|
|
12
16
|
}
|
|
13
17
|
exports.getSupportConversationByUser = getSupportConversationByUser;
|
|
14
|
-
function getReservationState(states) {
|
|
15
|
-
return states === null || states === void 0 ? void 0 : states.supportConversation;
|
|
16
|
-
}
|
|
17
|
-
exports.getReservationState = getReservationState;
|