@mattermost/types 9.10.0 → 10.0.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
@@ -84,7 +84,6 @@ export type ClientConfig = {
84
84
  EnableOutgoingWebhooks: string;
85
85
  EnablePostIconOverride: string;
86
86
  EnablePostUsernameOverride: string;
87
- EnablePreviewFeatures: string;
88
87
  EnablePreviewModeBanner: string;
89
88
  EnablePublicLink: string;
90
89
  EnableReliableWebSockets: string;
@@ -321,6 +320,7 @@ export type ServiceSettings = {
321
320
  CorsDebug: boolean;
322
321
  AllowCookiesForSubdomains: boolean;
323
322
  ExtendSessionLengthWithActivity: boolean;
323
+ TerminateSessionsOnPasswordChange: boolean;
324
324
  SessionLengthWebInDays: number;
325
325
  SessionLengthWebInHours: number;
326
326
  SessionLengthMobileInDays: number;
@@ -346,7 +346,6 @@ export type ServiceSettings = {
346
346
  EnableUserStatuses: boolean;
347
347
  ExperimentalEnableAuthenticationTransfer: boolean;
348
348
  ClusterLogTimeoutMilliseconds: number;
349
- EnablePreviewFeatures: boolean;
350
349
  EnableTutorial: boolean;
351
350
  EnableOnboardingFlow: boolean;
352
351
  ExperimentalEnableDefaultChannelLeaveJoinMessages: boolean;
@@ -757,6 +756,7 @@ export type AnalyticsSettings = {
757
756
  };
758
757
  export type ElasticsearchSettings = {
759
758
  ConnectionURL: string;
759
+ Backend: string;
760
760
  Username: string;
761
761
  Password: string;
762
762
  EnableIndexing: boolean;
@@ -14,6 +14,10 @@ export type IncomingWebhook = {
14
14
  icon_url: string;
15
15
  channel_locked: boolean;
16
16
  };
17
+ export type IncomingWebhooksWithCount = {
18
+ incoming_webhooks: IncomingWebhook[];
19
+ total_count: number;
20
+ };
17
21
  export type OutgoingWebhook = {
18
22
  id: string;
19
23
  token: string;
@@ -108,6 +112,7 @@ export type OutgoingOAuthConnection = {
108
112
  };
109
113
  export type IntegrationsState = {
110
114
  incomingHooks: IDMappedObjects<IncomingWebhook>;
115
+ incomingHooksTotalCount: number;
111
116
  outgoingHooks: IDMappedObjects<OutgoingWebhook>;
112
117
  oauthApps: IDMappedObjects<OAuthApp>;
113
118
  outgoingOAuthConnections: IDMappedObjects<OutgoingOAuthConnection>;
package/lib/plugins.d.ts CHANGED
@@ -37,6 +37,16 @@ export type PluginSettingsSchema = {
37
37
  header: string;
38
38
  footer: string;
39
39
  settings: PluginSetting[];
40
+ sections?: PluginSettingSection[];
41
+ };
42
+ export type PluginSettingSection = {
43
+ key: string;
44
+ title?: string;
45
+ subtitle?: string;
46
+ settings: PluginSetting[];
47
+ header?: string;
48
+ footer?: string;
49
+ custom?: boolean;
40
50
  };
41
51
  export type PluginSetting = {
42
52
  key: string;
@@ -2,7 +2,7 @@ export type PreferenceType = {
2
2
  category: string;
3
3
  name: string;
4
4
  user_id: string;
5
- value?: string;
5
+ value: string;
6
6
  };
7
7
  export type PreferencesType = {
8
8
  [x: string]: PreferenceType;
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": "10.0.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"