@wix/auto_sdk_blog_posts 1.0.170 → 1.0.172
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/build/cjs/index.d.ts +11 -15
- package/build/cjs/index.js +30 -35
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +199 -196
- package/build/cjs/index.typings.js +25 -25
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +182 -167
- package/build/cjs/meta.js +19 -19
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +84 -86
- package/build/cjs/schemas.js +150 -156
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -15
- package/build/es/index.mjs +30 -35
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +199 -196
- package/build/es/index.typings.mjs +25 -25
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +182 -167
- package/build/es/meta.mjs +19 -19
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +84 -86
- package/build/es/schemas.mjs +150 -156
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -15
- package/build/internal/cjs/index.js +30 -35
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +253 -250
- package/build/internal/cjs/index.typings.js +25 -25
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +236 -221
- package/build/internal/cjs/meta.js +19 -19
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +84 -86
- package/build/internal/cjs/schemas.js +150 -156
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -15
- package/build/internal/es/index.mjs +30 -35
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +253 -250
- package/build/internal/es/index.typings.mjs +25 -25
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +236 -221
- package/build/internal/es/meta.mjs +19 -19
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +84 -86
- package/build/internal/es/schemas.mjs +150 -156
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -382,7 +382,22 @@ interface Tag {
|
|
|
382
382
|
meta?: Record<string, any> | null;
|
|
383
383
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
384
384
|
children?: string;
|
|
385
|
-
/**
|
|
385
|
+
/**
|
|
386
|
+
* Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages) —
|
|
387
|
+
* i.e. an entry from the site's Advanced/Custom Tags list.
|
|
388
|
+
*
|
|
389
|
+
* This flag is scoped to that feature only. It is NOT an indicator of whether a standard tag
|
|
390
|
+
* (`title`, `description`, Open Graph, etc.) reflects a manually configured value versus a computed
|
|
391
|
+
* default/pattern — standard tags always resolve with `custom: false`, even when their content comes
|
|
392
|
+
* from a page's manually saved SEO title/description override. Don't use this field to verify whether
|
|
393
|
+
* a live page reflects a manual per-page SEO edit.
|
|
394
|
+
*
|
|
395
|
+
* Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
|
|
396
|
+
* only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
|
|
397
|
+
* or Wix Studio pages, so even genuine Advanced/Custom Tags saved on those pages are missing from the
|
|
398
|
+
* response entirely — there, `false` means this API could not tell, not that no custom tag exists.
|
|
399
|
+
* Pass `seoData` explicitly to resolve against a known set of tags.
|
|
400
|
+
*/
|
|
386
401
|
custom?: boolean;
|
|
387
402
|
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
388
403
|
disabled?: boolean;
|
|
@@ -3740,91 +3755,62 @@ interface GetTotalPostsResponse {
|
|
|
3740
3755
|
/** Total amount of published posts. */
|
|
3741
3756
|
total?: number;
|
|
3742
3757
|
}
|
|
3743
|
-
interface
|
|
3744
|
-
/**
|
|
3745
|
-
* Member ID of person who triggered the counter update
|
|
3746
|
-
* @format GUID
|
|
3747
|
-
*/
|
|
3748
|
-
memberId?: string | null;
|
|
3749
|
-
/**
|
|
3750
|
-
* Visitor ID if person that liked the post is not logged in
|
|
3751
|
-
* @format GUID
|
|
3752
|
-
*/
|
|
3753
|
-
anonymousVisitorId?: string | null;
|
|
3754
|
-
/**
|
|
3755
|
-
* ID of the post which counters were updated.
|
|
3756
|
-
* @format GUID
|
|
3757
|
-
*/
|
|
3758
|
-
postId?: string;
|
|
3759
|
-
/**
|
|
3760
|
-
* Internal ID of the post which counters were updated.
|
|
3761
|
-
* @internal
|
|
3762
|
-
* @maxLength 24
|
|
3763
|
-
*/
|
|
3764
|
-
postInternalId?: string;
|
|
3765
|
-
/** Field of the updated counter. */
|
|
3766
|
-
updatedCounterField?: FieldWithLiterals;
|
|
3767
|
-
/** New counter value. */
|
|
3768
|
-
counter?: number;
|
|
3769
|
-
}
|
|
3770
|
-
/** @oneof */
|
|
3771
|
-
interface PostCountersUpdatedInitiatorOneOf {
|
|
3758
|
+
interface ListDemoPostsRequest {
|
|
3772
3759
|
/**
|
|
3773
|
-
*
|
|
3774
|
-
*
|
|
3760
|
+
* Whether to return only featured posts.
|
|
3761
|
+
*
|
|
3762
|
+
* Default: `false`
|
|
3775
3763
|
*/
|
|
3776
|
-
|
|
3764
|
+
featured?: boolean;
|
|
3777
3765
|
/**
|
|
3778
|
-
*
|
|
3779
|
-
*
|
|
3766
|
+
* Hashtag filter.
|
|
3767
|
+
*
|
|
3768
|
+
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
3769
|
+
* If omitted, all posts with or without hashtags are returned.
|
|
3770
|
+
* @maxSize 100
|
|
3771
|
+
* @maxLength 100
|
|
3780
3772
|
*/
|
|
3781
|
-
|
|
3782
|
-
}
|
|
3783
|
-
declare enum Field {
|
|
3784
|
-
/** Undefined field. */
|
|
3785
|
-
UNKNOWN = "UNKNOWN",
|
|
3786
|
-
/** Total comments field. */
|
|
3787
|
-
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
3788
|
-
/** Like count field. */
|
|
3789
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
3790
|
-
/** View count field. */
|
|
3791
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
3792
|
-
/** Rating count field. */
|
|
3793
|
-
RATING_COUNT = "RATING_COUNT"
|
|
3794
|
-
}
|
|
3795
|
-
/** @enumType */
|
|
3796
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
3797
|
-
interface PostOwnerChanged {
|
|
3773
|
+
hashtags?: string[];
|
|
3798
3774
|
/**
|
|
3799
|
-
*
|
|
3800
|
-
*
|
|
3775
|
+
* Category filter.
|
|
3776
|
+
*
|
|
3777
|
+
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
3778
|
+
* If omitted, all posts with or without associated categories are returned.
|
|
3779
|
+
* @maxSize 50
|
|
3801
3780
|
* @format GUID
|
|
3802
3781
|
*/
|
|
3803
|
-
|
|
3782
|
+
categoryIds?: string[];
|
|
3804
3783
|
/**
|
|
3805
|
-
*
|
|
3806
|
-
*
|
|
3784
|
+
* Tag filter.
|
|
3785
|
+
*
|
|
3786
|
+
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
3787
|
+
* If omitted, all posts with or without tags are returned.
|
|
3788
|
+
* @maxSize 50
|
|
3807
3789
|
* @format GUID
|
|
3808
3790
|
*/
|
|
3809
|
-
|
|
3810
|
-
}
|
|
3811
|
-
interface InitialPostsCopied {
|
|
3812
|
-
/** Number of posts copied. */
|
|
3813
|
-
count?: number;
|
|
3814
|
-
}
|
|
3815
|
-
interface GetPostRequest {
|
|
3791
|
+
tagIds?: string[];
|
|
3816
3792
|
/**
|
|
3817
|
-
*
|
|
3818
|
-
*
|
|
3819
|
-
*
|
|
3793
|
+
* Sorting options.
|
|
3794
|
+
*
|
|
3795
|
+
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
3796
|
+
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
3797
|
+
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
3798
|
+
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
3799
|
+
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
3800
|
+
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
3801
|
+
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
3802
|
+
* - `RATING`: reserved for internal use.
|
|
3803
|
+
*
|
|
3804
|
+
* Default: `FEED`
|
|
3820
3805
|
*/
|
|
3821
|
-
|
|
3806
|
+
sort?: GetPostsSortWithLiterals;
|
|
3807
|
+
/** Pagination options. */
|
|
3808
|
+
paging?: BlogPaging;
|
|
3822
3809
|
/**
|
|
3823
3810
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
3824
3811
|
* This parameter will be removed on June 30, 2023.
|
|
3825
3812
|
*
|
|
3826
3813
|
* List of post fields to be included in the response.
|
|
3827
|
-
* @internal
|
|
3828
3814
|
* @maxSize 20
|
|
3829
3815
|
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
3830
3816
|
* This parameter will be removed on June 30, 2023.
|
|
@@ -3834,6 +3820,20 @@ interface GetPostRequest {
|
|
|
3834
3820
|
* @targetRemovalDate 2024-06-30
|
|
3835
3821
|
*/
|
|
3836
3822
|
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
3823
|
+
/**
|
|
3824
|
+
* Language filter.
|
|
3825
|
+
*
|
|
3826
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
3827
|
+
* Pass a language to only receive posts that are in that language.
|
|
3828
|
+
* If omitted, posts in all languages are returned.
|
|
3829
|
+
* @format LANGUAGE_TAG
|
|
3830
|
+
*/
|
|
3831
|
+
language?: string | null;
|
|
3832
|
+
/**
|
|
3833
|
+
* Post owner's member ID.
|
|
3834
|
+
* @format GUID
|
|
3835
|
+
*/
|
|
3836
|
+
memberId?: string | null;
|
|
3837
3837
|
/**
|
|
3838
3838
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3839
3839
|
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
@@ -3842,6 +3842,52 @@ interface GetPostRequest {
|
|
|
3842
3842
|
*/
|
|
3843
3843
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3844
3844
|
}
|
|
3845
|
+
declare enum GetPostsSort {
|
|
3846
|
+
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
3847
|
+
FEED = "FEED",
|
|
3848
|
+
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
3849
|
+
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
3850
|
+
/** Ordered by `firstPublishedDate` in descending order. */
|
|
3851
|
+
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
3852
|
+
/** Ordered by total number of views in descending order. */
|
|
3853
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
3854
|
+
/** Ordered by total number of likes in descending order. */
|
|
3855
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
3856
|
+
/** Ordered by `title` in ascending order. */
|
|
3857
|
+
TITLE_ASC = "TITLE_ASC",
|
|
3858
|
+
/** Ordered by `title` in descending order. */
|
|
3859
|
+
TITLE_DESC = "TITLE_DESC",
|
|
3860
|
+
/**
|
|
3861
|
+
* Sorting by post rating descending.
|
|
3862
|
+
* @internal
|
|
3863
|
+
*/
|
|
3864
|
+
RATING = "RATING"
|
|
3865
|
+
}
|
|
3866
|
+
/** @enumType */
|
|
3867
|
+
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
3868
|
+
interface BlogPaging {
|
|
3869
|
+
/**
|
|
3870
|
+
* Number of items to skip in the current sort order.
|
|
3871
|
+
*
|
|
3872
|
+
*
|
|
3873
|
+
* Default: `0`
|
|
3874
|
+
*/
|
|
3875
|
+
offset?: number;
|
|
3876
|
+
/**
|
|
3877
|
+
* Number of items to return.
|
|
3878
|
+
*
|
|
3879
|
+
*
|
|
3880
|
+
* Default:`50`
|
|
3881
|
+
* @min 1
|
|
3882
|
+
* @max 100
|
|
3883
|
+
*/
|
|
3884
|
+
limit?: number;
|
|
3885
|
+
/**
|
|
3886
|
+
* Pointer to the next or previous page in the list of results.
|
|
3887
|
+
* @maxLength 2000
|
|
3888
|
+
*/
|
|
3889
|
+
cursor?: string | null;
|
|
3890
|
+
}
|
|
3845
3891
|
declare enum PostFieldField {
|
|
3846
3892
|
UNKNOWN = "UNKNOWN",
|
|
3847
3893
|
/**
|
|
@@ -3923,6 +3969,127 @@ declare enum PostFieldField {
|
|
|
3923
3969
|
}
|
|
3924
3970
|
/** @enumType */
|
|
3925
3971
|
type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
|
|
3972
|
+
interface ListDemoPostsResponse {
|
|
3973
|
+
/** List of posts. */
|
|
3974
|
+
posts?: Post[];
|
|
3975
|
+
/** Details on the paged set of results returned. */
|
|
3976
|
+
metaData?: MetaData;
|
|
3977
|
+
}
|
|
3978
|
+
interface MetaData {
|
|
3979
|
+
/** Number of items returned in this response. */
|
|
3980
|
+
count?: number;
|
|
3981
|
+
/** Requested offset. */
|
|
3982
|
+
offset?: number;
|
|
3983
|
+
/** Total number of items that match the query. */
|
|
3984
|
+
total?: number;
|
|
3985
|
+
/**
|
|
3986
|
+
* Pointer to the next or previous page in the list of results.
|
|
3987
|
+
* @maxLength 2000
|
|
3988
|
+
*/
|
|
3989
|
+
cursor?: string | null;
|
|
3990
|
+
}
|
|
3991
|
+
interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
|
|
3992
|
+
/**
|
|
3993
|
+
* Member ID of person who triggered the counter update
|
|
3994
|
+
* @format GUID
|
|
3995
|
+
*/
|
|
3996
|
+
memberId?: string | null;
|
|
3997
|
+
/**
|
|
3998
|
+
* Visitor ID if person that liked the post is not logged in
|
|
3999
|
+
* @format GUID
|
|
4000
|
+
*/
|
|
4001
|
+
anonymousVisitorId?: string | null;
|
|
4002
|
+
/**
|
|
4003
|
+
* ID of the post which counters were updated.
|
|
4004
|
+
* @format GUID
|
|
4005
|
+
*/
|
|
4006
|
+
postId?: string;
|
|
4007
|
+
/**
|
|
4008
|
+
* Internal ID of the post which counters were updated.
|
|
4009
|
+
* @internal
|
|
4010
|
+
* @maxLength 24
|
|
4011
|
+
*/
|
|
4012
|
+
postInternalId?: string;
|
|
4013
|
+
/** Field of the updated counter. */
|
|
4014
|
+
updatedCounterField?: FieldWithLiterals;
|
|
4015
|
+
/** New counter value. */
|
|
4016
|
+
counter?: number;
|
|
4017
|
+
}
|
|
4018
|
+
/** @oneof */
|
|
4019
|
+
interface PostCountersUpdatedInitiatorOneOf {
|
|
4020
|
+
/**
|
|
4021
|
+
* Member ID of person who triggered the counter update
|
|
4022
|
+
* @format GUID
|
|
4023
|
+
*/
|
|
4024
|
+
memberId?: string | null;
|
|
4025
|
+
/**
|
|
4026
|
+
* Visitor ID if person that liked the post is not logged in
|
|
4027
|
+
* @format GUID
|
|
4028
|
+
*/
|
|
4029
|
+
anonymousVisitorId?: string | null;
|
|
4030
|
+
}
|
|
4031
|
+
declare enum Field {
|
|
4032
|
+
/** Undefined field. */
|
|
4033
|
+
UNKNOWN = "UNKNOWN",
|
|
4034
|
+
/** Total comments field. */
|
|
4035
|
+
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
4036
|
+
/** Like count field. */
|
|
4037
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
4038
|
+
/** View count field. */
|
|
4039
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
4040
|
+
/** Rating count field. */
|
|
4041
|
+
RATING_COUNT = "RATING_COUNT"
|
|
4042
|
+
}
|
|
4043
|
+
/** @enumType */
|
|
4044
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
4045
|
+
interface PostOwnerChanged {
|
|
4046
|
+
/**
|
|
4047
|
+
* Member ID of the post's owner before the change.
|
|
4048
|
+
* @internal
|
|
4049
|
+
* @format GUID
|
|
4050
|
+
*/
|
|
4051
|
+
oldMemberId?: string;
|
|
4052
|
+
/**
|
|
4053
|
+
* Member ID of the post's owner after the change.
|
|
4054
|
+
* @internal
|
|
4055
|
+
* @format GUID
|
|
4056
|
+
*/
|
|
4057
|
+
newMemberId?: string;
|
|
4058
|
+
}
|
|
4059
|
+
interface InitialPostsCopied {
|
|
4060
|
+
/** Number of posts copied. */
|
|
4061
|
+
count?: number;
|
|
4062
|
+
}
|
|
4063
|
+
interface GetPostRequest {
|
|
4064
|
+
/**
|
|
4065
|
+
* Post ID.
|
|
4066
|
+
* @minLength 1
|
|
4067
|
+
* @maxLength 38
|
|
4068
|
+
*/
|
|
4069
|
+
postId: string;
|
|
4070
|
+
/**
|
|
4071
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
4072
|
+
* This parameter will be removed on June 30, 2023.
|
|
4073
|
+
*
|
|
4074
|
+
* List of post fields to be included in the response.
|
|
4075
|
+
* @internal
|
|
4076
|
+
* @maxSize 20
|
|
4077
|
+
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
4078
|
+
* This parameter will be removed on June 30, 2023.
|
|
4079
|
+
*
|
|
4080
|
+
* List of post fields to be included in the response.
|
|
4081
|
+
* @replacedBy fieldsets
|
|
4082
|
+
* @targetRemovalDate 2024-06-30
|
|
4083
|
+
*/
|
|
4084
|
+
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
4085
|
+
/**
|
|
4086
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
4087
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
4088
|
+
* only the post’s base fields are returned.
|
|
4089
|
+
* @maxSize 20
|
|
4090
|
+
*/
|
|
4091
|
+
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4092
|
+
}
|
|
3926
4093
|
interface GetPostResponse {
|
|
3927
4094
|
/** Retrieved post info. */
|
|
3928
4095
|
post?: Post;
|
|
@@ -4045,71 +4212,12 @@ interface ListPostsRequest {
|
|
|
4045
4212
|
*/
|
|
4046
4213
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4047
4214
|
}
|
|
4048
|
-
declare enum GetPostsSort {
|
|
4049
|
-
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
4050
|
-
FEED = "FEED",
|
|
4051
|
-
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
4052
|
-
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
4053
|
-
/** Ordered by `firstPublishedDate` in descending order. */
|
|
4054
|
-
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
4055
|
-
/** Ordered by total number of views in descending order. */
|
|
4056
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
4057
|
-
/** Ordered by total number of likes in descending order. */
|
|
4058
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
4059
|
-
/** Ordered by `title` in ascending order. */
|
|
4060
|
-
TITLE_ASC = "TITLE_ASC",
|
|
4061
|
-
/** Ordered by `title` in descending order. */
|
|
4062
|
-
TITLE_DESC = "TITLE_DESC",
|
|
4063
|
-
/**
|
|
4064
|
-
* Sorting by post rating descending.
|
|
4065
|
-
* @internal
|
|
4066
|
-
*/
|
|
4067
|
-
RATING = "RATING"
|
|
4068
|
-
}
|
|
4069
|
-
/** @enumType */
|
|
4070
|
-
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
4071
|
-
interface BlogPaging {
|
|
4072
|
-
/**
|
|
4073
|
-
* Number of items to skip in the current sort order.
|
|
4074
|
-
*
|
|
4075
|
-
*
|
|
4076
|
-
* Default: `0`
|
|
4077
|
-
*/
|
|
4078
|
-
offset?: number;
|
|
4079
|
-
/**
|
|
4080
|
-
* Number of items to return.
|
|
4081
|
-
*
|
|
4082
|
-
*
|
|
4083
|
-
* Default:`50`
|
|
4084
|
-
* @min 1
|
|
4085
|
-
* @max 100
|
|
4086
|
-
*/
|
|
4087
|
-
limit?: number;
|
|
4088
|
-
/**
|
|
4089
|
-
* Pointer to the next or previous page in the list of results.
|
|
4090
|
-
* @maxLength 2000
|
|
4091
|
-
*/
|
|
4092
|
-
cursor?: string | null;
|
|
4093
|
-
}
|
|
4094
4215
|
interface ListPostsResponse {
|
|
4095
4216
|
/** List of retrieved posts. */
|
|
4096
4217
|
posts?: Post[];
|
|
4097
4218
|
/** Details on the paged set of results returned. */
|
|
4098
4219
|
metaData?: MetaData;
|
|
4099
4220
|
}
|
|
4100
|
-
interface MetaData {
|
|
4101
|
-
/** Number of items returned in this response. */
|
|
4102
|
-
count?: number;
|
|
4103
|
-
/** Requested offset. */
|
|
4104
|
-
offset?: number;
|
|
4105
|
-
/** Total number of items that match the query. */
|
|
4106
|
-
total?: number;
|
|
4107
|
-
/**
|
|
4108
|
-
* Pointer to the next or previous page in the list of results.
|
|
4109
|
-
* @maxLength 2000
|
|
4110
|
-
*/
|
|
4111
|
-
cursor?: string | null;
|
|
4112
|
-
}
|
|
4113
4221
|
interface QueryPostsRequest {
|
|
4114
4222
|
/**
|
|
4115
4223
|
* __Deprecated.__ Use `query` instead.
|
|
@@ -4557,99 +4665,6 @@ interface PostCount {
|
|
|
4557
4665
|
/** Number of posts. */
|
|
4558
4666
|
postCount?: number;
|
|
4559
4667
|
}
|
|
4560
|
-
interface ListDemoPostsRequest {
|
|
4561
|
-
/**
|
|
4562
|
-
* Whether to return only featured posts.
|
|
4563
|
-
*
|
|
4564
|
-
* Default: `false`
|
|
4565
|
-
*/
|
|
4566
|
-
featured?: boolean;
|
|
4567
|
-
/**
|
|
4568
|
-
* Hashtag filter.
|
|
4569
|
-
*
|
|
4570
|
-
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
4571
|
-
* If omitted, all posts with or without hashtags are returned.
|
|
4572
|
-
* @maxSize 100
|
|
4573
|
-
* @maxLength 100
|
|
4574
|
-
*/
|
|
4575
|
-
hashtags?: string[];
|
|
4576
|
-
/**
|
|
4577
|
-
* Category filter.
|
|
4578
|
-
*
|
|
4579
|
-
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
4580
|
-
* If omitted, all posts with or without associated categories are returned.
|
|
4581
|
-
* @maxSize 50
|
|
4582
|
-
* @format GUID
|
|
4583
|
-
*/
|
|
4584
|
-
categoryIds?: string[];
|
|
4585
|
-
/**
|
|
4586
|
-
* Tag filter.
|
|
4587
|
-
*
|
|
4588
|
-
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
4589
|
-
* If omitted, all posts with or without tags are returned.
|
|
4590
|
-
* @maxSize 50
|
|
4591
|
-
* @format GUID
|
|
4592
|
-
*/
|
|
4593
|
-
tagIds?: string[];
|
|
4594
|
-
/**
|
|
4595
|
-
* Sorting options.
|
|
4596
|
-
*
|
|
4597
|
-
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
4598
|
-
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
4599
|
-
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
4600
|
-
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
4601
|
-
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
4602
|
-
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
4603
|
-
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
4604
|
-
* - `RATING`: reserved for internal use.
|
|
4605
|
-
*
|
|
4606
|
-
* Default: `FEED`
|
|
4607
|
-
*/
|
|
4608
|
-
sort?: GetPostsSortWithLiterals;
|
|
4609
|
-
/** Pagination options. */
|
|
4610
|
-
paging?: BlogPaging;
|
|
4611
|
-
/**
|
|
4612
|
-
* __Deprecated.__ Use `fieldsets` instead.
|
|
4613
|
-
* This parameter will be removed on June 30, 2023.
|
|
4614
|
-
*
|
|
4615
|
-
* List of post fields to be included in the response.
|
|
4616
|
-
* @maxSize 20
|
|
4617
|
-
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
4618
|
-
* This parameter will be removed on June 30, 2023.
|
|
4619
|
-
*
|
|
4620
|
-
* List of post fields to be included in the response.
|
|
4621
|
-
* @replacedBy fieldsets
|
|
4622
|
-
* @targetRemovalDate 2024-06-30
|
|
4623
|
-
*/
|
|
4624
|
-
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
4625
|
-
/**
|
|
4626
|
-
* Language filter.
|
|
4627
|
-
*
|
|
4628
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4629
|
-
* Pass a language to only receive posts that are in that language.
|
|
4630
|
-
* If omitted, posts in all languages are returned.
|
|
4631
|
-
* @format LANGUAGE_TAG
|
|
4632
|
-
*/
|
|
4633
|
-
language?: string | null;
|
|
4634
|
-
/**
|
|
4635
|
-
* Post owner's member ID.
|
|
4636
|
-
* @format GUID
|
|
4637
|
-
*/
|
|
4638
|
-
memberId?: string | null;
|
|
4639
|
-
/**
|
|
4640
|
-
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
4641
|
-
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
4642
|
-
* only the post’s base fields are returned.
|
|
4643
|
-
* @maxSize 20
|
|
4644
|
-
*/
|
|
4645
|
-
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4646
|
-
}
|
|
4647
|
-
interface ListDemoPostsResponse {
|
|
4648
|
-
/** List of posts. */
|
|
4649
|
-
posts?: Post[];
|
|
4650
|
-
/** Details on the paged set of results returned. */
|
|
4651
|
-
metaData?: MetaData;
|
|
4652
|
-
}
|
|
4653
4668
|
|
|
4654
4669
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4655
4670
|
getUrl: (context: any) => string;
|
|
@@ -1681,14 +1681,17 @@ var Order = /* @__PURE__ */ ((Order2) => {
|
|
|
1681
1681
|
Order2["NEWEST"] = "NEWEST";
|
|
1682
1682
|
return Order2;
|
|
1683
1683
|
})(Order || {});
|
|
1684
|
-
var
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1684
|
+
var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
|
|
1685
|
+
GetPostsSort2["FEED"] = "FEED";
|
|
1686
|
+
GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
|
1687
|
+
GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
|
1688
|
+
GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1689
|
+
GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1690
|
+
GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
|
|
1691
|
+
GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
|
|
1692
|
+
GetPostsSort2["RATING"] = "RATING";
|
|
1693
|
+
return GetPostsSort2;
|
|
1694
|
+
})(GetPostsSort || {});
|
|
1692
1695
|
var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
1693
1696
|
PostFieldField2["UNKNOWN"] = "UNKNOWN";
|
|
1694
1697
|
PostFieldField2["COUNTERS"] = "COUNTERS";
|
|
@@ -1712,17 +1715,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
|
1712
1715
|
PostFieldField2["IMAGE"] = "IMAGE";
|
|
1713
1716
|
return PostFieldField2;
|
|
1714
1717
|
})(PostFieldField || {});
|
|
1715
|
-
var
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
GetPostsSort2["RATING"] = "RATING";
|
|
1724
|
-
return GetPostsSort2;
|
|
1725
|
-
})(GetPostsSort || {});
|
|
1718
|
+
var Field = /* @__PURE__ */ ((Field2) => {
|
|
1719
|
+
Field2["UNKNOWN"] = "UNKNOWN";
|
|
1720
|
+
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
1721
|
+
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1722
|
+
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1723
|
+
Field2["RATING_COUNT"] = "RATING_COUNT";
|
|
1724
|
+
return Field2;
|
|
1725
|
+
})(Field || {});
|
|
1726
1726
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1727
1727
|
SortOrder2["ASC"] = "ASC";
|
|
1728
1728
|
SortOrder2["DESC"] = "DESC";
|