@parra/parra-js-sdk 0.3.620 → 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.
- package/dist/ParraAPI.d.ts +7 -0
- package/dist/ParraAPI.js +10 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -3913,6 +3913,11 @@ export interface VideoCollectionResponse {
|
|
3913
3913
|
total_count: number;
|
3914
3914
|
data: Array<Video>;
|
3915
3915
|
}
|
3916
|
+
export interface UpdateVideoRequestBody {
|
3917
|
+
disabled?: boolean;
|
3918
|
+
comments_disabled?: boolean;
|
3919
|
+
reactions_disabled?: boolean;
|
3920
|
+
}
|
3916
3921
|
export interface AppVideoStub {
|
3917
3922
|
id: string;
|
3918
3923
|
created_at: string;
|
@@ -7243,6 +7248,8 @@ declare class ParraAPI {
|
|
7243
7248
|
limit?: number;
|
7244
7249
|
offset?: number;
|
7245
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>;
|
7246
7253
|
paginateAppVideos: (tenant_id: string, query?: {
|
7247
7254
|
limit?: number;
|
7248
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));
|