@mattermost/types 11.5.0 → 11.6.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/admin.d.ts +1 -0
- package/lib/agents.d.ts +1 -0
- package/lib/apps.d.ts +6 -0
- package/lib/config.d.ts +5 -7
- package/lib/content_flagging.d.ts +11 -0
- package/lib/emojis.d.ts +1 -2
- package/lib/emojis.js +7 -0
- package/lib/files.d.ts +18 -0
- package/lib/files.js +14 -0
- package/lib/integrations.d.ts +5 -0
- package/lib/limits.d.ts +2 -0
- package/lib/reports.d.ts +8 -1
- package/lib/reports.js +7 -1
- package/lib/users.d.ts +4 -0
- package/package.json +1 -1
package/lib/admin.d.ts
CHANGED
package/lib/agents.d.ts
CHANGED
package/lib/apps.d.ts
CHANGED
|
@@ -142,6 +142,11 @@ export type AppSelectOption = {
|
|
|
142
142
|
icon_data?: string;
|
|
143
143
|
};
|
|
144
144
|
export type AppFieldType = string;
|
|
145
|
+
export type DateTimeConfig = {
|
|
146
|
+
time_interval?: number;
|
|
147
|
+
location_timezone?: string;
|
|
148
|
+
allow_manual_time_entry?: boolean;
|
|
149
|
+
};
|
|
145
150
|
export type AppField = {
|
|
146
151
|
name: string;
|
|
147
152
|
type: AppFieldType;
|
|
@@ -160,6 +165,7 @@ export type AppField = {
|
|
|
160
165
|
subtype?: string;
|
|
161
166
|
min_length?: number;
|
|
162
167
|
max_length?: number;
|
|
168
|
+
datetime_config?: DateTimeConfig;
|
|
163
169
|
min_date?: string;
|
|
164
170
|
max_date?: string;
|
|
165
171
|
time_interval?: number;
|
package/lib/config.d.ts
CHANGED
|
@@ -223,11 +223,11 @@ export type ClientConfig = {
|
|
|
223
223
|
ScheduledPosts: string;
|
|
224
224
|
DeleteAccountLink: string;
|
|
225
225
|
ContentFlaggingEnabled: 'true' | 'false';
|
|
226
|
+
UseAnonymousURLs: string;
|
|
226
227
|
EnableBurnOnRead: string;
|
|
227
228
|
BurnOnReadDurationSeconds: string;
|
|
228
229
|
BurnOnReadMaximumTimeToLiveSeconds: string;
|
|
229
230
|
EnableAttributeBasedAccessControl: string;
|
|
230
|
-
EnableChannelScopeAccessControl: string;
|
|
231
231
|
EnableUserManagedAttributes: string;
|
|
232
232
|
AutoTranslationLanguages: string;
|
|
233
233
|
EnableAutoTranslation: string;
|
|
@@ -421,6 +421,7 @@ export type ServiceSettings = {
|
|
|
421
421
|
EnableWebHubChannelIteration: boolean;
|
|
422
422
|
FrameAncestors: string;
|
|
423
423
|
DeleteAccountLink: string;
|
|
424
|
+
MinimumDesktopAppVersion: string;
|
|
424
425
|
};
|
|
425
426
|
export type TeamSettings = {
|
|
426
427
|
SiteName: string;
|
|
@@ -487,11 +488,6 @@ export type LogSettings = {
|
|
|
487
488
|
export type ExperimentalAuditSettings = {
|
|
488
489
|
FileEnabled: boolean;
|
|
489
490
|
FileName: string;
|
|
490
|
-
FileMaxSizeMB: number;
|
|
491
|
-
FileMaxAgeDays: number;
|
|
492
|
-
FileMaxBackups: number;
|
|
493
|
-
FileCompress: boolean;
|
|
494
|
-
FileMaxQueueSize: number;
|
|
495
491
|
AdvancedLoggingJSON: Record<string, any>;
|
|
496
492
|
Certificate: string;
|
|
497
493
|
};
|
|
@@ -612,6 +608,7 @@ export type RateLimitSettings = {
|
|
|
612
608
|
export type PrivacySettings = {
|
|
613
609
|
ShowEmailAddress: boolean;
|
|
614
610
|
ShowFullName: boolean;
|
|
611
|
+
UseAnonymousURLs: boolean;
|
|
615
612
|
};
|
|
616
613
|
export type SupportSettings = {
|
|
617
614
|
TermsOfServiceLink: string;
|
|
@@ -842,6 +839,7 @@ export type ElasticsearchSettings = {
|
|
|
842
839
|
Password: string;
|
|
843
840
|
EnableIndexing: boolean;
|
|
844
841
|
EnableSearching: boolean;
|
|
842
|
+
EnableCJKAnalyzers: boolean;
|
|
845
843
|
EnableAutocomplete: boolean;
|
|
846
844
|
Sniff: boolean;
|
|
847
845
|
PostIndexReplicas: number;
|
|
@@ -863,6 +861,7 @@ export type ElasticsearchSettings = {
|
|
|
863
861
|
ClientKey: string;
|
|
864
862
|
Trace: string;
|
|
865
863
|
IgnoredPurgeIndexes: string;
|
|
864
|
+
EnableSearchPublicChannelsWithoutMembership: boolean;
|
|
866
865
|
};
|
|
867
866
|
export type DataRetentionSettings = {
|
|
868
867
|
EnableMessageDeletion: boolean;
|
|
@@ -959,7 +958,6 @@ export type ExportSettings = {
|
|
|
959
958
|
};
|
|
960
959
|
export type AccessControlSettings = {
|
|
961
960
|
EnableAttributeBasedAccessControl: boolean;
|
|
962
|
-
EnableChannelScopeAccessControl: boolean;
|
|
963
961
|
EnableUserManagedAttributes: boolean;
|
|
964
962
|
};
|
|
965
963
|
export type ContentFlaggingNotificationSettings = {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { Channel } from './channels';
|
|
1
2
|
import type { Post } from './posts';
|
|
2
3
|
import type { NameMappedPropertyFields, PropertyValue } from './properties';
|
|
4
|
+
import type { Team } from './teams';
|
|
3
5
|
export type ContentFlaggingEvent = 'flagged' | 'assigned' | 'removed' | 'dismissed';
|
|
4
6
|
export type NotificationTarget = 'reviewers' | 'author' | 'reporter';
|
|
5
7
|
export type ContentFlaggingConfig = {
|
|
@@ -15,6 +17,15 @@ export type ContentFlaggingState = {
|
|
|
15
17
|
postValues?: {
|
|
16
18
|
[key: Post['id']]: Array<PropertyValue<unknown>>;
|
|
17
19
|
};
|
|
20
|
+
flaggedPosts?: {
|
|
21
|
+
[key: Post['id']]: Post;
|
|
22
|
+
};
|
|
23
|
+
channels?: {
|
|
24
|
+
[key: Channel['id']]: Channel;
|
|
25
|
+
};
|
|
26
|
+
teams?: {
|
|
27
|
+
[key: Team['id']]: Team;
|
|
28
|
+
};
|
|
18
29
|
};
|
|
19
30
|
export declare enum ContentFlaggingStatus {
|
|
20
31
|
Pending = "Pending",
|
package/lib/emojis.d.ts
CHANGED
|
@@ -11,10 +11,8 @@ export type CustomEmoji = {
|
|
|
11
11
|
export type SystemEmoji = {
|
|
12
12
|
name: string;
|
|
13
13
|
category: EmojiCategory;
|
|
14
|
-
image: string;
|
|
15
14
|
short_name: string;
|
|
16
15
|
short_names: string[];
|
|
17
|
-
batch: number;
|
|
18
16
|
skins?: string[];
|
|
19
17
|
skin_variations?: Record<string, SystemEmojiVariation>;
|
|
20
18
|
unified: string;
|
|
@@ -42,3 +40,4 @@ export type RecentEmojiData = {
|
|
|
42
40
|
name: string;
|
|
43
41
|
usageCount: number;
|
|
44
42
|
};
|
|
43
|
+
export declare function isSystemEmoji(emoji: Emoji): emoji is SystemEmoji;
|
package/lib/emojis.js
CHANGED
|
@@ -2,3 +2,10 @@
|
|
|
2
2
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.isSystemEmoji = isSystemEmoji;
|
|
6
|
+
function isSystemEmoji(emoji) {
|
|
7
|
+
if ('category' in emoji) {
|
|
8
|
+
return emoji.category !== 'custom';
|
|
9
|
+
}
|
|
10
|
+
return !('id' in emoji);
|
|
11
|
+
}
|
package/lib/files.d.ts
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileDownloadType represents the type of file download or access being performed.
|
|
3
|
+
*/
|
|
4
|
+
export type FileDownloadType = 'file' | 'thumbnail' | 'preview' | 'public';
|
|
5
|
+
/**
|
|
6
|
+
* FileDownloadTypes contains constants for the different types of file downloads.
|
|
7
|
+
*/
|
|
8
|
+
export declare const FileDownloadTypes: {
|
|
9
|
+
/** Full file download request */
|
|
10
|
+
readonly FILE: FileDownloadType;
|
|
11
|
+
/** Thumbnail image request */
|
|
12
|
+
readonly THUMBNAIL: FileDownloadType;
|
|
13
|
+
/** Preview image request */
|
|
14
|
+
readonly PREVIEW: FileDownloadType;
|
|
15
|
+
/** Public link access (unauthenticated) */
|
|
16
|
+
readonly PUBLIC: FileDownloadType;
|
|
17
|
+
};
|
|
1
18
|
export type FileInfo = {
|
|
2
19
|
id: string;
|
|
3
20
|
user_id: string;
|
|
@@ -25,6 +42,7 @@ export type FilesState = {
|
|
|
25
42
|
filePublicLink?: {
|
|
26
43
|
link: string;
|
|
27
44
|
};
|
|
45
|
+
rejectedFiles: Set<string>;
|
|
28
46
|
};
|
|
29
47
|
export type FileUploadResponse = {
|
|
30
48
|
file_infos: FileInfo[];
|
package/lib/files.js
CHANGED
|
@@ -2,3 +2,17 @@
|
|
|
2
2
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.FileDownloadTypes = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* FileDownloadTypes contains constants for the different types of file downloads.
|
|
8
|
+
*/
|
|
9
|
+
exports.FileDownloadTypes = {
|
|
10
|
+
/** Full file download request */
|
|
11
|
+
FILE: 'file',
|
|
12
|
+
/** Thumbnail image request */
|
|
13
|
+
THUMBNAIL: 'thumbnail',
|
|
14
|
+
/** Preview image request */
|
|
15
|
+
PREVIEW: 'preview',
|
|
16
|
+
/** Public link access (unauthenticated) */
|
|
17
|
+
PUBLIC: 'public',
|
|
18
|
+
};
|
package/lib/integrations.d.ts
CHANGED
|
@@ -177,6 +177,11 @@ export type DialogElement = {
|
|
|
177
177
|
value: any;
|
|
178
178
|
}>;
|
|
179
179
|
refresh?: boolean;
|
|
180
|
+
datetime_config?: {
|
|
181
|
+
time_interval?: number;
|
|
182
|
+
location_timezone?: string;
|
|
183
|
+
allow_manual_time_entry?: boolean;
|
|
184
|
+
};
|
|
180
185
|
min_date?: string;
|
|
181
186
|
max_date?: string;
|
|
182
187
|
time_interval?: number;
|
package/lib/limits.d.ts
CHANGED
package/lib/reports.d.ts
CHANGED
|
@@ -17,6 +17,11 @@ export declare enum ReportDuration {
|
|
|
17
17
|
PreviousMonth = "previous_month",
|
|
18
18
|
Last6Months = "last_6_months"
|
|
19
19
|
}
|
|
20
|
+
export declare enum GuestFilter {
|
|
21
|
+
All = "all",
|
|
22
|
+
SingleChannel = "single_channel",
|
|
23
|
+
MultipleChannel = "multi_channel"
|
|
24
|
+
}
|
|
20
25
|
export declare enum CursorPaginationDirection {
|
|
21
26
|
'prev' = "prev",
|
|
22
27
|
'next' = "next"
|
|
@@ -28,6 +33,7 @@ export type UserReportFilter = {
|
|
|
28
33
|
hide_active?: boolean;
|
|
29
34
|
hide_inactive?: boolean;
|
|
30
35
|
search_term?: string;
|
|
36
|
+
guest_filter?: string;
|
|
31
37
|
};
|
|
32
38
|
export type UserReportOptions = UserReportFilter & {
|
|
33
39
|
page_size?: number;
|
|
@@ -57,9 +63,10 @@ export type UserReportOptions = UserReportFilter & {
|
|
|
57
63
|
date_range?: ReportDuration;
|
|
58
64
|
};
|
|
59
65
|
export type UserReport = UserProfile & {
|
|
60
|
-
|
|
66
|
+
last_login: number;
|
|
61
67
|
last_status_at?: number;
|
|
62
68
|
last_post_date?: number;
|
|
63
69
|
days_active?: number;
|
|
64
70
|
total_posts?: number;
|
|
71
|
+
channel_count?: number;
|
|
65
72
|
};
|
package/lib/reports.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
3
3
|
// See LICENSE.txt for license information.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.CursorPaginationDirection = exports.ReportDuration = exports.ReportSortDirection = exports.UserReportSortColumns = void 0;
|
|
5
|
+
exports.CursorPaginationDirection = exports.GuestFilter = exports.ReportDuration = exports.ReportSortDirection = exports.UserReportSortColumns = void 0;
|
|
6
6
|
var UserReportSortColumns;
|
|
7
7
|
(function (UserReportSortColumns) {
|
|
8
8
|
UserReportSortColumns["username"] = "Username";
|
|
@@ -24,6 +24,12 @@ var ReportDuration;
|
|
|
24
24
|
ReportDuration["PreviousMonth"] = "previous_month";
|
|
25
25
|
ReportDuration["Last6Months"] = "last_6_months";
|
|
26
26
|
})(ReportDuration || (exports.ReportDuration = ReportDuration = {}));
|
|
27
|
+
var GuestFilter;
|
|
28
|
+
(function (GuestFilter) {
|
|
29
|
+
GuestFilter["All"] = "all";
|
|
30
|
+
GuestFilter["SingleChannel"] = "single_channel";
|
|
31
|
+
GuestFilter["MultipleChannel"] = "multi_channel";
|
|
32
|
+
})(GuestFilter || (exports.GuestFilter = GuestFilter = {}));
|
|
27
33
|
var CursorPaginationDirection;
|
|
28
34
|
(function (CursorPaginationDirection) {
|
|
29
35
|
CursorPaginationDirection["prev"] = "prev";
|
package/lib/users.d.ts
CHANGED