@avsbhq/snippet-types 1.2.0 → 1.4.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/avsb.d.ts +4 -2
- package/package.json +1 -1
package/avsb.d.ts
CHANGED
|
@@ -349,8 +349,8 @@ interface AvsbUtils {
|
|
|
349
349
|
|
|
350
350
|
// --- Experiment decisions ---
|
|
351
351
|
|
|
352
|
-
/** Why an experiment did or did not run for this visit. `variant` / `control` mean the visitor is IN the test. */
|
|
353
|
-
type AvsbDecisionStatus = 'variant' | 'control' | 'trigger-pending' | 'not-targeted' | 'audience-mismatch' | 'excluded' | 'traffic-holdout' | 'capped' | 'scheduled-off' | 'error'
|
|
352
|
+
/** Why an experiment did or did not run for this visit. `variant` / `control` mean the visitor is IN the test. `self-redirect` also means IN the test: the visitor is bucketed to a split-URL variant whose destination is the page they are already on, so the redirect was refused instead of looped. `late` means the page's reveal deadline had passed before the experiment could be applied, so it was skipped whole for this page load and nobody was exposed. `unsupported` means this build of the snippet does not carry a feature the experiment needs, so it was skipped whole and reported. `error` stays the genuine failure bucket. */
|
|
353
|
+
type AvsbDecisionStatus = 'variant' | 'control' | 'trigger-pending' | 'self-redirect' | 'not-targeted' | 'audience-mismatch' | 'excluded' | 'traffic-holdout' | 'capped' | 'scheduled-off' | 'late' | 'unsupported' | 'error'
|
|
354
354
|
|
|
355
355
|
/** One row of `avsb.getExperimentDecisions()`. The variation fields are present only when a variation was assigned. */
|
|
356
356
|
interface AvsbExperimentDecision {
|
|
@@ -404,6 +404,8 @@ interface AvsbApi {
|
|
|
404
404
|
refresh(): void
|
|
405
405
|
/** The snippet build running on this page, e.g. `1.1.0`. */
|
|
406
406
|
version: string
|
|
407
|
+
/** Which of the four snippet files this page is running: `full`, `visual`, `shop` or `core`. Optional: absent on snippet builds that predate named files, and until the first install stamp lands. A build that does not name its file always carries everything, so treat an absent value as `full`. */
|
|
408
|
+
buildVariant?: string
|
|
407
409
|
}
|
|
408
410
|
|
|
409
411
|
/** `window.avsb`. `q` is the install tag's early-call queue, drained by the runtime. */
|