@mattermost/types 9.4.0 → 9.5.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 +22 -0
- package/lib/client4.js +7 -1
- package/lib/cloud.d.ts +3 -0
- package/lib/config.d.ts +21 -2
- package/lib/limits.d.ts +7 -0
- package/lib/limits.js +4 -0
- package/lib/posts.d.ts +1 -1
- package/lib/store.d.ts +2 -0
- package/lib/teams.d.ts +6 -3
- package/lib/users.d.ts +7 -0
- package/package.json +1 -1
package/lib/client4.d.ts
CHANGED
|
@@ -32,3 +32,25 @@ 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.LogLevel = void 0;
|
|
5
|
+
exports.ReportDuration = exports.LogLevel = void 0;
|
|
6
6
|
var LogLevel;
|
|
7
7
|
(function (LogLevel) {
|
|
8
8
|
LogLevel["Error"] = "ERROR";
|
|
@@ -10,3 +10,9 @@ 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/cloud.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export type Subscription = {
|
|
|
45
45
|
billing_type?: string;
|
|
46
46
|
cancel_at?: number;
|
|
47
47
|
will_renew?: string;
|
|
48
|
+
simulated_current_time_ms?: number;
|
|
48
49
|
};
|
|
49
50
|
export type Product = {
|
|
50
51
|
id: string;
|
|
@@ -158,6 +159,8 @@ export type InvoiceLineItem = {
|
|
|
158
159
|
description: string;
|
|
159
160
|
type: typeof InvoiceLineItemType[keyof typeof InvoiceLineItemType];
|
|
160
161
|
metadata: Record<string, string>;
|
|
162
|
+
period_start: number;
|
|
163
|
+
period_end: number;
|
|
161
164
|
};
|
|
162
165
|
export type Limits = {
|
|
163
166
|
messages?: {
|
package/lib/config.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ export type ClientConfig = {
|
|
|
28
28
|
CWSMock: string;
|
|
29
29
|
DataRetentionEnableFileDeletion: string;
|
|
30
30
|
DataRetentionEnableMessageDeletion: string;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
DataRetentionFileRetentionHours: string;
|
|
32
|
+
DataRetentionMessageRetentionHours: string;
|
|
33
33
|
DefaultClientLocale: string;
|
|
34
34
|
DefaultTheme: string;
|
|
35
35
|
DiagnosticId: string;
|
|
@@ -194,6 +194,12 @@ export type ClientConfig = {
|
|
|
194
194
|
PersistentNotificationIntervalMinutes: string;
|
|
195
195
|
AllowPersistentNotificationsForGuests: string;
|
|
196
196
|
DelayChannelAutocomplete: 'true' | 'false';
|
|
197
|
+
WranglerPermittedWranglerRoles: string;
|
|
198
|
+
WranglerAllowedEmailDomain: string;
|
|
199
|
+
WranglerMoveThreadMaxCount: string;
|
|
200
|
+
WranglerMoveThreadFromPrivateChannelEnable: string;
|
|
201
|
+
WranglerMoveThreadFromDirectMessageChannelEnable: string;
|
|
202
|
+
WranglerMoveThreadFromGroupMessageChannelEnable: string;
|
|
197
203
|
ServiceEnvironment: string;
|
|
198
204
|
UniqueEmojiReactionLimitPerPost: string;
|
|
199
205
|
};
|
|
@@ -285,6 +291,7 @@ export type ServiceSettings = {
|
|
|
285
291
|
EnableIncomingWebhooks: boolean;
|
|
286
292
|
EnableOutgoingWebhooks: boolean;
|
|
287
293
|
EnableCommands: boolean;
|
|
294
|
+
OutgoingIntegrationRequestsTimeout: number;
|
|
288
295
|
EnablePostUsernameOverride: boolean;
|
|
289
296
|
EnablePostIconOverride: boolean;
|
|
290
297
|
EnableLinkPreviews: boolean;
|
|
@@ -465,6 +472,15 @@ export type PasswordSettings = {
|
|
|
465
472
|
Symbol: boolean;
|
|
466
473
|
EnableForgotLink: boolean;
|
|
467
474
|
};
|
|
475
|
+
export type WranglerSettings = {
|
|
476
|
+
PermittedWranglerRoles: string[];
|
|
477
|
+
AllowedEmailDomain: string[];
|
|
478
|
+
MoveThreadMaxCount: number;
|
|
479
|
+
MoveThreadToAnotherTeamEnable: boolean;
|
|
480
|
+
MoveThreadFromPrivateChannelEnable: boolean;
|
|
481
|
+
MoveThreadFromDirectMessageChannelEnable: boolean;
|
|
482
|
+
MoveThreadFromGroupMessageChannelEnable: boolean;
|
|
483
|
+
};
|
|
468
484
|
export type FileSettings = {
|
|
469
485
|
EnableFileAttachments: boolean;
|
|
470
486
|
EnableMobileUpload: boolean;
|
|
@@ -771,7 +787,9 @@ export type DataRetentionSettings = {
|
|
|
771
787
|
EnableMessageDeletion: boolean;
|
|
772
788
|
EnableFileDeletion: boolean;
|
|
773
789
|
MessageRetentionDays: number;
|
|
790
|
+
MessageRetentionHours: number;
|
|
774
791
|
FileRetentionDays: number;
|
|
792
|
+
FileRetentionHours: number;
|
|
775
793
|
DeletionJobStartTime: string;
|
|
776
794
|
BatchSize: number;
|
|
777
795
|
EnableBoardsDeletion: boolean;
|
|
@@ -896,6 +914,7 @@ export type AdminConfig = {
|
|
|
896
914
|
FeatureFlags: FeatureFlags;
|
|
897
915
|
ImportSettings: ImportSettings;
|
|
898
916
|
ExportSettings: ExportSettings;
|
|
917
|
+
WranglerSettings: WranglerSettings;
|
|
899
918
|
};
|
|
900
919
|
export type ReplicaLagSetting = {
|
|
901
920
|
DataSource: string;
|
package/lib/limits.d.ts
ADDED
package/lib/limits.js
ADDED
package/lib/posts.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Reaction } from './reactions';
|
|
|
5
5
|
import { TeamType } from './teams';
|
|
6
6
|
import { UserProfile } from './users';
|
|
7
7
|
import { RelationOneToOne, RelationOneToMany, IDMappedObjects } from './utilities';
|
|
8
|
-
export 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' | '';
|
|
8
|
+
export 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' | 'system_wrangler' | '';
|
|
9
9
|
export type PostEmbedType = 'image' | 'link' | 'message_attachment' | 'opengraph' | 'permalink';
|
|
10
10
|
export type PostEmbed = {
|
|
11
11
|
type: PostEmbedType;
|
package/lib/store.d.ts
CHANGED
|
@@ -21,10 +21,12 @@ import { ThreadsState } from './threads';
|
|
|
21
21
|
import { Typing } from './typing';
|
|
22
22
|
import { UsersState } from './users';
|
|
23
23
|
import { AppsState } from './apps';
|
|
24
|
+
import { LimitsState } from './limits';
|
|
24
25
|
export type GlobalState = {
|
|
25
26
|
entities: {
|
|
26
27
|
general: GeneralState;
|
|
27
28
|
users: UsersState;
|
|
29
|
+
limits: LimitsState;
|
|
28
30
|
teams: TeamsState;
|
|
29
31
|
channels: ChannelsState;
|
|
30
32
|
posts: PostsState;
|
package/lib/teams.d.ts
CHANGED
|
@@ -79,9 +79,12 @@ export type TeamStats = {
|
|
|
79
79
|
total_member_count: number;
|
|
80
80
|
active_member_count: number;
|
|
81
81
|
};
|
|
82
|
-
export type TeamSearchOpts =
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
export type TeamSearchOpts = PagedTeamSearchOpts | NotPagedTeamSearchOpts;
|
|
83
|
+
export type PagedTeamSearchOpts = {
|
|
84
|
+
page: number;
|
|
85
|
+
per_page: number;
|
|
86
|
+
} & NotPagedTeamSearchOpts;
|
|
87
|
+
export type NotPagedTeamSearchOpts = {
|
|
85
88
|
allow_open_invite?: boolean;
|
|
86
89
|
group_constrained?: boolean;
|
|
87
90
|
};
|
package/lib/users.d.ts
CHANGED
|
@@ -128,3 +128,10 @@ 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
|
+
};
|