wedance-shared 1.0.96 → 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.
@@ -3,10 +3,12 @@ export interface RemoteConfigDB {
3
3
  minimum_app_version: string;
4
4
  recommended_app_version: string;
5
5
  updated_at: string;
6
+ extra_config: Record<string, unknown>;
6
7
  }
7
8
  export interface RemoteConfig {
8
9
  id: number;
9
10
  minimumAppVersion: string;
10
11
  recommendedAppVersion: string;
11
12
  updatedAt: string;
13
+ extraConfig: Record<string, unknown>;
12
14
  }
@@ -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 Notification = NewFollowerNotification | UserGoingToEventNotification;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",