@fiado/type-kit 1.0.6 → 1.0.8

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 (122) hide show
  1. package/README.md +36 -1
  2. package/bin/account/dtos/AccountCreateRequest.d.ts +14 -0
  3. package/bin/account/dtos/AccountCreateRequest.js +65 -0
  4. package/bin/account/dtos/AccountCreateResponse.d.ts +3 -0
  5. package/bin/account/dtos/AccountCreateResponse.js +7 -0
  6. package/bin/account/dtos/AccountResponse.js +0 -79
  7. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  8. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  9. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  10. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  11. package/bin/account/index.d.ts +4 -2
  12. package/bin/account/index.js +4 -2
  13. package/bin/address/dtos/AddressCreateRequest.d.ts +3 -0
  14. package/bin/address/dtos/AddressCreateRequest.js +7 -0
  15. package/bin/address/index.d.ts +1 -1
  16. package/bin/address/index.js +1 -1
  17. package/bin/app/enums/App.d.ts +9 -0
  18. package/bin/app/enums/App.js +13 -0
  19. package/bin/app/index.d.ts +1 -0
  20. package/bin/app/index.js +18 -0
  21. package/bin/authentication/dtos/SignUpAdditionalRequest.d.ts +7 -0
  22. package/bin/authentication/dtos/SignUpAdditionalRequest.js +46 -0
  23. package/bin/authentication/dtos/SignUpAdditionalResponse.d.ts +4 -0
  24. package/bin/authentication/dtos/SignUpAdditionalResponse.js +6 -0
  25. package/bin/authentication/index.d.ts +1 -0
  26. package/bin/authentication/index.js +28 -0
  27. package/bin/card/dtos/CardBalanceResponse.d.ts +9 -0
  28. package/bin/card/dtos/CardBalanceResponse.js +6 -0
  29. package/bin/card/dtos/CardCreateAdditionalRequest.d.ts +10 -0
  30. package/bin/card/dtos/CardCreateAdditionalRequest.js +59 -0
  31. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  32. package/bin/card/dtos/CardCreateRequest.js +176 -0
  33. package/bin/card/dtos/CardResponse.d.ts +2 -0
  34. package/bin/card/dtos/CardResponse.js +6 -0
  35. package/bin/card/index.d.ts +4 -1
  36. package/bin/card/index.js +4 -1
  37. package/bin/currency/dtos/CurrencyResponse.d.ts +6 -0
  38. package/bin/currency/dtos/CurrencyResponse.js +6 -0
  39. package/bin/currency/index.d.ts +1 -0
  40. package/bin/currency/index.js +17 -0
  41. package/bin/directory/dtos/DirectoryResponse.d.ts +16 -0
  42. package/bin/directory/dtos/DirectoryResponse.js +2 -0
  43. package/bin/directory/dtos/External.d.ts +5 -0
  44. package/bin/directory/dtos/External.js +2 -0
  45. package/bin/directory/enums/Profile.d.ts +5 -0
  46. package/bin/directory/enums/Profile.js +9 -0
  47. package/bin/directory/enums/Scope.d.ts +6 -0
  48. package/bin/directory/enums/Scope.js +10 -0
  49. package/bin/directory/enums/Status.d.ts +6 -0
  50. package/bin/directory/enums/Status.js +10 -0
  51. package/bin/directory/index.d.ts +2 -0
  52. package/bin/directory/index.js +3 -1
  53. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.d.ts +17 -0
  54. package/bin/exchangeRate/dtos/ExchangeRateCreateRequest.js +74 -0
  55. package/bin/exchangeRate/dtos/ExchangeRateCreateResponse.d.ts +3 -0
  56. package/bin/exchangeRate/dtos/ExchangeRateCreateResponse.js +7 -0
  57. package/bin/exchangeRate/dtos/ExchangeRateResponse.d.ts +18 -0
  58. package/bin/exchangeRate/dtos/ExchangeRateResponse.js +6 -0
  59. package/bin/exchangeRate/enums/ExchangeRateStatus.d.ts +4 -0
  60. package/bin/exchangeRate/enums/ExchangeRateStatus.js +8 -0
  61. package/bin/exchangeRate/index.d.ts +4 -0
  62. package/bin/exchangeRate/index.js +22 -0
  63. package/bin/identity/dtos/IdentificationDocument.d.ts +22 -0
  64. package/bin/identity/dtos/IdentificationDocument.js +6 -0
  65. package/bin/identity/dtos/PeopleCreateRequest.d.ts +2 -0
  66. package/bin/identity/dtos/PeopleCreateRequest.js +6 -0
  67. package/bin/identity/dtos/PeopleResponse.d.ts +75 -0
  68. package/bin/identity/dtos/PeopleResponse.js +6 -0
  69. package/bin/identity/dtos/TypeOfDocument.d.ts +10 -0
  70. package/bin/identity/dtos/TypeOfDocument.js +6 -0
  71. package/bin/identity/enums/IdentificationDocumentStatus.d.ts +5 -0
  72. package/bin/identity/enums/IdentificationDocumentStatus.js +9 -0
  73. package/bin/identity/enums/SexDocument.d.ts +4 -0
  74. package/bin/identity/enums/SexDocument.js +8 -0
  75. package/bin/identity/index.d.ts +6 -0
  76. package/bin/identity/index.js +24 -0
  77. package/bin/index.d.ts +6 -0
  78. package/bin/index.js +7 -1
  79. package/bin/provider/index.d.ts +1 -0
  80. package/bin/provider/index.js +17 -0
  81. package/package.json +1 -1
  82. package/src/account/dtos/{CreateAccountRequest.ts → AccountCreateRequest.ts} +1 -1
  83. package/src/account/dtos/AccountCreateResponse.ts +6 -0
  84. package/src/account/dtos/AccountResponse.ts +2 -36
  85. package/src/account/dtos/{CreatePockeRequest.ts → PocketCreateRequest.ts} +1 -1
  86. package/src/account/dtos/PocketCreateResponse.ts +5 -0
  87. package/src/account/index.ts +4 -2
  88. package/src/address/dtos/AddressCreateRequest.ts +7 -0
  89. package/src/address/index.ts +1 -1
  90. package/src/app/enums/App.ts +11 -0
  91. package/src/app/index.ts +4 -0
  92. package/src/authentication/dtos/SignUpAdditionalRequest.ts +33 -0
  93. package/src/authentication/dtos/SignUpAdditionalResponse.ts +6 -0
  94. package/src/authentication/index.ts +3 -0
  95. package/src/card/dtos/CardBalanceResponse.ts +12 -0
  96. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -0
  97. package/src/card/dtos/{CreateCardRequest.ts → CardCreateRequest.ts} +1 -1
  98. package/src/card/dtos/CardResponse.ts +5 -0
  99. package/src/card/index.ts +4 -1
  100. package/src/currency/dtos/CurrencyResponse.ts +9 -0
  101. package/src/currency/index.ts +3 -0
  102. package/src/directory/dtos/DirectoryResponse.ts +18 -0
  103. package/src/directory/dtos/External.ts +7 -0
  104. package/src/directory/enums/Profile.ts +7 -0
  105. package/src/directory/enums/Scope.ts +8 -0
  106. package/src/directory/enums/Status.ts +8 -0
  107. package/src/directory/index.ts +2 -1
  108. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +51 -0
  109. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +5 -0
  110. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +20 -0
  111. package/src/exchangeRate/enums/ExchangeRateStatus.ts +6 -0
  112. package/src/exchangeRate/index.ts +9 -0
  113. package/src/identity/dtos/IdentificationDocument.ts +25 -0
  114. package/src/identity/dtos/PeopleCreateRequest.ts +5 -0
  115. package/src/identity/dtos/PeopleResponse.ts +80 -0
  116. package/src/identity/dtos/TypeOfDocument.ts +12 -0
  117. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -0
  118. package/src/identity/enums/SexDocument.ts +6 -0
  119. package/src/identity/index.ts +11 -0
  120. package/src/index.ts +6 -0
  121. package/src/provider/index.ts +2 -0
  122. package/src/address/dtos/CreateAddressRequest.ts +0 -7
