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 +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Funnel.d.ts +9 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/api/Funnel.ts +13 -0
- package/src/routes/FunnelRoutes.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -4434,6 +4434,15 @@ declare class Funnel {
|
|
|
4434
4434
|
* @returns Promise with yearly funnel metrics data
|
|
4435
4435
|
*/
|
|
4436
4436
|
static yearly<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4437
|
+
/**
|
|
4438
|
+
* Get gamified funnel metrics with recommended targets, scores, and ranks.
|
|
4439
|
+
*
|
|
4440
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
|
|
4441
|
+
*
|
|
4442
|
+
* @param params Query parameters (title_id, community_id, start_date, end_date)
|
|
4443
|
+
* @returns Promise with the gamified funnel data
|
|
4444
|
+
*/
|
|
4445
|
+
static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4437
4446
|
}
|
|
4438
4447
|
|
|
4439
4448
|
declare class SocialStats {
|
package/package.json
CHANGED
package/src/api/Funnel.ts
CHANGED
|
@@ -87,6 +87,19 @@ class Funnel {
|
|
|
87
87
|
public static yearly<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
88
88
|
return Requests.processRoute(FunnelRoutes.routes.yearly, undefined, undefined, params);
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get gamified funnel metrics with recommended targets, scores, and ranks.
|
|
93
|
+
*
|
|
94
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
|
|
95
|
+
*
|
|
96
|
+
* @param params Query parameters (title_id, community_id, start_date, end_date)
|
|
97
|
+
* @returns Promise with the gamified funnel data
|
|
98
|
+
*/
|
|
99
|
+
public static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
100
|
+
return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
|
|
101
|
+
}
|
|
102
|
+
|
|
90
103
|
}
|
|
91
104
|
|
|
92
105
|
export default Funnel;
|
|
@@ -12,6 +12,7 @@ class FunnelRoutes {
|
|
|
12
12
|
daily: { url: '/funnels/daily', method: HTTP_METHODS.GET },
|
|
13
13
|
monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
|
|
14
14
|
yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
|
|
15
|
+
gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
18
|
|