glitch-javascript-sdk 2.1.7 → 2.1.9
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 +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Media.d.ts +1 -1
- package/dist/esm/api/Titles.d.ts +12 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/package.json +1 -1
- package/src/api/Media.ts +1 -1
- package/src/api/Titles.ts +171 -157
- package/src/routes/TitlesRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24431,6 +24431,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24431
24431
|
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
24432
24432
|
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
24433
24433
|
distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
|
|
24434
|
+
updateAdministrator: { url: '/titles/{title_id}/updateAdministrator/{user_id}', method: HTTP_METHODS.PUT },
|
|
24434
24435
|
listSessions: {
|
|
24435
24436
|
url: '/titles/{title_id}/installs/sessions',
|
|
24436
24437
|
method: HTTP_METHODS.GET
|
|
@@ -24986,6 +24987,20 @@ var Titles = /** @class */ (function () {
|
|
|
24986
24987
|
var url = TitlesRoute.routes.importKeys.url.replace("{title_id}", title_id);
|
|
24987
24988
|
return Requests.uploadFile(url, "file", file, data, params);
|
|
24988
24989
|
};
|
|
24990
|
+
/**
|
|
24991
|
+
* Update administrator email preferences for a title.
|
|
24992
|
+
*
|
|
24993
|
+
* @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
|
|
24994
|
+
*
|
|
24995
|
+
* @param title_id The id of the title.
|
|
24996
|
+
* @param user_id The id of the user/administrator.
|
|
24997
|
+
* @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
|
|
24998
|
+
*
|
|
24999
|
+
* @returns Promise
|
|
25000
|
+
*/
|
|
25001
|
+
Titles.updateAdministrator = function (title_id, user_id, data, params) {
|
|
25002
|
+
return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
|
|
25003
|
+
};
|
|
24989
25004
|
return Titles;
|
|
24990
25005
|
}());
|
|
24991
25006
|
|