sinfactura-types 1.6.49 → 1.6.50

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.
@@ -27,6 +27,10 @@ declare global {
27
27
  expiresAt?: number;
28
28
  autoInvoice?: boolean;
29
29
  defaultPosId?: number;
30
+ /** api#1655 — when the operator attested ML's own Facturador is OFF
31
+ * (epoch ms); absent = never attested. FE gates the autoInvoice toggle
32
+ * on this. */
33
+ facturadorAttestedAt?: number;
30
34
  syncPolicy?: Mercadolibre["syncPolicy"];
31
35
  }
32
36
  interface MlWebhookEvent {
package/dist/store.d.ts CHANGED
@@ -294,6 +294,11 @@ declare global {
294
294
  * `defaultPosId` (dedicated PdV) + the Facturador-collision check. */
295
295
  autoInvoice?: boolean;
296
296
  defaultPosId?: number;
297
+ /** Epoch ms of the operator's attestation that ML's own Facturador is
298
+ * OFF for this account (api#1655) — required before `autoInvoice` can
299
+ * be enabled (no public ML API exposes Facturador state). Audit trail;
300
+ * absent = never attested. */
301
+ facturadorAttestedAt?: number;
297
302
  syncPolicy?: {
298
303
  stockBuffer?: number;
299
304
  stockLimit?: number;
@@ -331,6 +336,12 @@ declare global {
331
336
  interface MercadolibrePatchInput {
332
337
  autoInvoice?: boolean;
333
338
  defaultPosId?: number | null;
339
+ /** WRITE-ONLY attestation flag (api#1655): `true` = the operator
340
+ * confirms ML's own Facturador is OFF for this account. The BE stamps
341
+ * `facturadorAttestedAt` (epoch ms) — the boolean itself is never
342
+ * persisted. Required (same request or previously stamped) when
343
+ * `autoInvoice` flips to `true`; otherwise 422. */
344
+ facturadorAttested?: boolean;
334
345
  syncPolicy?: MercadolibreSyncPolicyInput;
335
346
  }
336
347
  interface Afip {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.49",
3
+ "version": "1.6.50",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",