@arcasdk/core 0.3.5 → 1.2.0

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 (484) hide show
  1. package/lib/application/dto/electronic-billing.dto.d.ts +0 -5
  2. package/lib/application/dto/index.d.ts +0 -4
  3. package/lib/application/dto/index.js +0 -4
  4. package/lib/application/dto/index.js.map +1 -1
  5. package/lib/application/dto/register.dto.d.ts +0 -60
  6. package/lib/application/dto/register.dto.js +0 -5
  7. package/lib/application/dto/register.dto.js.map +1 -1
  8. package/lib/application/index.d.ts +0 -1
  9. package/lib/application/index.js +0 -1
  10. package/lib/application/index.js.map +1 -1
  11. package/lib/application/ports/authentication/authentication-repository.port.d.ts +0 -5
  12. package/lib/application/ports/authentication/index.d.ts +0 -4
  13. package/lib/application/ports/authentication/index.js +0 -4
  14. package/lib/application/ports/authentication/index.js.map +1 -1
  15. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +0 -6
  16. package/lib/application/ports/electronic-billing/index.d.ts +0 -4
  17. package/lib/application/ports/electronic-billing/index.js +0 -4
  18. package/lib/application/ports/electronic-billing/index.js.map +1 -1
  19. package/lib/application/ports/fecred/fecred-repository.port.d.ts +118 -0
  20. package/lib/application/ports/fecred/fecred-repository.port.js +3 -0
  21. package/lib/application/ports/fecred/fecred-repository.port.js.map +1 -0
  22. package/lib/application/ports/fecred/index.d.ts +1 -0
  23. package/lib/application/ports/fecred/index.js +18 -0
  24. package/lib/application/ports/fecred/index.js.map +1 -0
  25. package/lib/application/ports/fex/fex-repository.port.d.ts +116 -0
  26. package/lib/application/ports/fex/fex-repository.port.js +3 -0
  27. package/lib/application/ports/fex/fex-repository.port.js.map +1 -0
  28. package/lib/application/ports/fex/index.d.ts +1 -0
  29. package/lib/application/ports/fex/index.js +18 -0
  30. package/lib/application/ports/fex/index.js.map +1 -0
  31. package/lib/application/ports/generic/generic-repository.port.d.ts +3 -6
  32. package/lib/application/ports/index.d.ts +2 -4
  33. package/lib/application/ports/index.js +2 -4
  34. package/lib/application/ports/index.js.map +1 -1
  35. package/lib/application/ports/register/index.d.ts +0 -4
  36. package/lib/application/ports/register/index.js +0 -4
  37. package/lib/application/ports/register/index.js.map +1 -1
  38. package/lib/application/ports/register/register-repository.ports.d.ts +0 -4
  39. package/lib/application/services/electronic-billing.service.d.ts +0 -5
  40. package/lib/application/services/electronic-billing.service.js +0 -2
  41. package/lib/application/services/electronic-billing.service.js.map +1 -1
  42. package/lib/application/services/generic.service.d.ts +3 -6
  43. package/lib/application/services/generic.service.js +1 -1
  44. package/lib/application/services/generic.service.js.map +1 -1
  45. package/lib/application/services/index.d.ts +2 -4
  46. package/lib/application/services/index.js +2 -4
  47. package/lib/application/services/index.js.map +1 -1
  48. package/lib/application/services/register-inscription-proof.service.d.ts +0 -5
  49. package/lib/application/services/register-inscription-proof.service.js.map +1 -1
  50. package/lib/application/services/register-scope-five.service.d.ts +0 -5
  51. package/lib/application/services/register-scope-five.service.js.map +1 -1
  52. package/lib/application/services/register-scope-four.service.d.ts +0 -5
  53. package/lib/application/services/register-scope-four.service.js +0 -5
  54. package/lib/application/services/register-scope-four.service.js.map +1 -1
  55. package/lib/application/services/register-scope-ten.service.d.ts +0 -5
  56. package/lib/application/services/register-scope-ten.service.js.map +1 -1
  57. package/lib/application/services/register-scope-thirteen.service.d.ts +0 -5
  58. package/lib/application/services/register-scope-thirteen.service.js.map +1 -1
  59. package/lib/application/services/wsfecred.service.d.ts +46 -0
  60. package/lib/application/services/wsfecred.service.js +173 -0
  61. package/lib/application/services/wsfecred.service.js.map +1 -0
  62. package/lib/application/services/wsfex.service.d.ts +44 -0
  63. package/lib/application/services/wsfex.service.js +152 -0
  64. package/lib/application/services/wsfex.service.js.map +1 -0
  65. package/lib/application/types/auth.types.d.ts +0 -4
  66. package/lib/application/types/auth.types.js +0 -4
  67. package/lib/application/types/auth.types.js.map +1 -1
  68. package/lib/application/types/context.types.d.ts +13 -10
  69. package/lib/application/types/index.d.ts +0 -4
  70. package/lib/application/types/index.js +0 -4
  71. package/lib/application/types/index.js.map +1 -1
  72. package/lib/application/types/result.types.d.ts +0 -4
  73. package/lib/application/types/use-case-inputs.types.d.ts +0 -4
  74. package/lib/application/types/use-case-inputs.types.js +0 -4
  75. package/lib/application/types/use-case-inputs.types.js.map +1 -1
  76. package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +0 -4
  77. package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -1
  78. package/lib/application/use-cases/authentication/index.d.ts +0 -4
  79. package/lib/application/use-cases/authentication/index.js +0 -4
  80. package/lib/application/use-cases/authentication/index.js.map +1 -1
  81. package/lib/application/use-cases/authentication/login.use-case.d.ts +0 -5
  82. package/lib/application/use-cases/authentication/login.use-case.js.map +1 -1
  83. package/lib/application/use-cases/authentication/request-login.use-case.d.ts +0 -4
  84. package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -1
  85. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +0 -4
  86. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -1
  87. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +0 -2
  88. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -1
  89. package/lib/application/use-cases/index.d.ts +2 -0
  90. package/lib/application/use-cases/index.js +2 -0
  91. package/lib/application/use-cases/index.js.map +1 -1
  92. package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +0 -4
  93. package/lib/application/use-cases/register/get-register-server-status.use-case.js.map +1 -1
  94. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +0 -4
  95. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -1
  96. package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +0 -4
  97. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -1
  98. package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +0 -4
  99. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -1
  100. package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.d.ts +7 -0
  101. package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.js +24 -0
  102. package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.js.map +1 -0
  103. package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.d.ts +7 -0
  104. package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.js +24 -0
  105. package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.js.map +1 -0
  106. package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.d.ts +7 -0
  107. package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.js +24 -0
  108. package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.js.map +1 -0
  109. package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.d.ts +7 -0
  110. package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.js +24 -0
  111. package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.js.map +1 -0
  112. package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.d.ts +7 -0
  113. package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.js +24 -0
  114. package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.js.map +1 -0
  115. package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.d.ts +7 -0
  116. package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.js +24 -0
  117. package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.js.map +1 -0
  118. package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.d.ts +7 -0
  119. package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.js +24 -0
  120. package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.js.map +1 -0
  121. package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.d.ts +7 -0
  122. package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.js +24 -0
  123. package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.js.map +1 -0
  124. package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.d.ts +7 -0
  125. package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.js +24 -0
  126. package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.js.map +1 -0
  127. package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.d.ts +7 -0
  128. package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.js +24 -0
  129. package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.js.map +1 -0
  130. package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.d.ts +7 -0
  131. package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.js +24 -0
  132. package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.js.map +1 -0
  133. package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.d.ts +7 -0
  134. package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.js +24 -0
  135. package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.js.map +1 -0
  136. package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.d.ts +7 -0
  137. package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.js +24 -0
  138. package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.js.map +1 -0
  139. package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.d.ts +7 -0
  140. package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.js +24 -0
  141. package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.js.map +1 -0
  142. package/lib/application/use-cases/wsfecred/index.d.ts +20 -0
  143. package/lib/application/use-cases/wsfecred/index.js +37 -0
  144. package/lib/application/use-cases/wsfecred/index.js.map +1 -0
  145. package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.d.ts +7 -0
  146. package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.js +24 -0
  147. package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.js.map +1 -0
  148. package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.d.ts +7 -0
  149. package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.js +24 -0
  150. package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.js.map +1 -0
  151. package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.d.ts +7 -0
  152. package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.js +24 -0
  153. package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.js.map +1 -0
  154. package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.d.ts +7 -0
  155. package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.js +24 -0
  156. package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.js.map +1 -0
  157. package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.d.ts +7 -0
  158. package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.js +24 -0
  159. package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.js.map +1 -0
  160. package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.d.ts +7 -0
  161. package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.js +24 -0
  162. package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.js.map +1 -0
  163. package/lib/application/use-cases/wsfex/authorize.use-case.d.ts +7 -0
  164. package/lib/application/use-cases/wsfex/authorize.use-case.js +24 -0
  165. package/lib/application/use-cases/wsfex/authorize.use-case.js.map +1 -0
  166. package/lib/application/use-cases/wsfex/check-permiso.use-case.d.ts +7 -0
  167. package/lib/application/use-cases/wsfex/check-permiso.use-case.js +24 -0
  168. package/lib/application/use-cases/wsfex/check-permiso.use-case.js.map +1 -0
  169. package/lib/application/use-cases/wsfex/dummy.use-case.d.ts +7 -0
  170. package/lib/application/use-cases/wsfex/dummy.use-case.js +24 -0
  171. package/lib/application/use-cases/wsfex/dummy.use-case.js.map +1 -0
  172. package/lib/application/use-cases/wsfex/get-cmp.use-case.d.ts +7 -0
  173. package/lib/application/use-cases/wsfex/get-cmp.use-case.js +24 -0
  174. package/lib/application/use-cases/wsfex/get-cmp.use-case.js.map +1 -0
  175. package/lib/application/use-cases/wsfex/get-last-cmp.use-case.d.ts +7 -0
  176. package/lib/application/use-cases/wsfex/get-last-cmp.use-case.js +24 -0
  177. package/lib/application/use-cases/wsfex/get-last-cmp.use-case.js.map +1 -0
  178. package/lib/application/use-cases/wsfex/get-last-id.use-case.d.ts +7 -0
  179. package/lib/application/use-cases/wsfex/get-last-id.use-case.js +24 -0
  180. package/lib/application/use-cases/wsfex/get-last-id.use-case.js.map +1 -0
  181. package/lib/application/use-cases/wsfex/get-param-actividades.use-case.d.ts +7 -0
  182. package/lib/application/use-cases/wsfex/get-param-actividades.use-case.js +24 -0
  183. package/lib/application/use-cases/wsfex/get-param-actividades.use-case.js.map +1 -0
  184. package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.d.ts +7 -0
  185. package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.js +24 -0
  186. package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.js.map +1 -0
  187. package/lib/application/use-cases/wsfex/get-param-ctz.use-case.d.ts +7 -0
  188. package/lib/application/use-cases/wsfex/get-param-ctz.use-case.js +24 -0
  189. package/lib/application/use-cases/wsfex/get-param-ctz.use-case.js.map +1 -0
  190. package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.d.ts +7 -0
  191. package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.js +24 -0
  192. package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.js.map +1 -0
  193. package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.d.ts +7 -0
  194. package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.js +24 -0
  195. package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.js.map +1 -0
  196. package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.d.ts +7 -0
  197. package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.js +24 -0
  198. package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.js.map +1 -0
  199. package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.d.ts +7 -0
  200. package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.js +24 -0
  201. package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.js.map +1 -0
  202. package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.d.ts +7 -0
  203. package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.js +24 -0
  204. package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.js.map +1 -0
  205. package/lib/application/use-cases/wsfex/get-param-mon.use-case.d.ts +7 -0
  206. package/lib/application/use-cases/wsfex/get-param-mon.use-case.js +24 -0
  207. package/lib/application/use-cases/wsfex/get-param-mon.use-case.js.map +1 -0
  208. package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.d.ts +7 -0
  209. package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.js +24 -0
  210. package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.js.map +1 -0
  211. package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.d.ts +7 -0
  212. package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.js +24 -0
  213. package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.js.map +1 -0
  214. package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.d.ts +7 -0
  215. package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.js +24 -0
  216. package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.js.map +1 -0
  217. package/lib/application/use-cases/wsfex/get-param-umed.use-case.d.ts +7 -0
  218. package/lib/application/use-cases/wsfex/get-param-umed.use-case.js +24 -0
  219. package/lib/application/use-cases/wsfex/get-param-umed.use-case.js.map +1 -0
  220. package/lib/application/use-cases/wsfex/index.d.ts +19 -0
  221. package/lib/application/use-cases/wsfex/index.js +36 -0
  222. package/lib/application/use-cases/wsfex/index.js.map +1 -0
  223. package/lib/domain/entities/access-ticket.entity.js +6 -10
  224. package/lib/domain/entities/access-ticket.entity.js.map +1 -1
  225. package/lib/domain/entities/index.d.ts +0 -4
  226. package/lib/domain/entities/index.js +0 -4
  227. package/lib/domain/entities/index.js.map +1 -1
  228. package/lib/domain/entities/voucher.entity.d.ts +23 -10
  229. package/lib/domain/entities/voucher.entity.js +52 -14
  230. package/lib/domain/entities/voucher.entity.js.map +1 -1
  231. package/lib/domain/index.d.ts +0 -4
  232. package/lib/domain/index.js +0 -4
  233. package/lib/domain/index.js.map +1 -1
  234. package/lib/domain/types/electronic-billing.types.d.ts +0 -5
  235. package/lib/domain/types/electronic-billing.types.js +0 -5
  236. package/lib/domain/types/electronic-billing.types.js.map +1 -1
  237. package/lib/domain/types/index.d.ts +0 -4
  238. package/lib/domain/types/index.js +0 -4
  239. package/lib/domain/types/index.js.map +1 -1
  240. package/lib/domain/types/voucher.types.d.ts +0 -4
  241. package/lib/domain/value-objects/cae.vo.d.ts +0 -5
  242. package/lib/domain/value-objects/cae.vo.js +0 -5
  243. package/lib/domain/value-objects/cae.vo.js.map +1 -1
  244. package/lib/domain/value-objects/cuit.vo.d.ts +0 -5
  245. package/lib/domain/value-objects/cuit.vo.js +0 -5
  246. package/lib/domain/value-objects/cuit.vo.js.map +1 -1
  247. package/lib/domain/value-objects/index.d.ts +0 -4
  248. package/lib/domain/value-objects/index.js +0 -4
  249. package/lib/domain/value-objects/index.js.map +1 -1
  250. package/lib/domain/value-objects/voucher-number.vo.d.ts +0 -5
  251. package/lib/domain/value-objects/voucher-number.vo.js +0 -5
  252. package/lib/domain/value-objects/voucher-number.vo.js.map +1 -1
  253. package/lib/index.d.ts +6 -6
  254. package/lib/index.js +13 -7
  255. package/lib/index.js.map +1 -1
  256. package/lib/infrastructure/composition/arca.d.ts +32 -0
  257. package/lib/infrastructure/composition/arca.js +107 -0
  258. package/lib/infrastructure/composition/arca.js.map +1 -0
  259. package/lib/infrastructure/constants/default-config.constants.d.ts +13 -0
  260. package/lib/infrastructure/constants/default-config.constants.js +17 -0
  261. package/lib/infrastructure/constants/default-config.constants.js.map +1 -0
  262. package/lib/infrastructure/constants/index.d.ts +3 -4
  263. package/lib/infrastructure/constants/index.js +3 -4
  264. package/lib/infrastructure/constants/index.js.map +1 -1
  265. package/lib/infrastructure/{outbound/ports/soap/enums → constants}/service-names.enum.d.ts +3 -1
  266. package/lib/infrastructure/{outbound/ports/soap/enums → constants}/service-names.enum.js +2 -0
  267. package/lib/infrastructure/constants/service-names.enum.js.map +1 -0
  268. package/lib/infrastructure/constants/ssl.constants.d.ts +0 -4
  269. package/lib/infrastructure/constants/ssl.constants.js +0 -4
  270. package/lib/infrastructure/constants/ssl.constants.js.map +1 -1
  271. package/lib/infrastructure/constants/time.constants.d.ts +7 -0
  272. package/lib/infrastructure/constants/time.constants.js +11 -0
  273. package/lib/infrastructure/constants/time.constants.js.map +1 -0
  274. package/lib/infrastructure/index.d.ts +0 -4
  275. package/lib/infrastructure/index.js +0 -4
  276. package/lib/infrastructure/index.js.map +1 -1
  277. package/lib/infrastructure/mappers/index.d.ts +1 -0
  278. package/lib/infrastructure/mappers/index.js +18 -0
  279. package/lib/infrastructure/mappers/index.js.map +1 -0
  280. package/lib/infrastructure/{utils → mappers}/soap-to-dto.mapper.d.ts +0 -6
  281. package/lib/infrastructure/mappers/soap-to-dto.mapper.js.map +1 -0
  282. package/lib/infrastructure/outbound/adapters/index.d.ts +3 -8
  283. package/lib/infrastructure/outbound/adapters/index.js +3 -8
  284. package/lib/infrastructure/outbound/adapters/index.js.map +1 -1
  285. package/lib/infrastructure/outbound/adapters/{auth → repositories/auth}/auth.repository.d.ts +5 -8
  286. package/lib/infrastructure/outbound/adapters/{auth → repositories/auth}/auth.repository.js +25 -16
  287. package/lib/infrastructure/outbound/adapters/repositories/auth/auth.repository.js.map +1 -0
  288. package/lib/infrastructure/outbound/adapters/repositories/auth/index.d.ts +1 -0
  289. package/lib/infrastructure/outbound/adapters/repositories/auth/index.js +18 -0
  290. package/lib/infrastructure/outbound/adapters/repositories/auth/index.js.map +1 -0
  291. package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/electronic-billing-repository.d.ts +21 -12
  292. package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/electronic-billing-repository.js +107 -176
  293. package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/electronic-billing-repository.js.map +1 -0
  294. package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/index.d.ts +1 -0
  295. package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/index.js +0 -4
  296. package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/index.js.map +1 -0
  297. package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.d.ts +29 -0
  298. package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.js +192 -0
  299. package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.js.map +1 -0
  300. package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.d.ts +28 -0
  301. package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.js +177 -0
  302. package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.js.map +1 -0
  303. package/lib/infrastructure/outbound/adapters/repositories/generic/generic-repository.d.ts +10 -0
  304. package/lib/infrastructure/outbound/adapters/{generic → repositories/generic}/generic-repository.js +7 -20
  305. package/lib/infrastructure/outbound/adapters/repositories/generic/generic-repository.js.map +1 -0
  306. package/lib/infrastructure/outbound/adapters/repositories/generic/index.d.ts +1 -0
  307. package/lib/infrastructure/outbound/adapters/repositories/generic/index.js +18 -0
  308. package/lib/infrastructure/outbound/adapters/repositories/generic/index.js.map +1 -0
  309. package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.d.ts +11 -0
  310. package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.js +51 -0
  311. package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.js.map +1 -0
  312. package/lib/infrastructure/outbound/adapters/repositories/register/base-register-repository.d.ts +24 -0
  313. package/lib/infrastructure/outbound/adapters/{register/register-scope-ten.repository.js → repositories/register/base-register-repository.js} +37 -35
  314. package/lib/infrastructure/outbound/adapters/repositories/register/base-register-repository.js.map +1 -0
  315. package/lib/infrastructure/outbound/adapters/{register → repositories/register}/index.d.ts +0 -4
  316. package/lib/infrastructure/outbound/adapters/{register → repositories/register}/index.js +0 -4
  317. package/lib/infrastructure/outbound/adapters/repositories/register/index.js.map +1 -0
  318. package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.d.ts +15 -0
  319. package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.js +21 -0
  320. package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.js.map +1 -0
  321. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.d.ts +15 -0
  322. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.js +21 -0
  323. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.js.map +1 -0
  324. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.d.ts +14 -0
  325. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.js +20 -0
  326. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.js.map +1 -0
  327. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.d.ts +14 -0
  328. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.js +20 -0
  329. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.js.map +1 -0
  330. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.d.ts +16 -0
  331. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.js +59 -0
  332. package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.js.map +1 -0
  333. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +9 -11
  334. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +27 -11
  335. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -1
  336. package/lib/infrastructure/outbound/adapters/soap/engines/index.d.ts +3 -0
  337. package/lib/infrastructure/outbound/adapters/soap/engines/index.js +8 -0
  338. package/lib/infrastructure/outbound/adapters/soap/engines/index.js.map +1 -0
  339. package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.d.ts +1 -0
  340. package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.js +69 -0
  341. package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.js.map +1 -0
  342. package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.d.ts +3 -0
  343. package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.js +67 -0
  344. package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.js.map +1 -0
  345. package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.d.ts +5 -0
  346. package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.js +43 -0
  347. package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.js.map +1 -0
  348. package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +6 -7
  349. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +44 -25
  350. package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -1
  351. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +6264 -0
  352. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -1
  353. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +1 -5
  354. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -1
  355. package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.d.ts +15 -0
  356. package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.js +57 -0
  357. package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.js.map +1 -0
  358. package/lib/infrastructure/outbound/index.d.ts +1 -6
  359. package/lib/infrastructure/outbound/index.js +1 -6
  360. package/lib/infrastructure/outbound/index.js.map +1 -1
  361. package/lib/infrastructure/outbound/ports/index.d.ts +3 -9
  362. package/lib/infrastructure/outbound/ports/index.js +3 -9
  363. package/lib/infrastructure/outbound/ports/index.js.map +1 -1
  364. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +11 -1
  365. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +10 -0
  366. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -1
  367. package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +0 -5
  368. package/lib/infrastructure/outbound/ports/soap/enums/index.js +0 -5
  369. package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -1
  370. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +5 -1
  371. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +4 -0
  372. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -1
  373. package/lib/infrastructure/outbound/ports/soap/index.d.ts +0 -4
  374. package/lib/infrastructure/outbound/ports/soap/index.js +0 -4
  375. package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -1
  376. package/lib/infrastructure/outbound/ports/soap/interfaces/FECredService/ServiceSoap.d.ts +932 -0
  377. package/lib/infrastructure/outbound/ports/{logger/logger.port.js → soap/interfaces/FECredService/ServiceSoap.js} +1 -1
  378. package/lib/infrastructure/outbound/ports/soap/interfaces/FECredService/ServiceSoap.js.map +1 -0
  379. package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap.d.ts +687 -0
  380. package/lib/infrastructure/outbound/ports/{logger/logger.types.js → soap/interfaces/FEXService/ServiceSoap.js} +1 -1
  381. package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap.js.map +1 -0
  382. package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.d.ts +687 -0
  383. package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.js +3 -0
  384. package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.js.map +1 -0
  385. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +16 -8
  386. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +16 -8
  387. package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +3 -0
  388. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +4 -1
  389. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -1
  390. package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +4 -9
  391. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +0 -4
  392. package/lib/infrastructure/types/auth-repository.types.d.ts +19 -0
  393. package/lib/infrastructure/types/auth-repository.types.js.map +1 -0
  394. package/lib/infrastructure/types/index.d.ts +5 -4
  395. package/lib/infrastructure/types/index.js +5 -4
  396. package/lib/infrastructure/types/index.js.map +1 -1
  397. package/lib/infrastructure/types/soap-client.types.d.ts +21 -0
  398. package/lib/infrastructure/types/soap-client.types.js +3 -0
  399. package/lib/infrastructure/types/soap-client.types.js.map +1 -0
  400. package/lib/infrastructure/types/soap-engine.types.d.ts +19 -0
  401. package/lib/infrastructure/types/soap-engine.types.js +3 -0
  402. package/lib/infrastructure/types/soap-engine.types.js.map +1 -0
  403. package/lib/infrastructure/{outbound/ports/soap → types}/soap-repository.types.d.ts +17 -11
  404. package/lib/infrastructure/types/soap-repository.types.js.map +1 -0
  405. package/lib/infrastructure/types/soap.types.d.ts +9 -27
  406. package/lib/infrastructure/{outbound/ports/storage → types}/ticket-storage.types.d.ts +0 -4
  407. package/lib/infrastructure/types/ticket-storage.types.js.map +1 -0
  408. package/lib/infrastructure/utils/afip-errors.d.ts +1 -0
  409. package/lib/infrastructure/utils/afip-errors.js +11 -0
  410. package/lib/infrastructure/utils/afip-errors.js.map +1 -0
  411. package/lib/infrastructure/utils/crypt-data.js +1 -1
  412. package/lib/infrastructure/utils/crypt-data.js.map +1 -1
  413. package/lib/infrastructure/utils/datetime-ref.d.ts +20 -0
  414. package/lib/infrastructure/utils/datetime-ref.js +41 -0
  415. package/lib/infrastructure/utils/datetime-ref.js.map +1 -0
  416. package/lib/infrastructure/utils/index.d.ts +2 -6
  417. package/lib/infrastructure/utils/index.js +2 -6
  418. package/lib/infrastructure/utils/index.js.map +1 -1
  419. package/lib/infrastructure/utils/soap-runtime.d.ts +9 -0
  420. package/lib/infrastructure/utils/soap-runtime.js +17 -0
  421. package/lib/infrastructure/utils/soap-runtime.js.map +1 -0
  422. package/package.json +16 -17
  423. package/lib/application/config/env.d.ts +0 -6
  424. package/lib/application/config/env.js +0 -14
  425. package/lib/application/config/env.js.map +0 -1
  426. package/lib/application/config/index.d.ts +0 -6
  427. package/lib/application/config/index.js +0 -15
  428. package/lib/application/config/index.js.map +0 -1
  429. package/lib/infrastructure/inbound/adapters/arca.d.ts +0 -26
  430. package/lib/infrastructure/inbound/adapters/arca.js +0 -123
  431. package/lib/infrastructure/inbound/adapters/arca.js.map +0 -1
  432. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +0 -68
  433. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +0 -128
  434. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +0 -1
  435. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +0 -1
  436. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +0 -1
  437. package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +0 -5
  438. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +0 -1
  439. package/lib/infrastructure/outbound/adapters/enums.d.ts +0 -43
  440. package/lib/infrastructure/outbound/adapters/enums.js +0 -49
  441. package/lib/infrastructure/outbound/adapters/enums.js.map +0 -1
  442. package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +0 -13
  443. package/lib/infrastructure/outbound/adapters/generic/generic-repository.js.map +0 -1
  444. package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +0 -14
  445. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +0 -24
  446. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +0 -1
  447. package/lib/infrastructure/outbound/adapters/register/index.js.map +0 -1
  448. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +0 -18
  449. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +0 -143
  450. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map +0 -1
  451. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +0 -14
  452. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +0 -136
  453. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js.map +0 -1
  454. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +0 -12
  455. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +0 -103
  456. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js.map +0 -1
  457. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +0 -12
  458. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js.map +0 -1
  459. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +0 -13
  460. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +0 -133
  461. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js.map +0 -1
  462. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +0 -20
  463. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +0 -54
  464. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
  465. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +0 -17
  466. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +0 -1
  467. package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +0 -31
  468. package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +0 -1
  469. package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +0 -7
  470. package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +0 -1
  471. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +0 -1
  472. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +0 -1
  473. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +0 -1
  474. package/lib/infrastructure/utils/env.d.ts +0 -10
  475. package/lib/infrastructure/utils/env.js +0 -32
  476. package/lib/infrastructure/utils/env.js.map +0 -1
  477. package/lib/infrastructure/utils/logger.d.ts +0 -4
  478. package/lib/infrastructure/utils/logger.js +0 -21
  479. package/lib/infrastructure/utils/logger.js.map +0 -1
  480. package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +0 -1
  481. /package/lib/infrastructure/{utils → mappers}/soap-to-dto.mapper.js +0 -0
  482. /package/lib/infrastructure/{outbound/ports/auth → types}/auth-repository.types.js +0 -0
  483. /package/lib/infrastructure/{outbound/ports/soap → types}/soap-repository.types.js +0 -0
  484. /package/lib/infrastructure/{outbound/ports/storage → types}/ticket-storage.types.js +0 -0
