@parra/parra-js-sdk 0.3.620 → 0.3.622
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 +13 -3
- package/dist/ParraAPI.js +16 -6
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -1099,6 +1099,9 @@ export declare enum ContentType {
|
|
1099
1099
|
rssItem = "rss_item",
|
1100
1100
|
article = "article"
|
1101
1101
|
}
|
1102
|
+
export declare enum VideoType {
|
1103
|
+
youtube = "youtube"
|
1104
|
+
}
|
1102
1105
|
export interface EntitlementStub {
|
1103
1106
|
id: string;
|
1104
1107
|
title: string;
|
@@ -1160,6 +1163,7 @@ export interface AppVideoFeedStub {
|
|
1160
1163
|
published_at: string;
|
1161
1164
|
live_broadcast_content?: string | null;
|
1162
1165
|
statistics?: YoutubeStatistics | null;
|
1166
|
+
type: VideoType;
|
1163
1167
|
slug?: string | null;
|
1164
1168
|
paywall?: AppPaywallConfiguration | null;
|
1165
1169
|
tags?: Array<TagStub>;
|
@@ -3855,9 +3859,6 @@ export interface CreateYoutubeVideoRequestBody {
|
|
3855
3859
|
youtube_video_url?: string | null;
|
3856
3860
|
}
|
3857
3861
|
export type CreateVideoRequestBody = CreateYoutubeVideoRequestBody;
|
3858
|
-
export declare enum VideoType {
|
3859
|
-
youtube = "youtube"
|
3860
|
-
}
|
3861
3862
|
export interface VideoStub {
|
3862
3863
|
id: string;
|
3863
3864
|
created_at: string;
|
@@ -3913,6 +3914,11 @@ export interface VideoCollectionResponse {
|
|
3913
3914
|
total_count: number;
|
3914
3915
|
data: Array<Video>;
|
3915
3916
|
}
|
3917
|
+
export interface UpdateVideoRequestBody {
|
3918
|
+
disabled?: boolean;
|
3919
|
+
comments_disabled?: boolean;
|
3920
|
+
reactions_disabled?: boolean;
|
3921
|
+
}
|
3916
3922
|
export interface AppVideoStub {
|
3917
3923
|
id: string;
|
3918
3924
|
created_at: string;
|
@@ -3928,6 +3934,7 @@ export interface AppVideoStub {
|
|
3928
3934
|
published_at: string;
|
3929
3935
|
live_broadcast_content?: string | null;
|
3930
3936
|
statistics?: YoutubeStatistics | null;
|
3937
|
+
type: VideoType;
|
3931
3938
|
slug?: string | null;
|
3932
3939
|
paywall?: AppPaywallConfiguration | null;
|
3933
3940
|
tags?: Array<TagStub>;
|
@@ -3957,6 +3964,7 @@ export interface AppVideo {
|
|
3957
3964
|
published_at: string;
|
3958
3965
|
live_broadcast_content?: string | null;
|
3959
3966
|
statistics?: YoutubeStatistics | null;
|
3967
|
+
type: VideoType;
|
3960
3968
|
slug?: string | null;
|
3961
3969
|
paywall?: AppPaywallConfiguration | null;
|
3962
3970
|
tags?: Array<TagStub>;
|
@@ -7243,6 +7251,8 @@ declare class ParraAPI {
|
|
7243
7251
|
limit?: number;
|
7244
7252
|
offset?: number;
|
7245
7253
|
}, options?: Options) => Promise<VideoCollectionResponse>;
|
7254
|
+
updateVideoById: (tenant_id: string, video_id: string, body?: UpdateVideoRequestBody, options?: Options) => Promise<Video>;
|
7255
|
+
deleteVideoById: (tenant_id: string, video_id: string, options?: Options) => Promise<Response>;
|
7246
7256
|
paginateAppVideos: (tenant_id: string, query?: {
|
7247
7257
|
limit?: number;
|
7248
7258
|
offset?: number;
|
package/dist/ParraAPI.js
CHANGED
@@ -11,8 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
11
11
|
return __assign.apply(this, arguments);
|
12
12
|
};
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
exports.
|
15
|
-
exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApiKeyType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.
|
14
|
+
exports.QrCodeLogoPaddingStyle = exports.TextTransform = exports.BorderRadiusType = exports.BorderStyle = exports.FontFamilyType = exports.FontWeightType = exports.FontSizeType = exports.ParraTemplateType = exports.AttachmentType = exports.ChannelMemberRole = exports.ChannelMemberType = exports.ChatChannelStatus = exports.ChatChannelType = exports.BillingSourceType = exports.ApplePurchaseType = exports.ApplePurchaseEnvironment = exports.PurchaseEnvironment = exports.PurchasePlatform = exports.PurchaseStatus = exports.PurchaseType = exports.PaywallIapType = exports.AppPaywallType = exports.ShareAssetType = exports.DesignTokenType = exports.ThemeCornerRadiusStyle = exports.VideoType = exports.ContentType = exports.CtaType = exports.Interval = exports.Currency = exports.ProductType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantBrand = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
15
|
+
exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApiKeyType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = exports.SubscriptionStatus = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.TicketLinkType = exports.BoardType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.SubmitCommentReviewStatus = exports.CommentReviewStatus = exports.FeedChannelType = exports.FeedItemType = exports.SocialAccountType = exports.CreatorUpdateGiveawayCriteria = exports.CreatorUpdateChannelType = exports.CreatorUpdateStatus = exports.CreatorUpdateVisibilityType = exports.CreatorUpdateTopic = exports.LessonType = exports.TextAlign = exports.HeadingTag = exports.QrCodeEcLevel = exports.QrCodeStyle = void 0;
|
16
16
|
exports.PolicyDocumentVersionStatus = exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = void 0;
|
17
17
|
var TicketType;
|
18
18
|
(function (TicketType) {
|
@@ -167,6 +167,10 @@ var ContentType;
|
|
167
167
|
ContentType["rssItem"] = "rss_item";
|
168
168
|
ContentType["article"] = "article";
|
169
169
|
})(ContentType || (exports.ContentType = ContentType = {}));
|
170
|
+
var VideoType;
|
171
|
+
(function (VideoType) {
|
172
|
+
VideoType["youtube"] = "youtube";
|
173
|
+
})(VideoType || (exports.VideoType = VideoType = {}));
|
170
174
|
var ThemeCornerRadiusStyle;
|
171
175
|
(function (ThemeCornerRadiusStyle) {
|
172
176
|
ThemeCornerRadiusStyle["rounded"] = "rounded";
|
@@ -415,10 +419,6 @@ var FeedChannelType;
|
|
415
419
|
FeedChannelType["youtube"] = "youtube";
|
416
420
|
FeedChannelType["rss"] = "rss";
|
417
421
|
})(FeedChannelType || (exports.FeedChannelType = FeedChannelType = {}));
|
418
|
-
var VideoType;
|
419
|
-
(function (VideoType) {
|
420
|
-
VideoType["youtube"] = "youtube";
|
421
|
-
})(VideoType || (exports.VideoType = VideoType = {}));
|
422
422
|
var CommentReviewStatus;
|
423
423
|
(function (CommentReviewStatus) {
|
424
424
|
CommentReviewStatus["pending"] = "pending";
|
@@ -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));
|