@qrush/types 2.1.68 → 2.1.69
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.
- package/dist/Connection.d.ts +9 -0
- package/dist/Conversation.d.ts +2 -0
- package/package.json +1 -1
package/dist/Connection.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Timestamp } from '@firebase/firestore';
|
|
2
2
|
export type ConnectionStatus = 'pending' | 'accepted' | 'none';
|
|
3
3
|
export type ConnectionOrigin = 'connection_request' | 'qr_scan' | 'block';
|
|
4
|
+
export interface IConnectionEventContext {
|
|
5
|
+
eventUID: string;
|
|
6
|
+
eventName: string;
|
|
7
|
+
locationTitle: string;
|
|
8
|
+
entityType: 'event' | 'weekly';
|
|
9
|
+
eventImageURL?: string;
|
|
10
|
+
eventStart?: Timestamp;
|
|
11
|
+
}
|
|
4
12
|
export interface IConnection {
|
|
5
13
|
userIds: string[];
|
|
6
14
|
status: ConnectionStatus;
|
|
@@ -19,6 +27,7 @@ export interface IConnection {
|
|
|
19
27
|
message?: string;
|
|
20
28
|
createdAt: Timestamp;
|
|
21
29
|
acceptedAt?: Timestamp;
|
|
30
|
+
eventContext?: IConnectionEventContext;
|
|
22
31
|
};
|
|
23
32
|
createdAt: Timestamp;
|
|
24
33
|
updatedAt: Timestamp;
|
package/dist/Conversation.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Timestamp } from '@firebase/firestore';
|
|
2
|
+
import type { IConnectionEventContext } from './Connection.js';
|
|
2
3
|
export interface IConversation {
|
|
3
4
|
type: 'direct' | 'group';
|
|
4
5
|
participantIds: string[];
|
|
@@ -59,4 +60,5 @@ export interface IMessage {
|
|
|
59
60
|
content: string;
|
|
60
61
|
senderId: string;
|
|
61
62
|
};
|
|
63
|
+
eventContext?: IConnectionEventContext;
|
|
62
64
|
}
|