@mattermost/types 8.1.1 → 9.0.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/channels.d.ts +1 -0
- package/lib/config.d.ts +0 -4
- package/lib/store.d.ts +0 -2
- package/lib/users.d.ts +1 -0
- package/package.json +1 -1
- package/lib/insights.d.ts +0 -152
- package/lib/insights.js +0 -28
package/lib/admin.d.ts
CHANGED
package/lib/channels.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export declare type ChannelsState = {
|
|
|
121
121
|
channelModerations: RelationOneToOne<Channel, ChannelModeration[]>;
|
|
122
122
|
channelMemberCountsByGroup: RelationOneToOne<Channel, ChannelMemberCountsByGroup>;
|
|
123
123
|
messageCounts: RelationOneToOne<Channel, ChannelMessageCount>;
|
|
124
|
+
channelsMemberCount: Record<string, number>;
|
|
124
125
|
};
|
|
125
126
|
export declare type ChannelModeration = {
|
|
126
127
|
name: string;
|
package/lib/config.d.ts
CHANGED
|
@@ -113,7 +113,6 @@ export declare type ClientConfig = {
|
|
|
113
113
|
ExperimentalViewArchivedChannels: string;
|
|
114
114
|
FileLevel: string;
|
|
115
115
|
FeatureFlagAppsEnabled: string;
|
|
116
|
-
FeatureFlagBoardsProduct: string;
|
|
117
116
|
FeatureFlagCallsEnabled: string;
|
|
118
117
|
FeatureFlagGraphQL: string;
|
|
119
118
|
ForgotPasswordLink: string;
|
|
@@ -128,7 +127,6 @@ export declare type ClientConfig = {
|
|
|
128
127
|
IosAppDownloadLink: string;
|
|
129
128
|
IosLatestVersion: string;
|
|
130
129
|
IosMinVersion: string;
|
|
131
|
-
InsightsEnabled: string;
|
|
132
130
|
InstallationDate: string;
|
|
133
131
|
IsDefaultMarketplace: string;
|
|
134
132
|
LdapFirstNameAttributeSet: string;
|
|
@@ -754,10 +752,8 @@ export declare type BleveSettings = {
|
|
|
754
752
|
export declare type DataRetentionSettings = {
|
|
755
753
|
EnableMessageDeletion: boolean;
|
|
756
754
|
EnableFileDeletion: boolean;
|
|
757
|
-
EnableBoardsDeletion: boolean;
|
|
758
755
|
MessageRetentionDays: number;
|
|
759
756
|
FileRetentionDays: number;
|
|
760
|
-
BoardsRetentionDays: number;
|
|
761
757
|
DeletionJobStartTime: string;
|
|
762
758
|
BatchSize: number;
|
|
763
759
|
};
|
package/lib/store.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { ThreadsState } from './threads';
|
|
|
21
21
|
import { Typing } from './typing';
|
|
22
22
|
import { UsersState } from './users';
|
|
23
23
|
import { AppsState } from './apps';
|
|
24
|
-
import { InsightsState } from './insights';
|
|
25
24
|
import { GifsState } from './gifs';
|
|
26
25
|
export declare type GlobalState = {
|
|
27
26
|
entities: {
|
|
@@ -60,7 +59,6 @@ export declare type GlobalState = {
|
|
|
60
59
|
cloud: CloudState;
|
|
61
60
|
hostedCustomer: HostedCustomerState;
|
|
62
61
|
usage: CloudUsage;
|
|
63
|
-
insights: InsightsState;
|
|
64
62
|
};
|
|
65
63
|
errors: any[];
|
|
66
64
|
requests: {
|
package/lib/users.d.ts
CHANGED
package/package.json
CHANGED
package/lib/insights.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { ChannelType } from './channels';
|
|
2
|
-
import { Post } from './posts';
|
|
3
|
-
import { UserProfile } from './users';
|
|
4
|
-
export declare enum InsightsWidgetTypes {
|
|
5
|
-
TOP_CHANNELS = "TOP_CHANNELS",
|
|
6
|
-
TOP_REACTIONS = "TOP_REACTIONS",
|
|
7
|
-
TOP_THREADS = "TOP_THREADS",
|
|
8
|
-
TOP_BOARDS = "TOP_BOARDS",
|
|
9
|
-
LEAST_ACTIVE_CHANNELS = "LEAST_ACTIVE_CHANNELS",
|
|
10
|
-
TOP_PLAYBOOKS = "TOP_PLAYBOOKS",
|
|
11
|
-
TOP_DMS = "TOP_DMS",
|
|
12
|
-
NEW_TEAM_MEMBERS = "NEW_TEAM_MEMBERS"
|
|
13
|
-
}
|
|
14
|
-
export declare enum CardSizes {
|
|
15
|
-
large = "lg",
|
|
16
|
-
medium = "md",
|
|
17
|
-
small = "sm"
|
|
18
|
-
}
|
|
19
|
-
export declare type CardSize = CardSizes;
|
|
20
|
-
export declare enum TimeFrames {
|
|
21
|
-
INSIGHTS_1_DAY = "today",
|
|
22
|
-
INSIGHTS_7_DAYS = "7_day",
|
|
23
|
-
INSIGHTS_28_DAYS = "28_day"
|
|
24
|
-
}
|
|
25
|
-
export declare type TimeFrame = TimeFrames;
|
|
26
|
-
export declare type TopReaction = {
|
|
27
|
-
emoji_name: string;
|
|
28
|
-
count: number;
|
|
29
|
-
};
|
|
30
|
-
export declare type TopReactionResponse = {
|
|
31
|
-
has_next: boolean;
|
|
32
|
-
items: TopReaction[];
|
|
33
|
-
timeFrame?: TimeFrame;
|
|
34
|
-
};
|
|
35
|
-
export declare type TopChannel = {
|
|
36
|
-
id: string;
|
|
37
|
-
type: ChannelType;
|
|
38
|
-
display_name: string;
|
|
39
|
-
name: string;
|
|
40
|
-
team_id: string;
|
|
41
|
-
message_count: number;
|
|
42
|
-
};
|
|
43
|
-
export declare type TopChannelGraphData = Record<string, Record<string, number>>;
|
|
44
|
-
export declare type TopChannelResponse = {
|
|
45
|
-
has_next: boolean;
|
|
46
|
-
items: TopChannel[];
|
|
47
|
-
daily_channel_post_counts: TopChannelGraphData;
|
|
48
|
-
};
|
|
49
|
-
export declare type InsightsState = {
|
|
50
|
-
topReactions: Record<string, Record<TimeFrame, Record<string, TopReaction>>>;
|
|
51
|
-
myTopReactions: Record<string, Record<TimeFrame, Record<string, TopReaction>>>;
|
|
52
|
-
};
|
|
53
|
-
export declare type TopChannelActionResult = {
|
|
54
|
-
data?: TopChannelResponse;
|
|
55
|
-
error?: any;
|
|
56
|
-
};
|
|
57
|
-
export declare type TopThread = {
|
|
58
|
-
channel_id: string;
|
|
59
|
-
channel_display_name: string;
|
|
60
|
-
channel_name: string;
|
|
61
|
-
participants: string[];
|
|
62
|
-
user_information: {
|
|
63
|
-
id: string;
|
|
64
|
-
first_name: string;
|
|
65
|
-
last_name: string;
|
|
66
|
-
last_picture_update: number;
|
|
67
|
-
};
|
|
68
|
-
post: Post;
|
|
69
|
-
};
|
|
70
|
-
export declare type TopThreadResponse = {
|
|
71
|
-
has_next: boolean;
|
|
72
|
-
items: TopThread[];
|
|
73
|
-
};
|
|
74
|
-
export declare type TopThreadActionResult = {
|
|
75
|
-
data?: TopThreadResponse;
|
|
76
|
-
error?: any;
|
|
77
|
-
};
|
|
78
|
-
export declare type TopBoard = {
|
|
79
|
-
boardID: string;
|
|
80
|
-
icon: string;
|
|
81
|
-
title: string;
|
|
82
|
-
activityCount: number;
|
|
83
|
-
activeUsers: Array<UserProfile['id']> | string;
|
|
84
|
-
createdBy: string;
|
|
85
|
-
};
|
|
86
|
-
export declare type TopBoardResponse = {
|
|
87
|
-
has_next: boolean;
|
|
88
|
-
items: TopBoard[];
|
|
89
|
-
};
|
|
90
|
-
export declare type LeastActiveChannel = {
|
|
91
|
-
id: string;
|
|
92
|
-
display_name: string;
|
|
93
|
-
name: string;
|
|
94
|
-
participants: string[];
|
|
95
|
-
last_activity_at: number;
|
|
96
|
-
type: ChannelType;
|
|
97
|
-
team_id: string;
|
|
98
|
-
message_count: number;
|
|
99
|
-
};
|
|
100
|
-
export declare type LeastActiveChannelsResponse = {
|
|
101
|
-
has_next: boolean;
|
|
102
|
-
items: LeastActiveChannel[];
|
|
103
|
-
};
|
|
104
|
-
export declare type LeastActiveChannelsActionResult = {
|
|
105
|
-
data?: LeastActiveChannelsResponse;
|
|
106
|
-
error?: any;
|
|
107
|
-
};
|
|
108
|
-
export declare type TopPlaybook = {
|
|
109
|
-
playbook_id: string;
|
|
110
|
-
num_runs: number;
|
|
111
|
-
title: string;
|
|
112
|
-
last_run_at: number;
|
|
113
|
-
};
|
|
114
|
-
export declare type TopPlaybookResponse = {
|
|
115
|
-
has_next: boolean;
|
|
116
|
-
items: TopPlaybook[];
|
|
117
|
-
};
|
|
118
|
-
declare type MinUserProfile = {
|
|
119
|
-
id: string;
|
|
120
|
-
first_name: string;
|
|
121
|
-
last_name: string;
|
|
122
|
-
last_picture_update: number;
|
|
123
|
-
nickname: string;
|
|
124
|
-
position: string;
|
|
125
|
-
username: string;
|
|
126
|
-
};
|
|
127
|
-
export declare type TopDM = {
|
|
128
|
-
outgoing_message_count: number;
|
|
129
|
-
post_count: number;
|
|
130
|
-
second_participant: MinUserProfile;
|
|
131
|
-
};
|
|
132
|
-
export declare type TopDMsResponse = {
|
|
133
|
-
has_next: boolean;
|
|
134
|
-
items: TopDM[];
|
|
135
|
-
};
|
|
136
|
-
export declare type TopDMsActionResult = {
|
|
137
|
-
data?: TopDMsResponse;
|
|
138
|
-
error?: any;
|
|
139
|
-
};
|
|
140
|
-
export declare type NewMember = MinUserProfile & {
|
|
141
|
-
create_at: number;
|
|
142
|
-
};
|
|
143
|
-
export declare type NewMembersResponse = {
|
|
144
|
-
has_next: boolean;
|
|
145
|
-
items: NewMember[];
|
|
146
|
-
total_count: number;
|
|
147
|
-
};
|
|
148
|
-
export declare type NewMembersActionResult = {
|
|
149
|
-
data?: NewMembersResponse;
|
|
150
|
-
error?: any;
|
|
151
|
-
};
|
|
152
|
-
export {};
|
package/lib/insights.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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.TimeFrames = exports.CardSizes = exports.InsightsWidgetTypes = void 0;
|
|
6
|
-
var InsightsWidgetTypes;
|
|
7
|
-
(function (InsightsWidgetTypes) {
|
|
8
|
-
InsightsWidgetTypes["TOP_CHANNELS"] = "TOP_CHANNELS";
|
|
9
|
-
InsightsWidgetTypes["TOP_REACTIONS"] = "TOP_REACTIONS";
|
|
10
|
-
InsightsWidgetTypes["TOP_THREADS"] = "TOP_THREADS";
|
|
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";
|
|
16
|
-
})(InsightsWidgetTypes = exports.InsightsWidgetTypes || (exports.InsightsWidgetTypes = {}));
|
|
17
|
-
var CardSizes;
|
|
18
|
-
(function (CardSizes) {
|
|
19
|
-
CardSizes["large"] = "lg";
|
|
20
|
-
CardSizes["medium"] = "md";
|
|
21
|
-
CardSizes["small"] = "sm";
|
|
22
|
-
})(CardSizes = exports.CardSizes || (exports.CardSizes = {}));
|
|
23
|
-
var TimeFrames;
|
|
24
|
-
(function (TimeFrames) {
|
|
25
|
-
TimeFrames["INSIGHTS_1_DAY"] = "today";
|
|
26
|
-
TimeFrames["INSIGHTS_7_DAYS"] = "7_day";
|
|
27
|
-
TimeFrames["INSIGHTS_28_DAYS"] = "28_day";
|
|
28
|
-
})(TimeFrames = exports.TimeFrames || (exports.TimeFrames = {}));
|