@parra/parra-js-sdk 0.3.605 → 0.3.607
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 +114 -87
- package/dist/ParraAPI.js +17 -2
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
|
@@ -1113,15 +1113,25 @@ export interface AppArticleCollectionResponse {
|
|
|
1113
1113
|
total_count: number;
|
|
1114
1114
|
data: Array<AppArticleStub>;
|
|
1115
1115
|
}
|
|
1116
|
+
export type AnyPrice = Price | UnitPrice;
|
|
1117
|
+
export declare enum CtaType {
|
|
1118
|
+
url = "url",
|
|
1119
|
+
email = "email",
|
|
1120
|
+
phone = "phone",
|
|
1121
|
+
sms = "sms",
|
|
1122
|
+
button = "button"
|
|
1123
|
+
}
|
|
1116
1124
|
export interface Cta {
|
|
1117
1125
|
url: string;
|
|
1118
1126
|
title: string;
|
|
1127
|
+
type: CtaType;
|
|
1119
1128
|
}
|
|
1120
1129
|
export interface AppAffiliateProduct {
|
|
1121
1130
|
id: string;
|
|
1122
1131
|
image?: ImageAssetStub | null;
|
|
1123
1132
|
name: string;
|
|
1124
1133
|
description?: string | null;
|
|
1134
|
+
price?: AnyPrice | null;
|
|
1125
1135
|
cta: Cta;
|
|
1126
1136
|
}
|
|
1127
1137
|
export interface AppSponsor {
|
|
@@ -1135,6 +1145,101 @@ export interface AppSponsor {
|
|
|
1135
1145
|
background_color?: string | null;
|
|
1136
1146
|
text_color?: string | null;
|
|
1137
1147
|
}
|
|
1148
|
+
export declare enum ContentType {
|
|
1149
|
+
video = "video",
|
|
1150
|
+
rssItem = "rss_item",
|
|
1151
|
+
article = "article"
|
|
1152
|
+
}
|
|
1153
|
+
export interface EntitlementStub {
|
|
1154
|
+
id: string;
|
|
1155
|
+
title: string;
|
|
1156
|
+
key: string;
|
|
1157
|
+
is_consumable: boolean;
|
|
1158
|
+
is_free: boolean;
|
|
1159
|
+
}
|
|
1160
|
+
export interface AppPaywallConfiguration {
|
|
1161
|
+
context?: string | null;
|
|
1162
|
+
entitlement?: EntitlementStub;
|
|
1163
|
+
}
|
|
1164
|
+
export interface YoutubeThumbnail {
|
|
1165
|
+
url: string;
|
|
1166
|
+
width: number;
|
|
1167
|
+
height: number;
|
|
1168
|
+
}
|
|
1169
|
+
export interface YoutubeThumbnails {
|
|
1170
|
+
default: YoutubeThumbnail;
|
|
1171
|
+
medium: YoutubeThumbnail;
|
|
1172
|
+
high: YoutubeThumbnail;
|
|
1173
|
+
standard: YoutubeThumbnail;
|
|
1174
|
+
maxres: YoutubeThumbnail;
|
|
1175
|
+
}
|
|
1176
|
+
export interface YoutubeStatistics {
|
|
1177
|
+
view_count?: number;
|
|
1178
|
+
like_count?: number;
|
|
1179
|
+
dislike_count?: number;
|
|
1180
|
+
favorite_count?: number;
|
|
1181
|
+
comment_count?: number;
|
|
1182
|
+
}
|
|
1183
|
+
export interface YoutubeVideo {
|
|
1184
|
+
id: string;
|
|
1185
|
+
created_at: string;
|
|
1186
|
+
updated_at: string;
|
|
1187
|
+
deleted_at?: string | null;
|
|
1188
|
+
url: string;
|
|
1189
|
+
video_id: string;
|
|
1190
|
+
title: string;
|
|
1191
|
+
channel_title: string;
|
|
1192
|
+
channel_id: string;
|
|
1193
|
+
description?: string;
|
|
1194
|
+
thumbnails: YoutubeThumbnails;
|
|
1195
|
+
published_at: string;
|
|
1196
|
+
live_broadcast_content?: string | null;
|
|
1197
|
+
statistics?: YoutubeStatistics | null;
|
|
1198
|
+
}
|
|
1199
|
+
export interface AppVideoFeedStub {
|
|
1200
|
+
id: string;
|
|
1201
|
+
created_at: string;
|
|
1202
|
+
updated_at: string;
|
|
1203
|
+
deleted_at?: string | null;
|
|
1204
|
+
url: string;
|
|
1205
|
+
video_id: string;
|
|
1206
|
+
title: string;
|
|
1207
|
+
channel_title: string;
|
|
1208
|
+
channel_id: string;
|
|
1209
|
+
description?: string;
|
|
1210
|
+
thumbnails: YoutubeThumbnails;
|
|
1211
|
+
published_at: string;
|
|
1212
|
+
live_broadcast_content?: string | null;
|
|
1213
|
+
statistics?: YoutubeStatistics | null;
|
|
1214
|
+
paywall?: AppPaywallConfiguration | null;
|
|
1215
|
+
tags?: Array<TagStub>;
|
|
1216
|
+
}
|
|
1217
|
+
export interface RssEnclosure {
|
|
1218
|
+
url: string;
|
|
1219
|
+
type: string;
|
|
1220
|
+
length?: number;
|
|
1221
|
+
}
|
|
1222
|
+
export interface AppRssItem {
|
|
1223
|
+
id: string;
|
|
1224
|
+
title: string;
|
|
1225
|
+
description: string;
|
|
1226
|
+
image_url?: string | null;
|
|
1227
|
+
link?: string | null;
|
|
1228
|
+
author?: string | null;
|
|
1229
|
+
enclosures?: Array<RssEnclosure> | null;
|
|
1230
|
+
published_at?: string | null;
|
|
1231
|
+
}
|
|
1232
|
+
export type ContentData = AppVideoFeedStub | AppRssItem | AppArticleStub;
|
|
1233
|
+
export interface ContentItem {
|
|
1234
|
+
id: string;
|
|
1235
|
+
type: ContentType;
|
|
1236
|
+
data: ContentData;
|
|
1237
|
+
}
|
|
1238
|
+
export interface Content {
|
|
1239
|
+
related_content?: Array<ContentItem>;
|
|
1240
|
+
next_content?: ContentItem | null;
|
|
1241
|
+
previous_content?: ContentItem | null;
|
|
1242
|
+
}
|
|
1138
1243
|
export interface AppArticle {
|
|
1139
1244
|
id: string;
|
|
1140
1245
|
created_at: string;
|
|
@@ -1160,6 +1265,7 @@ export interface AppArticle {
|
|
|
1160
1265
|
text_content: string;
|
|
1161
1266
|
products?: Array<AppAffiliateProduct>;
|
|
1162
1267
|
sponsors?: Array<AppSponsor>;
|
|
1268
|
+
content?: Content;
|
|
1163
1269
|
}
|
|
1164
1270
|
export interface UpdateDesignSystemRequestBody {
|
|
1165
1271
|
name?: string;
|
|
@@ -2791,7 +2897,6 @@ export interface MarketingContentOfferingSection {
|
|
|
2791
2897
|
type: string;
|
|
2792
2898
|
offerings: Array<MarketingContentOffering>;
|
|
2793
2899
|
}
|
|
2794
|
-
export type AnyPrice = Price | UnitPrice;
|
|
2795
2900
|
export interface ProductFeatureStub {
|
|
2796
2901
|
id: string;
|
|
2797
2902
|
title: string;
|
|
@@ -3579,70 +3684,6 @@ export declare enum FeedItemType {
|
|
|
3579
3684
|
rssItem = "rss_item",
|
|
3580
3685
|
article = "article"
|
|
3581
3686
|
}
|
|
3582
|
-
export interface EntitlementStub {
|
|
3583
|
-
id: string;
|
|
3584
|
-
title: string;
|
|
3585
|
-
key: string;
|
|
3586
|
-
is_consumable: boolean;
|
|
3587
|
-
is_free: boolean;
|
|
3588
|
-
}
|
|
3589
|
-
export interface AppPaywallConfiguration {
|
|
3590
|
-
context?: string | null;
|
|
3591
|
-
entitlement?: EntitlementStub;
|
|
3592
|
-
}
|
|
3593
|
-
export interface YoutubeThumbnail {
|
|
3594
|
-
url: string;
|
|
3595
|
-
width: number;
|
|
3596
|
-
height: number;
|
|
3597
|
-
}
|
|
3598
|
-
export interface YoutubeThumbnails {
|
|
3599
|
-
default: YoutubeThumbnail;
|
|
3600
|
-
medium: YoutubeThumbnail;
|
|
3601
|
-
high: YoutubeThumbnail;
|
|
3602
|
-
standard: YoutubeThumbnail;
|
|
3603
|
-
maxres: YoutubeThumbnail;
|
|
3604
|
-
}
|
|
3605
|
-
export interface YoutubeStatistics {
|
|
3606
|
-
view_count?: number;
|
|
3607
|
-
like_count?: number;
|
|
3608
|
-
dislike_count?: number;
|
|
3609
|
-
favorite_count?: number;
|
|
3610
|
-
comment_count?: number;
|
|
3611
|
-
}
|
|
3612
|
-
export interface YoutubeVideo {
|
|
3613
|
-
id: string;
|
|
3614
|
-
created_at: string;
|
|
3615
|
-
updated_at: string;
|
|
3616
|
-
deleted_at?: string | null;
|
|
3617
|
-
url: string;
|
|
3618
|
-
video_id: string;
|
|
3619
|
-
title: string;
|
|
3620
|
-
channel_title: string;
|
|
3621
|
-
channel_id: string;
|
|
3622
|
-
description?: string;
|
|
3623
|
-
thumbnails: YoutubeThumbnails;
|
|
3624
|
-
published_at: string;
|
|
3625
|
-
live_broadcast_content?: string | null;
|
|
3626
|
-
statistics?: YoutubeStatistics | null;
|
|
3627
|
-
}
|
|
3628
|
-
export interface AppVideoFeedStub {
|
|
3629
|
-
id: string;
|
|
3630
|
-
created_at: string;
|
|
3631
|
-
updated_at: string;
|
|
3632
|
-
deleted_at?: string | null;
|
|
3633
|
-
url: string;
|
|
3634
|
-
video_id: string;
|
|
3635
|
-
title: string;
|
|
3636
|
-
channel_title: string;
|
|
3637
|
-
channel_id: string;
|
|
3638
|
-
description?: string;
|
|
3639
|
-
thumbnails: YoutubeThumbnails;
|
|
3640
|
-
published_at: string;
|
|
3641
|
-
live_broadcast_content?: string | null;
|
|
3642
|
-
statistics?: YoutubeStatistics | null;
|
|
3643
|
-
paywall?: AppPaywallConfiguration | null;
|
|
3644
|
-
tags?: Array<TagStub>;
|
|
3645
|
-
}
|
|
3646
3687
|
export interface AppContentCard {
|
|
3647
3688
|
id: string;
|
|
3648
3689
|
created_at: string;
|
|
@@ -3665,21 +3706,6 @@ export interface CreatorUpdateAppStub {
|
|
|
3665
3706
|
attachments?: Array<CreatorUpdateAttachmentStub>;
|
|
3666
3707
|
attachment_paywall?: AppPaywallConfiguration | null;
|
|
3667
3708
|
}
|
|
3668
|
-
export interface RssEnclosure {
|
|
3669
|
-
url: string;
|
|
3670
|
-
type: string;
|
|
3671
|
-
length?: number;
|
|
3672
|
-
}
|
|
3673
|
-
export interface AppRssItem {
|
|
3674
|
-
id: string;
|
|
3675
|
-
title: string;
|
|
3676
|
-
description: string;
|
|
3677
|
-
image_url?: string | null;
|
|
3678
|
-
link?: string | null;
|
|
3679
|
-
author?: string | null;
|
|
3680
|
-
enclosures?: Array<RssEnclosure> | null;
|
|
3681
|
-
published_at?: string | null;
|
|
3682
|
-
}
|
|
3683
3709
|
export type FeedItemData = AppVideoFeedStub | AppContentCard | CreatorUpdateAppStub | AppRssItem | AppArticle;
|
|
3684
3710
|
export interface AppFeedItem {
|
|
3685
3711
|
id: string;
|
|
@@ -3839,6 +3865,13 @@ export interface AppVideoStub {
|
|
|
3839
3865
|
reactions?: Array<ReactionSummary>;
|
|
3840
3866
|
comments?: CommentSummary;
|
|
3841
3867
|
}
|
|
3868
|
+
export interface AppVideoCollectionResponse {
|
|
3869
|
+
page: number;
|
|
3870
|
+
page_count: number;
|
|
3871
|
+
page_size: number;
|
|
3872
|
+
total_count: number;
|
|
3873
|
+
data: Array<AppVideoStub>;
|
|
3874
|
+
}
|
|
3842
3875
|
export interface AppVideo {
|
|
3843
3876
|
id: string;
|
|
3844
3877
|
created_at: string;
|
|
@@ -3861,13 +3894,7 @@ export interface AppVideo {
|
|
|
3861
3894
|
comments?: CommentSummary;
|
|
3862
3895
|
products?: Array<AppAffiliateProduct>;
|
|
3863
3896
|
sponsors?: Array<AppSponsor>;
|
|
3864
|
-
|
|
3865
|
-
export interface AppVideoCollectionResponse {
|
|
3866
|
-
page: number;
|
|
3867
|
-
page_count: number;
|
|
3868
|
-
page_size: number;
|
|
3869
|
-
total_count: number;
|
|
3870
|
-
data: Array<AppVideo>;
|
|
3897
|
+
content?: Content;
|
|
3871
3898
|
}
|
|
3872
3899
|
export interface UpdateCommentRequestBody {
|
|
3873
3900
|
body?: string;
|
package/dist/ParraAPI.js
CHANGED
|
@@ -11,8 +11,9 @@ 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.
|
|
14
|
+
exports.QrCodeEcLevel = exports.QrCodeStyle = exports.QrCodeLogoPaddingStyle = exports.BorderRadiusType = exports.BorderStyle = exports.TextTransform = 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.ContentType = exports.CtaType = exports.ReactionType = exports.ArticleStatus = exports.TagPool = exports.SubscriptionStatus = exports.Interval = exports.Currency = exports.FeedbackFormFieldType = exports.ContentCardActionType = exports.IdentityType = exports.PolicyDocumentType = exports.AppleSsoScope = exports.TenantArchetype = exports.DomainStatus = exports.DomainType = exports.ApplicationType = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = void 0;
|
|
15
|
+
exports.PolicyDocumentStatus = exports.MailTemplateStatus = exports.MailTemplateVersionStatus = exports.MailTemplateType = exports.TenantUserMetricType = exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.TenantOnboardingGoal = exports.DashboardChecklistItemStatus = exports.DashboardChecklistItemType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ClientType = exports.PasswordlessStrategy = exports.SsoProvider = exports.SettingsItemType = 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 = void 0;
|
|
16
|
+
exports.PolicyDocumentVersionStatus = void 0;
|
|
16
17
|
var TicketType;
|
|
17
18
|
(function (TicketType) {
|
|
18
19
|
TicketType["bug"] = "bug";
|
|
@@ -153,6 +154,20 @@ var ReactionType;
|
|
|
153
154
|
ReactionType["emoji"] = "emoji";
|
|
154
155
|
ReactionType["custom"] = "custom";
|
|
155
156
|
})(ReactionType || (exports.ReactionType = ReactionType = {}));
|
|
157
|
+
var CtaType;
|
|
158
|
+
(function (CtaType) {
|
|
159
|
+
CtaType["url"] = "url";
|
|
160
|
+
CtaType["email"] = "email";
|
|
161
|
+
CtaType["phone"] = "phone";
|
|
162
|
+
CtaType["sms"] = "sms";
|
|
163
|
+
CtaType["button"] = "button";
|
|
164
|
+
})(CtaType || (exports.CtaType = CtaType = {}));
|
|
165
|
+
var ContentType;
|
|
166
|
+
(function (ContentType) {
|
|
167
|
+
ContentType["video"] = "video";
|
|
168
|
+
ContentType["rssItem"] = "rss_item";
|
|
169
|
+
ContentType["article"] = "article";
|
|
170
|
+
})(ContentType || (exports.ContentType = ContentType = {}));
|
|
156
171
|
var ThemeCornerRadiusStyle;
|
|
157
172
|
(function (ThemeCornerRadiusStyle) {
|
|
158
173
|
ThemeCornerRadiusStyle["rounded"] = "rounded";
|