@mamindom/contracts 1.0.221 → 1.0.223

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.
@@ -127,6 +127,11 @@ export interface PromotionResponse {
127
127
  planfixId?: string | undefined;
128
128
  /** Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє. */
129
129
  stickerId?: string | undefined;
130
+ /**
131
+ * Показувати ярлик акції на товарах. Вимкнено — ярлик лишається прив'язаним
132
+ * до акції, але на вітрині не показується. Відсутнє — показувати.
133
+ */
134
+ showSticker?: boolean | undefined;
130
135
  }
131
136
  export interface PromotionResponse_NameEntry {
132
137
  key: string;
@@ -240,6 +245,8 @@ export interface CreatePromotionRequest {
240
245
  source?: string | undefined;
241
246
  planfixId?: string | undefined;
242
247
  stickerId?: string | undefined;
248
+ /** Відсутнє — показувати. */
249
+ showSticker?: boolean | undefined;
243
250
  }
244
251
  export interface CreatePromotionRequest_NameEntry {
245
252
  key: string;
@@ -297,6 +304,8 @@ export interface UpdatePromotionRequest {
297
304
  replaceExclusions?: boolean | undefined;
298
305
  /** Відсутнє — без змін; "" — прибрати ярлик акції. */
299
306
  stickerId?: string | undefined;
307
+ /** Відсутнє — без змін. */
308
+ showSticker?: boolean | undefined;
300
309
  }
301
310
  export interface UpdatePromotionRequest_NameEntry {
302
311
  key: string;
@@ -409,6 +418,12 @@ export interface ActivePromotionSnapshotItem {
409
418
  * знижку з ціни товару) — знижку на картці з неї не малювати.
410
419
  */
411
420
  stickerOnly: boolean;
421
+ /**
422
+ * Ярлик акції вимкнено перемикачем show_sticker: на вітрину не йде, але
423
+ * каталог знає, що це ярлик акції (не записує його товару власним, не
424
+ * знімає винятки під ним).
425
+ */
426
+ stickerHidden: boolean;
412
427
  }
413
428
  export interface ActivePromotionSnapshotItem_NameEntry {
414
429
  key: string;
@@ -177,6 +177,9 @@ message PromotionResponse {
177
177
  optional string planfix_id = 38;
178
178
  // Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє.
179
179
  optional string sticker_id = 39;
180
+ // Показувати ярлик акції на товарах. Вимкнено — ярлик лишається прив'язаним
181
+ // до акції, але на вітрині не показується. Відсутнє — показувати.
182
+ optional bool show_sticker = 40;
180
183
  }
181
184
 
182
185
 
@@ -277,6 +280,8 @@ message CreatePromotionRequest {
277
280
  optional string source = 28;
278
281
  optional string planfix_id = 29;
279
282
  optional string sticker_id = 30;
283
+ // Відсутнє — показувати.
284
+ optional bool show_sticker = 31;
280
285
  }
281
286
 
282
287
  message UpdatePromotionRequest {
@@ -322,6 +327,8 @@ message UpdatePromotionRequest {
322
327
  optional bool replace_exclusions = 29;
323
328
  // Відсутнє — без змін; "" — прибрати ярлик акції.
324
329
  optional string sticker_id = 30;
330
+ // Відсутнє — без змін.
331
+ optional bool show_sticker = 31;
325
332
  }
326
333
 
327
334
  message DeletePromotionRequest {
@@ -435,6 +442,10 @@ message ActivePromotionSnapshotItem {
435
442
  // Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
436
443
  // знижку з ціни товару) — знижку на картці з неї не малювати.
437
444
  bool sticker_only = 19;
445
+ // Ярлик акції вимкнено перемикачем show_sticker: на вітрину не йде, але
446
+ // каталог знає, що це ярлик акції (не записує його товару власним, не
447
+ // знімає винятки під ним).
448
+ bool sticker_hidden = 20;
438
449
  }
439
450
 
440
451
  message GetActivePromotionsSnapshotResponse {
package/gen/promotion.ts CHANGED
@@ -140,7 +140,14 @@ export interface PromotionResponse {
140
140
  | string
141
141
  | undefined;
142
142
  /** Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє. */
143
- stickerId?: string | undefined;
143
+ stickerId?:
144
+ | string
145
+ | undefined;
146
+ /**
147
+ * Показувати ярлик акції на товарах. Вимкнено — ярлик лишається прив'язаним
148
+ * до акції, але на вітрині не показується. Відсутнє — показувати.
149
+ */
150
+ showSticker?: boolean | undefined;
144
151
  }
145
152
 
146
153
  export interface PromotionResponse_NameEntry {
@@ -257,7 +264,11 @@ export interface CreatePromotionRequest {
257
264
  bundleSize?: number | undefined;
258
265
  source?: string | undefined;
259
266
  planfixId?: string | undefined;
260
- stickerId?: string | undefined;
267
+ stickerId?:
268
+ | string
269
+ | undefined;
270
+ /** Відсутнє — показувати. */
271
+ showSticker?: boolean | undefined;
261
272
  }
262
273
 
263
274
  export interface CreatePromotionRequest_NameEntry {
@@ -313,7 +324,11 @@ export interface UpdatePromotionRequest {
313
324
  | boolean
314
325
  | undefined;
315
326
  /** Відсутнє — без змін; "" — прибрати ярлик акції. */
316
- stickerId?: string | undefined;
327
+ stickerId?:
328
+ | string
329
+ | undefined;
330
+ /** Відсутнє — без змін. */
331
+ showSticker?: boolean | undefined;
317
332
  }
318
333
 
319
334
  export interface UpdatePromotionRequest_NameEntry {
@@ -442,6 +457,12 @@ export interface ActivePromotionSnapshotItem {
442
457
  * знижку з ціни товару) — знижку на картці з неї не малювати.
443
458
  */
444
459
  stickerOnly: boolean;
460
+ /**
461
+ * Ярлик акції вимкнено перемикачем show_sticker: на вітрину не йде, але
462
+ * каталог знає, що це ярлик акції (не записує його товару власним, не
463
+ * знімає винятки під ним).
464
+ */
465
+ stickerHidden: boolean;
445
466
  }
446
467
 
447
468
  export interface ActivePromotionSnapshotItem_NameEntry {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.221",
4
+ "version": "1.0.223",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -177,6 +177,9 @@ message PromotionResponse {
177
177
  optional string planfix_id = 38;
178
178
  // Ярлик (стікер каталогу), який показується на товарах акції, поки вона діє.
179
179
  optional string sticker_id = 39;
180
+ // Показувати ярлик акції на товарах. Вимкнено — ярлик лишається прив'язаним
181
+ // до акції, але на вітрині не показується. Відсутнє — показувати.
182
+ optional bool show_sticker = 40;
180
183
  }
181
184
 
182
185
 
@@ -277,6 +280,8 @@ message CreatePromotionRequest {
277
280
  optional string source = 28;
278
281
  optional string planfix_id = 29;
279
282
  optional string sticker_id = 30;
283
+ // Відсутнє — показувати.
284
+ optional bool show_sticker = 31;
280
285
  }
281
286
 
282
287
  message UpdatePromotionRequest {
@@ -322,6 +327,8 @@ message UpdatePromotionRequest {
322
327
  optional bool replace_exclusions = 29;
323
328
  // Відсутнє — без змін; "" — прибрати ярлик акції.
324
329
  optional string sticker_id = 30;
330
+ // Відсутнє — без змін.
331
+ optional bool show_sticker = 31;
325
332
  }
326
333
 
327
334
  message DeletePromotionRequest {
@@ -435,6 +442,10 @@ message ActivePromotionSnapshotItem {
435
442
  // Акція в знімку лише заради ярлика (вид чи умови не дають чесно порахувати
436
443
  // знижку з ціни товару) — знижку на картці з неї не малювати.
437
444
  bool sticker_only = 19;
445
+ // Ярлик акції вимкнено перемикачем show_sticker: на вітрину не йде, але
446
+ // каталог знає, що це ярлик акції (не записує його товару власним, не
447
+ // знімає винятки під ним).
448
+ bool sticker_hidden = 20;
438
449
  }
439
450
 
440
451
  message GetActivePromotionsSnapshotResponse {