@mattermost/types 9.9.0 → 9.11.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/admin.d.ts +8 -2
- package/lib/admin.js +7 -1
- package/lib/channel_bookmarks.d.ts +51 -0
- package/lib/channel_bookmarks.js +4 -0
- package/lib/client4.d.ts +1 -0
- package/lib/config.d.ts +3 -0
- package/lib/store.d.ts +7 -0
- package/lib/users.d.ts +2 -0
- package/package.json +1 -1
package/lib/admin.d.ts
CHANGED
|
@@ -100,11 +100,17 @@ export type AnalyticsRow = {
|
|
|
100
100
|
export type IndexedPluginAnalyticsRow = {
|
|
101
101
|
[key: string]: PluginAnalyticsRow;
|
|
102
102
|
};
|
|
103
|
+
export declare enum AnalyticsVisualizationType {
|
|
104
|
+
Count = "count",
|
|
105
|
+
LineChart = "line_chart",
|
|
106
|
+
DoughnutChart = "doughnut_chart"
|
|
107
|
+
}
|
|
103
108
|
export type PluginAnalyticsRow = {
|
|
104
109
|
id: string;
|
|
105
110
|
name: React.ReactNode;
|
|
106
|
-
icon
|
|
107
|
-
value:
|
|
111
|
+
icon?: string;
|
|
112
|
+
value: any;
|
|
113
|
+
visualizationType?: AnalyticsVisualizationType;
|
|
108
114
|
};
|
|
109
115
|
export type SchemaMigration = {
|
|
110
116
|
version: number;
|
package/lib/admin.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.LogLevelEnum = void 0;
|
|
5
|
+
exports.AnalyticsVisualizationType = exports.LogLevelEnum = void 0;
|
|
6
6
|
var LogLevelEnum;
|
|
7
7
|
(function (LogLevelEnum) {
|
|
8
8
|
LogLevelEnum["SILLY"] = "silly";
|
|
@@ -11,3 +11,9 @@ var LogLevelEnum;
|
|
|
11
11
|
LogLevelEnum["WARN"] = "warn";
|
|
12
12
|
LogLevelEnum["ERROR"] = "error";
|
|
13
13
|
})(LogLevelEnum || (exports.LogLevelEnum = LogLevelEnum = {}));
|
|
14
|
+
var AnalyticsVisualizationType;
|
|
15
|
+
(function (AnalyticsVisualizationType) {
|
|
16
|
+
AnalyticsVisualizationType["Count"] = "count";
|
|
17
|
+
AnalyticsVisualizationType["LineChart"] = "line_chart";
|
|
18
|
+
AnalyticsVisualizationType["DoughnutChart"] = "doughnut_chart";
|
|
19
|
+
})(AnalyticsVisualizationType || (exports.AnalyticsVisualizationType = AnalyticsVisualizationType = {}));
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Channel } from './channels';
|
|
2
|
+
import type { FileInfo } from './files';
|
|
3
|
+
import type { IDMappedObjects } from './utilities';
|
|
4
|
+
type ChannelBookmarkType = 'link' | 'file';
|
|
5
|
+
export type ChannelBookmark = {
|
|
6
|
+
id: string;
|
|
7
|
+
create_at: number;
|
|
8
|
+
update_at: number;
|
|
9
|
+
delete_at: number;
|
|
10
|
+
channel_id: string;
|
|
11
|
+
owner_id: string;
|
|
12
|
+
file_id?: string;
|
|
13
|
+
file?: FileInfo;
|
|
14
|
+
display_name: string;
|
|
15
|
+
sort_order: number;
|
|
16
|
+
link_url?: string;
|
|
17
|
+
image_url?: string;
|
|
18
|
+
emoji?: string;
|
|
19
|
+
type: ChannelBookmarkType;
|
|
20
|
+
original_id?: string;
|
|
21
|
+
parent_id?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ChannelBookmarkCreate = {
|
|
24
|
+
display_name: string;
|
|
25
|
+
image_url?: string;
|
|
26
|
+
emoji?: string;
|
|
27
|
+
type: ChannelBookmarkType;
|
|
28
|
+
} & ({
|
|
29
|
+
type: 'link';
|
|
30
|
+
link_url: string;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'file';
|
|
33
|
+
file_id: string;
|
|
34
|
+
});
|
|
35
|
+
export type ChannelBookmarkPatch = {
|
|
36
|
+
file_id?: string;
|
|
37
|
+
display_name?: string;
|
|
38
|
+
sort_order?: number;
|
|
39
|
+
link_url?: string;
|
|
40
|
+
image_url?: string;
|
|
41
|
+
emoji?: string;
|
|
42
|
+
};
|
|
43
|
+
export type ChannelBookmarkWithFileInfo = ChannelBookmark & {
|
|
44
|
+
file: FileInfo;
|
|
45
|
+
};
|
|
46
|
+
export type ChannelBookmarksState = {
|
|
47
|
+
byChannelId: {
|
|
48
|
+
[channelId: Channel['id']]: IDMappedObjects<ChannelBookmark>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export {};
|
package/lib/client4.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export type Options = {
|
|
|
17
17
|
url?: string;
|
|
18
18
|
credentials?: 'omit' | 'same-origin' | 'include';
|
|
19
19
|
body?: any;
|
|
20
|
+
signal?: RequestInit['signal'];
|
|
20
21
|
ignoreStatus?: boolean; /** If true, status codes > 300 are ignored and don't cause an error */
|
|
21
22
|
};
|
|
22
23
|
export type StatusOK = {
|
package/lib/config.d.ts
CHANGED
|
@@ -207,6 +207,7 @@ export type ClientConfig = {
|
|
|
207
207
|
WranglerMoveThreadFromGroupMessageChannelEnable: string;
|
|
208
208
|
ServiceEnvironment: string;
|
|
209
209
|
UniqueEmojiReactionLimitPerPost: string;
|
|
210
|
+
UsersStatusAndProfileFetchingPollIntervalMilliseconds: string;
|
|
210
211
|
};
|
|
211
212
|
export type License = {
|
|
212
213
|
id: string;
|
|
@@ -320,6 +321,7 @@ export type ServiceSettings = {
|
|
|
320
321
|
CorsDebug: boolean;
|
|
321
322
|
AllowCookiesForSubdomains: boolean;
|
|
322
323
|
ExtendSessionLengthWithActivity: boolean;
|
|
324
|
+
TerminateSessionsOnPasswordChange: boolean;
|
|
323
325
|
SessionLengthWebInDays: number;
|
|
324
326
|
SessionLengthWebInHours: number;
|
|
325
327
|
SessionLengthMobileInDays: number;
|
|
@@ -756,6 +758,7 @@ export type AnalyticsSettings = {
|
|
|
756
758
|
};
|
|
757
759
|
export type ElasticsearchSettings = {
|
|
758
760
|
ConnectionURL: string;
|
|
761
|
+
Backend: string;
|
|
759
762
|
Username: string;
|
|
760
763
|
Password: string;
|
|
761
764
|
EnableIndexing: boolean;
|
package/lib/store.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AdminState } from './admin';
|
|
2
2
|
import type { AppsState } from './apps';
|
|
3
3
|
import type { Bot } from './bots';
|
|
4
|
+
import type { ChannelBookmarksState } from './channel_bookmarks';
|
|
4
5
|
import type { ChannelCategoriesState } from './channel_categories';
|
|
5
6
|
import type { ChannelsState } from './channels';
|
|
6
7
|
import type { CloudState, CloudUsage } from './cloud';
|
|
@@ -29,6 +30,7 @@ export type GlobalState = {
|
|
|
29
30
|
limits: LimitsState;
|
|
30
31
|
teams: TeamsState;
|
|
31
32
|
channels: ChannelsState;
|
|
33
|
+
channelBookmarks: ChannelBookmarksState;
|
|
32
34
|
posts: PostsState;
|
|
33
35
|
threads: ThreadsState;
|
|
34
36
|
bots: {
|
|
@@ -38,6 +40,11 @@ export type GlobalState = {
|
|
|
38
40
|
myPreferences: {
|
|
39
41
|
[x: string]: PreferenceType;
|
|
40
42
|
};
|
|
43
|
+
userPreferences: {
|
|
44
|
+
[userID: string]: {
|
|
45
|
+
[x: string]: PreferenceType;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
41
48
|
};
|
|
42
49
|
admin: AdminState;
|
|
43
50
|
jobs: JobsState;
|
package/lib/users.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export type UserNotifyProps = {
|
|
|
24
24
|
push_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
25
25
|
auto_responder_active?: 'true' | 'false';
|
|
26
26
|
auto_responder_message?: string;
|
|
27
|
+
calls_mobile_sound?: 'true' | 'false' | '';
|
|
28
|
+
calls_mobile_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful' | '';
|
|
27
29
|
};
|
|
28
30
|
export type UserProfile = {
|
|
29
31
|
id: string;
|