@mattermost/types 9.5.0 → 9.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 +6 -0
- package/lib/client4.d.ts +0 -22
- package/lib/client4.js +1 -7
- package/lib/config.d.ts +4 -0
- package/lib/general.d.ts +1 -3
- package/lib/integrations.d.ts +15 -0
- package/lib/plugins.d.ts +5 -1
- package/lib/posts.d.ts +0 -1
- package/lib/reports.d.ts +65 -0
- package/lib/reports.js +31 -0
- package/lib/requests.d.ts +0 -2
- package/lib/search.d.ts +0 -3
- package/lib/teams.d.ts +4 -1
- package/lib/users.d.ts +0 -7
- package/package.json +1 -1
package/lib/admin.d.ts
CHANGED
|
@@ -34,6 +34,12 @@ export type LogFilter = {
|
|
|
34
34
|
dateFrom: LogDateFrom;
|
|
35
35
|
dateTo: LogDateTo;
|
|
36
36
|
};
|
|
37
|
+
export type LogFilterQuery = {
|
|
38
|
+
server_names: LogServerNames;
|
|
39
|
+
log_levels: LogLevels;
|
|
40
|
+
date_from: LogDateFrom;
|
|
41
|
+
date_to: LogDateTo;
|
|
42
|
+
};
|
|
37
43
|
export type AdminState = {
|
|
38
44
|
logs: LogObject[];
|
|
39
45
|
plainLogs: string[];
|
package/lib/client4.d.ts
CHANGED
|
@@ -32,25 +32,3 @@ export type FetchPaginatedThreadOptions = {
|
|
|
32
32
|
fromCreateAt?: number;
|
|
33
33
|
fromPost?: string;
|
|
34
34
|
};
|
|
35
|
-
export declare enum ReportDuration {
|
|
36
|
-
Last30Days = "last_30_days",
|
|
37
|
-
PreviousMonth = "previous_month",
|
|
38
|
-
Last6Months = "last_6_months"
|
|
39
|
-
}
|
|
40
|
-
export type UserReportFilter = {
|
|
41
|
-
role_filter?: string;
|
|
42
|
-
has_no_team?: boolean;
|
|
43
|
-
team_filter?: string;
|
|
44
|
-
hide_active?: boolean;
|
|
45
|
-
hide_inactive?: boolean;
|
|
46
|
-
searchTerm?: string;
|
|
47
|
-
};
|
|
48
|
-
export type UserReportOptions = UserReportFilter & {
|
|
49
|
-
sort_column: 'CreateAt' | 'Username' | 'FirstName' | 'LastName' | 'Nickname' | 'Email';
|
|
50
|
-
page_size: number;
|
|
51
|
-
sort_direction?: 'asc' | 'desc';
|
|
52
|
-
direction?: 'up' | 'down';
|
|
53
|
-
date_range?: ReportDuration;
|
|
54
|
-
from_column_value?: string;
|
|
55
|
-
from_id?: string;
|
|
56
|
-
};
|
package/lib/client4.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.
|
|
5
|
+
exports.LogLevel = void 0;
|
|
6
6
|
var LogLevel;
|
|
7
7
|
(function (LogLevel) {
|
|
8
8
|
LogLevel["Error"] = "ERROR";
|
|
@@ -10,9 +10,3 @@ var LogLevel;
|
|
|
10
10
|
LogLevel["Info"] = "INFO";
|
|
11
11
|
LogLevel["Debug"] = "DEBUG";
|
|
12
12
|
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
13
|
-
var ReportDuration;
|
|
14
|
-
(function (ReportDuration) {
|
|
15
|
-
ReportDuration["Last30Days"] = "last_30_days";
|
|
16
|
-
ReportDuration["PreviousMonth"] = "previous_month";
|
|
17
|
-
ReportDuration["Last6Months"] = "last_6_months";
|
|
18
|
-
})(ReportDuration = exports.ReportDuration || (exports.ReportDuration = {}));
|
package/lib/config.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export type ClientConfig = {
|
|
|
52
52
|
EnableCustomEmoji: string;
|
|
53
53
|
EnableCustomGroups: string;
|
|
54
54
|
EnableCustomUserStatuses: string;
|
|
55
|
+
EnableUserStatuses: string;
|
|
55
56
|
EnableLastActiveTime: string;
|
|
56
57
|
EnableTimedDND: string;
|
|
57
58
|
EnableCustomTermsOfService: string;
|
|
@@ -76,6 +77,7 @@ export type ClientConfig = {
|
|
|
76
77
|
EnableMobileFileUpload: string;
|
|
77
78
|
EnableMultifactorAuthentication: string;
|
|
78
79
|
EnableOAuthServiceProvider: string;
|
|
80
|
+
EnableOutgoingOAuthConnections: string;
|
|
79
81
|
EnableOpenServer: string;
|
|
80
82
|
EnableOutgoingWebhooks: string;
|
|
81
83
|
EnablePostIconOverride: string;
|
|
@@ -376,6 +378,7 @@ export type ServiceSettings = {
|
|
|
376
378
|
PersistentNotificationMaxRecipients: number;
|
|
377
379
|
UniqueEmojiReactionLimitPerPost: number;
|
|
378
380
|
RefreshPostStatsRunTime: string;
|
|
381
|
+
MaximumPayloadSizeBytes: number;
|
|
379
382
|
};
|
|
380
383
|
export type TeamSettings = {
|
|
381
384
|
SiteName: string;
|
|
@@ -440,6 +443,7 @@ export type LogSettings = {
|
|
|
440
443
|
EnableSentry: boolean;
|
|
441
444
|
AdvancedLoggingConfig: string;
|
|
442
445
|
AdvancedLoggingJSON: Record<string, any>;
|
|
446
|
+
MaxFieldSize: number;
|
|
443
447
|
};
|
|
444
448
|
export type ExperimentalAuditSettings = {
|
|
445
449
|
FileEnabled: boolean;
|
package/lib/general.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ClientConfig, ClientLicense
|
|
1
|
+
import { ClientConfig, ClientLicense } from './config';
|
|
2
2
|
export type GeneralState = {
|
|
3
3
|
config: Partial<ClientConfig>;
|
|
4
|
-
dataRetentionPolicy: any;
|
|
5
4
|
firstAdminVisitMarketplaceStatus: boolean;
|
|
6
5
|
firstAdminCompleteSetup: boolean;
|
|
7
6
|
license: ClientLicense;
|
|
8
7
|
serverVersion: string;
|
|
9
|
-
warnMetricsStatus: Record<string, WarnMetricStatus>;
|
|
10
8
|
};
|
|
11
9
|
export type SystemSetting = {
|
|
12
10
|
name: string;
|
package/lib/integrations.d.ts
CHANGED
|
@@ -92,10 +92,25 @@ export type OAuthApp = {
|
|
|
92
92
|
'homepage': string;
|
|
93
93
|
'is_trusted': boolean;
|
|
94
94
|
};
|
|
95
|
+
export type OutgoingOAuthConnection = {
|
|
96
|
+
'id': string;
|
|
97
|
+
'name': string;
|
|
98
|
+
'creator_id': string;
|
|
99
|
+
'create_at': number;
|
|
100
|
+
'update_at': number;
|
|
101
|
+
'client_id': string;
|
|
102
|
+
'client_secret'?: string;
|
|
103
|
+
'credentials_username'?: string;
|
|
104
|
+
'credentials_password'?: string;
|
|
105
|
+
'oauth_token_url': string;
|
|
106
|
+
'grant_type': 'client_credentials' | 'password';
|
|
107
|
+
'audiences': string[];
|
|
108
|
+
};
|
|
95
109
|
export type IntegrationsState = {
|
|
96
110
|
incomingHooks: IDMappedObjects<IncomingWebhook>;
|
|
97
111
|
outgoingHooks: IDMappedObjects<OutgoingWebhook>;
|
|
98
112
|
oauthApps: IDMappedObjects<OAuthApp>;
|
|
113
|
+
outgoingOAuthConnections: IDMappedObjects<OutgoingOAuthConnection>;
|
|
99
114
|
appsOAuthAppIDs: string[];
|
|
100
115
|
appsBotIDs: string[];
|
|
101
116
|
systemCommands: IDMappedObjects<Command>;
|
package/lib/plugins.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
type MessageDescriptor = {
|
|
2
|
+
id: string;
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
};
|
|
1
5
|
export type PluginManifest = {
|
|
2
6
|
id: string;
|
|
3
7
|
name: string;
|
|
@@ -38,7 +42,7 @@ export type PluginSetting = {
|
|
|
38
42
|
key: string;
|
|
39
43
|
display_name: string;
|
|
40
44
|
type: string;
|
|
41
|
-
help_text: string;
|
|
45
|
+
help_text: string | MessageDescriptor;
|
|
42
46
|
regenerate_help_text?: string;
|
|
43
47
|
placeholder: string;
|
|
44
48
|
default: any;
|
package/lib/posts.d.ts
CHANGED
|
@@ -106,7 +106,6 @@ export type PostsState = {
|
|
|
106
106
|
reactions: RelationOneToOne<Post, Record<string, Reaction>>;
|
|
107
107
|
openGraph: RelationOneToOne<Post, Record<string, OpenGraphMetadata>>;
|
|
108
108
|
pendingPostIds: string[];
|
|
109
|
-
selectedPostId: string;
|
|
110
109
|
postEditHistory: Post[];
|
|
111
110
|
currentFocusedPostId: string;
|
|
112
111
|
messagesHistory: MessageHistory;
|
package/lib/reports.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UserProfile } from './users';
|
|
2
|
+
export declare enum UserReportSortColumns {
|
|
3
|
+
username = "Username",
|
|
4
|
+
email = "Email",
|
|
5
|
+
createAt = "CreateAt",
|
|
6
|
+
firstName = "FirstName",
|
|
7
|
+
lastName = "LastName",
|
|
8
|
+
nickname = "Nickname"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ReportSortDirection {
|
|
11
|
+
ascending = "asc",
|
|
12
|
+
descending = "desc"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ReportDuration {
|
|
15
|
+
AllTime = "all_time",
|
|
16
|
+
Last30Days = "last_30_days",
|
|
17
|
+
PreviousMonth = "previous_month",
|
|
18
|
+
Last6Months = "last_6_months"
|
|
19
|
+
}
|
|
20
|
+
export declare enum CursorPaginationDirection {
|
|
21
|
+
'prev' = "prev",
|
|
22
|
+
'next' = "next"
|
|
23
|
+
}
|
|
24
|
+
export type UserReportFilter = {
|
|
25
|
+
role_filter?: string;
|
|
26
|
+
has_no_team?: boolean;
|
|
27
|
+
team_filter?: string;
|
|
28
|
+
hide_active?: boolean;
|
|
29
|
+
hide_inactive?: boolean;
|
|
30
|
+
search_term?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UserReportOptions = UserReportFilter & {
|
|
33
|
+
page_size?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The column to sort on. Provide the id of the column. Use the UserReportSortColumns enum.
|
|
36
|
+
*/
|
|
37
|
+
sort_column?: UserReportSortColumns;
|
|
38
|
+
/**
|
|
39
|
+
* The sort direction to use. Either "asc" or "desc". Use the ReportSortDirection enum.
|
|
40
|
+
*/
|
|
41
|
+
sort_direction?: ReportSortDirection;
|
|
42
|
+
/**
|
|
43
|
+
* The direction to paginate in. Either "up" or "down". Use the CursorPaginationDirection enum.
|
|
44
|
+
*/
|
|
45
|
+
direction?: CursorPaginationDirection;
|
|
46
|
+
/**
|
|
47
|
+
* The cursor to paginate from.
|
|
48
|
+
*/
|
|
49
|
+
from_column_value?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The id of the user to paginate from.
|
|
52
|
+
*/
|
|
53
|
+
from_id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The duration to filter by. Use the ReportDuration enum.
|
|
56
|
+
*/
|
|
57
|
+
date_range?: ReportDuration;
|
|
58
|
+
};
|
|
59
|
+
export type UserReport = UserProfile & {
|
|
60
|
+
last_login_at: number;
|
|
61
|
+
last_status_at?: number;
|
|
62
|
+
last_post_date?: number;
|
|
63
|
+
days_active?: number;
|
|
64
|
+
total_posts?: number;
|
|
65
|
+
};
|
package/lib/reports.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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.CursorPaginationDirection = exports.ReportDuration = exports.ReportSortDirection = exports.UserReportSortColumns = void 0;
|
|
6
|
+
var UserReportSortColumns;
|
|
7
|
+
(function (UserReportSortColumns) {
|
|
8
|
+
UserReportSortColumns["username"] = "Username";
|
|
9
|
+
UserReportSortColumns["email"] = "Email";
|
|
10
|
+
UserReportSortColumns["createAt"] = "CreateAt";
|
|
11
|
+
UserReportSortColumns["firstName"] = "FirstName";
|
|
12
|
+
UserReportSortColumns["lastName"] = "LastName";
|
|
13
|
+
UserReportSortColumns["nickname"] = "Nickname";
|
|
14
|
+
})(UserReportSortColumns = exports.UserReportSortColumns || (exports.UserReportSortColumns = {}));
|
|
15
|
+
var ReportSortDirection;
|
|
16
|
+
(function (ReportSortDirection) {
|
|
17
|
+
ReportSortDirection["ascending"] = "asc";
|
|
18
|
+
ReportSortDirection["descending"] = "desc";
|
|
19
|
+
})(ReportSortDirection = exports.ReportSortDirection || (exports.ReportSortDirection = {}));
|
|
20
|
+
var ReportDuration;
|
|
21
|
+
(function (ReportDuration) {
|
|
22
|
+
ReportDuration["AllTime"] = "all_time";
|
|
23
|
+
ReportDuration["Last30Days"] = "last_30_days";
|
|
24
|
+
ReportDuration["PreviousMonth"] = "previous_month";
|
|
25
|
+
ReportDuration["Last6Months"] = "last_6_months";
|
|
26
|
+
})(ReportDuration = exports.ReportDuration || (exports.ReportDuration = {}));
|
|
27
|
+
var CursorPaginationDirection;
|
|
28
|
+
(function (CursorPaginationDirection) {
|
|
29
|
+
CursorPaginationDirection["prev"] = "prev";
|
|
30
|
+
CursorPaginationDirection["next"] = "next";
|
|
31
|
+
})(CursorPaginationDirection = exports.CursorPaginationDirection || (exports.CursorPaginationDirection = {}));
|
package/lib/requests.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export type ChannelsRequestsStatuses = {
|
|
|
8
8
|
getAllChannels: RequestStatusType;
|
|
9
9
|
myChannels: RequestStatusType;
|
|
10
10
|
createChannel: RequestStatusType;
|
|
11
|
-
updateChannel: RequestStatusType;
|
|
12
11
|
};
|
|
13
12
|
export type GeneralRequestsStatuses = {
|
|
14
13
|
websocket: RequestStatusType;
|
|
@@ -24,7 +23,6 @@ export type ThreadsRequestStatuses = {
|
|
|
24
23
|
export type TeamsRequestsStatuses = {
|
|
25
24
|
getMyTeams: RequestStatusType;
|
|
26
25
|
getTeams: RequestStatusType;
|
|
27
|
-
joinTeam: RequestStatusType;
|
|
28
26
|
};
|
|
29
27
|
export type UsersRequestsStatuses = {
|
|
30
28
|
login: RequestStatusType;
|
package/lib/search.d.ts
CHANGED
package/lib/teams.d.ts
CHANGED
package/lib/users.d.ts
CHANGED
|
@@ -128,10 +128,3 @@ export type GetFilteredUsersStatsOpts = {
|
|
|
128
128
|
export type AuthChangeResponse = {
|
|
129
129
|
follow_link: string;
|
|
130
130
|
};
|
|
131
|
-
export type UserReport = UserProfile & {
|
|
132
|
-
last_login_at: number;
|
|
133
|
-
last_status_at?: number;
|
|
134
|
-
last_post_date?: number;
|
|
135
|
-
days_active?: number;
|
|
136
|
-
total_posts?: number;
|
|
137
|
-
};
|