@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,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Taxpayers Details Use Case
|
|
3
|
-
* Retrieves multiple taxpayers details by identifiers
|
|
4
|
-
* Available for RegisterScope.FIVE and RegisterScope.INSCRIPTION_PROOF
|
|
5
|
-
*/
|
|
6
|
-
import { IRegisterRepositoryPort } from "@application/ports/register/register-repository.port";
|
|
7
|
-
import { TaxpayersDetailsDto } from "@application/dto/register.dto";
|
|
8
|
-
import { GetTaxpayersDetailsInput } from "@application/types";
|
|
9
|
-
export declare class GetTaxpayersDetailsUseCase {
|
|
10
|
-
private readonly registerRepository;
|
|
11
|
-
constructor(registerRepository: IRegisterRepositoryPort);
|
|
12
|
-
/**
|
|
13
|
-
* Execute the use case
|
|
14
|
-
* @param input Register scope and array of taxpayer identifiers
|
|
15
|
-
* @returns Taxpayers details
|
|
16
|
-
*/
|
|
17
|
-
execute(input: GetTaxpayersDetailsInput): Promise<TaxpayersDetailsDto>;
|
|
18
|
-
}
|
|
@@ -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.GetTaxpayersDetailsUseCase = void 0;
|
|
13
|
-
class GetTaxpayersDetailsUseCase {
|
|
14
|
-
constructor(registerRepository) {
|
|
15
|
-
this.registerRepository = registerRepository;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Execute the use case
|
|
19
|
-
* @param input Register scope and array of taxpayer identifiers
|
|
20
|
-
* @returns Taxpayers details
|
|
21
|
-
*/
|
|
22
|
-
execute(input) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
return this.registerRepository.getTaxpayersDetails(input.scope, input.identifiers);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.GetTaxpayersDetailsUseCase = GetTaxpayersDetailsUseCase;
|
|
29
|
-
//# sourceMappingURL=get-taxpayers-details.use-case.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-taxpayers-details.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-taxpayers-details.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,MAAa,0BAA0B;IACrC,YAA6B,kBAA2C;QAA3C,uBAAkB,GAAlB,kBAAkB,CAAyB;IAAG,CAAC;IAE5E;;;;OAIG;IACG,OAAO,CAAC,KAA+B;;YAC3C,OAAO,IAAI,CAAC,kBAAkB,CAAC,mBAAmB,CAChD,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,WAAW,CAClB,CAAC;QACJ,CAAC;KAAA;CACF;AAdD,gEAcC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Register Use Cases
|
|
3
|
-
* Exports all register/padron-related use cases
|
|
4
|
-
*/
|
|
5
|
-
export * from "./get-server-status.use-case";
|
|
6
|
-
export * from "./get-taxpayer-details.use-case";
|
|
7
|
-
export * from "./get-taxpayers-details.use-case";
|
|
8
|
-
export * from "./get-tax-id-by-document.use-case";
|
|
@@ -1,25 +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 Use Cases
|
|
19
|
-
* Exports all register/padron-related use cases
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./get-server-status.use-case"), exports);
|
|
22
|
-
__exportStar(require("./get-taxpayer-details.use-case"), exports);
|
|
23
|
-
__exportStar(require("./get-taxpayers-details.use-case"), exports);
|
|
24
|
-
__exportStar(require("./get-tax-id-by-document.use-case"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+DAA6C;AAC7C,kEAAgD;AAChD,mEAAiD;AACjD,oEAAkD"}
|
package/lib/arca.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Context } from "@application/types";
|
|
2
|
-
import { ElectronicBillingService } from "@application/services/electronic-billing.service";
|
|
3
|
-
import { RegisterScopeFourService } from "@application/services/register-scope-four.service";
|
|
4
|
-
import { RegisterScopeFiveService } from "@application/services/register-scope-five.service";
|
|
5
|
-
import { RegisterScopeTenService } from "@application/services/register-scope-ten.service";
|
|
6
|
-
import { RegisterScopeThirteenService } from "@application/services/register-scope-thirteen.service";
|
|
7
|
-
import { RegisterInscriptionProofService } from "@application/services/register-inscription-proof.service";
|
|
8
|
-
export declare class Arca {
|
|
9
|
-
private readonly _electronicBillingService;
|
|
10
|
-
private readonly _registerInscriptionProofService;
|
|
11
|
-
private readonly _registerScopeFourService;
|
|
12
|
-
private readonly _registerScopeFiveService;
|
|
13
|
-
private readonly _registerScopeTenService;
|
|
14
|
-
private readonly _registerScopeThirteenService;
|
|
15
|
-
private readonly context;
|
|
16
|
-
constructor(context: Context);
|
|
17
|
-
get electronicBillingService(): ElectronicBillingService;
|
|
18
|
-
get registerInscriptionProofService(): RegisterInscriptionProofService;
|
|
19
|
-
get registerScopeFourService(): RegisterScopeFourService;
|
|
20
|
-
get registerScopeFiveService(): RegisterScopeFiveService;
|
|
21
|
-
get registerScopeTenService(): RegisterScopeTenService;
|
|
22
|
-
get registerScopeThirteenService(): RegisterScopeThirteenService;
|
|
23
|
-
}
|
package/lib/arca.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Arca = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Arca - Main Facade Class
|
|
6
|
-
* Entry point for the ARCA SDK
|
|
7
|
-
* Orchestrates all services and adapters using hexagonal architecture
|
|
8
|
-
*/
|
|
9
|
-
const path_1 = require("path");
|
|
10
|
-
const file_system_ticket_storage_1 = require("@infrastructure/outbound/adapters/storage/file-system-ticket-storage");
|
|
11
|
-
const auth_repository_1 = require("@infrastructure/outbound/adapters/auth/auth.repository");
|
|
12
|
-
const winston_logger_1 = require("@infrastructure/outbound/adapters/logger/winston-logger");
|
|
13
|
-
const electronic_billing_service_1 = require("@application/services/electronic-billing.service");
|
|
14
|
-
const register_scope_four_service_1 = require("@application/services/register-scope-four.service");
|
|
15
|
-
const register_scope_five_service_1 = require("@application/services/register-scope-five.service");
|
|
16
|
-
const register_scope_ten_service_1 = require("@application/services/register-scope-ten.service");
|
|
17
|
-
const register_scope_thirteen_service_1 = require("@application/services/register-scope-thirteen.service");
|
|
18
|
-
const register_inscription_proof_service_1 = require("@application/services/register-inscription-proof.service");
|
|
19
|
-
const electronic_billing_repository_1 = require("@infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository");
|
|
20
|
-
const register_repository_1 = require("@infrastructure/outbound/adapters/register/register-repository");
|
|
21
|
-
class Arca {
|
|
22
|
-
constructor(context) {
|
|
23
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
24
|
-
// Normalize context
|
|
25
|
-
this.context = Object.assign(Object.assign({}, context), { ticketPath: (_a = context.ticketPath) !== null && _a !== void 0 ? _a : (0, path_1.resolve)(__dirname, "infrastructure", "storage", "auth", "tickets") });
|
|
26
|
-
const ticketStorage = new file_system_ticket_storage_1.FileSystemTicketStorage({
|
|
27
|
-
ticketPath: this.context.ticketPath,
|
|
28
|
-
cuit: this.context.cuit,
|
|
29
|
-
production: (_b = this.context.production) !== null && _b !== void 0 ? _b : false,
|
|
30
|
-
});
|
|
31
|
-
const authRepository = new auth_repository_1.AuthRepository({
|
|
32
|
-
cert: this.context.cert,
|
|
33
|
-
key: this.context.key,
|
|
34
|
-
cuit: this.context.cuit,
|
|
35
|
-
production: (_c = this.context.production) !== null && _c !== void 0 ? _c : false,
|
|
36
|
-
handleTicket: (_d = this.context.handleTicket) !== null && _d !== void 0 ? _d : false,
|
|
37
|
-
ticketStorage: this.context.handleTicket ? undefined : ticketStorage,
|
|
38
|
-
credentials: this.context.credentials,
|
|
39
|
-
});
|
|
40
|
-
const logger = new winston_logger_1.WinstonLogger({
|
|
41
|
-
enableLogging: (_e = this.context.enableLogging) !== null && _e !== void 0 ? _e : false,
|
|
42
|
-
});
|
|
43
|
-
const electronicBillingRepository = new electronic_billing_repository_1.ElectronicBillingRepository({
|
|
44
|
-
authRepository,
|
|
45
|
-
logger,
|
|
46
|
-
cuit: this.context.cuit,
|
|
47
|
-
production: (_f = this.context.production) !== null && _f !== void 0 ? _f : false,
|
|
48
|
-
useSoap12: (_g = this.context.useSoap12) !== null && _g !== void 0 ? _g : true, // Default to SOAP 1.2
|
|
49
|
-
});
|
|
50
|
-
const registerRepository = new register_repository_1.RegisterRepository({
|
|
51
|
-
authRepository,
|
|
52
|
-
logger,
|
|
53
|
-
cuit: this.context.cuit,
|
|
54
|
-
production: (_h = this.context.production) !== null && _h !== void 0 ? _h : false,
|
|
55
|
-
});
|
|
56
|
-
this._electronicBillingService = new electronic_billing_service_1.ElectronicBillingService(electronicBillingRepository);
|
|
57
|
-
this._registerInscriptionProofService = new register_inscription_proof_service_1.RegisterInscriptionProofService(registerRepository);
|
|
58
|
-
this._registerScopeFourService = new register_scope_four_service_1.RegisterScopeFourService(registerRepository);
|
|
59
|
-
this._registerScopeFiveService = new register_scope_five_service_1.RegisterScopeFiveService(registerRepository);
|
|
60
|
-
this._registerScopeTenService = new register_scope_ten_service_1.RegisterScopeTenService(registerRepository);
|
|
61
|
-
this._registerScopeThirteenService = new register_scope_thirteen_service_1.RegisterScopeThirteenService(registerRepository);
|
|
62
|
-
}
|
|
63
|
-
get electronicBillingService() {
|
|
64
|
-
return this._electronicBillingService;
|
|
65
|
-
}
|
|
66
|
-
get registerInscriptionProofService() {
|
|
67
|
-
return this._registerInscriptionProofService;
|
|
68
|
-
}
|
|
69
|
-
get registerScopeFourService() {
|
|
70
|
-
return this._registerScopeFourService;
|
|
71
|
-
}
|
|
72
|
-
get registerScopeFiveService() {
|
|
73
|
-
return this._registerScopeFiveService;
|
|
74
|
-
}
|
|
75
|
-
get registerScopeTenService() {
|
|
76
|
-
return this._registerScopeTenService;
|
|
77
|
-
}
|
|
78
|
-
get registerScopeThirteenService() {
|
|
79
|
-
return this._registerScopeThirteenService;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
exports.Arca = Arca;
|
|
83
|
-
//# sourceMappingURL=arca.js.map
|
package/lib/arca.js.map
DEL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wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,uBAAuB;QACzB,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACvC,CAAC;IAED,IAAI,4BAA4B;QAC9B,OAAO,IAAI,CAAC,6BAA6B,CAAC;IAC5C,CAAC;CACF;AA/FD,oBA+FC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ILoginCmsReturnHeaders, ILoginCmsReturnCredentials } from "@infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms";
|
|
2
|
-
import { WSAuthParam } from "@application/types";
|
|
3
|
-
export type { WSAuthParam };
|
|
4
|
-
export interface ILoginCredentials {
|
|
5
|
-
header: ILoginCmsReturnHeaders;
|
|
6
|
-
credentials: ILoginCmsReturnCredentials;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* AccessTicket Entity
|
|
10
|
-
* Represents an authentication ticket with business logic
|
|
11
|
-
*/
|
|
12
|
-
export declare class AccessTicket {
|
|
13
|
-
private readonly header;
|
|
14
|
-
private readonly credentials;
|
|
15
|
-
private constructor();
|
|
16
|
-
/**
|
|
17
|
-
* Factory method to create an AccessTicket
|
|
18
|
-
* @param data Login credentials data
|
|
19
|
-
* @returns AccessTicket instance
|
|
20
|
-
*/
|
|
21
|
-
static create(data: ILoginCredentials): AccessTicket;
|
|
22
|
-
/**
|
|
23
|
-
* Validates the ticket structure
|
|
24
|
-
* @throws Error if ticket is invalid
|
|
25
|
-
*/
|
|
26
|
-
private validate;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the sign from credentials
|
|
29
|
-
*/
|
|
30
|
-
getSign(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the token from credentials
|
|
33
|
-
*/
|
|
34
|
-
getToken(): string;
|
|
35
|
-
/**
|
|
36
|
-
* Gets the expiration date
|
|
37
|
-
*/
|
|
38
|
-
getExpiration(): Date;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the headers
|
|
41
|
-
*/
|
|
42
|
-
getHeaders(): ILoginCmsReturnHeaders;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the credentials
|
|
45
|
-
*/
|
|
46
|
-
getCredentials(): ILoginCmsReturnCredentials;
|
|
47
|
-
/**
|
|
48
|
-
* Gets the full login credentials (header + credentials)
|
|
49
|
-
* Useful for storing and reusing tickets
|
|
50
|
-
*/
|
|
51
|
-
toLoginCredentials(): ILoginCredentials;
|
|
52
|
-
/**
|
|
53
|
-
* Formats the ticket for SOAP authentication
|
|
54
|
-
* @param cuit CUIT to include in auth
|
|
55
|
-
* @returns WSAuthParam formatted for SOAP
|
|
56
|
-
*/
|
|
57
|
-
getWSAuthFormat(cuit: number): WSAuthParam;
|
|
58
|
-
/**
|
|
59
|
-
* Checks if the ticket is expired
|
|
60
|
-
* @returns true if expired, false otherwise
|
|
61
|
-
*/
|
|
62
|
-
isExpired(): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Checks if the ticket is valid (not expired)
|
|
65
|
-
* @returns true if valid, false otherwise
|
|
66
|
-
*/
|
|
67
|
-
isValid(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Gets the time remaining until expiration in milliseconds
|
|
70
|
-
* @returns milliseconds until expiration, or 0 if expired
|
|
71
|
-
*/
|
|
72
|
-
getTimeUntilExpiration(): number;
|
|
73
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AccessTicket = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* AccessTicket Entity
|
|
9
|
-
* Domain entity representing an authentication ticket from AFIP/ARCA
|
|
10
|
-
*/
|
|
11
|
-
const moment_1 = __importDefault(require("moment"));
|
|
12
|
-
/**
|
|
13
|
-
* AccessTicket Entity
|
|
14
|
-
* Represents an authentication ticket with business logic
|
|
15
|
-
*/
|
|
16
|
-
class AccessTicket {
|
|
17
|
-
constructor(header, credentials) {
|
|
18
|
-
this.header = header;
|
|
19
|
-
this.credentials = credentials;
|
|
20
|
-
this.validate();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Factory method to create an AccessTicket
|
|
24
|
-
* @param data Login credentials data
|
|
25
|
-
* @returns AccessTicket instance
|
|
26
|
-
*/
|
|
27
|
-
static create(data) {
|
|
28
|
-
return new AccessTicket(data.header, data.credentials);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Validates the ticket structure
|
|
32
|
-
* @throws Error if ticket is invalid
|
|
33
|
-
*/
|
|
34
|
-
validate() {
|
|
35
|
-
var _a;
|
|
36
|
-
if (!this.header || !Array.isArray(this.header)) {
|
|
37
|
-
throw new Error("Invalid ticket header structure");
|
|
38
|
-
}
|
|
39
|
-
if (!this.credentials ||
|
|
40
|
-
!this.credentials.sign ||
|
|
41
|
-
!this.credentials.token) {
|
|
42
|
-
throw new Error("Invalid ticket credentials");
|
|
43
|
-
}
|
|
44
|
-
const expirationTime = (_a = this.header[1]) === null || _a === void 0 ? void 0 : _a.expirationtime;
|
|
45
|
-
if (!expirationTime) {
|
|
46
|
-
throw new Error("Ticket expiration time is missing");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Gets the sign from credentials
|
|
51
|
-
*/
|
|
52
|
-
getSign() {
|
|
53
|
-
return this.credentials.sign;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Gets the token from credentials
|
|
57
|
-
*/
|
|
58
|
-
getToken() {
|
|
59
|
-
return this.credentials.token;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Gets the expiration date
|
|
63
|
-
*/
|
|
64
|
-
getExpiration() {
|
|
65
|
-
const expirationTime = this.header[1].expirationtime;
|
|
66
|
-
if (!expirationTime) {
|
|
67
|
-
throw new Error("Expiration time is missing");
|
|
68
|
-
}
|
|
69
|
-
return (0, moment_1.default)(expirationTime).toDate();
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Gets the headers
|
|
73
|
-
*/
|
|
74
|
-
getHeaders() {
|
|
75
|
-
return this.header;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Gets the credentials
|
|
79
|
-
*/
|
|
80
|
-
getCredentials() {
|
|
81
|
-
return this.credentials;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Gets the full login credentials (header + credentials)
|
|
85
|
-
* Useful for storing and reusing tickets
|
|
86
|
-
*/
|
|
87
|
-
toLoginCredentials() {
|
|
88
|
-
return {
|
|
89
|
-
header: this.header,
|
|
90
|
-
credentials: this.credentials,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Formats the ticket for SOAP authentication
|
|
95
|
-
* @param cuit CUIT to include in auth
|
|
96
|
-
* @returns WSAuthParam formatted for SOAP
|
|
97
|
-
*/
|
|
98
|
-
getWSAuthFormat(cuit) {
|
|
99
|
-
if (!cuit || cuit <= 0) {
|
|
100
|
-
throw new Error("Invalid CUIT provided");
|
|
101
|
-
}
|
|
102
|
-
return {
|
|
103
|
-
Auth: {
|
|
104
|
-
Token: this.getToken(),
|
|
105
|
-
Sign: this.getSign(),
|
|
106
|
-
Cuit: cuit,
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Checks if the ticket is expired
|
|
112
|
-
* @returns true if expired, false otherwise
|
|
113
|
-
*/
|
|
114
|
-
isExpired() {
|
|
115
|
-
try {
|
|
116
|
-
const expiration = this.getExpiration();
|
|
117
|
-
return (0, moment_1.default)(expiration).isBefore(new Date());
|
|
118
|
-
}
|
|
119
|
-
catch (error) {
|
|
120
|
-
return true; // If we can't determine expiration, consider it expired
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Checks if the ticket is valid (not expired)
|
|
125
|
-
* @returns true if valid, false otherwise
|
|
126
|
-
*/
|
|
127
|
-
isValid() {
|
|
128
|
-
return !this.isExpired();
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Gets the time remaining until expiration in milliseconds
|
|
132
|
-
* @returns milliseconds until expiration, or 0 if expired
|
|
133
|
-
*/
|
|
134
|
-
getTimeUntilExpiration() {
|
|
135
|
-
if (this.isExpired()) {
|
|
136
|
-
return 0;
|
|
137
|
-
}
|
|
138
|
-
const expiration = this.getExpiration();
|
|
139
|
-
const now = new Date();
|
|
140
|
-
return Math.max(0, expiration.getTime() - now.getTime());
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.AccessTicket = AccessTicket;
|
|
144
|
-
//# sourceMappingURL=access-ticket.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"access-ticket.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/access-ticket.entity.ts"],"names":[],"mappings":";;;;;;AAAA;;;GAGG;AACH,oDAA4B;AAc5B;;;GAGG;AACH,MAAa,YAAY;IACvB,YACmB,MAA8B,EAC9B,WAAuC;QADvC,WAAM,GAAN,MAAM,CAAwB;QAC9B,gBAAW,GAAX,WAAW,CAA4B;QAExD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,IAAuB;QACnC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACK,QAAQ;;QACd,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;YAChD,MAAM,IAAI,KAAK,C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E,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO;YACL,IAAI,EAAE;gBACJ,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;gBACtB,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;gBACpB,IAAI,EAAE,IAAI;aACX;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;YACxC,OAAO,IAAA,gBAAM,EAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,CAAC,wDAAwD;QACvE,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,OAAO;QACL,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACH,sBAAsB;QACpB,IAAI,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YACrB,OAAO,CAAC,CAAC;QACX,CAAC;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACxC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AA/ID,oCA+IC"}
|
|
@@ -1,23 +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
|
-
* Domain Entities
|
|
19
|
-
* Exports all domain entities
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./access-ticket.entity"), exports);
|
|
22
|
-
__exportStar(require("./voucher.entity"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,yDAAuC;AACvC,mDAAiC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Voucher Entity
|
|
3
|
-
* Domain entity representing an electronic voucher/comprobante
|
|
4
|
-
*/
|
|
5
|
-
import { IVoucher as IVoucherData, ICbtesAsoc, ITributo, IIva } from "../types/voucher.types";
|
|
6
|
-
/**
|
|
7
|
-
* Voucher Entity
|
|
8
|
-
* Represents an electronic voucher with business logic and validations
|
|
9
|
-
*/
|
|
10
|
-
export declare class Voucher {
|
|
11
|
-
private readonly data;
|
|
12
|
-
private constructor();
|
|
13
|
-
/**
|
|
14
|
-
* Factory method to create a Voucher
|
|
15
|
-
* @param data Voucher data
|
|
16
|
-
* @returns Voucher instance
|
|
17
|
-
*/
|
|
18
|
-
static create(data: IVoucherData): Voucher;
|
|
19
|
-
/**
|
|
20
|
-
* Validates the voucher according to business rules
|
|
21
|
-
* @throws Error if validation fails
|
|
22
|
-
*/
|
|
23
|
-
private validate;
|
|
24
|
-
/**
|
|
25
|
-
* Gets the Punto de Venta
|
|
26
|
-
*/
|
|
27
|
-
getPtoVta(): number;
|
|
28
|
-
/**
|
|
29
|
-
* Gets the Tipo de Comprobante
|
|
30
|
-
*/
|
|
31
|
-
getCbteTipo(): number;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the CbteDesde
|
|
34
|
-
*/
|
|
35
|
-
getCbteDesde(): number;
|
|
36
|
-
/**
|
|
37
|
-
* Gets the CbteHasta
|
|
38
|
-
*/
|
|
39
|
-
getCbteHasta(): number;
|
|
40
|
-
/**
|
|
41
|
-
* Gets the total amount
|
|
42
|
-
*/
|
|
43
|
-
getImpTotal(): number;
|
|
44
|
-
/**
|
|
45
|
-
* Gets the IVA amount
|
|
46
|
-
*/
|
|
47
|
-
getImpIVA(): number;
|
|
48
|
-
/**
|
|
49
|
-
* Gets the net amount
|
|
50
|
-
*/
|
|
51
|
-
getImpNeto(): number;
|
|
52
|
-
/**
|
|
53
|
-
* Gets the taxes amount
|
|
54
|
-
*/
|
|
55
|
-
getImpTrib(): number;
|
|
56
|
-
/**
|
|
57
|
-
* Checks if this is a Factura C (type 11)
|
|
58
|
-
*/
|
|
59
|
-
isFacturaC(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Checks if this is a Factura A (type 1)
|
|
62
|
-
*/
|
|
63
|
-
isFacturaA(): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Checks if this is a Factura B (type 6)
|
|
66
|
-
*/
|
|
67
|
-
isFacturaB(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Gets the voucher date
|
|
70
|
-
*/
|
|
71
|
-
getCbteFch(): string;
|
|
72
|
-
/**
|
|
73
|
-
* Gets the concept type
|
|
74
|
-
*/
|
|
75
|
-
getConcepto(): number;
|
|
76
|
-
/**
|
|
77
|
-
* Gets the document type
|
|
78
|
-
*/
|
|
79
|
-
getDocTipo(): number;
|
|
80
|
-
/**
|
|
81
|
-
* Gets the document number
|
|
82
|
-
*/
|
|
83
|
-
getDocNro(): number;
|
|
84
|
-
/**
|
|
85
|
-
* Gets the currency ID
|
|
86
|
-
*/
|
|
87
|
-
getMonId(): string;
|
|
88
|
-
/**
|
|
89
|
-
* Gets the currency exchange rate
|
|
90
|
-
*/
|
|
91
|
-
getMonCotiz(): number;
|
|
92
|
-
/**
|
|
93
|
-
* Gets the IVA array (if any)
|
|
94
|
-
*/
|
|
95
|
-
getIva(): IIva[] | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Gets the Tributos array (if any)
|
|
98
|
-
*/
|
|
99
|
-
getTributos(): ITributo[] | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* Gets the associated vouchers (if any)
|
|
102
|
-
*/
|
|
103
|
-
getCbtesAsoc(): ICbtesAsoc[] | undefined;
|
|
104
|
-
/**
|
|
105
|
-
* Converts the entity to DTO for external use
|
|
106
|
-
* @returns IVoucherData DTO
|
|
107
|
-
*/
|
|
108
|
-
toDTO(): IVoucherData;
|
|
109
|
-
/**
|
|
110
|
-
* Gets the number of vouchers in this range
|
|
111
|
-
*/
|
|
112
|
-
getCantReg(): number;
|
|
113
|
-
}
|