glitch-javascript-sdk 1.6.7 → 1.6.8
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 +43 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +22 -0
- package/dist/esm/index.js +43 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +43 -0
- package/src/routes/TitlesRoute.ts +7 -0
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -199,5 +199,27 @@ declare class Titles {
|
|
|
199
199
|
* - page?: number, per_page?: number
|
|
200
200
|
*/
|
|
201
201
|
static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
|
+
/**
|
|
203
|
+
* List game installs for a specific title.
|
|
204
|
+
*/
|
|
205
|
+
static listInstalls<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
206
|
+
/**
|
|
207
|
+
* View a single game install record.
|
|
208
|
+
*/
|
|
209
|
+
static viewInstall<T>(title_id: string, install_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
210
|
+
/**
|
|
211
|
+
* Create a new game install record.
|
|
212
|
+
*/
|
|
213
|
+
static createInstall<T>(title_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
214
|
+
/**
|
|
215
|
+
* List retention events for a specific title.
|
|
216
|
+
*/
|
|
217
|
+
static listRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
218
|
+
/**
|
|
219
|
+
* Get a summary report of retention events for a specific title.
|
|
220
|
+
*/
|
|
221
|
+
static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
222
|
+
static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
223
|
+
static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
224
|
}
|
|
203
225
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -9634,6 +9634,13 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
9634
9634
|
listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
|
|
9635
9635
|
revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
|
|
9636
9636
|
search: { url: '/titles/search', method: HTTP_METHODS.GET },
|
|
9637
|
+
listInstalls: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.GET },
|
|
9638
|
+
viewInstall: { url: '/titles/{title_id}/installs/{install_id}', method: HTTP_METHODS.GET },
|
|
9639
|
+
createInstall: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.POST },
|
|
9640
|
+
listRetentions: { url: '/titles/{title_id}/retentions', method: HTTP_METHODS.GET },
|
|
9641
|
+
retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
|
|
9642
|
+
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
9643
|
+
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
9637
9644
|
};
|
|
9638
9645
|
return TitlesRoute;
|
|
9639
9646
|
}());
|
|
@@ -9884,6 +9891,42 @@ var Titles = /** @class */ (function () {
|
|
|
9884
9891
|
Titles.search = function (params) {
|
|
9885
9892
|
return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
|
|
9886
9893
|
};
|
|
9894
|
+
/**
|
|
9895
|
+
* List game installs for a specific title.
|
|
9896
|
+
*/
|
|
9897
|
+
Titles.listInstalls = function (title_id, params) {
|
|
9898
|
+
return Requests.processRoute(TitlesRoute.routes.listInstalls, {}, { title_id: title_id }, params);
|
|
9899
|
+
};
|
|
9900
|
+
/**
|
|
9901
|
+
* View a single game install record.
|
|
9902
|
+
*/
|
|
9903
|
+
Titles.viewInstall = function (title_id, install_id, params) {
|
|
9904
|
+
return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
|
|
9905
|
+
};
|
|
9906
|
+
/**
|
|
9907
|
+
* Create a new game install record.
|
|
9908
|
+
*/
|
|
9909
|
+
Titles.createInstall = function (title_id, data, params) {
|
|
9910
|
+
return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
|
|
9911
|
+
};
|
|
9912
|
+
/**
|
|
9913
|
+
* List retention events for a specific title.
|
|
9914
|
+
*/
|
|
9915
|
+
Titles.listRetentions = function (title_id, params) {
|
|
9916
|
+
return Requests.processRoute(TitlesRoute.routes.listRetentions, {}, { title_id: title_id }, params);
|
|
9917
|
+
};
|
|
9918
|
+
/**
|
|
9919
|
+
* Get a summary report of retention events for a specific title.
|
|
9920
|
+
*/
|
|
9921
|
+
Titles.retentionSummary = function (title_id, params) {
|
|
9922
|
+
return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
|
|
9923
|
+
};
|
|
9924
|
+
Titles.activeRetentions = function (title_id, params) {
|
|
9925
|
+
return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id: title_id }, params);
|
|
9926
|
+
};
|
|
9927
|
+
Titles.retentionAnalysis = function (title_id, params) {
|
|
9928
|
+
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
|
|
9929
|
+
};
|
|
9887
9930
|
return Titles;
|
|
9888
9931
|
}());
|
|
9889
9932
|
|