@fiado/api-invoker 1.3.82 → 1.3.84

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 (341) hide show
  1. package/package.json +1 -1
  2. package/src/centralPayments/CentralPaymentsConnectorApi.ts +1 -1
  3. package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +1 -1
  4. package/src/directory/DirectoryApi.ts +24 -3
  5. package/src/transaction/api/interfaces/ITransactionApi.ts +35 -16
  6. package/bin/account-beneficiary/AccountBeneficiaryApi.d.ts +0 -10
  7. package/bin/account-beneficiary/AccountBeneficiaryApi.js +0 -32
  8. package/bin/account-beneficiary/index.d.ts +0 -2
  9. package/bin/account-beneficiary/index.js +0 -18
  10. package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.d.ts +0 -5
  11. package/bin/account-beneficiary/interfaces/IAccountBeneficiaryApi.js +0 -2
  12. package/bin/account-fiadoinc/AccountFiadoIncApi.d.ts +0 -32
  13. package/bin/account-fiadoinc/AccountFiadoIncApi.js +0 -84
  14. package/bin/account-fiadoinc/index.d.ts +0 -4
  15. package/bin/account-fiadoinc/index.js +0 -20
  16. package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +0 -18
  17. package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.js +0 -2
  18. package/bin/account-fiadoinc/queue/Publisher.d.ts +0 -9
  19. package/bin/account-fiadoinc/queue/Publisher.js +0 -34
  20. package/bin/account-fiadoinc/queue/TransactionPublisher.d.ts +0 -9
  21. package/bin/account-fiadoinc/queue/TransactionPublisher.js +0 -36
  22. package/bin/account-fiadoinc/queue/interfaces/IPublisher.d.ts +0 -7
  23. package/bin/account-fiadoinc/queue/interfaces/IPublisher.js +0 -2
  24. package/bin/account-fiadoinc/queue/interfaces/ITransactionPublisher.d.ts +0 -7
  25. package/bin/account-fiadoinc/queue/interfaces/ITransactionPublisher.js +0 -2
  26. package/bin/account-fiadosa/AccountFiadoSAApi.d.ts +0 -15
  27. package/bin/account-fiadosa/AccountFiadoSAApi.js +0 -47
  28. package/bin/account-fiadosa/index.d.ts +0 -2
  29. package/bin/account-fiadosa/index.js +0 -18
  30. package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.d.ts +0 -10
  31. package/bin/account-fiadosa/interfaces/IAccountFiadoSAApi.js +0 -2
  32. package/bin/account-pagoconfiado/AccountPagoConfiadoApi.d.ts +0 -17
  33. package/bin/account-pagoconfiado/AccountPagoConfiadoApi.js +0 -55
  34. package/bin/account-pagoconfiado/index.d.ts +0 -2
  35. package/bin/account-pagoconfiado/index.js +0 -18
  36. package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.d.ts +0 -12
  37. package/bin/account-pagoconfiado/interfaces/IAccountPagoConfiadoApi.js +0 -2
  38. package/bin/activity/ActivityApi.d.ts +0 -17
  39. package/bin/activity/ActivityApi.js +0 -72
  40. package/bin/activity/index.d.ts +0 -2
  41. package/bin/activity/index.js +0 -18
  42. package/bin/activity/interfaces/IActivityApi.d.ts +0 -39
  43. package/bin/activity/interfaces/IActivityApi.js +0 -2
  44. package/bin/activity-business/ActivityApi.d.ts +0 -12
  45. package/bin/activity-business/ActivityApi.js +0 -49
  46. package/bin/activity-business/index.d.ts +0 -4
  47. package/bin/activity-business/index.js +0 -20
  48. package/bin/activity-business/interfaces/IActivityApi.d.ts +0 -7
  49. package/bin/activity-business/interfaces/IActivityApi.js +0 -2
  50. package/bin/activity-business/queue/ActivityPublisher.d.ts +0 -6
  51. package/bin/activity-business/queue/ActivityPublisher.js +0 -36
  52. package/bin/activity-business/queue/IActivityPublisher.d.ts +0 -4
  53. package/bin/activity-business/queue/IActivityPublisher.js +0 -2
  54. package/bin/address/AddressApi.d.ts +0 -13
  55. package/bin/address/AddressApi.js +0 -55
  56. package/bin/address/index.d.ts +0 -2
  57. package/bin/address/index.js +0 -18
  58. package/bin/address/interfaces/IAddressApi.d.ts +0 -26
  59. package/bin/address/interfaces/IAddressApi.js +0 -2
  60. package/bin/appselectondata/AppSelectionDataApi.d.ts +0 -12
  61. package/bin/appselectondata/AppSelectionDataApi.js +0 -47
  62. package/bin/appselectondata/index.d.ts +0 -2
  63. package/bin/appselectondata/index.js +0 -18
  64. package/bin/appselectondata/interfaces/IAppSelectionDataApi.d.ts +0 -18
  65. package/bin/appselectondata/interfaces/IAppSelectionDataApi.js +0 -2
  66. package/bin/authentication/AuthenticationApi.d.ts +0 -8
  67. package/bin/authentication/AuthenticationApi.js +0 -32
  68. package/bin/authentication/index.d.ts +0 -2
  69. package/bin/authentication/index.js +0 -18
  70. package/bin/authentication/interfaces/IAuthenticationApi.d.ts +0 -4
  71. package/bin/authentication/interfaces/IAuthenticationApi.js +0 -2
  72. package/bin/bankAccount/BankAccountApi.d.ts +0 -13
  73. package/bin/bankAccount/BankAccountApi.js +0 -43
  74. package/bin/bankAccount/index.d.ts +0 -2
  75. package/bin/bankAccount/index.js +0 -18
  76. package/bin/bankAccount/interfaces/IBankAccountApi.d.ts +0 -5
  77. package/bin/bankAccount/interfaces/IBankAccountApi.js +0 -2
  78. package/bin/bbvaRst/api/BBVARstApi.d.ts +0 -9
  79. package/bin/bbvaRst/api/BBVARstApi.js +0 -32
  80. package/bin/bbvaRst/api/interfaces/IBBVARstApi.d.ts +0 -4
  81. package/bin/bbvaRst/api/interfaces/IBBVARstApi.js +0 -2
  82. package/bin/bbvaRst/index.d.ts +0 -2
  83. package/bin/bbvaRst/index.js +0 -18
  84. package/bin/blacklist/BlackListApi.d.ts +0 -12
  85. package/bin/blacklist/BlackListApi.js +0 -37
  86. package/bin/blacklist/index.d.ts +0 -2
  87. package/bin/blacklist/index.js +0 -18
  88. package/bin/blacklist/interfaces/IBlackListApi.d.ts +0 -17
  89. package/bin/blacklist/interfaces/IBlackListApi.js +0 -2
  90. package/bin/card/CardApi.d.ts +0 -21
  91. package/bin/card/CardApi.js +0 -69
  92. package/bin/card/index.d.ts +0 -2
  93. package/bin/card/index.js +0 -18
  94. package/bin/card/interfaces/ICardApi.d.ts +0 -15
  95. package/bin/card/interfaces/ICardApi.js +0 -2
  96. package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +0 -67
  97. package/bin/centralPayments/CentralPaymentsConnectorApi.js +0 -223
  98. package/bin/centralPayments/index.d.ts +0 -2
  99. package/bin/centralPayments/index.js +0 -18
  100. package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +0 -57
  101. package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.js +0 -2
  102. package/bin/cnbv-business/CnbvApi.d.ts +0 -8
  103. package/bin/cnbv-business/CnbvApi.js +0 -31
  104. package/bin/cnbv-business/index.d.ts +0 -2
  105. package/bin/cnbv-business/index.js +0 -18
  106. package/bin/cnbv-business/interfaces/ICnbvApi.d.ts +0 -3
  107. package/bin/cnbv-business/interfaces/ICnbvApi.js +0 -2
  108. package/bin/cognitoConnector/CognitoConnectorApi.d.ts +0 -16
  109. package/bin/cognitoConnector/CognitoConnectorApi.js +0 -89
  110. package/bin/cognitoConnector/CognitoConnectorV2.d.ts +0 -18
  111. package/bin/cognitoConnector/CognitoConnectorV2.js +0 -74
  112. package/bin/cognitoConnector/index.d.ts +0 -4
  113. package/bin/cognitoConnector/index.js +0 -20
  114. package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.d.ts +0 -12
  115. package/bin/cognitoConnector/interfaces/ICognitoConnectorApi.js +0 -2
  116. package/bin/cognitoConnector/interfaces/ICognitoV2Api.d.ts +0 -46
  117. package/bin/cognitoConnector/interfaces/ICognitoV2Api.js +0 -2
  118. package/bin/collector/CollectorApi.d.ts +0 -17
  119. package/bin/collector/CollectorApi.js +0 -64
  120. package/bin/collector/index.d.ts +0 -2
  121. package/bin/collector/index.js +0 -18
  122. package/bin/collector/interfaces/ICollectorApi.d.ts +0 -22
  123. package/bin/collector/interfaces/ICollectorApi.js +0 -2
  124. package/bin/contactInformation/ContactInformationApi.d.ts +0 -9
  125. package/bin/contactInformation/ContactInformationApi.js +0 -31
  126. package/bin/contactInformation/index.d.ts +0 -2
  127. package/bin/contactInformation/index.js +0 -18
  128. package/bin/contactInformation/interface/IContactInformationApi.d.ts +0 -4
  129. package/bin/contactInformation/interface/IContactInformationApi.js +0 -2
  130. package/bin/container.config.d.ts +0 -2
  131. package/bin/container.config.js +0 -121
  132. package/bin/contract-generator/ContractGeneratorApi.d.ts +0 -9
  133. package/bin/contract-generator/ContractGeneratorApi.js +0 -37
  134. package/bin/contract-generator/index.d.ts +0 -2
  135. package/bin/contract-generator/index.js +0 -18
  136. package/bin/contract-generator/interfaces/IContractGeneratorApi.d.ts +0 -14
  137. package/bin/contract-generator/interfaces/IContractGeneratorApi.js +0 -2
  138. package/bin/device/DeviceApi.d.ts +0 -14
  139. package/bin/device/DeviceApi.js +0 -45
  140. package/bin/device/index.d.ts +0 -2
  141. package/bin/device/index.js +0 -18
  142. package/bin/device/interfaces/IDeviceApi.d.ts +0 -30
  143. package/bin/device/interfaces/IDeviceApi.js +0 -2
  144. package/bin/directories/DirectoriesApi.d.ts +0 -20
  145. package/bin/directories/DirectoriesApi.js +0 -61
  146. package/bin/directories/index.d.ts +0 -2
  147. package/bin/directories/index.js +0 -18
  148. package/bin/directories/interfaces/IDirectoriesApi.d.ts +0 -21
  149. package/bin/directories/interfaces/IDirectoriesApi.js +0 -2
  150. package/bin/directory/DirectoryApi.d.ts +0 -21
  151. package/bin/directory/DirectoryApi.js +0 -123
  152. package/bin/directory/index.d.ts +0 -2
  153. package/bin/directory/index.js +0 -18
  154. package/bin/directory/interfaces/IDirectoryApi.d.ts +0 -55
  155. package/bin/directory/interfaces/IDirectoryApi.js +0 -2
  156. package/bin/directorySetting/DirectorySettingApi.d.ts +0 -31
  157. package/bin/directorySetting/DirectorySettingApi.js +0 -56
  158. package/bin/directorySetting/index.d.ts +0 -2
  159. package/bin/directorySetting/index.js +0 -18
  160. package/bin/directorySetting/interfaces/IDirectorySettingApi.d.ts +0 -42
  161. package/bin/directorySetting/interfaces/IDirectorySettingApi.js +0 -2
  162. package/bin/disputes/DisputesApi.d.ts +0 -24
  163. package/bin/disputes/DisputesApi.js +0 -61
  164. package/bin/disputes/index.d.ts +0 -2
  165. package/bin/disputes/index.js +0 -18
  166. package/bin/disputes/interfaces/IDisputesApi.d.ts +0 -48
  167. package/bin/disputes/interfaces/IDisputesApi.js +0 -2
  168. package/bin/document-image-processor/DocumentImageProcessorApi.d.ts +0 -11
  169. package/bin/document-image-processor/DocumentImageProcessorApi.js +0 -36
  170. package/bin/document-image-processor/index.d.ts +0 -2
  171. package/bin/document-image-processor/index.js +0 -18
  172. package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.d.ts +0 -6
  173. package/bin/document-image-processor/interfaces/IDocumentImageProcessorApi.js +0 -2
  174. package/bin/estafeta/EstafetaApi.d.ts +0 -0
  175. package/bin/estafeta/EstafetaApi.js +0 -0
  176. package/bin/estafeta/api/EstafetaApi.d.ts +0 -26
  177. package/bin/estafeta/api/EstafetaApi.js +0 -71
  178. package/bin/estafeta/api/interfaces/IEstafetaApi.d.ts +0 -20
  179. package/bin/estafeta/api/interfaces/IEstafetaApi.js +0 -2
  180. package/bin/estafeta/index.d.ts +0 -2
  181. package/bin/estafeta/index.js +0 -18
  182. package/bin/exchangeRates/ExchangeRatesApi.d.ts +0 -11
  183. package/bin/exchangeRates/ExchangeRatesApi.js +0 -39
  184. package/bin/exchangeRates/index.d.ts +0 -2
  185. package/bin/exchangeRates/index.js +0 -18
  186. package/bin/exchangeRates/interfaces/IExchangeRatesApi.d.ts +0 -6
  187. package/bin/exchangeRates/interfaces/IExchangeRatesApi.js +0 -2
  188. package/bin/fiadoMessages/api/FiadoMessagesApi.d.ts +0 -8
  189. package/bin/fiadoMessages/api/FiadoMessagesApi.js +0 -37
  190. package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.d.ts +0 -3
  191. package/bin/fiadoMessages/api/interfaces/IFiadoMessagesApi.js +0 -2
  192. package/bin/fiadoMessages/index.d.ts +0 -2
  193. package/bin/fiadoMessages/index.js +0 -18
  194. package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.d.ts +0 -11
  195. package/bin/fraudPreventionEngine/api/FraudPreventionEngineApi.js +0 -35
  196. package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.d.ts +0 -6
  197. package/bin/fraudPreventionEngine/api/interfaces/IFraudPreventionEngineApi.js +0 -2
  198. package/bin/fraudPreventionEngine/index.d.ts +0 -2
  199. package/bin/fraudPreventionEngine/index.js +0 -18
  200. package/bin/group/GroupApi.d.ts +0 -19
  201. package/bin/group/GroupApi.js +0 -70
  202. package/bin/group/index.d.ts +0 -2
  203. package/bin/group/index.js +0 -18
  204. package/bin/group/interfaces/IGroupApi.d.ts +0 -28
  205. package/bin/group/interfaces/IGroupApi.js +0 -2
  206. package/bin/identity/IdentityApi.d.ts +0 -15
  207. package/bin/identity/IdentityApi.js +0 -85
  208. package/bin/identity/index.d.ts +0 -2
  209. package/bin/identity/index.js +0 -18
  210. package/bin/identity/interfaces/IIdentityApi.d.ts +0 -33
  211. package/bin/identity/interfaces/IIdentityApi.js +0 -2
  212. package/bin/index.d.ts +0 -49
  213. package/bin/index.js +0 -65
  214. package/bin/legalDocument/api/LegalDocumentApi.d.ts +0 -8
  215. package/bin/legalDocument/api/LegalDocumentApi.js +0 -34
  216. package/bin/legalDocument/api/interfaces/ILegalDocumentApi.d.ts +0 -3
  217. package/bin/legalDocument/api/interfaces/ILegalDocumentApi.js +0 -2
  218. package/bin/legalDocument/index.d.ts +0 -2
  219. package/bin/legalDocument/index.js +0 -18
  220. package/bin/notificationMessages/index.d.ts +0 -2
  221. package/bin/notificationMessages/index.js +0 -18
  222. package/bin/notificationMessages/queue/NotificationMessagePublisher.d.ts +0 -12
  223. package/bin/notificationMessages/queue/NotificationMessagePublisher.js +0 -47
  224. package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.d.ts +0 -6
  225. package/bin/notificationMessages/queue/interfaces/INotificationMessagesPublisher.js +0 -2
  226. package/bin/observations/ObservationsApi.d.ts +0 -10
  227. package/bin/observations/ObservationsApi.js +0 -39
  228. package/bin/observations/index.d.ts +0 -2
  229. package/bin/observations/index.js +0 -18
  230. package/bin/observations/interfaces/IObservationsApi.d.ts +0 -8
  231. package/bin/observations/interfaces/IObservationsApi.js +0 -2
  232. package/bin/order-collector-business/OrderCollectorApi.d.ts +0 -9
  233. package/bin/order-collector-business/OrderCollectorApi.js +0 -37
  234. package/bin/order-collector-business/index.d.ts +0 -2
  235. package/bin/order-collector-business/index.js +0 -18
  236. package/bin/order-collector-business/interfaces/IOrderCollectorApi.d.ts +0 -7
  237. package/bin/order-collector-business/interfaces/IOrderCollectorApi.js +0 -2
  238. package/bin/p2pContact/api/P2pContactApi.d.ts +0 -9
  239. package/bin/p2pContact/api/P2pContactApi.js +0 -34
  240. package/bin/p2pContact/api/interfaces/IP2pContactApi.d.ts +0 -4
  241. package/bin/p2pContact/api/interfaces/IP2pContactApi.js +0 -2
  242. package/bin/p2pContact/index.d.ts +0 -2
  243. package/bin/p2pContact/index.js +0 -18
  244. package/bin/pomelo/api/PomeloApi.d.ts +0 -23
  245. package/bin/pomelo/api/PomeloApi.js +0 -86
  246. package/bin/pomelo/api/interfaces/IPomeloApi.d.ts +0 -17
  247. package/bin/pomelo/api/interfaces/IPomeloApi.js +0 -2
  248. package/bin/pomelo/index.d.ts +0 -2
  249. package/bin/pomelo/index.js +0 -18
  250. package/bin/pomeloProcessor/api/PomeloProcessorApi.d.ts +0 -8
  251. package/bin/pomeloProcessor/api/PomeloProcessorApi.js +0 -32
  252. package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.d.ts +0 -3
  253. package/bin/pomeloProcessor/api/interfaces/IPomeloProcessorApi.js +0 -2
  254. package/bin/pomeloProcessor/index.d.ts +0 -2
  255. package/bin/pomeloProcessor/index.js +0 -18
  256. package/bin/pricelist-business/PriceListApi.d.ts +0 -15
  257. package/bin/pricelist-business/PriceListApi.js +0 -55
  258. package/bin/pricelist-business/index.d.ts +0 -2
  259. package/bin/pricelist-business/index.js +0 -18
  260. package/bin/pricelist-business/interfaces/IPriceListApi.d.ts +0 -18
  261. package/bin/pricelist-business/interfaces/IPriceListApi.js +0 -2
  262. package/bin/product-catalog/ProductCatalogApi.d.ts +0 -10
  263. package/bin/product-catalog/ProductCatalogApi.js +0 -31
  264. package/bin/product-catalog/index.d.ts +0 -2
  265. package/bin/product-catalog/index.js +0 -18
  266. package/bin/product-catalog/interfaces/IProductCatalogApi.d.ts +0 -5
  267. package/bin/product-catalog/interfaces/IProductCatalogApi.js +0 -2
  268. package/bin/riskProfile/api/RiskProfileApi.d.ts +0 -15
  269. package/bin/riskProfile/api/RiskProfileApi.js +0 -47
  270. package/bin/riskProfile/api/TransactionAlertApi.d.ts +0 -13
  271. package/bin/riskProfile/api/TransactionAlertApi.js +0 -31
  272. package/bin/riskProfile/api/interfaces/IRiskProfileApi.d.ts +0 -10
  273. package/bin/riskProfile/api/interfaces/IRiskProfileApi.js +0 -2
  274. package/bin/riskProfile/api/interfaces/ITransactionAlertApi.d.ts +0 -8
  275. package/bin/riskProfile/api/interfaces/ITransactionAlertApi.js +0 -2
  276. package/bin/riskProfile/index.d.ts +0 -6
  277. package/bin/riskProfile/index.js +0 -22
  278. package/bin/riskProfile/queue/TransactionAlarmPublisher.d.ts +0 -6
  279. package/bin/riskProfile/queue/TransactionAlarmPublisher.js +0 -36
  280. package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.d.ts +0 -4
  281. package/bin/riskProfile/queue/interfaces/ITransactionAlarmPublisher.js +0 -2
  282. package/bin/service-business/ServiceApi.d.ts +0 -32
  283. package/bin/service-business/ServiceApi.js +0 -89
  284. package/bin/service-business/index.d.ts +0 -2
  285. package/bin/service-business/index.js +0 -18
  286. package/bin/service-business/interfaces/IServiceApi.d.ts +0 -72
  287. package/bin/service-business/interfaces/IServiceApi.js +0 -2
  288. package/bin/sessionActivity/index.d.ts +0 -2
  289. package/bin/sessionActivity/index.js +0 -18
  290. package/bin/sessionActivity/queue/SessionActivityPublisher.d.ts +0 -6
  291. package/bin/sessionActivity/queue/SessionActivityPublisher.js +0 -34
  292. package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.d.ts +0 -4
  293. package/bin/sessionActivity/queue/interfaces/ISessionActivityPublisher.js +0 -2
  294. package/bin/stpAccount/api/STPAccountApi.d.ts +0 -15
  295. package/bin/stpAccount/api/STPAccountApi.js +0 -39
  296. package/bin/stpAccount/api/interfaces/ISTPAccountApi.d.ts +0 -10
  297. package/bin/stpAccount/api/interfaces/ISTPAccountApi.js +0 -2
  298. package/bin/stpAccount/index.d.ts +0 -2
  299. package/bin/stpAccount/index.js +0 -18
  300. package/bin/stpServicePayment/api/StpServicePaymentApi.d.ts +0 -14
  301. package/bin/stpServicePayment/api/StpServicePaymentApi.js +0 -50
  302. package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.d.ts +0 -9
  303. package/bin/stpServicePayment/api/interfaces/IStpServicePaymentApi.js +0 -2
  304. package/bin/stpServicePayment/index.d.ts +0 -2
  305. package/bin/stpServicePayment/index.js +0 -18
  306. package/bin/stpSpei/api/StpSpeiApi.d.ts +0 -10
  307. package/bin/stpSpei/api/StpSpeiApi.js +0 -47
  308. package/bin/stpSpei/api/interfaces/IStpSpeiApi.d.ts +0 -5
  309. package/bin/stpSpei/api/interfaces/IStpSpeiApi.js +0 -2
  310. package/bin/stpSpei/index.d.ts +0 -2
  311. package/bin/stpSpei/index.js +0 -18
  312. package/bin/tern/api/TernApi.d.ts +0 -30
  313. package/bin/tern/api/TernApi.js +0 -125
  314. package/bin/tern/api/interfaces/ITernApi.d.ts +0 -26
  315. package/bin/tern/api/interfaces/ITernApi.js +0 -2
  316. package/bin/tern/index.d.ts +0 -2
  317. package/bin/tern/index.js +0 -18
  318. package/bin/transaction/api/TransactionApi.d.ts +0 -45
  319. package/bin/transaction/api/TransactionApi.js +0 -84
  320. package/bin/transaction/api/interfaces/ITransactionApi.d.ts +0 -40
  321. package/bin/transaction/api/interfaces/ITransactionApi.js +0 -2
  322. package/bin/transaction/index.d.ts +0 -4
  323. package/bin/transaction/index.js +0 -20
  324. package/bin/transaction/queue/TransactionPublisher.d.ts +0 -6
  325. package/bin/transaction/queue/TransactionPublisher.js +0 -36
  326. package/bin/transaction/queue/interfaces/ITransactionPublisher.d.ts +0 -4
  327. package/bin/transaction/queue/interfaces/ITransactionPublisher.js +0 -2
  328. package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +0 -16
  329. package/bin/transactionProcessor/api/TransactionProcessorApi.js +0 -51
  330. package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +0 -11
  331. package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.js +0 -2
  332. package/bin/transactionProcessor/index.d.ts +0 -2
  333. package/bin/transactionProcessor/index.js +0 -18
  334. package/bin/utils/InvokerUtils.d.ts +0 -4
  335. package/bin/utils/InvokerUtils.js +0 -34
  336. package/bin/zendesk/ZendeskApi.d.ts +0 -11
  337. package/bin/zendesk/ZendeskApi.js +0 -41
  338. package/bin/zendesk/index.d.ts +0 -2
  339. package/bin/zendesk/index.js +0 -18
  340. package/bin/zendesk/interfaces/IZendeskApi.d.ts +0 -9
  341. package/bin/zendesk/interfaces/IZendeskApi.js +0 -2
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DirectoriesApi = void 0;
19
- const dotenv_1 = __importDefault(require("dotenv"));
20
- const inversify_1 = require("inversify");
21
- dotenv_1.default.config();
22
- let DirectoriesApi = class DirectoriesApi {
23
- constructor(httpRequest) {
24
- this.httpRequest = httpRequest;
25
- this.baseUrl = process.env.DIRECTORIES_LAMBDA_URL || "";
26
- }
27
- async getBackofficeDirectoryById(id) {
28
- const url = `${this.baseUrl}directories/backoffice/${id}`;
29
- return await this.httpRequest.get(url);
30
- }
31
- async createBackofficeDirectory(directory) {
32
- const url = `${this.baseUrl}directories/backoffice`;
33
- return await this.httpRequest.post(url, directory);
34
- }
35
- async getBackofficeDirectoryByEmail(email) {
36
- const url = `${this.baseUrl}directories/backoffice/search/email?email=${email}`;
37
- return await this.httpRequest.get(url);
38
- }
39
- async getBackofficeDirectoryList(params) {
40
- let queryParams = [];
41
- if (params.pageSize) {
42
- queryParams.push(`pageSize=${params.pageSize}`);
43
- }
44
- if (params.index) {
45
- queryParams.push(`index=${params.index}`);
46
- }
47
- const queryString = queryParams.join('&');
48
- const url = `${this.baseUrl}directories/backoffice/${queryString}`;
49
- return await this.httpRequest.get(url);
50
- }
51
- async updateBackofficeDirectory(directoryId, params) {
52
- const url = `${this.baseUrl}directories/backoffice/${directoryId}`;
53
- return await this.httpRequest.put(url, params);
54
- }
55
- };
56
- exports.DirectoriesApi = DirectoriesApi;
57
- exports.DirectoriesApi = DirectoriesApi = __decorate([
58
- (0, inversify_1.injectable)(),
59
- __param(0, (0, inversify_1.inject)("IHttpRequest")),
60
- __metadata("design:paramtypes", [Object])
61
- ], DirectoriesApi);
@@ -1,2 +0,0 @@
1
- export * from './interfaces/IDirectoriesApi';
2
- export * from './DirectoriesApi';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces/IDirectoriesApi"), exports);
18
- __exportStar(require("./DirectoriesApi"), exports);
@@ -1,21 +0,0 @@
1
- import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
2
- import { DirectoryBackofficeCreateRequest, DirectoryBackofficeResponse, DirectoryBackofficeUpdateRequest } from "@fiado/type-kit/bin/directory";
3
- /**
4
- * Interfaz para el servicio Directory que permite operaciones sobre directorios.
5
- */
6
- export interface IDirectoriesApi {
7
- /**
8
- * Obtiene una directorio.
9
- */
10
- getBackofficeDirectoryById(id: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
11
- createBackofficeDirectory(directory: DirectoryBackofficeCreateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
12
- getBackofficeDirectoryByEmail(email: string): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
13
- getBackofficeDirectoryList(params: {
14
- pageSize?: number;
15
- index?: string;
16
- }): Promise<FiadoApiResponse<{
17
- index: string | null;
18
- items: DirectoryBackofficeResponse[];
19
- }>>;
20
- updateBackofficeDirectory(directoryId: string, params: DirectoryBackofficeUpdateRequest): Promise<FiadoApiResponse<DirectoryBackofficeResponse>>;
21
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { IHttpRequest } from "@fiado/http-client";
2
- import { IDirectoryApi } from "./interfaces/IDirectoryApi";
3
- import { Provider } from '@fiado/type-kit/bin/provider';
4
- import { Profile } from '@fiado/type-kit/bin/directory/enums/Profile';
5
- import { Status } from '@fiado/type-kit/bin/directory/enums/Status';
6
- export declare class DirectoryApi implements IDirectoryApi {
7
- private httpRequest;
8
- private readonly baseUrl;
9
- constructor(httpRequest: IHttpRequest);
10
- validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
11
- getByIds(ids: string[]): Promise<any>;
12
- updateExternalUserId(directoryId: string, provider: Provider, externalUserId: string): Promise<void>;
13
- updateScope(directoryId: string, scope: string[]): Promise<void>;
14
- getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
15
- getByPhoneNumber(phoneNumber: string): Promise<any>;
16
- addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
17
- updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
18
- updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
19
- updateStatus(directoryId: string, status: Status): Promise<void>;
20
- getByPeopleId(peopleId: string): Promise<any>;
21
- }
@@ -1,123 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DirectoryApi = void 0;
19
- const dotenv_1 = __importDefault(require("dotenv"));
20
- const inversify_1 = require("inversify");
21
- dotenv_1.default.config();
22
- let DirectoryApi = class DirectoryApi {
23
- constructor(httpRequest) {
24
- this.httpRequest = httpRequest;
25
- this.baseUrl = process.env.DIRECTORY_LAMBDA_URL || "";
26
- }
27
- async validateSecretNumber(directoryId, secretNumber) {
28
- const url = `${this.baseUrl}`;
29
- const operationName = "validateSecretNumber";
30
- const body = {
31
- directoryId,
32
- secretNumber,
33
- };
34
- return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
35
- }
36
- async getByIds(ids) {
37
- if (ids.length === 0) {
38
- throw new Error("At least one directory ID is required.");
39
- }
40
- const url = `${this.baseUrl}?${ids.map(id => `directoryId=${encodeURIComponent(id)}`).join('&')}`;
41
- const operationName = "getUserInfoByIds";
42
- return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
43
- }
44
- async updateExternalUserId(directoryId, provider, externalUserId) {
45
- const url = `${this.baseUrl}`;
46
- const operationName = "updateExternalUser";
47
- const body = {
48
- directoryId: directoryId,
49
- typeOfDirectoryId: "USER",
50
- provider: provider,
51
- user: externalUserId
52
- };
53
- return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
54
- }
55
- async updateScope(directoryId, scope) {
56
- const url = `${this.baseUrl}`;
57
- const operationName = "updateScope";
58
- const body = {
59
- directoryId: directoryId,
60
- typeOfDirectoryId: "USER",
61
- scope: scope
62
- };
63
- return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
64
- }
65
- async getByOwnerDirectoryId(ownerDirectoryId) {
66
- const url = `${this.baseUrl}?ownerDirectoryId=${ownerDirectoryId}`;
67
- const operationName = "getByOwnerDirectoryId";
68
- return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
69
- }
70
- async getByPhoneNumber(phoneNumber) {
71
- const url = `${this.baseUrl}?phoneNumber=${phoneNumber}`;
72
- const operationName = "getUserInfoByParams";
73
- return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
74
- }
75
- async addOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
76
- const url = `${this.baseUrl}`;
77
- const operationName = "addOwnerDirectoryId";
78
- const data = {
79
- directoryId: directoryId,
80
- ownerDirectoryId: newOwnerDirectoryId
81
- };
82
- return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
83
- }
84
- async updateOwnerDirectoryId(directoryId, newOwnerDirectoryId) {
85
- const url = `${this.baseUrl}`;
86
- const operationName = "updateOwnerDirectoryId";
87
- const data = {
88
- directoryId: directoryId,
89
- ownerDirectoryId: newOwnerDirectoryId
90
- };
91
- return await this.httpRequest.post(`${url}`, data, { 'operationName': operationName });
92
- }
93
- async updateUserProfile(directoryId, profile) {
94
- const url = `${this.baseUrl}`;
95
- const operationName = "updateUserProfile";
96
- const body = {
97
- directoryId: directoryId,
98
- typeOfDirectoryId: "USER",
99
- profile: profile
100
- };
101
- return await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
102
- }
103
- async updateStatus(directoryId, status) {
104
- const url = `${this.baseUrl}`;
105
- const operationName = "updateStatus";
106
- const body = {
107
- directoryId: directoryId,
108
- status: status
109
- };
110
- await this.httpRequest.post(`${url}`, body, { 'operationName': operationName });
111
- }
112
- async getByPeopleId(peopleId) {
113
- const url = `${this.baseUrl}?peopleId=${peopleId}`;
114
- const operationName = "getUserInfoByParams";
115
- return await this.httpRequest.post(`${url}`, null, { 'operationName': operationName });
116
- }
117
- };
118
- exports.DirectoryApi = DirectoryApi;
119
- exports.DirectoryApi = DirectoryApi = __decorate([
120
- (0, inversify_1.injectable)(),
121
- __param(0, (0, inversify_1.inject)("IHttpRequest")),
122
- __metadata("design:paramtypes", [Object])
123
- ], DirectoryApi);
@@ -1,2 +0,0 @@
1
- export * from './interfaces/IDirectoryApi';
2
- export * from './DirectoryApi';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces/IDirectoryApi"), exports);
18
- __exportStar(require("./DirectoryApi"), exports);
@@ -1,55 +0,0 @@
1
- import { Profile } from "@fiado/type-kit/bin/directory/enums/Profile";
2
- import { Status } from "@fiado/type-kit/bin/directory/enums/Status";
3
- import { Provider } from "@fiado/type-kit/bin/provider";
4
- /**
5
- * Interfaz para el servicio Directory que permite operaciones sobre directorios.
6
- */
7
- export interface IDirectoryApi {
8
- /**
9
- * Obtiene una lista de directorios por sus IDs.
10
- * @param ids Array de IDs de directorios (UUIDs) a buscar.
11
- * @returns Una promesa que resuelve a un arreglo de objetos de directorio.
12
- * Puede devolver un arreglo vacío si no se encuentran coincidencias.
13
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
14
- */
15
- getByIds(ids: string[]): Promise<any>;
16
- /**
17
- * Actualiza el ID de usuario externo en un directorio.
18
- * @param directoryId ID del directorio (UUID) a actualizar.
19
- * @param provider Proveedor de autenticación del usuario.
20
- * @param externalUserId ID de usuario externo.
21
- * @returns Una promesa que resuelve a un objeto vacío.
22
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
23
- */
24
- updateExternalUserId(directoryId: string, provider: Provider, externalUserId: string): Promise<void>;
25
- /**
26
- * Actualiza el alcance de un directorio.
27
- * @param directoryId ID del directorio (UUID) a actualizar.
28
- * @param scope Alcance a actualizar.
29
- * @returns Una promesa que resuelve a un objeto vacío.
30
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
31
- */
32
- updateScope(directoryId: string, scope: string[]): Promise<void>;
33
- /**
34
- * Obtiene un directorio por su ID de directorio propietario.
35
- * @param ownerDirectoryId ID de directorio propietario (UUID) a buscar.
36
- * @returns Una promesa que resuelve a un objeto de directorio.
37
- * Puede devolver un objeto vacío si no se encuentra coincidencia.
38
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
39
- */
40
- getByOwnerDirectoryId(ownerDirectoryId: string): Promise<any>;
41
- /**
42
- * Obtiene un directorio por su número de teléfono.
43
- * @param phoneNumber Número de teléfono a buscar.
44
- * @returns Una promesa que resuelve a un objeto de directorio.
45
- * Puede devolver un objeto vacío si no se encuentra coincidencia.
46
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
47
- */
48
- getByPhoneNumber(phoneNumber: string): Promise<any>;
49
- addOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
50
- updateUserProfile(directoryId: string, profile: Profile): Promise<void>;
51
- updateOwnerDirectoryId(directoryId: string, newOwnerDirectoryId: any): Promise<any>;
52
- updateStatus(directoryId: string, status: Status): Promise<void>;
53
- getByPeopleId(peopleId: string): Promise<any>;
54
- validateSecretNumber(directoryId: string, secretNumber: string): Promise<void>;
55
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- import { IHttpRequest } from "@fiado/http-client";
2
- import { IDirectorySettingApi } from "./interfaces/IDirectorySettingApi";
3
- import FiadoApiResponse from '@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse';
4
- import { DirectorySettingCreateRequest } from '@fiado/type-kit/bin/directorySetting';
5
- export declare class DirectorySettingApi implements IDirectorySettingApi {
6
- private httpRequest;
7
- private readonly baseUrl;
8
- constructor(httpRequest: IHttpRequest);
9
- createBatchDirectorySetting(params: DirectorySettingCreateRequest): Promise<FiadoApiResponse<{
10
- key: string;
11
- value: string;
12
- directoryId: string;
13
- metadata?: any;
14
- }[]>>;
15
- getByIds(ids: string[]): Promise<FiadoApiResponse<{
16
- key: string;
17
- value: string;
18
- directoryId: string;
19
- metadata?: any;
20
- }[]>>;
21
- getDirectorySettingsByDirectoryId(params: {
22
- pageSize?: number;
23
- index?: string;
24
- directoryId: string;
25
- }): Promise<FiadoApiResponse<{
26
- key: string;
27
- value: string;
28
- directoryId: string;
29
- metadata?: any;
30
- }>>;
31
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DirectorySettingApi = void 0;
19
- const dotenv_1 = __importDefault(require("dotenv"));
20
- const inversify_1 = require("inversify");
21
- dotenv_1.default.config();
22
- let DirectorySettingApi = class DirectorySettingApi {
23
- constructor(httpRequest) {
24
- this.httpRequest = httpRequest;
25
- this.baseUrl = process.env.DIRECTORY_SETTING_URL || "";
26
- }
27
- async createBatchDirectorySetting(params) {
28
- const url = `${this.baseUrl}create/batch`;
29
- return await this.httpRequest.post(url, document);
30
- }
31
- async getByIds(ids) {
32
- if (ids.length === 0) {
33
- throw new Error("At least one people ID is required.");
34
- }
35
- const url = `${this.baseUrl}get/ids?${ids.map(id => `id=${encodeURIComponent(id)}`).join('&')}`;
36
- return await this.httpRequest.get(`${url}`);
37
- }
38
- async getDirectorySettingsByDirectoryId(params) {
39
- const url = `${this.baseUrl}get/directory/${params.directoryId}`;
40
- const queryParameters = [];
41
- if (params.pageSize)
42
- queryParameters.push(`pageSize=${params.pageSize}`);
43
- if (params.index)
44
- queryParameters.push(`index=${params.index}`);
45
- if (queryParameters.length > 0) {
46
- url.concat(`?${queryParameters.join('&')}`);
47
- }
48
- return await this.httpRequest.get(url);
49
- }
50
- };
51
- exports.DirectorySettingApi = DirectorySettingApi;
52
- exports.DirectorySettingApi = DirectorySettingApi = __decorate([
53
- (0, inversify_1.injectable)(),
54
- __param(0, (0, inversify_1.inject)("IHttpRequest")),
55
- __metadata("design:paramtypes", [Object])
56
- ], DirectorySettingApi);
@@ -1,2 +0,0 @@
1
- export * from './interfaces/IDirectorySettingApi';
2
- export * from './DirectorySettingApi';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces/IDirectorySettingApi"), exports);
18
- __exportStar(require("./DirectorySettingApi"), exports);
@@ -1,42 +0,0 @@
1
- import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
2
- import { DirectorySettingCreateRequest } from "@fiado/type-kit/bin/directorySetting/dtos/DirectorySettingCreateRequest";
3
- /**
4
- * Interfaz para el servicio Directory que permite operaciones sobre directorios.
5
- */
6
- export interface IDirectorySettingApi {
7
- /**
8
- * Crea en batch settings de directorio.
9
- * @param params Parámetros para crear el setting de directorio.
10
- * @returns Una promesa que resuelve a la respuesta del API.
11
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
12
- */
13
- createBatchDirectorySetting(params: DirectorySettingCreateRequest): Promise<FiadoApiResponse<{
14
- key: string;
15
- value: string;
16
- directoryId: string;
17
- metadata?: any;
18
- }[]>>;
19
- /**
20
- * Obtiene una lista de settings por sus IDs.
21
- * @param ids Array de IDs de directorios (UUIDs) a buscar.
22
- * @returns Una promesa que resuelve a un arreglo de objetos de directorio.
23
- * Puede devolver un arreglo vacío si no se encuentran coincidencias.
24
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
25
- */
26
- getByIds(ids: string[]): Promise<FiadoApiResponse<{
27
- key: string;
28
- value: string;
29
- directoryId: string;
30
- metadata?: any;
31
- }[]>>;
32
- getDirectorySettingsByDirectoryId(params: {
33
- pageSize?: number;
34
- index?: string;
35
- directoryId: string;
36
- }): Promise<FiadoApiResponse<{
37
- key: string;
38
- value: string;
39
- directoryId: string;
40
- metadata?: any;
41
- }>>;
42
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- import { IHttpRequest } from "@fiado/http-client";
2
- import { IDisputesApi } from "./interfaces/IDisputesApi";
3
- export declare class DisputesApi implements IDisputesApi {
4
- private httpRequest;
5
- private readonly baseUrl;
6
- constructor(httpRequest: IHttpRequest);
7
- getListBetweenDates(params: {
8
- index?: string;
9
- pageSize?: number;
10
- startDate: string;
11
- endDate: string;
12
- }): Promise<void>;
13
- addProvisional(params: {
14
- disputeId: string;
15
- amount: number;
16
- date: string;
17
- type: "PROV" | "REV_PROV";
18
- }): Promise<void>;
19
- getByDirectoryId(params: {
20
- directoryId: string;
21
- pageSize?: number;
22
- index?: string;
23
- }): Promise<void>;
24
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __importDefault = (this && this.__importDefault) || function (mod) {
15
- return (mod && mod.__esModule) ? mod : { "default": mod };
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DisputesApi = void 0;
19
- const inversify_1 = require("inversify");
20
- const dotenv_1 = __importDefault(require("dotenv"));
21
- dotenv_1.default.config();
22
- let DisputesApi = class DisputesApi {
23
- constructor(httpRequest) {
24
- this.httpRequest = httpRequest;
25
- this.baseUrl = process.env.DISPUTES_LAMBDA_URL || "";
26
- }
27
- async getListBetweenDates(params) {
28
- let queryParams = [];
29
- if (!params.index) {
30
- queryParams.push(`index=${params.index}`);
31
- }
32
- if (!params.pageSize) {
33
- queryParams.push(`pageSize=${params.pageSize}`);
34
- }
35
- queryParams.push(`startDate=${params.startDate}`);
36
- queryParams.push(`endDate=${params.endDate}`);
37
- const url = `${this.baseUrl}disputes/bdates?${queryParams.join('&')}`;
38
- return await this.httpRequest.get(url);
39
- }
40
- async addProvisional(params) {
41
- const url = `${this.baseUrl}disputes/provisional/add/${params.disputeId}`;
42
- return await this.httpRequest.put(url, { amount: params.amount, date: params.date, type: params.type });
43
- }
44
- async getByDirectoryId(params) {
45
- let queryParams = [];
46
- if (!params.index) {
47
- queryParams.push(`index=${params.index}`);
48
- }
49
- if (!params.pageSize) {
50
- queryParams.push(`pageSize=${params.pageSize}`);
51
- }
52
- const url = `${this.baseUrl}disputes/${params.directoryId}?${queryParams.join('&')}`;
53
- return await this.httpRequest.get(url);
54
- }
55
- };
56
- exports.DisputesApi = DisputesApi;
57
- exports.DisputesApi = DisputesApi = __decorate([
58
- (0, inversify_1.injectable)(),
59
- __param(0, (0, inversify_1.inject)("IHttpRequest")),
60
- __metadata("design:paramtypes", [Object])
61
- ], DisputesApi);
@@ -1,2 +0,0 @@
1
- export * from './interfaces/IDisputesApi';
2
- export * from './DisputesApi';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./interfaces/IDisputesApi"), exports);
18
- __exportStar(require("./DisputesApi"), exports);
@@ -1,48 +0,0 @@
1
- /**
2
- * Interfaz que define las operaciones que se pueden realizar en el servicio de disputas.
3
- */
4
- export interface IDisputesApi {
5
- /**
6
- * Obtener disputas por directoryId.
7
- * @param directoryId DirectoryId del usuario a consultar.
8
- * @param pageSize Tamaño de la página.
9
- * @param index Índice de la página.
10
- * @returns Una promesa que resuelve a void.
11
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
12
- */
13
- getByDirectoryId(params: {
14
- directoryId: string;
15
- pageSize?: number;
16
- index?: string;
17
- }): Promise<void>;
18
- /**
19
- * Agregar PROV Y REV_PROV a una disputa.
20
- * @param disputeId Id de la disputa.
21
- * @param amount Monto de la transacción.
22
- * @param date Fecha de la transacción.
23
- * @param type REV ó PROV.
24
- * @returns Una promesa que resuelve a void.
25
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
26
- */
27
- addProvisional(params: {
28
- disputeId: string;
29
- amount: number;
30
- date: string;
31
- type: "PROV" | "REV_PROV";
32
- }): Promise<void>;
33
- /**
34
- * Consultar disputas entre fechas.
35
- * @param index indice de consulta.
36
- * @param pageSize tamaño de paginación.
37
- * @param startDate Fecha inicial de consulta.
38
- * @param endDate Fecha final de consulta
39
- * @returns Una promesa que resuelve a void.
40
- * @throws {Error} Lanza un error si los parámetros de entrada son inválidos.
41
- */
42
- getListBetweenDates(params: {
43
- index?: string;
44
- pageSize?: number;
45
- startDate: string;
46
- endDate: string;
47
- }): Promise<void>;
48
- }