facturas 0.18.0 → 0.19.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/dist/{chunk-JP5IBMVI.mjs → chunk-U3HODOOP.mjs} +109 -17
- package/dist/chunk-U3HODOOP.mjs.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/{client-COK5u3oz.d.ts → client-D1IH1NCf.d.ts} +9 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-JP5IBMVI.mjs.map +0 -1
package/dist/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ArcaClient } from './client-
|
|
1
|
+
import { A as ArcaClient } from './client-D1IH1NCf.js';
|
|
2
2
|
import { A as ArcaClientOptions, a as ArcaClientConfig } from './types-Su7QwloQ.js';
|
|
3
3
|
import { W as WsaaAuthModule } from './index-DAC3edtw.js';
|
|
4
4
|
import './padron.js';
|
package/dist/cli.mjs
CHANGED
|
@@ -515,6 +515,11 @@ type VouchersService = {
|
|
|
515
515
|
* throws on any other provider error. Reads only: no store and no reserve.
|
|
516
516
|
*/
|
|
517
517
|
lookup(voucher: VoucherCoordinates, options?: PreviewOptions): Promise<VoucherSummary | null>;
|
|
518
|
+
/**
|
|
519
|
+
* The number of the last voucher ARCA authorized for a sales point and
|
|
520
|
+
* voucher type, on WSFE or WSMTXCA; `0` when none was ever authorized.
|
|
521
|
+
*/
|
|
522
|
+
lastAuthorized(sequence: Omit<VoucherCoordinates, "number">, options?: PreviewOptions): Promise<number>;
|
|
518
523
|
/** Consults a durable reservation. Never allocates or authorizes a voucher. */
|
|
519
524
|
recover<O extends RecoveryOptions = {
|
|
520
525
|
include?: never;
|
|
@@ -612,6 +617,8 @@ type ArcaClient = {
|
|
|
612
617
|
previewDebitNote: VouchersService["previewDebitNote"];
|
|
613
618
|
/** Consults one authorized voucher; `null` when ARCA has no such voucher. */
|
|
614
619
|
lookup: VouchersService["lookup"];
|
|
620
|
+
/** The last number ARCA authorized for a sales point and type; `0` when none. */
|
|
621
|
+
lastAuthorized: VouchersService["lastAuthorized"];
|
|
615
622
|
wsfe: WsfeService;
|
|
616
623
|
wsmtxca: WsmtxcaService;
|
|
617
624
|
padron: PadronService;
|
|
@@ -621,7 +628,8 @@ type ArcaClient = {
|
|
|
621
628
|
* Validates the config, wires WSAA authentication and SOAP transport,
|
|
622
629
|
* and returns an object with `issue()`, `preview()`, `issueCreditNote()`,
|
|
623
630
|
* `issueDebitNote()`, `previewCreditNote()`, `previewDebitNote()`, `recover()`,
|
|
624
|
-
* `lookup()` and the `.wsfe`, `.wsmtxca`, and `.padron`
|
|
631
|
+
* `lookup()`, `lastAuthorized()` and the `.wsfe`, `.wsmtxca`, and `.padron`
|
|
632
|
+
* service modules.
|
|
625
633
|
*
|
|
626
634
|
* @throws {ArcaConfigurationError} When the config is missing or invalid.
|
|
627
635
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-D1IH1NCf.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';
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED