@arcasdk/core 0.3.6 → 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 (483) 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 +6 -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 +0 -4
  260. package/lib/infrastructure/constants/default-config.constants.js +0 -4
  261. package/lib/infrastructure/constants/default-config.constants.js.map +1 -1
  262. package/lib/infrastructure/constants/index.d.ts +2 -4
  263. package/lib/infrastructure/constants/index.js +2 -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 +20 -13
  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 +21 -7
  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 +5 -8
  349. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +38 -33
  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/{outbound/ports/auth → types}/auth-repository.types.d.ts +3 -7
  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 +11 -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 +15 -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 -97
  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 -55
  464. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
  465. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +0 -1
  466. package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +0 -31
  467. package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +0 -1
  468. package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +0 -7
  469. package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +0 -1
  470. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +0 -1
  471. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +0 -1
  472. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +0 -1
  473. package/lib/infrastructure/utils/env.d.ts +0 -10
  474. package/lib/infrastructure/utils/env.js +0 -32
  475. package/lib/infrastructure/utils/env.js.map +0 -1
  476. package/lib/infrastructure/utils/logger.d.ts +0 -4
  477. package/lib/infrastructure/utils/logger.js +0 -21
  478. package/lib/infrastructure/utils/logger.js.map +0 -1
  479. package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +0 -1
  480. /package/lib/infrastructure/{utils → mappers}/soap-to-dto.mapper.js +0 -0
  481. /package/lib/infrastructure/{outbound/ports/auth → types}/auth-repository.types.js +0 -0
  482. /package/lib/infrastructure/{outbound/ports/soap → types}/soap-repository.types.js +0 -0
  483. /package/lib/infrastructure/{outbound/ports/storage → types}/ticket-storage.types.js +0 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ServiceSoap12.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceSoap12.js","sourceRoot":"","sources":["../../../../../../../src/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.ts"],"names":[],"mappings":""}
