@parra/parra-js-sdk 0.3.587 → 0.3.588
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 +26 -6
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -864,14 +864,22 @@ export interface UpdateArticleRequestBody {
|
|
864
864
|
title?: string;
|
865
865
|
short_title?: string | null;
|
866
866
|
slug?: string;
|
867
|
-
|
867
|
+
json_content?: ArticleContent | null;
|
868
|
+
html_content?: string | null;
|
869
|
+
text_content?: string | null;
|
870
|
+
word_count?: number;
|
871
|
+
read_time?: number;
|
868
872
|
header_image_asset_id?: string | null;
|
869
873
|
}
|
870
874
|
export interface CreateArticleRequestBody {
|
871
875
|
title?: string;
|
872
876
|
short_title?: string | null;
|
873
877
|
slug?: string;
|
874
|
-
|
878
|
+
json_content?: ArticleContent | null;
|
879
|
+
html_content?: string | null;
|
880
|
+
text_content?: string | null;
|
881
|
+
word_count?: number;
|
882
|
+
read_time?: number;
|
875
883
|
header_image_asset_id?: string | null;
|
876
884
|
}
|
877
885
|
export declare enum ArticleStatus {
|
@@ -924,6 +932,8 @@ export interface ArticleStub {
|
|
924
932
|
title: string;
|
925
933
|
short_title?: string;
|
926
934
|
content_preview?: string | null;
|
935
|
+
word_count?: number | null;
|
936
|
+
read_time?: number | null;
|
927
937
|
slug: string;
|
928
938
|
header_image?: ImageAssetStub | null;
|
929
939
|
status: ArticleStatus;
|
@@ -943,6 +953,8 @@ export interface Article {
|
|
943
953
|
title: string;
|
944
954
|
short_title?: string;
|
945
955
|
content_preview?: string | null;
|
956
|
+
word_count?: number | null;
|
957
|
+
read_time?: number | null;
|
946
958
|
slug: string;
|
947
959
|
header_image?: ImageAssetStub | null;
|
948
960
|
status: ArticleStatus;
|
@@ -952,7 +964,9 @@ export interface Article {
|
|
952
964
|
authors: Array<CreatorUpdateSenderStub>;
|
953
965
|
reaction_options?: Array<ReactionOptionGroup>;
|
954
966
|
reactions?: Array<ReactionSummary>;
|
955
|
-
|
967
|
+
json_content?: ArticleContent | null;
|
968
|
+
html_content?: string | null;
|
969
|
+
text_content?: string | null;
|
956
970
|
}
|
957
971
|
export interface ArticleCollectionResponse {
|
958
972
|
page: number;
|
@@ -982,7 +996,9 @@ export interface AppArticleStub {
|
|
982
996
|
title: string;
|
983
997
|
short_title?: string;
|
984
998
|
slug: string;
|
985
|
-
content_preview
|
999
|
+
content_preview: string;
|
1000
|
+
word_count: number;
|
1001
|
+
read_time: number;
|
986
1002
|
header_image?: ImageAssetStub | null;
|
987
1003
|
published_at: string;
|
988
1004
|
last_updated_at: string;
|
@@ -1032,14 +1048,18 @@ export interface AppArticle {
|
|
1032
1048
|
title: string;
|
1033
1049
|
short_title?: string;
|
1034
1050
|
slug: string;
|
1035
|
-
content_preview
|
1051
|
+
content_preview: string;
|
1052
|
+
word_count: number;
|
1053
|
+
read_time: number;
|
1036
1054
|
header_image?: ImageAssetStub | null;
|
1037
1055
|
published_at: string;
|
1038
1056
|
last_updated_at: string;
|
1039
1057
|
authors: Array<CreatorUpdateSenderStub>;
|
1040
1058
|
reaction_options?: Array<ReactionOptionGroup>;
|
1041
1059
|
reactions?: Array<ReactionSummary>;
|
1042
|
-
|
1060
|
+
json_content: ArticleContent;
|
1061
|
+
html_content: string;
|
1062
|
+
text_content: string;
|
1043
1063
|
comments?: CommentSummary;
|
1044
1064
|
products?: Array<AppAffiliateProduct>;
|
1045
1065
|
sponsors?: Array<AppSponsor>;
|