@parra/parra-js-sdk 0.3.571 → 0.3.573

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.
@@ -986,6 +986,7 @@ export interface UpdateThemeRequestBody {
986
986
  key?: string;
987
987
  is_dark?: boolean;
988
988
  is_active?: boolean;
989
+ is_default?: boolean;
989
990
  primary_color_key?: string | null;
990
991
  secondary_color_key?: string | null;
991
992
  tertiary_color_key?: string | null;
@@ -3514,6 +3515,7 @@ export interface UpdateFeedItemRequestBody {
3514
3515
  comments_disabled?: boolean;
3515
3516
  reactions_disabled?: boolean;
3516
3517
  }
3518
+ export type AppVideo = AppYoutubeVideo;
3517
3519
  export interface CreateCommentRequestBody {
3518
3520
  body: string;
3519
3521
  }
@@ -6661,6 +6663,7 @@ declare class ParraAPI {
6661
6663
  updateFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, body?: UpdateFeedItemRequestBody, options?: Options) => Promise<FeedItem>;
6662
6664
  deleteFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, options?: Options) => Promise<Response>;
6663
6665
  getFeedItem: (tenant_id: string, feed_item_id: string, options?: Options) => Promise<FeedItem>;
6666
+ getVideoById: (tenant_id: string, video_id: string, options?: Options) => Promise<AppVideo>;
6664
6667
  addCommentToFeedItem: (tenant_id: string, feed_item_id: string, body: CreateCommentRequestBody, options?: Options) => Promise<Comment>;
6665
6668
  paginateCommentsForFeedItem: (tenant_id: string, feed_item_id: string, query?: {
6666
6669
  limit?: number;
package/dist/ParraAPI.js CHANGED
@@ -1545,6 +1545,10 @@ var ParraAPI = /** @class */ (function () {
1545
1545
  if (options === void 0) { options = {}; }
1546
1546
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id), method: "get" }, options));
1547
1547
  };
1548
+ this.getVideoById = function (tenant_id, video_id, options) {
1549
+ if (options === void 0) { options = {}; }
1550
+ return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos/").concat(video_id), method: "get" }, options));
1551
+ };
1548
1552
  this.addCommentToFeedItem = function (tenant_id, feed_item_id, body, options) {
1549
1553
  if (options === void 0) { options = {}; }
1550
1554
  return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feed/items/").concat(feed_item_id, "/comments"), method: "post", body: JSON.stringify(body), headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.571",
3
+ "version": "0.3.573",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",