@parra/parra-js-sdk 0.3.583 → 0.3.585
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 +66 -55
- package/package.json +1 -1
package/dist/ParraAPI.d.ts
CHANGED
@@ -885,6 +885,36 @@ export interface CreatorUpdateSenderStub {
|
|
885
885
|
avatar?: ImageAssetStub | null;
|
886
886
|
verified: boolean;
|
887
887
|
}
|
888
|
+
export declare enum ReactionType {
|
889
|
+
emoji = "emoji",
|
890
|
+
custom = "custom"
|
891
|
+
}
|
892
|
+
export interface ReactionOption {
|
893
|
+
id: string;
|
894
|
+
name: string;
|
895
|
+
type: ReactionType;
|
896
|
+
value: string;
|
897
|
+
}
|
898
|
+
export interface ReactionOptionGroup {
|
899
|
+
id: string;
|
900
|
+
name: string;
|
901
|
+
description?: string | null;
|
902
|
+
options: Array<ReactionOption>;
|
903
|
+
}
|
904
|
+
export interface TenantUserNameStub {
|
905
|
+
id: string;
|
906
|
+
name: string;
|
907
|
+
}
|
908
|
+
export interface ReactionSummary {
|
909
|
+
id: string;
|
910
|
+
name: string;
|
911
|
+
type: ReactionType;
|
912
|
+
value: string;
|
913
|
+
count: number;
|
914
|
+
first_reaction_at: string;
|
915
|
+
reaction_id?: string | null;
|
916
|
+
users: Array<TenantUserNameStub>;
|
917
|
+
}
|
888
918
|
export interface ArticleStub {
|
889
919
|
id: string;
|
890
920
|
created_at: string;
|
@@ -901,6 +931,8 @@ export interface ArticleStub {
|
|
901
931
|
published_at?: string;
|
902
932
|
last_updated_at: string;
|
903
933
|
authors: Array<CreatorUpdateSenderStub>;
|
934
|
+
reaction_options?: Array<ReactionOptionGroup>;
|
935
|
+
reactions?: Array<ReactionSummary>;
|
904
936
|
}
|
905
937
|
export interface Article {
|
906
938
|
id: string;
|
@@ -918,11 +950,44 @@ export interface Article {
|
|
918
950
|
published_at?: string;
|
919
951
|
last_updated_at: string;
|
920
952
|
authors: Array<CreatorUpdateSenderStub>;
|
953
|
+
reaction_options?: Array<ReactionOptionGroup>;
|
954
|
+
reactions?: Array<ReactionSummary>;
|
921
955
|
content: ArticleContent;
|
922
956
|
}
|
957
|
+
export interface ArticleCollectionResponse {
|
958
|
+
page: number;
|
959
|
+
page_count: number;
|
960
|
+
page_size: number;
|
961
|
+
total_count: number;
|
962
|
+
data: Array<ArticleStub>;
|
963
|
+
}
|
923
964
|
export interface ScheduleArticleRequestBody {
|
924
965
|
schedule_at: string;
|
925
966
|
}
|
967
|
+
export interface AppArticleStub {
|
968
|
+
id: string;
|
969
|
+
created_at: string;
|
970
|
+
updated_at: string;
|
971
|
+
deleted_at?: string | null;
|
972
|
+
tenant_id: string;
|
973
|
+
title: string;
|
974
|
+
short_title?: string;
|
975
|
+
slug: string;
|
976
|
+
content_preview: string;
|
977
|
+
header_image?: ImageAssetStub;
|
978
|
+
published_at: string;
|
979
|
+
last_updated_at: string;
|
980
|
+
authors: Array<CreatorUpdateSenderStub>;
|
981
|
+
reaction_options?: Array<ReactionOptionGroup>;
|
982
|
+
reactions?: Array<ReactionSummary>;
|
983
|
+
}
|
984
|
+
export interface AppArticleCollectionResponse {
|
985
|
+
page: number;
|
986
|
+
page_count: number;
|
987
|
+
page_size: number;
|
988
|
+
total_count: number;
|
989
|
+
data: Array<AppArticleStub>;
|
990
|
+
}
|
926
991
|
export interface CommentSummary {
|
927
992
|
disabled: boolean;
|
928
993
|
comment_count: number;
|
@@ -949,53 +1014,6 @@ export interface AppSponsor {
|
|
949
1014
|
background_color?: string | null;
|
950
1015
|
text_color?: string | null;
|
951
1016
|
}
|
952
|
-
export declare enum ReactionType {
|
953
|
-
emoji = "emoji",
|
954
|
-
custom = "custom"
|
955
|
-
}
|
956
|
-
export interface ReactionOption {
|
957
|
-
id: string;
|
958
|
-
name: string;
|
959
|
-
type: ReactionType;
|
960
|
-
value: string;
|
961
|
-
}
|
962
|
-
export interface ReactionOptionGroup {
|
963
|
-
id: string;
|
964
|
-
name: string;
|
965
|
-
description?: string | null;
|
966
|
-
options: Array<ReactionOption>;
|
967
|
-
}
|
968
|
-
export interface TenantUserNameStub {
|
969
|
-
id: string;
|
970
|
-
name: string;
|
971
|
-
}
|
972
|
-
export interface ReactionSummary {
|
973
|
-
id: string;
|
974
|
-
name: string;
|
975
|
-
type: ReactionType;
|
976
|
-
value: string;
|
977
|
-
count: number;
|
978
|
-
first_reaction_at: string;
|
979
|
-
reaction_id?: string | null;
|
980
|
-
users: Array<TenantUserNameStub>;
|
981
|
-
}
|
982
|
-
export interface AppArticleStub {
|
983
|
-
id: string;
|
984
|
-
created_at: string;
|
985
|
-
updated_at: string;
|
986
|
-
deleted_at?: string | null;
|
987
|
-
tenant_id: string;
|
988
|
-
title: string;
|
989
|
-
short_title?: string;
|
990
|
-
slug: string;
|
991
|
-
content_preview: string;
|
992
|
-
header_image?: ImageAssetStub;
|
993
|
-
published_at: string;
|
994
|
-
last_updated_at: string;
|
995
|
-
authors: Array<CreatorUpdateSenderStub>;
|
996
|
-
reaction_options?: Array<ReactionOptionGroup>;
|
997
|
-
reactions?: Array<ReactionSummary>;
|
998
|
-
}
|
999
1017
|
export interface AppArticle {
|
1000
1018
|
id: string;
|
1001
1019
|
created_at: string;
|
@@ -1017,13 +1035,6 @@ export interface AppArticle {
|
|
1017
1035
|
products?: Array<AppAffiliateProduct>;
|
1018
1036
|
sponsors?: Array<AppSponsor>;
|
1019
1037
|
}
|
1020
|
-
export interface AppArticleCollectionResponse {
|
1021
|
-
page: number;
|
1022
|
-
page_count: number;
|
1023
|
-
page_size: number;
|
1024
|
-
total_count: number;
|
1025
|
-
data: Array<AppArticle>;
|
1026
|
-
}
|
1027
1038
|
export interface UpdateDesignSystemRequestBody {
|
1028
1039
|
name?: string;
|
1029
1040
|
key?: string;
|
@@ -6672,7 +6683,7 @@ declare class ParraAPI {
|
|
6672
6683
|
createBillingPortalSession: (tenant_id: string, options?: Options) => Promise<BillingPortalSession>;
|
6673
6684
|
createSubscriberForEmailAudienceById: (email_audience_id: string, body: CreateEmailSubscriberRequestBody, options?: Options) => Promise<Response>;
|
6674
6685
|
createArticle: (tenant_id: string, body: CreateArticleRequestBody, options?: Options) => Promise<Article>;
|
6675
|
-
paginateArticles: (tenant_id: string, options?: Options) => Promise<
|
6686
|
+
paginateArticles: (tenant_id: string, options?: Options) => Promise<ArticleCollectionResponse>;
|
6676
6687
|
getArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<Article>;
|
6677
6688
|
updateArticleById: (tenant_id: string, article_id: string, body?: UpdateArticleRequestBody, options?: Options) => Promise<Article>;
|
6678
6689
|
deleteArticleById: (tenant_id: string, article_id: string, options?: Options) => Promise<Response>;
|