@fiado/type-kit 1.5.12 → 1.6.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.
Files changed (34) hide show
  1. package/bin/account/dtos/CreateBankAccountOutput.d.ts +5 -0
  2. package/bin/account/dtos/CreateBankAccountOutput.js +6 -0
  3. package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +8 -0
  4. package/bin/account/dtos/CreateBankAccountUserOutput.js +6 -0
  5. package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +15 -0
  6. package/bin/creditContract/dto/CreditContractCreateRequest.js +72 -0
  7. package/bin/legal-documents-business/dtos/LegalDocumentCreateRequest.d.ts +0 -1
  8. package/bin/legal-documents-business/dtos/LegalDocumentCreateRequest.js +0 -4
  9. package/bin/legal-documents-business/dtos/LegalDocumentResponse.d.ts +0 -1
  10. package/bin/riskProfile/index.d.ts +0 -2
  11. package/bin/riskProfile/index.js +0 -2
  12. package/bin/transaction/TransactionCreateRequest.d.ts +2 -0
  13. package/bin/transaction/TransactionCreateRequest.js +6 -0
  14. package/bin/transaction/TransactionCreateResponse.d.ts +2 -0
  15. package/bin/transaction/TransactionCreateResponse.js +6 -0
  16. package/bin/transaction/dtos/TransactionSourceEnum.d.ts +5 -0
  17. package/bin/transaction/dtos/TransactionSourceEnum.js +9 -0
  18. package/package.json +1 -1
  19. package/src/legal-documents-business/dtos/LegalDocumentCreateRequest.ts +1 -5
  20. package/src/legal-documents-business/dtos/LegalDocumentResponse.ts +0 -5
  21. package/src/legal-documents-business/enums/LegalDocumentType.ts +0 -4
  22. package/src/riskProfile/index.ts +0 -2
  23. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  24. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
  25. package/bin/riskProfile/enums/AlarmName.d.ts +0 -15
  26. package/bin/riskProfile/enums/AlarmName.js +0 -19
  27. package/bin/riskProfile/enums/AlarmType.d.ts +0 -5
  28. package/bin/riskProfile/enums/AlarmType.js +0 -9
  29. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +0 -5
  30. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +0 -6
  31. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +0 -7
  32. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +0 -6
  33. package/src/riskProfile/enums/AlarmName.ts +0 -19
  34. package/src/riskProfile/enums/AlarmType.ts +0 -7
