glitch-javascript-sdk 1.6.6 → 1.6.8
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 +55 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/SocialPosts.d.ts +8 -0
- package/dist/esm/api/Titles.d.ts +22 -0
- package/dist/esm/index.js +55 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +30 -0
- package/package.json +1 -1
- package/src/api/Hashtags.ts +1 -1
- package/src/api/SocialPosts.ts +11 -0
- package/src/api/Titles.ts +43 -0
- package/src/routes/SocialPostsRoute.ts +1 -0
- package/src/routes/TitlesRoute.ts +7 -0
package/dist/cjs/index.js
CHANGED
|
@@ -22621,6 +22621,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
22621
22621
|
reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
|
|
22622
22622
|
reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
|
|
22623
22623
|
updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
|
|
22624
|
+
shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
|
|
22624
22625
|
};
|
|
22625
22626
|
return SocialPostsRoute;
|
|
22626
22627
|
}());
|
|
@@ -22780,6 +22781,16 @@ var SocialPosts = /** @class */ (function () {
|
|
|
22780
22781
|
SocialPosts.updatePostImpressions = function (post_id, data, params) {
|
|
22781
22782
|
return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
|
|
22782
22783
|
};
|
|
22784
|
+
/**
|
|
22785
|
+
* Get reports on all the the short links
|
|
22786
|
+
*
|
|
22787
|
+
* @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
|
|
22788
|
+
*
|
|
22789
|
+
* @returns promise
|
|
22790
|
+
*/
|
|
22791
|
+
SocialPosts.shortLinkReports = function (params) {
|
|
22792
|
+
return Requests.processRoute(SocialPostsRoute.routes.shortLinkReports, undefined, undefined, params);
|
|
22793
|
+
};
|
|
22783
22794
|
return SocialPosts;
|
|
22784
22795
|
}());
|
|
22785
22796
|
|
|
@@ -22807,6 +22818,13 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
22807
22818
|
listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
|
|
22808
22819
|
revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
|
|
22809
22820
|
search: { url: '/titles/search', method: HTTP_METHODS.GET },
|
|
22821
|
+
listInstalls: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.GET },
|
|
22822
|
+
viewInstall: { url: '/titles/{title_id}/installs/{install_id}', method: HTTP_METHODS.GET },
|
|
22823
|
+
createInstall: { url: '/titles/{title_id}/installs', method: HTTP_METHODS.POST },
|
|
22824
|
+
listRetentions: { url: '/titles/{title_id}/retentions', method: HTTP_METHODS.GET },
|
|
22825
|
+
retentionSummary: { url: '/titles/{title_id}/retentions/summary', method: HTTP_METHODS.GET },
|
|
22826
|
+
activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
|
|
22827
|
+
retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
|
|
22810
22828
|
};
|
|
22811
22829
|
return TitlesRoute;
|
|
22812
22830
|
}());
|
|
@@ -23057,6 +23075,42 @@ var Titles = /** @class */ (function () {
|
|
|
23057
23075
|
Titles.search = function (params) {
|
|
23058
23076
|
return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
|
|
23059
23077
|
};
|
|
23078
|
+
/**
|
|
23079
|
+
* List game installs for a specific title.
|
|
23080
|
+
*/
|
|
23081
|
+
Titles.listInstalls = function (title_id, params) {
|
|
23082
|
+
return Requests.processRoute(TitlesRoute.routes.listInstalls, {}, { title_id: title_id }, params);
|
|
23083
|
+
};
|
|
23084
|
+
/**
|
|
23085
|
+
* View a single game install record.
|
|
23086
|
+
*/
|
|
23087
|
+
Titles.viewInstall = function (title_id, install_id, params) {
|
|
23088
|
+
return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
|
|
23089
|
+
};
|
|
23090
|
+
/**
|
|
23091
|
+
* Create a new game install record.
|
|
23092
|
+
*/
|
|
23093
|
+
Titles.createInstall = function (title_id, data, params) {
|
|
23094
|
+
return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
|
|
23095
|
+
};
|
|
23096
|
+
/**
|
|
23097
|
+
* List retention events for a specific title.
|
|
23098
|
+
*/
|
|
23099
|
+
Titles.listRetentions = function (title_id, params) {
|
|
23100
|
+
return Requests.processRoute(TitlesRoute.routes.listRetentions, {}, { title_id: title_id }, params);
|
|
23101
|
+
};
|
|
23102
|
+
/**
|
|
23103
|
+
* Get a summary report of retention events for a specific title.
|
|
23104
|
+
*/
|
|
23105
|
+
Titles.retentionSummary = function (title_id, params) {
|
|
23106
|
+
return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
|
|
23107
|
+
};
|
|
23108
|
+
Titles.activeRetentions = function (title_id, params) {
|
|
23109
|
+
return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id: title_id }, params);
|
|
23110
|
+
};
|
|
23111
|
+
Titles.retentionAnalysis = function (title_id, params) {
|
|
23112
|
+
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
|
|
23113
|
+
};
|
|
23060
23114
|
return Titles;
|
|
23061
23115
|
}());
|
|
23062
23116
|
|
|
@@ -25329,7 +25383,7 @@ var Hashtags = /** @class */ (function () {
|
|
|
25329
25383
|
* @returns AxiosPromise of an array of aggregated hashtags
|
|
25330
25384
|
*/
|
|
25331
25385
|
Hashtags.top = function (data, params) {
|
|
25332
|
-
return Requests.processRoute(HashtagRoute.routes.
|
|
25386
|
+
return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
|
|
25333
25387
|
};
|
|
25334
25388
|
return Hashtags;
|
|
25335
25389
|
}());
|