@mamindom/contracts 1.0.35 → 1.0.36

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.
@@ -16,6 +16,7 @@ export interface BrandResponse {
16
16
  [key: string]: string;
17
17
  };
18
18
  guid1c?: string | undefined;
19
+ imageId?: string | undefined;
19
20
  }
20
21
  export interface BrandResponse_DescriptionEntry {
21
22
  key: string;
@@ -54,6 +55,7 @@ export interface CreateBrandRequest {
54
55
  [key: string]: string;
55
56
  };
56
57
  guid1c?: string | undefined;
58
+ imageId?: string | undefined;
57
59
  }
58
60
  export interface CreateBrandRequest_DescriptionEntry {
59
61
  key: string;
@@ -81,6 +83,7 @@ export interface UpdateBrandRequest {
81
83
  metaDescription: {
82
84
  [key: string]: string;
83
85
  };
86
+ imageId?: string | undefined;
84
87
  }
85
88
  export interface UpdateBrandRequest_DescriptionEntry {
86
89
  key: string;
@@ -41,6 +41,7 @@ export interface CategoryResponse {
41
41
  [key: string]: string;
42
42
  };
43
43
  guid1c?: string | undefined;
44
+ imageId?: string | undefined;
44
45
  }
45
46
  export interface CategoryResponse_NameEntry {
46
47
  key: string;
@@ -95,6 +96,7 @@ export interface CreateCategoryRequest {
95
96
  [key: string]: string;
96
97
  };
97
98
  guid1c?: string | undefined;
99
+ imageId?: string | undefined;
98
100
  }
99
101
  export interface CreateCategoryRequest_NameEntry {
100
102
  key: string;
@@ -145,6 +147,7 @@ export interface UpdateCategoryRequest {
145
147
  metaH1: {
146
148
  [key: string]: string;
147
149
  };
150
+ imageId?: string | undefined;
148
151
  }
149
152
  export interface UpdateCategoryRequest_NameEntry {
150
153
  key: string;
@@ -70,6 +70,7 @@ export interface ProductDetailResponse {
70
70
  variants: ProductVariantResponse[];
71
71
  attributes: ProductAttributeResponse[];
72
72
  files: ProductFileResponse[];
73
+ mainImageId?: string | undefined;
73
74
  }
74
75
  export interface ProductDetailResponse_NameEntry {
75
76
  key: string;
@@ -110,6 +111,7 @@ export interface ProductImageResponse {
110
111
  [key: string]: string;
111
112
  };
112
113
  sortOrder: number;
114
+ mediaId: string;
113
115
  }
114
116
  export interface ProductImageResponse_AltEntry {
115
117
  key: string;
@@ -193,6 +195,8 @@ export interface CreateProductRequest {
193
195
  guid1c?: string | undefined;
194
196
  categoryIds: string[];
195
197
  createdById: string;
198
+ mainImageId?: string | undefined;
199
+ images: ProductImagePayload[];
196
200
  }
197
201
  export interface CreateProductRequest_NameEntry {
198
202
  key: string;
@@ -239,6 +243,8 @@ export interface UpdateProductRequest {
239
243
  };
240
244
  mainImage?: string | undefined;
241
245
  categoryIds: string[];
246
+ mainImageId?: string | undefined;
247
+ images: ProductImagePayload[];
242
248
  }
243
249
  export interface UpdateProductRequest_NameEntry {
244
250
  key: string;
@@ -276,6 +282,11 @@ export interface BulkUpdateDiscountRequest {
276
282
  productIds: string[];
277
283
  discountPercentage: number;
278
284
  }
285
+ export interface ProductImagePayload {
286
+ url: string;
287
+ mediaId: string;
288
+ sortOrder: number;
289
+ }
279
290
  export declare const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
280
291
  export interface ProductServiceClient {
281
292
  getProducts(request: GetProductsRequest): Observable<GetProductsResponse>;
@@ -28,6 +28,7 @@ message BrandResponse {
28
28
  map<string, string> meta_description = 7;
29
29
 
30
30
  optional string guid_1c = 8;
31
+ optional string image_id = 9;
31
32
  }
32
33
 
33
34
 
@@ -56,6 +57,7 @@ message CreateBrandRequest {
56
57
  map<string, string> meta_description = 6;
57
58
 
58
59
  optional string guid_1c = 7;
60
+ optional string image_id = 8;
59
61
  }
60
62
 
61
63
  message UpdateBrandRequest {
@@ -67,6 +69,7 @@ message UpdateBrandRequest {
67
69
  map<string, string> description = 5;
68
70
  map<string, string> meta_title = 6;
69
71
  map<string, string> meta_description = 7;
72
+ optional string image_id = 8;
70
73
  }
71
74
 
72
75
  message DeleteBrandRequest {
@@ -55,6 +55,7 @@ message CategoryResponse {
55
55
  map<string, string> meta_h1 = 12;
56
56
 
57
57
  optional string guid_1c = 13;
58
+ optional string image_id = 14;
58
59
  }
59
60
 
60
61
  message GetCategoryRequest {
@@ -78,6 +79,7 @@ message CreateCategoryRequest {
78
79
  map<string, string> meta_h1 = 11;
79
80
 
80
81
  optional string guid_1c = 12;
82
+ optional string image_id = 13;
81
83
  }
82
84
 
83
85
  message UpdateCategoryRequest {
@@ -95,6 +97,8 @@ message UpdateCategoryRequest {
95
97
  map<string, string> meta_description = 10;
96
98
  map<string, string> meta_keywords = 11;
97
99
  map<string, string> meta_h1 = 12;
100
+
101
+ optional string image_id = 13;
98
102
  }
99
103
 
100
104
  message DeleteCategoryRequest {
@@ -74,6 +74,7 @@ message ProductDetailResponse {
74
74
  repeated ProductVariantResponse variants = 23;
75
75
  repeated ProductAttributeResponse attributes = 24;
76
76
  repeated ProductFileResponse files = 25;
77
+ optional string main_image_id = 26;
77
78
  }
78
79
 
79
80
 
@@ -82,6 +83,7 @@ message ProductImageResponse {
82
83
  string url = 2;
83
84
  map<string, string> alt = 3;
84
85
  int32 sort_order = 4;
86
+ string media_id = 5;
85
87
  }
86
88
 
87
89
  message ProductWarehouseResponse {
@@ -161,6 +163,9 @@ message CreateProductRequest {
161
163
  repeated string category_ids = 14;
162
164
 
163
165
  string created_by_id = 15;
166
+
167
+ optional string main_image_id = 16;
168
+ repeated ProductImagePayload images = 17;
164
169
  }
165
170
 
166
171
  message UpdateProductRequest {
@@ -182,6 +187,9 @@ message UpdateProductRequest {
182
187
 
183
188
  optional string main_image = 13;
184
189
  repeated string category_ids = 14;
190
+
191
+ optional string main_image_id = 15;
192
+ repeated ProductImagePayload images = 16;
185
193
  }
186
194
 
187
195
  message DeleteProductRequest {
@@ -205,6 +213,12 @@ message BulkUpdateDiscountRequest {
205
213
  double discount_percentage = 2;
206
214
  }
207
215
 
216
+ message ProductImagePayload {
217
+ string url = 1;
218
+ string media_id = 2;
219
+ int32 sort_order = 3;
220
+ }
221
+
208
222
  enum ProductStatus {
209
223
  PRODUCT_STATUS_UNSPECIFIED = 0;
210
224
  PRODUCT_STATUS_DRAFT = 1;
package/gen/brand.ts CHANGED
@@ -20,6 +20,7 @@ export interface BrandResponse {
20
20
  metaTitle: { [key: string]: string };
21
21
  metaDescription: { [key: string]: string };
22
22
  guid1c?: string | undefined;
23
+ imageId?: string | undefined;
23
24
  }
24
25
 
25
26
  export interface BrandResponse_DescriptionEntry {
@@ -59,6 +60,7 @@ export interface CreateBrandRequest {
59
60
  metaTitle: { [key: string]: string };
60
61
  metaDescription: { [key: string]: string };
61
62
  guid1c?: string | undefined;
63
+ imageId?: string | undefined;
62
64
  }
63
65
 
64
66
  export interface CreateBrandRequest_DescriptionEntry {
@@ -84,6 +86,7 @@ export interface UpdateBrandRequest {
84
86
  description: { [key: string]: string };
85
87
  metaTitle: { [key: string]: string };
86
88
  metaDescription: { [key: string]: string };
89
+ imageId?: string | undefined;
87
90
  }
88
91
 
89
92
  export interface UpdateBrandRequest_DescriptionEntry {
package/gen/category.ts CHANGED
@@ -42,6 +42,7 @@ export interface CategoryResponse {
42
42
  metaKeywords: { [key: string]: string };
43
43
  metaH1: { [key: string]: string };
44
44
  guid1c?: string | undefined;
45
+ imageId?: string | undefined;
45
46
  }
46
47
 
47
48
  export interface CategoryResponse_NameEntry {
@@ -92,6 +93,7 @@ export interface CreateCategoryRequest {
92
93
  metaKeywords: { [key: string]: string };
93
94
  metaH1: { [key: string]: string };
94
95
  guid1c?: string | undefined;
96
+ imageId?: string | undefined;
95
97
  }
96
98
 
97
99
  export interface CreateCategoryRequest_NameEntry {
@@ -137,6 +139,7 @@ export interface UpdateCategoryRequest {
137
139
  metaDescription: { [key: string]: string };
138
140
  metaKeywords: { [key: string]: string };
139
141
  metaH1: { [key: string]: string };
142
+ imageId?: string | undefined;
140
143
  }
141
144
 
142
145
  export interface UpdateCategoryRequest_NameEntry {
package/gen/product.ts CHANGED
@@ -65,6 +65,7 @@ export interface ProductDetailResponse {
65
65
  variants: ProductVariantResponse[];
66
66
  attributes: ProductAttributeResponse[];
67
67
  files: ProductFileResponse[];
68
+ mainImageId?: string | undefined;
68
69
  }
69
70
 
70
71
  export interface ProductDetailResponse_NameEntry {
@@ -112,6 +113,7 @@ export interface ProductImageResponse {
112
113
  url: string;
113
114
  alt: { [key: string]: string };
114
115
  sortOrder: number;
116
+ mediaId: string;
115
117
  }
116
118
 
117
119
  export interface ProductImageResponse_AltEntry {
@@ -192,6 +194,8 @@ export interface CreateProductRequest {
192
194
  guid1c?: string | undefined;
193
195
  categoryIds: string[];
194
196
  createdById: string;
197
+ mainImageId?: string | undefined;
198
+ images: ProductImagePayload[];
195
199
  }
196
200
 
197
201
  export interface CreateProductRequest_NameEntry {
@@ -234,6 +238,8 @@ export interface UpdateProductRequest {
234
238
  metaDescription: { [key: string]: string };
235
239
  mainImage?: string | undefined;
236
240
  categoryIds: string[];
241
+ mainImageId?: string | undefined;
242
+ images: ProductImagePayload[];
237
243
  }
238
244
 
239
245
  export interface UpdateProductRequest_NameEntry {
@@ -281,6 +287,12 @@ export interface BulkUpdateDiscountRequest {
281
287
  discountPercentage: number;
282
288
  }
283
289
 
290
+ export interface ProductImagePayload {
291
+ url: string;
292
+ mediaId: string;
293
+ sortOrder: number;
294
+ }
295
+
284
296
  export const CATALOG_V1_PACKAGE_NAME = "catalog.v1";
285
297
 
286
298
  export interface ProductServiceClient {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.35",
4
+ "version": "1.0.36",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
package/proto/brand.proto CHANGED
@@ -28,6 +28,7 @@ message BrandResponse {
28
28
  map<string, string> meta_description = 7;
29
29
 
30
30
  optional string guid_1c = 8;
31
+ optional string image_id = 9;
31
32
  }
32
33
 
33
34
 
@@ -56,6 +57,7 @@ message CreateBrandRequest {
56
57
  map<string, string> meta_description = 6;
57
58
 
58
59
  optional string guid_1c = 7;
60
+ optional string image_id = 8;
59
61
  }
60
62
 
61
63
  message UpdateBrandRequest {
@@ -67,6 +69,7 @@ message UpdateBrandRequest {
67
69
  map<string, string> description = 5;
68
70
  map<string, string> meta_title = 6;
69
71
  map<string, string> meta_description = 7;
72
+ optional string image_id = 8;
70
73
  }
71
74
 
72
75
  message DeleteBrandRequest {
@@ -55,6 +55,7 @@ message CategoryResponse {
55
55
  map<string, string> meta_h1 = 12;
56
56
 
57
57
  optional string guid_1c = 13;
58
+ optional string image_id = 14;
58
59
  }
59
60
 
60
61
  message GetCategoryRequest {
@@ -78,6 +79,7 @@ message CreateCategoryRequest {
78
79
  map<string, string> meta_h1 = 11;
79
80
 
80
81
  optional string guid_1c = 12;
82
+ optional string image_id = 13;
81
83
  }
82
84
 
83
85
  message UpdateCategoryRequest {
@@ -95,6 +97,8 @@ message UpdateCategoryRequest {
95
97
  map<string, string> meta_description = 10;
96
98
  map<string, string> meta_keywords = 11;
97
99
  map<string, string> meta_h1 = 12;
100
+
101
+ optional string image_id = 13;
98
102
  }
99
103
 
100
104
  message DeleteCategoryRequest {
@@ -74,6 +74,7 @@ message ProductDetailResponse {
74
74
  repeated ProductVariantResponse variants = 23;
75
75
  repeated ProductAttributeResponse attributes = 24;
76
76
  repeated ProductFileResponse files = 25;
77
+ optional string main_image_id = 26;
77
78
  }
78
79
 
79
80
 
@@ -82,6 +83,7 @@ message ProductImageResponse {
82
83
  string url = 2;
83
84
  map<string, string> alt = 3;
84
85
  int32 sort_order = 4;
86
+ string media_id = 5;
85
87
  }
86
88
 
87
89
  message ProductWarehouseResponse {
@@ -161,6 +163,9 @@ message CreateProductRequest {
161
163
  repeated string category_ids = 14;
162
164
 
163
165
  string created_by_id = 15;
166
+
167
+ optional string main_image_id = 16;
168
+ repeated ProductImagePayload images = 17;
164
169
  }
165
170
 
166
171
  message UpdateProductRequest {
@@ -182,6 +187,9 @@ message UpdateProductRequest {
182
187
 
183
188
  optional string main_image = 13;
184
189
  repeated string category_ids = 14;
190
+
191
+ optional string main_image_id = 15;
192
+ repeated ProductImagePayload images = 16;
185
193
  }
186
194
 
187
195
  message DeleteProductRequest {
@@ -205,6 +213,12 @@ message BulkUpdateDiscountRequest {
205
213
  double discount_percentage = 2;
206
214
  }
207
215
 
216
+ message ProductImagePayload {
217
+ string url = 1;
218
+ string media_id = 2;
219
+ int32 sort_order = 3;
220
+ }
221
+
208
222
  enum ProductStatus {
209
223
  PRODUCT_STATUS_UNSPECIFIED = 0;
210
224
  PRODUCT_STATUS_DRAFT = 1;