@aepstore-dev/contracts 1.30.0 → 1.31.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/products.ts +26 -0
- package/package.json +1 -1
- package/proto/products.proto +14 -0
package/gen/products.ts
CHANGED
|
@@ -278,6 +278,20 @@ export interface SaveAttachmentMetadataRequest {
|
|
|
278
278
|
uploadId: string;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
+
export interface RemoveMediaRequest {
|
|
282
|
+
/** product id */
|
|
283
|
+
id: string;
|
|
284
|
+
userId: string;
|
|
285
|
+
mediaId: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface RemoveAttachmentRequest {
|
|
289
|
+
/** product id */
|
|
290
|
+
id: string;
|
|
291
|
+
userId: string;
|
|
292
|
+
attachmentId: string;
|
|
293
|
+
}
|
|
294
|
+
|
|
281
295
|
export interface ProductModerationQueryRequest {
|
|
282
296
|
status: ModerationStatus;
|
|
283
297
|
page: number;
|
|
@@ -387,6 +401,10 @@ export interface ProductsServiceClient {
|
|
|
387
401
|
|
|
388
402
|
saveAttachmentMetadata(request: SaveAttachmentMetadataRequest): Observable<ProductResponse>;
|
|
389
403
|
|
|
404
|
+
removeMedia(request: RemoveMediaRequest): Observable<ProductResponse>;
|
|
405
|
+
|
|
406
|
+
removeAttachment(request: RemoveAttachmentRequest): Observable<ProductResponse>;
|
|
407
|
+
|
|
390
408
|
getProductsForModeration(request: ProductModerationQueryRequest): Observable<ProductsListResponse>;
|
|
391
409
|
|
|
392
410
|
moderateProduct(request: ModerateProductRequest): Observable<ModerationResponse>;
|
|
@@ -448,6 +466,12 @@ export interface ProductsServiceController {
|
|
|
448
466
|
request: SaveAttachmentMetadataRequest,
|
|
449
467
|
): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
450
468
|
|
|
469
|
+
removeMedia(request: RemoveMediaRequest): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
470
|
+
|
|
471
|
+
removeAttachment(
|
|
472
|
+
request: RemoveAttachmentRequest,
|
|
473
|
+
): Promise<ProductResponse> | Observable<ProductResponse> | ProductResponse;
|
|
474
|
+
|
|
451
475
|
getProductsForModeration(
|
|
452
476
|
request: ProductModerationQueryRequest,
|
|
453
477
|
): Promise<ProductsListResponse> | Observable<ProductsListResponse> | ProductsListResponse;
|
|
@@ -503,6 +527,8 @@ export function ProductsServiceControllerMethods() {
|
|
|
503
527
|
"removeFromFavorites",
|
|
504
528
|
"saveMediaMetadata",
|
|
505
529
|
"saveAttachmentMetadata",
|
|
530
|
+
"removeMedia",
|
|
531
|
+
"removeAttachment",
|
|
506
532
|
"getProductsForModeration",
|
|
507
533
|
"moderateProduct",
|
|
508
534
|
"resubmitProduct",
|
package/package.json
CHANGED
package/proto/products.proto
CHANGED
|
@@ -18,6 +18,8 @@ service ProductsService {
|
|
|
18
18
|
|
|
19
19
|
rpc SaveMediaMetadata(SaveMediaMetadataRequest) returns (ProductResponse);
|
|
20
20
|
rpc SaveAttachmentMetadata(SaveAttachmentMetadataRequest) returns (ProductResponse);
|
|
21
|
+
rpc RemoveMedia(RemoveMediaRequest) returns (ProductResponse);
|
|
22
|
+
rpc RemoveAttachment(RemoveAttachmentRequest) returns (ProductResponse);
|
|
21
23
|
|
|
22
24
|
rpc GetProductsForModeration(ProductModerationQueryRequest) returns (ProductsListResponse);
|
|
23
25
|
rpc ModerateProduct(ModerateProductRequest) returns (ModerationResponse);
|
|
@@ -293,6 +295,18 @@ message SaveAttachmentMetadataRequest {
|
|
|
293
295
|
string upload_id = 4;
|
|
294
296
|
}
|
|
295
297
|
|
|
298
|
+
message RemoveMediaRequest {
|
|
299
|
+
string id = 1; // product id
|
|
300
|
+
string user_id = 2;
|
|
301
|
+
string media_id = 3;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
message RemoveAttachmentRequest {
|
|
305
|
+
string id = 1; // product id
|
|
306
|
+
string user_id = 2;
|
|
307
|
+
string attachment_id = 3;
|
|
308
|
+
}
|
|
309
|
+
|
|
296
310
|
// =================================================================
|
|
297
311
|
// Moderation
|
|
298
312
|
// =================================================================
|