glitch-javascript-sdk 2.0.9 → 2.1.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
@@ -24905,6 +24905,8 @@ var CampaignsRoute = /** @class */ (function () {
24905
24905
  sourcingFindAndSaveTwitchCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-twitch-creators', method: HTTP_METHODS.POST },
24906
24906
  sourcingFindAndSaveYouTubeCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-youtube-creators', method: HTTP_METHODS.POST },
24907
24907
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
24908
+ sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
24909
+ sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
24908
24910
  };
24909
24911
  return CampaignsRoute;
24910
24912
  }());
@@ -25700,6 +25702,25 @@ var Campaigns = /** @class */ (function () {
25700
25702
  Campaigns.exportSourcedCreators = function (campaign_id, params) {
25701
25703
  return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id: campaign_id }, params);
25702
25704
  };
25705
+ /**
25706
+ * Search IGDB for any game by a query string.
25707
+ * @param campaign_id The UUID of the campaign (for permission checking).
25708
+ * @param params Query parameters including 'search_query' and optional 'limit'.
25709
+ * @returns promise
25710
+ */
25711
+ Campaigns.sourcingSearchAnyIgdbGame = function (campaign_id, params) {
25712
+ return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id: campaign_id }, params);
25713
+ };
25714
+ /**
25715
+ * Get full game details from a list of IGDB IDs.
25716
+ * @param campaign_id The UUID of the campaign.
25717
+ * @param data An object containing the array of IGDB IDs.
25718
+ * @param data.igdb_ids An array of IGDB game IDs.
25719
+ * @returns promise
25720
+ */
25721
+ Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
25722
+ return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
25723
+ };
25703
25724
  return Campaigns;
25704
25725
  }());
25705
25726