glitch-javascript-sdk 2.8.8 → 2.9.0
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 +12 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +8 -1
- package/dist/esm/index.js +12 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
- package/src/api/Titles.ts +12 -2
- package/src/routes/TitlesRoute.ts +2 -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
|
*/
|
|
@@ -572,5 +572,12 @@ declare class Titles {
|
|
|
572
572
|
* @param title_id The UUID of the title.
|
|
573
573
|
*/
|
|
574
574
|
static attributionFunnel<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
575
|
+
/**
|
|
576
|
+
* Update the status of a specific deployment build.
|
|
577
|
+
* @param title_id The UUID of the title.
|
|
578
|
+
* @param build_id The UUID of the build.
|
|
579
|
+
* @param status The new status ('ready', 'inactive', or 'failed').
|
|
580
|
+
*/
|
|
581
|
+
static updateBuildStatus<T>(title_id: string, build_id: string, status: string): AxiosPromise<Response<T>>;
|
|
575
582
|
}
|
|
576
583
|
export default Titles;
|
package/dist/esm/index.js
CHANGED
|
@@ -11768,6 +11768,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11768
11768
|
url: '/titles/{title_id}/reports/attribution-funnel',
|
|
11769
11769
|
method: HTTP_METHODS.GET
|
|
11770
11770
|
},
|
|
11771
|
+
updateBuildStatus: { url: '/titles/{title_id}/deployments/{build_id}/status', method: HTTP_METHODS.PUT },
|
|
11771
11772
|
};
|
|
11772
11773
|
return TitlesRoute;
|
|
11773
11774
|
}());
|
|
@@ -12404,8 +12405,8 @@ var Titles = /** @class */ (function () {
|
|
|
12404
12405
|
* Initializes a play session. Handles age-gating and license verification.
|
|
12405
12406
|
* Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
|
|
12406
12407
|
*/
|
|
12407
|
-
Titles.getPlaySession = function (title_id) {
|
|
12408
|
-
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id });
|
|
12408
|
+
Titles.getPlaySession = function (title_id, params) {
|
|
12409
|
+
return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id: title_id }, params);
|
|
12409
12410
|
};
|
|
12410
12411
|
/**
|
|
12411
12412
|
* List all developer payouts for a title.
|
|
@@ -12516,6 +12517,15 @@ var Titles = /** @class */ (function () {
|
|
|
12516
12517
|
Titles.attributionFunnel = function (title_id, params) {
|
|
12517
12518
|
return Requests.processRoute(TitlesRoute.routes.attributionFunnel, undefined, { title_id: title_id }, params);
|
|
12518
12519
|
};
|
|
12520
|
+
/**
|
|
12521
|
+
* Update the status of a specific deployment build.
|
|
12522
|
+
* @param title_id The UUID of the title.
|
|
12523
|
+
* @param build_id The UUID of the build.
|
|
12524
|
+
* @param status The new status ('ready', 'inactive', or 'failed').
|
|
12525
|
+
*/
|
|
12526
|
+
Titles.updateBuildStatus = function (title_id, build_id, status) {
|
|
12527
|
+
return Requests.processRoute(TitlesRoute.routes.updateBuildStatus, { status: status }, { title_id: title_id, build_id: build_id });
|
|
12528
|
+
};
|
|
12519
12529
|
return Titles;
|
|
12520
12530
|
}());
|
|
12521
12531
|
|