@avsbhq/snippet-types 1.0.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avsbhq/snippet-types",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "TypeScript declarations for window.avsb, the A vs B web-snippet API",
5
5
  "keywords": [
6
6
  "avsb",
@@ -15,12 +15,6 @@
15
15
  // Not a module, for the same reason as `avsb.d.ts`: these are global names, and
16
16
  // an `export` would hide all of them. Frozen at launch: rename nothing, add only.
17
17
 
18
- /** Recommendations client pre-bound to the running experiment and variation. */
19
- interface AvsbBoundRecsClient extends AvsbRecsClient {
20
- /** Resolve THIS variation's bound recipe, so one code block serves every variation. */
21
- getBound(req?: Omit<AvsbRecsRequest, 'recipe'>): Promise<AvsbRecsResult>
22
- }
23
-
24
18
  /** What every user-code surface receives. Self-cleaning helpers are torn down for you. */
25
19
  interface AvsbCodeOptions {
26
20
  /** Present in variation and trigger code. */
@@ -37,7 +31,7 @@ interface AvsbCodeOptions {
37
31
  onRemove(cb: () => void): void
38
32
  track: AvsbTrackFunction
39
33
  /** Impressions and clicks attribute to this variation automatically. */
40
- recs: AvsbBoundRecsClient
34
+ recs: AvsbRecsClient
41
35
  getVisitorId(): string | null
42
36
  /** The visitor's numeric **Variation ID** in that experiment, or null. Takes the numeric **Experiment ID** from the experiment details panel, NOT the `experimentId` above (that one is the internal id). */
43
37
  getVariation(experimentId: string | number): string | null