@mamindom/contracts 1.0.94 → 1.0.96
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 +8 -0
- package/dist/gen/product.js +1 -0
- package/dist/proto/product.proto +8 -0
- package/gen/product.ts +14 -0
- package/package.json +1 -1
- package/proto/product.proto +8 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export interface ProductDetailResponse {
|
|
|
153
153
|
groupSiblings: ProductGroupMember[];
|
|
154
154
|
rating: number;
|
|
155
155
|
reviewCount: number;
|
|
156
|
+
manualRating?: number | undefined;
|
|
156
157
|
}
|
|
157
158
|
export interface ProductDetailResponse_NameEntry {
|
|
158
159
|
key: string;
|
|
@@ -398,6 +399,7 @@ export interface UpdateProductRequest {
|
|
|
398
399
|
[key: string]: string;
|
|
399
400
|
};
|
|
400
401
|
colorHex?: string | undefined;
|
|
402
|
+
manualRating?: number | undefined;
|
|
401
403
|
}
|
|
402
404
|
export interface UpdateProductRequest_NameEntry {
|
|
403
405
|
key: string;
|
|
@@ -423,6 +425,10 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
423
425
|
key: string;
|
|
424
426
|
value: string;
|
|
425
427
|
}
|
|
428
|
+
export interface SetManualRatingRequest {
|
|
429
|
+
id: string;
|
|
430
|
+
manualRating?: number | undefined;
|
|
431
|
+
}
|
|
426
432
|
export interface DeleteProductRequest {
|
|
427
433
|
id: string;
|
|
428
434
|
}
|
|
@@ -811,6 +817,7 @@ export interface ProductServiceClient {
|
|
|
811
817
|
createProduct(request: CreateProductRequest): Observable<ProductDetailResponse>;
|
|
812
818
|
updateProduct(request: UpdateProductRequest): Observable<ProductDetailResponse>;
|
|
813
819
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteResponse>;
|
|
820
|
+
setManualRating(request: SetManualRatingRequest): Observable<SuccessResponse>;
|
|
814
821
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Observable<SuccessResponse>;
|
|
815
822
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Observable<SuccessResponse>;
|
|
816
823
|
bulkUpdateDiscount(request: BulkUpdateDiscountRequest): Observable<SuccessResponse>;
|
|
@@ -849,6 +856,7 @@ export interface ProductServiceController {
|
|
|
849
856
|
createProduct(request: CreateProductRequest): Promise<ProductDetailResponse> | Observable<ProductDetailResponse> | ProductDetailResponse;
|
|
850
857
|
updateProduct(request: UpdateProductRequest): Promise<ProductDetailResponse> | Observable<ProductDetailResponse> | ProductDetailResponse;
|
|
851
858
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
859
|
+
setManualRating(request: SetManualRatingRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
852
860
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
853
861
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
854
862
|
bulkUpdateDiscount(request: BulkUpdateDiscountRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
package/dist/gen/product.js
CHANGED
package/dist/proto/product.proto
CHANGED
|
@@ -13,6 +13,7 @@ service ProductService {
|
|
|
13
13
|
rpc CreateProduct (CreateProductRequest) returns (ProductDetailResponse);
|
|
14
14
|
rpc UpdateProduct (UpdateProductRequest) returns (ProductDetailResponse);
|
|
15
15
|
rpc DeleteProduct (DeleteProductRequest) returns (DeleteResponse);
|
|
16
|
+
rpc SetManualRating (SetManualRatingRequest) returns (SuccessResponse);
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
rpc BulkUpdateStatus (BulkUpdateStatusRequest) returns (SuccessResponse);
|
|
@@ -203,6 +204,7 @@ message ProductDetailResponse {
|
|
|
203
204
|
repeated ProductGroupMember group_siblings = 34;
|
|
204
205
|
float rating = 35;
|
|
205
206
|
int32 review_count = 36;
|
|
207
|
+
optional float manual_rating = 37;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
|
|
@@ -357,6 +359,12 @@ message UpdateProductRequest {
|
|
|
357
359
|
optional string group_id = 22;
|
|
358
360
|
map<string, string> color_label = 23;
|
|
359
361
|
optional string color_hex = 24;
|
|
362
|
+
optional float manual_rating = 25;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message SetManualRatingRequest {
|
|
366
|
+
string id = 1;
|
|
367
|
+
optional float manual_rating = 2;
|
|
360
368
|
}
|
|
361
369
|
|
|
362
370
|
message DeleteProductRequest {
|
package/gen/product.ts
CHANGED
|
@@ -157,6 +157,7 @@ export interface ProductDetailResponse {
|
|
|
157
157
|
groupSiblings: ProductGroupMember[];
|
|
158
158
|
rating: number;
|
|
159
159
|
reviewCount: number;
|
|
160
|
+
manualRating?: number | undefined;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export interface ProductDetailResponse_NameEntry {
|
|
@@ -397,6 +398,7 @@ export interface UpdateProductRequest {
|
|
|
397
398
|
groupId?: string | undefined;
|
|
398
399
|
colorLabel: { [key: string]: string };
|
|
399
400
|
colorHex?: string | undefined;
|
|
401
|
+
manualRating?: number | undefined;
|
|
400
402
|
}
|
|
401
403
|
|
|
402
404
|
export interface UpdateProductRequest_NameEntry {
|
|
@@ -429,6 +431,11 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
429
431
|
value: string;
|
|
430
432
|
}
|
|
431
433
|
|
|
434
|
+
export interface SetManualRatingRequest {
|
|
435
|
+
id: string;
|
|
436
|
+
manualRating?: number | undefined;
|
|
437
|
+
}
|
|
438
|
+
|
|
432
439
|
export interface DeleteProductRequest {
|
|
433
440
|
id: string;
|
|
434
441
|
}
|
|
@@ -832,6 +839,8 @@ export interface ProductServiceClient {
|
|
|
832
839
|
|
|
833
840
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteResponse>;
|
|
834
841
|
|
|
842
|
+
setManualRating(request: SetManualRatingRequest): Observable<SuccessResponse>;
|
|
843
|
+
|
|
835
844
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Observable<SuccessResponse>;
|
|
836
845
|
|
|
837
846
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Observable<SuccessResponse>;
|
|
@@ -914,6 +923,10 @@ export interface ProductServiceController {
|
|
|
914
923
|
|
|
915
924
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
916
925
|
|
|
926
|
+
setManualRating(
|
|
927
|
+
request: SetManualRatingRequest,
|
|
928
|
+
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
929
|
+
|
|
917
930
|
bulkUpdateStatus(
|
|
918
931
|
request: BulkUpdateStatusRequest,
|
|
919
932
|
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
@@ -1047,6 +1060,7 @@ export function ProductServiceControllerMethods() {
|
|
|
1047
1060
|
"createProduct",
|
|
1048
1061
|
"updateProduct",
|
|
1049
1062
|
"deleteProduct",
|
|
1063
|
+
"setManualRating",
|
|
1050
1064
|
"bulkUpdateStatus",
|
|
1051
1065
|
"bulkUpdateCategory",
|
|
1052
1066
|
"bulkUpdateDiscount",
|
package/package.json
CHANGED
package/proto/product.proto
CHANGED
|
@@ -13,6 +13,7 @@ service ProductService {
|
|
|
13
13
|
rpc CreateProduct (CreateProductRequest) returns (ProductDetailResponse);
|
|
14
14
|
rpc UpdateProduct (UpdateProductRequest) returns (ProductDetailResponse);
|
|
15
15
|
rpc DeleteProduct (DeleteProductRequest) returns (DeleteResponse);
|
|
16
|
+
rpc SetManualRating (SetManualRatingRequest) returns (SuccessResponse);
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
rpc BulkUpdateStatus (BulkUpdateStatusRequest) returns (SuccessResponse);
|
|
@@ -203,6 +204,7 @@ message ProductDetailResponse {
|
|
|
203
204
|
repeated ProductGroupMember group_siblings = 34;
|
|
204
205
|
float rating = 35;
|
|
205
206
|
int32 review_count = 36;
|
|
207
|
+
optional float manual_rating = 37;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
|
|
@@ -357,6 +359,12 @@ message UpdateProductRequest {
|
|
|
357
359
|
optional string group_id = 22;
|
|
358
360
|
map<string, string> color_label = 23;
|
|
359
361
|
optional string color_hex = 24;
|
|
362
|
+
optional float manual_rating = 25;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
message SetManualRatingRequest {
|
|
366
|
+
string id = 1;
|
|
367
|
+
optional float manual_rating = 2;
|
|
360
368
|
}
|
|
361
369
|
|
|
362
370
|
message DeleteProductRequest {
|