@aprilium/tripsm_support-conversation 0.0.1 → 0.0.2
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/effects.js +13 -13
- package/lib/packages/support-conversation/src/models/SupportConversation.d.ts +6 -2
- package/lib/packages/support-conversation/src/models/SupportConversation.js +2 -0
- package/lib/packages/support-conversation/src/parameters/SupportConversationParameters.d.ts +3 -2
- package/lib/packages/support-conversation/src/parameters/UpdateSupportConversation.d.ts +6 -2
- 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 +4 -4
- package/lib/packages/support-conversation/src/service.d.ts +3 -3
- package/lib/packages/support-conversation/src/service.js +7 -7
- package/lib/packages/support-conversation/src/state.d.ts +5 -5
- package/lib/packages/support-conversation/src/state.js +17 -17
- package/package.json +28 -29
|
@@ -31,7 +31,7 @@ var effects_1 = require("redux-saga/effects");
|
|
|
31
31
|
var utils_1 = require("@aprilium/tripsm_common/lib/helper/utils");
|
|
32
32
|
var service_1 = require("./service");
|
|
33
33
|
var state_1 = require("./state");
|
|
34
|
-
function
|
|
34
|
+
function getSupportConversationByUserEffect(action) {
|
|
35
35
|
var _a, result, error, statusCode, err_1;
|
|
36
36
|
return __generator(this, function (_b) {
|
|
37
37
|
switch (_b.label) {
|
|
@@ -40,28 +40,28 @@ function getSupportConversationByGuestEffect(action) {
|
|
|
40
40
|
if (!action.payload) {
|
|
41
41
|
throw Error("Missing Paging parameters");
|
|
42
42
|
}
|
|
43
|
-
return [4 /*yield*/, (0, effects_1.call)(service_1.
|
|
43
|
+
return [4 /*yield*/, (0, effects_1.call)(service_1.fetchSupportConversationByUser, action.payload)];
|
|
44
44
|
case 1:
|
|
45
45
|
_a = _b.sent(), result = _a.result, error = _a.error, statusCode = _a.statusCode;
|
|
46
46
|
if (!(!result && error && statusCode)) return [3 /*break*/, 3];
|
|
47
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
47
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByUserFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(error, statusCode)))];
|
|
48
48
|
case 2:
|
|
49
49
|
_b.sent();
|
|
50
50
|
return [3 /*break*/, 7];
|
|
51
51
|
case 3:
|
|
52
52
|
if (!(!result && error && !statusCode)) return [3 /*break*/, 5];
|
|
53
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
53
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByUserFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(error)))];
|
|
54
54
|
case 4:
|
|
55
55
|
_b.sent();
|
|
56
56
|
return [3 /*break*/, 7];
|
|
57
|
-
case 5: return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
57
|
+
case 5: return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByUserSuccess(result))];
|
|
58
58
|
case 6:
|
|
59
59
|
_b.sent();
|
|
60
60
|
_b.label = 7;
|
|
61
61
|
case 7: return [3 /*break*/, 10];
|
|
62
62
|
case 8:
|
|
63
63
|
err_1 = _b.sent();
|
|
64
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
64
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByUserFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(err_1)))];
|
|
65
65
|
case 9:
|
|
66
66
|
_b.sent();
|
|
67
67
|
return [3 /*break*/, 10];
|
|
@@ -69,7 +69,7 @@ function getSupportConversationByGuestEffect(action) {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function getSupportConversationByGuestEffect(action) {
|
|
73
73
|
var _a, result, error, statusCode, err_2;
|
|
74
74
|
return __generator(this, function (_b) {
|
|
75
75
|
switch (_b.label) {
|
|
@@ -78,28 +78,28 @@ function getSupportConversationEffect(action) {
|
|
|
78
78
|
if (!action.payload) {
|
|
79
79
|
throw Error("Missing Paging parameters");
|
|
80
80
|
}
|
|
81
|
-
return [4 /*yield*/, (0, effects_1.call)(service_1.
|
|
81
|
+
return [4 /*yield*/, (0, effects_1.call)(service_1.fetchSupportConversationByGuest, action.payload)];
|
|
82
82
|
case 1:
|
|
83
83
|
_a = _b.sent(), result = _a.result, error = _a.error, statusCode = _a.statusCode;
|
|
84
84
|
if (!(!result && error && statusCode)) return [3 /*break*/, 3];
|
|
85
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
85
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByGuestFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(error, statusCode)))];
|
|
86
86
|
case 2:
|
|
87
87
|
_b.sent();
|
|
88
88
|
return [3 /*break*/, 7];
|
|
89
89
|
case 3:
|
|
90
90
|
if (!(!result && error && !statusCode)) return [3 /*break*/, 5];
|
|
91
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
91
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByGuestFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(error)))];
|
|
92
92
|
case 4:
|
|
93
93
|
_b.sent();
|
|
94
94
|
return [3 /*break*/, 7];
|
|
95
|
-
case 5: return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
95
|
+
case 5: return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByGuestSuccess(result))];
|
|
96
96
|
case 6:
|
|
97
97
|
_b.sent();
|
|
98
98
|
_b.label = 7;
|
|
99
99
|
case 7: return [3 /*break*/, 10];
|
|
100
100
|
case 8:
|
|
101
101
|
err_2 = _b.sent();
|
|
102
|
-
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.
|
|
102
|
+
return [4 /*yield*/, (0, effects_1.put)(state_1.SupportConversationActions.getSupportConversationByGuestFailure("Failed to fetch reservations:", (0, utils_1.buildTechnicalErrorMessage)(err_2)))];
|
|
103
103
|
case 9:
|
|
104
104
|
_b.sent();
|
|
105
105
|
return [3 /*break*/, 10];
|
|
@@ -177,7 +177,7 @@ function SupportConversationEffects() {
|
|
|
177
177
|
case 0: return [4 /*yield*/, (0, effects_1.takeLatest)(state_1.SupportConversationActions.getSupportConversationByGuest.type, getSupportConversationByGuestEffect)];
|
|
178
178
|
case 1:
|
|
179
179
|
_a.sent();
|
|
180
|
-
return [4 /*yield*/, (0, effects_1.takeLatest)(state_1.SupportConversationActions.
|
|
180
|
+
return [4 /*yield*/, (0, effects_1.takeLatest)(state_1.SupportConversationActions.getSupportConversationByUser.type, getSupportConversationByUserEffect)];
|
|
181
181
|
case 2:
|
|
182
182
|
_a.sent();
|
|
183
183
|
return [4 /*yield*/, (0, effects_1.takeLatest)(state_1.SupportConversationActions.addSupportConversation.type, addSupportConversationEffect)];
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type SupportConversationDataType = {
|
|
2
2
|
Id: number;
|
|
3
3
|
ShortName: number;
|
|
4
|
-
StaffId
|
|
4
|
+
StaffId?: number | null;
|
|
5
|
+
StaffName?: string | null;
|
|
5
6
|
GuestId: number;
|
|
7
|
+
GuestName: string;
|
|
6
8
|
AgencyId: Date;
|
|
7
9
|
Picture: number;
|
|
8
10
|
IsActive: number;
|
|
@@ -15,8 +17,10 @@ export type SupportConversationDataType = {
|
|
|
15
17
|
declare class SupportConversation {
|
|
16
18
|
Id: number;
|
|
17
19
|
ShortName: number;
|
|
18
|
-
StaffId
|
|
20
|
+
StaffId?: number | null;
|
|
21
|
+
StaffName?: string | null;
|
|
19
22
|
GuestId: number;
|
|
23
|
+
GuestName: string;
|
|
20
24
|
AgencyId: Date;
|
|
21
25
|
Picture: number;
|
|
22
26
|
IsActive: number;
|
|
@@ -5,7 +5,9 @@ var SupportConversation = /** @class */ (function () {
|
|
|
5
5
|
this.Id = props.Id;
|
|
6
6
|
this.ShortName = props.ShortName;
|
|
7
7
|
this.StaffId = props.StaffId;
|
|
8
|
+
this.StaffName = props.StaffName;
|
|
8
9
|
this.GuestId = props.GuestId;
|
|
10
|
+
this.GuestName = props.GuestName;
|
|
9
11
|
this.AgencyId = props.AgencyId;
|
|
10
12
|
this.Picture = props.Picture;
|
|
11
13
|
this.IsActive = props.IsActive;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PagingParameter } from "@aprilium/tripsm_common/lib/models/PagingParameter";
|
|
2
2
|
interface SupportConversationParameter extends PagingParameter {
|
|
3
|
-
|
|
4
|
-
GuestId?:
|
|
3
|
+
UserId?: number | null;
|
|
4
|
+
GuestId?: number | null;
|
|
5
5
|
AgencyId: number;
|
|
6
|
+
LanguageId: number;
|
|
6
7
|
}
|
|
7
8
|
export default SupportConversationParameter;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export type UpdateSupportConversationDataType = {
|
|
2
2
|
ConversationId: number;
|
|
3
|
-
NewStaffId: number
|
|
3
|
+
NewStaffId: number;
|
|
4
4
|
AgencyId: number;
|
|
5
|
+
UserId: number;
|
|
6
|
+
LanguageId: number;
|
|
5
7
|
};
|
|
6
8
|
declare class UpdateSupportConversation {
|
|
7
9
|
ConversationId: number;
|
|
8
|
-
NewStaffId: number
|
|
10
|
+
NewStaffId: number;
|
|
9
11
|
AgencyId: number;
|
|
12
|
+
UserId: number;
|
|
13
|
+
LanguageId: number;
|
|
10
14
|
constructor(props: UpdateSupportConversationDataType);
|
|
11
15
|
}
|
|
12
16
|
export default UpdateSupportConversation;
|
|
@@ -5,6 +5,8 @@ var UpdateSupportConversation = /** @class */ (function () {
|
|
|
5
5
|
this.ConversationId = props.ConversationId;
|
|
6
6
|
this.NewStaffId = props.NewStaffId;
|
|
7
7
|
this.AgencyId = props.AgencyId;
|
|
8
|
+
this.UserId = props.UserId;
|
|
9
|
+
this.LanguageId = props.LanguageId;
|
|
8
10
|
}
|
|
9
11
|
return UpdateSupportConversation;
|
|
10
12
|
}());
|
|
@@ -2,5 +2,5 @@ import { States } from "./index";
|
|
|
2
2
|
import SupportConversation from "./models/SupportConversation";
|
|
3
3
|
import { State } from "./state";
|
|
4
4
|
export declare function getSupportConversationByGuest(states: Partial<States>): SupportConversation[] | null;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function getSupportConversationByUser(states: Partial<States>): SupportConversation[] | null;
|
|
6
6
|
export declare function getReservationState(states: Partial<States>): State | undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getReservationState = exports.
|
|
3
|
+
exports.getReservationState = exports.getSupportConversationByUser = exports.getSupportConversationByGuest = void 0;
|
|
4
4
|
function getSupportConversationByGuest(states) {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
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;
|
|
7
7
|
}
|
|
8
8
|
exports.getSupportConversationByGuest = getSupportConversationByGuest;
|
|
9
|
-
function
|
|
9
|
+
function getSupportConversationByUser(states) {
|
|
10
10
|
var _a, _b;
|
|
11
|
-
return (_b = (_a = states === null || states === void 0 ? void 0 : states.supportConversation) === null || _a === void 0 ? void 0 : _a.
|
|
11
|
+
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
12
|
}
|
|
13
|
-
exports.
|
|
13
|
+
exports.getSupportConversationByUser = getSupportConversationByUser;
|
|
14
14
|
function getReservationState(states) {
|
|
15
15
|
return states === null || states === void 0 ? void 0 : states.supportConversation;
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import SupportConversation from "./models/SupportConversation";
|
|
|
2
2
|
import SupportConversationParameter from "./parameters/SupportConversationParameters";
|
|
3
3
|
import { AddSupportConversationDataType } from "./parameters/AddSupportConversation";
|
|
4
4
|
import { UpdateSupportConversationDataType } from "./parameters/UpdateSupportConversation";
|
|
5
|
-
declare function
|
|
5
|
+
declare function fetchSupportConversationByUser(SupportConversationParameters: SupportConversationParameter): Promise<{
|
|
6
6
|
result: SupportConversation[];
|
|
7
7
|
success?: undefined;
|
|
8
8
|
error?: undefined;
|
|
@@ -21,7 +21,7 @@ declare function fetchByGuest(SupportConversationParameters: SupportConversation
|
|
|
21
21
|
result?: undefined;
|
|
22
22
|
statusCode?: undefined;
|
|
23
23
|
}>;
|
|
24
|
-
declare function
|
|
24
|
+
declare function fetchSupportConversationByGuest(SupportConversationParameters: SupportConversationParameter): Promise<{
|
|
25
25
|
result: SupportConversation[];
|
|
26
26
|
success?: undefined;
|
|
27
27
|
error?: undefined;
|
|
@@ -78,4 +78,4 @@ declare function updateSupportConversation(updateSupportConversation: UpdateSupp
|
|
|
78
78
|
result?: undefined;
|
|
79
79
|
statusCode?: undefined;
|
|
80
80
|
}>;
|
|
81
|
-
export { addNewSupportConversation,
|
|
81
|
+
export { addNewSupportConversation, fetchSupportConversationByGuest, fetchSupportConversationByUser, updateSupportConversation };
|
|
@@ -39,19 +39,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.updateSupportConversation = exports.
|
|
42
|
+
exports.updateSupportConversation = exports.fetchSupportConversationByUser = exports.fetchSupportConversationByGuest = exports.addNewSupportConversation = void 0;
|
|
43
43
|
var axios_interceptor_1 = __importDefault(require("../../../utils/axios-interceptor"));
|
|
44
44
|
var axios_1 = __importDefault(require("axios"));
|
|
45
45
|
var index_1 = require("./index");
|
|
46
46
|
var serviceUtils_1 = require("@aprilium/tripsm_common/lib/helper/serviceUtils");
|
|
47
|
-
function
|
|
47
|
+
function fetchSupportConversationByUser(SupportConversationParameters) {
|
|
48
48
|
var _a, _b;
|
|
49
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
50
50
|
var route, queryString, encodedUrl, response, exception_1;
|
|
51
51
|
return __generator(this, function (_c) {
|
|
52
52
|
switch (_c.label) {
|
|
53
53
|
case 0:
|
|
54
|
-
route = "/api/SupportConversation/
|
|
54
|
+
route = "/api/SupportConversation/getByUser";
|
|
55
55
|
if (!index_1.urlsConfig.values)
|
|
56
56
|
throw Error("No urls config found");
|
|
57
57
|
queryString = (0, serviceUtils_1.buildQueryParams)(SupportConversationParameters);
|
|
@@ -84,15 +84,15 @@ function fetchByGuest(SupportConversationParameters) {
|
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
exports.
|
|
88
|
-
function
|
|
87
|
+
exports.fetchSupportConversationByUser = fetchSupportConversationByUser;
|
|
88
|
+
function fetchSupportConversationByGuest(SupportConversationParameters) {
|
|
89
89
|
var _a, _b;
|
|
90
90
|
return __awaiter(this, void 0, void 0, function () {
|
|
91
91
|
var route, queryString, encodedUrl, response, exception_2;
|
|
92
92
|
return __generator(this, function (_c) {
|
|
93
93
|
switch (_c.label) {
|
|
94
94
|
case 0:
|
|
95
|
-
route = "/api/SupportConversation/
|
|
95
|
+
route = "/api/SupportConversation/GetByGuest";
|
|
96
96
|
if (!index_1.urlsConfig.values)
|
|
97
97
|
throw Error("No urls config found");
|
|
98
98
|
queryString = (0, serviceUtils_1.buildQueryParams)(SupportConversationParameters);
|
|
@@ -125,7 +125,7 @@ function fetchSupportConversation(SupportConversationParameters) {
|
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
exports.
|
|
128
|
+
exports.fetchSupportConversationByGuest = fetchSupportConversationByGuest;
|
|
129
129
|
function addNewSupportConversation(newSupportConversation) {
|
|
130
130
|
var _a, _b;
|
|
131
131
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -11,7 +11,7 @@ export type State = {
|
|
|
11
11
|
errorMessage: string | null;
|
|
12
12
|
technicalErrorMessage: technicalErrorMessageType | null;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
getSupportConversationByUser: {
|
|
15
15
|
loading: boolean;
|
|
16
16
|
success: boolean;
|
|
17
17
|
errorMessage: string | null;
|
|
@@ -31,16 +31,16 @@ export type State = {
|
|
|
31
31
|
technicalErrorMessage: technicalErrorMessageType | null;
|
|
32
32
|
payload: any;
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
SupportConversationByUser: SupportConversation[] | null;
|
|
35
35
|
SupportConversationByGuest: SupportConversation[] | null;
|
|
36
36
|
AddSupportConversation: any | null;
|
|
37
37
|
UpadteSupportConversation: any | null;
|
|
38
38
|
};
|
|
39
39
|
export declare const initialState: State;
|
|
40
40
|
export declare class SupportConversationState extends ImmerReducer<State> {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
getSupportConversationByUser(params: SupportConversationParameter): void;
|
|
42
|
+
getSupportConversationByUserSuccess(SupportConversation: SupportConversation[]): void;
|
|
43
|
+
getSupportConversationByUserFailure(errorMessage: string, technicalErrorMessage: technicalErrorMessageType): void;
|
|
44
44
|
getSupportConversationByGuest(params: SupportConversationParameter): void;
|
|
45
45
|
getSupportConversationByGuestSuccess(SupportConversation: SupportConversation[]): void;
|
|
46
46
|
getSupportConversationByGuestFailure(errorMessage: string, technicalErrorMessage: technicalErrorMessageType): void;
|
|
@@ -18,7 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.SupportConversationReducerFunction = exports.SupportConversationActions = exports.SupportConversationState = exports.initialState = void 0;
|
|
19
19
|
var immer_reducer_1 = require("immer-reducer");
|
|
20
20
|
exports.initialState = {
|
|
21
|
-
|
|
21
|
+
getSupportConversationByUser: {
|
|
22
22
|
loading: false,
|
|
23
23
|
success: false,
|
|
24
24
|
errorMessage: null,
|
|
@@ -45,7 +45,7 @@ exports.initialState = {
|
|
|
45
45
|
payload: null,
|
|
46
46
|
},
|
|
47
47
|
SupportConversationByGuest: null,
|
|
48
|
-
|
|
48
|
+
SupportConversationByUser: null,
|
|
49
49
|
AddSupportConversation: null,
|
|
50
50
|
UpadteSupportConversation: null,
|
|
51
51
|
};
|
|
@@ -54,23 +54,23 @@ var SupportConversationState = /** @class */ (function (_super) {
|
|
|
54
54
|
function SupportConversationState() {
|
|
55
55
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
56
56
|
}
|
|
57
|
-
SupportConversationState.prototype.
|
|
58
|
-
this.draftState.
|
|
59
|
-
this.draftState.
|
|
60
|
-
this.draftState.
|
|
61
|
-
this.draftState.
|
|
57
|
+
SupportConversationState.prototype.getSupportConversationByUser = function (params) {
|
|
58
|
+
this.draftState.getSupportConversationByUser.loading = true;
|
|
59
|
+
this.draftState.getSupportConversationByUser.success = false;
|
|
60
|
+
this.draftState.getSupportConversationByUser.errorMessage = null;
|
|
61
|
+
this.draftState.getSupportConversationByUser.technicalErrorMessage = null;
|
|
62
62
|
};
|
|
63
|
-
SupportConversationState.prototype.
|
|
64
|
-
this.draftState.
|
|
65
|
-
this.draftState.
|
|
66
|
-
this.draftState.
|
|
67
|
-
this.draftState.
|
|
63
|
+
SupportConversationState.prototype.getSupportConversationByUserSuccess = function (SupportConversation) {
|
|
64
|
+
this.draftState.getSupportConversationByUser.loading = false;
|
|
65
|
+
this.draftState.SupportConversationByUser = SupportConversation;
|
|
66
|
+
this.draftState.getSupportConversationByUser.errorMessage = null;
|
|
67
|
+
this.draftState.getSupportConversationByUser.technicalErrorMessage = null;
|
|
68
68
|
};
|
|
69
|
-
SupportConversationState.prototype.
|
|
70
|
-
this.draftState.
|
|
71
|
-
this.draftState.
|
|
72
|
-
this.draftState.
|
|
73
|
-
this.draftState.
|
|
69
|
+
SupportConversationState.prototype.getSupportConversationByUserFailure = function (errorMessage, technicalErrorMessage) {
|
|
70
|
+
this.draftState.getSupportConversationByUser.loading = false;
|
|
71
|
+
this.draftState.getSupportConversationByUser.success = false;
|
|
72
|
+
this.draftState.getSupportConversationByUser.errorMessage = errorMessage;
|
|
73
|
+
this.draftState.getSupportConversationByUser.technicalErrorMessage = technicalErrorMessage;
|
|
74
74
|
};
|
|
75
75
|
SupportConversationState.prototype.getSupportConversationByGuest = function (params) {
|
|
76
76
|
this.draftState.getSupportConversationByGuest.loading = true;
|
package/package.json
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
"name": "@aprilium/tripsm_support-conversation",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "supportconversation states",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/**"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"build": "tsc"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@aprilium/tripsm_common": "^0.0.15",
|
|
16
|
+
"@types/react": "^17.0.0",
|
|
17
|
+
"axios": "^0.21.1",
|
|
18
|
+
"immer": "^9.0.15",
|
|
19
|
+
"immer-reducer": "^0.7.13",
|
|
20
|
+
"querystring": "^0.2.1",
|
|
21
|
+
"react-i18next": "^11.11.4",
|
|
22
|
+
"redux": "^4.1.0",
|
|
23
|
+
"redux-persist": "^6.0.0",
|
|
24
|
+
"redux-saga": "^1.1.3",
|
|
25
|
+
"typescript": "^4.8.4"
|
|
26
|
+
},
|
|
27
|
+
"author": "ADH",
|
|
28
|
+
"license": "ISC"
|
|
29
|
+
}
|