sinfactura-types 1.6.46 → 1.6.48

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.
@@ -86,8 +86,22 @@ declare global {
86
86
  maxTitleLength?: number;
87
87
  gtinRequirement: GtinRequirementTag;
88
88
  }
89
+ interface MlCategoryCandidate {
90
+ domainId?: string;
91
+ domainName: string;
92
+ categoryId: string;
93
+ categoryName: string;
94
+ }
89
95
  interface PublishPrediction extends MlCategoryPrediction {
90
96
  isUpMigrated: boolean;
97
+ candidates: MlCategoryCandidate[];
98
+ }
99
+ interface MlCategoryAttributeSchema {
100
+ categoryId: string;
101
+ requiredAttributes: MlRequiredAttribute[];
102
+ gtinRequirement: GtinRequirementTag;
103
+ maxTitleLength?: number;
104
+ immediatePayment?: "required" | "optional";
91
105
  }
92
106
  interface MlPublishRequest {
93
107
  productId: string;
package/dist/store.d.ts CHANGED
@@ -317,17 +317,20 @@ declare global {
317
317
  }
318
318
  /**
319
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.
320
+ * (`mercadolibrePatchSchema`, `stacks/lambdas/store/_patch.ts`). `defaultPosId`
321
+ * additionally accepts `null` to clear a previously-set dedicated PdV
322
+ * (api#1656) same WRITE-ONLY null-means-remove convention as
323
+ * `syncPolicy`'s knobs (api#1650): the BE deletes the field rather than
324
+ * ever persisting a DynamoDB `null`, so the read shape
325
+ * (`Mercadolibre['defaultPosId']`) stays `number | undefined` and does not
326
+ * need to change. `autoInvoice` is not nullable — it's a plain boolean
327
+ * toggle, never "unset." Prefer this over `Partial<Mercadolibre>` for
328
+ * PATCH request bodies — the read-side interface can't express these
329
+ * write-time null-clear semantics.
327
330
  */
328
331
  interface MercadolibrePatchInput {
329
332
  autoInvoice?: boolean;
330
- defaultPosId?: number;
333
+ defaultPosId?: number | null;
331
334
  syncPolicy?: MercadolibreSyncPolicyInput;
332
335
  }
333
336
  interface Afip {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.46",
3
+ "version": "1.6.48",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",