glitch-javascript-sdk 2.1.9 → 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
@@ -24529,6 +24529,14 @@ var TitlesRoute = /** @class */ (function () {
24529
24529
  url: "/titles/{title_id}/purchases/reports/item-type-stats",
24530
24530
  method: HTTP_METHODS.GET,
24531
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
+ }
24532
24540
  };
24533
24541
  return TitlesRoute;
24534
24542
  }());
@@ -25001,6 +25009,18 @@ var Titles = /** @class */ (function () {
25001
25009
  Titles.updateAdministrator = function (title_id, user_id, data, params) {
25002
25010
  return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
25003
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
+ };
25004
25024
  return Titles;
25005
25025
  }());
25006
25026
 
@@ -25080,6 +25100,7 @@ var CampaignsRoute = /** @class */ (function () {
25080
25100
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
25081
25101
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
25082
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 },
25083
25104
  };
25084
25105
  return CampaignsRoute;
25085
25106
  }());
@@ -25894,6 +25915,16 @@ var Campaigns = /** @class */ (function () {
25894
25915
  Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
25895
25916
  return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
25896
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
+ };
25897
25928
  return Campaigns;
25898
25929
  }());
25899
25930