glitch-javascript-sdk 1.6.7 → 1.6.9
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 +47 -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 +22 -0
- package/dist/esm/index.js +47 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +24 -2
- package/package.json +1 -1
- package/src/api/Hashtags.ts +4 -4
- package/src/api/Titles.ts +43 -0
- package/src/routes/TitlesRoute.ts +7 -0
|
@@ -7,13 +7,13 @@ declare class Hashtags {
|
|
|
7
7
|
*
|
|
8
8
|
* @returns A promise
|
|
9
9
|
*/
|
|
10
|
-
static list<T>(
|
|
10
|
+
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
11
11
|
/**
|
|
12
12
|
* Get the top hashtags for a title, campaign, or schedule.
|
|
13
13
|
*
|
|
14
14
|
* @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
|
|
15
15
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
16
16
|
*/
|
|
17
|
-
static top<T>(
|
|
17
|
+
static top<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
18
18
|
}
|
|
19
19
|
export default Hashtags;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -199,5 +199,27 @@ declare class Titles {
|
|
|
199
199
|
* - page?: number, per_page?: number
|
|
200
200
|
*/
|
|
201
201
|
static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
|
+
/**
|
|
203
|
+
* List game installs for a specific title.
|
|
204
|
+
*/
|
|
205
|
+
static listInstalls<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
206
|
+
/**
|
|
207
|
+
* View a single game install record.
|
|
208
|
+
*/
|
|
209
|
+
static viewInstall<T>(title_id: string, install_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
210
|
+
/**
|
|
211
|
+
* Create a new game install record.
|
|
212
|
+
*/
|
|
213
|
+
static createInstall<T>(title_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
214
|
+
/**
|
|
215
|
+
* List retention events for a specific title.
|
|
216
|
+
*/
|
|
217
|
+
static listRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
218
|
+
/**
|
|
219
|
+
* Get a summary report of retention events for a specific title.
|
|
220
|
+
*/
|
|
221
|
+
static retentionSummary<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
222
|
+
static activeRetentions<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
223
|
+
static retentionAnalysis<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
202
224
|
}
|
|
203
225
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -9634,6 +9634,13 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
9634
9634
|
listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
|
|
9635
9635
|
revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
|
|
9636
9636
|
search: { url: '/titles/search', method: HTTP_METHODS.GET },
|
|
9637
|
+
listInstalls: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.GET },
|
|
9638
|
+
viewInstall: { url: '/titles/{title_id}/installs/{install_id}', method: HTTP_METHODS.GET },
|
|
9639
|
+
createInstall: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.POST },
|
|
9640
|
+
listRetentions: { url: '/titles/{title_id}/retentions', method: HTTP_METHODS.GET },
|
|
9641
|
+
retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
|
|
9642
|
+
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
9643
|
+
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
9637
9644
|
};
|
|
9638
9645
|
return TitlesRoute;
|
|
9639
9646
|
}());
|
|
@@ -9884,6 +9891,42 @@ var Titles = /** @class */ (function () {
|
|
|
9884
9891
|
Titles.search = function (params) {
|
|
9885
9892
|
return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
|
|
9886
9893
|
};
|
|
9894
|
+
/**
|
|
9895
|
+
* List game installs for a specific title.
|
|
9896
|
+
*/
|
|
9897
|
+
Titles.listInstalls = function (title_id, params) {
|
|
9898
|
+
return Requests.processRoute(TitlesRoute.routes.listInstalls, {}, { title_id: title_id }, params);
|
|
9899
|
+
};
|
|
9900
|
+
/**
|
|
9901
|
+
* View a single game install record.
|
|
9902
|
+
*/
|
|
9903
|
+
Titles.viewInstall = function (title_id, install_id, params) {
|
|
9904
|
+
return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
|
|
9905
|
+
};
|
|
9906
|
+
/**
|
|
9907
|
+
* Create a new game install record.
|
|
9908
|
+
*/
|
|
9909
|
+
Titles.createInstall = function (title_id, data, params) {
|
|
9910
|
+
return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
|
|
9911
|
+
};
|
|
9912
|
+
/**
|
|
9913
|
+
* List retention events for a specific title.
|
|
9914
|
+
*/
|
|
9915
|
+
Titles.listRetentions = function (title_id, params) {
|
|
9916
|
+
return Requests.processRoute(TitlesRoute.routes.listRetentions, {}, { title_id: title_id }, params);
|
|
9917
|
+
};
|
|
9918
|
+
/**
|
|
9919
|
+
* Get a summary report of retention events for a specific title.
|
|
9920
|
+
*/
|
|
9921
|
+
Titles.retentionSummary = function (title_id, params) {
|
|
9922
|
+
return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
|
|
9923
|
+
};
|
|
9924
|
+
Titles.activeRetentions = function (title_id, params) {
|
|
9925
|
+
return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id: title_id }, params);
|
|
9926
|
+
};
|
|
9927
|
+
Titles.retentionAnalysis = function (title_id, params) {
|
|
9928
|
+
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
|
|
9929
|
+
};
|
|
9887
9930
|
return Titles;
|
|
9888
9931
|
}());
|
|
9889
9932
|
|
|
@@ -12146,8 +12189,8 @@ var Hashtags = /** @class */ (function () {
|
|
|
12146
12189
|
*
|
|
12147
12190
|
* @returns A promise
|
|
12148
12191
|
*/
|
|
12149
|
-
Hashtags.list = function (
|
|
12150
|
-
return Requests.processRoute(HashtagRoute.routes.list,
|
|
12192
|
+
Hashtags.list = function (params) {
|
|
12193
|
+
return Requests.processRoute(HashtagRoute.routes.list, {}, {}, params);
|
|
12151
12194
|
};
|
|
12152
12195
|
/**
|
|
12153
12196
|
* Get the top hashtags for a title, campaign, or schedule.
|
|
@@ -12155,8 +12198,8 @@ var Hashtags = /** @class */ (function () {
|
|
|
12155
12198
|
* @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
|
|
12156
12199
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
12157
12200
|
*/
|
|
12158
|
-
Hashtags.top = function (
|
|
12159
|
-
return Requests.processRoute(HashtagRoute.routes.top,
|
|
12201
|
+
Hashtags.top = function (params) {
|
|
12202
|
+
return Requests.processRoute(HashtagRoute.routes.top, {}, {}, params);
|
|
12160
12203
|
};
|
|
12161
12204
|
return Hashtags;
|
|
12162
12205
|
}());
|