wedance-shared 1.0.84 → 1.0.86
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.
- package/dist/types/festivals/index.d.ts +1 -0
- package/dist/types/festivals/index.js +1 -0
- package/dist/types/festivals/index.js.map +1 -1
- package/dist/types/festivals/notifications.d.ts +23 -0
- package/dist/types/festivals/notifications.js +2 -0
- package/dist/types/festivals/notifications.js.map +1 -0
- package/dist/types/festivals/user.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/festivals/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/festivals/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EventData } from "../event.js";
|
|
2
|
+
import { FestivalUser } from "./user.js";
|
|
3
|
+
export type NotificationType = "NEW_FOLLOWER" | "USER_GOING_TO_EVENT";
|
|
4
|
+
type BaseNotification = {
|
|
5
|
+
id: string;
|
|
6
|
+
type: NotificationType;
|
|
7
|
+
recipientId: string;
|
|
8
|
+
actorId: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
readAt?: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type NewFollowerNotification = BaseNotification & {
|
|
13
|
+
type: "NEW_FOLLOWER";
|
|
14
|
+
actor: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
15
|
+
};
|
|
16
|
+
export type UserGoingToEventNotification = BaseNotification & {
|
|
17
|
+
type: "USER_GOING_TO_EVENT";
|
|
18
|
+
eventId: string;
|
|
19
|
+
actor: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
20
|
+
event: Pick<EventData, "id" | "title" | "imageData" | "from">;
|
|
21
|
+
};
|
|
22
|
+
export type Notification = NewFollowerNotification | UserGoingToEventNotification;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/types/festivals/notifications.ts"],"names":[],"mappings":""}
|
|
@@ -71,3 +71,4 @@ export type FriendData = UserToUserRelation & {
|
|
|
71
71
|
follower: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
72
72
|
following: Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle">;
|
|
73
73
|
};
|
|
74
|
+
export type UserSuggestion = Pick<FestivalUser, "id" | "displayName" | "profilePicture" | "handle"> & Pick<FestivalUser["location"], "countryCode">;
|
package/package.json
CHANGED