@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
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic Repository
|
|
3
|
-
* Implements IGenericRepositoryPort for generic AFIP/ARCA requests
|
|
4
|
-
*/
|
|
5
|
-
import { IGenericRepositoryPort } from "../../../../application/ports/generic/generic-repository.port";
|
|
6
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
7
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
8
|
-
export declare class GenericRepository extends BaseSoapRepository implements IGenericRepositoryPort {
|
|
9
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
10
|
-
call(serviceName: string, methodName: string, params: any, options?: {
|
|
11
|
-
wsdlContent?: string;
|
|
12
|
-
}): Promise<any>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generic-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/generic/generic-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,uEAAkE;AAElE,6FAA8F;AAE9F,MAAa,iBACX,SAAQ,yCAAkB;IAG1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEK,IAAI,CACR,WAAmB,EACnB,UAAkB,EAClB,MAAW,EACX,OAAkC;;YAElC,MAAM,QAAQ,GAAG,WAAW,CAAC;YAE7B,IAAI,MAAW,CAAC;YAChB,IAAI,WAA+B,CAAC;YAEpC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,EAAE;oBACpD,kBAAkB,EAAE,IAAI;oBACxB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;iBAClC,CAAC,CAAC;gBACH,WAAW,GAAG,mCAAkB,CAAC,aAAa,CAAC;YACjD,CAAC;iBAAM,CAAC;gBACN,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,QAAQ,EAAE;oBACpD,kBAAkB,EAAE,KAAK;oBACzB,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;iBAClC,CAAC,CAAC;gBACH,WAAW,GAAG,mCAAkB,CAAC,WAAW,CAAC;YAC/C,CAAC;YAED,MAAM,mBAAmB,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE;gBAChE,WAAW,EAAE,WAAkB;gBAC/B,kBAAkB,EAAE,KAAK;gBACzB,WAAW;aACZ,CAAC,CAAC;YAEH,MAAM,WAAW,GAAG,GAAG,UAAU,OAAO,CAAC;YAEzC,IAAI,OAAO,mBAAmB,CAAC,WAAW,CAAC,KAAK,UAAU,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,UAAU,UAAU,yBAAyB,WAAW,EAAE,CAC3D,CAAC;YACJ,CAAC;YAED,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,mBAAmB,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;YAChE,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AAlDD,8CAkDC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Winston Logger
|
|
3
|
-
* Implements ILoggerPort using Winston
|
|
4
|
-
*/
|
|
5
|
-
import { ILoggerPort } from "../../../outbound/ports/logger/logger.port";
|
|
6
|
-
import { WinstonLoggerConfig } from "../../../outbound/ports/logger/logger.types";
|
|
7
|
-
export declare class WinstonLogger implements ILoggerPort {
|
|
8
|
-
private logger;
|
|
9
|
-
constructor(config?: WinstonLoggerConfig);
|
|
10
|
-
info(message: string, meta?: any): void;
|
|
11
|
-
error(message: string, error?: Error, meta?: any): void;
|
|
12
|
-
warn(message: string, meta?: any): void;
|
|
13
|
-
debug(message: string, meta?: any): void;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WinstonLogger = void 0;
|
|
4
|
-
const logger_1 = require("../../../utils/logger");
|
|
5
|
-
class WinstonLogger {
|
|
6
|
-
constructor(config = {}) {
|
|
7
|
-
var _a;
|
|
8
|
-
this.logger = (0, logger_1.createArcaLogger)((_a = config.enableLogging) !== null && _a !== void 0 ? _a : false);
|
|
9
|
-
}
|
|
10
|
-
info(message, meta) {
|
|
11
|
-
this.logger.info(message, meta);
|
|
12
|
-
}
|
|
13
|
-
error(message, error, meta) {
|
|
14
|
-
this.logger.error(message, Object.assign({ error }, meta));
|
|
15
|
-
}
|
|
16
|
-
warn(message, meta) {
|
|
17
|
-
this.logger.warn(message, meta);
|
|
18
|
-
}
|
|
19
|
-
debug(message, meta) {
|
|
20
|
-
this.logger.debug(message, meta);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.WinstonLogger = WinstonLogger;
|
|
24
|
-
//# sourceMappingURL=winston-logger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"winston-logger.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/logger/winston-logger.ts"],"names":[],"mappings":";;;AAKA,yDAAgE;AAIhE,MAAa,aAAa;IAGxB,YAAY,SAA8B,EAAE;;QAC1C,IAAI,CAAC,MAAM,GAAG,IAAA,yBAAgB,EAAC,MAAA,MAAM,CAAC,aAAa,mCAAI,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,IAAU;QAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,KAAa,EAAE,IAAU;QAC9C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,kBAAI,KAAK,IAAK,IAAI,EAAG,CAAC;IACjD,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,IAAU;QAC9B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,OAAe,EAAE,IAAU;QAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;CACF;AAtBD,sCAsBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mEAAiD;AACjD,mEAAiD;AACjD,kEAAgD;AAChD,uEAAqD;AACrD,0EAAwD"}
|
package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Inscription Proof Repository
|
|
3
|
-
* Implements IRegisterInscriptionProofRepositoryPort
|
|
4
|
-
*/
|
|
5
|
-
import { IRegisterInscriptionProofRepositoryPort } from "../../../../application/ports/register/register-repository.ports";
|
|
6
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
7
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
8
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxpayersDetailsDto } from "../../../../application/dto/register.dto";
|
|
9
|
-
export declare class RegisterInscriptionProofRepository extends BaseSoapRepository implements IRegisterInscriptionProofRepositoryPort {
|
|
10
|
-
private client?;
|
|
11
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
12
|
-
private getClient;
|
|
13
|
-
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
14
|
-
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
15
|
-
getTaxpayersDetails(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
16
|
-
private mapPersonaReturnToDto;
|
|
17
|
-
private mapPersonaToDto;
|
|
18
|
-
}
|
package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
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.RegisterInscriptionProofRepository = void 0;
|
|
13
|
-
const base_soap_repository_1 = require("../soap/base-soap-repository");
|
|
14
|
-
const service_names_enum_1 = require("../../../outbound/ports/soap/enums/service-names.enum");
|
|
15
|
-
const wsdl_path_enum_1 = require("../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
16
|
-
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
17
|
-
class RegisterInscriptionProofRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
18
|
-
constructor(config) {
|
|
19
|
-
super(config);
|
|
20
|
-
}
|
|
21
|
-
getClient() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
if (this.client) {
|
|
24
|
-
return this.client;
|
|
25
|
-
}
|
|
26
|
-
const wsdlName = this.production
|
|
27
|
-
? wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF
|
|
28
|
-
: wsdl_path_enum_1.WsdlPathEnum.WSSR_INSCRIPTION_PROOF_TEST;
|
|
29
|
-
const endpoint = this.production
|
|
30
|
-
? endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF
|
|
31
|
-
: endpoints_enum_1.EndpointsEnum.WSSR_INSCRIPTION_PROOF_TEST;
|
|
32
|
-
const client = yield this.soapClient.createClient(wsdlName, { forceSoap12Headers: false });
|
|
33
|
-
this.soapClient.setEndpoint(client, endpoint);
|
|
34
|
-
this.client = this.createAuthenticatedProxy(client, {
|
|
35
|
-
serviceName: service_names_enum_1.ServiceNamesEnum.WSSR_INSCRIPTION_PROOF,
|
|
36
|
-
injectAuthProperty: true,
|
|
37
|
-
soapVersion: endpoints_enum_1.SoapServiceVersion.ServiceSoap,
|
|
38
|
-
authMapper: (auth) => ({
|
|
39
|
-
token: auth.Auth.Token,
|
|
40
|
-
sign: auth.Auth.Sign,
|
|
41
|
-
cuitRepresentada: auth.Auth.Cuit,
|
|
42
|
-
}),
|
|
43
|
-
excludeMethods: ["dummy"],
|
|
44
|
-
});
|
|
45
|
-
return this.client;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
getServerStatus() {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const client = yield this.getClient();
|
|
51
|
-
const [output] = yield client.dummyAsync({});
|
|
52
|
-
const result = output.return;
|
|
53
|
-
return {
|
|
54
|
-
appserver: result.appserver,
|
|
55
|
-
dbserver: result.dbserver,
|
|
56
|
-
authserver: result.authserver,
|
|
57
|
-
};
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
getTaxpayerDetails(identifier) {
|
|
61
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
var _a;
|
|
63
|
-
const client = yield this.getClient();
|
|
64
|
-
try {
|
|
65
|
-
const [output] = yield client.getPersona_v2Async({
|
|
66
|
-
idPersona: identifier,
|
|
67
|
-
});
|
|
68
|
-
const personaReturn = output.personaReturn;
|
|
69
|
-
if (!personaReturn || !personaReturn.persona) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
return this.mapPersonaReturnToDto(personaReturn);
|
|
73
|
-
}
|
|
74
|
-
catch (error) {
|
|
75
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === 602 || ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes("no existe"))) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
// Create a new error with only serializable properties to avoid circular structure issues
|
|
79
|
-
const sanitizedError = new Error((error === null || error === void 0 ? void 0 : error.message) || "Unknown error");
|
|
80
|
-
sanitizedError.name = (error === null || error === void 0 ? void 0 : error.name) || "Error";
|
|
81
|
-
if (error === null || error === void 0 ? void 0 : error.code) {
|
|
82
|
-
sanitizedError.code = error.code;
|
|
83
|
-
}
|
|
84
|
-
if (error === null || error === void 0 ? void 0 : error.stack) {
|
|
85
|
-
sanitizedError.stack = error.stack;
|
|
86
|
-
}
|
|
87
|
-
throw sanitizedError;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
getTaxpayersDetails(identifiers) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
var _a, _b;
|
|
94
|
-
const client = yield this.getClient();
|
|
95
|
-
const [output] = yield client.getPersonaList_v2Async({
|
|
96
|
-
idPersona: identifiers,
|
|
97
|
-
});
|
|
98
|
-
const personaListReturn = output.personaListReturn;
|
|
99
|
-
return {
|
|
100
|
-
persona: ((_a = personaListReturn.persona) === null || _a === void 0 ? void 0 : _a.map((p) => this.mapPersonaToDto(p))) ||
|
|
101
|
-
[],
|
|
102
|
-
cantidadRegistros: ((_b = personaListReturn.persona) === null || _b === void 0 ? void 0 : _b.length) || 0,
|
|
103
|
-
errorConstancia: undefined,
|
|
104
|
-
};
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
mapPersonaReturnToDto(personaReturn) {
|
|
108
|
-
const persona = personaReturn.persona || personaReturn;
|
|
109
|
-
return {
|
|
110
|
-
idPersona: persona.idPersona,
|
|
111
|
-
tipoPersona: persona.tipoPersona,
|
|
112
|
-
estadoClave: persona.estadoClave,
|
|
113
|
-
datosGenerales: persona.datosGenerales || persona,
|
|
114
|
-
datosMonotributo: persona.datosMonotributo,
|
|
115
|
-
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
116
|
-
errorConstancia: persona.errorConstancia
|
|
117
|
-
? {
|
|
118
|
-
error: persona.errorConstancia.error || "",
|
|
119
|
-
codigo: persona.errorConstancia.codigo,
|
|
120
|
-
}
|
|
121
|
-
: undefined,
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
mapPersonaToDto(persona) {
|
|
125
|
-
var _a, _b, _c;
|
|
126
|
-
return {
|
|
127
|
-
idPersona: (_a = persona.datosGenerales) === null || _a === void 0 ? void 0 : _a.idPersona,
|
|
128
|
-
tipoPersona: (_b = persona.datosGenerales) === null || _b === void 0 ? void 0 : _b.tipoPersona,
|
|
129
|
-
estadoClave: (_c = persona.datosGenerales) === null || _c === void 0 ? void 0 : _c.estadoClave,
|
|
130
|
-
datosGenerales: persona.datosGenerales,
|
|
131
|
-
datosMonotributo: persona.datosMonotributo,
|
|
132
|
-
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
133
|
-
errorConstancia: persona.errorConstancia
|
|
134
|
-
? {
|
|
135
|
-
error: persona.errorConstancia.error || "",
|
|
136
|
-
codigo: persona.errorConstancia.codigo,
|
|
137
|
-
}
|
|
138
|
-
: undefined,
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
exports.RegisterInscriptionProofRepository = RegisterInscriptionProofRepository;
|
|
143
|
-
//# sourceMappingURL=register-inscription-proof.repository.js.map
|
package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-inscription-proof.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/register/register-inscription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AC,cAAc,IAAI,OAAO;YACjD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;YAChD,eAAe,EAAE,OAAO,CAAC,eAAe;gBACtC,CAAC,CAAC;oBACE,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,EAAE;oBAC1C,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM;iBACvC;gBACH,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;IAEO,eAAe,CAAC,OAAY;;QAClC,OAAO;YACL,SAAS,EAAE,MAAA,OAAO,CAAC,cAAc,0CAAE,SAAS;YAC5C,WAAW,EAAE,MAAA,OAAO,CAAC,cAAc,0CAAE,WAAW;YAChD,WAAW,EAAE,MAAA,OAAO,CAAC,cAAc,0CAAE,WAAW;YAChD,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;YAChD,eAAe,EAAE,OAAO,CAAC,eAAe;gBACtC,CAAC,CAAC;oBACE,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,EAAE;oBAC1C,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM;iBACvC;gBACH,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;CACF;AAhJD,gFAgJC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IRegisterScopeFiveRepositoryPort } from "../../../../application/ports/register/register-repository.ports";
|
|
2
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
3
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
4
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxpayersDetailsDto } from "../../../../application/dto/register.dto";
|
|
5
|
-
export declare class RegisterScopeFiveRepository extends BaseSoapRepository implements IRegisterScopeFiveRepositoryPort {
|
|
6
|
-
private client?;
|
|
7
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
-
private getClient;
|
|
9
|
-
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
10
|
-
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
11
|
-
getTaxpayersDetails(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
12
|
-
private mapPersonaReturnToDto;
|
|
13
|
-
private mapPersonaToDto;
|
|
14
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
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.RegisterScopeFiveRepository = void 0;
|
|
13
|
-
const base_soap_repository_1 = require("../soap/base-soap-repository");
|
|
14
|
-
const service_names_enum_1 = require("../../../outbound/ports/soap/enums/service-names.enum");
|
|
15
|
-
const wsdl_path_enum_1 = require("../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
16
|
-
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
17
|
-
class RegisterScopeFiveRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
18
|
-
constructor(config) {
|
|
19
|
-
super(config);
|
|
20
|
-
}
|
|
21
|
-
getClient() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
if (this.client) {
|
|
24
|
-
return this.client;
|
|
25
|
-
}
|
|
26
|
-
const wsdlName = this.production
|
|
27
|
-
? wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE
|
|
28
|
-
: wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FIVE_TEST;
|
|
29
|
-
const endpoint = this.production
|
|
30
|
-
? endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE
|
|
31
|
-
: endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FIVE_TEST;
|
|
32
|
-
const client = yield this.soapClient.createClient(wsdlName, {
|
|
33
|
-
forceSoap12Headers: false,
|
|
34
|
-
});
|
|
35
|
-
this.soapClient.setEndpoint(client, endpoint);
|
|
36
|
-
this.client = this.createAuthenticatedProxy(client, {
|
|
37
|
-
serviceName: service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FIVE,
|
|
38
|
-
injectAuthProperty: true,
|
|
39
|
-
soapVersion: endpoints_enum_1.SoapServiceVersion.ServiceSoap,
|
|
40
|
-
authMapper: (auth) => ({
|
|
41
|
-
token: auth.Auth.Token,
|
|
42
|
-
sign: auth.Auth.Sign,
|
|
43
|
-
cuitRepresentada: auth.Auth.Cuit,
|
|
44
|
-
}),
|
|
45
|
-
excludeMethods: ["dummy"],
|
|
46
|
-
});
|
|
47
|
-
return this.client;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
getServerStatus() {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const client = yield this.getClient();
|
|
53
|
-
const [output] = yield client.dummyAsync({});
|
|
54
|
-
const result = output.return;
|
|
55
|
-
return {
|
|
56
|
-
appserver: result.appserver,
|
|
57
|
-
dbserver: result.dbserver,
|
|
58
|
-
authserver: result.authserver,
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
getTaxpayerDetails(identifier) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
var _a;
|
|
65
|
-
const client = yield this.getClient();
|
|
66
|
-
try {
|
|
67
|
-
const [output] = yield client.getPersona_v2Async({
|
|
68
|
-
idPersona: identifier,
|
|
69
|
-
});
|
|
70
|
-
const personaReturn = output.personaReturn;
|
|
71
|
-
if (!personaReturn || !personaReturn.persona) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return this.mapPersonaReturnToDto(personaReturn);
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === 602 || ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes("no existe"))) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
throw error;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
getTaxpayersDetails(identifiers) {
|
|
85
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
-
var _a, _b;
|
|
87
|
-
const client = yield this.getClient();
|
|
88
|
-
const [output] = yield client.getPersonaList_v2Async({
|
|
89
|
-
idPersona: identifiers,
|
|
90
|
-
});
|
|
91
|
-
const personaListReturn = output.personaListReturn;
|
|
92
|
-
return {
|
|
93
|
-
persona: ((_a = personaListReturn.persona) === null || _a === void 0 ? void 0 : _a.map((p) => this.mapPersonaToDto(p))) ||
|
|
94
|
-
[],
|
|
95
|
-
cantidadRegistros: ((_b = personaListReturn.persona) === null || _b === void 0 ? void 0 : _b.length) || 0,
|
|
96
|
-
errorConstancia: undefined,
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
mapPersonaReturnToDto(personaReturn) {
|
|
101
|
-
const persona = personaReturn.persona || personaReturn;
|
|
102
|
-
return {
|
|
103
|
-
idPersona: persona.idPersona,
|
|
104
|
-
tipoPersona: persona.tipoPersona,
|
|
105
|
-
estadoClave: persona.estadoClave,
|
|
106
|
-
datosGenerales: persona.datosGenerales || persona,
|
|
107
|
-
datosMonotributo: persona.datosMonotributo,
|
|
108
|
-
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
109
|
-
errorConstancia: persona.errorConstancia
|
|
110
|
-
? {
|
|
111
|
-
error: persona.errorConstancia.error || "",
|
|
112
|
-
codigo: persona.errorConstancia.codigo,
|
|
113
|
-
}
|
|
114
|
-
: undefined,
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
mapPersonaToDto(persona) {
|
|
118
|
-
var _a, _b, _c;
|
|
119
|
-
return {
|
|
120
|
-
idPersona: (_a = persona.datosGenerales) === null || _a === void 0 ? void 0 : _a.idPersona,
|
|
121
|
-
tipoPersona: (_b = persona.datosGenerales) === null || _b === void 0 ? void 0 : _b.tipoPersona,
|
|
122
|
-
estadoClave: (_c = persona.datosGenerales) === null || _c === void 0 ? void 0 : _c.estadoClave,
|
|
123
|
-
datosGenerales: persona.datosGenerales,
|
|
124
|
-
datosMonotributo: persona.datosMonotributo,
|
|
125
|
-
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
126
|
-
errorConstancia: persona.errorConstancia
|
|
127
|
-
? {
|
|
128
|
-
error: persona.errorConstancia.error || "",
|
|
129
|
-
codigo: persona.errorConstancia.codigo,
|
|
130
|
-
}
|
|
131
|
-
: undefined,
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
exports.RegisterScopeFiveRepository = RegisterScopeFiveRepository;
|
|
136
|
-
//# sourceMappingURL=register-scope-five.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-scope-five.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/register/register-scope-five.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,uEAAkE;AAOlE,qGAAgG;AAChG,6FAAwF;AACxF,6FAGkE;AAGlE,MAAa,2BACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC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C,CAAC,CAAC;oBACE,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,EAAE;oBAC1C,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM;iBACvC;gBACH,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;CACF;AAtID,kEAsIC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IRegisterScopeFourRepositoryPort } from "../../../../application/ports/register/register-repository.ports";
|
|
2
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
3
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
4
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto } from "../../../../application/dto/register.dto";
|
|
5
|
-
export declare class RegisterScopeFourRepository extends BaseSoapRepository implements IRegisterScopeFourRepositoryPort {
|
|
6
|
-
private client?;
|
|
7
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
-
private getClient;
|
|
9
|
-
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
10
|
-
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
11
|
-
private mapPersonaReturnToDto;
|
|
12
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
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.RegisterScopeFourRepository = void 0;
|
|
13
|
-
const base_soap_repository_1 = require("../soap/base-soap-repository");
|
|
14
|
-
const service_names_enum_1 = require("../../../outbound/ports/soap/enums/service-names.enum");
|
|
15
|
-
const wsdl_path_enum_1 = require("../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
16
|
-
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
17
|
-
class RegisterScopeFourRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
18
|
-
constructor(config) {
|
|
19
|
-
super(config);
|
|
20
|
-
}
|
|
21
|
-
getClient() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
if (this.client) {
|
|
24
|
-
return this.client;
|
|
25
|
-
}
|
|
26
|
-
const wsdlName = this.production
|
|
27
|
-
? wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR
|
|
28
|
-
: wsdl_path_enum_1.WsdlPathEnum.WSSR_PADRON_FOUR_TEST;
|
|
29
|
-
const endpoint = this.production
|
|
30
|
-
? endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR
|
|
31
|
-
: endpoints_enum_1.EndpointsEnum.WSSR_PADRON_FOUR_TEST;
|
|
32
|
-
const client = yield this.soapClient.createClient(wsdlName, {
|
|
33
|
-
forceSoap12Headers: false,
|
|
34
|
-
});
|
|
35
|
-
this.soapClient.setEndpoint(client, endpoint);
|
|
36
|
-
this.client = this.createAuthenticatedProxy(client, {
|
|
37
|
-
serviceName: service_names_enum_1.ServiceNamesEnum.WSSR_PADRON_FOUR,
|
|
38
|
-
injectAuthProperty: true,
|
|
39
|
-
soapVersion: endpoints_enum_1.SoapServiceVersion.ServiceSoap,
|
|
40
|
-
authMapper: (auth) => ({
|
|
41
|
-
token: auth.Auth.Token,
|
|
42
|
-
sign: auth.Auth.Sign,
|
|
43
|
-
cuitRepresentada: auth.Auth.Cuit,
|
|
44
|
-
}),
|
|
45
|
-
excludeMethods: ["dummy"],
|
|
46
|
-
});
|
|
47
|
-
return this.client;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
getServerStatus() {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
const client = yield this.getClient();
|
|
53
|
-
const [output] = yield client.dummyAsync({});
|
|
54
|
-
const result = output.return;
|
|
55
|
-
return {
|
|
56
|
-
appserver: result.appserver,
|
|
57
|
-
dbserver: result.dbserver,
|
|
58
|
-
authserver: result.authserver,
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
getTaxpayerDetails(identifier) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
var _a;
|
|
65
|
-
const client = yield this.getClient();
|
|
66
|
-
try {
|
|
67
|
-
const [output] = yield client.getPersonaAsync({
|
|
68
|
-
idPersona: identifier,
|
|
69
|
-
});
|
|
70
|
-
const personaReturn = output.personaReturn;
|
|
71
|
-
if (!personaReturn || !personaReturn.persona) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
return this.mapPersonaReturnToDto(personaReturn);
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
if ((error === null || error === void 0 ? void 0 : error.code) === 602 || ((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.includes("no existe"))) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
throw error;
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
mapPersonaReturnToDto(personaReturn) {
|
|
85
|
-
const persona = personaReturn.persona || personaReturn;
|
|
86
|
-
return {
|
|
87
|
-
idPersona: persona.idPersona,
|
|
88
|
-
tipoPersona: persona.tipoPersona,
|
|
89
|
-
estadoClave: persona.estadoClave,
|
|
90
|
-
datosGenerales: persona.datosGenerales || persona,
|
|
91
|
-
datosMonotributo: persona.datosMonotributo,
|
|
92
|
-
datosRegimenGeneral: persona.datosRegimenGeneral,
|
|
93
|
-
errorConstancia: persona.errorConstancia
|
|
94
|
-
? {
|
|
95
|
-
error: persona.errorConstancia.error || "",
|
|
96
|
-
codigo: persona.errorConstancia.codigo,
|
|
97
|
-
}
|
|
98
|
-
: undefined,
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
exports.RegisterScopeFourRepository = RegisterScopeFourRepository;
|
|
103
|
-
//# sourceMappingURL=register-scope-four.repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-scope-four.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/register/register-scope-four.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,uEAAkE;AAMlE,qGAAgG;AAChG,6FAAwF;AACxF,6FAGkE;AAGlE,MAAa,2BACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEa,SAAS;;YACrB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,6BAAY,CAAC,gBAAgB;gBAC/B,CAAC,CAAC,6BAAY,CAAC,qBAAqB,CAAC;YACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,8BAAa,CAAC,gBAAgB;gBAChC,CAAC,CAAC,8BAAa,CAAC,qBAAqB,CAAC;YAExC,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAA4B,QAAQ,EAAE;gBACtE,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAC;YAEL,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE9C,IAAI,CAAC,MAAM,GAAG,IAAI,CA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CAAC,qBAAqB,CAAC,aAAa,CAAC,CAAC;YACnD,CAAC;YAAC,OAAO,KAAU,EAAE,CAAC;gBACpB,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,GAAG,KAAI,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,QAAQ,CAAC,WAAW,CAAC,CAAA,EAAE,CAAC;oBACjE,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;KAAA;IAEO,qBAAqB,CAAC,aAAkB;QAC9C,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,aAAa,CAAC;QAEvD,OAAO;YACL,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,OAAO;YACjD,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;YAChD,eAAe,EAAE,OAAO,CAAC,eAAe;gBACtC,CAAC,CAAC;oBACE,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,EAAE;oBAC1C,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM;iBACvC;gBACH,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;CACF;AAlGD,kEAkGC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IRegisterScopeTenRepositoryPort } from "../../../../application/ports/register/register-repository.ports";
|
|
2
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
3
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
4
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto } from "../../../../application/dto/register.dto";
|
|
5
|
-
export declare class RegisterScopeTenRepository extends BaseSoapRepository implements IRegisterScopeTenRepositoryPort {
|
|
6
|
-
private client?;
|
|
7
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
-
private getClient;
|
|
9
|
-
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
10
|
-
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
11
|
-
private mapPersonaReturnToDto;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-scope-ten.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/register/register-scope-ten.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,uEAAkE;AAMlE,qGAAgG;AAChG,6FAAwF;AACxF,6FAGkE;AAGlE,MAAa,0BACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEa,SAAS;;YACrB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,OAAO,IAAI,CAAC,MAAM,CAAC;YACrB,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,6BAAY,CAAC,eAAe;gBAC9B,CAAC,CAAC,6BAAY,CAAC,oBAAoB,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,8BAAa,CAAC,eAAe;gBAC/B,CAAC,CAAC,8BAAa,CAAC,oBAAoB,CAAC;YAEvC,MAAM,MAAM,GACV,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAA6B,QAAQ,EAAE;gBACvE,kBAAkB,EAAE,KAAK;aAC1B,CAAC,CAAC;YAEL,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE;gBAClD,WAAW,EAAE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C,eAAe,CAAC,KAAK,IAAI,EAAE;oBAC1C,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,MAAM;iBACvC;gBACH,CAAC,CAAC,SAAS;SACd,CAAC;IACJ,CAAC;CACF;AA3GD,gEA2GC"}
|
package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IRegisterScopeThirteenRepositoryPort } from "../../../../application/ports/register/register-repository.ports";
|
|
2
|
-
import { BaseSoapRepository } from "../soap/base-soap-repository";
|
|
3
|
-
import { BaseSoapRepositoryConstructorConfig } from "../../../outbound/ports/soap/soap-repository.types";
|
|
4
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxIDByDocumentResultDto } from "../../../../application/dto/register.dto";
|
|
5
|
-
export declare class RegisterScopeThirteenRepository extends BaseSoapRepository implements IRegisterScopeThirteenRepositoryPort {
|
|
6
|
-
private client?;
|
|
7
|
-
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
-
private getClient;
|
|
9
|
-
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
10
|
-
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
11
|
-
getTaxIDByDocument(documentNumber: string): Promise<TaxIDByDocumentResultDto>;
|
|
12
|
-
private mapPersonaReturnToDto;
|
|
13
|
-
}
|