wedance-shared 1.0.123 → 1.0.125

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.
@@ -6,4 +6,5 @@ export * from "./user.js";
6
6
  export * from "./other.js";
7
7
  export * from "./analytics.js";
8
8
  export * from "./infoBanner.js";
9
+ export * from "./wedancePosts.js";
9
10
  export * from "./festivals/index.js";
@@ -7,6 +7,7 @@ export * from "./user.js";
7
7
  export * from "./other.js";
8
8
  export * from "./analytics.js";
9
9
  export * from "./infoBanner.js";
10
+ export * from "./wedancePosts.js";
10
11
  // Re-export from subdirectories
11
12
  export * from "./festivals/index.js";
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAEhC,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAElC,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
@@ -46,7 +46,7 @@ export type Ticket = {
46
46
  code: string;
47
47
  discountAmount: number;
48
48
  discountType: "fixed" | "percentage";
49
- };
49
+ } | null;
50
50
  checkedInAt?: string;
51
51
  notes?: string;
52
52
  transferredAt?: string;
@@ -0,0 +1,26 @@
1
+ export type PostType = "post" | "comment" | "reply";
2
+ export interface WedancePost {
3
+ id: string;
4
+ userId: string;
5
+ eventId?: string;
6
+ parentPostId?: string;
7
+ body?: string;
8
+ createdAt: string;
9
+ editedAt?: string;
10
+ deletedAt?: string;
11
+ lastActivityAt: string;
12
+ postType: PostType;
13
+ activityId?: string;
14
+ tags?: string[];
15
+ mentions?: string[];
16
+ }
17
+ export type WedanceActivityType = "NEW_POST" | "POST_REPLY" | "ACTIVITY_COMMENT";
18
+ export interface WedanceActivity {
19
+ id: string;
20
+ eventId: string;
21
+ postId: string | null;
22
+ organizerId: string | null;
23
+ type: WedanceActivityType;
24
+ metadata: Record<string, unknown> | null;
25
+ createdAt: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wedancePosts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wedancePosts.js","sourceRoot":"","sources":["../../src/types/wedancePosts.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.123",
3
+ "version": "1.0.125",
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",