@arcasdk/core 0.3.3 → 0.3.4
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/dto/electronic-billing.dto.d.ts +1 -1
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +2 -2
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +3 -3
- package/lib/application/ports/register/register-repository.ports.d.ts +1 -1
- package/lib/application/services/electronic-billing.service.d.ts +4 -4
- package/lib/application/services/electronic-billing.service.js +23 -23
- package/lib/application/services/generic.service.d.ts +1 -1
- package/lib/application/services/register-inscription-proof.service.d.ts +2 -2
- package/lib/application/services/register-inscription-proof.service.js +3 -3
- package/lib/application/services/register-scope-five.service.d.ts +2 -2
- package/lib/application/services/register-scope-five.service.js +3 -3
- package/lib/application/services/register-scope-four.service.d.ts +2 -2
- package/lib/application/services/register-scope-four.service.js +2 -2
- package/lib/application/services/register-scope-ten.service.d.ts +2 -2
- package/lib/application/services/register-scope-ten.service.js +2 -2
- package/lib/application/services/register-scope-thirteen.service.d.ts +2 -2
- package/lib/application/services/register-scope-thirteen.service.js +3 -3
- package/lib/application/types/context.types.d.ts +1 -1
- package/lib/application/types/result.types.d.ts +1 -1
- package/lib/application/types/use-case-inputs.types.d.ts +1 -1
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +2 -2
- package/lib/application/use-cases/authentication/login.use-case.d.ts +2 -2
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +3 -3
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +1 -1
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +3 -3
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +1 -1
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +3 -3
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +3 -3
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.d.ts +2 -2
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.d.ts +3 -3
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js +1 -1
- package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +2 -2
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +2 -2
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +2 -2
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +2 -2
- package/lib/arca.d.ts +8 -8
- package/lib/arca.js +17 -17
- package/lib/domain/entities/access-ticket.entity.d.ts +2 -2
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +6 -6
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +5 -5
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +4 -4
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +5 -5
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +5 -5
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +4 -4
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +2 -2
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js +1 -1
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +2 -2
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +1 -1
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +3 -3
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +4 -4
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +1 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +1 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +1 -1
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +3 -3
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +1 -1
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +1 -1
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +1 -1
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +1 -1
- package/lib/infrastructure/types/soap.types.d.ts +3 -3
- package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +1 -1
- package/package.json +3 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Re-export interfaces with namespaces to avoid naming conflicts
|
|
4
4
|
*
|
|
5
5
|
* Note: Direct imports from specific files are recommended to avoid conflicts
|
|
6
|
-
* Example: import { ILoginCmsSoap } from "
|
|
6
|
+
* Example: import { ILoginCmsSoap } from "../../../../outbound/ports/soap/interfaces/LoginCMSService/LoginCms"
|
|
7
7
|
*/
|
|
8
8
|
export * as LoginCMSService from "./LoginCMSService/LoginCms";
|
|
9
9
|
export * as PersonaServiceA10 from "./PersonaServiceA10/PersonaServiceA10Port";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Re-export interfaces with namespaces to avoid naming conflicts
|
|
5
5
|
*
|
|
6
6
|
* Note: Direct imports from specific files are recommended to avoid conflicts
|
|
7
|
-
* Example: import { ILoginCmsSoap } from "
|
|
7
|
+
* Example: import { ILoginCmsSoap } from "../../../../outbound/ports/soap/interfaces/LoginCMSService/LoginCms"
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Configuration types for SOAP repositories
|
|
4
4
|
*/
|
|
5
5
|
import { ISoapClientPort } from "./soap-client.port";
|
|
6
|
-
import { IAuthenticationRepositoryPort } from "
|
|
6
|
+
import { IAuthenticationRepositoryPort } from "../../../../application/ports/authentication/authentication-repository.port";
|
|
7
7
|
import { ILoggerPort } from "../logger/logger.port";
|
|
8
8
|
import { ServiceNamesEnum } from "./enums/service-names.enum";
|
|
9
9
|
import { SoapServiceVersion } from "./enums/endpoints.enum";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Ticket Storage Port
|
|
3
3
|
* Outbound port for ticket storage operations
|
|
4
4
|
*/
|
|
5
|
-
import { AccessTicket } from "
|
|
5
|
+
import { AccessTicket } from "../../../../domain/entities/access-ticket.entity";
|
|
6
6
|
export interface ITicketStoragePort {
|
|
7
7
|
/**
|
|
8
8
|
* Save an access ticket
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Types related to SOAP infrastructure
|
|
4
4
|
*/
|
|
5
5
|
import { IOptions } from "soap";
|
|
6
|
-
import { WsdlPathEnum } from "
|
|
7
|
-
import { EndpointsEnum, SoapServiceVersion } from "
|
|
8
|
-
import { ServiceNamesEnum } from "
|
|
6
|
+
import { WsdlPathEnum } from "../outbound/ports/soap/enums/wsdl-path.enum";
|
|
7
|
+
import { EndpointsEnum, SoapServiceVersion } from "../outbound/ports/soap/enums/endpoints.enum";
|
|
8
|
+
import { ServiceNamesEnum } from "../outbound/ports/soap/enums/service-names.enum";
|
|
9
9
|
export type SoapAsyncFunc<I, O> = (input: I, options?: any, extraHeaders?: any) => Promise<[O, string, {
|
|
10
10
|
[k: string]: any;
|
|
11
11
|
}, string]>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Maps from infrastructure (SOAP) to domain (business concepts)
|
|
5
5
|
* This maintains architectural boundaries: Infrastructure -> Domain -> Application
|
|
6
6
|
*/
|
|
7
|
-
import { SalesPoint, ServerStatus, LastVoucher, VoucherInfo, AliquotType, ParameterType, IvaReceptorType, CaeaResponse, CaeaUsageResponse, CaeaNoMovement, PaisType, ActividadType, CotizacionType, ErrorInfo } from "
|
|
7
|
+
import { SalesPoint, ServerStatus, LastVoucher, VoucherInfo, AliquotType, ParameterType, IvaReceptorType, CaeaResponse, CaeaUsageResponse, CaeaNoMovement, PaisType, ActividadType, CotizacionType, ErrorInfo } from "../../domain/types/electronic-billing.types";
|
|
8
8
|
/**
|
|
9
9
|
* Map SOAP errors to Domain ErrorInfo
|
|
10
10
|
*/
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcasdk/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Arca TypeScript SDK - Core package for AFIP/ARCA integration",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "npx tsc -p tsconfig.build.json",
|
|
9
|
+
"build": "npx tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
10
10
|
"test": "jest",
|
|
11
11
|
"test:unit": "jest ./tests/unit",
|
|
12
12
|
"test:integration": "jest ./tests/integration",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"rimraf": "^5.0.7",
|
|
38
38
|
"ts-jest": "^28.0.8",
|
|
39
39
|
"ts-node": "^10.9.1",
|
|
40
|
+
"tsc-alias": "^1.8.16",
|
|
40
41
|
"tsconfig-paths": "^4.2.0",
|
|
41
42
|
"typescript": "^5.0.4"
|
|
42
43
|
},
|