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/index.d.ts CHANGED
@@ -6205,6 +6205,20 @@ declare class Funnel {
6205
6205
  * @returns Promise with the gamified funnel data
6206
6206
  */
6207
6207
  static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
6208
+ /**
6209
+ * Get comprehensive funnel diagnostic report.
6210
+ *
6211
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
6212
+ *
6213
+ * @param params Query parameters:
6214
+ * - title_id (string): Required
6215
+ * - start_date (string): Required (YYYY-MM-DD)
6216
+ * - end_date (string): Required (YYYY-MM-DD)
6217
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
6218
+ *
6219
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
6220
+ */
6221
+ static diagnostic<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
6208
6222
  }
6209
6223
 
6210
6224
  declare class SocialStats {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Funnel.ts CHANGED
@@ -100,6 +100,23 @@ class Funnel {
100
100
  return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
101
101
  }
102
102
 
103
+ /**
104
+ * Get comprehensive funnel diagnostic report.
105
+ *
106
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
107
+ *
108
+ * @param params Query parameters:
109
+ * - title_id (string): Required
110
+ * - start_date (string): Required (YYYY-MM-DD)
111
+ * - end_date (string): Required (YYYY-MM-DD)
112
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
113
+ *
114
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
115
+ */
116
+ public static diagnostic<T>(params: Record<string, any>): AxiosPromise<Response<T>> {
117
+ return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
118
+ }
119
+
103
120
  }
104
121
 
105
122
  export default Funnel;
@@ -13,6 +13,7 @@ class FunnelRoutes {
13
13
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
14
14
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
15
15
  gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
16
+ diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
16
17
  };
17
18
  }
18
19