@fiado/type-kit 1.0.87 → 1.0.89

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 (278) hide show
  1. package/.idea/aws.xml +10 -10
  2. package/.idea/fiado-type-kit.iml +11 -11
  3. package/.idea/modules.xml +7 -7
  4. package/.idea/sonarlint/issuestore/0/2/02175ba1c7b82f17c1f95edd897711cf21fc8b55 +0 -0
  5. package/.idea/sonarlint/issuestore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  6. package/.idea/sonarlint/issuestore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  7. package/.idea/sonarlint/issuestore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +2 -0
  8. package/.idea/sonarlint/issuestore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  9. package/.idea/sonarlint/issuestore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  10. package/.idea/sonarlint/issuestore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  11. package/.idea/sonarlint/issuestore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  12. package/.idea/sonarlint/issuestore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  13. package/.idea/sonarlint/issuestore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  14. package/.idea/sonarlint/issuestore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  15. package/.idea/sonarlint/issuestore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  16. package/.idea/sonarlint/issuestore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  17. package/.idea/sonarlint/issuestore/5/2/52124373285180cc9fc913380c1cf02a160f9e62 +0 -0
  18. package/.idea/sonarlint/issuestore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  19. package/.idea/sonarlint/issuestore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  20. package/.idea/sonarlint/issuestore/5/7/57d8ecb1bda7803e970cddbcb9d96ec682fbce50 +0 -0
  21. package/.idea/sonarlint/issuestore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  22. package/.idea/sonarlint/issuestore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  23. package/.idea/sonarlint/issuestore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  24. package/.idea/sonarlint/issuestore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  25. package/.idea/sonarlint/issuestore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  26. package/.idea/sonarlint/issuestore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  27. package/.idea/sonarlint/issuestore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  28. package/.idea/sonarlint/issuestore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  29. package/.idea/sonarlint/issuestore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  30. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  31. package/.idea/sonarlint/issuestore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  32. package/.idea/sonarlint/issuestore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  33. package/.idea/sonarlint/issuestore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  34. package/.idea/sonarlint/issuestore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  35. package/.idea/sonarlint/issuestore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  36. package/.idea/sonarlint/issuestore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  37. package/.idea/sonarlint/issuestore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  38. package/.idea/sonarlint/issuestore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  39. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  40. package/.idea/sonarlint/issuestore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  41. package/.idea/sonarlint/issuestore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  42. package/.idea/sonarlint/issuestore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  43. package/.idea/sonarlint/issuestore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  44. package/.idea/sonarlint/issuestore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  45. package/.idea/sonarlint/issuestore/b/c/bc5b896ed63da1497d081036364d9f2384f2ea37 +0 -0
  46. package/.idea/sonarlint/issuestore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  47. package/.idea/sonarlint/issuestore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  48. package/.idea/sonarlint/issuestore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  49. package/.idea/sonarlint/issuestore/d/2/d24fe332e92475452d840d36f81c9af7b70887e7 +0 -0
  50. package/.idea/sonarlint/issuestore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  51. package/.idea/sonarlint/issuestore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  52. package/.idea/sonarlint/issuestore/index.pb +97 -0
  53. package/.idea/sonarlint/securityhotspotstore/0/2/02175ba1c7b82f17c1f95edd897711cf21fc8b55 +0 -0
  54. package/.idea/sonarlint/securityhotspotstore/0/9/09ee7ee398f8b5bc6eda536c9104a8ae5419c82e +0 -0
  55. package/.idea/sonarlint/securityhotspotstore/1/0/10612661d76edd5c482b60e71edd3a7f74505d5e +0 -0
  56. package/.idea/sonarlint/securityhotspotstore/1/2/12453d06e6e35287172e482940b954ba12dc25a2 +0 -0
  57. package/.idea/sonarlint/securityhotspotstore/1/8/18c290c3d5b13d503bb211e6319a9e64ccd83350 +0 -0
  58. package/.idea/sonarlint/securityhotspotstore/1/f/1fcc1ef4b4c5c551f5f5833f39af79dd4d6440bd +0 -0
  59. package/.idea/sonarlint/securityhotspotstore/2/5/25497cc140764f84080ed16d4d408b09b411525a +0 -0
  60. package/.idea/sonarlint/securityhotspotstore/2/d/2de53b2c61661c8acd989aad739d9b6cc0deabde +0 -0
  61. package/.idea/sonarlint/securityhotspotstore/3/5/355a0b1b7628657539752d4cfbd8f33fcc664d5d +0 -0
  62. package/.idea/sonarlint/securityhotspotstore/3/9/3942490f54c10c0111afa09b30a079f3ef9aeec7 +0 -0
  63. package/.idea/sonarlint/securityhotspotstore/3/a/3a96f9d5c15844580b34596455a77e22ce0b1da1 +0 -0
  64. package/.idea/sonarlint/securityhotspotstore/4/1/4110de41994be7f0e890b6711ba86bb4fb50f602 +0 -0
  65. package/.idea/sonarlint/securityhotspotstore/4/f/4f9e0d80d4df64baa27bf681528cb43a3ba4fde6 +0 -0
  66. package/.idea/sonarlint/securityhotspotstore/5/2/52124373285180cc9fc913380c1cf02a160f9e62 +0 -0
  67. package/.idea/sonarlint/securityhotspotstore/5/5/55792c374cceb362b99620756061abf16563279b +0 -0
  68. package/.idea/sonarlint/securityhotspotstore/5/6/566db33aef0142b767c76568b2fca29caaa1b423 +0 -0
  69. package/.idea/sonarlint/securityhotspotstore/5/7/57d8ecb1bda7803e970cddbcb9d96ec682fbce50 +0 -0
  70. package/.idea/sonarlint/securityhotspotstore/5/8/5815363aa7c189fe1d8a995d750c3a3f27900621 +0 -0
  71. package/.idea/sonarlint/securityhotspotstore/5/9/59861d131fb0f6508d57801b470735455669e76f +0 -0
  72. package/.idea/sonarlint/securityhotspotstore/5/a/5a74acb4b064cbe70d9a71991eb486fb4d78f531 +0 -0
  73. package/.idea/sonarlint/securityhotspotstore/5/b/5bc0ebc2a399a9f7595b8013c990ef8681de0fb8 +0 -0
  74. package/.idea/sonarlint/securityhotspotstore/6/1/619fe0b2aa30704d95a60035674b31d432fc5a75 +0 -0
  75. package/.idea/sonarlint/securityhotspotstore/6/4/646b88aafc1ca8453d1a111ea33d258c52e07851 +0 -0
  76. package/.idea/sonarlint/securityhotspotstore/6/9/69abfdb53d85b80c255b3ab2a88666175ceeac54 +0 -0
  77. package/.idea/sonarlint/securityhotspotstore/6/b/6bcb55d35bf54b940fe29f44e2bb679bc6f621e1 +0 -0
  78. package/.idea/sonarlint/securityhotspotstore/6/f/6f43ceef55b03d8c26768ceb4ee9e3e1cea7ddd4 +0 -0
  79. package/.idea/sonarlint/securityhotspotstore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  80. package/.idea/sonarlint/securityhotspotstore/7/3/73d3690344e0bf29ccdba246e5f3450707458c0a +0 -0
  81. package/.idea/sonarlint/securityhotspotstore/7/3/73eee44012dacbb17c6d2e2d988e6def209267b8 +0 -0
  82. package/.idea/sonarlint/securityhotspotstore/7/7/77a3404a468e41376864800c0ab63d69287e6eab +0 -0
  83. package/.idea/sonarlint/securityhotspotstore/7/e/7ecdb333781356fc0fe1cc9fa84ac8f76b996401 +0 -0
  84. package/.idea/sonarlint/securityhotspotstore/7/f/7f9d84f1e541f40d1bc582e467f11283b3acfe99 +0 -0
  85. package/.idea/sonarlint/securityhotspotstore/8/3/837ec76e2e7ee5ac8e0326747630f9f66b7d5c1c +0 -0
  86. package/.idea/sonarlint/securityhotspotstore/8/b/8b0588db2495f22a93ce5d97cc089971f40aa4ec +0 -0
  87. package/.idea/sonarlint/securityhotspotstore/8/c/8ce69d617cb074433c15518eed688652cbc8c164 +0 -0
  88. package/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  89. package/.idea/sonarlint/securityhotspotstore/9/4/948b0afb07fbe2035d9d0a168a017e51c2b221a2 +0 -0
  90. package/.idea/sonarlint/securityhotspotstore/9/8/98a520adeec585ead0013d974a18f679393b6997 +0 -0
  91. package/.idea/sonarlint/securityhotspotstore/9/f/9fc96c9beeba61e907bd3ba313f11eac8cf0d430 +0 -0
  92. package/.idea/sonarlint/securityhotspotstore/a/5/a545ebf840220599f323a01614431575a770e319 +0 -0
  93. package/.idea/sonarlint/securityhotspotstore/a/9/a903e3bfc804794d9b9535cbb530c68383652b5d +0 -0
  94. package/.idea/sonarlint/securityhotspotstore/b/c/bc5b896ed63da1497d081036364d9f2384f2ea37 +0 -0
  95. package/.idea/sonarlint/securityhotspotstore/c/5/c5fb850250c7443c48a6c12b5cf6916773da31f1 +0 -0
  96. package/.idea/sonarlint/securityhotspotstore/c/9/c9c508bb5b9ad2f0f6b3ad35422b961d678e1d0f +0 -0
  97. package/.idea/sonarlint/securityhotspotstore/c/b/cbc130a9515015718fb34e36adfe27e4e31f43e5 +0 -0
  98. package/.idea/sonarlint/securityhotspotstore/d/2/d24fe332e92475452d840d36f81c9af7b70887e7 +0 -0
  99. package/.idea/sonarlint/securityhotspotstore/f/9/f9cb0ab2ca2e8ce4e64e10034c949066c38000f5 +0 -0
  100. package/.idea/sonarlint/securityhotspotstore/f/9/f9d6327040914014594d301e0dc6361a476a5ff4 +0 -0
  101. package/.idea/sonarlint/securityhotspotstore/index.pb +97 -0
  102. package/.idea/vcs.xml +5 -5
  103. package/README.md +70 -70
  104. package/bin/exchangeRate/dtos/GetExchangeRatesRequest.d.ts +4 -0
  105. package/bin/exchangeRate/dtos/GetExchangeRatesRequest.js +5 -0
  106. package/bin/exchangeRate/index.d.ts +1 -0
  107. package/bin/exchangeRate/index.js +1 -0
  108. package/package.json +23 -23
  109. package/src/account/dtos/AccountCreateRequest.ts +75 -75
  110. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  111. package/src/account/dtos/AccountInfo.ts +39 -39
  112. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  113. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  114. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  115. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  116. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  117. package/src/account/dtos/ExchangeInfo.ts +8 -8
  118. package/src/account/dtos/GetAccountBalanceResponse.ts +32 -32
  119. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  120. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  121. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  122. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  123. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  124. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  125. package/src/account/dtos/GetPocketBalanceResponse.ts +43 -43
  126. package/src/account/dtos/GetPocketResponse.ts +8 -8
  127. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  128. package/src/account/dtos/PocketItem.ts +40 -40
  129. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  130. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  131. package/src/account/entities/AccountEntityBase.ts +12 -12
  132. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  133. package/src/account/enums/AccountLevelEnum.ts +5 -5
  134. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  135. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  136. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  137. package/src/account/index.ts +33 -33
  138. package/src/address/dtos/AddressBase.ts +130 -130
  139. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  140. package/src/address/dtos/AddressResponse.ts +41 -41
  141. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  142. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  143. package/src/address/dtos/Geometry.ts +4 -4
  144. package/src/address/dtos/OfficeDetails.ts +30 -30
  145. package/src/address/dtos/OperationSchedule.ts +8 -8
  146. package/src/address/dtos/Place.ts +83 -83
  147. package/src/address/dtos/Shipping.ts +36 -36
  148. package/src/address/dtos/Timezone.ts +5 -5
  149. package/src/address/enums/AddressProvider.ts +10 -10
  150. package/src/address/enums/AddressStatus.ts +9 -9
  151. package/src/address/index.ts +16 -16
  152. package/src/app/enums/App.ts +10 -10
  153. package/src/app/index.ts +3 -3
  154. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  155. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  156. package/src/authentication/index.ts +3 -3
  157. package/src/card/dtos/CardActivateRequest.ts +12 -12
  158. package/src/card/dtos/CardApplicationRequest.ts +20 -20
  159. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  160. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  161. package/src/card/dtos/CardResponse.ts +4 -4
  162. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  163. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  164. package/src/card/dtos/CardUpdateRequest.ts +13 -13
  165. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  166. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  167. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  168. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  169. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  170. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  171. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  172. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  173. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  174. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  175. package/src/card/enums/Brand.ts +7 -7
  176. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  177. package/src/card/enums/CardIssuing.ts +6 -6
  178. package/src/card/enums/CardType.ts +4 -4
  179. package/src/card/enums/CardUpdateKey.ts +4 -4
  180. package/src/card/enums/CreditOrDebit.ts +5 -5
  181. package/src/card/enums/DeliveryChannel.ts +7 -7
  182. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  183. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  184. package/src/card/enums/IssuanceType.ts +5 -5
  185. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  186. package/src/card/enums/OwnershipType.ts +3 -3
  187. package/src/card/enums/ShippingStatus.ts +8 -8
  188. package/src/card/enums/Status.ts +6 -6
  189. package/src/card/enums/UpdateKey.ts +5 -5
  190. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  191. package/src/card/index.ts +44 -44
  192. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  193. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  194. package/src/country/enums/Country.ts +6 -6
  195. package/src/country/enums/CountryId.ts +6 -6
  196. package/src/country/index.ts +5 -5
  197. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  198. package/src/currency/index.ts +2 -2
  199. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  200. package/src/directory/dtos/External.ts +6 -6
  201. package/src/directory/enums/Profile.ts +6 -6
  202. package/src/directory/enums/Scope.ts +7 -7
  203. package/src/directory/enums/Status.ts +8 -8
  204. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  205. package/src/directory/index.ts +7 -7
  206. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  207. package/src/eventBridge/index.ts +1 -1
  208. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  209. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  210. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  211. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +4 -0
  212. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  213. package/src/exchangeRate/index.ts +9 -8
  214. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  215. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  216. package/src/genericMessage/index.ts +1 -1
  217. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  218. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  219. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  220. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  221. package/src/group/dtos/GroupResponse.ts +17 -17
  222. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  223. package/src/group/enums/GroupAction.ts +8 -8
  224. package/src/group/enums/GroupStatus.ts +6 -6
  225. package/src/group/enums/RelationStatus.ts +8 -8
  226. package/src/group/enums/RelationType.ts +9 -9
  227. package/src/group/index.ts +18 -18
  228. package/src/header/TokenPayload.ts +17 -17
  229. package/src/header/index.ts +3 -3
  230. package/src/helpers/ValidationUtils.ts +32 -32
  231. package/src/helpers/constans/regex.ts +12 -12
  232. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  233. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  234. package/src/identity/dtos/PeopleResponse.ts +80 -80
  235. package/src/identity/dtos/PeopleUpdateRequest.ts +75 -75
  236. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  237. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  238. package/src/identity/enums/SexDocument.ts +6 -6
  239. package/src/identity/enums/TypeOfDocument.ts +5 -5
  240. package/src/identity/index.ts +12 -12
  241. package/src/index.ts +22 -22
  242. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  243. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  244. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  245. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  246. package/src/notificationMessages/index.ts +5 -5
  247. package/src/provider/enums/Provider.ts +4 -4
  248. package/src/provider/index.ts +1 -1
  249. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  250. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  251. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  252. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  253. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  254. package/src/sessionActivity/index.ts +2 -2
  255. package/bin/tern/dtos/TernAddress.d.ts +0 -8
  256. package/bin/tern/dtos/TernAddress.js +0 -40
  257. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +0 -7
  258. package/bin/tern/dtos/TernCreateAccountRequest.js +0 -33
  259. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +0 -5
  260. package/bin/tern/dtos/TernCreateAccountResponse.js +0 -25
  261. package/bin/tern/dtos/TernCreateUserRequest.d.ts +0 -15
  262. package/bin/tern/dtos/TernCreateUserRequest.js +0 -70
  263. package/bin/tern/dtos/TernCreateUserResponse.d.ts +0 -8
  264. package/bin/tern/dtos/TernCreateUserResponse.js +0 -37
  265. package/bin/tern/dtos/TernGetAccountRequest.d.ts +0 -5
  266. package/bin/tern/dtos/TernGetAccountRequest.js +0 -25
  267. package/bin/tern/dtos/TernGetAccountResponse.d.ts +0 -22
  268. package/bin/tern/dtos/TernGetAccountResponse.js +0 -87
  269. package/bin/tern/dtos/TernGetUserRequest.d.ts +0 -3
  270. package/bin/tern/dtos/TernGetUserRequest.js +0 -20
  271. package/bin/tern/dtos/TernGetUserResponse.d.ts +0 -24
  272. package/bin/tern/dtos/TernGetUserResponse.js +0 -96
  273. package/bin/tern/enums/TernAccountStatusEnum.d.ts +0 -4
  274. package/bin/tern/enums/TernAccountStatusEnum.js +0 -8
  275. package/bin/tern/enums/TernAccountTypeEnum.d.ts +0 -5
  276. package/bin/tern/enums/TernAccountTypeEnum.js +0 -9
  277. package/bin/tern/index.d.ts +0 -11
  278. package/bin/tern/index.js +0 -29
