@arcasdk/core 0.3.6 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +6 -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 +0 -4
- package/lib/infrastructure/constants/default-config.constants.js +0 -4
- package/lib/infrastructure/constants/default-config.constants.js.map +1 -1
- package/lib/infrastructure/constants/index.d.ts +2 -4
- package/lib/infrastructure/constants/index.js +2 -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 +20 -13
- 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 +21 -7
- 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 +5 -8
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +38 -33
- 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/{outbound/ports/auth → types}/auth-repository.types.d.ts +3 -7
- 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 +11 -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 +15 -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 -97
- 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 -55
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"electronic-billing-repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/electronic-billing/electronic-billing-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0EAAqE;AAiCrE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AASzF,qDAgBiC;AACjC,mEAAwE;AAExE,MAAa,2BACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,gBAAgB;QACd,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;IACjC,CAAC;IAED,8EAA8E;IAE9E;;;OAGG;IACW,SAAS;;YACrB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC,aAAa,CAAC;YAC5B,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,6BAAY,CAAC,IAAI;gBACnB,CAAC,CAAC,6BAAY,CAAC,SAAS,CAAC;YAC3B,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,8BAAa,CAAC,MAAM;gBACtB,CAAC,CAAC,8BAAa,CAAC,WAAW,CAAC;YAE9B,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAEzD,QAAQ,CAAC,CAAC;YAEZ,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE9C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE;gBACzD,WAAW,EAAE,qCAAgB,CAAC,IAAI;gBAClC,kBAAkB,EAAE,KAAK;gBACzB,WAAW;aACZ,CAA0C,CAAC;YAE5C,OAAO,IAAI,CAAC,aAAa,CAAC;QAC5B,CAAC;KAAA;IAED;;OAEG;IACK,SAAS,CACf,MAAW;Q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AAC,MAAM,CAAC;aACtC,CAAC;QACJ,CAAC;KAAA;IAEK,uBAAuB;;YAC3B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;YACzD,MAAM,MAAM,GAAG,MAAM,CAAC,uBAAuB,CAAC;YAC9C,OAAO;gBACL,SAAS,EAAE,IAAA,uBAAa,EAAC,MAAM,CAAC;gBAChC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;aACtC,CAAC;QACJ,CAAC;KAAA;CACF;AAtcD,kEAscC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./electronic-billing-repository";
|
|
@@ -14,9 +14,5 @@ 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
|
-
* Electronic Billing Adapters
|
|
19
|
-
* Exports all electronic billing adapters
|
|
20
|
-
*/
|
|
21
17
|
__exportStar(require("./electronic-billing-repository"), exports);
|
|
22
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/electronic-billing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IFecredRepositoryPort } from "../../../../../application/ports/fecred/fecred-repository.port";
|
|
2
|
+
import { BaseSoapRepository } from "../../soap/base-soap-repository";
|
|
3
|
+
import { BaseSoapRepositoryConstructorConfig } from "../../../../types/soap-repository.types";
|
|
4
|
+
import { IaceptarFECredInput, IaceptarFECredOutput, IrechazarFECredInput, IrechazarFECredOutput, IconsultarComprobantesInput, IconsultarComprobantesOutput, IconsultarCtasCtesInput, IconsultarCtasCtesOutput, IconsultarCtaCteInput, IconsultarCtaCteOutput, IinformarCancelacionTotalFECredInput, IinformarCancelacionTotalFECredOutput, IrechazarNotaDCInput, IrechazarNotaDCOutput, IinformarFacturaAgtDptoCltvInput, IinformarFacturaAgtDptoCltvOutput, IconsultarFacturasAgtDptoCltvInput, IconsultarFacturasAgtDptoCltvOutput, IconsultarCuentasEnAgtDptoCltvOutput, IconsultarObligadoRecepcionInput, IconsultarObligadoRecepcionOutput, IconsultarTiposRetencionesOutput, IconsultarTiposMotivosRechazoOutput, IconsultarTiposFormasCancelacionOutput, IobtenerRemitosInput, IobtenerRemitosOutput, IconsultarHistorialEstadosComprobanteInput, IconsultarHistorialEstadosComprobanteOutput, IconsultarHistorialEstadosCtaCteInput, IconsultarHistorialEstadosCtaCteOutput, IconsultarTiposAjustesOperacionOutput, IconsultarMontoObligadoRecepcionInput, IconsultarMontoObligadoRecepcionOutput, ImodificarOpcionTransferenciaInput, ImodificarOpcionTransferenciaOutput } from "../../../../outbound/ports/soap/interfaces/FECredService/ServiceSoap";
|
|
5
|
+
export declare class FecredRepository extends BaseSoapRepository implements IFecredRepositoryPort {
|
|
6
|
+
private serviceClient?;
|
|
7
|
+
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
+
private getClient;
|
|
9
|
+
aceptarFECred(input: IaceptarFECredInput): Promise<IaceptarFECredOutput>;
|
|
10
|
+
rechazarFECred(input: IrechazarFECredInput): Promise<IrechazarFECredOutput>;
|
|
11
|
+
consultarComprobantes(input: IconsultarComprobantesInput): Promise<IconsultarComprobantesOutput>;
|
|
12
|
+
consultarCtasCtes(input: IconsultarCtasCtesInput): Promise<IconsultarCtasCtesOutput>;
|
|
13
|
+
consultarCtaCte(input: IconsultarCtaCteInput): Promise<IconsultarCtaCteOutput>;
|
|
14
|
+
informarCancelacionTotalFECred(input: IinformarCancelacionTotalFECredInput): Promise<IinformarCancelacionTotalFECredOutput>;
|
|
15
|
+
rechazarNotaDC(input: IrechazarNotaDCInput): Promise<IrechazarNotaDCOutput>;
|
|
16
|
+
informarFacturaAgtDptoCltv(input: IinformarFacturaAgtDptoCltvInput): Promise<IinformarFacturaAgtDptoCltvOutput>;
|
|
17
|
+
consultarFacturasAgtDptoCltv(input: IconsultarFacturasAgtDptoCltvInput): Promise<IconsultarFacturasAgtDptoCltvOutput>;
|
|
18
|
+
consultarCuentasEnAgtDptoCltv(): Promise<IconsultarCuentasEnAgtDptoCltvOutput>;
|
|
19
|
+
consultarObligadoRecepcion(input: IconsultarObligadoRecepcionInput): Promise<IconsultarObligadoRecepcionOutput>;
|
|
20
|
+
consultarTiposRetenciones(): Promise<IconsultarTiposRetencionesOutput>;
|
|
21
|
+
consultarTiposMotivosRechazo(): Promise<IconsultarTiposMotivosRechazoOutput>;
|
|
22
|
+
consultarTiposFormasCancelacion(): Promise<IconsultarTiposFormasCancelacionOutput>;
|
|
23
|
+
obtenerRemitos(input: IobtenerRemitosInput): Promise<IobtenerRemitosOutput>;
|
|
24
|
+
consultarHistorialEstadosComprobante(input: IconsultarHistorialEstadosComprobanteInput): Promise<IconsultarHistorialEstadosComprobanteOutput>;
|
|
25
|
+
consultarHistorialEstadosCtaCte(input: IconsultarHistorialEstadosCtaCteInput): Promise<IconsultarHistorialEstadosCtaCteOutput>;
|
|
26
|
+
consultarTiposAjustesOperacion(): Promise<IconsultarTiposAjustesOperacionOutput>;
|
|
27
|
+
consultarMontoObligadoRecepcion(input: IconsultarMontoObligadoRecepcionInput): Promise<IconsultarMontoObligadoRecepcionOutput>;
|
|
28
|
+
modificarOpcionTransferencia(input: ImodificarOpcionTransferenciaInput): Promise<ImodificarOpcionTransferenciaOutput>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
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.FecredRepository = void 0;
|
|
13
|
+
const base_soap_repository_1 = require("../../soap/base-soap-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
|
+
class FecredRepository 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.serviceClient) {
|
|
24
|
+
return this.serviceClient;
|
|
25
|
+
}
|
|
26
|
+
const wsdlName = this.production
|
|
27
|
+
? wsdl_path_enum_1.WsdlPathEnum.WSFECRED
|
|
28
|
+
: wsdl_path_enum_1.WsdlPathEnum.WSFECRED_TEST;
|
|
29
|
+
const endpoint = this.production
|
|
30
|
+
? endpoints_enum_1.EndpointsEnum.WSFECRED
|
|
31
|
+
: endpoints_enum_1.EndpointsEnum.WSFECRED_TEST;
|
|
32
|
+
const { client, soapVersion } = yield this.createSoapClient(wsdlName, {
|
|
33
|
+
forceSoap12Headers: false,
|
|
34
|
+
});
|
|
35
|
+
this.soapClient.setEndpoint(client, endpoint);
|
|
36
|
+
this.serviceClient = this.createAuthenticatedProxy(client, {
|
|
37
|
+
serviceName: service_names_enum_1.ServiceNamesEnum.WSFECRED,
|
|
38
|
+
soapVersion,
|
|
39
|
+
authMapper: (auth) => ({
|
|
40
|
+
authRequest: {
|
|
41
|
+
token: auth.Auth.Token,
|
|
42
|
+
sign: auth.Auth.Sign,
|
|
43
|
+
cuitRepresentada: auth.Auth.Cuit,
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
});
|
|
47
|
+
return this.serviceClient;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
aceptarFECred(input) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const client = yield this.getClient();
|
|
53
|
+
const [output] = yield client.aceptarFECredAsync(input);
|
|
54
|
+
return output;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
rechazarFECred(input) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const client = yield this.getClient();
|
|
60
|
+
const [output] = yield client.rechazarFECredAsync(input);
|
|
61
|
+
return output;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
consultarComprobantes(input) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const client = yield this.getClient();
|
|
67
|
+
const [output] = yield client.consultarComprobantesAsync(input);
|
|
68
|
+
return output;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
consultarCtasCtes(input) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const client = yield this.getClient();
|
|
74
|
+
const [output] = yield client.consultarCtasCtesAsync(input);
|
|
75
|
+
return output;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
consultarCtaCte(input) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const client = yield this.getClient();
|
|
81
|
+
const [output] = yield client.consultarCtaCteAsync(input);
|
|
82
|
+
return output;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
informarCancelacionTotalFECred(input) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const client = yield this.getClient();
|
|
88
|
+
const [output] = yield client.informarCancelacionTotalFECredAsync(input);
|
|
89
|
+
return output;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
rechazarNotaDC(input) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const client = yield this.getClient();
|
|
95
|
+
const [output] = yield client.rechazarNotaDCAsync(input);
|
|
96
|
+
return output;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
informarFacturaAgtDptoCltv(input) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
+
const client = yield this.getClient();
|
|
102
|
+
const [output] = yield client.informarFacturaAgtDptoCltvAsync(input);
|
|
103
|
+
return output;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
consultarFacturasAgtDptoCltv(input) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const client = yield this.getClient();
|
|
109
|
+
const [output] = yield client.consultarFacturasAgtDptoCltvAsync(input);
|
|
110
|
+
return output;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
consultarCuentasEnAgtDptoCltv() {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
const client = yield this.getClient();
|
|
116
|
+
const [output] = yield client.consultarCuentasEnAgtDptoCltvAsync({});
|
|
117
|
+
return output;
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
consultarObligadoRecepcion(input) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const client = yield this.getClient();
|
|
123
|
+
const [output] = yield client.consultarObligadoRecepcionAsync(input);
|
|
124
|
+
return output;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
consultarTiposRetenciones() {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const client = yield this.getClient();
|
|
130
|
+
const [output] = yield client.consultarTiposRetencionesAsync({});
|
|
131
|
+
return output;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
consultarTiposMotivosRechazo() {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const client = yield this.getClient();
|
|
137
|
+
const [output] = yield client.consultarTiposMotivosRechazoAsync({});
|
|
138
|
+
return output;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
consultarTiposFormasCancelacion() {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const client = yield this.getClient();
|
|
144
|
+
const [output] = yield client.consultarTiposFormasCancelacionAsync({});
|
|
145
|
+
return output;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
obtenerRemitos(input) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
const client = yield this.getClient();
|
|
151
|
+
const [output] = yield client.obtenerRemitosAsync(input);
|
|
152
|
+
return output;
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
consultarHistorialEstadosComprobante(input) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const client = yield this.getClient();
|
|
158
|
+
const [output] = yield client.consultarHistorialEstadosComprobanteAsync(input);
|
|
159
|
+
return output;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
consultarHistorialEstadosCtaCte(input) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const client = yield this.getClient();
|
|
165
|
+
const [output] = yield client.consultarHistorialEstadosCtaCteAsync(input);
|
|
166
|
+
return output;
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
consultarTiposAjustesOperacion() {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const client = yield this.getClient();
|
|
172
|
+
const [output] = yield client.consultarTiposAjustesOperacionAsync({});
|
|
173
|
+
return output;
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
consultarMontoObligadoRecepcion(input) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const client = yield this.getClient();
|
|
179
|
+
const [output] = yield client.consultarMontoObligadoRecepcionAsync(input);
|
|
180
|
+
return output;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
modificarOpcionTransferencia(input) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
const client = yield this.getClient();
|
|
186
|
+
const [output] = yield client.modificarOpcionTransferenciaAsync(input);
|
|
187
|
+
return output;
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.FecredRepository = FecredRepository;
|
|
192
|
+
//# sourceMappingURL=fecred.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fecred.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/fecred/fecred.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0EAAqE;AAErE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AAwCzF,MAAa,gBACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEa,SAAS;;YACrB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC,aAAa,CAAC;YAC5B,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,6BAAY,CAAC,QAAQ;gBACvB,CAAC,CAAC,6BAAY,CAAC,aAAa,CAAC;YAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,8BAAa,CAAC,QAAQ;gBACxB,CAAC,CAAC,8BAAa,CAAC,aAAa,CAAC;YAEhC,MAAM,EAAE,MAAM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AC;KAAA;CAQF;AAzMD,4CAyMC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IFexRepositoryPort } from "../../../../../application/ports/fex/fex-repository.port";
|
|
2
|
+
import { BaseSoapRepository } from "../../soap/base-soap-repository";
|
|
3
|
+
import { BaseSoapRepositoryConstructorConfig } from "../../../../types/soap-repository.types";
|
|
4
|
+
import { IFEXAuthorizeInput, IFEXAuthorizeOutput, IFEXGetCMPInput, IFEXGetCMPOutput, IFEXGetLast_CMPInput, IFEXGetLast_CMPOutput, IFEXGetLast_IDInput, IFEXGetLast_IDOutput, IFEXCheck_PermisoInput, IFEXCheck_PermisoOutput, IFEXGetPARAM_Cbte_TipoInput, IFEXGetPARAM_Cbte_TipoOutput, IFEXGetPARAM_Tipo_ExpoInput, IFEXGetPARAM_Tipo_ExpoOutput, IFEXGetPARAM_IncotermsInput, IFEXGetPARAM_IncotermsOutput, IFEXGetPARAM_IdiomasInput, IFEXGetPARAM_IdiomasOutput, IFEXGetPARAM_UMedInput, IFEXGetPARAM_UMedOutput, IFEXGetPARAM_DST_paisInput, IFEXGetPARAM_DST_paisOutput, IFEXGetPARAM_DST_CUITInput, IFEXGetPARAM_DST_CUITOutput, IFEXGetPARAM_MONInput, IFEXGetPARAM_MONOutput, IFEXGetPARAM_MON_CON_COTIZACIONInput, IFEXGetPARAM_MON_CON_COTIZACIONOutput, IFEXGetPARAM_CtzInput, IFEXGetPARAM_CtzOutput, IFEXGetPARAM_PtoVentaInput, IFEXGetPARAM_PtoVentaOutput, IFEXGetPARAM_OpcionalesInput, IFEXGetPARAM_OpcionalesOutput, IFEXGetPARAM_ActividadesInput, IFEXGetPARAM_ActividadesOutput, IFEXDummyOutput } from "../../../../outbound/ports/soap/interfaces/FEXService/ServiceSoap";
|
|
5
|
+
export declare class FexRepository extends BaseSoapRepository implements IFexRepositoryPort {
|
|
6
|
+
private serviceClient?;
|
|
7
|
+
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
8
|
+
private getClient;
|
|
9
|
+
authorize(input: IFEXAuthorizeInput): Promise<IFEXAuthorizeOutput>;
|
|
10
|
+
getCmp(input: IFEXGetCMPInput): Promise<IFEXGetCMPOutput>;
|
|
11
|
+
getLastCmp(input: IFEXGetLast_CMPInput): Promise<IFEXGetLast_CMPOutput>;
|
|
12
|
+
getLastId(input: IFEXGetLast_IDInput): Promise<IFEXGetLast_IDOutput>;
|
|
13
|
+
checkPermiso(input: IFEXCheck_PermisoInput): Promise<IFEXCheck_PermisoOutput>;
|
|
14
|
+
getParamCbteTipo(input: IFEXGetPARAM_Cbte_TipoInput): Promise<IFEXGetPARAM_Cbte_TipoOutput>;
|
|
15
|
+
getParamTipoExpo(input: IFEXGetPARAM_Tipo_ExpoInput): Promise<IFEXGetPARAM_Tipo_ExpoOutput>;
|
|
16
|
+
getParamIncoterms(input: IFEXGetPARAM_IncotermsInput): Promise<IFEXGetPARAM_IncotermsOutput>;
|
|
17
|
+
getParamIdiomas(input: IFEXGetPARAM_IdiomasInput): Promise<IFEXGetPARAM_IdiomasOutput>;
|
|
18
|
+
getParamUMed(input: IFEXGetPARAM_UMedInput): Promise<IFEXGetPARAM_UMedOutput>;
|
|
19
|
+
getParamDstPais(input: IFEXGetPARAM_DST_paisInput): Promise<IFEXGetPARAM_DST_paisOutput>;
|
|
20
|
+
getParamDstCuit(input: IFEXGetPARAM_DST_CUITInput): Promise<IFEXGetPARAM_DST_CUITOutput>;
|
|
21
|
+
getParamMon(input: IFEXGetPARAM_MONInput): Promise<IFEXGetPARAM_MONOutput>;
|
|
22
|
+
getParamMonConCotizacion(input: IFEXGetPARAM_MON_CON_COTIZACIONInput): Promise<IFEXGetPARAM_MON_CON_COTIZACIONOutput>;
|
|
23
|
+
getParamCtz(input: IFEXGetPARAM_CtzInput): Promise<IFEXGetPARAM_CtzOutput>;
|
|
24
|
+
getParamPtoVenta(input: IFEXGetPARAM_PtoVentaInput): Promise<IFEXGetPARAM_PtoVentaOutput>;
|
|
25
|
+
getParamOpcionales(input: IFEXGetPARAM_OpcionalesInput): Promise<IFEXGetPARAM_OpcionalesOutput>;
|
|
26
|
+
getParamActividades(input: IFEXGetPARAM_ActividadesInput): Promise<IFEXGetPARAM_ActividadesOutput>;
|
|
27
|
+
dummy(): Promise<IFEXDummyOutput>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
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.FexRepository = void 0;
|
|
13
|
+
const base_soap_repository_1 = require("../../soap/base-soap-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
|
+
class FexRepository 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.serviceClient) {
|
|
24
|
+
return this.serviceClient;
|
|
25
|
+
}
|
|
26
|
+
const wsdlName = this.production
|
|
27
|
+
? wsdl_path_enum_1.WsdlPathEnum.WSFEX
|
|
28
|
+
: wsdl_path_enum_1.WsdlPathEnum.WSFEX_TEST;
|
|
29
|
+
const endpoint = this.production
|
|
30
|
+
? endpoints_enum_1.EndpointsEnum.WSFEX
|
|
31
|
+
: endpoints_enum_1.EndpointsEnum.WSFEX_TEST;
|
|
32
|
+
const { client, soapVersion } = yield this.createSoapClient(wsdlName);
|
|
33
|
+
this.soapClient.setEndpoint(client, endpoint);
|
|
34
|
+
this.serviceClient = this.createAuthenticatedProxy(client, {
|
|
35
|
+
serviceName: service_names_enum_1.ServiceNamesEnum.WSFEX,
|
|
36
|
+
soapVersion,
|
|
37
|
+
excludeMethods: ["FEXDummy"],
|
|
38
|
+
});
|
|
39
|
+
return this.serviceClient;
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
authorize(input) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
const client = yield this.getClient();
|
|
45
|
+
const [output] = yield client.FEXAuthorizeAsync(input);
|
|
46
|
+
return output;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
getCmp(input) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const client = yield this.getClient();
|
|
52
|
+
const [output] = yield client.FEXGetCMPAsync(input);
|
|
53
|
+
return output;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
getLastCmp(input) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const client = yield this.getClient();
|
|
59
|
+
const [output] = yield client.FEXGetLast_CMPAsync(input);
|
|
60
|
+
return output;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
getLastId(input) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const client = yield this.getClient();
|
|
66
|
+
const [output] = yield client.FEXGetLast_IDAsync(input);
|
|
67
|
+
return output;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
checkPermiso(input) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const client = yield this.getClient();
|
|
73
|
+
const [output] = yield client.FEXCheck_PermisoAsync(input);
|
|
74
|
+
return output;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
getParamCbteTipo(input) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const client = yield this.getClient();
|
|
80
|
+
const [output] = yield client.FEXGetPARAM_Cbte_TipoAsync(input);
|
|
81
|
+
return output;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
getParamTipoExpo(input) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const client = yield this.getClient();
|
|
87
|
+
const [output] = yield client.FEXGetPARAM_Tipo_ExpoAsync(input);
|
|
88
|
+
return output;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
getParamIncoterms(input) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const client = yield this.getClient();
|
|
94
|
+
const [output] = yield client.FEXGetPARAM_IncotermsAsync(input);
|
|
95
|
+
return output;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
getParamIdiomas(input) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const client = yield this.getClient();
|
|
101
|
+
const [output] = yield client.FEXGetPARAM_IdiomasAsync(input);
|
|
102
|
+
return output;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
getParamUMed(input) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const client = yield this.getClient();
|
|
108
|
+
const [output] = yield client.FEXGetPARAM_UMedAsync(input);
|
|
109
|
+
return output;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
getParamDstPais(input) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const client = yield this.getClient();
|
|
115
|
+
const [output] = yield client.FEXGetPARAM_DST_paisAsync(input);
|
|
116
|
+
return output;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
getParamDstCuit(input) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const client = yield this.getClient();
|
|
122
|
+
const [output] = yield client.FEXGetPARAM_DST_CUITAsync(input);
|
|
123
|
+
return output;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
getParamMon(input) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
const client = yield this.getClient();
|
|
129
|
+
const [output] = yield client.FEXGetPARAM_MONAsync(input);
|
|
130
|
+
return output;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
getParamMonConCotizacion(input) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
const client = yield this.getClient();
|
|
136
|
+
const [output] = yield client.FEXGetPARAM_MON_CON_COTIZACIONAsync(input);
|
|
137
|
+
return output;
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
getParamCtz(input) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
const client = yield this.getClient();
|
|
143
|
+
const [output] = yield client.FEXGetPARAM_CtzAsync(input);
|
|
144
|
+
return output;
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
getParamPtoVenta(input) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const client = yield this.getClient();
|
|
150
|
+
const [output] = yield client.FEXGetPARAM_PtoVentaAsync(input);
|
|
151
|
+
return output;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
getParamOpcionales(input) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const client = yield this.getClient();
|
|
157
|
+
const [output] = yield client.FEXGetPARAM_OpcionalesAsync(input);
|
|
158
|
+
return output;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
getParamActividades(input) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const client = yield this.getClient();
|
|
164
|
+
const [output] = yield client.FEXGetPARAM_ActividadesAsync(input);
|
|
165
|
+
return output;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
dummy() {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const client = yield this.getClient();
|
|
171
|
+
const [output] = yield client.FEXDummyAsync({});
|
|
172
|
+
return output;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.FexRepository = FexRepository;
|
|
177
|
+
//# sourceMappingURL=fex.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fex.repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/fex/fex.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0EAAqE;AAErE,qFAAgF;AAChF,6FAAwF;AACxF,6FAAyF;AA0CzF,MAAa,aACX,SAAQ,yCAAkB;IAK1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEa,SAAS;;YACrB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,OAAO,IAAI,CAAC,aAAa,CAAC;YAC5B,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,6BAAY,CAAC,KAAK;gBACpB,CAAC,CAAC,6BAAY,CAAC,UAAU,CAAC;YAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU;gBAC9B,CAAC,CAAC,8BAAa,CAAC,KAAK;gBACrB,CAAC,CAAC,8BAAa,CAAC,UAAU,CAAC;YAE7B,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAC3B,MAAM,IAAI,CAAC,gBAAgB,CAAmB,QAAQ,CAAC,CAAC;YAE1D,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAE9C,IAAI,CAAC,aAAa,GAAG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,KAAmC;;YAC1D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;YACjE,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;IAEK,mBAAmB,CAAC,KAAoC;;YAC5D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC;YAClE,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;IAEK,KAAK;;YACT,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;YAChD,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AArJD,sCAqJC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IGenericRepositoryPort } from "../../../../../application/ports/generic/generic-repository.port";
|
|
2
|
+
import { BaseSoapRepository } from "../../soap/base-soap-repository";
|
|
3
|
+
import { BaseSoapRepositoryConstructorConfig } from "../../../../types/soap-repository.types";
|
|
4
|
+
import { ServiceNamesEnum } from "../../../../constants/service-names.enum";
|
|
5
|
+
export declare class GenericRepository extends BaseSoapRepository implements IGenericRepositoryPort {
|
|
6
|
+
constructor(config: BaseSoapRepositoryConstructorConfig);
|
|
7
|
+
call(serviceName: ServiceNamesEnum, methodName: string, params: any, options?: {
|
|
8
|
+
wsdlContent?: string;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
}
|
package/lib/infrastructure/outbound/adapters/{generic → repositories/generic}/generic-repository.js
RENAMED
|
@@ -10,8 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GenericRepository = void 0;
|
|
13
|
-
const base_soap_repository_1 = require("
|
|
14
|
-
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
13
|
+
const base_soap_repository_1 = require("../../soap/base-soap-repository");
|
|
15
14
|
class GenericRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
16
15
|
constructor(config) {
|
|
17
16
|
super(config);
|
|
@@ -19,32 +18,20 @@ class GenericRepository extends base_soap_repository_1.BaseSoapRepository {
|
|
|
19
18
|
call(serviceName, methodName, params, options) {
|
|
20
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
20
|
const wsdlName = serviceName;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
client = yield this.soapClient.createClient(wsdlName, {
|
|
26
|
-
forceSoap12Headers: true,
|
|
27
|
-
wsdlContent: options === null || options === void 0 ? void 0 : options.wsdlContent,
|
|
28
|
-
});
|
|
29
|
-
soapVersion = endpoints_enum_1.SoapServiceVersion.ServiceSoap12;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
client = yield this.soapClient.createClient(wsdlName, {
|
|
33
|
-
forceSoap12Headers: false,
|
|
34
|
-
wsdlContent: options === null || options === void 0 ? void 0 : options.wsdlContent,
|
|
35
|
-
});
|
|
36
|
-
soapVersion = endpoints_enum_1.SoapServiceVersion.ServiceSoap;
|
|
37
|
-
}
|
|
21
|
+
const { client, soapVersion } = yield this.createSoapClient(wsdlName, {
|
|
22
|
+
wsdlContent: options === null || options === void 0 ? void 0 : options.wsdlContent,
|
|
23
|
+
});
|
|
38
24
|
const authenticatedClient = this.createAuthenticatedProxy(client, {
|
|
39
25
|
serviceName: serviceName,
|
|
40
26
|
injectAuthProperty: false,
|
|
41
27
|
soapVersion,
|
|
42
28
|
});
|
|
43
29
|
const methodAsync = `${methodName}Async`;
|
|
44
|
-
|
|
30
|
+
const asyncMethod = authenticatedClient[methodAsync];
|
|
31
|
+
if (typeof asyncMethod !== "function") {
|
|
45
32
|
throw new Error(`Method ${methodName} not found on service ${serviceName}`);
|
|
46
33
|
}
|
|
47
|
-
const [result] = yield
|
|
34
|
+
const [result] = yield asyncMethod(params);
|
|
48
35
|
return result;
|
|
49
36
|
});
|
|
50
37
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-repository.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/generic/generic-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,0EAAqE;AAIrE,MAAa,iBACX,SAAQ,yCAAkB;IAG1B,YAAY,MAA2C;QACrD,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAEK,IAAI,CACR,WAA6B,EAC7B,UAAkB,EAClB,MAAW,EACX,OAAkC;;YAElC,MAAM,QAAQ,GAAG,WAAW,CAAC;YAE7B,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE;gBACpE,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;aAClC,CAAC,CAAC;YAEH,MAAM,mBAAmB,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE;gBAChE,WAAW,EAAE,WAAW;gBACxB,kBAAkB,EAAE,KAAK;gBACzB,WAAW;aACZ,CAAC,CAAC;YAEH,MAAM,WAAW,GAAG,GAAG,UAAU,OAAO,CAAC;YACzC,MAAM,WAAW,GACf,mBACD,CAAC,WAAW,CAAC,CAAC;YAEf,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CACb,UAAU,UAAU,yBAAyB,WAAW,EAAE,CAC3D,CAAC;YACJ,CAAC;YAED,MAAM,CAAC,MAAM,CAAC,GAAG,MAAO,WAA6C,CACnE,MAAM,CACP,CAAC;YACF,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AA1CD,8CA0CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./generic-repository";
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./generic-repository"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/outbound/adapters/repositories/generic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Client } from "soap";
|
|
2
|
+
import { BaseRegisterRepository } from "./base-register-repository";
|
|
3
|
+
import { IRegisterBatchRepositoryPort } from "../../../../../application/ports/register/register-repository.ports";
|
|
4
|
+
import { TaxpayersDetailsDto, TaxpayerDetailsDto } from "../../../../../application/dto/register.dto";
|
|
5
|
+
export declare abstract class BaseBatchRegisterRepository<TClient extends Client & {
|
|
6
|
+
dummyAsync: (args: any) => Promise<any>;
|
|
7
|
+
}> extends BaseRegisterRepository<TClient> implements IRegisterBatchRepositoryPort {
|
|
8
|
+
protected abstract get personaListMethod(): "getPersonaList_v2Async" | "getPersonaListAsync";
|
|
9
|
+
getTaxpayersDetails(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
10
|
+
protected mapPersonaToDto(persona: any): TaxpayerDetailsDto;
|
|
11
|
+
}
|