@@ -345,6 +345,10 @@ export declare namespace ServiceSoapTypes {
345
345
  MonId: string;
346
346
  /** http://ar.gov.afip.dif.FEV1/#s:double(undefined) */
347
347
  MonCotiz: number;
348
+ /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
349
+ CanMisMonExt?: string;
350
+ /** http://ar.gov.afip.dif.FEV1/#s:int(undefined) */
351
+ CondicionIVAReceptorId?: number;
348
352
  CbtesAsoc?: ServiceSoapTypes.ICbtesAsoc;
349
353
  Tributos?: ServiceSoapTypes.ITributos;
350
354
  Iva?: ServiceSoapTypes.IIva;
@@ -558,16 +562,20 @@ export declare namespace ServiceSoapTypes {
558
562
  MonId: string;
559
563
  /** http://ar.gov.afip.dif.FEV1/#s:double(undefined) */
560
564
  MonCotiz: number;
561
- CbtesAsoc: ServiceSoapTypes.ICbtesAsoc;
562
- Tributos: ServiceSoapTypes.ITributos;
563
- Iva: ServiceSoapTypes.IIva;
564
- Opcionales: ServiceSoapTypes.IOpcionales;
565
- Compradores: ServiceSoapTypes.ICompradores;
566
- PeriodoAsoc: ServiceSoapTypes.IPeriodoAsoc;
567
565
  /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
568
- CAEA: string;
566
+ CanMisMonExt?: string;
567
+ /** http://ar.gov.afip.dif.FEV1/#s:int(undefined) */
568
+ CondicionIVAReceptorId?: number;
569
+ CbtesAsoc?: ServiceSoapTypes.ICbtesAsoc;
570
+ Tributos?: ServiceSoapTypes.ITributos;
571
+ Iva?: ServiceSoapTypes.IIva;
572
+ Opcionales?: ServiceSoapTypes.IOpcionales;
573
+ Compradores?: ServiceSoapTypes.ICompradores;
574
+ PeriodoAsoc?: ServiceSoapTypes.IPeriodoAsoc;
575
+ /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
576
+ CAEA?: string;
569
577
  /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
570
- CbteFchHsGen: string;
578
+ CbteFchHsGen?: string;
571
579
  }
572
580
  interface IFeCAEARegInfReq {
573
581
  FeCabReq: ServiceSoapTypes.IFeCabReq;
@@ -386,6 +386,10 @@ export declare namespace ServiceSoap12Types {
386
386
  MonId: string;
387
387
  /** http://ar.gov.afip.dif.FEV1/#s:double(undefined) */
388
388
  MonCotiz: number;
389
+ /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
390
+ CanMisMonExt?: string;
391
+ /** http://ar.gov.afip.dif.FEV1/#s:int(undefined) */
392
+ CondicionIVAReceptorId?: number;
389
393
  CbtesAsoc?: ServiceSoap12Types.ICbtesAsoc;
390
394
  Tributos?: ServiceSoap12Types.ITributos;
391
395
  Iva?: ServiceSoap12Types.IIva;
@@ -599,16 +603,20 @@ export declare namespace ServiceSoap12Types {
599
603
  MonId: string;
600
604
  /** http://ar.gov.afip.dif.FEV1/#s:double(undefined) */
601
605
  MonCotiz: number;
602
- CbtesAsoc: ServiceSoap12Types.ICbtesAsoc;
603
- Tributos: ServiceSoap12Types.ITributos;
604
- Iva: ServiceSoap12Types.IIva;
605
- Opcionales: ServiceSoap12Types.IOpcionales;
606
- Compradores: ServiceSoap12Types.ICompradores;
607
- PeriodoAsoc: ServiceSoap12Types.IPeriodoAsoc;
608
606
  /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
609
- CAEA: string;
607
+ CanMisMonExt?: string;
608
+ /** http://ar.gov.afip.dif.FEV1/#s:int(undefined) */
609
+ CondicionIVAReceptorId?: number;
610
+ CbtesAsoc?: ServiceSoap12Types.ICbtesAsoc;
611
+ Tributos?: ServiceSoap12Types.ITributos;
612
+ Iva?: ServiceSoap12Types.IIva;
613
+ Opcionales?: ServiceSoap12Types.IOpcionales;
614
+ Compradores?: ServiceSoap12Types.ICompradores;
615
+ PeriodoAsoc?: ServiceSoap12Types.IPeriodoAsoc;
616
+ /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
617
+ CAEA?: string;
610
618
  /** http://ar.gov.afip.dif.FEV1/#s:string(undefined) */
611
- CbteFchHsGen: string;
619
+ CbteFchHsGen?: string;
612
620
  }
613
621
  interface IFeCAEARegInfReq {
614
622
  FeCabReq: ServiceSoap12Types.IFeCabReq;
@@ -11,5 +11,8 @@ export * as PersonaServiceA13 from "./PersonaServiceA13/PersonaServiceA13Port";
11
11
  export * as PersonaServiceA4 from "./PersonaServiceA4/PersonaServiceA4Port";
12
12
  export * as PersonaServiceA5 from "./PersonaServiceA5/PersonaServiceA5Port";
13
13
  export * as PersonaServiceInscriptionProof from "./PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort";
14
+ export * as FECredServiceSoap from "./FECredService/ServiceSoap";
15
+ export * as FEXServiceSoap from "./FEXService/ServiceSoap";
16
+ export * as FEXServiceSoap12 from "./FEXService/ServiceSoap12";
14
17
  export * as ServiceSoapTypes from "./Service/ServiceSoap";
15
18
  export * as ServiceSoap12Types from "./Service/ServiceSoap12";
@@ -40,7 +40,7 @@ var __importStar = (this && this.__importStar) || (function () {
40
40
  };
41
41
  })();
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.ServiceSoap12Types = exports.ServiceSoapTypes = exports.PersonaServiceInscriptionProof = exports.PersonaServiceA5 = exports.PersonaServiceA4 = exports.PersonaServiceA13 = exports.PersonaServiceA10 = exports.LoginCMSService = void 0;
43
+ exports.ServiceSoap12Types = exports.ServiceSoapTypes = exports.FEXServiceSoap12 = exports.FEXServiceSoap = exports.FECredServiceSoap = exports.PersonaServiceInscriptionProof = exports.PersonaServiceA5 = exports.PersonaServiceA4 = exports.PersonaServiceA13 = exports.PersonaServiceA10 = exports.LoginCMSService = void 0;
44
44
  // Export as namespaces to avoid conflicts
45
45
  exports.LoginCMSService = __importStar(require("./LoginCMSService/LoginCms"));
46
46
  exports.PersonaServiceA10 = __importStar(require("./PersonaServiceA10/PersonaServiceA10Port"));
@@ -48,6 +48,9 @@ exports.PersonaServiceA13 = __importStar(require("./PersonaServiceA13/PersonaSer
48
48
  exports.PersonaServiceA4 = __importStar(require("./PersonaServiceA4/PersonaServiceA4Port"));
49
49
  exports.PersonaServiceA5 = __importStar(require("./PersonaServiceA5/PersonaServiceA5Port"));
50
50
  exports.PersonaServiceInscriptionProof = __importStar(require("./PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort"));
51
+ exports.FECredServiceSoap = __importStar(require("./FECredService/ServiceSoap"));
52
+ exports.FEXServiceSoap = __importStar(require("./FEXService/ServiceSoap"));
53
+ exports.FEXServiceSoap12 = __importStar(require("./FEXService/ServiceSoap12"));
51
54
  exports.ServiceSoapTypes = __importStar(require("./Service/ServiceSoap"));
52
55
  exports.ServiceSoap12Types = __importStar(require("./Service/ServiceSoap12"));
53
56
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/ports/soap/interfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA0C;AAC1C,8EAA8D;AAC9D,+FAA+E;AAC/E,+FAA+E;AAC/E,4FAA4E;AAC5E,4FAA4E;AAC5E,sIAAsH;AACtH,0EAA0D;AAC1D,8EAA8D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/ports/soap/interfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA0C;AAC1C,8EAA8D;AAC9D,+FAA+E;AAC/E,+FAA+E;AAC/E,4FAA4E;AAC5E,4FAA4E;AAC5E,sIAAsH;AACtH,iFAAiE;AACjE,2EAA2D;AAC3D,+EAA+D;AAC/D,0EAA0D;AAC1D,8EAA8D"}
@@ -1,8 +1,5 @@
1
- /**
2
- * SOAP Client Port
3
- * Outbound port for SOAP client operations
4
- */
5
1
  import { Client } from "soap";
2
+ import type { ISoapOptions, SoapCallResult } from "../../../types/soap-client.types";
6
3
  export interface ISoapClientPort {
7
4
  /**
8
5
  * Create a SOAP client from a WSDL
@@ -10,15 +7,13 @@ export interface ISoapClientPort {
10
7
  * @param options SOAP client options
11
8
  * @returns The SOAP client
12
9
  */
13
- createClient<T extends Client>(wsdlName: string, options?: any & {
14
- wsdlContent?: string;
15
- }): Promise<T>;
10
+ createClient<T extends Client>(wsdlName: string, options?: ISoapOptions): Promise<T>;
16
11
  /**
17
12
  * Set the endpoint URL for the client
18
13
  * @param client The SOAP client
19
14
  * @param endpoint The endpoint URL
20
15
  */
21
- setEndpoint(client: any, endpoint: string): void;
16
+ setEndpoint(client: Client, endpoint: string): void;
22
17
  /**
23
18
  * Execute a SOAP method
24
19
  * @param client The SOAP client
@@ -26,5 +21,5 @@ export interface ISoapClientPort {
26
21
  * @param params The parameters for the method
27
22
  * @returns The response from the SOAP call (tuple: [result, rawResponse, soapHeader, rawRequest])
28
23
  */
29
- call<T extends [any, string, any, string]>(client: any, methodName: string, params: any): Promise<T>;
24
+ call<T extends SoapCallResult>(client: Client, methodName: string, params: unknown): Promise<T>;
30
25
  }
@@ -1,7 +1,3 @@
1
- /**
2
- * Ticket Storage Port
3
- * Outbound port for ticket storage operations
4
- */
5
1
  import { AccessTicket } from "../../../../domain/entities/access-ticket.entity";
6
2
  export interface ITicketStoragePort {
7
3
  /**
@@ -1,10 +1,6 @@
1
- /**
2
- * Auth Repository Types
3
- * Configuration types for authentication repositories
4
- */
5
- import { ISoapClientPort } from "../soap/soap-client.port";
6
- import { ITicketStoragePort } from "../storage/ticket-storage.port";
7
- import { ILoginCredentials } from "../../../../domain/entities/access-ticket.entity";
1
+ import { ITicketStoragePort } from "../outbound/ports/storage/ticket-storage.port";
2
+ import { ISoapClientPort } from "../outbound/ports/soap/soap-client.port";
3
+ import { ILoginCredentials } from "../../domain/entities/access-ticket.entity";
8
4
  export interface AuthRepositoryConfig {
9
5
  soapClient?: ISoapClientPort;
10
6
  cert: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-repository.types.js","sourceRoot":"","sources":["../../../src/infrastructure/types/auth-repository.types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,6 @@
1
- /**
2
- * Infrastructure Types
3
- * Exports all infrastructure-related types
4
- */
5
1
  export * from "./soap.types";
2
+ export * from "./soap-client.types";
3
+ export * from "./soap-engine.types";
4
+ export * from "./soap-repository.types";
5
+ export * from "./auth-repository.types";
6
+ export * from "./ticket-storage.types";
@@ -14,9 +14,10 @@ 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
- * Infrastructure Types
19
- * Exports all infrastructure-related types
20
- */
21
17
  __exportStar(require("./soap.types"), exports);
18
+ __exportStar(require("./soap-client.types"), exports);
19
+ __exportStar(require("./soap-engine.types"), exports);
20
+ __exportStar(require("./soap-repository.types"), exports);
21
+ __exportStar(require("./auth-repository.types"), exports);
22
+ __exportStar(require("./ticket-storage.types"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,sDAAoC;AACpC,sDAAoC;AACpC,0DAAwC;AACxC,0DAAwC;AACxC,yDAAuC"}
@@ -0,0 +1,21 @@
1
+ import { type SoapRuntime } from "../utils/soap-runtime";
2
+ import { type IHttpClient } from "soap";
3
+ import type { SoapAsyncResultTuple } from "./soap.types";
4
+ /** Standard `soap` call result tuple: [result, rawResponse, soapHeader, rawRequest] */
5
+ export type SoapCallResult = SoapAsyncResultTuple<unknown, unknown>;
6
+ export interface ISoapOptions {
7
+ forceSoap12Headers?: boolean;
8
+ wsdlContent?: string;
9
+ disableCache?: boolean;
10
+ /**
11
+ * Optional runtime override to force a specific internal engine.
12
+ * If omitted, runtime is auto-detected.
13
+ */
14
+ runtime?: SoapRuntime;
15
+ /**
16
+ * Optional custom SOAP transport engine.
17
+ * When defined, internal engine selection is skipped.
18
+ */
19
+ httpClient?: IHttpClient;
20
+ [key: string]: unknown;
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=soap-client.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-client.types.js","sourceRoot":"","sources":["../../../src/infrastructure/types/soap-client.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { IHttpClient, IOptions } from "soap";
2
+ import type { SoapRuntime } from "../utils/soap-runtime";
3
+ export interface EngineConfig {
4
+ useHttpsAgent?: boolean;
5
+ runtime: SoapRuntime;
6
+ /**
7
+ * Options for `soap`'s Node `HttpClient` constructor (`IOptions` in node-soap typings).
8
+ */
9
+ requestOptions?: IOptions;
10
+ }
11
+ export type SoapHttpClientRequestArgs = Parameters<IHttpClient["request"]>;
12
+ export type SoapHttpClientRequestReturn = ReturnType<IHttpClient["request"]>;
13
+ export type SoapTransportHeaders = Record<string, string>;
14
+ export interface SoapTransportLikeResponse {
15
+ statusCode: number;
16
+ headers: SoapTransportHeaders;
17
+ body: string;
18
+ data: string;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=soap-engine.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-engine.types.js","sourceRoot":"","sources":["../../../src/infrastructure/types/soap-engine.types.ts"],"names":[],"mappings":""}
@@ -1,16 +1,16 @@
1
- /**
2
- * SOAP Repository Types
3
- * Configuration types for SOAP repositories
4
- */
5
- import { ISoapClientPort } from "./soap-client.port";
6
- import { IAuthenticationRepositoryPort } from "../../../../application/ports/authentication/authentication-repository.port";
7
- import { ILoggerPort } from "../logger/logger.port";
8
- import { ServiceNamesEnum } from "./enums/service-names.enum";
9
- import { SoapServiceVersion } from "./enums/endpoints.enum";
1
+ import { Client } from "soap";
2
+ import { WSAuthParam } from "../../application/types/auth.types";
3
+ import { IAuthenticationRepositoryPort } from "../../application/ports/authentication/authentication-repository.port";
4
+ import { ISoapClientPort } from "../outbound/ports/soap/soap-client.port";
5
+ import { ServiceNamesEnum } from "../constants/service-names.enum";
6
+ import { SoapServiceVersion } from "../outbound/ports/soap/enums/endpoints.enum";
7
+ export interface SoapClientResult<T extends Client> {
8
+ client: T;
9
+ soapVersion: SoapServiceVersion;
10
+ }
10
11
  export interface BaseSoapRepositoryConstructorConfig {
11
12
  soapClient?: ISoapClientPort;
12
13
  authRepository: IAuthenticationRepositoryPort;
13
- logger: ILoggerPort;
14
14
  cuit: number;
15
15
  production?: boolean;
16
16
  /**
@@ -43,7 +43,7 @@ export interface AuthenticatedProxyOptions {
43
43
  /**
44
44
  * Optional function to map auth parameters before injection
45
45
  */
46
- authMapper?: (auth: any) => any;
46
+ authMapper?: (auth: WSAuthParam) => any;
47
47
  /**
48
48
  * List of methods to exclude from authentication injection
49
49
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-repository.types.js","sourceRoot":"","sources":["../../../src/infrastructure/types/soap-repository.types.ts"],"names":[],"mappings":""}
@@ -1,29 +1,11 @@
1
- /**
2
- * Infrastructure Types - SOAP
3
- * Types related to SOAP infrastructure
4
- */
5
- import { IOptions } from "soap";
6
- import { WsdlPathEnum } from "../outbound/ports/soap/enums/wsdl-path.enum";
7
- import { EndpointsEnum, SoapServiceVersion } from "../outbound/ports/soap/enums/endpoints.enum";
8
- import { ServiceNamesEnum } from "../outbound/ports/soap/enums/service-names.enum";
9
- export type SoapAsyncFunc<I, O> = (input: I, options?: any, extraHeaders?: any) => Promise<[O, string, {
1
+ import { SoapServiceVersion } from "../outbound/ports/soap/enums/endpoints.enum";
2
+ export type SoapAsyncResultTuple<O = unknown, H = unknown> = [
3
+ O,
4
+ string,
5
+ H,
6
+ string
7
+ ];
8
+ export type SoapAsyncFunc<I, O> = (input: I, options?: any, extraHeaders?: any) => Promise<SoapAsyncResultTuple<O, {
10
9
  [k: string]: any;
11
- }, string]>;
12
- export type WSAuthTokens = {
13
- token: string;
14
- sign: string;
15
- expirationDate: string;
16
- };
17
- export type SoapClientParams = {
18
- wsdl: WsdlPathEnum;
19
- options?: IOptions;
20
- };
21
- export type ArcaServiceSoapParam = SoapClientParams & {
22
- v12?: boolean;
23
- url: EndpointsEnum;
24
- url_test?: EndpointsEnum;
25
- wsdl_test?: WsdlPathEnum;
26
- } & {
27
- serviceName: ServiceNamesEnum;
28
- };
10
+ }>>;
29
11
  export type SoapServices<T> = Record<"Service", Record<SoapServiceVersion, Record<keyof T, Record<"input" | "output", Record<string, any>>>>>;
@@ -1,7 +1,3 @@
1
- /**
2
- * Ticket Storage Types
3
- * Configuration types for ticket storage implementations
4
- */
5
1
  export interface FileSystemTicketStorageConfig {
6
2
  ticketPath: string;
7
3
  cuit: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticket-storage.types.js","sourceRoot":"","sources":["../../../src/infrastructure/types/ticket-storage.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export declare function isAfipNotFoundError(error: any): boolean;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isAfipNotFoundError = isAfipNotFoundError;
4
+ function isAfipNotFoundError(error) {
5
+ if (!error)
6
+ return false;
7
+ return (error.code === 602 ||
8
+ (typeof error.message === "string" &&
9
+ error.message.toLowerCase().includes("no existe")));
10
+ }
11
+ //# sourceMappingURL=afip-errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"afip-errors.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/afip-errors.ts"],"names":[],"mappings":";;AAAA,kDAQC;AARD,SAAgB,mBAAmB,CAAC,KAAU;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IAEzB,OAAO,CACL,KAAK,CAAC,IAAI,KAAK,GAAG;QAClB,CAAC,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;YAChC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CACrD,CAAC;AACJ,CAAC"}
@@ -39,7 +39,7 @@ class Cryptography {
39
39
  });
40
40
  p7.sign();
41
41
  const bytes = node_forge_1.default.asn1.toDer(p7.toAsn1()).getBytes();
42
- return Buffer.from(bytes, "binary").toString("base64");
42
+ return node_forge_1.default.util.encode64(bytes).replace(/\r?\n|\r/g, "");
43
43
  }
44
44
  }
45
45
  exports.Cryptography = Cryptography;
@@ -1 +1 @@
1
- {"version":3,"file":"crypt-data.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/crypt-data.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,MAAa,YAAY;IACvB,YAA6B,IAAY,EAAmB,GAAW;QAA1C,SAAI,GAAJ,IAAI,CAAQ;QAAmB,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAC3E,IAAI,CAAC,IAAY;QACf,MAAM,EAAE,GAAG,oBAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;QAC1C,EAAE,CAAC,OAAO,GAAG,oBAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC;YACH,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,CAAC;QACD,EAAE,CAAC,SAAS,CAAC;YACX,uBAAuB,EAAE;gBACvB;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW;oBAChC,KAAK,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI;iBAC3B;gBACD;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa;iBACnC;gBACD;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW;oBAChC,KAAK,EAAE,IAAI,IAAI,EAAS;iBACzB;aACF;YACD,WAAW,EAAE,IAAI,CAAC,IAAI;YACtB,eAAe,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM;YACtC,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC,CAAC;QACH,EAAE,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,KAAK,GAAG,oBAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QACvD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzD,CAAC;CACF;AAhCD,oCAgCC"}
1
+ {"version":3,"file":"crypt-data.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/crypt-data.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA+B;AAE/B,MAAa,YAAY;IACvB,YACmB,IAAY,EACZ,GAAW;QADX,SAAI,GAAJ,IAAI,CAAQ;QACZ,QAAG,GAAH,GAAG,CAAQ;IAC3B,CAAC;IACJ,IAAI,CAAC,IAAY;QACf,MAAM,EAAE,GAAG,oBAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC;QAC1C,EAAE,CAAC,OAAO,GAAG,oBAAK,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACnD,IAAI,CAAC;YACH,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,CAAC;QACD,EAAE,CAAC,SAAS,CAAC;YACX,uBAAuB,EAAE;gBACvB;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW;oBAChC,KAAK,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI;iBAC3B;gBACD;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,aAAa;iBACnC;gBACD;oBACE,IAAI,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW;oBAChC,KAAK,EAAE,IAAI,IAAI,EAAS;iBACzB;aACF;YACD,WAAW,EAAE,IAAI,CAAC,IAAI;YACtB,eAAe,EAAE,oBAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM;YACtC,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC,CAAC;QACH,EAAE,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,KAAK,GAAG,oBAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QACvD,OAAO,oBAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAnCD,oCAmCC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Reference instant for time derivations (Unix seconds, ISO strings, offsets).
3
+ */
4
+ export declare class DateTimeRef {
5
+ private readonly instant;
6
+ constructor(instant: Date);
7
+ static now(): DateTimeRef;
8
+ /** Seconds since Unix epoch (integer). */
9
+ toUnixSeconds(): number;
10
+ /** ISO-8601 for this instant minus `offsetMs`. */
11
+ minusMillisecondsAsIso(offsetMs: number): string;
12
+ /** ISO-8601 for this instant plus `offsetMs`. */
13
+ plusMillisecondsAsIso(offsetMs: number): string;
14
+ /** WSAA TRA `uniqueId` (Unix seconds at request time). */
15
+ wsaaTraUniqueIdSeconds(): number;
16
+ /** WSAA TRA `generationTime`: request time minus the TRA validity window. */
17
+ wsaaTraGenerationTimeIso(): string;
18
+ /** WSAA TRA `expirationTime`: request time plus the TRA validity window. */
19
+ wsaaTraExpirationTimeIso(): string;
20
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DateTimeRef = void 0;
4
+ const time_constants_1 = require("../constants/time.constants");
5
+ /**
6
+ * Reference instant for time derivations (Unix seconds, ISO strings, offsets).
7
+ */
8
+ class DateTimeRef {
9
+ constructor(instant) {
10
+ this.instant = instant;
11
+ }
12
+ static now() {
13
+ return new DateTimeRef(new Date());
14
+ }
15
+ /** Seconds since Unix epoch (integer). */
16
+ toUnixSeconds() {
17
+ return Math.floor(this.instant.getTime() / time_constants_1.MS_PER_SECOND);
18
+ }
19
+ /** ISO-8601 for this instant minus `offsetMs`. */
20
+ minusMillisecondsAsIso(offsetMs) {
21
+ return new Date(this.instant.getTime() - offsetMs).toISOString();
22
+ }
23
+ /** ISO-8601 for this instant plus `offsetMs`. */
24
+ plusMillisecondsAsIso(offsetMs) {
25
+ return new Date(this.instant.getTime() + offsetMs).toISOString();
26
+ }
27
+ /** WSAA TRA `uniqueId` (Unix seconds at request time). */
28
+ wsaaTraUniqueIdSeconds() {
29
+ return this.toUnixSeconds();
30
+ }
31
+ /** WSAA TRA `generationTime`: request time minus the TRA validity window. */
32
+ wsaaTraGenerationTimeIso() {
33
+ return this.minusMillisecondsAsIso(time_constants_1.WSAA_TRA_VALIDITY_WINDOW_MS);
34
+ }
35
+ /** WSAA TRA `expirationTime`: request time plus the TRA validity window. */
36
+ wsaaTraExpirationTimeIso() {
37
+ return this.plusMillisecondsAsIso(time_constants_1.WSAA_TRA_VALIDITY_WINDOW_MS);
38
+ }
39
+ }
40
+ exports.DateTimeRef = DateTimeRef;
41
+ //# sourceMappingURL=datetime-ref.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datetime-ref.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/datetime-ref.ts"],"names":[],"mappings":";;;AAAA,6EAGkD;AAElD;;GAEG;AACH,MAAa,WAAW;IACtB,YAA6B,OAAa;QAAb,YAAO,GAAP,OAAO,CAAM;IAAG,CAAC;IAE9C,MAAM,CAAC,GAAG;QACR,OAAO,IAAI,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,0CAA0C;IAC1C,aAAa;QACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,8BAAa,CAAC,CAAC;IAC5D,CAAC;IAED,kDAAkD;IAClD,sBAAsB,CAAC,QAAgB;QACrC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACnE,CAAC;IAED,iDAAiD;IACjD,qBAAqB,CAAC,QAAgB;QACpC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACnE,CAAC;IAED,0DAA0D;IAC1D,sBAAsB;QACpB,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAED,6EAA6E;IAC7E,wBAAwB;QACtB,OAAO,IAAI,CAAC,sBAAsB,CAAC,4CAA2B,CAAC,CAAC;IAClE,CAAC;IAED,4EAA4E;IAC5E,wBAAwB;QACtB,OAAO,IAAI,CAAC,qBAAqB,CAAC,4CAA2B,CAAC,CAAC;IACjE,CAAC;CACF;AApCD,kCAoCC"}
@@ -1,8 +1,4 @@
1
- /**
2
- * Infrastructure Utils
3
- * Exports all infrastructure utilities
4
- */
5
1
  export * from "./parser";
2
+ export * from "./datetime-ref";
6
3
  export * from "./crypt-data";
7
- export * from "./logger";
8
- export * from "./soap-to-dto.mapper";
4
+ export * from "./soap-runtime";
@@ -14,12 +14,8 @@ 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
- * Infrastructure Utils
19
- * Exports all infrastructure utilities
20
- */
21
17
  __exportStar(require("./parser"), exports);
18
+ __exportStar(require("./datetime-ref"), exports);
22
19
  __exportStar(require("./crypt-data"), exports);
23
- __exportStar(require("./logger"), exports);
24
- __exportStar(require("./soap-to-dto.mapper"), exports);
20
+ __exportStar(require("./soap-runtime"), exports);
25
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,iDAA+B;AAC/B,+CAA6B;AAC7B,iDAA+B"}
@@ -0,0 +1,9 @@
1
+ export declare enum SoapRuntime {
2
+ Node = "node",
3
+ Universal = "universal"
4
+ }
5
+ /**
6
+ * Picks the SOAP transport: Node vs fetch-based universal.
7
+ * Non-Node environments (Workers, browsers, etc.) use {@link SoapRuntime.Universal}.
8
+ */
9
+ export declare function detectSoapRuntime(isNode: boolean): SoapRuntime;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SoapRuntime = void 0;
4
+ exports.detectSoapRuntime = detectSoapRuntime;
5
+ var SoapRuntime;
6
+ (function (SoapRuntime) {
7
+ SoapRuntime["Node"] = "node";
8
+ SoapRuntime["Universal"] = "universal";
9
+ })(SoapRuntime || (exports.SoapRuntime = SoapRuntime = {}));
10
+ /**
11
+ * Picks the SOAP transport: Node vs fetch-based universal.
12
+ * Non-Node environments (Workers, browsers, etc.) use {@link SoapRuntime.Universal}.
13
+ */
14
+ function detectSoapRuntime(isNode) {
15
+ return isNode ? SoapRuntime.Node : SoapRuntime.Universal;
16
+ }
17
+ //# sourceMappingURL=soap-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-runtime.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/soap-runtime.ts"],"names":[],"mappings":";;;AASA,8CAEC;AAXD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;AACzB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,MAAe;IAC/C,OAAO,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC;AAC3D,CAAC"}
package/package.json CHANGED
@@ -1,46 +1,44 @@
1
1
  {
2
2
  "name": "@arcasdk/core",
3
- "version": "0.3.6",
3
+ "version": "1.2.0",
4
4
  "description": "Arca TypeScript SDK - Core package for AFIP/ARCA integration",
5
5
  "source": "src/index.ts",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
8
8
  "scripts": {
9
9
  "build": "npx tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
10
- "test": "jest",
11
- "test:unit": "jest ./tests/unit",
12
- "test:integration": "jest ./tests/integration",
13
- "test:integration:watch": "jest ./tests/integration --watch",
14
- "test:integration:manual": "jest ./tests/integration/electronic-billing-manual-tokens.integration.test.ts",
15
- "test:integration:auto": "jest ./tests/integration/electronic-billing.integration.test.ts",
10
+ "test": "jest --config jest.config.js",
11
+ "test:unit": "jest --config jest.config.js",
12
+ "test:coverage": "jest --config jest.config.js --coverage",
13
+ "test:integration": "jest --config jest.integration.config.js",
14
+ "test:integration:watch": "jest --config jest.integration.config.js --watch",
16
15
  "generate:wsdl-strings": "node scripts/generate-wsdl-strings.js",
16
+ "generate:soap-interfaces": "node scripts/generate-soap-interfaces.js",
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "dependencies": {
20
- "dotenv": "^16.3.1",
21
- "moment": "^2.29.4",
22
20
  "node-forge": "^1.3.1",
23
21
  "soap": "^1.0.0",
24
22
  "std-env": "^3.10.0",
25
- "winston": "^3.10.0",
26
23
  "xml2js": "^0.6.2"
27
24
  },
28
25
  "devDependencies": {
29
- "@jest/globals": "^29.6.2",
30
- "@types/jest": "^29.5.1",
26
+ "@jest/globals": "^30.0.0",
27
+ "@types/jest": "^30.0.0",
31
28
  "@types/node": "^24.10.1",
32
29
  "@types/node-forge": "^1.3.2",
33
30
  "@types/soap": "^0.18.0",
34
31
  "@types/underscore": "^1.11.5",
35
32
  "@types/xml2js": "^0.4.11",
36
- "copyfiles": "^2.4.1",
37
- "jest": "^28.1.3",
38
- "rimraf": "^5.0.7",
39
- "ts-jest": "^28.0.8",
33
+ "dotenv": "^17.0.0",
34
+ "jest": "^30.0.0",
35
+ "rimraf": "^6.0.0",
36
+ "ts-jest": "^29.0.0",
40
37
  "ts-node": "^10.9.1",
41
38
  "tsc-alias": "^1.8.16",
42
39
  "tsconfig-paths": "^4.2.0",
43
- "typescript": "^5.0.4"
40
+ "typescript": "^6.0.3",
41
+ "wsdl-to-ts": "^0.2.3"
44
42
  },
45
43
  "author": "valiuLab",
46
44
  "license": "ISC",
@@ -1,6 +0,0 @@
1
- export declare class Environment {
2
- readonly nodeEnv: string;
3
- constructor();
4
- }
5
- declare const Env: Environment;
6
- export default Env;