glitch-javascript-sdk 2.4.1 → 2.4.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 CHANGED
@@ -28077,6 +28077,7 @@ var FunnelRoutes = /** @class */ (function () {
28077
28077
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
28078
28078
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
28079
28079
  gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
28080
+ diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
28080
28081
  };
28081
28082
  return FunnelRoutes;
28082
28083
  }());
@@ -28171,6 +28172,22 @@ var Funnel = /** @class */ (function () {
28171
28172
  Funnel.gamify = function (params) {
28172
28173
  return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
28173
28174
  };
28175
+ /**
28176
+ * Get comprehensive funnel diagnostic report.
28177
+ *
28178
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
28179
+ *
28180
+ * @param params Query parameters:
28181
+ * - title_id (string): Required
28182
+ * - start_date (string): Required (YYYY-MM-DD)
28183
+ * - end_date (string): Required (YYYY-MM-DD)
28184
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
28185
+ *
28186
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
28187
+ */
28188
+ Funnel.diagnostic = function (params) {
28189
+ return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
28190
+ };
28174
28191
  return Funnel;
28175
28192
  }());
28176
28193