@mattermost/types 9.0.0 → 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/config.d.ts +1 -4
- package/lib/groups.d.ts +16 -6
- package/lib/store.d.ts +0 -2
- package/package.json +1 -1
- package/lib/gifs.d.ts +0 -152
- package/lib/gifs.js +0 -4
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;
|
|
@@ -116,8 +117,6 @@ export declare type ClientConfig = {
|
|
|
116
117
|
FeatureFlagCallsEnabled: string;
|
|
117
118
|
FeatureFlagGraphQL: string;
|
|
118
119
|
ForgotPasswordLink: string;
|
|
119
|
-
GfycatAPIKey: string;
|
|
120
|
-
GfycatAPISecret: string;
|
|
121
120
|
GiphySdkKey: string;
|
|
122
121
|
GoogleDeveloperKey: string;
|
|
123
122
|
GuestAccountsEnforceMultifactorAuthentication: string;
|
|
@@ -323,8 +322,6 @@ export declare type ServiceSettings = {
|
|
|
323
322
|
EnableCustomEmoji: boolean;
|
|
324
323
|
EnableEmojiPicker: boolean;
|
|
325
324
|
EnableGifPicker: boolean;
|
|
326
|
-
GfycatAPIKey: string;
|
|
327
|
-
GfycatAPISecret: string;
|
|
328
325
|
GiphySdkKey: string;
|
|
329
326
|
PostEditTimeLimit: number;
|
|
330
327
|
TimeBetweenUserTypingUpdatesMilliseconds: number;
|
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
|
|
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
|
-
|
|
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,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 { GifsState } from './gifs';
|
|
25
24
|
export declare type GlobalState = {
|
|
26
25
|
entities: {
|
|
27
26
|
general: GeneralState;
|
|
@@ -52,7 +51,6 @@ export declare type GlobalState = {
|
|
|
52
51
|
pending: Set<string>;
|
|
53
52
|
};
|
|
54
53
|
schemes: SchemesState;
|
|
55
|
-
gifs: GifsState;
|
|
56
54
|
groups: GroupsState;
|
|
57
55
|
channelCategories: ChannelCategoriesState;
|
|
58
56
|
apps: AppsState;
|
package/package.json
CHANGED
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