facturas 0.12.2 → 0.12.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/dist/{chunk-D5ZWXTCV.mjs → chunk-3EJINDBP.mjs} +4 -4
- package/dist/{chunk-D5ZWXTCV.mjs.map → chunk-3EJINDBP.mjs.map} +1 -1
- package/dist/{chunk-BP72XNPS.mjs → chunk-7V5S3ISG.mjs} +135 -40
- package/dist/chunk-7V5S3ISG.mjs.map +1 -0
- package/dist/{chunk-ZOSNASXB.mjs → chunk-BYEP3ABS.mjs} +1 -1
- package/dist/chunk-BYEP3ABS.mjs.map +1 -0
- package/dist/{chunk-UDX6HLAU.mjs → chunk-PHXH34L6.mjs} +2 -2
- package/dist/{chunk-7LEKQ4P7.mjs → chunk-WVKVJTFG.mjs} +2 -2
- package/dist/{chunk-QHYJ424J.mjs → chunk-YYDSBHMO.mjs} +3 -3
- package/dist/{chunk-VGNLXU4T.mjs → chunk-ZZDL6I56.mjs} +3 -3
- package/dist/cli.d.ts +3 -3
- package/dist/cli.mjs +6 -6
- package/dist/{client-DbK78fyQ.d.ts → client-tzfxAy7w.d.ts} +47 -42
- package/dist/{decimal-xie0oMOQ.d.ts → decimal-CgWMOiAC.d.ts} +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/{fiscal-evidence-Dpj-Iao8.d.ts → fiscal-evidence-DXl_U1uz.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +7 -7
- package/dist/padron.mjs +2 -2
- package/dist/wsfe.d.ts +3 -3
- package/dist/wsfe.mjs +4 -4
- package/dist/wsmtxca.d.ts +1 -1
- package/dist/wsmtxca.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-BP72XNPS.mjs.map +0 -1
- package/dist/chunk-ZOSNASXB.mjs.map +0 -1
- /package/dist/{chunk-UDX6HLAU.mjs.map → chunk-PHXH34L6.mjs.map} +0 -0
- /package/dist/{chunk-7LEKQ4P7.mjs.map → chunk-WVKVJTFG.mjs.map} +0 -0
- /package/dist/{chunk-QHYJ424J.mjs.map → chunk-YYDSBHMO.mjs.map} +0 -0
- /package/dist/{chunk-VGNLXU4T.mjs.map → chunk-ZZDL6I56.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/internal/redaction.ts","../src/errors.ts"],"sourcesContent":["export const MAX_DIAGNOSTIC_PREVIEW_LENGTH = 4096;\n\nconst MAX_DIAGNOSTIC_SCALAR_LENGTH = 512;\nconst SENSITIVE_XML_ELEMENT_NAME = \"((?:[A-Za-z_][\\\\w.-]*:)?(?:Token|Sign))\";\nconst PAIRED_SENSITIVE_XML_ELEMENT = new RegExp(\n `<${SENSITIVE_XML_ELEMENT_NAME}\\\\b[^>]*>[\\\\s\\\\S]*?<\\\\/\\\\1\\\\s*>`,\n \"gi\"\n);\nconst SELF_CLOSING_SENSITIVE_XML_ELEMENT = new RegExp(\n `<${SENSITIVE_XML_ELEMENT_NAME}\\\\b[^>]*\\\\/\\\\s*>`,\n \"gi\"\n);\nconst UNTERMINATED_SENSITIVE_XML_ELEMENT = new RegExp(\n `<${SENSITIVE_XML_ELEMENT_NAME}\\\\b[^>]*>[^<]*`,\n \"gi\"\n);\n\nexport type ResponseBodyDiagnostic = {\n responseBodyLength: number;\n responseBodyPreview: string;\n};\n\nexport type SafeErrorDiagnostic = {\n errorName?: string;\n errorCode?: string;\n statusCode?: number;\n contentType?: string;\n responseBodyLength?: number;\n responseBodyPreview?: string;\n faultCode?: string;\n};\n\n/** Redacts credential-bearing XML elements and applies the global preview bound. */\nexport function redactDiagnosticPreview(\n value: string,\n requestedMaxLength = MAX_DIAGNOSTIC_PREVIEW_LENGTH\n): string {\n const maxLength = normalizePreviewLength(requestedMaxLength);\n\n return value\n .replace(\n PAIRED_SENSITIVE_XML_ELEMENT,\n (_match, tagName: string) => `<${tagName}>[REDACTED]</${tagName}>`\n )\n .replace(\n SELF_CLOSING_SENSITIVE_XML_ELEMENT,\n (_match, tagName: string) => `<${tagName}>[REDACTED]</${tagName}>`\n )\n .replace(\n UNTERMINATED_SENSITIVE_XML_ELEMENT,\n (_match, tagName: string) => `<${tagName}>[REDACTED]`\n )\n .slice(0, maxLength);\n}\n\n/** Produces the only response-body shape allowed in errors and logs. */\nexport function createResponseBodyDiagnostic(\n responseBody: string,\n requestedMaxLength = MAX_DIAGNOSTIC_PREVIEW_LENGTH\n): ResponseBodyDiagnostic {\n return {\n responseBodyLength: responseBody.length,\n responseBodyPreview: redactDiagnosticPreview(\n responseBody,\n requestedMaxLength\n ),\n };\n}\n\n/** Extracts a scalar allowlist from an error without exposing the error or cause. */\nexport function createSafeErrorDiagnostic(error: unknown): SafeErrorDiagnostic {\n if (!(error && typeof error === \"object\")) {\n return {};\n }\n\n const candidate = error as Record<string, unknown>;\n const diagnostic: SafeErrorDiagnostic = {};\n\n assignSafeString(diagnostic, \"errorName\", candidate.name);\n assignSafeString(diagnostic, \"errorCode\", candidate.code);\n assignSafeNumber(diagnostic, \"statusCode\", candidate.statusCode);\n assignSafeString(diagnostic, \"contentType\", candidate.contentType);\n assignSafeNumber(\n diagnostic,\n \"responseBodyLength\",\n candidate.responseBodyLength\n );\n if (typeof candidate.responseBodyPreview === \"string\") {\n diagnostic.responseBodyPreview = redactDiagnosticPreview(\n candidate.responseBodyPreview\n );\n }\n assignSafeString(diagnostic, \"faultCode\", candidate.faultCode);\n\n return diagnostic;\n}\n\nfunction normalizePreviewLength(requestedMaxLength: number): number {\n if (!Number.isFinite(requestedMaxLength)) {\n return MAX_DIAGNOSTIC_PREVIEW_LENGTH;\n }\n\n return Math.max(\n 0,\n Math.min(Math.trunc(requestedMaxLength), MAX_DIAGNOSTIC_PREVIEW_LENGTH)\n );\n}\n\nfunction assignSafeString<\n TKey extends \"errorName\" | \"errorCode\" | \"contentType\" | \"faultCode\",\n>(target: SafeErrorDiagnostic, key: TKey, value: unknown): void {\n if (typeof value === \"string\") {\n target[key] = redactDiagnosticPreview(value, MAX_DIAGNOSTIC_SCALAR_LENGTH);\n }\n}\n\nfunction assignSafeNumber<TKey extends \"statusCode\" | \"responseBodyLength\">(\n target: SafeErrorDiagnostic,\n key: TKey,\n value: unknown\n): void {\n if (typeof value === \"number\" && Number.isFinite(value)) {\n target[key] = value;\n }\n}\n","import { redactDiagnosticPreview } from \"./internal/redaction\";\nimport type { ArcaServiceName } from \"./internal/types\";\nimport type {\n ArcaFiscalIssue,\n ArcaFiscalResultLevel,\n ArcaFiscalResults,\n} from \"./services/fiscal-evidence\";\n\n/** Base error class for all ARCA-related errors. */\nexport class ArcaError extends Error {\n readonly code: string;\n override readonly name: string = \"ArcaError\";\n\n constructor(message: string, code = \"ARCA_ERROR\", options?: ErrorOptions) {\n super(message, options);\n this.code = code;\n }\n}\n\n/** Thrown when the ARCA client configuration is missing or invalid. */\nexport class ArcaConfigurationError extends ArcaError {\n override readonly name: string = \"ArcaConfigurationError\";\n\n constructor(message: string, options?: ErrorOptions) {\n super(message, \"ARCA_CONFIGURATION_ERROR\", options);\n }\n}\n\n/** Stable routing codes for caller-provided input failures. */\nexport type ArcaInputErrorCode =\n | \"ARCA_INPUT_IDEMPOTENCY_MISMATCH\"\n | \"ARCA_INPUT_RESERVATION_NOT_FOUND\"\n | \"ARCA_INPUT_INVALID_DATE\"\n | \"ARCA_INPUT_INVALID_AMOUNT\"\n | \"ARCA_INPUT_AMOUNT_PRECISION\"\n | \"ARCA_INPUT_AMOUNT_MISMATCH\"\n | \"ARCA_INPUT_INVALID_EXCHANGE_RATE\"\n | \"ARCA_INPUT_INVALID_VALUE\"\n | \"ARCA_INPUT_MISSING_FIELD\"\n | \"ARCA_INPUT_RESERVED_FIELD\";\n\nexport type ArcaInputErrorOptions = ErrorOptions & {\n code: ArcaInputErrorCode;\n field?: string;\n expected?: string;\n};\n\n/** Thrown when caller-provided input data is missing or invalid. */\nexport class ArcaInputError extends ArcaError {\n declare readonly code: ArcaInputErrorCode;\n override readonly name: string = \"ArcaInputError\";\n readonly field?: string;\n readonly expected?: string;\n\n constructor(message: string, options: ArcaInputErrorOptions) {\n super(message, options.code, options);\n this.field = options.field;\n this.expected = options.expected;\n }\n}\n\n/** Stable reasons exposed for explicit ARCA authentication rejections. */\nexport type ArcaAuthenticationReason =\n | \"invalid_token\"\n | \"unauthorized_computer\"\n | \"missing_relationship\"\n | \"authentication_rejected\";\n\nexport type ArcaAuthenticationErrorOptions = ErrorOptions & {\n reason: ArcaAuthenticationReason;\n service: ArcaServiceName;\n operation: string;\n providerCode?: string | number;\n};\n\n/** Thrown when ARCA explicitly rejects credentials before an operation runs. */\nexport class ArcaAuthenticationError extends ArcaError {\n declare readonly code: \"ARCA_AUTHENTICATION_ERROR\";\n override readonly name: string = \"ArcaAuthenticationError\";\n readonly reason: ArcaAuthenticationReason;\n readonly service: ArcaServiceName;\n readonly operation: string;\n readonly providerCode?: string | number;\n\n constructor(message: string, options: ArcaAuthenticationErrorOptions) {\n super(\n redactDiagnosticPreview(message),\n \"ARCA_AUTHENTICATION_ERROR\",\n options\n );\n this.reason = options.reason;\n this.service = options.service;\n this.operation = options.operation;\n this.providerCode = normalizeProviderCode(options.providerCode);\n }\n}\n\n/** Narrows unknown failures to the explicit authentication error contract. */\nexport function isArcaAuthenticationError(\n error: unknown\n): error is ArcaAuthenticationError {\n return error instanceof ArcaAuthenticationError;\n}\n\n/** Thrown when an HTTP request to an ARCA endpoint fails at the transport level. */\nexport class ArcaTransportError extends ArcaError {\n override readonly name: string = \"ArcaTransportError\";\n readonly statusCode?: number;\n readonly contentType?: string;\n readonly responseBodyLength?: number;\n readonly responseBodyPreview?: string;\n\n constructor(\n message: string,\n options?: ErrorOptions & {\n statusCode?: number;\n contentType?: string;\n responseBodyLength?: number;\n responseBodyPreview?: string;\n }\n ) {\n super(message, \"ARCA_TRANSPORT_ERROR\", options);\n this.statusCode = options?.statusCode;\n this.contentType = options?.contentType;\n this.responseBodyLength = options?.responseBodyLength;\n this.responseBodyPreview =\n options?.responseBodyPreview === undefined\n ? undefined\n : redactDiagnosticPreview(options.responseBodyPreview);\n }\n}\n\n/** Thrown when the SOAP response contains a Fault element. */\nexport class ArcaSoapFaultError extends ArcaError {\n override readonly name: string = \"ArcaSoapFaultError\";\n readonly faultCode?: string;\n\n constructor(\n message: string,\n options?: ErrorOptions & {\n faultCode?: string;\n }\n ) {\n super(redactDiagnosticPreview(message), \"ARCA_SOAP_FAULT\", options);\n this.faultCode =\n options?.faultCode === undefined\n ? undefined\n : redactDiagnosticPreview(options.faultCode);\n }\n}\n\n/** Thrown when a response cannot be parsed as a valid SOAP envelope. */\nexport class ArcaInvalidSoapResponseError extends ArcaError {\n override readonly name: string = \"ArcaInvalidSoapResponseError\";\n readonly service?: ArcaServiceName;\n readonly operation?: string;\n readonly endpointUrl?: string;\n readonly statusCode?: number;\n readonly contentType?: string;\n readonly responseBodyLength?: number;\n readonly responseBodyPreview?: string;\n\n constructor(\n message: string,\n options?: ErrorOptions & {\n service?: ArcaServiceName;\n operation?: string;\n endpointUrl?: string;\n statusCode?: number;\n contentType?: string;\n responseBodyLength?: number;\n responseBodyPreview?: string;\n }\n ) {\n super(message, \"ARCA_INVALID_SOAP_RESPONSE\", options);\n this.service = options?.service;\n this.operation = options?.operation;\n this.endpointUrl = options?.endpointUrl;\n this.statusCode = options?.statusCode;\n this.contentType = options?.contentType;\n this.responseBodyLength = options?.responseBodyLength;\n this.responseBodyPreview =\n options?.responseBodyPreview === undefined\n ? undefined\n : redactDiagnosticPreview(options.responseBodyPreview);\n }\n}\n\n/** Thrown when an ARCA service (WSFE, WSMTXCA, Padron) returns a domain-level error. */\nexport class ArcaServiceError extends ArcaError {\n override readonly name: string = \"ArcaServiceError\";\n readonly serviceCode?: string | number;\n readonly service?: ArcaServiceName;\n readonly operation?: string;\n readonly result?: string;\n readonly resultLevel?: ArcaFiscalResultLevel;\n readonly results?: ArcaFiscalResults;\n readonly cae?: string;\n readonly issues?: readonly ArcaFiscalIssue[];\n\n constructor(\n message: string,\n options?: ErrorOptions & {\n serviceCode?: string | number;\n service?: ArcaServiceName;\n operation?: string;\n result?: string;\n resultLevel?: ArcaFiscalResultLevel;\n results?: ArcaFiscalResults;\n cae?: string;\n issues?: readonly ArcaFiscalIssue[];\n }\n ) {\n super(message, \"ARCA_SERVICE_ERROR\", options);\n this.serviceCode = options?.serviceCode;\n this.service = options?.service;\n this.operation = options?.operation;\n this.result = options?.result;\n this.resultLevel = options?.resultLevel;\n this.results = options?.results;\n this.cae = options?.cae;\n this.issues = options?.issues;\n }\n}\n\nfunction normalizeProviderCode(\n providerCode: string | number | undefined\n): string | number | undefined {\n if (typeof providerCode === \"number\") {\n return Number.isFinite(providerCode) ? providerCode : undefined;\n }\n if (typeof providerCode === \"string\") {\n return redactDiagnosticPreview(providerCode, 512);\n }\n return undefined;\n}\n\n/** Narrow error evidence: never includes a cause, raw response or stack. */\nexport type ArcaSafeErrorMetadata = {\n name: string;\n message: string;\n code?: string;\n statusCode?: number;\n};\n\nexport function toArcaSafeErrorMetadata(error: unknown): ArcaSafeErrorMetadata {\n if (!(error instanceof Error)) {\n return { name: \"UnknownError\", message: String(error) };\n }\n return {\n name: error.name,\n message: error.message,\n ...(error instanceof ArcaError ? { code: error.code } : {}),\n ...(error instanceof ArcaTransportError && error.statusCode !== undefined\n ? { statusCode: error.statusCode }\n : {}),\n };\n}\n"],"mappings":";AAAO,IAAM,gCAAgC;AAE7C,IAAM,+BAA+B;AACrC,IAAM,6BAA6B;AACnC,IAAM,+BAA+B,IAAI;AAAA,EACvC,IAAI,0BAA0B;AAAA,EAC9B;AACF;AACA,IAAM,qCAAqC,IAAI;AAAA,EAC7C,IAAI,0BAA0B;AAAA,EAC9B;AACF;AACA,IAAM,qCAAqC,IAAI;AAAA,EAC7C,IAAI,0BAA0B;AAAA,EAC9B;AACF;AAkBO,SAAS,wBACd,OACA,qBAAqB,+BACb;AACR,QAAM,YAAY,uBAAuB,kBAAkB;AAE3D,SAAO,MACJ;AAAA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UAAU;AACpC,WAAO,OAAO,SAAS,YAAY,IAAI,eAAe;AAAA,EACxD;AACA,MAAI,OAAO,iBAAiB,UAAU;AACpC,WAAO,wBAAwB,cAAc,GAAG;AAAA,EAClD;AACA,SAAO;AACT;AAUO,SAAS,wBAAwB,OAAuC;AAC7E,MAAI,EAAE,iBAAiB,QAAQ;AAC7B,WAAO,EAAE,MAAM,gBAAgB,SAAS,OAAO,KAAK,EAAE;AAAA,EACxD;AACA,SAAO;AAAA,IACL,MAAM,MAAM;AAAA,IACZ,SAAS,MAAM;AAAA,IACf,GAAI,iBAAiB,YAAY,EAAE,MAAM,MAAM,KAAK,IAAI,CAAC;AAAA,IACzD,GAAI,iBAAiB,sBAAsB,MAAM,eAAe,SAC5D,EAAE,YAAY,MAAM,WAAW,IAC/B,CAAC;AAAA,EACP;AACF;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ArcaServiceError,
|
|
4
4
|
ArcaSoapFaultError,
|
|
5
5
|
isArcaAuthenticationError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
7
7
|
|
|
8
8
|
// src/internal/authentication.ts
|
|
9
9
|
var WSFE_AUTHENTICATION_CODES = {
|
|
@@ -176,4 +176,4 @@ export {
|
|
|
176
176
|
createArcaAuthenticationEvidence,
|
|
177
177
|
executeWithAuthenticationRecovery
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-PHXH34L6.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ArcaSoapFaultError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
4
4
|
|
|
5
5
|
// src/services/padron.ts
|
|
6
6
|
function createPadronService(options) {
|
|
@@ -103,4 +103,4 @@ async function executePadronOperation(options, service, operation, body) {
|
|
|
103
103
|
export {
|
|
104
104
|
createPadronService
|
|
105
105
|
};
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-WVKVJTFG.mjs.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
classifyArcaAuthenticationIssues,
|
|
7
7
|
createArcaAuthenticationEvidence,
|
|
8
8
|
executeWithAuthenticationRecovery
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PHXH34L6.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ArcaInputError,
|
|
12
12
|
ArcaInvalidSoapResponseError,
|
|
13
13
|
ArcaServiceError,
|
|
14
14
|
ArcaSoapFaultError,
|
|
15
15
|
ArcaTransportError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
17
17
|
|
|
18
18
|
// src/internal/decimal.ts
|
|
19
19
|
var AMOUNT_SCALE = 100;
|
|
@@ -1608,4 +1608,4 @@ export {
|
|
|
1608
1608
|
normalizeWsfeDateInput,
|
|
1609
1609
|
calculateWsfeAmounts
|
|
1610
1610
|
};
|
|
1611
|
-
//# sourceMappingURL=chunk-
|
|
1611
|
+
//# sourceMappingURL=chunk-YYDSBHMO.mjs.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
calculateVatMinorUnits,
|
|
4
4
|
calculateWsfeAmounts,
|
|
5
5
|
serializeArcaExchangeRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YYDSBHMO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ARCA_CURRENCY_IDS,
|
|
9
9
|
ARCA_VOUCHER_TYPES
|
|
10
10
|
} from "./chunk-GX5ERXT6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ArcaInputError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
14
14
|
|
|
15
15
|
// src/services/wsfe-builders.ts
|
|
16
16
|
function buildFacturaB(input) {
|
|
@@ -166,4 +166,4 @@ export {
|
|
|
166
166
|
buildFacturaB,
|
|
167
167
|
buildFacturaC
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-ZZDL6I56.mjs.map
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as ArcaClient } from './client-
|
|
1
|
+
import { A as ArcaClient } from './client-tzfxAy7w.js';
|
|
2
2
|
import { A as ArcaClientOptions, a as ArcaClientConfig } from './types-SdBQAflw.js';
|
|
3
3
|
import { W as WsaaAuthModule } from './index-CT1ffEAL.js';
|
|
4
4
|
import './padron.js';
|
|
5
|
-
import './decimal-
|
|
6
|
-
import './fiscal-evidence-
|
|
5
|
+
import './decimal-CgWMOiAC.js';
|
|
6
|
+
import './fiscal-evidence-DXl_U1uz.js';
|
|
7
7
|
import './constants.js';
|
|
8
8
|
import './wsmtxca.js';
|
|
9
9
|
|
package/dist/cli.mjs
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
createWsaaAuthModule,
|
|
8
8
|
createWsaaStoreAdapter,
|
|
9
9
|
discoverArcaClientConfig
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-7V5S3ISG.mjs";
|
|
11
|
+
import "./chunk-WVKVJTFG.mjs";
|
|
12
|
+
import "./chunk-YYDSBHMO.mjs";
|
|
13
13
|
import "./chunk-GX5ERXT6.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-3EJINDBP.mjs";
|
|
15
|
+
import "./chunk-PHXH34L6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ArcaConfigurationError,
|
|
18
18
|
ArcaServiceError,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ArcaTransportError,
|
|
21
21
|
isArcaAuthenticationError,
|
|
22
22
|
toArcaSafeErrorMetadata
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
24
24
|
|
|
25
25
|
// src/cli/main.ts
|
|
26
26
|
import { tmpdir } from "os";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h as ArcaEnvironment, A as ArcaClientOptions } from './types-SdBQAflw.js';
|
|
2
2
|
import { PadronService } from './padron.js';
|
|
3
|
-
import { s as WsfeVoucherInput, r as WsfeVoucherInfo, S as SupportedVatRate, i as WsfeDateInput, o as WsfeService } from './decimal-
|
|
3
|
+
import { s as WsfeVoucherInput, r as WsfeVoucherInfo, S as SupportedVatRate, i as WsfeDateInput, o as WsfeService } from './decimal-CgWMOiAC.js';
|
|
4
4
|
import { VoucherClass, ReceiverCondition, IssuerCondition } from './constants.js';
|
|
5
|
-
import { A as ArcaAuthorizationOutcome, i as ArcaFiscalIssue, q as ArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
5
|
+
import { A as ArcaAuthorizationOutcome, i as ArcaFiscalIssue, q as ArcaSafeErrorMetadata } from './fiscal-evidence-DXl_U1uz.js';
|
|
6
6
|
import { WsmtxcaService } from './wsmtxca.js';
|
|
7
7
|
|
|
8
8
|
type VoucherCoordinates = {
|
|
@@ -76,34 +76,6 @@ type FiscalHeader = WsfeVoucherInput & {
|
|
|
76
76
|
};
|
|
77
77
|
declare function wsmtxcaRequest(data: FiscalHeader, number?: number): {
|
|
78
78
|
comprobanteCAERequest: {
|
|
79
|
-
arrayComprobantesAsociados: {
|
|
80
|
-
comprobanteAsociado: {
|
|
81
|
-
codigoTipoComprobante: number;
|
|
82
|
-
numeroPuntoVenta: number;
|
|
83
|
-
numeroComprobante: number;
|
|
84
|
-
cuit: string | undefined;
|
|
85
|
-
fechaEmision: string | undefined;
|
|
86
|
-
}[];
|
|
87
|
-
} | undefined;
|
|
88
|
-
periodoComprobantesAsociados: {
|
|
89
|
-
fechaDesde: string | undefined;
|
|
90
|
-
fechaHasta: string | undefined;
|
|
91
|
-
} | undefined;
|
|
92
|
-
arrayCompradores: {
|
|
93
|
-
comprador: {
|
|
94
|
-
codigoTipoDocumento: number;
|
|
95
|
-
numeroDocumento: number;
|
|
96
|
-
porcentaje: number;
|
|
97
|
-
}[];
|
|
98
|
-
} | undefined;
|
|
99
|
-
arrayOtrosTributos: {
|
|
100
|
-
otroTributo: {
|
|
101
|
-
codigo: number;
|
|
102
|
-
descripcion: string | undefined;
|
|
103
|
-
baseImponible: number;
|
|
104
|
-
importe: number;
|
|
105
|
-
}[];
|
|
106
|
-
} | undefined;
|
|
107
79
|
arrayItems: {
|
|
108
80
|
item: {
|
|
109
81
|
importeItem: number;
|
|
@@ -140,7 +112,43 @@ declare function wsmtxcaRequest(data: FiscalHeader, number?: number): {
|
|
|
140
112
|
codigo: number;
|
|
141
113
|
}[];
|
|
142
114
|
} | undefined;
|
|
115
|
+
arrayOtrosTributos?: {
|
|
116
|
+
otroTributo: {
|
|
117
|
+
codigo: number;
|
|
118
|
+
descripcion: string | undefined;
|
|
119
|
+
baseImponible: number;
|
|
120
|
+
importe: number;
|
|
121
|
+
}[];
|
|
122
|
+
} | undefined;
|
|
123
|
+
arrayComprobantesAsociados: {
|
|
124
|
+
comprobanteAsociado: {
|
|
125
|
+
codigoTipoComprobante: number;
|
|
126
|
+
numeroPuntoVenta: number;
|
|
127
|
+
numeroComprobante: number;
|
|
128
|
+
cuit: string | undefined;
|
|
129
|
+
fechaEmision: string | undefined;
|
|
130
|
+
}[];
|
|
131
|
+
} | undefined;
|
|
132
|
+
periodoComprobantesAsociados: {
|
|
133
|
+
fechaDesde: string | undefined;
|
|
134
|
+
fechaHasta: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
arrayCompradores: {
|
|
137
|
+
comprador: {
|
|
138
|
+
codigoTipoDocumento: number;
|
|
139
|
+
numeroDocumento: number;
|
|
140
|
+
porcentaje: number;
|
|
141
|
+
}[];
|
|
142
|
+
} | undefined;
|
|
143
143
|
cancelaEnMismaMonedaExtranjera?: "S" | "N" | undefined;
|
|
144
|
+
importeTotal: number;
|
|
145
|
+
codigoMoneda: string;
|
|
146
|
+
cotizacionMoneda: string | number | undefined;
|
|
147
|
+
codigoConcepto: number;
|
|
148
|
+
fechaServicioDesde: string | undefined;
|
|
149
|
+
fechaServicioHasta: string | undefined;
|
|
150
|
+
fechaVencimientoPago: string | undefined;
|
|
151
|
+
importeOtrosTributos?: number | undefined;
|
|
144
152
|
fechaEmision: string | undefined;
|
|
145
153
|
codigoTipoDocumento: number;
|
|
146
154
|
numeroDocumento: number;
|
|
@@ -149,14 +157,6 @@ declare function wsmtxcaRequest(data: FiscalHeader, number?: number): {
|
|
|
149
157
|
importeNoGravado: number;
|
|
150
158
|
importeExento: number;
|
|
151
159
|
importeSubtotal: number;
|
|
152
|
-
importeOtrosTributos: number;
|
|
153
|
-
importeTotal: number;
|
|
154
|
-
codigoMoneda: string;
|
|
155
|
-
cotizacionMoneda: string | number | undefined;
|
|
156
|
-
codigoConcepto: number;
|
|
157
|
-
fechaServicioDesde: string | undefined;
|
|
158
|
-
fechaServicioHasta: string | undefined;
|
|
159
|
-
fechaVencimientoPago: string | undefined;
|
|
160
160
|
numeroComprobante?: number | undefined;
|
|
161
161
|
codigoTipoComprobante: number;
|
|
162
162
|
numeroPuntoVenta: number;
|
|
@@ -430,6 +430,10 @@ type PeriodNoteInput = IssueInput & {
|
|
|
430
430
|
type DebitNoteInput = (CreditNoteInput & {
|
|
431
431
|
all?: never;
|
|
432
432
|
}) | PeriodNoteInput;
|
|
433
|
+
type NotePreview<S extends IssuanceService = "wsfe"> = IssuePreview<S> & {
|
|
434
|
+
/** Present for a note linked to a voucher; absent for a period note. */
|
|
435
|
+
original?: VoucherSummary;
|
|
436
|
+
};
|
|
433
437
|
type RecoveryOptions = Pick<IssueOptions, "representedTaxId" | "forceRefresh" | "include" | "signal">;
|
|
434
438
|
type VouchersService = {
|
|
435
439
|
/** Consults a durable reservation. Never allocates or authorizes a voucher. */
|
|
@@ -449,15 +453,16 @@ type VouchersService = {
|
|
|
449
453
|
/**
|
|
450
454
|
* Derives what issueCreditNote() would send. Unlike the zero-I/O preview(),
|
|
451
455
|
* it consults the original once: one read, no write and no number reserved.
|
|
452
|
-
* A
|
|
456
|
+
* A linked note returns that raw-free original in `original`. A period note
|
|
457
|
+
* carries its own business input, needs no lookup and has no `original`.
|
|
453
458
|
*/
|
|
454
459
|
previewCreditNote<O extends PreviewOptions = {
|
|
455
460
|
service?: never;
|
|
456
|
-
}>(input: CreditNoteInput | PeriodNoteInput, options?: O): Promise<
|
|
461
|
+
}>(input: CreditNoteInput | PeriodNoteInput, options?: O): Promise<NotePreview<ServiceFor<O>>>;
|
|
457
462
|
/** Same contract as previewCreditNote(), for issueDebitNote() input. */
|
|
458
463
|
previewDebitNote<O extends PreviewOptions = {
|
|
459
464
|
service?: never;
|
|
460
|
-
}>(input: DebitNoteInput, options?: O): Promise<
|
|
465
|
+
}>(input: DebitNoteInput, options?: O): Promise<NotePreview<ServiceFor<O>>>;
|
|
461
466
|
/**
|
|
462
467
|
* Issues a credit note against an authorized invoice or debit note of the
|
|
463
468
|
* ordinary, retention-legend or FCE families, or against a period with
|
|
@@ -539,4 +544,4 @@ type ArcaClient = {
|
|
|
539
544
|
*/
|
|
540
545
|
declare function createArcaClient(config?: ArcaClientOptions): ArcaClient;
|
|
541
546
|
|
|
542
|
-
export { type ArcaClient as A, type CreditNoteInput as C, type DebitNoteInput as D, type ExactIssueInput as E, type FceOptions as F, type InvoiceFamily as I, type PeriodNoteInput as P, type Receiver as R, type Tribute as T, type VatItem as V, type WsfeIdentityMatch as W, type AmountItem as a, type ArcaClientConfigView as b, type IssuanceFields as c, type IssuanceService as d, type IssueAmounts as e, type IssueCommon as f, type IssueInput as g, type IssueOptions as h, type IssueOutcome as i, type IssuePreview as j, type IssuedVoucher as k, type PreviewOptions as l, type RecoveryOptions as m, type VatRate as n, type VoucherAmounts as o, type VoucherCoordinates as p, type VoucherItemDetail as q, type VoucherSummary as r, type VouchersService as s, type WsmtxcaIssueRequest as t, createArcaClient as u, matchWsfeVoucherIdentity as v };
|
|
547
|
+
export { type ArcaClient as A, type CreditNoteInput as C, type DebitNoteInput as D, type ExactIssueInput as E, type FceOptions as F, type InvoiceFamily as I, type NotePreview as N, type PeriodNoteInput as P, type Receiver as R, type Tribute as T, type VatItem as V, type WsfeIdentityMatch as W, type AmountItem as a, type ArcaClientConfigView as b, type IssuanceFields as c, type IssuanceService as d, type IssueAmounts as e, type IssueCommon as f, type IssueInput as g, type IssueOptions as h, type IssueOutcome as i, type IssuePreview as j, type IssuedVoucher as k, type PreviewOptions as l, type RecoveryOptions as m, type VatRate as n, type VoucherAmounts as o, type VoucherCoordinates as p, type VoucherItemDetail as q, type VoucherSummary as r, type VouchersService as s, type WsmtxcaIssueRequest as t, createArcaClient as u, matchWsfeVoucherIdentity as v };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ArcaClientConfig } from './types-SdBQAflw.js';
|
|
2
2
|
import { W as WsaaAuthModule, S as SoapTransport } from './index-CT1ffEAL.js';
|
|
3
|
-
import { A as ArcaAuthorizationOutcome, a as ArcaVoucherLookupResult } from './fiscal-evidence-
|
|
3
|
+
import { A as ArcaAuthorizationOutcome, a as ArcaVoucherLookupResult } from './fiscal-evidence-DXl_U1uz.js';
|
|
4
4
|
|
|
5
5
|
/** Accepted public date inputs for WSFE request fields. */
|
|
6
6
|
type WsfeDateInput = `${number}${number}${number}${number}-${number}${number}-${number}${number}` | `${number}${number}${number}${number}${number}${number}${number}${number}`;
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './types-SdBQAflw.js';
|
|
2
|
-
export { b as ArcaAuthenticationError, c as ArcaAuthenticationErrorOptions, e as ArcaAuthenticationReason, g as ArcaConfigurationError, h as ArcaError, m as ArcaInputError, n as ArcaInputErrorCode, o as ArcaInputErrorOptions, p as ArcaInvalidSoapResponseError, q as ArcaSafeErrorMetadata, r as ArcaServiceError, s as ArcaSoapFaultError, t as ArcaTransportError, u as isArcaAuthenticationError, v as toArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
2
|
+
export { b as ArcaAuthenticationError, c as ArcaAuthenticationErrorOptions, e as ArcaAuthenticationReason, g as ArcaConfigurationError, h as ArcaError, m as ArcaInputError, n as ArcaInputErrorCode, o as ArcaInputErrorOptions, p as ArcaInvalidSoapResponseError, q as ArcaSafeErrorMetadata, r as ArcaServiceError, s as ArcaSoapFaultError, t as ArcaTransportError, u as isArcaAuthenticationError, v as toArcaSafeErrorMetadata } from './fiscal-evidence-DXl_U1uz.js';
|
package/dist/errors.mjs
CHANGED
|
@@ -12,7 +12,7 @@ declare class ArcaConfigurationError extends ArcaError {
|
|
|
12
12
|
constructor(message: string, options?: ErrorOptions);
|
|
13
13
|
}
|
|
14
14
|
/** Stable routing codes for caller-provided input failures. */
|
|
15
|
-
type ArcaInputErrorCode = "ARCA_INPUT_IDEMPOTENCY_MISMATCH" | "ARCA_INPUT_INVALID_DATE" | "ARCA_INPUT_INVALID_AMOUNT" | "ARCA_INPUT_AMOUNT_PRECISION" | "ARCA_INPUT_AMOUNT_MISMATCH" | "ARCA_INPUT_INVALID_EXCHANGE_RATE" | "ARCA_INPUT_INVALID_VALUE" | "ARCA_INPUT_MISSING_FIELD" | "ARCA_INPUT_RESERVED_FIELD";
|
|
15
|
+
type ArcaInputErrorCode = "ARCA_INPUT_IDEMPOTENCY_MISMATCH" | "ARCA_INPUT_RESERVATION_NOT_FOUND" | "ARCA_INPUT_INVALID_DATE" | "ARCA_INPUT_INVALID_AMOUNT" | "ARCA_INPUT_AMOUNT_PRECISION" | "ARCA_INPUT_AMOUNT_MISMATCH" | "ARCA_INPUT_INVALID_EXCHANGE_RATE" | "ARCA_INPUT_INVALID_VALUE" | "ARCA_INPUT_MISSING_FIELD" | "ARCA_INPUT_RESERVED_FIELD";
|
|
16
16
|
type ArcaInputErrorOptions = ErrorOptions & {
|
|
17
17
|
code: ArcaInputErrorCode;
|
|
18
18
|
field?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { a as AmountItem, A as ArcaClient, b as ArcaClientConfigView, C as CreditNoteInput, D as DebitNoteInput, E as ExactIssueInput, F as FceOptions, I as InvoiceFamily, c as IssuanceFields, d as IssuanceService, e as IssueAmounts, f as IssueCommon, g as IssueInput, h as IssueOptions, i as IssueOutcome, j as IssuePreview, k as IssuedVoucher, P as PeriodNoteInput, l as PreviewOptions, R as Receiver, m as RecoveryOptions, T as Tribute, V as VatItem, n as VatRate, o as VoucherAmounts, p as VoucherCoordinates, q as VoucherItemDetail, r as VoucherSummary, s as VouchersService, W as WsfeIdentityMatch, t as WsmtxcaIssueRequest, u as createArcaClient, v as matchWsfeVoucherIdentity } from './client-
|
|
1
|
+
export { a as AmountItem, A as ArcaClient, b as ArcaClientConfigView, C as CreditNoteInput, D as DebitNoteInput, E as ExactIssueInput, F as FceOptions, I as InvoiceFamily, c as IssuanceFields, d as IssuanceService, e as IssueAmounts, f as IssueCommon, g as IssueInput, h as IssueOptions, i as IssueOutcome, j as IssuePreview, k as IssuedVoucher, N as NotePreview, P as PeriodNoteInput, l as PreviewOptions, R as Receiver, m as RecoveryOptions, T as Tribute, V as VatItem, n as VatRate, o as VoucherAmounts, p as VoucherCoordinates, q as VoucherItemDetail, r as VoucherSummary, s as VouchersService, W as WsfeIdentityMatch, t as WsmtxcaIssueRequest, u as createArcaClient, v as matchWsfeVoucherIdentity } from './client-tzfxAy7w.js';
|
|
2
2
|
import { h as ArcaEnvironment, a as ArcaClientConfig, i as ArcaStore, j as ArcaWsaaSessionStore } from './types-SdBQAflw.js';
|
|
3
3
|
export { g as ArcaAuthCredentials, f as ArcaAuthOptions, A as ArcaClientConfig, k as ArcaLogLevel, l as ArcaLoggerConfig, m as ArcaPadronServiceName, n as ArcaRepresentedTaxId, b as ArcaServiceName, o as ArcaServiceTarget, e as ArcaWsaaServiceId, p as ArcaWsaaSessionKey } from './types-SdBQAflw.js';
|
|
4
4
|
export { ARCA_FINAL_CONSUMER_IDENTIFICATION_THRESHOLD_MINOR_UNITS, ARCA_INVOICE_CLASS_BY_ISSUER, ARCA_ISSUER_CONDITION_IDS, ARCA_RECEIVER_CONDITION_IDS, IssuerCondition, ReceiverCondition, VoucherClass } from './constants.js';
|
|
5
|
-
export { b as ArcaAuthenticationError, c as ArcaAuthenticationErrorOptions, d as ArcaAuthenticationEvidence, e as ArcaAuthenticationReason, f as ArcaAuthorizationIndeterminateReason, A as ArcaAuthorizationOutcome, g as ArcaConfigurationError, h as ArcaError, i as ArcaFiscalIssue, j as ArcaFiscalResultLevel, k as ArcaFiscalResults, l as ArcaFiscalService, m as ArcaInputError, n as ArcaInputErrorCode, o as ArcaInputErrorOptions, p as ArcaInvalidSoapResponseError, q as ArcaSafeErrorMetadata, r as ArcaServiceError, s as ArcaSoapFaultError, t as ArcaTransportError, a as ArcaVoucherLookupResult, u as isArcaAuthenticationError, v as toArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
5
|
+
export { b as ArcaAuthenticationError, c as ArcaAuthenticationErrorOptions, d as ArcaAuthenticationEvidence, e as ArcaAuthenticationReason, f as ArcaAuthorizationIndeterminateReason, A as ArcaAuthorizationOutcome, g as ArcaConfigurationError, h as ArcaError, i as ArcaFiscalIssue, j as ArcaFiscalResultLevel, k as ArcaFiscalResults, l as ArcaFiscalService, m as ArcaInputError, n as ArcaInputErrorCode, o as ArcaInputErrorOptions, p as ArcaInvalidSoapResponseError, q as ArcaSafeErrorMetadata, r as ArcaServiceError, s as ArcaSoapFaultError, t as ArcaTransportError, a as ArcaVoucherLookupResult, u as isArcaAuthenticationError, v as toArcaSafeErrorMetadata } from './fiscal-evidence-DXl_U1uz.js';
|
|
6
6
|
export { CreatePadronServiceOptions, PadronService, PadronTaxIdLookupResult, PadronTaxpayerResult, createPadronService } from './padron.js';
|
|
7
|
-
export { C as CreateWsfeServiceOptions, W as WsfeActivity, a as WsfeActivityType, b as WsfeAssociatedPeriod, c as WsfeAssociatedVoucher, d as WsfeAuthorizationOutcome, e as WsfeAuthorizeVoucherInput, f as WsfeBuyer, g as WsfeCatalogEntry, h as WsfeCurrencyType, i as WsfeDateInput, j as WsfeOptionalField, k as WsfeQuotation, l as WsfeReceiverVatCondition, m as WsfeSalesPoint, n as WsfeServerStatus, o as WsfeService, p as WsfeTax, q as WsfeVatRate, r as WsfeVoucherInfo, s as WsfeVoucherInput, t as WsfeVoucherLookupResult, u as createWsfeService } from './decimal-
|
|
7
|
+
export { C as CreateWsfeServiceOptions, W as WsfeActivity, a as WsfeActivityType, b as WsfeAssociatedPeriod, c as WsfeAssociatedVoucher, d as WsfeAuthorizationOutcome, e as WsfeAuthorizeVoucherInput, f as WsfeBuyer, g as WsfeCatalogEntry, h as WsfeCurrencyType, i as WsfeDateInput, j as WsfeOptionalField, k as WsfeQuotation, l as WsfeReceiverVatCondition, m as WsfeSalesPoint, n as WsfeServerStatus, o as WsfeService, p as WsfeTax, q as WsfeVatRate, r as WsfeVoucherInfo, s as WsfeVoucherInput, t as WsfeVoucherLookupResult, u as createWsfeService } from './decimal-CgWMOiAC.js';
|
|
8
8
|
export { BuildFacturaBInput, BuildFacturaCInput, WsfeBuilderCurrencyInput, WsfeBuilderVatRate, buildFacturaB, buildFacturaC } from './wsfe.js';
|
|
9
9
|
export { CreateWsmtxcaServiceOptions, WsmtxcaAuthorizationOutcome, WsmtxcaAuthorizeVoucherInput, WsmtxcaLastAuthorizedVoucherResult, WsmtxcaSalesPoint, WsmtxcaSalesPointsResult, WsmtxcaService, WsmtxcaVoucherInfo, WsmtxcaVoucherLookupOutcome, WsmtxcaVoucherLookupResult, createWsmtxcaService } from './wsmtxca.js';
|
|
10
10
|
import './index-CT1ffEAL.js';
|
package/dist/index.mjs
CHANGED
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
resolveArcaEnvironment,
|
|
12
12
|
storeCall,
|
|
13
13
|
withLease
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7V5S3ISG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
createPadronService
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WVKVJTFG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
buildFacturaB,
|
|
20
20
|
buildFacturaC
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZZDL6I56.mjs";
|
|
22
22
|
import {
|
|
23
23
|
createWsfeService
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YYDSBHMO.mjs";
|
|
25
25
|
import {
|
|
26
26
|
ARCA_FINAL_CONSUMER_IDENTIFICATION_THRESHOLD_MINOR_UNITS,
|
|
27
27
|
ARCA_INVOICE_CLASS_BY_ISSUER,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
} from "./chunk-GX5ERXT6.mjs";
|
|
31
31
|
import {
|
|
32
32
|
createWsmtxcaService
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-3EJINDBP.mjs";
|
|
34
|
+
import "./chunk-PHXH34L6.mjs";
|
|
35
35
|
import {
|
|
36
36
|
ArcaAuthenticationError,
|
|
37
37
|
ArcaConfigurationError,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
ArcaTransportError,
|
|
44
44
|
isArcaAuthenticationError,
|
|
45
45
|
toArcaSafeErrorMetadata
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-BYEP3ABS.mjs";
|
|
47
47
|
|
|
48
48
|
// src/store/memory.ts
|
|
49
49
|
function createMemoryStore() {
|
package/dist/padron.mjs
CHANGED
package/dist/wsfe.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as WsfeDateInput, S as SupportedVatRate, s as WsfeVoucherInput } from './decimal-
|
|
2
|
-
export { C as CreateWsfeServiceOptions, W as WsfeActivity, a as WsfeActivityType, b as WsfeAssociatedPeriod, c as WsfeAssociatedVoucher, d as WsfeAuthorizationOutcome, e as WsfeAuthorizeVoucherInput, f as WsfeBuyer, g as WsfeCatalogEntry, h as WsfeCurrencyType, j as WsfeOptionalField, k as WsfeQuotation, l as WsfeReceiverVatCondition, m as WsfeSalesPoint, n as WsfeServerStatus, o as WsfeService, p as WsfeTax, q as WsfeVatRate, r as WsfeVoucherInfo, t as WsfeVoucherLookupResult, u as createWsfeService } from './decimal-
|
|
1
|
+
import { i as WsfeDateInput, S as SupportedVatRate, s as WsfeVoucherInput } from './decimal-CgWMOiAC.js';
|
|
2
|
+
export { C as CreateWsfeServiceOptions, W as WsfeActivity, a as WsfeActivityType, b as WsfeAssociatedPeriod, c as WsfeAssociatedVoucher, d as WsfeAuthorizationOutcome, e as WsfeAuthorizeVoucherInput, f as WsfeBuyer, g as WsfeCatalogEntry, h as WsfeCurrencyType, j as WsfeOptionalField, k as WsfeQuotation, l as WsfeReceiverVatCondition, m as WsfeSalesPoint, n as WsfeServerStatus, o as WsfeService, p as WsfeTax, q as WsfeVatRate, r as WsfeVoucherInfo, t as WsfeVoucherLookupResult, u as createWsfeService } from './decimal-CgWMOiAC.js';
|
|
3
3
|
import './types-SdBQAflw.js';
|
|
4
4
|
import './index-CT1ffEAL.js';
|
|
5
|
-
import './fiscal-evidence-
|
|
5
|
+
import './fiscal-evidence-DXl_U1uz.js';
|
|
6
6
|
|
|
7
7
|
type WsfeBuilderCurrencyInput = {
|
|
8
8
|
currency?: "ARS";
|
package/dist/wsfe.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildFacturaB,
|
|
3
3
|
buildFacturaC
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZZDL6I56.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createWsfeService
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YYDSBHMO.mjs";
|
|
8
8
|
import "./chunk-GX5ERXT6.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-PHXH34L6.mjs";
|
|
10
|
+
import "./chunk-BYEP3ABS.mjs";
|
|
11
11
|
export {
|
|
12
12
|
buildFacturaB,
|
|
13
13
|
buildFacturaC,
|
package/dist/wsmtxca.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ArcaRepresentedTaxId, a as ArcaClientConfig } from './types-SdBQAflw.js';
|
|
2
2
|
import { W as WsaaAuthModule, S as SoapTransport } from './index-CT1ffEAL.js';
|
|
3
|
-
import { A as ArcaAuthorizationOutcome, a as ArcaVoucherLookupResult } from './fiscal-evidence-
|
|
3
|
+
import { A as ArcaAuthorizationOutcome, a as ArcaVoucherLookupResult } from './fiscal-evidence-DXl_U1uz.js';
|
|
4
4
|
|
|
5
5
|
/** Input data for one WSMTXCA voucher authorization. */
|
|
6
6
|
type WsmtxcaAuthorizeVoucherInput = {
|
package/dist/wsmtxca.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWsmtxcaService
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3EJINDBP.mjs";
|
|
4
|
+
import "./chunk-PHXH34L6.mjs";
|
|
5
|
+
import "./chunk-BYEP3ABS.mjs";
|
|
6
6
|
export {
|
|
7
7
|
createWsmtxcaService
|
|
8
8
|
};
|