@arcasdk/core 0.3.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/dto/electronic-billing.dto.d.ts +0 -5
- package/lib/application/dto/index.d.ts +0 -4
- package/lib/application/dto/index.js +0 -4
- package/lib/application/dto/index.js.map +1 -1
- package/lib/application/dto/register.dto.d.ts +0 -60
- package/lib/application/dto/register.dto.js +0 -5
- package/lib/application/dto/register.dto.js.map +1 -1
- package/lib/application/index.d.ts +0 -1
- package/lib/application/index.js +0 -1
- package/lib/application/index.js.map +1 -1
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +0 -5
- package/lib/application/ports/authentication/index.d.ts +0 -4
- package/lib/application/ports/authentication/index.js +0 -4
- package/lib/application/ports/authentication/index.js.map +1 -1
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +0 -6
- package/lib/application/ports/electronic-billing/index.d.ts +0 -4
- package/lib/application/ports/electronic-billing/index.js +0 -4
- package/lib/application/ports/electronic-billing/index.js.map +1 -1
- package/lib/application/ports/fecred/fecred-repository.port.d.ts +118 -0
- package/lib/application/ports/fecred/fecred-repository.port.js +3 -0
- package/lib/application/ports/fecred/fecred-repository.port.js.map +1 -0
- package/lib/application/ports/fecred/index.d.ts +1 -0
- package/lib/application/ports/fecred/index.js +18 -0
- package/lib/application/ports/fecred/index.js.map +1 -0
- package/lib/application/ports/fex/fex-repository.port.d.ts +116 -0
- package/lib/application/ports/fex/fex-repository.port.js +3 -0
- package/lib/application/ports/fex/fex-repository.port.js.map +1 -0
- package/lib/application/ports/fex/index.d.ts +1 -0
- package/lib/application/ports/fex/index.js +18 -0
- package/lib/application/ports/fex/index.js.map +1 -0
- package/lib/application/ports/generic/generic-repository.port.d.ts +3 -6
- package/lib/application/ports/index.d.ts +2 -4
- package/lib/application/ports/index.js +2 -4
- package/lib/application/ports/index.js.map +1 -1
- package/lib/application/ports/register/index.d.ts +0 -4
- package/lib/application/ports/register/index.js +0 -4
- package/lib/application/ports/register/index.js.map +1 -1
- package/lib/application/ports/register/register-repository.ports.d.ts +0 -4
- package/lib/application/services/electronic-billing.service.d.ts +0 -5
- package/lib/application/services/electronic-billing.service.js +0 -2
- package/lib/application/services/electronic-billing.service.js.map +1 -1
- package/lib/application/services/generic.service.d.ts +3 -6
- package/lib/application/services/generic.service.js +1 -1
- package/lib/application/services/generic.service.js.map +1 -1
- package/lib/application/services/index.d.ts +2 -4
- package/lib/application/services/index.js +2 -4
- package/lib/application/services/index.js.map +1 -1
- package/lib/application/services/register-inscription-proof.service.d.ts +0 -5
- package/lib/application/services/register-inscription-proof.service.js.map +1 -1
- package/lib/application/services/register-scope-five.service.d.ts +0 -5
- package/lib/application/services/register-scope-five.service.js.map +1 -1
- package/lib/application/services/register-scope-four.service.d.ts +0 -5
- package/lib/application/services/register-scope-four.service.js +0 -5
- package/lib/application/services/register-scope-four.service.js.map +1 -1
- package/lib/application/services/register-scope-ten.service.d.ts +0 -5
- package/lib/application/services/register-scope-ten.service.js.map +1 -1
- package/lib/application/services/register-scope-thirteen.service.d.ts +0 -5
- package/lib/application/services/register-scope-thirteen.service.js.map +1 -1
- package/lib/application/services/wsfecred.service.d.ts +46 -0
- package/lib/application/services/wsfecred.service.js +173 -0
- package/lib/application/services/wsfecred.service.js.map +1 -0
- package/lib/application/services/wsfex.service.d.ts +44 -0
- package/lib/application/services/wsfex.service.js +152 -0
- package/lib/application/services/wsfex.service.js.map +1 -0
- package/lib/application/types/auth.types.d.ts +0 -4
- package/lib/application/types/auth.types.js +0 -4
- package/lib/application/types/auth.types.js.map +1 -1
- package/lib/application/types/context.types.d.ts +13 -10
- package/lib/application/types/index.d.ts +0 -4
- package/lib/application/types/index.js +0 -4
- package/lib/application/types/index.js.map +1 -1
- package/lib/application/types/result.types.d.ts +0 -4
- package/lib/application/types/use-case-inputs.types.d.ts +0 -4
- package/lib/application/types/use-case-inputs.types.js +0 -4
- package/lib/application/types/use-case-inputs.types.js.map +1 -1
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +0 -4
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -1
- package/lib/application/use-cases/authentication/index.d.ts +0 -4
- package/lib/application/use-cases/authentication/index.js +0 -4
- package/lib/application/use-cases/authentication/index.js.map +1 -1
- package/lib/application/use-cases/authentication/login.use-case.d.ts +0 -5
- package/lib/application/use-cases/authentication/login.use-case.js.map +1 -1
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +0 -4
- package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -1
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +0 -4
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -1
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +0 -2
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -1
- package/lib/application/use-cases/index.d.ts +2 -0
- package/lib/application/use-cases/index.js +2 -0
- package/lib/application/use-cases/index.js.map +1 -1
- package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +0 -4
- package/lib/application/use-cases/register/get-register-server-status.use-case.js.map +1 -1
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +0 -4
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -1
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +0 -4
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -1
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +0 -4
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -1
- package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/aceptar-fecred.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-comprobantes.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-cta-cte.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-ctas-ctes.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-cuentas-en-agt-dpto-cltv.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-facturas-agt-dpto-cltv.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-comprobante.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-historial-estados-cta-cte.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-monto-obligado-recepcion.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-obligado-recepcion.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-ajustes-operacion.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-formas-cancelacion.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-motivos-rechazo.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/consultar-tipos-retenciones.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/index.d.ts +20 -0
- package/lib/application/use-cases/wsfecred/index.js +37 -0
- package/lib/application/use-cases/wsfecred/index.js.map +1 -0
- package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/informar-cancelacion-total-fecred.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/informar-factura-agt-dpto-cltv.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/modificar-opcion-transferencia.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/obtener-remitos.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/rechazar-fecred.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.js +24 -0
- package/lib/application/use-cases/wsfecred/rechazar-nota-dc.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/authorize.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/authorize.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/authorize.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/check-permiso.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/check-permiso.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/check-permiso.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/dummy.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/dummy.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/dummy.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-cmp.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-cmp.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-cmp.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-last-cmp.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-last-cmp.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-last-cmp.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-last-id.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-last-id.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-last-id.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-actividades.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-actividades.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-actividades.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-cbte-tipo.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-ctz.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-ctz.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-ctz.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-dst-cuit.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-dst-pais.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-idiomas.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-incoterms.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-mon-con-cotizacion.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-mon.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-mon.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-mon.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-opcionales.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-pto-venta.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-tipo-expo.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/get-param-umed.use-case.d.ts +7 -0
- package/lib/application/use-cases/wsfex/get-param-umed.use-case.js +24 -0
- package/lib/application/use-cases/wsfex/get-param-umed.use-case.js.map +1 -0
- package/lib/application/use-cases/wsfex/index.d.ts +19 -0
- package/lib/application/use-cases/wsfex/index.js +36 -0
- package/lib/application/use-cases/wsfex/index.js.map +1 -0
- package/lib/domain/entities/access-ticket.entity.js +6 -10
- package/lib/domain/entities/access-ticket.entity.js.map +1 -1
- package/lib/domain/entities/index.d.ts +0 -4
- package/lib/domain/entities/index.js +0 -4
- package/lib/domain/entities/index.js.map +1 -1
- package/lib/domain/entities/voucher.entity.d.ts +23 -10
- package/lib/domain/entities/voucher.entity.js +52 -14
- package/lib/domain/entities/voucher.entity.js.map +1 -1
- package/lib/domain/index.d.ts +0 -4
- package/lib/domain/index.js +0 -4
- package/lib/domain/index.js.map +1 -1
- package/lib/domain/types/electronic-billing.types.d.ts +0 -5
- package/lib/domain/types/electronic-billing.types.js +0 -5
- package/lib/domain/types/electronic-billing.types.js.map +1 -1
- package/lib/domain/types/index.d.ts +0 -4
- package/lib/domain/types/index.js +0 -4
- package/lib/domain/types/index.js.map +1 -1
- package/lib/domain/types/voucher.types.d.ts +0 -4
- package/lib/domain/value-objects/cae.vo.d.ts +0 -5
- package/lib/domain/value-objects/cae.vo.js +0 -5
- package/lib/domain/value-objects/cae.vo.js.map +1 -1
- package/lib/domain/value-objects/cuit.vo.d.ts +0 -5
- package/lib/domain/value-objects/cuit.vo.js +0 -5
- package/lib/domain/value-objects/cuit.vo.js.map +1 -1
- package/lib/domain/value-objects/index.d.ts +0 -4
- package/lib/domain/value-objects/index.js +0 -4
- package/lib/domain/value-objects/index.js.map +1 -1
- package/lib/domain/value-objects/voucher-number.vo.d.ts +0 -5
- package/lib/domain/value-objects/voucher-number.vo.js +0 -5
- package/lib/domain/value-objects/voucher-number.vo.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +13 -7
- package/lib/index.js.map +1 -1
- package/lib/infrastructure/composition/arca.d.ts +32 -0
- package/lib/infrastructure/composition/arca.js +107 -0
- package/lib/infrastructure/composition/arca.js.map +1 -0
- package/lib/infrastructure/constants/default-config.constants.d.ts +13 -0
- package/lib/infrastructure/constants/default-config.constants.js +17 -0
- package/lib/infrastructure/constants/default-config.constants.js.map +1 -0
- package/lib/infrastructure/constants/index.d.ts +3 -4
- package/lib/infrastructure/constants/index.js +3 -4
- package/lib/infrastructure/constants/index.js.map +1 -1
- package/lib/infrastructure/{outbound/ports/soap/enums → constants}/service-names.enum.d.ts +3 -1
- package/lib/infrastructure/{outbound/ports/soap/enums → constants}/service-names.enum.js +2 -0
- package/lib/infrastructure/constants/service-names.enum.js.map +1 -0
- package/lib/infrastructure/constants/ssl.constants.d.ts +0 -4
- package/lib/infrastructure/constants/ssl.constants.js +0 -4
- package/lib/infrastructure/constants/ssl.constants.js.map +1 -1
- package/lib/infrastructure/constants/time.constants.d.ts +7 -0
- package/lib/infrastructure/constants/time.constants.js +11 -0
- package/lib/infrastructure/constants/time.constants.js.map +1 -0
- package/lib/infrastructure/index.d.ts +0 -4
- package/lib/infrastructure/index.js +0 -4
- package/lib/infrastructure/index.js.map +1 -1
- package/lib/infrastructure/mappers/index.d.ts +1 -0
- package/lib/infrastructure/mappers/index.js +18 -0
- package/lib/infrastructure/mappers/index.js.map +1 -0
- package/lib/infrastructure/{utils → mappers}/soap-to-dto.mapper.d.ts +0 -6
- package/lib/infrastructure/mappers/soap-to-dto.mapper.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/index.d.ts +3 -8
- package/lib/infrastructure/outbound/adapters/index.js +3 -8
- package/lib/infrastructure/outbound/adapters/index.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/{auth → repositories/auth}/auth.repository.d.ts +5 -8
- package/lib/infrastructure/outbound/adapters/{auth → repositories/auth}/auth.repository.js +25 -16
- package/lib/infrastructure/outbound/adapters/repositories/auth/auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/auth/index.d.ts +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/auth/index.js +18 -0
- package/lib/infrastructure/outbound/adapters/repositories/auth/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/electronic-billing-repository.d.ts +21 -12
- package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/electronic-billing-repository.js +107 -176
- package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/electronic-billing-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/index.d.ts +1 -0
- package/lib/infrastructure/outbound/adapters/{electronic-billing → repositories/electronic-billing}/index.js +0 -4
- package/lib/infrastructure/outbound/adapters/repositories/electronic-billing/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.d.ts +29 -0
- package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.js +192 -0
- package/lib/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.d.ts +28 -0
- package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.js +177 -0
- package/lib/infrastructure/outbound/adapters/repositories/fex/fex.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/generic/generic-repository.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/{generic → repositories/generic}/generic-repository.js +7 -20
- package/lib/infrastructure/outbound/adapters/repositories/generic/generic-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/generic/index.d.ts +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/generic/index.js +18 -0
- package/lib/infrastructure/outbound/adapters/repositories/generic/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.d.ts +11 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.js +51 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/base-batch-register-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/base-register-repository.d.ts +24 -0
- package/lib/infrastructure/outbound/adapters/{register/register-scope-ten.repository.js → repositories/register/base-register-repository.js} +37 -35
- package/lib/infrastructure/outbound/adapters/repositories/register/base-register-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/{register → repositories/register}/index.d.ts +0 -4
- package/lib/infrastructure/outbound/adapters/{register → repositories/register}/index.js +0 -4
- package/lib/infrastructure/outbound/adapters/repositories/register/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.d.ts +15 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.js +21 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.d.ts +15 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.js +21 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.js +20 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.js +20 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.d.ts +16 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.js +59 -0
- package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +9 -11
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +27 -11
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/soap/engines/index.d.ts +3 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/index.js +8 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.d.ts +1 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.js +69 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/node-security.engine.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.d.ts +3 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.js +67 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/soap-engine.factory.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.d.ts +5 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.js +43 -0
- package/lib/infrastructure/outbound/adapters/soap/engines/universal-transport.engine.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +6 -7
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +44 -25
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +6264 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +1 -5
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.d.ts +15 -0
- package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.js +57 -0
- package/lib/infrastructure/outbound/adapters/storage/memory-ticket-storage.js.map +1 -0
- package/lib/infrastructure/outbound/index.d.ts +1 -6
- package/lib/infrastructure/outbound/index.js +1 -6
- package/lib/infrastructure/outbound/index.js.map +1 -1
- package/lib/infrastructure/outbound/ports/index.d.ts +3 -9
- package/lib/infrastructure/outbound/ports/index.js +3 -9
- package/lib/infrastructure/outbound/ports/index.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +11 -1
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +10 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +0 -5
- package/lib/infrastructure/outbound/ports/soap/enums/index.js +0 -5
- package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +5 -1
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +4 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/index.d.ts +0 -4
- package/lib/infrastructure/outbound/ports/soap/index.js +0 -4
- package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/FECredService/ServiceSoap.d.ts +932 -0
- package/lib/infrastructure/outbound/ports/{logger/logger.port.js → soap/interfaces/FECredService/ServiceSoap.js} +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/FECredService/ServiceSoap.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap.d.ts +687 -0
- package/lib/infrastructure/outbound/ports/{logger/logger.types.js → soap/interfaces/FEXService/ServiceSoap.js} +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.d.ts +687 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/FEXService/ServiceSoap12.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +16 -8
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +16 -8
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +4 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -1
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +4 -9
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +0 -4
- package/lib/infrastructure/types/auth-repository.types.d.ts +19 -0
- package/lib/infrastructure/types/auth-repository.types.js.map +1 -0
- package/lib/infrastructure/types/index.d.ts +5 -4
- package/lib/infrastructure/types/index.js +5 -4
- package/lib/infrastructure/types/index.js.map +1 -1
- package/lib/infrastructure/types/soap-client.types.d.ts +21 -0
- package/lib/infrastructure/types/soap-client.types.js +3 -0
- package/lib/infrastructure/types/soap-client.types.js.map +1 -0
- package/lib/infrastructure/types/soap-engine.types.d.ts +19 -0
- package/lib/infrastructure/types/soap-engine.types.js +3 -0
- package/lib/infrastructure/types/soap-engine.types.js.map +1 -0
- package/lib/infrastructure/{outbound/ports/soap → types}/soap-repository.types.d.ts +17 -11
- package/lib/infrastructure/types/soap-repository.types.js.map +1 -0
- package/lib/infrastructure/types/soap.types.d.ts +9 -27
- package/lib/infrastructure/{outbound/ports/storage → types}/ticket-storage.types.d.ts +0 -4
- package/lib/infrastructure/types/ticket-storage.types.js.map +1 -0
- package/lib/infrastructure/utils/afip-errors.d.ts +1 -0
- package/lib/infrastructure/utils/afip-errors.js +11 -0
- package/lib/infrastructure/utils/afip-errors.js.map +1 -0
- package/lib/infrastructure/utils/crypt-data.js +1 -1
- package/lib/infrastructure/utils/crypt-data.js.map +1 -1
- package/lib/infrastructure/utils/datetime-ref.d.ts +20 -0
- package/lib/infrastructure/utils/datetime-ref.js +41 -0
- package/lib/infrastructure/utils/datetime-ref.js.map +1 -0
- package/lib/infrastructure/utils/index.d.ts +2 -6
- package/lib/infrastructure/utils/index.js +2 -6
- package/lib/infrastructure/utils/index.js.map +1 -1
- package/lib/infrastructure/utils/soap-runtime.d.ts +9 -0
- package/lib/infrastructure/utils/soap-runtime.js +17 -0
- package/lib/infrastructure/utils/soap-runtime.js.map +1 -0
- package/package.json +16 -17
- package/lib/application/config/env.d.ts +0 -6
- package/lib/application/config/env.js +0 -14
- package/lib/application/config/env.js.map +0 -1
- package/lib/application/config/index.d.ts +0 -6
- package/lib/application/config/index.js +0 -15
- package/lib/application/config/index.js.map +0 -1
- package/lib/infrastructure/inbound/adapters/arca.d.ts +0 -26
- package/lib/infrastructure/inbound/adapters/arca.js +0 -123
- package/lib/infrastructure/inbound/adapters/arca.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +0 -68
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +0 -128
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +0 -5
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/enums.d.ts +0 -43
- package/lib/infrastructure/outbound/adapters/enums.js +0 -49
- package/lib/infrastructure/outbound/adapters/enums.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +0 -13
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +0 -14
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +0 -24
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/index.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +0 -18
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +0 -143
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +0 -14
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +0 -136
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +0 -12
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +0 -103
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +0 -12
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +0 -13
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +0 -133
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +0 -20
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +0 -54
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +0 -17
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +0 -31
- package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +0 -7
- package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +0 -1
- package/lib/infrastructure/utils/env.d.ts +0 -10
- package/lib/infrastructure/utils/env.js +0 -32
- package/lib/infrastructure/utils/env.js.map +0 -1
- package/lib/infrastructure/utils/logger.d.ts +0 -4
- package/lib/infrastructure/utils/logger.js +0 -21
- package/lib/infrastructure/utils/logger.js.map +0 -1
- package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +0 -1
- /package/lib/infrastructure/{utils → mappers}/soap-to-dto.mapper.js +0 -0
- /package/lib/infrastructure/{outbound/ports/auth → types}/auth-repository.types.js +0 -0
- /package/lib/infrastructure/{outbound/ports/soap → types}/soap-repository.types.js +0 -0
- /package/lib/infrastructure/{outbound/ports/storage → types}/ticket-storage.types.js +0 -0
|
@@ -9,12 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const base_soap_repository_1 = require("
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
17
|
-
class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
12
|
+
exports.BaseRegisterRepository = void 0;
|
|
13
|
+
const base_soap_repository_1 = require("../../soap/base-soap-repository");
|
|
14
|
+
const afip_errors_1 = require("../../../../utils/afip-errors");
|
|
15
|
+
class BaseRegisterRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
18
16
|
constructor(config) {
|
|
19
17
|
super(config);
|
|
20
18
|
}
|
|
@@ -23,20 +21,16 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
|
|
|
23
21
|
if (this.client) {
|
|
24
22
|
return this.client;
|
|
25
23
|
}
|
|
26
|
-
const wsdlName = this.production
|
|
27
|
-
? wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN
|
|
28
|
-
: wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN_TEST;
|
|
24
|
+
const wsdlName = this.production ? this.wsdlProduction : this.wsdlTesting;
|
|
29
25
|
const endpoint = this.production
|
|
30
|
-
?
|
|
31
|
-
:
|
|
32
|
-
const client = yield this.
|
|
33
|
-
forceSoap12Headers: false,
|
|
34
|
-
});
|
|
26
|
+
? this.endpointProduction
|
|
27
|
+
: this.endpointTesting;
|
|
28
|
+
const { client, soapVersion } = yield this.createSoapClient(wsdlName, { forceSoap12Headers: false });
|
|
35
29
|
this.soapClient.setEndpoint(client, endpoint);
|
|
36
30
|
this.client = this.createAuthenticatedProxy(client, {
|
|
37
|
-
serviceName:
|
|
31
|
+
serviceName: this.serviceName,
|
|
38
32
|
injectAuthProperty: true,
|
|
39
|
-
soapVersion
|
|
33
|
+
soapVersion,
|
|
40
34
|
authMapper: (auth) => ({
|
|
41
35
|
token: auth.Auth.Token,
|
|
42
36
|
sign: auth.Auth.Sign,
|
|
@@ -63,40 +57,48 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
|
|
|
63
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
58
|
var _a;
|
|
65
59
|
const client = yield this.getClient();
|
|
60
|
+
const methodName = this.personaMethod;
|
|
66
61
|
try {
|
|
67
|
-
const
|
|
62
|
+
const call = client[methodName];
|
|
63
|
+
if (typeof call !== "function") {
|
|
64
|
+
throw new Error(`Method ${methodName} not found on register client`);
|
|
65
|
+
}
|
|
66
|
+
const [output] = yield call.call(client, {
|
|
68
67
|
idPersona: identifier,
|
|
69
68
|
});
|
|
70
69
|
const personaReturn = output.personaReturn;
|
|
71
|
-
if (!personaReturn
|
|
70
|
+
if (!personaReturn) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
// ws_sr_constancia_inscripción devuelve datos* en la raíz de personaReturn (sin .persona).
|
|
74
|
+
// Si solo viene errorConstancia, debe ser null.
|
|
75
|
+
const pr = (_a = personaReturn.persona) !== null && _a !== void 0 ? _a : personaReturn;
|
|
76
|
+
const hasTaxpayerPayload = pr.datosGenerales != null ||
|
|
77
|
+
pr.datosMonotributo != null ||
|
|
78
|
+
pr.datosRegimenGeneral != null ||
|
|
79
|
+
(pr.idPersona !== undefined && pr.idPersona !== null);
|
|
80
|
+
if (!hasTaxpayerPayload) {
|
|
72
81
|
return null;
|
|
73
82
|
}
|
|
74
83
|
return this.mapPersonaReturnToDto(personaReturn);
|
|
75
84
|
}
|
|
76
85
|
catch (error) {
|
|
77
|
-
if ((
|
|
86
|
+
if ((0, afip_errors_1.isAfipNotFoundError)(error)) {
|
|
78
87
|
return null;
|
|
79
88
|
}
|
|
80
|
-
|
|
81
|
-
const sanitizedError = new Error((error === null || error === void 0 ? void 0 : error.message) || "Unknown error");
|
|
82
|
-
sanitizedError.name = (error === null || error === void 0 ? void 0 : error.name) || "Error";
|
|
83
|
-
if (error === null || error === void 0 ? void 0 : error.code) {
|
|
84
|
-
sanitizedError.code = error.code;
|
|
85
|
-
}
|
|
86
|
-
if (error === null || error === void 0 ? void 0 : error.stack) {
|
|
87
|
-
sanitizedError.stack = error.stack;
|
|
88
|
-
}
|
|
89
|
-
throw sanitizedError;
|
|
89
|
+
throw error;
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
mapPersonaReturnToDto(personaReturn) {
|
|
94
|
+
var _a, _b, _c;
|
|
94
95
|
const persona = personaReturn.persona || personaReturn;
|
|
96
|
+
const datosGenerales = persona.datosGenerales;
|
|
95
97
|
return {
|
|
96
|
-
idPersona: persona.idPersona,
|
|
97
|
-
tipoPersona: persona.tipoPersona,
|
|
98
|
-
estadoClave: persona.estadoClave,
|
|
99
|
-
datosGenerales:
|
|
98
|
+
idPersona: (_a = persona.idPersona) !== null && _a !== void 0 ? _a : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.idPersona,
|
|
99
|
+
tipoPersona: (_b = persona.tipoPersona) !== null && _b !== void 0 ? _b : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.tipoPersona,
|
|
100
|
+
estadoClave: (_c = persona.estadoClave) !== null && _c !== void 0 ? _c : datosGenerales === null || datosGenerales === void 0 ? void 0 : datosGenerales.estadoClave,
|
|
101
|
+
datosGenerales: datosGenerales || persona,
|
|
100
102
|
datosMonotributo: persona.datosMonotributo,
|
|
101
103
|
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
102
104
|
errorConstancia: persona.errorConstancia
|
|
@@ -108,5 +110,5 @@ class RegisterScopeTenRepository extends base_soap_repository_1.BaseSoapReposito
|
|
|
108
110
|
};
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
|
-
exports.
|
|
112
|
-
//# sourceMappingURL=register-
|
|
113
|
+
exports.BaseRegisterRepository = BaseRegisterRepository;
|
|
114
|
+
//# sourceMappingURL=base-register-repository.js.map
|
package/lib/infrastructure/outbound/adapters/repositories/register/base-register-repository.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-register-repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/base-register-repository.ts"],"names":[],"mappings":"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"}
|
|
@@ -14,10 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/**
|
|
18
|
-
* Register Adapters
|
|
19
|
-
* Exports all register adapters
|
|
20
|
-
*/
|
|
21
17
|
__exportStar(require("./register-scope-four.repository"), exports);
|
|
22
18
|
__exportStar(require("./register-scope-five.repository"), exports);
|
|
23
19
|
__exportStar(require("./register-scope-ten.repository"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,uEAAqD;AACrD,0EAAwD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRegisterInscriptionProofRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
2
|
+
import { BaseBatchRegisterRepository } from "./base-batch-register-repository";
|
|
3
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
4
|
+
import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
|
|
5
|
+
import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
|
|
6
|
+
import { IPersonaServiceInscriptionProofPortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort";
|
|
7
|
+
export declare class RegisterInscriptionProofRepository extends BaseBatchRegisterRepository<IPersonaServiceInscriptionProofPortSoap> implements IRegisterInscriptionProofRepositoryPort {
|
|
8
|
+
protected serviceName: ServiceNamesEnum;
|
|
9
|
+
protected wsdlProduction: WsdlPathEnum;
|
|
10
|
+
protected wsdlTesting: WsdlPathEnum;
|
|
11
|
+
protected endpointProduction: EndpointsEnum;
|
|
12
|
+
protected endpointTesting: EndpointsEnum;
|
|
13
|
+
protected personaMethod: "getPersona_v2Async";
|
|
14
|
+
protected personaListMethod: "getPersonaList_v2Async";
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterInscriptionProofRepository = void 0;
|
|
4
|
+
const base_batch_register_repository_1 = require("./base-batch-register-repository");
|
|
5
|
+
const service_names_enum_1 = require("../../../../constants/service-names.enum");
|
|
6
|
+
const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
7
|
+
const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
|
|
8
|
+
class RegisterInscriptionProofRepository extends base_batch_register_repository_1.BaseBatchRegisterRepository {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_INSCRIPTION_PROOF;
|
|
12
|
+
this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF;
|
|
13
|
+
this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF_TEST;
|
|
14
|
+
this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF;
|
|
15
|
+
this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF_TEST;
|
|
16
|
+
this.personaMethod = "getPersona_v2Async";
|
|
17
|
+
this.personaListMethod = "getPersonaList_v2Async";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RegisterInscriptionProofRepository = RegisterInscriptionProofRepository;
|
|
21
|
+
//# sourceMappingURL=register-inscription-proof.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-inscription-proof.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-inscription-proof.repository.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,kCACX,SAAQ,4DAAoE;IAD9E;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,sBAAsB,CAAC;QACtD,mBAAc,GAAG,6BAAY,CAAC,sBAAsB,CAAC;QACrD,gBAAW,GAAG,6BAAY,CAAC,2BAA2B,CAAC;QACvD,uBAAkB,GAAG,8BAAa,CAAC,sBAAsB,CAAC;QAC1D,oBAAe,GAAG,8BAAa,CAAC,2BAA2B,CAAC;QAC5D,kBAAa,GAAG,oBAA6B,CAAC;QAC9C,sBAAiB,GAAG,wBAAiC,CAAC;IAClE,CAAC;CAAA;AAXD,gFAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IRegisterScopeFiveRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
2
|
+
import { BaseBatchRegisterRepository } from "./base-batch-register-repository";
|
|
3
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
4
|
+
import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
|
|
5
|
+
import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
|
|
6
|
+
import { IPersonaServiceA5PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port";
|
|
7
|
+
export declare class RegisterScopeFiveRepository extends BaseBatchRegisterRepository<IPersonaServiceA5PortSoap> implements IRegisterScopeFiveRepositoryPort {
|
|
8
|
+
protected serviceName: ServiceNamesEnum;
|
|
9
|
+
protected wsdlProduction: WsdlPathEnum;
|
|
10
|
+
protected wsdlTesting: WsdlPathEnum;
|
|
11
|
+
protected endpointProduction: EndpointsEnum;
|
|
12
|
+
protected endpointTesting: EndpointsEnum;
|
|
13
|
+
protected personaMethod: "getPersona_v2Async";
|
|
14
|
+
protected personaListMethod: "getPersonaList_v2Async";
|
|
15
|
+
}
|
package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterScopeFiveRepository = void 0;
|
|
4
|
+
const base_batch_register_repository_1 = require("./base-batch-register-repository");
|
|
5
|
+
const service_names_enum_1 = require("../../../../constants/service-names.enum");
|
|
6
|
+
const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
7
|
+
const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
|
|
8
|
+
class RegisterScopeFiveRepository extends base_batch_register_repository_1.BaseBatchRegisterRepository {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FIVE;
|
|
12
|
+
this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE;
|
|
13
|
+
this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE_TEST;
|
|
14
|
+
this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE;
|
|
15
|
+
this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE_TEST;
|
|
16
|
+
this.personaMethod = "getPersona_v2Async";
|
|
17
|
+
this.personaListMethod = "getPersonaList_v2Async";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RegisterScopeFiveRepository = RegisterScopeFiveRepository;
|
|
21
|
+
//# sourceMappingURL=register-scope-five.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-scope-five.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-five.repository.ts"],"names":[],"mappings":";;;AACA,qFAA+E;AAC/E,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,2BACX,SAAQ,4DAAsD;IADhE;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,gBAAgB,CAAC;QAChD,mBAAc,GAAG,6BAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAW,GAAG,6BAAY,CAAC,qBAAqB,CAAC;QACjD,uBAAkB,GAAG,8BAAa,CAAC,gBAAgB,CAAC;QACpD,oBAAe,GAAG,8BAAa,CAAC,qBAAqB,CAAC;QACtD,kBAAa,GAAG,oBAA6B,CAAC;QAC9C,sBAAiB,GAAG,wBAAiC,CAAC;IAClE,CAAC;CAAA;AAXD,kEAWC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IRegisterScopeFourRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
2
|
+
import { BaseRegisterRepository } from "./base-register-repository";
|
|
3
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
4
|
+
import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
|
|
5
|
+
import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
|
|
6
|
+
import { IPersonaServiceA4PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port";
|
|
7
|
+
export declare class RegisterScopeFourRepository extends BaseRegisterRepository<IPersonaServiceA4PortSoap> implements IRegisterScopeFourRepositoryPort {
|
|
8
|
+
protected serviceName: ServiceNamesEnum;
|
|
9
|
+
protected wsdlProduction: WsdlPathEnum;
|
|
10
|
+
protected wsdlTesting: WsdlPathEnum;
|
|
11
|
+
protected endpointProduction: EndpointsEnum;
|
|
12
|
+
protected endpointTesting: EndpointsEnum;
|
|
13
|
+
protected personaMethod: "getPersonaAsync";
|
|
14
|
+
}
|
package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterScopeFourRepository = void 0;
|
|
4
|
+
const base_register_repository_1 = require("./base-register-repository");
|
|
5
|
+
const service_names_enum_1 = require("../../../../constants/service-names.enum");
|
|
6
|
+
const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
7
|
+
const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
|
|
8
|
+
class RegisterScopeFourRepository extends base_register_repository_1.BaseRegisterRepository {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FOUR;
|
|
12
|
+
this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR;
|
|
13
|
+
this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR_TEST;
|
|
14
|
+
this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR;
|
|
15
|
+
this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR_TEST;
|
|
16
|
+
this.personaMethod = "getPersonaAsync";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.RegisterScopeFourRepository = RegisterScopeFourRepository;
|
|
20
|
+
//# sourceMappingURL=register-scope-four.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-scope-four.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-four.repository.ts"],"names":[],"mappings":";;;AACA,yEAAoE;AACpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,2BACX,SAAQ,iDAAiD;IAD3D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,gBAAgB,CAAC;QAChD,mBAAc,GAAG,6BAAY,CAAC,gBAAgB,CAAC;QAC/C,gBAAW,GAAG,6BAAY,CAAC,qBAAqB,CAAC;QACjD,uBAAkB,GAAG,8BAAa,CAAC,gBAAgB,CAAC;QACpD,oBAAe,GAAG,8BAAa,CAAC,qBAAqB,CAAC;QACtD,kBAAa,GAAG,iBAA0B,CAAC;IACvD,CAAC;CAAA;AAVD,kEAUC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IRegisterScopeTenRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
2
|
+
import { BaseRegisterRepository } from "./base-register-repository";
|
|
3
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
4
|
+
import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
|
|
5
|
+
import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
|
|
6
|
+
import { IPersonaServiceA10PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port";
|
|
7
|
+
export declare class RegisterScopeTenRepository extends BaseRegisterRepository<IPersonaServiceA10PortSoap> implements IRegisterScopeTenRepositoryPort {
|
|
8
|
+
protected serviceName: ServiceNamesEnum;
|
|
9
|
+
protected wsdlProduction: WsdlPathEnum;
|
|
10
|
+
protected wsdlTesting: WsdlPathEnum;
|
|
11
|
+
protected endpointProduction: EndpointsEnum;
|
|
12
|
+
protected endpointTesting: EndpointsEnum;
|
|
13
|
+
protected personaMethod: "getPersonaAsync";
|
|
14
|
+
}
|
package/lib/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterScopeTenRepository = void 0;
|
|
4
|
+
const base_register_repository_1 = require("./base-register-repository");
|
|
5
|
+
const service_names_enum_1 = require("../../../../constants/service-names.enum");
|
|
6
|
+
const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
7
|
+
const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
|
|
8
|
+
class RegisterScopeTenRepository extends base_register_repository_1.BaseRegisterRepository {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_TEN;
|
|
12
|
+
this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN;
|
|
13
|
+
this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_TEN_TEST;
|
|
14
|
+
this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN;
|
|
15
|
+
this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_TEN_TEST;
|
|
16
|
+
this.personaMethod = "getPersonaAsync";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.RegisterScopeTenRepository = RegisterScopeTenRepository;
|
|
20
|
+
//# sourceMappingURL=register-scope-ten.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-scope-ten.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-ten.repository.ts"],"names":[],"mappings":";;;AACA,yEAAoE;AACpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAGzF,MAAa,0BACX,SAAQ,iDAAkD;IAD5D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,eAAe,CAAC;QAC/C,mBAAc,GAAG,6BAAY,CAAC,eAAe,CAAC;QAC9C,gBAAW,GAAG,6BAAY,CAAC,oBAAoB,CAAC;QAChD,uBAAkB,GAAG,8BAAa,CAAC,eAAe,CAAC;QACnD,oBAAe,GAAG,8BAAa,CAAC,oBAAoB,CAAC;QACrD,kBAAa,GAAG,iBAA0B,CAAC;IACvD,CAAC;CAAA;AAVD,gEAUC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IRegisterScopeThirteenRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
2
|
+
import { BaseRegisterRepository } from "./base-register-repository";
|
|
3
|
+
import { TaxIDByDocumentResultDto } from "../../../../../application/dto/register.dto";
|
|
4
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
5
|
+
import { WsdlPathEnum } from "../../../../outbound/ports/soap/enums/wsdl-path.enum";
|
|
6
|
+
import { EndpointsEnum } from "../../../../outbound/ports/soap/enums/endpoints.enum";
|
|
7
|
+
import { IPersonaServiceA13PortSoap } from "../../../../outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port";
|
|
8
|
+
export declare class RegisterScopeThirteenRepository extends BaseRegisterRepository<IPersonaServiceA13PortSoap> implements IRegisterScopeThirteenRepositoryPort {
|
|
9
|
+
protected serviceName: ServiceNamesEnum;
|
|
10
|
+
protected wsdlProduction: WsdlPathEnum;
|
|
11
|
+
protected wsdlTesting: WsdlPathEnum;
|
|
12
|
+
protected endpointProduction: EndpointsEnum;
|
|
13
|
+
protected endpointTesting: EndpointsEnum;
|
|
14
|
+
protected personaMethod: "getPersonaAsync";
|
|
15
|
+
getTaxIDByDocument(documentNumber: string): Promise<TaxIDByDocumentResultDto>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RegisterScopeThirteenRepository = void 0;
|
|
13
|
+
const base_register_repository_1 = require("./base-register-repository");
|
|
14
|
+
const service_names_enum_1 = require("../../../../constants/service-names.enum");
|
|
15
|
+
const wsdl_path_enum_1 = require("../../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
16
|
+
const endpoints_enum_1 = require("../../../../outbound/ports/soap/enums/endpoints.enum");
|
|
17
|
+
const afip_errors_1 = require("../../../../utils/afip-errors");
|
|
18
|
+
class RegisterScopeThirteenRepository extends base_register_repository_1.BaseRegisterRepository {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.serviceName = service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_THIRTEEN;
|
|
22
|
+
this.wsdlProduction = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_THIRTEEN;
|
|
23
|
+
this.wsdlTesting = wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_THIRTEEN_TEST;
|
|
24
|
+
this.endpointProduction = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_THIRTEEN;
|
|
25
|
+
this.endpointTesting = endpoints_enum_1.EndpointsEnum.WSSR_PADRON_THIRTEEN_TEST;
|
|
26
|
+
this.personaMethod = "getPersonaAsync";
|
|
27
|
+
}
|
|
28
|
+
getTaxIDByDocument(documentNumber) {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const client = yield this.getClient();
|
|
31
|
+
try {
|
|
32
|
+
const [output] = yield client.getIdPersonaListByDocumentoAsync({
|
|
33
|
+
documento: documentNumber,
|
|
34
|
+
});
|
|
35
|
+
const idPersonaListReturn = output.idPersonaListReturn;
|
|
36
|
+
const idPersona = Array.isArray(idPersonaListReturn.idPersona)
|
|
37
|
+
? idPersonaListReturn.idPersona
|
|
38
|
+
: typeof idPersonaListReturn.idPersona === "number"
|
|
39
|
+
? [idPersonaListReturn.idPersona]
|
|
40
|
+
: [];
|
|
41
|
+
return {
|
|
42
|
+
idPersona,
|
|
43
|
+
errorConstancia: undefined,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
if ((0, afip_errors_1.isAfipNotFoundError)(error)) {
|
|
48
|
+
return {
|
|
49
|
+
idPersona: [],
|
|
50
|
+
errorConstancia: undefined,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
throw error;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.RegisterScopeThirteenRepository = RegisterScopeThirteenRepository;
|
|
59
|
+
//# sourceMappingURL=register-scope-thirteen.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-scope-thirteen.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/register/register-scope-thirteen.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yEAAoE;AAEpE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAEzF,mEAAwE;AAExE,MAAa,+BACX,SAAQ,iDAAkD;IAD5D;;QAIY,gBAAW,GAAG,qCAAgB,CAAC,oBAAoB,CAAC;QACpD,mBAAc,GAAG,6BAAY,CAAC,oBAAoB,CAAC;QACnD,gBAAW,GAAG,6BAAY,CAAC,yBAAyB,CAAC;QACrD,uBAAkB,GAAG,8BAAa,CAAC,oBAAoB,CAAC;QACxD,oBAAe,GAAG,8BAAa,CAAC,yBAAyB,CAAC;QAC1D,kBAAa,GAAG,iBAA0B,CAAC;IAkCvD,CAAC;IAhCO,kBAAkB,CACtB,cAAsB;;YAEtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YAEtC,IAAI,CAAC;gBACH,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC;oBAC7D,SAAS,EAAE,cAAc;iBACnB,CAAC,CAAC;gBAEV,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;gBAEvD,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC;oBAC5D,CAAC,CAAC,mBAAmB,CAAC,SAAS;oBAC/B,CAAC,CAAC,OAAO,mBAAmB,CAAC,SAAS,KAAK,QAAQ;wBACjD,CAAC,CAAC,CAAC,mBAAmB,CAAC,SAAS,CAAC;wBACjC,CAAC,CAAC,EAAE,CAAC;gBAET,OAAO;oBACL,SAAS;oBACT,eAAe,EAAE,SAAS;iBAC3B,CAAC;YACJ,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,IAAI,IAAA,iCAAmB,EAAC,KAAK,CAAC,EAAE,CAAC;oBAC/B,OAAO;wBACL,SAAS,EAAE,EAAE;wBACb,eAAe,EAAE,SAAS;qBAC3B,CAAC;gBACJ,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KAAA;CACF;AA3CD,0EA2CC"}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base SOAP Repository
|
|
3
|
-
* Abstract base class for SOAP repositories with common authentication proxy logic
|
|
4
|
-
*/
|
|
5
1
|
import { Client } from "soap";
|
|
6
2
|
import { ISoapClientPort } from "../../../outbound/ports/soap/soap-client.port";
|
|
7
3
|
import { IAuthenticationRepositoryPort } from "../../../../application/ports/authentication/authentication-repository.port";
|
|
8
|
-
import {
|
|
9
|
-
import { BaseSoapRepositoryConstructorConfig, AuthenticatedProxyOptions } from "../../../
|
|
10
|
-
/**
|
|
11
|
-
* Base class for SOAP repositories
|
|
12
|
-
* Provides common functionality for authentication proxy
|
|
13
|
-
*/
|
|
4
|
+
import type { ISoapOptions } from "../../../types/soap-client.types";
|
|
5
|
+
import { BaseSoapRepositoryConstructorConfig, AuthenticatedProxyOptions, SoapClientResult } from "../../../types/soap-repository.types";
|
|
14
6
|
export declare abstract class BaseSoapRepository {
|
|
15
7
|
protected readonly cuit: number;
|
|
16
8
|
protected readonly production: boolean;
|
|
17
9
|
protected readonly soapClient: ISoapClientPort;
|
|
18
10
|
protected readonly authRepository: IAuthenticationRepositoryPort;
|
|
19
|
-
protected readonly logger: ILoggerPort;
|
|
20
11
|
protected readonly useSoap12: boolean;
|
|
21
12
|
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
13
|
+
/**
|
|
14
|
+
* Helper to create a SOAP client with the correct version-specific headers
|
|
15
|
+
* @param wsdl WSDL path or name
|
|
16
|
+
* @param options Additional SOAP client options
|
|
17
|
+
* @returns Object containing the created client and the soap version used
|
|
18
|
+
*/
|
|
19
|
+
protected createSoapClient<T extends Client>(wsdl: string, options?: ISoapOptions): Promise<SoapClientResult<T>>;
|
|
22
20
|
/**
|
|
23
21
|
* Create a proxy that automatically injects Auth into SOAP method calls
|
|
24
22
|
* Only intercepts methods that actually require Auth (checked via client.describe())
|
|
@@ -12,19 +12,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BaseSoapRepository = void 0;
|
|
13
13
|
const soap_client_1 = require("./soap-client");
|
|
14
14
|
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
15
|
-
|
|
16
|
-
* Base class for SOAP repositories
|
|
17
|
-
* Provides common functionality for authentication proxy
|
|
18
|
-
*/
|
|
15
|
+
const constants_1 = require("../../../constants");
|
|
19
16
|
class BaseSoapRepository {
|
|
20
17
|
constructor(config) {
|
|
21
|
-
var _a, _b, _c;
|
|
22
|
-
this.soapClient =
|
|
18
|
+
var _a, _b, _c, _d;
|
|
19
|
+
this.soapClient =
|
|
20
|
+
(_a = config.soapClient) !== null && _a !== void 0 ? _a : new soap_client_1.SoapClient((_b = config.useHttpsAgent) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_USE_HTTPS_AGENT);
|
|
23
21
|
this.authRepository = config.authRepository;
|
|
24
|
-
this.logger = config.logger;
|
|
25
22
|
this.cuit = config.cuit;
|
|
26
|
-
this.production = (
|
|
27
|
-
this.useSoap12 = (
|
|
23
|
+
this.production = (_c = config.production) !== null && _c !== void 0 ? _c : false;
|
|
24
|
+
this.useSoap12 = (_d = config.useSoap12) !== null && _d !== void 0 ? _d : true; // Default to SOAP 1.2
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Helper to create a SOAP client with the correct version-specific headers
|
|
28
|
+
* @param wsdl WSDL path or name
|
|
29
|
+
* @param options Additional SOAP client options
|
|
30
|
+
* @returns Object containing the created client and the soap version used
|
|
31
|
+
*/
|
|
32
|
+
createSoapClient(wsdl_1) {
|
|
33
|
+
return __awaiter(this, arguments, void 0, function* (wsdl, options = {}) {
|
|
34
|
+
var _a;
|
|
35
|
+
const useSoap12 = (_a = options.forceSoap12Headers) !== null && _a !== void 0 ? _a : this.useSoap12;
|
|
36
|
+
const soapVersion = useSoap12
|
|
37
|
+
? endpoints_enum_1.SoapServiceVersion.ServiceSoap12
|
|
38
|
+
: endpoints_enum_1.SoapServiceVersion.ServiceSoap;
|
|
39
|
+
const client = yield this.soapClient.createClient(wsdl, Object.assign(Object.assign({}, options), { forceSoap12Headers: useSoap12 }));
|
|
40
|
+
return { client, soapVersion };
|
|
41
|
+
});
|
|
28
42
|
}
|
|
29
43
|
/**
|
|
30
44
|
* Create a proxy that automatically injects Auth into SOAP method calls
|
|
@@ -35,13 +49,13 @@ class BaseSoapRepository {
|
|
|
35
49
|
*/
|
|
36
50
|
createAuthenticatedProxy(client, options) {
|
|
37
51
|
const { serviceName, injectAuthProperty = false, soapVersion = endpoints_enum_1.SoapServiceVersion.ServiceSoap12, } = options;
|
|
52
|
+
const soapServices = client.describe();
|
|
38
53
|
return new Proxy(client, {
|
|
39
54
|
get: (target, prop) => {
|
|
40
55
|
var _a, _b, _c, _d, _e;
|
|
41
56
|
const original = target[prop];
|
|
42
57
|
if (typeof original === "function" && prop.endsWith("Async")) {
|
|
43
58
|
const func = prop.slice(0, -5);
|
|
44
|
-
const soapServices = client.describe();
|
|
45
59
|
const methodRequiresAuth = !((_a = options.excludeMethods) === null || _a === void 0 ? void 0 : _a.includes(func)) &&
|
|
46
60
|
(!!options.authMapper ||
|
|
47
61
|
((_e = (_d = (_c = (_b = soapServices === null || soapServices === void 0 ? void 0 : soapServices.Service) === null || _b === void 0 ? void 0 : _b[soapVersion]) === null || _c === void 0 ? void 0 : _c[func]) === null || _d === void 0 ? void 0 : _d.input) === null || _e === void 0 ? void 0 : _e["Auth"]) !==
|
|
@@ -50,7 +64,9 @@ class BaseSoapRepository {
|
|
|
50
64
|
return (params) => __awaiter(this, void 0, void 0, function* () {
|
|
51
65
|
const ticket = yield this.authRepository.login(serviceName);
|
|
52
66
|
const auth = this.authRepository.getAuthParams(ticket, this.cuit);
|
|
53
|
-
let authParams = injectAuthProperty
|
|
67
|
+
let authParams = injectAuthProperty
|
|
68
|
+
? auth.Auth
|
|
69
|
+
: auth;
|
|
54
70
|
if (options.authMapper) {
|
|
55
71
|
authParams = options.authMapper(auth);
|
|
56
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,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
|