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/cjs/index.js +22 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +10 -0
- package/dist/esm/index.js +22 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +23 -7
- package/src/routes/TitlesRoute.ts +9 -0
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -562,5 +562,15 @@ declare class Titles {
|
|
|
562
562
|
* @param title_id The UUID of the title.
|
|
563
563
|
*/
|
|
564
564
|
static wishlistStats<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
565
|
+
/**
|
|
566
|
+
* Get the current user's specific wishlist for a title.
|
|
567
|
+
* @param title_id The UUID of the title.
|
|
568
|
+
*/
|
|
569
|
+
static wishlistMe<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
570
|
+
/**
|
|
571
|
+
* Get the consolidated attribution funnel report.
|
|
572
|
+
* @param title_id The UUID of the title.
|
|
573
|
+
*/
|
|
574
|
+
static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
565
575
|
}
|
|
566
576
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11760,6 +11760,14 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11760
11760
|
url: '/users/me/wishlists',
|
|
11761
11761
|
method: HTTP_METHODS.GET
|
|
11762
11762
|
},
|
|
11763
|
+
wishlistMe: {
|
|
11764
|
+
url: '/titles/{title_id}/wishlist/me',
|
|
11765
|
+
method: HTTP_METHODS.GET
|
|
11766
|
+
},
|
|
11767
|
+
attributionFunnel: {
|
|
11768
|
+
url: '/titles/{title_id}/reports/attribution-funnel',
|
|
11769
|
+
method: HTTP_METHODS.GET
|
|
11770
|
+
},
|
|
11763
11771
|
};
|
|
11764
11772
|
return TitlesRoute;
|
|
11765
11773
|
}());
|
|
@@ -12494,6 +12502,20 @@ var Titles = /** @class */ (function () {
|
|
|
12494
12502
|
Titles.wishlistStats = function (title_id) {
|
|
12495
12503
|
return Requests.processRoute(TitlesRoute.routes.wishlistStats, undefined, { title_id: title_id });
|
|
12496
12504
|
};
|
|
12505
|
+
/**
|
|
12506
|
+
* Get the current user's specific wishlist for a title.
|
|
12507
|
+
* @param title_id The UUID of the title.
|
|
12508
|
+
*/
|
|
12509
|
+
Titles.wishlistMe = function (title_id) {
|
|
12510
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistMe, undefined, { title_id: title_id });
|
|
12511
|
+
};
|
|
12512
|
+
/**
|
|
12513
|
+
* Get the consolidated attribution funnel report.
|
|
12514
|
+
* @param title_id The UUID of the title.
|
|
12515
|
+
*/
|
|
12516
|
+
Titles.attributionFunnel = function (title_id, params) {
|
|
12517
|
+
return Requests.processRoute(TitlesRoute.routes.attributionFunnel, undefined, { title_id: title_id }, params);
|
|
12518
|
+
};
|
|
12497
12519
|
return Titles;
|
|
12498
12520
|
}());
|
|
12499
12521
|
|