@parra/parra-js-sdk 0.3.619 → 0.3.621

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.
@@ -3874,6 +3874,8 @@ export interface VideoStub {
3874
3874
  live_broadcast_content?: string | null;
3875
3875
  statistics?: YoutubeStatistics | null;
3876
3876
  type: VideoType;
3877
+ comments_disabled: boolean;
3878
+ reactions_disabled: boolean;
3877
3879
  disabled: boolean;
3878
3880
  slug?: string | null;
3879
3881
  paywall?: AppPaywallConfiguration | null;
@@ -3894,6 +3896,8 @@ export interface Video {
3894
3896
  live_broadcast_content?: string | null;
3895
3897
  statistics?: YoutubeStatistics | null;
3896
3898
  type: VideoType;
3899
+ comments_disabled: boolean;
3900
+ reactions_disabled: boolean;
3897
3901
  disabled: boolean;
3898
3902
  slug?: string | null;
3899
3903
  paywall?: AppPaywallConfiguration | null;
@@ -3909,6 +3913,11 @@ export interface VideoCollectionResponse {
3909
3913
  total_count: number;
3910
3914
  data: Array<Video>;
3911
3915
  }
3916
+ export interface UpdateVideoRequestBody {
3917
+ disabled?: boolean;
3918
+ comments_disabled?: boolean;
3919
+ reactions_disabled?: boolean;
3920
+ }
3912
3921
  export interface AppVideoStub {
3913
3922
  id: string;
3914
3923
  created_at: string;
@@ -7239,6 +7248,8 @@ declare class ParraAPI {
7239
7248
  limit?: number;
7240
7249
  offset?: number;
7241
7250
  }, options?: Options) => Promise<VideoCollectionResponse>;
7251
+ updateVideoById: (tenant_id: string, video_id: string, body?: UpdateVideoRequestBody, options?: Options) => Promise<Video>;
7252
+ deleteVideoById: (tenant_id: string, video_id: string, options?: Options) => Promise<Response>;
7242
7253
  paginateAppVideos: (tenant_id: string, query?: {
7243
7254
  limit?: number;
7244
7255
  offset?: number;
package/dist/ParraAPI.js CHANGED
@@ -1700,6 +1700,16 @@ var ParraAPI = /** @class */ (function () {
1700
1700
  if (options === void 0) { options = {}; }
1701
1701
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos"), method: "get", query: query }, options));
1702
1702
  };
1703
+ this.updateVideoById = function (tenant_id, video_id, body, options) {
1704
+ if (options === void 0) { options = {}; }
1705
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos/").concat(video_id), method: "put", body: JSON.stringify(body), headers: {
1706
+ "content-type": "application/json",
1707
+ } }, options));
1708
+ };
1709
+ this.deleteVideoById = function (tenant_id, video_id, options) {
1710
+ if (options === void 0) { options = {}; }
1711
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos/").concat(video_id), method: "delete" }, options));
1712
+ };
1703
1713
  this.paginateAppVideos = function (tenant_id, query, options) {
1704
1714
  if (options === void 0) { options = {}; }
1705
1715
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/videos"), method: "get", query: query }, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.619",
3
+ "version": "0.3.621",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",