@mamindom/contracts 1.0.76 → 1.0.78
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 +18 -1
- package/dist/gen/product.js +3 -0
- package/dist/proto/product.proto +21 -1
- package/dist/proto/size_chart.proto +1 -0
- package/gen/product.ts +36 -1
- package/package.json +1 -1
- package/proto/product.proto +21 -1
- package/proto/size_chart.proto +1 -0
package/dist/gen/product.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ export interface ProductDetailResponse {
|
|
|
134
134
|
categoryIds: string[];
|
|
135
135
|
images: ProductImageResponse[];
|
|
136
136
|
warehouses: ProductWarehouseResponse[];
|
|
137
|
-
variants:
|
|
137
|
+
variants: ProductVariantDetailResponse[];
|
|
138
138
|
attributes: ProductAttributeResponse[];
|
|
139
139
|
files: ProductFileResponse[];
|
|
140
140
|
mainImageId?: string | undefined;
|
|
@@ -787,6 +787,17 @@ export interface UpdateProductVariantRequest_MetaDescriptionEntry {
|
|
|
787
787
|
export interface GetProductVariantRequest {
|
|
788
788
|
id: string;
|
|
789
789
|
}
|
|
790
|
+
export interface AssignVariantSizeChartsRequest {
|
|
791
|
+
variantId: string;
|
|
792
|
+
sizeChartIds: string[];
|
|
793
|
+
}
|
|
794
|
+
export interface RemoveVariantSizeChartRequest {
|
|
795
|
+
variantId: string;
|
|
796
|
+
sizeChartId: string;
|
|
797
|
+
}
|
|
798
|
+
export interface GetVariantSizeChartsRequest {
|
|
799
|
+
variantId: string;
|
|
800
|
+
}
|
|
790
801
|
export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
791
802
|
export interface ProductServiceClient {
|
|
792
803
|
getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
|
|
@@ -822,6 +833,9 @@ export interface ProductServiceClient {
|
|
|
822
833
|
createProductVariant(request: CreateProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
823
834
|
updateProductVariant(request: UpdateProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
824
835
|
getProductVariant(request: GetProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
836
|
+
assignVariantSizeCharts(request: AssignVariantSizeChartsRequest): Observable<SuccessResponse>;
|
|
837
|
+
removeVariantSizeChart(request: RemoveVariantSizeChartRequest): Observable<SuccessResponse>;
|
|
838
|
+
getVariantSizeCharts(request: GetVariantSizeChartsRequest): Observable<GetProductSizeChartsResponse>;
|
|
825
839
|
}
|
|
826
840
|
export interface ProductServiceController {
|
|
827
841
|
getProducts(request: GetProductsRequest): Promise<GetProductsResponse> | Observable<GetProductsResponse> | GetProductsResponse;
|
|
@@ -857,6 +871,9 @@ export interface ProductServiceController {
|
|
|
857
871
|
createProductVariant(request: CreateProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
858
872
|
updateProductVariant(request: UpdateProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
859
873
|
getProductVariant(request: GetProductVariantRequest): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
874
|
+
assignVariantSizeCharts(request: AssignVariantSizeChartsRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
875
|
+
removeVariantSizeChart(request: RemoveVariantSizeChartRequest): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
876
|
+
getVariantSizeCharts(request: GetVariantSizeChartsRequest): Promise<GetProductSizeChartsResponse> | Observable<GetProductSizeChartsResponse> | GetProductSizeChartsResponse;
|
|
860
877
|
}
|
|
861
878
|
export declare function ProductServiceControllerMethods(): (constructor: Function) => void;
|
|
862
879
|
export declare const PRODUCT_SERVICE_NAME = "ProductService";
|
package/dist/gen/product.js
CHANGED
|
@@ -72,6 +72,9 @@ function ProductServiceControllerMethods() {
|
|
|
72
72
|
"createProductVariant",
|
|
73
73
|
"updateProductVariant",
|
|
74
74
|
"getProductVariant",
|
|
75
|
+
"assignVariantSizeCharts",
|
|
76
|
+
"removeVariantSizeChart",
|
|
77
|
+
"getVariantSizeCharts",
|
|
75
78
|
];
|
|
76
79
|
for (const method of grpcMethods) {
|
|
77
80
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/dist/proto/product.proto
CHANGED
|
@@ -63,6 +63,12 @@ service ProductService {
|
|
|
63
63
|
rpc CreateProductVariant (CreateProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
64
64
|
rpc UpdateProductVariant (UpdateProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
65
65
|
rpc GetProductVariant (GetProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
rpc AssignVariantSizeCharts (AssignVariantSizeChartsRequest) returns (SuccessResponse);
|
|
70
|
+
rpc RemoveVariantSizeChart (RemoveVariantSizeChartRequest) returns (SuccessResponse);
|
|
71
|
+
rpc GetVariantSizeCharts (GetVariantSizeChartsRequest) returns (GetProductSizeChartsResponse);
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
|
|
@@ -180,7 +186,7 @@ message ProductDetailResponse {
|
|
|
180
186
|
repeated string category_ids = 20;
|
|
181
187
|
repeated ProductImageResponse images = 21;
|
|
182
188
|
repeated ProductWarehouseResponse warehouses = 22;
|
|
183
|
-
repeated
|
|
189
|
+
repeated ProductVariantDetailResponse variants = 23;
|
|
184
190
|
repeated ProductAttributeResponse attributes = 24;
|
|
185
191
|
repeated ProductFileResponse files = 25;
|
|
186
192
|
optional string main_image_id = 26;
|
|
@@ -645,4 +651,18 @@ message UpdateProductVariantRequest {
|
|
|
645
651
|
|
|
646
652
|
message GetProductVariantRequest {
|
|
647
653
|
string id = 1;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
message AssignVariantSizeChartsRequest {
|
|
657
|
+
string variant_id = 1;
|
|
658
|
+
repeated string size_chart_ids = 2;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
message RemoveVariantSizeChartRequest {
|
|
662
|
+
string variant_id = 1;
|
|
663
|
+
string size_chart_id = 2;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
message GetVariantSizeChartsRequest {
|
|
667
|
+
string variant_id = 1;
|
|
648
668
|
}
|
package/gen/product.ts
CHANGED
|
@@ -140,7 +140,7 @@ export interface ProductDetailResponse {
|
|
|
140
140
|
categoryIds: string[];
|
|
141
141
|
images: ProductImageResponse[];
|
|
142
142
|
warehouses: ProductWarehouseResponse[];
|
|
143
|
-
variants:
|
|
143
|
+
variants: ProductVariantDetailResponse[];
|
|
144
144
|
attributes: ProductAttributeResponse[];
|
|
145
145
|
files: ProductFileResponse[];
|
|
146
146
|
mainImageId?: string | undefined;
|
|
@@ -799,6 +799,20 @@ export interface GetProductVariantRequest {
|
|
|
799
799
|
id: string;
|
|
800
800
|
}
|
|
801
801
|
|
|
802
|
+
export interface AssignVariantSizeChartsRequest {
|
|
803
|
+
variantId: string;
|
|
804
|
+
sizeChartIds: string[];
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export interface RemoveVariantSizeChartRequest {
|
|
808
|
+
variantId: string;
|
|
809
|
+
sizeChartId: string;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export interface GetVariantSizeChartsRequest {
|
|
813
|
+
variantId: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
802
816
|
export const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
|
|
803
817
|
|
|
804
818
|
export interface ProductServiceClient {
|
|
@@ -867,6 +881,12 @@ export interface ProductServiceClient {
|
|
|
867
881
|
updateProductVariant(request: UpdateProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
868
882
|
|
|
869
883
|
getProductVariant(request: GetProductVariantRequest): Observable<ProductVariantDetailResponse>;
|
|
884
|
+
|
|
885
|
+
assignVariantSizeCharts(request: AssignVariantSizeChartsRequest): Observable<SuccessResponse>;
|
|
886
|
+
|
|
887
|
+
removeVariantSizeChart(request: RemoveVariantSizeChartRequest): Observable<SuccessResponse>;
|
|
888
|
+
|
|
889
|
+
getVariantSizeCharts(request: GetVariantSizeChartsRequest): Observable<GetProductSizeChartsResponse>;
|
|
870
890
|
}
|
|
871
891
|
|
|
872
892
|
export interface ProductServiceController {
|
|
@@ -999,6 +1019,18 @@ export interface ProductServiceController {
|
|
|
999
1019
|
getProductVariant(
|
|
1000
1020
|
request: GetProductVariantRequest,
|
|
1001
1021
|
): Promise<ProductVariantDetailResponse> | Observable<ProductVariantDetailResponse> | ProductVariantDetailResponse;
|
|
1022
|
+
|
|
1023
|
+
assignVariantSizeCharts(
|
|
1024
|
+
request: AssignVariantSizeChartsRequest,
|
|
1025
|
+
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
1026
|
+
|
|
1027
|
+
removeVariantSizeChart(
|
|
1028
|
+
request: RemoveVariantSizeChartRequest,
|
|
1029
|
+
): Promise<SuccessResponse> | Observable<SuccessResponse> | SuccessResponse;
|
|
1030
|
+
|
|
1031
|
+
getVariantSizeCharts(
|
|
1032
|
+
request: GetVariantSizeChartsRequest,
|
|
1033
|
+
): Promise<GetProductSizeChartsResponse> | Observable<GetProductSizeChartsResponse> | GetProductSizeChartsResponse;
|
|
1002
1034
|
}
|
|
1003
1035
|
|
|
1004
1036
|
export function ProductServiceControllerMethods() {
|
|
@@ -1037,6 +1069,9 @@ export function ProductServiceControllerMethods() {
|
|
|
1037
1069
|
"createProductVariant",
|
|
1038
1070
|
"updateProductVariant",
|
|
1039
1071
|
"getProductVariant",
|
|
1072
|
+
"assignVariantSizeCharts",
|
|
1073
|
+
"removeVariantSizeChart",
|
|
1074
|
+
"getVariantSizeCharts",
|
|
1040
1075
|
];
|
|
1041
1076
|
for (const method of grpcMethods) {
|
|
1042
1077
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
package/proto/product.proto
CHANGED
|
@@ -63,6 +63,12 @@ service ProductService {
|
|
|
63
63
|
rpc CreateProductVariant (CreateProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
64
64
|
rpc UpdateProductVariant (UpdateProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
65
65
|
rpc GetProductVariant (GetProductVariantRequest) returns (ProductVariantDetailResponse);
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
rpc AssignVariantSizeCharts (AssignVariantSizeChartsRequest) returns (SuccessResponse);
|
|
70
|
+
rpc RemoveVariantSizeChart (RemoveVariantSizeChartRequest) returns (SuccessResponse);
|
|
71
|
+
rpc GetVariantSizeCharts (GetVariantSizeChartsRequest) returns (GetProductSizeChartsResponse);
|
|
66
72
|
}
|
|
67
73
|
|
|
68
74
|
|
|
@@ -180,7 +186,7 @@ message ProductDetailResponse {
|
|
|
180
186
|
repeated string category_ids = 20;
|
|
181
187
|
repeated ProductImageResponse images = 21;
|
|
182
188
|
repeated ProductWarehouseResponse warehouses = 22;
|
|
183
|
-
repeated
|
|
189
|
+
repeated ProductVariantDetailResponse variants = 23;
|
|
184
190
|
repeated ProductAttributeResponse attributes = 24;
|
|
185
191
|
repeated ProductFileResponse files = 25;
|
|
186
192
|
optional string main_image_id = 26;
|
|
@@ -645,4 +651,18 @@ message UpdateProductVariantRequest {
|
|
|
645
651
|
|
|
646
652
|
message GetProductVariantRequest {
|
|
647
653
|
string id = 1;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
message AssignVariantSizeChartsRequest {
|
|
657
|
+
string variant_id = 1;
|
|
658
|
+
repeated string size_chart_ids = 2;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
message RemoveVariantSizeChartRequest {
|
|
662
|
+
string variant_id = 1;
|
|
663
|
+
string size_chart_id = 2;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
message GetVariantSizeChartsRequest {
|
|
667
|
+
string variant_id = 1;
|
|
648
668
|
}
|