@mamindom/contracts 1.0.95 → 1.0.97
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/banner.d.ts +7 -0
- package/dist/gen/product.d.ts +6 -0
- package/dist/gen/product.js +1 -0
- package/dist/proto/banner.proto +7 -0
- package/dist/proto/product.proto +6 -0
- package/gen/banner.ts +7 -0
- package/gen/product.ts +12 -0
- package/package.json +1 -1
- package/proto/banner.proto +7 -0
- package/proto/product.proto +6 -0
package/dist/gen/banner.d.ts
CHANGED
|
@@ -283,6 +283,13 @@ export interface PublicBannerSlideButton {
|
|
|
283
283
|
text: string;
|
|
284
284
|
href: string;
|
|
285
285
|
variant?: string | undefined;
|
|
286
|
+
backgroundColor?: string | undefined;
|
|
287
|
+
textColor?: string | undefined;
|
|
288
|
+
borderColor?: string | undefined;
|
|
289
|
+
borderRadius?: string | undefined;
|
|
290
|
+
fontSize?: string | undefined;
|
|
291
|
+
paddingX?: string | undefined;
|
|
292
|
+
paddingY?: string | undefined;
|
|
286
293
|
}
|
|
287
294
|
export interface PublicBannerSlideLink {
|
|
288
295
|
text: string;
|
package/dist/gen/product.d.ts
CHANGED
|
@@ -425,6 +425,10 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
425
425
|
key: string;
|
|
426
426
|
value: string;
|
|
427
427
|
}
|
|
428
|
+
export interface SetManualRatingRequest {
|
|
429
|
+
id: string;
|
|
430
|
+
manualRating?: number | undefined;
|
|
431
|
+
}
|
|
428
432
|
export interface DeleteProductRequest {
|
|
429
433
|
id: string;
|
|
430
434
|
}
|
|
@@ -813,6 +817,7 @@ export interface ProductServiceClient {
|
|
|
813
817
|
createProduct(request: CreateProductRequest): Observable<ProductDetailResponse>;
|
|
814
818
|
updateProduct(request: UpdateProductRequest): Observable<ProductDetailResponse>;
|
|
815
819
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteResponse>;
|
|
820
|
+
setManualRating(request: SetManualRatingRequest): Observable<SuccessResponse>;
|
|
816
821
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Observable<SuccessResponse>;
|
|
817
822
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Observable<SuccessResponse>;
|
|
818
823
|
bulkUpdateDiscount(request: BulkUpdateDiscountRequest): Observable<SuccessResponse>;
|
|
@@ -851,6 +856,7 @@ export interface ProductServiceController {
|
|
|
851
856
|
createProduct(request: CreateProductRequest): Promise<ProductDetailResponse> | Observable<ProductDetailResponse> | ProductDetailResponse;
|
|
852
857
|
updateProduct(request: UpdateProductRequest): Promise<ProductDetailResponse> | Observable<ProductDetailResponse> | ProductDetailResponse;
|
|
853
858
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
859
|
+
setManualRating(request: SetManualRatingRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
854
860
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
855
861
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
856
862
|
bulkUpdateDiscount(request: BulkUpdateDiscountRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
package/dist/gen/product.js
CHANGED
package/dist/proto/banner.proto
CHANGED
|
@@ -259,6 +259,13 @@ message PublicBannerSlideButton {
|
|
|
259
259
|
string text = 1;
|
|
260
260
|
string href = 2;
|
|
261
261
|
optional string variant = 3;
|
|
262
|
+
optional string background_color = 4;
|
|
263
|
+
optional string text_color = 5;
|
|
264
|
+
optional string border_color = 6;
|
|
265
|
+
optional string border_radius = 7;
|
|
266
|
+
optional string font_size = 8;
|
|
267
|
+
optional string padding_x = 9;
|
|
268
|
+
optional string padding_y = 10;
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
message PublicBannerSlideLink {
|
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);
|
|
@@ -361,6 +362,11 @@ message UpdateProductRequest {
|
|
|
361
362
|
optional float manual_rating = 25;
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
message SetManualRatingRequest {
|
|
366
|
+
string id = 1;
|
|
367
|
+
optional float manual_rating = 2;
|
|
368
|
+
}
|
|
369
|
+
|
|
364
370
|
message DeleteProductRequest {
|
|
365
371
|
string id = 1;
|
|
366
372
|
}
|
package/gen/banner.ts
CHANGED
|
@@ -302,6 +302,13 @@ export interface PublicBannerSlideButton {
|
|
|
302
302
|
text: string;
|
|
303
303
|
href: string;
|
|
304
304
|
variant?: string | undefined;
|
|
305
|
+
backgroundColor?: string | undefined;
|
|
306
|
+
textColor?: string | undefined;
|
|
307
|
+
borderColor?: string | undefined;
|
|
308
|
+
borderRadius?: string | undefined;
|
|
309
|
+
fontSize?: string | undefined;
|
|
310
|
+
paddingX?: string | undefined;
|
|
311
|
+
paddingY?: string | undefined;
|
|
305
312
|
}
|
|
306
313
|
|
|
307
314
|
export interface PublicBannerSlideLink {
|
package/gen/product.ts
CHANGED
|
@@ -431,6 +431,11 @@ export interface UpdateProductRequest_ColorLabelEntry {
|
|
|
431
431
|
value: string;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
+
export interface SetManualRatingRequest {
|
|
435
|
+
id: string;
|
|
436
|
+
manualRating?: number | undefined;
|
|
437
|
+
}
|
|
438
|
+
|
|
434
439
|
export interface DeleteProductRequest {
|
|
435
440
|
id: string;
|
|
436
441
|
}
|
|
@@ -834,6 +839,8 @@ export interface ProductServiceClient {
|
|
|
834
839
|
|
|
835
840
|
deleteProduct(request: DeleteProductRequest): Observable<DeleteResponse>;
|
|
836
841
|
|
|
842
|
+
setManualRating(request: SetManualRatingRequest): Observable<SuccessResponse>;
|
|
843
|
+
|
|
837
844
|
bulkUpdateStatus(request: BulkUpdateStatusRequest): Observable<SuccessResponse>;
|
|
838
845
|
|
|
839
846
|
bulkUpdateCategory(request: BulkUpdateCategoryRequest): Observable<SuccessResponse>;
|
|
@@ -916,6 +923,10 @@ export interface ProductServiceController {
|
|
|
916
923
|
|
|
917
924
|
deleteProduct(request: DeleteProductRequest): Promise<DeleteResponse> | Observable<DeleteResponse> | DeleteResponse;
|
|
918
925
|
|
|
926
|
+
setManualRating(
|
|
927
|
+
request: SetManualRatingRequest,
|
|
928
|
+
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
929
|
+
|
|
919
930
|
bulkUpdateStatus(
|
|
920
931
|
request: BulkUpdateStatusRequest,
|
|
921
932
|
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
@@ -1049,6 +1060,7 @@ export function ProductServiceControllerMethods() {
|
|
|
1049
1060
|
"createProduct",
|
|
1050
1061
|
"updateProduct",
|
|
1051
1062
|
"deleteProduct",
|
|
1063
|
+
"setManualRating",
|
|
1052
1064
|
"bulkUpdateStatus",
|
|
1053
1065
|
"bulkUpdateCategory",
|
|
1054
1066
|
"bulkUpdateDiscount",
|
package/package.json
CHANGED
package/proto/banner.proto
CHANGED
|
@@ -259,6 +259,13 @@ message PublicBannerSlideButton {
|
|
|
259
259
|
string text = 1;
|
|
260
260
|
string href = 2;
|
|
261
261
|
optional string variant = 3;
|
|
262
|
+
optional string background_color = 4;
|
|
263
|
+
optional string text_color = 5;
|
|
264
|
+
optional string border_color = 6;
|
|
265
|
+
optional string border_radius = 7;
|
|
266
|
+
optional string font_size = 8;
|
|
267
|
+
optional string padding_x = 9;
|
|
268
|
+
optional string padding_y = 10;
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
message PublicBannerSlideLink {
|
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);
|
|
@@ -361,6 +362,11 @@ message UpdateProductRequest {
|
|
|
361
362
|
optional float manual_rating = 25;
|
|
362
363
|
}
|
|
363
364
|
|
|
365
|
+
message SetManualRatingRequest {
|
|
366
|
+
string id = 1;
|
|
367
|
+
optional float manual_rating = 2;
|
|
368
|
+
}
|
|
369
|
+
|
|
364
370
|
message DeleteProductRequest {
|
|
365
371
|
string id = 1;
|
|
366
372
|
}
|