glitch-javascript-sdk 1.6.2 → 1.6.3
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 +9 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Games.d.ts +6 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
- package/src/api/Games.ts +9 -0
- package/src/routes/GamesRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +22 -22
package/dist/esm/api/Games.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ declare class Games {
|
|
|
25
25
|
* @returns promise
|
|
26
26
|
*/
|
|
27
27
|
static createCampaignData<T>(game_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
|
+
/**
|
|
29
|
+
* Generates campaign data with a game title.
|
|
30
|
+
*
|
|
31
|
+
* @returns promise
|
|
32
|
+
*/
|
|
33
|
+
static createCampaignWithTitle<T>(game_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
28
34
|
/**
|
|
29
35
|
* Generates game data for this game.
|
|
30
36
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -10967,6 +10967,7 @@ var GamesRoutes = /** @class */ (function () {
|
|
|
10967
10967
|
listGames: { url: '/games', method: HTTP_METHODS.GET },
|
|
10968
10968
|
viewGame: { url: '/games/{game_id}', method: HTTP_METHODS.GET },
|
|
10969
10969
|
createCampaignData: { url: '/games/{game_id}/generateCampaign', method: HTTP_METHODS.POST },
|
|
10970
|
+
createCampaignWithTitle: { url: '/games/{game_id}/generateCampaignWithTitle', method: HTTP_METHODS.POST },
|
|
10970
10971
|
createGameTitle: { url: '/games/{game_id}/generateTitle', method: HTTP_METHODS.POST },
|
|
10971
10972
|
createGameScheduler: { url: '/games/{game_id}/generateScheduler', method: HTTP_METHODS.POST },
|
|
10972
10973
|
};
|
|
@@ -11006,6 +11007,14 @@ var Games = /** @class */ (function () {
|
|
|
11006
11007
|
Games.createCampaignData = function (game_id, data, params) {
|
|
11007
11008
|
return Requests.processRoute(GamesRoutes.routes.createCampaignData, data, { game_id: game_id }, params);
|
|
11008
11009
|
};
|
|
11010
|
+
/**
|
|
11011
|
+
* Generates campaign data with a game title.
|
|
11012
|
+
*
|
|
11013
|
+
* @returns promise
|
|
11014
|
+
*/
|
|
11015
|
+
Games.createCampaignWithTitle = function (game_id, data, params) {
|
|
11016
|
+
return Requests.processRoute(GamesRoutes.routes.createCampaignWithTitle, data, { game_id: game_id }, params);
|
|
11017
|
+
};
|
|
11009
11018
|
/**
|
|
11010
11019
|
* Generates game data for this game.
|
|
11011
11020
|
*
|