forked from Ivasoft/mattermost-mobile
Merge branch 'main' of https://github.com/mattermost/mattermost-mobile into MM-42835
This commit is contained in:
5
types/api/posts.d.ts
vendored
5
types/api/posts.d.ts
vendored
@@ -20,6 +20,10 @@ type PostType =
|
||||
|
||||
type PostEmbedType = 'image' | 'message_attachment' | 'opengraph';
|
||||
|
||||
type PostPriorityData = {
|
||||
priority: ''|'urgent'|'important';
|
||||
};
|
||||
|
||||
type PostEmbed = {
|
||||
type: PostEmbedType;
|
||||
url: string;
|
||||
@@ -39,6 +43,7 @@ type PostMetadata = {
|
||||
files?: FileInfo[];
|
||||
images?: Dictionary<PostImage>;
|
||||
reactions?: Reaction[];
|
||||
priority?: PostPriorityData;
|
||||
};
|
||||
|
||||
type Post = {
|
||||
|
||||
@@ -58,7 +58,7 @@ declare class CategoryModel extends Model {
|
||||
@lazy myChannels: Query<MyChannelModel>;
|
||||
|
||||
/** hasChannels : Whether the category has any channels */
|
||||
@lazy hasChannels: Observable<boolean>;
|
||||
observeHasChannels(canViewArchived: boolean, channelId: string): Observable<boolean>;
|
||||
|
||||
/** toCategoryWithChannels returns a map of the Category with an array of ordered channel ids */
|
||||
toCategoryWithChannels(): Promise<CategoryWithChannels>;
|
||||
|
||||
4
types/global/websocket.d.ts
vendored
Normal file
4
types/global/websocket.d.ts
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
type WebsocketConnectedState = 'not_connected' | 'connected' | 'connecting';
|
||||
@@ -32,6 +32,7 @@ export type DeepLinkType = typeof DeepLink[keyof typeof DeepLink];
|
||||
|
||||
export interface DeepLinkWithData {
|
||||
type: DeepLinkType;
|
||||
url: string;
|
||||
data?: DeepLinkChannel | DeepLinkDM | DeepLinkGM | DeepLinkPermalink | DeepLinkPlugin;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user