@@ -0,0 +1,5 @@
1
+ import { Provider } from "../../provider";
2
+ export declare class CreateBankAccountOutput {
3
+ externalAccountId: string;
4
+ provider: Provider;
5
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBankAccountOutput = void 0;
4
+ class CreateBankAccountOutput {
5
+ }
6
+ exports.CreateBankAccountOutput = CreateBankAccountOutput;
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBankAccountUserOutput = void 0;
4
+ class CreateBankAccountUserOutput {
5
+ }
6
+ exports.CreateBankAccountUserOutput = CreateBankAccountUserOutput;
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,72 @@
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,6 +1,5 @@
1
1
  export declare class LegalDocumentCreateRequest {
2
2
  type: string;
3
3
  version: string;
4
- content: string;
5
4
  description: string;
6
5
  }
@@ -22,10 +22,6 @@ __decorate([
22
22
  (0, class_validator_1.IsString)(),
23
23
  __metadata("design:type", String)
24
24
  ], LegalDocumentCreateRequest.prototype, "version", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- __metadata("design:type", String)
28
- ], LegalDocumentCreateRequest.prototype, "content", void 0);
29
25
  __decorate([
30
26
  (0, class_validator_1.IsString)(),
31
27
  __metadata("design:type", String)
@@ -3,7 +3,6 @@ export declare class LegalDocumentResponse {
3
3
  id: string;
4
4
  type: LegalDocumentType;
5
5
  version: string;
6
- content: string;
7
6
  description: string;
8
7
  createdby: string;
9
8
  updatedby: string;
@@ -12,5 +12,3 @@ export * from './enums/RiskFactorCategoryEnum';
12
12
  export * from './enums/AlarmCategory';
13
13
  export * from './enums/AlarmOperationType';
14
14
  export * from './enums/AlarmPriority';
15
- export * from './enums/AlarmType';
16
- export * from './enums/AlarmName';
@@ -28,5 +28,3 @@ __exportStar(require("./enums/RiskFactorCategoryEnum"), exports);
28
28
  __exportStar(require("./enums/AlarmCategory"), exports);
29
29
  __exportStar(require("./enums/AlarmOperationType"), exports);
30
30
  __exportStar(require("./enums/AlarmPriority"), exports);
31
- __exportStar(require("./enums/AlarmType"), exports);
32
- __exportStar(require("./enums/AlarmName"), exports);
@@ -0,0 +1,2 @@
1
+ export declare class TransactionCreateRequest {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionCreateRequest = void 0;
4
+ class TransactionCreateRequest {
5
+ }
6
+ exports.TransactionCreateRequest = TransactionCreateRequest;
@@ -0,0 +1,2 @@
1
+ export declare class TransactionCreateResponse {
2
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionCreateResponse = void 0;
4
+ class TransactionCreateResponse {
5
+ }
6
+ exports.TransactionCreateResponse = TransactionCreateResponse;
@@ -0,0 +1,5 @@
1
+ export declare enum TransactionSourceEnum {
2
+ FIADO_INC = "FIADO_INC",
3
+ FIADO_IFPE = "FIADO_IFPE",
4
+ FIADO_SA = "FIADO_SA"
5
+ }
@@ -0,0 +1,9 @@
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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.5.12",
3
+ "version": "1.6.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,6 +1,4 @@
1
- import { IsBoolean, IsString } from "class-validator";
2
-
3
-
1
+ import { IsString } from "class-validator";
4
2
 
5
3
  export class LegalDocumentCreateRequest {
6
4
  @IsString()
@@ -8,7 +6,5 @@ export class LegalDocumentCreateRequest {
8
6
  @IsString()
9
7
  version: string;
10
8
  @IsString()
11
- content: string;
12
- @IsString()
13
9
  description: string;
14
10
  }
@@ -1,13 +1,9 @@
1
1
  import { LegalDocumentType } from "../enums/LegalDocumentType";
2
2
 
3
-
4
-
5
3
  export class LegalDocumentResponse {
6
-
7
4
  id: string;
8
5
  type: LegalDocumentType;
9
6
  version: string;
10
- content: string;
11
7
  description: string;
12
8
  createdby: string;
13
9
  updatedby: string;
@@ -16,5 +12,4 @@ export class LegalDocumentResponse {
16
12
  validFrom: string;
17
13
  validTo: string;
18
14
  status: string;
19
-
20
15
  }
@@ -1,12 +1,8 @@
1
-
2
-
3
1
  export enum LegalDocumentType {
4
-
5
2
  TERMS_AND_CONDITIONS_APP = 'TERMS_AND_CONDITIONS_APP',
6
3
  TERMS_AND_CONDITIONS_USA = 'TERMS_AND_CONDITIONS_USA',
7
4
  TERMS_AND_CONDITIONS_MEX = 'TERMS_AND_CONDITIONS_MEX',
8
5
  PRIVACY_POLICY_USA = 'PRIVACY_POLICY_USA',
9
6
  PRIVACY_POLICY_MEX = 'PRIVACY_POLICY_MEX',
10
7
  COMMUNICATION_POLICIES = 'COMMUNICATION_POLICIES',
11
-
12
8
  }
@@ -15,6 +15,4 @@ export * from './enums/RiskFactorCategoryEnum';
15
15
  export * from './enums/AlarmCategory';
16
16
  export * from './enums/AlarmOperationType';
17
17
  export * from './enums/AlarmPriority';
18
- export * from './enums/AlarmType';
19
- export * from './enums/AlarmName';
20
18
 
@@ -1,3 +0,0 @@
1
- export declare class GroupDirectoryRetationsUpdateRequest {
2
- agent: string;
3
- }
@@ -1,22 +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
- exports.GroupDirectoryRetationsUpdateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GroupDirectoryRetationsUpdateRequest {
15
- }
16
- exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
- __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(1, 20),
21
- __metadata("design:type", String)
22
- ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
@@ -1,15 +0,0 @@
1
- export declare enum AlarmName {
2
- INPUT_SOURCE = "INPUT_SOURCE",
3
- INACTIVITY = "INACTIVITY",
4
- CUSTOM_HIGH_AMOUNT = "CUSTOM_HIGH_AMOUNT",
5
- CUSTOM_MONTHLY_INCREASE = "CUSTOM_MONTHLY_INCREASE",
6
- MONTHLY_LIMIT = "MONTHLY_LIMIT",
7
- HIGH_AMOUNT = "HIGH_AMOUNT",
8
- MONTHLY_INCREASE = "MONTHLY_INCREASE",
9
- SANCTIONED_LIST = "SANCTIONED_LIST",
10
- PEP_LIST = "PEP_LIST",
11
- BLOCKED_LIST = "BLOCKED_LIST",
12
- PROFILE_UPDATE_SANCTIONED = "PROFILE_UPDATE_SANCTIONED",
13
- PROFILE_UPDATE_PEP = "PROFILE_UPDATE_PEP",
14
- PROFILE_UPDATE_BLOCKED = "PROFILE_UPDATE_BLOCKED"
15
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AlarmName = void 0;
4
- var AlarmName;
5
- (function (AlarmName) {
6
- AlarmName["INPUT_SOURCE"] = "INPUT_SOURCE";
7
- AlarmName["INACTIVITY"] = "INACTIVITY";
8
- AlarmName["CUSTOM_HIGH_AMOUNT"] = "CUSTOM_HIGH_AMOUNT";
9
- AlarmName["CUSTOM_MONTHLY_INCREASE"] = "CUSTOM_MONTHLY_INCREASE";
10
- AlarmName["MONTHLY_LIMIT"] = "MONTHLY_LIMIT";
11
- AlarmName["HIGH_AMOUNT"] = "HIGH_AMOUNT";
12
- AlarmName["MONTHLY_INCREASE"] = "MONTHLY_INCREASE";
13
- AlarmName["SANCTIONED_LIST"] = "SANCTIONED_LIST";
14
- AlarmName["PEP_LIST"] = "PEP_LIST";
15
- AlarmName["BLOCKED_LIST"] = "BLOCKED_LIST";
16
- AlarmName["PROFILE_UPDATE_SANCTIONED"] = "PROFILE_UPDATE_SANCTIONED";
17
- AlarmName["PROFILE_UPDATE_PEP"] = "PROFILE_UPDATE_PEP";
18
- AlarmName["PROFILE_UPDATE_BLOCKED"] = "PROFILE_UPDATE_BLOCKED";
19
- })(AlarmName || (exports.AlarmName = AlarmName = {}));
@@ -1,5 +0,0 @@
1
- export declare enum AlarmType {
2
- UNUSUAL = "UNUSUAL",
3
- PEP = "PEP",
4
- CUSTOM = "CUSTOM"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AlarmType = void 0;
4
- var AlarmType;
5
- (function (AlarmType) {
6
- AlarmType["UNUSUAL"] = "UNUSUAL";
7
- AlarmType["PEP"] = "PEP";
8
- AlarmType["CUSTOM"] = "CUSTOM";
9
- })(AlarmType || (exports.AlarmType = AlarmType = {}));
@@ -1,5 +0,0 @@
1
- export declare class AuthorizeP2pTransactionRequest {
2
- idempotencyKey: string;
3
- targetDirectoryId: string;
4
- amount: number;
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthorizeP2pTransactionRequest = void 0;
4
- class AuthorizeP2pTransactionRequest {
5
- }
6
- exports.AuthorizeP2pTransactionRequest = AuthorizeP2pTransactionRequest;
@@ -1,7 +0,0 @@
1
- import { OperationEnum } from "../../../transaction";
2
- export declare class AuthorizePocketTransactionRequest {
3
- idempotencyKey: string;
4
- targetPocketId: string;
5
- operation: OperationEnum;
6
- amount: number;
7
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthorizePocketTransactionRequest = void 0;
4
- class AuthorizePocketTransactionRequest {
5
- }
6
- exports.AuthorizePocketTransactionRequest = AuthorizePocketTransactionRequest;
@@ -1,19 +0,0 @@
1
-
2
-
3
- export enum AlarmName {
4
- INPUT_SOURCE = "INPUT_SOURCE",
5
- INACTIVITY = "INACTIVITY",
6
- CUSTOM_HIGH_AMOUNT = "CUSTOM_HIGH_AMOUNT",
7
- CUSTOM_MONTHLY_INCREASE = "CUSTOM_MONTHLY_INCREASE",
8
- MONTHLY_LIMIT = "MONTHLY_LIMIT",
9
- HIGH_AMOUNT = "HIGH_AMOUNT",
10
- MONTHLY_INCREASE = "MONTHLY_INCREASE",
11
-
12
- SANCTIONED_LIST = "SANCTIONED_LIST",
13
- PEP_LIST = "PEP_LIST",
14
- BLOCKED_LIST = "BLOCKED_LIST",
15
- PROFILE_UPDATE_SANCTIONED = "PROFILE_UPDATE_SANCTIONED",
16
- PROFILE_UPDATE_PEP = "PROFILE_UPDATE_PEP",
17
- PROFILE_UPDATE_BLOCKED = "PROFILE_UPDATE_BLOCKED",
18
- }
19
-
@@ -1,7 +0,0 @@
1
-
2
-
3
- export enum AlarmType {
4
- UNUSUAL = "UNUSUAL",
5
- PEP= "PEP",
6
- CUSTOM = "CUSTOM"
7
- }