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/cli.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ArcaClient } from './client-COK5u3oz.js';
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
@@ -7,7 +7,7 @@ import {
7
7
  createWsaaAuthModule,
8
8
  createWsaaStoreAdapter,
9
9
  discoverArcaClientConfig
10
- } from "./chunk-JP5IBMVI.mjs";
10
+ } from "./chunk-U3HODOOP.mjs";
11
11
  import "./chunk-DHN6OQJP.mjs";
12
12
  import "./chunk-MRBFLBWX.mjs";
13
13
  import "./chunk-OORNZFI5.mjs";
@@ -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` service modules.
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-COK5u3oz.js';
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
@@ -13,7 +13,7 @@ import {
13
13
  matchWsfeVoucherIdentity,
14
14
  storeCall,
15
15
  withLease
16
- } from "./chunk-JP5IBMVI.mjs";
16
+ } from "./chunk-U3HODOOP.mjs";
17
17
  import {
18
18
  ARCA_FINAL_CONSUMER_IDENTIFICATION_THRESHOLD_MINOR_UNITS,
19
19
  ARCA_INVOICE_CLASS_BY_ISSUER,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "facturas",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
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",