@arcasdk/core 0.1.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/config/env.d.ts +6 -0
- package/lib/application/config/env.js +14 -0
- package/lib/application/config/env.js.map +1 -0
- package/lib/application/config/index.d.ts +6 -0
- package/lib/application/config/index.js +15 -0
- package/lib/application/config/index.js.map +1 -0
- package/lib/application/dto/electronic-billing.dto.d.ts +114 -0
- package/lib/application/dto/electronic-billing.dto.js +3 -0
- package/lib/application/dto/electronic-billing.dto.js.map +1 -0
- package/lib/application/dto/index.d.ts +6 -0
- package/lib/application/dto/index.js +23 -0
- package/lib/application/dto/index.js.map +1 -0
- package/lib/application/dto/register.dto.d.ts +116 -0
- package/lib/application/dto/register.dto.js +8 -0
- package/lib/application/dto/register.dto.js.map +1 -0
- package/lib/application/index.d.ts +10 -0
- package/lib/application/index.js +27 -0
- package/lib/application/index.js.map +1 -0
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +29 -0
- package/lib/application/ports/authentication/authentication-repository.port.js +3 -0
- package/lib/application/ports/authentication/authentication-repository.port.js.map +1 -0
- package/lib/application/ports/authentication/index.d.ts +5 -0
- package/lib/application/ports/authentication/index.js +22 -0
- package/lib/application/ports/authentication/index.js.map +1 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +77 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +3 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +1 -0
- package/lib/application/ports/electronic-billing/index.d.ts +5 -0
- package/lib/application/ports/electronic-billing/index.js +22 -0
- package/lib/application/ports/electronic-billing/index.js.map +1 -0
- package/lib/application/ports/index.d.ts +7 -0
- package/lib/application/ports/index.js +24 -0
- package/lib/application/ports/index.js.map +1 -0
- package/lib/application/ports/register/index.d.ts +5 -0
- package/lib/application/ports/register/index.js +22 -0
- package/lib/application/ports/register/index.js.map +1 -0
- package/lib/application/ports/register/register-repository.port.d.ts +42 -0
- package/lib/application/ports/register/register-repository.port.js +12 -0
- package/lib/application/ports/register/register-repository.port.js.map +1 -0
- package/lib/application/services/electronic-billing.service.d.ts +129 -0
- package/lib/application/services/electronic-billing.service.js +217 -0
- package/lib/application/services/electronic-billing.service.js.map +1 -0
- package/lib/application/services/index.d.ts +10 -0
- package/lib/application/services/index.js +27 -0
- package/lib/application/services/index.js.map +1 -0
- package/lib/application/services/register-inscription-proof.service.d.ts +35 -0
- package/lib/application/services/register-inscription-proof.service.js +101 -0
- package/lib/application/services/register-inscription-proof.service.js.map +1 -0
- package/lib/application/services/register-scope-five.service.d.ts +35 -0
- package/lib/application/services/register-scope-five.service.js +101 -0
- package/lib/application/services/register-scope-five.service.js.map +1 -0
- package/lib/application/services/register-scope-four.service.d.ts +28 -0
- package/lib/application/services/register-scope-four.service.js +72 -0
- package/lib/application/services/register-scope-four.service.js.map +1 -0
- package/lib/application/services/register-scope-ten.service.d.ts +28 -0
- package/lib/application/services/register-scope-ten.service.js +72 -0
- package/lib/application/services/register-scope-ten.service.js.map +1 -0
- package/lib/application/services/register-scope-thirteen.service.d.ts +36 -0
- package/lib/application/services/register-scope-thirteen.service.js +96 -0
- package/lib/application/services/register-scope-thirteen.service.js.map +1 -0
- package/lib/application/types/auth.types.d.ts +19 -0
- package/lib/application/types/auth.types.js +7 -0
- package/lib/application/types/auth.types.js.map +1 -0
- package/lib/application/types/context.types.d.ts +46 -0
- package/lib/application/types/context.types.js +3 -0
- package/lib/application/types/context.types.js.map +1 -0
- package/lib/application/types/index.d.ts +8 -0
- package/lib/application/types/index.js +25 -0
- package/lib/application/types/index.js.map +1 -0
- package/lib/application/types/result.types.d.ts +10 -0
- package/lib/application/types/result.types.js +3 -0
- package/lib/application/types/result.types.js.map +1 -0
- package/lib/application/types/use-case-inputs.types.d.ts +42 -0
- package/lib/application/types/use-case-inputs.types.js +3 -0
- package/lib/application/types/use-case-inputs.types.js.map +1 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js +29 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/index.d.ts +7 -0
- package/lib/application/use-cases/authentication/index.js +24 -0
- package/lib/application/use-cases/authentication/index.js.map +1 -0
- package/lib/application/use-cases/authentication/login.use-case.d.ts +17 -0
- package/lib/application/use-cases/authentication/login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/login.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +39 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +33 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +40 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +73 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/index.d.ts +18 -0
- package/lib/application/use-cases/electronic-billing/index.js +36 -0
- package/lib/application/use-cases/electronic-billing/index.js.map +1 -0
- package/lib/application/use-cases/index.d.ts +7 -0
- package/lib/application/use-cases/index.js +24 -0
- package/lib/application/use-cases/index.js.map +1 -0
- package/lib/application/use-cases/register/get-server-status.use-case.d.ts +17 -0
- package/lib/application/use-cases/register/get-server-status.use-case.js +29 -0
- package/lib/application/use-cases/register/get-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +18 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +29 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +17 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +18 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/index.d.ts +8 -0
- package/lib/application/use-cases/register/index.js +25 -0
- package/lib/application/use-cases/register/index.js.map +1 -0
- package/lib/arca.d.ts +23 -0
- package/lib/arca.js +83 -0
- package/lib/arca.js.map +1 -0
- package/lib/domain/entities/access-ticket.entity.d.ts +73 -0
- package/lib/domain/entities/access-ticket.entity.js +144 -0
- package/lib/domain/entities/access-ticket.entity.js.map +1 -0
- package/lib/domain/entities/index.d.ts +6 -0
- package/lib/domain/entities/index.js +23 -0
- package/lib/domain/entities/index.js.map +1 -0
- package/lib/domain/entities/voucher.entity.d.ts +113 -0
- package/lib/domain/entities/voucher.entity.js +216 -0
- package/lib/domain/entities/voucher.entity.js.map +1 -0
- package/lib/domain/index.d.ts +6 -0
- package/lib/domain/index.js +23 -0
- package/lib/domain/index.js.map +1 -0
- package/lib/domain/types/electronic-billing.types.d.ts +120 -0
- package/lib/domain/types/electronic-billing.types.js +8 -0
- package/lib/domain/types/electronic-billing.types.js.map +1 -0
- package/lib/domain/types/index.d.ts +6 -0
- package/lib/domain/types/index.js +23 -0
- package/lib/domain/types/index.js.map +1 -0
- package/lib/domain/types/voucher.types.d.ts +65 -0
- package/lib/domain/types/voucher.types.js +3 -0
- package/lib/domain/types/voucher.types.js.map +1 -0
- package/lib/domain/value-objects/cae.vo.d.ts +47 -0
- package/lib/domain/value-objects/cae.vo.js +80 -0
- package/lib/domain/value-objects/cae.vo.js.map +1 -0
- package/lib/domain/value-objects/cuit.vo.d.ts +49 -0
- package/lib/domain/value-objects/cuit.vo.js +98 -0
- package/lib/domain/value-objects/cuit.vo.js.map +1 -0
- package/lib/domain/value-objects/index.d.ts +7 -0
- package/lib/domain/value-objects/index.js +24 -0
- package/lib/domain/value-objects/index.js.map +1 -0
- package/lib/domain/value-objects/voucher-number.vo.d.ts +66 -0
- package/lib/domain/value-objects/voucher-number.vo.js +106 -0
- package/lib/domain/value-objects/voucher-number.vo.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +27 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/constants/index.d.ts +5 -0
- package/lib/infrastructure/constants/index.js +22 -0
- package/lib/infrastructure/constants/index.js.map +1 -0
- package/lib/infrastructure/constants/ssl.constants.d.ts +16 -0
- package/lib/infrastructure/constants/ssl.constants.js +20 -0
- package/lib/infrastructure/constants/ssl.constants.js.map +1 -0
- package/lib/infrastructure/index.d.ts +5 -0
- package/lib/infrastructure/index.js +22 -0
- package/lib/infrastructure/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +68 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +128 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +59 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +134 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +31 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +299 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +5 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +22 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/enums.d.ts +43 -0
- package/lib/infrastructure/outbound/adapters/enums.js +49 -0
- package/lib/infrastructure/outbound/adapters/enums.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/index.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/index.js +27 -0
- package/lib/infrastructure/outbound/adapters/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +24 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/index.d.ts +5 -0
- package/lib/infrastructure/outbound/adapters/register/index.js +22 -0
- package/lib/infrastructure/outbound/adapters/register/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-repository.d.ts +32 -0
- package/lib/infrastructure/outbound/adapters/register/register-repository.js +288 -0
- package/lib/infrastructure/outbound/adapters/register/register-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +30 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +63 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +20 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +54 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +11 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +89 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +5804 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +24 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +98 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -0
- package/lib/infrastructure/outbound/index.d.ts +9 -0
- package/lib/infrastructure/outbound/index.js +26 -0
- package/lib/infrastructure/outbound/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +17 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/index.d.ts +11 -0
- package/lib/infrastructure/outbound/ports/index.js +28 -0
- package/lib/infrastructure/outbound/ports/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +31 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +51 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +57 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +14 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +20 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +42 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +102 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +145 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +227 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +300 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +301 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +835 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +876 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +53 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +28 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +37 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +24 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +1 -0
- package/lib/infrastructure/types/index.d.ts +5 -0
- package/lib/infrastructure/types/index.js +22 -0
- package/lib/infrastructure/types/index.js.map +1 -0
- package/lib/infrastructure/types/soap.types.d.ts +29 -0
- package/lib/infrastructure/types/soap.types.js +3 -0
- package/lib/infrastructure/types/soap.types.js.map +1 -0
- package/lib/infrastructure/utils/crypt-data.d.ts +6 -0
- package/lib/infrastructure/utils/crypt-data.js +46 -0
- package/lib/infrastructure/utils/crypt-data.js.map +1 -0
- package/lib/infrastructure/utils/env.d.ts +10 -0
- package/lib/infrastructure/utils/env.js +32 -0
- package/lib/infrastructure/utils/env.js.map +1 -0
- package/lib/infrastructure/utils/index.d.ts +8 -0
- package/lib/infrastructure/utils/index.js +25 -0
- package/lib/infrastructure/utils/index.js.map +1 -0
- package/lib/infrastructure/utils/logger.d.ts +4 -0
- package/lib/infrastructure/utils/logger.js +21 -0
- package/lib/infrastructure/utils/logger.js.map +1 -0
- package/lib/infrastructure/utils/parser.d.ts +14 -0
- package/lib/infrastructure/utils/parser.js +36 -0
- package/lib/infrastructure/utils/parser.js.map +1 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +104 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js +111 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Parameter Types Use Case
|
|
3
|
+
* Retrieves various parameter types from AFIP/ARCA
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { ConceptTypesResultDto, DocumentTypesResultDto, AliquotTypesResultDto, CurrencyTypesResultDto, OptionalTypesResultDto, TaxTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
export declare class GetParameterTypesUseCase {
|
|
8
|
+
private readonly electronicBillingRepository;
|
|
9
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Get concept types
|
|
12
|
+
* @returns Concept types information
|
|
13
|
+
*/
|
|
14
|
+
getConceptTypes(): Promise<ConceptTypesResultDto>;
|
|
15
|
+
/**
|
|
16
|
+
* Get document types
|
|
17
|
+
* @returns Document types information
|
|
18
|
+
*/
|
|
19
|
+
getDocumentTypes(): Promise<DocumentTypesResultDto>;
|
|
20
|
+
/**
|
|
21
|
+
* Get aliquot types
|
|
22
|
+
* @returns Aliquot types information
|
|
23
|
+
*/
|
|
24
|
+
getAliquotTypes(): Promise<AliquotTypesResultDto>;
|
|
25
|
+
/**
|
|
26
|
+
* Get currency types
|
|
27
|
+
* @returns Currency types information
|
|
28
|
+
*/
|
|
29
|
+
getCurrencyTypes(): Promise<CurrencyTypesResultDto>;
|
|
30
|
+
/**
|
|
31
|
+
* Get optional types
|
|
32
|
+
* @returns Optional types information
|
|
33
|
+
*/
|
|
34
|
+
getOptionalTypes(): Promise<OptionalTypesResultDto>;
|
|
35
|
+
/**
|
|
36
|
+
* Get tax types
|
|
37
|
+
* @returns Tax types information
|
|
38
|
+
*/
|
|
39
|
+
getTaxTypes(): Promise<TaxTypesResultDto>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.GetParameterTypesUseCase = void 0;
|
|
13
|
+
class GetParameterTypesUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get concept types
|
|
19
|
+
* @returns Concept types information
|
|
20
|
+
*/
|
|
21
|
+
getConceptTypes() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.electronicBillingRepository.getConceptTypes();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get document types
|
|
28
|
+
* @returns Document types information
|
|
29
|
+
*/
|
|
30
|
+
getDocumentTypes() {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return this.electronicBillingRepository.getDocumentTypes();
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get aliquot types
|
|
37
|
+
* @returns Aliquot types information
|
|
38
|
+
*/
|
|
39
|
+
getAliquotTypes() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
return this.electronicBillingRepository.getAliquotTypes();
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Get currency types
|
|
46
|
+
* @returns Currency types information
|
|
47
|
+
*/
|
|
48
|
+
getCurrencyTypes() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return this.electronicBillingRepository.getCurrencyTypes();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get optional types
|
|
55
|
+
* @returns Optional types information
|
|
56
|
+
*/
|
|
57
|
+
getOptionalTypes() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
return this.electronicBillingRepository.getOptionalTypes();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get tax types
|
|
64
|
+
* @returns Tax types information
|
|
65
|
+
*/
|
|
66
|
+
getTaxTypes() {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return this.electronicBillingRepository.getTaxTypes();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.GetParameterTypesUseCase = GetParameterTypesUseCase;
|
|
73
|
+
//# sourceMappingURL=get-parameter-types.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-parameter-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-parameter-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAcA,MAAa,wBAAwB;IACnC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,eAAe;;YACnB,OAAO,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;QAC5D,CAAC;KAAA;IAED;;;OAGG;IACG,gBAAgB;;YACpB,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;IAED;;;OAGG;IACG,eAAe;;YACnB,OAAO,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;QAC5D,CAAC;KAAA;IAED;;;OAGG;IACG,gBAAgB;;YACpB,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;IAED;;;OAGG;IACG,gBAAgB;;YACpB,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;IAED;;;OAGG;IACG,WAAW;;YACf,OAAO,IAAI,CAAC,2BAA2B,CAAC,WAAW,EAAE,CAAC;QACxD,CAAC;KAAA;CACF;AApDD,4DAoDC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Sales Points Use Case
|
|
3
|
+
* Retrieves available sales points from AFIP/ARCA
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { SalesPointsResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
export declare class GetSalesPointsUseCase {
|
|
8
|
+
private readonly electronicBillingRepository;
|
|
9
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @returns Sales points information
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<SalesPointsResultDto>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetSalesPointsUseCase = void 0;
|
|
13
|
+
class GetSalesPointsUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @returns Sales points information
|
|
20
|
+
*/
|
|
21
|
+
execute() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.electronicBillingRepository.getSalesPoints();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetSalesPointsUseCase = GetSalesPointsUseCase;
|
|
28
|
+
//# sourceMappingURL=get-sales-points.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sales-points.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-sales-points.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,qBAAqB;IAChC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,cAAc,EAAE,CAAC;QAC3D,CAAC;KAAA;CACF;AAZD,sDAYC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Server Status Use Case
|
|
3
|
+
* Retrieves the status of AFIP/ARCA servers
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { ServerStatusDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
export declare class GetServerStatusUseCase {
|
|
8
|
+
private readonly electronicBillingRepository;
|
|
9
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @returns Server status information
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<ServerStatusDto>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetServerStatusUseCase = void 0;
|
|
13
|
+
class GetServerStatusUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @returns Server status information
|
|
20
|
+
*/
|
|
21
|
+
execute() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.electronicBillingRepository.getServerStatus();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetServerStatusUseCase = GetServerStatusUseCase;
|
|
28
|
+
//# sourceMappingURL=get-server-status.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-server-status.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-server-status.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,sBAAsB;IACjC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;QAC5D,CAAC;KAAA;CACF;AAZD,wDAYC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Tax Types Use Case
|
|
3
|
+
* Retrieves available tax types from AFIP/ARCA
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { TaxTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
export declare class GetTaxTypesUseCase {
|
|
8
|
+
private readonly electronicBillingRepository;
|
|
9
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @returns Tax types information
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<TaxTypesResultDto>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetTaxTypesUseCase = void 0;
|
|
13
|
+
class GetTaxTypesUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @returns Tax types information
|
|
20
|
+
*/
|
|
21
|
+
execute() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.electronicBillingRepository.getTaxTypes();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetTaxTypesUseCase = GetTaxTypesUseCase;
|
|
28
|
+
//# sourceMappingURL=get-tax-types.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tax-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-tax-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,kBAAkB;IAC7B,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,WAAW,EAAE,CAAC;QACxD,CAAC;KAAA;CACF;AAZD,gDAYC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Voucher Info Use Case
|
|
3
|
+
* Retrieves information about a specific voucher
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { VoucherInfoResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
import { GetVoucherInfoInput } from "@application/types";
|
|
8
|
+
export declare class GetVoucherInfoUseCase {
|
|
9
|
+
private readonly electronicBillingRepository;
|
|
10
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
11
|
+
/**
|
|
12
|
+
* Execute the use case
|
|
13
|
+
* @param input Voucher number, sales point, and type
|
|
14
|
+
* @returns Voucher information or null if not found
|
|
15
|
+
*/
|
|
16
|
+
execute(input: GetVoucherInfoInput): Promise<VoucherInfoResultDto | null>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.GetVoucherInfoUseCase = void 0;
|
|
13
|
+
class GetVoucherInfoUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param input Voucher number, sales point, and type
|
|
20
|
+
* @returns Voucher information or null if not found
|
|
21
|
+
*/
|
|
22
|
+
execute(input) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.electronicBillingRepository.getVoucherInfo(input.number, input.salesPoint, input.type);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetVoucherInfoUseCase = GetVoucherInfoUseCase;
|
|
29
|
+
//# sourceMappingURL=get-voucher-info.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-voucher-info.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-voucher-info.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,qBAAqB;IAChC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CACX,KAA0B;;YAE1B,OAAO,IAAI,CAAC,2BAA2B,CAAC,cAAc,CACpD,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,IAAI,CACX,CAAC;QACJ,CAAC;KAAA;CACF;AAnBD,sDAmBC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Voucher Types Use Case
|
|
3
|
+
* Retrieves available voucher types from AFIP/ARCA
|
|
4
|
+
*/
|
|
5
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
+
import { VoucherTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
+
export declare class GetVoucherTypesUseCase {
|
|
8
|
+
private readonly electronicBillingRepository;
|
|
9
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @returns Voucher types information
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<VoucherTypesResultDto>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.GetVoucherTypesUseCase = void 0;
|
|
13
|
+
class GetVoucherTypesUseCase {
|
|
14
|
+
constructor(electronicBillingRepository) {
|
|
15
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @returns Voucher types information
|
|
20
|
+
*/
|
|
21
|
+
execute() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.electronicBillingRepository.getVoucherTypes();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetVoucherTypesUseCase = GetVoucherTypesUseCase;
|
|
28
|
+
//# sourceMappingURL=get-voucher-types.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-voucher-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-voucher-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,sBAAsB;IACjC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,eAAe,EAAE,CAAC;QAC5D,CAAC;KAAA;CACF;AAZD,wDAYC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electronic Billing Use Cases
|
|
3
|
+
* Exports all electronic billing-related use cases
|
|
4
|
+
*/
|
|
5
|
+
export * from "./get-server-status.use-case";
|
|
6
|
+
export * from "./get-sales-points.use-case";
|
|
7
|
+
export * from "./get-last-voucher.use-case";
|
|
8
|
+
export * from "./create-voucher.use-case";
|
|
9
|
+
export * from "./create-next-voucher.use-case";
|
|
10
|
+
export * from "./get-voucher-info.use-case";
|
|
11
|
+
export * from "./get-voucher-types.use-case";
|
|
12
|
+
export * from "./get-concept-types.use-case";
|
|
13
|
+
export * from "./get-document-types.use-case";
|
|
14
|
+
export * from "./get-aliquot-types.use-case";
|
|
15
|
+
export * from "./get-currency-types.use-case";
|
|
16
|
+
export * from "./get-optional-types.use-case";
|
|
17
|
+
export * from "./get-tax-types.use-case";
|
|
18
|
+
export * from "./get-parameter-types.use-case";
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* Electronic Billing Use Cases
|
|
19
|
+
* Exports all electronic billing-related use cases
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./get-server-status.use-case"), exports);
|
|
22
|
+
__exportStar(require("./get-sales-points.use-case"), exports);
|
|
23
|
+
__exportStar(require("./get-last-voucher.use-case"), exports);
|
|
24
|
+
__exportStar(require("./create-voucher.use-case"), exports);
|
|
25
|
+
__exportStar(require("./create-next-voucher.use-case"), exports);
|
|
26
|
+
__exportStar(require("./get-voucher-info.use-case"), exports);
|
|
27
|
+
__exportStar(require("./get-voucher-types.use-case"), exports);
|
|
28
|
+
__exportStar(require("./get-concept-types.use-case"), exports);
|
|
29
|
+
__exportStar(require("./get-document-types.use-case"), exports);
|
|
30
|
+
__exportStar(require("./get-aliquot-types.use-case"), exports);
|
|
31
|
+
__exportStar(require("./get-currency-types.use-case"), exports);
|
|
32
|
+
__exportStar(require("./get-optional-types.use-case"), exports);
|
|
33
|
+
__exportStar(require("./get-tax-types.use-case"), exports);
|
|
34
|
+
// Keep get-parameter-types for backward compatibility (deprecated)
|
|
35
|
+
__exportStar(require("./get-parameter-types.use-case"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C;AAC7C,gEAA8C;AAC9C,+DAA6C;AAC7C,gEAA8C;AAC9C,gEAA8C;AAC9C,2DAAyC;AACzC,mEAAmE;AACnE,iEAA+C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* Use Cases
|
|
19
|
+
* Exports all use cases organized by domain
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./authentication"), exports);
|
|
22
|
+
__exportStar(require("./electronic-billing"), exports);
|
|
23
|
+
__exportStar(require("./register"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,uDAAqC;AACrC,6CAA2B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Server Status Use Case (Register)
|
|
3
|
+
* Retrieves the status of AFIP/ARCA register servers
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
6
|
+
import { RegisterServerStatusDto } from "@application/dto/register.dto";
|
|
7
|
+
import { GetRegisterServerStatusInput } from "@application/types";
|
|
8
|
+
export declare class GetRegisterServerStatusUseCase {
|
|
9
|
+
private readonly registerRepository;
|
|
10
|
+
constructor(registerRepository: IRegisterRepositoryPort);
|
|
11
|
+
/**
|
|
12
|
+
* Execute the use case
|
|
13
|
+
* @param input Register scope
|
|
14
|
+
* @returns Server status information
|
|
15
|
+
*/
|
|
16
|
+
execute(input: GetRegisterServerStatusInput): Promise<RegisterServerStatusDto>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.GetRegisterServerStatusUseCase = void 0;
|
|
13
|
+
class GetRegisterServerStatusUseCase {
|
|
14
|
+
constructor(registerRepository) {
|
|
15
|
+
this.registerRepository = registerRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param input Register scope
|
|
20
|
+
* @returns Server status information
|
|
21
|
+
*/
|
|
22
|
+
execute(input) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.registerRepository.getServerStatus(input.scope);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetRegisterServerStatusUseCase = GetRegisterServerStatusUseCase;
|
|
29
|
+
//# sourceMappingURL=get-server-status.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-server-status.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-server-status.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,8BAA8B;IACzC,YAA6B,kBAA2C;QAA3C,uBAAkB,GAAlB,kBAAkB,CAAyB;IAAG,CAAC;IAE5E;;;;OAIG;IACG,OAAO,CACX,KAAmC;;YAEnC,OAAO,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;KAAA;CACF;AAbD,wEAaC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Tax ID By Document Use Case
|
|
3
|
+
* Retrieves tax ID (CUIT) by document number
|
|
4
|
+
* Available only for RegisterScope.THIRTEEN
|
|
5
|
+
*/
|
|
6
|
+
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
7
|
+
import { TaxIDByDocumentResultDto } from "@application/dto/register.dto";
|
|
8
|
+
import { GetTaxIDByDocumentInput } from "@application/types";
|
|
9
|
+
export declare class GetTaxIDByDocumentUseCase {
|
|
10
|
+
private readonly registerRepository;
|
|
11
|
+
constructor(registerRepository: IRegisterRepositoryPort);
|
|
12
|
+
/**
|
|
13
|
+
* Execute the use case
|
|
14
|
+
* @param input Register scope and document number
|
|
15
|
+
* @returns Tax ID result
|
|
16
|
+
*/
|
|
17
|
+
execute(input: GetTaxIDByDocumentInput): Promise<TaxIDByDocumentResultDto>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.GetTaxIDByDocumentUseCase = void 0;
|
|
13
|
+
class GetTaxIDByDocumentUseCase {
|
|
14
|
+
constructor(registerRepository) {
|
|
15
|
+
this.registerRepository = registerRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param input Register scope and document number
|
|
20
|
+
* @returns Tax ID result
|
|
21
|
+
*/
|
|
22
|
+
execute(input) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.registerRepository.getTaxIDByDocument(input.scope, input.documentNumber);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetTaxIDByDocumentUseCase = GetTaxIDByDocumentUseCase;
|
|
29
|
+
//# sourceMappingURL=get-tax-id-by-document.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tax-id-by-document.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-tax-id-by-document.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,MAAa,yBAAyB;IACpC,YAA6B,kBAA2C;QAA3C,uBAAkB,GAAlB,kBAAkB,CAAyB;IAAG,CAAC;IAE5E;;;;OAIG;IACG,OAAO,CACX,KAA8B;;YAE9B,OAAO,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAC/C,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,cAAc,CACrB,CAAC;QACJ,CAAC;KAAA;CACF;AAhBD,8DAgBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Taxpayer Details Use Case
|
|
3
|
+
* Retrieves taxpayer details by identifier
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
6
|
+
import { TaxpayerDetailsDto } from "@application/dto/register.dto";
|
|
7
|
+
import { GetTaxpayerDetailsInput } from "@application/types";
|
|
8
|
+
export declare class GetTaxpayerDetailsUseCase {
|
|
9
|
+
private readonly registerRepository;
|
|
10
|
+
constructor(registerRepository: IRegisterRepositoryPort);
|
|
11
|
+
/**
|
|
12
|
+
* Execute the use case
|
|
13
|
+
* @param input Register scope and taxpayer identifier
|
|
14
|
+
* @returns Taxpayer details or null if not found
|
|
15
|
+
*/
|
|
16
|
+
execute(input: GetTaxpayerDetailsInput): Promise<TaxpayerDetailsDto | null>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.GetTaxpayerDetailsUseCase = void 0;
|
|
13
|
+
class GetTaxpayerDetailsUseCase {
|
|
14
|
+
constructor(registerRepository) {
|
|
15
|
+
this.registerRepository = registerRepository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param input Register scope and taxpayer identifier
|
|
20
|
+
* @returns Taxpayer details or null if not found
|
|
21
|
+
*/
|
|
22
|
+
execute(input) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.registerRepository.getTaxpayerDetails(input.scope, input.identifier);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetTaxpayerDetailsUseCase = GetTaxpayerDetailsUseCase;
|
|
29
|
+
//# sourceMappingURL=get-taxpayer-details.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-taxpayer-details.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-taxpayer-details.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,yBAAyB;IACpC,YAA6B,kBAA2C;QAA3C,uBAAkB,GAAlB,kBAAkB,CAAyB;IAAG,CAAC;IAE5E;;;;OAIG;IACG,OAAO,CACX,KAA8B;;YAE9B,OAAO,IAAI,CAAC,kBAAkB,CAAC,kBAAkB,CAC/C,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,UAAU,CACjB,CAAC;QACJ,CAAC;KAAA;CACF;AAhBD,8DAgBC"}
|