@vitrina/api 11.49.6 → 11.51.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
@@ -131317,6 +131317,20 @@ interface components {
131317
131317
  /** @description `true` when the measurement start could not be read: every ratio (return, primer pago, MER, accepted plans) is unknown — show «—», never a return over days nobody measured. */
131318
131318
  start_unknown?: boolean;
131319
131319
  };
131320
+ /** @description «Retorno total de pacientes de anuncios»: the entity’s ad patients (a campaign: their earliest credited first payment; an ad: the ad that opened their thread) and what they paid in the period. Not set on ad sets. `null` = unknown. */
131321
+ AdsPatientReturn: {
131322
+ /** @description Ad patients with at least one payment in the period. */
131323
+ patients: number;
131324
+ payments: number;
131325
+ /** @description Their payments in the period (CLP): first + later. */
131326
+ value: number;
131327
+ /** @description Of `value`, the engine-credited first payments. */
131328
+ first_value: number;
131329
+ /** @description Of `value`, the later payments (cuotas, more treatment). */
131330
+ later_value: number;
131331
+ /** @description `value ÷ spend`; `null` when spend is unknown or 0. */
131332
+ roas: number | null;
131333
+ } | null;
131320
131334
  AdsReportRow: {
131321
131335
  spend: number | null;
131322
131336
  /** @description Vitrina’s own funnel: conversations each ad OPENED in the period and the stages recorded against them (a campaign / ad set sums its ads). `null` = unknown (the read failed), never 0. */
@@ -131343,6 +131357,7 @@ interface components {
131343
131357
  accepted_count?: number | null;
131344
131358
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131345
131359
  accepted_return?: number | null;
131360
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131346
131361
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131347
131362
  meta: {
131348
131363
  conversations_started: number | null;
@@ -131409,6 +131424,7 @@ interface components {
131409
131424
  accepted_count?: number | null;
131410
131425
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131411
131426
  accepted_return?: number | null;
131427
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131412
131428
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131413
131429
  meta: {
131414
131430
  conversations_started: number | null;
@@ -131486,6 +131502,7 @@ interface components {
131486
131502
  accepted_count?: number | null;
131487
131503
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131488
131504
  accepted_return?: number | null;
131505
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131489
131506
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131490
131507
  meta: {
131491
131508
  conversations_started: number | null;
@@ -131511,6 +131528,13 @@ interface components {
131511
131528
  /** @description The caller lacks `contacts:read`: `people` is empty on purpose. */
131512
131529
  people_hidden: boolean;
131513
131530
  };
131531
+ /** @description «Retorno total de pacientes de anuncios (primer pago + cuotas)» over the money-covered window. On `current` only; `null` = unknown (the credit is still warming). */
131532
+ AdsPatientReturnTotal: components["schemas"]["AdsPatientReturn"] & ({
131533
+ /** @description Median days from the credited first ad touch to the first payment, over the first payments of the period. */
131534
+ median_days_to_first_payment: number | null;
131535
+ /** @description Everything the ad patients who paid have paid so far (to the period’s end) ÷ how many they are (CLP). */
131536
+ avg_paid_per_patient: number | null;
131537
+ } | null);
131514
131538
  AdsOverviewDay: {
131515
131539
  date: string;
131516
131540
  /** @description `null` exactly when the engine could not scope spend. */
@@ -131570,6 +131594,7 @@ interface components {
131570
131594
  } | null;
131571
131595
  /** @description CASH (CLP): the period’s FIRST payments of a plan (a clinic’s first pago of an accepted presupuesto) that the attribution engine credited to an ad, at their credited share — the numerator of «Retorno en primer pago». Part of `revenue`, never added to it. On `current` only; `null` = unknown (the credit is still warming). */
131572
131596
  first_payment_attributed_revenue?: number | null;
131597
+ patient_return?: components["schemas"]["AdsPatientReturnTotal"];
131573
131598
  /** @description DISTINCT people behind the period’s recorded outcomes (every stage counted once per person) — the denominator of «Resultados desde anuncios». `outcomes` sums events, not people. On `current` only; `null` = unknown. */
131574
131599
  people?: number | null;
131575
131600
  /** @description Of `people`, those with at least one outcome the attribution engine credited to an ad — «Resultados desde anuncios». On `current` only; `null` = unknown (the credit is still warming). */
@@ -131614,6 +131639,7 @@ interface components {
131614
131639
  } | null;
131615
131640
  /** @description CASH (CLP): the period’s FIRST payments of a plan (a clinic’s first pago of an accepted presupuesto) that the attribution engine credited to an ad, at their credited share — the numerator of «Retorno en primer pago». Part of `revenue`, never added to it. On `current` only; `null` = unknown (the credit is still warming). */
131616
131641
  first_payment_attributed_revenue?: number | null;
131642
+ patient_return?: components["schemas"]["AdsPatientReturnTotal"];
131617
131643
  /** @description DISTINCT people behind the period’s recorded outcomes (every stage counted once per person) — the denominator of «Resultados desde anuncios». `outcomes` sums events, not people. On `current` only; `null` = unknown. */
131618
131644
  people?: number | null;
131619
131645
  /** @description Of `people`, those with at least one outcome the attribution engine credited to an ad — «Resultados desde anuncios». On `current` only; `null` = unknown (the credit is still warming). */
@@ -131729,6 +131755,7 @@ interface components {
131729
131755
  outcome_count: number | null;
131730
131756
  }[] | null;
131731
131757
  conversational?: components["schemas"]["AdsConversational"];
131758
+ patient_return?: components["schemas"]["AdsPatientReturn"] & unknown;
131732
131759
  }[];
131733
131760
  coverage?: components["schemas"]["AdsCoverage"] & unknown;
131734
131761
  /** @description The rows reconciled with the headline, in PEOPLE. `null`/absent = not known yet (the credit is warming): print no remainder. */
@@ -131885,6 +131912,7 @@ interface components {
131885
131912
  * @enum {string}
131886
131913
  */
131887
131914
  verdict: "best" | "pays" | "refresh" | "pause" | "watch" | "thin";
131915
+ patient_return?: components["schemas"]["AdsPatientReturn"] & unknown;
131888
131916
  }[];
131889
131917
  best_ad_external_id: string | null;
131890
131918
  };
package/dist/index.d.ts CHANGED
@@ -131317,6 +131317,20 @@ interface components {
131317
131317
  /** @description `true` when the measurement start could not be read: every ratio (return, primer pago, MER, accepted plans) is unknown — show «—», never a return over days nobody measured. */
131318
131318
  start_unknown?: boolean;
131319
131319
  };
131320
+ /** @description «Retorno total de pacientes de anuncios»: the entity’s ad patients (a campaign: their earliest credited first payment; an ad: the ad that opened their thread) and what they paid in the period. Not set on ad sets. `null` = unknown. */
131321
+ AdsPatientReturn: {
131322
+ /** @description Ad patients with at least one payment in the period. */
131323
+ patients: number;
131324
+ payments: number;
131325
+ /** @description Their payments in the period (CLP): first + later. */
131326
+ value: number;
131327
+ /** @description Of `value`, the engine-credited first payments. */
131328
+ first_value: number;
131329
+ /** @description Of `value`, the later payments (cuotas, more treatment). */
131330
+ later_value: number;
131331
+ /** @description `value ÷ spend`; `null` when spend is unknown or 0. */
131332
+ roas: number | null;
131333
+ } | null;
131320
131334
  AdsReportRow: {
131321
131335
  spend: number | null;
131322
131336
  /** @description Vitrina’s own funnel: conversations each ad OPENED in the period and the stages recorded against them (a campaign / ad set sums its ads). `null` = unknown (the read failed), never 0. */
@@ -131343,6 +131357,7 @@ interface components {
131343
131357
  accepted_count?: number | null;
131344
131358
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131345
131359
  accepted_return?: number | null;
131360
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131346
131361
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131347
131362
  meta: {
131348
131363
  conversations_started: number | null;
@@ -131409,6 +131424,7 @@ interface components {
131409
131424
  accepted_count?: number | null;
131410
131425
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131411
131426
  accepted_return?: number | null;
131427
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131412
131428
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131413
131429
  meta: {
131414
131430
  conversations_started: number | null;
@@ -131486,6 +131502,7 @@ interface components {
131486
131502
  accepted_count?: number | null;
131487
131503
  /** @description `accepted_value` ÷ spend («Retorno en presupuestos»). `null` = unknown or no spend. */
131488
131504
  accepted_return?: number | null;
131505
+ patient_return?: components["schemas"]["AdsPatientReturn"];
131489
131506
  /** @description Meta’s OWN figures (its 7-day window, every sender) — never added to Vitrina’s. */
131490
131507
  meta: {
131491
131508
  conversations_started: number | null;
@@ -131511,6 +131528,13 @@ interface components {
131511
131528
  /** @description The caller lacks `contacts:read`: `people` is empty on purpose. */
131512
131529
  people_hidden: boolean;
131513
131530
  };
131531
+ /** @description «Retorno total de pacientes de anuncios (primer pago + cuotas)» over the money-covered window. On `current` only; `null` = unknown (the credit is still warming). */
131532
+ AdsPatientReturnTotal: components["schemas"]["AdsPatientReturn"] & ({
131533
+ /** @description Median days from the credited first ad touch to the first payment, over the first payments of the period. */
131534
+ median_days_to_first_payment: number | null;
131535
+ /** @description Everything the ad patients who paid have paid so far (to the period’s end) ÷ how many they are (CLP). */
131536
+ avg_paid_per_patient: number | null;
131537
+ } | null);
131514
131538
  AdsOverviewDay: {
131515
131539
  date: string;
131516
131540
  /** @description `null` exactly when the engine could not scope spend. */
@@ -131570,6 +131594,7 @@ interface components {
131570
131594
  } | null;
131571
131595
  /** @description CASH (CLP): the period’s FIRST payments of a plan (a clinic’s first pago of an accepted presupuesto) that the attribution engine credited to an ad, at their credited share — the numerator of «Retorno en primer pago». Part of `revenue`, never added to it. On `current` only; `null` = unknown (the credit is still warming). */
131572
131596
  first_payment_attributed_revenue?: number | null;
131597
+ patient_return?: components["schemas"]["AdsPatientReturnTotal"];
131573
131598
  /** @description DISTINCT people behind the period’s recorded outcomes (every stage counted once per person) — the denominator of «Resultados desde anuncios». `outcomes` sums events, not people. On `current` only; `null` = unknown. */
131574
131599
  people?: number | null;
131575
131600
  /** @description Of `people`, those with at least one outcome the attribution engine credited to an ad — «Resultados desde anuncios». On `current` only; `null` = unknown (the credit is still warming). */
@@ -131614,6 +131639,7 @@ interface components {
131614
131639
  } | null;
131615
131640
  /** @description CASH (CLP): the period’s FIRST payments of a plan (a clinic’s first pago of an accepted presupuesto) that the attribution engine credited to an ad, at their credited share — the numerator of «Retorno en primer pago». Part of `revenue`, never added to it. On `current` only; `null` = unknown (the credit is still warming). */
131616
131641
  first_payment_attributed_revenue?: number | null;
131642
+ patient_return?: components["schemas"]["AdsPatientReturnTotal"];
131617
131643
  /** @description DISTINCT people behind the period’s recorded outcomes (every stage counted once per person) — the denominator of «Resultados desde anuncios». `outcomes` sums events, not people. On `current` only; `null` = unknown. */
131618
131644
  people?: number | null;
131619
131645
  /** @description Of `people`, those with at least one outcome the attribution engine credited to an ad — «Resultados desde anuncios». On `current` only; `null` = unknown (the credit is still warming). */
@@ -131729,6 +131755,7 @@ interface components {
131729
131755
  outcome_count: number | null;
131730
131756
  }[] | null;
131731
131757
  conversational?: components["schemas"]["AdsConversational"];
131758
+ patient_return?: components["schemas"]["AdsPatientReturn"] & unknown;
131732
131759
  }[];
131733
131760
  coverage?: components["schemas"]["AdsCoverage"] & unknown;
131734
131761
  /** @description The rows reconciled with the headline, in PEOPLE. `null`/absent = not known yet (the credit is warming): print no remainder. */
@@ -131885,6 +131912,7 @@ interface components {
131885
131912
  * @enum {string}
131886
131913
  */
131887
131914
  verdict: "best" | "pays" | "refresh" | "pause" | "watch" | "thin";
131915
+ patient_return?: components["schemas"]["AdsPatientReturn"] & unknown;
131888
131916
  }[];
131889
131917
  best_ad_external_id: string | null;
131890
131918
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrina/api",
3
- "version": "11.49.6",
3
+ "version": "11.51.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",