sinfactura-types 1.6.55 → 1.6.56

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/invoice.d.ts CHANGED
@@ -16,6 +16,8 @@ declare global {
16
16
  concept: number;
17
17
  cuitType: number;
18
18
  cuit: string;
19
+ docTipo?: number;
20
+ docNro?: number;
19
21
  currency?: string;
20
22
  currencyValue?: number;
21
23
  currencyValueAt?: number;
@@ -26,6 +26,7 @@ declare global {
26
26
  connectedAt?: number;
27
27
  expiresAt?: number;
28
28
  autoInvoice?: boolean;
29
+ autoCreditNote?: boolean;
29
30
  defaultPosId?: number;
30
31
  /** api#1655 — when the operator attested ML's own Facturador is OFF
31
32
  * (epoch ms); absent = never attested. FE gates the autoInvoice toggle
package/dist/order.d.ts CHANGED
@@ -30,6 +30,13 @@ declare global {
30
30
  tagPrinted?: boolean;
31
31
  invoices?: Partial<Invoice>[];
32
32
  returns?: Partial<Return>[];
33
+ mercadolibreCreditNote?: {
34
+ creditNoteNumber?: number;
35
+ emittedAt?: number;
36
+ status?: "emitted" | "skipped" | "failed";
37
+ reason?: string;
38
+ claimId?: string;
39
+ };
33
40
  disabled?: boolean;
34
41
  items: Partial<BasketItem>[];
35
42
  rating?: number;
package/dist/store.d.ts CHANGED
@@ -293,6 +293,10 @@ declare global {
293
293
  /** Per-channel auto-invoice toggle — default OFF; enabling requires
294
294
  * `defaultPosId` (dedicated PdV) + the Facturador-collision check. */
295
295
  autoInvoice?: boolean;
296
+ /** Auto-emit a Nota de Crédito when a full-sale ML return is finalized
297
+ * (api#1684) — default OFF; requires `autoInvoice` and rides the same
298
+ * dedicated-PdV + Facturador-collision guards. */
299
+ autoCreditNote?: boolean;
296
300
  defaultPosId?: number;
297
301
  /** Epoch ms of the operator's attestation that ML's own Facturador is
298
302
  * OFF for this account (api#1655) — required before `autoInvoice` can
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.55",
3
+ "version": "1.6.56",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",