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 +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Funnel.d.ts +14 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
- package/src/api/Funnel.ts +17 -0
- package/src/routes/FunnelRoutes.ts +1 -0
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
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
|
|