@parra/parra-js-sdk 0.3.615 → 0.3.616

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.
@@ -3806,8 +3806,8 @@ export interface UpdateFeedRequestBody {
3806
3806
  }
3807
3807
  export interface CreateYoutubeVideoFeedItemRequestBody {
3808
3808
  type: string;
3809
- youtube_video_id?: string;
3810
- youtube_video_url?: string;
3809
+ youtube_video_id?: string | null;
3810
+ youtube_video_url?: string | null;
3811
3811
  }
3812
3812
  export interface CreateContentCardFeedItemRequestBody {
3813
3813
  type: string;
@@ -3843,6 +3843,12 @@ export interface UpdateFeedItemRequestBody {
3843
3843
  comments_disabled?: boolean;
3844
3844
  reactions_disabled?: boolean;
3845
3845
  }
3846
+ export interface CreateYoutubeVideoRequestBody {
3847
+ type: string;
3848
+ youtube_video_id?: string | null;
3849
+ youtube_video_url?: string | null;
3850
+ }
3851
+ export type CreateVideoRequestBody = CreateYoutubeVideoRequestBody;
3846
3852
  export interface VideoStub {
3847
3853
  id: string;
3848
3854
  created_at: string;
@@ -7215,6 +7221,7 @@ declare class ParraAPI {
7215
7221
  updateFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, body?: UpdateFeedItemRequestBody, options?: Options) => Promise<FeedItem>;
7216
7222
  deleteFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, options?: Options) => Promise<Response>;
7217
7223
  getFeedItem: (tenant_id: string, feed_item_id: string, options?: Options) => Promise<FeedItem>;
7224
+ createVideoForTenant: (tenant_id: string, body?: CreateVideoRequestBody, options?: Options) => Promise<Video>;
7218
7225
  paginateVideosForTenant: (tenant_id: string, query?: {
7219
7226
  limit?: number;
7220
7227
  offset?: number;
package/dist/ParraAPI.js CHANGED
@@ -1686,6 +1686,12 @@ var ParraAPI = /** @class */ (function () {
1686
1686
  if (options === void 0) { options = {}; }
1687
1687
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id), method: "get" }, options));
1688
1688
  };
1689
+ this.createVideoForTenant = function (tenant_id, body, options) {
1690
+ if (options === void 0) { options = {}; }
1691
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos"), method: "post", body: JSON.stringify(body), headers: {
1692
+ "content-type": "application/json",
1693
+ } }, options));
1694
+ };
1689
1695
  this.paginateVideosForTenant = function (tenant_id, query, options) {
1690
1696
  if (options === void 0) { options = {}; }
1691
1697
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/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.615",
3
+ "version": "0.3.616",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",