@fiado/type-kit 1.9.9 → 1.9.11

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 (600) hide show
  1. package/README.md +70 -70
  2. package/bin/account/dtos/AccountResponse.d.ts +21 -0
  3. package/bin/account/dtos/AccountResponse.js +6 -0
  4. package/bin/account/dtos/CreateBankAccountInput.d.ts +8 -0
  5. package/bin/account/dtos/CreateBankAccountInput.js +6 -0
  6. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  7. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  8. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  9. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  10. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  11. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  12. package/bin/account/enums/AccountStatus.d.ts +5 -0
  13. package/bin/account/enums/AccountStatus.js +9 -0
  14. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  15. package/bin/card/dtos/CardCreateRequest.js +176 -0
  16. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  17. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  18. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  19. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  20. package/bin/legal-documents-business/enums/LegalDocumentType.d.ts +8 -0
  21. package/bin/legal-documents-business/enums/LegalDocumentType.js +12 -0
  22. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.d.ts +12 -0
  23. package/bin/membership/dtos/CreateMembershipDirectoryUserRequest.js +54 -0
  24. package/bin/membership/dtos/CreateMembershipRequest.d.ts +14 -0
  25. package/bin/membership/dtos/CreateMembershipRequest.js +56 -0
  26. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.d.ts +14 -0
  27. package/bin/membership/dtos/GetMembershipDirectoryUserListAppResponse.js +6 -0
  28. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.d.ts +21 -0
  29. package/bin/membership/dtos/GetMembershipDirectoryUserListResponse.js +6 -0
  30. package/bin/membership/dtos/GetMembershipListAppResponse.d.ts +10 -0
  31. package/bin/membership/dtos/GetMembershipListAppResponse.js +6 -0
  32. package/bin/membership/dtos/GetMembershipListResponse.d.ts +20 -0
  33. package/bin/membership/dtos/GetMembershipListResponse.js +6 -0
  34. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.d.ts +4 -0
  35. package/bin/membership/dtos/RegisterMembershipDirectoryUserRequest.js +26 -0
  36. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.d.ts +12 -0
  37. package/bin/membership/dtos/UpdateMembershipDirectoryUserRequest.js +54 -0
  38. package/bin/membership/dtos/UpdateMembershipRequest.d.ts +14 -0
  39. package/bin/membership/dtos/UpdateMembershipRequest.js +56 -0
  40. package/bin/membership/enums/MembershipDirectoryStatusEnum.d.ts +6 -0
  41. package/bin/membership/enums/MembershipDirectoryStatusEnum.js +10 -0
  42. package/bin/membership/enums/MembershipFlowEnum.d.ts +3 -0
  43. package/bin/membership/enums/MembershipFlowEnum.js +7 -0
  44. package/bin/membership/enums/MembershipProviderEnum.d.ts +5 -0
  45. package/bin/membership/enums/MembershipProviderEnum.js +9 -0
  46. package/bin/membership/enums/MembershipStatusEnum.d.ts +4 -0
  47. package/bin/membership/enums/MembershipStatusEnum.js +8 -0
  48. package/bin/membership/enums/MembershipTypeEnum.d.ts +3 -0
  49. package/bin/membership/enums/MembershipTypeEnum.js +7 -0
  50. package/bin/membership/index.d.ts +14 -0
  51. package/bin/membership/index.js +32 -0
  52. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  53. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  54. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  55. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  56. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  57. package/bin/pomelo/enums/CountryEnum.js +12 -0
  58. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  59. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  60. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  61. package/bin/pomelo/enums/SexEnum.js +8 -0
  62. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  63. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  64. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  65. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  66. package/bin/pomelo/index.d.ts +7 -0
  67. package/bin/pomelo/index.js +25 -0
  68. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +20 -0
  69. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +6 -0
  70. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  71. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  72. package/bin/role/dtos/DirectoryBackoffice.d.ts +15 -0
  73. package/bin/role/dtos/DirectoryBackoffice.js +6 -0
  74. package/bin/role/enums/DirectoryBackofficeStatusEnum.d.ts +4 -0
  75. package/bin/role/enums/DirectoryBackofficeStatusEnum.js +8 -0
  76. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  77. package/bin/tern/dtos/TernAddress.js +40 -0
  78. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  79. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  80. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  81. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  82. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  83. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  84. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  85. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  86. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  87. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  88. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  89. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  90. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  91. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  92. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  93. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  94. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  95. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  96. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  97. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  98. package/bin/tern/index.d.ts +11 -0
  99. package/bin/tern/index.js +29 -0
  100. package/bin/transaction/enums/TransactionStatusEnum.d.ts +2 -1
  101. package/bin/transaction/enums/TransactionStatusEnum.js +1 -0
  102. package/bin/transactionProcessor/dtos/EventTransactionInfo.d.ts +1 -0
  103. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  104. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  105. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  106. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  107. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  108. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  109. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  110. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  111. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  112. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  113. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  114. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  115. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  116. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  117. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  118. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  119. package/package.json +23 -23
  120. package/src/account/dtos/AccountCreateRequest.ts +100 -100
  121. package/src/account/dtos/AccountCreateResponse.ts +10 -10
  122. package/src/account/dtos/AccountInfo.ts +43 -43
  123. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  124. package/src/account/dtos/AccountUpdateRequest.ts +40 -40
  125. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  126. package/src/account/dtos/BankAccountP2pTransferRequest.ts +10 -10
  127. package/src/account/dtos/BankAccountP2pTransferResponse.ts +11 -11
  128. package/src/account/dtos/BankAccountPocketTransferRequest.ts +9 -9
  129. package/src/account/dtos/BankAccountPocketTransferResponse.ts +9 -9
  130. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  131. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  132. package/src/account/dtos/CreateBankAccountUserRequest.ts +20 -20
  133. package/src/account/dtos/CreateBankAccountUserResponse.ts +14 -14
  134. package/src/account/dtos/ExchangeInfo.ts +8 -8
  135. package/src/account/dtos/ExecuteP2pOperationRequest.ts +12 -12
  136. package/src/account/dtos/ExecuteP2pOperationResponse.ts +6 -6
  137. package/src/account/dtos/ExecutePocketOperationRequest.ts +13 -13
  138. package/src/account/dtos/ExecutePocketOperationResponse.ts +7 -7
  139. package/src/account/dtos/GetAccountBalanceResponse.ts +46 -46
  140. package/src/account/dtos/GetAccountResponse.ts +62 -62
  141. package/src/account/dtos/GetAccountResponseList.ts +5 -5
  142. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  143. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  144. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  145. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +10 -10
  146. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  147. package/src/account/dtos/GetBankAccountUserResponse.ts +27 -27
  148. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  149. package/src/account/dtos/GetPocketResponse.ts +8 -8
  150. package/src/account/dtos/PocketBalanceItem.ts +17 -17
  151. package/src/account/dtos/PocketItem.ts +43 -43
  152. package/src/account/dtos/SPEITransferCreateRequest.ts +42 -42
  153. package/src/account/dtos/SPEITransferResponse.ts +22 -22
  154. package/src/account/dtos/SPEITransferUpdateRequest.ts +43 -43
  155. package/src/account/dtos/UpdateBalanceOperation.ts +10 -10
  156. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  157. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  158. package/src/account/entities/AccountEntityBase.ts +12 -12
  159. package/src/account/enums/AccountEntityStatusEnum.ts +6 -6
  160. package/src/account/enums/AccountLevelEnum.ts +5 -5
  161. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  162. package/src/account/enums/BankAccountTypeEnum.ts +5 -5
  163. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  164. package/src/account/enums/CreateBankAccountUserStatusEnum.ts +5 -5
  165. package/src/account/enums/PocketOperationTypeEnum.ts +7 -7
  166. package/src/account/enums/SpeiTransferStatusEnum.ts +10 -10
  167. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  168. package/src/account/index.ts +55 -55
  169. package/src/accountIssuanceBusiness/enums/Status.ts +12 -12
  170. package/src/accountIssuanceBusiness/index.ts +2 -2
  171. package/src/activity/dtos/ActivityMessageRequest.ts +30 -30
  172. package/src/activity/dtos/ActivityMessageResponse.ts +24 -24
  173. package/src/activity/dtos/ActivityQueueMessage.ts +9 -9
  174. package/src/activity/index.ts +8 -8
  175. package/src/address/dtos/AddressBase.ts +130 -130
  176. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  177. package/src/address/dtos/AddressResponse.ts +41 -41
  178. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  179. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  180. package/src/address/dtos/Geometry.ts +4 -4
  181. package/src/address/dtos/OfficeDetails.ts +30 -30
  182. package/src/address/dtos/OperationSchedule.ts +8 -8
  183. package/src/address/dtos/Place.ts +83 -83
  184. package/src/address/dtos/Shipping.ts +36 -36
  185. package/src/address/dtos/Timezone.ts +5 -5
  186. package/src/address/enums/AddressProvider.ts +10 -10
  187. package/src/address/enums/AddressStatus.ts +9 -9
  188. package/src/address/index.ts +16 -16
  189. package/src/apiResponse/dtos/FiadoApiResponse.ts +7 -7
  190. package/src/app/enums/App.ts +10 -10
  191. package/src/app/index.ts +3 -3
  192. package/src/appSelectionData/dtos/AppSelectionDataCreateRequest.ts +27 -27
  193. package/src/appSelectionData/index.ts +4 -4
  194. package/src/auth/dtos/ChallengeBackofficeRequest.ts +22 -22
  195. package/src/auth/dtos/ResetPasswordBackofficeRequest.ts +9 -9
  196. package/src/auth/dtos/SignInBackofficeRequest.ts +13 -13
  197. package/src/auth/dtos/SignInBackofficeResponse.ts +6 -6
  198. package/src/auth/dtos/SignUpBackofficeRequest.ts +18 -18
  199. package/src/auth/index.ts +7 -7
  200. package/src/authentication/dtos/ChangePasswordRequest.ts +16 -16
  201. package/src/authentication/dtos/RefreshTokenRequest.ts +12 -12
  202. package/src/authentication/dtos/RespondToAuthChallengeRequest.ts +24 -24
  203. package/src/authentication/dtos/SignInRequest.ts +30 -30
  204. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  205. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  206. package/src/authentication/dtos/SignUpRequest.ts +21 -21
  207. package/src/authentication/dtos/UserConfirmRequest.ts +13 -13
  208. package/src/authentication/index.ts +14 -14
  209. package/src/bankAccount/dtos/CreateExternalBankAccountRequest.ts +14 -14
  210. package/src/bankAccount/dtos/CreateExternalBankAccountResponse.ts +5 -5
  211. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  212. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  213. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +14 -14
  214. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  215. package/src/bankAccount/enums/ExternalAccountOwnershipEnum.ts +3 -3
  216. package/src/bankAccount/enums/ExternalAccountStatusEnum.ts +6 -6
  217. package/src/bankAccount/enums/ExternalAccountTypeEnum.ts +5 -5
  218. package/src/bankAccount/index.ts +9 -9
  219. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  220. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  221. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  222. package/src/bbvaRst/index.ts +2 -2
  223. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +56 -56
  224. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +26 -26
  225. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +42 -42
  226. package/src/beneficiary/enums/AccountType.ts +6 -6
  227. package/src/beneficiary/index.ts +7 -7
  228. package/src/blacklist/dtos/CreateBlockedPersonRequest.ts +32 -32
  229. package/src/blacklist/dtos/GetBlockedPersonsResponse.ts +84 -84
  230. package/src/blacklist/dtos/UpdateBlockedPersonRequest.ts +42 -42
  231. package/src/blacklist/enums/IdentificationParameter.ts +5 -5
  232. package/src/blacklist/index.ts +7 -7
  233. package/src/card/dtos/AccountCancelGetResponse.ts +25 -25
  234. package/src/card/dtos/AccountIssuanceStepConfig.ts +13 -13
  235. package/src/card/dtos/CardActivateRequest.ts +12 -12
  236. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  237. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  238. package/src/card/dtos/CardApplicationRequest.ts +35 -35
  239. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  240. package/src/card/dtos/CardCreateAdditionalRequest.ts +82 -82
  241. package/src/card/dtos/CardResponse.ts +34 -34
  242. package/src/card/dtos/CardSensitiveInformationResponse.ts +23 -23
  243. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  244. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  245. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  246. package/src/card/dtos/CardUpdateIssuanceRequest.ts +20 -20
  247. package/src/card/dtos/CardUpdateRequest.ts +23 -23
  248. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +11 -11
  249. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  250. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  251. package/src/card/dtos/Internal/BatchBeneficiary.ts +6 -6
  252. package/src/card/dtos/Internal/BatchCardAttributes.ts +9 -9
  253. package/src/card/dtos/Internal/BatchCardInitialLoad.ts +3 -3
  254. package/src/card/dtos/Internal/BatchPointOfContact.ts +4 -4
  255. package/src/card/dtos/Internal/BatchShippingAddress.ts +7 -7
  256. package/src/card/dtos/Internal/CardBatchRequest.ts +13 -13
  257. package/src/card/dtos/Internal/CardBatchResponse.ts +19 -19
  258. package/src/card/dtos/Internal/CardIssuanceObservationUpdateRequest.ts +14 -14
  259. package/src/card/dtos/Internal/CardStatementListResponse.ts +6 -6
  260. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  261. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  262. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  263. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  264. package/src/card/dtos/Internal/GetBankAccountCardBalanceResponse.ts +12 -12
  265. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +34 -34
  266. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  267. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  268. package/src/card/dtos/Internal/ReplaceBankAccountCardRequest.ts +9 -9
  269. package/src/card/dtos/Internal/ReplaceBankAccountCardResponse.ts +3 -3
  270. package/src/card/dtos/Internal/StatementDocumentResponse.ts +2 -2
  271. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +24 -24
  272. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +7 -7
  273. package/src/card/enums/AccountCancellationStatus.ts +7 -7
  274. package/src/card/enums/Brand.ts +7 -7
  275. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  276. package/src/card/enums/CardIssuing.ts +6 -6
  277. package/src/card/enums/CardReasonStatus.ts +8 -8
  278. package/src/card/enums/CardType.ts +4 -4
  279. package/src/card/enums/CardUpdateKey.ts +4 -4
  280. package/src/card/enums/CreditOrDebit.ts +5 -5
  281. package/src/card/enums/DeliveryChannel.ts +7 -7
  282. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  283. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  284. package/src/card/enums/IssuanceType.ts +5 -5
  285. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  286. package/src/card/enums/OwnershipType.ts +3 -3
  287. package/src/card/enums/Program.ts +6 -6
  288. package/src/card/enums/ReplaceBankAccountCardReasonEnum.ts +7 -7
  289. package/src/card/enums/ShippingStatus.ts +8 -8
  290. package/src/card/enums/Status.ts +6 -6
  291. package/src/card/enums/UpdateKey.ts +5 -5
  292. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  293. package/src/card/enums/issuance/IssuanceFlow.ts +8 -8
  294. package/src/card/enums/issuance/KycStatus.ts +13 -13
  295. package/src/card/enums/issuance/ObservationStatus.ts +6 -6
  296. package/src/card/enums/issuance/ObservationStep.ts +22 -22
  297. package/src/card/enums/issuance/UserStatus.ts +7 -7
  298. package/src/card/index.ts +75 -75
  299. package/src/card/validations/CardUpdateKeyConstraint.ts +71 -71
  300. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  301. package/src/centralPayments/dtos/AchTransactionRequest.ts +8 -8
  302. package/src/centralPayments/dtos/AchTransactionResponse.ts +9 -9
  303. package/src/centralPayments/dtos/HealthcheckResponse.ts +8 -8
  304. package/src/centralPayments/dtos/OOWAnswer.ts +3 -3
  305. package/src/centralPayments/dtos/OOWQuestionsResponse.ts +6 -6
  306. package/src/centralPayments/dtos/SubmitOOWQuestionAnswersRequest.ts +3 -3
  307. package/src/centralPayments/enums/ServiceStatusEnum.ts +4 -4
  308. package/src/centralPayments/index.ts +9 -9
  309. package/src/cognitoConnector/dtos/ChangePasswordRequest.ts +20 -20
  310. package/src/cognitoConnector/dtos/GetUserRequest.ts +12 -12
  311. package/src/cognitoConnector/dtos/GetUserResponse.ts +9 -9
  312. package/src/cognitoConnector/dtos/RefreshTokenRequest.ts +14 -14
  313. package/src/cognitoConnector/dtos/RefreshTokenResponse.ts +6 -6
  314. package/src/cognitoConnector/dtos/RespondToAuthChallengeRequest.ts +25 -25
  315. package/src/cognitoConnector/dtos/SetPasswordRequest.ts +19 -19
  316. package/src/cognitoConnector/dtos/SignInRequest.ts +20 -20
  317. package/src/cognitoConnector/dtos/SignInResponse.ts +11 -11
  318. package/src/cognitoConnector/dtos/SignUpConfirmRequest.ts +17 -17
  319. package/src/cognitoConnector/dtos/SignUpRequest.ts +22 -22
  320. package/src/cognitoConnector/dtos/SignUpResponse.ts +8 -8
  321. package/src/cognitoConnector/enums/SyncStatus.ts +6 -6
  322. package/src/cognitoConnector/index.ts +24 -24
  323. package/src/collector/dtos/CollectionOrderItem.ts +70 -70
  324. package/src/collector/dtos/CreateCollectionOrderRequest.ts +17 -17
  325. package/src/collector/enums/CollectionType.ts +4 -4
  326. package/src/collector/enums/CollectorOrderStatus.ts +20 -20
  327. package/src/collector/index.ts +5 -5
  328. package/src/company/enums/Company.ts +7 -7
  329. package/src/company/index.ts +6 -6
  330. package/src/contactInfo/dtos/ContactInfoBackOfficeResponse.ts +9 -9
  331. package/src/contactInfo/dtos/ContactInfoCreateBackOfficeRequest.ts +10 -10
  332. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +2 -2
  333. package/src/contactInfo/dtos/ContactInfoRequest.ts +29 -29
  334. package/src/contactInfo/dtos/ContactInfoResponse.ts +30 -30
  335. package/src/contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.ts +15 -15
  336. package/src/contactInfo/dtos/ContactInfoUpdateRequest.ts +4 -4
  337. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  338. package/src/contactInfo/index.ts +7 -7
  339. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  340. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  341. package/src/contract/index.ts +4 -4
  342. package/src/country/dtos/CreateCountryRequest.ts +65 -65
  343. package/src/country/dtos/UpdateCountryRequest.ts +65 -65
  344. package/src/country/enums/CountriesISO3.ts +220 -220
  345. package/src/country/enums/Country.ts +6 -6
  346. package/src/country/enums/CountryISO2ToISO3.ts +69 -69
  347. package/src/country/enums/CountryISO3ToISO2.ts +61 -61
  348. package/src/country/enums/CountryId.ts +6 -6
  349. package/src/country/index.ts +13 -13
  350. package/src/country/utilities/CountryCodeConverter.ts +13 -13
  351. package/src/creditContract/dtos/CreditContractCreateRequest.ts +62 -62
  352. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  353. package/src/creditContract/index.ts +5 -5
  354. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  355. package/src/currency/index.ts +2 -2
  356. package/src/device/dtos/RegisterDeviceRequest.ts +20 -20
  357. package/src/device/dtos/ReplaceDeviceRequest.ts +23 -23
  358. package/src/device/enums/DeviceStatusEnum.ts +4 -4
  359. package/src/device/enums/DeviceTypeEnum.ts +4 -4
  360. package/src/device/index.ts +7 -7
  361. package/src/directory/dtos/DirectoryBackoffice.ts +16 -16
  362. package/src/directory/dtos/DirectoryBackofficeCreateRequest.ts +22 -22
  363. package/src/directory/dtos/DirectoryBackofficeResponse.ts +17 -17
  364. package/src/directory/dtos/DirectoryBackofficeUpdateRequest.ts +34 -34
  365. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  366. package/src/directory/dtos/External.ts +6 -6
  367. package/src/directory/enums/DirectoryBackofficeStatusEnum.ts +4 -4
  368. package/src/directory/enums/Profile.ts +6 -6
  369. package/src/directory/enums/Scope.ts +7 -7
  370. package/src/directory/enums/Status.ts +9 -9
  371. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  372. package/src/directory/index.ts +13 -13
  373. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  374. package/src/eventBridge/index.ts +1 -1
  375. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  376. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  377. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  378. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  379. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  380. package/src/exchangeRate/index.ts +9 -9
  381. package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +9 -9
  382. package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +5 -5
  383. package/src/fraudPreventionEngine/dtos/GetAccountLevelResponse.ts +7 -7
  384. package/src/fraudPreventionEngine/enums/AccountLevelTenantEnum.ts +5 -5
  385. package/src/fraudPreventionEngine/index.ts +5 -5
  386. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  387. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  388. package/src/genericMessage/index.ts +1 -1
  389. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  390. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  391. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  392. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  393. package/src/group/dtos/GroupResponse.ts +17 -17
  394. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  395. package/src/group/enums/GroupAction.ts +8 -8
  396. package/src/group/enums/GroupStatus.ts +6 -6
  397. package/src/group/enums/RelationStatus.ts +8 -8
  398. package/src/group/enums/RelationType.ts +9 -9
  399. package/src/group/index.ts +18 -18
  400. package/src/header/TokenPayload.ts +18 -18
  401. package/src/header/index.ts +3 -3
  402. package/src/helpdesk/dtos/HelpdeskCreateTicketRequest.ts +30 -30
  403. package/src/helpdesk/dtos/HelpdeskCreateUserRequest.ts +39 -39
  404. package/src/helpdesk/index.ts +1 -1
  405. package/src/helpers/ValidationUtils.ts +32 -32
  406. package/src/helpers/constans/regex.ts +12 -12
  407. package/src/identity/dtos/IdentificationDocument.ts +23 -23
  408. package/src/identity/dtos/PeopleCreateRequest.ts +28 -28
  409. package/src/identity/dtos/PeopleResponse.ts +105 -105
  410. package/src/identity/dtos/PeopleUpdateRequest.ts +96 -96
  411. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  412. package/src/identity/dtos/UploadDocumentFile.ts +6 -6
  413. package/src/identity/dtos/UploadDocumentRequest.ts +9 -9
  414. package/src/identity/enums/AccountRequirementStatusEnum.ts +4 -4
  415. package/src/identity/enums/AuthorizationNeededMXNStatus.ts +11 -11
  416. package/src/identity/enums/CPStatusEnum.ts +12 -12
  417. package/src/identity/enums/DocumentSideEnum.ts +3 -3
  418. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  419. package/src/identity/enums/InfoSelfVerifiedStatus.ts +9 -9
  420. package/src/identity/enums/SexDocument.ts +6 -6
  421. package/src/identity/enums/TypeOfDocument.ts +5 -5
  422. package/src/identity/index.ts +19 -19
  423. package/src/index.ts +50 -50
  424. package/src/issuanceBusiness/dtos/BaseIssuanceRequirement.ts +195 -195
  425. package/src/issuanceBusiness/dtos/IssuanceRequirementCreateRequest.ts +13 -13
  426. package/src/issuanceBusiness/dtos/IssuanceRequirementResponse.ts +13 -13
  427. package/src/issuanceBusiness/dtos/IssuanceRequirementUpdateRequest.ts +5 -5
  428. package/src/issuanceBusiness/enums/IssuanceStatus.ts +7 -7
  429. package/src/issuanceBusiness/index.ts +8 -8
  430. package/src/legal-documents-business/dtos/DirectoryAcceptanceRequest.ts +6 -6
  431. package/src/legal-documents-business/dtos/LegalDocumentCreateRequest.ts +25 -25
  432. package/src/legal-documents-business/dtos/LegalDocumentResponse.ts +11 -11
  433. package/src/legal-documents-business/dtos/UpdateLegalDocumentRequest.ts +34 -34
  434. package/src/legal-documents-business/index.ts +6 -6
  435. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  436. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  437. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  438. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  439. package/src/notificationMessages/index.ts +5 -5
  440. package/src/observations/dtos/ObservationCreateRequest.ts +19 -19
  441. package/src/observations/index.ts +2 -2
  442. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  443. package/src/pricelist/dtos/DiscountCreateRequest.ts +40 -40
  444. package/src/pricelist/dtos/DiscountResponse.ts +16 -16
  445. package/src/pricelist/dtos/GetDiscountByServiceIdAndDirectoriesResponse.ts +31 -31
  446. package/src/pricelist/dtos/GetDiscountListResponse.ts +5 -5
  447. package/src/pricelist/dtos/GetPricelistListResponse.ts +5 -5
  448. package/src/pricelist/dtos/PricelistCreateRequest.ts +19 -19
  449. package/src/pricelist/dtos/PricelistResponse.ts +9 -9
  450. package/src/pricelist/enums/DiscountTypeEnum.ts +3 -3
  451. package/src/pricelist/index.ts +11 -11
  452. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  453. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  454. package/src/productCatalog/enums/ProductSubtypeEnum.ts +66 -66
  455. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  456. package/src/productCatalog/enums/ProductTypeEnum.ts +9 -9
  457. package/src/productCatalog/index.ts +6 -6
  458. package/src/provider/dtos/ProviderDocumentImages.ts +6 -6
  459. package/src/provider/dtos/ProviderDocumentUploadRequest.ts +6 -6
  460. package/src/provider/dtos/ProviderDocumentUploadResponse.ts +11 -11
  461. package/src/provider/dtos/UploadDocumentStatusDetail.ts +10 -10
  462. package/src/provider/enums/Provider.ts +7 -7
  463. package/src/provider/enums/ProviderCode.ts +7 -7
  464. package/src/provider/enums/UploadDocumentStatusEnum.ts +3 -3
  465. package/src/provider/index.ts +9 -9
  466. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  467. package/src/riskProfile/dtos/AlarmCategory.ts +2 -2
  468. package/src/riskProfile/dtos/AnswerQuestionnaireQuestionRequest.ts +5 -5
  469. package/src/riskProfile/dtos/CreateBackofficeAlarm.ts +14 -14
  470. package/src/riskProfile/dtos/CreatePrivateAlarm.ts +38 -38
  471. package/src/riskProfile/dtos/CreateRiskProfileRequest.ts +45 -45
  472. package/src/riskProfile/dtos/GetUserQuestionnaireResponse.ts +12 -12
  473. package/src/riskProfile/dtos/TransactionAlarmQueueMessage.ts +48 -48
  474. package/src/riskProfile/dtos/TransactionAlertResponse.ts +50 -50
  475. package/src/riskProfile/dtos/UpdateAlarmProfileRequest.ts +9 -9
  476. package/src/riskProfile/dtos/UpdateFactorInfo.ts +5 -5
  477. package/src/riskProfile/dtos/UpdateRiskProfileRequest.ts +5 -5
  478. package/src/riskProfile/dtos/UpdateTransactionAlertRequest.ts +42 -42
  479. package/src/riskProfile/dtos/UserQuestionnaireQuestion.ts +8 -8
  480. package/src/riskProfile/enums/AlarmCategory.ts +11 -11
  481. package/src/riskProfile/enums/AlarmName.ts +21 -21
  482. package/src/riskProfile/enums/AlarmOperationType.ts +10 -10
  483. package/src/riskProfile/enums/AlarmPriority.ts +7 -7
  484. package/src/riskProfile/enums/AlarmType.ts +7 -7
  485. package/src/riskProfile/enums/PepLevelEnum.ts +6 -6
  486. package/src/riskProfile/enums/RiskFactorCategoryEnum.ts +14 -14
  487. package/src/riskProfile/enums/UserQuestionnaireQuestionAnswerEnum.ts +3 -3
  488. package/src/riskProfile/enums/UserQuestionnaireQuestionStatusEnum.ts +3 -3
  489. package/src/riskProfile/enums/UserQuestionnaireStatusEnum.ts +3 -3
  490. package/src/riskProfile/index.ts +24 -24
  491. package/src/role/dtos/PermissionCreateRequest.ts +32 -32
  492. package/src/role/dtos/PermissionResponse.ts +13 -13
  493. package/src/role/dtos/PermissionUpdateRequest.ts +40 -40
  494. package/src/role/dtos/RoleAssignRequest.ts +14 -14
  495. package/src/role/dtos/RoleCreateRequest.ts +18 -18
  496. package/src/role/dtos/RoleResponse.ts +9 -9
  497. package/src/role/dtos/RoleUpdateRequest.ts +22 -22
  498. package/src/role/dtos/UserRoleResponse.ts +9 -9
  499. package/src/role/index.ts +9 -9
  500. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  501. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  502. package/src/servicePayment/index.ts +1 -1
  503. package/src/services/dtos/CreateServiceRequest.ts +50 -50
  504. package/src/services/dtos/GetServiceListAppResponse.ts +5 -5
  505. package/src/services/dtos/GetServiceListResponse.ts +6 -6
  506. package/src/services/dtos/GetServiceMembershipListAppResponse.ts +4 -4
  507. package/src/services/dtos/GetServiceMembershipListResponse.ts +5 -5
  508. package/src/services/dtos/RegisterServiceMembershipRequest.ts +19 -19
  509. package/src/services/dtos/ServiceMembershipResponse.ts +16 -16
  510. package/src/services/dtos/ServiceResponse.ts +23 -23
  511. package/src/services/dtos/UpdateServiceMembershipRequest.ts +25 -25
  512. package/src/services/dtos/UpdateServiceRequest.ts +49 -49
  513. package/src/services/enums/ServiceCompanyEnum.ts +4 -4
  514. package/src/services/enums/ServiceFlowEnum.ts +3 -3
  515. package/src/services/enums/ServiceMembershipStatusEnum.ts +6 -6
  516. package/src/services/enums/ServiceRecurrenceEnum.ts +6 -6
  517. package/src/services/enums/ServiceStatusEnum.ts +4 -4
  518. package/src/services/enums/ServiceTypeEnum.ts +3 -3
  519. package/src/services/index.ts +24 -24
  520. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +14 -14
  521. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  522. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  523. package/src/sessionActivity/index.ts +2 -2
  524. package/src/stpAccount/dtos/CreateAccountWebhookDetail.ts +5 -5
  525. package/src/stpSpei/dtos/GetBusinessAccountBalanceResponse.ts +4 -4
  526. package/src/stpSpei/dtos/PutStpOrderRequest.ts +16 -16
  527. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +10 -10
  528. package/src/stpSpei/enums/ActividadesProductivasEnum.ts +47 -47
  529. package/src/stpSpei/enums/BusinessNameEnum.ts +3 -3
  530. package/src/stpSpei/enums/EntidadesFederativasEnum.ts +33 -33
  531. package/src/stpSpei/enums/PaisesEnum.ts +275 -275
  532. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +7 -7
  533. package/src/stpSpei/index.ts +9 -9
  534. package/src/transaction/dtos/ActivityProblemGetResponse.ts +22 -22
  535. package/src/transaction/dtos/Credit.ts +24 -24
  536. package/src/transaction/dtos/Debit.ts +20 -20
  537. package/src/transaction/dtos/Notional.ts +20 -20
  538. package/src/transaction/dtos/Product.ts +26 -26
  539. package/src/transaction/dtos/ProductDetail.ts +51 -51
  540. package/src/transaction/dtos/Total.ts +20 -20
  541. package/src/transaction/dtos/TransactionCreateRequest.ts +143 -143
  542. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  543. package/src/transaction/dtos/TransactionGetDetailResponse.ts +27 -27
  544. package/src/transaction/dtos/TransactionGetResponse.ts +21 -21
  545. package/src/transaction/dtos/internal/BaseProviderTransaction.ts +20 -20
  546. package/src/transaction/dtos/internal/BaseProviderTransactionQueryParams.ts +6 -6
  547. package/src/transaction/dtos/internal/CentralPaymentsQueryParams.ts +6 -6
  548. package/src/transaction/dtos/internal/CentralPaymentsTransactionItem.ts +36 -36
  549. package/src/transaction/dtos/internal/ProviderTransactionMerchant.ts +10 -10
  550. package/src/transaction/dtos/internal/ProviderTransactionPagination.ts +5 -5
  551. package/src/transaction/dtos/internal/ProviderTransactionReversalRequest.ts +3 -3
  552. package/src/transaction/dtos/internal/ProviderTransactionReversalResponse.ts +5 -5
  553. package/src/transaction/dtos/internal/TernQueryParams.ts +13 -13
  554. package/src/transaction/dtos/internal/TernTransactionItem.ts +23 -23
  555. package/src/transaction/dtos/internal/TransactionListResponse.ts +5 -5
  556. package/src/transaction/enums/ActivityProblemStatusEnum.ts +4 -4
  557. package/src/transaction/enums/DisputeOrFraudEnum.ts +3 -3
  558. package/src/transaction/enums/DisputeOrFraudStatusEnum.ts +4 -4
  559. package/src/transaction/enums/OperationEnum.ts +3 -3
  560. package/src/transaction/enums/TransactionSourceEnum.ts +7 -7
  561. package/src/transaction/enums/TransactionStatusEnum.ts +11 -11
  562. package/src/transaction/index.ts +33 -33
  563. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  564. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  565. package/src/transactionProcessor/dtos/AuthorizeAdjustmentTransactionRequest.ts +14 -14
  566. package/src/transactionProcessor/dtos/AuthorizeCollectorTransactionRequest.ts +9 -9
  567. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
  568. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  569. package/src/transactionProcessor/dtos/AuthorizeDisputeTransactionRequest.ts +13 -13
  570. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +11 -11
  571. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  572. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  573. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  574. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferNcRequest.ts +14 -14
  575. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +7 -7
  576. package/src/transactionProcessor/dtos/AuthorizeSpeiMexBankTransferInRequest.ts +37 -37
  577. package/src/transactionProcessor/dtos/AuthorizeUsdAchTransactionRequest.ts +6 -6
  578. package/src/transactionProcessor/dtos/BankInfo.ts +9 -9
  579. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  580. package/src/transactionProcessor/dtos/EventTransactionInfo.ts +23 -22
  581. package/src/transactionProcessor/dtos/EventTransactionRequest.ts +19 -19
  582. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  583. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  584. package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -3
  585. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  586. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  587. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  588. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  589. package/src/transactionProcessor/dtos/TransactionProcessorResponse.ts +13 -13
  590. package/src/transactionProcessor/enums/AppEnum.ts +3 -3
  591. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  592. package/src/transactionProcessor/enums/EventChannelEnum.ts +12 -12
  593. package/src/transactionProcessor/enums/EventTypeEnum.ts +16 -16
  594. package/src/transactionProcessor/enums/TransactionInfoStatusEnum.ts +7 -7
  595. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +20 -20
  596. package/src/transactionProcessor/index.ts +34 -34
  597. package/.idea/aws.xml +0 -11
  598. package/.idea/fiado-type-kit.iml +0 -12
  599. package/.idea/modules.xml +0 -8
  600. package/.idea/vcs.xml +0 -6
