@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
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Environment = void 0;
|
|
4
|
+
const dotenv_1 = require("dotenv");
|
|
5
|
+
class Environment {
|
|
6
|
+
constructor() {
|
|
7
|
+
(0, dotenv_1.config)();
|
|
8
|
+
this.nodeEnv = (process.env.NODE_ENV || "local");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.Environment = Environment;
|
|
12
|
+
const Env = new Environment();
|
|
13
|
+
exports.default = Env;
|
|
14
|
+
//# sourceMappingURL=env.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/application/config/env.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEhC,MAAa,WAAW;IAGtB;QACE,IAAA,eAAM,GAAE,CAAC;QACT,IAAI,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,OAAO,CAAW,CAAC;IAC7D,CAAC;CACF;AAPD,kCAOC;AAED,MAAM,GAAG,GAAG,IAAI,WAAW,EAAE,CAAC;AAE9B,kBAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Environment = exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Application Config
|
|
9
|
+
* Exports application configuration utilities
|
|
10
|
+
*/
|
|
11
|
+
var env_1 = require("./env");
|
|
12
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(env_1).default; } });
|
|
13
|
+
var env_2 = require("./env");
|
|
14
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return env_2.Environment; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/config/index.ts"],"names":[],"mappings":";;;;;;AAAA;;;GAGG;AACH,6BAAgC;AAAvB,+GAAA,OAAO,OAAA;AAChB,6BAAoC;AAA3B,kGAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electronic Billing DTOs
|
|
3
|
+
* Data Transfer Objects for electronic billing operations
|
|
4
|
+
* These DTOs use domain types and are independent of infrastructure concerns
|
|
5
|
+
*/
|
|
6
|
+
import { SalesPoint, ServerStatus, LastVoucher, VoucherInfo, VoucherType, ConceptType, DocumentType, AliquotType, CurrencyType, OptionalType, TaxType, IvaReceptorType, CaeaResponse, CaeaUsageResponse, CaeaNoMovement, PaisType, ActividadType, CotizacionType, ErrorInfo } from "@domain/types/electronic-billing.types";
|
|
7
|
+
/**
|
|
8
|
+
* Server Status DTO (uses domain type)
|
|
9
|
+
*/
|
|
10
|
+
export type ServerStatusDto = ServerStatus;
|
|
11
|
+
/**
|
|
12
|
+
* Sales Points Result DTO
|
|
13
|
+
*/
|
|
14
|
+
export interface SalesPointsResultDto {
|
|
15
|
+
resultGet?: {
|
|
16
|
+
ptoVenta?: SalesPoint[];
|
|
17
|
+
};
|
|
18
|
+
errors?: {
|
|
19
|
+
err?: ErrorInfo[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Last Voucher Result DTO
|
|
24
|
+
*/
|
|
25
|
+
export interface LastVoucherResultDto extends LastVoucher {
|
|
26
|
+
errors?: {
|
|
27
|
+
err?: ErrorInfo[];
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Voucher Info Result DTO
|
|
32
|
+
*/
|
|
33
|
+
export interface VoucherInfoResultDto extends VoucherInfo {
|
|
34
|
+
errors?: {
|
|
35
|
+
err?: ErrorInfo[];
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Voucher Types Result DTO
|
|
40
|
+
*/
|
|
41
|
+
export interface VoucherTypesResultDto {
|
|
42
|
+
resultGet?: {
|
|
43
|
+
cbteTipo?: VoucherType[];
|
|
44
|
+
};
|
|
45
|
+
errors?: {
|
|
46
|
+
err?: ErrorInfo[];
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Concept Types Result DTO
|
|
51
|
+
*/
|
|
52
|
+
export interface ConceptTypesResultDto {
|
|
53
|
+
resultGet?: {
|
|
54
|
+
conceptoTipo?: ConceptType[];
|
|
55
|
+
};
|
|
56
|
+
errors?: {
|
|
57
|
+
err?: ErrorInfo[];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Document Types Result DTO
|
|
62
|
+
*/
|
|
63
|
+
export interface DocumentTypesResultDto {
|
|
64
|
+
resultGet?: {
|
|
65
|
+
docTipo?: DocumentType[];
|
|
66
|
+
};
|
|
67
|
+
errors?: {
|
|
68
|
+
err?: ErrorInfo[];
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Aliquot Types Result DTO
|
|
73
|
+
*/
|
|
74
|
+
export interface AliquotTypesResultDto {
|
|
75
|
+
resultGet?: {
|
|
76
|
+
ivaTipo?: AliquotType[];
|
|
77
|
+
};
|
|
78
|
+
errors?: {
|
|
79
|
+
err?: ErrorInfo[];
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Currency Types Result DTO
|
|
84
|
+
*/
|
|
85
|
+
export interface CurrencyTypesResultDto {
|
|
86
|
+
resultGet?: {
|
|
87
|
+
moneda?: CurrencyType[];
|
|
88
|
+
};
|
|
89
|
+
errors?: {
|
|
90
|
+
err?: ErrorInfo[];
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Optional Types Result DTO
|
|
95
|
+
*/
|
|
96
|
+
export interface OptionalTypesResultDto {
|
|
97
|
+
resultGet?: {
|
|
98
|
+
opcionalTipo?: OptionalType[];
|
|
99
|
+
};
|
|
100
|
+
errors?: {
|
|
101
|
+
err?: ErrorInfo[];
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Tax Types Result DTO
|
|
106
|
+
*/
|
|
107
|
+
export interface TaxTypesResultDto {
|
|
108
|
+
resultGet?: {
|
|
109
|
+
tributoTipo?: TaxType[];
|
|
110
|
+
};
|
|
111
|
+
errors?: {
|
|
112
|
+
err?: ErrorInfo[];
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* IVA Receptor Types Result DTO
|
|
117
|
+
*/
|
|
118
|
+
export interface IvaReceptorTypesResultDto {
|
|
119
|
+
resultGet?: {
|
|
120
|
+
condicionIvaReceptor?: IvaReceptorType[];
|
|
121
|
+
};
|
|
122
|
+
errors?: {
|
|
123
|
+
err?: ErrorInfo[];
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* CAEA Result DTO
|
|
128
|
+
*/
|
|
129
|
+
export interface CaeaResultDto {
|
|
130
|
+
resultGet?: CaeaResponse;
|
|
131
|
+
errors?: {
|
|
132
|
+
err?: ErrorInfo[];
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* CAEA Usage Result DTO
|
|
137
|
+
*/
|
|
138
|
+
export interface CaeaUsageResultDto {
|
|
139
|
+
resultGet?: CaeaUsageResponse;
|
|
140
|
+
errors?: {
|
|
141
|
+
err?: ErrorInfo[];
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* CAEA No Movement Result DTO
|
|
146
|
+
*/
|
|
147
|
+
export interface CaeaNoMovementResultDto {
|
|
148
|
+
resultGet?: CaeaNoMovement[];
|
|
149
|
+
errors?: {
|
|
150
|
+
err?: ErrorInfo[];
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Countries Result DTO
|
|
155
|
+
*/
|
|
156
|
+
export interface CountriesResultDto {
|
|
157
|
+
resultGet?: {
|
|
158
|
+
paisTipo?: PaisType[];
|
|
159
|
+
};
|
|
160
|
+
errors?: {
|
|
161
|
+
err?: ErrorInfo[];
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Activities Result DTO
|
|
166
|
+
*/
|
|
167
|
+
export interface ActivitiesResultDto {
|
|
168
|
+
resultGet?: {
|
|
169
|
+
actividadesTipo?: ActividadType[];
|
|
170
|
+
};
|
|
171
|
+
errors?: {
|
|
172
|
+
err?: ErrorInfo[];
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Quotation Result DTO
|
|
177
|
+
*/
|
|
178
|
+
export interface QuotationResultDto {
|
|
179
|
+
resultGet?: CotizacionType;
|
|
180
|
+
errors?: {
|
|
181
|
+
err?: ErrorInfo[];
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Max Records Result DTO
|
|
186
|
+
*/
|
|
187
|
+
export interface MaxRecordsResultDto {
|
|
188
|
+
resultGet?: number;
|
|
189
|
+
errors?: {
|
|
190
|
+
err?: ErrorInfo[];
|
|
191
|
+
};
|
|
192
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"electronic-billing.dto.js","sourceRoot":"","sources":["../../../src/application/dto/electronic-billing.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Data Transfer Objects (DTOs)
|
|
19
|
+
* Exports all DTOs for use case inputs and outputs
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./electronic-billing.dto"), exports);
|
|
22
|
+
__exportStar(require("./register.dto"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2DAAyC;AACzC,iDAA+B"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register DTOs
|
|
3
|
+
* Data Transfer Objects for register/padron operations
|
|
4
|
+
* These DTOs are independent of infrastructure concerns
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Server Status DTO (for Register services)
|
|
8
|
+
*/
|
|
9
|
+
export interface RegisterServerStatusDto {
|
|
10
|
+
appserver: string;
|
|
11
|
+
dbserver: string;
|
|
12
|
+
authserver: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Taxpayer Details DTO
|
|
16
|
+
*/
|
|
17
|
+
export interface TaxpayerDetailsDto {
|
|
18
|
+
idPersona?: number;
|
|
19
|
+
tipoPersona?: string;
|
|
20
|
+
estadoClave?: string;
|
|
21
|
+
datosGenerales?: {
|
|
22
|
+
piso?: string;
|
|
23
|
+
departamento?: string;
|
|
24
|
+
numeroCalle?: number;
|
|
25
|
+
codPostal?: string;
|
|
26
|
+
tipoDomicilio?: string;
|
|
27
|
+
domicilio?: string;
|
|
28
|
+
dataFiscal?: any;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
datosMonotributo?: any;
|
|
32
|
+
datosRegimenGeneral?: any;
|
|
33
|
+
errorConstancia?: {
|
|
34
|
+
error?: string;
|
|
35
|
+
codigo?: number;
|
|
36
|
+
};
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Taxpayers Details DTO (for multiple taxpayers)
|
|
41
|
+
*/
|
|
42
|
+
export interface TaxpayersDetailsDto {
|
|
43
|
+
persona?: TaxpayerDetailsDto[];
|
|
44
|
+
cantidadRegistros?: number;
|
|
45
|
+
errorConstancia?: {
|
|
46
|
+
error?: string;
|
|
47
|
+
codigo?: number;
|
|
48
|
+
};
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Tax ID by Document Result DTO
|
|
53
|
+
*/
|
|
54
|
+
export interface TaxIDByDocumentResultDto {
|
|
55
|
+
idPersona?: number[];
|
|
56
|
+
errorConstancia?: {
|
|
57
|
+
error?: string;
|
|
58
|
+
codigo?: number;
|
|
59
|
+
};
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Register Service Result DTOs
|
|
64
|
+
* These DTOs represent the return types for register services
|
|
65
|
+
* They maintain compatibility with legacy API while being independent of SOAP types
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* Register Server Status Result DTO
|
|
69
|
+
*/
|
|
70
|
+
export interface RegisterServerStatusResultDto {
|
|
71
|
+
appserver: string;
|
|
72
|
+
dbserver: string;
|
|
73
|
+
authserver: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Register Taxpayer Details Result DTO
|
|
77
|
+
* Wraps TaxpayerDetailsDto with metadata for compatibility
|
|
78
|
+
*/
|
|
79
|
+
export interface RegisterTaxpayerDetailsResultDto {
|
|
80
|
+
metadata?: {
|
|
81
|
+
fechaHora?: string;
|
|
82
|
+
servidor?: string;
|
|
83
|
+
};
|
|
84
|
+
persona?: TaxpayerDetailsDto;
|
|
85
|
+
datosGenerales?: TaxpayerDetailsDto["datosGenerales"];
|
|
86
|
+
datosMonotributo?: TaxpayerDetailsDto["datosMonotributo"];
|
|
87
|
+
datosRegimenGeneral?: TaxpayerDetailsDto["datosRegimenGeneral"];
|
|
88
|
+
errorConstancia?: TaxpayerDetailsDto["errorConstancia"];
|
|
89
|
+
errorMonotributo?: any;
|
|
90
|
+
errorRegimenGeneral?: any;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Register Taxpayers List Result DTO
|
|
94
|
+
*/
|
|
95
|
+
export interface RegisterTaxpayersListResultDto {
|
|
96
|
+
metadata?: {
|
|
97
|
+
fechaHora?: string;
|
|
98
|
+
servidor?: string;
|
|
99
|
+
};
|
|
100
|
+
persona?: TaxpayerDetailsDto[];
|
|
101
|
+
cantidadRegistros?: number;
|
|
102
|
+
errorConstancia?: {
|
|
103
|
+
error?: string;
|
|
104
|
+
codigo?: number;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Register Tax ID by Document Result DTO
|
|
109
|
+
*/
|
|
110
|
+
export interface RegisterTaxIDByDocumentResultDto {
|
|
111
|
+
idPersona?: number;
|
|
112
|
+
metadata?: {
|
|
113
|
+
fechaHora?: string;
|
|
114
|
+
servidor?: string;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.dto.js","sourceRoot":"","sources":["../../../src/application/dto/register.dto.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* Application Layer
|
|
19
|
+
* Exports all application layer components
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./types"), exports);
|
|
22
|
+
__exportStar(require("./config"), exports);
|
|
23
|
+
__exportStar(require("./ports"), exports);
|
|
24
|
+
__exportStar(require("./dto"), exports);
|
|
25
|
+
__exportStar(require("./services"), exports);
|
|
26
|
+
__exportStar(require("./use-cases"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,wCAAsB;AACtB,6CAA2B;AAC3B,8CAA4B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication Repository Port
|
|
3
|
+
* Port defined by the application layer for authentication operations
|
|
4
|
+
* Infrastructure layer must implement this port
|
|
5
|
+
*/
|
|
6
|
+
import { AccessTicket } from "@domain/entities/access-ticket.entity";
|
|
7
|
+
import { WSAuthParam } from "@application/types";
|
|
8
|
+
export interface IAuthenticationRepositoryPort {
|
|
9
|
+
/**
|
|
10
|
+
* Login and get access ticket for a service
|
|
11
|
+
* Handles automatic ticket management (checking existing, requesting new if needed)
|
|
12
|
+
* @param serviceName Service name to authenticate for
|
|
13
|
+
* @returns AccessTicket
|
|
14
|
+
*/
|
|
15
|
+
login(serviceName: string): Promise<AccessTicket>;
|
|
16
|
+
/**
|
|
17
|
+
* Request a new login ticket for a service (forces new login)
|
|
18
|
+
* @param serviceName Service name to authenticate for
|
|
19
|
+
* @returns AccessTicket
|
|
20
|
+
*/
|
|
21
|
+
requestLogin(serviceName: string): Promise<AccessTicket>;
|
|
22
|
+
/**
|
|
23
|
+
* Get authentication parameters formatted for SOAP requests
|
|
24
|
+
* @param ticket Access ticket
|
|
25
|
+
* @param cuit CUIT number
|
|
26
|
+
* @returns WSAuthParam formatted for SOAP
|
|
27
|
+
*/
|
|
28
|
+
getAuthParams(ticket: AccessTicket, cuit: number): WSAuthParam;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication-repository.port.js","sourceRoot":"","sources":["../../../../src/application/ports/authentication/authentication-repository.port.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* Authentication Ports
|
|
19
|
+
* Exports all authentication ports
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./authentication-repository.port"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/ports/authentication/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mEAAiD"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electronic Billing Repository Port
|
|
3
|
+
* Port defined by the application layer
|
|
4
|
+
* Infrastructure layer must implement this port
|
|
5
|
+
* Uses DTOs to maintain independence from infrastructure
|
|
6
|
+
*/
|
|
7
|
+
import { Voucher } from "@domain/entities/voucher.entity";
|
|
8
|
+
import { ICreateVoucherResult } from "@application/types/result.types";
|
|
9
|
+
import { ServerStatusDto, SalesPointsResultDto, LastVoucherResultDto, VoucherInfoResultDto, VoucherTypesResultDto, ConceptTypesResultDto, DocumentTypesResultDto, AliquotTypesResultDto, CurrencyTypesResultDto, OptionalTypesResultDto, TaxTypesResultDto, IvaReceptorTypesResultDto, CaeaResultDto, CaeaUsageResultDto, CaeaNoMovementResultDto, CountriesResultDto, ActivitiesResultDto, QuotationResultDto, MaxRecordsResultDto } from "@application/dto/electronic-billing.dto";
|
|
10
|
+
export interface IElectronicBillingRepositoryPort {
|
|
11
|
+
/**
|
|
12
|
+
* Get server status
|
|
13
|
+
* @returns Server status information
|
|
14
|
+
*/
|
|
15
|
+
getServerStatus(): Promise<ServerStatusDto>;
|
|
16
|
+
/**
|
|
17
|
+
* Get available sales points
|
|
18
|
+
* @returns Sales points information
|
|
19
|
+
*/
|
|
20
|
+
getSalesPoints(): Promise<SalesPointsResultDto>;
|
|
21
|
+
/**
|
|
22
|
+
* Get last authorized voucher number
|
|
23
|
+
* @param salesPoint Sales point number
|
|
24
|
+
* @param voucherType Voucher type
|
|
25
|
+
* @returns Last voucher information
|
|
26
|
+
*/
|
|
27
|
+
getLastVoucher(salesPoint: number, voucherType: number): Promise<LastVoucherResultDto>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a voucher
|
|
30
|
+
* @param voucher Voucher entity
|
|
31
|
+
* @returns Created voucher result with CAE
|
|
32
|
+
*/
|
|
33
|
+
createVoucher(voucher: Voucher): Promise<ICreateVoucherResult>;
|
|
34
|
+
/**
|
|
35
|
+
* Get voucher information
|
|
36
|
+
* @param number Voucher number
|
|
37
|
+
* @param salesPoint Sales point number
|
|
38
|
+
* @param type Voucher type
|
|
39
|
+
* @returns Voucher information or null if not found
|
|
40
|
+
*/
|
|
41
|
+
getVoucherInfo(number: number, salesPoint: number, type: number): Promise<VoucherInfoResultDto | null>;
|
|
42
|
+
/**
|
|
43
|
+
* Get available voucher types
|
|
44
|
+
* @returns Voucher types information
|
|
45
|
+
*/
|
|
46
|
+
getVoucherTypes(): Promise<VoucherTypesResultDto>;
|
|
47
|
+
/**
|
|
48
|
+
* Get available concept types
|
|
49
|
+
* @returns Concept types information
|
|
50
|
+
*/
|
|
51
|
+
getConceptTypes(): Promise<ConceptTypesResultDto>;
|
|
52
|
+
/**
|
|
53
|
+
* Get available document types
|
|
54
|
+
* @returns Document types information
|
|
55
|
+
*/
|
|
56
|
+
getDocumentTypes(): Promise<DocumentTypesResultDto>;
|
|
57
|
+
/**
|
|
58
|
+
* Get available aliquot types
|
|
59
|
+
* @returns Aliquot types information
|
|
60
|
+
*/
|
|
61
|
+
getAliquotTypes(): Promise<AliquotTypesResultDto>;
|
|
62
|
+
/**
|
|
63
|
+
* Get available currency types
|
|
64
|
+
* @returns Currency types information
|
|
65
|
+
*/
|
|
66
|
+
getCurrencyTypes(): Promise<CurrencyTypesResultDto>;
|
|
67
|
+
/**
|
|
68
|
+
* Get available optional types
|
|
69
|
+
* @returns Optional types information
|
|
70
|
+
*/
|
|
71
|
+
getOptionalTypes(): Promise<OptionalTypesResultDto>;
|
|
72
|
+
/**
|
|
73
|
+
* Get available tax types
|
|
74
|
+
* @returns Tax types information
|
|
75
|
+
*/
|
|
76
|
+
getTaxTypes(): Promise<TaxTypesResultDto>;
|
|
77
|
+
/**
|
|
78
|
+
* Get available IVA receptor types
|
|
79
|
+
* @param claseCmp Voucher class (optional)
|
|
80
|
+
* @returns IVA receptor types information
|
|
81
|
+
*/
|
|
82
|
+
getIvaReceptorTypes(claseCmp?: string): Promise<IvaReceptorTypesResultDto>;
|
|
83
|
+
/**
|
|
84
|
+
* Request CAEA (Anticipated Electronic Authorization Code)
|
|
85
|
+
* @param period Period (YYYYMM)
|
|
86
|
+
* @param order Fortnight (1 or 2)
|
|
87
|
+
* @returns CAEA information
|
|
88
|
+
*/
|
|
89
|
+
getCaea(period: number, order: number): Promise<CaeaResultDto>;
|
|
90
|
+
/**
|
|
91
|
+
* Consult CAEA
|
|
92
|
+
* @param period Period (YYYYMM)
|
|
93
|
+
* @param order Fortnight (1 or 2)
|
|
94
|
+
* @returns CAEA information
|
|
95
|
+
*/
|
|
96
|
+
consultCaea(period: number, order: number): Promise<CaeaResultDto>;
|
|
97
|
+
/**
|
|
98
|
+
* Inform CAEA No Movement
|
|
99
|
+
* @param caea CAEA number
|
|
100
|
+
* @param salesPoint Sales point number
|
|
101
|
+
* @returns CAEA No Movement information
|
|
102
|
+
*/
|
|
103
|
+
informCaeaNoMovement(caea: string, salesPoint: number): Promise<CaeaNoMovementResultDto>;
|
|
104
|
+
/**
|
|
105
|
+
* Consult CAEA No Movement
|
|
106
|
+
* @param caea CAEA number
|
|
107
|
+
* @param salesPoint Sales point number
|
|
108
|
+
* @returns CAEA No Movement information
|
|
109
|
+
*/
|
|
110
|
+
consultCaeaNoMovement(caea: string, salesPoint: number): Promise<CaeaNoMovementResultDto>;
|
|
111
|
+
/**
|
|
112
|
+
* Inform CAEA Usage (Regimen Informativo)
|
|
113
|
+
* @param caea CAEA number
|
|
114
|
+
* @param salesPoint Sales point number
|
|
115
|
+
* @returns CAEA Usage information
|
|
116
|
+
*/
|
|
117
|
+
informCaeaUsage(voucher: Voucher, caea: string): Promise<CaeaUsageResultDto>;
|
|
118
|
+
/**
|
|
119
|
+
* Get Quotation
|
|
120
|
+
* @param currencyId Currency ID
|
|
121
|
+
* @returns Quotation information
|
|
122
|
+
*/
|
|
123
|
+
getQuotation(currencyId: string): Promise<QuotationResultDto>;
|
|
124
|
+
/**
|
|
125
|
+
* Get Countries
|
|
126
|
+
* @returns Countries information
|
|
127
|
+
*/
|
|
128
|
+
getCountries(): Promise<CountriesResultDto>;
|
|
129
|
+
/**
|
|
130
|
+
* Get Activities
|
|
131
|
+
* @returns Activities information
|
|
132
|
+
*/
|
|
133
|
+
getActivities(): Promise<ActivitiesResultDto>;
|
|
134
|
+
/**
|
|
135
|
+
* Get Max Records per Request
|
|
136
|
+
* @returns Max records number
|
|
137
|
+
*/
|
|
138
|
+
getMaxRecordsPerRequest(): Promise<MaxRecordsResultDto>;
|
|
139
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"electronic-billing-repository.port.js","sourceRoot":"","sources":["../../../../src/application/ports/electronic-billing/electronic-billing-repository.port.ts"],"names":[],"mappings":""}
|