@arcasdk/core 0.3.6 → 1.3.1

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,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-security.engine.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/soap/engines/node-security.engine.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wDAsBC;AAxBD,yDAA+D;AAE/D,SAAsB,sBAAsB;;QAC1C;;;;WAIG;QACH,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;8DACjC,OAAO;8DACP,QAAQ;SAChB,CAAC,CAAC;QAEH,MAAM,aAAa,GACjB,MAAM,CAAC,SAAS,CAAC,4BAA4B;YAC7C,MAAM,CAAC,SAAS,CAAC,wCAAwC,CAAC;QAE5D,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC;YACrB,kBAAkB,EAAE,IAAI;YACxB,SAAS,EAAE,8BAAkB;YAC7B,OAAO,EAAE,oBAAoB;YAC7B,cAAc,EAAE,gBAAgB;YAChC,aAAa;SACd,CAAC,CAAC;IACL,CAAC;CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { EngineConfig } from "../../../../types/soap-engine.types";
2
+ import { IHttpClient } from "soap";
3
+ export declare function createSoapEngine(config: EngineConfig): Promise<IHttpClient>;
@@ -0,0 +1,67 @@
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.createSoapEngine = createSoapEngine;
46
+ const soap_runtime_1 = require("../../../../utils/soap-runtime");
47
+ const soap_1 = require("soap");
48
+ function createSoapEngine(config) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const { useHttpsAgent, runtime, requestOptions } = config;
51
+ if (runtime === soap_runtime_1.SoapRuntime.Node) {
52
+ const httpClient = new soap_1.HttpClient(requestOptions);
53
+ if (useHttpsAgent) {
54
+ const { createLegacyHttpsAgent } = yield Promise.resolve().then(() => __importStar(require("./node-security.engine")));
55
+ const agent = yield createLegacyHttpsAgent();
56
+ const originalRequest = httpClient.request.bind(httpClient);
57
+ httpClient.request = (rurl, data, callback, exheaders, exoptions) => {
58
+ return originalRequest(rurl, data, callback, exheaders, Object.assign(Object.assign({}, exoptions), { httpsAgent: (exoptions === null || exoptions === void 0 ? void 0 : exoptions.httpsAgent) || agent }));
59
+ };
60
+ }
61
+ return httpClient;
62
+ }
63
+ const { FetchHttpClient } = yield Promise.resolve().then(() => __importStar(require("./universal-transport.engine")));
64
+ return new FetchHttpClient();
65
+ });
66
+ }
67
+ //# sourceMappingURL=soap-engine.factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-engine.factory.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,4CAyBC;AA5BD,qEAAiE;AACjE,+BAA+C;AAE/C,SAAsB,gBAAgB,CACpC,MAAoB;;QAEpB,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAE1D,IAAI,OAAO,KAAK,0BAAW,CAAC,IAAI,EAAE,CAAC;YACjC,MAAM,UAAU,GAAG,IAAI,iBAAU,CAAC,cAAc,CAAC,CAAC;YAElD,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,EAAE,sBAAsB,EAAE,GAAG,wDAAa,wBAAwB,GAAC,CAAC;gBAC1E,MAAM,KAAK,GAAG,MAAM,sBAAsB,EAAE,CAAC;gBAC7C,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC5D,UAAU,CAAC,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE;oBAClE,OAAO,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,kCACjD,SAAS,KACZ,UAAU,EAAE,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,UAAU,KAAI,KAAK,IAC1C,CAAC;gBACL,CAAC,CAAC;YACJ,CAAC;YAED,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,MAAM,EAAE,eAAe,EAAE,GAAG,wDAAa,8BAA8B,GAAC,CAAC;QACzE,OAAO,IAAI,eAAe,EAAE,CAAC;IAC/B,CAAC;CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { SoapHttpClientRequestArgs, SoapHttpClientRequestReturn } from "../../../../types/soap-engine.types";
2
+ import { IHttpClient } from "soap";
3
+ export declare class FetchHttpClient implements IHttpClient {
4
+ request(...args: SoapHttpClientRequestArgs): SoapHttpClientRequestReturn;
5
+ }
@@ -0,0 +1,43 @@
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.FetchHttpClient = void 0;
13
+ class FetchHttpClient {
14
+ request(...args) {
15
+ var _a;
16
+ const [rurl, data, callback, exheaders, exoptions] = args;
17
+ const method = data ? "POST" : "GET";
18
+ const headers = Object.assign({}, (exheaders !== null && exheaders !== void 0 ? exheaders : {}));
19
+ if (data) {
20
+ headers["Content-Type"] =
21
+ headers["Content-Type"] || "text/xml; charset=utf-8";
22
+ }
23
+ const options = Object.assign({ method,
24
+ headers, body: (_a = data) !== null && _a !== void 0 ? _a : null }, (exoptions !== null && exoptions !== void 0 ? exoptions : {}));
25
+ const requestPromise = fetch(rurl, options)
26
+ .then((response) => __awaiter(this, void 0, void 0, function* () {
27
+ const body = yield response.text();
28
+ const res = {
29
+ statusCode: response.status,
30
+ headers: Object.fromEntries(response.headers.entries()),
31
+ body,
32
+ data: body, // axios/soap expects 'data' prop sometimes
33
+ };
34
+ callback(null, res, body);
35
+ }))
36
+ .catch((error) => {
37
+ callback(error);
38
+ });
39
+ return requestPromise;
40
+ }
41
+ }
42
+ exports.FetchHttpClient = FetchHttpClient;
43
+ //# sourceMappingURL=universal-transport.engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"universal-transport.engine.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,eAAe;IACnB,OAAO,CACZ,GAAG,IAA+B;;QAElC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;QAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;QACrC,MAAM,OAAO,qBACP,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAA0B,CAC/C,CAAC;QAEF,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,CAAC,cAAc,CAAC;gBACrB,OAAO,CAAC,cAAc,CAAC,IAAI,yBAAyB,CAAC;QACzD,CAAC;QAED,MAAM,OAAO,mBACX,MAAM;YACN,OAAO,EACP,IAAI,EAAE,MAAC,IAAoC,mCAAI,IAAI,IAC/C,CAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,CAAiB,CACtC,CAAC;QAEF,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC;aACxC,IAAI,CAAC,CAAO,QAAQ,EAAE,EAAE;YACvB,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAEnC,MAAM,GAAG,GAA8B;gBACrC,UAAU,EAAE,QAAQ,CAAC,MAAM;gBAC3B,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;gBACvD,IAAI;gBACJ,IAAI,EAAE,IAAI,EAAE,2CAA2C;aACxD,CAAC;YAEF,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAA,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YACf,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QAEL,OAAO,cAAwD,CAAC;IAClE,CAAC;CACF;AAzCD,0CAyCC"}
@@ -1,13 +1,10 @@
1
- /**
2
- * SOAP Client
3
- * Implements ISoapClientPort using the soap library
4
- */
5
1
  import { ISoapClientPort } from "../../../outbound/ports/soap/soap-client.port";
