@fiado/type-kit 1.2.33 → 1.2.34

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 (339) 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/CreateBankAccountOutput.d.ts +5 -0
  7. package/bin/account/dtos/CreateBankAccountOutput.js +6 -0
  8. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +14 -0
  9. package/bin/account/dtos/CreateBankAccountUserInput.js +6 -0
  10. package/bin/account/dtos/CreateBankAccountUserOutput.d.ts +8 -0
  11. package/bin/account/dtos/CreateBankAccountUserOutput.js +6 -0
  12. package/bin/account/dtos/PocketCreateRequest.d.ts +4 -0
  13. package/bin/account/dtos/PocketCreateRequest.js +31 -0
  14. package/bin/account/dtos/PocketCreateResponse.d.ts +2 -0
  15. package/bin/account/dtos/PocketCreateResponse.js +6 -0
  16. package/bin/account/enums/AccountStatus.d.ts +5 -0
  17. package/bin/account/enums/AccountStatus.js +9 -0
  18. package/bin/card/dtos/CardCreateRequest.d.ts +34 -0
  19. package/bin/card/dtos/CardCreateRequest.js +176 -0
  20. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  21. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  22. package/bin/creditContract/dto/CreditContractCreateRequest.d.ts +15 -0
  23. package/bin/creditContract/dto/CreditContractCreateRequest.js +72 -0
  24. package/bin/pomelo/dtos/PomeloCreateUserRequest.d.ts +28 -0
  25. package/bin/pomelo/dtos/PomeloCreateUserRequest.js +2 -0
  26. package/bin/pomelo/dtos/PomeloCreateUserResponse.d.ts +35 -0
  27. package/bin/pomelo/dtos/PomeloCreateUserResponse.js +2 -0
  28. package/bin/pomelo/enums/CountryEnum.d.ts +8 -0
  29. package/bin/pomelo/enums/CountryEnum.js +12 -0
  30. package/bin/pomelo/enums/IdentificationTypeEnum.d.ts +7 -0
  31. package/bin/pomelo/enums/IdentificationTypeEnum.js +11 -0
  32. package/bin/pomelo/enums/SexEnum.d.ts +4 -0
  33. package/bin/pomelo/enums/SexEnum.js +8 -0
  34. package/bin/pomelo/enums/TaxTypeEnum.d.ts +7 -0
  35. package/bin/pomelo/enums/TaxTypeEnum.js +11 -0
  36. package/bin/pomelo/enums/UserStatusEnum.d.ts +4 -0
  37. package/bin/pomelo/enums/UserStatusEnum.js +8 -0
  38. package/bin/pomelo/index.d.ts +7 -0
  39. package/bin/pomelo/index.js +25 -0
  40. package/bin/productCatalog/dtos/GetProductCatalogRequest.d.ts +3 -0
  41. package/bin/productCatalog/dtos/GetProductCatalogRequest.js +19 -0
  42. package/bin/stpSpei/enums/ActividadesProductivasEnum.d.ts +48 -0
  43. package/bin/stpSpei/enums/ActividadesProductivasEnum.js +52 -0
  44. package/bin/stpSpei/enums/EntidadesFederativasEnum.d.ts +34 -0
  45. package/bin/stpSpei/enums/EntidadesFederativasEnum.js +38 -0
  46. package/bin/stpSpei/enums/PaisesEnum.d.ts +276 -0
  47. package/bin/stpSpei/enums/PaisesEnum.js +280 -0
  48. package/bin/stpSpei/index.d.ts +3 -0
  49. package/bin/stpSpei/index.js +3 -0
  50. package/bin/tern/dtos/TernAddress.d.ts +8 -0
  51. package/bin/tern/dtos/TernAddress.js +40 -0
  52. package/bin/tern/dtos/TernCreateAccountRequest.d.ts +7 -0
  53. package/bin/tern/dtos/TernCreateAccountRequest.js +33 -0
  54. package/bin/tern/dtos/TernCreateAccountResponse.d.ts +5 -0
  55. package/bin/tern/dtos/TernCreateAccountResponse.js +25 -0
  56. package/bin/tern/dtos/TernCreateUserRequest.d.ts +15 -0
  57. package/bin/tern/dtos/TernCreateUserRequest.js +70 -0
  58. package/bin/tern/dtos/TernCreateUserResponse.d.ts +8 -0
  59. package/bin/tern/dtos/TernCreateUserResponse.js +37 -0
  60. package/bin/tern/dtos/TernGetAccountRequest.d.ts +5 -0
  61. package/bin/tern/dtos/TernGetAccountRequest.js +25 -0
  62. package/bin/tern/dtos/TernGetAccountResponse.d.ts +22 -0
  63. package/bin/tern/dtos/TernGetAccountResponse.js +87 -0
  64. package/bin/tern/dtos/TernGetUserRequest.d.ts +3 -0
  65. package/bin/tern/dtos/TernGetUserRequest.js +20 -0
  66. package/bin/tern/dtos/TernGetUserResponse.d.ts +24 -0
  67. package/bin/tern/dtos/TernGetUserResponse.js +96 -0
  68. package/bin/tern/enums/TernAccountStatusEnum.d.ts +4 -0
  69. package/bin/tern/enums/TernAccountStatusEnum.js +8 -0
  70. package/bin/tern/enums/TernAccountTypeEnum.d.ts +5 -0
  71. package/bin/tern/enums/TernAccountTypeEnum.js +9 -0
  72. package/bin/tern/index.d.ts +11 -0
  73. package/bin/tern/index.js +29 -0
  74. package/bin/transaction/TransactionCreateRequest.d.ts +2 -0
  75. package/bin/transaction/TransactionCreateRequest.js +6 -0
  76. package/bin/transaction/TransactionCreateResponse.d.ts +2 -0
  77. package/bin/transaction/TransactionCreateResponse.js +6 -0
  78. package/bin/transaction/dtos/Product.js +0 -1
  79. package/bin/transaction/dtos/TransactionCreateRequest.js +0 -1
  80. package/bin/transaction/dtos/TransactionSourceEnum.d.ts +5 -0
  81. package/bin/transaction/dtos/TransactionSourceEnum.js +9 -0
  82. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.d.ts +6 -0
  83. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.js +6 -0
  84. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.d.ts +4 -0
  85. package/bin/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.js +6 -0
  86. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.d.ts +6 -0
  87. package/bin/transactionProcessor/dtos/private/PrivateProcessorCardInfo.js +6 -0
  88. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.d.ts +7 -0
  89. package/bin/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.js +6 -0
  90. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.d.ts +8 -0
  91. package/bin/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.js +6 -0
  92. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.d.ts +16 -0
  93. package/bin/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.js +6 -0
  94. package/package.json +23 -23
  95. package/src/account/dtos/AccountCreateRequest.ts +79 -79
  96. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  97. package/src/account/dtos/AccountInfo.ts +39 -39
  98. package/src/account/dtos/AccountUpdateBalanceRequest.ts +6 -6
  99. package/src/account/dtos/AccountUpdateRequest.ts +36 -36
  100. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  101. package/src/account/dtos/BankAccountP2pTransferRequest.ts +7 -7
  102. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  103. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  104. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  105. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  106. package/src/account/dtos/ExchangeInfo.ts +8 -8
  107. package/src/account/dtos/ExecuteP2pOperationRequest.ts +7 -7
  108. package/src/account/dtos/ExecutePocketOperationRequest.ts +5 -5
  109. package/src/account/dtos/GetAccountBalanceResponse.ts +42 -42
  110. package/src/account/dtos/GetAccountResponse.ts +62 -62
  111. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  112. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  113. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  114. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  115. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  116. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  117. package/src/account/dtos/GetPocketBalanceResponse.ts +46 -46
  118. package/src/account/dtos/GetPocketResponse.ts +8 -8
  119. package/src/account/dtos/PocketBalanceItem.ts +17 -17
  120. package/src/account/dtos/PocketItem.ts +43 -43
  121. package/src/account/dtos/UpdateBalanceOperation.ts +10 -10
  122. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  123. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  124. package/src/account/entities/AccountEntityBase.ts +12 -12
  125. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  126. package/src/account/enums/AccountLevelEnum.ts +5 -5
  127. package/src/account/enums/BankAccountP2pTransferType.ts +5 -5
  128. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  129. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  130. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  131. package/src/account/index.ts +42 -42
  132. package/src/activity/dtos/ActivityMessageRequest.ts +24 -24
  133. package/src/activity/dtos/ActivityMessageResponse.ts +24 -24
  134. package/src/activity/dtos/ActivityQueueMessage.ts +9 -9
  135. package/src/activity/index.ts +8 -8
  136. package/src/address/dtos/AddressBase.ts +130 -130
  137. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  138. package/src/address/dtos/AddressResponse.ts +41 -41
  139. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  140. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  141. package/src/address/dtos/Geometry.ts +4 -4
  142. package/src/address/dtos/OfficeDetails.ts +30 -30
  143. package/src/address/dtos/OperationSchedule.ts +8 -8
  144. package/src/address/dtos/Place.ts +83 -83
  145. package/src/address/dtos/Shipping.ts +36 -36
  146. package/src/address/dtos/Timezone.ts +5 -5
  147. package/src/address/enums/AddressProvider.ts +10 -10
  148. package/src/address/enums/AddressStatus.ts +9 -9
  149. package/src/address/index.ts +16 -16
  150. package/src/app/enums/App.ts +10 -10
  151. package/src/app/index.ts +3 -3
  152. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  153. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  154. package/src/authentication/index.ts +3 -3
  155. package/src/bankAccount/dtos/ExternalAccountCurrency.ts +3 -3
  156. package/src/bankAccount/dtos/ExternalAccountType.ts +3 -3
  157. package/src/bankAccount/dtos/GetExternalBankAccountRequest.ts +11 -11
  158. package/src/bankAccount/dtos/GetExternalBankAccountResponse.ts +15 -15
  159. package/src/bankAccount/dtos/GetExternalBankResponse.ts +13 -13
  160. package/src/bankAccount/index.ts +4 -4
  161. package/src/bbvaRst/dtos/CreateRSTTransactionRequest.ts +14 -14
  162. package/src/bbvaRst/dtos/CreateRSTTransactionResponse.ts +9 -9
  163. package/src/bbvaRst/enums/RSTStatusEnum.ts +4 -4
  164. package/src/bbvaRst/index.ts +2 -2
  165. package/src/beneficiary/dtos/AccountBeneficiaryCreateRequest.ts +41 -41
  166. package/src/beneficiary/dtos/AccountBeneficiaryResponse.ts +23 -23
  167. package/src/beneficiary/dtos/AccountBeneficiaryUpdateRequest.ts +39 -39
  168. package/src/beneficiary/enums/AccountType.ts +6 -6
  169. package/src/beneficiary/index.ts +7 -7
  170. package/src/card/dtos/CardActivateRequest.ts +12 -12
  171. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  172. package/src/card/dtos/CardAdditionalResponse.ts +14 -14
  173. package/src/card/dtos/CardApplicationRequest.ts +27 -27
  174. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  175. package/src/card/dtos/CardCreateAdditionalRequest.ts +78 -78
  176. package/src/card/dtos/CardResponse.ts +34 -34
  177. package/src/card/dtos/CardSensitiveInformationResponse.ts +18 -18
  178. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  179. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  180. package/src/card/dtos/CardSummaryResponse.ts +10 -10
  181. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  182. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  183. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  184. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  185. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  186. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  187. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  188. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  189. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  190. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  191. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  192. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  193. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  194. package/src/card/enums/Brand.ts +7 -7
  195. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  196. package/src/card/enums/CardIssuing.ts +6 -6
  197. package/src/card/enums/CardType.ts +4 -4
  198. package/src/card/enums/CardUpdateKey.ts +4 -4
  199. package/src/card/enums/CreditOrDebit.ts +5 -5
  200. package/src/card/enums/DeliveryChannel.ts +7 -7
  201. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  202. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  203. package/src/card/enums/IssuanceType.ts +5 -5
  204. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  205. package/src/card/enums/OwnershipType.ts +3 -3
  206. package/src/card/enums/ShippingStatus.ts +8 -8
  207. package/src/card/enums/Status.ts +6 -6
  208. package/src/card/enums/UpdateKey.ts +5 -5
  209. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  210. package/src/card/index.ts +50 -50
  211. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  212. package/src/card/validations/IsPhoneNumberConstraint.ts +29 -29
  213. package/src/contactInfo/dtos/ContactInfoCreateRequest.ts +47 -47
  214. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +13 -13
  215. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +3 -3
  216. package/src/contactInfo/index.ts +2 -2
  217. package/src/contract/dtos/ContractCreateRequest.ts +29 -29
  218. package/src/contract/dtos/ContractCreateResponse.ts +2 -2
  219. package/src/contract/index.ts +4 -4
  220. package/src/country/enums/Country.ts +6 -6
  221. package/src/country/enums/CountryId.ts +6 -6
  222. package/src/country/index.ts +5 -5
  223. package/src/creditContract/dtos/CreditContractCreateRequest.ts +51 -51
  224. package/src/creditContract/enums/InstrumentEnum.ts +5 -5
  225. package/src/creditContract/index.ts +5 -5
  226. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  227. package/src/currency/index.ts +2 -2
  228. package/src/directory/dtos/DirectoryResponse.ts +19 -19
  229. package/src/directory/dtos/External.ts +6 -6
  230. package/src/directory/enums/Profile.ts +6 -6
  231. package/src/directory/enums/Scope.ts +7 -7
  232. package/src/directory/enums/Status.ts +8 -8
  233. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  234. package/src/directory/index.ts +7 -7
  235. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  236. package/src/eventBridge/index.ts +1 -1
  237. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  238. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  239. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  240. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  241. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  242. package/src/exchangeRate/index.ts +9 -9
  243. package/src/fraudPreventionEngine/dtos/CreateAccountLevelRequest.ts +9 -9
  244. package/src/fraudPreventionEngine/dtos/GetAccountLevelParams.ts +3 -3
  245. package/src/fraudPreventionEngine/dtos/GetAccountLevelResponse.ts +7 -7
  246. package/src/fraudPreventionEngine/enums/AccountLevelTenantEnum.ts +5 -5
  247. package/src/fraudPreventionEngine/index.ts +5 -5
  248. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  249. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  250. package/src/genericMessage/index.ts +1 -1
  251. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  252. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  253. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  254. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  255. package/src/group/dtos/GroupResponse.ts +17 -17
  256. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  257. package/src/group/enums/GroupAction.ts +8 -8
  258. package/src/group/enums/GroupStatus.ts +6 -6
  259. package/src/group/enums/RelationStatus.ts +8 -8
  260. package/src/group/enums/RelationType.ts +9 -9
  261. package/src/group/index.ts +18 -18
  262. package/src/header/TokenPayload.ts +18 -18
  263. package/src/header/index.ts +3 -3
  264. package/src/helpers/ValidationUtils.ts +32 -32
  265. package/src/helpers/constans/regex.ts +12 -12
  266. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  267. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  268. package/src/identity/dtos/PeopleResponse.ts +74 -74
  269. package/src/identity/dtos/PeopleUpdateRequest.ts +73 -73
  270. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  271. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  272. package/src/identity/enums/SexDocument.ts +6 -6
  273. package/src/identity/enums/TypeOfDocument.ts +5 -5
  274. package/src/identity/index.ts +12 -12
  275. package/src/index.ts +35 -35
  276. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  277. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  278. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  279. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  280. package/src/notificationMessages/index.ts +5 -5
  281. package/src/p2pContact/dtos/CreateP2pContactRequest.ts +8 -8
  282. package/src/productCatalog/dtos/CreateProductCatalogRequest.ts +14 -14
  283. package/src/productCatalog/dtos/GetProductCatalogResponse.ts +38 -38
  284. package/src/productCatalog/enums/ProductTaxFeeTypeEnum.ts +3 -3
  285. package/src/productCatalog/enums/ProductTypeEnum.ts +15 -15
  286. package/src/productCatalog/index.ts +4 -4
  287. package/src/provider/enums/Provider.ts +4 -4
  288. package/src/provider/index.ts +1 -1
  289. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  290. package/src/servicePayment/dtos/GetCatalogParams.ts +5 -5
  291. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  292. package/src/servicePayment/index.ts +1 -1
  293. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  294. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  295. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  296. package/src/sessionActivity/index.ts +2 -2
  297. package/src/stpSpei/dtos/PutStpOrderRequest.ts +13 -13
  298. package/src/stpSpei/dtos/SpeiWebhookMessage.ts +9 -9
  299. package/src/stpSpei/enums/ActividadesProductivasEnum.ts +48 -0
  300. package/src/stpSpei/enums/EntidadesFederativasEnum.ts +34 -0
  301. package/src/stpSpei/enums/PaisesEnum.ts +276 -0
  302. package/src/stpSpei/enums/WebhookMessageStatusEnum.ts +4 -4
  303. package/src/stpSpei/index.ts +7 -4
  304. package/src/transaction/dtos/Credit.ts +24 -24
  305. package/src/transaction/dtos/Debit.ts +20 -20
  306. package/src/transaction/dtos/Notional.ts +20 -20
  307. package/src/transaction/dtos/Product.ts +21 -22
  308. package/src/transaction/dtos/Total.ts +20 -20
  309. package/src/transaction/dtos/TransactionCreateRequest.ts +102 -103
  310. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  311. package/src/transaction/dtos/TransactionGetResponse.ts +17 -17
  312. package/src/transaction/enums/OperationEnum.ts +3 -3
  313. package/src/transaction/enums/TransactionSourceEnum.ts +4 -4
  314. package/src/transaction/enums/TransactionStatusEnum.ts +5 -5
  315. package/src/transaction/index.ts +9 -9
  316. package/src/transactionProcessor/dtos/AmountInfo.ts +6 -6
  317. package/src/transactionProcessor/dtos/AmountInfoItem.ts +3 -3
  318. package/src/transactionProcessor/dtos/AuthorizeCreditCardAdjustmentRequest.ts +19 -19
  319. package/src/transactionProcessor/dtos/AuthorizeCreditCardPurchaseRequest.ts +16 -16
  320. package/src/transactionProcessor/dtos/AuthorizeP2pTransactionRequest.ts +8 -8
  321. package/src/transactionProcessor/dtos/AuthorizePocketTransactionRequest.ts +8 -8
  322. package/src/transactionProcessor/dtos/AuthorizeRstTransactionRequest.ts +4 -4
  323. package/src/transactionProcessor/dtos/AuthorizeServicePaymentRequest.ts +7 -7
  324. package/src/transactionProcessor/dtos/AuthorizeSpeiBankTransferRequest.ts +6 -6
  325. package/src/transactionProcessor/dtos/CardInfo.ts +5 -5
  326. package/src/transactionProcessor/dtos/InstallmentsInfo.ts +6 -6
  327. package/src/transactionProcessor/dtos/MerchantInfo.ts +6 -6
  328. package/src/transactionProcessor/dtos/ProcessUpdateLevelRequest.ts +3 -3
  329. package/src/transactionProcessor/dtos/RSTTransactionStatusUpdate.ts +6 -6
  330. package/src/transactionProcessor/dtos/SpeiBankTransferStatusUpdate.ts +6 -6
  331. package/src/transactionProcessor/dtos/TransactionInfo.ts +7 -7
  332. package/src/transactionProcessor/dtos/TransactionProcessorQueueMessage.ts +3 -3
  333. package/src/transactionProcessor/enums/AsyncTxStatusEnum.ts +5 -5
  334. package/src/transactionProcessor/enums/TransactionProcessorCodesEnum.ts +15 -15
  335. package/src/transactionProcessor/index.ts +20 -20
  336. package/.idea/aws.xml +0 -11
  337. package/.idea/fiado-type-kit.iml +0 -12
  338. package/.idea/modules.xml +0 -8
  339. package/.idea/vcs.xml +0 -6
