@fiado/type-kit 3.13.5 → 3.13.7
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/creditEngine/dtos/CreditOriginationRequest.d.ts +4 -5
- package/bin/creditEngine/dtos/CreditOriginationRequest.js +4 -5
- package/bin/creditEngine/dtos/CreditSignatureRequest.d.ts +4 -1
- package/bin/creditEngine/dtos/CreditSignatureRequest.js +4 -5
- package/package.json +1 -1
- package/src/creditEngine/dtos/CreditOriginationRequest.ts +4 -8
- package/src/creditEngine/dtos/CreditSignatureRequest.ts +5 -5
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Request para solicitar la originacion de un credito LOAN.
|
|
3
|
+
*
|
|
4
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
5
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
6
|
+
* validacion (whitelist: true).
|
|
3
7
|
*/
|
|
4
8
|
export declare class CreditOriginationRequest {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated El backend ignora este campo y resuelve directoryId desde el JWT.
|
|
7
|
-
* Se mantiene opcional para compatibilidad con clientes legacy que aún lo envían.
|
|
8
|
-
*/
|
|
9
|
-
directoryId?: string;
|
|
10
9
|
offerId: string;
|
|
11
10
|
amountMxn: number;
|
|
12
11
|
termWeeks: number;
|
|
@@ -13,15 +13,14 @@ exports.CreditOriginationRequest = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/**
|
|
15
15
|
* Request para solicitar la originacion de un credito LOAN.
|
|
16
|
+
*
|
|
17
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
18
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
19
|
+
* validacion (whitelist: true).
|
|
16
20
|
*/
|
|
17
21
|
class CreditOriginationRequest {
|
|
18
22
|
}
|
|
19
23
|
exports.CreditOriginationRequest = CreditOriginationRequest;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CreditOriginationRequest.prototype, "directoryId", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, class_validator_1.IsString)(),
|
|
27
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Request para firmar o rechazar un contrato de credito LOAN.
|
|
3
|
+
*
|
|
4
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
5
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
6
|
+
* validacion (whitelist: true).
|
|
3
7
|
*/
|
|
4
8
|
export declare class CreditSignatureRequest {
|
|
5
|
-
directoryId: string;
|
|
6
9
|
accepted: boolean;
|
|
7
10
|
}
|
|
@@ -13,15 +13,14 @@ exports.CreditSignatureRequest = void 0;
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
/**
|
|
15
15
|
* Request para firmar o rechazar un contrato de credito LOAN.
|
|
16
|
+
*
|
|
17
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
18
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
19
|
+
* validacion (whitelist: true).
|
|
16
20
|
*/
|
|
17
21
|
class CreditSignatureRequest {
|
|
18
22
|
}
|
|
19
23
|
exports.CreditSignatureRequest = CreditSignatureRequest;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CreditSignatureRequest.prototype, "directoryId", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, class_validator_1.IsBoolean)(),
|
|
27
26
|
__metadata("design:type", Boolean)
|
package/package.json
CHANGED
|
@@ -2,17 +2,13 @@ import { IsInt, IsNotEmpty, IsNumber, IsOptional, IsString, Min } from "class-va
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request para solicitar la originacion de un credito LOAN.
|
|
5
|
+
*
|
|
6
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
7
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
8
|
+
* validacion (whitelist: true).
|
|
5
9
|
*/
|
|
6
10
|
export class CreditOriginationRequest {
|
|
7
11
|
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated El backend ignora este campo y resuelve directoryId desde el JWT.
|
|
10
|
-
* Se mantiene opcional para compatibilidad con clientes legacy que aún lo envían.
|
|
11
|
-
*/
|
|
12
|
-
@IsOptional()
|
|
13
|
-
@IsString()
|
|
14
|
-
directoryId?: string;
|
|
15
|
-
|
|
16
12
|
@IsString()
|
|
17
13
|
@IsNotEmpty()
|
|
18
14
|
offerId!: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IsBoolean
|
|
1
|
+
import { IsBoolean } from "class-validator";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request para firmar o rechazar un contrato de credito LOAN.
|
|
5
|
+
*
|
|
6
|
+
* El `directoryId` se resuelve desde el JWT en el backend; el wallet NO debe
|
|
7
|
+
* enviarlo en el body. Si lo envia, se descarta silenciosamente por la
|
|
8
|
+
* validacion (whitelist: true).
|
|
5
9
|
*/
|
|
6
10
|
export class CreditSignatureRequest {
|
|
7
11
|
|
|
8
|
-
@IsString()
|
|
9
|
-
@IsNotEmpty()
|
|
10
|
-
directoryId!: string;
|
|
11
|
-
|
|
12
12
|
@IsBoolean()
|
|
13
13
|
accepted!: boolean;
|
|
14
14
|
}
|