wedance-shared 1.0.97 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { EventData } from "../event.js";
|
|
2
2
|
import { FestivalUser } from "./user.js";
|
|
3
|
-
export type NotificationType = "NEW_FOLLOWER" | "USER_GOING_TO_EVENT" | "NEW_POST";
|
|
3
|
+
export type NotificationType = "NEW_FOLLOWER" | "USER_GOING_TO_EVENT" | "NEW_POST" | "LOTTERY";
|
|
4
4
|
type BaseNotification = {
|
|
5
5
|
id: string;
|
|
6
6
|
type: NotificationType;
|
|
7
7
|
recipientId: string;
|
|
8
|
-
actorId: string;
|
|
9
8
|
createdAt: string;
|
|
10
9
|
readAt?: string | null;
|
|
11
10
|
};
|
|
12
11
|
export type NewFollowerNotification = BaseNotification & {
|
|
13
12
|
type: "NEW_FOLLOWER";
|
|
13
|
+
actorId: string;
|
|
14
14
|
actor: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
15
15
|
};
|
|
16
16
|
export type UserGoingToEventNotification = BaseNotification & {
|
|
17
17
|
type: "USER_GOING_TO_EVENT";
|
|
18
18
|
eventId: string;
|
|
19
|
+
actorId: string;
|
|
19
20
|
actor: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
20
21
|
event: Pick<EventData, "id" | "title" | "imageData" | "from">;
|
|
21
22
|
};
|
|
22
|
-
export type
|
|
23
|
+
export type LotteryNotification = BaseNotification & {
|
|
24
|
+
type: "LOTTERY";
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
export type Notification = NewFollowerNotification | UserGoingToEventNotification | LotteryNotification;
|
|
23
28
|
export {};
|
package/package.json
CHANGED