glitch-javascript-sdk 2.2.3 → 2.2.4
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 +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +3 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +18 -6
- package/src/routes/CampaignsRoute.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -4702,6 +4702,9 @@ declare class Campaigns {
|
|
|
4702
4702
|
* @returns promise
|
|
4703
4703
|
*/
|
|
4704
4704
|
static updateAutoInviteCriteria<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4705
|
+
static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4706
|
+
static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4707
|
+
static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4705
4708
|
}
|
|
4706
4709
|
|
|
4707
4710
|
declare class Subscriptions {
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -916,12 +916,12 @@ class Campaigns {
|
|
|
916
916
|
return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id }, params);
|
|
917
917
|
}
|
|
918
918
|
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
919
|
+
/**
|
|
920
|
+
* Search IGDB for any game by a query string.
|
|
921
|
+
* @param campaign_id The UUID of the campaign (for permission checking).
|
|
922
|
+
* @param params Query parameters including 'search_query' and optional 'limit'.
|
|
923
|
+
* @returns promise
|
|
924
|
+
*/
|
|
925
925
|
public static sourcingSearchAnyIgdbGame<T>(campaign_id: string, params: { search_query: string, limit?: number }): AxiosPromise<Response<T>> {
|
|
926
926
|
return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id }, params);
|
|
927
927
|
}
|
|
@@ -948,6 +948,18 @@ class Campaigns {
|
|
|
948
948
|
return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id });
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
+
public static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
|
|
952
|
+
return Requests.processRoute(CampaignsRoute.routes.updateCustomRanking, data, { campaign_id });
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
public static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>> {
|
|
956
|
+
return Requests.processRoute(CampaignsRoute.routes.updateCreatorBucket, data, { campaign_id, creator_id });
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
public static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>> {
|
|
960
|
+
return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id });
|
|
961
|
+
}
|
|
962
|
+
|
|
951
963
|
|
|
952
964
|
}
|
|
953
965
|
|
|
@@ -77,7 +77,9 @@ class CampaignsRoute {
|
|
|
77
77
|
sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
|
|
78
78
|
sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
|
|
79
79
|
updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
|
|
80
|
-
|
|
80
|
+
updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
|
|
81
|
+
updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
|
|
82
|
+
reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
|
|
81
83
|
|
|
82
84
|
};
|
|
83
85
|
|