@vitrina/api 11.28.0 → 11.30.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 +547 -17
- package/dist/index.d.ts +547 -17
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13399,7 +13399,7 @@ interface paths {
|
|
|
13399
13399
|
};
|
|
13400
13400
|
/**
|
|
13401
13401
|
* Read the channel AI availability policy and current status
|
|
13402
|
-
* @description Returns the per-channel coverage clock and its current evaluation. Schedule availability does not override agent assignment, channel kill switches, or a human takeover. An account without a saved policy reports `configured: false` and preserves the legacy always-eligible schedule. `policy.timezone` and `status.effective_timezone` report the server-resolved clock inherited from General settings or selected business hours. `policy.human_silence_resume` and `policy.handoff_renotify` are always present in the response with defaults applied (enabled, 30 minutes).
|
|
13402
|
+
* @description Returns the per-channel coverage clock and its current evaluation. Schedule availability does not override agent assignment, channel kill switches, or a human takeover. An account without a saved policy reports `configured: false` and preserves the legacy always-eligible schedule. `policy.timezone` and `status.effective_timezone` report the server-resolved clock inherited from General settings or selected business hours. `policy.human_silence_resume` and `policy.handoff_renotify` are always present in the response with defaults applied (resume: enabled, 30 minutes; re-notify: disabled, 30 minutes once enabled).
|
|
13403
13403
|
*/
|
|
13404
13404
|
get: {
|
|
13405
13405
|
parameters: {
|
|
@@ -13432,7 +13432,7 @@ interface paths {
|
|
|
13432
13432
|
* "minutes": 30
|
|
13433
13433
|
* },
|
|
13434
13434
|
* "handoff_renotify": {
|
|
13435
|
-
* "enabled":
|
|
13435
|
+
* "enabled": false,
|
|
13436
13436
|
* "minutes": 30
|
|
13437
13437
|
* },
|
|
13438
13438
|
* "timezone": "America/Santiago"
|
|
@@ -13546,7 +13546,7 @@ interface paths {
|
|
|
13546
13546
|
* "minutes": 30
|
|
13547
13547
|
* },
|
|
13548
13548
|
* "handoff_renotify": {
|
|
13549
|
-
* "enabled":
|
|
13549
|
+
* "enabled": false,
|
|
13550
13550
|
* "minutes": 30
|
|
13551
13551
|
* }
|
|
13552
13552
|
* }
|
|
@@ -13573,7 +13573,7 @@ interface paths {
|
|
|
13573
13573
|
enabled: boolean;
|
|
13574
13574
|
minutes: number;
|
|
13575
13575
|
};
|
|
13576
|
-
/** @description The AI handed the conversation off explicitly, so it stays out. While the customer's message stays unanswered, notify the assignee (or, when nobody is assigned, the channel roster) every `minutes`, with owners and admins copied. Checked on a 10-minute tick; stops 24 hours after the customer's message. Absent = enabled, 30 minutes. */
|
|
13576
|
+
/** @description The AI handed the conversation off explicitly, so it stays out. While the customer's message stays unanswered, notify the assignee (or, when nobody is assigned, the channel roster) every `minutes`, with owners and admins copied. Checked on a 10-minute tick; stops 24 hours after the customer's message. Absent = DISABLED (opt-in per channel); once enabled, the default cadence is 30 minutes. */
|
|
13577
13577
|
handoff_renotify?: {
|
|
13578
13578
|
enabled: boolean;
|
|
13579
13579
|
minutes: number;
|
|
@@ -13602,7 +13602,7 @@ interface paths {
|
|
|
13602
13602
|
* "minutes": 30
|
|
13603
13603
|
* },
|
|
13604
13604
|
* "handoff_renotify": {
|
|
13605
|
-
* "enabled":
|
|
13605
|
+
* "enabled": false,
|
|
13606
13606
|
* "minutes": 30
|
|
13607
13607
|
* },
|
|
13608
13608
|
* "timezone": "America/Santiago"
|
|
@@ -66854,6 +66854,258 @@ interface paths {
|
|
|
66854
66854
|
};
|
|
66855
66855
|
trace?: never;
|
|
66856
66856
|
};
|
|
66857
|
+
"/clinic/insights/comercial": {
|
|
66858
|
+
parameters: {
|
|
66859
|
+
query?: never;
|
|
66860
|
+
header?: never;
|
|
66861
|
+
path?: never;
|
|
66862
|
+
cookie?: never;
|
|
66863
|
+
};
|
|
66864
|
+
/**
|
|
66865
|
+
* Commercial numbers: presupuesto acceptance, cierres, cash, botados
|
|
66866
|
+
* @description The clinic's commercial numbers, aggregates only (counts, CLP, percentages, months and professional names; never a patient). `regime` says how acceptance is read: `evidencia` when the revenue mirror is on (a non-entry line performed, or a cita booked after the presupuesto, inside its window), `explicita` otherwise (the acceptance the clinic recorded). Acceptance is by COUNT of presupuestos, one per lineage; $0 and entry-only presupuestos are out of both sides; the window is 60 days (90 for ortodoncia and implantología); the rate goes to the professional who issued the presupuesto. Presupuestos ISSUED in the window form the acceptance cohort (`cohorts` by issue month with 30- and 60-day reads). A cierre is the first payment on an accepted presupuesto: once per presupuesto, dated on that payment, valued at the full accepted value. `headline` is the cash collected in the window against the previous window of the same length. `first_visit`, `second_visit` and `botados` carry `formula: propuesta`; `botados` is a live worklist over the last six months. Every KPI carries its `formula` and a printable `rule`; a rate with no denominator is `null`, never 0. `state` is `empty`, `settling` (presupuesto lines still being read; `state_reason` says so) or `ready`. Requires `clinic_money:read` (or `clinic_insights:read`, which reads the same aggregates). Accepts `from` / `to` (bare `YYYY-MM-DD`, `to` INCLUSIVE; default the 90 days ending today in the clinic's zone), `location_id` and `professional_id`. With `professional_id`, cash (`headline`, `months[].collected_clp`) is `null`: a payment belongs to the patient, not to a professional.
|
|
66867
|
+
*
|
|
66868
|
+
* **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`.
|
|
66869
|
+
*/
|
|
66870
|
+
get: {
|
|
66871
|
+
parameters: {
|
|
66872
|
+
query?: {
|
|
66873
|
+
/** @description First day of the window, inclusive. Defaults to 90 days before `to`. */
|
|
66874
|
+
from?: string;
|
|
66875
|
+
/** @description Last day of the window, INCLUSIVE. Defaults to today in the clinic's zone. */
|
|
66876
|
+
to?: string;
|
|
66877
|
+
/** @description One sucursal. Omit for all of them. */
|
|
66878
|
+
location_id?: string;
|
|
66879
|
+
/** @description One profesional. A foreign id is a 404, never an empty report. */
|
|
66880
|
+
professional_id?: string;
|
|
66881
|
+
};
|
|
66882
|
+
header?: never;
|
|
66883
|
+
path?: never;
|
|
66884
|
+
cookie?: never;
|
|
66885
|
+
};
|
|
66886
|
+
requestBody?: never;
|
|
66887
|
+
responses: {
|
|
66888
|
+
/** @description Clinic commercial numbers */
|
|
66889
|
+
200: {
|
|
66890
|
+
headers: {
|
|
66891
|
+
[name: string]: unknown;
|
|
66892
|
+
};
|
|
66893
|
+
content: {
|
|
66894
|
+
/**
|
|
66895
|
+
* @example {
|
|
66896
|
+
* "data": {
|
|
66897
|
+
* "from": "2026-06-01",
|
|
66898
|
+
* "to": "2026-08-29",
|
|
66899
|
+
* "timezone": "America/Santiago",
|
|
66900
|
+
* "location_id": null,
|
|
66901
|
+
* "professional_id": null,
|
|
66902
|
+
* "state": "ready",
|
|
66903
|
+
* "state_reason": null,
|
|
66904
|
+
* "regime": "evidencia",
|
|
66905
|
+
* "regime_label": "Aceptación por evidencia",
|
|
66906
|
+
* "regime_rule": "Leído desde tu software de agenda: un presupuesto cuenta como aceptado cuando se realizó una de sus prestaciones o el paciente agendó una cita después de recibirlo.",
|
|
66907
|
+
* "source": {
|
|
66908
|
+
* "kind": "mirror",
|
|
66909
|
+
* "synced_at": "2026-08-30T03:10:00.000Z"
|
|
66910
|
+
* },
|
|
66911
|
+
* "formulas": {
|
|
66912
|
+
* "acceptance": "mentores_2026_09_25",
|
|
66913
|
+
* "cierre": "cierre_2026_09_25",
|
|
66914
|
+
* "first_visit": "propuesta",
|
|
66915
|
+
* "second_visit": "propuesta",
|
|
66916
|
+
* "botados": "propuesta"
|
|
66917
|
+
* },
|
|
66918
|
+
* "headline": {
|
|
66919
|
+
* "collected_clp": 48500000,
|
|
66920
|
+
* "previous_collected_clp": 44100000,
|
|
66921
|
+
* "delta_pct": 10,
|
|
66922
|
+
* "previous_from": "2026-03-03",
|
|
66923
|
+
* "previous_to": "2026-05-31",
|
|
66924
|
+
* "rule": "Lo cobrado en el período: todos los pagos recibidos, sin los anulados. Se compara con el período anterior del mismo largo."
|
|
66925
|
+
* },
|
|
66926
|
+
* "acceptance": {
|
|
66927
|
+
* "presented": 420,
|
|
66928
|
+
* "accepted": 231,
|
|
66929
|
+
* "rate": 55,
|
|
66930
|
+
* "same_day": 118,
|
|
66931
|
+
* "later": 113,
|
|
66932
|
+
* "cita_only": 14,
|
|
66933
|
+
* "pending": 36,
|
|
66934
|
+
* "presented_clp": 142000000,
|
|
66935
|
+
* "accepted_clp": 71300000,
|
|
66936
|
+
* "rate_30d": 47.2,
|
|
66937
|
+
* "rate_60d": 53.8,
|
|
66938
|
+
* "formula": "mentores_2026_09_25",
|
|
66939
|
+
* "window_days": 60,
|
|
66940
|
+
* "long_window_days": 90,
|
|
66941
|
+
* "rule": "Presupuestos aceptados ÷ presupuestos presentados, cada presupuesto una vez."
|
|
66942
|
+
* },
|
|
66943
|
+
* "cierres": {
|
|
66944
|
+
* "count": 180,
|
|
66945
|
+
* "value_clp": 58900000,
|
|
66946
|
+
* "accepted_without_payment": 51,
|
|
66947
|
+
* "formula": "cierre_2026_09_25",
|
|
66948
|
+
* "rule": "Un cierre es el primer pago de un presupuesto aceptado."
|
|
66949
|
+
* },
|
|
66950
|
+
* "cohorts": [
|
|
66951
|
+
* {
|
|
66952
|
+
* "month": "2026-06",
|
|
66953
|
+
* "presented": 140,
|
|
66954
|
+
* "accepted": 80,
|
|
66955
|
+
* "rate": 57.1,
|
|
66956
|
+
* "same_day": 41,
|
|
66957
|
+
* "later": 39,
|
|
66958
|
+
* "cita_only": 2,
|
|
66959
|
+
* "pending": 0,
|
|
66960
|
+
* "presented_clp": 47000000,
|
|
66961
|
+
* "accepted_clp": 24800000,
|
|
66962
|
+
* "rate_30d": 49.3,
|
|
66963
|
+
* "rate_60d": 56.4,
|
|
66964
|
+
* "mature": true
|
|
66965
|
+
* }
|
|
66966
|
+
* ],
|
|
66967
|
+
* "by_professional": [
|
|
66968
|
+
* {
|
|
66969
|
+
* "professional_id": "0f3c2a9e-5b1d-4c7e-9a42-6d8e1f2b3c4d",
|
|
66970
|
+
* "professional_name": "Dra. Camila Soto",
|
|
66971
|
+
* "presented": 96,
|
|
66972
|
+
* "accepted": 61,
|
|
66973
|
+
* "rate": 63.5,
|
|
66974
|
+
* "same_day": 30,
|
|
66975
|
+
* "later": 31,
|
|
66976
|
+
* "cita_only": 3,
|
|
66977
|
+
* "pending": 8,
|
|
66978
|
+
* "presented_clp": 33400000,
|
|
66979
|
+
* "accepted_clp": 19900000,
|
|
66980
|
+
* "cierres": 47,
|
|
66981
|
+
* "cierres_clp": 15100000
|
|
66982
|
+
* }
|
|
66983
|
+
* ],
|
|
66984
|
+
* "unassigned_presented": 0,
|
|
66985
|
+
* "unassigned_cierres": 0,
|
|
66986
|
+
* "months": [
|
|
66987
|
+
* {
|
|
66988
|
+
* "month": "2026-06",
|
|
66989
|
+
* "accepted_clp": 24100000,
|
|
66990
|
+
* "produced_clp": 19700000,
|
|
66991
|
+
* "collected_clp": 16200000,
|
|
66992
|
+
* "cierres": 62,
|
|
66993
|
+
* "cierres_clp": 20300000
|
|
66994
|
+
* }
|
|
66995
|
+
* ],
|
|
66996
|
+
* "first_visit": {
|
|
66997
|
+
* "formula": "propuesta",
|
|
66998
|
+
* "patients": 210,
|
|
66999
|
+
* "paid": 97,
|
|
67000
|
+
* "rate": 46.2,
|
|
67001
|
+
* "rule": "Fórmula propuesta."
|
|
67002
|
+
* },
|
|
67003
|
+
* "second_visit": {
|
|
67004
|
+
* "formula": "propuesta",
|
|
67005
|
+
* "eligible": 113,
|
|
67006
|
+
* "converted": 29,
|
|
67007
|
+
* "rate": 25.7,
|
|
67008
|
+
* "rule": "Fórmula propuesta."
|
|
67009
|
+
* },
|
|
67010
|
+
* "botados": {
|
|
67011
|
+
* "unaccepted": {
|
|
67012
|
+
* "count": 88,
|
|
67013
|
+
* "clp": 31200000
|
|
67014
|
+
* },
|
|
67015
|
+
* "accepted_unscheduled": {
|
|
67016
|
+
* "count": 17,
|
|
67017
|
+
* "clp": 6400000
|
|
67018
|
+
* },
|
|
67019
|
+
* "mid_treatment_no_future_cita": {
|
|
67020
|
+
* "count": 23,
|
|
67021
|
+
* "clp": 9800000
|
|
67022
|
+
* },
|
|
67023
|
+
* "formula": "propuesta",
|
|
67024
|
+
* "basis": "live_last_6_months",
|
|
67025
|
+
* "total": {
|
|
67026
|
+
* "count": 128,
|
|
67027
|
+
* "clp": 47400000
|
|
67028
|
+
* },
|
|
67029
|
+
* "focus": "unaccepted",
|
|
67030
|
+
* "rule": "Fórmula propuesta."
|
|
67031
|
+
* },
|
|
67032
|
+
* "coverage": {
|
|
67033
|
+
* "plans_without_lines": 0,
|
|
67034
|
+
* "excluded_zero": 301,
|
|
67035
|
+
* "excluded_entry_only": 92
|
|
67036
|
+
* }
|
|
67037
|
+
* }
|
|
67038
|
+
* }
|
|
67039
|
+
*/
|
|
67040
|
+
"application/json": {
|
|
67041
|
+
data: components["schemas"]["ClinicComercialReport"];
|
|
67042
|
+
};
|
|
67043
|
+
};
|
|
67044
|
+
};
|
|
67045
|
+
/** @description Validation error */
|
|
67046
|
+
400: {
|
|
67047
|
+
headers: {
|
|
67048
|
+
[name: string]: unknown;
|
|
67049
|
+
};
|
|
67050
|
+
content: {
|
|
67051
|
+
"application/json": components["schemas"]["Error"];
|
|
67052
|
+
};
|
|
67053
|
+
};
|
|
67054
|
+
/** @description Unauthorized */
|
|
67055
|
+
401: {
|
|
67056
|
+
headers: {
|
|
67057
|
+
[name: string]: unknown;
|
|
67058
|
+
};
|
|
67059
|
+
content: {
|
|
67060
|
+
"application/json": components["schemas"]["Error"];
|
|
67061
|
+
};
|
|
67062
|
+
};
|
|
67063
|
+
/** @description Forbidden */
|
|
67064
|
+
403: {
|
|
67065
|
+
headers: {
|
|
67066
|
+
[name: string]: unknown;
|
|
67067
|
+
};
|
|
67068
|
+
content: {
|
|
67069
|
+
"application/json": components["schemas"]["Error"];
|
|
67070
|
+
};
|
|
67071
|
+
};
|
|
67072
|
+
/** @description Not found */
|
|
67073
|
+
404: {
|
|
67074
|
+
headers: {
|
|
67075
|
+
[name: string]: unknown;
|
|
67076
|
+
};
|
|
67077
|
+
content: {
|
|
67078
|
+
"application/json": components["schemas"]["Error"];
|
|
67079
|
+
};
|
|
67080
|
+
};
|
|
67081
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
67082
|
+
409: {
|
|
67083
|
+
headers: {
|
|
67084
|
+
[name: string]: unknown;
|
|
67085
|
+
};
|
|
67086
|
+
content: {
|
|
67087
|
+
"application/json": components["schemas"]["Error"];
|
|
67088
|
+
};
|
|
67089
|
+
};
|
|
67090
|
+
/** @description Rate limited */
|
|
67091
|
+
429: {
|
|
67092
|
+
headers: {
|
|
67093
|
+
[name: string]: unknown;
|
|
67094
|
+
};
|
|
67095
|
+
content: {
|
|
67096
|
+
"application/json": components["schemas"]["Error"];
|
|
67097
|
+
};
|
|
67098
|
+
};
|
|
67099
|
+
};
|
|
67100
|
+
};
|
|
67101
|
+
put?: never;
|
|
67102
|
+
post?: never;
|
|
67103
|
+
delete?: never;
|
|
67104
|
+
options?: never;
|
|
67105
|
+
head?: never;
|
|
67106
|
+
patch?: never;
|
|
67107
|
+
trace?: never;
|
|
67108
|
+
};
|
|
66857
67109
|
"/ads/state": {
|
|
66858
67110
|
parameters: {
|
|
66859
67111
|
query?: never;
|
|
@@ -68431,6 +68683,10 @@ interface paths {
|
|
|
68431
68683
|
* "lock": null,
|
|
68432
68684
|
* "awaiting_switch": false,
|
|
68433
68685
|
* "source": "available",
|
|
68686
|
+
* "ready": true,
|
|
68687
|
+
* "ready_reason": null,
|
|
68688
|
+
* "count_28d": 212,
|
|
68689
|
+
* "weekly_28d": 53,
|
|
68434
68690
|
* "verdict": "below_threshold",
|
|
68435
68691
|
* "active_ad_sets": 0,
|
|
68436
68692
|
* "last_sent_at": "2026-09-25T12:40:00.000Z",
|
|
@@ -68485,6 +68741,10 @@ interface paths {
|
|
|
68485
68741
|
* "lock": null,
|
|
68486
68742
|
* "awaiting_switch": false,
|
|
68487
68743
|
* "source": "available",
|
|
68744
|
+
* "ready": true,
|
|
68745
|
+
* "ready_reason": null,
|
|
68746
|
+
* "count_28d": 96,
|
|
68747
|
+
* "weekly_28d": 24,
|
|
68488
68748
|
* "verdict": "not_checked",
|
|
68489
68749
|
* "active_ad_sets": 0,
|
|
68490
68750
|
* "last_sent_at": "2026-09-25T11:40:00.000Z",
|
|
@@ -68539,6 +68799,10 @@ interface paths {
|
|
|
68539
68799
|
* "lock": null,
|
|
68540
68800
|
* "awaiting_switch": false,
|
|
68541
68801
|
* "source": "available",
|
|
68802
|
+
* "ready": false,
|
|
68803
|
+
* "ready_reason": "off",
|
|
68804
|
+
* "count_28d": 71,
|
|
68805
|
+
* "weekly_28d": 17.8,
|
|
68542
68806
|
* "verdict": "not_checked",
|
|
68543
68807
|
* "active_ad_sets": 0,
|
|
68544
68808
|
* "last_sent_at": "2026-09-25T10:40:00.000Z",
|
|
@@ -68593,6 +68857,10 @@ interface paths {
|
|
|
68593
68857
|
* "lock": null,
|
|
68594
68858
|
* "awaiting_switch": false,
|
|
68595
68859
|
* "source": "available",
|
|
68860
|
+
* "ready": true,
|
|
68861
|
+
* "ready_reason": null,
|
|
68862
|
+
* "count_28d": 40,
|
|
68863
|
+
* "weekly_28d": 10,
|
|
68596
68864
|
* "verdict": "not_checked",
|
|
68597
68865
|
* "active_ad_sets": 0,
|
|
68598
68866
|
* "last_sent_at": "2026-09-25T09:40:00.000Z",
|
|
@@ -68647,6 +68915,10 @@ interface paths {
|
|
|
68647
68915
|
* "lock": null,
|
|
68648
68916
|
* "awaiting_switch": false,
|
|
68649
68917
|
* "source": "available",
|
|
68918
|
+
* "ready": true,
|
|
68919
|
+
* "ready_reason": null,
|
|
68920
|
+
* "count_28d": 22,
|
|
68921
|
+
* "weekly_28d": 5.5,
|
|
68650
68922
|
* "verdict": "wired",
|
|
68651
68923
|
* "active_ad_sets": 2,
|
|
68652
68924
|
* "last_sent_at": "2026-09-25T08:40:00.000Z",
|
|
@@ -68701,6 +68973,10 @@ interface paths {
|
|
|
68701
68973
|
* "lock": null,
|
|
68702
68974
|
* "awaiting_switch": false,
|
|
68703
68975
|
* "source": "definition_missing",
|
|
68976
|
+
* "ready": false,
|
|
68977
|
+
* "ready_reason": "definition_missing",
|
|
68978
|
+
* "count_28d": 64,
|
|
68979
|
+
* "weekly_28d": 16,
|
|
68704
68980
|
* "verdict": "not_checked",
|
|
68705
68981
|
* "active_ad_sets": 0,
|
|
68706
68982
|
* "last_sent_at": null,
|
|
@@ -68755,6 +69031,10 @@ interface paths {
|
|
|
68755
69031
|
* "lock": "installments",
|
|
68756
69032
|
* "awaiting_switch": false,
|
|
68757
69033
|
* "source": "available",
|
|
69034
|
+
* "ready": false,
|
|
69035
|
+
* "ready_reason": "installments",
|
|
69036
|
+
* "count_28d": 58,
|
|
69037
|
+
* "weekly_28d": 14.5,
|
|
68758
69038
|
* "verdict": "not_checked",
|
|
68759
69039
|
* "active_ad_sets": 0,
|
|
68760
69040
|
* "last_sent_at": "2026-09-25T07:40:00.000Z",
|
|
@@ -68800,7 +69080,14 @@ interface paths {
|
|
|
68800
69080
|
* }
|
|
68801
69081
|
* ],
|
|
68802
69082
|
* "enabled_count": 4,
|
|
69083
|
+
* "waiting_count": 0,
|
|
68803
69084
|
* "stage_count": 6,
|
|
69085
|
+
* "first_payment_candidates": {
|
|
69086
|
+
* "count_28d": 64,
|
|
69087
|
+
* "weekly_28d": 16,
|
|
69088
|
+
* "mirror_count_28d": null,
|
|
69089
|
+
* "mirror_weekly_28d": null
|
|
69090
|
+
* },
|
|
68804
69091
|
* "restriction": {
|
|
68805
69092
|
* "kind": "unknown",
|
|
68806
69093
|
* "since": null
|
|
@@ -68808,8 +69095,8 @@ interface paths {
|
|
|
68808
69095
|
* "protected_dataset": null,
|
|
68809
69096
|
* "recommended_optimization_stage": {
|
|
68810
69097
|
* "stage": "appointment_attended",
|
|
68811
|
-
* "reason": "
|
|
68812
|
-
* "rate":
|
|
69098
|
+
* "reason": "rate_band",
|
|
69099
|
+
* "rate": 0.33490566037735847
|
|
68813
69100
|
* },
|
|
68814
69101
|
* "purchase_stage": "first_payment",
|
|
68815
69102
|
* "purchase_switch_available": false,
|
|
@@ -68972,16 +69259,19 @@ interface paths {
|
|
|
68972
69259
|
/**
|
|
68973
69260
|
* @example {
|
|
68974
69261
|
* "data": {
|
|
68975
|
-
* "stage": "
|
|
69262
|
+
* "stage": "first_payment",
|
|
68976
69263
|
* "source": "own",
|
|
68977
69264
|
* "vitrina": {
|
|
68978
|
-
* "stage_label": "
|
|
69265
|
+
* "stage_label": "Primer pago",
|
|
68979
69266
|
* "occurred_at": "2026-09-25T08:40:00.000Z",
|
|
68980
69267
|
* "value_clp": 1200000,
|
|
68981
69268
|
* "contact_tail": "a3f2"
|
|
68982
69269
|
* },
|
|
68983
69270
|
* "meta": {
|
|
68984
|
-
* "event": "
|
|
69271
|
+
* "event": "Purchase",
|
|
69272
|
+
* "value_clp": 1038075,
|
|
69273
|
+
* "capped": true,
|
|
69274
|
+
* "value_cap_clp": 1038075,
|
|
68985
69275
|
* "reaches_meta": true,
|
|
68986
69276
|
* "not_sent_reason": null,
|
|
68987
69277
|
* "fields": [
|
|
@@ -68989,7 +69279,7 @@ interface paths {
|
|
|
68989
69279
|
* "key": "event",
|
|
68990
69280
|
* "label": "Evento",
|
|
68991
69281
|
* "state": "sent",
|
|
68992
|
-
* "display": "
|
|
69282
|
+
* "display": "Purchase"
|
|
68993
69283
|
* },
|
|
68994
69284
|
* {
|
|
68995
69285
|
* "key": "time",
|
|
@@ -69000,13 +69290,15 @@ interface paths {
|
|
|
69000
69290
|
* {
|
|
69001
69291
|
* "key": "value",
|
|
69002
69292
|
* "label": "Valor",
|
|
69003
|
-
* "state": "
|
|
69293
|
+
* "state": "sent",
|
|
69294
|
+
* "display": "1.038.075 CLP"
|
|
69004
69295
|
* },
|
|
69005
69296
|
* {
|
|
69006
69297
|
* "key": "action_source",
|
|
69007
69298
|
* "label": "Dónde pasó",
|
|
69008
69299
|
* "state": "sent",
|
|
69009
|
-
* "display": "business_messaging"
|
|
69300
|
+
* "display": "business_messaging",
|
|
69301
|
+
* "display_channel": "whatsapp"
|
|
69010
69302
|
* },
|
|
69011
69303
|
* {
|
|
69012
69304
|
* "key": "email",
|
|
@@ -93213,7 +93505,7 @@ interface paths {
|
|
|
93213
93505
|
* ],
|
|
93214
93506
|
* "primary": false,
|
|
93215
93507
|
* "title": "Corregir los enlaces de tus anuncios",
|
|
93216
|
-
* "why": "
|
|
93508
|
+
* "why": "Así sabrás qué anuncio trajo cada paciente: hoy los clics de **2** anuncios llegan sin decir de cuál vienen.",
|
|
93217
93509
|
* "effect": "Meta puede reiniciar el aprendizaje de los conjuntos afectados; los anuncios siguen activos. Puedes deshacerlo.",
|
|
93218
93510
|
* "target": {
|
|
93219
93511
|
* "level": "profile",
|
|
@@ -93752,6 +94044,8 @@ interface paths {
|
|
|
93752
94044
|
before?: string;
|
|
93753
94045
|
/** @description Rows per page (default 20, max 50). */
|
|
93754
94046
|
limit?: number;
|
|
94047
|
+
/** @description Only one screen’s executions. `envio` = «Enviar a Meta»: `send_setup`, `send_stage`, `send_dataset`, `send_stop`, `send_protected_move` and their rollbacks. Omitted = every execution. */
|
|
94048
|
+
screen?: "envio";
|
|
93755
94049
|
/** @description `1` serves the deterministic sample dataset («Ver con datos de ejemplo»): same shapes, invented but internally consistent figures, no entitlement required (the scope still is). A sandbox workspace is always served the sample, with or without this parameter. */
|
|
93756
94050
|
sample?: "1" | "true";
|
|
93757
94051
|
};
|
|
@@ -105175,6 +105469,8 @@ interface paths {
|
|
|
105175
105469
|
* "name": "seguimiento_stock",
|
|
105176
105470
|
* "language": "es_CL",
|
|
105177
105471
|
* "category": "MARKETING",
|
|
105472
|
+
* "submitted_category": "UTILITY",
|
|
105473
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
105178
105474
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
105179
105475
|
* "header_text": null,
|
|
105180
105476
|
* "footer_text": "Autos del Valle",
|
|
@@ -105361,6 +105657,8 @@ interface paths {
|
|
|
105361
105657
|
* "name": "seguimiento_stock",
|
|
105362
105658
|
* "language": "es_CL",
|
|
105363
105659
|
* "category": "MARKETING",
|
|
105660
|
+
* "submitted_category": "MARKETING",
|
|
105661
|
+
* "category_reclassified_at": null,
|
|
105364
105662
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
105365
105663
|
* "header_text": null,
|
|
105366
105664
|
* "footer_text": "Autos del Valle",
|
|
@@ -105527,6 +105825,8 @@ interface paths {
|
|
|
105527
105825
|
* "name": "seguimiento_stock",
|
|
105528
105826
|
* "language": "es_CL",
|
|
105529
105827
|
* "category": "MARKETING",
|
|
105828
|
+
* "submitted_category": "UTILITY",
|
|
105829
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
105530
105830
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
105531
105831
|
* "header_text": null,
|
|
105532
105832
|
* "footer_text": "Autos del Valle",
|
|
@@ -105684,6 +105984,8 @@ interface paths {
|
|
|
105684
105984
|
* "name": "seguimiento_stock",
|
|
105685
105985
|
* "language": "es_CL",
|
|
105686
105986
|
* "category": "MARKETING",
|
|
105987
|
+
* "submitted_category": "UTILITY",
|
|
105988
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
105687
105989
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
105688
105990
|
* "header_text": null,
|
|
105689
105991
|
* "footer_text": "Autos del Valle",
|
|
@@ -106557,6 +106859,8 @@ interface paths {
|
|
|
106557
106859
|
* "name": "seguimiento_stock",
|
|
106558
106860
|
* "language": "es_CL",
|
|
106559
106861
|
* "category": "MARKETING",
|
|
106862
|
+
* "submitted_category": "UTILITY",
|
|
106863
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
106560
106864
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
106561
106865
|
* "header_text": null,
|
|
106562
106866
|
* "footer_text": "Autos del Valle",
|
|
@@ -106702,6 +107006,8 @@ interface paths {
|
|
|
106702
107006
|
* "name": "seguimiento_stock",
|
|
106703
107007
|
* "language": "es_CL",
|
|
106704
107008
|
* "category": "MARKETING",
|
|
107009
|
+
* "submitted_category": "UTILITY",
|
|
107010
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
106705
107011
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
106706
107012
|
* "header_text": null,
|
|
106707
107013
|
* "footer_text": "Autos del Valle",
|
|
@@ -106968,6 +107274,8 @@ interface paths {
|
|
|
106968
107274
|
* "name": "seguimiento_stock",
|
|
106969
107275
|
* "language": "es_CL",
|
|
106970
107276
|
* "category": "MARKETING",
|
|
107277
|
+
* "submitted_category": "UTILITY",
|
|
107278
|
+
* "category_reclassified_at": "2026-09-16T09:00:00.000Z",
|
|
106971
107279
|
* "body_text": "Hola {{1}}, el {{2}} que consultaste sigue disponible. ¿Seguimos viéndolo?",
|
|
106972
107280
|
* "header_text": null,
|
|
106973
107281
|
* "footer_text": "Autos del Valle",
|
|
@@ -114929,6 +115237,189 @@ interface components {
|
|
|
114929
115237
|
from: string;
|
|
114930
115238
|
to: string;
|
|
114931
115239
|
};
|
|
115240
|
+
ClinicComercialReport: {
|
|
115241
|
+
from: string;
|
|
115242
|
+
to: string;
|
|
115243
|
+
timezone: string;
|
|
115244
|
+
/** Format: uuid */
|
|
115245
|
+
location_id: string | null;
|
|
115246
|
+
/** Format: uuid */
|
|
115247
|
+
professional_id: string | null;
|
|
115248
|
+
/** @enum {string} */
|
|
115249
|
+
state: "ready" | "settling" | "empty";
|
|
115250
|
+
state_reason: string | null;
|
|
115251
|
+
/** @enum {string} */
|
|
115252
|
+
regime: "evidencia" | "explicita";
|
|
115253
|
+
regime_label: string;
|
|
115254
|
+
regime_rule: string;
|
|
115255
|
+
source: {
|
|
115256
|
+
/** @enum {string} */
|
|
115257
|
+
kind: "mirror" | "native";
|
|
115258
|
+
/** Format: date-time */
|
|
115259
|
+
synced_at: string | null;
|
|
115260
|
+
};
|
|
115261
|
+
formulas: {
|
|
115262
|
+
/** @enum {string} */
|
|
115263
|
+
acceptance: "mentores_2026_09_25";
|
|
115264
|
+
/** @enum {string} */
|
|
115265
|
+
cierre: "cierre_2026_09_25";
|
|
115266
|
+
/** @enum {string} */
|
|
115267
|
+
first_visit: "propuesta";
|
|
115268
|
+
/** @enum {string} */
|
|
115269
|
+
second_visit: "propuesta";
|
|
115270
|
+
/** @enum {string} */
|
|
115271
|
+
botados: "propuesta";
|
|
115272
|
+
};
|
|
115273
|
+
headline: {
|
|
115274
|
+
/** @description Cash collected in the window. `null` with a professional filter: a payment has no professional. */
|
|
115275
|
+
collected_clp: number | null;
|
|
115276
|
+
previous_collected_clp: number | null;
|
|
115277
|
+
delta_pct: number | null;
|
|
115278
|
+
previous_from: string;
|
|
115279
|
+
previous_to: string;
|
|
115280
|
+
rule: string;
|
|
115281
|
+
};
|
|
115282
|
+
acceptance: {
|
|
115283
|
+
/** @description Presupuestos presented (issued), one per lineage. */
|
|
115284
|
+
presented: number;
|
|
115285
|
+
accepted: number;
|
|
115286
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115287
|
+
rate: number | null;
|
|
115288
|
+
/** @description Accepted the day they were issued. */
|
|
115289
|
+
same_day: number;
|
|
115290
|
+
later: number;
|
|
115291
|
+
/** @description Accepted only through a cita still ahead — may drop if it is cancelled. */
|
|
115292
|
+
cita_only: number;
|
|
115293
|
+
/** @description Not accepted yet, window still open. */
|
|
115294
|
+
pending: number;
|
|
115295
|
+
/** @description CLP presented, entry lines excluded. */
|
|
115296
|
+
presented_clp: number;
|
|
115297
|
+
accepted_clp: number;
|
|
115298
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115299
|
+
rate_30d: number | null;
|
|
115300
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115301
|
+
rate_60d: number | null;
|
|
115302
|
+
/** @enum {string} */
|
|
115303
|
+
formula: "mentores_2026_09_25";
|
|
115304
|
+
window_days: number;
|
|
115305
|
+
long_window_days: number;
|
|
115306
|
+
rule: string;
|
|
115307
|
+
};
|
|
115308
|
+
cierres: {
|
|
115309
|
+
count: number;
|
|
115310
|
+
/** @description The accepted value of the presupuestos that closed — never the payments. */
|
|
115311
|
+
value_clp: number;
|
|
115312
|
+
accepted_without_payment: number;
|
|
115313
|
+
/** @enum {string} */
|
|
115314
|
+
formula: "cierre_2026_09_25";
|
|
115315
|
+
rule: string;
|
|
115316
|
+
};
|
|
115317
|
+
cohorts: {
|
|
115318
|
+
/** @description Issue month, `YYYY-MM`. */
|
|
115319
|
+
month: string;
|
|
115320
|
+
/** @description Presupuestos presented (issued), one per lineage. */
|
|
115321
|
+
presented: number;
|
|
115322
|
+
accepted: number;
|
|
115323
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115324
|
+
rate: number | null;
|
|
115325
|
+
/** @description Accepted the day they were issued. */
|
|
115326
|
+
same_day: number;
|
|
115327
|
+
later: number;
|
|
115328
|
+
/** @description Accepted only through a cita still ahead — may drop if it is cancelled. */
|
|
115329
|
+
cita_only: number;
|
|
115330
|
+
/** @description Not accepted yet, window still open. */
|
|
115331
|
+
pending: number;
|
|
115332
|
+
/** @description CLP presented, entry lines excluded. */
|
|
115333
|
+
presented_clp: number;
|
|
115334
|
+
accepted_clp: number;
|
|
115335
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115336
|
+
rate_30d: number | null;
|
|
115337
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115338
|
+
rate_60d: number | null;
|
|
115339
|
+
/** @description Every presupuesto of the month is past its window. */
|
|
115340
|
+
mature: boolean;
|
|
115341
|
+
}[];
|
|
115342
|
+
by_professional: {
|
|
115343
|
+
/** Format: uuid */
|
|
115344
|
+
professional_id: string;
|
|
115345
|
+
professional_name: string;
|
|
115346
|
+
/** @description Presupuestos presented (issued), one per lineage. */
|
|
115347
|
+
presented: number;
|
|
115348
|
+
accepted: number;
|
|
115349
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115350
|
+
rate: number | null;
|
|
115351
|
+
/** @description Accepted the day they were issued. */
|
|
115352
|
+
same_day: number;
|
|
115353
|
+
later: number;
|
|
115354
|
+
/** @description Accepted only through a cita still ahead — may drop if it is cancelled. */
|
|
115355
|
+
cita_only: number;
|
|
115356
|
+
/** @description Not accepted yet, window still open. */
|
|
115357
|
+
pending: number;
|
|
115358
|
+
/** @description CLP presented, entry lines excluded. */
|
|
115359
|
+
presented_clp: number;
|
|
115360
|
+
accepted_clp: number;
|
|
115361
|
+
cierres: number;
|
|
115362
|
+
cierres_clp: number;
|
|
115363
|
+
}[];
|
|
115364
|
+
unassigned_presented: number;
|
|
115365
|
+
unassigned_cierres: number;
|
|
115366
|
+
months: {
|
|
115367
|
+
month: string;
|
|
115368
|
+
accepted_clp: number;
|
|
115369
|
+
produced_clp: number;
|
|
115370
|
+
collected_clp: number | null;
|
|
115371
|
+
cierres: number;
|
|
115372
|
+
cierres_clp: number;
|
|
115373
|
+
}[];
|
|
115374
|
+
first_visit: {
|
|
115375
|
+
/** @enum {string} */
|
|
115376
|
+
formula: "propuesta";
|
|
115377
|
+
patients: number;
|
|
115378
|
+
paid: number;
|
|
115379
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115380
|
+
rate: number | null;
|
|
115381
|
+
rule: string;
|
|
115382
|
+
};
|
|
115383
|
+
second_visit: {
|
|
115384
|
+
/** @enum {string} */
|
|
115385
|
+
formula: "propuesta";
|
|
115386
|
+
eligible: number;
|
|
115387
|
+
converted: number;
|
|
115388
|
+
/** @description Percent, one decimal. `null` when there was nothing to divide — never 0. */
|
|
115389
|
+
rate: number | null;
|
|
115390
|
+
rule: string;
|
|
115391
|
+
};
|
|
115392
|
+
botados: {
|
|
115393
|
+
unaccepted: {
|
|
115394
|
+
count: number;
|
|
115395
|
+
clp: number;
|
|
115396
|
+
};
|
|
115397
|
+
accepted_unscheduled: {
|
|
115398
|
+
count: number;
|
|
115399
|
+
clp: number;
|
|
115400
|
+
};
|
|
115401
|
+
mid_treatment_no_future_cita: {
|
|
115402
|
+
count: number;
|
|
115403
|
+
clp: number;
|
|
115404
|
+
};
|
|
115405
|
+
/** @enum {string} */
|
|
115406
|
+
formula: "propuesta";
|
|
115407
|
+
/** @enum {string} */
|
|
115408
|
+
basis: "live_last_6_months";
|
|
115409
|
+
total: {
|
|
115410
|
+
count: number;
|
|
115411
|
+
clp: number;
|
|
115412
|
+
};
|
|
115413
|
+
/** @enum {string|null} */
|
|
115414
|
+
focus: "unaccepted" | "accepted_unscheduled" | "mid_treatment_no_future_cita" | null;
|
|
115415
|
+
rule: string;
|
|
115416
|
+
};
|
|
115417
|
+
coverage: {
|
|
115418
|
+
plans_without_lines: number;
|
|
115419
|
+
excluded_zero: number;
|
|
115420
|
+
excluded_entry_only: number;
|
|
115421
|
+
};
|
|
115422
|
+
};
|
|
114932
115423
|
AdsState: {
|
|
114933
115424
|
/** @enum {string} */
|
|
114934
115425
|
entitlement: "off" | "pending_on" | "on" | "pending_off";
|
|
@@ -115064,6 +115555,17 @@ interface components {
|
|
|
115064
115555
|
* @enum {string}
|
|
115065
115556
|
*/
|
|
115066
115557
|
source: "available" | "no_payments_source" | "definition_missing";
|
|
115558
|
+
/** @description If the stage happened now, it would reach Meta: switched on and its source has what it needs. */
|
|
115559
|
+
ready: boolean;
|
|
115560
|
+
/**
|
|
115561
|
+
* @description Why it would not reach Meta now; `null` when `ready`. Precedence: `installments` > `awaiting_switch` > `definition_missing` > `no_payments_yet` > `off`.
|
|
115562
|
+
* @enum {string|null}
|
|
115563
|
+
*/
|
|
115564
|
+
ready_reason: "installments" | "awaiting_switch" | "definition_missing" | "no_payments_yet" | "off" | null;
|
|
115565
|
+
/** @description Outcomes of the stage that happened in Vitrina over the last 28 days, sent or not. `first_payment`: first payments of accepted plans in Vitrina’s payment ledger, before the switch too. */
|
|
115566
|
+
count_28d: number;
|
|
115567
|
+
/** @description `count_28d / 4`, one decimal — «por semana». */
|
|
115568
|
+
weekly_28d: number;
|
|
115067
115569
|
/** @enum {string} */
|
|
115068
115570
|
verdict: "wired" | "sent_not_used" | "below_threshold" | "custom_conversion_broken" | "missing_custom_conversion" | "connection_broken" | "check_failed" | "not_checked";
|
|
115069
115571
|
active_ad_sets: number;
|
|
@@ -115091,9 +115593,22 @@ interface components {
|
|
|
115091
115593
|
/** @description Sample mode only: when the scripted arrival plays. */
|
|
115092
115594
|
sample_arrival_ms?: number;
|
|
115093
115595
|
}[];
|
|
115596
|
+
/** @description Counted stages that are `ready` — «{enabled_count} de {stage_count} etapas llegan a Meta». A switched-on stage whose source has no data yet is in `waiting_count` instead. */
|
|
115094
115597
|
enabled_count: number;
|
|
115095
|
-
/** @description «
|
|
115598
|
+
/** @description Counted stages switched on but not `ready` yet («1 espera pagos»). `enabled_count + waiting_count` = the switched-on counted stages. */
|
|
115599
|
+
waiting_count: number;
|
|
115600
|
+
/** @description «{enabled_count} de {stage_count} etapas»; locked stages and the first payment before the switch excluded. */
|
|
115096
115601
|
stage_count: number;
|
|
115602
|
+
/** @description Clinics: the Purchase volume of the first payment, counted before the switch too. `null` outside clinics or when it could not be read. */
|
|
115603
|
+
first_payment_candidates: {
|
|
115604
|
+
/** @description First payments of accepted plans over the last 28 days in Vitrina’s payment ledger — what reaches Meta as Purchase once switched. */
|
|
115605
|
+
count_28d: number;
|
|
115606
|
+
/** @description `count_28d / 4`, one decimal. */
|
|
115607
|
+
weekly_28d: number;
|
|
115608
|
+
/** @description The same volume in the clinic system’s mirror, for information: mirrored payments do not reach Meta. `null` without a mirror opt-in. */
|
|
115609
|
+
mirror_count_28d: number | null;
|
|
115610
|
+
mirror_weekly_28d: number | null;
|
|
115611
|
+
} | null;
|
|
115097
115612
|
/** @description Health-dataset restriction by Meta (clinics): `blocked` = Meta counted none of the Lead / Schedule / Purchase sent on ≥ 3 of the last 7 days. `unknown` when it could not be read; `none` outside clinics. */
|
|
115098
115613
|
restriction: {
|
|
115099
115614
|
/** @enum {string} */
|
|
@@ -115158,12 +115673,19 @@ interface components {
|
|
|
115158
115673
|
vitrina: {
|
|
115159
115674
|
stage_label: string;
|
|
115160
115675
|
occurred_at: string;
|
|
115676
|
+
/** @description The workspace’s full value, CLP (before Meta’s cap). */
|
|
115161
115677
|
value_clp: number | null;
|
|
115162
115678
|
/** @description Last 4 characters of the contact’s opaque reference; never a name or a contact detail. */
|
|
115163
115679
|
contact_tail: string | null;
|
|
115164
115680
|
};
|
|
115165
115681
|
meta: {
|
|
115166
115682
|
event: string;
|
|
115683
|
+
/** @description The value Meta receives, CLP; `null` when Meta gets no value. */
|
|
115684
|
+
value_clp: number | null;
|
|
115685
|
+
/** @description Meta receives the workspace’s 95th-percentile cap instead of the full value (`vitrina.value_clp`). */
|
|
115686
|
+
capped: boolean;
|
|
115687
|
+
/** @description The cap applied, CLP, when `capped`. */
|
|
115688
|
+
value_cap_clp: number | null;
|
|
115167
115689
|
reaches_meta: boolean;
|
|
115168
115690
|
/** @enum {string|null} */
|
|
115169
115691
|
not_sent_reason: "marketing_opt_out" | "stage_off" | "stage_locked" | null;
|
|
@@ -115178,6 +115700,11 @@ interface components {
|
|
|
115178
115700
|
state: "sent" | "hashed" | "withheld" | "absent";
|
|
115179
115701
|
/** @description Non-identifying fields only (event, time, value, where it happened). */
|
|
115180
115702
|
display?: string;
|
|
115703
|
+
/**
|
|
115704
|
+
* @description `action_source` only: the conversation’s channel when the event was born in a messaging thread; `null` when not, or unknown.
|
|
115705
|
+
* @enum {string|null}
|
|
115706
|
+
*/
|
|
115707
|
+
display_channel?: "whatsapp" | "instagram" | "messenger" | null;
|
|
115181
115708
|
}[];
|
|
115182
115709
|
};
|
|
115183
115710
|
/** @description What never leaves Vitrina, as keys (`national_id`, `clinical_data`, `notes`, …). */
|
|
@@ -115829,8 +116356,11 @@ interface components {
|
|
|
115829
116356
|
AdsFeedItem: {
|
|
115830
116357
|
/** Format: uuid */
|
|
115831
116358
|
id: string;
|
|
115832
|
-
/**
|
|
115833
|
-
|
|
116359
|
+
/**
|
|
116360
|
+
* @description The outcome stage. `first_payment` = a clinic’s first payment of an accepted plan («Primer pago»), the Purchase Meta receives after the switch.
|
|
116361
|
+
* @enum {string}
|
|
116362
|
+
*/
|
|
116363
|
+
stage: "lead_created" | "appointment_booked" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "payment_received";
|
|
115834
116364
|
/** @description When the outcome happened. */
|
|
115835
116365
|
occurred_at: string;
|
|
115836
116366
|
/** @description When Vitrina recorded it — the cursor field, microsecond-exact. */
|