@aepstore-dev/contracts 1.77.0 → 1.79.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 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;
@@ -287,6 +293,8 @@ export interface ListTicketsRequest {
287
293
  dateTo: string;
288
294
  /** admin filter by ticket author */
289
295
  authorId: string;
296
+ /** current staff user for per-staff read state */
297
+ requesterId: string;
290
298
  }
291
299
  export interface AssignTicketRequest {
292
300
  ticketId: 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 {
@@ -326,6 +332,8 @@ export interface ListTicketsRequest {
326
332
  dateTo: string;
327
333
  /** admin filter by ticket author */
328
334
  authorId: string;
335
+ /** current staff user for per-staff read state */
336
+ requesterId: string;
329
337
  }
330
338
 
331
339
  export interface AssignTicketRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.77.0",
3
+ "version": "1.79.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -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 {
@@ -298,6 +302,7 @@ message ListTicketsRequest {
298
302
  string date_from = 8; // ISO; inclusive lower bound on createdAt
299
303
  string date_to = 9;
300
304
  string author_id = 10; // admin filter by ticket author
305
+ string requester_id = 11; // current staff user for per-staff read state
301
306
  }
302
307
 
303
308
  message AssignTicketRequest {