forked from Ivasoft/mattermost-mobile
Feature schedule posts (#8509)
This commit is contained in:
1
types/api/config.d.ts
vendored
1
types/api/config.d.ts
vendored
@@ -184,6 +184,7 @@ interface ClientConfig {
|
||||
SamlLoginButtonTextColor: string;
|
||||
SamlNicknameAttributeSet: string;
|
||||
SamlPositionAttributeSet: string;
|
||||
ScheduledPosts: string;
|
||||
SchemaVersion: string;
|
||||
SendEmailNotifications: string;
|
||||
SendPushNotifications: string;
|
||||
|
||||
21
types/api/scheduled_post.d.ts
vendored
Normal file
21
types/api/scheduled_post.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
type SchedulingInfo = {
|
||||
scheduled_at: number;
|
||||
processed_at?: number;
|
||||
error_code?: string;
|
||||
}
|
||||
|
||||
type ScheduledPost = Draft & SchedulingInfo & {
|
||||
id: string;
|
||||
create_at: number;
|
||||
priority?: PostPriority;
|
||||
file_ids?: string[];
|
||||
user_id: string;
|
||||
}
|
||||
|
||||
type FetchScheduledPostsResponse = {
|
||||
[teamdId: string]: ScheduledPost[];
|
||||
directChannels: ScheduledPost[];
|
||||
}
|
||||
Reference in New Issue
Block a user