glitch-javascript-sdk 2.8.2 → 2.8.4

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.
@@ -514,5 +514,10 @@ declare class Titles {
514
514
  * @returns AxiosPromise containing { valid: boolean, user_name: string, license_type: string }
515
515
  */
516
516
  static validateInstall<T>(title_id: string, install_id: string): AxiosPromise<Response<T>>;
517
+ /**
518
+ * List all builds/deployments for a specific title.
519
+ * @param title_id The UUID of the title.
520
+ */
521
+ static listBuilds<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
517
522
  }
518
523
  export default Titles;
@@ -49,5 +49,12 @@ declare class Utility {
49
49
  * @returns promise
50
50
  */
51
51
  static listTypes<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
52
+ /**
53
+ * Get all genres that are associated with at least one game title.
54
+ * Includes the 'titles_count' property.
55
+ *
56
+ * @returns promise
57
+ */
58
+ static listActiveGenres<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
52
59
  }
53
60
  export default Utility;
@@ -200,5 +200,16 @@ declare class WebsiteAnalytics {
200
200
  * @returns Promise with a unified timeline of the user’s journey, in chronological order.
201
201
  */
202
202
  static userJourney<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
203
+ /**
204
+ * Get a detailed marketing report for the game's landing page.
205
+ * Includes scroll depth, video watch time distribution, and CTA performance.
206
+ *
207
+ * @param params
208
+ * - title_id: string (Required)
209
+ * - start_date?: string (YYYY-MM-DD)
210
+ * - end_date?: string (YYYY-MM-DD)
211
+ * - group_by?: 'country' | 'device'
212
+ */
213
+ static landingPageReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
203
214
  }
204
215
  export default WebsiteAnalytics;
package/dist/esm/index.js CHANGED
@@ -10745,6 +10745,7 @@ var UtilityRoutes = /** @class */ (function () {
10745
10745
  genders: { url: '/util/genders', method: HTTP_METHODS.GET },
10746
10746
  ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
10747
10747
  types: { url: '/util/types', method: HTTP_METHODS.GET },
10748
+ genres_active: { url: '/util/genres/active', method: HTTP_METHODS.GET },
10748
10749
  };
10749
10750
  return UtilityRoutes;
10750
10751
  }());
@@ -10812,6 +10813,15 @@ var Utility = /** @class */ (function () {
10812
10813
  Utility.listTypes = function (params) {
10813
10814
  return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
10814
10815
  };
10816
+ /**
10817
+ * Get all genres that are associated with at least one game title.
10818
+ * Includes the 'titles_count' property.
10819
+ *
10820
+ * @returns promise
10821
+ */
10822
+ Utility.listActiveGenres = function (params) {
10823
+ return Requests.processRoute(UtilityRoutes.routes.genres_active, undefined, undefined, params);
10824
+ };
10815
10825
  return Utility;
10816
10826
  }());
10817
10827
 
@@ -11709,6 +11719,7 @@ var TitlesRoute = /** @class */ (function () {
11709
11719
  url: '/titles/{title_id}/installs/{install_id}/validate',
11710
11720
  method: HTTP_METHODS.POST
11711
11721
  },
11722
+ listBuilds: { url: '/titles/{title_id}/deployments', method: HTTP_METHODS.GET },
11712
11723
  };
11713
11724
  return TitlesRoute;
11714
11725
  }());
@@ -12381,6 +12392,13 @@ var Titles = /** @class */ (function () {
12381
12392
  Titles.validateInstall = function (title_id, install_id) {
12382
12393
  return Requests.processRoute(TitlesRoute.routes.validateInstall, {}, { title_id: title_id, install_id: install_id });
12383
12394
  };
12395
+ /**
12396
+ * List all builds/deployments for a specific title.
12397
+ * @param title_id The UUID of the title.
12398
+ */
12399
+ Titles.listBuilds = function (title_id, params) {
12400
+ return Requests.processRoute(TitlesRoute.routes.listBuilds, {}, { title_id: title_id }, params);
12401
+ };
12384
12402
  return Titles;
12385
12403
  }());
12386
12404
 
@@ -15907,7 +15925,11 @@ var WebsiteAnalyticsRoute = /** @class */ (function () {
15907
15925
  journey: {
15908
15926
  url: '/analytics/journey',
15909
15927
  method: HTTP_METHODS.GET
15910
- }
15928
+ },
15929
+ landingPageReport: {
15930
+ url: '/analytics/reports/landing-page',
15931
+ method: HTTP_METHODS.GET
15932
+ },
15911
15933
  };
15912
15934
  return WebsiteAnalyticsRoute;
15913
15935
  }());
@@ -16148,6 +16170,19 @@ var WebsiteAnalytics = /** @class */ (function () {
16148
16170
  {}, // no body data (GET request)
16149
16171
  undefined, params);
16150
16172
  };
16173
+ /**
16174
+ * Get a detailed marketing report for the game's landing page.
16175
+ * Includes scroll depth, video watch time distribution, and CTA performance.
16176
+ *
16177
+ * @param params
16178
+ * - title_id: string (Required)
16179
+ * - start_date?: string (YYYY-MM-DD)
16180
+ * - end_date?: string (YYYY-MM-DD)
16181
+ * - group_by?: 'country' | 'device'
16182
+ */
16183
+ WebsiteAnalytics.landingPageReport = function (params) {
16184
+ return Requests.processRoute(WebsiteAnalyticsRoute.routes.landingPageReport, {}, undefined, params);
16185
+ };
16151
16186
  return WebsiteAnalytics;
16152
16187
  }());
16153
16188