glitch-javascript-sdk 1.7.5 → 1.7.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
@@ -3019,6 +3019,7 @@ declare class Titles {
3019
3019
  * Optionally filter by platform/device_type/OS/version and group by one dimension.
3020
3020
  */
3021
3021
  static sessionsAverage<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
3022
+ static sessionsHistogram<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
3022
3023
  }
3023
3024
 
3024
3025
  declare class Campaigns {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.7.5",
3
+ "version": "1.7.6",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Titles.ts CHANGED
@@ -397,6 +397,19 @@ class Titles {
397
397
  );
398
398
  }
399
399
 
400
+ public static sessionsHistogram<T>(
401
+ title_id: string,
402
+ params?: Record<string, any>
403
+ ): AxiosPromise<Response<T>> {
404
+ return Requests.processRoute(
405
+ TitlesRoute.routes.sessionsHistogram,
406
+ {},
407
+ { title_id },
408
+ params
409
+ );
410
+ }
411
+
412
+
400
413
  }
401
414
 
402
415
  export default Titles;
@@ -40,6 +40,10 @@ class TitlesRoute {
40
40
  url: '/titles/{title_id}/installs/sessions/average',
41
41
  method: HTTP_METHODS.GET
42
42
  },
43
+ sessionsHistogram: {
44
+ url: '/titles/{title_id}/sessions/histogram',
45
+ method: HTTP_METHODS.GET
46
+ },
43
47
  };
44
48
 
45
49
  }