2
+ import type { ISoapOptions, SoapCallResult } from "../../../types/soap-client.types";
6
3
  import { Client } from "soap";
7
4
  export declare class SoapClient implements ISoapClientPort {
8
- private useHttpsAgent;
5
+ private readonly useHttpsAgent;
9
6
  constructor(useHttpsAgent?: boolean);
10
- createClient<T extends Client>(wsdlName: string, options?: any): Promise<T>;
11
- setEndpoint(client: any, endpoint: string): void;
12
- call<T extends [any, string, any, string]>(client: any, methodName: string, params: any): Promise<T>;
7
+ createClient<T extends Client>(wsdlName: string, options?: ISoapOptions): Promise<T>;
8
+ setEndpoint(client: Client, endpoint: string): void;
9
+ call<T extends SoapCallResult>(client: Client, methodName: string, params: unknown): Promise<T>;
13
10
  }
@@ -41,9 +41,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
41
41
  step((generator = generator.apply(thisArg, _arguments || [])).next());
42
42
  });
43
43
  };
44
+ var __rest = (this && this.__rest) || function (s, e) {
45
+ var t = {};
46
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
47
+ t[p] = s[p];
48
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
49
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
50
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
51
+ t[p[i]] = s[p[i]];
52
+ }
53
+ return t;
54
+ };
44
55
  Object.defineProperty(exports, "__esModule", { value: true });
45
56
  exports.SoapClient = void 0;
46
- const soap_client_facade_1 = require("./soap-client-facade");
57
+ const soap_1 = require("soap");
47
58
  const constants_1 = require("../../../constants");
48
59
  const wsdl_strings_1 = require("./wsdl-strings");
49
60
  const std_env_1 = require("std-env");
