@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,54 +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.SoapClientFacade = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* SOAP Client Facade
|
|
15
|
-
* Internal utility for creating SOAP clients
|
|
16
|
-
*/
|
|
17
|
-
const soap_1 = require("soap");
|
|
18
|
-
class SoapClientFacade {
|
|
19
|
-
constructor() { }
|
|
20
|
-
/**
|
|
21
|
-
* Create HTTP client with custom HTTPS agent for legacy servers
|
|
22
|
-
*/
|
|
23
|
-
static createHttpClientWithAgent(httpsAgent) {
|
|
24
|
-
const originalHttpClient = new soap_1.HttpClient();
|
|
25
|
-
return {
|
|
26
|
-
request: function (rurl, data, callback, exheaders, exoptions) {
|
|
27
|
-
if (!exoptions) {
|
|
28
|
-
exoptions = {};
|
|
29
|
-
}
|
|
30
|
-
if (!exoptions.httpsAgent) {
|
|
31
|
-
exoptions.httpsAgent = httpsAgent;
|
|
32
|
-
}
|
|
33
|
-
return originalHttpClient.request(rurl, data, callback, exheaders, exoptions);
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Create a SOAP client
|
|
39
|
-
*/
|
|
40
|
-
static create(_a) {
|
|
41
|
-
return __awaiter(this, arguments, void 0, function* ({ wsdl, options, }) {
|
|
42
|
-
const requestOptions = options === null || options === void 0 ? void 0 : options.request;
|
|
43
|
-
let finalOptions = Object.assign({}, options);
|
|
44
|
-
if (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.httpsAgent) {
|
|
45
|
-
const httpsAgent = requestOptions.httpsAgent;
|
|
46
|
-
finalOptions = Object.assign(Object.assign({}, options), { httpClient: SoapClientFacade.createHttpClientWithAgent(httpsAgent) });
|
|
47
|
-
}
|
|
48
|
-
const client = (yield (0, soap_1.createClientAsync)(wsdl, finalOptions));
|
|
49
|
-
return client;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.SoapClientFacade = SoapClientFacade;
|
|
54
|
-
//# sourceMappingURL=soap-client-facade.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"soap-client-facade.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client-facade.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,+BAA0E;AAQ1E,MAAa,gBAAgB;IAC3B,gBAAuB,CAAC;IAExB;;OAEG;IACK,MAAM,CAAC,yBAAyB,CACtC,UAAuB;QAEvB,MAAM,kBAAkB,GAAG,IAAI,iBAAU,EAAE,CAAC;QAE5C,OAAO;YACL,OAAO,EAAE,UACP,IAAY,EACZ,IAAS,EACT,QAAoD,EACpD,SAAe,EACf,SAAe;gBAEf,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,SAAS,GAAG,EAAE,CAAC;gBACjB,CAAC;gBACD,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;oBAC1B,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;gBACpC,CAAC;gBACD,OAAO,kBAAkB,CAAC,OAAO,CAC/B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,CACV,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACI,MAAM,CAAO,MAAM;6DAAmB,EAC3C,IAAI,EACJ,OAAO,GACU;YACjB,MAAM,cAAc,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAc,CAAC;YAC/C,IAAI,YAAY,qBAAQ,OAAO,CAAE,CAAC;YAElC,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,UAAU,EAAE,CAAC;gBAC/B,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;gBAC7C,YAAY,mCACP,OAAO,KACV,UAAU,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACnE,CAAC;YACJ,CAAC;YAED,MAAM,MAAM,GAAG,CAAC,MAAM,IAAA,wBAAiB,EAAC,IAAI,EAAE,YAAY,CAAC,CAAM,CAAC;YAElE,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AA1DD,4CA0DC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SOAP Client
|
|
3
|
-
* Implements ISoapClientPort using the soap library
|
|
4
|
-
*/
|
|
5
|
-
import { ISoapClientPort } from "@infrastructure/outbound/ports/soap/soap-client.port";
|
|
6
|
-
import { Client } from "soap";
|
|
7
|
-
export declare class SoapClient implements ISoapClientPort {
|
|
8
|
-
createClient<T extends Client>(wsdlName: string, options?: any): Promise<T>;
|
|
9
|
-
setEndpoint(client: any, endpoint: string): void;
|
|
10
|
-
call<T extends [any, string, any, string]>(client: any, methodName: string, params: any): Promise<T>;
|
|
11
|
-
}
|
|
@@ -1,89 +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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.SoapClient = void 0;
|
|
46
|
-
const soap_client_facade_1 = require("./soap-client-facade");
|
|
47
|
-
const https = __importStar(require("https"));
|
|
48
|
-
const ssl_constants_1 = require("@infrastructure/constants/ssl.constants");
|
|
49
|
-
const wsdl_strings_1 = require("./wsdl-strings");
|
|
50
|
-
class SoapClient {
|
|
51
|
-
createClient(wsdlName, options) {
|
|
52
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
var _a;
|
|
54
|
-
// Create HTTPS agent for legacy servers (ARCA uses weak DH parameters)
|
|
55
|
-
const legacyHttpsAgent = new https.Agent({
|
|
56
|
-
rejectUnauthorized: true,
|
|
57
|
-
minDHSize: ssl_constants_1.MIN_DH_SIZE_LEGACY,
|
|
58
|
-
});
|
|
59
|
-
const finalOptions = Object.assign({ disableCache: true, forceSoap12Headers: (_a = options === null || options === void 0 ? void 0 : options.forceSoap12Headers) !== null && _a !== void 0 ? _a : false, wsdl_options: {
|
|
60
|
-
httpsAgent: legacyHttpsAgent,
|
|
61
|
-
}, request: {
|
|
62
|
-
httpsAgent: legacyHttpsAgent,
|
|
63
|
-
} }, options);
|
|
64
|
-
const wsdlXml = (0, wsdl_strings_1.getWsdlString)(wsdlName);
|
|
65
|
-
if (!wsdlXml) {
|
|
66
|
-
throw new Error(`WSDL ${wsdlName} not found`);
|
|
67
|
-
}
|
|
68
|
-
return soap_client_facade_1.SoapClientFacade.create({
|
|
69
|
-
wsdl: wsdlXml,
|
|
70
|
-
options: finalOptions,
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
setEndpoint(client, endpoint) {
|
|
75
|
-
if (client && typeof client.setEndpoint === "function") {
|
|
76
|
-
client.setEndpoint(endpoint);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
call(client, methodName, params) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
if (!client || typeof client[methodName] !== "function") {
|
|
82
|
-
throw new Error(`Method ${methodName} not found on SOAP client`);
|
|
83
|
-
}
|
|
84
|
-
return client[methodName](params);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.SoapClient = SoapClient;
|
|
89
|
-
//# sourceMappingURL=soap-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"soap-client.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,6DAAwD;AAExD,6CAA+B;AAC/B,2EAA6E;AAC7E,iDAA+C;AAE/C,MAAa,UAAU;IACf,YAAY,CAChB,QAAgB,EAChB,OAAa;;;YAEb,uEAAuE;YACvE,MAAM,gBAAgB,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC;gBACvC,kBAAkB,EAAE,IAAI;gBACxB,SAAS,EAAE,kCAAkB;aAC9B,CAAC,CAAC;YAEH,MAAM,YAAY,mBAChB,YAAY,EAAE,IAAI,EAClB,kBAAkB,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,mCAAI,KAAK,EACxD,YAAY,EAAE;oBACZ,UAAU,EAAE,gBAAgB;iBAC7B,EACD,OAAO,EAAE;oBACP,UAAU,EAAE,gBAAgB;iBACtB,IACL,OAAO,CACX,CAAC;YAEF,MAAM,OAAO,GAAG,IAAA,4BAAa,EAAC,QAAQ,CAAC,CAAC;YACxC,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAC,QAAQ,QAAQ,YAAY,CAAC,CAAC;YAChD,CAAC;YAED,OAAO,qCAAgB,CAAC,MAAM,CAAI;gBAChC,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE,YAAY;aACtB,CAAC,CAAC;QACL,CAAC;KAAA;IAED,WAAW,CAAC,MAAW,EAAE,QAAgB;QACvC,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;YACvD,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAEK,IAAI,CACR,MAAW,EACX,UAAkB,EAClB,MAAW;;YAEX,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE,CAAC;gBACxD,MAAM,IAAI,KAAK,CAAC,UAAU,UAAU,2BAA2B,CAAC,CAAC;YACnE,CAAC;YAED,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAe,CAAC;QAClD,CAAC;KAAA;CACF;AAnDD,gCAmDC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WSDL files embedded as strings
|
|
3
|
-
* This file is auto-generated to avoid file system access issues in bundled environments
|
|
4
|
-
* Generated from files in src/infrastructure/outbound/adapters/soap/wsdl/
|
|
5
|
-
*
|
|
6
|
-
* DO NOT EDIT THIS FILE MANUALLY
|
|
7
|
-
* Run: npm run generate:wsdl-strings
|
|
8
|
-
*/
|
|
9
|
-
export declare const WSDL_STRINGS: Record<string, string>;
|
|
10
|
-
export declare function getWsdlString(filename: string): string | undefined;
|