@mamindom/contracts 1.0.218 → 1.0.220

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.
@@ -726,6 +726,8 @@ export interface ProductVariantDetailResponse {
726
726
  colorId?: string | undefined;
727
727
  weightKg: number;
728
728
  guid1c?: string | undefined;
729
+ /** Сітки варіації: власні, інакше — товару (з відкатом бренд → категорія). */
730
+ sizeCharts: ProductSizeChartResponse[];
729
731
  }
730
732
  export interface ProductVariantDetailResponse_OptionsEntry {
731
733
  key: string;
@@ -125,6 +125,8 @@ export interface PromotionResponse {
125
125
  bundleSize?: number | undefined;
126
126
  source?: string | undefined;
127
127
  planfixId?: string | undefined;
128
+ /** Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє. */
129
+ stickerId?: string | undefined;
128
130
  }
129
131
  export interface PromotionResponse_NameEntry {
130
132
  key: string;
@@ -237,6 +239,7 @@ export interface CreatePromotionRequest {
237
239
  bundleSize?: number | undefined;
238
240
  source?: string | undefined;
239
241
  planfixId?: string | undefined;
242
+ stickerId?: string | undefined;
240
243
  }
241
244
  export interface CreatePromotionRequest_NameEntry {
242
245
  key: string;
@@ -292,6 +295,8 @@ export interface UpdatePromotionRequest {
292
295
  bundleSize?: number | undefined;
293
296
  replaceConditions?: boolean | undefined;
294
297
  replaceExclusions?: boolean | undefined;
298
+ /** Відсутнє — без змін; "" — прибрати ярлик акції. */
299
+ stickerId?: string | undefined;
295
300
  }
296
301
  export interface UpdatePromotionRequest_NameEntry {
297
302
  key: string;
@@ -398,6 +403,12 @@ export interface ActivePromotionSnapshotItem {
398
403
  productLabelColors: {
399
404
  [key: string]: string;
400
405
  };
406
+ stickerId?: string | undefined;
407
+ /**
408
+ * Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
409
+ * знижку з ціни товару) — знижку на картці з неї не малювати.
410
+ */
411
+ stickerOnly: boolean;
401
412
  }
402
413
  export interface ActivePromotionSnapshotItem_NameEntry {
403
414
  key: string;
@@ -12,6 +12,9 @@ export interface StickerResponse {
12
12
  svgId?: string | undefined;
13
13
  startDate?: string | undefined;
14
14
  endDate?: string | undefined;
15
+ /** Автоярлик: вид ("NEW" — «Новинка») і термін у днях. Порожній вид — звичайний ярлик. */
16
+ autoKind?: string | undefined;
17
+ autoDays?: number | undefined;
15
18
  }
16
19
  export interface StickerResponse_NameEntry {
17
20
  key: string;
@@ -37,6 +40,8 @@ export interface CreateStickerRequest {
37
40
  svgId?: string | undefined;
38
41
  startDate?: string | undefined;
39
42
  endDate?: string | undefined;
43
+ autoKind?: string | undefined;
44
+ autoDays?: number | undefined;
40
45
  }
41
46
  export interface CreateStickerRequest_NameEntry {
42
47
  key: string;
@@ -53,6 +58,9 @@ export interface UpdateStickerRequest {
53
58
  svgId?: string | undefined;
54
59
  startDate?: string | undefined;
55
60
  endDate?: string | undefined;
61
+ /** Відсутнє поле — без змін; "" — зняти автоярлик; "NEW" — зробити автоярликом. */
62
+ autoKind?: string | undefined;
63
+ autoDays?: number | undefined;
56
64
  }
57
65
  export interface UpdateStickerRequest_NameEntry {
58
66
  key: string;
@@ -705,6 +705,9 @@ message ProductVariantDetailResponse {
705
705
  double weight_kg = 22;
706
706
 
707
707
  optional string guid1c = 23;
708
+
709
+ // Сітки варіації: власні, інакше — товару (з відкатом бренд → категорія).
710
+ repeated ProductSizeChartResponse size_charts = 24;
708
711
  }
709
712
 
710
713
  message VariantOverrides {
@@ -175,6 +175,8 @@ message PromotionResponse {
175
175
  optional int32 bundle_size = 36;
176
176
  optional string source = 37;
177
177
  optional string planfix_id = 38;
178
+ // Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє.
179
+ optional string sticker_id = 39;
178
180
  }
179
181
 
180
182
 
@@ -274,6 +276,7 @@ message CreatePromotionRequest {
274
276
  optional int32 bundle_size = 27;
275
277
  optional string source = 28;
276
278
  optional string planfix_id = 29;
279
+ optional string sticker_id = 30;
277
280
  }
278
281
 
279
282
  message UpdatePromotionRequest {
@@ -317,6 +320,8 @@ message UpdatePromotionRequest {
317
320
 
318
321
  optional bool replace_conditions = 28;
319
322
  optional bool replace_exclusions = 29;
323
+ // Відсутнє — без змін; "" — прибрати ярлик акції.
324
+ optional string sticker_id = 30;
320
325
  }
321
326
 
322
327
  message DeletePromotionRequest {
@@ -426,6 +431,10 @@ message ActivePromotionSnapshotItem {
426
431
 
427
432
  map<string, string> product_labels = 16;
428
433
  map<string, string> product_label_colors = 17;
434
+ optional string sticker_id = 18;
435
+ // Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
436
+ // знижку з ціни товару) — знижку на картці з неї не малювати.
437
+ bool sticker_only = 19;
429
438
  }
430
439
 
431
440
  message GetActivePromotionsSnapshotResponse {
@@ -28,6 +28,10 @@ message StickerResponse {
28
28
 
29
29
  optional string start_date = 7;
30
30
  optional string end_date = 8;
31
+
32
+ // Автоярлик: вид ("NEW" — «Новинка») і термін у днях. Порожній вид — звичайний ярлик.
33
+ optional string auto_kind = 9;
34
+ optional int32 auto_days = 10;
31
35
  }
32
36
 
33
37
  message GetStickersRequest {
@@ -53,6 +57,9 @@ message CreateStickerRequest {
53
57
 
54
58
  optional string start_date = 6;
55
59
  optional string end_date = 7;
60
+
61
+ optional string auto_kind = 8;
62
+ optional int32 auto_days = 9;
56
63
  }
57
64
 
58
65
  message UpdateStickerRequest {
@@ -66,6 +73,10 @@ message UpdateStickerRequest {
66
73
 
67
74
  optional string start_date = 7;
68
75
  optional string end_date = 8;
76
+
77
+ // Відсутнє поле — без змін; "" — зняти автоярлик; "NEW" — зробити автоярликом.
78
+ optional string auto_kind = 9;
79
+ optional int32 auto_days = 10;
69
80
  }
70
81
 
71
82
  message DeleteStickerRequest {
package/gen/product.ts CHANGED
@@ -740,7 +740,11 @@ export interface ProductVariantDetailResponse {
740
740
  overrides: VariantOverrides | undefined;
741
741
  colorId?: string | undefined;
742
742
  weightKg: number;
743
- guid1c?: string | undefined;
743
+ guid1c?:
744
+ | string
745
+ | undefined;
746
+ /** Сітки варіації: власні, інакше — товару (з відкатом бренд → категорія). */
747
+ sizeCharts: ProductSizeChartResponse[];
744
748
  }
745
749
 
746
750
  export interface ProductVariantDetailResponse_OptionsEntry {
package/gen/promotion.ts CHANGED
@@ -136,7 +136,11 @@ export interface PromotionResponse {
136
136
  bundlePrice?: number | undefined;
137
137
  bundleSize?: number | undefined;
138
138
  source?: string | undefined;
139
- planfixId?: string | undefined;
139
+ planfixId?:
140
+ | string
141
+ | undefined;
142
+ /** Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє. */
143
+ stickerId?: string | undefined;
140
144
  }
141
145
 
142
146
  export interface PromotionResponse_NameEntry {
@@ -253,6 +257,7 @@ export interface CreatePromotionRequest {
253
257
  bundleSize?: number | undefined;
254
258
  source?: string | undefined;
255
259
  planfixId?: string | undefined;
260
+ stickerId?: string | undefined;
256
261
  }
257
262
 
258
263
  export interface CreatePromotionRequest_NameEntry {
@@ -304,7 +309,11 @@ export interface UpdatePromotionRequest {
304
309
  bundlePrice?: number | undefined;
305
310
  bundleSize?: number | undefined;
306
311
  replaceConditions?: boolean | undefined;
307
- replaceExclusions?: boolean | undefined;
312
+ replaceExclusions?:
313
+ | boolean
314
+ | undefined;
315
+ /** Відсутнє — без змін; "" — прибрати ярлик акції. */
316
+ stickerId?: string | undefined;
308
317
  }
309
318
 
310
319
  export interface UpdatePromotionRequest_NameEntry {
@@ -425,6 +434,14 @@ export interface ActivePromotionSnapshotItem {
425
434
  excludedBrandIds: string[];
426
435
  productLabels: { [key: string]: string };
427
436
  productLabelColors: { [key: string]: string };
437
+ stickerId?:
438
+ | string
439
+ | undefined;
440
+ /**
441
+ * Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
442
+ * знижку з ціни товару) — знижку на картці з неї не малювати.
443
+ */
444
+ stickerOnly: boolean;
428
445
  }
429
446
 
430
447
  export interface ActivePromotionSnapshotItem_NameEntry {
package/gen/sticker.ts CHANGED
@@ -19,7 +19,12 @@ export interface StickerResponse {
19
19
  svgUrl?: string | undefined;
20
20
  svgId?: string | undefined;
21
21
  startDate?: string | undefined;
22
- endDate?: string | undefined;
22
+ endDate?:
23
+ | string
24
+ | undefined;
25
+ /** Автоярлик: вид ("NEW" — «Новинка») і термін у днях. Порожній вид — звичайний ярлик. */
26
+ autoKind?: string | undefined;
27
+ autoDays?: number | undefined;
23
28
  }
24
29
 
25
30
  export interface StickerResponse_NameEntry {
@@ -48,6 +53,8 @@ export interface CreateStickerRequest {
48
53
  svgId?: string | undefined;
49
54
  startDate?: string | undefined;
50
55
  endDate?: string | undefined;
56
+ autoKind?: string | undefined;
57
+ autoDays?: number | undefined;
51
58
  }
52
59
 
53
60
  export interface CreateStickerRequest_NameEntry {
@@ -63,7 +70,12 @@ export interface UpdateStickerRequest {
63
70
  svgUrl?: string | undefined;
64
71
  svgId?: string | undefined;
65
72
  startDate?: string | undefined;
66
- endDate?: string | undefined;
73
+ endDate?:
74
+ | string
75
+ | undefined;
76
+ /** Відсутнє поле — без змін; "" — зняти автоярлик; "NEW" — зробити автоярликом. */
77
+ autoKind?: string | undefined;
78
+ autoDays?: number | undefined;
67
79
  }
68
80
 
69
81
  export interface UpdateStickerRequest_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.218",
4
+ "version": "1.0.220",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -705,6 +705,9 @@ message ProductVariantDetailResponse {
705
705
  double weight_kg = 22;
706
706
 
707
707
  optional string guid1c = 23;
708
+
709
+ // Сітки варіації: власні, інакше — товару (з відкатом бренд → категорія).
710
+ repeated ProductSizeChartResponse size_charts = 24;
708
711
  }
709
712
 
710
713
  message VariantOverrides {
@@ -175,6 +175,8 @@ message PromotionResponse {
175
175
  optional int32 bundle_size = 36;
176
176
  optional string source = 37;
177
177
  optional string planfix_id = 38;
178
+ // Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє.
179
+ optional string sticker_id = 39;
178
180
  }
179
181
 
180
182
 
@@ -274,6 +276,7 @@ message CreatePromotionRequest {
274
276
  optional int32 bundle_size = 27;
275
277
  optional string source = 28;
276
278
  optional string planfix_id = 29;
279
+ optional string sticker_id = 30;
277
280
  }
278
281
 
279
282
  message UpdatePromotionRequest {
@@ -317,6 +320,8 @@ message UpdatePromotionRequest {
317
320
 
318
321
  optional bool replace_conditions = 28;
319
322
  optional bool replace_exclusions = 29;
323
+ // Відсутнє — без змін; "" — прибрати ярлик акції.
324
+ optional string sticker_id = 30;
320
325
  }
321
326
 
322
327
  message DeletePromotionRequest {
@@ -426,6 +431,10 @@ message ActivePromotionSnapshotItem {
426
431
 
427
432
  map<string, string> product_labels = 16;
428
433
  map<string, string> product_label_colors = 17;
434
+ optional string sticker_id = 18;
435
+ // Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
436
+ // знижку з ціни товару) — знижку на картці з неї не малювати.
437
+ bool sticker_only = 19;
429
438
  }
430
439
 
431
440
  message GetActivePromotionsSnapshotResponse {
@@ -28,6 +28,10 @@ message StickerResponse {
28
28
 
29
29
  optional string start_date = 7;
30
30
  optional string end_date = 8;
31
+
32
+ // Автоярлик: вид ("NEW" — «Новинка») і термін у днях. Порожній вид — звичайний ярлик.
33
+ optional string auto_kind = 9;
34
+ optional int32 auto_days = 10;
31
35
  }
32
36
 
33
37
  message GetStickersRequest {
@@ -53,6 +57,9 @@ message CreateStickerRequest {
53
57
 
54
58
  optional string start_date = 6;
55
59
  optional string end_date = 7;
60
+
61
+ optional string auto_kind = 8;
62
+ optional int32 auto_days = 9;
56
63
  }
57
64
 
58
65
  message UpdateStickerRequest {
@@ -66,6 +73,10 @@ message UpdateStickerRequest {
66
73
 
67
74
  optional string start_date = 7;
68
75
  optional string end_date = 8;
76
+
77
+ // Відсутнє поле — без змін; "" — зняти автоярлик; "NEW" — зробити автоярликом.
78
+ optional string auto_kind = 9;
79
+ optional int32 auto_days = 10;
69
80
  }
70
81
 
71
82
  message DeleteStickerRequest {