@@ -9,12 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RegisterScopeTenRepository = void 0;
13
- const base_soap_repository_1 = require("../soap/base-soap-repository");
14
- const service_names_enum_1 = require("../../../outbound/ports/soap/enums/service-names.enum");
15
- const wsdl_path_enum_1 = require("../../../outbound/ports/soap/enums/wsdl-path.enum");
16
- const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
17
- class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapRepository {
12
+ exports.BaseRegisterRepository = void 0;
13
+ const base_soap_repository_1 = require("../../soap/base-soap-repository");
14
+ const afip_errors_1 = require("../../../../utils/afip-errors");
15
+ class BaseRegisterRepository extends base_soap_repository_1.BaseSoapRepository {
18
16
  constructor(config) {
19
17
  super(config);
20
18
  }
@@ -23,20 +21,16 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
23
21
  if (this.client) {
24
22
  return this.client;
25
23
  }
26
- const wsdlName = this.production
27
- ? wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN
28
- : wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN_TEST;
24
+ const wsdlName = this.production ? this.wsdlProduction : this.wsdlTesting;
29
25
  const endpoint = this.production
30
- ? endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN
31
- : endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN_TEST;
32
- const client = yield this.soapClient.createClient(wsdlName, {
33
- forceSoap12Headers: false,
34
- });
26
+ ? this.endpointProduction
27
+ : this.endpointTesting;
28
+ const { client, soapVersion } = yield this.createSoapClient(wsdlName, { forceSoap12Headers: false });
35
29
  this.soapClient.setEndpoint(client, endpoint);
36
30
  this.client = this.createAuthenticatedProxy(client, {
37
- serviceName: service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_TEN,
31
+ serviceName: this.serviceName,
38
32
  injectAuthProperty: true,
39
- soapVersion: endpoints_enum_1.SoapServiceVersion.ServiceSoap,
33
+ soapVersion,
40
34
  authMapper: (auth) => ({
41
35
  token: auth.Auth.Token,
42
36
  sign: auth.Auth.Sign,
@@ -63,40 +57,48 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
63
57
  return __awaiter(this, void 0, void 0, function* () {
64
58
  var _a;
65
59
  const client = yield this.getClient();
60
+ const methodName = this.personaMethod;
66
61
  try {
67
- const [output] = yield client.getPersonaAsync({
62
+ const call = client[methodName];
63
+ if (typeof call !== "function") {
64
+ throw new Error(`Method ${methodName} not found on register client`);
65
+ }
66
+ const [output] = yield call.call(client, {
68
67
  idPersona: identifier,
69
68
  });
70
69
  const personaReturn = output.personaReturn;
71
- if (!personaReturn || !personaReturn.persona) {
70
+ if (!personaReturn) {
71
+ return null;
72
+ }
73
+ // ws_sr_constancia_inscripción devuelve datos* en la raíz de personaReturn (sin .persona).
74
+ // Si solo viene errorConstancia, debe ser null.
75
+ const pr = (_a = personaReturn.persona) !== null && _a !== void 0 ? _a : personaReturn;
76
+ const hasTaxpayerPayload = pr.datosGenerales != null ||
77
+ pr.datosMonotributo != null ||
78
+ pr.datosRegimenGeneral != null ||
79
+ (pr.idPersona !== undefined && pr.idPersona !== null);
80
+ if (!hasTaxpayerPayload) {
72
81
  return null;
73
82
  }
74
83
  return this.mapPersonaReturnToDto(personaReturn);
75
84
  }
76
85
  catch (error) {
77
- if ((error === null || error === void 0 ? void 0 : error.code) === 602 || ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes("no existe"))) {
86
+ if ((0, afip_errors_1.isAfipNotFoundError)(error)) {
78
87
  return null;
79
88
  }
80
- // Create a new error with only serializable properties to avoid circular structure issues
81
- const sanitizedError = new Error((error === null || error === void 0 ? void 0 : error.message) || "Unknown error");
82
- sanitizedError.name = (error === null || error === void 0 ? void 0 : error.name) || "Error";
83
- if (error === null || error === void 0 ? void 0 : error.code) {
84
- sanitizedError.code = error.code;
85
- }
86
- if (error === null || error === void 0 ? void 0 : error.stack) {
87
- sanitizedError.stack = error.stack;
88
- }
89
- throw sanitizedError;
89
+ throw error;
90
90
  }
91
91
  });
92
92
  }
93
93
  mapPersonaReturnToDto(personaReturn) {
94
+ var _a, _b, _c;
94
95
  const persona = personaReturn.persona || personaReturn;
96
+ const datosGenerales = persona.datosGenerales;
95
97
  return {
96
- idPersona: persona.idPersona,
97
- tipoPersona: persona.tipoPersona,
98
- estadoClave: persona.estadoClave,
99
- datosGenerales: persona.datosGenerales || persona,
98
+ idPersona: (_a = persona.idPersona) !== null && _a !== void 0 ? _a : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.idPersona,
99
+ tipoPersona: (_b = persona.tipoPersona) !== null && _b !== void 0 ? _b : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.tipoPersona,
100
+ estadoClave: (_c = persona.estadoClave) !== null && _c !== void 0 ? _c : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.estadoClave,
101
+ datosGenerales: datosGenerales || persona,
100
102
  datosMonotributo: persona.datosMonotributo,
101
103
  datosRegimenGeneral: persona.datosRegimenGeneral,
102
104
  errorConstancia: persona.errorConstancia
@@ -108,5 +110,5 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
108
110
  };
109
111
  }
110
112
  }
111
- exports.RegisterScopeTenRepository = RegisterScopeTenRepository;
112
- //# sourceMappingURL=register-scope-ten.repository.js.map
113
+ exports.BaseRegisterRepository = BaseRegisterRepository;
114
+ //# sourceMappingURL=base-register-repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-register-repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/base-register-repository.ts"],"names":[],"mappings":"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"}
@@ -1,7 +1,3 @@
1
- /**
2
- * Register Adapters
3
- * Exports all register adapters
4
- */
5
1
  export * from "./register-scope-four.repository";
6
2
  export * from "./register-scope-five.repository";
7
3
  export * from "./register-scope-ten.repository";
@@ -14,10 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- /**
18
- * Register Adapters
19
- * Exports all register adapters
20
- */
21
17
  __exportStar(require("./register-scope-four.repository"), exports);
22
18
  __exportStar(require("./register-scope-five.repository"), exports);
23
19
  __exportStar(require("./register-scope-ten.repository"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,uEAAqD;AACrD,0EAAwD"}
@@ -0,0 +1,15 @@
1
+ import { IRegisterInscriptionProofRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
2
+ import { BaseBatchRegisterRepository } from "./base-batch-register-repository";
3
+ import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
4
+ import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
5
+ import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
6
+ import { IPersonaServiceInscriptionProofPortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort";
7
+ export declare class RegisterInscriptionProofRepository extends BaseBatchRegisterRepository<IPersonaServiceInscriptionProofPortSoap> implements IRegisterInscriptionProofRepositoryPort {
8
+ protected serviceName: ServiceNamesEnum;
9
+ protected wsdlProduction: WsdlPathEnum;
10
+ protected wsdlTesting: WsdlPathEnum;
11
+ protected endpointProduction: EndpointsEnum;
12
+ protected endpointTesting: EndpointsEnum;
13
+ protected personaMethod: "getPersona_v2Async";
14
+ protected personaListMethod: "getPersonaList_v2Async";
15
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterInscriptionProofRepository = void 0;
4
+ const base_batch_register_repository_1 = require("./base-batch-register-repository");
5
+ const service_names_enum_1 = require("../../../../constants/service-names.enum");
6
+ const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
7
+ const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
8
+ class RegisterInscriptionProofRepository extends base_batch_register_repository_1.BaseBatchRegisterRepository {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_INSCRIPTION_PROOF;
12
+ this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF;
13
+ this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF_TEST;
14
+ this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF;
15
+ this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF_TEST;
16
+ this.personaMethod = "getPersona_v2Async";
17
+ this.personaListMethod = "getPersonaList_v2Async";
18
+ }
19
+ }
20
+ exports.RegisterInscriptionProofRepository = RegisterInscriptionProofRepository;
21
+ //# sourceMappingURL=register-inscription-proof.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-inscription-proof.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,kCACX,SAAQ,4DAAoE;IAD9E;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,sBAAsB,CAAC;QACtD,mBAAc,GAAG,6BAAY,CAAC,sBAAsB,CAAC;QACrD,gBAAW,GAAG,6BAAY,CAAC,2BAA2B,CAAC;QACvD,uBAAkB,GAAG,8BAAa,CAAC,sBAAsB,CAAC;QAC1D,oBAAe,GAAG,8BAAa,CAAC,2BAA2B,CAAC;QAC5D,kBAAa,GAAG,oBAA6B,CAAC;QAC9C,sBAAiB,GAAG,wBAAiC,CAAC;IAClE,CAAC;CAAA;AAXD,gFAWC"}
@@ -0,0 +1,15 @@
1
+ import { IRegisterScopeFiveRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
2
+ import { BaseBatchRegisterRepository } from "./base-batch-register-repository";
3
+ import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
4
+ import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
5
+ import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
6
+ import { IPersonaServiceA5PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port";
7
+ export declare class RegisterScopeFiveRepository extends BaseBatchRegisterRepository<IPersonaServiceA5PortSoap> implements IRegisterScopeFiveRepositoryPort {
8
+ protected serviceName: ServiceNamesEnum;
9
+ protected wsdlProduction: WsdlPathEnum;
10
+ protected wsdlTesting: WsdlPathEnum;
11
+ protected endpointProduction: EndpointsEnum;
12
+ protected endpointTesting: EndpointsEnum;
13
+ protected personaMethod: "getPersona_v2Async";
14
+ protected personaListMethod: "getPersonaList_v2Async";
15
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterScopeFiveRepository = void 0;
4
+ const base_batch_register_repository_1 = require("./base-batch-register-repository");
5
+ const service_names_enum_1 = require("../../../../constants/service-names.enum");
6
+ const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
7
+ const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
8
+ class RegisterScopeFiveRepository extends base_batch_register_repository_1.BaseBatchRegisterRepository {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FIVE;
12
+ this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE;
13
+ this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE_TEST;
14
+ this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE;
15
+ this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE_TEST;
16
+ this.personaMethod = "getPersona_v2Async";
17
+ this.personaListMethod = "getPersonaList_v2Async";
18
+ }
19
+ }
20
+ exports.RegisterScopeFiveRepository = RegisterScopeFiveRepository;
21
+ //# sourceMappingURL=register-scope-five.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-five.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,2BACX,SAAQ,4DAAsD;IADhE;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,gBAAgB,CAAC;QAChD,mBAAc,GAAG,6BAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAW,GAAG,6BAAY,CAAC,qBAAqB,CAAC;QACjD,uBAAkB,GAAG,8BAAa,CAAC,gBAAgB,CAAC;QACpD,oBAAe,GAAG,8BAAa,CAAC,qBAAqB,CAAC;QACtD,kBAAa,GAAG,oBAA6B,CAAC;QAC9C,sBAAiB,GAAG,wBAAiC,CAAC;IAClE,CAAC;CAAA;AAXD,kEAWC"}
@@ -0,0 +1,14 @@
1
+ import { IRegisterScopeFourRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
2
+ import { BaseRegisterRepository } from "./base-register-repository";
3
+ import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
4
+ import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
5
+ import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
6
+ import { IPersonaServiceA4PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port";
7
+ export declare class RegisterScopeFourRepository extends BaseRegisterRepository<IPersonaServiceA4PortSoap> implements IRegisterScopeFourRepositoryPort {
8
+ protected serviceName: ServiceNamesEnum;
9
+ protected wsdlProduction: WsdlPathEnum;
10
+ protected wsdlTesting: WsdlPathEnum;
11
+ protected endpointProduction: EndpointsEnum;
12
+ protected endpointTesting: EndpointsEnum;
13
+ protected personaMethod: "getPersonaAsync";
14
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterScopeFourRepository = void 0;
4
+ const base_register_repository_1 = require("./base-register-repository");
5
+ const service_names_enum_1 = require("../../../../constants/service-names.enum");
6
+ const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
7
+ const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
8
+ class RegisterScopeFourRepository extends base_register_repository_1.BaseRegisterRepository {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FOUR;
12
+ this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR;
13
+ this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR_TEST;
14
+ this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR;
15
+ this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR_TEST;
16
+ this.personaMethod = "getPersonaAsync";
17
+ }
18
+ }
19
+ exports.RegisterScopeFourRepository = RegisterScopeFourRepository;
20
+ //# sourceMappingURL=register-scope-four.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-four.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.ts"],"names":[],"mappings":";;;AACA,yEAAoE;AACpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,2BACX,SAAQ,iDAAiD;IAD3D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,gBAAgB,CAAC;QAChD,mBAAc,GAAG,6BAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAW,GAAG,6BAAY,CAAC,qBAAqB,CAAC;QACjD,uBAAkB,GAAG,8BAAa,CAAC,gBAAgB,CAAC;QACpD,oBAAe,GAAG,8BAAa,CAAC,qBAAqB,CAAC;QACtD,kBAAa,GAAG,iBAA0B,CAAC;IACvD,CAAC;CAAA;AAVD,kEAUC"}
@@ -0,0 +1,14 @@
1
+ import { IRegisterScopeTenRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
2
+ import { BaseRegisterRepository } from "./base-register-repository";
3
+ import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
4
+ import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
5
+ import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
6
+ import { IPersonaServiceA10PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port";
7
+ export declare class RegisterScopeTenRepository extends BaseRegisterRepository<IPersonaServiceA10PortSoap> implements IRegisterScopeTenRepositoryPort {
8
+ protected serviceName: ServiceNamesEnum;
9
+ protected wsdlProduction: WsdlPathEnum;
10
+ protected wsdlTesting: WsdlPathEnum;
11
+ protected endpointProduction: EndpointsEnum;
12
+ protected endpointTesting: EndpointsEnum;
13
+ protected personaMethod: "getPersonaAsync";
14
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterScopeTenRepository = void 0;
4
+ const base_register_repository_1 = require("./base-register-repository");
5
+ const service_names_enum_1 = require("../../../../constants/service-names.enum");
6
+ const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
7
+ const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
8
+ class RegisterScopeTenRepository extends base_register_repository_1.BaseRegisterRepository {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_TEN;
12
+ this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN;
13
+ this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN_TEST;
14
+ this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN;
15
+ this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN_TEST;
16
+ this.personaMethod = "getPersonaAsync";
17
+ }
18
+ }
19
+ exports.RegisterScopeTenRepository = RegisterScopeTenRepository;
20
+ //# sourceMappingURL=register-scope-ten.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-ten.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.ts"],"names":[],"mappings":";;;AACA,yEAAoE;AACpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,0BACX,SAAQ,iDAAkD;IAD5D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,eAAe,CAAC;QAC/C,mBAAc,GAAG,6BAAY,CAAC,eAAe,CAAC;QAC9C,gBAAW,GAAG,6BAAY,CAAC,oBAAoB,CAAC;QAChD,uBAAkB,GAAG,8BAAa,CAAC,eAAe,CAAC;QACnD,oBAAe,GAAG,8BAAa,CAAC,oBAAoB,CAAC;QACrD,kBAAa,GAAG,iBAA0B,CAAC;IACvD,CAAC;CAAA;AAVD,gEAUC"}
@@ -0,0 +1,16 @@
1
+ import { IRegisterScopeThirteenRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
2
+ import { BaseRegisterRepository } from "./base-register-repository";
3
+ import { TaxIDByDocumentResultDto } from "../../../../../application/dto/register.dto";
4
+ import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
5
+ import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
6
+ import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
7
+ import { IPersonaServiceA13PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port";
8
+ export declare class RegisterScopeThirteenRepository extends BaseRegisterRepository<IPersonaServiceA13PortSoap> implements IRegisterScopeThirteenRepositoryPort {
9
+ protected serviceName: ServiceNamesEnum;
10
+ protected wsdlProduction: WsdlPathEnum;
11
+ protected wsdlTesting: WsdlPathEnum;
12
+ protected endpointProduction: EndpointsEnum;
13
+ protected endpointTesting: EndpointsEnum;
14
+ protected personaMethod: "getPersonaAsync";
15
+ getTaxIDByDocument(documentNumber: string): Promise<TaxIDByDocumentResultDto>;
16
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RegisterScopeThirteenRepository = void 0;
13
+ const base_register_repository_1 = require("./base-register-repository");
14
+ const service_names_enum_1 = require("../../../../constants/service-names.enum");
15
+ const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
16
+ const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
17
+ const afip_errors_1 = require("../../../../utils/afip-errors");
18
+ class RegisterScopeThirteenRepository extends base_register_repository_1.BaseRegisterRepository {
19
+ constructor() {
20
+ super(...arguments);
21
+ this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_THIRTEEN;
22
+ this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_THIRTEEN;
23
+ this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_THIRTEEN_TEST;
24
+ this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_THIRTEEN;
25
+ this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_THIRTEEN_TEST;
26
+ this.personaMethod = "getPersonaAsync";
27
+ }
28
+ getTaxIDByDocument(documentNumber) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const client = yield this.getClient();
31
+ try {
32
+ const [output] = yield client.getIdPersonaListByDocumentoAsync({
33
+ documento: documentNumber,
34
+ });
35
+ const idPersonaListReturn = output.idPersonaListReturn;
36
+ const idPersona = Array.isArray(idPersonaListReturn.idPersona)
37
+ ? idPersonaListReturn.idPersona
38
+ : typeof idPersonaListReturn.idPersona === "number"
39
+ ? [idPersonaListReturn.idPersona]
40
+ : [];
41
+ return {
42
+ idPersona,
43
+ errorConstancia: undefined,
44
+ };
45
+ }
46
+ catch (error) {
47
+ if ((0, afip_errors_1.isAfipNotFoundError)(error)) {
48
+ return {
49
+ idPersona: [],
50
+ errorConstancia: undefined,
51
+ };
52
+ }
53
+ throw error;
54
+ }
55
+ });
56
+ }
57
+ }
58
+ exports.RegisterScopeThirteenRepository = RegisterScopeThirteenRepository;
59
+ //# sourceMappingURL=register-scope-thirteen.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-thirteen.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yEAAoE;AAEpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAEzF,mEAAwE;AAExE,MAAa,+BACX,SAAQ,iDAAkD;IAD5D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,oBAAoB,CAAC;QACpD,mBAAc,GAAG,6BAAY,CAAC,oBAAoB,CAAC;QACnD,gBAAW,GAAG,6BAAY,CAAC,yBAAyB,CAAC;QACrD,uBAAkB,GAAG,8BAAa,CAAC,oBAAoB,CAAC;QACxD,oBAAe,GAAG,8BAAa,CAAC,yBAAyB,CAAC;QAC1D,kBAAa,GAAG,iBAA0B,CAAC;IAkCvD,CAAC;IAhCO,kBAAkB,CACtB,cAAsB;;YAEtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YAEtC,IAAI,CAAC;gBACH,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC;oBAC7D,SAAS,EAAE,cAAc;iBACnB,CAAC,CAAC;gBAEV,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;gBAEvD,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC;oBAC5D,CAAC,CAAC,mBAAmB,CAAC,SAAS;oBAC/B,CAAC,CAAC,OAAO,mBAAmB,CAAC,SAAS,KAAK,QAAQ;wBACjD,CAAC,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC;wBACjC,CAAC,CAAC,EAAE,CAAC;gBAET,OAAO;oBACL,SAAS;oBACT,eAAe,EAAE,SAAS;iBAC3B,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,IAAI,IAAA,iCAAmB,EAAC,KAAK,CAAC,EAAE,CAAC;oBAC/B,OAAO;wBACL,SAAS,EAAE,EAAE;wBACb,eAAe,EAAE,SAAS;qBAC3B,CAAC;gBACJ,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KAAA;CACF;AA3CD,0EA2CC"}
@@ -1,24 +1,22 @@
1
- /**
2
- * Base SOAP Repository
3
- * Abstract base class for SOAP repositories with common authentication proxy logic
4
- */
5
1
  import { Client } from "soap";
6
2
  import { ISoapClientPort } from "../../../outbound/ports/soap/soap-client.port";
7
3
  import { IAuthenticationRepositoryPort } from "../../../../application/ports/authentication/authentication-repository.port";
8
- import { ILoggerPort } from "../../../outbound/ports/logger/logger.port";
9
- import { BaseSoapRepositoryConstructorConfig, AuthenticatedProxyOptions } from "../../../outbound/ports/soap/soap-repository.types";
10
- /**
11
- * Base class for SOAP repositories
12
- * Provides common functionality for authentication proxy
13
- */
4
+ import type { ISoapOptions } from "../../../types/soap-client.types";
5
+ import { BaseSoapRepositoryConstructorConfig, AuthenticatedProxyOptions, SoapClientResult } from "../../../types/soap-repository.types";
14
6
  export declare abstract class BaseSoapRepository {
15
7
  protected readonly cuit: number;
16
8
  protected readonly production: boolean;
17
9
  protected readonly soapClient: ISoapClientPort;
18
10
  protected readonly authRepository: IAuthenticationRepositoryPort;
19
- protected readonly logger: ILoggerPort;
20
11
  protected readonly useSoap12: boolean;
21
12
  constructor(config: BaseSoapRepositoryConstructorConfig);
13
+ /**
14
+ * Helper to create a SOAP client with the correct version-specific headers
15
+ * @param wsdl WSDL path or name
16
+ * @param options Additional SOAP client options
17
+ * @returns Object containing the created client and the soap version used
18
+ */
19
+ protected createSoapClient<T extends Client>(wsdl: string, options?: ISoapOptions): Promise<SoapClientResult<T>>;
22
20
  /**
23
21
  * Create a proxy that automatically injects Auth into SOAP method calls
24
22
  * Only intercepts methods that actually require Auth (checked via client.describe())
@@ -12,19 +12,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BaseSoapRepository = void 0;
13
13
  const soap_client_1 = require("./soap-client");
14
14
  const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
15
- /**
16
- * Base class for SOAP repositories
17
- * Provides common functionality for authentication proxy
18
- */
15
+ const constants_1 = require("../../../constants");
19
16
  class BaseSoapRepository {
20
17
  constructor(config) {
21
- var _a, _b, _c;
22
- this.soapClient = (_a = config.soapClient) !== null && _a !== void 0 ? _a : new soap_client_1.SoapClient();
18
+ var _a, _b, _c, _d;
19
+ this.soapClient =
20
+ (_a = config.soapClient) !== null && _a !== void 0 ? _a : new soap_client_1.SoapClient((_b = config.useHttpsAgent) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_USE_HTTPS_AGENT);
23
21
  this.authRepository = config.authRepository;
24
- this.logger = config.logger;
25
22
  this.cuit = config.cuit;
26
- this.production = (_b = config.production) !== null && _b !== void 0 ? _b : false;
27
- this.useSoap12 = (_c = config.useSoap12) !== null && _c !== void 0 ? _c : true; // Default to SOAP 1.2
23
+ this.production = (_c = config.production) !== null && _c !== void 0 ? _c : false;
24
+ this.useSoap12 = (_d = config.useSoap12) !== null && _d !== void 0 ? _d : true; // Default to SOAP 1.2
25
+ }
26
+ /**
27
+ * Helper to create a SOAP client with the correct version-specific headers
28
+ * @param wsdl WSDL path or name
29
+ * @param options Additional SOAP client options
30
+ * @returns Object containing the created client and the soap version used
31
+ */
32
+ createSoapClient(wsdl_1) {
33
+ return __awaiter(this, arguments, void 0, function* (wsdl, options = {}) {
34
+ var _a;
35
+ const useSoap12 = (_a = options.forceSoap12Headers) !== null && _a !== void 0 ? _a : this.useSoap12;
36
+ const soapVersion = useSoap12
37
+ ? endpoints_enum_1.SoapServiceVersion.ServiceSoap12
38
+ : endpoints_enum_1.SoapServiceVersion.ServiceSoap;
39
+ const client = yield this.soapClient.createClient(wsdl, Object.assign(Object.assign({}, options), { forceSoap12Headers: useSoap12 }));
40
+ return { client, soapVersion };
41
+ });
28
42
  }
29
43
  /**
30
44
  * Create a proxy that automatically injects Auth into SOAP method calls
@@ -35,13 +49,13 @@ class BaseSoapRepository {
35
49
  */
36
50
  createAuthenticatedProxy(client, options) {
37
51
  const { serviceName, injectAuthProperty = false, soapVersion = endpoints_enum_1.SoapServiceVersion.ServiceSoap12, } = options;
52
+ const soapServices = client.describe();
38
53
  return new Proxy(client, {
39
54
  get: (target, prop) => {
40
55
  var _a, _b, _c, _d, _e;
41
56
  const original = target[prop];
42
57
  if (typeof original === "function" && prop.endsWith("Async")) {
43
58
  const func = prop.slice(0, -5);
44
- const soapServices = client.describe();
45
59
  const methodRequiresAuth = !((_a = options.excludeMethods) === null || _a === void 0 ? void 0 : _a.includes(func)) &&
46
60
  (!!options.authMapper ||
47
61
  ((_e = (_d = (_c = (_b = soapServices === null || soapServices === void 0 ? void 0 : soapServices.Service) === null || _b === void 0 ? void 0 : _b[soapVersion]) === null || _c === void 0 ? void 0 : _c[func]) === null || _d === void 0 ? void 0 : _d.input) === null || _e === void 0 ? void 0 : _e["Auth"]) !==
@@ -50,7 +64,9 @@ class BaseSoapRepository {
50
64
  return (params) => __awaiter(this, void 0, void 0, function* () {
51
65
  const ticket = yield this.authRepository.login(serviceName);
52
66
  const auth = this.authRepository.getAuthParams(ticket, this.cuit);
53
- let authParams = injectAuthProperty ? auth.Auth : auth;
67
+ let authParams = injectAuthProperty
68
+ ? auth.Auth
69
+ : auth;
54
70
  if (options.authMapper) {
55
71
  authParams = options.authMapper(auth);
56
72
  }
@@ -1 +1 @@
1
- {"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,+CAA2C;AAI3C,6FAA8F;AAM9F;;;GAGG;AACH,MAAsB,kBAAkB;IAQtC,YAAY,MAA2C;;QACrD,IAAI,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,IAAI,wBAAU,EAAE,CAAC;QACxD,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,KAAK,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,SAAS,mCAAI,IAAI,CAAC,CAAC,sBAAsB;IACnE,CAAC;IAED;;;;;;OAMG;IACO,wBAAwB,CAChC,MAAS,EACT,OAAkC;QAElC,MAAM,EACJ,WAAW,EACX,kBAAkB,GAAG,KAAK,EAC1B,WAAW,GAAG,mCAAkB,CAAC,aAAa,GAC/C,GAAG,OAAO,CAAC;QACZ,OAAO,IAAI,KAAK,CAAC,MAAM,EAAE;YACvB,GAAG,EAAE,CAAC,MAAS,EAAE,IAAY,EAAE,EAAE;;gBAC/B,MAAM,QAAQ,GAAI,MAAc,CAAC,IAAI,CAAC,CAAC;gBACvC,IAAI,OAAO,QAAQ,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;oBAC7D,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;oBAC/B,MAAM,YAAY,GAAqB,MAAc,CAAC,QAAQ,EAAE,CAAC;oBACjE,MAAM,kBAAkB,GACtB,CAAC,CAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;wBACvC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU;4BACnB,CAAA,MAAA,MAAA,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,0CAAG,WAAW,CAAC,0CAAG,IAAI,CAAC,0CAAE,KAAK,0CAAG,MAAM,CAAC;gCAC3D,SAAS,CAAC,CAAC;oBAEjB,IAAI,kBAAkB,EAAE,CAAC;wBACvB,OAAO,CAAO,MAAW,EAAE,EAAE;4BAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;4BAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;4BAElE,IAAI,UAAU,GAAG,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;4BAEvD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;gCACvB,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;4BACxC,CAAC;4BAED,MAAM,cAAc,mCAAQ,UAAU,GAAK,MAAM,CAAE,CAAC;4BACpD,OAAQ,QAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;wBACxD,CAAC,CAAA,CAAC;oBACJ,CAAC;gBACH,CAAC;gBACD,OAAO,QAAQ,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAjED,gDAiEC"}
1
+ {"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ export { createSoapEngine } from "./soap-engine.factory";
2
+ export type { EngineConfig } from "../../../../types/soap-engine.types";
3
+ export { detectSoapRuntime, type SoapRuntime, } from "../../../../utils/soap-runtime";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.detectSoapRuntime = exports.createSoapEngine = void 0;
4
+ var soap_engine_factory_1 = require("./soap-engine.factory");
5
+ Object.defineProperty(exports, "createSoapEngine", { enumerable: true, get: function () { return soap_engine_factory_1.createSoapEngine; } });
6
+ var soap_runtime_1 = require("../../../../utils/soap-runtime");
7
+ Object.defineProperty(exports, "detectSoapRuntime", { enumerable: true, get: function () { return soap_runtime_1.detectSoapRuntime; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/soap/engines/index.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AAAhD,uHAAA,gBAAgB,OAAA;AAEzB,mEAG4C;AAF1C,iHAAA,iBAAiB,OAAA"}
@@ -0,0 +1 @@
1
+ export declare function createLegacyHttpsAgent(): Promise<import("https").Agent>;
@@ -0,0 +1,69 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
36
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
37
+ return new (P || (P = Promise))(function (resolve, reject) {
38
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
39
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
40
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
41
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
42
+ });
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.createLegacyHttpsAgent = createLegacyHttpsAgent;
46
+ const constants_1 = require("../../../../constants");
47
+ function createLegacyHttpsAgent() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ /**
50
+ * IMPORTANT: We use dynamic imports (import()) here to ensure this file
51
+ * can be loaded in non-Node.js environments (like Cloudflare Workers)
52
+ * without throwing errors for missing built-in modules like 'https' or 'crypto'.
53
+ */
54
+ const [https, crypto] = yield Promise.all([
55
+ Promise.resolve().then(() => __importStar(require("https"))),
56
+ Promise.resolve().then(() => __importStar(require("crypto"))),
57
+ ]);
58
+ const secureOptions = crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT |
59
+ crypto.constants.SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION;
60
+ return new https.Agent({
61
+ rejectUnauthorized: true,
62
+ minDHSize: constants_1.MIN_DH_SIZE_LEGACY,
63
+ ciphers: "DEFAULT@SECLEVEL=1",
64
+ secureProtocol: "TLSv1_2_method",
65
+ secureOptions,
66
+ });
67
+ });
68
+ }
69
+ //# sourceMappingURL=node-security.engine.js.map