2023-06-24 13:13:03 +09:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-22 02:33:01 +09:00
|
|
|
[Home](./index.md) > [iceshrimp-js](./iceshrimp-js.md) > [entities](./iceshrimp-js.entities.md) > [Notification](./iceshrimp-js.entities.notification.md)
|
2023-06-24 13:13:03 +09:00
|
|
|
|
|
|
|
## entities.Notification type
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare type Notification = {
|
|
|
|
id: ID;
|
|
|
|
createdAt: DateString;
|
|
|
|
isRead: boolean;
|
|
|
|
} & (
|
|
|
|
| {
|
|
|
|
type: "reaction";
|
|
|
|
reaction: string;
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "reply";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "renote";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "quote";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "mention";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "pollVote";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
note: Note;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "follow";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "followRequestAccepted";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "receiveFollowRequest";
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "groupInvited";
|
|
|
|
invitation: UserGroup;
|
|
|
|
user: User;
|
|
|
|
userId: User["id"];
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: "app";
|
|
|
|
header?: string | null;
|
|
|
|
body: string;
|
|
|
|
icon?: string | null;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
```
|
2023-07-22 02:33:01 +09:00
|
|
|
**References:** [ID](./iceshrimp-js.entities.id.md)<!-- -->, [DateString](./iceshrimp-js.entities.datestring.md)<!-- -->, [User](./iceshrimp-js.entities.user.md)<!-- -->, [Note](./iceshrimp-js.entities.note.md)<!-- -->, [UserGroup](./iceshrimp-js.entities.usergroup.md)
|
2023-06-24 13:13:03 +09:00
|
|
|
|