wedance-shared 1.0.86 → 1.0.88

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.
@@ -10,18 +10,6 @@ export declare const LIST_CITIES: readonly [{
10
10
  readonly city: "oulu";
11
11
  readonly country: "fi";
12
12
  readonly coordinates: readonly [65.012, 25.468];
13
- }, {
14
- readonly city: "tallinn";
15
- readonly country: "ee";
16
- readonly coordinates: readonly [59.437, 24.7536];
17
- }, {
18
- readonly city: "stockholm";
19
- readonly country: "se";
20
- readonly coordinates: readonly [59.3327, 18.0656];
21
- }, {
22
- readonly city: "paris";
23
- readonly country: "fr";
24
- readonly coordinates: readonly [48.8575, 2.3514];
25
13
  }];
26
14
  export type City = (typeof LIST_CITIES)[number];
27
15
  export type CityName = City["city"];
@@ -13,23 +13,23 @@ export const LIST_CITIES = [
13
13
  city: "oulu",
14
14
  country: "fi",
15
15
  coordinates: [65.012, 25.468]
16
- },
17
- {
18
- city: "tallinn",
19
- country: "ee",
20
- coordinates: [59.437, 24.7536]
21
- },
22
- {
23
- city: "stockholm",
24
- country: "se",
25
- coordinates: [59.3327, 18.0656]
26
- },
27
- {
28
- city: "paris",
29
- country: "fr",
30
- coordinates: [48.8575, 2.3514]
31
16
  }
32
17
  // {
18
+ // city: "tallinn",
19
+ // country: "ee",
20
+ // coordinates: [59.437, 24.7536]
21
+ // },
22
+ // {
23
+ // city: "stockholm",
24
+ // country: "se",
25
+ // coordinates: [59.3327, 18.0656]
26
+ // },
27
+ // {
28
+ // city: "paris",
29
+ // country: "fr",
30
+ // coordinates: [48.8575, 2.3514]
31
+ // }
32
+ // {
33
33
  // city: "oslo",
34
34
  // country: "no",
35
35
  // coordinates: [59.9139, 10.7522]
@@ -1 +1 @@
1
- {"version":3,"file":"city.js","sourceRoot":"","sources":["../../src/types/city.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,OAAO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ACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;IACD,IAAI;IACJ,qBAAqB;IACrB,mBAAmB;IACnB,mCAAmC;IACnC,KAAK;IACL,IAAI;IACJ,uBAAuB;IACvB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;IACL,IAAI;IACJ,mBAAmB;IACnB,mBAAmB;IACnB,mCAAmC;IACnC,IAAI;IACJ,IAAI;IACJ,kBAAkB;IAClB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;IACL,IAAI;IACJ,wBAAwB;IACxB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;CACG,CAAC;AAMX,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,uCAA2B,CAAA;IAC3B,kCAAsB,CAAA;AACxB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -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 "./chat.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 "./chat.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,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
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",