glitch-javascript-sdk 1.6.2 → 1.6.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 +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Funnel.d.ts +9 -0
- package/dist/esm/api/Games.d.ts +6 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/api/Funnel.ts +13 -0
- package/src/api/Games.ts +9 -0
- package/src/routes/FunnelRoutes.ts +1 -0
- package/src/routes/GamesRoutes.ts +1 -0
- package/src/routes/TitlesRoute.ts +22 -22
package/dist/cjs/index.js
CHANGED
|
@@ -24151,6 +24151,7 @@ var GamesRoutes = /** @class */ (function () {
|
|
|
24151
24151
|
listGames: { url: '/games', method: HTTP_METHODS.GET },
|
|
24152
24152
|
viewGame: { url: '/games/{game_id}', method: HTTP_METHODS.GET },
|
|
24153
24153
|
createCampaignData: { url: '/games/{game_id}/generateCampaign', method: HTTP_METHODS.POST },
|
|
24154
|
+
createCampaignWithTitle: { url: '/games/{game_id}/generateCampaignWithTitle', method: HTTP_METHODS.POST },
|
|
24154
24155
|
createGameTitle: { url: '/games/{game_id}/generateTitle', method: HTTP_METHODS.POST },
|
|
24155
24156
|
createGameScheduler: { url: '/games/{game_id}/generateScheduler', method: HTTP_METHODS.POST },
|
|
24156
24157
|
};
|
|
@@ -24190,6 +24191,14 @@ var Games = /** @class */ (function () {
|
|
|
24190
24191
|
Games.createCampaignData = function (game_id, data, params) {
|
|
24191
24192
|
return Requests.processRoute(GamesRoutes.routes.createCampaignData, data, { game_id: game_id }, params);
|
|
24192
24193
|
};
|
|
24194
|
+
/**
|
|
24195
|
+
* Generates campaign data with a game title.
|
|
24196
|
+
*
|
|
24197
|
+
* @returns promise
|
|
24198
|
+
*/
|
|
24199
|
+
Games.createCampaignWithTitle = function (game_id, data, params) {
|
|
24200
|
+
return Requests.processRoute(GamesRoutes.routes.createCampaignWithTitle, data, { game_id: game_id }, params);
|
|
24201
|
+
};
|
|
24193
24202
|
/**
|
|
24194
24203
|
* Generates game data for this game.
|
|
24195
24204
|
*
|
|
@@ -25076,6 +25085,7 @@ var FunnelRoutes = /** @class */ (function () {
|
|
|
25076
25085
|
daily: { url: '/funnels/daily', method: HTTP_METHODS.GET },
|
|
25077
25086
|
monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
|
|
25078
25087
|
yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
|
|
25088
|
+
gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
|
|
25079
25089
|
};
|
|
25080
25090
|
return FunnelRoutes;
|
|
25081
25091
|
}());
|
|
@@ -25159,6 +25169,17 @@ var Funnel = /** @class */ (function () {
|
|
|
25159
25169
|
Funnel.yearly = function (params) {
|
|
25160
25170
|
return Requests.processRoute(FunnelRoutes.routes.yearly, undefined, undefined, params);
|
|
25161
25171
|
};
|
|
25172
|
+
/**
|
|
25173
|
+
* Get gamified funnel metrics with recommended targets, scores, and ranks.
|
|
25174
|
+
*
|
|
25175
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
|
|
25176
|
+
*
|
|
25177
|
+
* @param params Query parameters (title_id, community_id, start_date, end_date)
|
|
25178
|
+
* @returns Promise with the gamified funnel data
|
|
25179
|
+
*/
|
|
25180
|
+
Funnel.gamify = function (params) {
|
|
25181
|
+
return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
|
|
25182
|
+
};
|
|
25162
25183
|
return Funnel;
|
|
25163
25184
|
}());
|
|
25164
25185
|
|