@parra/parra-js-sdk 0.3.615 → 0.3.617
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/ParraAPI.d.ts +10 -2
- package/dist/ParraAPI.js +6 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1751,6 +1751,7 @@ export interface UpdateProductRequestBody {
|
|
1751
1751
|
title?: string;
|
1752
1752
|
key?: string;
|
1753
1753
|
description?: string | null;
|
1754
|
+
disabled?: boolean;
|
1754
1755
|
}
|
1755
1756
|
export interface CreateProductEntitlementRequestBody {
|
1756
1757
|
entitlement_id: string;
|
@@ -3806,8 +3807,8 @@ export interface UpdateFeedRequestBody {
|
|
3806
3807
|
}
|
3807
3808
|
export interface CreateYoutubeVideoFeedItemRequestBody {
|
3808
3809
|
type: string;
|
3809
|
-
youtube_video_id?: string;
|
3810
|
-
youtube_video_url?: string;
|
3810
|
+
youtube_video_id?: string | null;
|
3811
|
+
youtube_video_url?: string | null;
|
3811
3812
|
}
|
3812
3813
|
export interface CreateContentCardFeedItemRequestBody {
|
3813
3814
|
type: string;
|
@@ -3843,6 +3844,12 @@ export interface UpdateFeedItemRequestBody {
|
|
3843
3844
|
comments_disabled?: boolean;
|
3844
3845
|
reactions_disabled?: boolean;
|
3845
3846
|
}
|
3847
|
+
export interface CreateYoutubeVideoRequestBody {
|
3848
|
+
type: string;
|
3849
|
+
youtube_video_id?: string | null;
|
3850
|
+
youtube_video_url?: string | null;
|
3851
|
+
}
|
3852
|
+
export type CreateVideoRequestBody = CreateYoutubeVideoRequestBody;
|
3846
3853
|
export interface VideoStub {
|
3847
3854
|
id: string;
|
3848
3855
|
created_at: string;
|
@@ -7215,6 +7222,7 @@ declare class ParraAPI {
|
|
7215
7222
|
updateFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, body?: UpdateFeedItemRequestBody, options?: Options) => Promise<FeedItem>;
|
7216
7223
|
deleteFeedItem: (tenant_id: string, feed_id_or_slug: string, feed_item_id: string, options?: Options) => Promise<Response>;
|
7217
7224
|
getFeedItem: (tenant_id: string, feed_item_id: string, options?: Options) => Promise<FeedItem>;
|
7225
|
+
createVideoForTenant: (tenant_id: string, body?: CreateVideoRequestBody, options?: Options) => Promise<Video>;
|
7218
7226
|
paginateVideosForTenant: (tenant_id: string, query?: {
|
7219
7227
|
limit?: number;
|
7220
7228
|
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));
|