@mattermost/types 9.2.0 → 9.3.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/client4.d.ts CHANGED
@@ -17,6 +17,7 @@ export declare type Options = {
17
17
  url?: string;
18
18
  credentials?: 'omit' | 'same-origin' | 'include';
19
19
  body?: any;
20
+ ignoreStatus?: boolean; /** If true, status codes > 300 are ignored and don't cause an error */
20
21
  };
21
22
  export declare type StatusOK = {
22
23
  status: 'OK';
package/lib/config.d.ts CHANGED
@@ -110,7 +110,6 @@ export declare type ClientConfig = {
110
110
  ExperimentalEnablePostMetadata: string;
111
111
  ExperimentalGroupUnreadChannels: string;
112
112
  ExperimentalPrimaryTeam: string;
113
- ExperimentalTimezone: string;
114
113
  ExperimentalViewArchivedChannels: string;
115
114
  FileLevel: string;
116
115
  FeatureFlagAppsEnabled: string;
@@ -196,6 +195,7 @@ export declare type ClientConfig = {
196
195
  AllowPersistentNotificationsForGuests: string;
197
196
  DelayChannelAutocomplete: 'true' | 'false';
198
197
  ServiceEnvironment: string;
198
+ UniqueEmojiReactionLimitPerPost: string;
199
199
  };
200
200
  export declare type License = {
201
201
  id: string;
@@ -367,6 +367,7 @@ export declare type ServiceSettings = {
367
367
  PersistentNotificationIntervalMinutes: number;
368
368
  PersistentNotificationMaxCount: number;
369
369
  PersistentNotificationMaxRecipients: number;
370
+ UniqueEmojiReactionLimitPerPost: number;
370
371
  };
371
372
  export declare type TeamSettings = {
372
373
  SiteName: string;
@@ -820,7 +821,6 @@ export declare type PluginSettings = {
820
821
  };
821
822
  export declare type DisplaySettings = {
822
823
  CustomURLSchemes: string[];
823
- ExperimentalTimezone: boolean;
824
824
  MaxMarkdownNodes: number;
825
825
  };
826
826
  export declare type GuestAccountsSettings = {
package/lib/posts.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Channel, ChannelType } from './channels';
2
2
  import { CustomEmoji } from './emojis';
3
3
  import { FileInfo } from './files';
4
4
  import { Reaction } from './reactions';
5
+ import { TeamType } from './teams';
5
6
  import { UserProfile } from './users';
6
7
  import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
7
8
  export declare type PostType = 'system_add_remove' | 'system_add_to_channel' | 'system_add_to_team' | 'system_channel_deleted' | 'system_channel_restored' | 'system_displayname_change' | 'system_convert_channel' | 'system_ephemeral' | 'system_header_change' | 'system_join_channel' | 'system_join_leave' | 'system_leave_channel' | 'system_purpose_change' | 'system_remove_from_channel' | 'system_combined_user_activity' | 'system_fake_parent_deleted' | 'system_generic' | 'reminder' | '';
@@ -163,3 +164,13 @@ export declare type ActivityEntry = {
163
164
  userIds: string[];
164
165
  usernames: string[];
165
166
  };
167
+ export declare type PostInfo = {
168
+ channel_id: string;
169
+ channel_type: ChannelType;
170
+ channel_display_name: string;
171
+ has_joined_channel: boolean;
172
+ team_id: string;
173
+ team_type: TeamType;
174
+ team_display_name: string;
175
+ has_joined_team: boolean;
176
+ };
package/lib/users.d.ts CHANGED
@@ -16,6 +16,7 @@ export declare type UserNotifyProps = {
16
16
  first_name: 'true' | 'false';
17
17
  channel: 'true' | 'false';
18
18
  mention_keys: string;
19
+ highlight_keys: string;
19
20
  desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
20
21
  calls_notification_sound?: 'Dynamic' | 'Calm' | 'Urgent' | 'Cheerful';
21
22
  desktop_threads?: 'default' | 'all' | 'mention' | 'none';
@@ -21,7 +21,7 @@ export declare type IDMappedObjects<E extends {
21
21
  id: string;
22
22
  }> = RelationOneToOne<E, E>;
23
23
  export declare type DeepPartial<T> = {
24
- [P in keyof T]?: DeepPartial<T[P]>;
24
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K] extends object | undefined ? DeepPartial<T[K]> : T[K];
25
25
  };
26
26
  export declare type ValueOf<T> = T[keyof T];
27
27
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"