@parra/parra-js-sdk 0.3.600 → 0.3.602
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 +53 -24
- package/dist/ParraAPI.js +4 -0
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -925,6 +925,7 @@ export interface CreatorUpdateSenderStub {
|
|
925
925
|
name: string;
|
926
926
|
avatar?: ImageAssetStub | null;
|
927
927
|
verified: boolean;
|
928
|
+
slug?: string | null;
|
928
929
|
bio?: string | null;
|
929
930
|
}
|
930
931
|
export declare enum ReactionType {
|
@@ -1028,6 +1029,7 @@ export interface ArticleAuthor {
|
|
1028
1029
|
name: string;
|
1029
1030
|
avatar?: ImageAssetStub | null;
|
1030
1031
|
verified: boolean;
|
1032
|
+
slug?: string | null;
|
1031
1033
|
bio?: string | null;
|
1032
1034
|
}
|
1033
1035
|
export interface AddTagRequestBody {
|
@@ -2928,6 +2930,7 @@ export interface CourseInstructor {
|
|
2928
2930
|
name: string;
|
2929
2931
|
avatar?: ImageAssetStub | null;
|
2930
2932
|
verified: boolean;
|
2933
|
+
slug?: string | null;
|
2931
2934
|
bio?: string | null;
|
2932
2935
|
title?: string | null;
|
2933
2936
|
credentials?: Array<string> | null;
|
@@ -3598,24 +3601,7 @@ export interface YoutubeVideo {
|
|
3598
3601
|
live_broadcast_content?: string | null;
|
3599
3602
|
statistics?: YoutubeStatistics | null;
|
3600
3603
|
}
|
3601
|
-
export interface
|
3602
|
-
id: string;
|
3603
|
-
created_at: string;
|
3604
|
-
updated_at: string;
|
3605
|
-
deleted_at?: string | null;
|
3606
|
-
url: string;
|
3607
|
-
video_id: string;
|
3608
|
-
title: string;
|
3609
|
-
channel_title: string;
|
3610
|
-
channel_id: string;
|
3611
|
-
description?: string;
|
3612
|
-
thumbnails: YoutubeThumbnails;
|
3613
|
-
published_at: string;
|
3614
|
-
live_broadcast_content?: string | null;
|
3615
|
-
statistics?: YoutubeStatistics | null;
|
3616
|
-
paywall?: AppPaywallConfiguration | null;
|
3617
|
-
}
|
3618
|
-
export interface AppVideo {
|
3604
|
+
export interface AppVideoFeedStub {
|
3619
3605
|
id: string;
|
3620
3606
|
created_at: string;
|
3621
3607
|
updated_at: string;
|
@@ -3631,11 +3617,6 @@ export interface AppVideo {
|
|
3631
3617
|
live_broadcast_content?: string | null;
|
3632
3618
|
statistics?: YoutubeStatistics | null;
|
3633
3619
|
paywall?: AppPaywallConfiguration | null;
|
3634
|
-
reaction_options?: Array<ReactionOptionGroup>;
|
3635
|
-
reactions?: Array<ReactionSummary>;
|
3636
|
-
comments?: CommentSummary;
|
3637
|
-
products?: Array<AppAffiliateProduct>;
|
3638
|
-
sponsors?: Array<AppSponsor>;
|
3639
3620
|
tags?: Array<TagStub>;
|
3640
3621
|
}
|
3641
3622
|
export interface AppContentCard {
|
@@ -3675,7 +3656,7 @@ export interface AppRssItem {
|
|
3675
3656
|
enclosures?: Array<RssEnclosure> | null;
|
3676
3657
|
published_at?: string | null;
|
3677
3658
|
}
|
3678
|
-
export type FeedItemData =
|
3659
|
+
export type FeedItemData = AppVideoFeedStub | AppContentCard | CreatorUpdateAppStub | AppRssItem | AppArticle;
|
3679
3660
|
export interface AppFeedItem {
|
3680
3661
|
id: string;
|
3681
3662
|
created_at: string;
|
@@ -3801,8 +3782,10 @@ export interface Video {
|
|
3801
3782
|
live_broadcast_content?: string | null;
|
3802
3783
|
statistics?: YoutubeStatistics | null;
|
3803
3784
|
paywall?: AppPaywallConfiguration | null;
|
3785
|
+
tags?: Array<TagStub>;
|
3804
3786
|
reaction_options?: Array<ReactionOptionGroup>;
|
3805
3787
|
reactions?: Array<ReactionSummary>;
|
3788
|
+
comments?: CommentSummary;
|
3806
3789
|
}
|
3807
3790
|
export interface VideoCollectionResponse {
|
3808
3791
|
page: number;
|
@@ -3811,6 +3794,50 @@ export interface VideoCollectionResponse {
|
|
3811
3794
|
total_count: number;
|
3812
3795
|
data: Array<Video>;
|
3813
3796
|
}
|
3797
|
+
export interface AppVideoStub {
|
3798
|
+
id: string;
|
3799
|
+
created_at: string;
|
3800
|
+
updated_at: string;
|
3801
|
+
deleted_at?: string | null;
|
3802
|
+
url: string;
|
3803
|
+
video_id: string;
|
3804
|
+
title: string;
|
3805
|
+
channel_title: string;
|
3806
|
+
channel_id: string;
|
3807
|
+
description?: string;
|
3808
|
+
thumbnails: YoutubeThumbnails;
|
3809
|
+
published_at: string;
|
3810
|
+
live_broadcast_content?: string | null;
|
3811
|
+
statistics?: YoutubeStatistics | null;
|
3812
|
+
paywall?: AppPaywallConfiguration | null;
|
3813
|
+
tags?: Array<TagStub>;
|
3814
|
+
reaction_options?: Array<ReactionOptionGroup>;
|
3815
|
+
reactions?: Array<ReactionSummary>;
|
3816
|
+
comments?: CommentSummary;
|
3817
|
+
}
|
3818
|
+
export interface AppVideo {
|
3819
|
+
id: string;
|
3820
|
+
created_at: string;
|
3821
|
+
updated_at: string;
|
3822
|
+
deleted_at?: string | null;
|
3823
|
+
url: string;
|
3824
|
+
video_id: string;
|
3825
|
+
title: string;
|
3826
|
+
channel_title: string;
|
3827
|
+
channel_id: string;
|
3828
|
+
description?: string;
|
3829
|
+
thumbnails: YoutubeThumbnails;
|
3830
|
+
published_at: string;
|
3831
|
+
live_broadcast_content?: string | null;
|
3832
|
+
statistics?: YoutubeStatistics | null;
|
3833
|
+
paywall?: AppPaywallConfiguration | null;
|
3834
|
+
tags?: Array<TagStub>;
|
3835
|
+
reaction_options?: Array<ReactionOptionGroup>;
|
3836
|
+
reactions?: Array<ReactionSummary>;
|
3837
|
+
comments?: CommentSummary;
|
3838
|
+
products?: Array<AppAffiliateProduct>;
|
3839
|
+
sponsors?: Array<AppSponsor>;
|
3840
|
+
}
|
3814
3841
|
export interface AppVideoCollectionResponse {
|
3815
3842
|
page: number;
|
3816
3843
|
page_count: number;
|
@@ -6795,6 +6822,7 @@ declare class ParraAPI {
|
|
6795
6822
|
limit?: number;
|
6796
6823
|
offset?: number;
|
6797
6824
|
tag_id?: string;
|
6825
|
+
author_id?: string;
|
6798
6826
|
}, options?: Options) => Promise<AppArticleCollectionResponse>;
|
6799
6827
|
getAppArticleById: (tenant_id: string, article_id: string, query?: {
|
6800
6828
|
include?: string;
|
@@ -6943,6 +6971,7 @@ declare class ParraAPI {
|
|
6943
6971
|
offset?: number;
|
6944
6972
|
}, options?: Options) => Promise<CreatorUpdateSenderCollectionResponse>;
|
6945
6973
|
createCreatorUpdateSenderForTenant: (tenant_id: string, body: CreateCreatorUpdateSenderRequestBody, options?: Options) => Promise<CreatorUpdateSender>;
|
6974
|
+
getCreatorUpdateSenderById: (tenant_id: string, creator_update_sender_id: string, options?: Options) => Promise<CreatorUpdateSender>;
|
6946
6975
|
updateCreatorUpdateSenderById: (tenant_id: string, creator_update_sender_id: string, body?: UpdateCreatorUpdateSenderRequestBody, options?: Options) => Promise<CreatorUpdateSender>;
|
6947
6976
|
deleteCreatorUpdateSenderById: (tenant_id: string, creator_update_sender_id: string, options?: Options) => Promise<Response>;
|
6948
6977
|
createCreatorUpdateTemplateForTenant: (tenant_id: string, body: CreateCreatorUpdateTemplateRequestBody, options?: Options) => Promise<CreatorUpdateTemplate>;
|
package/dist/ParraAPI.js
CHANGED
@@ -1493,6 +1493,10 @@ var ParraAPI = /** @class */ (function () {
|
|
1493
1493
|
"content-type": "application/json",
|
1494
1494
|
} }, options));
|
1495
1495
|
};
|
1496
|
+
this.getCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, options) {
|
1497
|
+
if (options === void 0) { options = {}; }
|
1498
|
+
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), method: "get" }, options));
|
1499
|
+
};
|
1496
1500
|
this.updateCreatorUpdateSenderById = function (tenant_id, creator_update_sender_id, body, options) {
|
1497
1501
|
if (options === void 0) { options = {}; }
|
1498
1502
|
return _this.http.execute(__assign({ path: "".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/creator/updates/senders/").concat(creator_update_sender_id), method: "put", body: JSON.stringify(body), headers: {
|