@vitrina/api 14.53.1 → 14.54.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
@@ -22477,6 +22477,8 @@ interface paths {
22477
22477
  * @description The flat list, paged (`page` / `page_size`, max 200) and filterable by board, stage, status, source, intent, owner, team, contact, value band, score band and last activity; `q` matches the title and the contact. `temperature` is a SHORTCUT over `score` (`cold` 0–39 · `warm` 40–69 · `hot` 70–100 · `unscored` score IS NULL) and explicit `min_score` / `max_score` win over it — do not confuse it with the `temperature` FIELD on a lead, which is a judgement somebody recorded about momentum and is not derived from the score. `resource_type` and `resource_id` must be supplied together and narrow to the leads interested in one record. `meta.pagination.total` is the match count, not the page size. A member whose role restricts record visibility sees only the leads they own.
22478
22478
  *
22479
22479
  * `fields=summary` answers the SAME page with only the identifying and funnel scalars per row — `id`, `display_id`, `title`, `status`, `source`, `intent`, `pipeline_id`, `stage_id`, `contact_id`, `value_amount`, `value_currency`, `owner_user_id`, `score`, `temperature`, `created_at`, `last_activity_at`, `closed_at`, `origin_conversation_id` — plus `stage_name` and `contact_name` when the caller holds the scope that embed rides (`stages:read`, `contacts:read`); a name the caller may not read is ABSENT, never `null`. `meta` is unchanged. A 200-row page is ~525k characters at `full` (the default, byte-identical to omitting the parameter) and a fraction of that at `summary`; page with `summary` to choose, then `GET /leads/{id}` for the ones you need whole.
22480
+ *
22481
+ * On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
22480
22482
  */
22481
22483
  get: {
22482
22484
  parameters: {
@@ -23418,7 +23420,7 @@ interface paths {
23418
23420
  };
23419
23421
  /**
23420
23422
  * Lead pipeline summary
23421
- * @description How many leads are open, won, lost and unqualified, and what they are worth. Optionally narrowed to one board with `pipeline_id`. Money is `value_amount` + `value_currency` and the pair travels together: a workspace may work in more than one currency, so the analytics endpoints break their totals down `by_currency` and flag `is_mixed_currency` rather than summing across them.
23423
+ * @description How many leads are open, won, lost and unqualified, and what they are worth. Optionally narrowed to one board with `pipeline_id`. Money is `value_amount` + `value_currency` and the pair travels together: a workspace may work in more than one currency, so the analytics endpoints break their totals down `by_currency` and flag `is_mixed_currency` rather than summing across them. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
23422
23424
  */
23423
23425
  get: {
23424
23426
  parameters: {
@@ -23788,7 +23790,7 @@ interface paths {
23788
23790
  };
23789
23791
  /**
23790
23792
  * Leads grouped by stage (board view)
23791
- * @description The board itself: every stage with its leads already nested, up to 200 per column — one request instead of one per column. The cards carry the same embeds and the same scope gating as `GET /leads`.
23793
+ * @description The board itself: every stage with its leads already nested, up to 200 per column — one request instead of one per column. The cards carry the same embeds and the same scope gating as `GET /leads`. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
23792
23794
  */
23793
23795
  get: {
23794
23796
  parameters: {
@@ -24228,7 +24230,7 @@ interface paths {
24228
24230
  };
24229
24231
  /**
24230
24232
  * Get a lead
24231
- * @description One opportunity, with its contact, stage and pipeline embedded. On a clinic workspace it also carries `origin`: the Origen of its contact, Meta (with the ad), Orgánico (a linked contact with no ad touch) or Sin dato (no contact) — the attribution Vitrina Ads reports. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
24233
+ * @description One opportunity, with its contact, stage and pipeline embedded. On a clinic workspace it also carries `origin`: the Origen of its contact, Meta (with the ad), Orgánico (a linked contact with no ad touch) or Sin dato (no contact) — the attribution Vitrina Ads reports. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
24232
24234
  */
24233
24235
  get: {
24234
24236
  parameters: {
package/dist/index.d.ts CHANGED
@@ -22477,6 +22477,8 @@ interface paths {
22477
22477
  * @description The flat list, paged (`page` / `page_size`, max 200) and filterable by board, stage, status, source, intent, owner, team, contact, value band, score band and last activity; `q` matches the title and the contact. `temperature` is a SHORTCUT over `score` (`cold` 0–39 · `warm` 40–69 · `hot` 70–100 · `unscored` score IS NULL) and explicit `min_score` / `max_score` win over it — do not confuse it with the `temperature` FIELD on a lead, which is a judgement somebody recorded about momentum and is not derived from the score. `resource_type` and `resource_id` must be supplied together and narrow to the leads interested in one record. `meta.pagination.total` is the match count, not the page size. A member whose role restricts record visibility sees only the leads they own.
22478
22478
  *
22479
22479
  * `fields=summary` answers the SAME page with only the identifying and funnel scalars per row — `id`, `display_id`, `title`, `status`, `source`, `intent`, `pipeline_id`, `stage_id`, `contact_id`, `value_amount`, `value_currency`, `owner_user_id`, `score`, `temperature`, `created_at`, `last_activity_at`, `closed_at`, `origin_conversation_id` — plus `stage_name` and `contact_name` when the caller holds the scope that embed rides (`stages:read`, `contacts:read`); a name the caller may not read is ABSENT, never `null`. `meta` is unchanged. A 200-row page is ~525k characters at `full` (the default, byte-identical to omitting the parameter) and a fraction of that at `summary`; page with `summary` to choose, then `GET /leads/{id}` for the ones you need whole.
22480
+ *
22481
+ * On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
22480
22482
  */
22481
22483
  get: {
22482
22484
  parameters: {
@@ -23418,7 +23420,7 @@ interface paths {
23418
23420
  };
23419
23421
  /**
23420
23422
  * Lead pipeline summary
23421
- * @description How many leads are open, won, lost and unqualified, and what they are worth. Optionally narrowed to one board with `pipeline_id`. Money is `value_amount` + `value_currency` and the pair travels together: a workspace may work in more than one currency, so the analytics endpoints break their totals down `by_currency` and flag `is_mixed_currency` rather than summing across them.
23423
+ * @description How many leads are open, won, lost and unqualified, and what they are worth. Optionally narrowed to one board with `pipeline_id`. Money is `value_amount` + `value_currency` and the pair travels together: a workspace may work in more than one currency, so the analytics endpoints break their totals down `by_currency` and flag `is_mixed_currency` rather than summing across them. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
23422
23424
  */
23423
23425
  get: {
23424
23426
  parameters: {
@@ -23788,7 +23790,7 @@ interface paths {
23788
23790
  };
23789
23791
  /**
23790
23792
  * Leads grouped by stage (board view)
23791
- * @description The board itself: every stage with its leads already nested, up to 200 per column — one request instead of one per column. The cards carry the same embeds and the same scope gating as `GET /leads`.
23793
+ * @description The board itself: every stage with its leads already nested, up to 200 per column — one request instead of one per column. The cards carry the same embeds and the same scope gating as `GET /leads`. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values.
23792
23794
  */
23793
23795
  get: {
23794
23796
  parameters: {
@@ -24228,7 +24230,7 @@ interface paths {
24228
24230
  };
24229
24231
  /**
24230
24232
  * Get a lead
24231
- * @description One opportunity, with its contact, stage and pipeline embedded. On a clinic workspace it also carries `origin`: the Origen of its contact, Meta (with the ad), Orgánico (a linked contact with no ad touch) or Sin dato (no contact) — the attribution Vitrina Ads reports. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
24233
+ * @description One opportunity, with its contact, stage and pipeline embedded. On a clinic workspace it also carries `origin`: the Origen of its contact, Meta (with the ad), Orgánico (a linked contact with no ad touch) or Sin dato (no contact) — the attribution Vitrina Ads reports. On a clinic (healthcare) workspace, `value_amount` on a WON lead is cash the patient paid, credited to that lead; before won it is the open presupuesto (a quote), not a sale. For return, ROAS, paid per ad or which ad brought paying patients, call `ads_attributed_sales_list`; never sum lead values. `{id}` accepts the lead uuid or its ID visible (`L-89`) — the label is a lookup shortcut on the path only, never a value to store.
24232
24234
  */
24233
24235
  get: {
24234
24236
  parameters: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "14.53.1",
3
+ "version": "14.54.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",