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/esm/api/Titles.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ declare class Titles {
|
|
|
488
488
|
* Initializes a play session. Handles age-gating and license verification.
|
|
489
489
|
* Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
|
|
490
490
|
*/
|
|
491
|
-
static getPlaySession<T>(title_id: string): AxiosPromise<Response<T>>;
|
|
491
|
+
static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
492
492
|
/**
|
|
493
493
|
* List all developer payouts for a title.
|
|
494
494
|
*/
|
|
@@ -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
|
}());
|
|
@@ -12396,8 +12404,8 @@ var Titles = /** @class */ (function () {
|
|
|
12396
12404
|
* Initializes a play session. Handles age-gating and license verification.
|
|
12397
12405
|
* Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
|
|
12398
12406
|
*/
|
|
12399
|
-
Titles.getPlaySession = function (title_id) {
|
|
12400
|
-
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id });
|
|
12407
|
+
Titles.getPlaySession = function (title_id, params) {
|
|
12408
|
+
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id }, params);
|
|
12401
12409
|
};
|
|
12402
12410
|
/**
|
|
12403
12411
|
* List all developer payouts for a title.
|
|
@@ -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
|
|