@mattermost/types 7.1.0 → 7.4.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 +2 -1
- package/lib/cloud.d.ts +9 -0
- package/lib/config.d.ts +4 -0
- package/lib/errors.d.ts +1 -5
- package/lib/files.d.ts +1 -0
- package/lib/general.d.ts +0 -3
- package/lib/gifs.d.ts +152 -0
- package/lib/gifs.js +4 -0
- package/lib/insights.d.ts +68 -2
- package/lib/insights.js +4 -0
- package/lib/plugins.d.ts +3 -2
- package/lib/posts.d.ts +11 -2
- package/lib/posts.js +6 -0
- package/lib/requests.d.ts +0 -40
- package/lib/search.d.ts +1 -0
- package/lib/store.d.ts +2 -1
- package/lib/users.d.ts +6 -6
- package/package.json +3 -2
package/lib/channels.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDMappedObjects, RelationOneToMany, RelationOneToOne } from './utilities';
|
|
2
2
|
import { Team } from './teams';
|
|
3
|
-
export declare type ChannelType = 'O' | 'P' | 'D' | 'G';
|
|
3
|
+
export declare type ChannelType = 'O' | 'P' | 'D' | 'G' | 'threads';
|
|
4
4
|
export declare type ChannelStats = {
|
|
5
5
|
channel_id: string;
|
|
6
6
|
member_count: number;
|
|
@@ -159,6 +159,7 @@ export declare type ChannelSearchOpts = {
|
|
|
159
159
|
public?: boolean;
|
|
160
160
|
private?: boolean;
|
|
161
161
|
include_deleted?: boolean;
|
|
162
|
+
include_search_by_id?: boolean;
|
|
162
163
|
deleted?: boolean;
|
|
163
164
|
page?: number;
|
|
164
165
|
per_page?: number;
|
package/lib/cloud.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare type SubscriptionBase = {
|
|
|
26
26
|
last_invoice?: Invoice;
|
|
27
27
|
trial_end_at: number;
|
|
28
28
|
is_free_trial: string;
|
|
29
|
+
delinquent_since?: number;
|
|
29
30
|
};
|
|
30
31
|
export declare type Product = {
|
|
31
32
|
id: string;
|
|
@@ -80,6 +81,11 @@ export declare type PaymentMethod = {
|
|
|
80
81
|
card_brand: string;
|
|
81
82
|
name: string;
|
|
82
83
|
};
|
|
84
|
+
export declare type NotifyAdminRequest = {
|
|
85
|
+
trial_notification: boolean;
|
|
86
|
+
required_plan: string;
|
|
87
|
+
required_feature: string;
|
|
88
|
+
};
|
|
83
89
|
export declare type Invoice = {
|
|
84
90
|
id: string;
|
|
85
91
|
number: string;
|
|
@@ -152,4 +158,7 @@ export declare type TeamsUsage = {
|
|
|
152
158
|
cloudArchived: number;
|
|
153
159
|
teamsLoaded: boolean;
|
|
154
160
|
};
|
|
161
|
+
export declare type ValidBusinessEmail = {
|
|
162
|
+
is_valid: boolean;
|
|
163
|
+
};
|
|
155
164
|
export {};
|
package/lib/config.d.ts
CHANGED
|
@@ -110,6 +110,8 @@ export declare type ClientConfig = {
|
|
|
110
110
|
ExperimentalTimezone: string;
|
|
111
111
|
ExperimentalViewArchivedChannels: string;
|
|
112
112
|
FileLevel: string;
|
|
113
|
+
FeatureFlagGraphQL: string;
|
|
114
|
+
FeatureFlagPlanUpgradeButtonText: string;
|
|
113
115
|
GfycatAPIKey: string;
|
|
114
116
|
GfycatAPISecret: string;
|
|
115
117
|
GoogleDeveloperKey: string;
|
|
@@ -181,6 +183,7 @@ export declare type ClientConfig = {
|
|
|
181
183
|
ExperimentalSharedChannels: string;
|
|
182
184
|
EnableAppBar: string;
|
|
183
185
|
EnableComplianceExport: string;
|
|
186
|
+
PostPriority: string;
|
|
184
187
|
};
|
|
185
188
|
export declare type License = {
|
|
186
189
|
id: string;
|
|
@@ -324,6 +327,7 @@ export declare type ServiceSettings = {
|
|
|
324
327
|
LocalModeSocketLocation: string;
|
|
325
328
|
CollapsedThreads: CollapsedThreads;
|
|
326
329
|
ThreadAutoFollow: boolean;
|
|
330
|
+
PostPriority: boolean;
|
|
327
331
|
};
|
|
328
332
|
export declare type TeamSettings = {
|
|
329
333
|
SiteName: string;
|
package/lib/errors.d.ts
CHANGED
package/lib/files.d.ts
CHANGED
package/lib/general.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ClientConfig, ClientLicense, WarnMetricStatus } from './config';
|
|
2
2
|
export declare type GeneralState = {
|
|
3
|
-
appState: boolean;
|
|
4
|
-
credentials: any;
|
|
5
3
|
config: Partial<ClientConfig>;
|
|
6
4
|
dataRetentionPolicy: any;
|
|
7
|
-
deviceToken: string;
|
|
8
5
|
firstAdminVisitMarketplaceStatus: boolean;
|
|
9
6
|
firstAdminCompleteSetup: boolean;
|
|
10
7
|
license: ClientLicense;
|
package/lib/gifs.d.ts
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare type GifsState = {
|
|
2
|
+
app: GifsAppState;
|
|
3
|
+
cache: GifsCacheState;
|
|
4
|
+
categories: GifsCategoriesState;
|
|
5
|
+
search: GifsSearchState;
|
|
6
|
+
};
|
|
7
|
+
export declare type GifsAppState = {
|
|
8
|
+
appClassName: string;
|
|
9
|
+
appId: string;
|
|
10
|
+
appName: string;
|
|
11
|
+
basePath: string;
|
|
12
|
+
enableHistory: boolean;
|
|
13
|
+
header: {
|
|
14
|
+
tabs: number[];
|
|
15
|
+
displayText: boolean;
|
|
16
|
+
};
|
|
17
|
+
itemTapType: number;
|
|
18
|
+
shareEvent: string;
|
|
19
|
+
};
|
|
20
|
+
declare type GifsCacheState = {
|
|
21
|
+
gifs: Record<string, GfycatAPIItem>;
|
|
22
|
+
updating: boolean;
|
|
23
|
+
};
|
|
24
|
+
declare type GifsCategoriesState = {
|
|
25
|
+
cursor: string;
|
|
26
|
+
hasMore: boolean;
|
|
27
|
+
isFetching: boolean;
|
|
28
|
+
tagsDict: Record<string, boolean>;
|
|
29
|
+
tagsList: GfycatAPITag[];
|
|
30
|
+
};
|
|
31
|
+
declare type GifsSearchState = {
|
|
32
|
+
priorLocation: string | null;
|
|
33
|
+
resultsByTerm: Record<string, GifsResult>;
|
|
34
|
+
scrollPosition: number;
|
|
35
|
+
searchBarText: string;
|
|
36
|
+
searchText: string;
|
|
37
|
+
};
|
|
38
|
+
declare type GifsResult = GfycatAPIPaginatedResponse & {
|
|
39
|
+
count: number;
|
|
40
|
+
currentPage: number;
|
|
41
|
+
didInvalidate: boolean;
|
|
42
|
+
found: number;
|
|
43
|
+
isFetching: boolean;
|
|
44
|
+
items: string[];
|
|
45
|
+
moreRemaining: boolean;
|
|
46
|
+
pages: Record<number, string[]>;
|
|
47
|
+
start: number;
|
|
48
|
+
};
|
|
49
|
+
export interface GfycatAPIPaginatedResponse {
|
|
50
|
+
cursor?: string;
|
|
51
|
+
gfycats: GfycatAPIItem[];
|
|
52
|
+
totalCount?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface GfycatAPIItemResponse {
|
|
55
|
+
gfyItem: GfycatAPIItem;
|
|
56
|
+
}
|
|
57
|
+
export interface GfycatAPIItem {
|
|
58
|
+
anonymous?: boolean;
|
|
59
|
+
avgColor: string;
|
|
60
|
+
captionsUrl?: null;
|
|
61
|
+
content_urls: {
|
|
62
|
+
[key: string]: GfycatAPIContent;
|
|
63
|
+
};
|
|
64
|
+
createDate: number;
|
|
65
|
+
description?: string;
|
|
66
|
+
dislikes?: number;
|
|
67
|
+
domainWhitelist?: any[];
|
|
68
|
+
duration?: number;
|
|
69
|
+
encoding?: boolean;
|
|
70
|
+
extraLemmas?: string;
|
|
71
|
+
finished?: boolean;
|
|
72
|
+
frameRate: number;
|
|
73
|
+
gatekeeper: number;
|
|
74
|
+
geoWhitelist?: any[];
|
|
75
|
+
gfyId: string;
|
|
76
|
+
gfyName: string;
|
|
77
|
+
gfyNumber?: string;
|
|
78
|
+
gfySlug?: string;
|
|
79
|
+
gif100px?: string;
|
|
80
|
+
gifSize?: number;
|
|
81
|
+
gifUrl: string;
|
|
82
|
+
hasAudio: boolean;
|
|
83
|
+
hasTransparency: boolean;
|
|
84
|
+
height: number;
|
|
85
|
+
languageCategories: string[];
|
|
86
|
+
languageText?: string;
|
|
87
|
+
likes: number;
|
|
88
|
+
max1mbGif?: string;
|
|
89
|
+
max2mbGif: string;
|
|
90
|
+
max5mbGif: string;
|
|
91
|
+
md5?: string;
|
|
92
|
+
miniPosterUrl: string;
|
|
93
|
+
miniUrl?: string;
|
|
94
|
+
mobileHeight?: number;
|
|
95
|
+
mobilePosterUrl?: string;
|
|
96
|
+
mobileUrl: string;
|
|
97
|
+
mobileWidth?: number;
|
|
98
|
+
mp4Size?: number;
|
|
99
|
+
mp4Url: string;
|
|
100
|
+
nsfw: boolean | number;
|
|
101
|
+
numFrames: number;
|
|
102
|
+
posterUrl: string;
|
|
103
|
+
published: number;
|
|
104
|
+
rating?: string;
|
|
105
|
+
ratio?: null;
|
|
106
|
+
sitename?: string;
|
|
107
|
+
source?: number;
|
|
108
|
+
tags: string[];
|
|
109
|
+
thumb100PosterUrl: string;
|
|
110
|
+
title?: string;
|
|
111
|
+
type?: number;
|
|
112
|
+
url?: string;
|
|
113
|
+
userData?: GfycatAPIUser | [];
|
|
114
|
+
userDisplayName?: string;
|
|
115
|
+
userName?: string;
|
|
116
|
+
username?: string;
|
|
117
|
+
userProfileImageUrl?: string;
|
|
118
|
+
views: number;
|
|
119
|
+
views5?: number;
|
|
120
|
+
webmSize?: number;
|
|
121
|
+
webmUrl?: string;
|
|
122
|
+
webpUrl?: string;
|
|
123
|
+
width: number;
|
|
124
|
+
}
|
|
125
|
+
export interface GfycatAPIContent {
|
|
126
|
+
width: number;
|
|
127
|
+
size: number;
|
|
128
|
+
url: string;
|
|
129
|
+
height: number;
|
|
130
|
+
}
|
|
131
|
+
export interface GfycatAPIUser {
|
|
132
|
+
createDate?: number;
|
|
133
|
+
description?: string;
|
|
134
|
+
followers: number;
|
|
135
|
+
following: number;
|
|
136
|
+
iframeProfileImageVisible?: boolean;
|
|
137
|
+
name: string;
|
|
138
|
+
profileImageUrl: string;
|
|
139
|
+
profileUrl?: string;
|
|
140
|
+
publishedGfycats?: number;
|
|
141
|
+
subscription?: number;
|
|
142
|
+
url?: string;
|
|
143
|
+
userid?: string;
|
|
144
|
+
username: string;
|
|
145
|
+
verified: boolean;
|
|
146
|
+
views: number;
|
|
147
|
+
}
|
|
148
|
+
export interface GfycatAPITag {
|
|
149
|
+
tagName: string;
|
|
150
|
+
gfyId: string;
|
|
151
|
+
}
|
|
152
|
+
export {};
|
package/lib/gifs.js
ADDED
package/lib/insights.d.ts
CHANGED
|
@@ -4,7 +4,11 @@ export declare enum InsightsWidgetTypes {
|
|
|
4
4
|
TOP_CHANNELS = "TOP_CHANNELS",
|
|
5
5
|
TOP_REACTIONS = "TOP_REACTIONS",
|
|
6
6
|
TOP_THREADS = "TOP_THREADS",
|
|
7
|
-
TOP_BOARDS = "TOP_BOARDS"
|
|
7
|
+
TOP_BOARDS = "TOP_BOARDS",
|
|
8
|
+
LEAST_ACTIVE_CHANNELS = "LEAST_ACTIVE_CHANNELS",
|
|
9
|
+
TOP_PLAYBOOKS = "TOP_PLAYBOOKS",
|
|
10
|
+
TOP_DMS = "TOP_DMS",
|
|
11
|
+
NEW_TEAM_MEMBERS = "NEW_TEAM_MEMBERS"
|
|
8
12
|
}
|
|
9
13
|
export declare enum CardSizes {
|
|
10
14
|
large = "lg",
|
|
@@ -77,9 +81,71 @@ export declare type TopBoard = {
|
|
|
77
81
|
activityCount: number;
|
|
78
82
|
activeUsers: string;
|
|
79
83
|
createdBy: string;
|
|
80
|
-
workspaceID: string;
|
|
81
84
|
};
|
|
82
85
|
export declare type TopBoardResponse = {
|
|
83
86
|
has_next: boolean;
|
|
84
87
|
items: TopBoard[];
|
|
85
88
|
};
|
|
89
|
+
export declare type LeastActiveChannel = {
|
|
90
|
+
id: string;
|
|
91
|
+
display_name: string;
|
|
92
|
+
name: string;
|
|
93
|
+
participants: string[];
|
|
94
|
+
last_activity_at: number;
|
|
95
|
+
type: ChannelType;
|
|
96
|
+
team_id: string;
|
|
97
|
+
message_count: number;
|
|
98
|
+
};
|
|
99
|
+
export declare type LeastActiveChannelsResponse = {
|
|
100
|
+
has_next: boolean;
|
|
101
|
+
items: LeastActiveChannel[];
|
|
102
|
+
};
|
|
103
|
+
export declare type LeastActiveChannelsActionResult = {
|
|
104
|
+
data?: LeastActiveChannelsResponse;
|
|
105
|
+
error?: any;
|
|
106
|
+
};
|
|
107
|
+
export declare type TopPlaybook = {
|
|
108
|
+
playbook_id: string;
|
|
109
|
+
num_runs: number;
|
|
110
|
+
title: string;
|
|
111
|
+
last_run_at: number;
|
|
112
|
+
};
|
|
113
|
+
export declare type TopPlaybookResponse = {
|
|
114
|
+
has_next: boolean;
|
|
115
|
+
items: TopPlaybook[];
|
|
116
|
+
};
|
|
117
|
+
declare type MinUserProfile = {
|
|
118
|
+
id: string;
|
|
119
|
+
first_name: string;
|
|
120
|
+
last_name: string;
|
|
121
|
+
last_picture_update: number;
|
|
122
|
+
nickname: string;
|
|
123
|
+
position: string;
|
|
124
|
+
username: string;
|
|
125
|
+
};
|
|
126
|
+
export declare type TopDM = {
|
|
127
|
+
outgoing_message_count: number;
|
|
128
|
+
post_count: number;
|
|
129
|
+
second_participant: MinUserProfile;
|
|
130
|
+
};
|
|
131
|
+
export declare type TopDMsResponse = {
|
|
132
|
+
has_next: boolean;
|
|
133
|
+
items: TopDM[];
|
|
134
|
+
};
|
|
135
|
+
export declare type TopDMsActionResult = {
|
|
136
|
+
data?: TopDMsResponse;
|
|
137
|
+
error?: any;
|
|
138
|
+
};
|
|
139
|
+
export declare type NewMember = MinUserProfile & {
|
|
140
|
+
create_at: number;
|
|
141
|
+
};
|
|
142
|
+
export declare type NewMembersResponse = {
|
|
143
|
+
has_next: boolean;
|
|
144
|
+
items: NewMember[];
|
|
145
|
+
total_count: number;
|
|
146
|
+
};
|
|
147
|
+
export declare type NewMembersActionResult = {
|
|
148
|
+
data?: NewMembersResponse;
|
|
149
|
+
error?: any;
|
|
150
|
+
};
|
|
151
|
+
export {};
|
package/lib/insights.js
CHANGED
|
@@ -9,6 +9,10 @@ var InsightsWidgetTypes;
|
|
|
9
9
|
InsightsWidgetTypes["TOP_REACTIONS"] = "TOP_REACTIONS";
|
|
10
10
|
InsightsWidgetTypes["TOP_THREADS"] = "TOP_THREADS";
|
|
11
11
|
InsightsWidgetTypes["TOP_BOARDS"] = "TOP_BOARDS";
|
|
12
|
+
InsightsWidgetTypes["LEAST_ACTIVE_CHANNELS"] = "LEAST_ACTIVE_CHANNELS";
|
|
13
|
+
InsightsWidgetTypes["TOP_PLAYBOOKS"] = "TOP_PLAYBOOKS";
|
|
14
|
+
InsightsWidgetTypes["TOP_DMS"] = "TOP_DMS";
|
|
15
|
+
InsightsWidgetTypes["NEW_TEAM_MEMBERS"] = "NEW_TEAM_MEMBERS";
|
|
12
16
|
})(InsightsWidgetTypes = exports.InsightsWidgetTypes || (exports.InsightsWidgetTypes = {}));
|
|
13
17
|
var CardSizes;
|
|
14
18
|
(function (CardSizes) {
|
package/lib/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare type
|
|
1
|
+
export declare type PluginManifest = {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
4
|
description?: string;
|
|
@@ -15,7 +15,6 @@ declare type Plugin = {
|
|
|
15
15
|
settings_schema?: PluginSettingsSchema;
|
|
16
16
|
props?: Record<string, any>;
|
|
17
17
|
};
|
|
18
|
-
export declare type PluginManifest = Plugin;
|
|
19
18
|
export declare type PluginRedux = PluginManifest & {
|
|
20
19
|
active: boolean;
|
|
21
20
|
};
|
|
@@ -44,6 +43,7 @@ export declare type PluginSetting = {
|
|
|
44
43
|
placeholder: string;
|
|
45
44
|
default: any;
|
|
46
45
|
options?: PluginSettingOption[];
|
|
46
|
+
hosting?: 'on-prem' | 'cloud';
|
|
47
47
|
};
|
|
48
48
|
export declare type PluginSettingOption = {
|
|
49
49
|
display_name: string;
|
|
@@ -74,6 +74,7 @@ export declare type PluginStatusRedux = {
|
|
|
74
74
|
version: string;
|
|
75
75
|
active: boolean;
|
|
76
76
|
state: number;
|
|
77
|
+
error?: string;
|
|
77
78
|
instances: PluginInstance[];
|
|
78
79
|
};
|
|
79
80
|
export declare type ClientPluginManifest = {
|
package/lib/posts.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChannelType } from './channels';
|
|
1
|
+
import { Channel, ChannelType } from './channels';
|
|
2
2
|
import { CustomEmoji } from './emojis';
|
|
3
3
|
import { FileInfo } from './files';
|
|
4
4
|
import { Reaction } from './reactions';
|
|
5
5
|
import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
6
|
-
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';
|
|
6
|
+
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' | '';
|
|
7
7
|
export declare type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
8
8
|
export declare type PostEmbed = {
|
|
9
9
|
type: PostEmbedType;
|
|
@@ -52,11 +52,16 @@ export declare type Post = {
|
|
|
52
52
|
is_following?: boolean;
|
|
53
53
|
exists?: boolean;
|
|
54
54
|
};
|
|
55
|
+
export declare enum PostPriority {
|
|
56
|
+
URGENT = "urgent",
|
|
57
|
+
IMPORTANT = "important"
|
|
58
|
+
}
|
|
55
59
|
export declare type PostList = {
|
|
56
60
|
order: Array<Post['id']>;
|
|
57
61
|
posts: Record<string, Post>;
|
|
58
62
|
next_post_id: string;
|
|
59
63
|
prev_post_id: string;
|
|
64
|
+
first_inaccessible_post_time: number;
|
|
60
65
|
};
|
|
61
66
|
export declare type PaginatedPostList = PostList & {
|
|
62
67
|
has_next: boolean;
|
|
@@ -90,6 +95,10 @@ export declare type PostsState = {
|
|
|
90
95
|
currentFocusedPostId: string;
|
|
91
96
|
messagesHistory: MessageHistory;
|
|
92
97
|
expandedURLs: Record<string, string>;
|
|
98
|
+
limitedViews: {
|
|
99
|
+
channels: Record<Channel['id'], number>;
|
|
100
|
+
threads: Record<Post['root_id'], number>;
|
|
101
|
+
};
|
|
93
102
|
};
|
|
94
103
|
export declare type OpenGraphMetadataImage = {
|
|
95
104
|
secure_url?: string;
|
package/lib/posts.js
CHANGED
|
@@ -2,3 +2,9 @@
|
|
|
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.PostPriority = void 0;
|
|
6
|
+
var PostPriority;
|
|
7
|
+
(function (PostPriority) {
|
|
8
|
+
PostPriority["URGENT"] = "urgent";
|
|
9
|
+
PostPriority["IMPORTANT"] = "important";
|
|
10
|
+
})(PostPriority = exports.PostPriority || (exports.PostPriority = {}));
|
package/lib/requests.d.ts
CHANGED
|
@@ -27,53 +27,13 @@ export declare type TeamsRequestsStatuses = {
|
|
|
27
27
|
joinTeam: RequestStatusType;
|
|
28
28
|
};
|
|
29
29
|
export declare type UsersRequestsStatuses = {
|
|
30
|
-
checkMfa: RequestStatusType;
|
|
31
30
|
login: RequestStatusType;
|
|
32
31
|
logout: RequestStatusType;
|
|
33
32
|
autocompleteUsers: RequestStatusType;
|
|
34
33
|
updateMe: RequestStatusType;
|
|
35
34
|
};
|
|
36
35
|
export declare type AdminRequestsStatuses = {
|
|
37
|
-
getLogs: RequestStatusType;
|
|
38
|
-
getAudits: RequestStatusType;
|
|
39
|
-
getConfig: RequestStatusType;
|
|
40
|
-
updateConfig: RequestStatusType;
|
|
41
|
-
reloadConfig: RequestStatusType;
|
|
42
|
-
testEmail: RequestStatusType;
|
|
43
|
-
testSiteURL: RequestStatusType;
|
|
44
|
-
invalidateCaches: RequestStatusType;
|
|
45
|
-
recycleDatabase: RequestStatusType;
|
|
46
36
|
createCompliance: RequestStatusType;
|
|
47
|
-
getCompliance: RequestStatusType;
|
|
48
|
-
testS3Connection: RequestStatusType;
|
|
49
|
-
getLdapGroups: RequestStatusType;
|
|
50
|
-
linkLdapGroup: RequestStatusType;
|
|
51
|
-
unlinkLdapGroup: RequestStatusType;
|
|
52
|
-
deleteBrandImage: RequestStatusType;
|
|
53
|
-
disablePlugin: RequestStatusType;
|
|
54
|
-
enablePlugin: RequestStatusType;
|
|
55
|
-
getAnalytics: RequestStatusType;
|
|
56
|
-
getClusterStatus: RequestStatusType;
|
|
57
|
-
getEnvironmentConfig: RequestStatusType;
|
|
58
|
-
getPluginStatuses: RequestStatusType;
|
|
59
|
-
getPlugins: RequestStatusType;
|
|
60
|
-
getSamlCertificateStatus: RequestStatusType;
|
|
61
|
-
installPluginFromUrl: RequestStatusType;
|
|
62
|
-
purgeElasticsearchIndexes: RequestStatusType;
|
|
63
|
-
removeIdpSamlCertificate: RequestStatusType;
|
|
64
|
-
removeLicense: RequestStatusType;
|
|
65
|
-
removePlugin: RequestStatusType;
|
|
66
|
-
removePrivateSamlCertificate: RequestStatusType;
|
|
67
|
-
removePublicSamlCertificate: RequestStatusType;
|
|
68
|
-
syncLdap: RequestStatusType;
|
|
69
|
-
testElasticsearch: RequestStatusType;
|
|
70
|
-
testLdap: RequestStatusType;
|
|
71
|
-
uploadBrandImage: RequestStatusType;
|
|
72
|
-
uploadIdpSamlCertificate: RequestStatusType;
|
|
73
|
-
uploadLicense: RequestStatusType;
|
|
74
|
-
uploadPlugin: RequestStatusType;
|
|
75
|
-
uploadPrivateSamlCertificate: RequestStatusType;
|
|
76
|
-
uploadPublicSamlCertificate: RequestStatusType;
|
|
77
37
|
};
|
|
78
38
|
export declare type EmojisRequestsStatuses = {
|
|
79
39
|
createCustomEmoji: RequestStatusType;
|
package/lib/search.d.ts
CHANGED
package/lib/store.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { Typing } from './typing';
|
|
|
21
21
|
import { UsersState } from './users';
|
|
22
22
|
import { AppsState } from './apps';
|
|
23
23
|
import { InsightsState } from './insights';
|
|
24
|
+
import { GifsState } from './gifs';
|
|
24
25
|
export declare type GlobalState = {
|
|
25
26
|
entities: {
|
|
26
27
|
general: GeneralState;
|
|
@@ -51,7 +52,7 @@ export declare type GlobalState = {
|
|
|
51
52
|
pending: Set<string>;
|
|
52
53
|
};
|
|
53
54
|
schemes: SchemesState;
|
|
54
|
-
gifs:
|
|
55
|
+
gifs: GifsState;
|
|
55
56
|
groups: GroupsState;
|
|
56
57
|
channelCategories: ChannelCategoriesState;
|
|
57
58
|
apps: AppsState;
|
package/lib/users.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export declare type UserNotifyProps = {
|
|
|
15
15
|
first_name: 'true' | 'false';
|
|
16
16
|
channel: 'true' | 'false';
|
|
17
17
|
mention_keys: string;
|
|
18
|
+
desktop_notification_sound?: 'Bing' | 'Crackle' | 'Down' | 'Hello' | 'Ripple' | 'Upstairs';
|
|
19
|
+
desktop_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
20
|
+
email_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
21
|
+
push_threads?: 'default' | 'all' | 'mention' | 'none';
|
|
22
|
+
auto_responder_active?: 'true' | 'false';
|
|
23
|
+
auto_responder_message?: string;
|
|
18
24
|
};
|
|
19
25
|
export declare type UserProfile = {
|
|
20
26
|
id: string;
|
|
@@ -23,29 +29,23 @@ export declare type UserProfile = {
|
|
|
23
29
|
delete_at: number;
|
|
24
30
|
username: string;
|
|
25
31
|
password: string;
|
|
26
|
-
auth_data: string;
|
|
27
32
|
auth_service: string;
|
|
28
33
|
email: string;
|
|
29
|
-
email_verified: boolean;
|
|
30
34
|
nickname: string;
|
|
31
35
|
first_name: string;
|
|
32
36
|
last_name: string;
|
|
33
37
|
position: string;
|
|
34
38
|
roles: string;
|
|
35
|
-
allow_marketing: boolean;
|
|
36
39
|
props: Record<string, string>;
|
|
37
40
|
notify_props: UserNotifyProps;
|
|
38
41
|
last_password_update: number;
|
|
39
42
|
last_picture_update: number;
|
|
40
|
-
failed_attempts: number;
|
|
41
43
|
locale: string;
|
|
42
44
|
timezone?: UserTimezone;
|
|
43
45
|
mfa_active: boolean;
|
|
44
|
-
mfa_secret: string;
|
|
45
46
|
last_activity_at: number;
|
|
46
47
|
is_bot: boolean;
|
|
47
48
|
bot_description: string;
|
|
48
|
-
bot_last_icon_update: number;
|
|
49
49
|
terms_of_service_id: string;
|
|
50
50
|
terms_of_service_create_at: number;
|
|
51
51
|
remote_id?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattermost/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"description": "Shared type definitions used by the Mattermost web app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mattermost"
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"build": "tsc
|
|
31
|
+
"build": "tsc --build --verbose",
|
|
32
|
+
"run": "tsc --watch --preserveWatchOutput",
|
|
32
33
|
"clean": "rm -rf tsconfig.tsbuildinfo ./lib"
|
|
33
34
|
}
|
|
34
35
|
}
|