@aepstore-dev/contracts 1.45.0 → 1.46.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/payments.d.ts CHANGED
@@ -29,6 +29,10 @@ export interface TopupRequest {
29
29
  /** >= 10.00 */
30
30
  amount: string;
31
31
  returnUrl: string;
32
+ /** YOOKASSA | SAVED_CARD (default YOOKASSA) */
33
+ paymentMethod: string;
34
+ /** required when payment_method=SAVED_CARD */
35
+ savedCardId: string;
32
36
  }
33
37
  export interface CreateCheckoutRequest {
34
38
  userId: string;
package/gen/payments.ts CHANGED
@@ -41,6 +41,10 @@ export interface TopupRequest {
41
41
  /** >= 10.00 */
42
42
  amount: string;
43
43
  returnUrl: string;
44
+ /** YOOKASSA | SAVED_CARD (default YOOKASSA) */
45
+ paymentMethod: string;
46
+ /** required when payment_method=SAVED_CARD */
47
+ savedCardId: string;
44
48
  }
45
49
 
46
50
  export interface CreateCheckoutRequest {
package/gen/support.d.ts CHANGED
@@ -24,6 +24,17 @@ export interface Ticket {
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  messagesCount: number;
27
+ /** GENERAL|TECHNICAL|SALES */
28
+ department: string;
29
+ /** optional */
30
+ productCategoryId: string;
31
+ /** optional */
32
+ relatedProductId: string;
33
+ /** PURCHASED|SELLING */
34
+ relatedProductType: string;
35
+ rulesAccepted: boolean;
36
+ rulesAcceptedAt: string;
37
+ deletedAt: string;
27
38
  }
28
39
  export interface TicketMessage {
29
40
  id: string;
@@ -48,6 +59,17 @@ export interface CreateTicketRequest {
48
59
  purchaseId: string;
49
60
  /** optional */
50
61
  withdrawalId: string;
62
+ /** LOW|NORMAL|HIGH|URGENT */
63
+ priority: string;
64
+ /** GENERAL|TECHNICAL|SALES */
65
+ department: string;
66
+ /** optional */
67
+ productCategoryId: string;
68
+ /** optional */
69
+ relatedProductId: string;
70
+ /** PURCHASED|SELLING */
71
+ relatedProductType: string;
72
+ rulesAccepted: boolean;
51
73
  }
52
74
  export interface GetTicketRequest {
53
75
  id: string;
@@ -57,9 +79,20 @@ export interface GetTicketRequest {
57
79
  }
58
80
  export interface ListMyTicketsRequest {
59
81
  authorId: string;
82
+ /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
60
83
  status: string;
61
84
  page: number;
62
85
  limit: number;
86
+ /** GENERAL|TECHNICAL|SALES */
87
+ department: string;
88
+ /** GENERAL|PAYMENT|... */
89
+ category: string;
90
+ /** contains in subject OR in any message body */
91
+ search: string;
92
+ /** ISO; inclusive lower bound on createdAt */
93
+ dateFrom: string;
94
+ /** ISO; inclusive upper bound on createdAt */
95
+ dateTo: string;
63
96
  }
64
97
  export interface ReplyTicketRequest {
65
98
  ticketId: string;
@@ -75,11 +108,18 @@ export interface CloseTicketRequest {
75
108
  isStaff: boolean;
76
109
  }
77
110
  export interface ListTicketsRequest {
111
+ /** single value OR comma-separated */
78
112
  status: string;
79
113
  category: string;
80
114
  assigneeId: string;
81
115
  page: number;
82
116
  limit: number;
117
+ department: string;
118
+ /** contains in subject OR in any message body */
119
+ search: string;
120
+ /** ISO; inclusive lower bound on createdAt */
121
+ dateFrom: string;
122
+ dateTo: string;
83
123
  }
84
124
  export interface AssignTicketRequest {
85
125
  ticketId: string;
@@ -92,6 +132,10 @@ export interface SetTicketStatusRequest {
92
132
  status: string;
93
133
  adminId: string;
94
134
  }
135
+ export interface DeleteTicketRequest {
136
+ ticketId: string;
137
+ adminId: string;
138
+ }
95
139
  export interface TicketsListResponse {
96
140
  items: Ticket[];
97
141
  total: number;
@@ -116,6 +160,7 @@ export interface SupportServiceClient {
116
160
  listTickets(request: ListTicketsRequest): Observable<TicketsListResponse>;
117
161
  assignTicket(request: AssignTicketRequest): Observable<Ticket>;
118
162
  setTicketStatus(request: SetTicketStatusRequest): Observable<Ticket>;
163
+ deleteTicket(request: DeleteTicketRequest): Observable<Ticket>;
119
164
  }
120
165
  /**
121
166
  * Support ticket system (G1). Enums as strings matching the DB
@@ -134,6 +179,7 @@ export interface SupportServiceController {
134
179
  listTickets(request: ListTicketsRequest): Promise<TicketsListResponse> | Observable<TicketsListResponse> | TicketsListResponse;
135
180
  assignTicket(request: AssignTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
136
181
  setTicketStatus(request: SetTicketStatusRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
182
+ deleteTicket(request: DeleteTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
137
183
  }
138
184
  export declare function SupportServiceControllerMethods(): (constructor: Function) => void;
139
185
  export declare const SUPPORT_SERVICE_NAME = "SupportService";
package/gen/support.js CHANGED
@@ -23,6 +23,7 @@ function SupportServiceControllerMethods() {
23
23
  "listTickets",
24
24
  "assignTicket",
25
25
  "setTicketStatus",
26
+ "deleteTicket",
26
27
  ];
27
28
  for (const method of grpcMethods) {
28
29
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/gen/support.ts CHANGED
@@ -36,6 +36,17 @@ export interface Ticket {
36
36
  createdAt: string;
37
37
  updatedAt: string;
38
38
  messagesCount: number;
39
+ /** GENERAL|TECHNICAL|SALES */
40
+ department: string;
41
+ /** optional */
42
+ productCategoryId: string;
43
+ /** optional */
44
+ relatedProductId: string;
45
+ /** PURCHASED|SELLING */
46
+ relatedProductType: string;
47
+ rulesAccepted: boolean;
48
+ rulesAcceptedAt: string;
49
+ deletedAt: string;
39
50
  }
40
51
 
41
52
  export interface TicketMessage {
@@ -63,6 +74,17 @@ export interface CreateTicketRequest {
63
74
  purchaseId: string;
64
75
  /** optional */
65
76
  withdrawalId: string;
77
+ /** LOW|NORMAL|HIGH|URGENT */
78
+ priority: string;
79
+ /** GENERAL|TECHNICAL|SALES */
80
+ department: string;
81
+ /** optional */
82
+ productCategoryId: string;
83
+ /** optional */
84
+ relatedProductId: string;
85
+ /** PURCHASED|SELLING */
86
+ relatedProductType: string;
87
+ rulesAccepted: boolean;
66
88
  }
67
89
 
68
90
  export interface GetTicketRequest {
@@ -74,9 +96,20 @@ export interface GetTicketRequest {
74
96
 
75
97
  export interface ListMyTicketsRequest {
76
98
  authorId: string;
99
+ /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
77
100
  status: string;
78
101
  page: number;
79
102
  limit: number;
103
+ /** GENERAL|TECHNICAL|SALES */
104
+ department: string;
105
+ /** GENERAL|PAYMENT|... */
106
+ category: string;
107
+ /** contains in subject OR in any message body */
108
+ search: string;
109
+ /** ISO; inclusive lower bound on createdAt */
110
+ dateFrom: string;
111
+ /** ISO; inclusive upper bound on createdAt */
112
+ dateTo: string;
80
113
  }
81
114
 
82
115
  export interface ReplyTicketRequest {
@@ -95,11 +128,18 @@ export interface CloseTicketRequest {
95
128
  }
96
129
 
97
130
  export interface ListTicketsRequest {
131
+ /** single value OR comma-separated */
98
132
  status: string;
99
133
  category: string;
100
134
  assigneeId: string;
101
135
  page: number;
102
136
  limit: number;
137
+ department: string;
138
+ /** contains in subject OR in any message body */
139
+ search: string;
140
+ /** ISO; inclusive lower bound on createdAt */
141
+ dateFrom: string;
142
+ dateTo: string;
103
143
  }
104
144
 
105
145
  export interface AssignTicketRequest {
@@ -115,6 +155,11 @@ export interface SetTicketStatusRequest {
115
155
  adminId: string;
116
156
  }
117
157
 
158
+ export interface DeleteTicketRequest {
159
+ ticketId: string;
160
+ adminId: string;
161
+ }
162
+
118
163
  export interface TicketsListResponse {
119
164
  items: Ticket[];
120
165
  total: number;
@@ -153,6 +198,8 @@ export interface SupportServiceClient {
153
198
  assignTicket(request: AssignTicketRequest): Observable<Ticket>;
154
199
 
155
200
  setTicketStatus(request: SetTicketStatusRequest): Observable<Ticket>;
201
+
202
+ deleteTicket(request: DeleteTicketRequest): Observable<Ticket>;
156
203
  }
157
204
 
158
205
  /**
@@ -190,6 +237,8 @@ export interface SupportServiceController {
190
237
  assignTicket(request: AssignTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
191
238
 
192
239
  setTicketStatus(request: SetTicketStatusRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
240
+
241
+ deleteTicket(request: DeleteTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
193
242
  }
194
243
 
195
244
  export function SupportServiceControllerMethods() {
@@ -204,6 +253,7 @@ export function SupportServiceControllerMethods() {
204
253
  "listTickets",
205
254
  "assignTicket",
206
255
  "setTicketStatus",
256
+ "deleteTicket",
207
257
  ];
208
258
  for (const method of grpcMethods) {
209
259
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.45.0",
3
+ "version": "1.46.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -83,6 +83,8 @@ message TopupRequest {
83
83
  string user_id = 1;
84
84
  string amount = 2; // >= 10.00
85
85
  string return_url = 3;
86
+ string payment_method = 4; // YOOKASSA | SAVED_CARD (default YOOKASSA)
87
+ string saved_card_id = 5; // required when payment_method=SAVED_CARD
86
88
  }
87
89
 
88
90
  message CreateCheckoutRequest {
@@ -18,6 +18,7 @@ service SupportService {
18
18
  rpc ListTickets(ListTicketsRequest) returns (TicketsListResponse);
19
19
  rpc AssignTicket(AssignTicketRequest) returns (Ticket);
20
20
  rpc SetTicketStatus(SetTicketStatusRequest) returns (Ticket);
21
+ rpc DeleteTicket(DeleteTicketRequest) returns (Ticket);
21
22
  }
22
23
 
23
24
  message PingRequest { string message = 1; }
@@ -37,6 +38,13 @@ message Ticket {
37
38
  string created_at = 11;
38
39
  string updated_at = 12;
39
40
  int32 messages_count = 13;
41
+ string department = 14; // GENERAL|TECHNICAL|SALES
42
+ string product_category_id = 15; // optional
43
+ string related_product_id = 16; // optional
44
+ string related_product_type = 17; // PURCHASED|SELLING
45
+ bool rules_accepted = 18;
46
+ string rules_accepted_at = 19;
47
+ string deleted_at = 20;
40
48
  }
41
49
 
42
50
  message TicketMessage {
@@ -61,6 +69,12 @@ message CreateTicketRequest {
61
69
  string body = 4; // first message
62
70
  string purchase_id = 5; // optional
63
71
  string withdrawal_id = 6; // optional
72
+ string priority = 7; // LOW|NORMAL|HIGH|URGENT
73
+ string department = 8; // GENERAL|TECHNICAL|SALES
74
+ string product_category_id = 9; // optional
75
+ string related_product_id = 10; // optional
76
+ string related_product_type = 11; // PURCHASED|SELLING
77
+ bool rules_accepted = 12;
64
78
  }
65
79
 
66
80
  message GetTicketRequest {
@@ -71,9 +85,14 @@ message GetTicketRequest {
71
85
 
72
86
  message ListMyTicketsRequest {
73
87
  string author_id = 1;
74
- string status = 2;
88
+ string status = 2; // single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS")
75
89
  int32 page = 3;
76
90
  int32 limit = 4;
91
+ string department = 5; // GENERAL|TECHNICAL|SALES
92
+ string category = 6; // GENERAL|PAYMENT|...
93
+ string search = 7; // contains in subject OR in any message body
94
+ string date_from = 8; // ISO; inclusive lower bound on createdAt
95
+ string date_to = 9; // ISO; inclusive upper bound on createdAt
77
96
  }
78
97
 
79
98
  message ReplyTicketRequest {
@@ -91,11 +110,15 @@ message CloseTicketRequest {
91
110
  }
92
111
 
93
112
  message ListTicketsRequest {
94
- string status = 1;
113
+ string status = 1; // single value OR comma-separated
95
114
  string category = 2;
96
115
  string assignee_id = 3;
97
116
  int32 page = 4;
98
117
  int32 limit = 5;
118
+ string department = 6;
119
+ string search = 7; // contains in subject OR in any message body
120
+ string date_from = 8; // ISO; inclusive lower bound on createdAt
121
+ string date_to = 9;
99
122
  }
100
123
 
101
124
  message AssignTicketRequest {
@@ -109,7 +132,10 @@ message SetTicketStatusRequest {
109
132
  string status = 2;
110
133
  string admin_id = 3;
111
134
  }
112
-
135
+ message DeleteTicketRequest {
136
+ string ticket_id = 1;
137
+ string admin_id = 2;
138
+ }
113
139
  message TicketsListResponse {
114
140
  repeated Ticket items = 1;
115
141
  int32 total = 2;