glitch-javascript-sdk 2.8.7 → 2.8.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/index.d.ts CHANGED
@@ -4372,6 +4372,16 @@ declare class Titles {
4372
4372
  * @param title_id The UUID of the title.
4373
4373
  */
4374
4374
  static wishlistStats<T>(title_id: string): AxiosPromise<Response<T>>;
4375
+ /**
4376
+ * Get the current user's specific wishlist for a title.
4377
+ * @param title_id The UUID of the title.
4378
+ */
4379
+ static wishlistMe<T>(title_id: string): AxiosPromise<Response<T>>;
4380
+ /**
4381
+ * Get the consolidated attribution funnel report.
4382
+ * @param title_id The UUID of the title.
4383
+ */
4384
+ static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4375
4385
  }
4376
4386
 
4377
4387
  declare class Campaigns {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.8.7",
3
+ "version": "2.8.8",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Titles.ts CHANGED
@@ -1026,13 +1026,13 @@ class Titles {
1026
1026
  return Requests.processRoute(TitlesRoute.routes.resolveSaveConflict, { conflict_id, choice }, { title_id, install_id, save_id });
1027
1027
  }
1028
1028
 
1029
- /**
1030
- * Toggle a game on the current user's wishlist.
1031
- * If the game is not wishlisted, it will be added. If it is, it will be removed.
1032
- *
1033
- * @param title_id The UUID of the title.
1034
- * @param data Optional context: { fingerprint_id?: string, short_link_click_id?: string }
1035
- */
1029
+ /**
1030
+ * Toggle a game on the current user's wishlist.
1031
+ * If the game is not wishlisted, it will be added. If it is, it will be removed.
1032
+ *
1033
+ * @param title_id The UUID of the title.
1034
+ * @param data Optional context: { fingerprint_id?: string, short_link_click_id?: string }
1035
+ */
1036
1036
  public static wishlistToggle<T>(title_id: string, data?: object): AxiosPromise<Response<T>> {
1037
1037
  return Requests.processRoute(TitlesRoute.routes.wishlistToggle, data, { title_id });
1038
1038
  }
@@ -1066,6 +1066,22 @@ class Titles {
1066
1066
  public static wishlistStats<T>(title_id: string): AxiosPromise<Response<T>> {
1067
1067
  return Requests.processRoute(TitlesRoute.routes.wishlistStats, undefined, { title_id });
1068
1068
  }
1069
+
1070
+ /**
1071
+ * Get the current user's specific wishlist for a title.
1072
+ * @param title_id The UUID of the title.
1073
+ */
1074
+ public static wishlistMe<T>(title_id: string): AxiosPromise<Response<T>> {
1075
+ return Requests.processRoute(TitlesRoute.routes.wishlistMe, undefined, { title_id });
1076
+ }
1077
+
1078
+ /**
1079
+ * Get the consolidated attribution funnel report.
1080
+ * @param title_id The UUID of the title.
1081
+ */
1082
+ public static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
1083
+ return Requests.processRoute(TitlesRoute.routes.attributionFunnel, undefined, { title_id }, params);
1084
+ }
1069
1085
  }
1070
1086
 
1071
1087
  export default Titles;
@@ -222,6 +222,15 @@ class TitlesRoute {
222
222
  method: HTTP_METHODS.GET
223
223
  },
224
224
 
225
+ wishlistMe: {
226
+ url: '/titles/{title_id}/wishlist/me',
227
+ method: HTTP_METHODS.GET
228
+ },
229
+ attributionFunnel: {
230
+ url: '/titles/{title_id}/reports/attribution-funnel',
231
+ method: HTTP_METHODS.GET
232
+ },
233
+
225
234
 
226
235
  };
227
236