glitch-javascript-sdk 2.8.7 → 2.8.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 +24 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +11 -1
- package/dist/esm/index.js +24 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
- package/src/api/Titles.ts +25 -9
- package/src/routes/TitlesRoute.ts +9 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24944,6 +24944,14 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24944
24944
|
url: '/users/me/wishlists',
|
|
24945
24945
|
method: HTTP_METHODS.GET
|
|
24946
24946
|
},
|
|
24947
|
+
wishlistMe: {
|
|
24948
|
+
url: '/titles/{title_id}/wishlist/me',
|
|
24949
|
+
method: HTTP_METHODS.GET
|
|
24950
|
+
},
|
|
24951
|
+
attributionFunnel: {
|
|
24952
|
+
url: '/titles/{title_id}/reports/attribution-funnel',
|
|
24953
|
+
method: HTTP_METHODS.GET
|
|
24954
|
+
},
|
|
24947
24955
|
};
|
|
24948
24956
|
return TitlesRoute;
|
|
24949
24957
|
}());
|
|
@@ -25580,8 +25588,8 @@ var Titles = /** @class */ (function () {
|
|
|
25580
25588
|
* Initializes a play session. Handles age-gating and license verification.
|
|
25581
25589
|
* Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
|
|
25582
25590
|
*/
|
|
25583
|
-
Titles.getPlaySession = function (title_id) {
|
|
25584
|
-
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id });
|
|
25591
|
+
Titles.getPlaySession = function (title_id, params) {
|
|
25592
|
+
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id }, params);
|
|
25585
25593
|
};
|
|
25586
25594
|
/**
|
|
25587
25595
|
* List all developer payouts for a title.
|
|
@@ -25678,6 +25686,20 @@ var Titles = /** @class */ (function () {
|
|
|
25678
25686
|
Titles.wishlistStats = function (title_id) {
|
|
25679
25687
|
return Requests.processRoute(TitlesRoute.routes.wishlistStats, undefined, { title_id: title_id });
|
|
25680
25688
|
};
|
|
25689
|
+
/**
|
|
25690
|
+
* Get the current user's specific wishlist for a title.
|
|
25691
|
+
* @param title_id The UUID of the title.
|
|
25692
|
+
*/
|
|
25693
|
+
Titles.wishlistMe = function (title_id) {
|
|
25694
|
+
return Requests.processRoute(TitlesRoute.routes.wishlistMe, undefined, { title_id: title_id });
|
|
25695
|
+
};
|
|
25696
|
+
/**
|
|
25697
|
+
* Get the consolidated attribution funnel report.
|
|
25698
|
+
* @param title_id The UUID of the title.
|
|
25699
|
+
*/
|
|
25700
|
+
Titles.attributionFunnel = function (title_id, params) {
|
|
25701
|
+
return Requests.processRoute(TitlesRoute.routes.attributionFunnel, undefined, { title_id: title_id }, params);
|
|
25702
|
+
};
|
|
25681
25703
|
return Titles;
|
|
25682
25704
|
}());
|
|
25683
25705
|
|