@fiado/type-kit 3.651.0 → 3.652.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/_test_/unit/loanConfig/recentParameterChanges.test.ts +6 -1
- package/_test_/unit/retailLoan/contract.test.ts +13 -0
- package/bin/loanConfig/enums/ParameterTypeEnum.d.ts +4 -2
- package/bin/loanConfig/enums/ParameterTypeEnum.js +3 -1
- package/bin/retailLoan/dtos/MyLegalDocument.d.ts +9 -0
- package/bin/retailLoan/dtos/MyLegalDocument.js +2 -0
- package/bin/retailLoan/index.d.ts +1 -0
- package/bin/retailLoan/index.js +1 -0
- package/package.json +1 -1
- package/src/loanConfig/enums/ParameterTypeEnum.ts +3 -1
- package/src/retailLoan/dtos/MyLegalDocument.ts +9 -0
- package/src/retailLoan/index.ts +1 -0
|
@@ -22,7 +22,12 @@ const validateQuery = (query: object) => {
|
|
|
22
22
|
describe('ParameterTypeEnum', () => {
|
|
23
23
|
it('incluye FEATURE_FLAG como el paramType 15', () => {
|
|
24
24
|
expect(ParameterTypeEnum.FEATURE_FLAG).toBe('FEATURE_FLAG');
|
|
25
|
-
expect(Object.values(ParameterTypeEnum)).
|
|
25
|
+
expect(Object.values(ParameterTypeEnum).indexOf(ParameterTypeEnum.FEATURE_FLAG)).toBe(14);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('incluye LEGAL como el paramType 16', () => {
|
|
29
|
+
expect(ParameterTypeEnum.LEGAL).toBe('LEGAL');
|
|
30
|
+
expect(Object.values(ParameterTypeEnum)).toHaveLength(16);
|
|
26
31
|
});
|
|
27
32
|
});
|
|
28
33
|
|
|
@@ -7,11 +7,13 @@ import {
|
|
|
7
7
|
MyDocumentStatusEnum,
|
|
8
8
|
MyInstallment,
|
|
9
9
|
MyInstallmentDisplayStatusEnum,
|
|
10
|
+
MyLegalDocument,
|
|
10
11
|
MyPaymentFrequencyEnum,
|
|
11
12
|
MyPaymentMethodEnum,
|
|
12
13
|
MyPaymentPage,
|
|
13
14
|
} from '../../../src/retailLoan/index';
|
|
14
15
|
import { LoanCreditStatusEnum, LoanInstallmentStatusEnum } from '../../../src/loanCredit/index';
|
|
16
|
+
import { ParameterTypeEnum } from '../../../src/loanConfig/index';
|
|
15
17
|
import { CollectionResultStatus } from '../../../src/collection/enums/CollectionResultStatus';
|
|
16
18
|
|
|
17
19
|
describe('retailLoan — contrato app ↔ retail-loan-business (I1)', () => {
|
|
@@ -25,6 +27,17 @@ describe('retailLoan — contrato app ↔ retail-loan-business (I1)', () => {
|
|
|
25
27
|
expect(MyDocumentKindEnum.PAYMENT_RECEIPT).toBe('PAYMENT_RECEIPT');
|
|
26
28
|
});
|
|
27
29
|
|
|
30
|
+
it('la lista de Legal sale de un parámetro LEGAL de loan-config', () => {
|
|
31
|
+
const doc: MyLegalDocument = {
|
|
32
|
+
id: 'privacy-notice',
|
|
33
|
+
title: 'Aviso de Privacidad SureKeep',
|
|
34
|
+
revisedAt: '2026-10-17',
|
|
35
|
+
url: 'https://develop.d1nwd14q1nl8b0.amplifyapp.com/docs/aviso-privacidad-surekeep.pdf',
|
|
36
|
+
};
|
|
37
|
+
expect(ParameterTypeEnum.LEGAL).toBe('LEGAL');
|
|
38
|
+
expect(doc.revisedAt).toBe('2026-10-17');
|
|
39
|
+
});
|
|
40
|
+
|
|
28
41
|
it('el detalle del crédito va en pesos y con frecuencia semanal', () => {
|
|
29
42
|
const detail: MyCreditDetail = {
|
|
30
43
|
creditId: 'CR-1',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG =
|
|
2
|
+
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG + LEGAL = 16).
|
|
3
3
|
* @enum {string}
|
|
4
4
|
*/
|
|
5
5
|
export declare enum ParameterTypeEnum {
|
|
@@ -17,5 +17,7 @@ export declare enum ParameterTypeEnum {
|
|
|
17
17
|
WIZARD = "WIZARD",
|
|
18
18
|
INTEGRATIONS = "INTEGRATIONS",
|
|
19
19
|
SCORING = "SCORING",
|
|
20
|
-
FEATURE_FLAG = "FEATURE_FLAG"
|
|
20
|
+
FEATURE_FLAG = "FEATURE_FLAG",
|
|
21
|
+
/** Documentos que la App muestra en la sección Legal del módulo. */
|
|
22
|
+
LEGAL = "LEGAL"
|
|
21
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ParameterTypeEnum = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG =
|
|
5
|
+
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG + LEGAL = 16).
|
|
6
6
|
* @enum {string}
|
|
7
7
|
*/
|
|
8
8
|
var ParameterTypeEnum;
|
|
@@ -22,4 +22,6 @@ var ParameterTypeEnum;
|
|
|
22
22
|
ParameterTypeEnum["INTEGRATIONS"] = "INTEGRATIONS";
|
|
23
23
|
ParameterTypeEnum["SCORING"] = "SCORING";
|
|
24
24
|
ParameterTypeEnum["FEATURE_FLAG"] = "FEATURE_FLAG";
|
|
25
|
+
/** Documentos que la App muestra en la sección Legal del módulo. */
|
|
26
|
+
ParameterTypeEnum["LEGAL"] = "LEGAL";
|
|
25
27
|
})(ParameterTypeEnum || (exports.ParameterTypeEnum = ParameterTypeEnum = {}));
|
|
@@ -10,6 +10,7 @@ export * from './dtos/MyInstallment';
|
|
|
10
10
|
export * from './dtos/MyPayment';
|
|
11
11
|
export * from './dtos/MyDocument';
|
|
12
12
|
export * from './dtos/MyDocumentUrl';
|
|
13
|
+
export * from './dtos/MyLegalDocument';
|
|
13
14
|
export * from './enums/MyPaymentTypeEnum';
|
|
14
15
|
export * from './enums/MyNextInstallmentModeEnum';
|
|
15
16
|
export * from './enums/MyPaymentUnavailableReasonEnum';
|
package/bin/retailLoan/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./dtos/MyInstallment"), exports);
|
|
|
28
28
|
__exportStar(require("./dtos/MyPayment"), exports);
|
|
29
29
|
__exportStar(require("./dtos/MyDocument"), exports);
|
|
30
30
|
__exportStar(require("./dtos/MyDocumentUrl"), exports);
|
|
31
|
+
__exportStar(require("./dtos/MyLegalDocument"), exports);
|
|
31
32
|
// Pagos
|
|
32
33
|
__exportStar(require("./enums/MyPaymentTypeEnum"), exports);
|
|
33
34
|
__exportStar(require("./enums/MyNextInstallmentModeEnum"), exports);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG =
|
|
2
|
+
* Sub-tipos de parámetro operativo del SOFOM (M6 §8 = 13 + SCORING de §5 + FEATURE_FLAG + LEGAL = 16).
|
|
3
3
|
* @enum {string}
|
|
4
4
|
*/
|
|
5
5
|
export enum ParameterTypeEnum {
|
|
@@ -18,4 +18,6 @@ export enum ParameterTypeEnum {
|
|
|
18
18
|
INTEGRATIONS = 'INTEGRATIONS',
|
|
19
19
|
SCORING = 'SCORING',
|
|
20
20
|
FEATURE_FLAG = 'FEATURE_FLAG',
|
|
21
|
+
/** Documentos que la App muestra en la sección Legal del módulo. */
|
|
22
|
+
LEGAL = 'LEGAL',
|
|
21
23
|
}
|
package/src/retailLoan/index.ts
CHANGED