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 +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +20 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +22 -0
- package/src/routes/CampaignsRoute.ts +2 -1
|
@@ -654,5 +654,25 @@ declare class Campaigns {
|
|
|
654
654
|
format: 'csv' | 'xlsx';
|
|
655
655
|
[key: string]: any;
|
|
656
656
|
}): AxiosPromise<Response<T>>;
|
|
657
|
+
/**
|
|
658
|
+
* Search IGDB for any game by a query string.
|
|
659
|
+
* @param campaign_id The UUID of the campaign (for permission checking).
|
|
660
|
+
* @param params Query parameters including 'search_query' and optional 'limit'.
|
|
661
|
+
* @returns promise
|
|
662
|
+
*/
|
|
663
|
+
static sourcingSearchAnyIgdbGame<T>(campaign_id: string, params: {
|
|
664
|
+
search_query: string;
|
|
665
|
+
limit?: number;
|
|
666
|
+
}): AxiosPromise<Response<T>>;
|
|
667
|
+
/**
|
|
668
|
+
* Get full game details from a list of IGDB IDs.
|
|
669
|
+
* @param campaign_id The UUID of the campaign.
|
|
670
|
+
* @param data An object containing the array of IGDB IDs.
|
|
671
|
+
* @param data.igdb_ids An array of IGDB game IDs.
|
|
672
|
+
* @returns promise
|
|
673
|
+
*/
|
|
674
|
+
static sourcingGetGamesByIds<T>(campaign_id: string, data: {
|
|
675
|
+
igdb_ids: number[];
|
|
676
|
+
}): AxiosPromise<Response<T>>;
|
|
657
677
|
}
|
|
658
678
|
export default Campaigns;
|
package/dist/esm/index.js
CHANGED
|
@@ -11721,6 +11721,8 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
11721
11721
|
sourcingFindAndSaveTwitchCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-twitch-creators', method: HTTP_METHODS.POST },
|
|
11722
11722
|
sourcingFindAndSaveYouTubeCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-youtube-creators', method: HTTP_METHODS.POST },
|
|
11723
11723
|
exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
|
|
11724
|
+
sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
|
|
11725
|
+
sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
|
|
11724
11726
|
};
|
|
11725
11727
|
return CampaignsRoute;
|
|
11726
11728
|
}());
|
|
@@ -12516,6 +12518,25 @@ var Campaigns = /** @class */ (function () {
|
|
|
12516
12518
|
Campaigns.exportSourcedCreators = function (campaign_id, params) {
|
|
12517
12519
|
return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id: campaign_id }, params);
|
|
12518
12520
|
};
|
|
12521
|
+
/**
|
|
12522
|
+
* Search IGDB for any game by a query string.
|
|
12523
|
+
* @param campaign_id The UUID of the campaign (for permission checking).
|
|
12524
|
+
* @param params Query parameters including 'search_query' and optional 'limit'.
|
|
12525
|
+
* @returns promise
|
|
12526
|
+
*/
|
|
12527
|
+
Campaigns.sourcingSearchAnyIgdbGame = function (campaign_id, params) {
|
|
12528
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id: campaign_id }, params);
|
|
12529
|
+
};
|
|
12530
|
+
/**
|
|
12531
|
+
* Get full game details from a list of IGDB IDs.
|
|
12532
|
+
* @param campaign_id The UUID of the campaign.
|
|
12533
|
+
* @param data An object containing the array of IGDB IDs.
|
|
12534
|
+
* @param data.igdb_ids An array of IGDB game IDs.
|
|
12535
|
+
* @returns promise
|
|
12536
|
+
*/
|
|
12537
|
+
Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
|
|
12538
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
|
|
12539
|
+
};
|
|
12519
12540
|
return Campaigns;
|
|
12520
12541
|
}());
|
|
12521
12542
|
|