mattermost-redux 11.3.0 → 11.5.0
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/action_types/agents.d.ts +6 -0
- package/lib/action_types/agents.js +6 -0
- package/lib/action_types/index.d.ts +3 -1
- package/lib/action_types/index.js +5 -1
- package/lib/action_types/posts.d.ts +1 -0
- package/lib/action_types/posts.js +1 -0
- package/lib/action_types/recaps.d.ts +23 -0
- package/lib/action_types/recaps.js +30 -0
- package/lib/action_types/roles.d.ts +0 -1
- package/lib/action_types/roles.js +0 -1
- package/lib/action_types/users.d.ts +0 -2
- package/lib/action_types/users.js +0 -2
- package/lib/action_types/websocket.d.ts +5 -0
- package/lib/action_types/websocket.js +12 -0
- package/lib/actions/access_control.d.ts +0 -1
- package/lib/actions/access_control.js +0 -10
- package/lib/actions/agents.d.ts +5 -0
- package/lib/actions/agents.js +18 -0
- package/lib/actions/channels.d.ts +1 -0
- package/lib/actions/channels.js +34 -0
- package/lib/actions/general.js +4 -3
- package/lib/actions/posts.d.ts +2 -1
- package/lib/actions/posts.js +21 -2
- package/lib/actions/recaps.d.ts +8 -0
- package/lib/actions/recaps.js +76 -0
- package/lib/actions/scheduled_posts.d.ts +1 -1
- package/lib/actions/users.d.ts +0 -1
- package/lib/actions/users.js +0 -25
- package/lib/constants/index.d.ts +1 -2
- package/lib/constants/index.js +1 -3
- package/lib/constants/permissions.d.ts +2 -0
- package/lib/constants/permissions.js +2 -0
- package/lib/constants/posts.d.ts +2 -0
- package/lib/constants/posts.js +1 -0
- package/lib/constants/preferences.d.ts +0 -1
- package/lib/constants/preferences.js +0 -1
- package/lib/reducers/entities/agents.d.ts +16 -1
- package/lib/reducers/entities/agents.js +22 -0
- package/lib/reducers/entities/index.d.ts +17 -3
- package/lib/reducers/entities/index.js +2 -0
- package/lib/reducers/entities/posts.js +92 -19
- package/lib/reducers/entities/recaps.d.ts +7 -0
- package/lib/reducers/entities/recaps.js +52 -0
- package/lib/reducers/entities/roles.js +0 -8
- package/lib/reducers/entities/typing.js +3 -3
- package/lib/reducers/entities/users.d.ts +0 -2
- package/lib/reducers/entities/users.js +0 -30
- package/lib/reducers/index.d.ts +17 -3
- package/lib/selectors/entities/agents.d.ts +6 -1
- package/lib/selectors/entities/agents.js +8 -0
- package/lib/selectors/entities/channels.d.ts +4 -0
- package/lib/selectors/entities/channels.js +69 -0
- package/lib/selectors/entities/recaps.d.ts +11 -0
- package/lib/selectors/entities/recaps.js +34 -0
- package/lib/selectors/entities/users.d.ts +0 -3
- package/lib/selectors/entities/users.js +1 -16
- package/lib/store/initial_state.js +6 -1
- package/lib/utils/integration_utils.js +2 -1
- package/package.json +3 -3
- package/lib/constants/websocket.d.ts +0 -56
- package/lib/constants/websocket.js +0 -60
|
@@ -2,5 +2,11 @@ declare const _default: {
|
|
|
2
2
|
RECEIVED_AGENTS: "RECEIVED_AGENTS";
|
|
3
3
|
AGENTS_REQUEST: "AGENTS_REQUEST";
|
|
4
4
|
AGENTS_FAILURE: "AGENTS_FAILURE";
|
|
5
|
+
RECEIVED_AGENTS_STATUS: "RECEIVED_AGENTS_STATUS";
|
|
6
|
+
AGENTS_STATUS_REQUEST: "AGENTS_STATUS_REQUEST";
|
|
7
|
+
AGENTS_STATUS_FAILURE: "AGENTS_STATUS_FAILURE";
|
|
8
|
+
RECEIVED_LLM_SERVICES: "RECEIVED_LLM_SERVICES";
|
|
9
|
+
LLM_SERVICES_REQUEST: "LLM_SERVICES_REQUEST";
|
|
10
|
+
LLM_SERVICES_FAILURE: "LLM_SERVICES_FAILURE";
|
|
5
11
|
};
|
|
6
12
|
export default _default;
|
|
@@ -10,4 +10,10 @@ exports.default = (0, key_mirror_1.default)({
|
|
|
10
10
|
RECEIVED_AGENTS: null,
|
|
11
11
|
AGENTS_REQUEST: null,
|
|
12
12
|
AGENTS_FAILURE: null,
|
|
13
|
+
RECEIVED_AGENTS_STATUS: null,
|
|
14
|
+
AGENTS_STATUS_REQUEST: null,
|
|
15
|
+
AGENTS_STATUS_FAILURE: null,
|
|
16
|
+
RECEIVED_LLM_SERVICES: null,
|
|
17
|
+
LLM_SERVICES_REQUEST: null,
|
|
18
|
+
LLM_SERVICES_FAILURE: null,
|
|
13
19
|
});
|
|
@@ -22,6 +22,7 @@ import PlaybookType from './playbooks';
|
|
|
22
22
|
import PluginTypes from './plugins';
|
|
23
23
|
import PostTypes from './posts';
|
|
24
24
|
import PreferenceTypes from './preferences';
|
|
25
|
+
import RecapTypes from './recaps';
|
|
25
26
|
import RoleTypes from './roles';
|
|
26
27
|
import SchemeTypes from './schemes';
|
|
27
28
|
import ScheduledPostTypes from './scheudled_posts';
|
|
@@ -30,7 +31,8 @@ import SharedChannelTypes from './shared_channels';
|
|
|
30
31
|
import TeamTypes from './teams';
|
|
31
32
|
import ThreadTypes from './threads';
|
|
32
33
|
import UserTypes from './users';
|
|
33
|
-
|
|
34
|
+
import WebSocketTypes from './websocket';
|
|
35
|
+
export { ErrorTypes, GeneralTypes, UserTypes, TeamTypes, ChannelTypes, PostTypes, FileTypes, PreferenceTypes, RecapTypes, IntegrationTypes, EmojiTypes, AdminTypes, JobTypes, LimitsTypes, SearchTypes, RoleTypes, SchemeTypes, GroupTypes, BotTypes, PluginTypes, ChannelCategoryTypes, CloudTypes, AppsTypes, ThreadTypes, HostedCustomerTypes, DraftTypes, PlaybookType, ChannelBookmarkTypes, ScheduledPostTypes, SharedChannelTypes, ContentFlaggingTypes, AgentTypes, WebSocketTypes, };
|
|
34
36
|
/**
|
|
35
37
|
* An MMReduxAction is any non-Thunk Redux action accepted by mattermost-redux.
|
|
36
38
|
*/
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
6
|
};
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.AgentTypes = exports.ContentFlaggingTypes = exports.SharedChannelTypes = exports.ScheduledPostTypes = exports.ChannelBookmarkTypes = exports.PlaybookType = exports.DraftTypes = exports.HostedCustomerTypes = exports.ThreadTypes = exports.AppsTypes = exports.CloudTypes = exports.ChannelCategoryTypes = exports.PluginTypes = exports.BotTypes = exports.GroupTypes = exports.SchemeTypes = exports.RoleTypes = exports.SearchTypes = exports.LimitsTypes = exports.JobTypes = exports.AdminTypes = exports.EmojiTypes = exports.IntegrationTypes = exports.PreferenceTypes = exports.FileTypes = exports.PostTypes = exports.ChannelTypes = exports.TeamTypes = exports.UserTypes = exports.GeneralTypes = exports.ErrorTypes = void 0;
|
|
8
|
+
exports.WebSocketTypes = exports.AgentTypes = exports.ContentFlaggingTypes = exports.SharedChannelTypes = exports.ScheduledPostTypes = exports.ChannelBookmarkTypes = exports.PlaybookType = exports.DraftTypes = exports.HostedCustomerTypes = exports.ThreadTypes = exports.AppsTypes = exports.CloudTypes = exports.ChannelCategoryTypes = exports.PluginTypes = exports.BotTypes = exports.GroupTypes = exports.SchemeTypes = exports.RoleTypes = exports.SearchTypes = exports.LimitsTypes = exports.JobTypes = exports.AdminTypes = exports.EmojiTypes = exports.IntegrationTypes = exports.RecapTypes = exports.PreferenceTypes = exports.FileTypes = exports.PostTypes = exports.ChannelTypes = exports.TeamTypes = exports.UserTypes = exports.GeneralTypes = exports.ErrorTypes = void 0;
|
|
9
9
|
const admin_1 = __importDefault(require("./admin"));
|
|
10
10
|
exports.AdminTypes = admin_1.default;
|
|
11
11
|
const agents_1 = __importDefault(require("./agents"));
|
|
@@ -52,6 +52,8 @@ const posts_1 = __importDefault(require("./posts"));
|
|
|
52
52
|
exports.PostTypes = posts_1.default;
|
|
53
53
|
const preferences_1 = __importDefault(require("./preferences"));
|
|
54
54
|
exports.PreferenceTypes = preferences_1.default;
|
|
55
|
+
const recaps_1 = __importDefault(require("./recaps"));
|
|
56
|
+
exports.RecapTypes = recaps_1.default;
|
|
55
57
|
const roles_1 = __importDefault(require("./roles"));
|
|
56
58
|
exports.RoleTypes = roles_1.default;
|
|
57
59
|
const schemes_1 = __importDefault(require("./schemes"));
|
|
@@ -68,3 +70,5 @@ const threads_1 = __importDefault(require("./threads"));
|
|
|
68
70
|
exports.ThreadTypes = threads_1.default;
|
|
69
71
|
const users_1 = __importDefault(require("./users"));
|
|
70
72
|
exports.UserTypes = users_1.default;
|
|
73
|
+
const websocket_1 = __importDefault(require("./websocket"));
|
|
74
|
+
exports.WebSocketTypes = websocket_1.default;
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
RECEIVED_POSTS_SINCE: "RECEIVED_POSTS_SINCE";
|
|
28
28
|
POST_DELETED: "POST_DELETED";
|
|
29
29
|
POST_REMOVED: "POST_REMOVED";
|
|
30
|
+
POST_TRANSLATION_UPDATED: "POST_TRANSLATION_UPDATED";
|
|
30
31
|
POST_PINNED_CHANGED: "POST_PINNED_CHANGED";
|
|
31
32
|
RECEIVED_FOCUSED_POST: "RECEIVED_FOCUSED_POST";
|
|
32
33
|
RECEIVED_EDIT_POST: "RECEIVED_EDIT_POST";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
CREATE_RECAP_REQUEST: "CREATE_RECAP_REQUEST";
|
|
3
|
+
CREATE_RECAP_SUCCESS: "CREATE_RECAP_SUCCESS";
|
|
4
|
+
CREATE_RECAP_FAILURE: "CREATE_RECAP_FAILURE";
|
|
5
|
+
RECEIVED_RECAP: "RECEIVED_RECAP";
|
|
6
|
+
RECEIVED_RECAPS: "RECEIVED_RECAPS";
|
|
7
|
+
GET_RECAP_REQUEST: "GET_RECAP_REQUEST";
|
|
8
|
+
GET_RECAP_SUCCESS: "GET_RECAP_SUCCESS";
|
|
9
|
+
GET_RECAP_FAILURE: "GET_RECAP_FAILURE";
|
|
10
|
+
GET_RECAPS_REQUEST: "GET_RECAPS_REQUEST";
|
|
11
|
+
GET_RECAPS_SUCCESS: "GET_RECAPS_SUCCESS";
|
|
12
|
+
GET_RECAPS_FAILURE: "GET_RECAPS_FAILURE";
|
|
13
|
+
MARK_RECAP_READ_REQUEST: "MARK_RECAP_READ_REQUEST";
|
|
14
|
+
MARK_RECAP_READ_SUCCESS: "MARK_RECAP_READ_SUCCESS";
|
|
15
|
+
MARK_RECAP_READ_FAILURE: "MARK_RECAP_READ_FAILURE";
|
|
16
|
+
DELETE_RECAP_REQUEST: "DELETE_RECAP_REQUEST";
|
|
17
|
+
DELETE_RECAP_SUCCESS: "DELETE_RECAP_SUCCESS";
|
|
18
|
+
DELETE_RECAP_FAILURE: "DELETE_RECAP_FAILURE";
|
|
19
|
+
REGENERATE_RECAP_REQUEST: "REGENERATE_RECAP_REQUEST";
|
|
20
|
+
REGENERATE_RECAP_SUCCESS: "REGENERATE_RECAP_SUCCESS";
|
|
21
|
+
REGENERATE_RECAP_FAILURE: "REGENERATE_RECAP_FAILURE";
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
|
+
// See LICENSE.txt for license information.
|
|
4
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const key_mirror_1 = __importDefault(require("mattermost-redux/utils/key_mirror"));
|
|
9
|
+
exports.default = (0, key_mirror_1.default)({
|
|
10
|
+
CREATE_RECAP_REQUEST: null,
|
|
11
|
+
CREATE_RECAP_SUCCESS: null,
|
|
12
|
+
CREATE_RECAP_FAILURE: null,
|
|
13
|
+
RECEIVED_RECAP: null,
|
|
14
|
+
RECEIVED_RECAPS: null,
|
|
15
|
+
GET_RECAP_REQUEST: null,
|
|
16
|
+
GET_RECAP_SUCCESS: null,
|
|
17
|
+
GET_RECAP_FAILURE: null,
|
|
18
|
+
GET_RECAPS_REQUEST: null,
|
|
19
|
+
GET_RECAPS_SUCCESS: null,
|
|
20
|
+
GET_RECAPS_FAILURE: null,
|
|
21
|
+
MARK_RECAP_READ_REQUEST: null,
|
|
22
|
+
MARK_RECAP_READ_SUCCESS: null,
|
|
23
|
+
MARK_RECAP_READ_FAILURE: null,
|
|
24
|
+
DELETE_RECAP_REQUEST: null,
|
|
25
|
+
DELETE_RECAP_SUCCESS: null,
|
|
26
|
+
DELETE_RECAP_FAILURE: null,
|
|
27
|
+
REGENERATE_RECAP_REQUEST: null,
|
|
28
|
+
REGENERATE_RECAP_SUCCESS: null,
|
|
29
|
+
REGENERATE_RECAP_FAILURE: null,
|
|
30
|
+
});
|
|
@@ -28,8 +28,6 @@ declare const _default: {
|
|
|
28
28
|
RECEIVED_PROFILE_NOT_IN_TEAM: "RECEIVED_PROFILE_NOT_IN_TEAM";
|
|
29
29
|
RECEIVED_PROFILES_LIST_NOT_IN_TEAM: "RECEIVED_PROFILES_LIST_NOT_IN_TEAM";
|
|
30
30
|
RECEIVED_PROFILES_LIST_NOT_IN_TEAM_AND_REPLACE: "RECEIVED_PROFILES_LIST_NOT_IN_TEAM_AND_REPLACE";
|
|
31
|
-
RECEIVED_PROFILE_WITHOUT_TEAM: "RECEIVED_PROFILE_WITHOUT_TEAM";
|
|
32
|
-
RECEIVED_PROFILES_LIST_WITHOUT_TEAM: "RECEIVED_PROFILES_LIST_WITHOUT_TEAM";
|
|
33
31
|
RECEIVED_PROFILES_IN_CHANNEL: "RECEIVED_PROFILES_IN_CHANNEL";
|
|
34
32
|
RECEIVED_PROFILES_LIST_IN_CHANNEL: "RECEIVED_PROFILES_LIST_IN_CHANNEL";
|
|
35
33
|
RECEIVED_PROFILE_IN_CHANNEL: "RECEIVED_PROFILE_IN_CHANNEL";
|
|
@@ -36,8 +36,6 @@ exports.default = (0, key_mirror_1.default)({
|
|
|
36
36
|
RECEIVED_PROFILE_NOT_IN_TEAM: null,
|
|
37
37
|
RECEIVED_PROFILES_LIST_NOT_IN_TEAM: null,
|
|
38
38
|
RECEIVED_PROFILES_LIST_NOT_IN_TEAM_AND_REPLACE: null,
|
|
39
|
-
RECEIVED_PROFILE_WITHOUT_TEAM: null,
|
|
40
|
-
RECEIVED_PROFILES_LIST_WITHOUT_TEAM: null,
|
|
41
39
|
RECEIVED_PROFILES_IN_CHANNEL: null,
|
|
42
40
|
RECEIVED_PROFILES_LIST_IN_CHANNEL: null,
|
|
43
41
|
RECEIVED_PROFILE_IN_CHANNEL: null,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
|
+
// See LICENSE.txt for license information.
|
|
4
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
const key_mirror_1 = __importDefault(require("mattermost-redux/utils/key_mirror"));
|
|
9
|
+
exports.default = (0, key_mirror_1.default)({
|
|
10
|
+
TYPING: null,
|
|
11
|
+
STOPPED_TYPING: null,
|
|
12
|
+
});
|
|
@@ -9,7 +9,6 @@ export declare function searchAccessControlPolicyChannels(id: string, term: stri
|
|
|
9
9
|
export declare function assignChannelsToAccessControlPolicy(policyId: string, channelIds: string[]): ActionFuncAsync<import("@mattermost/types/client4").StatusOK, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
10
10
|
export declare function unassignChannelsFromAccessControlPolicy(policyId: string, channelIds: string[]): ActionFuncAsync<import("@mattermost/types/client4").StatusOK, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
11
11
|
export declare function getAccessControlFields(after: string, limit: number, channelId?: string): ActionFuncAsync<import("@mattermost/types/properties").UserPropertyField[], import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
12
|
-
export declare function updateAccessControlPolicyActive(policyId: string, active: boolean): ActionFuncAsync<import("@mattermost/types/client4").StatusOK, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
13
12
|
export declare function searchUsersForExpression(expression: string, term: string, after: string, limit: number, channelId?: string): ActionFuncAsync<AccessControlTestResult>;
|
|
14
13
|
export declare function getVisualAST(expression: string, channelId?: string): ActionFuncAsync<import("@mattermost/types/access_control").AccessControlVisualAST, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
15
14
|
export declare function validateExpressionAgainstRequester(expression: string, channelId?: string): ActionFuncAsync<{
|
|
@@ -10,7 +10,6 @@ exports.searchAccessControlPolicyChannels = searchAccessControlPolicyChannels;
|
|
|
10
10
|
exports.assignChannelsToAccessControlPolicy = assignChannelsToAccessControlPolicy;
|
|
11
11
|
exports.unassignChannelsFromAccessControlPolicy = unassignChannelsFromAccessControlPolicy;
|
|
12
12
|
exports.getAccessControlFields = getAccessControlFields;
|
|
13
|
-
exports.updateAccessControlPolicyActive = updateAccessControlPolicyActive;
|
|
14
13
|
exports.searchUsersForExpression = searchUsersForExpression;
|
|
15
14
|
exports.getVisualAST = getVisualAST;
|
|
16
15
|
exports.validateExpressionAgainstRequester = validateExpressionAgainstRequester;
|
|
@@ -116,15 +115,6 @@ function getAccessControlFields(after, limit, channelId) {
|
|
|
116
115
|
],
|
|
117
116
|
});
|
|
118
117
|
}
|
|
119
|
-
function updateAccessControlPolicyActive(policyId, active) {
|
|
120
|
-
return (0, helpers_1.bindClientFunc)({
|
|
121
|
-
clientFunc: client_1.Client4.updateAccessControlPolicyActive,
|
|
122
|
-
params: [
|
|
123
|
-
policyId,
|
|
124
|
-
active,
|
|
125
|
-
],
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
118
|
function searchUsersForExpression(expression, term, after, limit, channelId) {
|
|
129
119
|
return async (dispatch, getState) => {
|
|
130
120
|
let data;
|
package/lib/actions/agents.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
1
|
export declare function getAgents(): import("../types/actions").ActionFuncAsync<import("@mattermost/types/agents").Agent[], import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
2
|
+
export declare function getAgentsStatus(): import("../types/actions").ActionFuncAsync<{
|
|
3
|
+
available: boolean;
|
|
4
|
+
reason?: string;
|
|
5
|
+
}, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
|
6
|
+
export declare function getLLMServices(): import("../types/actions").ActionFuncAsync<import("@mattermost/types/agents").LLMService[], import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;
|
package/lib/actions/agents.js
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getAgents = getAgents;
|
|
6
|
+
exports.getAgentsStatus = getAgentsStatus;
|
|
7
|
+
exports.getLLMServices = getLLMServices;
|
|
6
8
|
const helpers_1 = require("./helpers");
|
|
7
9
|
const action_types_1 = require("../action_types");
|
|
8
10
|
const client_1 = require("../client");
|
|
@@ -14,3 +16,19 @@ function getAgents() {
|
|
|
14
16
|
onRequest: action_types_1.AgentTypes.AGENTS_REQUEST,
|
|
15
17
|
});
|
|
16
18
|
}
|
|
19
|
+
function getAgentsStatus() {
|
|
20
|
+
return (0, helpers_1.bindClientFunc)({
|
|
21
|
+
clientFunc: client_1.Client4.getAgentsStatus,
|
|
22
|
+
onSuccess: [action_types_1.AgentTypes.RECEIVED_AGENTS_STATUS],
|
|
23
|
+
onFailure: action_types_1.AgentTypes.AGENTS_STATUS_FAILURE,
|
|
24
|
+
onRequest: action_types_1.AgentTypes.AGENTS_STATUS_REQUEST,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function getLLMServices() {
|
|
28
|
+
return (0, helpers_1.bindClientFunc)({
|
|
29
|
+
clientFunc: client_1.Client4.getLLMServices,
|
|
30
|
+
onSuccess: [action_types_1.AgentTypes.RECEIVED_LLM_SERVICES],
|
|
31
|
+
onFailure: action_types_1.AgentTypes.LLM_SERVICES_FAILURE,
|
|
32
|
+
onRequest: action_types_1.AgentTypes.LLM_SERVICES_REQUEST,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -12,6 +12,7 @@ export declare function createDirectChannel(userId: string, otherUserId: string)
|
|
|
12
12
|
export declare function markGroupChannelOpen(channelId: string): ActionFuncAsync;
|
|
13
13
|
export declare function createGroupChannel(userIds: string[]): ActionFuncAsync<Channel>;
|
|
14
14
|
export declare function patchChannel(channelId: string, patch: Partial<Channel>): ActionFuncAsync<Channel>;
|
|
15
|
+
export declare function setMyChannelAutotranslation(channelId: string, enabled: boolean): ActionFuncAsync<boolean>;
|
|
15
16
|
export declare function updateChannelPrivacy(channelId: string, privacy: string): ActionFuncAsync<Channel>;
|
|
16
17
|
export declare function convertGroupMessageToPrivateChannel(channelID: string, teamID: string, displayName: string, name: string): ActionFuncAsync<Channel>;
|
|
17
18
|
export declare function updateChannelNotifyProps(userId: string, channelId: string, props: Partial<ChannelNotifyProps>): ActionFuncAsync;
|
package/lib/actions/channels.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.createDirectChannel = createDirectChannel;
|
|
|
8
8
|
exports.markGroupChannelOpen = markGroupChannelOpen;
|
|
9
9
|
exports.createGroupChannel = createGroupChannel;
|
|
10
10
|
exports.patchChannel = patchChannel;
|
|
11
|
+
exports.setMyChannelAutotranslation = setMyChannelAutotranslation;
|
|
11
12
|
exports.updateChannelPrivacy = updateChannelPrivacy;
|
|
12
13
|
exports.convertGroupMessageToPrivateChannel = convertGroupMessageToPrivateChannel;
|
|
13
14
|
exports.updateChannelNotifyProps = updateChannelNotifyProps;
|
|
@@ -72,6 +73,7 @@ const data_loader_1 = require("mattermost-redux/utils/data_loader");
|
|
|
72
73
|
const channel_categories_3 = require("./channel_categories");
|
|
73
74
|
const errors_1 = require("./errors");
|
|
74
75
|
const helpers_1 = require("./helpers");
|
|
76
|
+
const posts_1 = require("./posts");
|
|
75
77
|
const preferences_1 = require("./preferences");
|
|
76
78
|
const roles_1 = require("./roles");
|
|
77
79
|
const users_1 = require("./users");
|
|
@@ -267,6 +269,38 @@ function patchChannel(channelId, patch) {
|
|
|
267
269
|
params: [channelId, patch],
|
|
268
270
|
});
|
|
269
271
|
}
|
|
272
|
+
function setMyChannelAutotranslation(channelId, enabled) {
|
|
273
|
+
return async (dispatch, getState) => {
|
|
274
|
+
const state = getState();
|
|
275
|
+
const myChannelMember = (0, channels_2.getMyChannelMember)(state, channelId);
|
|
276
|
+
if (!myChannelMember) {
|
|
277
|
+
return { data: false, error: 'Channel member not found' };
|
|
278
|
+
}
|
|
279
|
+
const updatedMember = {
|
|
280
|
+
...myChannelMember,
|
|
281
|
+
autotranslation_disabled: !enabled,
|
|
282
|
+
};
|
|
283
|
+
try {
|
|
284
|
+
await client_1.Client4.setMyChannelAutotranslation(channelId, enabled);
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
(0, helpers_1.forceLogoutIfNecessary)(error, dispatch, getState);
|
|
288
|
+
dispatch((0, errors_1.logError)(error));
|
|
289
|
+
return { data: undefined, error };
|
|
290
|
+
}
|
|
291
|
+
// We check before updating the store
|
|
292
|
+
const becameEnabled = (0, channels_2.hasAutotranslationBecomeEnabled)(state, updatedMember);
|
|
293
|
+
dispatch({
|
|
294
|
+
type: action_types_1.ChannelTypes.RECEIVED_MY_CHANNEL_MEMBER,
|
|
295
|
+
data: updatedMember,
|
|
296
|
+
});
|
|
297
|
+
// If autotranslation changed, delete posts for this channel
|
|
298
|
+
if (becameEnabled) {
|
|
299
|
+
await dispatch((0, posts_1.resetReloadPostsInChannel)(channelId));
|
|
300
|
+
}
|
|
301
|
+
return { data: true, error: undefined };
|
|
302
|
+
};
|
|
303
|
+
}
|
|
270
304
|
function updateChannelPrivacy(channelId, privacy) {
|
|
271
305
|
return (0, helpers_1.bindClientFunc)({
|
|
272
306
|
clientFunc: client_1.Client4.updateChannelPrivacy,
|
package/lib/actions/general.js
CHANGED
|
@@ -111,9 +111,10 @@ function checkCWSAvailability() {
|
|
|
111
111
|
}
|
|
112
112
|
dispatch({ type: action_types_1.GeneralTypes.CWS_AVAILABILITY_CHECK_REQUEST });
|
|
113
113
|
try {
|
|
114
|
-
await client_1.Client4.cwsAvailabilityCheck();
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
const response = await client_1.Client4.cwsAvailabilityCheck();
|
|
115
|
+
const status = response.status;
|
|
116
|
+
dispatch({ type: action_types_1.GeneralTypes.CWS_AVAILABILITY_CHECK_SUCCESS, data: status });
|
|
117
|
+
return { data: status };
|
|
117
118
|
}
|
|
118
119
|
catch (error) {
|
|
119
120
|
dispatch({ type: action_types_1.GeneralTypes.CWS_AVAILABILITY_CHECK_FAILURE });
|
package/lib/actions/posts.d.ts
CHANGED
|
@@ -138,10 +138,11 @@ export declare function resetHistoryIndex(index: string): {
|
|
|
138
138
|
};
|
|
139
139
|
export declare function moveHistoryIndexBack(index: string): ActionFuncAsync;
|
|
140
140
|
export declare function moveHistoryIndexForward(index: string): ActionFuncAsync;
|
|
141
|
+
export declare function resetReloadPostsInTranslatedChannels(): ActionFuncAsync;
|
|
141
142
|
/**
|
|
142
143
|
* Ensures thread-replies in channels correctly follow CRT:ON/OFF
|
|
143
144
|
*/
|
|
144
|
-
export declare function resetReloadPostsInChannel(): ActionFuncAsync;
|
|
145
|
+
export declare function resetReloadPostsInChannel(channelId?: string): ActionFuncAsync;
|
|
145
146
|
export declare function acknowledgePost(postId: string): ActionFuncAsync;
|
|
146
147
|
export declare function unacknowledgePost(postId: string): ActionFuncAsync;
|
|
147
148
|
export declare function restorePostVersion(postId: string, restoreVersionId: string, connectionId: string): ActionFuncAsync;
|
package/lib/actions/posts.js
CHANGED
|
@@ -74,6 +74,7 @@ exports.addMessageIntoHistory = addMessageIntoHistory;
|
|
|
74
74
|
exports.resetHistoryIndex = resetHistoryIndex;
|
|
75
75
|
exports.moveHistoryIndexBack = moveHistoryIndexBack;
|
|
76
76
|
exports.moveHistoryIndexForward = moveHistoryIndexForward;
|
|
77
|
+
exports.resetReloadPostsInTranslatedChannels = resetReloadPostsInTranslatedChannels;
|
|
77
78
|
exports.resetReloadPostsInChannel = resetReloadPostsInChannel;
|
|
78
79
|
exports.acknowledgePost = acknowledgePost;
|
|
79
80
|
exports.unacknowledgePost = unacknowledgePost;
|
|
@@ -1157,16 +1158,34 @@ function moveHistoryIndexForward(index) {
|
|
|
1157
1158
|
return { data: true };
|
|
1158
1159
|
};
|
|
1159
1160
|
}
|
|
1161
|
+
function resetReloadPostsInTranslatedChannels() {
|
|
1162
|
+
return async (dispatch, getState) => {
|
|
1163
|
+
const state = getState();
|
|
1164
|
+
const channels = (0, channels_2.getAllChannels)(state);
|
|
1165
|
+
for (const channel of Object.values(channels)) {
|
|
1166
|
+
if (!channel.autotranslation) {
|
|
1167
|
+
continue;
|
|
1168
|
+
}
|
|
1169
|
+
const myMember = (0, channels_2.getMyChannelMember)(state, channel.id);
|
|
1170
|
+
if (myMember?.autotranslation_disabled) {
|
|
1171
|
+
continue;
|
|
1172
|
+
}
|
|
1173
|
+
dispatch(resetReloadPostsInChannel(channel.id));
|
|
1174
|
+
}
|
|
1175
|
+
return { data: true };
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1160
1178
|
/**
|
|
1161
1179
|
* Ensures thread-replies in channels correctly follow CRT:ON/OFF
|
|
1162
1180
|
*/
|
|
1163
|
-
function resetReloadPostsInChannel() {
|
|
1181
|
+
function resetReloadPostsInChannel(channelId) {
|
|
1164
1182
|
return async (dispatch, getState) => {
|
|
1165
1183
|
dispatch({
|
|
1166
1184
|
type: action_types_1.PostTypes.RESET_POSTS_IN_CHANNEL,
|
|
1185
|
+
channelId,
|
|
1167
1186
|
});
|
|
1168
1187
|
const currentChannelId = (0, channels_2.getCurrentChannelId)(getState());
|
|
1169
|
-
if (currentChannelId) {
|
|
1188
|
+
if (currentChannelId && (!channelId || channelId === currentChannelId)) {
|
|
1170
1189
|
// wait for channel to be fully deselected; prevent stuck loading screen
|
|
1171
1190
|
// full state-change/reconciliation will cause prefetchChannelPosts to reload posts
|
|
1172
1191
|
await dispatch((0, channels_1.selectChannel)('')); // do not remove await
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Recap } from '@mattermost/types/recaps';
|
|
2
|
+
import type { ActionFuncAsync } from 'mattermost-redux/types/actions';
|
|
3
|
+
export declare function createRecap(title: string, channelIds: string[], agentId: string): ActionFuncAsync<Recap>;
|
|
4
|
+
export declare function getRecaps(page?: number, perPage?: number): ActionFuncAsync<Recap[]>;
|
|
5
|
+
export declare function getRecap(recapId: string): ActionFuncAsync<Recap>;
|
|
6
|
+
export declare function markRecapAsRead(recapId: string): ActionFuncAsync<Recap>;
|
|
7
|
+
export declare function regenerateRecap(recapId: string): ActionFuncAsync<Recap>;
|
|
8
|
+
export declare function deleteRecap(recapId: string): ActionFuncAsync;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
|
+
// See LICENSE.txt for license information.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.createRecap = createRecap;
|
|
6
|
+
exports.getRecaps = getRecaps;
|
|
7
|
+
exports.getRecap = getRecap;
|
|
8
|
+
exports.markRecapAsRead = markRecapAsRead;
|
|
9
|
+
exports.regenerateRecap = regenerateRecap;
|
|
10
|
+
exports.deleteRecap = deleteRecap;
|
|
11
|
+
const action_types_1 = require("mattermost-redux/action_types");
|
|
12
|
+
const errors_1 = require("mattermost-redux/actions/errors");
|
|
13
|
+
const client_1 = require("mattermost-redux/client");
|
|
14
|
+
const helpers_1 = require("./helpers");
|
|
15
|
+
function createRecap(title, channelIds, agentId) {
|
|
16
|
+
return (0, helpers_1.bindClientFunc)({
|
|
17
|
+
clientFunc: () => client_1.Client4.createRecap({ title, channel_ids: channelIds, agent_id: agentId }),
|
|
18
|
+
onRequest: action_types_1.RecapTypes.CREATE_RECAP_REQUEST,
|
|
19
|
+
onSuccess: [action_types_1.RecapTypes.CREATE_RECAP_SUCCESS, action_types_1.RecapTypes.RECEIVED_RECAP],
|
|
20
|
+
onFailure: action_types_1.RecapTypes.CREATE_RECAP_FAILURE,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function getRecaps(page = 0, perPage = 60) {
|
|
24
|
+
return (0, helpers_1.bindClientFunc)({
|
|
25
|
+
clientFunc: () => client_1.Client4.getRecaps(page, perPage),
|
|
26
|
+
onRequest: action_types_1.RecapTypes.GET_RECAPS_REQUEST,
|
|
27
|
+
onSuccess: [action_types_1.RecapTypes.GET_RECAPS_SUCCESS, action_types_1.RecapTypes.RECEIVED_RECAPS],
|
|
28
|
+
onFailure: action_types_1.RecapTypes.GET_RECAPS_FAILURE,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function getRecap(recapId) {
|
|
32
|
+
return (0, helpers_1.bindClientFunc)({
|
|
33
|
+
clientFunc: () => client_1.Client4.getRecap(recapId),
|
|
34
|
+
onRequest: action_types_1.RecapTypes.GET_RECAP_REQUEST,
|
|
35
|
+
onSuccess: [action_types_1.RecapTypes.GET_RECAP_SUCCESS, action_types_1.RecapTypes.RECEIVED_RECAP],
|
|
36
|
+
onFailure: action_types_1.RecapTypes.GET_RECAP_FAILURE,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function markRecapAsRead(recapId) {
|
|
40
|
+
return (0, helpers_1.bindClientFunc)({
|
|
41
|
+
clientFunc: () => client_1.Client4.markRecapAsRead(recapId),
|
|
42
|
+
onRequest: action_types_1.RecapTypes.MARK_RECAP_READ_REQUEST,
|
|
43
|
+
onSuccess: [action_types_1.RecapTypes.MARK_RECAP_READ_SUCCESS, action_types_1.RecapTypes.RECEIVED_RECAP],
|
|
44
|
+
onFailure: action_types_1.RecapTypes.MARK_RECAP_READ_FAILURE,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function regenerateRecap(recapId) {
|
|
48
|
+
return (0, helpers_1.bindClientFunc)({
|
|
49
|
+
clientFunc: () => client_1.Client4.regenerateRecap(recapId),
|
|
50
|
+
onRequest: action_types_1.RecapTypes.REGENERATE_RECAP_REQUEST,
|
|
51
|
+
onSuccess: [action_types_1.RecapTypes.REGENERATE_RECAP_SUCCESS, action_types_1.RecapTypes.RECEIVED_RECAP],
|
|
52
|
+
onFailure: action_types_1.RecapTypes.REGENERATE_RECAP_FAILURE,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function deleteRecap(recapId) {
|
|
56
|
+
return async (dispatch, getState) => {
|
|
57
|
+
dispatch({ type: action_types_1.RecapTypes.DELETE_RECAP_REQUEST, data: recapId });
|
|
58
|
+
try {
|
|
59
|
+
await client_1.Client4.deleteRecap(recapId);
|
|
60
|
+
dispatch({
|
|
61
|
+
type: action_types_1.RecapTypes.DELETE_RECAP_SUCCESS,
|
|
62
|
+
data: { recapId },
|
|
63
|
+
});
|
|
64
|
+
return { data: true };
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
dispatch((0, errors_1.logError)(error));
|
|
68
|
+
(0, helpers_1.forceLogoutIfNecessary)(error, dispatch, getState);
|
|
69
|
+
dispatch({
|
|
70
|
+
type: action_types_1.RecapTypes.DELETE_RECAP_FAILURE,
|
|
71
|
+
error,
|
|
72
|
+
});
|
|
73
|
+
return { error };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare function createSchedulePost(schedulePost: ScheduledPost, teamId:
|
|
|
7
7
|
error: any;
|
|
8
8
|
data?: undefined;
|
|
9
9
|
}>;
|
|
10
|
-
export declare function fetchTeamScheduledPosts(teamId: string, includeDirectChannels: boolean, prune?:
|
|
10
|
+
export declare function fetchTeamScheduledPosts(teamId: string, includeDirectChannels: boolean, prune?: boolean): (dispatch: DispatchFunc, getState: GetStateFunc) => Promise<{
|
|
11
11
|
error: any;
|
|
12
12
|
data?: undefined;
|
|
13
13
|
} | {
|
package/lib/actions/users.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export declare function getProfilesByIds(userIds: string[], options?: any): Acti
|
|
|
18
18
|
export declare function getProfilesByUsernames(usernames: string[]): ActionFuncAsync<UserProfile[]>;
|
|
19
19
|
export declare function getProfilesInTeam(teamId: string, page: number, perPage?: number, sort?: string, options?: any): ActionFuncAsync<UserProfile[]>;
|
|
20
20
|
export declare function getProfilesNotInTeam(teamId: string, groupConstrained: boolean, page: number, perPage?: number): ActionFuncAsync<UserProfile[]>;
|
|
21
|
-
export declare function getProfilesWithoutTeam(page: number, perPage?: number, options?: any): ActionFuncAsync<UserProfile[]>;
|
|
22
21
|
export declare enum ProfilesInChannelSortBy {
|
|
23
22
|
None = "",
|
|
24
23
|
Admin = "admin"
|
package/lib/actions/users.js
CHANGED
|
@@ -16,7 +16,6 @@ exports.getProfilesByIds = getProfilesByIds;
|
|
|
16
16
|
exports.getProfilesByUsernames = getProfilesByUsernames;
|
|
17
17
|
exports.getProfilesInTeam = getProfilesInTeam;
|
|
18
18
|
exports.getProfilesNotInTeam = getProfilesNotInTeam;
|
|
19
|
-
exports.getProfilesWithoutTeam = getProfilesWithoutTeam;
|
|
20
19
|
exports.getProfilesInChannel = getProfilesInChannel;
|
|
21
20
|
exports.batchGetProfilesInChannel = batchGetProfilesInChannel;
|
|
22
21
|
exports.getProfilesInGroupChannels = getProfilesInGroupChannels;
|
|
@@ -335,30 +334,6 @@ function getProfilesNotInTeam(teamId, groupConstrained, page, perPage = constant
|
|
|
335
334
|
return { data: profiles };
|
|
336
335
|
};
|
|
337
336
|
}
|
|
338
|
-
function getProfilesWithoutTeam(page, perPage = constants_1.General.PROFILE_CHUNK_SIZE, options = {}) {
|
|
339
|
-
return async (dispatch, getState) => {
|
|
340
|
-
let profiles = null;
|
|
341
|
-
try {
|
|
342
|
-
profiles = await client_1.Client4.getProfilesWithoutTeam(page, perPage, options);
|
|
343
|
-
}
|
|
344
|
-
catch (error) {
|
|
345
|
-
(0, helpers_1.forceLogoutIfNecessary)(error, dispatch, getState);
|
|
346
|
-
dispatch((0, errors_1.logError)(error));
|
|
347
|
-
return { error };
|
|
348
|
-
}
|
|
349
|
-
dispatch((0, redux_batched_actions_1.batchActions)([
|
|
350
|
-
{
|
|
351
|
-
type: action_types_1.UserTypes.RECEIVED_PROFILES_LIST_WITHOUT_TEAM,
|
|
352
|
-
data: profiles,
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
type: action_types_1.UserTypes.RECEIVED_PROFILES_LIST,
|
|
356
|
-
data: profiles,
|
|
357
|
-
},
|
|
358
|
-
]));
|
|
359
|
-
return { data: profiles };
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
337
|
var ProfilesInChannelSortBy;
|
|
363
338
|
(function (ProfilesInChannelSortBy) {
|
|
364
339
|
ProfilesInChannelSortBy["None"] = "";
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -11,5 +11,4 @@ import Stats from './stats';
|
|
|
11
11
|
import Teams from './teams';
|
|
12
12
|
import Threads from './threads';
|
|
13
13
|
import Users from './users';
|
|
14
|
-
|
|
15
|
-
export { General, Preferences, Posts, Files, RequestStatus, WebsocketEvents, Teams, Stats, Permissions, Emoji, Plugins, Users, Roles, Threads };
|
|
14
|
+
export { General, Preferences, Posts, Files, RequestStatus, Teams, Stats, Permissions, Emoji, Plugins, Users, Roles, Threads };
|
package/lib/constants/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6
6
|
};
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Threads = exports.Roles = exports.Users = exports.Plugins = exports.Emoji = exports.Permissions = exports.Stats = exports.Teams = exports.
|
|
8
|
+
exports.Threads = exports.Roles = exports.Users = exports.Plugins = exports.Emoji = exports.Permissions = exports.Stats = exports.Teams = exports.RequestStatus = exports.Files = exports.Posts = exports.Preferences = exports.General = void 0;
|
|
9
9
|
const emoji_1 = __importDefault(require("./emoji"));
|
|
10
10
|
exports.Emoji = emoji_1.default;
|
|
11
11
|
const files_1 = __importDefault(require("./files"));
|
|
@@ -32,5 +32,3 @@ const threads_1 = __importDefault(require("./threads"));
|
|
|
32
32
|
exports.Threads = threads_1.default;
|
|
33
33
|
const users_1 = __importDefault(require("./users"));
|
|
34
34
|
exports.Users = users_1.default;
|
|
35
|
-
const websocket_1 = __importDefault(require("./websocket"));
|
|
36
|
-
exports.WebsocketEvents = websocket_1.default;
|
|
@@ -19,6 +19,8 @@ declare const values: {
|
|
|
19
19
|
CREATE_GROUP_CHANNEL: string;
|
|
20
20
|
MANAGE_PUBLIC_CHANNEL_PROPERTIES: string;
|
|
21
21
|
MANAGE_PRIVATE_CHANNEL_PROPERTIES: string;
|
|
22
|
+
MANAGE_PUBLIC_CHANNEL_AUTO_TRANSLATION: string;
|
|
23
|
+
MANAGE_PRIVATE_CHANNEL_AUTO_TRANSLATION: string;
|
|
22
24
|
LIST_PUBLIC_TEAMS: string;
|
|
23
25
|
JOIN_PUBLIC_TEAMS: string;
|
|
24
26
|
LIST_PRIVATE_TEAMS: string;
|
|
@@ -23,6 +23,8 @@ const values = {
|
|
|
23
23
|
CREATE_GROUP_CHANNEL: 'create_group_channel',
|
|
24
24
|
MANAGE_PUBLIC_CHANNEL_PROPERTIES: 'manage_public_channel_properties',
|
|
25
25
|
MANAGE_PRIVATE_CHANNEL_PROPERTIES: 'manage_private_channel_properties',
|
|
26
|
+
MANAGE_PUBLIC_CHANNEL_AUTO_TRANSLATION: 'manage_public_channel_auto_translation',
|
|
27
|
+
MANAGE_PRIVATE_CHANNEL_AUTO_TRANSLATION: 'manage_private_channel_auto_translation',
|
|
26
28
|
LIST_PUBLIC_TEAMS: 'list_public_teams',
|
|
27
29
|
JOIN_PUBLIC_TEAMS: 'join_public_teams',
|
|
28
30
|
LIST_PRIVATE_TEAMS: 'list_private_teams',
|
package/lib/constants/posts.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const PostTypes: {
|
|
|
8
8
|
EPHEMERAL_ADD_TO_CHANNEL: PostType;
|
|
9
9
|
HEADER_CHANGE: PostType;
|
|
10
10
|
PURPOSE_CHANGE: PostType;
|
|
11
|
+
AUTO_TRANSLATION_CHANGE: PostType;
|
|
11
12
|
JOIN_LEAVE: PostType;
|
|
12
13
|
JOIN_CHANNEL: PostType;
|
|
13
14
|
GUEST_JOIN_CHANNEL: PostType;
|
|
@@ -43,6 +44,7 @@ declare const _default: {
|
|
|
43
44
|
EPHEMERAL_ADD_TO_CHANNEL: PostType;
|
|
44
45
|
HEADER_CHANGE: PostType;
|
|
45
46
|
PURPOSE_CHANGE: PostType;
|
|
47
|
+
AUTO_TRANSLATION_CHANGE: PostType;
|
|
46
48
|
JOIN_LEAVE: PostType;
|
|
47
49
|
JOIN_CHANNEL: PostType;
|
|
48
50
|
GUEST_JOIN_CHANNEL: PostType;
|
package/lib/constants/posts.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.PostTypes = {
|
|
|
12
12
|
EPHEMERAL_ADD_TO_CHANNEL: 'system_ephemeral_add_to_channel',
|
|
13
13
|
HEADER_CHANGE: 'system_header_change',
|
|
14
14
|
PURPOSE_CHANGE: 'system_purpose_change',
|
|
15
|
+
AUTO_TRANSLATION_CHANGE: 'system_autotranslation',
|
|
15
16
|
JOIN_LEAVE: 'system_join_leave',
|
|
16
17
|
JOIN_CHANNEL: 'system_join_channel',
|
|
17
18
|
GUEST_JOIN_CHANNEL: 'system_guest_join_channel',
|
|
@@ -59,7 +59,6 @@ declare const Preferences: {
|
|
|
59
59
|
CATEGORY_DRAFTS: string;
|
|
60
60
|
CATEGORY_REPORTING: string;
|
|
61
61
|
HIDE_BATCH_EXPORT_CONFIRM_MODAL: string;
|
|
62
|
-
HIDE_MYSQL_STATS_NOTIFICATION: string;
|
|
63
62
|
CATEGORY_OVERAGE_USERS_BANNER: string;
|
|
64
63
|
CATEGORY_POST_HISTORY_LIMIT_BANNER: string;
|
|
65
64
|
CATEGORY_BURN_ON_READ: string;
|