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/cjs/index.js
CHANGED
|
@@ -22818,6 +22818,13 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
22818
22818
|
listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
|
|
22819
22819
|
revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
|
|
22820
22820
|
search: { url: '/titles/search', method: HTTP_METHODS.GET },
|
|
22821
|
+
listInstalls: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.GET },
|
|
22822
|
+
viewInstall: { url: '/titles/{title_id}/installs/{install_id}', method: HTTP_METHODS.GET },
|
|
22823
|
+
createInstall: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.POST },
|
|
22824
|
+
listRetentions: { url: '/titles/{title_id}/retentions', method: HTTP_METHODS.GET },
|
|
22825
|
+
retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
|
|
22826
|
+
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
22827
|
+
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
22821
22828
|
};
|
|
22822
22829
|
return TitlesRoute;
|
|
22823
22830
|
}());
|
|
@@ -23068,6 +23075,42 @@ var Titles = /** @class */ (function () {
|
|
|
23068
23075
|
Titles.search = function (params) {
|
|
23069
23076
|
return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
|
|
23070
23077
|
};
|
|
23078
|
+
/**
|
|
23079
|
+
* List game installs for a specific title.
|
|
23080
|
+
*/
|
|
23081
|
+
Titles.listInstalls = function (title_id, params) {
|
|
23082
|
+
return Requests.processRoute(TitlesRoute.routes.listInstalls, {}, { title_id: title_id }, params);
|
|
23083
|
+
};
|
|
23084
|
+
/**
|
|
23085
|
+
* View a single game install record.
|
|
23086
|
+
*/
|
|
23087
|
+
Titles.viewInstall = function (title_id, install_id, params) {
|
|
23088
|
+
return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
|
|
23089
|
+
};
|
|
23090
|
+
/**
|
|
23091
|
+
* Create a new game install record.
|
|
23092
|
+
*/
|
|
23093
|
+
Titles.createInstall = function (title_id, data, params) {
|
|
23094
|
+
return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
|
|
23095
|
+
};
|
|
23096
|
+
/**
|
|
23097
|
+
* List retention events for a specific title.
|
|
23098
|
+
*/
|
|
23099
|
+
Titles.listRetentions = function (title_id, params) {
|
|
23100
|
+
return Requests.processRoute(TitlesRoute.routes.listRetentions, {}, { title_id: title_id }, params);
|
|
23101
|
+
};
|
|
23102
|
+
/**
|
|
23103
|
+
* Get a summary report of retention events for a specific title.
|
|
23104
|
+
*/
|
|
23105
|
+
Titles.retentionSummary = function (title_id, params) {
|
|
23106
|
+
return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
|
|
23107
|
+
};
|
|
23108
|
+
Titles.activeRetentions = function (title_id, params) {
|
|
23109
|
+
return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id: title_id }, params);
|
|
23110
|
+
};
|
|
23111
|
+
Titles.retentionAnalysis = function (title_id, params) {
|
|
23112
|
+
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
|
|
23113
|
+
};
|
|
23071
23114
|
return Titles;
|
|
23072
23115
|
}());
|
|
23073
23116
|
|