@@ -1,41 +1,41 @@
1
-
2
-
3
-
4
- import { IsOptional, IsString, Length, Matches } from 'class-validator';
5
-
6
- import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
7
- import { AddressBase } from './AddressBase';
8
-
9
- export class AddressResponse extends AddressBase {
10
-
11
- @IsString()
12
- @Matches(regexUuidV4,
13
- {
14
- message: 'id must be a valid UUID v4',
15
- })
16
- id: string
17
-
18
- @IsOptional()
19
- @IsString()
20
- @Matches(regexIso8601,
21
- {
22
- message: 'createDate must be a valid ISO 8601 date string',
23
- })
24
- createDate: string;
25
-
26
- @IsOptional()
27
- @IsString()
28
- @Matches(regexIso8601,
29
- {
30
- message: 'updateDate must be a valid ISO 8601 date string',
31
- })
32
- updateDate?: string;
33
-
34
- @IsOptional()
35
- @IsString()
36
- @Length(1, 100)
37
- updatedBy?: string;
38
- }
39
-
40
-
41
-
1
+
2
+
3
+
4
+ import { IsOptional, IsString, Length, Matches } from 'class-validator';
5
+
6
+ import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
7
+ import { AddressBase } from './AddressBase';
8
+
9
+ export class AddressResponse extends AddressBase {
10
+
11
+ @IsString()
12
+ @Matches(regexUuidV4,
13
+ {
14
+ message: 'id must be a valid UUID v4',
15
+ })
16
+ id: string
17
+
18
+ @IsOptional()
19
+ @IsString()
20
+ @Matches(regexIso8601,
21
+ {
22
+ message: 'createDate must be a valid ISO 8601 date string',
23
+ })
24
+ createDate: string;
25
+
26
+ @IsOptional()
27
+ @IsString()
28
+ @Matches(regexIso8601,
29
+ {
30
+ message: 'updateDate must be a valid ISO 8601 date string',
31
+ })
32
+ updateDate?: string;
33
+
34
+ @IsOptional()
35
+ @IsString()
36
+ @Length(1, 100)
37
+ updatedBy?: string;
38
+ }
39
+
40
+
41
+
@@ -1,12 +1,12 @@
1
- import { CountryId } from "../../country";
2
-
3
-
4
- export class AddressShippingCardRequest {
5
-
6
- addressId: string | null;
7
- addressServiceLocationId: string | null;
8
- provider: string | null;
9
- serviceType: string | null;
10
- countryId: CountryId;
11
- directoryId: string;
12
- };
1
+ import { CountryId } from "../../country";
2
+
3
+
4
+ export class AddressShippingCardRequest {
5
+
6
+ addressId: string | null;
7
+ addressServiceLocationId: string | null;
8
+ provider: string | null;
9
+ serviceType: string | null;
10
+ countryId: CountryId;
11
+ directoryId: string;
12
+ };
@@ -1,11 +1,11 @@
1
- import { AddressResponse } from "./AddressResponse";
2
- import { OfficeDetails } from "./OfficeDetails";
3
-
4
-
5
- export declare type AddressShippingCardResponse = {
6
- addresses:
7
- {
8
- address: AddressResponse,
9
- closeOffice: OfficeDetails
10
- }
11
- };
1
+ import { AddressResponse } from "./AddressResponse";
2
+ import { OfficeDetails } from "./OfficeDetails";
3
+
4
+
5
+ export declare type AddressShippingCardResponse = {
6
+ addresses:
7
+ {
8
+ address: AddressResponse,
9
+ closeOffice: OfficeDetails
10
+ }
11
+ };
@@ -1,5 +1,5 @@
1
-
2
-
3
- export type Geometry = {
4
- point: [number, number];
1
+
2
+
3
+ export type Geometry = {
4
+ point: [number, number];
5
5
  }
@@ -1,31 +1,31 @@
1
- import { OperationSchedule } from "./OperationSchedule"
2
-
3
-
4
- export type OfficeDetails = {
5
- code: string;
6
- name: string;
7
- ownerName: string;
8
- address: AddressDetail;
9
- latitude: string;
10
- longitude: string;
11
- distance: number;
12
- phoneNumber: string;
13
- operationSchedule: OperationSchedule[];
14
- };
15
-
16
- export type AddressDetail = {
17
- fullAddress: string;
18
- address1: string;
19
- address2: string;
20
- city: string;
21
- neighorhood: string;
22
- state: string;
23
- zipCode: string;
24
- reference: string;
25
- betweenRoadName1: string;
26
- betweenRoadName2: string;
27
- externalNumber: string;
28
- internalNumber: string;
29
- roadTypeCode: string;
30
- roadTypeAbbName: string;
1
+ import { OperationSchedule } from "./OperationSchedule"
2
+
3
+
4
+ export type OfficeDetails = {
5
+ code: string;
6
+ name: string;
7
+ ownerName: string;
8
+ address: AddressDetail;
9
+ latitude: string;
10
+ longitude: string;
11
+ distance: number;
12
+ phoneNumber: string;
13
+ operationSchedule: OperationSchedule[];
14
+ };
15
+
16
+ export type AddressDetail = {
17
+ fullAddress: string;
18
+ address1: string;
19
+ address2: string;
20
+ city: string;
21
+ neighorhood: string;
22
+ state: string;
23
+ zipCode: string;
24
+ reference: string;
25
+ betweenRoadName1: string;
26
+ betweenRoadName2: string;
27
+ externalNumber: string;
28
+ internalNumber: string;
29
+ roadTypeCode: string;
30
+ roadTypeAbbName: string;
31
31
  };
@@ -1,9 +1,9 @@
1
-
2
-
3
- export type OperationSchedule = {
4
- Weekday: string
5
- StartHourDay: string
6
- FinishHourDay: string
7
- StartHourLunchDay: string
8
- FinishHourLunchDay: string
1
+
2
+
3
+ export type OperationSchedule = {
4
+ Weekday: string
5
+ StartHourDay: string
6
+ FinishHourDay: string
7
+ StartHourLunchDay: string
8
+ FinishHourLunchDay: string
9
9
  }
@@ -1,84 +1,84 @@
1
- import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
2
- import { Geometry } from "./Geometry";
3
- import { Timezone } from "./Timezone";
4
- import { Country } from '../../country/enums/Country';
5
-
6
- export class Place {
7
- @ValidateNested()
8
- geometry: Geometry;
9
-
10
- @IsOptional()
11
- @IsString()
12
- addressNumber?: string;
13
-
14
- @IsOptional()
15
- @IsArray()
16
- @IsString({ each: true })
17
- categories?: string[];
18
-
19
- @IsOptional()
20
- @IsEnum(Country)
21
- country?: string;
22
-
23
- @IsBoolean()
24
- interpolated: boolean;
25
-
26
- @IsOptional()
27
- @IsString()
28
- @Length(1, 300)
29
- label?: string;
30
-
31
- @IsOptional()
32
- @IsString()
33
- @Length(1, 60)
34
- municipality?: string;
35
-
36
- @IsOptional()
37
- @IsString()
38
- @Length(2, 60)
39
- neighborhood?: string;
40
-
41
- @IsOptional()
42
- @IsString()
43
- @Length(5, 10)
44
- postalCode?: string;
45
-
46
- @IsOptional()
47
- @IsString()
48
- @Length(5, 10)
49
- region?: string;
50
-
51
- @IsOptional()
52
- @IsString()
53
- @Length(1, 100)
54
- street?: string;
55
-
56
- @IsOptional()
57
- @IsString()
58
- @Length(2, 60)
59
- subMunicipality?: string;
60
-
61
- @IsOptional()
62
- @IsString()
63
- @Length(2, 60)
64
- subRegion?: string;
65
-
66
- @IsOptional()
67
- @IsArray()
68
- @IsString({ each: true })
69
- supplementalCategories?: string[];
70
-
71
- @IsOptional()
72
- @ValidateNested()
73
- timezone?: Timezone;
74
-
75
- @IsOptional()
76
- @IsString()
77
- @Length(1, 10)
78
- unitNumber?: string;
79
-
80
- @IsOptional()
81
- @IsString()
82
- @Length(1, 10)
83
- unitType?: string;
1
+ import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
2
+ import { Geometry } from "./Geometry";
3
+ import { Timezone } from "./Timezone";
4
+ import { Country } from '../../country/enums/Country';
5
+
6
+ export class Place {
7
+ @ValidateNested()
8
+ geometry: Geometry;
9
+
10
+ @IsOptional()
11
+ @IsString()
12
+ addressNumber?: string;
13
+
14
+ @IsOptional()
15
+ @IsArray()
16
+ @IsString({ each: true })
17
+ categories?: string[];
18
+
19
+ @IsOptional()
20
+ @IsEnum(Country)
21
+ country?: string;
22
+
23
+ @IsBoolean()
24
+ interpolated: boolean;
25
+
26
+ @IsOptional()
27
+ @IsString()
28
+ @Length(1, 300)
29
+ label?: string;
30
+
31
+ @IsOptional()
32
+ @IsString()
33
+ @Length(1, 60)
34
+ municipality?: string;
35
+
36
+ @IsOptional()
37
+ @IsString()
38
+ @Length(2, 60)
39
+ neighborhood?: string;
40
+
41
+ @IsOptional()
42
+ @IsString()
43
+ @Length(5, 10)
44
+ postalCode?: string;
45
+
46
+ @IsOptional()
47
+ @IsString()
48
+ @Length(5, 10)
49
+ region?: string;
50
+
51
+ @IsOptional()
52
+ @IsString()
53
+ @Length(1, 100)
54
+ street?: string;
55
+
56
+ @IsOptional()
57
+ @IsString()
58
+ @Length(2, 60)
59
+ subMunicipality?: string;
60
+
61
+ @IsOptional()
62
+ @IsString()
63
+ @Length(2, 60)
64
+ subRegion?: string;
65
+
66
+ @IsOptional()
67
+ @IsArray()
68
+ @IsString({ each: true })
69
+ supplementalCategories?: string[];
70
+
71
+ @IsOptional()
72
+ @ValidateNested()
73
+ timezone?: Timezone;
74
+
75
+ @IsOptional()
76
+ @IsString()
77
+ @Length(1, 10)
78
+ unitNumber?: string;
79
+
80
+ @IsOptional()
81
+ @IsString()
82
+ @Length(1, 10)
83
+ unitType?: string;
84
84
  }
@@ -1,36 +1,36 @@
1
- import { IsString, Length, IsOptional } from 'class-validator';
2
- import { CountryId } from '../../country/enums/CountryId';
3
-
4
- export class Shipping {
5
- @IsString()
6
- @Length(2, 60)
7
- municipality: string;
8
-
9
- @IsString()
10
- @Length(2, 60)
11
- neighborhood: string;
12
-
13
- @IsString()
14
- @Length(5, 10)
15
- postalCode: string;
16
-
17
- @IsString()
18
- @Length(2, 100)
19
- street: string;
20
-
21
- @IsString()
22
- @Length(2, 60)
23
- subRegion: string;
24
-
25
- @IsString()
26
- @Length(1, 10)
27
- addressNumber: string;
28
-
29
- @IsOptional()
30
- @IsString()
31
- @Length(1, 200)
32
- internalNumber?: string;
33
-
34
- @IsString()
35
- countryId: CountryId;
36
- }
1
+ import { IsString, Length, IsOptional } from 'class-validator';
2
+ import { CountryId } from '../../country/enums/CountryId';
3
+
4
+ export class Shipping {
5
+ @IsString()
6
+ @Length(2, 60)
7
+ municipality: string;
8
+
9
+ @IsString()
10
+ @Length(2, 60)
11
+ neighborhood: string;
12
+
13
+ @IsString()
14
+ @Length(5, 10)
15
+ postalCode: string;
16
+
17
+ @IsString()
18
+ @Length(2, 100)
19
+ street: string;
20
+
21
+ @IsString()
22
+ @Length(2, 60)
23
+ subRegion: string;
24
+
25
+ @IsString()
26
+ @Length(1, 10)
27
+ addressNumber: string;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ @Length(1, 200)
32
+ internalNumber?: string;
33
+
34
+ @IsString()
35
+ countryId: CountryId;
36
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export type Timezone = {
4
- name: string;
5
- offset: string;
1
+
2
+
3
+ export type Timezone = {
4
+ name: string;
5
+ offset: string;
6
6
  }
@@ -1,10 +1,10 @@
1
-
2
- /**
3
- * AddressProvider enum
4
- * @description AddressProvider enum is used to define the address provider
5
- * @enum {string} AddressProvider
6
- */
7
- export enum AddressProvider {
8
- AWS = "AWS",
9
- MANUAL = "MANUAL"
10
- }
1
+
2
+ /**
3
+ * AddressProvider enum
4
+ * @description AddressProvider enum is used to define the address provider
5
+ * @enum {string} AddressProvider
6
+ */
7
+ export enum AddressProvider {
8
+ AWS = "AWS",
9
+ MANUAL = "MANUAL"
10
+ }
@@ -1,10 +1,10 @@
1
-
2
- /**
3
- * AddressProvider Status
4
- * @description AddressProvider Status is used to define the address provider status
5
- * @enum {string} AddressStatus
6
- */
7
- export enum AddressStatus {
8
- VISIBLE = "VISIBLE",
9
- NOT_VISIBLE = "NOT_VISIBLE"
1
+
2
+ /**
3
+ * AddressProvider Status
4
+ * @description AddressProvider Status is used to define the address provider status
5
+ * @enum {string} AddressStatus
6
+ */
7
+ export enum AddressStatus {
8
+ VISIBLE = "VISIBLE",
9
+ NOT_VISIBLE = "NOT_VISIBLE"
10
10
  }
@@ -1,16 +1,16 @@
1
- //dtos
2
- export * from './dtos/Shipping';
3
- export * from './dtos/AddressCreateRequest';
4
- export * from './dtos/AddressResponse';
5
- export * from './dtos/Geometry';
6
- export * from './dtos/Place';
7
- export * from './dtos/Timezone';
8
- export * from './dtos/OfficeDetails'
9
- export * from './dtos/OperationSchedule'
10
- export * from './dtos/AddressShippingCardResponse'
11
- export * from './dtos/AddressShippingCardRequest'
12
-
13
- //enums
14
- export * from './enums/AddressStatus';
15
- export * from './enums/AddressProvider';
16
-
1
+ //dtos
2
+ export * from './dtos/Shipping';
3
+ export * from './dtos/AddressCreateRequest';
4
+ export * from './dtos/AddressResponse';
5
+ export * from './dtos/Geometry';
6
+ export * from './dtos/Place';
7
+ export * from './dtos/Timezone';
8
+ export * from './dtos/OfficeDetails'
9
+ export * from './dtos/OperationSchedule'
10
+ export * from './dtos/AddressShippingCardResponse'
11
+ export * from './dtos/AddressShippingCardRequest'
12
+
13
+ //enums
14
+ export * from './enums/AddressStatus';
15
+ export * from './enums/AddressProvider';
16
+
@@ -1,11 +1,11 @@
1
-
2
-
3
- export enum App {
4
- USER = "USER",
5
- MERCHANT = "MERCHANT",
6
- BACKOFFICE = "BACKOFFICE",
7
- AGENT = "AGENT",
8
- USER_APP = "APP",
9
- USER_WEB = "WEB",
10
- HYBRID = "HYBRID"
1
+
2
+
3
+ export enum App {
4
+ USER = "USER",
5
+ MERCHANT = "MERCHANT",
6
+ BACKOFFICE = "BACKOFFICE",
7
+ AGENT = "AGENT",
8
+ USER_APP = "APP",
9
+ USER_WEB = "WEB",
10
+ HYBRID = "HYBRID"
11
11
  }
package/src/app/index.ts CHANGED
@@ -1,4 +1,4 @@
1
-
2
-
3
- //enums
1
+
2
+
3
+ //enums
4
4
  export * from './enums/App';
@@ -1,33 +1,33 @@
1
- import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
2
- import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
3
- import { regexUuidV4 } from "../../helpers/constans/regex";
4
-
5
-
6
-
7
- export class SignUpAdditionalRequest {
8
-
9
- @IsNotEmpty()
10
- @IsString()
11
- @Length(3, 70)
12
- name: string;
13
-
14
- @IsNotEmpty()
15
- @IsString()
16
- @IsPhoneNumberFiado()
17
- phoneNumber: string;
18
-
19
- @IsBoolean()
20
- mexCreditAdditionalWish: boolean;
21
-
22
- @IsString()
23
- @Matches(regexUuidV4,
24
- {
25
- message: 'ownerDirectoryId must be a valid UUID v4',
26
- })
27
- ownerDirectoryId?: string;
28
-
29
- @IsOptional()
30
- @IsString()
31
- ownerRelation: string
32
-
1
+ import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
2
+ import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
3
+ import { regexUuidV4 } from "../../helpers/constans/regex";
4
+
5
+
6
+
7
+ export class SignUpAdditionalRequest {
8
+
9
+ @IsNotEmpty()
10
+ @IsString()
11
+ @Length(3, 70)
12
+ name: string;
13
+
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ @IsPhoneNumberFiado()
17
+ phoneNumber: string;
18
+
19
+ @IsBoolean()
20
+ mexCreditAdditionalWish: boolean;
21
+
22
+ @IsString()
23
+ @Matches(regexUuidV4,
24
+ {
25
+ message: 'ownerDirectoryId must be a valid UUID v4',
26
+ })
27
+ ownerDirectoryId?: string;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ ownerRelation: string
32
+
33
33
  }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export class SignUpAdditionalResponse {
4
- direcrtoryId: string;
5
- peopleId: string;
1
+
2
+
3
+ export class SignUpAdditionalResponse {
4
+ direcrtoryId: string;
5
+ peopleId: string;
6
6
  }
@@ -1,4 +1,4 @@
1
-
2
- //dtos
3
- export * from './dtos/SignUpAdditionalRequest';
1
+
2
+ //dtos
3
+ export * from './dtos/SignUpAdditionalRequest';
4
4
  export * from './dtos/SignUpAdditionalResponse';