@revturbine/sdk 0.2.77 → 0.2.78
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/headless.d.ts +13 -0
- package/dist/headless.js +1 -1
- package/dist/headless.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/web-sdk/controllers.d.ts +13 -0
- package/dist/types/web-sdk/controllers.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/headless.d.ts
CHANGED
|
@@ -13945,6 +13945,19 @@ declare class SdkSession {
|
|
|
13945
13945
|
can(handle: string, context?: RevTurbineEntitlementContext): Promise<EntitlementResult>;
|
|
13946
13946
|
/** Track a custom event. */
|
|
13947
13947
|
trackEvent(name: string, data?: Record<string, JsonObject[string]>): Promise<void>;
|
|
13948
|
+
/**
|
|
13949
|
+
* Track an event — the advertised alias of {@link trackEvent}, first-class
|
|
13950
|
+
* on the session facade so headless code carries the full telemetry surface
|
|
13951
|
+
* (plan 179 ruling, Kent 2026-08-13). Powers analytics, frequency caps,
|
|
13952
|
+
* attribution, and experiments.
|
|
13953
|
+
*/
|
|
13954
|
+
track(name: string, data?: Record<string, JsonObject[string]>): Promise<void>;
|
|
13955
|
+
/**
|
|
13956
|
+
* Flush buffered events immediately. Headless processes are often
|
|
13957
|
+
* short-lived (scripts, jobs, edge handlers) — call this before exit so
|
|
13958
|
+
* buffered `track()` events aren't lost with the process.
|
|
13959
|
+
*/
|
|
13960
|
+
flushEvents(): Promise<void>;
|
|
13948
13961
|
}
|
|
13949
13962
|
/**
|
|
13950
13963
|
* Create a fully-initialized SDK session.
|