wedance-shared 1.0.87 → 1.0.89

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.
@@ -0,0 +1,49 @@
1
+ export interface Conversation {
2
+ id: string;
3
+ type: "event" | "direct";
4
+ eventId: string;
5
+ createdAt: string;
6
+ }
7
+ export interface ConversationMember {
8
+ id: string;
9
+ conversationId: string;
10
+ userId: string;
11
+ role: "user" | "admin";
12
+ joinedAt: string;
13
+ lastReadMessageId: string | null;
14
+ mutedUntil: string | null;
15
+ }
16
+ export interface Message {
17
+ id: string;
18
+ conversationId: string;
19
+ userId: string;
20
+ parentMessageId: string | null;
21
+ body: string;
22
+ createdAt: string;
23
+ editedAt: string | null;
24
+ deletedAt: string | null;
25
+ }
26
+ export interface MessageWithUser extends Message {
27
+ user: {
28
+ id: string;
29
+ name: string;
30
+ avatarUrl?: string;
31
+ };
32
+ replyCount?: number;
33
+ }
34
+ export interface ConversationWithDetails extends Conversation {
35
+ event: {
36
+ id: string;
37
+ name: string;
38
+ };
39
+ memberCount: number;
40
+ lastMessage?: MessageWithUser;
41
+ unreadCount?: number;
42
+ }
43
+ export interface ConversationMemberWithUser extends ConversationMember {
44
+ user: {
45
+ id: string;
46
+ name: string;
47
+ avatarUrl?: string;
48
+ };
49
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/types/festivals/chat.ts"],"names":[],"mappings":""}
@@ -3,3 +3,4 @@ export * from "./user.js";
3
3
  export * from "./genre.js";
4
4
  export * from "./general.js";
5
5
  export * from "./notifications.js";
6
+ export * from "./posts.js";
@@ -3,4 +3,5 @@ export * from "./user.js";
3
3
  export * from "./genre.js";
4
4
  export * from "./general.js";
5
5
  export * from "./notifications.js";
6
+ export * from "./posts.js";
6
7
  //# sourceMappingURL=index.js.map
@@ -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;AAC7B,cAAc,oBAAoB,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;AACnC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,30 @@
1
+ export interface Post {
2
+ id: string;
3
+ userId: string;
4
+ eventId: string | null;
5
+ parentPostId: string | null;
6
+ body: string;
7
+ createdAt: string;
8
+ editedAt: string | null;
9
+ deletedAt: string | null;
10
+ }
11
+ export interface InsertPost {
12
+ userId: string;
13
+ eventId?: string | null;
14
+ parentPostId?: string | null;
15
+ body: string;
16
+ }
17
+ export interface UpdatePost {
18
+ body?: string;
19
+ editedAt?: string;
20
+ deletedAt?: string | null;
21
+ }
22
+ export interface PostWithUser extends Post {
23
+ user: {
24
+ id: string;
25
+ name: string;
26
+ avatarUrl?: string;
27
+ };
28
+ replyCount?: number;
29
+ likeCount?: number;
30
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=posts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.js","sourceRoot":"","sources":["../../../src/types/festivals/posts.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
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",