@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.
Files changed (97) hide show
  1. package/lib/application/dto/electronic-billing.dto.d.ts +1 -1
  2. package/lib/application/ports/authentication/authentication-repository.port.d.ts +2 -2
  3. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +3 -3
  4. package/lib/application/ports/register/register-repository.ports.d.ts +1 -1
  5. package/lib/application/services/electronic-billing.service.d.ts +4 -4
  6. package/lib/application/services/electronic-billing.service.js +23 -23
  7. package/lib/application/services/generic.service.d.ts +1 -1
  8. package/lib/application/services/register-inscription-proof.service.d.ts +2 -2
  9. package/lib/application/services/register-inscription-proof.service.js +3 -3
  10. package/lib/application/services/register-scope-five.service.d.ts +2 -2
  11. package/lib/application/services/register-scope-five.service.js +3 -3
  12. package/lib/application/services/register-scope-four.service.d.ts +2 -2
  13. package/lib/application/services/register-scope-four.service.js +2 -2
  14. package/lib/application/services/register-scope-ten.service.d.ts +2 -2
  15. package/lib/application/services/register-scope-ten.service.js +2 -2
  16. package/lib/application/services/register-scope-thirteen.service.d.ts +2 -2
  17. package/lib/application/services/register-scope-thirteen.service.js +3 -3
  18. package/lib/application/types/context.types.d.ts +1 -1
  19. package/lib/application/types/result.types.d.ts +1 -1
  20. package/lib/application/types/use-case-inputs.types.d.ts +1 -1
  21. package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +2 -2
  22. package/lib/application/use-cases/authentication/login.use-case.d.ts +2 -2
  23. package/lib/application/use-cases/authentication/request-login.use-case.d.ts +2 -2
  24. package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.d.ts +2 -2
  25. package/lib/application/use-cases/electronic-billing/consult-caea.use-case.d.ts +2 -2
  26. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +3 -3
  27. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +1 -1
  28. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +3 -3
  29. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +1 -1
  30. package/lib/application/use-cases/electronic-billing/get-activities.use-case.d.ts +2 -2
  31. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +2 -2
  32. package/lib/application/use-cases/electronic-billing/get-caea.use-case.d.ts +2 -2
  33. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +2 -2
  34. package/lib/application/use-cases/electronic-billing/get-countries.use-case.d.ts +2 -2
  35. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +2 -2
  36. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +2 -2
  37. package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.d.ts +2 -2
  38. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +3 -3
  39. package/lib/application/use-cases/electronic-billing/get-max-records.use-case.d.ts +2 -2
  40. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +2 -2
  41. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +2 -2
  42. package/lib/application/use-cases/electronic-billing/get-quotation.use-case.d.ts +2 -2
  43. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +2 -2
  44. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +2 -2
  45. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +2 -2
  46. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +3 -3
  47. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +2 -2
  48. package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.d.ts +2 -2
  49. package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.d.ts +3 -3
  50. package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js +1 -1
  51. package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +2 -2
  52. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +2 -2
  53. package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +2 -2
  54. package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +2 -2
  55. package/lib/arca.d.ts +8 -8
  56. package/lib/arca.js +17 -17
  57. package/lib/domain/entities/access-ticket.entity.d.ts +2 -2
  58. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +6 -6
  59. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +5 -5
  60. package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +4 -4
  61. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +5 -5
  62. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +5 -5
  63. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +4 -4
  64. package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +2 -2
  65. package/lib/infrastructure/outbound/adapters/generic/generic-repository.js +1 -1
  66. package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +2 -2
  67. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +1 -1
  68. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +3 -3
  69. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +3 -3
  70. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +3 -3
  71. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +3 -3
  72. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +3 -3
  73. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +3 -3
  74. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +3 -3
  75. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js +3 -3
  76. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +3 -3
  77. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +3 -3
  78. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +4 -4
  79. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +1 -1
  80. package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +1 -1
  81. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +1 -1
  82. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +3 -3
  83. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +1 -1
  84. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +1 -1
  85. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +1 -1
  86. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +1 -1
  87. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +1 -1
  88. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +1 -1
  89. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +1 -1
  90. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +1 -1
  91. package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +1 -1
  92. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +1 -1
  93. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +1 -1
  94. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +1 -1
  95. package/lib/infrastructure/types/soap.types.d.ts +3 -3
  96. package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +1 -1
  97. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IgetPersonaInput {
4
4
  /** http://a10.soap.ws.server.puc.sr/#xs:string(undefined) */
5
5
  token: string;
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IdummyInput {
4
4
  }
5
5
  export interface IdummyOutput {
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IdummyInput {
4
4
  }
5
5
  export interface IdummyOutput {
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IgetPersonaInput {
4
4
  /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */
5
5
  token: string;
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IgetPersonaInput {
4
4
  /** http://a5.soap.ws.server.puc.sr/#xs:string(undefined) */
5
5
  token: string;
@@ -1,5 +1,5 @@
1
1
  import { Client } from "soap";
2
- import { SoapAsyncFunc } from "@infrastructure/types";
2
+ import { SoapAsyncFunc } from "../../../../../types";
3
3
  export interface IFECAESolicitarInput {
4
4
  FeCAEReq: ServiceSoap12Types.IFeCAEReq;
5
5
  }
@@ -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 "@infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms"
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 "@infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms"
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 "@application/ports/authentication/authentication-repository.port";
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 "@domain/entities/access-ticket.entity";
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 "@infrastructure/outbound/ports/soap/enums/wsdl-path.enum";
7
- import { EndpointsEnum, SoapServiceVersion } from "@infrastructure/outbound/ports/soap/enums/endpoints.enum";
8
- import { ServiceNamesEnum } from "@infrastructure/outbound/ports/soap/enums/service-names.enum";
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 "@domain/types/electronic-billing.types";
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",
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
  },