@aepstore-dev/contracts 1.77.0 → 1.78.0
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/gen/support.d.ts +6 -0
- package/gen/support.ts +6 -0
- package/package.json +1 -1
- package/proto/support.proto +4 -0
package/gen/support.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export interface TicketMessage {
|
|
|
72
72
|
*/
|
|
73
73
|
authorName: string;
|
|
74
74
|
deletedAt: string;
|
|
75
|
+
/** true for user messages already read by support staff */
|
|
76
|
+
isReadByStaff: boolean;
|
|
77
|
+
/** first known staff read timestamp for this message, '' if unread */
|
|
78
|
+
staffReadAt: string;
|
|
75
79
|
}
|
|
76
80
|
export interface TicketAttachment {
|
|
77
81
|
fileName: string;
|
|
@@ -148,6 +152,7 @@ export interface MarkTicketReadRequest {
|
|
|
148
152
|
requesterId: string;
|
|
149
153
|
/** optional; empty means latest visible message */
|
|
150
154
|
lastReadMessageId: string;
|
|
155
|
+
isStaff: boolean;
|
|
151
156
|
}
|
|
152
157
|
export interface TicketReadState {
|
|
153
158
|
ticketId: string;
|
|
@@ -155,6 +160,7 @@ export interface TicketReadState {
|
|
|
155
160
|
lastReadMessageId: string;
|
|
156
161
|
lastReadAt: string;
|
|
157
162
|
unreadMessagesCount: number;
|
|
163
|
+
isStaff: boolean;
|
|
158
164
|
}
|
|
159
165
|
export interface ListMyTicketsRequest {
|
|
160
166
|
authorId: string;
|
package/gen/support.ts
CHANGED
|
@@ -86,6 +86,10 @@ export interface TicketMessage {
|
|
|
86
86
|
*/
|
|
87
87
|
authorName: string;
|
|
88
88
|
deletedAt: string;
|
|
89
|
+
/** true for user messages already read by support staff */
|
|
90
|
+
isReadByStaff: boolean;
|
|
91
|
+
/** first known staff read timestamp for this message, '' if unread */
|
|
92
|
+
staffReadAt: string;
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
export interface TicketAttachment {
|
|
@@ -171,6 +175,7 @@ export interface MarkTicketReadRequest {
|
|
|
171
175
|
requesterId: string;
|
|
172
176
|
/** optional; empty means latest visible message */
|
|
173
177
|
lastReadMessageId: string;
|
|
178
|
+
isStaff: boolean;
|
|
174
179
|
}
|
|
175
180
|
|
|
176
181
|
export interface TicketReadState {
|
|
@@ -179,6 +184,7 @@ export interface TicketReadState {
|
|
|
179
184
|
lastReadMessageId: string;
|
|
180
185
|
lastReadAt: string;
|
|
181
186
|
unreadMessagesCount: number;
|
|
187
|
+
isStaff: boolean;
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
export interface ListMyTicketsRequest {
|
package/package.json
CHANGED
package/proto/support.proto
CHANGED
|
@@ -88,6 +88,8 @@ message TicketMessage {
|
|
|
88
88
|
// клиент — username, системное — ''.
|
|
89
89
|
string author_name = 11;
|
|
90
90
|
string deleted_at = 12;
|
|
91
|
+
bool is_read_by_staff = 13; // true for user messages already read by support staff
|
|
92
|
+
string staff_read_at = 14; // first known staff read timestamp for this message, '' if unread
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
message TicketAttachment {
|
|
@@ -157,6 +159,7 @@ message MarkTicketReadRequest {
|
|
|
157
159
|
string ticket_id = 1;
|
|
158
160
|
string requester_id = 2;
|
|
159
161
|
string last_read_message_id = 3; // optional; empty means latest visible message
|
|
162
|
+
bool is_staff = 4;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
message TicketReadState {
|
|
@@ -165,6 +168,7 @@ message TicketReadState {
|
|
|
165
168
|
string last_read_message_id = 3;
|
|
166
169
|
string last_read_at = 4;
|
|
167
170
|
int32 unread_messages_count = 5;
|
|
171
|
+
bool is_staff = 6;
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
message ListMyTicketsRequest {
|