@@ -1,54 +1,54 @@
1
- import { ValidationArguments, ValidationOptions, ValidatorConstraint, 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
- @ValidatorConstraint({ async: true })
8
- export class CardUpdateKeyConstraint {
9
-
10
- public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
11
-
12
- const cardUpdateRequest = arg.object as CardUpdateRequest;
13
-
14
- // Validar si el valor es uno de los status válidos
15
- if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
16
- return Object.values(Status).includes(value as Status);
17
- }
18
-
19
- // Validar si el valor es un string de 4 dígitos no consecutivos
20
- if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
21
-
22
- if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
23
-
24
- // Verifica que no sean consecutivos asc o desc
25
- for (let i = 0; i < value.length - 1; i++) {
26
- if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
27
- continue;
28
- } else {
29
- return false;
30
- }
31
- }
32
- return true;
33
- }
34
-
35
- // En caso de que type no sea ninguno de los esperados
36
- return false;
37
- }
38
-
39
- defaultMessage(args: ValidationArguments) {
40
- return "The value is not valid for the update type.";
41
- }
42
- }
43
-
44
- export function IsValueValid(validationOptions?: ValidationOptions) {
45
- return function (object: Object, propertyName: string) {
46
- registerDecorator({
47
- target: object.constructor,
48
- propertyName: propertyName,
49
- options: validationOptions,
50
- constraints: [],
51
- validator: CardUpdateKeyConstraint,
52
- });
53
- };
1
+ import { ValidationArguments, ValidationOptions, ValidatorConstraint, 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
+ @ValidatorConstraint({ async: true })
8
+ export class CardUpdateKeyConstraint {
9
+
10
+ public static validateUpdateKey(value: string | Status, arg: ValidationArguments) {
11
+
12
+ const cardUpdateRequest = arg.object as CardUpdateRequest;
13
+
14
+ // Validar si el valor es uno de los status válidos
15
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_STATUS) {
16
+ return Object.values(Status).includes(value as Status);
17
+ }
18
+
19
+ // Validar si el valor es un string de 4 dígitos no consecutivos
20
+ if (cardUpdateRequest.type === UpdateKey.CHANGE_PIN) {
21
+
22
+ if (!/^\d{4}$/.test(value)) return false; // Debe ser un string de 4 dígitos
23
+
24
+ // Verifica que no sean consecutivos asc o desc
25
+ for (let i = 0; i < value.length - 1; i++) {
26
+ if (Math.abs(parseInt(value[i]) - parseInt(value[i + 1])) !== 1) {
27
+ continue;
28
+ } else {
29
+ return false;
30
+ }
31
+ }
32
+ return true;
33
+ }
34
+
35
+ // En caso de que type no sea ninguno de los esperados
36
+ return false;
37
+ }
38
+
39
+ defaultMessage(args: ValidationArguments) {
40
+ return "The value is not valid for the update type.";
41
+ }
42
+ }
43
+
44
+ export function IsValueValid(validationOptions?: ValidationOptions) {
45
+ return function (object: Object, propertyName: string) {
46
+ registerDecorator({
47
+ target: object.constructor,
48
+ propertyName: propertyName,
49
+ options: validationOptions,
50
+ constraints: [],
51
+ validator: CardUpdateKeyConstraint,
52
+ });
53
+ };
54
54
  }
@@ -1,26 +1,26 @@
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(phoneNumber: string, args: ValidationArguments) {
7
- return regexPhoneNumber.test(phoneNumber);
8
- }
9
-
10
- defaultMessage(args: ValidationArguments) {
11
- return "The phone number is not valid. The expected format is +############.";
12
- }
13
- }
14
-
15
- // Decorador que usaremos en nuestras clases DTO
16
- export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
17
- return function (object: Object, propertyName: string) {
18
- registerDecorator({
19
- target: object.constructor,
20
- propertyName: propertyName,
21
- options: validationOptions,
22
- constraints: [],
23
- validator: IsPhoneNumberConstraint,
24
- });
25
- };
26
- }
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(phoneNumber: string, args: ValidationArguments) {
7
+ return regexPhoneNumber.test(phoneNumber);
8
+ }
9
+
10
+ defaultMessage(args: ValidationArguments) {
11
+ return "The phone number is not valid. The expected format is +############.";
12
+ }
13
+ }
14
+
15
+ // Decorador que usaremos en nuestras clases DTO
16
+ export function IsPhoneNumberFiado(validationOptions?: ValidationOptions) {
17
+ return function (object: Object, propertyName: string) {
18
+ registerDecorator({
19
+ target: object.constructor,
20
+ propertyName: propertyName,
21
+ options: validationOptions,
22
+ constraints: [],
23
+ validator: IsPhoneNumberConstraint,
24
+ });
25
+ };
26
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum Country {
4
- MEX = "MEX",
5
- USA = "USA"
6
- }
1
+
2
+
3
+ export enum Country {
4
+ MEX = "MEX",
5
+ USA = "USA"
6
+ }
@@ -1,7 +1,7 @@
1
-
2
- //*
3
-
4
- export enum CountryId {
5
- MEX = "484",
6
- USA = "840"
1
+
2
+ //*
3
+
4
+ export enum CountryId {
5
+ MEX = "484",
6
+ USA = "840"
7
7
  }
@@ -1,6 +1,6 @@
1
- //dto
2
-
3
-
4
- //enums
5
- export * from './enums/CountryId';
1
+ //dto
2
+
3
+
4
+ //enums
5
+ export * from './enums/CountryId';
6
6
  export * from './enums/Country';
@@ -1,9 +1,9 @@
1
-
2
- export class CurrencyResponse {
3
-
4
- currencyId: string;
5
- iso: string;
6
- name: string;
7
- symbol: string;
8
-
1
+
2
+ export class CurrencyResponse {
3
+
4
+ currencyId: string;
5
+ iso: string;
6
+ name: string;
7
+ symbol: string;
8
+
9
9
  }
@@ -1,3 +1,3 @@
1
-
2
-
1
+
2
+
3
3
  export * from './dtos/CurrencyResponse';
@@ -1,19 +1,19 @@
1
- import { Profile } from "../enums/Profile";
2
- import { Scope } from "../enums/Scope";
3
- import { Status } from "../enums/Status";
4
- import { External } from "./External";
5
-
6
-
7
- export interface DirectoryResponse {
8
- id: string;
9
- identityId: string | null;
10
- lastSession: string | null;
11
- ownerDirectoryId: string | null;
12
- password: string;
13
- peopleId: string;
14
- phoneNumber: string;
15
- scope: Array<Scope>;
16
- status: Status;
17
- userProfile: Profile;
18
- external: Array<External>;
1
+ import { Profile } from "../enums/Profile";
2
+ import { Scope } from "../enums/Scope";
3
+ import { Status } from "../enums/Status";
4
+ import { External } from "./External";
5
+
6
+
7
+ export interface DirectoryResponse {
8
+ id: string;
9
+ identityId: string | null;
10
+ lastSession: string | null;
11
+ ownerDirectoryId: string | null;
12
+ password: string;
13
+ peopleId: string;
14
+ phoneNumber: string;
15
+ scope: Array<Scope>;
16
+ status: Status;
17
+ userProfile: Profile;
18
+ external: Array<External>;
19
19
  }
@@ -1,7 +1,7 @@
1
- import { Provider } from "../../provider/enums/Provider";
2
-
3
-
4
- export type External = {
5
- provider: Provider;
6
- user: string;
1
+ import { Provider } from "../../provider/enums/Provider";
2
+
3
+
4
+ export type External = {
5
+ provider: Provider;
6
+ user: string;
7
7
  };
@@ -1,7 +1,7 @@
1
-
2
-
3
- export enum Profile {
4
- HOST = "HOST",
5
- GUEST = "GUEST",
6
- GUEST_MINOR = "GUEST_MINOR"
1
+
2
+
3
+ export enum Profile {
4
+ HOST = "HOST",
5
+ GUEST = "GUEST",
6
+ GUEST_MINOR = "GUEST_MINOR"
7
7
  }
@@ -1,8 +1,8 @@
1
-
2
-
3
- export enum Scope {
4
- FIADO_MX = "fiado.mx",
5
- FIADO_US = "fiado.us",
6
- US_ONBOARDING_PROFILE = "fiado.on_us",
7
- MX_ONBOARDING_PROFILE = "fiado.on_mx"
1
+
2
+
3
+ export enum Scope {
4
+ FIADO_MX = "fiado.mx",
5
+ FIADO_US = "fiado.us",
6
+ US_ONBOARDING_PROFILE = "fiado.on_us",
7
+ MX_ONBOARDING_PROFILE = "fiado.on_mx"
8
8
  }
@@ -1,8 +1,8 @@
1
-
2
-
3
- export enum Status {
4
- ACTIVE = "ACTIVE",
5
- PAUSED = "PAUSED",
6
- PROHIBITED = "PROHIBITED",
7
- SIGN_UP = "SIGN_UP"
8
- }
1
+
2
+
3
+ export enum Status {
4
+ ACTIVE = "ACTIVE",
5
+ PAUSED = "PAUSED",
6
+ PROHIBITED = "PROHIBITED",
7
+ SIGN_UP = "SIGN_UP"
8
+ }
@@ -1,7 +1,7 @@
1
-
2
-
3
- export enum TypeOfDirectoryId {
4
- USER = "USER",
5
- BACKOFFICE = "BACKOFFICE",
6
- AGENT = "AGENT"
1
+
2
+
3
+ export enum TypeOfDirectoryId {
4
+ USER = "USER",
5
+ BACKOFFICE = "BACKOFFICE",
6
+ AGENT = "AGENT"
7
7
  }
@@ -1,8 +1,8 @@
1
-
2
- //dtos
3
- export * from './dtos/DirectoryResponse';
4
- export * from './dtos/External';
5
-
6
-
7
- //enums
1
+
2
+ //dtos
3
+ export * from './dtos/DirectoryResponse';
4
+ export * from './dtos/External';
5
+
6
+
7
+ //enums
8
8
  export * from './enums/TypeOfDirectoryId';
@@ -1,5 +1,5 @@
1
- import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
2
-
3
- export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
4
-
1
+ import { GenericMessageRequest } from "../../genericMessage/dto/GenericMessageRequest";
2
+
3
+ export class EventBridgeMessageRequest<T> extends GenericMessageRequest<T>{
4
+
5
5
  }
@@ -1,2 +1,2 @@
1
- //dto
1
+ //dto
2
2
  export * from './dto/EventBridgeMessageRequest';
@@ -1,51 +1,51 @@
1
-
2
- import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
3
- import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
4
- import { Type } from "class-transformer";
5
- import { CountryId } from "../../country";
6
- import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
7
-
8
- export class ExchangeRateCreateRequest {
9
-
10
- @IsUUID()
11
- id: string;
12
-
13
- @IsNumber()
14
- adjustmentExchangeRate: number;
15
-
16
- @IsNumber()
17
- adjustmentPercentage: number;
18
-
19
- @ValidateNested()
20
- @Type(() => CurrencyResponse)
21
- destinationCurrency: CurrencyResponse;
22
-
23
- @IsString()
24
- destinationCurrencyId: CountryId;
25
-
26
- @IsNumber()
27
- exchangeRate: number;
28
-
29
- @IsNumber()
30
- fxFactor: number;
31
-
32
- @IsNumber()
33
- @Max(50000)
34
- @Min(10)
35
- maxRequestAmount: number;
36
-
37
- @IsNumber()
38
- @Max(50000)
39
- @Min(10)
40
- minRequestAmount: number;
41
-
42
- @ValidateNested()
43
- @Type(() => CurrencyResponse)
44
- originCurrency: CurrencyResponse;
45
-
46
- @IsString()
47
- originCurrencyId: string;
48
-
49
- @IsEnum(ExchangeRateStatus)
50
- status: ExchangeRateStatus;
1
+
2
+ import { IsEnum, IsNumber, IsString, IsUUID, Max, Min, ValidateNested } from "class-validator";
3
+ import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
4
+ import { Type } from "class-transformer";
5
+ import { CountryId } from "../../country";
6
+ import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
7
+
8
+ export class ExchangeRateCreateRequest {
9
+
10
+ @IsUUID()
11
+ id: string;
12
+
13
+ @IsNumber()
14
+ adjustmentExchangeRate: number;
15
+
16
+ @IsNumber()
17
+ adjustmentPercentage: number;
18
+
19
+ @ValidateNested()
20
+ @Type(() => CurrencyResponse)
21
+ destinationCurrency: CurrencyResponse;
22
+
23
+ @IsString()
24
+ destinationCurrencyId: CountryId;
25
+
26
+ @IsNumber()
27
+ exchangeRate: number;
28
+
29
+ @IsNumber()
30
+ fxFactor: number;
31
+
32
+ @IsNumber()
33
+ @Max(50000)
34
+ @Min(10)
35
+ maxRequestAmount: number;
36
+
37
+ @IsNumber()
38
+ @Max(50000)
39
+ @Min(10)
40
+ minRequestAmount: number;
41
+
42
+ @ValidateNested()
43
+ @Type(() => CurrencyResponse)
44
+ originCurrency: CurrencyResponse;
45
+
46
+ @IsString()
47
+ originCurrencyId: string;
48
+
49
+ @IsEnum(ExchangeRateStatus)
50
+ status: ExchangeRateStatus;
51
51
  }
@@ -1,5 +1,5 @@
1
- import { ExchangeRateResponse } from "./ExchangeRateResponse";
2
-
3
- export class ExchangeRateCreateResponse extends ExchangeRateResponse {
4
-
1
+ import { ExchangeRateResponse } from "./ExchangeRateResponse";
2
+
3
+ export class ExchangeRateCreateResponse extends ExchangeRateResponse {
4
+
5
5
  }
@@ -1,20 +1,20 @@
1
- import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
2
- import { CountryId } from "../../country";
3
- import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
4
-
5
- export class ExchangeRateResponse {
6
-
7
- id: string;
8
- adjustmentExchangeRate: number;
9
- adjustmentPercentage: number;
10
- createDate: string;
11
- destinationCurrency: CurrencyResponse;
12
- destinationCurrencyId: CountryId;
13
- exchangeRate: number;
14
- fxFactor: number;
15
- maxRequestAmount: number;
16
- minRequestAmount: number;
17
- originCurrency: CurrencyResponse;
18
- originCurrencyId: string;
19
- status: ExchangeRateStatus;
1
+ import { CurrencyResponse } from "../../currency/dtos/CurrencyResponse";
2
+ import { CountryId } from "../../country";
3
+ import { ExchangeRateStatus } from "../enums/ExchangeRateStatus";
4
+
5
+ export class ExchangeRateResponse {
6
+
7
+ id: string;
8
+ adjustmentExchangeRate: number;
9
+ adjustmentPercentage: number;
10
+ createDate: string;
11
+ destinationCurrency: CurrencyResponse;
12
+ destinationCurrencyId: CountryId;
13
+ exchangeRate: number;
14
+ fxFactor: number;
15
+ maxRequestAmount: number;
16
+ minRequestAmount: number;
17
+ originCurrency: CurrencyResponse;
18
+ originCurrencyId: string;
19
+ status: ExchangeRateStatus;
20
20
  }
@@ -0,0 +1,4 @@
1
+ export default class GetExchangeRatesRequest {
2
+ originCurrencyId: string;
3
+ destinationCurrencyId: string;
4
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export enum ExchangeRateStatus {
4
- ENABLED = 'ENABLED',
5
- DISABLED = 'DISABLED'
1
+
2
+
3
+ export enum ExchangeRateStatus {
4
+ ENABLED = 'ENABLED',
5
+ DISABLED = 'DISABLED'
6
6
  }
@@ -1,9 +1,10 @@
1
- //dtos
2
- export * from './dtos/ExchangeRateResponse';
3
- export * from './dtos/ExchangeRateCreateRequest';
4
- export * from './dtos/ExchangeRateCreateResponse';
5
-
6
-
7
-
8
- //enums
1
+ //dtos
2
+ export * from './dtos/ExchangeRateResponse';
3
+ export * from './dtos/ExchangeRateCreateRequest';
4
+ export * from './dtos/ExchangeRateCreateResponse';
5
+ export * from './dtos/GetExchangeRatesRequest';
6
+
7
+
8
+
9
+ //enums
9
10
  export * from './enums/ExchangeRateStatus';
@@ -1,17 +1,17 @@
1
- import { IsString, IsUUID, IsEnum } from "class-validator";
2
-
3
-
4
- import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
5
-
6
-
7
- export class GenericMessageRequest<T> {
8
-
9
- @IsUUID()
10
- id?: string;
11
- @IsEnum(GenericMessageSourceEnum)
12
- source: GenericMessageSourceEnum;
13
- @IsString()
14
- process:string
15
-
16
- payload(input:T){ return input}
17
- }
1
+ import { IsString, IsUUID, IsEnum } from "class-validator";
2
+
3
+
4
+ import { GenericMessageSourceEnum } from "../enums/GenericMessageSourceEnum";
5
+
6
+
7
+ export class GenericMessageRequest<T> {
8
+
9
+ @IsUUID()
10
+ id?: string;
11
+ @IsEnum(GenericMessageSourceEnum)
12
+ source: GenericMessageSourceEnum;
13
+ @IsString()
14
+ process:string
15
+
16
+ payload(input:T){ return input}
17
+ }
@@ -1,3 +1,3 @@
1
- export enum GenericMessageSourceEnum {
2
- EVENT_BRIDGE='EVENT_BRIDGE'
3
- }
1
+ export enum GenericMessageSourceEnum {
2
+ EVENT_BRIDGE='EVENT_BRIDGE'
3
+ }
@@ -1,2 +1,2 @@
1
- //enums
1
+ //enums
2
2
  export * from './enums/GenericMessageSourceEnum';