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