@aepstore-dev/contracts 1.91.0 → 1.93.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,8 @@ 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;
181
185
  }
182
186
  export interface ReplyTicketRequest {
183
187
  ticketId: string;
@@ -295,6 +299,8 @@ export interface ListTicketsRequest {
295
299
  authorId: string;
296
300
  /** current staff user for per-staff read state */
297
301
  requesterId: string;
302
+ /** SUPPORT|USER */
303
+ waitingFor: string;
298
304
  }
299
305
  export interface AssignTicketRequest {
300
306
  ticketId: string;
@@ -319,8 +325,8 @@ export interface TicketsListResponse {
319
325
  }
320
326
  export declare const SUPPORT_V1_PACKAGE_NAME = "support.v1";
321
327
  /**
322
- * Support ticket system (G1). Enums as strings matching the DB
323
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
328
+ * Support ticket system (G1). Enums as strings matching the DB:
329
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
324
330
  */
325
331
  export interface SupportServiceClient {
326
332
  /** health */
@@ -348,8 +354,8 @@ export interface SupportServiceClient {
348
354
  clearTicketCreationBan(request: ClearTicketCreationBanRequest): Observable<TicketCreationBanState>;
349
355
  }
350
356
  /**
351
- * Support ticket system (G1). Enums as strings matching the DB
352
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
357
+ * Support ticket system (G1). Enums as strings matching the DB:
358
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
353
359
  */
354
360
  export interface SupportServiceController {
355
361
  /** 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,8 @@ 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;
206
210
  }
207
211
 
208
212
  export interface ReplyTicketRequest {
@@ -334,6 +338,8 @@ export interface ListTicketsRequest {
334
338
  authorId: string;
335
339
  /** current staff user for per-staff read state */
336
340
  requesterId: string;
341
+ /** SUPPORT|USER */
342
+ waitingFor: string;
337
343
  }
338
344
 
339
345
  export interface AssignTicketRequest {
@@ -364,8 +370,8 @@ export interface TicketsListResponse {
364
370
  export const SUPPORT_V1_PACKAGE_NAME = "support.v1";
365
371
 
366
372
  /**
367
- * Support ticket system (G1). Enums as strings matching the DB
368
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
373
+ * Support ticket system (G1). Enums as strings matching the DB:
374
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
369
375
  */
370
376
 
371
377
  export interface SupportServiceClient {
@@ -417,8 +423,8 @@ export interface SupportServiceClient {
417
423
  }
418
424
 
419
425
  /**
420
- * Support ticket system (G1). Enums as strings matching the DB
421
- * (status OPEN|PENDING|IN_PROGRESS|RESOLVED|CLOSED; category/priority).
426
+ * Support ticket system (G1). Enums as strings matching the DB:
427
+ * status OPEN|IN_PROGRESS|RESOLVED|CLOSED; waitingFor SUPPORT|USER.
422
428
  */
423
429
 
424
430
  export interface SupportServiceController {
package/gen/users.d.ts CHANGED
@@ -156,7 +156,6 @@ export interface PublicProfileResponse {
156
156
  country: Country | undefined;
157
157
  avatarUrl: string;
158
158
  bannerUrl: string;
159
- role: string;
160
159
  createdAt: string;
161
160
  hideSubscriptions: boolean;
162
161
  /** Either populated lists or empty depending on hide_subscriptions */
@@ -165,17 +164,10 @@ export interface PublicProfileResponse {
165
164
  isOwner: boolean;
166
165
  /** viewer is subscribed to this profile (false when anonymous / self) */
167
166
  isSubscribed: boolean;
168
- /**
169
- * Premium fields — populated only when the profile owner has an active
170
- * PremiumSubscription. Non-premium viewers and non-premium profiles see
171
- * empty strings / false.
172
- */
173
- isPremium: boolean;
174
167
  profileColor: string;
175
168
  /** active border image URL, empty when absent */
176
169
  avatarBorder: string;
177
- /** ISO 8601, empty when not premium */
178
- premiumExpiresAt: string;
170
+ roles: string[];
179
171
  }
180
172
  export interface UpdateProfileRequest {
181
173
  userId: string;
package/gen/users.ts CHANGED
@@ -184,7 +184,6 @@ export interface PublicProfileResponse {
184
184
  country: Country | undefined;
185
185
  avatarUrl: string;
186
186
  bannerUrl: string;
187
- role: string;
188
187
  createdAt: string;
189
188
  hideSubscriptions: boolean;
190
189
  /** Either populated lists or empty depending on hide_subscriptions */
@@ -193,17 +192,10 @@ export interface PublicProfileResponse {
193
192
  isOwner: boolean;
194
193
  /** viewer is subscribed to this profile (false when anonymous / self) */
195
194
  isSubscribed: boolean;
196
- /**
197
- * Premium fields — populated only when the profile owner has an active
198
- * PremiumSubscription. Non-premium viewers and non-premium profiles see
199
- * empty strings / false.
200
- */
201
- isPremium: boolean;
202
195
  profileColor: string;
203
196
  /** active border image URL, empty when absent */
204
197
  avatarBorder: string;
205
- /** ISO 8601, empty when not premium */
206
- premiumExpiresAt: string;
198
+ roles: string[];
207
199
  }
208
200
 
209
201
  export interface UpdateProfileRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.91.0",
3
+ "version": "1.93.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,15 @@ 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
184
186
  }
185
187
 
186
188
  message ReplyTicketRequest {
@@ -303,6 +305,7 @@ message ListTicketsRequest {
303
305
  string date_to = 9;
304
306
  string author_id = 10; // admin filter by ticket author
305
307
  string requester_id = 11; // current staff user for per-staff read state
308
+ string waiting_for = 12; // SUPPORT|USER
306
309
  }
307
310
 
308
311
  message AssignTicketRequest {
package/proto/users.proto CHANGED
@@ -196,37 +196,38 @@ message GetPublicProfileRequest {
196
196
  string viewer_user_id = 2; // optional — present when caller is authenticated
197
197
  }
198
198
 
199
- message PublicProfileResponse {
200
- string id = 1;
201
- string username = 2;
202
- string full_name = 3;
199
+ message PublicProfileResponse {
200
+ string id = 1;
201
+ string username = 2;
202
+ string full_name = 3;
203
203
  string rating = 4; // Decimal as string
204
204
  string about_me = 5;
205
205
  repeated SocialMedia social_media = 6;
206
206
  ProfileStats stats = 7;
207
207
  repeated Video videos = 8;
208
- repeated Product products = 9;
209
- Country country = 10;
210
- string avatar_url = 11;
211
- string banner_url = 12;
212
- string role = 13;
213
- string created_at = 14;
214
- bool hide_subscriptions = 15;
215
- // Either populated lists or empty depending on hide_subscriptions
216
- repeated ProfileUser subscriptions = 16;
217
- repeated ProfileUser subscribers = 17;
218
- bool is_owner = 18;
219
- bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
220
- // Premium fields populated only when the profile owner has an active
221
- // PremiumSubscription. Non-premium viewers and non-premium profiles see
222
- // empty strings / false.
223
- bool is_premium = 20;
224
- string profile_color = 21;
208
+ repeated Product products = 9;
209
+ Country country = 10;
210
+ string avatar_url = 11;
211
+ string banner_url = 12;
212
+ reserved 13;
213
+ reserved "role";
214
+ string created_at = 14;
215
+ bool hide_subscriptions = 15;
216
+ // Either populated lists or empty depending on hide_subscriptions
217
+ repeated ProfileUser subscriptions = 16;
218
+ repeated ProfileUser subscribers = 17;
219
+ bool is_owner = 18;
220
+ bool is_subscribed = 19; // viewer is subscribed to this profile (false when anonymous / self)
221
+ reserved 20;
222
+ reserved "is_premium";
223
+ string profile_color = 21;
225
224
  string avatar_border = 22; // active border image URL, empty when absent
226
225
  reserved 23, 24;
227
226
  reserved "animated_avatar_url", "animated_banner_url";
228
- string premium_expires_at = 25; // ISO 8601, empty when not premium
229
- }
227
+ reserved 25;
228
+ reserved "premium_expires_at";
229
+ repeated string roles = 26;
230
+ }
230
231
 
231
232
  // =================================================================
232
233
  // UpdateProfile