@mattermost/types 9.1.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 +1 -0
- package/lib/config.d.ts +28 -3
- package/lib/posts.d.ts +11 -1
- package/lib/users.d.ts +1 -0
- package/lib/utilities.d.ts +2 -1
- package/package.json +1 -1
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,12 +110,10 @@ 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;
|
|
117
116
|
FeatureFlagCallsEnabled: string;
|
|
118
|
-
FeatureFlagGraphQL: string;
|
|
119
117
|
ForgotPasswordLink: string;
|
|
120
118
|
GiphySdkKey: string;
|
|
121
119
|
GoogleDeveloperKey: string;
|
|
@@ -197,6 +195,7 @@ export declare type ClientConfig = {
|
|
|
197
195
|
AllowPersistentNotificationsForGuests: string;
|
|
198
196
|
DelayChannelAutocomplete: 'true' | 'false';
|
|
199
197
|
ServiceEnvironment: string;
|
|
198
|
+
UniqueEmojiReactionLimitPerPost: string;
|
|
200
199
|
};
|
|
201
200
|
export declare type License = {
|
|
202
201
|
id: string;
|
|
@@ -368,6 +367,7 @@ export declare type ServiceSettings = {
|
|
|
368
367
|
PersistentNotificationIntervalMinutes: number;
|
|
369
368
|
PersistentNotificationMaxCount: number;
|
|
370
369
|
PersistentNotificationMaxRecipients: number;
|
|
370
|
+
UniqueEmojiReactionLimitPerPost: number;
|
|
371
371
|
};
|
|
372
372
|
export declare type TeamSettings = {
|
|
373
373
|
SiteName: string;
|
|
@@ -392,6 +392,7 @@ export declare type TeamSettings = {
|
|
|
392
392
|
ExperimentalPrimaryTeam: string;
|
|
393
393
|
ExperimentalDefaultChannels: string[];
|
|
394
394
|
EnableLastActiveTime: boolean;
|
|
395
|
+
EnableJoinLeaveMessageByDefault: boolean;
|
|
395
396
|
};
|
|
396
397
|
export declare type ClientRequirements = {
|
|
397
398
|
AndroidLatestVersion: string;
|
|
@@ -414,6 +415,7 @@ export declare type SqlSettings = {
|
|
|
414
415
|
DisableDatabaseSearch: boolean;
|
|
415
416
|
MigrationsStatementTimeoutSeconds: number;
|
|
416
417
|
ReplicaLagSettings: ReplicaLagSetting[];
|
|
418
|
+
ReplicaMonitorIntervalSeconds: number;
|
|
417
419
|
};
|
|
418
420
|
export declare type LogSettings = {
|
|
419
421
|
EnableConsole: boolean;
|
|
@@ -429,6 +431,7 @@ export declare type LogSettings = {
|
|
|
429
431
|
VerboseDiagnostics: boolean;
|
|
430
432
|
EnableSentry: boolean;
|
|
431
433
|
AdvancedLoggingConfig: string;
|
|
434
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
432
435
|
};
|
|
433
436
|
export declare type ExperimentalAuditSettings = {
|
|
434
437
|
FileEnabled: boolean;
|
|
@@ -439,6 +442,7 @@ export declare type ExperimentalAuditSettings = {
|
|
|
439
442
|
FileCompress: boolean;
|
|
440
443
|
FileMaxQueueSize: number;
|
|
441
444
|
AdvancedLoggingConfig: string;
|
|
445
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
442
446
|
};
|
|
443
447
|
export declare type NotificationLogSettings = {
|
|
444
448
|
EnableConsole: boolean;
|
|
@@ -450,6 +454,7 @@ export declare type NotificationLogSettings = {
|
|
|
450
454
|
FileJson: boolean;
|
|
451
455
|
FileLocation: string;
|
|
452
456
|
AdvancedLoggingConfig: string;
|
|
457
|
+
AdvancedLoggingJSON: Record<string, any>;
|
|
453
458
|
};
|
|
454
459
|
export declare type PasswordSettings = {
|
|
455
460
|
MinimumLength: number;
|
|
@@ -484,6 +489,21 @@ export declare type FileSettings = {
|
|
|
484
489
|
AmazonS3SSE: boolean;
|
|
485
490
|
AmazonS3Trace: boolean;
|
|
486
491
|
AmazonS3RequestTimeoutMilliseconds: number;
|
|
492
|
+
DedicatedExportStore: boolean;
|
|
493
|
+
ExportDriverName: string;
|
|
494
|
+
ExportDirectory: string;
|
|
495
|
+
ExportAmazonS3AccessKeyId: string;
|
|
496
|
+
ExportAmazonS3SecretAccessKey: string;
|
|
497
|
+
ExportAmazonS3Bucket: string;
|
|
498
|
+
ExportAmazonS3PathPrefix: string;
|
|
499
|
+
ExportAmazonS3Region: string;
|
|
500
|
+
ExportAmazonS3Endpoint: string;
|
|
501
|
+
ExportAmazonS3SSL: boolean;
|
|
502
|
+
ExportAmazonS3SignV2: boolean;
|
|
503
|
+
ExportAmazonS3SSE: boolean;
|
|
504
|
+
ExportAmazonS3Trace: boolean;
|
|
505
|
+
ExportAmazonS3RequestTimeoutMilliseconds: number;
|
|
506
|
+
ExportAmazonS3PresignExpiresSeconds: number;
|
|
487
507
|
};
|
|
488
508
|
export declare type EmailSettings = {
|
|
489
509
|
EnableSignUpWithEmail: boolean;
|
|
@@ -753,6 +773,10 @@ export declare type DataRetentionSettings = {
|
|
|
753
773
|
FileRetentionDays: number;
|
|
754
774
|
DeletionJobStartTime: string;
|
|
755
775
|
BatchSize: number;
|
|
776
|
+
EnableBoardsDeletion: boolean;
|
|
777
|
+
BoardsRetentionDays: number;
|
|
778
|
+
TimeBetweenBatchesMilliseconds: number;
|
|
779
|
+
RetentionIdsBatchSize: number;
|
|
756
780
|
};
|
|
757
781
|
export declare type MessageExportSettings = {
|
|
758
782
|
EnableExport: boolean;
|
|
@@ -797,7 +821,7 @@ export declare type PluginSettings = {
|
|
|
797
821
|
};
|
|
798
822
|
export declare type DisplaySettings = {
|
|
799
823
|
CustomURLSchemes: string[];
|
|
800
|
-
|
|
824
|
+
MaxMarkdownNodes: number;
|
|
801
825
|
};
|
|
802
826
|
export declare type GuestAccountsSettings = {
|
|
803
827
|
Enable: boolean;
|
|
@@ -815,6 +839,7 @@ export declare type ImageProxySettings = {
|
|
|
815
839
|
export declare type CloudSettings = {
|
|
816
840
|
CWSURL: string;
|
|
817
841
|
CWSAPIURL: string;
|
|
842
|
+
CWSMock: boolean;
|
|
818
843
|
};
|
|
819
844
|
export declare type FeatureFlags = Record<string, string | boolean>;
|
|
820
845
|
export declare type ImportSettings = {
|
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' | '';
|
|
@@ -109,7 +110,6 @@ export declare type PostsState = {
|
|
|
109
110
|
postEditHistory: Post[];
|
|
110
111
|
currentFocusedPostId: string;
|
|
111
112
|
messagesHistory: MessageHistory;
|
|
112
|
-
expandedURLs: Record<string, string>;
|
|
113
113
|
limitedViews: {
|
|
114
114
|
channels: Record<Channel['id'], number>;
|
|
115
115
|
threads: Record<Post['root_id'], number>;
|
|
@@ -164,3 +164,13 @@ export declare type ActivityEntry = {
|
|
|
164
164
|
userIds: string[];
|
|
165
165
|
usernames: string[];
|
|
166
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';
|
package/lib/utilities.d.ts
CHANGED
|
@@ -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
|
-
[
|
|
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
|
/**
|
|
@@ -30,3 +30,4 @@ export declare type ValueOf<T> = T[keyof T];
|
|
|
30
30
|
export declare type RequireOnlyOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
31
31
|
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
32
32
|
}[Keys];
|
|
33
|
+
export declare type Intersection<T1, T2> = Omit<Omit<T1 & T2, keyof (Omit<T1, keyof (T2)>)>, keyof (Omit<T2, keyof (T1)>)>;
|