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.
@@ -127,5 +127,13 @@ declare class SocialPosts {
127
127
  * @returns promise
128
128
  */
129
129
  static updatePostImpressions<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
130
+ /**
131
+ * Get reports on all the the short links
132
+ *
133
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
134
+ *
135
+ * @returns promise
136
+ */
137
+ static shortLinkReports<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
130
138
  }
131
139
  export default SocialPosts;
@@ -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
@@ -9437,6 +9437,7 @@ var SocialPostsRoute = /** @class */ (function () {
9437
9437
  reschedule: { url: '/socialposts/{post_id}/reschedule', method: HTTP_METHODS.POST },
9438
9438
  reports: { url: '/socialposts/{post_id}/reports', method: HTTP_METHODS.GET },
9439
9439
  updatePostImpressions: { url: '/socialposts/{post_id}/impressions', method: HTTP_METHODS.PUT },
9440
+ shortLinkReports: { url: '/socialposts/shortlinks/reports', method: HTTP_METHODS.GET },
9440
9441
  };
9441
9442
  return SocialPostsRoute;
9442
9443
  }());
@@ -9596,6 +9597,16 @@ var SocialPosts = /** @class */ (function () {
9596
9597
  SocialPosts.updatePostImpressions = function (post_id, data, params) {
9597
9598
  return Requests.processRoute(SocialPostsRoute.routes.updatePostImpressions, data, { post_id: post_id }, params);
9598
9599
  };
9600
+ /**
9601
+ * Get reports on all the the short links
9602
+ *
9603
+ * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList
9604
+ *
9605
+ * @returns promise
9606
+ */
9607
+ SocialPosts.shortLinkReports = function (params) {
9608
+ return Requests.processRoute(SocialPostsRoute.routes.shortLinkReports, undefined, undefined, params);
9609
+ };
9599
9610
  return SocialPosts;
9600
9611
  }());
9601
9612
 
@@ -9623,6 +9634,13 @@ var TitlesRoute = /** @class */ (function () {
9623
9634
  listTokens: { url: '/titles/{title_id}/tokens', method: HTTP_METHODS.GET },
9624
9635
  revokeToken: { url: '/titles/{title_id}/tokens/{token_id}', method: HTTP_METHODS.DELETE },
9625
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 },
9626
9644
  };
9627
9645
  return TitlesRoute;
9628
9646
  }());
@@ -9873,6 +9891,42 @@ var Titles = /** @class */ (function () {
9873
9891
  Titles.search = function (params) {
9874
9892
  return Requests.processRoute(TitlesRoute.routes.search, {}, undefined, params);
9875
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
+ };
9876
9930
  return Titles;
9877
9931
  }());
9878
9932
 
@@ -12145,7 +12199,7 @@ var Hashtags = /** @class */ (function () {
12145
12199
  * @returns AxiosPromise of an array of aggregated hashtags
12146
12200
  */
12147
12201
  Hashtags.top = function (data, params) {
12148
- return Requests.processRoute(HashtagRoute.routes.list, data, {}, params);
12202
+ return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
12149
12203
  };
12150
12204
  return Hashtags;
12151
12205
  }());