@mattermost/types 9.10.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.
@@ -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 {};
@@ -0,0 +1,4 @@
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 });
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
@@ -321,6 +321,7 @@ export type ServiceSettings = {
321
321
  CorsDebug: boolean;
322
322
  AllowCookiesForSubdomains: boolean;
323
323
  ExtendSessionLengthWithActivity: boolean;
324
+ TerminateSessionsOnPasswordChange: boolean;
324
325
  SessionLengthWebInDays: number;
325
326
  SessionLengthWebInHours: number;
326
327
  SessionLengthMobileInDays: number;
@@ -757,6 +758,7 @@ export type AnalyticsSettings = {
757
758
  };
758
759
  export type ElasticsearchSettings = {
759
760
  ConnectionURL: string;
761
+ Backend: string;
760
762
  Username: string;
761
763
  Password: string;
762
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "9.10.0",
3
+ "version": "9.11.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"