@mamindom/contracts 1.0.177 → 1.0.179

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.
@@ -18,6 +18,7 @@ export interface AttributeSyncItem {
18
18
  };
19
19
  isColor: boolean;
20
20
  values: AttributeSyncValueItem[];
21
+ isSize: boolean;
21
22
  }
22
23
  export interface AttributeSyncItem_NameEntry {
23
24
  key: string;
@@ -117,6 +118,7 @@ export interface AttributeResponse {
117
118
  sortOrder: number;
118
119
  guid1c?: string | undefined;
119
120
  isFilterable: boolean;
121
+ kind: string;
120
122
  }
121
123
  export interface AttributeResponse_NameEntry {
122
124
  key: string;
@@ -144,6 +146,7 @@ export interface CreateAttributeRequest {
144
146
  sortOrder: number;
145
147
  guid1c?: string | undefined;
146
148
  isFilterable: boolean;
149
+ kind?: string | undefined;
147
150
  }
148
151
  export interface CreateAttributeRequest_NameEntry {
149
152
  key: string;
@@ -159,6 +162,7 @@ export interface UpdateAttributeRequest {
159
162
  displayType?: string | undefined;
160
163
  sortOrder?: number | undefined;
161
164
  isFilterable?: boolean | undefined;
165
+ kind?: string | undefined;
162
166
  }
163
167
  export interface UpdateAttributeRequest_NameEntry {
164
168
  key: string;
@@ -178,6 +178,7 @@ export interface PromotionListItem {
178
178
  discountType: DiscountType;
179
179
  source?: string | undefined;
180
180
  planfixId?: string | undefined;
181
+ seoSlug?: string | undefined;
181
182
  }
182
183
  export interface PromotionListItem_NameEntry {
183
184
  key: string;
@@ -35,6 +35,9 @@ export interface ShopFilterOption {
35
35
  label: string;
36
36
  count: number;
37
37
  slug?: string | undefined;
38
+ /** Для розмірів: атрибут-джерело значення (вкладки у фільтрі «Розмір»). */
39
+ groupSlug?: string | undefined;
40
+ groupLabel?: string | undefined;
38
41
  }
39
42
  export interface ShopFilterColorOption {
40
43
  value: string;
@@ -40,6 +40,7 @@ message AttributeSyncItem {
40
40
  map<string, string> name = 2;
41
41
  bool is_color = 3;
42
42
  repeated AttributeSyncValueItem values = 4;
43
+ bool is_size = 5;
43
44
  }
44
45
 
45
46
  message UpsertAttributesRequest {
@@ -122,6 +123,7 @@ message AttributeResponse {
122
123
  int32 sort_order = 6;
123
124
  optional string guid1c = 7;
124
125
  bool is_filterable = 8;
126
+ string kind = 9;
125
127
  }
126
128
 
127
129
  message GetAttributesRequest {
@@ -147,6 +149,7 @@ message CreateAttributeRequest {
147
149
  int32 sort_order = 5;
148
150
  optional string guid1c = 6;
149
151
  bool is_filterable = 7;
152
+ optional string kind = 8;
150
153
  }
151
154
 
152
155
  message UpdateAttributeRequest {
@@ -157,6 +160,7 @@ message UpdateAttributeRequest {
157
160
  optional string display_type = 5;
158
161
  optional int32 sort_order = 6;
159
162
  optional bool is_filterable = 7;
163
+ optional string kind = 8;
160
164
  }
161
165
 
162
166
  message DeleteAttributeRequest {
@@ -215,6 +215,7 @@ message PromotionListItem {
215
215
  DiscountType discount_type = 15;
216
216
  optional string source = 16;
217
217
  optional string planfix_id = 17;
218
+ optional string seo_slug = 18;
218
219
  }
219
220
 
220
221
 
@@ -62,6 +62,10 @@ message ShopFilterOption {
62
62
  int32 count = 3;
63
63
 
64
64
  optional string slug = 4;
65
+
66
+ // Для розмірів: атрибут-джерело значення (вкладки у фільтрі «Розмір»).
67
+ optional string group_slug = 5;
68
+ optional string group_label = 6;
65
69
  }
66
70
 
67
71
  message ShopFilterColorOption {
package/gen/attribute.ts CHANGED
@@ -26,6 +26,7 @@ export interface AttributeSyncItem {
26
26
  name: { [key: string]: string };
27
27
  isColor: boolean;
28
28
  values: AttributeSyncValueItem[];
29
+ isSize: boolean;
29
30
  }
30
31
 
31
32
  export interface AttributeSyncItem_NameEntry {
@@ -134,6 +135,7 @@ export interface AttributeResponse {
134
135
  sortOrder: number;
135
136
  guid1c?: string | undefined;
136
137
  isFilterable: boolean;
138
+ kind: string;
137
139
  }
138
140
 
139
141
  export interface AttributeResponse_NameEntry {
@@ -164,6 +166,7 @@ export interface CreateAttributeRequest {
164
166
  sortOrder: number;
165
167
  guid1c?: string | undefined;
166
168
  isFilterable: boolean;
169
+ kind?: string | undefined;
167
170
  }
168
171
 
169
172
  export interface CreateAttributeRequest_NameEntry {
@@ -179,6 +182,7 @@ export interface UpdateAttributeRequest {
179
182
  displayType?: string | undefined;
180
183
  sortOrder?: number | undefined;
181
184
  isFilterable?: boolean | undefined;
185
+ kind?: string | undefined;
182
186
  }
183
187
 
184
188
  export interface UpdateAttributeRequest_NameEntry {
package/gen/promotion.ts CHANGED
@@ -195,6 +195,7 @@ export interface PromotionListItem {
195
195
  discountType: DiscountType;
196
196
  source?: string | undefined;
197
197
  planfixId?: string | undefined;
198
+ seoSlug?: string | undefined;
198
199
  }
199
200
 
200
201
  export interface PromotionListItem_NameEntry {
@@ -47,7 +47,12 @@ export interface ShopFilterOption {
47
47
  value: string;
48
48
  label: string;
49
49
  count: number;
50
- slug?: string | undefined;
50
+ slug?:
51
+ | string
52
+ | undefined;
53
+ /** Для розмірів: атрибут-джерело значення (вкладки у фільтрі «Розмір»). */
54
+ groupSlug?: string | undefined;
55
+ groupLabel?: string | undefined;
51
56
  }
52
57
 
53
58
  export interface ShopFilterColorOption {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.177",
4
+ "version": "1.0.179",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -40,6 +40,7 @@ message AttributeSyncItem {
40
40
  map<string, string> name = 2;
41
41
  bool is_color = 3;
42
42
  repeated AttributeSyncValueItem values = 4;
43
+ bool is_size = 5;
43
44
  }
44
45
 
45
46
  message UpsertAttributesRequest {
@@ -122,6 +123,7 @@ message AttributeResponse {
122
123
  int32 sort_order = 6;
123
124
  optional string guid1c = 7;
124
125
  bool is_filterable = 8;
126
+ string kind = 9;
125
127
  }
126
128
 
127
129
  message GetAttributesRequest {
@@ -147,6 +149,7 @@ message CreateAttributeRequest {
147
149
  int32 sort_order = 5;
148
150
  optional string guid1c = 6;
149
151
  bool is_filterable = 7;
152
+ optional string kind = 8;
150
153
  }
151
154
 
152
155
  message UpdateAttributeRequest {
@@ -157,6 +160,7 @@ message UpdateAttributeRequest {
157
160
  optional string display_type = 5;
158
161
  optional int32 sort_order = 6;
159
162
  optional bool is_filterable = 7;
163
+ optional string kind = 8;
160
164
  }
161
165
 
162
166
  message DeleteAttributeRequest {
@@ -215,6 +215,7 @@ message PromotionListItem {
215
215
  DiscountType discount_type = 15;
216
216
  optional string source = 16;
217
217
  optional string planfix_id = 17;
218
+ optional string seo_slug = 18;
218
219
  }
219
220
 
220
221
 
@@ -62,6 +62,10 @@ message ShopFilterOption {
62
62
  int32 count = 3;
63
63
 
64
64
  optional string slug = 4;
65
+
66
+ // Для розмірів: атрибут-джерело значення (вкладки у фільтрі «Розмір»).
67
+ optional string group_slug = 5;
68
+ optional string group_label = 6;
65
69
  }
66
70
 
67
71
  message ShopFilterColorOption {