@@ -0,0 +1,20 @@
1
+ import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
2
+ import { CountryId } from "../../country";
3
+ import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
4
+
5
+ export class ExchangeRateResponse {
6
+
7
+ id: string;
8
+ adjustmentExchangeRate: number;
9
+ adjustmentPercentage: number;
10
+ createDate: string;
11
+ destinationCurrency: CurrencyResponse;
12
+ destinationCurrencyId: CountryId;
13
+ exchangeRate: number;
14
+ fxFactor: number;
15
+ maxRequestAmount: number;
16
+ minRequestAmount: number;
17
+ originCurrency: CurrencyResponse;
18
+ originCurrencyId: string;
19
+ status: ExchangeRateStatus;
20
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export enum ExchangeRateStatus {
4
+ ENABLED = 'ENABLED',
5
+ DISABLED = 'DISABLED'
6
+ }
@@ -0,0 +1,9 @@
1
+ //dtos
2
+ export * from './dtos/ExchangeRateResponse';
3
+ export * from './dtos/ExchangeRateCreateRequest';
4
+ export * from './dtos/ExchangeRateCreateResponse';
5
+
6
+
7
+
8
+ //enums
9
+ export * from './enums/ExchangeRateStatus';
@@ -0,0 +1,25 @@
1
+ import { Country } from "../../country/enums/Country";
2
+ import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
+ import { SexDocument } from "../enums/SexDocument";
4
+
5
+
6
+ export class IdentificationDocument {
7
+
8
+ frontImageName: string | null;
9
+ backImageName: string | null;
10
+ countryId: Country | null;
11
+ expirationDate: string | null;
12
+ issueDate: string | null;
13
+ lastNameFirst: string | null;
14
+ lastNameSecond: string | null;
15
+ names: string | null;
16
+ fullName: string | null;
17
+ countryOfBirth: string | null;
18
+ dateOfBirth: string | null;
19
+ documentNumber: string | null;
20
+ typeOfDocument: string;
21
+ sex: SexDocument | null;
22
+ verificationId: string | null;
23
+ curp: string | null;
24
+ status: IdentificationDocumentStatus;
25
+ }
@@ -0,0 +1,5 @@
1
+
2
+
3
+ export class PeopleCreateRequest {
4
+
5
+ }
@@ -0,0 +1,80 @@
1
+
2
+ import { App } from '../../app/enums/App';
3
+ import { SexDocument } from '../enums/SexDocument';
4
+ import { IdentificationDocument } from './IdentificationDocument';
5
+
6
+
7
+ export class PeopleResponse {
8
+
9
+ id: string;
10
+ createDate: string;
11
+ lastUpdateDate: string;
12
+ creationMethod: App;
13
+ indexName: string;
14
+ preferredName: string;
15
+ usSuffix: string | null;
16
+ usLastNames: string | null;
17
+ usNames: string | null;
18
+ latNames: string | null;
19
+ latLastNamePaternal: string | null;
20
+ latLastNameMaternal: string | null;
21
+ aliasNames: string[] | null;
22
+ preferredPronoun: string | null;
23
+ SSN_ITIN: string | null;
24
+ rfc: string | null;
25
+ curp: string | null;
26
+ passportNumber: string | null;
27
+ countryOfPassport: string | null;
28
+ documents: IdentificationDocument[] | null;
29
+ countryOfBirth: string | null;
30
+ dateOfBirth: string | null;
31
+ stateOfBirth: string | null;
32
+ nationalities: string[] | null;
33
+ docSex: SexDocument | null;
34
+ internalEmail: string | null;
35
+ occupation: string | null;
36
+ incomeSource: string | null;
37
+ operationId: string | null;
38
+ tenantId: string | null;
39
+ photoOfpersonImageName: string | null;
40
+ videoOfPersonImageName: string | null;
41
+ USA_DebitAccount: boolean;
42
+ MEX_DebitAccount: boolean;
43
+ MEX_CreditClient: boolean;
44
+ MEX_CreditAdditional: boolean;
45
+ magicNumber: boolean;
46
+ USA_UploadDocument: boolean;
47
+ MEX_UploadDocument: boolean;
48
+ videoSelfieVerified: boolean;
49
+ MEX_ValidDocument: string;
50
+ USA_ValidDocument: string;
51
+ USA_FacematchVerified: boolean | null;
52
+ MEX_FacematchVerified: boolean | null;
53
+ fiadoListApproved: boolean | null;
54
+ ofacListApproved: boolean | null;
55
+ cnbvListApproved: boolean | null;
56
+ blackListApproved: boolean | null;
57
+ whiteList: boolean | null;
58
+ hasOwner: boolean;
59
+ older18: boolean | null;
60
+ USA_Address: boolean;
61
+ MEX_Address: boolean;
62
+ COL_Address: boolean;
63
+ GTM_Address: boolean;
64
+ HND_Address: boolean;
65
+ CRI_Address: boolean;
66
+ PER_Address: boolean;
67
+ MEX_ProofAddress: boolean;
68
+ MEX_SendWish: boolean;
69
+ COL_SendWish: boolean;
70
+ GTM_SendWish: boolean;
71
+ HND_SendWish: boolean;
72
+ CRI_SendWish: boolean;
73
+ PER_SendWish: boolean;
74
+ USA_DebitAccountWish: boolean;
75
+ MEX_DebitAccountWish: boolean;
76
+ MEX_CreditAdditionalWish: boolean;
77
+ MEX_CreditClientWish: boolean;
78
+ SSN_ITINRequired: boolean | null;
79
+
80
+ }
@@ -0,0 +1,12 @@
1
+
2
+
3
+ export class TypeOfDocument {
4
+ id: string;
5
+ countryId: string;
6
+ isEnabled: boolean;
7
+ name: string;
8
+ side: number;
9
+ order: number;
10
+ subtype: string;
11
+ type: string;
12
+ }
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export enum IdentificationDocumentStatus {
4
+ VERIFIED = "VERIFIED",
5
+ REJECTED = "REJECTED",
6
+ UNVERIFIED = "UNVERIFIED"
7
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+ export enum SexDocument {
4
+ M = "M",
5
+ F = "F"
6
+ }
@@ -0,0 +1,11 @@
1
+
2
+ //dtos
3
+ export * from './dtos/IdentificationDocument'
4
+ export * from './dtos/PeopleCreateRequest';
5
+ export * from './dtos/PeopleResponse';
6
+ export * from './dtos/TypeOfDocument';
7
+
8
+ //enums
9
+ export * from './enums/IdentificationDocumentStatus';
10
+ export * from './enums/SexDocument';
11
+
package/src/index.ts CHANGED
@@ -2,9 +2,15 @@
2
2
 
3
3
  export * as Account from './account';
4
4
  export * as Address from './address';
5
+ export * as App from './app';
6
+ export * as Authentication from './authentication';
5
7
  export * as Card from './card';
6
8
  export * as Country from './country';
9
+ export * as Currency from './currency';
7
10
  export * as Directory from './directory';
11
+ export * as ExchangeRate from './exchangeRate';
12
+ export * as File from './identity';
13
+ export * as Identity from './provider';
8
14
 
9
15
 
10
16
 
@@ -0,0 +1,2 @@
1
+
2
+ export * from './enums/Provider';
@@ -1,7 +0,0 @@
1
- import { AddressBase } from "./AddressBase";
2
-
3
-
4
- export class CreateAddressRequest extends AddressBase {
5
-
6
-
7
- }