@fiado/type-kit 3.385.0 → 3.386.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.
- package/bin/loanOfferings/dtos/responses/SkuPromotionsResponse.d.ts +34 -0
- package/bin/loanOfferings/dtos/responses/SkuPromotionsResponse.js +2 -0
- package/bin/loanOfferings/index.d.ts +1 -0
- package/bin/loanOfferings/index.js +1 -0
- package/package.json +1 -1
- package/src/loanOfferings/dtos/responses/SkuPromotionsResponse.ts +37 -0
- package/src/loanOfferings/index.ts +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CreditPlanLevelEnum } from '../../enums/CreditPlanLevelEnum';
|
|
2
|
+
import { PromotionEffect } from '../PromotionEffect';
|
|
3
|
+
/**
|
|
4
|
+
* Una promoción vigente que nombra a un SKU, con lo que hace y a quién alcanza. Es el detalle que el
|
|
5
|
+
* panel del paso 03 le muestra al vendedor.
|
|
6
|
+
*/
|
|
7
|
+
export interface SkuPromotion {
|
|
8
|
+
promotionId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/** Qué mueve: enganche, tasa, bono a la tarjeta o techo de monto. */
|
|
11
|
+
effect: PromotionEffect;
|
|
12
|
+
/**
|
|
13
|
+
* Niveles que alcanza. Vacío = cualquiera. El nivel del cliente recién sale en el paso 05, así
|
|
14
|
+
* que el panel las agrupa por nivel en vez de prometer una que quizá no le toque.
|
|
15
|
+
*/
|
|
16
|
+
targetLevels: CreditPlanLevelEnum[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Promociones por SKU de una tienda, para el panel de detalle del catálogo (paso 03).
|
|
20
|
+
*
|
|
21
|
+
* A diferencia del badge, acá SÍ viajan las acotadas por nivel: el panel las muestra agrupadas y el
|
|
22
|
+
* vendedor puede explicarlas como condicionales («si sales Oro, este equipo trae…»).
|
|
23
|
+
*
|
|
24
|
+
* NO viajan las acotadas por segmento: la pertenencia del cliente no se conoce en el paso 03 y el
|
|
25
|
+
* vendedor no puede influirla, así que anunciarla solo genera una expectativa que nadie puede cumplir.
|
|
26
|
+
*/
|
|
27
|
+
export interface SkuPromotionsResponse {
|
|
28
|
+
/** Un renglón por SKU con al menos una promoción vigente que lo nombra. */
|
|
29
|
+
items: SkuPromotionsItem[];
|
|
30
|
+
}
|
|
31
|
+
export interface SkuPromotionsItem {
|
|
32
|
+
sku: string;
|
|
33
|
+
promotions: SkuPromotion[];
|
|
34
|
+
}
|
|
@@ -50,6 +50,7 @@ export * from './dtos/responses/ConsumePromotionResponse';
|
|
|
50
50
|
export * from './dtos/responses/PromotionBonusResponse';
|
|
51
51
|
export * from './dtos/responses/ReservePromotionBonusResponse';
|
|
52
52
|
export * from './dtos/responses/PromotedSkusResponse';
|
|
53
|
+
export * from './dtos/responses/SkuPromotionsResponse';
|
|
53
54
|
export * from './dtos/responses/StorePolicyResponse';
|
|
54
55
|
export * from './dtos/responses/SegmentResponse';
|
|
55
56
|
export * from './dtos/responses/SegmentFilterResponse';
|
|
@@ -70,6 +70,7 @@ __exportStar(require("./dtos/responses/ConsumePromotionResponse"), exports);
|
|
|
70
70
|
__exportStar(require("./dtos/responses/PromotionBonusResponse"), exports);
|
|
71
71
|
__exportStar(require("./dtos/responses/ReservePromotionBonusResponse"), exports);
|
|
72
72
|
__exportStar(require("./dtos/responses/PromotedSkusResponse"), exports);
|
|
73
|
+
__exportStar(require("./dtos/responses/SkuPromotionsResponse"), exports);
|
|
73
74
|
__exportStar(require("./dtos/responses/StorePolicyResponse"), exports);
|
|
74
75
|
__exportStar(require("./dtos/responses/SegmentResponse"), exports);
|
|
75
76
|
__exportStar(require("./dtos/responses/SegmentFilterResponse"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { CreditPlanLevelEnum } from '../../enums/CreditPlanLevelEnum';
|
|
2
|
+
import { PromotionEffect } from '../PromotionEffect';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Una promoción vigente que nombra a un SKU, con lo que hace y a quién alcanza. Es el detalle que el
|
|
6
|
+
* panel del paso 03 le muestra al vendedor.
|
|
7
|
+
*/
|
|
8
|
+
export interface SkuPromotion {
|
|
9
|
+
promotionId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
/** Qué mueve: enganche, tasa, bono a la tarjeta o techo de monto. */
|
|
12
|
+
effect: PromotionEffect;
|
|
13
|
+
/**
|
|
14
|
+
* Niveles que alcanza. Vacío = cualquiera. El nivel del cliente recién sale en el paso 05, así
|
|
15
|
+
* que el panel las agrupa por nivel en vez de prometer una que quizá no le toque.
|
|
16
|
+
*/
|
|
17
|
+
targetLevels: CreditPlanLevelEnum[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Promociones por SKU de una tienda, para el panel de detalle del catálogo (paso 03).
|
|
22
|
+
*
|
|
23
|
+
* A diferencia del badge, acá SÍ viajan las acotadas por nivel: el panel las muestra agrupadas y el
|
|
24
|
+
* vendedor puede explicarlas como condicionales («si sales Oro, este equipo trae…»).
|
|
25
|
+
*
|
|
26
|
+
* NO viajan las acotadas por segmento: la pertenencia del cliente no se conoce en el paso 03 y el
|
|
27
|
+
* vendedor no puede influirla, así que anunciarla solo genera una expectativa que nadie puede cumplir.
|
|
28
|
+
*/
|
|
29
|
+
export interface SkuPromotionsResponse {
|
|
30
|
+
/** Un renglón por SKU con al menos una promoción vigente que lo nombra. */
|
|
31
|
+
items: SkuPromotionsItem[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface SkuPromotionsItem {
|
|
35
|
+
sku: string;
|
|
36
|
+
promotions: SkuPromotion[];
|
|
37
|
+
}
|
|
@@ -57,6 +57,7 @@ export * from './dtos/responses/ConsumePromotionResponse';
|
|
|
57
57
|
export * from './dtos/responses/PromotionBonusResponse';
|
|
58
58
|
export * from './dtos/responses/ReservePromotionBonusResponse';
|
|
59
59
|
export * from './dtos/responses/PromotedSkusResponse';
|
|
60
|
+
export * from './dtos/responses/SkuPromotionsResponse';
|
|
60
61
|
export * from './dtos/responses/StorePolicyResponse';
|
|
61
62
|
export * from './dtos/responses/SegmentResponse';
|
|
62
63
|
export * from './dtos/responses/SegmentFilterResponse';
|