glitch-javascript-sdk 1.6.8 → 1.7.0
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 +8 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Hashtags.d.ts +2 -2
- package/dist/esm/api/Titles.d.ts +1 -0
- package/dist/esm/index.js +8 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/api/Hashtags.ts +4 -4
- package/src/api/Titles.ts +4 -0
- package/src/routes/TitlesRoute.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -2997,6 +2997,7 @@ declare class Titles {
|
|
|
2997
2997
|
static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2998
2998
|
static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
2999
2999
|
static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3000
|
+
static distinctDimensions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
3000
3001
|
}
|
|
3001
3002
|
|
|
3002
3003
|
declare class Campaigns {
|
|
@@ -4552,14 +4553,14 @@ declare class Hashtags {
|
|
|
4552
4553
|
*
|
|
4553
4554
|
* @returns A promise
|
|
4554
4555
|
*/
|
|
4555
|
-
static list<T>(
|
|
4556
|
+
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4556
4557
|
/**
|
|
4557
4558
|
* Get the top hashtags for a title, campaign, or schedule.
|
|
4558
4559
|
*
|
|
4559
4560
|
* @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
|
|
4560
4561
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
4561
4562
|
*/
|
|
4562
|
-
static top<T>(
|
|
4563
|
+
static top<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
4563
4564
|
}
|
|
4564
4565
|
|
|
4565
4566
|
interface Route {
|
package/package.json
CHANGED
package/src/api/Hashtags.ts
CHANGED
|
@@ -12,8 +12,8 @@ class Hashtags {
|
|
|
12
12
|
*
|
|
13
13
|
* @returns A promise
|
|
14
14
|
*/
|
|
15
|
-
public static list<T>(
|
|
16
|
-
return Requests.processRoute(HashtagRoute.routes.list,
|
|
15
|
+
public static list<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
|
|
16
|
+
return Requests.processRoute(HashtagRoute.routes.list, {}, {}, params);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -22,8 +22,8 @@ class Hashtags {
|
|
|
22
22
|
* @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
|
|
23
23
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
24
24
|
*/
|
|
25
|
-
public static top<T>(
|
|
26
|
-
return Requests.processRoute(HashtagRoute.routes.top,
|
|
25
|
+
public static top<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
|
|
26
|
+
return Requests.processRoute(HashtagRoute.routes.top, {}, {}, params);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
}
|
package/src/api/Titles.ts
CHANGED
|
@@ -361,6 +361,10 @@ class Titles {
|
|
|
361
361
|
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id }, params);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
public static distinctDimensions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
365
|
+
return Requests.processRoute(TitlesRoute.routes.distinctDimensions, {}, { title_id }, params);
|
|
366
|
+
}
|
|
367
|
+
|
|
364
368
|
}
|
|
365
369
|
|
|
366
370
|
export default Titles;
|
|
@@ -31,6 +31,7 @@ class TitlesRoute {
|
|
|
31
31
|
retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
|
|
32
32
|
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
33
33
|
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
34
|
+
distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
}
|