@mamindom/contracts 1.0.77 → 1.0.79

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.
@@ -134,7 +134,7 @@ export interface ProductDetailResponse {
134
134
  categoryIds: string[];
135
135
  images: ProductImageResponse[];
136
136
  warehouses: ProductWarehouseResponse[];
137
- variants: ProductVariantResponse[];
137
+ variants: ProductVariantDetailResponse[];
138
138
  attributes: ProductAttributeResponse[];
139
139
  files: ProductFileResponse[];
140
140
  mainImageId?: string | undefined;
@@ -54,12 +54,14 @@ export interface BulkAssignSizeChartRequest {
54
54
  productIds: string[];
55
55
  categoryIds: string[];
56
56
  brandIds: string[];
57
+ variantIds: string[];
57
58
  }
58
59
  export interface BulkRemoveSizeChartRequest {
59
60
  sizeChartId: string;
60
61
  productIds: string[];
61
62
  categoryIds: string[];
62
63
  brandIds: string[];
64
+ variantIds: string[];
63
65
  }
64
66
  export interface GetSizeChartsRequest {
65
67
  pagination: PaginationRequest | undefined;
@@ -186,7 +186,7 @@ message ProductDetailResponse {
186
186
  repeated string category_ids = 20;
187
187
  repeated ProductImageResponse images = 21;
188
188
  repeated ProductWarehouseResponse warehouses = 22;
189
- repeated ProductVariantResponse variants = 23;
189
+ repeated ProductVariantDetailResponse variants = 23;
190
190
  repeated ProductAttributeResponse attributes = 24;
191
191
  repeated ProductFileResponse files = 25;
192
192
  optional string main_image_id = 26;
@@ -58,6 +58,7 @@ message BulkAssignSizeChartRequest {
58
58
  repeated string product_ids = 2;
59
59
  repeated string category_ids = 3;
60
60
  repeated string brand_ids = 4;
61
+ repeated string variant_ids = 5;
61
62
  }
62
63
 
63
64
  message BulkRemoveSizeChartRequest {
@@ -65,6 +66,7 @@ message BulkRemoveSizeChartRequest {
65
66
  repeated string product_ids = 2;
66
67
  repeated string category_ids = 3;
67
68
  repeated string brand_ids = 4;
69
+ repeated string variant_ids = 5;
68
70
  }
69
71
 
70
72
  message GetSizeChartsRequest {
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: ProductVariantResponse[];
143
+ variants: ProductVariantDetailResponse[];
144
144
  attributes: ProductAttributeResponse[];
145
145
  files: ProductFileResponse[];
146
146
  mainImageId?: string | undefined;
package/gen/size_chart.ts CHANGED
@@ -67,6 +67,7 @@ export interface BulkAssignSizeChartRequest {
67
67
  productIds: string[];
68
68
  categoryIds: string[];
69
69
  brandIds: string[];
70
+ variantIds: string[];
70
71
  }
71
72
 
72
73
  export interface BulkRemoveSizeChartRequest {
@@ -74,6 +75,7 @@ export interface BulkRemoveSizeChartRequest {
74
75
  productIds: string[];
75
76
  categoryIds: string[];
76
77
  brandIds: string[];
78
+ variantIds: string[];
77
79
  }
78
80
 
79
81
  export interface GetSizeChartsRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.77",
4
+ "version": "1.0.79",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -186,7 +186,7 @@ message ProductDetailResponse {
186
186
  repeated string category_ids = 20;
187
187
  repeated ProductImageResponse images = 21;
188
188
  repeated ProductWarehouseResponse warehouses = 22;
189
- repeated ProductVariantResponse variants = 23;
189
+ repeated ProductVariantDetailResponse variants = 23;
190
190
  repeated ProductAttributeResponse attributes = 24;
191
191
  repeated ProductFileResponse files = 25;
192
192
  optional string main_image_id = 26;
@@ -58,6 +58,7 @@ message BulkAssignSizeChartRequest {
58
58
  repeated string product_ids = 2;
59
59
  repeated string category_ids = 3;
60
60
  repeated string brand_ids = 4;
61
+ repeated string variant_ids = 5;
61
62
  }
62
63
 
63
64
  message BulkRemoveSizeChartRequest {
@@ -65,6 +66,7 @@ message BulkRemoveSizeChartRequest {
65
66
  repeated string product_ids = 2;
66
67
  repeated string category_ids = 3;
67
68
  repeated string brand_ids = 4;
69
+ repeated string variant_ids = 5;
68
70
  }
69
71
 
70
72
  message GetSizeChartsRequest {