@fiado/type-kit 3.13.4 → 3.13.5

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.
@@ -2,7 +2,11 @@
2
2
  * Request para solicitar la originacion de un credito LOAN.
3
3
  */
4
4
  export declare class CreditOriginationRequest {
5
- directoryId: string;
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;
6
10
  offerId: string;
7
11
  amountMxn: number;
8
12
  termWeeks: number;
@@ -18,8 +18,8 @@ class CreditOriginationRequest {
18
18
  }
19
19
  exports.CreditOriginationRequest = CreditOriginationRequest;
20
20
  __decorate([
21
+ (0, class_validator_1.IsOptional)(),
21
22
  (0, class_validator_1.IsString)(),
22
- (0, class_validator_1.IsNotEmpty)(),
23
23
  __metadata("design:type", String)
24
24
  ], CreditOriginationRequest.prototype, "directoryId", void 0);
25
25
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.13.4",
3
+ "version": "3.13.5",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -5,9 +5,13 @@ import { IsInt, IsNotEmpty, IsNumber, IsOptional, IsString, Min } from "class-va
5
5
  */
6
6
  export class CreditOriginationRequest {
7
7
 
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()
8
13
  @IsString()
9
- @IsNotEmpty()
10
- directoryId!: string;
14
+ directoryId?: string;
11
15
 
12
16
  @IsString()
13
17
  @IsNotEmpty()