Feature schedule posts (#8509)

This commit is contained in:
Rajat Dabade
2025-04-14 22:08:59 +05:30
committed by GitHub
parent 5b72465e40
commit f75c50ad2b
159 changed files with 9289 additions and 770 deletions

View File

@@ -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
View 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[];
}