@mattermost/types 10.1.0 → 10.2.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/channels.d.ts CHANGED
@@ -170,6 +170,7 @@ export type ChannelSearchOpts = {
170
170
  private?: boolean;
171
171
  include_deleted?: boolean;
172
172
  include_search_by_id?: boolean;
173
+ exclude_remote?: boolean;
173
174
  deleted?: boolean;
174
175
  page?: number;
175
176
  per_page?: number;
package/lib/client4.d.ts CHANGED
@@ -19,6 +19,10 @@ export type Options = {
19
19
  body?: any;
20
20
  signal?: RequestInit['signal'];
21
21
  ignoreStatus?: boolean; /** If true, status codes > 300 are ignored and don't cause an error */
22
+ duplex?: 'half'; /** Optional, but required for node clients. Must be 'half' for half-duplex fetch; 'full' is reserved for future use. See https://fetch.spec.whatwg.org/#dom-requestinit-duplex */
23
+ };
24
+ export type OptsSignalExt = {
25
+ signal?: AbortSignal;
22
26
  };
23
27
  export type StatusOK = {
24
28
  status: 'OK';
package/lib/config.d.ts CHANGED
@@ -61,6 +61,7 @@ export type ClientConfig = {
61
61
  EnableCustomTermsOfService: string;
62
62
  EnableDeveloper: string;
63
63
  EnableDiagnostics: string;
64
+ EnableDesktopLandingPage: 'true' | 'false';
64
65
  EnableEmailBatching: string;
65
66
  EnableEmailInvitations: string;
66
67
  EnableEmojiPicker: string;
@@ -384,6 +385,7 @@ export type ServiceSettings = {
384
385
  UniqueEmojiReactionLimitPerPost: number;
385
386
  RefreshPostStatsRunTime: string;
386
387
  MaximumPayloadSizeBytes: number;
388
+ EnableAPIPostDeletion: boolean;
387
389
  MaximumURLLength: number;
388
390
  };
389
391
  export type TeamSettings = {
@@ -488,6 +490,12 @@ export type WranglerSettings = {
488
490
  MoveThreadFromDirectMessageChannelEnable: boolean;
489
491
  MoveThreadFromGroupMessageChannelEnable: boolean;
490
492
  };
493
+ export type ConnectedWorkspacesSettings = {
494
+ EnableSharedChannels: boolean;
495
+ EnableRemoteClusterService: boolean;
496
+ DisableSharedChannelsStatusSync: boolean;
497
+ MaxPostsPerSync: number;
498
+ };
491
499
  export type FileSettings = {
492
500
  EnableFileAttachments: boolean;
493
501
  EnableMobileUpload: boolean;
@@ -930,6 +938,7 @@ export type AdminConfig = {
930
938
  ImportSettings: ImportSettings;
931
939
  ExportSettings: ExportSettings;
932
940
  WranglerSettings: WranglerSettings;
941
+ ConnectedWorkspacesSettings: ConnectedWorkspacesSettings;
933
942
  };
934
943
  export type ReplicaLagSetting = {
935
944
  DataSource: string;
package/lib/posts.d.ts CHANGED
@@ -65,6 +65,7 @@ export type Post = {
65
65
  message_source?: string;
66
66
  is_following?: boolean;
67
67
  exists?: boolean;
68
+ remote_id?: string;
68
69
  };
69
70
  export type PostState = 'DELETED';
70
71
  export declare enum PostPriority {
@@ -0,0 +1,35 @@
1
+ export type RemoteClusterInvite = {
2
+ remote_id: string;
3
+ remote_team_id: string;
4
+ site_url: string;
5
+ token: string;
6
+ };
7
+ export type RemoteClusterAcceptInvite = {
8
+ name: string;
9
+ display_name: string;
10
+ default_team_id: string;
11
+ invite: string;
12
+ password: string;
13
+ };
14
+ export type RemoteClusterPatch = Pick<RemoteCluster, 'display_name' | 'default_team_id'>;
15
+ export declare function isRemoteClusterPatch(x: Partial<RemoteClusterPatch>): x is RemoteClusterPatch;
16
+ export type RemoteCluster = {
17
+ remote_id: string;
18
+ remote_team_id: string;
19
+ name: string;
20
+ display_name: string;
21
+ site_url: string;
22
+ create_at: number;
23
+ delete_at: number;
24
+ last_ping_at: number;
25
+ token?: string;
26
+ remote_token?: string;
27
+ topics: string;
28
+ creator_id: string;
29
+ plugin_id: string;
30
+ options: number;
31
+ default_team_id: string;
32
+ };
33
+ export type RemoteClusterWithPassword = RemoteCluster & {
34
+ password: string;
35
+ };
@@ -0,0 +1,10 @@
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.isRemoteClusterPatch = void 0;
6
+ function isRemoteClusterPatch(x) {
7
+ return ((x.display_name !== undefined && x.display_name !== '') ||
8
+ x.default_team_id !== undefined);
9
+ }
10
+ exports.isRemoteClusterPatch = isRemoteClusterPatch;
@@ -0,0 +1,15 @@
1
+ export type SharedChannelRemote = {
2
+ id: string;
3
+ channel_id: string;
4
+ creator_id: string;
5
+ create_at: number;
6
+ update_at: number;
7
+ delete_at: number;
8
+ is_invite_accepted: boolean;
9
+ is_invite_confirmed: boolean;
10
+ remote_id: string;
11
+ last_post_update_at: number;
12
+ last_post_id: string;
13
+ last_post_create_at: number;
14
+ last_post_create_id: string;
15
+ };
@@ -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 });
@@ -31,3 +31,4 @@ export type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<
31
31
  [K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
32
32
  }[Keys];
33
33
  export type Intersection<T1, T2> = Omit<Omit<T1 & T2, keyof (Omit<T1, keyof (T2)>)>, keyof (Omit<T2, keyof (T1)>)>;
34
+ export type PartialExcept<T extends Record<string, unknown>, TKeysNotPartial extends keyof T> = Partial<T> & Pick<T, TKeysNotPartial>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"