@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,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Auth Params Use Case
|
|
3
|
-
* Gets authentication parameters formatted for SOAP requests
|
|
4
|
-
*/
|
|
5
|
-
import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
|
|
6
|
-
import { WSAuthParam, GetAuthParamsInput } from "@application/types";
|
|
7
|
-
export declare class GetAuthParamsUseCase {
|
|
8
|
-
private readonly authenticationRepository;
|
|
9
|
-
constructor(authenticationRepository: IAuthenticationRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @param input Ticket and CUIT
|
|
13
|
-
* @returns WSAuthParam formatted for SOAP
|
|
14
|
-
*/
|
|
15
|
-
execute(input: GetAuthParamsInput): Promise<WSAuthParam>;
|
|
16
|
-
}
|
|
@@ -1,29 +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.GetAuthParamsUseCase = void 0;
|
|
13
|
-
class GetAuthParamsUseCase {
|
|
14
|
-
constructor(authenticationRepository) {
|
|
15
|
-
this.authenticationRepository = authenticationRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @param input Ticket and CUIT
|
|
20
|
-
* @returns WSAuthParam formatted for SOAP
|
|
21
|
-
*/
|
|
22
|
-
execute(input) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.authenticationRepository.getAuthParams(input.ticket, input.cuit);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.GetAuthParamsUseCase = GetAuthParamsUseCase;
|
|
29
|
-
//# sourceMappingURL=get-auth-params.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-auth-params.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/get-auth-params.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,oBAAoB;IAC/B,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,KAAyB;;YACrC,OAAO,IAAI,CAAC,wBAAwB,CAAC,aAAa,CAChD,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,CACX,CAAC;QACJ,CAAC;KAAA;CACF;AAhBD,oDAgBC"}
|
|
@@ -1,24 +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
|
-
* Authentication Use Cases
|
|
19
|
-
* Exports all authentication-related use cases
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./login.use-case"), exports);
|
|
22
|
-
__exportStar(require("./request-login.use-case"), exports);
|
|
23
|
-
__exportStar(require("./get-auth-params.use-case"), exports);
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,2DAAyC;AACzC,6DAA2C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Login Use Case
|
|
3
|
-
* Authenticates and obtains an access ticket for a service
|
|
4
|
-
* Handles automatic ticket management (checking existing, requesting new if needed)
|
|
5
|
-
*/
|
|
6
|
-
import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
|
|
7
|
-
import { AccessTicket } from "@domain/entities/access-ticket.entity";
|
|
8
|
-
export declare class LoginUseCase {
|
|
9
|
-
private readonly authenticationRepository;
|
|
10
|
-
constructor(authenticationRepository: IAuthenticationRepositoryPort);
|
|
11
|
-
/**
|
|
12
|
-
* Execute the use case
|
|
13
|
-
* @param serviceName Service name to authenticate for
|
|
14
|
-
* @returns AccessTicket
|
|
15
|
-
*/
|
|
16
|
-
execute(serviceName: string): Promise<AccessTicket>;
|
|
17
|
-
}
|
|
@@ -1,29 +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.LoginUseCase = void 0;
|
|
13
|
-
class LoginUseCase {
|
|
14
|
-
constructor(authenticationRepository) {
|
|
15
|
-
this.authenticationRepository = authenticationRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @param serviceName Service name to authenticate for
|
|
20
|
-
* @returns AccessTicket
|
|
21
|
-
*/
|
|
22
|
-
execute(serviceName) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.authenticationRepository.login(serviceName);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.LoginUseCase = LoginUseCase;
|
|
29
|
-
//# sourceMappingURL=login.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/login.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,YAAY;IACvB,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,WAAmB;;YAC/B,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF;AAbD,oCAaC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request Login Use Case
|
|
3
|
-
* Forces a new login request (ignores existing tickets)
|
|
4
|
-
*/
|
|
5
|
-
import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
|
|
6
|
-
import { AccessTicket } from "@domain/entities/access-ticket.entity";
|
|
7
|
-
export declare class RequestLoginUseCase {
|
|
8
|
-
private readonly authenticationRepository;
|
|
9
|
-
constructor(authenticationRepository: IAuthenticationRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @param serviceName Service name to authenticate for
|
|
13
|
-
* @returns AccessTicket (newly requested)
|
|
14
|
-
*/
|
|
15
|
-
execute(serviceName: string): Promise<AccessTicket>;
|
|
16
|
-
}
|
|
@@ -1,29 +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.RequestLoginUseCase = void 0;
|
|
13
|
-
class RequestLoginUseCase {
|
|
14
|
-
constructor(authenticationRepository) {
|
|
15
|
-
this.authenticationRepository = authenticationRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @param serviceName Service name to authenticate for
|
|
20
|
-
* @returns AccessTicket (newly requested)
|
|
21
|
-
*/
|
|
22
|
-
execute(serviceName) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.authenticationRepository.requestLogin(serviceName);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.RequestLoginUseCase = RequestLoginUseCase;
|
|
29
|
-
//# sourceMappingURL=request-login.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-login.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/request-login.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,mBAAmB;IAC9B,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,WAAmB;;YAC/B,OAAO,IAAI,CAAC,wBAAwB,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACjE,CAAC;KAAA;CACF;AAbD,kDAaC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create Next Voucher Use Case
|
|
3
|
-
* Creates the next voucher by getting the last voucher number and creating a new one
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { ICreateVoucherResult } from "@application/types/result.types";
|
|
7
|
-
import { INextVoucher } from "@domain/types/voucher.types";
|
|
8
|
-
export declare class CreateNextVoucherUseCase {
|
|
9
|
-
private readonly electronicBillingRepository;
|
|
10
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
11
|
-
/**
|
|
12
|
-
* Execute the use case
|
|
13
|
-
* @param nextVoucherData Next voucher data (without CbteDesde/CbteHasta)
|
|
14
|
-
* @returns Created voucher result with CAE
|
|
15
|
-
*/
|
|
16
|
-
execute(nextVoucherData: INextVoucher): Promise<ICreateVoucherResult>;
|
|
17
|
-
}
|
|
@@ -1,39 +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.CreateNextVoucherUseCase = void 0;
|
|
13
|
-
const voucher_entity_1 = require("@domain/entities/voucher.entity");
|
|
14
|
-
class CreateNextVoucherUseCase {
|
|
15
|
-
constructor(electronicBillingRepository) {
|
|
16
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Execute the use case
|
|
20
|
-
* @param nextVoucherData Next voucher data (without CbteDesde/CbteHasta)
|
|
21
|
-
* @returns Created voucher result with CAE
|
|
22
|
-
*/
|
|
23
|
-
execute(nextVoucherData) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
// Get last voucher number
|
|
26
|
-
const lastVoucher = yield this.electronicBillingRepository.getLastVoucher(nextVoucherData.PtoVta, nextVoucherData.CbteTipo);
|
|
27
|
-
const lastVoucherNumber = lastVoucher.cbteNro || 0;
|
|
28
|
-
const nextVoucherNumber = lastVoucherNumber + 1;
|
|
29
|
-
// Build complete voucher data
|
|
30
|
-
const voucherData = Object.assign(Object.assign({}, nextVoucherData), { CbteDesde: nextVoucherNumber, CbteHasta: nextVoucherNumber });
|
|
31
|
-
// Create domain entity
|
|
32
|
-
const voucher = voucher_entity_1.Voucher.create(voucherData);
|
|
33
|
-
// Use repository to create voucher
|
|
34
|
-
return this.electronicBillingRepository.createVoucher(voucher);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.CreateNextVoucherUseCase = CreateNextVoucherUseCase;
|
|
39
|
-
//# sourceMappingURL=create-next-voucher.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-next-voucher.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/create-next-voucher.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,oEAA0D;AAI1D,MAAa,wBAAwB;IACnC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,eAA6B;;YACzC,0BAA0B;YAC1B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,cAAc,CACvE,eAAe,CAAC,MAAO,EACvB,eAAe,CAAC,QAAQ,CACzB,CAAC;YAEF,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,CAAC;YACnD,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,CAAC,CAAC;YAEhD,8BAA8B;YAC9B,MAAM,WAAW,mCACZ,eAAe,KAClB,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,iBAAiB,GAC7B,CAAC;YAEF,uBAAuB;YACvB,MAAM,OAAO,GAAG,wBAAO,CAAC,MAAM,CAAC,WAAkB,CAAC,CAAC;YAEnD,mCAAmC;YACnC,OAAO,IAAI,CAAC,2BAA2B,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACjE,CAAC;KAAA;CACF;AAjCD,4DAiCC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create Voucher Use Case
|
|
3
|
-
* Creates a new electronic voucher
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { ICreateVoucherResult } from "@application/types/result.types";
|
|
7
|
-
import { IVoucher } from "@domain/types/voucher.types";
|
|
8
|
-
export declare class CreateVoucherUseCase {
|
|
9
|
-
private readonly electronicBillingRepository;
|
|
10
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
11
|
-
/**
|
|
12
|
-
* Execute the use case
|
|
13
|
-
* @param voucherData Voucher data
|
|
14
|
-
* @returns Created voucher result with CAE
|
|
15
|
-
*/
|
|
16
|
-
execute(voucherData: IVoucher): Promise<ICreateVoucherResult>;
|
|
17
|
-
}
|
|
@@ -1,33 +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.CreateVoucherUseCase = void 0;
|
|
13
|
-
const voucher_entity_1 = require("@domain/entities/voucher.entity");
|
|
14
|
-
class CreateVoucherUseCase {
|
|
15
|
-
constructor(electronicBillingRepository) {
|
|
16
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Execute the use case
|
|
20
|
-
* @param voucherData Voucher data
|
|
21
|
-
* @returns Created voucher result with CAE
|
|
22
|
-
*/
|
|
23
|
-
execute(voucherData) {
|
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
// Create domain entity from data
|
|
26
|
-
const voucher = voucher_entity_1.Voucher.create(voucherData);
|
|
27
|
-
// Use repository to create voucher
|
|
28
|
-
return this.electronicBillingRepository.createVoucher(voucher);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.CreateVoucherUseCase = CreateVoucherUseCase;
|
|
33
|
-
//# sourceMappingURL=create-voucher.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-voucher.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/create-voucher.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,oEAA0D;AAI1D,MAAa,oBAAoB;IAC/B,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,WAAqB;;YACjC,iCAAiC;YACjC,MAAM,OAAO,GAAG,wBAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAE5C,mCAAmC;YACnC,OAAO,IAAI,CAAC,2BAA2B,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACjE,CAAC;KAAA;CACF;AAjBD,oDAiBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Aliquot Types Use Case
|
|
3
|
-
* Retrieves available aliquot (IVA) types from AFIP/ARCA
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { AliquotTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
export declare class GetAliquotTypesUseCase {
|
|
8
|
-
private readonly electronicBillingRepository;
|
|
9
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @returns Aliquot types information
|
|
13
|
-
*/
|
|
14
|
-
execute(): Promise<AliquotTypesResultDto>;
|
|
15
|
-
}
|
|
@@ -1,28 +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.GetAliquotTypesUseCase = void 0;
|
|
13
|
-
class GetAliquotTypesUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @returns Aliquot types information
|
|
20
|
-
*/
|
|
21
|
-
execute() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.electronicBillingRepository.getAliquotTypes();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.GetAliquotTypesUseCase = GetAliquotTypesUseCase;
|
|
28
|
-
//# sourceMappingURL=get-aliquot-types.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-aliquot-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-aliquot-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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Concept Types Use Case
|
|
3
|
-
* Retrieves available concept types from AFIP/ARCA
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { ConceptTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
export declare class GetConceptTypesUseCase {
|
|
8
|
-
private readonly electronicBillingRepository;
|
|
9
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @returns Concept types information
|
|
13
|
-
*/
|
|
14
|
-
execute(): Promise<ConceptTypesResultDto>;
|
|
15
|
-
}
|
|
@@ -1,28 +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.GetConceptTypesUseCase = void 0;
|
|
13
|
-
class GetConceptTypesUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @returns Concept types information
|
|
20
|
-
*/
|
|
21
|
-
execute() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.electronicBillingRepository.getConceptTypes();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.GetConceptTypesUseCase = GetConceptTypesUseCase;
|
|
28
|
-
//# sourceMappingURL=get-concept-types.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-concept-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-concept-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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Currency Types Use Case
|
|
3
|
-
* Retrieves available currency types from AFIP/ARCA
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { CurrencyTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
export declare class GetCurrencyTypesUseCase {
|
|
8
|
-
private readonly electronicBillingRepository;
|
|
9
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @returns Currency types information
|
|
13
|
-
*/
|
|
14
|
-
execute(): Promise<CurrencyTypesResultDto>;
|
|
15
|
-
}
|
|
@@ -1,28 +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.GetCurrencyTypesUseCase = void 0;
|
|
13
|
-
class GetCurrencyTypesUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @returns Currency types information
|
|
20
|
-
*/
|
|
21
|
-
execute() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.electronicBillingRepository.getCurrencyTypes();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.GetCurrencyTypesUseCase = GetCurrencyTypesUseCase;
|
|
28
|
-
//# sourceMappingURL=get-currency-types.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-currency-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-currency-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,uBAAuB;IAClC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;CACF;AAZD,0DAYC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Document Types Use Case
|
|
3
|
-
* Retrieves available document types from AFIP/ARCA
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { DocumentTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
export declare class GetDocumentTypesUseCase {
|
|
8
|
-
private readonly electronicBillingRepository;
|
|
9
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @returns Document types information
|
|
13
|
-
*/
|
|
14
|
-
execute(): Promise<DocumentTypesResultDto>;
|
|
15
|
-
}
|
|
@@ -1,28 +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.GetDocumentTypesUseCase = void 0;
|
|
13
|
-
class GetDocumentTypesUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @returns Document types information
|
|
20
|
-
*/
|
|
21
|
-
execute() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.electronicBillingRepository.getDocumentTypes();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.GetDocumentTypesUseCase = GetDocumentTypesUseCase;
|
|
28
|
-
//# sourceMappingURL=get-document-types.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-document-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,uBAAuB;IAClC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;CACF;AAZD,0DAYC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Last Voucher Use Case
|
|
3
|
-
* Retrieves the last authorized voucher number for a sales point and voucher type
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { LastVoucherResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
import { GetLastVoucherInput } from "@application/types";
|
|
8
|
-
export declare class GetLastVoucherUseCase {
|
|
9
|
-
private readonly electronicBillingRepository;
|
|
10
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
11
|
-
/**
|
|
12
|
-
* Execute the use case
|
|
13
|
-
* @param input Sales point and voucher type
|
|
14
|
-
* @returns Last voucher information
|
|
15
|
-
*/
|
|
16
|
-
execute(input: GetLastVoucherInput): Promise<LastVoucherResultDto>;
|
|
17
|
-
}
|
|
@@ -1,29 +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.GetLastVoucherUseCase = void 0;
|
|
13
|
-
class GetLastVoucherUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @param input Sales point and voucher type
|
|
20
|
-
* @returns Last voucher information
|
|
21
|
-
*/
|
|
22
|
-
execute(input) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.electronicBillingRepository.getLastVoucher(input.salesPoint, input.voucherType);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.GetLastVoucherUseCase = GetLastVoucherUseCase;
|
|
29
|
-
//# sourceMappingURL=get-last-voucher.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-last-voucher.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-last-voucher.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,qBAAqB;IAChC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,KAA0B;;YACtC,OAAO,IAAI,CAAC,2BAA2B,CAAC,cAAc,CACpD,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,WAAW,CAClB,CAAC;QACJ,CAAC;KAAA;CACF;AAhBD,sDAgBC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Optional Types Use Case
|
|
3
|
-
* Retrieves available optional types from AFIP/ARCA
|
|
4
|
-
*/
|
|
5
|
-
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
6
|
-
import { OptionalTypesResultDto } from "@application/dto/electronic-billing.dto";
|
|
7
|
-
export declare class GetOptionalTypesUseCase {
|
|
8
|
-
private readonly electronicBillingRepository;
|
|
9
|
-
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
10
|
-
/**
|
|
11
|
-
* Execute the use case
|
|
12
|
-
* @returns Optional types information
|
|
13
|
-
*/
|
|
14
|
-
execute(): Promise<OptionalTypesResultDto>;
|
|
15
|
-
}
|
|
@@ -1,28 +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.GetOptionalTypesUseCase = void 0;
|
|
13
|
-
class GetOptionalTypesUseCase {
|
|
14
|
-
constructor(electronicBillingRepository) {
|
|
15
|
-
this.electronicBillingRepository = electronicBillingRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @returns Optional types information
|
|
20
|
-
*/
|
|
21
|
-
execute() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
return this.electronicBillingRepository.getOptionalTypes();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.GetOptionalTypesUseCase = GetOptionalTypesUseCase;
|
|
28
|
-
//# sourceMappingURL=get-optional-types.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-optional-types.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/get-optional-types.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,uBAAuB;IAClC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,CAAC;QAC7D,CAAC;KAAA;CACF;AAZD,0DAYC"}
|