@fiado/type-kit 1.4.6 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) 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/CardApplicationRequest.d.ts +2 -0
  15. package/bin/card/dtos/CardApplicationRequest.js +10 -0
  16. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  17. package/bin/card/dtos/CardCreateRequest.js +176 -0
  18. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  19. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  20. package/bin/fraudPreventionEngine/dtos/GetAccountLevelParams.d.ts +1 -0
  21. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
  22. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
  23. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  24. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  25. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  26. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  27. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  28. package/bin/pomelo/enums/CountryEnum.js +12 -0
  29. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  30. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  31. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  32. package/bin/pomelo/enums/SexEnum.js +8 -0
  33. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  34. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  35. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  36. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  37. package/bin/pomelo/index.d.ts +7 -0
  38. package/bin/pomelo/index.js +25 -0
  39. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  40. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  41. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  42. package/bin/tern/dtos/TernAddress.js +40 -0
  43. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  44. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  45. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  46. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  47. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  48. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  49. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  50. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  51. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  52. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  53. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  54. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  55. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  56. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  57. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  58. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  59. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  60. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  61. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  62. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  63. package/bin/tern/index.d.ts +11 -0
  64. package/bin/tern/index.js +29 -0
  65. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.d.ts +5 -0
  66. package/bin/transactionProcessor/dtos/private/AuthorizeP2pTransactionRequest.js +6 -0
  67. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.d.ts +7 -0
  68. package/bin/transactionProcessor/dtos/private/AuthorizePocketTransactionRequest.js +6 -0
  69. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  70. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  71. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  72. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  73. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  74. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  75. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  76. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  77. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  78. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  79. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  80. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  81. package/package.json +23 -23
  82. package/src/account/dtos/AccountCreateRequest.ts +79 -79
  83. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  84. package/src/account/dtos/AccountInfo.ts +43 -43
  85. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  86. package/src/account/dtos/AccountUpdateRequest.ts +36 -36
  87. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  88. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  89. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  90. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  91. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  92. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  93. package/src/account/dtos/ExchangeInfo.ts +8 -8
  94. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  95. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  96. package/src/account/dtos/GetAccountBalanceResponse.ts +46 -46
  97. package/src/account/dtos/GetAccountResponse.ts +62 -62
  98. package/src/account/dtos/GetAccountResponseList.ts +5 -5
  99. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  100. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  101. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  102. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  103. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  104. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  105. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  106. package/src/account/dtos/GetPocketResponse.ts +8 -8
  107. package/src/account/dtos/PocketBalanceItem.ts +17 -17
  108. package/src/account/dtos/PocketItem.ts +43 -43
  109. package/src/account/dtos/UpdateBalanceOperation.ts +10 -10
  110. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  111. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  112. package/src/account/entities/AccountEntityBase.ts +12 -12
  113. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  114. package/src/account/enums/AccountLevelEnum.ts +5 -5
  115. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  116. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  117. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  118. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  119. package/src/account/index.ts +43 -43
  120. package/src/activity/dtos/ActivityMessageRequest.ts +24 -24
  121. package/src/activity/dtos/ActivityMessageResponse.ts +24 -24
  122. package/src/activity/dtos/ActivityQueueMessage.ts +9 -9
  123. package/src/activity/index.ts +8 -8
  124. package/src/address/dtos/AddressBase.ts +130 -130
  125. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  126. package/src/address/dtos/AddressResponse.ts +41 -41
  127. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  128. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  129. package/src/address/dtos/Geometry.ts +4 -4
  130. package/src/address/dtos/OfficeDetails.ts +30 -30
  131. package/src/address/dtos/OperationSchedule.ts +8 -8
  132. package/src/address/dtos/Place.ts +83 -83
  133. package/src/address/dtos/Shipping.ts +36 -36
  134. package/src/address/dtos/Timezone.ts +5 -5
  135. package/src/address/enums/AddressProvider.ts +10 -10
  136. package/src/address/enums/AddressStatus.ts +9 -9
  137. package/src/address/index.ts +16 -16
  138. package/src/app/enums/App.ts +10 -10
  139. package/src/app/index.ts +3 -3
  140. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  141. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  142. package/src/authentication/index.ts +3 -3
  143. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  144. package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
  145. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  146. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
  147. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  148. package/src/bankAccount/index.ts +4 -4
  149. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  150. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  151. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  152. package/src/bbvaRst/index.ts +2 -2
  153. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  154. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  155. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  156. package/src/beneficiary/enums/AccountType.ts +6 -6
  157. package/src/beneficiary/index.ts +7 -7
  158. package/src/card/dtos/CardActivateRequest.ts +12 -12
  159. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  160. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  161. package/src/card/dtos/CardApplicationRequest.ts +35 -27
  162. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  163. package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -78
  164. package/src/card/dtos/CardResponse.ts +34 -34
  165. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  166. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  167. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  168. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  169. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  170. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  171. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  172. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  173. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  174. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  175. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  176. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  177. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  178. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  179. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  180. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  181. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  182. package/src/card/enums/Brand.ts +7 -7
  183. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  184. package/src/card/enums/CardIssuing.ts +6 -6
  185. package/src/card/enums/CardType.ts +4 -4
  186. package/src/card/enums/CardUpdateKey.ts +4 -4
  187. package/src/card/enums/CreditOrDebit.ts +5 -5
  188. package/src/card/enums/DeliveryChannel.ts +7 -7
  189. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  190. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  191. package/src/card/enums/IssuanceType.ts +5 -5
  192. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  193. package/src/card/enums/OwnershipType.ts +3 -3
  194. package/src/card/enums/ShippingStatus.ts +8 -8
  195. package/src/card/enums/Status.ts +6 -6
  196. package/src/card/enums/UpdateKey.ts +5 -5
  197. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  198. package/src/card/index.ts +50 -50
  199. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  200. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  201. package/src/contactInfo/dtos/ContactInfoBackOfficeResponse.ts +6 -6
  202. package/src/contactInfo/dtos/ContactInfoCreateBackOfficeRequest.ts +10 -10
  203. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +2 -2
  204. package/src/contactInfo/dtos/ContactInfoRequest.ts +29 -29
  205. package/src/contactInfo/dtos/ContactInfoResponse.ts +30 -30
  206. package/src/contactInfo/dtos/ContactInfoUpdateBackOfficeRequest.ts +15 -15
  207. package/src/contactInfo/dtos/ContactInfoUpdateRequest.ts +4 -4
  208. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  209. package/src/contactInfo/index.ts +7 -7
  210. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  211. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  212. package/src/contract/index.ts +4 -4
  213. package/src/country/enums/Country.ts +6 -6
  214. package/src/country/enums/CountryId.ts +6 -6
  215. package/src/country/index.ts +5 -5
  216. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  217. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  218. package/src/creditContract/index.ts +5 -5
  219. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  220. package/src/currency/index.ts +2 -2
  221. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  222. package/src/directory/dtos/External.ts +6 -6
  223. package/src/directory/enums/Profile.ts +6 -6
  224. package/src/directory/enums/Scope.ts +7 -7
  225. package/src/directory/enums/Status.ts +8 -8
  226. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  227. package/src/directory/index.ts +7 -7
  228. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  229. package/src/eventBridge/index.ts +1 -1
  230. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  231. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  232. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  233. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  234. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  235. package/src/exchangeRate/index.ts +9 -9
  236. package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +9 -9
  237. package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +5 -3
  238. package/src/fraudPreventionEngine/dtos/GetAccountLevelResponse.ts +7 -7
  239. package/src/fraudPreventionEngine/enums/AccountLevelTenantEnum.ts +5 -5
  240. package/src/fraudPreventionEngine/index.ts +5 -5
  241. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  242. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  243. package/src/genericMessage/index.ts +1 -1
  244. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  245. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  246. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  247. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  248. package/src/group/dtos/GroupResponse.ts +17 -17
  249. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  250. package/src/group/enums/GroupAction.ts +8 -8
  251. package/src/group/enums/GroupStatus.ts +6 -6
  252. package/src/group/enums/RelationStatus.ts +8 -8
  253. package/src/group/enums/RelationType.ts +9 -9
  254. package/src/group/index.ts +18 -18
  255. package/src/header/TokenPayload.ts +18 -18
  256. package/src/header/index.ts +3 -3
  257. package/src/helpers/ValidationUtils.ts +32 -32
  258. package/src/helpers/constans/regex.ts +12 -12
  259. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  260. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  261. package/src/identity/dtos/PeopleResponse.ts +75 -75
  262. package/src/identity/dtos/PeopleUpdateRequest.ts +75 -75
  263. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  264. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  265. package/src/identity/enums/SexDocument.ts +6 -6
  266. package/src/identity/enums/TypeOfDocument.ts +5 -5
  267. package/src/identity/index.ts +12 -12
  268. package/src/index.ts +36 -36
  269. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  270. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  271. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  272. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  273. package/src/notificationMessages/index.ts +5 -5
  274. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  275. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  276. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  277. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  278. package/src/productCatalog/enums/ProductTypeEnum.ts +15 -15
  279. package/src/productCatalog/index.ts +4 -4
  280. package/src/provider/enums/Provider.ts +4 -4
  281. package/src/provider/index.ts +1 -1
  282. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  283. package/src/riskProfile/dtos/AlarmCategory.ts +2 -2
  284. package/src/riskProfile/dtos/CreateRiskProfileRequest.ts +45 -45
  285. package/src/riskProfile/dtos/TransactionAlarmQueueMessage.ts +44 -44
  286. package/src/riskProfile/dtos/UpdateAlarmProfileRequest.ts +9 -9
  287. package/src/riskProfile/dtos/UpdateFactorInfo.ts +5 -5
  288. package/src/riskProfile/dtos/UpdateRiskProfileRequest.ts +5 -5
  289. package/src/riskProfile/dtos/UpdateTransactionAlertRequest.ts +18 -18
  290. package/src/riskProfile/enums/AlarmCategory.ts +8 -8
  291. package/src/riskProfile/enums/AlarmOperationType.ts +7 -7
  292. package/src/riskProfile/enums/PepLevelEnum.ts +6 -6
  293. package/src/riskProfile/enums/RiskFactorCategoryEnum.ts +13 -13
  294. package/src/riskProfile/index.ts +12 -12
  295. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  296. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  297. package/src/servicePayment/index.ts +1 -1
  298. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  299. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  300. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  301. package/src/sessionActivity/index.ts +2 -2
  302. package/src/stpAccount/dtos/CreateAccountWebhookDetail.ts +5 -5
  303. package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
  304. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
  305. package/src/stpSpei/enums/ActividadesProductivasEnum.ts +47 -47
  306. package/src/stpSpei/enums/EntidadesFederativasEnum.ts +33 -33
  307. package/src/stpSpei/enums/PaisesEnum.ts +275 -275
  308. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
  309. package/src/stpSpei/index.ts +7 -7
  310. package/src/transaction/dtos/Credit.ts +24 -24
  311. package/src/transaction/dtos/Debit.ts +20 -20
  312. package/src/transaction/dtos/Notional.ts +20 -20
  313. package/src/transaction/dtos/Product.ts +16 -16
  314. package/src/transaction/dtos/ProductDetail.ts +35 -35
  315. package/src/transaction/dtos/Total.ts +20 -20
  316. package/src/transaction/dtos/TransactionCreateRequest.ts +115 -115
  317. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  318. package/src/transaction/dtos/TransactionGetDetailResponse.ts +24 -24
  319. package/src/transaction/dtos/TransactionGetResponse.ts +20 -20
  320. package/src/transaction/enums/OperationEnum.ts +3 -3
  321. package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
  322. package/src/transaction/enums/TransactionStatusEnum.ts +6 -6
  323. package/src/transaction/index.ts +17 -17
  324. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  325. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  326. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
  327. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  328. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
  329. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  330. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  331. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  332. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
  333. package/src/transactionProcessor/dtos/AuthorizeSpeiMexBankTransferInRequest.ts +33 -33
  334. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  335. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  336. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  337. package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -3
  338. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  339. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  340. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  341. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  342. package/src/transactionProcessor/dtos/TransactionProcessorResponse.ts +13 -13
  343. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  344. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +15 -15
  345. package/src/transactionProcessor/index.ts +22 -22
  346. package/.idea/aws.xml +0 -11
  347. package/.idea/fiado-type-kit.iml +0 -12
  348. package/.idea/modules.xml +0 -8
  349. package/.idea/vcs.xml +0 -6
