@aepstore-dev/contracts 1.62.0 → 1.64.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/activity.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: activity.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ACTIVITY_SERVICE_NAME = exports.ACTIVITY_V1_PACKAGE_NAME = exports.ReportStatus = exports.ReportType = exports.protobufPackage = void 0;
package/gen/activity.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: activity.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/auth.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.AUTH_SERVICE_NAME = exports.AUTH_V1_PACKAGE_NAME = exports.TwoFactorType = exports.protobufPackage = void 0;
package/gen/auth.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: auth.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/mail.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: mail.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.MAIL_SERVICE_NAME = exports.MAIL_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/mail.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: mail.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/products.d.ts CHANGED
@@ -77,6 +77,13 @@ export interface Product {
77
77
  discountPercent: string;
78
78
  /** Decimal as string, in `currency` */
79
79
  finalPrice: string;
80
+ /**
81
+ * Converted final_price display amounts by currency (RUB/USD/EUR).
82
+ * Not persisted; computed from the cached payments-service FX rates.
83
+ */
84
+ prices: {
85
+ [key: string]: string;
86
+ };
80
87
  /** double as string for consistency */
81
88
  averageRating: string;
82
89
  status: ProductStatus;
@@ -121,6 +128,10 @@ export interface Product {
121
128
  */
122
129
  attachments: ProductAttachment[];
123
130
  }
131
+ export interface Product_PricesEntry {
132
+ key: string;
133
+ value: string;
134
+ }
124
135
  export interface ProductAttachment {
125
136
  id: string;
126
137
  fileName: string;
@@ -139,6 +150,16 @@ export interface RelatedProduct {
139
150
  preview: string;
140
151
  user: ProductUser | undefined;
141
152
  categories: Category[];
153
+ /** RUB | USD | EUR */
154
+ currency: string;
155
+ /** Converted final_price display amounts. */
156
+ prices: {
157
+ [key: string]: string;
158
+ };
159
+ }
160
+ export interface RelatedProduct_PricesEntry {
161
+ key: string;
162
+ value: string;
142
163
  }
143
164
  export interface ProductResponse {
144
165
  product: Product | undefined;
package/gen/products.ts CHANGED
@@ -97,6 +97,11 @@ export interface Product {
97
97
  discountPercent: string;
98
98
  /** Decimal as string, in `currency` */
99
99
  finalPrice: string;
100
+ /**
101
+ * Converted final_price display amounts by currency (RUB/USD/EUR).
102
+ * Not persisted; computed from the cached payments-service FX rates.
103
+ */
104
+ prices: { [key: string]: string };
100
105
  /** double as string for consistency */
101
106
  averageRating: string;
102
107
  status: ProductStatus;
@@ -142,6 +147,11 @@ export interface Product {
142
147
  attachments: ProductAttachment[];
143
148
  }
144
149
 
150
+ export interface Product_PricesEntry {
151
+ key: string;
152
+ value: string;
153
+ }
154
+
145
155
  export interface ProductAttachment {
146
156
  id: string;
147
157
  fileName: string;
@@ -161,6 +171,15 @@ export interface RelatedProduct {
161
171
  preview: string;
162
172
  user: ProductUser | undefined;
163
173
  categories: Category[];
174
+ /** RUB | USD | EUR */
175
+ currency: string;
176
+ /** Converted final_price display amounts. */
177
+ prices: { [key: string]: string };
178
+ }
179
+
180
+ export interface RelatedProduct_PricesEntry {
181
+ key: string;
182
+ value: string;
164
183
  }
165
184
 
166
185
  export interface ProductResponse {
package/gen/support.d.ts CHANGED
@@ -44,6 +44,30 @@ export interface TicketMessage {
44
44
  isStaff: boolean;
45
45
  isInternal: boolean;
46
46
  createdAt: string;
47
+ /** автосообщение платформы */
48
+ isSystem: boolean;
49
+ attachments: TicketAttachment[];
50
+ /** '' если не редактировалось */
51
+ editedAt: string;
52
+ }
53
+ export interface TicketAttachment {
54
+ fileName: string;
55
+ fileSize: number;
56
+ /** presigned GET, короткоживущая; в запросах пусто */
57
+ url: string;
58
+ /** только внутрь (reply), наружу не отдаётся */
59
+ storageKey: string;
60
+ }
61
+ export interface UpdateTicketMessageRequest {
62
+ messageId: string;
63
+ requesterId: string;
64
+ isStaff: boolean;
65
+ body: string;
66
+ }
67
+ export interface DeleteTicketMessageRequest {
68
+ messageId: string;
69
+ requesterId: string;
70
+ isStaff: boolean;
47
71
  }
48
72
  export interface TicketWithMessages {
49
73
  ticket: Ticket | undefined;
@@ -101,6 +125,8 @@ export interface ReplyTicketRequest {
101
125
  isStaff: boolean;
102
126
  /** staff-only note */
103
127
  isInternal: boolean;
128
+ /** storage_key+file_name+file_size */
129
+ attachments: TicketAttachment[];
104
130
  }
105
131
  export interface CloseTicketRequest {
106
132
  ticketId: string;
@@ -161,6 +187,8 @@ export interface SupportServiceClient {
161
187
  assignTicket(request: AssignTicketRequest): Observable<Ticket>;
162
188
  setTicketStatus(request: SetTicketStatusRequest): Observable<Ticket>;
163
189
  deleteTicket(request: DeleteTicketRequest): Observable<Ticket>;
190
+ updateTicketMessage(request: UpdateTicketMessageRequest): Observable<TicketMessage>;
191
+ deleteTicketMessage(request: DeleteTicketMessageRequest): Observable<TicketMessage>;
164
192
  }
165
193
  /**
166
194
  * Support ticket system (G1). Enums as strings matching the DB
@@ -180,6 +208,8 @@ export interface SupportServiceController {
180
208
  assignTicket(request: AssignTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
181
209
  setTicketStatus(request: SetTicketStatusRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
182
210
  deleteTicket(request: DeleteTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
211
+ updateTicketMessage(request: UpdateTicketMessageRequest): Promise<TicketMessage> | Observable<TicketMessage> | TicketMessage;
212
+ deleteTicketMessage(request: DeleteTicketMessageRequest): Promise<TicketMessage> | Observable<TicketMessage> | TicketMessage;
183
213
  }
184
214
  export declare function SupportServiceControllerMethods(): (constructor: Function) => void;
185
215
  export declare const SUPPORT_SERVICE_NAME = "SupportService";
package/gen/support.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: support.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.SUPPORT_SERVICE_NAME = exports.SUPPORT_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
@@ -24,6 +24,8 @@ function SupportServiceControllerMethods() {
24
24
  "assignTicket",
25
25
  "setTicketStatus",
26
26
  "deleteTicket",
27
+ "updateTicketMessage",
28
+ "deleteTicketMessage",
27
29
  ];
28
30
  for (const method of grpcMethods) {
29
31
  const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/gen/support.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: support.proto
6
6
 
7
7
  /* eslint-disable */
@@ -57,6 +57,33 @@ export interface TicketMessage {
57
57
  isStaff: boolean;
58
58
  isInternal: boolean;
59
59
  createdAt: string;
60
+ /** автосообщение платформы */
61
+ isSystem: boolean;
62
+ attachments: TicketAttachment[];
63
+ /** '' если не редактировалось */
64
+ editedAt: string;
65
+ }
66
+
67
+ export interface TicketAttachment {
68
+ fileName: string;
69
+ fileSize: number;
70
+ /** presigned GET, короткоживущая; в запросах пусто */
71
+ url: string;
72
+ /** только внутрь (reply), наружу не отдаётся */
73
+ storageKey: string;
74
+ }
75
+
76
+ export interface UpdateTicketMessageRequest {
77
+ messageId: string;
78
+ requesterId: string;
79
+ isStaff: boolean;
80
+ body: string;
81
+ }
82
+
83
+ export interface DeleteTicketMessageRequest {
84
+ messageId: string;
85
+ requesterId: string;
86
+ isStaff: boolean;
60
87
  }
61
88
 
62
89
  export interface TicketWithMessages {
@@ -119,6 +146,8 @@ export interface ReplyTicketRequest {
119
146
  isStaff: boolean;
120
147
  /** staff-only note */
121
148
  isInternal: boolean;
149
+ /** storage_key+file_name+file_size */
150
+ attachments: TicketAttachment[];
122
151
  }
123
152
 
124
153
  export interface CloseTicketRequest {
@@ -200,6 +229,10 @@ export interface SupportServiceClient {
200
229
  setTicketStatus(request: SetTicketStatusRequest): Observable<Ticket>;
201
230
 
202
231
  deleteTicket(request: DeleteTicketRequest): Observable<Ticket>;
232
+
233
+ updateTicketMessage(request: UpdateTicketMessageRequest): Observable<TicketMessage>;
234
+
235
+ deleteTicketMessage(request: DeleteTicketMessageRequest): Observable<TicketMessage>;
203
236
  }
204
237
 
205
238
  /**
@@ -239,6 +272,14 @@ export interface SupportServiceController {
239
272
  setTicketStatus(request: SetTicketStatusRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
240
273
 
241
274
  deleteTicket(request: DeleteTicketRequest): Promise<Ticket> | Observable<Ticket> | Ticket;
275
+
276
+ updateTicketMessage(
277
+ request: UpdateTicketMessageRequest,
278
+ ): Promise<TicketMessage> | Observable<TicketMessage> | TicketMessage;
279
+
280
+ deleteTicketMessage(
281
+ request: DeleteTicketMessageRequest,
282
+ ): Promise<TicketMessage> | Observable<TicketMessage> | TicketMessage;
242
283
  }
243
284
 
244
285
  export function SupportServiceControllerMethods() {
@@ -254,6 +295,8 @@ export function SupportServiceControllerMethods() {
254
295
  "assignTicket",
255
296
  "setTicketStatus",
256
297
  "deleteTicket",
298
+ "updateTicketMessage",
299
+ "deleteTicketMessage",
257
300
  ];
258
301
  for (const method of grpcMethods) {
259
302
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/gen/taxonomy.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: taxonomy.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.TAXONOMY_SERVICE_NAME = exports.TAXONOMY_V1_PACKAGE_NAME = exports.protobufPackage = void 0;
package/gen/taxonomy.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: taxonomy.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/upload.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: upload.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.UPLOAD_SERVICE_NAME = exports.UPLOAD_V1_PACKAGE_NAME = exports.UploadKind = exports.protobufPackage = void 0;
package/gen/upload.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: upload.proto
6
6
 
7
7
  /* eslint-disable */
package/gen/users.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.10.1
5
- // protoc v7.35.1
5
+ // protoc v7.35.0
6
6
  // source: users.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.USERS_SERVICE_NAME = exports.USERS_V1_PACKAGE_NAME = exports.PremiumPeriod = exports.UserFieldsType = exports.protobufPackage = void 0;
package/gen/users.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
3
  // protoc-gen-ts_proto v2.10.1
4
- // protoc v7.35.1
4
+ // protoc v7.35.0
5
5
  // source: users.proto
6
6
 
7
7
  /* eslint-disable */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.62.0",
3
+ "version": "1.64.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -119,6 +119,9 @@ message Product {
119
119
  string price = 4; // Decimal as string (D7), in `currency`
120
120
  string discount_percent = 5; // Decimal as string
121
121
  string final_price = 6; // Decimal as string, in `currency`
122
+ // Converted final_price display amounts by currency (RUB/USD/EUR).
123
+ // Not persisted; computed from the cached payments-service FX rates.
124
+ map<string, string> prices = 36;
122
125
  string average_rating = 7; // double as string for consistency
123
126
  ProductStatus status = 8;
124
127
  // Listing currency the seller priced in: RUB | USD | EUR (default RUB).
@@ -174,6 +177,8 @@ message RelatedProduct {
174
177
  string preview = 6;
175
178
  ProductUser user = 7;
176
179
  repeated Category categories = 8;
180
+ string currency = 9; // RUB | USD | EUR
181
+ map<string, string> prices = 10; // Converted final_price display amounts.
177
182
  }
178
183
 
179
184
  message ProductResponse {
@@ -19,6 +19,8 @@ service SupportService {
19
19
  rpc AssignTicket(AssignTicketRequest) returns (Ticket);
20
20
  rpc SetTicketStatus(SetTicketStatusRequest) returns (Ticket);
21
21
  rpc DeleteTicket(DeleteTicketRequest) returns (Ticket);
22
+ rpc UpdateTicketMessage(UpdateTicketMessageRequest) returns (TicketMessage);
23
+ rpc DeleteTicketMessage(DeleteTicketMessageRequest) returns (TicketMessage);
22
24
  }
23
25
 
24
26
  message PingRequest { string message = 1; }
@@ -55,6 +57,29 @@ message TicketMessage {
55
57
  bool is_staff = 5;
56
58
  bool is_internal = 6;
57
59
  string created_at = 7;
60
+ bool is_system = 8; // автосообщение платформы
61
+ repeated TicketAttachment attachments = 9;
62
+ string edited_at = 10; // '' если не редактировалось
63
+ }
64
+
65
+ message TicketAttachment {
66
+ string file_name = 1;
67
+ int64 file_size = 2;
68
+ string url = 3; // presigned GET, короткоживущая; в запросах пусто
69
+ string storage_key = 4; // только внутрь (reply), наружу не отдаётся
70
+ }
71
+
72
+ message UpdateTicketMessageRequest {
73
+ string message_id = 1;
74
+ string requester_id = 2;
75
+ bool is_staff = 3;
76
+ string body = 4;
77
+ }
78
+
79
+ message DeleteTicketMessageRequest {
80
+ string message_id = 1;
81
+ string requester_id = 2;
82
+ bool is_staff = 3;
58
83
  }
59
84
 
60
85
  message TicketWithMessages {
@@ -101,6 +126,7 @@ message ReplyTicketRequest {
101
126
  string body = 3;
102
127
  bool is_staff = 4;
103
128
  bool is_internal = 5; // staff-only note
129
+ repeated TicketAttachment attachments = 6; // storage_key+file_name+file_size
104
130
  }
105
131
 
106
132
  message CloseTicketRequest {