facturas 0.17.0 → 0.18.0
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/README.md +2 -2
- package/dist/{chunk-MS4SSSYU.mjs → chunk-4RD5VQWC.mjs} +4 -28
- package/dist/chunk-4RD5VQWC.mjs.map +1 -0
- package/dist/{chunk-BYEP3ABS.mjs → chunk-EZ4HA3LC.mjs} +45 -5
- package/dist/{chunk-BYEP3ABS.mjs.map → chunk-EZ4HA3LC.mjs.map} +1 -1
- package/dist/{chunk-BNZECHTS.mjs → chunk-JP5IBMVI.mjs} +58 -21
- package/dist/chunk-JP5IBMVI.mjs.map +1 -0
- package/dist/{chunk-EXECWJEC.mjs → chunk-MRBFLBWX.mjs} +66 -6
- package/dist/chunk-MRBFLBWX.mjs.map +1 -0
- package/dist/{chunk-KD2WT535.mjs → chunk-OORNZFI5.mjs} +22 -9
- package/dist/chunk-OORNZFI5.mjs.map +1 -0
- package/dist/{chunk-PHXH34L6.mjs → chunk-WPHD2GQJ.mjs} +2 -2
- package/dist/cli.d.ts +2 -2
- package/dist/cli.mjs +7 -7
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-DFRttmTZ.d.ts → client-COK5u3oz.d.ts} +14 -4
- package/dist/errors.d.ts +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/{fiscal-evidence-Cecw1s05.d.ts → fiscal-evidence-B6UTFGmY.d.ts} +18 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +6 -6
- package/dist/padron.d.ts +28 -1
- package/dist/padron.mjs +2 -2
- package/dist/wsfe.d.ts +9 -13
- package/dist/wsfe.mjs +3 -3
- package/dist/wsmtxca.d.ts +2 -17
- package/dist/wsmtxca.mjs +3 -3
- package/package.json +2 -2
- package/dist/chunk-BNZECHTS.mjs.map +0 -1
- package/dist/chunk-EXECWJEC.mjs.map +0 -1
- package/dist/chunk-KD2WT535.mjs.map +0 -1
- package/dist/chunk-MS4SSSYU.mjs.map +0 -1
- /package/dist/{chunk-PHXH34L6.mjs.map → chunk-WPHD2GQJ.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as ArcaEnvironment, A as ArcaClientOptions } from './types-Su7QwloQ.js';
|
|
2
2
|
import { PadronService } from './padron.js';
|
|
3
|
-
import { e as ArcaAuthorizationOutcome, I as IssuanceService, h as ArcaFiscalIssue, o as ArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
3
|
+
import { e as ArcaAuthorizationOutcome, I as IssuanceService, h as ArcaFiscalIssue, o as ArcaSafeErrorMetadata } from './fiscal-evidence-B6UTFGmY.js';
|
|
4
4
|
import { WsfeVoucherInput, WsfeVoucherInfo, WsfeDateInput, WsfeService } from './wsfe.js';
|
|
5
5
|
import { VoucherClass, ReceiverCondition, IssuerCondition } from './constants.js';
|
|
6
6
|
import { WsmtxcaService } from './wsmtxca.js';
|
|
@@ -281,11 +281,13 @@ type ServiceFor<O extends IssueOptions> = "service" extends keyof O ? "wsmtxca"
|
|
|
281
281
|
type IssueRequest<S extends IssuanceService = "wsfe"> = S extends "wsmtxca" ? WsmtxcaIssueRequest : WsfeVoucherInput;
|
|
282
282
|
/**
|
|
283
283
|
* What issue() would send, derived with zero I/O. The voucher number is absent
|
|
284
|
-
* because it is only known when the number is reserved at issuance.
|
|
284
|
+
* because it is only known when the number is reserved at issuance. `date` is
|
|
285
|
+
* the voucher date as `YYYY-MM-DD`, the same value issue() returns.
|
|
285
286
|
*/
|
|
286
287
|
type IssuePreview<S extends IssuanceService = "wsfe"> = {
|
|
287
288
|
voucherClass: VoucherClass;
|
|
288
289
|
voucherType: number;
|
|
290
|
+
date: string;
|
|
289
291
|
header: FiscalHeader;
|
|
290
292
|
amounts: IssueAmounts;
|
|
291
293
|
request: IssueRequest<S>;
|
|
@@ -507,6 +509,12 @@ type NotePreview<S extends IssuanceService = "wsfe"> = IssuePreview<S> & {
|
|
|
507
509
|
};
|
|
508
510
|
type RecoveryOptions = Pick<IssueOptions, "representedTaxId" | "forceRefresh" | "include" | "abortSignal">;
|
|
509
511
|
type VouchersService = {
|
|
512
|
+
/**
|
|
513
|
+
* Consults one authorized voucher by its coordinates, the same shape a
|
|
514
|
+
* credit note's `for` takes. Returns `null` when ARCA has no such voucher and
|
|
515
|
+
* throws on any other provider error. Reads only: no store and no reserve.
|
|
516
|
+
*/
|
|
517
|
+
lookup(voucher: VoucherCoordinates, options?: PreviewOptions): Promise<VoucherSummary | null>;
|
|
510
518
|
/** Consults a durable reservation. Never allocates or authorizes a voucher. */
|
|
511
519
|
recover<O extends RecoveryOptions = {
|
|
512
520
|
include?: never;
|
|
@@ -602,6 +610,8 @@ type ArcaClient = {
|
|
|
602
610
|
previewCreditNote: VouchersService["previewCreditNote"];
|
|
603
611
|
/** Derives a debit note; reads the original but reserves no number. */
|
|
604
612
|
previewDebitNote: VouchersService["previewDebitNote"];
|
|
613
|
+
/** Consults one authorized voucher; `null` when ARCA has no such voucher. */
|
|
614
|
+
lookup: VouchersService["lookup"];
|
|
605
615
|
wsfe: WsfeService;
|
|
606
616
|
wsmtxca: WsmtxcaService;
|
|
607
617
|
padron: PadronService;
|
|
@@ -610,8 +620,8 @@ type ArcaClient = {
|
|
|
610
620
|
* Creates an ARCA client from the given configuration.
|
|
611
621
|
* Validates the config, wires WSAA authentication and SOAP transport,
|
|
612
622
|
* and returns an object with `issue()`, `preview()`, `issueCreditNote()`,
|
|
613
|
-
* `issueDebitNote()`, `previewCreditNote()`, `previewDebitNote()`, `recover()
|
|
614
|
-
* and the `.wsfe`, `.wsmtxca`, and `.padron` service modules.
|
|
623
|
+
* `issueDebitNote()`, `previewCreditNote()`, `previewDebitNote()`, `recover()`,
|
|
624
|
+
* `lookup()` and the `.wsfe`, `.wsmtxca`, and `.padron` service modules.
|
|
615
625
|
*
|
|
616
626
|
* @throws {ArcaConfigurationError} When the config is missing or invalid.
|
|
617
627
|
*/
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './types-Su7QwloQ.js';
|
|
2
|
-
export { A as ArcaAuthenticationError, a as ArcaAuthenticationErrorOptions, c as ArcaAuthenticationReason, f as ArcaConfigurationError, g as ArcaError, k as ArcaInputError, l as ArcaInputErrorCode, m as ArcaInputErrorOptions, n as ArcaInvalidSoapResponseError, o as ArcaSafeErrorMetadata, p as ArcaServiceError, q as ArcaSoapFaultError, r as ArcaTransportError, t as isArcaAuthenticationError, u as toArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
2
|
+
export { A as ArcaAuthenticationError, a as ArcaAuthenticationErrorOptions, c as ArcaAuthenticationReason, f as ArcaConfigurationError, g as ArcaError, k as ArcaInputError, l as ArcaInputErrorCode, m as ArcaInputErrorOptions, n as ArcaInvalidSoapResponseError, o as ArcaSafeErrorMetadata, p as ArcaServiceError, q as ArcaSoapFaultError, r as ArcaTransportError, t as isArcaAuthenticationError, u as toArcaSafeErrorMetadata } from './fiscal-evidence-B6UTFGmY.js';
|
package/dist/errors.mjs
CHANGED
|
@@ -110,12 +110,29 @@ declare class ArcaServiceError extends ArcaError {
|
|
|
110
110
|
issues?: readonly ArcaFiscalIssue[];
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Narrow error evidence, safe to log or store: the typed fields the error
|
|
115
|
+
* classes declare, never a cause, stack, raw response, response body preview,
|
|
116
|
+
* endpoint URL, fiscal issues or CAE.
|
|
117
|
+
*/
|
|
114
118
|
type ArcaSafeErrorMetadata = {
|
|
115
119
|
name: string;
|
|
116
120
|
message: string;
|
|
117
121
|
code?: string;
|
|
118
122
|
statusCode?: number;
|
|
123
|
+
contentType?: string;
|
|
124
|
+
service?: ArcaServiceName;
|
|
125
|
+
operation?: string;
|
|
126
|
+
/** ArcaAuthenticationError's stable reason. */
|
|
127
|
+
reason?: ArcaAuthenticationReason;
|
|
128
|
+
providerCode?: string | number;
|
|
129
|
+
faultCode?: string;
|
|
130
|
+
field?: string;
|
|
131
|
+
expected?: string;
|
|
132
|
+
/** ArcaServiceError's provider code, always as a string. */
|
|
133
|
+
serviceCode?: string;
|
|
134
|
+
result?: string;
|
|
135
|
+
resultLevel?: ArcaFiscalResultLevel;
|
|
119
136
|
};
|
|
120
137
|
declare function toArcaSafeErrorMetadata(error: unknown): ArcaSafeErrorMetadata;
|
|
121
138
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { a as AmountItem, A as ArcaClient, b as ArcaClientConfigView, C as CreditNoteInput, D as DebitNoteInput, F as FceOptions, c as FiscalHeader, I as InvoiceFamily, d as IssuanceFields, e as IssueAmounts, f as IssueCommon, g as IssueInput, h as IssueOptions, i as IssueOutcome, j as IssuePreview, k as IssueRequest, l as IssuedVoucher, m as ItemLine, N as NotePreview, P as PeriodNoteInput, n as PreviewOptions, R as Receiver, o as RecoveryOptions, T as Tribute, V as VatItem, p as VatRate, q as VoucherAmounts, r as VoucherCoordinates, s as VoucherSummary, t as VouchersService, W as WsfeIdentityMatch, u as WsmtxcaIssueRequest, v as WsmtxcaLine, w as createArcaClient, x as matchWsfeVoucherIdentity } from './client-
|
|
1
|
+
export { a as AmountItem, A as ArcaClient, b as ArcaClientConfigView, C as CreditNoteInput, D as DebitNoteInput, F as FceOptions, c as FiscalHeader, I as InvoiceFamily, d as IssuanceFields, e as IssueAmounts, f as IssueCommon, g as IssueInput, h as IssueOptions, i as IssueOutcome, j as IssuePreview, k as IssueRequest, l as IssuedVoucher, m as ItemLine, N as NotePreview, P as PeriodNoteInput, n as PreviewOptions, R as Receiver, o as RecoveryOptions, T as Tribute, V as VatItem, p as VatRate, q as VoucherAmounts, r as VoucherCoordinates, s as VoucherSummary, t as VouchersService, W as WsfeIdentityMatch, u as WsmtxcaIssueRequest, v as WsmtxcaLine, w as createArcaClient, x as matchWsfeVoucherIdentity } from './client-COK5u3oz.js';
|
|
2
2
|
import { h as ArcaEnvironment, a as ArcaClientConfig, i as ArcaStore, j as ArcaWsaaSessionStore } from './types-Su7QwloQ.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-Su7QwloQ.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 { A as ArcaAuthenticationError, a as ArcaAuthenticationErrorOptions, b as ArcaAuthenticationEvidence, c as ArcaAuthenticationReason, d as ArcaAuthorizationIndeterminateReason, e as ArcaAuthorizationOutcome, f as ArcaConfigurationError, g as ArcaError, h as ArcaFiscalIssue, i as ArcaFiscalResultLevel, j as ArcaFiscalResults, k as ArcaInputError, l as ArcaInputErrorCode, m as ArcaInputErrorOptions, n as ArcaInvalidSoapResponseError, o as ArcaSafeErrorMetadata, p as ArcaServiceError, q as ArcaSoapFaultError, r as ArcaTransportError, s as ArcaVoucherLookupResult, I as IssuanceService, t as isArcaAuthenticationError, u as toArcaSafeErrorMetadata } from './fiscal-evidence-
|
|
6
|
-
export { CreatePadronServiceOptions, PadronService, PadronTax, PadronTaxIdLookupResult, PadronTaxpayerResult, createPadronService } from './padron.js';
|
|
5
|
+
export { A as ArcaAuthenticationError, a as ArcaAuthenticationErrorOptions, b as ArcaAuthenticationEvidence, c as ArcaAuthenticationReason, d as ArcaAuthorizationIndeterminateReason, e as ArcaAuthorizationOutcome, f as ArcaConfigurationError, g as ArcaError, h as ArcaFiscalIssue, i as ArcaFiscalResultLevel, j as ArcaFiscalResults, k as ArcaInputError, l as ArcaInputErrorCode, m as ArcaInputErrorOptions, n as ArcaInvalidSoapResponseError, o as ArcaSafeErrorMetadata, p as ArcaServiceError, q as ArcaSoapFaultError, r as ArcaTransportError, s as ArcaVoucherLookupResult, I as IssuanceService, t as isArcaAuthenticationError, u as toArcaSafeErrorMetadata } from './fiscal-evidence-B6UTFGmY.js';
|
|
6
|
+
export { CreatePadronServiceOptions, PadronActivity, PadronAddress, PadronService, PadronTax, PadronTaxIdLookupResult, PadronTaxpayerResult, createPadronService } from './padron.js';
|
|
7
7
|
export { CreateWsfeServiceOptions, WsfeActivity, WsfeActivityType, WsfeAssociatedPeriod, WsfeAssociatedVoucher, WsfeAuthorizationOutcome, WsfeBuyer, WsfeCatalogEntry, WsfeCurrencyType, WsfeDateInput, WsfeIssueInput, WsfeOptionalField, WsfeQuotation, WsfeReceiverVatCondition, WsfeSalesPoint, WsfeServerStatus, WsfeService, WsfeTax, WsfeVatRate, WsfeVoucherInfo, WsfeVoucherInput, WsfeVoucherLookupResult, createWsfeService } from './wsfe.js';
|
|
8
|
-
export { CreateWsmtxcaServiceOptions, WsmtxcaAuthorizationOutcome, WsmtxcaIssueInput, WsmtxcaLastAuthorizedVoucherResult, WsmtxcaSalesPoint, WsmtxcaSalesPointsResult, WsmtxcaService, WsmtxcaVoucherInfo, WsmtxcaVoucherLookupOutcome,
|
|
8
|
+
export { CreateWsmtxcaServiceOptions, WsmtxcaAuthorizationOutcome, WsmtxcaIssueInput, WsmtxcaLastAuthorizedVoucherResult, WsmtxcaSalesPoint, WsmtxcaSalesPointsResult, WsmtxcaService, WsmtxcaVoucherInfo, WsmtxcaVoucherLookupOutcome, createWsmtxcaService } from './wsmtxca.js';
|
|
9
9
|
import './index-DAC3edtw.js';
|
|
10
10
|
|
|
11
11
|
/** Valid ARCA environment names. */
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
matchWsfeVoucherIdentity,
|
|
14
14
|
storeCall,
|
|
15
15
|
withLease
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JP5IBMVI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
ARCA_FINAL_CONSUMER_IDENTIFICATION_THRESHOLD_MINOR_UNITS,
|
|
19
19
|
ARCA_INVOICE_CLASS_BY_ISSUER,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
} from "./chunk-DHN6OQJP.mjs";
|
|
23
23
|
import {
|
|
24
24
|
createPadronService
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MRBFLBWX.mjs";
|
|
26
26
|
import {
|
|
27
27
|
createWsfeService
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OORNZFI5.mjs";
|
|
29
29
|
import {
|
|
30
30
|
createWsmtxcaService
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-4RD5VQWC.mjs";
|
|
32
|
+
import "./chunk-WPHD2GQJ.mjs";
|
|
33
33
|
import {
|
|
34
34
|
ArcaAuthenticationError,
|
|
35
35
|
ArcaConfigurationError,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
ArcaTransportError,
|
|
42
42
|
isArcaAuthenticationError,
|
|
43
43
|
toArcaSafeErrorMetadata
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EZ4HA3LC.mjs";
|
|
45
45
|
|
|
46
46
|
// src/store/memory.ts
|
|
47
47
|
function createMemoryStore() {
|
package/dist/padron.d.ts
CHANGED
|
@@ -10,11 +10,32 @@ type PadronTax = {
|
|
|
10
10
|
state?: string;
|
|
11
11
|
regime: "general" | "monotributo";
|
|
12
12
|
};
|
|
13
|
+
/** The domicilio fiscal. A field ARCA omits is absent. */
|
|
14
|
+
type PadronAddress = {
|
|
15
|
+
street?: string;
|
|
16
|
+
city?: string;
|
|
17
|
+
postalCode?: string;
|
|
18
|
+
/** ARCA's province code, the one invoices and IIBB registrations use. */
|
|
19
|
+
provinceId?: number;
|
|
20
|
+
province?: string;
|
|
21
|
+
};
|
|
22
|
+
/** One economic activity registered under a regime. */
|
|
23
|
+
type PadronActivity = {
|
|
24
|
+
/** The six-digit NAES code, zero-padded, such as `011211`. */
|
|
25
|
+
id: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
/** ARCA's ordering; `1` is the main activity. */
|
|
28
|
+
order?: number;
|
|
29
|
+
/** The period the activity starts, as `YYYY-MM`. */
|
|
30
|
+
since?: string;
|
|
31
|
+
regime: "general" | "monotributo";
|
|
32
|
+
};
|
|
13
33
|
/** Result of a taxpayer lookup via Padron A5. */
|
|
14
34
|
type PadronTaxpayerResult = {
|
|
15
35
|
taxId: string;
|
|
16
36
|
personType?: string;
|
|
17
37
|
name?: string;
|
|
38
|
+
address?: PadronAddress;
|
|
18
39
|
/**
|
|
19
40
|
* The receiver condition to invoice this taxpayer under, derived from its
|
|
20
41
|
* active IVA registrations: 30 is responsable inscripto, 20 monotributo, 32
|
|
@@ -24,6 +45,12 @@ type PadronTaxpayerResult = {
|
|
|
24
45
|
*/
|
|
25
46
|
condition?: ReceiverCondition;
|
|
26
47
|
taxes: PadronTax[];
|
|
48
|
+
activities: PadronActivity[];
|
|
49
|
+
/**
|
|
50
|
+
* The constancia's own errors, such as an unresolved domicilio. Empty when
|
|
51
|
+
* there are none. A taxpayer with errors has no `condition`.
|
|
52
|
+
*/
|
|
53
|
+
errors: string[];
|
|
27
54
|
raw: Record<string, unknown>;
|
|
28
55
|
};
|
|
29
56
|
/** Result of a tax ID lookup by document number via Padron A13. */
|
|
@@ -46,4 +73,4 @@ type CreatePadronServiceOptions = {
|
|
|
46
73
|
/** Creates a Padron service instance wired with authentication and SOAP transport. */
|
|
47
74
|
declare function createPadronService(options: CreatePadronServiceOptions): PadronService;
|
|
48
75
|
|
|
49
|
-
export { type CreatePadronServiceOptions, type PadronService, type PadronTax, type PadronTaxIdLookupResult, type PadronTaxpayerResult, createPadronService };
|
|
76
|
+
export { type CreatePadronServiceOptions, type PadronActivity, type PadronAddress, type PadronService, type PadronTax, type PadronTaxIdLookupResult, type PadronTaxpayerResult, createPadronService };
|
package/dist/padron.mjs
CHANGED
package/dist/wsfe.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ArcaClientConfig } from './types-Su7QwloQ.js';
|
|
2
2
|
import { W as WsaaAuthModule, S as SoapTransport } from './index-DAC3edtw.js';
|
|
3
|
-
import { e as ArcaAuthorizationOutcome, s as ArcaVoucherLookupResult } from './fiscal-evidence-
|
|
3
|
+
import { e as ArcaAuthorizationOutcome, s as ArcaVoucherLookupResult } from './fiscal-evidence-B6UTFGmY.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}`;
|
|
@@ -86,14 +86,18 @@ type WsfeIssueInput = {
|
|
|
86
86
|
};
|
|
87
87
|
/** Structured evidence from one exact WSFE authorization attempt. */
|
|
88
88
|
type WsfeAuthorizationOutcome = ArcaAuthorizationOutcome<"wsfe">;
|
|
89
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* A point-of-sale entry returned by {@link WsfeService.getSalesPoints}, in the
|
|
91
|
+
* same shape as a WSMTXCA one. `deletedAt` is `YYYY-MM-DD` and absent while the
|
|
92
|
+
* point is active.
|
|
93
|
+
*/
|
|
90
94
|
type WsfeSalesPoint = {
|
|
91
95
|
number: number;
|
|
92
96
|
emissionType?: string;
|
|
93
|
-
blocked
|
|
94
|
-
|
|
97
|
+
blocked: boolean;
|
|
98
|
+
deletedAt?: string;
|
|
95
99
|
};
|
|
96
|
-
/** Voucher details returned by {@link WsfeService.
|
|
100
|
+
/** Voucher details returned by {@link WsfeService.lookupVoucher}. */
|
|
97
101
|
type WsfeVoucherInfo = {
|
|
98
102
|
voucherNumber: number;
|
|
99
103
|
voucherDate?: string;
|
|
@@ -230,14 +234,6 @@ type WsfeService = {
|
|
|
230
234
|
representedTaxId?: number | string;
|
|
231
235
|
forceRefresh?: boolean;
|
|
232
236
|
}): Promise<WsfeQuotation>;
|
|
233
|
-
/** Retrieves details for a specific voucher. Returns `null` if not found. */
|
|
234
|
-
getVoucherInfo(input: {
|
|
235
|
-
representedTaxId?: number | string;
|
|
236
|
-
number: number;
|
|
237
|
-
salesPoint: number;
|
|
238
|
-
voucherType: number;
|
|
239
|
-
forceRefresh?: boolean;
|
|
240
|
-
}): Promise<WsfeVoucherInfo | null>;
|
|
241
237
|
/** Consults one exact voucher and normalizes WSFE error 602 to `not_found`. */
|
|
242
238
|
lookupVoucher(input: {
|
|
243
239
|
representedTaxId?: number | string;
|
package/dist/wsfe.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createWsfeService
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OORNZFI5.mjs";
|
|
4
|
+
import "./chunk-WPHD2GQJ.mjs";
|
|
5
|
+
import "./chunk-EZ4HA3LC.mjs";
|
|
6
6
|
export {
|
|
7
7
|
createWsfeService
|
|
8
8
|
};
|
package/dist/wsmtxca.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ArcaRepresentedTaxId, a as ArcaClientConfig } from './types-Su7QwloQ.js';
|
|
2
2
|
import { W as WsaaAuthModule, S as SoapTransport } from './index-DAC3edtw.js';
|
|
3
|
-
import { e as ArcaAuthorizationOutcome, s as ArcaVoucherLookupResult } from './fiscal-evidence-
|
|
3
|
+
import { e as ArcaAuthorizationOutcome, s as ArcaVoucherLookupResult } from './fiscal-evidence-B6UTFGmY.js';
|
|
4
4
|
|
|
5
5
|
/** Input for {@link WsmtxcaService.issue}: one WSMTXCA voucher request. */
|
|
6
6
|
type WsmtxcaIssueInput = {
|
|
@@ -53,13 +53,6 @@ type WsmtxcaVoucherInfo = {
|
|
|
53
53
|
};
|
|
54
54
|
/** Typed exact-voucher consultation result for WSMTXCA. */
|
|
55
55
|
type WsmtxcaVoucherLookupOutcome = ArcaVoucherLookupResult<WsmtxcaVoucherInfo, "wsmtxca">;
|
|
56
|
-
/** Result of looking up a specific WSMTXCA voucher. */
|
|
57
|
-
type WsmtxcaVoucherLookupResult = {
|
|
58
|
-
invoiceDate: string;
|
|
59
|
-
voucher: Record<string, unknown>;
|
|
60
|
-
messages: string[];
|
|
61
|
-
raw: Record<string, unknown>;
|
|
62
|
-
};
|
|
63
56
|
/** WSMTXCA electronic invoicing service (Factura de Crédito Electrónica). */
|
|
64
57
|
type WsmtxcaService = {
|
|
65
58
|
/**
|
|
@@ -89,14 +82,6 @@ type WsmtxcaService = {
|
|
|
89
82
|
forceRefresh?: boolean;
|
|
90
83
|
abortSignal?: AbortSignal;
|
|
91
84
|
}): Promise<WsmtxcaVoucherLookupOutcome>;
|
|
92
|
-
/** Retrieves details for a specific voucher. */
|
|
93
|
-
getVoucher(input: {
|
|
94
|
-
representedTaxId?: ArcaRepresentedTaxId;
|
|
95
|
-
voucherType: number;
|
|
96
|
-
salesPoint: number;
|
|
97
|
-
voucherNumber: number;
|
|
98
|
-
forceRefresh?: boolean;
|
|
99
|
-
}): Promise<WsmtxcaVoucherLookupResult>;
|
|
100
85
|
};
|
|
101
86
|
type CreateWsmtxcaServiceOptions = {
|
|
102
87
|
config: ArcaClientConfig;
|
|
@@ -106,4 +91,4 @@ type CreateWsmtxcaServiceOptions = {
|
|
|
106
91
|
/** Creates a WSMTXCA service instance wired with authentication and SOAP transport. */
|
|
107
92
|
declare function createWsmtxcaService(options: CreateWsmtxcaServiceOptions): WsmtxcaService;
|
|
108
93
|
|
|
109
|
-
export { type CreateWsmtxcaServiceOptions, type WsmtxcaAuthorizationOutcome, type WsmtxcaIssueInput, type WsmtxcaLastAuthorizedVoucherResult, type WsmtxcaSalesPoint, type WsmtxcaSalesPointsResult, type WsmtxcaService, type WsmtxcaVoucherInfo, type WsmtxcaVoucherLookupOutcome,
|
|
94
|
+
export { type CreateWsmtxcaServiceOptions, type WsmtxcaAuthorizationOutcome, type WsmtxcaIssueInput, type WsmtxcaLastAuthorizedVoucherResult, type WsmtxcaSalesPoint, type WsmtxcaSalesPointsResult, type WsmtxcaService, type WsmtxcaVoucherInfo, type WsmtxcaVoucherLookupOutcome, createWsmtxcaService };
|
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-4RD5VQWC.mjs";
|
|
4
|
+
import "./chunk-WPHD2GQJ.mjs";
|
|
5
|
+
import "./chunk-EZ4HA3LC.mjs";
|
|
6
6
|
export {
|
|
7
7
|
createWsmtxcaService
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "facturas",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "SDK de facturación electrónica con ARCA / AFIP
|
|
3
|
+
"version": "0.18.0",
|
|
4
|
+
"description": "SDK de TypeScript para facturación electrónica con ARCA / AFIP: facturas, notas de crédito y débito, y Padrón con una sola API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": "LaPyme",
|