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.
@@ -71,5 +71,19 @@ declare class Funnel {
71
71
  * @returns Promise with the gamified funnel data
72
72
  */
73
73
  static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
74
+ /**
75
+ * Get comprehensive funnel diagnostic report.
76
+ *
77
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
78
+ *
79
+ * @param params Query parameters:
80
+ * - title_id (string): Required
81
+ * - start_date (string): Required (YYYY-MM-DD)
82
+ * - end_date (string): Required (YYYY-MM-DD)
83
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
84
+ *
85
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
86
+ */
87
+ static diagnostic<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
74
88
  }
75
89
  export default Funnel;
package/dist/esm/index.js CHANGED
@@ -14893,6 +14893,7 @@ var FunnelRoutes = /** @class */ (function () {
14893
14893
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
14894
14894
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
14895
14895
  gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
14896
+ diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
14896
14897
  };
14897
14898
  return FunnelRoutes;
14898
14899
  }());
@@ -14987,6 +14988,22 @@ var Funnel = /** @class */ (function () {
14987
14988
  Funnel.gamify = function (params) {
14988
14989
  return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
14989
14990
  };
14991
+ /**
14992
+ * Get comprehensive funnel diagnostic report.
14993
+ *
14994
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
14995
+ *
14996
+ * @param params Query parameters:
14997
+ * - title_id (string): Required
14998
+ * - start_date (string): Required (YYYY-MM-DD)
14999
+ * - end_date (string): Required (YYYY-MM-DD)
15000
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
15001
+ *
15002
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
15003
+ */
15004
+ Funnel.diagnostic = function (params) {
15005
+ return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
15006
+ };
14990
15007
  return Funnel;
14991
15008
  }());
14992
15009