@ttt-productions/ttt-core 0.2.9 → 0.2.10
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.
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
export interface MessageAttachment {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
type: 'image' | 'document' | 'video' | 'audio';
|
|
6
|
-
size: number;
|
|
7
|
-
storagePath: string;
|
|
8
|
-
}
|
|
9
1
|
export interface ChatChannel {
|
|
10
2
|
channelId: string;
|
|
11
3
|
projectId: string;
|
|
@@ -20,22 +12,6 @@ export interface ChatChannel {
|
|
|
20
12
|
messageCount: number;
|
|
21
13
|
isArchived: boolean;
|
|
22
14
|
}
|
|
23
|
-
export interface ChatMessage {
|
|
24
|
-
messageId: string;
|
|
25
|
-
channelId: string;
|
|
26
|
-
projectId: string;
|
|
27
|
-
senderId: string;
|
|
28
|
-
text: string;
|
|
29
|
-
createdAt: number;
|
|
30
|
-
editedAt?: string;
|
|
31
|
-
attachments?: MessageAttachment[];
|
|
32
|
-
replyTo?: {
|
|
33
|
-
messageId: string;
|
|
34
|
-
senderId: string;
|
|
35
|
-
messagePreview: string;
|
|
36
|
-
};
|
|
37
|
-
isSystemMessage?: boolean;
|
|
38
|
-
}
|
|
39
15
|
export interface ProjectInviteConversation {
|
|
40
16
|
inviteId: string;
|
|
41
17
|
projectId: string;
|
|
@@ -66,19 +42,6 @@ export interface ProjectInviteConversation {
|
|
|
66
42
|
lastMessage?: string;
|
|
67
43
|
lastMessageAt?: string;
|
|
68
44
|
}
|
|
69
|
-
export interface ProjectInviteMessage {
|
|
70
|
-
messageId: string;
|
|
71
|
-
inviteId: string;
|
|
72
|
-
senderId: string;
|
|
73
|
-
message: string;
|
|
74
|
-
createdAt: number;
|
|
75
|
-
attachments?: MessageAttachment[];
|
|
76
|
-
replyTo?: {
|
|
77
|
-
messageId: string;
|
|
78
|
-
senderId: string;
|
|
79
|
-
messagePreview: string;
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
45
|
export interface AdminMessage {
|
|
83
46
|
messageId: string;
|
|
84
47
|
userId: string;
|
|
@@ -90,6 +53,11 @@ export interface AdminMessage {
|
|
|
90
53
|
lastUpdatedAt: number;
|
|
91
54
|
readByAdmin: boolean;
|
|
92
55
|
readByUser: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Set when the thread is closed (status starts with 'closed_').
|
|
58
|
+
* Records the uid of the actor who closed it (admin or thread owner).
|
|
59
|
+
* Used for future investigation of closed_unresolved threads.
|
|
60
|
+
*/
|
|
61
|
+
closedBy?: string;
|
|
93
62
|
}
|
|
94
|
-
export type MessageStatus = 'pending' | 'active' | 'accepted' | 'declined' | 'cancelled' | 'error' | 'finalized' | 'closed_resolved' | 'closed_unresolved';
|
|
95
63
|
//# sourceMappingURL=messaging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/types/messaging.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/types/messaging.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAID,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,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ist/types/messaging.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
// Messaging types: Chat channels, Invite conversations, Admin messages
|
|
1
|
+
// Messaging types: Chat channels, Invite conversations, Admin messages.
|
|
2
|
+
//
|
|
3
|
+
// NOTE: Per-message body shapes (channel messages, invite messages,
|
|
4
|
+
// admin conversation messages) live in @ttt-productions/chat-core as
|
|
5
|
+
// ChatMessageV1. ttt-core only owns the parent thread document shapes.
|
|
2
6
|
export {};
|
|
3
7
|
//# sourceMappingURL=messaging.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/types/messaging.ts"],"names":[],"mappings":"AAAA,uEAAuE"}
|
|
1
|
+
{"version":3,"file":"messaging.js","sourceRoot":"","sources":["../../src/types/messaging.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,EAAE;AACF,oEAAoE;AACpE,qEAAqE;AACrE,uEAAuE"}
|