@fiado/type-kit 1.4.89 → 1.4.91

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.
Files changed (82) hide show
  1. package/bin/authentication/dtos/ChangePasswordRequest.d.ts +6 -0
  2. package/bin/authentication/dtos/ChangePasswordRequest.js +32 -0
  3. package/bin/authentication/dtos/RefreshTokenRequest.d.ts +4 -0
  4. package/bin/authentication/dtos/RefreshTokenRequest.js +26 -0
  5. package/bin/authentication/dtos/RespondToAuthChallengeRequest.d.ts +7 -0
  6. package/bin/authentication/dtos/RespondToAuthChallengeRequest.js +37 -0
  7. package/bin/authentication/dtos/SignInRequest.d.ts +9 -0
  8. package/bin/authentication/dtos/SignInRequest.js +47 -0
  9. package/bin/authentication/dtos/SignUpRequest.d.ts +7 -0
  10. package/bin/authentication/dtos/SignUpRequest.js +37 -0
  11. package/bin/authentication/dtos/UserConfirmRequest.d.ts +5 -0
  12. package/bin/authentication/dtos/UserConfirmRequest.js +27 -0
  13. package/bin/authentication/index.d.ts +6 -0
  14. package/bin/authentication/index.js +6 -0
  15. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  16. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  17. package/bin/index.d.ts +1 -0
  18. package/bin/index.js +2 -1
  19. package/bin/riskProfile/dtos/TransactionAlertResponse.d.ts +22 -0
  20. package/bin/riskProfile/dtos/TransactionAlertResponse.js +6 -0
  21. package/bin/riskProfile/index.d.ts +1 -0
  22. package/bin/riskProfile/index.js +1 -0
  23. package/bin/role/dtos/DirectoryBackoffice.d.ts +15 -0
  24. package/bin/role/dtos/DirectoryBackoffice.js +6 -0
  25. package/bin/role/dtos/PermissionCreateRequest.d.ts +4 -0
  26. package/bin/role/dtos/PermissionCreateRequest.js +24 -0
  27. package/bin/role/dtos/PermissionResponse.d.ts +8 -0
  28. package/bin/role/dtos/PermissionResponse.js +6 -0
  29. package/bin/role/dtos/PermissionUpdateRequest.d.ts +5 -0
  30. package/bin/role/dtos/PermissionUpdateRequest.js +31 -0
  31. package/bin/role/dtos/RoleAssignRequest.d.ts +4 -0
  32. package/bin/role/dtos/RoleAssignRequest.js +25 -0
  33. package/bin/role/dtos/RoleCreateRequest.d.ts +5 -0
  34. package/bin/role/dtos/RoleCreateRequest.js +30 -0
  35. package/bin/role/dtos/RoleResponse.d.ts +9 -0
  36. package/bin/role/dtos/RoleResponse.js +6 -0
  37. package/bin/role/dtos/RoleUpdateRequest.d.ts +6 -0
  38. package/bin/role/dtos/RoleUpdateRequest.js +36 -0
  39. package/bin/role/dtos/UserRoleResponse.d.ts +9 -0
  40. package/bin/role/dtos/UserRoleResponse.js +6 -0
  41. package/bin/role/enums/DirectoryBackofficeStatusEnum.d.ts +4 -0
  42. package/bin/role/enums/DirectoryBackofficeStatusEnum.js +8 -0
  43. package/bin/role/index.d.ts +10 -0
  44. package/bin/role/index.js +28 -0
  45. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  46. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  47. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  48. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  49. package/package.json +1 -1
  50. package/src/authentication/dtos/ChangePasswordRequest.ts +17 -0
  51. package/src/authentication/dtos/RefreshTokenRequest.ts +13 -0
  52. package/src/authentication/dtos/RespondToAuthChallengeRequest.ts +25 -0
  53. package/src/authentication/dtos/SignInRequest.ts +30 -0
  54. package/src/authentication/dtos/SignUpRequest.ts +22 -0
  55. package/src/authentication/dtos/UserConfirmRequest.ts +14 -0
  56. package/src/authentication/index.ts +11 -1
  57. package/src/index.ts +1 -1
  58. package/src/riskProfile/dtos/TransactionAlertResponse.ts +43 -0
  59. package/src/riskProfile/index.ts +5 -0
  60. package/src/role/dtos/DirectoryBackoffice.ts +16 -0
  61. package/src/role/dtos/PermissionCreateRequest.ts +12 -0
  62. package/src/role/dtos/PermissionResponse.ts +10 -0
  63. package/src/role/dtos/PermissionUpdateRequest.ts +18 -0
  64. package/src/role/dtos/RoleAssignRequest.ts +14 -0
  65. package/src/role/dtos/RoleCreateRequest.ts +18 -0
  66. package/src/role/dtos/RoleResponse.ts +9 -0
  67. package/src/role/dtos/RoleUpdateRequest.ts +22 -0
  68. package/src/role/dtos/UserRoleResponse.ts +9 -0
  69. package/src/role/enums/DirectoryBackofficeStatusEnum.ts +4 -0
  70. package/src/role/index.ts +14 -0
  71. package/bin/account/dtos/CreateBankAccountOutput.d.ts +0 -5
  72. package/bin/account/dtos/CreateBankAccountOutput.js +0 -6
  73. package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +0 -8
  74. package/bin/account/dtos/CreateBankAccountUserOutput.js +0 -6
  75. package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +0 -15
  76. package/bin/creditContract/dto/CreditContractCreateRequest.js +0 -72
  77. package/bin/transaction/TransactionCreateRequest.d.ts +0 -2
  78. package/bin/transaction/TransactionCreateRequest.js +0 -6
  79. package/bin/transaction/TransactionCreateResponse.d.ts +0 -2
  80. package/bin/transaction/TransactionCreateResponse.js +0 -6
  81. package/bin/transaction/dtos/TransactionSourceEnum.d.ts +0 -5
  82. package/bin/transaction/dtos/TransactionSourceEnum.js +0 -9
