@aepstore-dev/contracts 1.92.0 → 1.94.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
@@ -13,7 +13,7 @@ export interface Ticket {
13
13
  subject: string;
14
14
  /** GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER */
15
15
  category: string;
16
- /** OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED */
16
+ /** OPEN|IN_PROGRESS|RESOLVED|CLOSED */
17
17
  status: string;
18
18
  /** LOW|NORMAL|HIGH|URGENT */
19
19
  priority: string;
@@ -44,6 +44,8 @@ export interface Ticket {
44
44
  lastReadAt: string;
45
45
  assignee: TicketAssignee | undefined;
46
46
  reportedAt: string;
47
+ /** SUPPORT|USER, empty when no one is expected (e.g. CLOSED) */
48
+ waitingFor: string;
47
49
  }
48
50
  export interface TicketAssignee {
49
51
  id: string;
@@ -164,7 +166,7 @@ export interface TicketReadState {
164
166
  }
165
167
  export interface ListMyTicketsRequest {
166
168
  authorId: string;
167
- /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
169
+ /** single value OR comma-separated (e.g. "OPEN,IN_PROGRESS") */
168
170
  status: string;
169
171
  page: number;
170
172
  limit: number;
@@ -178,6 +180,10 @@ export interface ListMyTicketsRequest {
178
180
  dateFrom: string;
179
181
  /** ISO; inclusive upper bound on createdAt */
180
182
  dateTo: string;
183
+ /** SUPPORT|USER */
184
+ waitingFor: string;
185
+ /** desc|asc by ticket createdAt; default desc */
186
+ sort: string;
181
187
  }
182
188
  export interface ReplyTicketRequest {
183
189
  ticketId: string;
@@ -295,6 +301,10 @@ export interface ListTicketsRequest {
295
301
  authorId: string;
296
302
  /** current staff user for per-staff read state */
297
303
  requesterId: string;
304
+ /** SUPPORT|USER */
305
+ waitingFor: string;
306
+ /** desc|asc by ticket createdAt; default desc */
307
+ sort: string;
298
308
  }
299
309
  export interface AssignTicketRequest {
300
310
  ticketId: string;
@@ -319,8 +329,8 @@ export interface TicketsListResponse {
319
329
  }
320
330
  export declare const SUPPORT_V1_PACKAGE_NAME = "support.v1";
321
331
  /**
322
- * Support ticket system (G1). Enums as strings matching the DB
323
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
332
+ * Support ticket system (G1). Enums as strings matching the DB:
333
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
324
334
  */
325
335
  export interface SupportServiceClient {
326
336
  /** health */
@@ -348,8 +358,8 @@ export interface SupportServiceClient {
348
358
  clearTicketCreationBan(request: ClearTicketCreationBanRequest): Observable<TicketCreationBanState>;
349
359
  }
350
360
  /**
351
- * Support ticket system (G1). Enums as strings matching the DB
352
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
361
+ * Support ticket system (G1). Enums as strings matching the DB:
362
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
353
363
  */
354
364
  export interface SupportServiceController {
355
365
  /** health */
package/gen/support.ts CHANGED
@@ -25,7 +25,7 @@ export interface Ticket {
25
25
  subject: string;
26
26
  /** GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER */
27
27
  category: string;
28
- /** OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED */
28
+ /** OPEN|IN_PROGRESS|RESOLVED|CLOSED */
29
29
  status: string;
30
30
  /** LOW|NORMAL|HIGH|URGENT */
31
31
  priority: string;
@@ -56,6 +56,8 @@ export interface Ticket {
56
56
  lastReadAt: string;
57
57
  assignee: TicketAssignee | undefined;
58
58
  reportedAt: string;
59
+ /** SUPPORT|USER, empty when no one is expected (e.g. CLOSED) */
60
+ waitingFor: string;
59
61
  }
60
62
 
61
63
  export interface TicketAssignee {
@@ -189,7 +191,7 @@ export interface TicketReadState {
189
191
 
190
192
  export interface ListMyTicketsRequest {
191
193
  authorId: string;
192
- /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
194
+ /** single value OR comma-separated (e.g. "OPEN,IN_PROGRESS") */
193
195
  status: string;
194
196
  page: number;
195
197
  limit: number;
@@ -203,6 +205,10 @@ export interface ListMyTicketsRequest {
203
205
  dateFrom: string;
204
206
  /** ISO; inclusive upper bound on createdAt */
205
207
  dateTo: string;
208
+ /** SUPPORT|USER */
209
+ waitingFor: string;
210
+ /** desc|asc by ticket createdAt; default desc */
211
+ sort: string;
206
212
  }
207
213
 
208
214
  export interface ReplyTicketRequest {
@@ -334,6 +340,10 @@ export interface ListTicketsRequest {
334
340
  authorId: string;
335
341
  /** current staff user for per-staff read state */
336
342
  requesterId: string;
343
+ /** SUPPORT|USER */
344
+ waitingFor: string;
345
+ /** desc|asc by ticket createdAt; default desc */
346
+ sort: string;
337
347
  }
338
348
 
339
349
  export interface AssignTicketRequest {
@@ -364,8 +374,8 @@ export interface TicketsListResponse {
364
374
  export const SUPPORT_V1_PACKAGE_NAME = "support.v1";
365
375
 
366
376
  /**
367
- * Support ticket system (G1). Enums as strings matching the DB
368
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
377
+ * Support ticket system (G1). Enums as strings matching the DB:
378
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
369
379
  */
370
380
 
371
381
  export interface SupportServiceClient {
@@ -417,8 +427,8 @@ export interface SupportServiceClient {
417
427
  }
418
428
 
419
429
  /**
420
- * Support ticket system (G1). Enums as strings matching the DB
421
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
430
+ * Support ticket system (G1). Enums as strings matching the DB:
431
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
422
432
  */
423
433
 
424
434
  export interface SupportServiceController {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.92.0",
3
+ "version": "1.94.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -2,8 +2,8 @@ syntax = "proto3";
2
2
 
3
3
  package support.v1;
4
4
 
5
- // Support ticket system (G1). Enums as strings matching the DB
6
- // (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
5
+ // Support ticket system (G1). Enums as strings matching the DB:
6
+ // status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
7
7
  service SupportService {
8
8
  rpc Ping(PingRequest) returns (PingResponse); // health
9
9
 
@@ -39,7 +39,7 @@ message Ticket {
39
39
  string author_id = 2;
40
40
  string subject = 3;
41
41
  string category = 4; // GENERAL|PAYMENT|WITHDRAWAL|PRODUCT|ACCOUNT|ABUSE|OTHER
42
- string status = 5; // OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED
42
+ string status = 5; // OPEN|IN_PROGRESS|RESOLVED|CLOSED
43
43
  string priority = 6; // LOW|NORMAL|HIGH|URGENT
44
44
  string purchase_id = 7;
45
45
  string withdrawal_id = 8;
@@ -62,6 +62,7 @@ message Ticket {
62
62
  string last_read_at = 25;
63
63
  TicketAssignee assignee = 26;
64
64
  string reported_at = 27;
65
+ string waiting_for = 28; // SUPPORT|USER, empty when no one is expected (e.g. CLOSED)
65
66
  }
66
67
 
67
68
  message TicketAssignee {
@@ -173,14 +174,16 @@ message TicketReadState {
173
174
 
174
175
  message ListMyTicketsRequest {
175
176
  string author_id = 1;
176
- string status = 2; // single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS")
177
+ string status = 2; // single value OR comma-separated (e.g. "OPEN,IN_PROGRESS")
177
178
  int32 page = 3;
178
179
  int32 limit = 4;
179
180
  string department = 5; // GENERAL|TECHNICAL|SALES
180
181
  string category = 6; // GENERAL|PAYMENT|...
181
- string search = 7; // contains in subject OR in any message body
182
- string date_from = 8; // ISO; inclusive lower bound on createdAt
183
- string date_to = 9; // ISO; inclusive upper bound on createdAt
182
+ string search = 7; // contains in subject OR in any message body
183
+ string date_from = 8; // ISO; inclusive lower bound on createdAt
184
+ string date_to = 9; // ISO; inclusive upper bound on createdAt
185
+ string waiting_for = 10; // SUPPORT|USER
186
+ string sort = 11; // desc|asc by ticket createdAt; default desc
184
187
  }
185
188
 
186
189
  message ReplyTicketRequest {
@@ -303,6 +306,8 @@ message ListTicketsRequest {
303
306
  string date_to = 9;
304
307
  string author_id = 10; // admin filter by ticket author
305
308
  string requester_id = 11; // current staff user for per-staff read state
309
+ string waiting_for = 12; // SUPPORT|USER
310
+ string sort = 13; // desc|asc by ticket createdAt; default desc
306
311
  }
307
312
 
308
313
  message AssignTicketRequest {