@aepstore-dev/contracts 1.93.0 → 1.95.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 +4 -0
- package/gen/support.ts +4 -0
- package/gen/users.d.ts +14 -0
- package/gen/users.ts +18 -1
- package/package.json +1 -1
- package/proto/support.proto +2 -0
- package/proto/users.proto +9 -0
package/gen/support.d.ts
CHANGED
|
@@ -182,6 +182,8 @@ export interface ListMyTicketsRequest {
|
|
|
182
182
|
dateTo: string;
|
|
183
183
|
/** SUPPORT|USER */
|
|
184
184
|
waitingFor: string;
|
|
185
|
+
/** desc|asc by ticket createdAt; default desc */
|
|
186
|
+
sort: string;
|
|
185
187
|
}
|
|
186
188
|
export interface ReplyTicketRequest {
|
|
187
189
|
ticketId: string;
|
|
@@ -301,6 +303,8 @@ export interface ListTicketsRequest {
|
|
|
301
303
|
requesterId: string;
|
|
302
304
|
/** SUPPORT|USER */
|
|
303
305
|
waitingFor: string;
|
|
306
|
+
/** desc|asc by ticket createdAt; default desc */
|
|
307
|
+
sort: string;
|
|
304
308
|
}
|
|
305
309
|
export interface AssignTicketRequest {
|
|
306
310
|
ticketId: string;
|
package/gen/support.ts
CHANGED
|
@@ -207,6 +207,8 @@ export interface ListMyTicketsRequest {
|
|
|
207
207
|
dateTo: string;
|
|
208
208
|
/** SUPPORT|USER */
|
|
209
209
|
waitingFor: string;
|
|
210
|
+
/** desc|asc by ticket createdAt; default desc */
|
|
211
|
+
sort: string;
|
|
210
212
|
}
|
|
211
213
|
|
|
212
214
|
export interface ReplyTicketRequest {
|
|
@@ -340,6 +342,8 @@ export interface ListTicketsRequest {
|
|
|
340
342
|
requesterId: string;
|
|
341
343
|
/** SUPPORT|USER */
|
|
342
344
|
waitingFor: string;
|
|
345
|
+
/** desc|asc by ticket createdAt; default desc */
|
|
346
|
+
sort: string;
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
export interface AssignTicketRequest {
|
package/gen/users.d.ts
CHANGED
|
@@ -424,6 +424,20 @@ export interface PremiumStateResponse {
|
|
|
424
424
|
plan: PremiumPlanInfo | undefined;
|
|
425
425
|
/** null when no premium payment method preference */
|
|
426
426
|
savedPaymentMethod: PremiumSavedPaymentMethod | undefined;
|
|
427
|
+
/** auto-renew capabilities for the current subscription */
|
|
428
|
+
renewal: PremiumRenewalOptions | undefined;
|
|
429
|
+
}
|
|
430
|
+
export interface PremiumRenewalOptions {
|
|
431
|
+
/** true when /premium/auto-renew can be enabled without changing method first */
|
|
432
|
+
canEnable: boolean;
|
|
433
|
+
/** BALANCE|SAVED_CARD|YOOKASSA methods selectable for this subscription */
|
|
434
|
+
availableMethods: string[];
|
|
435
|
+
/** current preferred method, empty when not selected */
|
|
436
|
+
currentMethod: string;
|
|
437
|
+
/** empty | NO_ACTIVE_PREMIUM | NO_RENEWAL_METHOD_SELECTED */
|
|
438
|
+
reason: string;
|
|
439
|
+
/** e.g. YOOKASSA requires purchase flow with autoRenew=true */
|
|
440
|
+
setupRequiredMethods: string[];
|
|
427
441
|
}
|
|
428
442
|
export interface PremiumSavedPaymentMethod {
|
|
429
443
|
/** BALANCE | YOOKASSA | SAVED_CARD */
|
package/gen/users.ts
CHANGED
|
@@ -487,7 +487,24 @@ export interface PremiumStateResponse {
|
|
|
487
487
|
| PremiumPlanInfo
|
|
488
488
|
| undefined;
|
|
489
489
|
/** null when no premium payment method preference */
|
|
490
|
-
savedPaymentMethod:
|
|
490
|
+
savedPaymentMethod:
|
|
491
|
+
| PremiumSavedPaymentMethod
|
|
492
|
+
| undefined;
|
|
493
|
+
/** auto-renew capabilities for the current subscription */
|
|
494
|
+
renewal: PremiumRenewalOptions | undefined;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export interface PremiumRenewalOptions {
|
|
498
|
+
/** true when /premium/auto-renew can be enabled without changing method first */
|
|
499
|
+
canEnable: boolean;
|
|
500
|
+
/** BALANCE|SAVED_CARD|YOOKASSA methods selectable for this subscription */
|
|
501
|
+
availableMethods: string[];
|
|
502
|
+
/** current preferred method, empty when not selected */
|
|
503
|
+
currentMethod: string;
|
|
504
|
+
/** empty | NO_ACTIVE_PREMIUM | NO_RENEWAL_METHOD_SELECTED */
|
|
505
|
+
reason: string;
|
|
506
|
+
/** e.g. YOOKASSA requires purchase flow with autoRenew=true */
|
|
507
|
+
setupRequiredMethods: string[];
|
|
491
508
|
}
|
|
492
509
|
|
|
493
510
|
export interface PremiumSavedPaymentMethod {
|
package/package.json
CHANGED
package/proto/support.proto
CHANGED
|
@@ -183,6 +183,7 @@ message ListMyTicketsRequest {
|
|
|
183
183
|
string date_from = 8; // ISO; inclusive lower bound on createdAt
|
|
184
184
|
string date_to = 9; // ISO; inclusive upper bound on createdAt
|
|
185
185
|
string waiting_for = 10; // SUPPORT|USER
|
|
186
|
+
string sort = 11; // desc|asc by ticket createdAt; default desc
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
message ReplyTicketRequest {
|
|
@@ -306,6 +307,7 @@ message ListTicketsRequest {
|
|
|
306
307
|
string author_id = 10; // admin filter by ticket author
|
|
307
308
|
string requester_id = 11; // current staff user for per-staff read state
|
|
308
309
|
string waiting_for = 12; // SUPPORT|USER
|
|
310
|
+
string sort = 13; // desc|asc by ticket createdAt; default desc
|
|
309
311
|
}
|
|
310
312
|
|
|
311
313
|
message AssignTicketRequest {
|
package/proto/users.proto
CHANGED
|
@@ -552,11 +552,20 @@ message PremiumStateResponse {
|
|
|
552
552
|
bool auto_renew = 6;
|
|
553
553
|
PremiumPlanInfo plan = 8; // null when not active
|
|
554
554
|
PremiumSavedPaymentMethod saved_payment_method = 9; // null when no premium payment method preference
|
|
555
|
+
PremiumRenewalOptions renewal = 10; // auto-renew capabilities for the current subscription
|
|
555
556
|
|
|
556
557
|
reserved 7;
|
|
557
558
|
reserved "has_saved_payment_method";
|
|
558
559
|
}
|
|
559
560
|
|
|
561
|
+
message PremiumRenewalOptions {
|
|
562
|
+
bool can_enable = 1; // true when /premium/auto-renew can be enabled without changing method first
|
|
563
|
+
repeated string available_methods = 2; // BALANCE|SAVED_CARD|YOOKASSA methods selectable for this subscription
|
|
564
|
+
string current_method = 3; // current preferred method, empty when not selected
|
|
565
|
+
string reason = 4; // empty | NO_ACTIVE_PREMIUM | NO_RENEWAL_METHOD_SELECTED
|
|
566
|
+
repeated string setup_required_methods = 5; // e.g. YOOKASSA requires purchase flow with autoRenew=true
|
|
567
|
+
}
|
|
568
|
+
|
|
560
569
|
message PremiumSavedPaymentMethod {
|
|
561
570
|
string method = 1; // BALANCE | YOOKASSA | SAVED_CARD
|
|
562
571
|
PremiumSavedPaymentCard card = 2; // null unless method=SAVED_CARD
|