server/types/entities-2/announcement.ts

40 lines
852 B
TypeScript
Raw Normal View History

import type { APIEmoji } from "./emoji";
import type { APIStatusTag } from "./status";
2023-09-11 05:31:08 +02:00
2023-09-12 22:48:10 +02:00
export interface APIAnnouncement {
2024-04-07 07:30:49 +02:00
id: string;
content: string;
starts_at: string | null;
ends_at: string | null;
published: boolean;
all_day: boolean;
published_at: string;
updated_at: string;
read: boolean | null;
mentions: AnnouncementAccount[];
statuses: AnnouncementStatus[];
tags: APIStatusTag[];
emojis: APIEmoji[];
reactions: AnnouncementReaction[];
2023-09-11 05:46:20 +02:00
}
2023-09-11 05:31:08 +02:00
2023-09-11 05:46:20 +02:00
export interface AnnouncementAccount {
2024-04-07 07:30:49 +02:00
id: string;
username: string;
url: string;
acct: string;
2023-09-11 05:46:20 +02:00
}
2023-09-11 05:31:08 +02:00
2023-09-11 05:46:20 +02:00
export interface AnnouncementStatus {
2024-04-07 07:30:49 +02:00
id: string;
url: string;
2023-09-11 05:46:20 +02:00
}
2023-09-11 05:31:08 +02:00
2023-09-11 05:46:20 +02:00
export interface AnnouncementReaction {
2024-04-07 07:30:49 +02:00
name: string;
count: number;
me: boolean | null;
url: string | null;
static_url: string | null;
2023-09-11 05:46:20 +02:00
}