@@ -1,72 +1,72 @@
1
- import { ValidationArguments, ValidationOptions, ValidatorConstraint, ValidatorConstraintInterface, registerDecorator } from "class-validator";
2
- import { CardUpdateRequest } from "../dtos/CardUpdateRequest";
3
- import { Status } from "../enums/Status";
4
- import { UpdateKey } from "../enums/UpdateKey";
5
-
6
-
7
-
8
- @ValidatorConstraint({ name: "IsReasonRequiredForCancelledStatus", async: false })
9
- export class IsReasonRequiredForCancelledStatusConstraint implements ValidatorConstraintInterface {
10
- validate(_: any, args: ValidationArguments): boolean {
11
- const object = args.object as CardUpdateRequest;
12
-
13
- if (object.type === UpdateKey.CHANGE_STATUS && object.value === "CANCELLED") {
14
- return object.reason !== undefined && object.reason !== null;
15
- }
16
-
17
- return true;
18
- }
19
-
20
- defaultMessage(args: ValidationArguments) {
21
- return `'reason' is required when type is CHANGE_STATUS and value is CANCELLED`;
22
- }
23
- }
24
-
25
- @ValidatorConstraint({ async: true })
26
- export class CardUpdateKeyConstraint {
27
-
28
- public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
29
-
30
- const cardUpdateRequest = arg.object as CardUpdateRequest;
31
-
32
- // Validar si el valor es uno de los status válidos
33
- if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
34
- return Object.values(Status).includes(value as Status);
35
- }
36
-
37
- // Validar si el valor es un string de 4 dígitos no consecutivos
38
- if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
39
-
40
- if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
41
-
42
- // Verifica que no sean consecutivos asc o desc
43
- for (let i = 0; i < value.length - 1; i++) {
44
- if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
45
- continue;
46
- } else {
47
- return false;
48
- }
49
- }
50
- return true;
51
- }
52
-
53
- // En caso de que type no sea ninguno de los esperados
54
- return false;
55
- }
56
-
57
- defaultMessage(args: ValidationArguments) {
58
- return "The value is not valid for the update type.";
59
- }
60
- }
61
-
62
- export function IsValueValid(validationOptions?: ValidationOptions) {
63
- return function (object: Object, propertyName: string) {
64
- registerDecorator({
65
- target: object.constructor,
66
- propertyName: propertyName,
67
- options: validationOptions,
68
- constraints: [],
69
- validator: CardUpdateKeyConstraint,
70
- });
71
- };
1
+ import { ValidationArguments, ValidationOptions, ValidatorConstraint, ValidatorConstraintInterface, registerDecorator } from "class-validator";
2
+ import { CardUpdateRequest } from "../dtos/CardUpdateRequest";
3
+ import { Status } from "../enums/Status";
4
+ import { UpdateKey } from "../enums/UpdateKey";
5
+
6
+
7
+
8
+ @ValidatorConstraint({ name: "IsReasonRequiredForCancelledStatus", async: false })
9
+ export class IsReasonRequiredForCancelledStatusConstraint implements ValidatorConstraintInterface {
10
+ validate(_: any, args: ValidationArguments): boolean {
11
+ const object = args.object as CardUpdateRequest;
12
+
13
+ if (object.type === UpdateKey.CHANGE_STATUS && object.value === "CANCELLED") {
14
+ return object.reason !== undefined && object.reason !== null;
15
+ }
16
+
17
+ return true;
18
+ }
19
+
20
+ defaultMessage(args: ValidationArguments) {
21
+ return `'reason' is required when type is CHANGE_STATUS and value is CANCELLED`;
22
+ }
23
+ }
24
+
25
+ @ValidatorConstraint({ async: true })
26
+ export class CardUpdateKeyConstraint {
27
+
28
+ public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
29
+
30
+ const cardUpdateRequest = arg.object as CardUpdateRequest;
31
+
32
+ // Validar si el valor es uno de los status válidos
33
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
34
+ return Object.values(Status).includes(value as Status);
35
+ }
36
+
37
+ // Validar si el valor es un string de 4 dígitos no consecutivos
38
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
39
+
40
+ if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
41
+
42
+ // Verifica que no sean consecutivos asc o desc
43
+ for (let i = 0; i < value.length - 1; i++) {
44
+ if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
45
+ continue;
46
+ } else {
47
+ return false;
48
+ }
49
+ }
50
+ return true;
51
+ }
52
+
53
+ // En caso de que type no sea ninguno de los esperados
54
+ return false;
55
+ }
56
+
57
+ defaultMessage(args: ValidationArguments) {
58
+ return "The value is not valid for the update type.";
59
+ }
60
+ }
61
+
62
+ export function IsValueValid(validationOptions?: ValidationOptions) {
63
+ return function (object: Object, propertyName: string) {
64
+ registerDecorator({
65
+ target: object.constructor,
66
+ propertyName: propertyName,
67
+ options: validationOptions,
68
+ constraints: [],
69
+ validator: CardUpdateKeyConstraint,
70
+ });
71
+ };
72
72
  }
