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.
@@ -62,5 +62,14 @@ declare class Funnel {
62
62
  * @returns Promise with yearly funnel metrics data
63
63
  */
64
64
  static yearly<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
65
+ /**
66
+ * Get gamified funnel metrics with recommended targets, scores, and ranks.
67
+ *
68
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
69
+ *
70
+ * @param params Query parameters (title_id, community_id, start_date, end_date)
71
+ * @returns Promise with the gamified funnel data
72
+ */
73
+ static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
65
74
  }
66
75
  export default Funnel;
@@ -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
  *
@@ -11892,6 +11901,7 @@ var FunnelRoutes = /** @class */ (function () {
11892
11901
  daily: { url: '/funnels/daily', method: HTTP_METHODS.GET },
11893
11902
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
11894
11903
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
11904
+ gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
11895
11905
  };
11896
11906
  return FunnelRoutes;
11897
11907
  }());
@@ -11975,6 +11985,17 @@ var Funnel = /** @class */ (function () {
11975
11985
  Funnel.yearly = function (params) {
11976
11986
  return Requests.processRoute(FunnelRoutes.routes.yearly, undefined, undefined, params);
11977
11987
  };
11988
+ /**
11989
+ * Get gamified funnel metrics with recommended targets, scores, and ranks.
11990
+ *
11991
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
11992
+ *
11993
+ * @param params Query parameters (title_id, community_id, start_date, end_date)
11994
+ * @returns Promise with the gamified funnel data
11995
+ */
11996
+ Funnel.gamify = function (params) {
11997
+ return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
11998
+ };
11978
11999
  return Funnel;
11979
12000
  }());
11980
12001