heartraite 1.0.87 → 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.
|
@@ -2,7 +2,7 @@ import { AdvancedMatch } from "./am.types";
|
|
|
2
2
|
import { MatchCompatibility } from "./matchmaking.types";
|
|
3
3
|
export type Match = {
|
|
4
4
|
id: string;
|
|
5
|
-
users:
|
|
5
|
+
users: string[];
|
|
6
6
|
created: string;
|
|
7
7
|
initiatedBy: string;
|
|
8
8
|
conversationId: string;
|
|
@@ -16,5 +16,5 @@ export type UserMatch = {
|
|
|
16
16
|
created: string;
|
|
17
17
|
conversationId: string;
|
|
18
18
|
initiatedBy: string;
|
|
19
|
-
users:
|
|
19
|
+
users: string[];
|
|
20
20
|
};
|
|
@@ -14,16 +14,14 @@ export type Conversation = {
|
|
|
14
14
|
lastMessageSeen: string;
|
|
15
15
|
latestMessageTimestamp?: string;
|
|
16
16
|
messages: Record<string, Message>;
|
|
17
|
-
members:
|
|
17
|
+
members: string[];
|
|
18
18
|
};
|
|
19
19
|
export type DBConversation = {
|
|
20
20
|
id: string;
|
|
21
21
|
created: string;
|
|
22
22
|
latestMessage: string;
|
|
23
23
|
latestMessageTimestamp?: string;
|
|
24
|
-
members:
|
|
25
|
-
[id: string]: boolean;
|
|
26
|
-
};
|
|
24
|
+
members: string[];
|
|
27
25
|
};
|
|
28
26
|
export type UserConversation = Omit<DBConversation, "latestMessage" | "latestMessageTimestamp"> & {
|
|
29
27
|
lastMessageSeen: string;
|
package/package.json
CHANGED
package/src/types/match.types.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { MatchCompatibility } from "./matchmaking.types";
|
|
|
3
3
|
|
|
4
4
|
export type Match = {
|
|
5
5
|
id: string;
|
|
6
|
-
users:
|
|
6
|
+
users: string[];
|
|
7
7
|
created: string;
|
|
8
8
|
initiatedBy: string;
|
|
9
9
|
conversationId: string;
|
|
@@ -18,5 +18,5 @@ export type UserMatch = {
|
|
|
18
18
|
created: string;
|
|
19
19
|
conversationId: string;
|
|
20
20
|
initiatedBy: string;
|
|
21
|
-
users:
|
|
21
|
+
users: string[];
|
|
22
22
|
};
|
|
@@ -15,7 +15,7 @@ export type Conversation = {
|
|
|
15
15
|
lastMessageSeen: string;
|
|
16
16
|
latestMessageTimestamp?: string;
|
|
17
17
|
messages: Record<string, Message>;
|
|
18
|
-
members:
|
|
18
|
+
members: string[];
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
export type DBConversation = {
|
|
@@ -23,7 +23,7 @@ export type DBConversation = {
|
|
|
23
23
|
created: string;
|
|
24
24
|
latestMessage: string;
|
|
25
25
|
latestMessageTimestamp?: string;
|
|
26
|
-
members:
|
|
26
|
+
members: string[];
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type UserConversation = Omit<
|