@@ -1,29 +1,29 @@
1
- import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments, registerDecorator, ValidationOptions } from 'class-validator';
2
- import { regexPhoneNumber } from '../../helpers/constans/regex';
3
-
4
- @ValidatorConstraint({ async: true })
5
- export class IsPhoneNumberConstraint implements ValidatorConstraintInterface {
6
- validate(deliveryPhoneNumber: string, args: ValidationArguments) {
7
- if (deliveryPhoneNumber === undefined || deliveryPhoneNumber === null || deliveryPhoneNumber === "") {
8
- return true;
9
- }
10
- return regexPhoneNumber.test(deliveryPhoneNumber);
11
- }
12
-
13
- defaultMessage(args: ValidationArguments) {
14
- return "The phone number is not valid. The expected format is +############.";
15
- }
16
- }
17
-
18
- // Decorador que usaremos en nuestras clases DTO
19
- export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
20
- return function (object: Object, propertyName: string) {
21
- registerDecorator({
22
- target: object.constructor,
23
- propertyName: propertyName,
24
- options: validationOptions,
25
- constraints: [],
26
- validator: IsPhoneNumberConstraint,
27
- });
28
- };
29
- }
1
+ import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments, registerDecorator, ValidationOptions } from 'class-validator';
2
+ import { regexPhoneNumber } from '../../helpers/constans/regex';
3
+
4
+ @ValidatorConstraint({ async: true })
5
+ export class IsPhoneNumberConstraint implements ValidatorConstraintInterface {
6
+ validate(deliveryPhoneNumber: string, args: ValidationArguments) {
7
+ if (deliveryPhoneNumber === undefined || deliveryPhoneNumber === null || deliveryPhoneNumber === "") {
8
+ return true;
9
+ }
10
+ return regexPhoneNumber.test(deliveryPhoneNumber);
11
+ }
12
+
13
+ defaultMessage(args: ValidationArguments) {
14
+ return "The phone number is not valid. The expected format is +############.";
15
+ }
16
+ }
17
+
18
+ // Decorador que usaremos en nuestras clases DTO
19
+ export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
20
+ return function (object: Object, propertyName: string) {
21
+ registerDecorator({
22
+ target: object.constructor,
23
+ propertyName: propertyName,
24
+ options: validationOptions,
25
+ constraints: [],
26
+ validator: IsPhoneNumberConstraint,
27
+ });
28
+ };
29
+ }
@@ -1,8 +1,8 @@
1
- export class AchTransactionRequest {
2
- transactionNumber!: string;
3
- externalBankAccountId!: string;
4
- externalAccountId!: string;
5
- externalUserId!: string;
6
- amount!: number;
7
- concept?: string;
8
- }
1
+ export class AchTransactionRequest {
2
+ transactionNumber!: string;
3
+ externalBankAccountId!: string;
4
+ externalAccountId!: string;
5
+ externalUserId!: string;
6
+ amount!: number;
7
+ concept?: string;
8
+ }
@@ -1,9 +1,9 @@
1
- export class AchTransactionResponse {
2
- externalTransactionId!: string;
3
- transactionNumber!: string;
4
- externalAccountId!: string;
5
- externalUserId!: string;
6
- status!: string;
7
- amount!: number;
8
- currencyId!: string;
9
- }
1
+ export class AchTransactionResponse {
2
+ externalTransactionId!: string;
3
+ transactionNumber!: string;
4
+ externalAccountId!: string;
5
+ externalUserId!: string;
6
+ status!: string;
7
+ amount!: number;
8
+ currencyId!: string;
9
+ }
@@ -1,9 +1,9 @@
1
- import {ServiceStatusEnum} from "../enums/ServiceStatusEnum";
2
-
3
- export class HealthcheckResponse {
4
- apiStatus: ServiceStatusEnum;
5
- processorStatus: ServiceStatusEnum;
6
- kycStatus: ServiceStatusEnum;
7
- upTime: string;
8
- defaultApiVersion?: string;
1
+ import {ServiceStatusEnum} from "../enums/ServiceStatusEnum";
2
+
3
+ export class HealthcheckResponse {
4
+ apiStatus: ServiceStatusEnum;
5
+ processorStatus: ServiceStatusEnum;
6
+ kycStatus: ServiceStatusEnum;
7
+ upTime: string;
8
+ defaultApiVersion?: string;
9
9
  }
@@ -1,4 +1,4 @@
1
- export class OOWAnswer {
2
- answerId: number;
3
- answer: string;
1
+ export class OOWAnswer {
2
+ answerId: number;
3
+ answer: string;
4
4
  }
@@ -1,7 +1,7 @@
1
- import {OOWAnswer} from "./OOWAnswer";
2
-
3
- export class OOWQuestionsResponse {
4
- questionId: number;
5
- question: string;
6
- answers: OOWAnswer[];
1
+ import {OOWAnswer} from "./OOWAnswer";
2
+
3
+ export class OOWQuestionsResponse {
4
+ questionId: number;
5
+ question: string;
6
+ answers: OOWAnswer[];
7
7
  }
@@ -1,4 +1,4 @@
1
- export class SubmitOOWQuestionAnswersRequest {
2
- questionId: number;
3
- answerId: number;
1
+ export class SubmitOOWQuestionAnswersRequest {
2
+ questionId: number;
3
+ answerId: number;
4
4
  }
@@ -1,5 +1,5 @@
1
- export enum ServiceStatusEnum {
2
- UP = "UP",
3
- DOWN = "DOWN",
4
- DEGRADED = "DEGRADED"
1
+ export enum ServiceStatusEnum {
2
+ UP = "UP",
3
+ DOWN = "DOWN",
4
+ DEGRADED = "DEGRADED"
5
5
  }
@@ -1,9 +1,9 @@
1
- export * from './dtos/AchTransactionRequest';
2
- export * from './dtos/AchTransactionResponse';
3
- export * from './dtos/HealthcheckResponse';
4
- export * from './dtos/SubmitOOWQuestionAnswersRequest';
5
- export * from './dtos/OOWQuestionsResponse';
6
- export * from './dtos/OOWAnswer';
7
-
8
- export * from './enums/ServiceStatusEnum';
9
-
1
+ export * from './dtos/AchTransactionRequest';
2
+ export * from './dtos/AchTransactionResponse';
3
+ export * from './dtos/HealthcheckResponse';
4
+ export * from './dtos/SubmitOOWQuestionAnswersRequest';
5
+ export * from './dtos/OOWQuestionsResponse';
6
+ export * from './dtos/OOWAnswer';
7
+
8
+ export * from './enums/ServiceStatusEnum';
9
+
@@ -1,20 +1,20 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
-
5
-
6
- export class ChangePasswordRequest {
7
-
8
- @IsString()
9
- @IsNotEmpty()
10
- username: string
11
-
12
- @IsString()
13
- @IsNotEmpty()
14
- newPassword: string
15
-
16
- @IsString()
17
- @IsNotEmpty()
18
- typeOfDirectoryId: TypeOfDirectoryId
19
-
20
- }
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+
6
+ export class ChangePasswordRequest {
7
+
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ username: string
11
+
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ newPassword: string
15
+
16
+ @IsString()
17
+ @IsNotEmpty()
18
+ typeOfDirectoryId: TypeOfDirectoryId
19
+
20
+ }
@@ -1,13 +1,13 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
- export class GetUserRequest {
5
-
6
- @IsString()
7
- @IsNotEmpty()
8
- username: string
9
-
10
- @IsString()
11
- @IsNotEmpty()
12
- typeOfDirectoryId: TypeOfDirectoryId
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+ export class GetUserRequest {
5
+
6
+ @IsString()
7
+ @IsNotEmpty()
8
+ username: string
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ typeOfDirectoryId: TypeOfDirectoryId
13
13
  }
@@ -1,10 +1,10 @@
1
- import { SyncStatus } from "../enums/SyncStatus";
2
-
3
-
4
-
5
- export class GetUserResponse {
6
-
7
- identityId: string
8
- userStatus: string
9
- syncStatus?: SyncStatus;
1
+ import { SyncStatus } from "../enums/SyncStatus";
2
+
3
+
4
+
5
+ export class GetUserResponse {
6
+
7
+ identityId: string
8
+ userStatus: string
9
+ syncStatus?: SyncStatus;
10
10
  }
@@ -1,15 +1,15 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
-
5
-
6
- export class RefreshTokenRequest {
7
-
8
- @IsString()
9
- @IsNotEmpty()
10
- refreshToken: string
11
-
12
- @IsString()
13
- @IsNotEmpty()
14
- typeOfDirectoryId: TypeOfDirectoryId
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+
6
+ export class RefreshTokenRequest {
7
+
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ refreshToken: string
11
+
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ typeOfDirectoryId: TypeOfDirectoryId
15
15
  }
@@ -1,7 +1,7 @@
1
-
2
-
3
- export class RefreshTokenResponse {
4
- accessToken: string
5
- refreshToken: string | null
6
-
1
+
2
+
3
+ export class RefreshTokenResponse {
4
+ accessToken: string
5
+ refreshToken: string | null
6
+
7
7
  }
@@ -1,26 +1,26 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
-
5
- export class RespondToAuthChallengeRequest {
6
-
7
- @IsString()
8
- @IsNotEmpty()
9
- username: string
10
-
11
- @IsString()
12
- @IsNotEmpty()
13
- newPassword: string
14
-
15
- @IsString()
16
- @IsNotEmpty()
17
- session: string
18
-
19
- @IsString()
20
- @IsNotEmpty()
21
- typeOfDirectoryId: TypeOfDirectoryId
22
-
23
-
24
-
25
-
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+ export class RespondToAuthChallengeRequest {
6
+
7
+ @IsString()
8
+ @IsNotEmpty()
9
+ username: string
10
+
11
+ @IsString()
12
+ @IsNotEmpty()
13
+ newPassword: string
14
+
15
+ @IsString()
16
+ @IsNotEmpty()
17
+ session: string
18
+
19
+ @IsString()
20
+ @IsNotEmpty()
21
+ typeOfDirectoryId: TypeOfDirectoryId
22
+
23
+
24
+
25
+
26
26
  }
@@ -1,20 +1,20 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
-
5
-
6
- export class SetPasswordRequest {
7
-
8
- @IsString()
9
- @IsNotEmpty()
10
- username: string
11
-
12
- @IsString()
13
- @IsNotEmpty()
14
- newPassowrd: string
15
-
16
- @IsNotEmpty()
17
- @IsString()
18
- typeOfDirectoryId: TypeOfDirectoryId
19
-
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+
6
+ export class SetPasswordRequest {
7
+
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ username: string
11
+
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ newPassowrd: string
15
+
16
+ @IsNotEmpty()
17
+ @IsString()
18
+ typeOfDirectoryId: TypeOfDirectoryId
19
+
20
20
  }
@@ -1,21 +1,21 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
2
- import { TypeOfDirectoryId } from "../../directory"
3
-
4
-
5
-
6
-
7
- export class SignInRequest
8
- {
9
- @IsString()
10
- @IsNotEmpty()
11
- username: string
12
-
13
- @IsString()
14
- @IsNotEmpty()
15
- password: string
16
-
17
- @IsString()
18
- @IsNotEmpty()
19
- typeOfDirectoryId: TypeOfDirectoryId
20
-
1
+ import { IsNotEmpty, IsString } from "class-validator"
2
+ import { TypeOfDirectoryId } from "../../directory"
3
+
4
+
5
+
6
+
7
+ export class SignInRequest
8
+ {
9
+ @IsString()
10
+ @IsNotEmpty()
11
+ username: string
12
+
13
+ @IsString()
14
+ @IsNotEmpty()
15
+ password: string
16
+
17
+ @IsString()
18
+ @IsNotEmpty()
19
+ typeOfDirectoryId: TypeOfDirectoryId
20
+
21
21
  }
@@ -1,12 +1,12 @@
1
- import { SyncStatus } from "../enums/SyncStatus";
2
-
3
-
4
-
5
- export class SignInResponse {
6
-
7
- accessToken?: string
8
- refreshToken?: string
9
- challengeName?: string
10
- session?: string
11
- syncStatus?: SyncStatus;
1
+ import { SyncStatus } from "../enums/SyncStatus";
2
+
3
+
4
+
5
+ export class SignInResponse {
6
+
7
+ accessToken?: string
8
+ refreshToken?: string
9
+ challengeName?: string
10
+ session?: string
11
+ syncStatus?: SyncStatus;
12
12
  }
@@ -1,18 +1,18 @@
1
- import { IsNotEmpty, IsString } from "class-validator";
2
- import { TypeOfDirectoryId } from "../../directory";
3
-
4
-
5
-
6
- export class SignUpConfirmRequest {
7
-
8
- @IsString()
9
- @IsNotEmpty()
10
- identityId: string
11
-
12
- @IsString()
13
- @IsNotEmpty()
14
- typeOfDirectoryId: TypeOfDirectoryId
15
-
16
-
17
-
1
+ import { IsNotEmpty, IsString } from "class-validator";
2
+ import { TypeOfDirectoryId } from "../../directory";
3
+
4
+
5
+
6
+ export class SignUpConfirmRequest {
7
+
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ identityId: string
11
+
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ typeOfDirectoryId: TypeOfDirectoryId
15
+
16
+
17
+
18
18
  }