@arcasdk/core 0.3.4 → 0.3.6
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/types/context.types.d.ts +7 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +7 -3
- package/lib/index.js.map +1 -1
- package/lib/infrastructure/constants/default-config.constants.d.ts +17 -0
- package/lib/infrastructure/constants/default-config.constants.js +21 -0
- package/lib/infrastructure/constants/default-config.constants.js.map +1 -0
- package/lib/infrastructure/constants/index.d.ts +1 -0
- package/lib/infrastructure/constants/index.js +1 -0
- package/lib/infrastructure/constants/index.js.map +1 -1
- package/lib/{arca.d.ts → infrastructure/inbound/adapters/arca.d.ts} +8 -8
- package/lib/infrastructure/inbound/adapters/arca.js +97 -0
- package/lib/infrastructure/inbound/adapters/arca.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +6 -4
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +6 -4
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +2 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -1
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +2 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +26 -12
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -1
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +6 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +6 -0
- package/package.json +2 -1
- package/lib/arca.js +0 -124
- package/lib/arca.js.map +0 -1
|
@@ -43,4 +43,11 @@ export interface Context {
|
|
|
43
43
|
* @default true (uses SOAP 1.2 by default)
|
|
44
44
|
*/
|
|
45
45
|
useSoap12?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Enable HTTPS Agent for Node.js environments (required for legacy ARCA servers)
|
|
48
|
+
* Set to true when running in Node.js environments that require legacy HTTPS agent
|
|
49
|
+
* Set to false when running in Cloudflare Workers or other edge runtimes
|
|
50
|
+
* @default false (disabled by default)
|
|
51
|
+
*/
|
|
52
|
+
useHttpsAgent?: boolean;
|
|
46
53
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* ARCA SDK - Main Entry Point
|
|
3
3
|
* Exports the main facade class and public types
|
|
4
4
|
*/
|
|
5
|
-
export { Arca } from "./arca";
|
|
6
5
|
export * from "./application";
|
|
7
6
|
export * from "./domain";
|
|
8
7
|
export * from "./infrastructure";
|
|
8
|
+
export { Arca } from "./infrastructure/inbound/adapters/arca";
|
|
9
|
+
export { FileSystemTicketStorage } from "./infrastructure/outbound/adapters/storage/file-system-ticket-storage";
|
|
10
|
+
export { AuthRepository } from "./infrastructure/outbound/adapters/auth/auth.repository";
|
|
11
|
+
export { Context } from "./application/types";
|
package/lib/index.js
CHANGED
|
@@ -14,14 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Arca = void 0;
|
|
17
|
+
exports.AuthRepository = exports.FileSystemTicketStorage = exports.Arca = void 0;
|
|
18
18
|
/**
|
|
19
19
|
* ARCA SDK - Main Entry Point
|
|
20
20
|
* Exports the main facade class and public types
|
|
21
21
|
*/
|
|
22
|
-
var arca_1 = require("./arca");
|
|
23
|
-
Object.defineProperty(exports, "Arca", { enumerable: true, get: function () { return arca_1.Arca; } });
|
|
24
22
|
__exportStar(require("./application"), exports);
|
|
25
23
|
__exportStar(require("./domain"), exports);
|
|
26
24
|
__exportStar(require("./infrastructure"), exports);
|
|
25
|
+
var arca_1 = require("./infrastructure/inbound/adapters/arca");
|
|
26
|
+
Object.defineProperty(exports, "Arca", { enumerable: true, get: function () { return arca_1.Arca; } });
|
|
27
|
+
var file_system_ticket_storage_1 = require("./infrastructure/outbound/adapters/storage/file-system-ticket-storage");
|
|
28
|
+
Object.defineProperty(exports, "FileSystemTicketStorage", { enumerable: true, get: function () { return file_system_ticket_storage_1.FileSystemTicketStorage; } });
|
|
29
|
+
var auth_repository_1 = require("./infrastructure/outbound/adapters/auth/auth.repository");
|
|
30
|
+
Object.defineProperty(exports, "AuthRepository", { enumerable: true, get: function () { return auth_repository_1.AuthRepository; } });
|
|
27
31
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,gDAA8B;AAC9B,2CAAyB;AACzB,mDAAiC;AAEjC,+DAA8D;AAArD,4FAAA,IAAI,OAAA;AACb,oHAAgH;AAAvG,qIAAA,uBAAuB,OAAA;AAChC,2FAAyF;AAAhF,iHAAA,cAAc,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Configuration Constants
|
|
3
|
+
* Centralized default values for context and application configuration
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Default value for useHttpsAgent configuration
|
|
7
|
+
*
|
|
8
|
+
* When false (default), the HTTPS agent is not used, which is suitable for:
|
|
9
|
+
* - Cloudflare Workers and other edge runtimes
|
|
10
|
+
* - Modern Node.js environments that don't require legacy SSL configurations
|
|
11
|
+
*
|
|
12
|
+
* When true, enables the HTTPS agent with legacy SSL support, required for:
|
|
13
|
+
* - Legacy ARCA/AFIP servers that use weak Diffie-Hellman parameters
|
|
14
|
+
*
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
export declare const DEFAULT_USE_HTTPS_AGENT = false;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Default Configuration Constants
|
|
4
|
+
* Centralized default values for context and application configuration
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DEFAULT_USE_HTTPS_AGENT = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Default value for useHttpsAgent configuration
|
|
10
|
+
*
|
|
11
|
+
* When false (default), the HTTPS agent is not used, which is suitable for:
|
|
12
|
+
* - Cloudflare Workers and other edge runtimes
|
|
13
|
+
* - Modern Node.js environments that don't require legacy SSL configurations
|
|
14
|
+
*
|
|
15
|
+
* When true, enables the HTTPS agent with legacy SSL support, required for:
|
|
16
|
+
* - Legacy ARCA/AFIP servers that use weak Diffie-Hellman parameters
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
exports.DEFAULT_USE_HTTPS_AGENT = false;
|
|
21
|
+
//# sourceMappingURL=default-config.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-config.constants.js","sourceRoot":"","sources":["../../../src/infrastructure/constants/default-config.constants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;;;;;;;GAWG;AACU,QAAA,uBAAuB,GAAG,KAAK,CAAC"}
|
|
@@ -19,4 +19,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
* Exports all infrastructure-related constants
|
|
20
20
|
*/
|
|
21
21
|
__exportStar(require("./ssl.constants"), exports);
|
|
22
|
+
__exportStar(require("./default-config.constants"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,kDAAgC;AAChC,6DAA2C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Context } from "
|
|
2
|
-
import { ElectronicBillingService } from "
|
|
3
|
-
import { RegisterScopeFourService } from "
|
|
4
|
-
import { RegisterScopeFiveService } from "
|
|
5
|
-
import { RegisterScopeTenService } from "
|
|
6
|
-
import { RegisterScopeThirteenService } from "
|
|
7
|
-
import { RegisterInscriptionProofService } from "
|
|
8
|
-
import { GenericService } from "
|
|
1
|
+
import { Context } from "../../../application/types";
|
|
2
|
+
import { ElectronicBillingService } from "../../../application/services/electronic-billing.service";
|
|
3
|
+
import { RegisterScopeFourService } from "../../../application/services/register-scope-four.service";
|
|
4
|
+
import { RegisterScopeFiveService } from "../../../application/services/register-scope-five.service";
|
|
5
|
+
import { RegisterScopeTenService } from "../../../application/services/register-scope-ten.service";
|
|
6
|
+
import { RegisterScopeThirteenService } from "../../../application/services/register-scope-thirteen.service";
|
|
7
|
+
import { RegisterInscriptionProofService } from "../../../application/services/register-inscription-proof.service";
|
|
8
|
+
import { GenericService } from "../../../application/services/generic.service";
|
|
9
9
|
export declare class Arca {
|
|
10
10
|
private readonly _electronicBillingService;
|
|
11
11
|
private readonly _registerInscriptionProofService;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Arca = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Arca - Main Facade Class
|
|
6
|
+
* Entry point for the ARCA SDK
|
|
7
|
+
* Orchestrates all services and adapters using hexagonal architecture
|
|
8
|
+
*/
|
|
9
|
+
const path_1 = require("path");
|
|
10
|
+
const file_system_ticket_storage_1 = require("../../outbound/adapters/storage/file-system-ticket-storage");
|
|
11
|
+
const auth_repository_1 = require("../../outbound/adapters/auth/auth.repository");
|
|
12
|
+
const winston_logger_1 = require("../../outbound/adapters/logger/winston-logger");
|
|
13
|
+
const electronic_billing_service_1 = require("../../../application/services/electronic-billing.service");
|
|
14
|
+
const register_scope_four_service_1 = require("../../../application/services/register-scope-four.service");
|
|
15
|
+
const register_scope_five_service_1 = require("../../../application/services/register-scope-five.service");
|
|
16
|
+
const register_scope_ten_service_1 = require("../../../application/services/register-scope-ten.service");
|
|
17
|
+
const register_scope_thirteen_service_1 = require("../../../application/services/register-scope-thirteen.service");
|
|
18
|
+
const register_inscription_proof_service_1 = require("../../../application/services/register-inscription-proof.service");
|
|
19
|
+
const electronic_billing_repository_1 = require("../../outbound/adapters/electronic-billing/electronic-billing-repository");
|
|
20
|
+
const register_scope_four_repository_1 = require("../../outbound/adapters/register/register-scope-four.repository");
|
|
21
|
+
const register_scope_five_repository_1 = require("../../outbound/adapters/register/register-scope-five.repository");
|
|
22
|
+
const register_scope_ten_repository_1 = require("../../outbound/adapters/register/register-scope-ten.repository");
|
|
23
|
+
const register_scope_thirteen_repository_1 = require("../../outbound/adapters/register/register-scope-thirteen.repository");
|
|
24
|
+
const register_inscription_proof_repository_1 = require("../../outbound/adapters/register/register-inscription-proof.repository");
|
|
25
|
+
const generic_service_1 = require("../../../application/services/generic.service");
|
|
26
|
+
const generic_repository_1 = require("../../outbound/adapters/generic/generic-repository");
|
|
27
|
+
const constants_1 = require("../../constants");
|
|
28
|
+
class Arca {
|
|
29
|
+
constructor(context) {
|
|
30
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
31
|
+
this.context = Object.assign(Object.assign({}, context), { ticketPath: (_a = context.ticketPath) !== null && _a !== void 0 ? _a : (0, path_1.resolve)(__dirname, "..", "..", "storage", "auth", "tickets") });
|
|
32
|
+
const ticketStorage = new file_system_ticket_storage_1.FileSystemTicketStorage({
|
|
33
|
+
ticketPath: this.context.ticketPath,
|
|
34
|
+
cuit: this.context.cuit,
|
|
35
|
+
production: (_b = this.context.production) !== null && _b !== void 0 ? _b : false,
|
|
36
|
+
});
|
|
37
|
+
const useHttpsAgent = (_c = this.context.useHttpsAgent) !== null && _c !== void 0 ? _c : constants_1.DEFAULT_USE_HTTPS_AGENT;
|
|
38
|
+
const authRepository = new auth_repository_1.AuthRepository({
|
|
39
|
+
cert: this.context.cert,
|
|
40
|
+
key: this.context.key,
|
|
41
|
+
cuit: this.context.cuit,
|
|
42
|
+
production: (_d = this.context.production) !== null && _d !== void 0 ? _d : false,
|
|
43
|
+
handleTicket: (_e = this.context.handleTicket) !== null && _e !== void 0 ? _e : false,
|
|
44
|
+
ticketStorage: this.context.handleTicket ? undefined : ticketStorage,
|
|
45
|
+
credentials: this.context.credentials,
|
|
46
|
+
useHttpsAgent,
|
|
47
|
+
});
|
|
48
|
+
const logger = new winston_logger_1.WinstonLogger({
|
|
49
|
+
enableLogging: (_f = this.context.enableLogging) !== null && _f !== void 0 ? _f : false,
|
|
50
|
+
});
|
|
51
|
+
// Base configuration shared by all repositories
|
|
52
|
+
const baseRepositoryConfig = {
|
|
53
|
+
authRepository,
|
|
54
|
+
logger,
|
|
55
|
+
cuit: this.context.cuit,
|
|
56
|
+
production: (_g = this.context.production) !== null && _g !== void 0 ? _g : false,
|
|
57
|
+
useHttpsAgent,
|
|
58
|
+
};
|
|
59
|
+
const electronicBillingRepository = new electronic_billing_repository_1.ElectronicBillingRepository(Object.assign(Object.assign({}, baseRepositoryConfig), { useSoap12: (_h = this.context.useSoap12) !== null && _h !== void 0 ? _h : true }));
|
|
60
|
+
const registerScopeFourRepository = new register_scope_four_repository_1.RegisterScopeFourRepository(baseRepositoryConfig);
|
|
61
|
+
const registerScopeFiveRepository = new register_scope_five_repository_1.RegisterScopeFiveRepository(baseRepositoryConfig);
|
|
62
|
+
const registerScopeTenRepository = new register_scope_ten_repository_1.RegisterScopeTenRepository(baseRepositoryConfig);
|
|
63
|
+
const registerScopeThirteenRepository = new register_scope_thirteen_repository_1.RegisterScopeThirteenRepository(baseRepositoryConfig);
|
|
64
|
+
const registerInscriptionProofRepository = new register_inscription_proof_repository_1.RegisterInscriptionProofRepository(baseRepositoryConfig);
|
|
65
|
+
const genericRepository = new generic_repository_1.GenericRepository(Object.assign(Object.assign({}, baseRepositoryConfig), { useSoap12: (_j = this.context.useSoap12) !== null && _j !== void 0 ? _j : true }));
|
|
66
|
+
this._electronicBillingService = new electronic_billing_service_1.ElectronicBillingService(electronicBillingRepository);
|
|
67
|
+
this._registerInscriptionProofService = new register_inscription_proof_service_1.RegisterInscriptionProofService(registerInscriptionProofRepository);
|
|
68
|
+
this._registerScopeFourService = new register_scope_four_service_1.RegisterScopeFourService(registerScopeFourRepository);
|
|
69
|
+
this._registerScopeFiveService = new register_scope_five_service_1.RegisterScopeFiveService(registerScopeFiveRepository);
|
|
70
|
+
this._registerScopeTenService = new register_scope_ten_service_1.RegisterScopeTenService(registerScopeTenRepository);
|
|
71
|
+
this._registerScopeThirteenService = new register_scope_thirteen_service_1.RegisterScopeThirteenService(registerScopeThirteenRepository);
|
|
72
|
+
this._genericService = new generic_service_1.GenericService(genericRepository);
|
|
73
|
+
}
|
|
74
|
+
get electronicBillingService() {
|
|
75
|
+
return this._electronicBillingService;
|
|
76
|
+
}
|
|
77
|
+
get registerInscriptionProofService() {
|
|
78
|
+
return this._registerInscriptionProofService;
|
|
79
|
+
}
|
|
80
|
+
get registerScopeFourService() {
|
|
81
|
+
return this._registerScopeFourService;
|
|
82
|
+
}
|
|
83
|
+
get registerScopeFiveService() {
|
|
84
|
+
return this._registerScopeFiveService;
|
|
85
|
+
}
|
|
86
|
+
get registerScopeTenService() {
|
|
87
|
+
return this._registerScopeTenService;
|
|
88
|
+
}
|
|
89
|
+
get registerScopeThirteenService() {
|
|
90
|
+
return this._registerScopeThirteenService;
|
|
91
|
+
}
|
|
92
|
+
get genericService() {
|
|
93
|
+
return this._genericService;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.Arca = Arca;
|
|
97
|
+
//# sourceMappingURL=arca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arca.js","sourceRoot":"","sources":["../../../../src/infrastructure/inbound/adapters/arca.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,+BAA+B;AAE/B,qHAA+G;AAC/G,4FAAwF;AACxF,4FAAwF;AAIxF,iGAA4F;AAC5F,mGAA6F;AAC7F,mGAA6F;AAC7F,iGAA2F;AAC3F,2GAAqG;AACrG,iHAA2G;AAC3G,sIAAiI;AACjI,8HAAwH;AACxH,8HAAwH;AACxH,4HAAsH;AACtH,sIAAgI;AAChI,4IAAsI;AACtI,2EAAuE;AAEvE,qGAAiG;AACjG,yDAAoE;AAEpE,MAAa,IAAI;IAUf,YAAY,OAAgB;;QAC1B,IAAI,CAAC,OAAO,mCACP,OAAO,KACV,UAAU,EACR,MAAA,OAAO,CAAC,UAAU,mCAClB,IAAA,cAAO,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,GAC/D,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,oDAAuB,CAAC;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAW;YACpC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QACH,MAAM,aAAa,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,aAAa,mCAAI,mCAAuB,CAAC;QAC5E,MAAM,cAAc,GAAkC,IAAI,gCAAc,CAAC;YACvE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG;YACrB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC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SAAS,mCAAI,IAAI,IACzC,CAAC;QAEH,IAAI,CAAC,yBAAyB,GAAG,IAAI,qDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,gCAAgC,GAAG,IAAI,oEAA+B,CACzE,kCAAkC,CACnC,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,sDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,sDAAwB,CAC3D,2BAA2B,CAC5B,CAAC;QACF,IAAI,CAAC,wBAAwB,GAAG,IAAI,oDAAuB,CACzD,0BAA0B,CAC3B,CAAC;QACF,IAAI,CAAC,6BAA6B,GAAG,IAAI,8DAA4B,CACnE,+BAA+B,CAChC,CAAC;QACF,IAAI,CAAC,eAAe,GAAG,IAAI,gCAAc,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,+BAA+B;QACjC,OAAO,IAAI,CAAC,gCAAgC,CAAC;IAC/C,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,yBAAyB,CAAC;IACxC,CAAC;IAED,IAAI,uBAAuB;QACzB,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACvC,CAAC;IAED,IAAI,4BAA4B;QAC9B,OAAO,IAAI,CAAC,6BAA6B,CAAC;IAC5C,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;CACF;AA7HD,oBA6HC"}
|
|
@@ -16,14 +16,16 @@ const crypt_data_1 = require("../../../utils/crypt-data");
|
|
|
16
16
|
const wsdl_path_enum_1 = require("../../../outbound/ports/soap/enums/wsdl-path.enum");
|
|
17
17
|
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
18
18
|
const soap_client_1 = require("../soap/soap-client");
|
|
19
|
+
const constants_1 = require("../../../constants");
|
|
19
20
|
class AuthRepository {
|
|
20
21
|
constructor(config) {
|
|
21
|
-
var _a, _b, _c;
|
|
22
|
-
this.soapClient =
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
this.soapClient =
|
|
24
|
+
(_a = config.soapClient) !== null && _a !== void 0 ? _a : new soap_client_1.SoapClient((_b = config.useHttpsAgent) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_USE_HTTPS_AGENT);
|
|
23
25
|
this.cert = config.cert;
|
|
24
26
|
this.key = config.key;
|
|
25
|
-
this.production = (
|
|
26
|
-
this.handleTicket = (
|
|
27
|
+
this.production = (_c = config.production) !== null && _c !== void 0 ? _c : false;
|
|
28
|
+
this.handleTicket = (_d = config.handleTicket) !== null && _d !== void 0 ? _d : false;
|
|
27
29
|
this.ticketStorage = config.ticketStorage;
|
|
28
30
|
this.manualCredentials = config.credentials;
|
|
29
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/auth/auth.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,gFAG+C;AAE/C,yDAAsD;AACtD,iEAAgE;AAMhE,6FAAwF;AACxF,6FAAyF;AAIzF,qDAAiD;
|
|
1
|
+
{"version":3,"file":"auth.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/auth/auth.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,gFAG+C;AAE/C,yDAAsD;AACtD,iEAAgE;AAMhE,6FAAwF;AACxF,6FAAyF;AAIzF,qDAAiD;AACjD,yDAAoE;AAEpE,MAAa,cAAc;IAUzB,YAAY,MAA4B;;QACtC,IAAI,CAAC,UAAU;YACb,MAAA,MAAM,CAAC,UAAU,mCACjB,IAAI,wBAAU,CAAC,MAAA,MAAM,CAAC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;;OAIG;IACK,MAAM,CAAC,WAAmB;QAChC,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO;YACL,kBAAkB,EAAE;gBAClB,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBACrB,MAAM,EAAE;oBACN;wBACE,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;wBAC7C,cAAc,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;wBACjE,cAAc,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;qBAClE;iBACF;gBACD,OAAO,EAAE,CAAC,WAAW,CAAC;aACvB;SACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,OAAO,CAAC,MAAc;QAC5B,MAAM,MAAM,GAAG,IAAI,yBAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACrD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF;AA9ID,wCA8IC"}
|
|
@@ -12,19 +12,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BaseSoapRepository = void 0;
|
|
13
13
|
const soap_client_1 = require("./soap-client");
|
|
14
14
|
const endpoints_enum_1 = require("../../../outbound/ports/soap/enums/endpoints.enum");
|
|
15
|
+
const constants_1 = require("../../../constants");
|
|
15
16
|
/**
|
|
16
17
|
* Base class for SOAP repositories
|
|
17
18
|
* Provides common functionality for authentication proxy
|
|
18
19
|
*/
|
|
19
20
|
class BaseSoapRepository {
|
|
20
21
|
constructor(config) {
|
|
21
|
-
var _a, _b, _c;
|
|
22
|
-
this.soapClient =
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
this.soapClient =
|
|
24
|
+
(_a = config.soapClient) !== null && _a !== void 0 ? _a : new soap_client_1.SoapClient((_b = config.useHttpsAgent) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_USE_HTTPS_AGENT);
|
|
23
25
|
this.authRepository = config.authRepository;
|
|
24
26
|
this.logger = config.logger;
|
|
25
27
|
this.cuit = config.cuit;
|
|
26
|
-
this.production = (
|
|
27
|
-
this.useSoap12 = (
|
|
28
|
+
this.production = (_c = config.production) !== null && _c !== void 0 ? _c : false;
|
|
29
|
+
this.useSoap12 = (_d = config.useSoap12) !== null && _d !== void 0 ? _d : true; // Default to SOAP 1.2
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Create a proxy that automatically injects Auth into SOAP method calls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,+CAA2C;AAI3C,6FAA8F;
|
|
1
|
+
{"version":3,"file":"base-soap-repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/base-soap-repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,+CAA2C;AAI3C,6FAA8F;AAK9F,yDAAoE;AAEpE;;;GAGG;AACH,MAAsB,kBAAkB;IAQtC,YAAY,MAA2C;;QACrD,IAAI,CAAC,UAAU;YACb,MAAA,MAAM,CAAC,UAAU,mCACjB,IAAI,wBAAU,CAAC,MAAA,MAAM,CAAC,aAAa,mCAAI,mCAAuB,CAAC,CAAC;QAClE,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU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MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;4BAElE,IAAI,UAAU,GAAG,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;4BAEvD,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;gCACvB,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;4BACxC,CAAC;4BAED,MAAM,cAAc,mCAAQ,UAAU,GAAK,MAAM,CAAE,CAAC;4BACpD,OAAQ,QAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;wBACxD,CAAC,CAAA,CAAC;oBACJ,CAAC;gBACH,CAAC;gBACD,OAAO,QAAQ,CAAC;YAClB,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAnED,gDAmEC"}
|
|
@@ -20,7 +20,8 @@ class SoapClientFacade {
|
|
|
20
20
|
/**
|
|
21
21
|
* Create HTTP client with custom HTTPS agent for legacy servers
|
|
22
22
|
*/
|
|
23
|
-
static createHttpClientWithAgent(httpsAgent
|
|
23
|
+
static createHttpClientWithAgent(httpsAgent // Using any to avoid importing https types in non-Node environments
|
|
24
|
+
) {
|
|
24
25
|
const originalHttpClient = new soap_1.HttpClient();
|
|
25
26
|
return {
|
|
26
27
|
request: function (rurl, data, callback, exheaders, exoptions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soap-client-facade.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client-facade.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,+BAA0E;
|
|
1
|
+
{"version":3,"file":"soap-client-facade.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client-facade.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,+BAA0E;AAO1E,MAAa,gBAAgB;IAC3B,gBAAuB,CAAC;IAExB;;OAEG;IACK,MAAM,CAAC,yBAAyB,CACtC,UAAe,CAAC,oEAAoE;;QAEpF,MAAM,kBAAkB,GAAG,IAAI,iBAAU,EAAE,CAAC;QAE5C,OAAO;YACL,OAAO,EAAE,UACP,IAAY,EACZ,IAAS,EACT,QAAoD,EACpD,SAAe,EACf,SAAe;gBAEf,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,SAAS,GAAG,EAAE,CAAC;gBACjB,CAAC;gBACD,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;oBAC1B,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;gBACpC,CAAC;gBACD,OAAO,kBAAkB,CAAC,OAAO,CAC/B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,CACV,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACI,MAAM,CAAO,MAAM;6DAAmB,EAC3C,IAAI,EACJ,OAAO,GACU;YACjB,MAAM,cAAc,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAc,CAAC;YAC/C,IAAI,YAAY,qBAAQ,OAAO,CAAE,CAAC;YAElC,IAAI,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,UAAU,EAAE,CAAC;gBAC/B,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;gBAC7C,YAAY,mCACP,OAAO,KACV,UAAU,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,UAAU,CAAC,GACnE,CAAC;YACJ,CAAC;YAED,MAAM,MAAM,GAAG,CAAC,MAAM,IAAA,wBAAiB,EAAC,IAAI,EAAE,YAAY,CAAC,CAAM,CAAC;YAElE,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;CACF;AA1DD,4CA0DC"}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import { ISoapClientPort } from "../../../outbound/ports/soap/soap-client.port";
|
|
6
6
|
import { Client } from "soap";
|
|
7
7
|
export declare class SoapClient implements ISoapClientPort {
|
|
8
|
+
private useHttpsAgent;
|
|
9
|
+
constructor(useHttpsAgent?: boolean);
|
|
8
10
|
createClient<T extends Client>(wsdlName: string, options?: any): Promise<T>;
|
|
9
11
|
setEndpoint(client: any, endpoint: string): void;
|
|
10
12
|
call<T extends [any, string, any, string]>(client: any, methodName: string, params: any): Promise<T>;
|
|
@@ -44,23 +44,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.SoapClient = void 0;
|
|
46
46
|
const soap_client_facade_1 = require("./soap-client-facade");
|
|
47
|
-
const
|
|
48
|
-
const ssl_constants_1 = require("../../../constants/ssl.constants");
|
|
47
|
+
const constants_1 = require("../../../constants");
|
|
49
48
|
const wsdl_strings_1 = require("./wsdl-strings");
|
|
49
|
+
const std_env_1 = require("std-env");
|
|
50
50
|
class SoapClient {
|
|
51
|
+
constructor(useHttpsAgent = constants_1.DEFAULT_USE_HTTPS_AGENT) {
|
|
52
|
+
this.useHttpsAgent = useHttpsAgent;
|
|
53
|
+
}
|
|
51
54
|
createClient(wsdlName, options) {
|
|
52
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
56
|
var _a;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
const finalOptions = Object.assign({ disableCache: true, forceSoap12Headers: (_a = options === null || options === void 0 ? void 0 : options.forceSoap12Headers) !== null && _a !== void 0 ? _a : false }, options);
|
|
58
|
+
// Only create HTTPS agent if:
|
|
59
|
+
// 1. We're in a Node.js environment (detected via std-env)
|
|
60
|
+
// 2. useHttpsAgent is enabled (see DEFAULT_USE_HTTPS_AGENT constant)
|
|
61
|
+
if (this.useHttpsAgent && std_env_1.isNode) {
|
|
62
|
+
try {
|
|
63
|
+
// Dynamic import to avoid issues in non-Node environments
|
|
64
|
+
const https = yield Promise.resolve().then(() => __importStar(require("https")));
|
|
65
|
+
const legacyHttpsAgent = new https.Agent({
|
|
66
|
+
rejectUnauthorized: true,
|
|
67
|
+
minDHSize: constants_1.MIN_DH_SIZE_LEGACY,
|
|
68
|
+
});
|
|
69
|
+
finalOptions.wsdl_options = Object.assign(Object.assign({}, finalOptions.wsdl_options), { httpsAgent: legacyHttpsAgent });
|
|
70
|
+
finalOptions.request = Object.assign(Object.assign({}, finalOptions.request), { httpsAgent: legacyHttpsAgent });
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
// If https module is not available (e.g., Cloudflare Workers), skip agent
|
|
74
|
+
// The SOAP library will use the default fetch adapter
|
|
75
|
+
// Silently continue without the agent - this is expected in non-Node environments
|
|
76
|
+
}
|
|
77
|
+
}
|
|
64
78
|
let wsdlXml;
|
|
65
79
|
if (options === null || options === void 0 ? void 0 : options.wsdlContent) {
|
|
66
80
|
wsdlXml = options.wsdlContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"soap-client.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,6DAAwD;AAExD,
|
|
1
|
+
{"version":3,"file":"soap-client.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/soap/soap-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,6DAAwD;AAExD,yDAGmC;AACnC,iDAA+C;AAC/C,qCAAiC;AAEjC,MAAa,UAAU;IAGrB,YAAY,gBAAyB,mCAAuB;QAC1D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAEK,YAAY,CAChB,QAAgB,EAChB,OAAa;;;YAEb,MAAM,YAAY,mBAChB,YAAY,EAAE,IAAI,EAClB,kBAAkB,EAAE,MAAA,O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AAC,WAAW,KAAK,UAAU,EAAE,CAAC;YACvD,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAEK,IAAI,CACR,MAAW,EACX,UAAkB,EAClB,MAAW;;YAEX,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE,CAAC;gBACxD,MAAM,IAAI,KAAK,CAAC,UAAU,UAAU,2BAA2B,CAAC,CAAC;YACnE,CAAC;YAED,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAe,CAAC;QAClD,CAAC;KAAA;CACF;AA7ED,gCA6EC"}
|
|
@@ -14,4 +14,10 @@ export interface AuthRepositoryConfig {
|
|
|
14
14
|
handleTicket?: boolean;
|
|
15
15
|
ticketStorage?: ITicketStoragePort;
|
|
16
16
|
credentials?: ILoginCredentials;
|
|
17
|
+
/**
|
|
18
|
+
* Enable HTTPS Agent for Node.js environments (required for legacy ARCA servers)
|
|
19
|
+
* Set to false when running in Cloudflare Workers or other edge runtimes
|
|
20
|
+
* @default true (enabled by default for Node.js compatibility)
|
|
21
|
+
*/
|
|
22
|
+
useHttpsAgent?: boolean;
|
|
17
23
|
}
|
|
@@ -18,6 +18,12 @@ export interface BaseSoapRepositoryConstructorConfig {
|
|
|
18
18
|
* @default true (uses SOAP 1.2 by default)
|
|
19
19
|
*/
|
|
20
20
|
useSoap12?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Enable HTTPS Agent for Node.js environments (required for legacy ARCA servers)
|
|
23
|
+
* Set to false when running in Cloudflare Workers or other edge runtimes
|
|
24
|
+
* @default true (enabled by default for Node.js compatibility)
|
|
25
|
+
*/
|
|
26
|
+
useHttpsAgent?: boolean;
|
|
21
27
|
}
|
|
22
28
|
export interface AuthenticatedProxyOptions {
|
|
23
29
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcasdk/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Arca TypeScript SDK - Core package for AFIP/ARCA integration",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"moment": "^2.29.4",
|
|
22
22
|
"node-forge": "^1.3.1",
|
|
23
23
|
"soap": "^1.0.0",
|
|
24
|
+
"std-env": "^3.10.0",
|
|
24
25
|
"winston": "^3.10.0",
|
|
25
26
|
"xml2js": "^0.6.2"
|
|
26
27
|
},
|
package/lib/arca.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Arca = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Arca - Main Facade Class
|
|
6
|
-
* Entry point for the ARCA SDK
|
|
7
|
-
* Orchestrates all services and adapters using hexagonal architecture
|
|
8
|
-
*/
|
|
9
|
-
const path_1 = require("path");
|
|
10
|
-
const file_system_ticket_storage_1 = require("./infrastructure/outbound/adapters/storage/file-system-ticket-storage");
|
|
11
|
-
const auth_repository_1 = require("./infrastructure/outbound/adapters/auth/auth.repository");
|
|
12
|
-
const winston_logger_1 = require("./infrastructure/outbound/adapters/logger/winston-logger");
|
|
13
|
-
const electronic_billing_service_1 = require("./application/services/electronic-billing.service");
|
|
14
|
-
const register_scope_four_service_1 = require("./application/services/register-scope-four.service");
|
|
15
|
-
const register_scope_five_service_1 = require("./application/services/register-scope-five.service");
|
|
16
|
-
const register_scope_ten_service_1 = require("./application/services/register-scope-ten.service");
|
|
17
|
-
const register_scope_thirteen_service_1 = require("./application/services/register-scope-thirteen.service");
|
|
18
|
-
const register_inscription_proof_service_1 = require("./application/services/register-inscription-proof.service");
|
|
19
|
-
const electronic_billing_repository_1 = require("./infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository");
|
|
20
|
-
const register_scope_four_repository_1 = require("./infrastructure/outbound/adapters/register/register-scope-four.repository");
|
|
21
|
-
const register_scope_five_repository_1 = require("./infrastructure/outbound/adapters/register/register-scope-five.repository");
|
|
22
|
-
const register_scope_ten_repository_1 = require("./infrastructure/outbound/adapters/register/register-scope-ten.repository");
|
|
23
|
-
const register_scope_thirteen_repository_1 = require("./infrastructure/outbound/adapters/register/register-scope-thirteen.repository");
|
|
24
|
-
const register_inscription_proof_repository_1 = require("./infrastructure/outbound/adapters/register/register-inscription-proof.repository");
|
|
25
|
-
const generic_service_1 = require("./application/services/generic.service");
|
|
26
|
-
const generic_repository_1 = require("./infrastructure/outbound/adapters/generic/generic-repository");
|
|
27
|
-
class Arca {
|
|
28
|
-
constructor(context) {
|
|
29
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
30
|
-
// Normalize context
|
|
31
|
-
this.context = Object.assign(Object.assign({}, context), { ticketPath: (_a = context.ticketPath) !== null && _a !== void 0 ? _a : (0, path_1.resolve)(__dirname, "infrastructure", "storage", "auth", "tickets") });
|
|
32
|
-
const ticketStorage = new file_system_ticket_storage_1.FileSystemTicketStorage({
|
|
33
|
-
ticketPath: this.context.ticketPath,
|
|
34
|
-
cuit: this.context.cuit,
|
|
35
|
-
production: (_b = this.context.production) !== null && _b !== void 0 ? _b : false,
|
|
36
|
-
});
|
|
37
|
-
const authRepository = new auth_repository_1.AuthRepository({
|
|
38
|
-
cert: this.context.cert,
|
|
39
|
-
key: this.context.key,
|
|
40
|
-
cuit: this.context.cuit,
|
|
41
|
-
production: (_c = this.context.production) !== null && _c !== void 0 ? _c : false,
|
|
42
|
-
handleTicket: (_d = this.context.handleTicket) !== null && _d !== void 0 ? _d : false,
|
|
43
|
-
ticketStorage: this.context.handleTicket ? undefined : ticketStorage,
|
|
44
|
-
credentials: this.context.credentials,
|
|
45
|
-
});
|
|
46
|
-
const logger = new winston_logger_1.WinstonLogger({
|
|
47
|
-
enableLogging: (_e = this.context.enableLogging) !== null && _e !== void 0 ? _e : false,
|
|
48
|
-
});
|
|
49
|
-
const electronicBillingRepository = new electronic_billing_repository_1.ElectronicBillingRepository({
|
|
50
|
-
authRepository,
|
|
51
|
-
logger,
|
|
52
|
-
cuit: this.context.cuit,
|
|
53
|
-
production: (_f = this.context.production) !== null && _f !== void 0 ? _f : false,
|
|
54
|
-
useSoap12: (_g = this.context.useSoap12) !== null && _g !== void 0 ? _g : true, // Default to SOAP 1.2
|
|
55
|
-
});
|
|
56
|
-
const registerScopeFourRepository = new register_scope_four_repository_1.RegisterScopeFourRepository({
|
|
57
|
-
authRepository,
|
|
58
|
-
logger,
|
|
59
|
-
cuit: this.context.cuit,
|
|
60
|
-
production: (_h = this.context.production) !== null && _h !== void 0 ? _h : false,
|
|
61
|
-
});
|
|
62
|
-
const registerScopeFiveRepository = new register_scope_five_repository_1.RegisterScopeFiveRepository({
|
|
63
|
-
authRepository,
|
|
64
|
-
logger,
|
|
65
|
-
cuit: this.context.cuit,
|
|
66
|
-
production: (_j = this.context.production) !== null && _j !== void 0 ? _j : false,
|
|
67
|
-
});
|
|
68
|
-
const registerScopeTenRepository = new register_scope_ten_repository_1.RegisterScopeTenRepository({
|
|
69
|
-
authRepository,
|
|
70
|
-
logger,
|
|
71
|
-
cuit: this.context.cuit,
|
|
72
|
-
production: (_k = this.context.production) !== null && _k !== void 0 ? _k : false,
|
|
73
|
-
});
|
|
74
|
-
const registerScopeThirteenRepository = new register_scope_thirteen_repository_1.RegisterScopeThirteenRepository({
|
|
75
|
-
authRepository,
|
|
76
|
-
logger,
|
|
77
|
-
cuit: this.context.cuit,
|
|
78
|
-
production: (_l = this.context.production) !== null && _l !== void 0 ? _l : false,
|
|
79
|
-
});
|
|
80
|
-
const registerInscriptionProofRepository = new register_inscription_proof_repository_1.RegisterInscriptionProofRepository({
|
|
81
|
-
authRepository,
|
|
82
|
-
logger,
|
|
83
|
-
cuit: this.context.cuit,
|
|
84
|
-
production: (_m = this.context.production) !== null && _m !== void 0 ? _m : false,
|
|
85
|
-
});
|
|
86
|
-
const genericRepository = new generic_repository_1.GenericRepository({
|
|
87
|
-
authRepository,
|
|
88
|
-
logger,
|
|
89
|
-
cuit: this.context.cuit,
|
|
90
|
-
production: (_o = this.context.production) !== null && _o !== void 0 ? _o : false,
|
|
91
|
-
useSoap12: (_p = this.context.useSoap12) !== null && _p !== void 0 ? _p : true,
|
|
92
|
-
});
|
|
93
|
-
this._electronicBillingService = new electronic_billing_service_1.ElectronicBillingService(electronicBillingRepository);
|
|
94
|
-
this._registerInscriptionProofService = new register_inscription_proof_service_1.RegisterInscriptionProofService(registerInscriptionProofRepository);
|
|
95
|
-
this._registerScopeFourService = new register_scope_four_service_1.RegisterScopeFourService(registerScopeFourRepository);
|
|
96
|
-
this._registerScopeFiveService = new register_scope_five_service_1.RegisterScopeFiveService(registerScopeFiveRepository);
|
|
97
|
-
this._registerScopeTenService = new register_scope_ten_service_1.RegisterScopeTenService(registerScopeTenRepository);
|
|
98
|
-
this._registerScopeThirteenService = new register_scope_thirteen_service_1.RegisterScopeThirteenService(registerScopeThirteenRepository);
|
|
99
|
-
this._genericService = new generic_service_1.GenericService(genericRepository);
|
|
100
|
-
}
|
|
101
|
-
get electronicBillingService() {
|
|
102
|
-
return this._electronicBillingService;
|
|
103
|
-
}
|
|
104
|
-
get registerInscriptionProofService() {
|
|
105
|
-
return this._registerInscriptionProofService;
|
|
106
|
-
}
|
|
107
|
-
get registerScopeFourService() {
|
|
108
|
-
return this._registerScopeFourService;
|
|
109
|
-
}
|
|
110
|
-
get registerScopeFiveService() {
|
|
111
|
-
return this._registerScopeFiveService;
|
|
112
|
-
}
|
|
113
|
-
get registerScopeTenService() {
|
|
114
|
-
return this._registerScopeTenService;
|
|
115
|
-
}
|
|
116
|
-
get registerScopeThirteenService() {
|
|
117
|
-
return this._registerScopeThirteenService;
|
|
118
|
-
}
|
|
119
|
-
get genericService() {
|
|
120
|
-
return this._genericService;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.Arca = Arca;
|
|
124
|
-
//# sourceMappingURL=arca.js.map
|
package/lib/arca.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arca.js","sourceRoot":"","sources":["../src/arca.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,+BAA+B;AAE/B,qHAA+G;AAC/G,4FAAwF;AACxF,4FAAwF;AAIxF,iGAA4F;AAC5F,mGAA6F;AAC7F,mGAA6F;AAC7F,iGAA2F;AAC3F,2GAAqG;AACrG,iHAA2G;AAC3G,sIAAiI;AACjI,8HAAwH;AACxH,8HAAwH;AACxH,4HAAsH;AACtH,sIAAgI;AAChI,4IAAsI;AACtI,2EAAuE;AAEvE,qGAAiG;AAEjG,MAAa,IAAI;IAUf,YAAY,OAAgB;;QAC1B,oBAAoB;QACpB,IAAI,CAAC,OAAO,mCACP,OAAO,KACV,UAAU,EACR,MAAA,OAAO,CAAC,UAAU,mCAClB,IAAA,cAAO,EAAC,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,GACrE,CAAC;QAEF,MAAM,aAAa,GAAG,IAAI,oDAAuB,CAAC;YAChD,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,UAAW;YACpC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;SAC7C,CAAC,CAAC;QACH,MAAM,cAAc,GAAkC,IAAI,gCAAc,CAAC;YACvE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG;YACrB,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI;YACvB,UAAU,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,UAAU,mCAAI,KAAK;YAC5C,YAAY,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,YAAY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