sinfactura-types 1.6.44 → 1.6.46

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
@@ -132,6 +132,8 @@ declare global {
132
132
  invoiceCount: number;
133
133
  informedAt?: string;
134
134
  fchTopeInf?: string;
135
+ order?: 1 | 2;
136
+ phase?: 'upcoming' | 'active' | 'past';
135
137
  }
136
138
  /** Result of requesting a new CAEA code for an upcoming period. */
137
139
  interface CAEARequestResult {
@@ -144,6 +146,8 @@ declare global {
144
146
  invoiceCount: number;
145
147
  informedAt: string;
146
148
  errors?: ArcaError[];
149
+ pendingInvoices: number;
150
+ classification?: 'inform' | 'recovered' | 'zero-movement' | 'drift';
147
151
  }
148
152
  /**
149
153
  * Frozen `FECAEADetRequest`-shaped snapshot, persisted on `Invoice.caeaDet`
@@ -61,5 +61,58 @@ declare global {
61
61
  currency: string;
62
62
  paidAt?: number;
63
63
  }
64
+ type GtinRequirementTag = "not_required" | "conditional_required" | "new_required";
65
+ interface MlAttribute {
66
+ id: string;
67
+ name?: string;
68
+ value_id?: string;
69
+ value_name?: string;
70
+ attribute_group_id?: string;
71
+ attribute_group_name?: string;
72
+ }
73
+ interface MlRequiredAttribute {
74
+ id: string;
75
+ name?: string;
76
+ required: boolean;
77
+ tags?: string[];
78
+ }
79
+ interface MlCategoryPrediction {
80
+ domainName: string;
81
+ categoryId: string;
82
+ categoryName: string;
83
+ attributes: MlAttribute[];
84
+ requiredAttributes: MlRequiredAttribute[];
85
+ immediatePayment?: "required" | "optional";
86
+ maxTitleLength?: number;
87
+ gtinRequirement: GtinRequirementTag;
88
+ }
89
+ interface PublishPrediction extends MlCategoryPrediction {
90
+ isUpMigrated: boolean;
91
+ }
92
+ interface MlPublishRequest {
93
+ productId: string;
94
+ categoryId: string;
95
+ attributes: MlAttribute[];
96
+ listingTypeId: string;
97
+ saleTerms?: Record<string, unknown>[];
98
+ pictures?: {
99
+ url: string;
100
+ }[];
101
+ description?: string;
102
+ }
103
+ interface MlPublishResponse {
104
+ productId: string;
105
+ itemId: string;
106
+ userProductId?: string;
107
+ isUpMigrated: boolean;
108
+ status: "linked";
109
+ }
110
+ interface MlFieldError {
111
+ field: string;
112
+ code?: string;
113
+ message: string;
114
+ type?: "warning" | "error";
115
+ causeId?: number;
116
+ }
64
117
  }
65
118
  export {};
package/dist/order.d.ts CHANGED
@@ -66,6 +66,8 @@ declare global {
66
66
  buyerNickname?: string;
67
67
  shipmentId?: string;
68
68
  logisticType?: string;
69
+ mlLastUpdated?: number;
70
+ paid?: boolean;
69
71
  items?: OrderMercadolibreItem[];
70
72
  fees?: {
71
73
  saleFee?: number;
package/dist/product.d.ts CHANGED
@@ -57,6 +57,8 @@ declare global {
57
57
  lastSyncedAt?: number;
58
58
  basis?: MlMatchBasis | 'manual';
59
59
  syncErrors?: string[];
60
+ regime?: 'classic' | 'coexistence' | 'multi-origin';
61
+ stockMirrorOnly?: boolean;
60
62
  }
61
63
  }
62
64
  export {};
package/dist/store.d.ts CHANGED
@@ -300,6 +300,36 @@ declare global {
300
300
  paused?: boolean;
301
301
  };
302
302
  }
303
+ /**
304
+ * Wire/write shape for `mercadolibre.syncPolicy` accepted by `PATCH /store`
305
+ * (api#1650) — distinct from the read-side `Mercadolibre['syncPolicy']`
306
+ * above because each knob additionally accepts `null` to mean "clear it"
307
+ * (an `InputNumber`-style FE control emits `null`, not `undefined`, on
308
+ * clear). `null` is a WRITE-ONLY signal: the BE deep-merges it into the
309
+ * stored leaf and deletes the knob rather than ever persisting a DynamoDB
310
+ * `null` — so the read shape (`Mercadolibre['syncPolicy']`) never contains
311
+ * `null` and does not need to change.
312
+ */
313
+ interface MercadolibreSyncPolicyInput {
314
+ stockBuffer?: number | null;
315
+ stockLimit?: number | null;
316
+ paused?: boolean | null;
317
+ }
318
+ /**
319
+ * Full write shape for the `mercadolibre` key of `PATCH /store`'s body
320
+ * (`mercadolibrePatchSchema`, `stacks/lambdas/store/_patch.ts`). `autoInvoice`
321
+ * / `defaultPosId` are NOT nullable yet — clearing a previously-set
322
+ * `defaultPosId` is tracked separately (api#1656, not yet accepted by the
323
+ * BE); `syncPolicy` is the one sub-object with write-time null-clear
324
+ * semantics today (api#1650). Prefer this over `Partial<Mercadolibre>` for
325
+ * PATCH request bodies — the read-side interface can't express `syncPolicy`'s
326
+ * nullable knobs.
327
+ */
328
+ interface MercadolibrePatchInput {
329
+ autoInvoice?: boolean;
330
+ defaultPosId?: number;
331
+ syncPolicy?: MercadolibreSyncPolicyInput;
332
+ }
303
333
  interface Afip {
304
334
  production: boolean;
305
335
  address?: string;
@@ -313,7 +343,7 @@ declare global {
313
343
  pointOfSale?: number;
314
344
  activitiesStartedAt?: number;
315
345
  invoiceNote?: string;
316
- showInvoiceLogo?: string;
346
+ showInvoiceLogo?: boolean;
317
347
  currency: CatalogId;
318
348
  cert?: string;
319
349
  csr?: string;
@@ -357,5 +387,25 @@ declare global {
357
387
  code: StoreWarningCode;
358
388
  stores: string[];
359
389
  }
390
+ /**
391
+ * Request body for the MANAGER cross-tenant `PUT /platform/stores/{storeId}`
392
+ * config+ecommerce override (api#1509 Part A), mirroring the already-published
393
+ * `SubscriptionAdminOverrideInput` (api#827). Merge-never-clobber on the BE:
394
+ * nested `config`/`ecommerce` fields the payload omits are preserved.
395
+ * Deliberately excludes credential-bearing integration fields (AFIP/MP) --
396
+ * those stay owned by the tenant's own `PATCH /store` + OAuth flows.
397
+ */
398
+ interface StoreConfigAdminOverrideInput {
399
+ config?: {
400
+ priceDecimals?: 0 | 1 | 2 | 3;
401
+ stock?: boolean;
402
+ changePrice?: boolean;
403
+ displayCurrency?: string;
404
+ defaultProductCurrency?: string;
405
+ defaultAccountCurrency?: string;
406
+ };
407
+ ecommerce?: Ecommerce;
408
+ reason: string;
409
+ }
360
410
  }
361
411
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.44",
3
+ "version": "1.6.46",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",