@arcasdk/core 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/config/env.d.ts +6 -0
- package/lib/application/config/env.js +14 -0
- package/lib/application/config/env.js.map +1 -0
- package/lib/application/config/index.d.ts +6 -0
- package/lib/application/config/index.js +15 -0
- package/lib/application/config/index.js.map +1 -0
- package/lib/application/dto/electronic-billing.dto.d.ts +192 -0
- package/lib/application/dto/electronic-billing.dto.js +3 -0
- package/lib/application/dto/electronic-billing.dto.js.map +1 -0
- package/lib/application/dto/index.d.ts +6 -0
- package/lib/application/dto/index.js +23 -0
- package/lib/application/dto/index.js.map +1 -0
- package/lib/application/dto/register.dto.d.ts +116 -0
- package/lib/application/dto/register.dto.js +8 -0
- package/lib/application/dto/register.dto.js.map +1 -0
- package/lib/application/index.d.ts +10 -0
- package/lib/application/index.js +27 -0
- package/lib/application/index.js.map +1 -0
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +29 -0
- package/lib/application/ports/authentication/authentication-repository.port.js +3 -0
- package/lib/application/ports/authentication/authentication-repository.port.js.map +1 -0
- package/lib/application/ports/authentication/index.d.ts +5 -0
- package/lib/application/ports/authentication/index.js +22 -0
- package/lib/application/ports/authentication/index.js.map +1 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +139 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +3 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +1 -0
- package/lib/application/ports/electronic-billing/index.d.ts +5 -0
- package/lib/application/ports/electronic-billing/index.js +22 -0
- package/lib/application/ports/electronic-billing/index.js.map +1 -0
- package/lib/application/ports/generic/generic-repository.port.d.ts +16 -0
- package/lib/application/ports/generic/generic-repository.port.js +3 -0
- package/lib/application/ports/generic/generic-repository.port.js.map +1 -0
- package/lib/application/ports/index.d.ts +7 -0
- package/lib/application/ports/index.js +24 -0
- package/lib/application/ports/index.js.map +1 -0
- package/lib/application/ports/register/index.d.ts +5 -0
- package/lib/application/ports/register/index.js +22 -0
- package/lib/application/ports/register/index.js.map +1 -0
- package/lib/application/ports/register/register-repository.ports.d.ts +23 -0
- package/lib/application/ports/register/register-repository.ports.js +3 -0
- package/lib/application/ports/register/register-repository.ports.js.map +1 -0
- package/lib/application/services/electronic-billing.service.d.ts +202 -0
- package/lib/application/services/electronic-billing.service.js +340 -0
- package/lib/application/services/electronic-billing.service.js.map +1 -0
- package/lib/application/services/generic.service.d.ts +19 -0
- package/lib/application/services/generic.service.js +31 -0
- package/lib/application/services/generic.service.js.map +1 -0
- package/lib/application/services/index.d.ts +10 -0
- package/lib/application/services/index.js +27 -0
- package/lib/application/services/index.js.map +1 -0
- package/lib/application/services/register-inscription-proof.service.d.ts +26 -0
- package/lib/application/services/register-inscription-proof.service.js +49 -0
- package/lib/application/services/register-inscription-proof.service.js.map +1 -0
- package/lib/application/services/register-scope-five.service.d.ts +26 -0
- package/lib/application/services/register-scope-five.service.js +49 -0
- package/lib/application/services/register-scope-five.service.js.map +1 -0
- package/lib/application/services/register-scope-four.service.d.ts +28 -0
- package/lib/application/services/register-scope-four.service.js +51 -0
- package/lib/application/services/register-scope-four.service.js.map +1 -0
- package/lib/application/services/register-scope-ten.service.d.ts +21 -0
- package/lib/application/services/register-scope-ten.service.js +39 -0
- package/lib/application/services/register-scope-ten.service.js.map +1 -0
- package/lib/application/services/register-scope-thirteen.service.d.ts +26 -0
- package/lib/application/services/register-scope-thirteen.service.js +49 -0
- package/lib/application/services/register-scope-thirteen.service.js.map +1 -0
- package/lib/application/types/auth.types.d.ts +19 -0
- package/lib/application/types/auth.types.js +7 -0
- package/lib/application/types/auth.types.js.map +1 -0
- package/lib/application/types/context.types.d.ts +46 -0
- package/lib/application/types/context.types.js +3 -0
- package/lib/application/types/context.types.js.map +1 -0
- package/lib/application/types/index.d.ts +8 -0
- package/lib/application/types/index.js +25 -0
- package/lib/application/types/index.js.map +1 -0
- package/lib/application/types/result.types.d.ts +10 -0
- package/lib/application/types/result.types.js +3 -0
- package/lib/application/types/result.types.js.map +1 -0
- package/lib/application/types/use-case-inputs.types.d.ts +23 -0
- package/lib/application/types/use-case-inputs.types.js +7 -0
- package/lib/application/types/use-case-inputs.types.js.map +1 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js +29 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/index.d.ts +7 -0
- package/lib/application/use-cases/authentication/index.js +24 -0
- package/lib/application/use-cases/authentication/index.js.map +1 -0
- package/lib/application/use-cases/authentication/login.use-case.d.ts +17 -0
- package/lib/application/use-cases/authentication/login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/login.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +39 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +33 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.d.ts +16 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +40 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +73 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.d.ts +16 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/index.d.ts +18 -0
- package/lib/application/use-cases/electronic-billing/index.js +36 -0
- package/lib/application/use-cases/electronic-billing/index.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.d.ts +14 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js +32 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js.map +1 -0
- package/lib/application/use-cases/index.d.ts +7 -0
- package/lib/application/use-cases/index.js +24 -0
- package/lib/application/use-cases/index.js.map +1 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +15 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.js +28 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +29 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/index.d.ts +4 -0
- package/lib/application/use-cases/register/index.js +21 -0
- package/lib/application/use-cases/register/index.js.map +1 -0
- package/lib/arca.d.ts +26 -0
- package/lib/arca.js +124 -0
- package/lib/arca.js.map +1 -0
- package/lib/domain/entities/access-ticket.entity.d.ts +73 -0
- package/lib/domain/entities/access-ticket.entity.js +144 -0
- package/lib/domain/entities/access-ticket.entity.js.map +1 -0
- package/lib/domain/entities/index.d.ts +6 -0
- package/lib/domain/entities/index.js +23 -0
- package/lib/domain/entities/index.js.map +1 -0
- package/lib/domain/entities/voucher.entity.d.ts +113 -0
- package/lib/domain/entities/voucher.entity.js +216 -0
- package/lib/domain/entities/voucher.entity.js.map +1 -0
- package/lib/domain/index.d.ts +6 -0
- package/lib/domain/index.js +23 -0
- package/lib/domain/index.js.map +1 -0
- package/lib/domain/types/electronic-billing.types.d.ts +193 -0
- package/lib/domain/types/electronic-billing.types.js +8 -0
- package/lib/domain/types/electronic-billing.types.js.map +1 -0
- package/lib/domain/types/index.d.ts +6 -0
- package/lib/domain/types/index.js +23 -0
- package/lib/domain/types/index.js.map +1 -0
- package/lib/domain/types/voucher.types.d.ts +65 -0
- package/lib/domain/types/voucher.types.js +3 -0
- package/lib/domain/types/voucher.types.js.map +1 -0
- package/lib/domain/value-objects/cae.vo.d.ts +47 -0
- package/lib/domain/value-objects/cae.vo.js +80 -0
- package/lib/domain/value-objects/cae.vo.js.map +1 -0
- package/lib/domain/value-objects/cuit.vo.d.ts +49 -0
- package/lib/domain/value-objects/cuit.vo.js +98 -0
- package/lib/domain/value-objects/cuit.vo.js.map +1 -0
- package/lib/domain/value-objects/index.d.ts +7 -0
- package/lib/domain/value-objects/index.js +24 -0
- package/lib/domain/value-objects/index.js.map +1 -0
- package/lib/domain/value-objects/voucher-number.vo.d.ts +66 -0
- package/lib/domain/value-objects/voucher-number.vo.js +106 -0
- package/lib/domain/value-objects/voucher-number.vo.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +27 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/constants/index.d.ts +5 -0
- package/lib/infrastructure/constants/index.js +22 -0
- package/lib/infrastructure/constants/index.js.map +1 -0
- package/lib/infrastructure/constants/ssl.constants.d.ts +16 -0
- package/lib/infrastructure/constants/ssl.constants.js +20 -0
- package/lib/infrastructure/constants/ssl.constants.js.map +1 -0
- package/lib/infrastructure/index.d.ts +5 -0
- package/lib/infrastructure/index.js +22 -0
- package/lib/infrastructure/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +68 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +128 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +59 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +134 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +41 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +513 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +5 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +22 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/enums.d.ts +43 -0
- package/lib/infrastructure/outbound/adapters/enums.js +49 -0
- package/lib/infrastructure/outbound/adapters/enums.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +13 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js +53 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/index.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/index.js +27 -0
- package/lib/infrastructure/outbound/adapters/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +24 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/index.d.ts +9 -0
- package/lib/infrastructure/outbound/adapters/register/index.js +26 -0
- package/lib/infrastructure/outbound/adapters/register/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +18 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +143 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +136 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +12 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +103 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +12 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js +112 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +13 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +133 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +30 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +68 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +20 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +54 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +11 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +95 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +6144 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +24 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +98 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -0
- package/lib/infrastructure/outbound/index.d.ts +9 -0
- package/lib/infrastructure/outbound/index.js +26 -0
- package/lib/infrastructure/outbound/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +17 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/index.d.ts +11 -0
- package/lib/infrastructure/outbound/ports/index.js +28 -0
- package/lib/infrastructure/outbound/ports/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +31 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +51 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +57 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +14 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +20 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +42 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +102 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +145 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +227 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +300 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +301 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +835 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +876 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +53 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +30 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +45 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +24 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +1 -0
- package/lib/infrastructure/types/index.d.ts +5 -0
- package/lib/infrastructure/types/index.js +22 -0
- package/lib/infrastructure/types/index.js.map +1 -0
- package/lib/infrastructure/types/soap.types.d.ts +29 -0
- package/lib/infrastructure/types/soap.types.js +3 -0
- package/lib/infrastructure/types/soap.types.js.map +1 -0
- package/lib/infrastructure/utils/crypt-data.d.ts +6 -0
- package/lib/infrastructure/utils/crypt-data.js +46 -0
- package/lib/infrastructure/utils/crypt-data.js.map +1 -0
- package/lib/infrastructure/utils/env.d.ts +10 -0
- package/lib/infrastructure/utils/env.js +32 -0
- package/lib/infrastructure/utils/env.js.map +1 -0
- package/lib/infrastructure/utils/index.d.ts +8 -0
- package/lib/infrastructure/utils/index.js +25 -0
- package/lib/infrastructure/utils/index.js.map +1 -0
- package/lib/infrastructure/utils/logger.d.ts +4 -0
- package/lib/infrastructure/utils/logger.js +21 -0
- package/lib/infrastructure/utils/logger.js.map +1 -0
- package/lib/infrastructure/utils/parser.d.ts +14 -0
- package/lib/infrastructure/utils/parser.js +36 -0
- package/lib/infrastructure/utils/parser.js.map +1 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +200 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js +213 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IVoucher } from "@domain/types/voucher.types";
|
|
2
|
+
import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
|
|
3
|
+
import { CaeaUsageResultDto } from "@application/dto/electronic-billing.dto";
|
|
4
|
+
export declare class InformCaeaUsageUseCase {
|
|
5
|
+
private readonly electronicBillingRepository;
|
|
6
|
+
constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
|
|
7
|
+
/**
|
|
8
|
+
* Inform CAEA Usage
|
|
9
|
+
* @param voucherData Voucher data
|
|
10
|
+
* @param caea CAEA number
|
|
11
|
+
* @returns CAEA Usage information
|
|
12
|
+
*/
|
|
13
|
+
execute(voucherData: IVoucher, caea: string): Promise<CaeaUsageResultDto>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.InformCaeaUsageUseCase = void 0;
|
|
13
|
+
const voucher_entity_1 = require("@domain/entities/voucher.entity");
|
|
14
|
+
class InformCaeaUsageUseCase {
|
|
15
|
+
constructor(electronicBillingRepository) {
|
|
16
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Inform CAEA Usage
|
|
20
|
+
* @param voucherData Voucher data
|
|
21
|
+
* @param caea CAEA number
|
|
22
|
+
* @returns CAEA Usage information
|
|
23
|
+
*/
|
|
24
|
+
execute(voucherData, caea) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
const voucher = voucher_entity_1.Voucher.create(voucherData);
|
|
27
|
+
return this.electronicBillingRepository.informCaeaUsage(voucher, caea);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.InformCaeaUsageUseCase = InformCaeaUsageUseCase;
|
|
32
|
+
//# sourceMappingURL=inform-caea-usage.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inform-caea-usage.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/inform-caea-usage.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAA0D;AAK1D,MAAa,sBAAsB;IACjC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;;OAKG;IACG,OAAO,CACX,WAAqB,EACrB,IAAY;;YAEZ,MAAM,OAAO,GAAG,wBAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YAC5C,OAAO,IAAI,CAAC,2BAA2B,CAAC,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACzE,CAAC;KAAA;CACF;AAlBD,wDAkBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* Use Cases
|
|
19
|
+
* Exports all use cases organized by domain
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./authentication"), exports);
|
|
22
|
+
__exportStar(require("./electronic-billing"), exports);
|
|
23
|
+
__exportStar(require("./register"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,uDAAqC;AACrC,6CAA2B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Register Server Status Use Case
|
|
3
|
+
* Retrieves the status of the register servers
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterBaseRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
6
|
+
import { RegisterServerStatusDto } from "@application/dto/register.dto";
|
|
7
|
+
export declare class GetRegisterServerStatusUseCase {
|
|
8
|
+
private readonly repository;
|
|
9
|
+
constructor(repository: IRegisterBaseRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @returns Register server status
|
|
13
|
+
*/
|
|
14
|
+
execute(): Promise<RegisterServerStatusDto>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetRegisterServerStatusUseCase = void 0;
|
|
13
|
+
class GetRegisterServerStatusUseCase {
|
|
14
|
+
constructor(repository) {
|
|
15
|
+
this.repository = repository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @returns Register server status
|
|
20
|
+
*/
|
|
21
|
+
execute() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return this.repository.getServerStatus();
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.GetRegisterServerStatusUseCase = GetRegisterServerStatusUseCase;
|
|
28
|
+
//# sourceMappingURL=get-register-server-status.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-register-server-status.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-register-server-status.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,8BAA8B;IACzC,YAA6B,UAAuC;QAAvC,eAAU,GAAV,UAAU,CAA6B;IAAG,CAAC;IAExE;;;OAGG;IACG,OAAO;;YACX,OAAO,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAC3C,CAAC;KAAA;CACF;AAVD,wEAUC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Tax ID By Document Use Case
|
|
3
|
+
* Retrieves Tax ID (CUIT) by document number (Scope 13)
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterScopeThirteenRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
6
|
+
import { TaxIDByDocumentResultDto } from "@application/dto/register.dto";
|
|
7
|
+
export declare class GetTaxIDByDocumentUseCase {
|
|
8
|
+
private readonly repository;
|
|
9
|
+
constructor(repository: IRegisterScopeThirteenRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @param documentNumber Document number
|
|
13
|
+
* @returns Tax ID information
|
|
14
|
+
*/
|
|
15
|
+
execute(documentNumber: string): Promise<TaxIDByDocumentResultDto>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetTaxIDByDocumentUseCase = void 0;
|
|
13
|
+
class GetTaxIDByDocumentUseCase {
|
|
14
|
+
constructor(repository) {
|
|
15
|
+
this.repository = repository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param documentNumber Document number
|
|
20
|
+
* @returns Tax ID information
|
|
21
|
+
*/
|
|
22
|
+
execute(documentNumber) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.repository.getTaxIDByDocument(documentNumber);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetTaxIDByDocumentUseCase = GetTaxIDByDocumentUseCase;
|
|
29
|
+
//# sourceMappingURL=get-tax-id-by-document.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-tax-id-by-document.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-tax-id-by-document.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,yBAAyB;IACpC,YACmB,UAAgD;QAAhD,eAAU,GAAV,UAAU,CAAsC;IAChE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,cAAsB;;YAClC,OAAO,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF;AAbD,8DAaC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Taxpayer Details Use Case
|
|
3
|
+
* Retrieves details for a specific taxpayer
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterBaseRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
6
|
+
import { TaxpayerDetailsDto } from "@application/dto/register.dto";
|
|
7
|
+
export declare class GetTaxpayerDetailsUseCase {
|
|
8
|
+
private readonly repository;
|
|
9
|
+
constructor(repository: IRegisterBaseRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @param identifier Taxpayer identifier (CUIT)
|
|
13
|
+
* @returns Taxpayer details or null if not found
|
|
14
|
+
*/
|
|
15
|
+
execute(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetTaxpayerDetailsUseCase = void 0;
|
|
13
|
+
class GetTaxpayerDetailsUseCase {
|
|
14
|
+
constructor(repository) {
|
|
15
|
+
this.repository = repository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param identifier Taxpayer identifier (CUIT)
|
|
20
|
+
* @returns Taxpayer details or null if not found
|
|
21
|
+
*/
|
|
22
|
+
execute(identifier) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.repository.getTaxpayerDetails(identifier);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetTaxpayerDetailsUseCase = GetTaxpayerDetailsUseCase;
|
|
29
|
+
//# sourceMappingURL=get-taxpayer-details.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-taxpayer-details.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/get-taxpayer-details.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,yBAAyB;IACpC,YAA6B,UAAuC;QAAvC,eAAU,GAAV,UAAU,CAA6B;IAAG,CAAC;IAExE;;;;OAIG;IACG,OAAO,CAAC,UAAkB;;YAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACxD,CAAC;KAAA;CACF;AAXD,8DAWC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get Taxpayers Details Use Case
|
|
3
|
+
* Retrieves details for multiple taxpayers
|
|
4
|
+
*/
|
|
5
|
+
import { IRegisterBatchRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
6
|
+
import { TaxpayersDetailsDto } from "@application/dto/register.dto";
|
|
7
|
+
export declare class GetTaxpayersDetailsUseCase {
|
|
8
|
+
private readonly repository;
|
|
9
|
+
constructor(repository: IRegisterBatchRepositoryPort);
|
|
10
|
+
/**
|
|
11
|
+
* Execute the use case
|
|
12
|
+
* @param identifiers Array of taxpayer identifiers (CUITs)
|
|
13
|
+
* @returns Taxpayers details
|
|
14
|
+
*/
|
|
15
|
+
execute(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetTaxpayersDetailsUseCase = void 0;
|
|
13
|
+
class GetTaxpayersDetailsUseCase {
|
|
14
|
+
constructor(repository) {
|
|
15
|
+
this.repository = repository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Execute the use case
|
|
19
|
+
* @param identifiers Array of taxpayer identifiers (CUITs)
|
|
20
|
+
* @returns Taxpayers details
|
|
21
|
+
*/
|
|
22
|
+
execute(identifiers) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
return this.repository.getTaxpayersDetails(identifiers);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GetTaxpayersDetailsUseCase = GetTaxpayersDetailsUseCase;
|
|
29
|
+
//# sourceMappingURL=get-taxpayers-details.use-case.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":";;;;;;;;;;;;AAOA,MAAa,0BAA0B;IACrC,YAA6B,UAAwC;QAAxC,eAAU,GAAV,UAAU,CAA8B;IAAG,CAAC;IAEzE;;;;OAIG;IACG,OAAO,CAAC,WAAqB;;YACjC,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF;AAXD,gEAWC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
__exportStar(require("./get-register-server-status.use-case"), exports);
|
|
18
|
+
__exportStar(require("./get-taxpayer-details.use-case"), exports);
|
|
19
|
+
__exportStar(require("./get-taxpayers-details.use-case"), exports);
|
|
20
|
+
__exportStar(require("./get-tax-id-by-document.use-case"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/use-cases/register/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wEAAsD;AACtD,kEAAgD;AAChD,mEAAiD;AACjD,oEAAkD"}
|
package/lib/arca.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import { GenericService } from "@application/services/generic.service";
|
|
9
|
+
export declare class Arca {
|
|
10
|
+
private readonly _electronicBillingService;
|
|
11
|
+
private readonly _registerInscriptionProofService;
|
|
12
|
+
private readonly _registerScopeFourService;
|
|
13
|
+
private readonly _registerScopeFiveService;
|
|
14
|
+
private readonly _registerScopeTenService;
|
|
15
|
+
private readonly _registerScopeThirteenService;
|
|
16
|
+
private readonly _genericService;
|
|
17
|
+
private readonly context;
|
|
18
|
+
constructor(context: Context);
|
|
19
|
+
get electronicBillingService(): ElectronicBillingService;
|
|
20
|
+
get registerInscriptionProofService(): RegisterInscriptionProofService;
|
|
21
|
+
get registerScopeFourService(): RegisterScopeFourService;
|
|
22
|
+
get registerScopeFiveService(): RegisterScopeFiveService;
|
|
23
|
+
get registerScopeTenService(): RegisterScopeTenService;
|
|
24
|
+
get registerScopeThirteenService(): RegisterScopeThirteenService;
|
|
25
|
+
get genericService(): GenericService;
|
|
26
|
+
}
|
package/lib/arca.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
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_scope_four_repository_1 = require("@infrastructure/outbound/adapters/register/register-scope-four.repository");
|
|
21
|
+
const register_scope_five_repository_1 = require("@infrastructure/outbound/adapters/register/register-scope-five.repository");
|
|
22
|
+
const register_scope_ten_repository_1 = require("@infrastructure/outbound/adapters/register/register-scope-ten.repository");
|
|
23
|
+
const register_scope_thirteen_repository_1 = require("@infrastructure/outbound/adapters/register/register-scope-thirteen.repository");
|
|
24
|
+
const register_inscription_proof_repository_1 = require("@infrastructure/outbound/adapters/register/register-inscription-proof.repository");
|
|
25
|
+
const generic_service_1 = require("@application/services/generic.service");
|
|
26
|
+
const generic_repository_1 = require("@infrastructure/outbound/adapters/generic/generic-repository");
|
|
27
|
+
class Arca {
|
|
28
|
+
constructor(context) {
|
|
29
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
30
|
+
// Normalize context
|
|
31
|
+
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") });
|
|
32
|
+
const ticketStorage = new file_system_ticket_storage_1.FileSystemTicketStorage({
|
|
33
|
+
ticketPath: this.context.ticketPath,
|
|
34
|
+
cuit: this.context.cuit,
|
|
35
|
+
production: (_b = this.context.production) !== null && _b !== void 0 ? _b : false,
|
|
36
|
+
});
|
|
37
|
+
const authRepository = new auth_repository_1.AuthRepository({
|
|
38
|
+
cert: this.context.cert,
|
|
39
|
+
key: this.context.key,
|
|
40
|
+
cuit: this.context.cuit,
|
|
41
|
+
production: (_c = this.context.production) !== null && _c !== void 0 ? _c : false,
|
|
42
|
+
handleTicket: (_d = this.context.handleTicket) !== null && _d !== void 0 ? _d : false,
|
|
43
|
+
ticketStorage: this.context.handleTicket ? undefined : ticketStorage,
|
|
44
|
+
credentials: this.context.credentials,
|
|
45
|
+
});
|
|
46
|
+
const logger = new winston_logger_1.WinstonLogger({
|
|
47
|
+
enableLogging: (_e = this.context.enableLogging) !== null && _e !== void 0 ? _e : false,
|
|
48
|
+
});
|
|
49
|
+
const electronicBillingRepository = new electronic_billing_repository_1.ElectronicBillingRepository({
|
|
50
|
+
authRepository,
|
|
51
|
+
logger,
|
|
52
|
+
cuit: this.context.cuit,
|
|
53
|
+
production: (_f = this.context.production) !== null && _f !== void 0 ? _f : false,
|
|
54
|
+
useSoap12: (_g = this.context.useSoap12) !== null && _g !== void 0 ? _g : true, // Default to SOAP 1.2
|
|
55
|
+
});
|
|
56
|
+
const registerScopeFourRepository = new register_scope_four_repository_1.RegisterScopeFourRepository({
|
|
57
|
+
authRepository,
|
|
58
|
+
logger,
|
|
59
|
+
cuit: this.context.cuit,
|
|
60
|
+
production: (_h = this.context.production) !== null && _h !== void 0 ? _h : false,
|
|
61
|
+
});
|
|
62
|
+
const registerScopeFiveRepository = new register_scope_five_repository_1.RegisterScopeFiveRepository({
|
|
63
|
+
authRepository,
|
|
64
|
+
logger,
|
|
65
|
+
cuit: this.context.cuit,
|
|
66
|
+
production: (_j = this.context.production) !== null && _j !== void 0 ? _j : false,
|
|
67
|
+
});
|
|
68
|
+
const registerScopeTenRepository = new register_scope_ten_repository_1.RegisterScopeTenRepository({
|
|
69
|
+
authRepository,
|
|
70
|
+
logger,
|
|
71
|
+
cuit: this.context.cuit,
|
|
72
|
+
production: (_k = this.context.production) !== null && _k !== void 0 ? _k : false,
|
|
73
|
+
});
|
|
74
|
+
const registerScopeThirteenRepository = new register_scope_thirteen_repository_1.RegisterScopeThirteenRepository({
|
|
75
|
+
authRepository,
|
|
76
|
+
logger,
|
|
77
|
+
cuit: this.context.cuit,
|
|
78
|
+
production: (_l = this.context.production) !== null && _l !== void 0 ? _l : false,
|
|
79
|
+
});
|
|
80
|
+
const registerInscriptionProofRepository = new register_inscription_proof_repository_1.RegisterInscriptionProofRepository({
|
|
81
|
+
authRepository,
|
|
82
|
+
logger,
|
|
83
|
+
cuit: this.context.cuit,
|
|
84
|
+
production: (_m = this.context.production) !== null && _m !== void 0 ? _m : false,
|
|
85
|
+
});
|
|
86
|
+
const genericRepository = new generic_repository_1.GenericRepository({
|
|
87
|
+
authRepository,
|
|
88
|
+
logger,
|
|
89
|
+
cuit: this.context.cuit,
|
|
90
|
+
production: (_o = this.context.production) !== null && _o !== void 0 ? _o : false,
|
|
91
|
+
useSoap12: (_p = this.context.useSoap12) !== null && _p !== void 0 ? _p : true,
|
|
92
|
+
});
|
|
93
|
+
this._electronicBillingService = new electronic_billing_service_1.ElectronicBillingService(electronicBillingRepository);
|
|
94
|
+
this._registerInscriptionProofService = new register_inscription_proof_service_1.RegisterInscriptionProofService(registerInscriptionProofRepository);
|
|
95
|
+
this._registerScopeFourService = new register_scope_four_service_1.RegisterScopeFourService(registerScopeFourRepository);
|
|
96
|
+
this._registerScopeFiveService = new register_scope_five_service_1.RegisterScopeFiveService(registerScopeFiveRepository);
|
|
97
|
+
this._registerScopeTenService = new register_scope_ten_service_1.RegisterScopeTenService(registerScopeTenRepository);
|
|
98
|
+
this._registerScopeThirteenService = new register_scope_thirteen_service_1.RegisterScopeThirteenService(registerScopeThirteenRepository);
|
|
99
|
+
this._genericService = new generic_service_1.GenericService(genericRepository);
|
|
100
|
+
}
|
|
101
|
+
get electronicBillingService() {
|
|
102
|
+
return this._electronicBillingService;
|
|
103
|
+
}
|
|
104
|
+
get registerInscriptionProofService() {
|
|
105
|
+
return this._registerInscriptionProofService;
|
|
106
|
+
}
|
|
107
|
+
get registerScopeFourService() {
|
|
108
|
+
return this._registerScopeFourService;
|
|
109
|
+
}
|
|
110
|
+
get registerScopeFiveService() {
|
|
111
|
+
return this._registerScopeFiveService;
|
|
112
|
+
}
|
|
113
|
+
get registerScopeTenService() {
|
|
114
|
+
return this._registerScopeTenService;
|
|
115
|
+
}
|
|
116
|
+
get registerScopeThirteenService() {
|
|
117
|
+
return this._registerScopeThirteenService;
|
|
118
|
+
}
|
|
119
|
+
get genericService() {
|
|
120
|
+
return this._genericService;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.Arca = Arca;
|
|
124
|
+
//# sourceMappingURL=arca.js.map
|
package/lib/arca.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arca.js","sourceRoot":"","sources":["../src/arca.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,+BAA+B;AAE/B,qHAA+G;AAC/G,4FAAwF;AACxF,4FAAwF;AAIxF,iGAA4F;AAC5F,mGAA6F;AAC7F,mGAA6F;AAC7F,iGAA2F;AAC3F,2GAAqG;AACrG,iHAA2G;AAC3G,sIAAiI;AACjI,8HAAwH;AACxH,8HAAwH;AACxH,4HAAsH;AACtH,sIAAgI;AAChI,4IAAsI;AACtI,2EAAuE;AAEvE,qGAAiG;AAEjG,MAAa,IAAI;IAUf,YAAY,OAAgB;;QAC1B,oBAAoB;QACpB,IAAI,CAAC,OAAO,mCACP,OAAO,KACV,UAAU,EACR,MAAA,OAAO,CAAC,UAAU,mCAClB,IAAA,cAAO,EAAC,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,GACrE,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,oDAAuB,CAAC;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAW;YACpC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QACH,MAAM,cAAc,GAAkC,IAAI,gCAAc,CAAC;YACvE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG;YACrB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;YAC5C,YAAY,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,YAAY,mCAAI,KAAK;YAChD,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa;YACpE,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;SACtC,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,8BAAa,CAAC;YAC/B,aAAa,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,aAAa,mCAAI,KAAK;SACnD,CAAC,CAAC;QAEH,MAAM,2BAA2B,GAC/B,IAAI,2DAA2B,CAAC;YAC9B,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;YAC5C,SAAS,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,SAAS,mCAAI,IAAI,EAAE,sBAAsB;SAClE,CAAC,CAAC;QAEL,MAAM,2BAA2B,GAAG,IAAI,4DAA2B,CAAC;YAClE,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QAEH,MAAM,2BAA2B,GAAG,IAAI,4DAA2B,CAAC;YAClE,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QAEH,MAAM,0BAA0B,GAAG,IAAI,0DAA0B,CAAC;YAChE,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QAEH,MAAM,+BAA+B,GAAG,IAAI,oEAA+B,CACzE;YACE,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CACF,CAAC;QAEF,MAAM,kCAAkC,GACtC,IAAI,0EAAkC,CAAC;YACrC,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QAEL,MAAM,iBAAiB,GAA2B,IAAI,sCAAiB,CAAC;YACtE,cAAc;YACd,MAAM;YACN,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;YAC5C,SAAS,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,SAAS,mCAAI,IAAI;SAC1C,CAAC,CAAC;QAEH,IAAI,CAAC,yBAAyB,GAAG,IAAI,qDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,gCAAgC,GAAG,IAAI,oEAA+B,CACzE,kCAAkC,CACnC,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,sDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,sDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,wBAAwB,GAAG,IAAI,oDAAuB,CACzD,0BAA0B,CAC3B,CAAC;QACF,IAAI,CAAC,6BAA6B,GAAG,IAAI,8DAA4B,CACnE,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAc,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,+BAA+B;QACjC,OAAO,IAAI,CAAC,gCAAgC,CAAC;IAC/C,CAAC;IAED,IAAI,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;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;CACF;AA5ID,oBA4IC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
}
|