glitch-javascript-sdk 2.1.8 → 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.
@@ -347,5 +347,17 @@ declare class Titles {
347
347
  * @returns AxiosPromise
348
348
  */
349
349
  static importKeys<T>(title_id: string, file: File | Blob, data?: Record<string, any>, params?: Record<string, any>): AxiosPromise<Response<T>>;
350
+ /**
351
+ * Update administrator email preferences for a title.
352
+ *
353
+ * @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
354
+ *
355
+ * @param title_id The id of the title.
356
+ * @param user_id The id of the user/administrator.
357
+ * @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
358
+ *
359
+ * @returns Promise
360
+ */
361
+ static updateAdministrator<T>(title_id: string, user_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
350
362
  }
351
363
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11247,6 +11247,7 @@ var TitlesRoute = /** @class */ (function () {
11247
11247
  activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
11248
11248
  retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
11249
11249
  distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
11250
+ updateAdministrator: { url: '/titles/{title_id}/updateAdministrator/{user_id}', method: HTTP_METHODS.PUT },
11250
11251
  listSessions: {
11251
11252
  url: '/titles/{title_id}/installs/sessions',
11252
11253
  method: HTTP_METHODS.GET
@@ -11802,6 +11803,20 @@ var Titles = /** @class */ (function () {
11802
11803
  var url = TitlesRoute.routes.importKeys.url.replace("{title_id}", title_id);
11803
11804
  return Requests.uploadFile(url, "file", file, data, params);
11804
11805
  };
11806
+ /**
11807
+ * Update administrator email preferences for a title.
11808
+ *
11809
+ * @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
11810
+ *
11811
+ * @param title_id The id of the title.
11812
+ * @param user_id The id of the user/administrator.
11813
+ * @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
11814
+ *
11815
+ * @returns Promise
11816
+ */
11817
+ Titles.updateAdministrator = function (title_id, user_id, data, params) {
11818
+ return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
11819
+ };
11805
11820
  return Titles;
11806
11821
  }());
11807
11822