@@ -0,0 +1,9 @@
1
+ export declare class UserRoleResponse {
2
+ id: string;
3
+ roleId: string;
4
+ email: string;
5
+ name: string;
6
+ jobTitle: string;
7
+ createdAt: number;
8
+ updatedAt: number;
9
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserRoleResponse = void 0;
4
+ class UserRoleResponse {
5
+ }
6
+ exports.UserRoleResponse = UserRoleResponse;
@@ -0,0 +1,4 @@
1
+ export declare enum DirectoryBackofficeStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DirectoryBackofficeStatusEnum = void 0;
4
+ var DirectoryBackofficeStatusEnum;
5
+ (function (DirectoryBackofficeStatusEnum) {
6
+ DirectoryBackofficeStatusEnum["ACTIVE"] = "ACTIVE";
7
+ DirectoryBackofficeStatusEnum["INACTIVE"] = "INACTIVE";
8
+ })(DirectoryBackofficeStatusEnum || (exports.DirectoryBackofficeStatusEnum = DirectoryBackofficeStatusEnum = {}));
@@ -0,0 +1,10 @@
1
+ export * from './dtos/DirectoryBackoffice';
2
+ export * from './dtos/PermissionCreateRequest';
3
+ export * from './dtos/PermissionResponse';
4
+ export * from './dtos/PermissionUpdateRequest';
5
+ export * from './dtos/RoleAssignRequest';
6
+ export * from './dtos/RoleCreateRequest';
7
+ export * from './dtos/RoleResponse';
8
+ export * from './dtos/RoleUpdateRequest';
9
+ export * from './dtos/UserRoleResponse';
10
+ export * from './enums/DirectoryBackofficeStatusEnum';
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ //dtos
18
+ __exportStar(require("./dtos/DirectoryBackoffice"), exports);
19
+ __exportStar(require("./dtos/PermissionCreateRequest"), exports);
20
+ __exportStar(require("./dtos/PermissionResponse"), exports);
21
+ __exportStar(require("./dtos/PermissionUpdateRequest"), exports);
22
+ __exportStar(require("./dtos/RoleAssignRequest"), exports);
23
+ __exportStar(require("./dtos/RoleCreateRequest"), exports);
24
+ __exportStar(require("./dtos/RoleResponse"), exports);
25
+ __exportStar(require("./dtos/RoleUpdateRequest"), exports);
26
+ __exportStar(require("./dtos/UserRoleResponse"), exports);
27
+ //enums
28
+ __exportStar(require("./enums/DirectoryBackofficeStatusEnum"), exports);
@@ -0,0 +1,5 @@
1
+ export declare class AuthorizeP2pTransactionRequest {
2
+ idempotencyKey: string;
3
+ targetDirectoryId: string;
4
+ amount: number;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizeP2pTransactionRequest = void 0;
4
+ class AuthorizeP2pTransactionRequest {
5
+ }
6
+ exports.AuthorizeP2pTransactionRequest = AuthorizeP2pTransactionRequest;
@@ -0,0 +1,7 @@
1
+ import { OperationEnum } from "../../../transaction";
2
+ export declare class AuthorizePocketTransactionRequest {
3
+ idempotencyKey: string;
4
+ targetPocketId: string;
5
+ operation: OperationEnum;
6
+ amount: number;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthorizePocketTransactionRequest = void 0;
4
+ class AuthorizePocketTransactionRequest {
5
+ }
6
+ exports.AuthorizePocketTransactionRequest = AuthorizePocketTransactionRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.4.89",
3
+ "version": "1.4.91",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,17 @@
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+ export class ChangePasswordRequest
5
+ {
6
+ @IsNotEmpty()
7
+ @IsString()
8
+ username: string
9
+
10
+ @IsNotEmpty()
11
+ @IsString()
12
+ newPassword: string
13
+
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ typeOfDirectoryId: TypeOfDirectoryId
17
+ }
@@ -0,0 +1,13 @@
1
+ import { IsNotEmpty, IsString } from "class-validator";
2
+
3
+
4
+ export class RefreshTokenRequest {
5
+
6
+ @IsString()
7
+ @IsNotEmpty()
8
+ refreshToken: string
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ typeOfDirectoryId: string
13
+ }
@@ -0,0 +1,25 @@
1
+ import { IsNotEmpty, IsString } from "class-validator";
2
+ import { TypeOfDirectoryId } from "../../directory";
3
+
4
+
5
+
6
+ export class RespondToAuthChallengeRequest {
7
+
8
+
9
+ @IsNotEmpty()
10
+ @IsString()
11
+ username: string
12
+
13
+ @IsNotEmpty()
14
+ @IsString()
15
+ password: string
16
+
17
+ @IsNotEmpty()
18
+ @IsString()
19
+ session: string
20
+
21
+ @IsNotEmpty()
22
+ @IsString()
23
+ typeOfDirectoryId: TypeOfDirectoryId
24
+
25
+ }
@@ -0,0 +1,30 @@
1
+ import { IsNotEmpty, IsOptional, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+ export class SignInRequest {
5
+
6
+ @IsString()
7
+ @IsNotEmpty()
8
+ userName: string
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ password: string
13
+
14
+ @IsString()
15
+ @IsNotEmpty()
16
+ typeOfDirectoryId: TypeOfDirectoryId
17
+
18
+ @IsOptional()
19
+ @IsString()
20
+ status: string
21
+
22
+ @IsOptional()
23
+ @IsString()
24
+ challengeName: string
25
+
26
+ @IsOptional()
27
+ @IsString()
28
+ session: string
29
+
30
+ }
@@ -0,0 +1,22 @@
1
+ import { IsNotEmpty, IsPhoneNumber, IsString, IsUUID } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+ export class SignUpRequest {
6
+
7
+ @IsString()
8
+ @IsNotEmpty()
9
+ phoneNumber: string
10
+
11
+ @IsNotEmpty()
12
+ @IsString()
13
+ directoryId: string
14
+
15
+ @IsString()
16
+ @IsNotEmpty()
17
+ password: string
18
+
19
+ @IsUUID()
20
+ @IsNotEmpty()
21
+ typeOfDirectoryId: TypeOfDirectoryId
22
+ }
@@ -0,0 +1,14 @@
1
+ import { IsNotEmpty, IsString, IsUUID } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+ export class UserConfirmRequest {
6
+
7
+ @IsString()
8
+ @IsNotEmpty()
9
+ username: string
10
+
11
+ @IsUUID()
12
+ @IsNotEmpty()
13
+ typeOfDirectoryId: TypeOfDirectoryId
14
+ }
@@ -1,4 +1,14 @@
1
1
 
2
2
  //dtos
3
+ export * from './dtos/ChangePasswordRequest';
4
+ export * from './dtos/RefreshTokenRequest';
5
+ export * from './dtos/RespondToAuthChallengeRequest';
6
+ export * from './dtos/SignInRequest';
7
+
3
8
  export * from './dtos/SignUpAdditionalRequest';
4
- export * from './dtos/SignUpAdditionalResponse';
9
+ export * from './dtos/SignUpAdditionalResponse';
10
+ export * from './dtos/SignUpRequest';
11
+ export * from './dtos/UserConfirmRequest';
12
+
13
+
14
+
package/src/index.ts CHANGED
@@ -31,7 +31,7 @@ export * as BBVARst from './bbvaRst';
31
31
  export * as FraudPreventionEngine from './fraudPreventionEngine';
32
32
  export * as RiskProfile from './riskProfile';
33
33
  export * as STPAccount from './stpAccount';
34
-
34
+ export * as Role from './role';
35
35
  export * as LegalDocumentsBusiness from './legal-documents-business';
36
36
 
37
37
 
@@ -0,0 +1,43 @@
1
+ export class TransactionAlertResponse {
2
+
3
+ id!: string;
4
+
5
+ indexName!: string;
6
+
7
+ phoneNumber!: string;
8
+
9
+ type!: string;
10
+
11
+ status!: string;
12
+
13
+ notes!: string;
14
+
15
+ reported!: 1 | 0;
16
+
17
+ directoryId!: string;
18
+
19
+ peopleId!: string;
20
+
21
+ alertName!: string;
22
+
23
+ transactionDate!: string;
24
+
25
+ transactionNumber!: string;
26
+
27
+ revisionEndingDate!: string;
28
+
29
+ revisionEndingBy!: string;
30
+
31
+ reportedDate!: string;
32
+
33
+ reportedBy!: string;
34
+
35
+ attachmentKeys!: string[];
36
+
37
+ createdBy!: string;
38
+
39
+ fileNumber!: string;
40
+
41
+ transactionAmount!: number;
42
+ }
43
+
@@ -6,7 +6,12 @@ export * from './dtos/TransactionAlarmQueueMessage';
6
6
  export * from './dtos/UpdateTransactionAlertRequest';
7
7
  export * from './dtos/CreateBackofficeAlarm';
8
8
  export * from './dtos/CreatePrivateAlarm';
9
+ export * from './dtos/TransactionAlertResponse';
10
+
11
+
12
+
9
13
  export * from './enums/PepLevelEnum';
10
14
  export * from './enums/RiskFactorCategoryEnum';
11
15
  export * from './enums/AlarmCategory';
12
16
  export * from './enums/AlarmOperationType';
17
+
@@ -0,0 +1,16 @@
1
+ import { DirectoryBackofficeStatusEnum } from "../enums/DirectoryBackofficeStatusEnum"
2
+
3
+ export class DirectoryBackoffice {
4
+ id:string
5
+ fullName:string
6
+ jobTitle:string
7
+ identityId:string
8
+ failedLoginAttempts:number
9
+ lastSession:number
10
+ status:DirectoryBackofficeStatusEnum
11
+ tenantId:string
12
+ createdAt:number
13
+ createdby:string
14
+ updatedAt:number
15
+ updatedBy:string
16
+ }
@@ -0,0 +1,12 @@
1
+
2
+
3
+ import { IsString } from 'class-validator';
4
+
5
+ export class PermissionCreateRequest {
6
+
7
+ @IsString()
8
+ name: string;
9
+
10
+ @IsString()
11
+ description: string;
12
+ }
@@ -0,0 +1,10 @@
1
+
2
+
3
+ export class PermissionResponse {
4
+ id: string;
5
+ name: string;
6
+ createdAt: number;
7
+ updatedAt: number;
8
+ isActive: boolean;
9
+ description: string;
10
+ }
@@ -0,0 +1,18 @@
1
+
2
+
3
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
4
+
5
+ export class PermissionUpdateRequest {
6
+
7
+ @IsString()
8
+ @IsOptional()
9
+ name: string;
10
+
11
+ @IsString()
12
+ @IsOptional()
13
+ description: string;
14
+
15
+ @IsBoolean()
16
+ @IsOptional()
17
+ isActive: boolean;
18
+ }
@@ -0,0 +1,14 @@
1
+
2
+
3
+ import { IsNotEmpty, IsString } from 'class-validator';
4
+
5
+ export class RoleAssignRequest {
6
+
7
+ @IsString()
8
+ email: string;
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ roleId: string;
13
+
14
+ }
@@ -0,0 +1,18 @@
1
+
2
+
3
+ import { IsNotEmpty, IsString } from 'class-validator';
4
+
5
+ export class RoleCreateRequest {
6
+
7
+ @IsString()
8
+ @IsNotEmpty()
9
+ name: string;
10
+
11
+ @IsString({ each: true })
12
+ permissions: string[];
13
+
14
+ @IsString()
15
+ @IsNotEmpty()
16
+ description: string;
17
+
18
+ }
@@ -0,0 +1,9 @@
1
+ export class RoleResponse {
2
+ id: string;
3
+ name: string;
4
+ permissions: string[];
5
+ createdAt: number;
6
+ updatedAt: number;
7
+ isActive: boolean;
8
+ description: string;
9
+ }
@@ -0,0 +1,22 @@
1
+
2
+
3
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
4
+
5
+ export class RoleUpdateRequest {
6
+
7
+ @IsString()
8
+ @IsOptional()
9
+ name: string;
10
+
11
+ @IsString({ each: true })
12
+ @IsOptional()
13
+ permissions: string[];
14
+
15
+ @IsString()
16
+ @IsOptional()
17
+ description: string;
18
+
19
+ @IsBoolean()
20
+ @IsOptional()
21
+ isActive: boolean;
22
+ }
@@ -0,0 +1,9 @@
1
+ export class UserRoleResponse {
2
+ id: string;
3
+ roleId: string;
4
+ email: string;
5
+ name: string;
6
+ jobTitle: string;
7
+ createdAt: number;
8
+ updatedAt: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ export enum DirectoryBackofficeStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ }
@@ -0,0 +1,14 @@
1
+
2
+ //dtos
3
+ export * from './dtos/DirectoryBackoffice';
4
+ export * from './dtos/PermissionCreateRequest';
5
+ export * from './dtos/PermissionResponse';
6
+ export * from './dtos/PermissionUpdateRequest';
7
+ export * from './dtos/RoleAssignRequest';
8
+ export * from './dtos/RoleCreateRequest';
9
+ export * from './dtos/RoleResponse';
10
+ export * from './dtos/RoleUpdateRequest';
11
+ export * from './dtos/UserRoleResponse';
12
+
13
+ //enums
14
+ export * from './enums/DirectoryBackofficeStatusEnum';
@@ -1,5 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountOutput {
3
- externalAccountId: string;
4
- provider: Provider;
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountOutput = void 0;
4
- class CreateBankAccountOutput {
5
- }
6
- exports.CreateBankAccountOutput = CreateBankAccountOutput;
@@ -1,8 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountUserOutput {
3
- externalUserId: string;
4
- externalAccountId?: string;
5
- provider: Provider;
6
- accountNumber?: string;
7
- routingNumber?: string;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountUserOutput = void 0;
4
- class CreateBankAccountUserOutput {
5
- }
6
- exports.CreateBankAccountUserOutput = CreateBankAccountUserOutput;
@@ -1,15 +0,0 @@
1
- import { CountryId } from "../../country";
2
- import { InstrumentEnum } from "../enums/InstrumentEnum";
3
- export default class CreditContractCreateRequest {
4
- directoryUserId: string;
5
- relatedTransaction: string;
6
- peopleId: string;
7
- currencyId: CountryId;
8
- creditNotional: number;
9
- creditFee: number;
10
- creditTax: number;
11
- creditTotal: number;
12
- instrument: InstrumentEnum;
13
- amountBlocked: number;
14
- relatedPocketId: string;
15
- }
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const class_validator_1 = require("class-validator");
13
- const country_1 = require("../../country");
14
- const InstrumentEnum_1 = require("../enums/InstrumentEnum");
15
- class CreditContractCreateRequest {
16
- }
17
- exports.default = CreditContractCreateRequest;
18
- __decorate([
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.IsNotEmpty)(),
21
- __metadata("design:type", String)
22
- ], CreditContractCreateRequest.prototype, "directoryUserId", void 0);
23
- __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsNotEmpty)(),
26
- __metadata("design:type", String)
27
- ], CreditContractCreateRequest.prototype, "relatedTransaction", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsString)(),
30
- (0, class_validator_1.IsNotEmpty)(),
31
- __metadata("design:type", String)
32
- ], CreditContractCreateRequest.prototype, "peopleId", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsEnum)(country_1.CountryId),
35
- (0, class_validator_1.IsNotEmpty)(),
36
- __metadata("design:type", String)
37
- ], CreditContractCreateRequest.prototype, "currencyId", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsNumber)(),
40
- (0, class_validator_1.IsNotEmpty)(),
41
- __metadata("design:type", Number)
42
- ], CreditContractCreateRequest.prototype, "creditNotional", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsNumber)(),
45
- (0, class_validator_1.IsNotEmpty)(),
46
- __metadata("design:type", Number)
47
- ], CreditContractCreateRequest.prototype, "creditFee", void 0);
48
- __decorate([
49
- (0, class_validator_1.IsNumber)(),
50
- (0, class_validator_1.IsNotEmpty)(),
51
- __metadata("design:type", Number)
52
- ], CreditContractCreateRequest.prototype, "creditTax", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsNumber)(),
55
- (0, class_validator_1.IsNotEmpty)(),
56
- __metadata("design:type", Number)
57
- ], CreditContractCreateRequest.prototype, "creditTotal", void 0);
58
- __decorate([
59
- (0, class_validator_1.IsEnum)(InstrumentEnum_1.InstrumentEnum),
60
- (0, class_validator_1.IsNotEmpty)(),
61
- __metadata("design:type", String)
62
- ], CreditContractCreateRequest.prototype, "instrument", void 0);
63
- __decorate([
64
- (0, class_validator_1.IsNumber)(),
65
- (0, class_validator_1.IsNotEmpty)(),
66
- __metadata("design:type", Number)
67
- ], CreditContractCreateRequest.prototype, "amountBlocked", void 0);
68
- __decorate([
69
- (0, class_validator_1.IsString)(),
70
- (0, class_validator_1.IsNotEmpty)(),
71
- __metadata("design:type", String)
72
- ], CreditContractCreateRequest.prototype, "relatedPocketId", void 0);
@@ -1,2 +0,0 @@
1
- export declare class TransactionCreateRequest {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCreateRequest = void 0;
4
- class TransactionCreateRequest {
5
- }
6
- exports.TransactionCreateRequest = TransactionCreateRequest;
@@ -1,2 +0,0 @@
1
- export declare class TransactionCreateResponse {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCreateResponse = void 0;
4
- class TransactionCreateResponse {
5
- }
6
- exports.TransactionCreateResponse = TransactionCreateResponse;
@@ -1,5 +0,0 @@
1
- export declare enum TransactionSourceEnum {
2
- FIADO_INC = "FIADO_INC",
3
- FIADO_IFPE = "FIADO_IFPE",
4
- FIADO_SA = "FIADO_SA"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionSourceEnum = void 0;
4
- var TransactionSourceEnum;
5
- (function (TransactionSourceEnum) {
6
- TransactionSourceEnum["FIADO_INC"] = "FIADO_INC";
7
- TransactionSourceEnum["FIADO_IFPE"] = "FIADO_IFPE";
8
- TransactionSourceEnum["FIADO_SA"] = "FIADO_SA";
9
- })(TransactionSourceEnum || (exports.TransactionSourceEnum = TransactionSourceEnum = {}));