@mamindom/contracts 1.0.58 → 1.0.60

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.
@@ -71,6 +71,7 @@ export interface ProductListItemResponse {
71
71
  sortOrder: number;
72
72
  categorySortOrder: number;
73
73
  barcode?: string | undefined;
74
+ videoUrl?: string | undefined;
74
75
  }
75
76
  export interface ProductListItemResponse_NameEntry {
76
77
  key: string;
@@ -171,6 +172,8 @@ export interface ProductImageResponse_AltEntry {
171
172
  export interface ProductWarehouseResponse {
172
173
  warehouseId: string;
173
174
  quantity: number;
175
+ reserved: number;
176
+ available: number;
174
177
  }
175
178
  export interface ProductVariantResponse {
176
179
  id: string;
@@ -189,6 +192,32 @@ export interface ProductVariantResponse_OptionsEntry {
189
192
  export interface ProductAttributeResponse {
190
193
  attributeId: string;
191
194
  attributeValueId: string;
195
+ attributeName: {
196
+ [key: string]: string;
197
+ };
198
+ attributeSlug: string;
199
+ displayType: string;
200
+ groupId?: string | undefined;
201
+ groupName: {
202
+ [key: string]: string;
203
+ };
204
+ value: {
205
+ [key: string]: string;
206
+ };
207
+ valueMeta?: string | undefined;
208
+ isFilterable: boolean;
209
+ }
210
+ export interface ProductAttributeResponse_AttributeNameEntry {
211
+ key: string;
212
+ value: string;
213
+ }
214
+ export interface ProductAttributeResponse_GroupNameEntry {
215
+ key: string;
216
+ value: string;
217
+ }
218
+ export interface ProductAttributeResponse_ValueEntry {
219
+ key: string;
220
+ value: string;
192
221
  }
193
222
  export interface ProductFileResponse {
194
223
  id: string;
@@ -266,6 +295,7 @@ export interface CreateProductRequest {
266
295
  sortOrder?: number | undefined;
267
296
  barcode?: string | undefined;
268
297
  sizeChartIds: string[];
298
+ videoUrl?: string | undefined;
269
299
  }
270
300
  export interface CreateProductRequest_NameEntry {
271
301
  key: string;
@@ -318,6 +348,7 @@ export interface UpdateProductRequest {
318
348
  attributeValueIds: string[];
319
349
  sortOrder?: number | undefined;
320
350
  barcode?: string | undefined;
351
+ videoUrl?: string | undefined;
321
352
  }
322
353
  export interface UpdateProductRequest_NameEntry {
323
354
  key: string;
@@ -116,6 +116,7 @@ message ProductListItemResponse {
116
116
  int32 sort_order = 12;
117
117
  int32 category_sort_order = 13;
118
118
  optional string barcode = 14;
119
+ optional string video_url = 15;
119
120
  }
120
121
 
121
122
 
@@ -169,6 +170,8 @@ message ProductImageResponse {
169
170
  message ProductWarehouseResponse {
170
171
  string warehouse_id = 1;
171
172
  int32 quantity = 2;
173
+ int32 reserved = 3;
174
+ int32 available = 4;
172
175
  }
173
176
 
174
177
  message ProductVariantResponse {
@@ -183,6 +186,16 @@ message ProductVariantResponse {
183
186
  message ProductAttributeResponse {
184
187
  string attribute_id = 1;
185
188
  string attribute_value_id = 2;
189
+
190
+
191
+ map<string, string> attribute_name = 3;
192
+ string attribute_slug = 4;
193
+ string display_type = 5;
194
+ optional string group_id = 6;
195
+ map<string, string> group_name = 7;
196
+ map<string, string> value = 8;
197
+ optional string value_meta = 9;
198
+ bool is_filterable = 10;
186
199
  }
187
200
 
188
201
  message ProductFileResponse {
@@ -258,6 +271,7 @@ message CreateProductRequest {
258
271
  optional int32 sort_order = 20;
259
272
  optional string barcode = 21;
260
273
  repeated string size_chart_ids = 22;
274
+ optional string video_url = 23;
261
275
  }
262
276
 
263
277
  message UpdateProductRequest {
@@ -287,6 +301,7 @@ message UpdateProductRequest {
287
301
 
288
302
  optional int32 sort_order = 19;
289
303
  optional string barcode = 20;
304
+ optional string video_url = 21;
290
305
  }
291
306
 
292
307
  message DeleteProductRequest {
package/gen/product.ts CHANGED
@@ -89,6 +89,7 @@ export interface ProductListItemResponse {
89
89
  sortOrder: number;
90
90
  categorySortOrder: number;
91
91
  barcode?: string | undefined;
92
+ videoUrl?: string | undefined;
92
93
  }
93
94
 
94
95
  export interface ProductListItemResponse_NameEntry {
@@ -184,6 +185,8 @@ export interface ProductImageResponse_AltEntry {
184
185
  export interface ProductWarehouseResponse {
185
186
  warehouseId: string;
186
187
  quantity: number;
188
+ reserved: number;
189
+ available: number;
187
190
  }
188
191
 
189
192
  export interface ProductVariantResponse {
@@ -203,6 +206,29 @@ export interface ProductVariantResponse_OptionsEntry {
203
206
  export interface ProductAttributeResponse {
204
207
  attributeId: string;
205
208
  attributeValueId: string;
209
+ attributeName: { [key: string]: string };
210
+ attributeSlug: string;
211
+ displayType: string;
212
+ groupId?: string | undefined;
213
+ groupName: { [key: string]: string };
214
+ value: { [key: string]: string };
215
+ valueMeta?: string | undefined;
216
+ isFilterable: boolean;
217
+ }
218
+
219
+ export interface ProductAttributeResponse_AttributeNameEntry {
220
+ key: string;
221
+ value: string;
222
+ }
223
+
224
+ export interface ProductAttributeResponse_GroupNameEntry {
225
+ key: string;
226
+ value: string;
227
+ }
228
+
229
+ export interface ProductAttributeResponse_ValueEntry {
230
+ key: string;
231
+ value: string;
206
232
  }
207
233
 
208
234
  export interface ProductFileResponse {
@@ -274,6 +300,7 @@ export interface CreateProductRequest {
274
300
  sortOrder?: number | undefined;
275
301
  barcode?: string | undefined;
276
302
  sizeChartIds: string[];
303
+ videoUrl?: string | undefined;
277
304
  }
278
305
 
279
306
  export interface CreateProductRequest_NameEntry {
@@ -322,6 +349,7 @@ export interface UpdateProductRequest {
322
349
  attributeValueIds: string[];
323
350
  sortOrder?: number | undefined;
324
351
  barcode?: string | undefined;
352
+ videoUrl?: string | undefined;
325
353
  }
326
354
 
327
355
  export interface UpdateProductRequest_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.58",
4
+ "version": "1.0.60",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -116,6 +116,7 @@ message ProductListItemResponse {
116
116
  int32 sort_order = 12;
117
117
  int32 category_sort_order = 13;
118
118
  optional string barcode = 14;
119
+ optional string video_url = 15;
119
120
  }
120
121
 
121
122
 
@@ -169,6 +170,8 @@ message ProductImageResponse {
169
170
  message ProductWarehouseResponse {
170
171
  string warehouse_id = 1;
171
172
  int32 quantity = 2;
173
+ int32 reserved = 3;
174
+ int32 available = 4;
172
175
  }
173
176
 
174
177
  message ProductVariantResponse {
@@ -183,6 +186,16 @@ message ProductVariantResponse {
183
186
  message ProductAttributeResponse {
184
187
  string attribute_id = 1;
185
188
  string attribute_value_id = 2;
189
+
190
+
191
+ map<string, string> attribute_name = 3;
192
+ string attribute_slug = 4;
193
+ string display_type = 5;
194
+ optional string group_id = 6;
195
+ map<string, string> group_name = 7;
196
+ map<string, string> value = 8;
197
+ optional string value_meta = 9;
198
+ bool is_filterable = 10;
186
199
  }
187
200
 
188
201
  message ProductFileResponse {
@@ -258,6 +271,7 @@ message CreateProductRequest {
258
271
  optional int32 sort_order = 20;
259
272
  optional string barcode = 21;
260
273
  repeated string size_chart_ids = 22;
274
+ optional string video_url = 23;
261
275
  }
262
276
 
263
277
  message UpdateProductRequest {
@@ -287,6 +301,7 @@ message UpdateProductRequest {
287
301
 
288
302
  optional int32 sort_order = 19;
289
303
  optional string barcode = 20;
304
+ optional string video_url = 21;
290
305
  }
291
306
 
292
307
  message DeleteProductRequest {