glitch-javascript-sdk 2.8.9 → 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.
@@ -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
  }());
@@ -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