@wvdsh/api 0.1.90 → 0.1.92

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.
@@ -29,21 +29,6 @@ export type DeviceFingerprint = {
29
29
  viewportHeight?: number | undefined;
30
30
  viewportWidth?: number | undefined;
31
31
  };
32
- export type GameplayAttribution = {
33
- embedAncestors?: string[] | undefined;
34
- navigation?: {
35
- campaign?: "continue_playing" | "embed" | "feed" | "friend_playing" | "invitations" | "more_from_developer" | "more_like_this" | "notifications" | "recommended" | "search_results" | undefined;
36
- fromPageViewId: string;
37
- position?: number | undefined;
38
- source: string;
39
- term?: string | undefined;
40
- } | undefined;
41
- pageViewId: string;
42
- referrer?: string | undefined;
43
- trackingParams?: {
44
- [x: string]: string;
45
- } | undefined;
46
- };
47
32
  /**
48
33
  * Default values used by Game SDKs
49
34
  * Published externally in the @wvdsh/api package
@@ -198,6 +183,7 @@ export interface SDKConfig {
198
183
  launchParams: GameLaunchParams;
199
184
  parentOrigin: string;
200
185
  initialVolume: number;
186
+ pageViewId?: string;
201
187
  }
202
188
  export type IframeResponseMessageTypes = typeof IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK | typeof IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT | typeof IFRAME_MESSAGE_TYPE.GET_GAMEPLAY_ATTRIBUTION | typeof IFRAME_MESSAGE_TYPE.SET_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.TOGGLE_FULLSCREEN | typeof IFRAME_MESSAGE_TYPE.SET_MUTE | typeof IFRAME_MESSAGE_TYPE.TOGGLE_MUTE | typeof IFRAME_MESSAGE_TYPE.TRIGGER_PAYWALL;
203
189
  export type IFrameEventPayloadMap = {
@@ -213,7 +199,9 @@ export type IFrameEventPayloadMap = {
213
199
  [IFRAME_MESSAGE_TYPE.TAKE_FOCUS]: void;
214
200
  [IFRAME_MESSAGE_TYPE.GET_LOBBY_INVITE_LINK]: string;
215
201
  [IFRAME_MESSAGE_TYPE.GET_DEVICE_FINGERPRINT]: DeviceFingerprint;
216
- [IFRAME_MESSAGE_TYPE.GET_GAMEPLAY_ATTRIBUTION]: GameplayAttribution;
202
+ [IFRAME_MESSAGE_TYPE.GET_GAMEPLAY_ATTRIBUTION]: {
203
+ pageViewId: string;
204
+ };
217
205
  [IFRAME_MESSAGE_TYPE.SET_FULLSCREEN]: {
218
206
  success: boolean;
219
207
  };
@@ -268,7 +268,7 @@ export type PublicApiType = {
268
268
  attribution?: {
269
269
  embedAncestors?: Array<string>;
270
270
  navigation?: {
271
- campaign?: "continue_playing" | "recommended" | "feed" | "search_results" | "more_from_developer" | "more_like_this" | "friend_playing" | "notifications" | "invitations" | "embed";
271
+ campaign?: "continue_playing" | "recommended" | "trending" | "feed" | "category" | "search_results" | "more_from_developer" | "more_like_this" | "profile_games" | "profile_collection" | "team_games" | "friend_playing" | "notifications" | "invitations" | "embed";
272
272
  fromPageViewId: string;
273
273
  position?: number;
274
274
  source: string;
@@ -310,6 +310,7 @@ export type PublicApiType = {
310
310
  viewportHeight?: number;
311
311
  viewportWidth?: number;
312
312
  };
313
+ pageViewId?: string;
313
314
  }, boolean>;
314
315
  lastHeartbeat: FunctionReference<"mutation", "public", Record<string, never>, null>;
315
316
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",