glitch-javascript-sdk 2.1.8 → 2.2.0

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 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
@@ -24528,6 +24529,14 @@ var TitlesRoute = /** @class */ (function () {
24528
24529
  url: "/titles/{title_id}/purchases/reports/item-type-stats",
24529
24530
  method: HTTP_METHODS.GET,
24530
24531
  },
24532
+ listAdConversionEvents: {
24533
+ url: '/titles/{title_id}/ad-conversion-events',
24534
+ method: HTTP_METHODS.GET
24535
+ },
24536
+ retryAdConversionEvent: {
24537
+ url: '/titles/{title_id}/ad-conversion-events/{event_id}/retry',
24538
+ method: HTTP_METHODS.POST
24539
+ }
24531
24540
  };
24532
24541
  return TitlesRoute;
24533
24542
  }());
@@ -24986,6 +24995,32 @@ var Titles = /** @class */ (function () {
24986
24995
  var url = TitlesRoute.routes.importKeys.url.replace("{title_id}", title_id);
24987
24996
  return Requests.uploadFile(url, "file", file, data, params);
24988
24997
  };
24998
+ /**
24999
+ * Update administrator email preferences for a title.
25000
+ *
25001
+ * @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
25002
+ *
25003
+ * @param title_id The id of the title.
25004
+ * @param user_id The id of the user/administrator.
25005
+ * @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
25006
+ *
25007
+ * @returns Promise
25008
+ */
25009
+ Titles.updateAdministrator = function (title_id, user_id, data, params) {
25010
+ return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
25011
+ };
25012
+ /**
25013
+ * List ad conversion events for a title with filtering
25014
+ */
25015
+ Titles.listAdConversionEvents = function (title_id, params) {
25016
+ return Requests.processRoute(TitlesRoute.routes.listAdConversionEvents, {}, { title_id: title_id }, params);
25017
+ };
25018
+ /**
25019
+ * Retry a failed or pending ad conversion event
25020
+ */
25021
+ Titles.retryAdConversionEvent = function (title_id, event_id) {
25022
+ return Requests.processRoute(TitlesRoute.routes.retryAdConversionEvent, {}, { title_id: title_id, event_id: event_id });
25023
+ };
24989
25024
  return Titles;
24990
25025
  }());
24991
25026
 
@@ -25065,6 +25100,7 @@ var CampaignsRoute = /** @class */ (function () {
25065
25100
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
25066
25101
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
25067
25102
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
25103
+ updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
25068
25104
  };
25069
25105
  return CampaignsRoute;
25070
25106
  }());
@@ -25879,6 +25915,16 @@ var Campaigns = /** @class */ (function () {
25879
25915
  Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
25880
25916
  return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
25881
25917
  };
25918
+ /**
25919
+ * Get full game details from a list of IGDB IDs.
25920
+ * @param campaign_id The UUID of the campaign.
25921
+ * @param data An object containing the array of IGDB IDs.
25922
+ * @param data.igdb_ids An array of IGDB game IDs.
25923
+ * @returns promise
25924
+ */
25925
+ Campaigns.updateAutoInviteCriteria = function (campaign_id, data) {
25926
+ return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id: campaign_id });
25927
+ };
25882
25928
  return Campaigns;
25883
25929
  }());
25884
25930