2023-09-25 01:20:03 +02:00
|
|
|
/// <reference path="tag.ts" />
|
2023-09-23 18:49:47 +02:00
|
|
|
/// <reference path="emoji.ts" />
|
2023-09-25 01:20:03 +02:00
|
|
|
/// <reference path="reaction.ts" />
|
2023-09-23 18:49:47 +02:00
|
|
|
|
|
|
|
namespace Entity {
|
2023-09-25 01:20:03 +02:00
|
|
|
export type Announcement = {
|
|
|
|
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;
|
|
|
|
mentions: Array<AnnouncementAccount>;
|
|
|
|
statuses: Array<AnnouncementStatus>;
|
|
|
|
tags: Array<Tag>;
|
|
|
|
emojis: Array<Emoji>;
|
|
|
|
reactions: Array<Reaction>;
|
|
|
|
};
|
2023-09-23 18:49:47 +02:00
|
|
|
|
2023-09-25 01:20:03 +02:00
|
|
|
export type AnnouncementAccount = {
|
|
|
|
id: string;
|
|
|
|
username: string;
|
|
|
|
url: string;
|
|
|
|
acct: string;
|
|
|
|
};
|
2023-09-23 18:49:47 +02:00
|
|
|
|
2023-09-25 01:20:03 +02:00
|
|
|
export type AnnouncementStatus = {
|
|
|
|
id: string;
|
|
|
|
url: string;
|
|
|
|
};
|
2023-09-23 18:49:47 +02:00
|
|
|
}
|