glitch-javascript-sdk 1.7.0 → 1.7.1
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 +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +10 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +37 -5
- package/src/routes/TitlesRoute.ts +8 -0
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -222,5 +222,15 @@ declare class Titles {
|
|
|
222
222
|
static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
223
223
|
static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
224
224
|
static distinctDimensions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
225
|
+
/**
|
|
226
|
+
* List sessions for a specific title, with optional filters and pagination.
|
|
227
|
+
* Returns a paginated list of sessions with start/end times, session_length, user info, etc.
|
|
228
|
+
*/
|
|
229
|
+
static listSessions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
230
|
+
/**
|
|
231
|
+
* Get aggregated average session length data (daily/weekly/monthly) for a title.
|
|
232
|
+
* Optionally filter by platform/device_type/OS/version and group by one dimension.
|
|
233
|
+
*/
|
|
234
|
+
static sessionsAverage<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
225
235
|
}
|
|
226
236
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -9642,6 +9642,14 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
9642
9642
|
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
9643
9643
|
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
9644
9644
|
distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
|
|
9645
|
+
listSessions: {
|
|
9646
|
+
url: '/titles/{title_id}/installs/sessions',
|
|
9647
|
+
method: HTTP_METHODS.GET
|
|
9648
|
+
},
|
|
9649
|
+
sessionsAverage: {
|
|
9650
|
+
url: '/titles/{title_id}/installs/sessions/average',
|
|
9651
|
+
method: HTTP_METHODS.GET
|
|
9652
|
+
},
|
|
9645
9653
|
};
|
|
9646
9654
|
return TitlesRoute;
|
|
9647
9655
|
}());
|
|
@@ -9931,6 +9939,20 @@ var Titles = /** @class */ (function () {
|
|
|
9931
9939
|
Titles.distinctDimensions = function (title_id, params) {
|
|
9932
9940
|
return Requests.processRoute(TitlesRoute.routes.distinctDimensions, {}, { title_id: title_id }, params);
|
|
9933
9941
|
};
|
|
9942
|
+
/**
|
|
9943
|
+
* List sessions for a specific title, with optional filters and pagination.
|
|
9944
|
+
* Returns a paginated list of sessions with start/end times, session_length, user info, etc.
|
|
9945
|
+
*/
|
|
9946
|
+
Titles.listSessions = function (title_id, params) {
|
|
9947
|
+
return Requests.processRoute(TitlesRoute.routes.listSessions, {}, { title_id: title_id }, params);
|
|
9948
|
+
};
|
|
9949
|
+
/**
|
|
9950
|
+
* Get aggregated average session length data (daily/weekly/monthly) for a title.
|
|
9951
|
+
* Optionally filter by platform/device_type/OS/version and group by one dimension.
|
|
9952
|
+
*/
|
|
9953
|
+
Titles.sessionsAverage = function (title_id, params) {
|
|
9954
|
+
return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
|
|
9955
|
+
};
|
|
9934
9956
|
return Titles;
|
|
9935
9957
|
}());
|
|
9936
9958
|
|