@vitrina/api 17.118.0 → 17.119.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 +21 -4
- package/dist/index.d.ts +21 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -182413,6 +182413,8 @@ interface paths {
|
|
|
182413
182413
|
* "rate": 0.33490566037735847
|
|
182414
182414
|
* },
|
|
182415
182415
|
* "purchase_stage": "first_payment",
|
|
182416
|
+
* "clinic_matrix": "booking_qualifies",
|
|
182417
|
+
* "clinic_matrix_outlook": null,
|
|
182416
182418
|
* "purchase_switch_available": false,
|
|
182417
182419
|
* "grant": "full",
|
|
182418
182420
|
* "protection_required": true,
|
|
@@ -341425,17 +341427,17 @@ interface components {
|
|
|
341425
341427
|
/** @description A clinic’s first payment before the switch: Meta does not receive it yet (its Purchase is still the accepted presupuesto). `send_stage:first_payment:on` makes the switch, with consent. */
|
|
341426
341428
|
awaiting_switch: boolean;
|
|
341427
341429
|
/**
|
|
341428
|
-
* @description `definition_missing` heals on its own (no user step); `no_payments_source` = no payments recorded to send yet.
|
|
341430
|
+
* @description `definition_missing` heals on its own (no user step); `no_payments_source` = no payments recorded to send yet; `no_qualifying_stage` (clinics, ADR 0163, `lead_qualified` only) = a board that sells marks no qualifying stage, so no lead can be qualified until the owner marks one.
|
|
341429
341431
|
* @enum {string}
|
|
341430
341432
|
*/
|
|
341431
|
-
source: "available" | "no_payments_source" | "definition_missing";
|
|
341433
|
+
source: "available" | "no_payments_source" | "definition_missing" | "no_qualifying_stage";
|
|
341432
341434
|
/** @description If the stage happened now, it would reach Meta: switched on and its source has what it needs. */
|
|
341433
341435
|
ready: boolean;
|
|
341434
341436
|
/**
|
|
341435
|
-
* @description Why it would not reach Meta now; `null` when `ready`. Precedence: `installments` > `awaiting_switch` > `definition_missing` > `no_payments_yet` > `off`.
|
|
341437
|
+
* @description Why it would not reach Meta now; `null` when `ready`. Precedence: `installments` > `awaiting_switch` > `definition_missing` > `no_payments_yet` > `no_qualifying_stage` > `off`.
|
|
341436
341438
|
* @enum {string|null}
|
|
341437
341439
|
*/
|
|
341438
|
-
ready_reason: "installments" | "awaiting_switch" | "definition_missing" | "no_payments_yet" | "off" | null;
|
|
341440
|
+
ready_reason: "installments" | "awaiting_switch" | "definition_missing" | "no_payments_yet" | "no_qualifying_stage" | "off" | null;
|
|
341439
341441
|
/** @description Outcomes of the stage that happened in Vitrina over the page’s window — the last 30 days (`window_days`; the field name predates it), the same days the dataset preview counts — sent or not. `first_payment`: `first_payment_candidates.count_28d` (first payments of accepted plans, or — a clinic without plans — persons’ first payments), before the switch too. */
|
|
341440
341442
|
count_28d: number;
|
|
341441
341443
|
/** @description «Por semana», one decimal: the mean of the last 4 COMPLETE weeks (Monday–Sunday, Santiago) in which the stage was being measured — a week before its first recorded outcome is left out, never counted as zero. With no complete measured week yet: the days measured so far × 7 (divisor floor of 7 days). The dataset preview’s `weekly` for the same stage is the same figure. */
|
|
@@ -341551,6 +341553,21 @@ interface components {
|
|
|
341551
341553
|
* @enum {string|null}
|
|
341552
341554
|
*/
|
|
341553
341555
|
purchase_stage: "closed_won" | "first_payment" | null;
|
|
341556
|
+
/** @description Clinics (ADR 0163): which matrix the clinic is on, or would get at its first Ads provisioning, and why. Read BEFORE connecting so the owner can mark a qualifying stage first. `null` outside clinics or when it could not be read. */
|
|
341557
|
+
clinic_matrix_outlook: {
|
|
341558
|
+
/** @description The clinic is on (`stamped`) or will get at its first Ads provisioning (`eligible`) the qualifying-stage matrix. */
|
|
341559
|
+
qualifying_stage: boolean;
|
|
341560
|
+
/**
|
|
341561
|
+
* @description `stamped` = on the qualifying-stage matrix; `eligible` = will get it when it first connects Ads; `no_qualifying_stage` = would get it, but a board that sells marks no qualifying stage: connecting now gives today's matrix for good; `connected_before` = connected Ads before ADR 0163 (or reconnected, or Ads facts already recorded): today's matrix; `linked` = a guest on its agency's profile.
|
|
341562
|
+
* @enum {string}
|
|
341563
|
+
*/
|
|
341564
|
+
reason: "stamped" | "eligible" | "no_qualifying_stage" | "connected_before" | "linked";
|
|
341565
|
+
} | null;
|
|
341566
|
+
/**
|
|
341567
|
+
* @description Clinics: which clinic export matrix the workspace is on (ADR 0163), a stored fact written once when its Ads rules were first provisioned. `qualifying_stage` (clinics that connected Ads after 2026-11-22): the Etapa calificadora sends `lead_qualified` (WhatsApp `QualifiedLead`, website a neutral custom event) and the booked evaluation goes to WhatsApp as `AddToCart`. `booking_qualifies` (every clinic connected before): no `lead_qualified` lane, the booked evaluation is WhatsApp `QualifiedLead`; it never changes. `null` outside clinics.
|
|
341568
|
+
* @enum {string|null}
|
|
341569
|
+
*/
|
|
341570
|
+
clinic_matrix: "booking_qualifies" | "qualifying_stage" | null;
|
|
341554
341571
|
/** @description The switch of the Purchase to the first payment can be made now. */
|
|
341555
341572
|
purchase_switch_available: boolean;
|
|
341556
341573
|
/** @description Advice only — Vitrina never changes an ad set’s goal: the earliest stage reached by 1–40 % of new contacts over 28 days, once there are ≥ 50 (what Meta learns best from with this volume); `default` = not enough data yet, the usual answer for the business type. Never a standard event on a health-restricted dataset. */
|
package/dist/index.d.ts
CHANGED
|
@@ -182413,6 +182413,8 @@ interface paths {
|
|
|
182413
182413
|
* "rate": 0.33490566037735847
|
|
182414
182414
|
* },
|
|
182415
182415
|
* "purchase_stage": "first_payment",
|
|
182416
|
+
* "clinic_matrix": "booking_qualifies",
|
|
182417
|
+
* "clinic_matrix_outlook": null,
|
|
182416
182418
|
* "purchase_switch_available": false,
|
|
182417
182419
|
* "grant": "full",
|
|
182418
182420
|
* "protection_required": true,
|
|
@@ -341425,17 +341427,17 @@ interface components {
|
|
|
341425
341427
|
/** @description A clinic’s first payment before the switch: Meta does not receive it yet (its Purchase is still the accepted presupuesto). `send_stage:first_payment:on` makes the switch, with consent. */
|
|
341426
341428
|
awaiting_switch: boolean;
|
|
341427
341429
|
/**
|
|
341428
|
-
* @description `definition_missing` heals on its own (no user step); `no_payments_source` = no payments recorded to send yet.
|
|
341430
|
+
* @description `definition_missing` heals on its own (no user step); `no_payments_source` = no payments recorded to send yet; `no_qualifying_stage` (clinics, ADR 0163, `lead_qualified` only) = a board that sells marks no qualifying stage, so no lead can be qualified until the owner marks one.
|
|
341429
341431
|
* @enum {string}
|
|
341430
341432
|
*/
|
|
341431
|
-
source: "available" | "no_payments_source" | "definition_missing";
|
|
341433
|
+
source: "available" | "no_payments_source" | "definition_missing" | "no_qualifying_stage";
|
|
341432
341434
|
/** @description If the stage happened now, it would reach Meta: switched on and its source has what it needs. */
|
|
341433
341435
|
ready: boolean;
|
|
341434
341436
|
/**
|
|
341435
|
-
* @description Why it would not reach Meta now; `null` when `ready`. Precedence: `installments` > `awaiting_switch` > `definition_missing` > `no_payments_yet` > `off`.
|
|
341437
|
+
* @description Why it would not reach Meta now; `null` when `ready`. Precedence: `installments` > `awaiting_switch` > `definition_missing` > `no_payments_yet` > `no_qualifying_stage` > `off`.
|
|
341436
341438
|
* @enum {string|null}
|
|
341437
341439
|
*/
|
|
341438
|
-
ready_reason: "installments" | "awaiting_switch" | "definition_missing" | "no_payments_yet" | "off" | null;
|
|
341440
|
+
ready_reason: "installments" | "awaiting_switch" | "definition_missing" | "no_payments_yet" | "no_qualifying_stage" | "off" | null;
|
|
341439
341441
|
/** @description Outcomes of the stage that happened in Vitrina over the page’s window — the last 30 days (`window_days`; the field name predates it), the same days the dataset preview counts — sent or not. `first_payment`: `first_payment_candidates.count_28d` (first payments of accepted plans, or — a clinic without plans — persons’ first payments), before the switch too. */
|
|
341440
341442
|
count_28d: number;
|
|
341441
341443
|
/** @description «Por semana», one decimal: the mean of the last 4 COMPLETE weeks (Monday–Sunday, Santiago) in which the stage was being measured — a week before its first recorded outcome is left out, never counted as zero. With no complete measured week yet: the days measured so far × 7 (divisor floor of 7 days). The dataset preview’s `weekly` for the same stage is the same figure. */
|
|
@@ -341551,6 +341553,21 @@ interface components {
|
|
|
341551
341553
|
* @enum {string|null}
|
|
341552
341554
|
*/
|
|
341553
341555
|
purchase_stage: "closed_won" | "first_payment" | null;
|
|
341556
|
+
/** @description Clinics (ADR 0163): which matrix the clinic is on, or would get at its first Ads provisioning, and why. Read BEFORE connecting so the owner can mark a qualifying stage first. `null` outside clinics or when it could not be read. */
|
|
341557
|
+
clinic_matrix_outlook: {
|
|
341558
|
+
/** @description The clinic is on (`stamped`) or will get at its first Ads provisioning (`eligible`) the qualifying-stage matrix. */
|
|
341559
|
+
qualifying_stage: boolean;
|
|
341560
|
+
/**
|
|
341561
|
+
* @description `stamped` = on the qualifying-stage matrix; `eligible` = will get it when it first connects Ads; `no_qualifying_stage` = would get it, but a board that sells marks no qualifying stage: connecting now gives today's matrix for good; `connected_before` = connected Ads before ADR 0163 (or reconnected, or Ads facts already recorded): today's matrix; `linked` = a guest on its agency's profile.
|
|
341562
|
+
* @enum {string}
|
|
341563
|
+
*/
|
|
341564
|
+
reason: "stamped" | "eligible" | "no_qualifying_stage" | "connected_before" | "linked";
|
|
341565
|
+
} | null;
|
|
341566
|
+
/**
|
|
341567
|
+
* @description Clinics: which clinic export matrix the workspace is on (ADR 0163), a stored fact written once when its Ads rules were first provisioned. `qualifying_stage` (clinics that connected Ads after 2026-11-22): the Etapa calificadora sends `lead_qualified` (WhatsApp `QualifiedLead`, website a neutral custom event) and the booked evaluation goes to WhatsApp as `AddToCart`. `booking_qualifies` (every clinic connected before): no `lead_qualified` lane, the booked evaluation is WhatsApp `QualifiedLead`; it never changes. `null` outside clinics.
|
|
341568
|
+
* @enum {string|null}
|
|
341569
|
+
*/
|
|
341570
|
+
clinic_matrix: "booking_qualifies" | "qualifying_stage" | null;
|
|
341554
341571
|
/** @description The switch of the Purchase to the first payment can be made now. */
|
|
341555
341572
|
purchase_switch_available: boolean;
|
|
341556
341573
|
/** @description Advice only — Vitrina never changes an ad set’s goal: the earliest stage reached by 1–40 % of new contacts over 28 days, once there are ≥ 50 (what Meta learns best from with this volume); `default` = not enough data yet, the usual answer for the business type. Never a standard event on a health-restricted dataset. */
|
package/package.json
CHANGED