glitch-javascript-sdk 2.0.9 → 2.1.1

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
@@ -22912,7 +22912,15 @@ var FingerprintingRoute = /** @class */ (function () {
22912
22912
  geolocationReport: {
22913
22913
  url: '/reports/fingerprinting/geolocation',
22914
22914
  method: HTTP_METHODS.GET
22915
- }
22915
+ },
22916
+ pixelAttributionReport: {
22917
+ url: '/reports/fingerprinting/pixel-attribution',
22918
+ method: HTTP_METHODS.GET
22919
+ },
22920
+ installJourneyReport: {
22921
+ url: '/reports/fingerprinting/install-journey',
22922
+ method: HTTP_METHODS.GET
22923
+ },
22916
22924
  };
22917
22925
  return FingerprintingRoute;
22918
22926
  }());
@@ -23067,6 +23075,32 @@ var Fingerprinting = /** @class */ (function () {
23067
23075
  Fingerprinting.geolocationReport = function (params) {
23068
23076
  return Requests.processRoute(FingerprintingRoute.routes.geolocationReport, {}, undefined, params);
23069
23077
  };
23078
+ /**
23079
+ * Get pixel and utem reports
23080
+ *
23081
+ * @param params Report options:
23082
+ * - title_id: string - Required title ID
23083
+ * - start_date?: string - Start date (YYYY-MM-DD)
23084
+ * - end_date?: string - End date (YYYY-MM-DD)
23085
+ * - group_by?: 'country'|'region'|'city' - Grouping level
23086
+ * @returns Promise with geolocation report data
23087
+ */
23088
+ Fingerprinting.pixelAttributionReport = function (params) {
23089
+ return Requests.processRoute(FingerprintingRoute.routes.pixelAttributionReport, {}, undefined, params);
23090
+ };
23091
+ /**
23092
+ * Get an understanding of the path people take to install your game
23093
+ *
23094
+ * @param params Report options:
23095
+ * - title_id: string - Required title ID
23096
+ * - start_date?: string - Start date (YYYY-MM-DD)
23097
+ * - end_date?: string - End date (YYYY-MM-DD)
23098
+ * - group_by?: 'country'|'region'|'city' - Grouping level
23099
+ * @returns Promise with geolocation report data
23100
+ */
23101
+ Fingerprinting.installJourneyReport = function (params) {
23102
+ return Requests.processRoute(FingerprintingRoute.routes.installJourneyReport, {}, undefined, params);
23103
+ };
23070
23104
  return Fingerprinting;
23071
23105
  }());
23072
23106
 
@@ -24905,6 +24939,8 @@ var CampaignsRoute = /** @class */ (function () {
24905
24939
  sourcingFindAndSaveTwitchCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-twitch-creators', method: HTTP_METHODS.POST },
24906
24940
  sourcingFindAndSaveYouTubeCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-youtube-creators', method: HTTP_METHODS.POST },
24907
24941
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
24942
+ sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
24943
+ sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
24908
24944
  };
24909
24945
  return CampaignsRoute;
24910
24946
  }());
@@ -25700,6 +25736,25 @@ var Campaigns = /** @class */ (function () {
25700
25736
  Campaigns.exportSourcedCreators = function (campaign_id, params) {
25701
25737
  return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id: campaign_id }, params);
25702
25738
  };
25739
+ /**
25740
+ * Search IGDB for any game by a query string.
25741
+ * @param campaign_id The UUID of the campaign (for permission checking).
25742
+ * @param params Query parameters including 'search_query' and optional 'limit'.
25743
+ * @returns promise
25744
+ */
25745
+ Campaigns.sourcingSearchAnyIgdbGame = function (campaign_id, params) {
25746
+ return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id: campaign_id }, params);
25747
+ };
25748
+ /**
25749
+ * Get full game details from a list of IGDB IDs.
25750
+ * @param campaign_id The UUID of the campaign.
25751
+ * @param data An object containing the array of IGDB IDs.
25752
+ * @param data.igdb_ids An array of IGDB game IDs.
25753
+ * @returns promise
25754
+ */
25755
+ Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
25756
+ return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
25757
+ };
25703
25758
  return Campaigns;
25704
25759
  }());
25705
25760