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/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +13 -0
- package/src/routes/TitlesRoute.ts +4 -0
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
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;
|