@vitrina/api 14.76.3 → 14.77.1

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
@@ -95860,7 +95860,7 @@ interface paths {
95860
95860
  put?: never;
95861
95861
  /**
95862
95862
  * Book a cita in the diary Vitrina owns
95863
- * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. Requires `clinic:write`, which no connected app holds by default.
95863
+ * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. On a native clinic the cita joins a plan de tratamiento the way Dentalink does it: the patient's newest open plan with the same professional, else a new plan «Diagnóstico» (`treatment_plan_id` on the row); pass `treatment_plan_id` to book into a plan of your choice (the patient's own, not closed — else `invalid_treatment_plan`). A prestación with eligible professionals set refuses anyone else (`professional_not_eligible`). Requires `clinic:write`, which no connected app holds by default.
95864
95864
  *
95865
95865
  * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
95866
95866
  */
@@ -95909,6 +95909,8 @@ interface paths {
95909
95909
  allow_overbook?: boolean;
95910
95910
  additional?: boolean;
95911
95911
  overbook_reason?: string;
95912
+ /** Format: uuid */
95913
+ treatment_plan_id?: string;
95912
95914
  };
95913
95915
  };
95914
95916
  };
@@ -95946,6 +95948,7 @@ interface paths {
95946
95948
  * "done_at": null,
95947
95949
  * "series_id": null,
95948
95950
  * "series_index": null,
95951
+ * "treatment_plan_id": null,
95949
95952
  * "booking_landing_id": null,
95950
95953
  * "attribution": null,
95951
95954
  * "starts_at": "2026-09-24T14:00:00.000Z",
@@ -96131,6 +96134,7 @@ interface paths {
96131
96134
  * "done_at": null,
96132
96135
  * "series_id": null,
96133
96136
  * "series_index": null,
96137
+ * "treatment_plan_id": null,
96134
96138
  * "booking_landing_id": null,
96135
96139
  * "attribution": null,
96136
96140
  * "starts_at": "2026-09-24T14:30:00.000Z",
package/dist/index.d.ts CHANGED
@@ -95860,7 +95860,7 @@ interface paths {
95860
95860
  put?: never;
95861
95861
  /**
95862
95862
  * Book a cita in the diary Vitrina owns
95863
- * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. Requires `clinic:write`, which no connected app holds by default.
95863
+ * @description Routes through the tenant's booking engine, so a vendor clinic gets its own engine's honest refusal rather than a local row the vendor never hears about. Pass either the `slot_ref` from `GET /clinic/agenda/availability` or a `professional_id` outright (a drag-to-create on the grid has no ref). One transaction: the cita, its prestación line with the duration and price FROZEN, and — when a deposit policy applies — the `customer_obligation` the ledger settles against. A collision is refused with `slot_taken` and fresh alternatives unless `allow_overbook` is set, which also requires a reason: a sobrecupo nobody can explain is indistinguishable from a double booking. On a native clinic the cita joins a plan de tratamiento the way Dentalink does it: the patient's newest open plan with the same professional, else a new plan «Diagnóstico» (`treatment_plan_id` on the row); pass `treatment_plan_id` to book into a plan of your choice (the patient's own, not closed — else `invalid_treatment_plan`). A prestación with eligible professionals set refuses anyone else (`professional_not_eligible`). Requires `clinic:write`, which no connected app holds by default.
95864
95864
  *
95865
95865
  * **Connected apps:** every patient and contact in the response is a Seudónimo de paciente — initials plus a stable number, `"M.F. · #1001"` — unless the clinic allowed patient names, with RUT, phone and email masked in free text and `meta.patient_privacy` saying so. Clinical alerts (`flags`) are withheld in both modes, and a non-JSON body (an export, a file) is refused with `403 CONNECTED_APP_SENSITIVE_DATA`.
95866
95866
  */
@@ -95909,6 +95909,8 @@ interface paths {
95909
95909
  allow_overbook?: boolean;
95910
95910
  additional?: boolean;
95911
95911
  overbook_reason?: string;
95912
+ /** Format: uuid */
95913
+ treatment_plan_id?: string;
95912
95914
  };
95913
95915
  };
95914
95916
  };
@@ -95946,6 +95948,7 @@ interface paths {
95946
95948
  * "done_at": null,
95947
95949
  * "series_id": null,
95948
95950
  * "series_index": null,
95951
+ * "treatment_plan_id": null,
95949
95952
  * "booking_landing_id": null,
95950
95953
  * "attribution": null,
95951
95954
  * "starts_at": "2026-09-24T14:00:00.000Z",
@@ -96131,6 +96134,7 @@ interface paths {
96131
96134
  * "done_at": null,
96132
96135
  * "series_id": null,
96133
96136
  * "series_index": null,
96137
+ * "treatment_plan_id": null,
96134
96138
  * "booking_landing_id": null,
96135
96139
  * "attribution": null,
96136
96140
  * "starts_at": "2026-09-24T14:30:00.000Z",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.76.3",
3
+ "version": "14.77.1",
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",