sinfactura-types 1.6.48 → 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.
- package/dist/mercadolibre.d.ts +4 -0
- package/dist/order.d.ts +6 -0
- package/dist/store.d.ts +11 -0
- package/package.json +1 -1
package/dist/mercadolibre.d.ts
CHANGED
|
@@ -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/order.d.ts
CHANGED
|
@@ -83,6 +83,12 @@ declare global {
|
|
|
83
83
|
taxpayerType?: string;
|
|
84
84
|
iibbNumber?: string;
|
|
85
85
|
};
|
|
86
|
+
discrepancies?: {
|
|
87
|
+
priceMismatch?: boolean;
|
|
88
|
+
oversell?: boolean;
|
|
89
|
+
missingCuit?: boolean;
|
|
90
|
+
};
|
|
91
|
+
fiscalDocumentStatus?: 'uploaded' | 'failed' | 'pending';
|
|
86
92
|
}
|
|
87
93
|
interface OrderMercadolibreItem {
|
|
88
94
|
mlItemId: string;
|
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 {
|