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/cjs/index.js CHANGED
@@ -27603,6 +27603,10 @@ var WebsiteAnalyticsRoute = /** @class */ (function () {
27603
27603
  utmPerformance: {
27604
27604
  url: '/analytics/utm-performance',
27605
27605
  method: HTTP_METHODS.GET
27606
+ },
27607
+ journey: {
27608
+ url: '/analytics/journey',
27609
+ method: HTTP_METHODS.GET
27606
27610
  }
27607
27611
  };
27608
27612
  return WebsiteAnalyticsRoute;
@@ -27823,6 +27827,27 @@ var WebsiteAnalytics = /** @class */ (function () {
27823
27827
  WebsiteAnalytics.utmPerformance = function (params) {
27824
27828
  return Requests.processRoute(WebsiteAnalyticsRoute.routes.utmPerformance, {}, undefined, params);
27825
27829
  };
27830
+ /**
27831
+ * Get a combined user journey across short link clicks, web sessions, game installations, etc.
27832
+ *
27833
+ * @param params Filtering options. All are optional except `title_id`.
27834
+ * - title_id: string Required. The UUID of the title to unify user events.
27835
+ * - device_id?: string Filter by device ID
27836
+ * - session_id?: string Filter by session ID
27837
+ * - short_link_click_id?: string Filter by short link click ID
27838
+ * - user_install_id?: string Filter by game install user_install_id
27839
+ * - browser_fingerprint?: string Filter by browser fingerprint hash
27840
+ * - hardware_fingerprint?: string Filter by hardware fingerprint hash
27841
+ * - start_date?: string Optional. Start date (YYYY-MM-DD) if your API supports time limiting
27842
+ * - end_date?: string Optional. End date (YYYY-MM-DD) if your API supports time limiting
27843
+ *
27844
+ * @returns Promise with a unified timeline of the user’s journey, in chronological order.
27845
+ */
27846
+ WebsiteAnalytics.userJourney = function (params) {
27847
+ return Requests.processRoute(WebsiteAnalyticsRoute.routes.journey, // references our new route definition
27848
+ {}, // no body data (GET request)
27849
+ undefined, params);
27850
+ };
27826
27851
  return WebsiteAnalytics;
27827
27852
  }());
27828
27853