@mamindom/contracts 1.0.70 → 1.0.72
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/dist/gen/product.d.ts +7 -0
- package/dist/gen/product.js +1 -0
- package/dist/proto/product.proto +8 -0
- package/gen/product.ts +13 -0
- package/package.json +1 -1
- package/proto/product.proto +8 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export interface ProductListItemResponse {
|
|
|
86
86
|
categorySortOrder: number;
|
|
87
87
|
barcode?: string | undefined;
|
|
88
88
|
videoUrl?: string | undefined;
|
|
89
|
+
viewed: number;
|
|
89
90
|
}
|
|
90
91
|
export interface ProductListItemResponse_NameEntry {
|
|
91
92
|
key: string;
|
|
@@ -499,6 +500,10 @@ export interface ExportProductsResponse {
|
|
|
499
500
|
export interface BulkUpdateSortOrderRequest {
|
|
500
501
|
items: ProductOrderItem[];
|
|
501
502
|
}
|
|
503
|
+
export interface BulkSetPopularRequest {
|
|
504
|
+
productIds: string[];
|
|
505
|
+
popular: boolean;
|
|
506
|
+
}
|
|
502
507
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
503
508
|
export interface ProductServiceClient {
|
|
504
509
|
getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
|
|
@@ -525,6 +530,7 @@ export interface ProductServiceClient {
|
|
|
525
530
|
removeRelatedProduct(request: RemoveRelatedProductRequest): Observable<SuccessResponse>;
|
|
526
531
|
exportProducts(request: ExportProductsRequest): Observable<ExportProductsResponse>;
|
|
527
532
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Observable<SuccessResponse>;
|
|
533
|
+
bulkSetPopular(request: BulkSetPopularRequest): Observable<SuccessResponse>;
|
|
528
534
|
}
|
|
529
535
|
export interface ProductServiceController {
|
|
530
536
|
getProducts(request: GetProductsRequest): Promise<GetProductsResponse> | Observable<GetProductsResponse> | GetProductsResponse;
|
|
@@ -551,6 +557,7 @@ export interface ProductServiceController {
|
|
|
551
557
|
removeRelatedProduct(request: RemoveRelatedProductRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
552
558
|
exportProducts(request: ExportProductsRequest): Promise<ExportProductsResponse> | Observable<ExportProductsResponse> | ExportProductsResponse;
|
|
553
559
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
560
|
+
bulkSetPopular(request: BulkSetPopularRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
554
561
|
}
|
|
555
562
|
export declare function ProductServiceControllerMethods(): (constructor: Function) => void;
|
|
556
563
|
export declare const PRODUCT_SERVICE_NAME = "ProductService";
|
package/dist/gen/product.js
CHANGED
|
@@ -63,6 +63,7 @@ function ProductServiceControllerMethods() {
|
|
|
63
63
|
"removeRelatedProduct",
|
|
64
64
|
"exportProducts",
|
|
65
65
|
"bulkUpdateSortOrder",
|
|
66
|
+
"bulkSetPopular",
|
|
66
67
|
];
|
|
67
68
|
for (const method of grpcMethods) {
|
|
68
69
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/dist/proto/product.proto
CHANGED
|
@@ -5,6 +5,7 @@ package catalog.v1;
|
|
|
5
5
|
import "common.proto";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
service ProductService {
|
|
9
10
|
|
|
10
11
|
rpc GetProducts (GetProductsRequest) returns (GetProductsResponse);
|
|
@@ -47,6 +48,8 @@ service ProductService {
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
rpc BulkUpdateSortOrder (BulkUpdateSortOrderRequest) returns (SuccessResponse);
|
|
51
|
+
|
|
52
|
+
rpc BulkSetPopular (BulkSetPopularRequest) returns (SuccessResponse);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
|
|
@@ -127,6 +130,7 @@ message ProductListItemResponse {
|
|
|
127
130
|
int32 category_sort_order = 13;
|
|
128
131
|
optional string barcode = 14;
|
|
129
132
|
optional string video_url = 15;
|
|
133
|
+
int32 viewed = 16;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
|
|
@@ -455,3 +459,7 @@ message BulkUpdateSortOrderRequest {
|
|
|
455
459
|
repeated ProductOrderItem items = 1;
|
|
456
460
|
}
|
|
457
461
|
|
|
462
|
+
message BulkSetPopularRequest {
|
|
463
|
+
repeated string product_ids = 1;
|
|
464
|
+
bool popular = 2;
|
|
465
|
+
}
|
package/gen/product.ts
CHANGED
|
@@ -106,6 +106,7 @@ export interface ProductListItemResponse {
|
|
|
106
106
|
categorySortOrder: number;
|
|
107
107
|
barcode?: string | undefined;
|
|
108
108
|
videoUrl?: string | undefined;
|
|
109
|
+
viewed: number;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
export interface ProductListItemResponse_NameEntry {
|
|
@@ -522,6 +523,11 @@ export interface BulkUpdateSortOrderRequest {
|
|
|
522
523
|
items: ProductOrderItem[];
|
|
523
524
|
}
|
|
524
525
|
|
|
526
|
+
export interface BulkSetPopularRequest {
|
|
527
|
+
productIds: string[];
|
|
528
|
+
popular: boolean;
|
|
529
|
+
}
|
|
530
|
+
|
|
525
531
|
export const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
526
532
|
|
|
527
533
|
export interface ProductServiceClient {
|
|
@@ -572,6 +578,8 @@ export interface ProductServiceClient {
|
|
|
572
578
|
exportProducts(request: ExportProductsRequest): Observable<ExportProductsResponse>;
|
|
573
579
|
|
|
574
580
|
bulkUpdateSortOrder(request: BulkUpdateSortOrderRequest): Observable<SuccessResponse>;
|
|
581
|
+
|
|
582
|
+
bulkSetPopular(request: BulkSetPopularRequest): Observable<SuccessResponse>;
|
|
575
583
|
}
|
|
576
584
|
|
|
577
585
|
export interface ProductServiceController {
|
|
@@ -668,6 +676,10 @@ export interface ProductServiceController {
|
|
|
668
676
|
bulkUpdateSortOrder(
|
|
669
677
|
request: BulkUpdateSortOrderRequest,
|
|
670
678
|
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
679
|
+
|
|
680
|
+
bulkSetPopular(
|
|
681
|
+
request: BulkSetPopularRequest,
|
|
682
|
+
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
671
683
|
}
|
|
672
684
|
|
|
673
685
|
export function ProductServiceControllerMethods() {
|
|
@@ -697,6 +709,7 @@ export function ProductServiceControllerMethods() {
|
|
|
697
709
|
"removeRelatedProduct",
|
|
698
710
|
"exportProducts",
|
|
699
711
|
"bulkUpdateSortOrder",
|
|
712
|
+
"bulkSetPopular",
|
|
700
713
|
];
|
|
701
714
|
for (const method of grpcMethods) {
|
|
702
715
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/product.proto
CHANGED
|
@@ -5,6 +5,7 @@ package catalog.v1;
|
|
|
5
5
|
import "common.proto";
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
|
|
8
9
|
service ProductService {
|
|
9
10
|
|
|
10
11
|
rpc GetProducts (GetProductsRequest) returns (GetProductsResponse);
|
|
@@ -47,6 +48,8 @@ service ProductService {
|
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
rpc BulkUpdateSortOrder (BulkUpdateSortOrderRequest) returns (SuccessResponse);
|
|
51
|
+
|
|
52
|
+
rpc BulkSetPopular (BulkSetPopularRequest) returns (SuccessResponse);
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
|
|
@@ -127,6 +130,7 @@ message ProductListItemResponse {
|
|
|
127
130
|
int32 category_sort_order = 13;
|
|
128
131
|
optional string barcode = 14;
|
|
129
132
|
optional string video_url = 15;
|
|
133
|
+
int32 viewed = 16;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
|
|
@@ -455,3 +459,7 @@ message BulkUpdateSortOrderRequest {
|
|
|
455
459
|
repeated ProductOrderItem items = 1;
|
|
456
460
|
}
|
|
457
461
|
|
|
462
|
+
message BulkSetPopularRequest {
|
|
463
|
+
repeated string product_ids = 1;
|
|
464
|
+
bool popular = 2;
|
|
465
|
+
}
|