-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
56 lines (51 loc) · 1.08 KB
/
types.ts
File metadata and controls
56 lines (51 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export interface Post {
id: number;
content: string;
image_url?: string;
video_url?: string;
platforms: string[];
status: 'draft' | 'posted' | 'failed' | 'scheduled';
word_count: number;
posted_time?: string;
scheduled_time?: string;
error_message?: string;
created_at: string;
}
export interface PostAnalytics {
id: number;
postId: number;
platform: string;
likes: number;
comments: number;
shares: number;
reach: number;
}
export interface PlatformConfig {
id: number;
platform: string;
client_id: string;
client_secret: string;
updated_at: string;
}
export interface PlatformToken {
id: number;
platform: string;
account_name: string;
connected: boolean;
page_name?: string;
username?: string; // Added for display
avatar_url?: string; // Added for preview
}
export interface DashboardStats {
totalPosts: number;
postsThisWeek: number;
failedPosts: number;
connectedPlatforms: number;
}
export enum Platform {
FACEBOOK = 'facebook',
INSTAGRAM = 'instagram',
TWITTER = 'twitter',
LINKEDIN = 'linkedin',
YOUTUBE = 'youtube'
}