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