@@ -1,27 +1,27 @@
1
- import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
2
- import { RelationType } from "../enums/RelationType";
3
- import { RelationStatus } from "../enums/RelationStatus";
4
- import { GroupAction } from "../enums/GroupAction";
5
-
6
- export class GroupAddDirectoryRequest {
7
- @IsNotEmpty()
8
- @IsString()
9
- @Length(3, 50)
10
- groupId: string;
11
-
12
- @ArrayNotEmpty()
13
- @IsUUID(4, { each: true })
14
- directoryIds: string[];
15
-
16
- @IsEnum(RelationType)
17
- @IsNotEmpty()
18
- relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
19
-
20
- @IsEnum(RelationStatus)
21
- @IsNotEmpty()
22
- status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
23
-
24
- @IsEnum(GroupAction)
25
- action: GroupAction;
26
-
27
- }
1
+ import { IsNotEmpty, IsString, IsUUID, Length, ArrayNotEmpty, IsEnum } from "class-validator";
2
+ import { RelationType } from "../enums/RelationType";
3
+ import { RelationStatus } from "../enums/RelationStatus";
4
+ import { GroupAction } from "../enums/GroupAction";
5
+
6
+ export class GroupAddDirectoryRequest {
7
+ @IsNotEmpty()
8
+ @IsString()
9
+ @Length(3, 50)
10
+ groupId: string;
11
+
12
+ @ArrayNotEmpty()
13
+ @IsUUID(4, { each: true })
14
+ directoryIds: string[];
15
+
16
+ @IsEnum(RelationType)
17
+ @IsNotEmpty()
18
+ relationType: RelationType = RelationType.MEMBER; // Default value MEMBER
19
+
20
+ @IsEnum(RelationStatus)
21
+ @IsNotEmpty()
22
+ status: RelationStatus = RelationStatus.ACTIVE; // Default value ACTIVE
23
+
24
+ @IsEnum(GroupAction)
25
+ action: GroupAction;
26
+
27
+ }
@@ -1,54 +1,54 @@
1
- import {IsEnum, IsNotEmpty, IsOptional, IsString, Length} from "class-validator";
2
- import {Transform} from "class-transformer";
3
- import {GroupStatus} from "../enums/GroupStatus";
4
-
5
- export class GroupCreateRequest {
6
- @IsNotEmpty()
7
- @IsString()
8
- @Length(3, 50)
9
- id: string;
10
-
11
- @IsNotEmpty()
12
- @IsString()
13
- @Length(1, 50)
14
- name: string;
15
-
16
- @IsOptional()
17
- @IsString()
18
- @Length(0, 200)
19
- description: string;
20
-
21
- @IsOptional()
22
- @Transform(({value}) => value ?? null)
23
- leaderEmail?: string | null;
24
-
25
- @IsOptional()
26
- @Transform(({value}) => value ?? null)
27
- leaderDirectoryId?: string | null;
28
-
29
- @IsEnum(GroupStatus)
30
- status: GroupStatus;
31
-
32
- @IsOptional()
33
- @Length(0, 20)
34
- @Transform(({value}) => value ?? null)
35
- codeToRefer: string | null;
36
-
37
- @IsOptional()
38
- @IsString()
39
- @Length(0, 100)
40
- @Transform(({value}) => value ?? null)
41
- leaderNames?: string | null;
42
-
43
- @IsOptional()
44
- @IsString()
45
- @Length(0, 15)
46
- @Transform(({value}) => value ?? null)
47
- phoneNumber?: string | null;
48
-
49
- @IsOptional()
50
- @IsString()
51
- @Length(0, 100)
52
- @Transform(({value}) => value ?? null)
53
- category?: string | null;
54
- }
1
+ import {IsEnum, IsNotEmpty, IsOptional, IsString, Length} from "class-validator";
2
+ import {Transform} from "class-transformer";
3
+ import {GroupStatus} from "../enums/GroupStatus";
4
+
5
+ export class GroupCreateRequest {
6
+ @IsNotEmpty()
7
+ @IsString()
8
+ @Length(3, 50)
9
+ id: string;
10
+
11
+ @IsNotEmpty()
12
+ @IsString()
13
+ @Length(1, 50)
14
+ name: string;
15
+
16
+ @IsOptional()
17
+ @IsString()
18
+ @Length(0, 200)
19
+ description: string;
20
+
21
+ @IsOptional()
22
+ @Transform(({value}) => value ?? null)
23
+ leaderEmail?: string | null;
24
+
25
+ @IsOptional()
26
+ @Transform(({value}) => value ?? null)
27
+ leaderDirectoryId?: string | null;
28
+
29
+ @IsEnum(GroupStatus)
30
+ status: GroupStatus;
31
+
32
+ @IsOptional()
33
+ @Length(0, 20)
34
+ @Transform(({value}) => value ?? null)
35
+ codeToRefer: string | null;
36
+
37
+ @IsOptional()
38
+ @IsString()
39
+ @Length(0, 100)
40
+ @Transform(({value}) => value ?? null)
41
+ leaderNames?: string | null;
42
+
43
+ @IsOptional()
44
+ @IsString()
45
+ @Length(0, 15)
46
+ @Transform(({value}) => value ?? null)
47
+ phoneNumber?: string | null;
48
+
49
+ @IsOptional()
50
+ @IsString()
51
+ @Length(0, 100)
52
+ @Transform(({value}) => value ?? null)
53
+ category?: string | null;
54
+ }
@@ -1,21 +1,21 @@
1
- import { RelationStatus } from "../enums/RelationStatus"
2
- import { RelationType } from "../enums/RelationType"
3
-
4
-
5
-
6
- export class GroupDirectoryRelationsResponse {
7
-
8
- PK: string
9
- SK: string
10
- directoryId: string
11
- groupId: string
12
- relationType: RelationType
13
- status: RelationStatus
14
- agent: string
15
- createdAt: string
16
- updatedAt: string
17
- phoneNumber: string
18
- operationId: string
19
- indexName: string
20
-
1
+ import { RelationStatus } from "../enums/RelationStatus"
2
+ import { RelationType } from "../enums/RelationType"
3
+
4
+
5
+
6
+ export class GroupDirectoryRelationsResponse {
7
+
8
+ PK: string
9
+ SK: string
10
+ directoryId: string
11
+ groupId: string
12
+ relationType: RelationType
13
+ status: RelationStatus
14
+ agent: string
15
+ createdAt: string
16
+ updatedAt: string
17
+ phoneNumber: string
18
+ operationId: string
19
+ indexName: string
20
+
21
21
  }
@@ -1,11 +1,11 @@
1
- import { IsOptional, IsString, Length } from "class-validator";
2
-
3
-
4
- export class GroupDirectoryRelationsUpdateRequest {
5
-
6
- @IsOptional()
7
- @IsString()
8
- @Length(1, 20)
9
- agent: string
10
-
1
+ import { IsOptional, IsString, Length } from "class-validator";
2
+
3
+
4
+ export class GroupDirectoryRelationsUpdateRequest {
5
+
6
+ @IsOptional()
7
+ @IsString()
8
+ @Length(1, 20)
9
+ agent: string
10
+
11
11
  }
@@ -1,17 +1,17 @@
1
- import { GroupStatus } from "../enums/GroupStatus"
2
-
3
-
4
- export class GroupResponse {
5
-
6
- id: string
7
- name: string
8
- description: string
9
- status: GroupStatus
10
- leaderNames: string | null
11
- phoneNumber: string | null
12
- leaderEmail: string | null
13
- leaderDirectoryId: string | null
14
- codesToRefer: string
15
- }
16
-
17
-
1
+ import { GroupStatus } from "../enums/GroupStatus"
2
+
3
+
4
+ export class GroupResponse {
5
+
6
+ id: string
7
+ name: string
8
+ description: string
9
+ status: GroupStatus
10
+ leaderNames: string | null
11
+ phoneNumber: string | null
12
+ leaderEmail: string | null
13
+ leaderDirectoryId: string | null
14
+ codesToRefer: string
15
+ }
16
+
17
+
@@ -1,31 +1,31 @@
1
- import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
2
- import { GroupStatus } from "../enums/GroupStatus";
3
-
4
- export class GroupUpdateRequest {
5
-
6
- @IsOptional()
7
- @IsString()
8
- @Length(1, 50)
9
- name: string;
10
-
11
- @IsOptional()
12
- @IsString()
13
- @Length(1, 200)
14
- description: string;
15
-
16
- @IsOptional()
17
- @IsEmail()
18
- leader: string
19
-
20
- @IsOptional()
21
- @IsEnum(GroupStatus)
22
- status: GroupStatus
23
-
24
- @IsOptional()
25
- @Length(3, 20)
26
- codeToRefer: string;
27
-
28
- @IsOptional()
29
- @Length(3, 20)
30
- category: string;
31
- }
1
+ import { IsEmail, IsEnum, IsOptional, IsString, Length } from "class-validator";
2
+ import { GroupStatus } from "../enums/GroupStatus";
3
+
4
+ export class GroupUpdateRequest {
5
+
6
+ @IsOptional()
7
+ @IsString()
8
+ @Length(1, 50)
9
+ name: string;
10
+
11
+ @IsOptional()
12
+ @IsString()
13
+ @Length(1, 200)
14
+ description: string;
15
+
16
+ @IsOptional()
17
+ @IsEmail()
18
+ leader: string
19
+
20
+ @IsOptional()
21
+ @IsEnum(GroupStatus)
22
+ status: GroupStatus
23
+
24
+ @IsOptional()
25
+ @Length(3, 20)
26
+ codeToRefer: string;
27
+
28
+ @IsOptional()
29
+ @Length(3, 20)
30
+ category: string;
31
+ }
@@ -1,8 +1,8 @@
1
-
2
-
3
-
4
- export enum GroupAction {
5
-
6
- ADD='ADD',
7
- REMOVE='REMOVE'
8
- }
1
+
2
+
3
+
4
+ export enum GroupAction {
5
+
6
+ ADD='ADD',
7
+ REMOVE='REMOVE'
8
+ }
@@ -1,7 +1,7 @@
1
-
2
-
3
-
4
- export enum GroupStatus {
5
- ACTIVE = 'ACTIVE',
6
- INACTIVE = 'INACTIVE',
1
+
2
+
3
+
4
+ export enum GroupStatus {
5
+ ACTIVE = 'ACTIVE',
6
+ INACTIVE = 'INACTIVE',
7
7
  }
@@ -1,9 +1,9 @@
1
-
2
-
3
-
4
- export enum RelationStatus {
5
-
6
- ACTIVE = 'ACTIVE',
7
- INACTIVE = 'INACTIVE',
8
- PENDING = 'PENDING',
1
+
2
+
3
+
4
+ export enum RelationStatus {
5
+
6
+ ACTIVE = 'ACTIVE',
7
+ INACTIVE = 'INACTIVE',
8
+ PENDING = 'PENDING',
9
9
  }
@@ -1,10 +1,10 @@
1
-
2
-
3
-
4
- export enum RelationType {
5
-
6
- MEMBER = 'MEMBER',
7
- OWNER = 'OWNER',
8
- AFFILIATE = 'AFFILIATE',
9
-
1
+
2
+
3
+
4
+ export enum RelationType {
5
+
6
+ MEMBER = 'MEMBER',
7
+ OWNER = 'OWNER',
8
+ AFFILIATE = 'AFFILIATE',
9
+
10
10
  }
@@ -1,18 +1,18 @@
1
-
2
-
3
- //dtos
4
- export * from './dtos/GroupResponse';
5
- export * from './dtos/GroupCreateRequest';
6
- export * from './dtos/GroupDirectoryRelationsResponse';
7
- export * from './dtos/GroupUpdateRequest';
8
- export * from './dtos/GroupAddDirectoryRequest';
9
- export * from './dtos/GroupDirectoryRelationsUpdateRequest';
10
-
11
-
12
- //enums
13
- export * from './enums/GroupStatus';
14
- export * from './enums/RelationType';
15
- export * from './enums/RelationStatus';
16
- export * from './enums/GroupAction';
17
-
18
-
1
+
2
+
3
+ //dtos
4
+ export * from './dtos/GroupResponse';
5
+ export * from './dtos/GroupCreateRequest';
6
+ export * from './dtos/GroupDirectoryRelationsResponse';
7
+ export * from './dtos/GroupUpdateRequest';
8
+ export * from './dtos/GroupAddDirectoryRequest';
9
+ export * from './dtos/GroupDirectoryRelationsUpdateRequest';
10
+
11
+
12
+ //enums
13
+ export * from './enums/GroupStatus';
14
+ export * from './enums/RelationType';
15
+ export * from './enums/RelationStatus';
16
+ export * from './enums/GroupAction';
17
+
18
+
@@ -1,18 +1,18 @@
1
- import { TypeOfDirectoryId } from "../directory";
2
- import { Status } from "../directory/enums/Status";
3
-
4
- export interface TokenPayload {
5
- directoryId: string;
6
- typeOfDirectoryId: TypeOfDirectoryId;
7
- peopleId: string | null;
8
- sub: string;
9
- app: string;
10
- issuer: string;
11
- scope: string;
12
- phoneNumber?: string | null;
13
- status: Status | null;
14
- id: string;
15
- profileId?: string | null;
16
- email?: string | null;
17
- event_id?: string
18
- }
1
+ import { TypeOfDirectoryId } from "../directory";
2
+ import { Status } from "../directory/enums/Status";
3
+
4
+ export interface TokenPayload {
5
+ directoryId: string;
6
+ typeOfDirectoryId: TypeOfDirectoryId;
7
+ peopleId: string | null;
8
+ sub: string;
9
+ app: string;
10
+ issuer: string;
11
+ scope: string;
12
+ phoneNumber?: string | null;
13
+ status: Status | null;
14
+ id: string;
15
+ profileId?: string | null;
16
+ email?: string | null;
17
+ event_id?: string
18
+ }
@@ -1,3 +1,3 @@
1
-
2
-
3
- export * from './TokenPayload'
1
+
2
+
3
+ export * from './TokenPayload'
@@ -1,32 +1,32 @@
1
- import { regexIso8601, regexUuidV4 } from "./constans/regex";
2
-
3
-
4
- export class ValidationUtils {
5
-
6
- // Método estático para validar UUID v4
7
- public static validateUuidV4(value: any) {
8
- if (value === null) return true;
9
- return regexUuidV4.test(value);
10
- }
11
-
12
- // Método estático para validar la longitud de una cadena
13
- public static validateStringLength(minLength: number, maxLength: number) {
14
- return (value: string) => {
15
- if (value === null) return true;
16
- return value.length >= minLength && value.length <= maxLength;
17
- };
18
- }
19
-
20
- // Método estático para validar el formato de fecha ISO 8601
21
- public static validateIso8601(value: string) {
22
- if (value === null) return true;
23
- return regexIso8601.test(value);
24
- }
25
-
26
- public static validateNumberRange(minValue: number, maxValue: number) {
27
- return (value: number | null): boolean => {
28
- if (value === null) return true;
29
- return value >= minValue && value <= maxValue;
30
- };
31
- }
32
- }
1
+ import { regexIso8601, regexUuidV4 } from "./constans/regex";
2
+
3
+
4
+ export class ValidationUtils {
5
+
6
+ // Método estático para validar UUID v4
7
+ public static validateUuidV4(value: any) {
8
+ if (value === null) return true;
9
+ return regexUuidV4.test(value);
10
+ }
11
+
12
+ // Método estático para validar la longitud de una cadena
13
+ public static validateStringLength(minLength: number, maxLength: number) {
14
+ return (value: string) => {
15
+ if (value === null) return true;
16
+ return value.length >= minLength && value.length <= maxLength;
17
+ };
18
+ }
19
+
20
+ // Método estático para validar el formato de fecha ISO 8601
21
+ public static validateIso8601(value: string) {
22
+ if (value === null) return true;
23
+ return regexIso8601.test(value);
24
+ }
25
+
26
+ public static validateNumberRange(minValue: number, maxValue: number) {
27
+ return (value: number | null): boolean => {
28
+ if (value === null) return true;
29
+ return value >= minValue && value <= maxValue;
30
+ };
31
+ }
32
+ }
@@ -1,12 +1,12 @@
1
-
2
-
3
- // Expresión regular para validar UUID v4
4
- export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
5
- // Expresión regular para validar fecha ISO 8601
6
- export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
7
- // Expresión regular para validar un número de teléfono
8
- export const regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
9
-
10
-
11
-
12
-
1
+
2
+
3
+ // Expresión regular para validar UUID v4
4
+ export const regexUuidV4 = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
5
+ // Expresión regular para validar fecha ISO 8601
6
+ export const regexIso8601 = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
7
+ // Expresión regular para validar un número de teléfono
8
+ export const regexPhoneNumber = /^\+1\d{10}$|^\+52\d{10}$/;
9
+
10
+
11
+
12
+
@@ -1,25 +1,25 @@
1
- import { Country } from "../../country/enums/Country";
2
- import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
- import { SexDocument } from "../enums/SexDocument";
4
-
5
-
6
- export class IdentificationDocument {
7
-
8
- frontImageName: string | null;
9
- backImageName: string | null;
10
- countryId: Country | null;
11
- expirationDate: string | null;
12
- issueDate: string | null;
13
- lastNameFirst: string | null;
14
- lastNameSecond: string | null;
15
- names: string | null;
16
- fullName: string | null;
17
- countryOfBirth: string | null;
18
- dateOfBirth: string | null;
19
- documentNumber: string | null;
20
- typeOfDocument: string;
21
- sex: SexDocument | null;
22
- verificationId: string | null;
23
- curp: string | null;
24
- status: IdentificationDocumentStatus;
1
+ import { Country } from "../../country/enums/Country";
2
+ import { IdentificationDocumentStatus } from "../enums/IdentificationDocumentStatus";
3
+ import { SexDocument } from "../enums/SexDocument";
4
+
5
+
6
+ export class IdentificationDocument {
7
+
8
+ frontImageName: string | null;
9
+ backImageName: string | null;
10
+ countryId: Country | null;
11
+ expirationDate: string | null;
12
+ issueDate: string | null;
13
+ lastNameFirst: string | null;
14
+ lastNameSecond: string | null;
15
+ names: string | null;
16
+ fullName: string | null;
17
+ countryOfBirth: string | null;
18
+ dateOfBirth: string | null;
19
+ documentNumber: string | null;
20
+ typeOfDocument: string;
21
+ sex: SexDocument | null;
22
+ verificationId: string | null;
23
+ curp: string | null;
24
+ status: IdentificationDocumentStatus;
25
25
  }
@@ -1,5 +1,5 @@
1
-
2
-
3
- export class PeopleCreateRequest {
4
-
1
+
2
+
3
+ export class PeopleCreateRequest {
4
+
5
5
  }