glitch-javascript-sdk 1.6.3 → 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 CHANGED
@@ -25085,6 +25085,7 @@ var FunnelRoutes = /** @class */ (function () {
25085
25085
  daily: { url: '/funnels/daily', method: HTTP_METHODS.GET },
25086
25086
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
25087
25087
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
25088
+ gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
25088
25089
  };
25089
25090
  return FunnelRoutes;
25090
25091
  }());
@@ -25168,6 +25169,17 @@ var Funnel = /** @class */ (function () {
25168
25169
  Funnel.yearly = function (params) {
25169
25170
  return Requests.processRoute(FunnelRoutes.routes.yearly, undefined, undefined, params);
25170
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
+ };
25171
25183
  return Funnel;
25172
25184
  }());
25173
25185