@vitrina/api 17.102.0 → 17.103.0

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/index.d.cts CHANGED
@@ -44186,7 +44186,7 @@ interface paths {
44186
44186
  invoice_includes_iva?: boolean;
44187
44187
  /** Format: date-time */
44188
44188
  issued_at?: string | null;
44189
- /** @description Internal free-text notes. Never printed on the document. Blank clears them. */
44189
+ /** @description «Nota interna»: texto libre para el equipo, hasta 4000 caracteres. Nunca se imprime ni es una variable de plantilla. En blanco o `null` la borra. */
44190
44190
  notes?: string | null;
44191
44191
  /** @description «Forma de pago», una línea libre que se imprime en la nota de compra (hasta 500 caracteres). Vacío o null la borra. */
44192
44192
  forma_de_pago?: string | null;
@@ -44522,7 +44522,9 @@ interface paths {
44522
44522
  *
44523
44523
  * `lines` REPLACES the whole breakdown, in order: pass the complete list, or omit the field to leave the existing lines untouched. `[]` clears them, which is a legitimate correction of a breakdown entered against the wrong note. The replacement is delete-all-then-reinsert inside one transaction, because the per-document ordering key is not deferrable.
44524
44524
  *
44525
- * A **voided** document cannot be corrected — that is a **409**, because voiding withdraws the instrument and correcting a withdrawn accountable record would rewrite something a third party may already have been shown. Issue a replacement instead; the voided one keeps its folio and stays listable.
44525
+ * A **voided** document cannot be corrected — that is a **409** `purchase_note_voided`, because voiding withdraws the instrument and correcting a withdrawn accountable record would rewrite something a third party may already have been shown. Issue a replacement instead; the voided one keeps its folio and stays listable.
44526
+ *
44527
+ * **The «Nota interna» (`notes`) is the exception** (vitrina-app#7894): it is for the team, never printed and in no template variable, so a body with ONLY `notes` is not a modification. It is saved on a live note, on a **voided** one and on one that follows a sale; it stamps nothing (`corrected_at` stays as it was), moves no cost, fires no `purchase_note.corrected` webhook, and the last note written wins. `notes` together with any other field on a voided note is still the 409.
44526
44528
  *
44527
44529
  * A correction must state at least one field — an empty body is a **400**, not a no-op stamp. `PATCH` and not `PUT`: the body is a partial and `absent` vs `null` are different instructions, which replace-the-representation semantics cannot express. Requires `purchase_notes:write`, the same authority as issuing.
44528
44530
  */
@@ -44564,7 +44566,7 @@ interface paths {
44564
44566
  tax_treatment?: "afecto" | "exento" | "no_gravado" | "pass_through";
44565
44567
  /** Format: date-time */
44566
44568
  issued_at?: string;
44567
- /** @description Internal free-text notes. Never printed on the document. Blank clears them. */
44569
+ /** @description «Nota interna»: texto libre para el equipo, hasta 4000 caracteres. Nunca se imprime ni es una variable de plantilla. En blanco o `null` la borra. Enviada sola no modifica la nota: se guarda también en una nota anulada o que sigue a una venta, no marca `corrected_at` y no mueve el costo del auto. */
44568
44570
  notes?: string | null;
44569
44571
  lines?: {
44570
44572
  description: string;
package/dist/index.d.ts CHANGED
@@ -44186,7 +44186,7 @@ interface paths {
44186
44186
  invoice_includes_iva?: boolean;
44187
44187
  /** Format: date-time */
44188
44188
  issued_at?: string | null;
44189
- /** @description Internal free-text notes. Never printed on the document. Blank clears them. */
44189
+ /** @description «Nota interna»: texto libre para el equipo, hasta 4000 caracteres. Nunca se imprime ni es una variable de plantilla. En blanco o `null` la borra. */
44190
44190
  notes?: string | null;
44191
44191
  /** @description «Forma de pago», una línea libre que se imprime en la nota de compra (hasta 500 caracteres). Vacío o null la borra. */
44192
44192
  forma_de_pago?: string | null;
@@ -44522,7 +44522,9 @@ interface paths {
44522
44522
  *
44523
44523
  * `lines` REPLACES the whole breakdown, in order: pass the complete list, or omit the field to leave the existing lines untouched. `[]` clears them, which is a legitimate correction of a breakdown entered against the wrong note. The replacement is delete-all-then-reinsert inside one transaction, because the per-document ordering key is not deferrable.
44524
44524
  *
44525
- * A **voided** document cannot be corrected — that is a **409**, because voiding withdraws the instrument and correcting a withdrawn accountable record would rewrite something a third party may already have been shown. Issue a replacement instead; the voided one keeps its folio and stays listable.
44525
+ * A **voided** document cannot be corrected — that is a **409** `purchase_note_voided`, because voiding withdraws the instrument and correcting a withdrawn accountable record would rewrite something a third party may already have been shown. Issue a replacement instead; the voided one keeps its folio and stays listable.
44526
+ *
44527
+ * **The «Nota interna» (`notes`) is the exception** (vitrina-app#7894): it is for the team, never printed and in no template variable, so a body with ONLY `notes` is not a modification. It is saved on a live note, on a **voided** one and on one that follows a sale; it stamps nothing (`corrected_at` stays as it was), moves no cost, fires no `purchase_note.corrected` webhook, and the last note written wins. `notes` together with any other field on a voided note is still the 409.
44526
44528
  *
44527
44529
  * A correction must state at least one field — an empty body is a **400**, not a no-op stamp. `PATCH` and not `PUT`: the body is a partial and `absent` vs `null` are different instructions, which replace-the-representation semantics cannot express. Requires `purchase_notes:write`, the same authority as issuing.
44528
44530
  */
@@ -44564,7 +44566,7 @@ interface paths {
44564
44566
  tax_treatment?: "afecto" | "exento" | "no_gravado" | "pass_through";
44565
44567
  /** Format: date-time */
44566
44568
  issued_at?: string;
44567
- /** @description Internal free-text notes. Never printed on the document. Blank clears them. */
44569
+ /** @description «Nota interna»: texto libre para el equipo, hasta 4000 caracteres. Nunca se imprime ni es una variable de plantilla. En blanco o `null` la borra. Enviada sola no modifica la nota: se guarda también en una nota anulada o que sigue a una venta, no marca `corrected_at` y no mueve el costo del auto. */
44568
44570
  notes?: string | null;
44569
44571
  lines?: {
44570
44572
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "17.102.0",
3
+ "version": "17.103.0",
4
4
  "description": "Typed TypeScript SDK for the Vitrina API pública — generated from the committed openapi.public.json (ADR 0106).",
5
5
  "type": "module",
6
6
  "license": "MIT",