@arcasdk/core 0.1.0 → 0.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/README.md +20 -0
- package/package.json +2 -2
- 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/application/dto/electronic-billing.dto.d.ts +0 -114
- package/lib/application/dto/electronic-billing.dto.js +0 -3
- package/lib/application/dto/electronic-billing.dto.js.map +0 -1
- package/lib/application/dto/index.d.ts +0 -6
- package/lib/application/dto/index.js +0 -23
- package/lib/application/dto/index.js.map +0 -1
- package/lib/application/dto/register.dto.d.ts +0 -116
- package/lib/application/dto/register.dto.js +0 -8
- package/lib/application/dto/register.dto.js.map +0 -1
- package/lib/application/index.d.ts +0 -10
- package/lib/application/index.js +0 -27
- package/lib/application/index.js.map +0 -1
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +0 -29
- package/lib/application/ports/authentication/authentication-repository.port.js +0 -3
- package/lib/application/ports/authentication/authentication-repository.port.js.map +0 -1
- package/lib/application/ports/authentication/index.d.ts +0 -5
- package/lib/application/ports/authentication/index.js +0 -22
- package/lib/application/ports/authentication/index.js.map +0 -1
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +0 -77
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +0 -3
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +0 -1
- package/lib/application/ports/electronic-billing/index.d.ts +0 -5
- package/lib/application/ports/electronic-billing/index.js +0 -22
- package/lib/application/ports/electronic-billing/index.js.map +0 -1
- package/lib/application/ports/index.d.ts +0 -7
- package/lib/application/ports/index.js +0 -24
- package/lib/application/ports/index.js.map +0 -1
- package/lib/application/ports/register/index.d.ts +0 -5
- package/lib/application/ports/register/index.js +0 -22
- package/lib/application/ports/register/index.js.map +0 -1
- package/lib/application/ports/register/register-repository.port.d.ts +0 -42
- package/lib/application/ports/register/register-repository.port.js +0 -12
- package/lib/application/ports/register/register-repository.port.js.map +0 -1
- package/lib/application/services/electronic-billing.service.d.ts +0 -129
- package/lib/application/services/electronic-billing.service.js +0 -217
- package/lib/application/services/electronic-billing.service.js.map +0 -1
- package/lib/application/services/index.d.ts +0 -10
- package/lib/application/services/index.js +0 -27
- package/lib/application/services/index.js.map +0 -1
- package/lib/application/services/register-inscription-proof.service.d.ts +0 -35
- package/lib/application/services/register-inscription-proof.service.js +0 -101
- package/lib/application/services/register-inscription-proof.service.js.map +0 -1
- package/lib/application/services/register-scope-five.service.d.ts +0 -35
- package/lib/application/services/register-scope-five.service.js +0 -101
- package/lib/application/services/register-scope-five.service.js.map +0 -1
- package/lib/application/services/register-scope-four.service.d.ts +0 -28
- package/lib/application/services/register-scope-four.service.js +0 -72
- package/lib/application/services/register-scope-four.service.js.map +0 -1
- package/lib/application/services/register-scope-ten.service.d.ts +0 -28
- package/lib/application/services/register-scope-ten.service.js +0 -72
- package/lib/application/services/register-scope-ten.service.js.map +0 -1
- package/lib/application/services/register-scope-thirteen.service.d.ts +0 -36
- package/lib/application/services/register-scope-thirteen.service.js +0 -96
- package/lib/application/services/register-scope-thirteen.service.js.map +0 -1
- package/lib/application/types/auth.types.d.ts +0 -19
- package/lib/application/types/auth.types.js +0 -7
- package/lib/application/types/auth.types.js.map +0 -1
- package/lib/application/types/context.types.d.ts +0 -46
- package/lib/application/types/context.types.js +0 -3
- package/lib/application/types/context.types.js.map +0 -1
- package/lib/application/types/index.d.ts +0 -8
- package/lib/application/types/index.js +0 -25
- package/lib/application/types/index.js.map +0 -1
- package/lib/application/types/result.types.d.ts +0 -10
- package/lib/application/types/result.types.js +0 -3
- package/lib/application/types/result.types.js.map +0 -1
- package/lib/application/types/use-case-inputs.types.d.ts +0 -42
- package/lib/application/types/use-case-inputs.types.js +0 -3
- package/lib/application/types/use-case-inputs.types.js.map +0 -1
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +0 -16
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js +0 -29
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +0 -1
- package/lib/application/use-cases/authentication/index.d.ts +0 -7
- package/lib/application/use-cases/authentication/index.js +0 -24
- package/lib/application/use-cases/authentication/index.js.map +0 -1
- package/lib/application/use-cases/authentication/login.use-case.d.ts +0 -17
- package/lib/application/use-cases/authentication/login.use-case.js +0 -29
- package/lib/application/use-cases/authentication/login.use-case.js.map +0 -1
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +0 -16
- package/lib/application/use-cases/authentication/request-login.use-case.js +0 -29
- package/lib/application/use-cases/authentication/request-login.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +0 -17
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +0 -39
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +0 -17
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +0 -33
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +0 -17
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +0 -29
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +0 -40
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +0 -73
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +0 -17
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +0 -29
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +0 -15
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +0 -28
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +0 -1
- package/lib/application/use-cases/electronic-billing/index.d.ts +0 -18
- package/lib/application/use-cases/electronic-billing/index.js +0 -36
- package/lib/application/use-cases/electronic-billing/index.js.map +0 -1
- package/lib/application/use-cases/index.d.ts +0 -7
- package/lib/application/use-cases/index.js +0 -24
- package/lib/application/use-cases/index.js.map +0 -1
- package/lib/application/use-cases/register/get-server-status.use-case.d.ts +0 -17
- package/lib/application/use-cases/register/get-server-status.use-case.js +0 -29
- package/lib/application/use-cases/register/get-server-status.use-case.js.map +0 -1
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +0 -18
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +0 -29
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +0 -1
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +0 -17
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +0 -29
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +0 -1
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +0 -18
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +0 -29
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +0 -1
- package/lib/application/use-cases/register/index.d.ts +0 -8
- package/lib/application/use-cases/register/index.js +0 -25
- package/lib/application/use-cases/register/index.js.map +0 -1
- package/lib/arca.d.ts +0 -23
- package/lib/arca.js +0 -83
- package/lib/arca.js.map +0 -1
- package/lib/domain/entities/access-ticket.entity.d.ts +0 -73
- package/lib/domain/entities/access-ticket.entity.js +0 -144
- package/lib/domain/entities/access-ticket.entity.js.map +0 -1
- package/lib/domain/entities/index.d.ts +0 -6
- package/lib/domain/entities/index.js +0 -23
- package/lib/domain/entities/index.js.map +0 -1
- package/lib/domain/entities/voucher.entity.d.ts +0 -113
- package/lib/domain/entities/voucher.entity.js +0 -216
- package/lib/domain/entities/voucher.entity.js.map +0 -1
- package/lib/domain/index.d.ts +0 -6
- package/lib/domain/index.js +0 -23
- package/lib/domain/index.js.map +0 -1
- package/lib/domain/types/electronic-billing.types.d.ts +0 -120
- package/lib/domain/types/electronic-billing.types.js +0 -8
- package/lib/domain/types/electronic-billing.types.js.map +0 -1
- package/lib/domain/types/index.d.ts +0 -6
- package/lib/domain/types/index.js +0 -23
- package/lib/domain/types/index.js.map +0 -1
- package/lib/domain/types/voucher.types.d.ts +0 -65
- package/lib/domain/types/voucher.types.js +0 -3
- package/lib/domain/types/voucher.types.js.map +0 -1
- package/lib/domain/value-objects/cae.vo.d.ts +0 -47
- package/lib/domain/value-objects/cae.vo.js +0 -80
- package/lib/domain/value-objects/cae.vo.js.map +0 -1
- package/lib/domain/value-objects/cuit.vo.d.ts +0 -49
- package/lib/domain/value-objects/cuit.vo.js +0 -98
- package/lib/domain/value-objects/cuit.vo.js.map +0 -1
- package/lib/domain/value-objects/index.d.ts +0 -7
- package/lib/domain/value-objects/index.js +0 -24
- package/lib/domain/value-objects/index.js.map +0 -1
- package/lib/domain/value-objects/voucher-number.vo.d.ts +0 -66
- package/lib/domain/value-objects/voucher-number.vo.js +0 -106
- package/lib/domain/value-objects/voucher-number.vo.js.map +0 -1
- package/lib/index.d.ts +0 -8
- package/lib/index.js +0 -27
- package/lib/index.js.map +0 -1
- package/lib/infrastructure/constants/index.d.ts +0 -5
- package/lib/infrastructure/constants/index.js +0 -22
- package/lib/infrastructure/constants/index.js.map +0 -1
- package/lib/infrastructure/constants/ssl.constants.d.ts +0 -16
- package/lib/infrastructure/constants/ssl.constants.js +0 -20
- package/lib/infrastructure/constants/ssl.constants.js.map +0 -1
- package/lib/infrastructure/index.d.ts +0 -5
- package/lib/infrastructure/index.js +0 -22
- package/lib/infrastructure/index.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.d.ts +0 -59
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +0 -134
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +0 -31
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +0 -299
- 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 +0 -22
- 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/index.d.ts +0 -10
- package/lib/infrastructure/outbound/adapters/index.js +0 -27
- package/lib/infrastructure/outbound/adapters/index.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.d.ts +0 -5
- package/lib/infrastructure/outbound/adapters/register/index.js +0 -22
- package/lib/infrastructure/outbound/adapters/register/index.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/register/register-repository.d.ts +0 -32
- package/lib/infrastructure/outbound/adapters/register/register-repository.js +0 -288
- package/lib/infrastructure/outbound/adapters/register/register-repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +0 -30
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +0 -63
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +0 -20
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +0 -54
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +0 -11
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +0 -89
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +0 -10
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +0 -5804
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +0 -1
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +0 -24
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +0 -98
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +0 -1
- package/lib/infrastructure/outbound/index.d.ts +0 -9
- package/lib/infrastructure/outbound/index.js +0 -26
- package/lib/infrastructure/outbound/index.js.map +0 -1
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +0 -17
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +0 -3
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/index.d.ts +0 -11
- package/lib/infrastructure/outbound/ports/index.js +0 -28
- package/lib/infrastructure/outbound/ports/index.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 +0 -3
- 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 +0 -3
- package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +0 -51
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +0 -57
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +0 -7
- package/lib/infrastructure/outbound/ports/soap/enums/index.js +0 -24
- package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +0 -9
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +0 -14
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +0 -15
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +0 -20
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/index.d.ts +0 -7
- package/lib/infrastructure/outbound/ports/soap/index.js +0 -24
- package/lib/infrastructure/outbound/ports/soap/index.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +0 -42
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +0 -102
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +0 -145
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +0 -227
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +0 -300
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +0 -301
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +0 -835
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +0 -876
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +0 -15
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +0 -53
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +0 -28
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +0 -37
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +0 -3
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +0 -1
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +0 -24
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +0 -3
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +0 -1
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +0 -9
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +0 -3
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +0 -1
- package/lib/infrastructure/types/index.d.ts +0 -5
- package/lib/infrastructure/types/index.js +0 -22
- package/lib/infrastructure/types/index.js.map +0 -1
- package/lib/infrastructure/types/soap.types.d.ts +0 -29
- package/lib/infrastructure/types/soap.types.js +0 -3
- package/lib/infrastructure/types/soap.types.js.map +0 -1
- package/lib/infrastructure/utils/crypt-data.d.ts +0 -6
- package/lib/infrastructure/utils/crypt-data.js +0 -46
- package/lib/infrastructure/utils/crypt-data.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/index.d.ts +0 -8
- package/lib/infrastructure/utils/index.js +0 -25
- package/lib/infrastructure/utils/index.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/parser.d.ts +0 -14
- package/lib/infrastructure/utils/parser.js +0 -36
- package/lib/infrastructure/utils/parser.js.map +0 -1
- package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +0 -104
- package/lib/infrastructure/utils/soap-to-dto.mapper.js +0 -111
- package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
* Register Ports
|
|
19
|
-
* Exports all register ports
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./register-repository.port"), exports);
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/ports/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,6DAA2C"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Repository Port
|
|
3
|
-
* Port defined by the application layer for register/padron operations
|
|
4
|
-
* Infrastructure layer must implement this port
|
|
5
|
-
*/
|
|
6
|
-
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxpayersDetailsDto, TaxIDByDocumentResultDto } from "@application/dto/register.dto";
|
|
7
|
-
export declare enum RegisterScope {
|
|
8
|
-
FOUR = "WSSR_PADRON_FOUR",
|
|
9
|
-
FIVE = "WSSR_PADRON_FIVE",
|
|
10
|
-
TEN = "WSSR_PADRON_TEN",
|
|
11
|
-
THIRTEEN = "WSSR_PADRON_THIRTEEN",
|
|
12
|
-
INSCRIPTION_PROOF = "WSSR_INSCRIPTION_PROOF"
|
|
13
|
-
}
|
|
14
|
-
export interface IRegisterRepositoryPort {
|
|
15
|
-
/**
|
|
16
|
-
* Get server status for a register service
|
|
17
|
-
* @param scope Register scope
|
|
18
|
-
* @returns Server status information
|
|
19
|
-
*/
|
|
20
|
-
getServerStatus(scope: RegisterScope): Promise<RegisterServerStatusDto>;
|
|
21
|
-
/**
|
|
22
|
-
* Get taxpayer details by identifier
|
|
23
|
-
* @param scope Register scope
|
|
24
|
-
* @param identifier Taxpayer identifier (CUIT or ID)
|
|
25
|
-
* @returns Taxpayer details or null if not found
|
|
26
|
-
*/
|
|
27
|
-
getTaxpayerDetails(scope: RegisterScope, identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
28
|
-
/**
|
|
29
|
-
* Get multiple taxpayers details by identifiers
|
|
30
|
-
* @param scope Register scope (only available for FIVE and INSCRIPTION_PROOF)
|
|
31
|
-
* @param identifiers Array of taxpayer identifiers
|
|
32
|
-
* @returns Taxpayers details
|
|
33
|
-
*/
|
|
34
|
-
getTaxpayersDetails(scope: RegisterScope, identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
35
|
-
/**
|
|
36
|
-
* Get tax ID by document number
|
|
37
|
-
* @param scope Register scope (only available for THIRTEEN)
|
|
38
|
-
* @param documentNumber Document number
|
|
39
|
-
* @returns Tax ID result
|
|
40
|
-
*/
|
|
41
|
-
getTaxIDByDocument(scope: RegisterScope, documentNumber: string): Promise<TaxIDByDocumentResultDto>;
|
|
42
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RegisterScope = void 0;
|
|
4
|
-
var RegisterScope;
|
|
5
|
-
(function (RegisterScope) {
|
|
6
|
-
RegisterScope["FOUR"] = "WSSR_PADRON_FOUR";
|
|
7
|
-
RegisterScope["FIVE"] = "WSSR_PADRON_FIVE";
|
|
8
|
-
RegisterScope["TEN"] = "WSSR_PADRON_TEN";
|
|
9
|
-
RegisterScope["THIRTEEN"] = "WSSR_PADRON_THIRTEEN";
|
|
10
|
-
RegisterScope["INSCRIPTION_PROOF"] = "WSSR_INSCRIPTION_PROOF";
|
|
11
|
-
})(RegisterScope || (exports.RegisterScope = RegisterScope = {}));
|
|
12
|
-
//# sourceMappingURL=register-repository.port.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-repository.port.js","sourceRoot":"","sources":["../../../../src/application/ports/register/register-repository.port.ts"],"names":[],"mappings":";;;AAYA,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,0CAAyB,CAAA;IACzB,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,kDAAiC,CAAA;IACjC,6DAA4C,CAAA;AAC9C,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Electronic Billing Service
|
|
3
|
-
* Application service that orchestrates electronic billing use cases
|
|
4
|
-
* Maintains compatibility with legacy API
|
|
5
|
-
*/
|
|
6
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
7
|
-
import { IVoucher, INextVoucher } from "@domain/types/voucher.types";
|
|
8
|
-
import { ICreateVoucherResult } from "@application/types/result.types";
|
|
9
|
-
import { ServerStatusDto, SalesPointsResultDto, LastVoucherResultDto, VoucherInfoResultDto, VoucherTypesResultDto, ConceptTypesResultDto, DocumentTypesResultDto, AliquotTypesResultDto, CurrencyTypesResultDto, OptionalTypesResultDto, TaxTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
10
|
-
export declare class ElectronicBillingService {
|
|
11
|
-
private readonly electronicBillingRepository;
|
|
12
|
-
private readonly getServerStatusUseCase;
|
|
13
|
-
private readonly getSalesPointsUseCase;
|
|
14
|
-
private readonly getLastVoucherUseCase;
|
|
15
|
-
private readonly createVoucherUseCase;
|
|
16
|
-
private readonly createNextVoucherUseCase;
|
|
17
|
-
private readonly getVoucherInfoUseCase;
|
|
18
|
-
private readonly getVoucherTypesUseCase;
|
|
19
|
-
private readonly getConceptTypesUseCase;
|
|
20
|
-
private readonly getDocumentTypesUseCase;
|
|
21
|
-
private readonly getAliquotTypesUseCase;
|
|
22
|
-
private readonly getCurrencyTypesUseCase;
|
|
23
|
-
private readonly getOptionalTypesUseCase;
|
|
24
|
-
private readonly getTaxTypesUseCase;
|
|
25
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
26
|
-
/**
|
|
27
|
-
* Asks to web service for servers status
|
|
28
|
-
*
|
|
29
|
-
* @return object { AppServer : Web Service status,
|
|
30
|
-
* DbServer : Database status, AuthServer : Autentication
|
|
31
|
-
* server status}
|
|
32
|
-
**/
|
|
33
|
-
getServerStatus(): Promise<ServerStatusDto>;
|
|
34
|
-
/**
|
|
35
|
-
* Asks to ARCA Servers for sales points availables {@see WS
|
|
36
|
-
* Specification item 4.11}
|
|
37
|
-
*
|
|
38
|
-
* @return array All sales points availables
|
|
39
|
-
**/
|
|
40
|
-
getSalesPoints(): Promise<SalesPointsResultDto>;
|
|
41
|
-
/**
|
|
42
|
-
* Asks to Arca servers for number of the last voucher created for
|
|
43
|
-
* certain sales point and voucher type
|
|
44
|
-
*
|
|
45
|
-
* @param salesPoint Sales point to ask for last voucher
|
|
46
|
-
* @param type Voucher type to ask for last voucher
|
|
47
|
-
* @returns
|
|
48
|
-
*/
|
|
49
|
-
getLastVoucher(salesPoint: number, type: number): Promise<LastVoucherResultDto>;
|
|
50
|
-
/**
|
|
51
|
-
* Create a voucher from ARCA
|
|
52
|
-
*
|
|
53
|
-
* Send to ARCA servers request for create a voucher and assign
|
|
54
|
-
* CAE to them
|
|
55
|
-
*
|
|
56
|
-
* @param req data Voucher parameter
|
|
57
|
-
**/
|
|
58
|
-
createVoucher(req: IVoucher): Promise<ICreateVoucherResult>;
|
|
59
|
-
/**
|
|
60
|
-
* Create next voucher from ARCA
|
|
61
|
-
*
|
|
62
|
-
* This method combines getLastVoucher and createVoucher
|
|
63
|
-
* for create the next voucher
|
|
64
|
-
*
|
|
65
|
-
* @param req data Same to data in Arca.createVoucher except that
|
|
66
|
-
* don't need CbteDesde and CbteHasta attributes
|
|
67
|
-
**/
|
|
68
|
-
createNextVoucher(req: INextVoucher): Promise<ICreateVoucherResult>;
|
|
69
|
-
/**
|
|
70
|
-
* Get voucher information
|
|
71
|
-
*
|
|
72
|
-
* Asks to ARCA servers for complete information of voucher
|
|
73
|
-
*
|
|
74
|
-
* @param number Number of voucher to get information
|
|
75
|
-
* @param salesPoint Sales point of voucher to get information
|
|
76
|
-
* @param type Type of voucher to get information
|
|
77
|
-
*
|
|
78
|
-
* @return data with array | null returns array with complete voucher information
|
|
79
|
-
**/
|
|
80
|
-
getVoucherInfo(number: number, salesPoint: number, type: number): Promise<VoucherInfoResultDto | null>;
|
|
81
|
-
/**
|
|
82
|
-
* Asks to ARCA Servers for voucher types availables
|
|
83
|
-
**/
|
|
84
|
-
getVoucherTypes(): Promise<VoucherTypesResultDto>;
|
|
85
|
-
/**
|
|
86
|
-
* Asks to ARCA Servers for voucher concepts availables
|
|
87
|
-
*
|
|
88
|
-
* @return data with array of all voucher concepts availables
|
|
89
|
-
**/
|
|
90
|
-
getConceptTypes(): Promise<ConceptTypesResultDto>;
|
|
91
|
-
/**
|
|
92
|
-
* Asks to ARCA Servers for document types availables
|
|
93
|
-
*
|
|
94
|
-
* @return data with array of all document types availables
|
|
95
|
-
**/
|
|
96
|
-
getDocumentTypes(): Promise<DocumentTypesResultDto>;
|
|
97
|
-
/**
|
|
98
|
-
* Asks to ARCA Servers for aliquot availables
|
|
99
|
-
*
|
|
100
|
-
* @return data with array of all aliquot availables
|
|
101
|
-
**/
|
|
102
|
-
getAliquotTypes(): Promise<AliquotTypesResultDto>;
|
|
103
|
-
/**
|
|
104
|
-
* Asks to ARCA Servers for currencies availables
|
|
105
|
-
*
|
|
106
|
-
* @return data with array of all currencies availables
|
|
107
|
-
**/
|
|
108
|
-
getCurrenciesTypes(): Promise<CurrencyTypesResultDto>;
|
|
109
|
-
/**
|
|
110
|
-
* Asks to ARCA Servers for voucher optional data available
|
|
111
|
-
*
|
|
112
|
-
* @return data with array of all voucher optional data available
|
|
113
|
-
**/
|
|
114
|
-
getOptionsTypes(): Promise<OptionalTypesResultDto>;
|
|
115
|
-
/**
|
|
116
|
-
* Asks to ARCA Servers for tax availables
|
|
117
|
-
*
|
|
118
|
-
* @return data with array of all tax availables
|
|
119
|
-
**/
|
|
120
|
-
getTaxTypes(): Promise<TaxTypesResultDto>;
|
|
121
|
-
/**
|
|
122
|
-
* Alias for createVoucher method.
|
|
123
|
-
*/
|
|
124
|
-
createInvoice(req: IVoucher): Promise<ICreateVoucherResult>;
|
|
125
|
-
/**
|
|
126
|
-
* Alias for createVoucher method.
|
|
127
|
-
*/
|
|
128
|
-
createNextInvoice(req: INextVoucher): Promise<ICreateVoucherResult>;
|
|
129
|
-
}
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ElectronicBillingService = void 0;
|
|
13
|
-
// Use cases
|
|
14
|
-
const get_server_status_use_case_1 = require("@application/use-cases/electronic-billing/get-server-status.use-case");
|
|
15
|
-
const get_sales_points_use_case_1 = require("@application/use-cases/electronic-billing/get-sales-points.use-case");
|
|
16
|
-
const get_last_voucher_use_case_1 = require("@application/use-cases/electronic-billing/get-last-voucher.use-case");
|
|
17
|
-
const create_voucher_use_case_1 = require("@application/use-cases/electronic-billing/create-voucher.use-case");
|
|
18
|
-
const create_next_voucher_use_case_1 = require("@application/use-cases/electronic-billing/create-next-voucher.use-case");
|
|
19
|
-
const get_voucher_info_use_case_1 = require("@application/use-cases/electronic-billing/get-voucher-info.use-case");
|
|
20
|
-
const get_voucher_types_use_case_1 = require("@application/use-cases/electronic-billing/get-voucher-types.use-case");
|
|
21
|
-
const get_concept_types_use_case_1 = require("@application/use-cases/electronic-billing/get-concept-types.use-case");
|
|
22
|
-
const get_document_types_use_case_1 = require("@application/use-cases/electronic-billing/get-document-types.use-case");
|
|
23
|
-
const get_aliquot_types_use_case_1 = require("@application/use-cases/electronic-billing/get-aliquot-types.use-case");
|
|
24
|
-
const get_currency_types_use_case_1 = require("@application/use-cases/electronic-billing/get-currency-types.use-case");
|
|
25
|
-
const get_optional_types_use_case_1 = require("@application/use-cases/electronic-billing/get-optional-types.use-case");
|
|
26
|
-
const get_tax_types_use_case_1 = require("@application/use-cases/electronic-billing/get-tax-types.use-case");
|
|
27
|
-
class ElectronicBillingService {
|
|
28
|
-
constructor(electronicBillingRepository) {
|
|
29
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
30
|
-
// Initialize all use cases
|
|
31
|
-
this.getServerStatusUseCase = new get_server_status_use_case_1.GetServerStatusUseCase(this.electronicBillingRepository);
|
|
32
|
-
this.getSalesPointsUseCase = new get_sales_points_use_case_1.GetSalesPointsUseCase(this.electronicBillingRepository);
|
|
33
|
-
this.getLastVoucherUseCase = new get_last_voucher_use_case_1.GetLastVoucherUseCase(this.electronicBillingRepository);
|
|
34
|
-
this.createVoucherUseCase = new create_voucher_use_case_1.CreateVoucherUseCase(this.electronicBillingRepository);
|
|
35
|
-
this.createNextVoucherUseCase = new create_next_voucher_use_case_1.CreateNextVoucherUseCase(this.electronicBillingRepository);
|
|
36
|
-
this.getVoucherInfoUseCase = new get_voucher_info_use_case_1.GetVoucherInfoUseCase(this.electronicBillingRepository);
|
|
37
|
-
this.getVoucherTypesUseCase = new get_voucher_types_use_case_1.GetVoucherTypesUseCase(this.electronicBillingRepository);
|
|
38
|
-
this.getConceptTypesUseCase = new get_concept_types_use_case_1.GetConceptTypesUseCase(this.electronicBillingRepository);
|
|
39
|
-
this.getDocumentTypesUseCase = new get_document_types_use_case_1.GetDocumentTypesUseCase(this.electronicBillingRepository);
|
|
40
|
-
this.getAliquotTypesUseCase = new get_aliquot_types_use_case_1.GetAliquotTypesUseCase(this.electronicBillingRepository);
|
|
41
|
-
this.getCurrencyTypesUseCase = new get_currency_types_use_case_1.GetCurrencyTypesUseCase(this.electronicBillingRepository);
|
|
42
|
-
this.getOptionalTypesUseCase = new get_optional_types_use_case_1.GetOptionalTypesUseCase(this.electronicBillingRepository);
|
|
43
|
-
this.getTaxTypesUseCase = new get_tax_types_use_case_1.GetTaxTypesUseCase(this.electronicBillingRepository);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Asks to web service for servers status
|
|
47
|
-
*
|
|
48
|
-
* @return object { AppServer : Web Service status,
|
|
49
|
-
* DbServer : Database status, AuthServer : Autentication
|
|
50
|
-
* server status}
|
|
51
|
-
**/
|
|
52
|
-
getServerStatus() {
|
|
53
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
return this.getServerStatusUseCase.execute();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Asks to ARCA Servers for sales points availables {@see WS
|
|
59
|
-
* Specification item 4.11}
|
|
60
|
-
*
|
|
61
|
-
* @return array All sales points availables
|
|
62
|
-
**/
|
|
63
|
-
getSalesPoints() {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
return this.getSalesPointsUseCase.execute();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Asks to Arca servers for number of the last voucher created for
|
|
70
|
-
* certain sales point and voucher type
|
|
71
|
-
*
|
|
72
|
-
* @param salesPoint Sales point to ask for last voucher
|
|
73
|
-
* @param type Voucher type to ask for last voucher
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
getLastVoucher(salesPoint, type) {
|
|
77
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
return this.getLastVoucherUseCase.execute({
|
|
79
|
-
salesPoint,
|
|
80
|
-
voucherType: type,
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Create a voucher from ARCA
|
|
86
|
-
*
|
|
87
|
-
* Send to ARCA servers request for create a voucher and assign
|
|
88
|
-
* CAE to them
|
|
89
|
-
*
|
|
90
|
-
* @param req data Voucher parameter
|
|
91
|
-
**/
|
|
92
|
-
createVoucher(req) {
|
|
93
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
return this.createVoucherUseCase.execute(req);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Create next voucher from ARCA
|
|
99
|
-
*
|
|
100
|
-
* This method combines getLastVoucher and createVoucher
|
|
101
|
-
* for create the next voucher
|
|
102
|
-
*
|
|
103
|
-
* @param req data Same to data in Arca.createVoucher except that
|
|
104
|
-
* don't need CbteDesde and CbteHasta attributes
|
|
105
|
-
**/
|
|
106
|
-
createNextVoucher(req) {
|
|
107
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
return this.createNextVoucherUseCase.execute(req);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Get voucher information
|
|
113
|
-
*
|
|
114
|
-
* Asks to ARCA servers for complete information of voucher
|
|
115
|
-
*
|
|
116
|
-
* @param number Number of voucher to get information
|
|
117
|
-
* @param salesPoint Sales point of voucher to get information
|
|
118
|
-
* @param type Type of voucher to get information
|
|
119
|
-
*
|
|
120
|
-
* @return data with array | null returns array with complete voucher information
|
|
121
|
-
**/
|
|
122
|
-
getVoucherInfo(number, salesPoint, type) {
|
|
123
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
-
return this.getVoucherInfoUseCase.execute({
|
|
125
|
-
number,
|
|
126
|
-
salesPoint,
|
|
127
|
-
type,
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Asks to ARCA Servers for voucher types availables
|
|
133
|
-
**/
|
|
134
|
-
getVoucherTypes() {
|
|
135
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
-
return this.getVoucherTypesUseCase.execute();
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Asks to ARCA Servers for voucher concepts availables
|
|
141
|
-
*
|
|
142
|
-
* @return data with array of all voucher concepts availables
|
|
143
|
-
**/
|
|
144
|
-
getConceptTypes() {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
-
return this.getConceptTypesUseCase.execute();
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Asks to ARCA Servers for document types availables
|
|
151
|
-
*
|
|
152
|
-
* @return data with array of all document types availables
|
|
153
|
-
**/
|
|
154
|
-
getDocumentTypes() {
|
|
155
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
-
return this.getDocumentTypesUseCase.execute();
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Asks to ARCA Servers for aliquot availables
|
|
161
|
-
*
|
|
162
|
-
* @return data with array of all aliquot availables
|
|
163
|
-
**/
|
|
164
|
-
getAliquotTypes() {
|
|
165
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
-
return this.getAliquotTypesUseCase.execute();
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Asks to ARCA Servers for currencies availables
|
|
171
|
-
*
|
|
172
|
-
* @return data with array of all currencies availables
|
|
173
|
-
**/
|
|
174
|
-
getCurrenciesTypes() {
|
|
175
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
-
return this.getCurrencyTypesUseCase.execute();
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Asks to ARCA Servers for voucher optional data available
|
|
181
|
-
*
|
|
182
|
-
* @return data with array of all voucher optional data available
|
|
183
|
-
**/
|
|
184
|
-
getOptionsTypes() {
|
|
185
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
-
return this.getOptionalTypesUseCase.execute();
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Asks to ARCA Servers for tax availables
|
|
191
|
-
*
|
|
192
|
-
* @return data with array of all tax availables
|
|
193
|
-
**/
|
|
194
|
-
getTaxTypes() {
|
|
195
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
-
return this.getTaxTypesUseCase.execute();
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Alias for createVoucher method.
|
|
201
|
-
*/
|
|
202
|
-
createInvoice(req) {
|
|
203
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
-
return this.createVoucher(req);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Alias for createVoucher method.
|
|
209
|
-
*/
|
|
210
|
-
createNextInvoice(req) {
|
|
211
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
-
return this.createNextVoucher(req);
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
exports.ElectronicBillingService = ElectronicBillingService;
|
|
217
|
-
//# sourceMappingURL=electronic-billing.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electronic-billing.service.js","sourceRoot":"","sources":["../../../src/application/services/electronic-billing.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Application Services
|
|
3
|
-
* Exports all application services that orchestrate use cases
|
|
4
|
-
*/
|
|
5
|
-
export * from "./electronic-billing.service";
|
|
6
|
-
export * from "./register-scope-four.service";
|
|
7
|
-
export * from "./register-scope-five.service";
|
|
8
|
-
export * from "./register-scope-ten.service";
|
|
9
|
-
export * from "./register-scope-thirteen.service";
|
|
10
|
-
export * from "./register-inscription-proof.service";
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
* Application Services
|
|
19
|
-
* Exports all application services that orchestrate use cases
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./electronic-billing.service"), exports);
|
|
22
|
-
__exportStar(require("./register-scope-four.service"), exports);
|
|
23
|
-
__exportStar(require("./register-scope-five.service"), exports);
|
|
24
|
-
__exportStar(require("./register-scope-ten.service"), exports);
|
|
25
|
-
__exportStar(require("./register-scope-thirteen.service"), exports);
|
|
26
|
-
__exportStar(require("./register-inscription-proof.service"), exports);
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+DAA6C;AAC7C,gEAA8C;AAC9C,gEAA8C;AAC9C,+DAA6C;AAC7C,oEAAkD;AAClD,uEAAqD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Inscription Proof Service
|
|
3
|
-
* Application service for Register Inscription Proof
|
|
4
|
-
* Orchestrates register use cases for INSCRIPTION_PROOF scope
|
|
5
|
-
*/
|
|
6
|
-
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
7
|
-
import { RegisterServerStatusResultDto, RegisterTaxpayerDetailsResultDto, RegisterTaxpayersListResultDto } from "@application/dto/register.dto";
|
|
8
|
-
export declare class RegisterInscriptionProofService {
|
|
9
|
-
private readonly registerRepository;
|
|
10
|
-
private readonly getServerStatusUseCase;
|
|
11
|
-
private readonly getTaxpayerDetailsUseCase;
|
|
12
|
-
private readonly getTaxpayersDetailsUseCase;
|
|
13
|
-
constructor(registerRepository: IRegisterRepositoryPort);
|
|
14
|
-
/**
|
|
15
|
-
* Asks to web service for servers status
|
|
16
|
-
*
|
|
17
|
-
* @return object { appserver : Web Service status,
|
|
18
|
-
* dbserver : Database status, authserver : Autentication
|
|
19
|
-
* server status}
|
|
20
|
-
**/
|
|
21
|
-
getServerStatus(): Promise<RegisterServerStatusResultDto>;
|
|
22
|
-
/**
|
|
23
|
-
* Asks to web service for taxpayer details
|
|
24
|
-
*
|
|
25
|
-
* @return object|null if taxpayer does not exists, return null,
|
|
26
|
-
* if it exists, returns full response
|
|
27
|
-
**/
|
|
28
|
-
getTaxpayerDetails(identifier: number): Promise<RegisterTaxpayerDetailsResultDto | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Asks to web service for taxpayers details
|
|
31
|
-
*
|
|
32
|
-
* @return [object] returns web service full response
|
|
33
|
-
**/
|
|
34
|
-
getTaxpayersDetails(identifiers: number[]): Promise<RegisterTaxpayersListResultDto>;
|
|
35
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RegisterInscriptionProofService = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* Register Inscription Proof Service
|
|
15
|
-
* Application service for Register Inscription Proof
|
|
16
|
-
* Orchestrates register use cases for INSCRIPTION_PROOF scope
|
|
17
|
-
*/
|
|
18
|
-
const register_repository_port_1 = require("@application/ports/register/register-repository.port");
|
|
19
|
-
const get_server_status_use_case_1 = require("@application/use-cases/register/get-server-status.use-case");
|
|
20
|
-
const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
|
|
21
|
-
const get_taxpayers_details_use_case_1 = require("@application/use-cases/register/get-taxpayers-details.use-case");
|
|
22
|
-
class RegisterInscriptionProofService {
|
|
23
|
-
constructor(registerRepository) {
|
|
24
|
-
this.registerRepository = registerRepository;
|
|
25
|
-
this.getServerStatusUseCase = new get_server_status_use_case_1.GetRegisterServerStatusUseCase(this.registerRepository);
|
|
26
|
-
this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.registerRepository);
|
|
27
|
-
this.getTaxpayersDetailsUseCase = new get_taxpayers_details_use_case_1.GetTaxpayersDetailsUseCase(this.registerRepository);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Asks to web service for servers status
|
|
31
|
-
*
|
|
32
|
-
* @return object { appserver : Web Service status,
|
|
33
|
-
* dbserver : Database status, authserver : Autentication
|
|
34
|
-
* server status}
|
|
35
|
-
**/
|
|
36
|
-
getServerStatus() {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
const status = yield this.getServerStatusUseCase.execute({
|
|
39
|
-
scope: register_repository_port_1.RegisterScope.INSCRIPTION_PROOF,
|
|
40
|
-
});
|
|
41
|
-
return {
|
|
42
|
-
appserver: status.appserver,
|
|
43
|
-
dbserver: status.dbserver,
|
|
44
|
-
authserver: status.authserver,
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Asks to web service for taxpayer details
|
|
50
|
-
*
|
|
51
|
-
* @return object|null if taxpayer does not exists, return null,
|
|
52
|
-
* if it exists, returns full response
|
|
53
|
-
**/
|
|
54
|
-
getTaxpayerDetails(identifier) {
|
|
55
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const result = yield this.getTaxpayerDetailsUseCase.execute({
|
|
57
|
-
scope: register_repository_port_1.RegisterScope.INSCRIPTION_PROOF,
|
|
58
|
-
identifier,
|
|
59
|
-
});
|
|
60
|
-
if (!result) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
metadata: {
|
|
65
|
-
fechaHora: "",
|
|
66
|
-
servidor: "",
|
|
67
|
-
},
|
|
68
|
-
datosGenerales: result.datosGenerales,
|
|
69
|
-
datosMonotributo: result.datosMonotributo,
|
|
70
|
-
datosRegimenGeneral: result.datosRegimenGeneral,
|
|
71
|
-
errorConstancia: result.errorConstancia,
|
|
72
|
-
errorMonotributo: {},
|
|
73
|
-
errorRegimenGeneral: {},
|
|
74
|
-
};
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Asks to web service for taxpayers details
|
|
79
|
-
*
|
|
80
|
-
* @return [object] returns web service full response
|
|
81
|
-
**/
|
|
82
|
-
getTaxpayersDetails(identifiers) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
-
const result = yield this.getTaxpayersDetailsUseCase.execute({
|
|
85
|
-
scope: register_repository_port_1.RegisterScope.INSCRIPTION_PROOF,
|
|
86
|
-
identifiers,
|
|
87
|
-
});
|
|
88
|
-
return {
|
|
89
|
-
metadata: {
|
|
90
|
-
fechaHora: "",
|
|
91
|
-
servidor: "",
|
|
92
|
-
},
|
|
93
|
-
persona: result.persona || [],
|
|
94
|
-
cantidadRegistros: result.cantidadRegistros,
|
|
95
|
-
errorConstancia: result.errorConstancia,
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.RegisterInscriptionProofService = RegisterInscriptionProofService;
|
|
101
|
-
//# sourceMappingURL=register-inscription-proof.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register-inscription-proof.service.js","sourceRoot":"","sources":["../../../src/application/services/register-inscription-proof.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;GAIG;AACH,mGAG8D;AAC9D,2GAA4G;AAC5G,iHAA0G;AAC1G,mHAA4G;AAO5G,MAAa,+BAA+B;IAK1C,YAA6B,kBAA2C;QAA3C,uBAAkB,GAAlB,kBAAkB,CAAyB;QACtE,IAAI,CAAC,sBAAsB,GAAG,IAAI,2DAA8B,CAC9D,IAAI,CAAC,kBAAkB,CACxB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,kBAAkB,CACxB,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,2DAA0B,CAC9D,IAAI,CAAC,kBAAkB,CACxB,CAAC;IACJ,CAAC;IAED;;;;;;QAMI;IACE,eAAe;;YACnB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC;gBACvD,KAAK,EAAE,wCAAa,CAAC,iBAAiB;aACvC,CAAC,CAAC;YACH,OAAO;gBACL,SAAS,EAAE,MAAM,CAAC,SAAS;gBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,UAAU,EAAE,MAAM,CAAC,UAAU;aAC9B,CAAC;QACJ,CAAC;KAAA;IAED;;;;;QAKI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC;gBAC1D,KAAK,EAAE,wCAAa,CAAC,iBAAiB;gBACtC,UAAU;aACX,CAAC,CAAC;YAEH,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO;gBACL,QAAQ,EAAE;oBACR,SAAS,EAAE,EAAE;oBACb,QAAQ,EAAE,EAAE;iBACb;gBACD,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;gBACzC,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;gBAC/C,eAAe,EAAE,MAAM,CAAC,eAAe;gBACvC,gBAAgB,EAAE,EAAE;gBACpB,mBAAmB,EAAE,EAAE;aACxB,CAAC;QACJ,CAAC;KAAA;IAED;;;;QAII;IACE,mBAAmB,CACvB,WAAqB;;YAErB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC;gBAC3D,KAAK,EAAE,wCAAa,CAAC,iBAAiB;gBACtC,WAAW;aACZ,CAAC,CAAC;YAEH,OAAO;gBACL,QAAQ,EAAE;oBACR,SAAS,EAAE,EAAE;oBACb,QAAQ,EAAE,EAAE;iBACb;gBACD,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;gBAC7B,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;gBAC3C,eAAe,EAAE,MAAM,CAAC,eAAe;aACxC,CAAC;QACJ,CAAC;KAAA;CACF;AA1FD,0EA0FC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Scope Five Service
|
|
3
|
-
* Application service for Register Scope Five (Padrón A5)
|
|
4
|
-
* Orchestrates register use cases for scope FIVE
|
|
5
|
-
*/
|
|
6
|
-
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
7
|
-
import { RegisterServerStatusResultDto, RegisterTaxpayerDetailsResultDto, RegisterTaxpayersListResultDto } from "@application/dto/register.dto";
|
|
8
|
-
export declare class RegisterScopeFiveService {
|
|
9
|
-
private readonly registerRepository;
|
|
10
|
-
private readonly getServerStatusUseCase;
|
|
11
|
-
private readonly getTaxpayerDetailsUseCase;
|
|
12
|
-
private readonly getTaxpayersDetailsUseCase;
|
|
13
|
-
constructor(registerRepository: IRegisterRepositoryPort);
|
|
14
|
-
/**
|
|
15
|
-
* Asks to web service for servers status
|
|
16
|
-
*
|
|
17
|
-
* @return object { appserver : Web Service status,
|
|
18
|
-
* dbserver : Database status, authserver : Autentication
|
|
19
|
-
* server status}
|
|
20
|
-
**/
|
|
21
|
-
getServerStatus(): Promise<RegisterServerStatusResultDto>;
|
|
22
|
-
/**
|
|
23
|
-
* Asks to web service for taxpayer details
|
|
24
|
-
*
|
|
25
|
-
* @return object|null if taxpayer does not exists, return null,
|
|
26
|
-
* if it exists, returns full response
|
|
27
|
-
**/
|
|
28
|
-
getTaxpayerDetails(identifier: number): Promise<RegisterTaxpayerDetailsResultDto | null>;
|
|
29
|
-
/**
|
|
30
|
-
* Asks to web service for taxpayers details
|
|
31
|
-
*
|
|
32
|
-
* @return [object] returns web service full response
|
|
33
|
-
**/
|
|
34
|
-
getTaxpayersDetails(identifiers: number[]): Promise<RegisterTaxpayersListResultDto>;
|
|
35
|
-
}
|