@parra/parra-js-sdk 0.3.594 → 0.3.595
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 +14 -2
- package/dist/ParraAPI.js +8 -4
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -3807,6 +3807,13 @@ export interface VideoCollectionResponse {
|
|
3807
3807
|
total_count: number;
|
3808
3808
|
data: Array<Video>;
|
3809
3809
|
}
|
3810
|
+
export interface AppVideoCollectionResponse {
|
3811
|
+
page: number;
|
3812
|
+
page_count: number;
|
3813
|
+
page_size: number;
|
3814
|
+
total_count: number;
|
3815
|
+
data: Array<AppVideo>;
|
3816
|
+
}
|
3810
3817
|
export interface CreateCommentRequestBody {
|
3811
3818
|
body: string;
|
3812
3819
|
}
|
@@ -6965,7 +6972,7 @@ declare class ParraAPI {
|
|
6965
6972
|
offset?: number;
|
6966
6973
|
}, options?: Options) => Promise<FeedCollectionResponse>;
|
6967
6974
|
createFeedForTenant: (tenant_id: string, body: CreateFeedRequestBody, options?: Options) => Promise<FeedView>;
|
6968
|
-
paginateItemsForAppFeed: (tenant_id: string,
|
6975
|
+
paginateItemsForAppFeed: (tenant_id: string, feed_id_or_slug: string, query?: {
|
6969
6976
|
limit?: number;
|
6970
6977
|
offset?: number;
|
6971
6978
|
}, options?: Options) => Promise<AppFeedItemCollectionResponse>;
|
@@ -6986,7 +6993,12 @@ declare class ParraAPI {
|
|
6986
6993
|
limit?: number;
|
6987
6994
|
offset?: number;
|
6988
6995
|
}, options?: Options) => Promise<VideoCollectionResponse>;
|
6989
|
-
|
6996
|
+
paginateAppVideos: (tenant_id: string, query?: {
|
6997
|
+
limit?: number;
|
6998
|
+
offset?: number;
|
6999
|
+
tag_id?: string;
|
7000
|
+
}, options?: Options) => Promise<AppVideoCollectionResponse>;
|
7001
|
+
getAppVideoById: (tenant_id: string, video_id: string, query?: {
|
6990
7002
|
include?: string;
|
6991
7003
|
}, options?: Options) => Promise<AppVideo>;
|
6992
7004
|
addCommentToVideo: (tenant_id: string, video_id: string, body: CreateCommentRequestBody, options?: Options) => Promise<Comment>;
|
package/dist/ParraAPI.js
CHANGED
@@ -1587,9 +1587,9 @@ var ParraAPI = /** @class */ (function () {
|
|
1587
1587
|
"content-type": "application/json",
|
1588
1588
|
} }, options));
|
1589
1589
|
};
|
1590
|
-
this.paginateItemsForAppFeed = function (tenant_id,
|
1590
|
+
this.paginateItemsForAppFeed = function (tenant_id, feed_id_or_slug, query, options) {
|
1591
1591
|
if (options === void 0) { options = {}; }
|
1592
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/
|
1592
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/feeds/").concat(feed_id_or_slug, "/items"), method: "get", query: query }, options));
|
1593
1593
|
};
|
1594
1594
|
this.createChannelForFeed = function (tenant_id, feed_id_or_slug, body, options) {
|
1595
1595
|
if (options === void 0) { options = {}; }
|
@@ -1643,9 +1643,13 @@ var ParraAPI = /** @class */ (function () {
|
|
1643
1643
|
if (options === void 0) { options = {}; }
|
1644
1644
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos"), method: "get", query: query }, options));
|
1645
1645
|
};
|
1646
|
-
this.
|
1646
|
+
this.paginateAppVideos = function (tenant_id, query, options) {
|
1647
1647
|
if (options === void 0) { options = {}; }
|
1648
|
-
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/videos
|
1648
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/videos"), method: "get", query: query }, options));
|
1649
|
+
};
|
1650
|
+
this.getAppVideoById = function (tenant_id, video_id, query, options) {
|
1651
|
+
if (options === void 0) { options = {}; }
|
1652
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app/videos/").concat(video_id), method: "get", query: query }, options));
|
1649
1653
|
};
|
1650
1654
|
this.addCommentToVideo = function (tenant_id, video_id, body, options) {
|
1651
1655
|
if (options === void 0) { options = {}; }
|