@rentbase/common 1.0.12 → 1.0.13
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.
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ChatSessionCreatedEvent {
|
|
6
6
|
session_id: string;
|
|
7
|
-
session_type: "trip" | "support" | "system";
|
|
7
|
+
session_type: "property" | "trip" | "support" | "system";
|
|
8
|
+
property_id?: string;
|
|
8
9
|
trip_id?: string;
|
|
9
10
|
seat_booking_id?: string;
|
|
11
|
+
tenant_auth_user_id?: string;
|
|
12
|
+
landlord_auth_user_id?: string;
|
|
10
13
|
rider_auth_user_id?: string;
|
|
11
14
|
driver_auth_user_id?: string;
|
|
12
15
|
participant_count: number;
|
|
@@ -14,6 +17,7 @@ export interface ChatSessionCreatedEvent {
|
|
|
14
17
|
}
|
|
15
18
|
export interface ChatSessionClosedEvent {
|
|
16
19
|
session_id: string;
|
|
20
|
+
property_id?: string;
|
|
17
21
|
trip_id?: string;
|
|
18
22
|
closed_by_auth_user_id?: string;
|
|
19
23
|
reason?: string;
|
|
@@ -23,17 +27,19 @@ export interface ChatSessionClosedEvent {
|
|
|
23
27
|
}
|
|
24
28
|
export interface ChatParticipantMutedEvent {
|
|
25
29
|
session_id: string;
|
|
30
|
+
property_id?: string;
|
|
26
31
|
auth_user_id: string;
|
|
27
|
-
role: "rider" | "driver" | "support_agent";
|
|
32
|
+
role: "tenant" | "landlord" | "rider" | "driver" | "support_agent";
|
|
28
33
|
muted: boolean;
|
|
29
34
|
muted_at: string;
|
|
30
35
|
}
|
|
31
36
|
export interface MessageSentEvent {
|
|
32
37
|
message_id: string;
|
|
33
38
|
session_id: string;
|
|
39
|
+
property_id?: string;
|
|
34
40
|
trip_id?: string;
|
|
35
41
|
sender_auth_user_id: string;
|
|
36
|
-
sender_role: "rider" | "driver" | "support_agent";
|
|
42
|
+
sender_role: "tenant" | "landlord" | "rider" | "driver" | "support_agent";
|
|
37
43
|
message_type: "text" | "image" | "audio" | "system";
|
|
38
44
|
has_attachments: boolean;
|
|
39
45
|
attachment_count: number;
|
|
@@ -44,11 +50,13 @@ export interface MessageSentEvent {
|
|
|
44
50
|
export interface MessageDeliveredEvent {
|
|
45
51
|
message_id: string;
|
|
46
52
|
session_id: string;
|
|
53
|
+
property_id?: string;
|
|
47
54
|
recipient_auth_user_id: string;
|
|
48
55
|
delivered_at: string;
|
|
49
56
|
}
|
|
50
57
|
export interface MessageReadEvent {
|
|
51
58
|
session_id: string;
|
|
59
|
+
property_id?: string;
|
|
52
60
|
reader_auth_user_id: string;
|
|
53
61
|
last_read_message_id: string;
|
|
54
62
|
unread_count_before: number;
|
|
@@ -57,6 +65,7 @@ export interface MessageReadEvent {
|
|
|
57
65
|
export interface SystemMessageAddedEvent {
|
|
58
66
|
message_id: string;
|
|
59
67
|
session_id: string;
|
|
68
|
+
property_id?: string;
|
|
60
69
|
trip_id?: string;
|
|
61
70
|
system_event_key: string;
|
|
62
71
|
message_text: string;
|
|
@@ -64,12 +73,13 @@ export interface SystemMessageAddedEvent {
|
|
|
64
73
|
}
|
|
65
74
|
export interface CallInitiatedEvent {
|
|
66
75
|
call_session_id: string;
|
|
76
|
+
property_id?: string;
|
|
67
77
|
trip_id?: string;
|
|
68
78
|
chat_session_id?: string;
|
|
69
79
|
caller_auth_user_id: string;
|
|
70
|
-
caller_role: "rider" | "driver" | "support_agent";
|
|
80
|
+
caller_role: "tenant" | "landlord" | "rider" | "driver" | "support_agent";
|
|
71
81
|
callee_auth_user_id: string;
|
|
72
|
-
callee_role: "rider" | "driver" | "support_agent";
|
|
82
|
+
callee_role: "tenant" | "landlord" | "rider" | "driver" | "support_agent";
|
|
73
83
|
call_type: "audio" | "video";
|
|
74
84
|
provider_name: string;
|
|
75
85
|
provider_room_id: string;
|