@fiado/type-kit 3.12.0 → 3.13.1
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/credit/dtos/BannerStateResponse.d.ts +7 -5
- package/bin/credit/dtos/BannerStateResponse.js +7 -2
- package/package.json +22 -22
- package/src/credit/dtos/BannerStateResponse.ts +7 -5
- package/src/index.ts +1 -0
- package/src/milestone-business/dtos/MilestonesByEventKeyDateRangeParams.ts +9 -0
- package/src/milestone-business/index.ts +2 -0
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CTA asociado al banner state
|
|
2
|
+
* CTA asociado al banner state. Solo trae `action` (routing semantico).
|
|
3
|
+
* El `text` (label del boton) lo decide el frontend; no viene del back.
|
|
3
4
|
*/
|
|
4
5
|
export declare class BannerCta {
|
|
5
|
-
text: string;
|
|
6
6
|
action: string;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
* Respuesta del endpoint GET /
|
|
9
|
+
* Respuesta del endpoint GET /banner-state.
|
|
10
|
+
*
|
|
11
|
+
* NOTA: este DTO no incluye textos de UI (`title`, `subtitle`, `cta.text`).
|
|
12
|
+
* El frontend resuelve la copia segun `banner_state`. El back solo expone
|
|
13
|
+
* data + intencion semantica.
|
|
10
14
|
*/
|
|
11
15
|
export declare class BannerStateResponse {
|
|
12
16
|
partner_id: string;
|
|
13
17
|
directory_id: string;
|
|
14
18
|
banner_state: string;
|
|
15
|
-
title: string;
|
|
16
|
-
subtitle: string;
|
|
17
19
|
progress_pct: number | null;
|
|
18
20
|
cta: BannerCta | null;
|
|
19
21
|
credit_level: string | null;
|
|
@@ -2,13 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BannerStateResponse = exports.BannerCta = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* CTA asociado al banner state
|
|
5
|
+
* CTA asociado al banner state. Solo trae `action` (routing semantico).
|
|
6
|
+
* El `text` (label del boton) lo decide el frontend; no viene del back.
|
|
6
7
|
*/
|
|
7
8
|
class BannerCta {
|
|
8
9
|
}
|
|
9
10
|
exports.BannerCta = BannerCta;
|
|
10
11
|
/**
|
|
11
|
-
* Respuesta del endpoint GET /
|
|
12
|
+
* Respuesta del endpoint GET /banner-state.
|
|
13
|
+
*
|
|
14
|
+
* NOTA: este DTO no incluye textos de UI (`title`, `subtitle`, `cta.text`).
|
|
15
|
+
* El frontend resuelve la copia segun `banner_state`. El back solo expone
|
|
16
|
+
* data + intencion semantica.
|
|
12
17
|
*/
|
|
13
18
|
class BannerStateResponse {
|
|
14
19
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
2
|
+
"name": "@fiado/type-kit",
|
|
3
|
+
"version": "3.13.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "bin/index.js",
|
|
6
|
+
"types": "bin/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"build": "tsc"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [],
|
|
12
|
+
"author": "Fiado Inc",
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@types/node": "^20.11.20",
|
|
16
|
+
"install": "^0.13.0",
|
|
17
|
+
"typescript": "^5.3.3"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"class-transformer": "^0.5.1",
|
|
21
|
+
"class-validator": "^0.14.2"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* CTA asociado al banner state
|
|
2
|
+
* CTA asociado al banner state. Solo trae `action` (routing semantico).
|
|
3
|
+
* El `text` (label del boton) lo decide el frontend; no viene del back.
|
|
3
4
|
*/
|
|
4
5
|
export class BannerCta {
|
|
5
|
-
text!: string;
|
|
6
6
|
action!: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Respuesta del endpoint GET /
|
|
10
|
+
* Respuesta del endpoint GET /banner-state.
|
|
11
|
+
*
|
|
12
|
+
* NOTA: este DTO no incluye textos de UI (`title`, `subtitle`, `cta.text`).
|
|
13
|
+
* El frontend resuelve la copia segun `banner_state`. El back solo expone
|
|
14
|
+
* data + intencion semantica.
|
|
11
15
|
*/
|
|
12
16
|
export class BannerStateResponse {
|
|
13
17
|
partner_id: string;
|
|
14
18
|
directory_id: string;
|
|
15
19
|
banner_state: string;
|
|
16
|
-
title: string;
|
|
17
|
-
subtitle: string;
|
|
18
20
|
progress_pct: number | null;
|
|
19
21
|
cta: BannerCta | null;
|
|
20
22
|
credit_level: string | null;
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface MilestonesByEventKeyDateRangeParams {
|
|
2
|
+
/** Inicio del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
3
|
+
startDate: string | number;
|
|
4
|
+
/** Fin del rango de eventDate. Acepta epoch ms o ISO/yyyy-mm-dd. */
|
|
5
|
+
endDate: string | number;
|
|
6
|
+
pageSize?: number | string;
|
|
7
|
+
index?: string;
|
|
8
|
+
sort?: 'ascending' | 'descending';
|
|
9
|
+
}
|