@@ -51,33 +62,29 @@ class SoapClient {
51
62
  constructor(useHttpsAgent = constants_1.DEFAULT_USE_HTTPS_AGENT) {
52
63
  this.useHttpsAgent = useHttpsAgent;
53
64
  }
54
- createClient(wsdlName, options) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- var _a;
57
- const finalOptions = Object.assign({ disableCache: true, forceSoap12Headers: (_a = options === null || options === void 0 ? void 0 : options.forceSoap12Headers) !== null && _a !== void 0 ? _a : false }, options);
58
- // Only create HTTPS agent if:
59
- // 1. We're in a Node.js environment (detected via std-env)
60
- // 2. useHttpsAgent is enabled (see DEFAULT_USE_HTTPS_AGENT constant)
61
- if (this.useHttpsAgent && std_env_1.isNode) {
62
- try {
63
- // Dynamic import to avoid issues in non-Node environments
64
- const https = yield Promise.resolve().then(() => __importStar(require("https")));
65
- const legacyHttpsAgent = new https.Agent({
66
- rejectUnauthorized: true,
67
- minDHSize: constants_1.MIN_DH_SIZE_LEGACY,
68
- });
69
- finalOptions.wsdl_options = Object.assign(Object.assign({}, finalOptions.wsdl_options), { httpsAgent: legacyHttpsAgent });
70
- finalOptions.request = Object.assign(Object.assign({}, finalOptions.request), { httpsAgent: legacyHttpsAgent });
71
- }
72
- catch (error) {
73
- // If https module is not available (e.g., Cloudflare Workers), skip agent
74
- // The SOAP library will use the default fetch adapter
75
- // Silently continue without the agent - this is expected in non-Node environments
76
- }
65
+ createClient(wsdlName_1) {
66
+ return __awaiter(this, arguments, void 0, function* (wsdlName, options = {}) {
67
+ var _a, _b;
68
+ const { wsdlContent, request: adapterRequestOptions } = options, soapOptions = __rest(options, ["wsdlContent", "request"]);
69
+ const finalOptions = Object.assign(Object.assign({}, soapOptions), { disableCache: true, forceSoap12Headers: (_a = soapOptions.forceSoap12Headers) !== null && _a !== void 0 ? _a : false });
70
+ if (!finalOptions.httpClient) {
71
+ /**
72
+ * We use dynamic import here to avoid loading the entire engines module
73
+ * (which might include Node-specific or Universal-specific code)
74
+ * until we absolutely need it during client creation.
75
+ */
76
+ const { createSoapEngine, detectSoapRuntime } = yield Promise.resolve().then(() => __importStar(require("./engines")));
77
+ finalOptions.httpClient = yield createSoapEngine({
78
+ runtime: (_b = options.runtime) !== null && _b !== void 0 ? _b : detectSoapRuntime(std_env_1.isNode),
79
+ useHttpsAgent: this.useHttpsAgent,
80
+ requestOptions: adapterRequestOptions == null
81
+ ? undefined
82
+ : adapterRequestOptions,
83
+ });
77
84
  }
78
85
  let wsdlXml;
79
- if (options === null || options === void 0 ? void 0 : options.wsdlContent) {
80
- wsdlXml = options.wsdlContent;
86
+ if (wsdlContent) {
87
+ wsdlXml = wsdlContent;
81
88
  }
82
89
  else {
83
90
  wsdlXml = (0, wsdl_strings_1.getWsdlString)(wsdlName);
@@ -85,23 +92,21 @@ class SoapClient {
85
92
  throw new Error(`WSDL ${wsdlName} not found`);
86
93
  }
87
94
  }
88
- return soap_client_facade_1.SoapClientFacade.create({
89
- wsdl: wsdlXml,
90
- options: finalOptions,
91
- });
95
+ return (yield (0, soap_1.createClientAsync)(wsdlXml, finalOptions));
92
96
  });
93
97
  }
94
98
  setEndpoint(client, endpoint) {
95
- if (client && typeof client.setEndpoint === "function") {
99
+ if (typeof client.setEndpoint === "function") {
96
100
  client.setEndpoint(endpoint);
97
101
  }
98
102
  }
99
103
  call(client, methodName, params) {
100
104
  return __awaiter(this, void 0, void 0, function* () {
101
- if (!client || typeof client[methodName] !== "function") {
105
+ const method = client[methodName];
106
+ if (typeof method !== "function") {
102
107
  throw new Error(`Method ${methodName} not found on SOAP client`);
103
108
  }
104
- return client[methodName](params);
109
+ return method(params);
105
110
  });
106
111
  }
107
112
  }
@@ -1 +1 @@
1
- {"version":3,"file":"soap-client.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,6DAAwD;AAExD,yDAGmC;AACnC,iDAA+C;AAC/C,qCAAiC;AAEjC,MAAa,UAAU;IAGrB,YAAY,gBAAyB,mCAAuB;QAC1D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEK,YAAY,CAChB,QAAgB,EAChB,OAAa;;;YAEb,MAAM,YAAY,mBAChB,YAAY,EAAE,IAAI,EAClB,kBAAkB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,KAAK,IACrD,OAAO,CACX,CAAC;YAEF,8BAA8B;YAC9B,2DAA2D;YAC3D,qEAAqE;YACrE,IAAI,IAAI,CAAC,aAAa,IAAI,gBAAM,EAAE,CAAC;gBACjC,IAAI,CAAC;oBACH,0DAA0D;oBAC1D,MAAM,KAAK,GAAG,wDAAa,OAAO,GAAC,CAAC;oBACpC,MAAM,gBAAgB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;wBACvC,kBAAkB,EAAE,IAAI;wBACxB,SAAS,EAAE,8BAAkB;qBAC9B,CAAC,CAAC;oBAEH,YAAY,CAAC,YAAY,mCACpB,YAAY,CAAC,YAAY,KAC5B,UAAU,EAAE,gBAAgB,GAC7B,CAAC;oBACF,YAAY,CAAC,OAAO,mCACf,YAAY,CAAC,OAAO,KACvB,UAAU,EAAE,gBAAgB,GAC7B,CAAC;gBACJ,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,0EAA0E;oBAC1E,sDAAsD;oBACtD,kFAAkF;gBACpF,CAAC;YACH,CAAC;YAED,IAAI,OAA2B,CAAC;YAChC,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAE,CAAC;gBACzB,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACN,OAAO,GAAG,IAAA,4BAAa,EAAC,QAAQ,CAAC,CAAC;gBAClC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,MAAM,IAAI,KAAK,CAAC,QAAQ,QAAQ,YAAY,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;YAED,OAAO,qCAAgB,CAAC,MAAM,CAAI;gBAChC,IAAI,EAAE,OAAQ;gBACd,OAAO,EAAE,YAAY;aACtB,CAAC,CAAC;QACL,CAAC;KAAA;IAED,WAAW,CAAC,MAAW,EAAE,QAAgB;QACvC,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YACvD,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAEK,IAAI,CACR,MAAW,EACX,UAAkB,EAClB,MAAW;;YAEX,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE,CAAC;gBACxD,MAAM,IAAI,KAAK,CAAC,UAAU,UAAU,2BAA2B,CAAC,CAAC;YACnE,CAAC;YAED,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAe,CAAC;QAClD,CAAC;KAAA;CACF;AA7ED,gCA6EC"}
1
+ {"version":3,"file":"soap-client.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,+BAAgE;AAChE,yDAAoE;AACpE,iDAA+C;AAC/C,qCAAiC;AAEjC,MAAa,UAAU;IAGrB,YAAY,gBAAyB,mCAAuB;QAC1D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEK,YAAY;6DAChB,QAAgB,EAChB,UAAwB,EAAE;;YAE1B,MAAM,EACJ,WAAW,EACX,OAAO,EAAE,qBAAqB,KAE5B,OAAO,EADN,WAAW,UACZ,OAAO,EAJL,0BAIL,CAAU,CAAC;YACZ,MAAM,YAAY,mCACb,WAAW,KACd,YAAY,EAAE,IAAI,EAClB,kBAAkB,EAAE,MAAA,WAAW,CAAC,kBAAkB,mCAAI,KAAK,GAC5D,CAAC;YAEF,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;gBAC7B;;;;mBAIG;gBACH,MAAM,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,wDAAa,WAAW,GAAC,CAAC;gBAC1E,YAAY,CAAC,UAAU,GAAG,MAAM,gBAAgB,CAAC;oBAC/C,OAAO,EAAE,MAAA,OAAO,CAAC,OAAO,mCAAI,iBAAiB,CAAC,gBAAM,CAAC;oBACrD,aAAa,EAAE,IAAI,CAAC,aAAa;oBACjC,cAAc,EACZ,qBAAqB,IAAI,IAAI;wBAC3B,CAAC,CAAC,SAAS;wBACX,CAAC,CAAE,qBAAkC;iBAC1C,CAAC,CAAC;YACL,CAAC;YAED,IAAI,OAA2B,CAAC;YAChC,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,GAAG,WAAW,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,OAAO,GAAG,IAAA,4BAAa,EAAC,QAAQ,CAAC,CAAC;gBAClC,IAAI,CAAC,OAAO,EAAE,CAAC;oBACb,MAAM,IAAI,KAAK,CAAC,QAAQ,QAAQ,YAAY,CAAC,CAAC;gBAChD,CAAC;YACH,CAAC;YAED,OAAO,CAAC,MAAM,IAAA,wBAAiB,EAAC,OAAO,EAAE,YAAY,CAAC,CAAM,CAAC;QAC/D,CAAC;KAAA;IAED,WAAW,CAAC,MAAc,EAAE,QAAgB;QAC1C,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YAC7C,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAEK,IAAI,CACR,MAAc,EACd,UAAkB,EAClB,MAAe;;YAEf,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;YAClC,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;gBACjC,MAAM,IAAI,KAAK,CAAC,UAAU,UAAU,2BAA2B,CAAC,CAAC;YACnE,CAAC;YAED,OAAO,MAAM,CAAC,MAAM,CAAe,CAAC;QACtC,CAAC;KAAA;CACF;AAtED,gCAsEC"}