glitch-javascript-sdk 2.0.5 → 2.0.6

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.ts CHANGED
@@ -5856,6 +5856,23 @@ declare class WebsiteAnalytics {
5856
5856
  * @returns Promise with UTM performance data
5857
5857
  */
5858
5858
  static utmPerformance<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
5859
+ /**
5860
+ * Get a combined user journey across short link clicks, web sessions, game installations, etc.
5861
+ *
5862
+ * @param params Filtering options. All are optional except `title_id`.
5863
+ * - title_id: string Required. The UUID of the title to unify user events.
5864
+ * - device_id?: string Filter by device ID
5865
+ * - session_id?: string Filter by session ID
5866
+ * - short_link_click_id?: string Filter by short link click ID
5867
+ * - user_install_id?: string Filter by game install user_install_id
5868
+ * - browser_fingerprint?: string Filter by browser fingerprint hash
5869
+ * - hardware_fingerprint?: string Filter by hardware fingerprint hash
5870
+ * - start_date?: string Optional. Start date (YYYY-MM-DD) if your API supports time limiting
5871
+ * - end_date?: string Optional. End date (YYYY-MM-DD) if your API supports time limiting
5872
+ *
5873
+ * @returns Promise with a unified timeline of the user’s journey, in chronological order.
5874
+ */
5875
+ static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
5859
5876
  }
5860
5877
 
5861
5878
  declare class ShortLinks {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -303,6 +303,31 @@ class WebsiteAnalytics {
303
303
  params
304
304
  );
305
305
  }
306
+
307
+ /**
308
+ * Get a combined user journey across short link clicks, web sessions, game installations, etc.
309
+ *
310
+ * @param params Filtering options. All are optional except `title_id`.
311
+ * - title_id: string Required. The UUID of the title to unify user events.
312
+ * - device_id?: string Filter by device ID
313
+ * - session_id?: string Filter by session ID
314
+ * - short_link_click_id?: string Filter by short link click ID
315
+ * - user_install_id?: string Filter by game install user_install_id
316
+ * - browser_fingerprint?: string Filter by browser fingerprint hash
317
+ * - hardware_fingerprint?: string Filter by hardware fingerprint hash
318
+ * - start_date?: string Optional. Start date (YYYY-MM-DD) if your API supports time limiting
319
+ * - end_date?: string Optional. End date (YYYY-MM-DD) if your API supports time limiting
320
+ *
321
+ * @returns Promise with a unified timeline of the user’s journey, in chronological order.
322
+ */
323
+ public static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
324
+ return Requests.processRoute(
325
+ WebsiteAnalyticsRoute.routes.journey, // references our new route definition
326
+ {}, // no body data (GET request)
327
+ undefined,
328
+ params
329
+ );
330
+ }
306
331
  }
307
332
 
308
333
  export default WebsiteAnalytics;
@@ -62,7 +62,12 @@ class WebsiteAnalyticsRoute {
62
62
  utmPerformance: {
63
63
  url: '/analytics/utm-performance',
64
64
  method: HTTP_METHODS.GET
65
+ },
66
+ journey: {
67
+ url: '/analytics/journey',
68
+ method: HTTP_METHODS.GET
65
69
  }
70
+
66
71
  };
67
72
  }
68
73