@fiado/type-kit 3.391.0 → 3.392.0

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.
@@ -0,0 +1,28 @@
1
+ import { CreditPlanLevelEnum } from '../../enums/CreditPlanLevelEnum';
2
+ import { PromotionEffect } from '../PromotionEffect';
3
+ /**
4
+ * Una promoción de alcance amplio (NO acota por SKU) vigente para el banner de pantalla completa
5
+ * del wizard — a diferencia de `SkuPromotion`, no cuelga de un producto puntual.
6
+ */
7
+ export interface ScopeWidePromotion {
8
+ promotionId: string;
9
+ name: string;
10
+ description: string;
11
+ /** Qué mueve: enganche, tasa, bono a la tarjeta o techo de monto. */
12
+ effect: PromotionEffect;
13
+ /** Segmento al que apunta. El segmento por omisión alcanza a cualquier cliente. */
14
+ segmentId: string;
15
+ /** Niveles que alcanza. Vacío = cualquiera. */
16
+ targetLevels: CreditPlanLevelEnum[];
17
+ }
18
+ /**
19
+ * Promociones de alcance amplio vigentes para una tienda, para el banner del wizard.
20
+ *
21
+ * Solo entran las promociones con `productSkus` NULO — «todos los productos», sea porque acotan
22
+ * por tienda, por nivel/segmento del cliente, o son universales. Las que acotan por SKU siguen
23
+ * viajando por `SkuPromotionsResponse` / `PromotedSkusResponse`, no por acá.
24
+ */
25
+ export interface ScopeWidePromotionsResponse {
26
+ /** Un renglón por promoción vigente que alcanza al contexto. */
27
+ items: ScopeWidePromotion[];
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,6 +51,7 @@ export * from './dtos/responses/PromotionBonusResponse';
51
51
  export * from './dtos/responses/ReservePromotionBonusResponse';
52
52
  export * from './dtos/responses/PromotedSkusResponse';
53
53
  export * from './dtos/responses/SkuPromotionsResponse';
54
+ export * from './dtos/responses/ScopeWidePromotionsResponse';
54
55
  export * from './dtos/responses/StorePolicyResponse';
55
56
  export * from './dtos/responses/SegmentResponse';
56
57
  export * from './dtos/responses/SegmentFilterResponse';
@@ -71,6 +71,7 @@ __exportStar(require("./dtos/responses/PromotionBonusResponse"), exports);
71
71
  __exportStar(require("./dtos/responses/ReservePromotionBonusResponse"), exports);
72
72
  __exportStar(require("./dtos/responses/PromotedSkusResponse"), exports);
73
73
  __exportStar(require("./dtos/responses/SkuPromotionsResponse"), exports);
74
+ __exportStar(require("./dtos/responses/ScopeWidePromotionsResponse"), exports);
74
75
  __exportStar(require("./dtos/responses/StorePolicyResponse"), exports);
75
76
  __exportStar(require("./dtos/responses/SegmentResponse"), exports);
76
77
  __exportStar(require("./dtos/responses/SegmentFilterResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.391.0",
3
+ "version": "3.392.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,30 @@
1
+ import { CreditPlanLevelEnum } from '../../enums/CreditPlanLevelEnum';
2
+ import { PromotionEffect } from '../PromotionEffect';
3
+
4
+ /**
5
+ * Una promoción de alcance amplio (NO acota por SKU) vigente para el banner de pantalla completa
6
+ * del wizard — a diferencia de `SkuPromotion`, no cuelga de un producto puntual.
7
+ */
8
+ export interface ScopeWidePromotion {
9
+ promotionId: string;
10
+ name: string;
11
+ description: string;
12
+ /** Qué mueve: enganche, tasa, bono a la tarjeta o techo de monto. */
13
+ effect: PromotionEffect;
14
+ /** Segmento al que apunta. El segmento por omisión alcanza a cualquier cliente. */
15
+ segmentId: string;
16
+ /** Niveles que alcanza. Vacío = cualquiera. */
17
+ targetLevels: CreditPlanLevelEnum[];
18
+ }
19
+
20
+ /**
21
+ * Promociones de alcance amplio vigentes para una tienda, para el banner del wizard.
22
+ *
23
+ * Solo entran las promociones con `productSkus` NULO — «todos los productos», sea porque acotan
24
+ * por tienda, por nivel/segmento del cliente, o son universales. Las que acotan por SKU siguen
25
+ * viajando por `SkuPromotionsResponse` / `PromotedSkusResponse`, no por acá.
26
+ */
27
+ export interface ScopeWidePromotionsResponse {
28
+ /** Un renglón por promoción vigente que alcanza al contexto. */
29
+ items: ScopeWidePromotion[];
30
+ }
@@ -58,6 +58,7 @@ export * from './dtos/responses/PromotionBonusResponse';
58
58
  export * from './dtos/responses/ReservePromotionBonusResponse';
59
59
  export * from './dtos/responses/PromotedSkusResponse';
60
60
  export * from './dtos/responses/SkuPromotionsResponse';
61
+ export * from './dtos/responses/ScopeWidePromotionsResponse';
61
62
  export * from './dtos/responses/StorePolicyResponse';
62
63
  export * from './dtos/responses/SegmentResponse';
63
64
  export * from './dtos/responses/SegmentFilterResponse';