@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,200 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SOAP to Domain Types Mapper
|
|
3
|
+
* Utility functions to convert SOAP types (PascalCase) to Domain types (camelCase)
|
|
4
|
+
* Maps from infrastructure (SOAP) to domain (business concepts)
|
|
5
|
+
* This maintains architectural boundaries: Infrastructure -> Domain -> Application
|
|
6
|
+
*/
|
|
7
|
+
import { SalesPoint, ServerStatus, LastVoucher, VoucherInfo, AliquotType, ParameterType, IvaReceptorType, CaeaResponse, CaeaUsageResponse, CaeaNoMovement, PaisType, ActividadType, CotizacionType, ErrorInfo } from "@domain/types/electronic-billing.types";
|
|
8
|
+
/**
|
|
9
|
+
* Map SOAP errors to Domain ErrorInfo
|
|
10
|
+
*/
|
|
11
|
+
export declare function mapSoapErrors(errors?: {
|
|
12
|
+
Err?: Array<{
|
|
13
|
+
Code: number;
|
|
14
|
+
Msg: string;
|
|
15
|
+
}>;
|
|
16
|
+
}): ErrorInfo[] | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Map SOAP server status to Domain ServerStatus
|
|
19
|
+
*/
|
|
20
|
+
export declare function mapServerStatus(soapResult: {
|
|
21
|
+
AppServer: string;
|
|
22
|
+
DbServer: string;
|
|
23
|
+
AuthServer: string;
|
|
24
|
+
}): ServerStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Map SOAP sales points to Domain SalesPoint array
|
|
27
|
+
*/
|
|
28
|
+
export declare function mapSalesPoints(soapResult: {
|
|
29
|
+
ResultGet?: {
|
|
30
|
+
PtoVenta?: Array<{
|
|
31
|
+
Nro: number;
|
|
32
|
+
EmisionTipo: string;
|
|
33
|
+
Bloqueado: string;
|
|
34
|
+
FchBaja?: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
}): SalesPoint[];
|
|
38
|
+
/**
|
|
39
|
+
* Map SOAP last voucher to Domain LastVoucher
|
|
40
|
+
*/
|
|
41
|
+
export declare function mapLastVoucher(soapResult: {
|
|
42
|
+
CbteNro: number;
|
|
43
|
+
CbteTipo: number;
|
|
44
|
+
PtoVta: number;
|
|
45
|
+
}): LastVoucher;
|
|
46
|
+
/**
|
|
47
|
+
* Map SOAP voucher info to Domain VoucherInfo
|
|
48
|
+
* Handles special case: Observaciones?.Obs?.[0]?.Msg -> observaciones (flattened)
|
|
49
|
+
*/
|
|
50
|
+
export declare function mapVoucherInfo(soapResult: {
|
|
51
|
+
ResultGet?: {
|
|
52
|
+
CodAutorizacion?: string;
|
|
53
|
+
EmisionTipo?: string;
|
|
54
|
+
FchVto?: string;
|
|
55
|
+
FchProceso?: string;
|
|
56
|
+
Resultado?: string;
|
|
57
|
+
Observaciones?: {
|
|
58
|
+
Obs?: Array<{
|
|
59
|
+
Msg: string;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
Concepto?: number;
|
|
63
|
+
DocTipo?: number;
|
|
64
|
+
DocNro?: number;
|
|
65
|
+
CbteDesde?: number;
|
|
66
|
+
CbteHasta?: number;
|
|
67
|
+
CbteFch?: string;
|
|
68
|
+
ImpTotal?: number;
|
|
69
|
+
ImpTotConc?: number;
|
|
70
|
+
ImpNeto?: number;
|
|
71
|
+
ImpOpEx?: number;
|
|
72
|
+
ImpIVA?: number;
|
|
73
|
+
ImpTrib?: number;
|
|
74
|
+
MonId?: string;
|
|
75
|
+
MonCotiz?: number;
|
|
76
|
+
};
|
|
77
|
+
}): VoucherInfo | null;
|
|
78
|
+
/**
|
|
79
|
+
* Map SOAP parameter types to Domain ParameterType array (generic for all parameter types)
|
|
80
|
+
*/
|
|
81
|
+
export declare function mapParameterTypes<T extends ParameterType>(soapResult: {
|
|
82
|
+
ResultGet?: {
|
|
83
|
+
[key: string]: Array<{
|
|
84
|
+
Id: number | string;
|
|
85
|
+
Desc: string;
|
|
86
|
+
FchDesde: string;
|
|
87
|
+
FchHasta: string;
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
}, resultKey: string): T[];
|
|
91
|
+
/**
|
|
92
|
+
* Map SOAP aliquot types to Domain AliquotType array
|
|
93
|
+
* Handles special case: Id is string, needs parseInt
|
|
94
|
+
*/
|
|
95
|
+
export declare function mapAliquotTypes(soapResult: {
|
|
96
|
+
ResultGet?: {
|
|
97
|
+
IvaTipo?: Array<{
|
|
98
|
+
Id: string;
|
|
99
|
+
Desc: string;
|
|
100
|
+
FchDesde: string;
|
|
101
|
+
FchHasta: string;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
}): AliquotType[];
|
|
105
|
+
/**
|
|
106
|
+
* Map SOAP IVA receptor types to Domain IvaReceptorType array
|
|
107
|
+
*/
|
|
108
|
+
export declare function mapIvaReceptorTypes(soapResult: {
|
|
109
|
+
ResultGet?: {
|
|
110
|
+
CondicionIvaReceptor?: Array<{
|
|
111
|
+
Id: number;
|
|
112
|
+
Desc: string;
|
|
113
|
+
Cmp_Clase: string;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
}): IvaReceptorType[];
|
|
117
|
+
/**
|
|
118
|
+
* Map SOAP CAEA to Domain CaeaResponse
|
|
119
|
+
*/
|
|
120
|
+
export declare function mapCaea(soapResult: {
|
|
121
|
+
CAEA: string;
|
|
122
|
+
Periodo: number;
|
|
123
|
+
Orden: number;
|
|
124
|
+
FchVigDesde: string;
|
|
125
|
+
FchVigHasta: string;
|
|
126
|
+
FchTopeInf: string;
|
|
127
|
+
FchProceso: string;
|
|
128
|
+
Observaciones?: {
|
|
129
|
+
Obs?: Array<{
|
|
130
|
+
Msg: string;
|
|
131
|
+
}>;
|
|
132
|
+
};
|
|
133
|
+
}): CaeaResponse;
|
|
134
|
+
/**
|
|
135
|
+
* Map SOAP CAEA Usage to Domain CaeaUsageResponse
|
|
136
|
+
*/
|
|
137
|
+
export declare function mapCaeaUsage(soapResult: {
|
|
138
|
+
CAEA: string;
|
|
139
|
+
Concepto: number;
|
|
140
|
+
DocTipo: number;
|
|
141
|
+
DocNro: number;
|
|
142
|
+
CbteDesde: number;
|
|
143
|
+
CbteHasta: number;
|
|
144
|
+
CbteFch: string;
|
|
145
|
+
Resultado: string;
|
|
146
|
+
Observaciones?: {
|
|
147
|
+
Obs?: Array<{
|
|
148
|
+
Msg: string;
|
|
149
|
+
}>;
|
|
150
|
+
};
|
|
151
|
+
}): CaeaUsageResponse;
|
|
152
|
+
/**
|
|
153
|
+
* Map SOAP CAEA No Movement to Domain CaeaNoMovement array
|
|
154
|
+
*/
|
|
155
|
+
export declare function mapCaeaNoMovement(soapResult: {
|
|
156
|
+
ResultGet?: Array<{
|
|
157
|
+
CAEA: string;
|
|
158
|
+
FchProceso: string;
|
|
159
|
+
PtoVta: number;
|
|
160
|
+
}>;
|
|
161
|
+
}): CaeaNoMovement[];
|
|
162
|
+
/**
|
|
163
|
+
* Map SOAP Countries to Domain PaisType array
|
|
164
|
+
*/
|
|
165
|
+
export declare function mapCountries(soapResult: {
|
|
166
|
+
ResultGet?: {
|
|
167
|
+
PaisTipo?: Array<{
|
|
168
|
+
Id: number;
|
|
169
|
+
Desc: string;
|
|
170
|
+
}>;
|
|
171
|
+
};
|
|
172
|
+
}): PaisType[];
|
|
173
|
+
/**
|
|
174
|
+
* Map SOAP Activities to Domain ActividadType array
|
|
175
|
+
*/
|
|
176
|
+
export declare function mapActivities(soapResult: {
|
|
177
|
+
ResultGet?: {
|
|
178
|
+
ActividadesTipo?: Array<{
|
|
179
|
+
Id: number;
|
|
180
|
+
Orden: number;
|
|
181
|
+
Desc: string;
|
|
182
|
+
}>;
|
|
183
|
+
};
|
|
184
|
+
}): ActividadType[];
|
|
185
|
+
/**
|
|
186
|
+
* Map SOAP Quotation to Domain CotizacionType
|
|
187
|
+
*/
|
|
188
|
+
export declare function mapQuotation(soapResult: {
|
|
189
|
+
ResultGet?: {
|
|
190
|
+
MonId: string;
|
|
191
|
+
MonCotiz: number;
|
|
192
|
+
FchCotiz: string;
|
|
193
|
+
};
|
|
194
|
+
}): CotizacionType | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Map SOAP Max Records to number
|
|
197
|
+
*/
|
|
198
|
+
export declare function mapMaxRecords(soapResult: {
|
|
199
|
+
RegXReq: number;
|
|
200
|
+
}): number;
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapSoapErrors = mapSoapErrors;
|
|
4
|
+
exports.mapServerStatus = mapServerStatus;
|
|
5
|
+
exports.mapSalesPoints = mapSalesPoints;
|
|
6
|
+
exports.mapLastVoucher = mapLastVoucher;
|
|
7
|
+
exports.mapVoucherInfo = mapVoucherInfo;
|
|
8
|
+
exports.mapParameterTypes = mapParameterTypes;
|
|
9
|
+
exports.mapAliquotTypes = mapAliquotTypes;
|
|
10
|
+
exports.mapIvaReceptorTypes = mapIvaReceptorTypes;
|
|
11
|
+
exports.mapCaea = mapCaea;
|
|
12
|
+
exports.mapCaeaUsage = mapCaeaUsage;
|
|
13
|
+
exports.mapCaeaNoMovement = mapCaeaNoMovement;
|
|
14
|
+
exports.mapCountries = mapCountries;
|
|
15
|
+
exports.mapActivities = mapActivities;
|
|
16
|
+
exports.mapQuotation = mapQuotation;
|
|
17
|
+
exports.mapMaxRecords = mapMaxRecords;
|
|
18
|
+
/**
|
|
19
|
+
* Map SOAP errors to Domain ErrorInfo
|
|
20
|
+
*/
|
|
21
|
+
function mapSoapErrors(errors) {
|
|
22
|
+
if (!(errors === null || errors === void 0 ? void 0 : errors.Err))
|
|
23
|
+
return undefined;
|
|
24
|
+
return errors.Err.map((e) => ({
|
|
25
|
+
code: e.Code,
|
|
26
|
+
msg: e.Msg,
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Map SOAP server status to Domain ServerStatus
|
|
31
|
+
*/
|
|
32
|
+
function mapServerStatus(soapResult) {
|
|
33
|
+
return {
|
|
34
|
+
appServer: soapResult.AppServer,
|
|
35
|
+
dbServer: soapResult.DbServer,
|
|
36
|
+
authServer: soapResult.AuthServer,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Map SOAP sales points to Domain SalesPoint array
|
|
41
|
+
*/
|
|
42
|
+
function mapSalesPoints(soapResult) {
|
|
43
|
+
var _a, _b;
|
|
44
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.PtoVenta) === null || _b === void 0 ? void 0 : _b.map((p) => ({
|
|
45
|
+
nro: p.Nro,
|
|
46
|
+
emisionTipo: p.EmisionTipo,
|
|
47
|
+
bloqueado: p.Bloqueado,
|
|
48
|
+
fechaBaja: p.FchBaja,
|
|
49
|
+
}))) || []);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Map SOAP last voucher to Domain LastVoucher
|
|
53
|
+
*/
|
|
54
|
+
function mapLastVoucher(soapResult) {
|
|
55
|
+
return {
|
|
56
|
+
cbteNro: soapResult.CbteNro,
|
|
57
|
+
cbteTipo: soapResult.CbteTipo,
|
|
58
|
+
ptoVta: soapResult.PtoVta,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Map SOAP voucher info to Domain VoucherInfo
|
|
63
|
+
* Handles special case: Observaciones?.Obs?.[0]?.Msg -> observaciones (flattened)
|
|
64
|
+
*/
|
|
65
|
+
function mapVoucherInfo(soapResult) {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
if (!soapResult.ResultGet) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
const result = soapResult.ResultGet;
|
|
71
|
+
return {
|
|
72
|
+
codAutorizacion: result.CodAutorizacion,
|
|
73
|
+
emisionTipo: result.EmisionTipo,
|
|
74
|
+
fchVto: result.FchVto,
|
|
75
|
+
fchProceso: result.FchProceso,
|
|
76
|
+
resultado: result.Resultado,
|
|
77
|
+
observaciones: (_c = (_b = (_a = result.Observaciones) === null || _a === void 0 ? void 0 : _a.Obs) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.Msg,
|
|
78
|
+
concepto: result.Concepto,
|
|
79
|
+
docTipo: result.DocTipo,
|
|
80
|
+
docNro: result.DocNro,
|
|
81
|
+
cbteDesde: result.CbteDesde,
|
|
82
|
+
cbteHasta: result.CbteHasta,
|
|
83
|
+
cbteFch: result.CbteFch,
|
|
84
|
+
impTotal: result.ImpTotal,
|
|
85
|
+
impTotConc: result.ImpTotConc,
|
|
86
|
+
impNeto: result.ImpNeto,
|
|
87
|
+
impOpEx: result.ImpOpEx,
|
|
88
|
+
impIVA: result.ImpIVA,
|
|
89
|
+
impTrib: result.ImpTrib,
|
|
90
|
+
monId: result.MonId,
|
|
91
|
+
monCotiz: result.MonCotiz,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Map SOAP parameter types to Domain ParameterType array (generic for all parameter types)
|
|
96
|
+
*/
|
|
97
|
+
function mapParameterTypes(soapResult, resultKey) {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a[resultKey]) === null || _b === void 0 ? void 0 : _b.map((t) => ({
|
|
100
|
+
id: t.Id,
|
|
101
|
+
desc: t.Desc,
|
|
102
|
+
fchDesde: t.FchDesde,
|
|
103
|
+
fchHasta: t.FchHasta,
|
|
104
|
+
}))) || []);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Map SOAP aliquot types to Domain AliquotType array
|
|
108
|
+
* Handles special case: Id is string, needs parseInt
|
|
109
|
+
*/
|
|
110
|
+
function mapAliquotTypes(soapResult) {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.IvaTipo) === null || _b === void 0 ? void 0 : _b.map((t) => ({
|
|
113
|
+
id: parseInt(t.Id, 10),
|
|
114
|
+
desc: t.Desc,
|
|
115
|
+
fchDesde: t.FchDesde,
|
|
116
|
+
fchHasta: t.FchHasta,
|
|
117
|
+
}))) || []);
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Map SOAP IVA receptor types to Domain IvaReceptorType array
|
|
121
|
+
*/
|
|
122
|
+
function mapIvaReceptorTypes(soapResult) {
|
|
123
|
+
var _a, _b;
|
|
124
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.CondicionIvaReceptor) === null || _b === void 0 ? void 0 : _b.map((t) => ({
|
|
125
|
+
id: t.Id,
|
|
126
|
+
desc: t.Desc,
|
|
127
|
+
cmp_Clase: t.Cmp_Clase,
|
|
128
|
+
}))) || []);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Map SOAP CAEA to Domain CaeaResponse
|
|
132
|
+
*/
|
|
133
|
+
function mapCaea(soapResult) {
|
|
134
|
+
var _a, _b, _c;
|
|
135
|
+
return {
|
|
136
|
+
caea: soapResult.CAEA,
|
|
137
|
+
periodo: soapResult.Periodo,
|
|
138
|
+
orden: soapResult.Orden,
|
|
139
|
+
fchVigDesde: soapResult.FchVigDesde,
|
|
140
|
+
fchVigHasta: soapResult.FchVigHasta,
|
|
141
|
+
fchTopeInf: soapResult.FchTopeInf,
|
|
142
|
+
fchProceso: soapResult.FchProceso,
|
|
143
|
+
observaciones: (_c = (_b = (_a = soapResult.Observaciones) === null || _a === void 0 ? void 0 : _a.Obs) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.Msg,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Map SOAP CAEA Usage to Domain CaeaUsageResponse
|
|
148
|
+
*/
|
|
149
|
+
function mapCaeaUsage(soapResult) {
|
|
150
|
+
var _a, _b, _c;
|
|
151
|
+
return {
|
|
152
|
+
caea: soapResult.CAEA,
|
|
153
|
+
concepto: soapResult.Concepto,
|
|
154
|
+
docTipo: soapResult.DocTipo,
|
|
155
|
+
docNro: soapResult.DocNro,
|
|
156
|
+
cbteDesde: soapResult.CbteDesde,
|
|
157
|
+
cbteHasta: soapResult.CbteHasta,
|
|
158
|
+
cbteFch: soapResult.CbteFch,
|
|
159
|
+
resultado: soapResult.Resultado,
|
|
160
|
+
observaciones: (_c = (_b = (_a = soapResult.Observaciones) === null || _a === void 0 ? void 0 : _a.Obs) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.Msg,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Map SOAP CAEA No Movement to Domain CaeaNoMovement array
|
|
165
|
+
*/
|
|
166
|
+
function mapCaeaNoMovement(soapResult) {
|
|
167
|
+
var _a;
|
|
168
|
+
return (((_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.map((c) => ({
|
|
169
|
+
caea: c.CAEA,
|
|
170
|
+
fchProceso: c.FchProceso,
|
|
171
|
+
ptoVta: c.PtoVta,
|
|
172
|
+
}))) || []);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Map SOAP Countries to Domain PaisType array
|
|
176
|
+
*/
|
|
177
|
+
function mapCountries(soapResult) {
|
|
178
|
+
var _a, _b;
|
|
179
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.PaisTipo) === null || _b === void 0 ? void 0 : _b.map((p) => ({
|
|
180
|
+
id: p.Id,
|
|
181
|
+
desc: p.Desc,
|
|
182
|
+
}))) || []);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Map SOAP Activities to Domain ActividadType array
|
|
186
|
+
*/
|
|
187
|
+
function mapActivities(soapResult) {
|
|
188
|
+
var _a, _b;
|
|
189
|
+
return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.ActividadesTipo) === null || _b === void 0 ? void 0 : _b.map((a) => ({
|
|
190
|
+
id: a.Id,
|
|
191
|
+
orden: a.Orden,
|
|
192
|
+
desc: a.Desc,
|
|
193
|
+
}))) || []);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Map SOAP Quotation to Domain CotizacionType
|
|
197
|
+
*/
|
|
198
|
+
function mapQuotation(soapResult) {
|
|
199
|
+
if (!soapResult.ResultGet)
|
|
200
|
+
return undefined;
|
|
201
|
+
return {
|
|
202
|
+
monId: soapResult.ResultGet.MonId,
|
|
203
|
+
monCotiz: soapResult.ResultGet.MonCotiz,
|
|
204
|
+
fchCotiz: soapResult.ResultGet.FchCotiz,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Map SOAP Max Records to number
|
|
209
|
+
*/
|
|
210
|
+
function mapMaxRecords(soapResult) {
|
|
211
|
+
return soapResult.RegXReq;
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=soap-to-dto.mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"soap-to-dto.mapper.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/soap-to-dto.mapper.ts"],"names":[],"mappings":";;AA0BA,sCAQC;AAKD,0CAUC;AAKD,wCAoBC;AAKD,wCAUC;AAMD,wCAmDC;AAKD,8CAuBC;AAMD,0CAoBC;AAKD,kDAkBC;AAID,0BAoBC;AAKD,oCAsBC;AAKD,8CAgBC;AAKD,oCAgBC;AAKD,sCAkBC;AAKD,oCAaC;AAKD,sCAEC;AArVD;;GAEG;AACH,SAAgB,aAAa,CAAC,MAE7B;IACC,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAA;QAAE,OAAO,SAAS,CAAC;IACnC,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,GAAG,EAAE,CAAC,CAAC,GAAG;KACX,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,UAI/B;IACC,OAAO;QACL,SAAS,EAAE,UAAU,CAAC,SAAS;QAC/B,QAAQ,EAAE,UAAU,CAAC,QAAQ;QAC7B,UAAU,E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AC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcasdk/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Arca TypeScript SDK - Core package for AFIP/ARCA integration",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"test:integration:watch": "jest ./tests/integration --watch",
|
|
14
14
|
"test:integration:manual": "jest ./tests/integration/electronic-billing-manual-tokens.integration.test.ts",
|
|
15
15
|
"test:integration:auto": "jest ./tests/integration/electronic-billing.integration.test.ts",
|
|
16
|
-
"generate:wsdl-strings": "node scripts/generate-wsdl-strings.js"
|
|
16
|
+
"generate:wsdl-strings": "node scripts/generate-wsdl-strings.js",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"dotenv": "^16.3.1",
|