@mattermost/types 8.1.1 → 9.1.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 CHANGED
@@ -62,6 +62,7 @@ export declare type ClusterInfo = {
62
62
  config_hash: string;
63
63
  ipaddress: string;
64
64
  hostname: string;
65
+ schema_version: string;
65
66
  };
66
67
  export declare type AnalyticsRow = {
67
68
  name: string;
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
@@ -65,6 +65,7 @@ export declare type ClientConfig = {
65
65
  EnableGifPicker: string;
66
66
  EnableGuestAccounts: string;
67
67
  EnableIncomingWebhooks: string;
68
+ EnableJoinLeaveMessageByDefault: string;
68
69
  EnableLatex: string;
69
70
  EnableInlineLatex: string;
70
71
  EnableLdap: string;
@@ -113,12 +114,9 @@ export declare type ClientConfig = {
113
114
  ExperimentalViewArchivedChannels: string;
114
115
  FileLevel: string;
115
116
  FeatureFlagAppsEnabled: string;
116
- FeatureFlagBoardsProduct: string;
117
117
  FeatureFlagCallsEnabled: string;
118
118
  FeatureFlagGraphQL: string;
119
119
  ForgotPasswordLink: string;
120
- GfycatAPIKey: string;
121
- GfycatAPISecret: string;
122
120
  GiphySdkKey: string;
123
121
  GoogleDeveloperKey: string;
124
122
  GuestAccountsEnforceMultifactorAuthentication: string;
@@ -128,7 +126,6 @@ export declare type ClientConfig = {
128
126
  IosAppDownloadLink: string;
129
127
  IosLatestVersion: string;
130
128
  IosMinVersion: string;
131
- InsightsEnabled: string;
132
129
  InstallationDate: string;
133
130
  IsDefaultMarketplace: string;
134
131
  LdapFirstNameAttributeSet: string;
@@ -325,8 +322,6 @@ export declare type ServiceSettings = {
325
322
  EnableCustomEmoji: boolean;
326
323
  EnableEmojiPicker: boolean;
327
324
  EnableGifPicker: boolean;
328
- GfycatAPIKey: string;
329
- GfycatAPISecret: string;
330
325
  GiphySdkKey: string;
331
326
  PostEditTimeLimit: number;
332
327
  TimeBetweenUserTypingUpdatesMilliseconds: number;
@@ -754,10 +749,8 @@ export declare type BleveSettings = {
754
749
  export declare type DataRetentionSettings = {
755
750
  EnableMessageDeletion: boolean;
756
751
  EnableFileDeletion: boolean;
757
- EnableBoardsDeletion: boolean;
758
752
  MessageRetentionDays: number;
759
753
  FileRetentionDays: number;
760
- BoardsRetentionDays: number;
761
754
  DeletionJobStartTime: string;
762
755
  BatchSize: number;
763
756
  };
package/lib/groups.d.ts CHANGED
@@ -32,6 +32,7 @@ export declare type Group = {
32
32
  allow_reference: boolean;
33
33
  channel_member_count?: number;
34
34
  channel_member_timezones_count?: number;
35
+ member_ids?: string[];
35
36
  };
36
37
  export declare enum GroupSource {
37
38
  Ldap = "ldap",
@@ -123,13 +124,21 @@ export declare type GroupCreateWithUserIds = {
123
124
  user_ids: string[];
124
125
  description?: string;
125
126
  };
126
- export declare type GroupSearachParams = {
127
+ export declare type GetGroupsParams = {
128
+ filter_allow_reference?: boolean;
129
+ page?: number;
130
+ per_page?: number;
131
+ include_member_count?: boolean;
132
+ include_archived?: boolean;
133
+ filter_archived?: boolean;
134
+ include_member_ids?: boolean;
135
+ };
136
+ export declare type GetGroupsForUserParams = GetGroupsParams & {
137
+ filter_has_member: string;
138
+ };
139
+ export declare type GroupSearchParams = GetGroupsParams & {
127
140
  q: string;
128
- filter_allow_reference: boolean;
129
- page: number;
130
- per_page: number;
131
- include_member_count: boolean;
132
- user_id?: string;
141
+ filter_has_member?: string;
133
142
  include_timezones?: string;
134
143
  include_channel_member_count?: string;
135
144
  };
@@ -140,4 +149,5 @@ export declare type GroupMembership = {
140
149
  export declare type GroupPermissions = {
141
150
  can_delete: boolean;
142
151
  can_manage_members: boolean;
152
+ can_restore: boolean;
143
153
  };
package/lib/store.d.ts CHANGED
@@ -21,8 +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
- import { GifsState } from './gifs';
26
24
  export declare type GlobalState = {
27
25
  entities: {
28
26
  general: GeneralState;
@@ -53,14 +51,12 @@ export declare type GlobalState = {
53
51
  pending: Set<string>;
54
52
  };
55
53
  schemes: SchemesState;
56
- gifs: GifsState;
57
54
  groups: GroupsState;
58
55
  channelCategories: ChannelCategoriesState;
59
56
  apps: AppsState;
60
57
  cloud: CloudState;
61
58
  hostedCustomer: HostedCustomerState;
62
59
  usage: CloudUsage;
63
- insights: InsightsState;
64
60
  };
65
61
  errors: any[];
66
62
  requests: {
package/lib/users.d.ts CHANGED
@@ -119,6 +119,7 @@ export declare type GetFilteredUsersStatsOpts = {
119
119
  in_channel?: string;
120
120
  include_deleted?: boolean;
121
121
  include_bots?: boolean;
122
+ include_remote_users?: boolean;
122
123
  roles?: string[];
123
124
  channel_roles?: string[];
124
125
  team_roles?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattermost/types",
3
- "version": "8.1.1",
3
+ "version": "9.1.0",
4
4
  "description": "Shared type definitions used by the Mattermost web app",
5
5
  "keywords": [
6
6
  "mattermost"
package/lib/gifs.d.ts DELETED
@@ -1,152 +0,0 @@
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
- export 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 DELETED
@@ -1,4 +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 });
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 = {}));