@parra/parra-js-sdk 0.3.605 → 0.3.606

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.
@@ -1135,6 +1135,101 @@ export interface AppSponsor {
1135
1135
  background_color?: string | null;
1136
1136
  text_color?: string | null;
1137
1137
  }
1138
+ export declare enum ContentType {
1139
+ video = "video",
1140
+ rssItem = "rss_item",
1141
+ article = "article"
1142
+ }
1143
+ export interface EntitlementStub {
1144
+ id: string;
1145
+ title: string;
1146
+ key: string;
1147
+ is_consumable: boolean;
1148
+ is_free: boolean;
1149
+ }
1150
+ export interface AppPaywallConfiguration {
1151
+ context?: string | null;
1152
+ entitlement?: EntitlementStub;
1153
+ }
1154
+ export interface YoutubeThumbnail {
1155
+ url: string;
1156
+ width: number;
1157
+ height: number;
1158
+ }
1159
+ export interface YoutubeThumbnails {
1160
+ default: YoutubeThumbnail;
1161
+ medium: YoutubeThumbnail;
1162
+ high: YoutubeThumbnail;
1163
+ standard: YoutubeThumbnail;
1164
+ maxres: YoutubeThumbnail;
1165
+ }
1166
+ export interface YoutubeStatistics {
1167
+ view_count?: number;
1168
+ like_count?: number;
1169
+ dislike_count?: number;
1170
+ favorite_count?: number;
1171
+ comment_count?: number;
1172
+ }
1173
+ export interface YoutubeVideo {
1174
+ id: string;
1175
+ created_at: string;
1176
+ updated_at: string;
1177
+ deleted_at?: string | null;
1178
+ url: string;
1179
+ video_id: string;
1180
+ title: string;
1181
+ channel_title: string;
1182
+ channel_id: string;
1183
+ description?: string;
1184
+ thumbnails: YoutubeThumbnails;
1185
+ published_at: string;
1186
+ live_broadcast_content?: string | null;
1187
+ statistics?: YoutubeStatistics | null;
1188
+ }
1189
+ export interface AppVideoFeedStub {
1190
+ id: string;
1191
+ created_at: string;
1192
+ updated_at: string;
1193
+ deleted_at?: string | null;
1194
+ url: string;
1195
+ video_id: string;
1196
+ title: string;
1197
+ channel_title: string;
1198
+ channel_id: string;
1199
+ description?: string;
1200
+ thumbnails: YoutubeThumbnails;
1201
+ published_at: string;
1202
+ live_broadcast_content?: string | null;
1203
+ statistics?: YoutubeStatistics | null;
1204
+ paywall?: AppPaywallConfiguration | null;
1205
+ tags?: Array<TagStub>;
1206
+ }
1207
+ export interface RssEnclosure {
1208
+ url: string;
1209
+ type: string;
1210
+ length?: number;
1211
+ }
1212
+ export interface AppRssItem {
1213
+ id: string;
1214
+ title: string;
1215
+ description: string;
1216
+ image_url?: string | null;
1217
+ link?: string | null;
1218
+ author?: string | null;
1219
+ enclosures?: Array<RssEnclosure> | null;
1220
+ published_at?: string | null;
1221
+ }
1222
+ export type ContentData = AppVideoFeedStub | AppRssItem | AppArticleStub;
1223
+ export interface ContentItem {
1224
+ id: string;
1225
+ type: ContentType;
1226
+ data: ContentData;
1227
+ }
1228
+ export interface Content {
1229
+ related_content?: Array<ContentItem>;
1230
+ next_content?: ContentItem | null;
1231
+ previous_content?: ContentItem | null;
1232
+ }
1138
1233
  export interface AppArticle {
1139
1234
  id: string;
1140
1235
  created_at: string;
@@ -1160,6 +1255,7 @@ export interface AppArticle {
1160
1255
  text_content: string;
1161
1256
  products?: Array<AppAffiliateProduct>;
1162
1257
  sponsors?: Array<AppSponsor>;
1258
+ content?: Content;
1163
1259
  }
1164
1260
  export interface UpdateDesignSystemRequestBody {
1165
1261
  name?: string;
@@ -3579,70 +3675,6 @@ export declare enum FeedItemType {
3579
3675
  rssItem = "rss_item",
3580
3676
  article = "article"
3581
3677
  }
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
3678
  export interface AppContentCard {
3647
3679
  id: string;
3648
3680
  created_at: string;
@@ -3665,21 +3697,6 @@ export interface CreatorUpdateAppStub {
3665
3697
  attachments?: Array<CreatorUpdateAttachmentStub>;
3666
3698
  attachment_paywall?: AppPaywallConfiguration | null;
3667
3699
  }
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
3700
  export type FeedItemData = AppVideoFeedStub | AppContentCard | CreatorUpdateAppStub | AppRssItem | AppArticle;
3684
3701
  export interface AppFeedItem {
3685
3702
  id: string;
@@ -3839,6 +3856,13 @@ export interface AppVideoStub {
3839
3856
  reactions?: Array<ReactionSummary>;
3840
3857
  comments?: CommentSummary;
3841
3858
  }
3859
+ export interface AppVideoCollectionResponse {
3860
+ page: number;
3861
+ page_count: number;
3862
+ page_size: number;
3863
+ total_count: number;
3864
+ data: Array<AppVideoStub>;
3865
+ }
3842
3866
  export interface AppVideo {
3843
3867
  id: string;
3844
3868
  created_at: string;
@@ -3861,13 +3885,7 @@ export interface AppVideo {
3861
3885
  comments?: CommentSummary;
3862
3886
  products?: Array<AppAffiliateProduct>;
3863
3887
  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>;
3888
+ content?: Content;
3871
3889
  }
3872
3890
  export interface UpdateCommentRequestBody {
3873
3891
  body?: string;
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.TextAlign = exports.HeadingTag = 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.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.PolicyDocumentVersionStatus = 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 = void 0;
14
+ exports.HeadingTag = 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.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.PolicyDocumentVersionStatus = 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 = void 0;
16
16
  var TicketType;
17
17
  (function (TicketType) {
18
18
  TicketType["bug"] = "bug";
@@ -153,6 +153,12 @@ var ReactionType;
153
153
  ReactionType["emoji"] = "emoji";
154
154
  ReactionType["custom"] = "custom";
155
155
  })(ReactionType || (exports.ReactionType = ReactionType = {}));
156
+ var ContentType;
157
+ (function (ContentType) {
158
+ ContentType["video"] = "video";
159
+ ContentType["rssItem"] = "rss_item";
160
+ ContentType["article"] = "article";
161
+ })(ContentType || (exports.ContentType = ContentType = {}));
156
162
  var ThemeCornerRadiusStyle;
157
163
  (function (ThemeCornerRadiusStyle) {
158
164
  ThemeCornerRadiusStyle["rounded"] = "rounded";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parra/parra-js-sdk",
3
- "version": "0.3.605",
3
+ "version": "0.3.606",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",