@wix/auto_sdk_blog_posts 1.0.170 → 1.0.171
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.js +19 -19
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +175 -167
- package/build/cjs/index.typings.js +19 -19
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +175 -167
- package/build/cjs/meta.js +19 -19
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +2 -2
- package/build/cjs/schemas.js +4 -4
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +19 -19
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +175 -167
- package/build/es/index.typings.mjs +19 -19
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +175 -167
- package/build/es/meta.mjs +19 -19
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +2 -2
- package/build/es/schemas.mjs +4 -4
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +19 -19
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +229 -221
- package/build/internal/cjs/index.typings.js +19 -19
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +229 -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 +2 -2
- package/build/internal/cjs/schemas.js +4 -4
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +19 -19
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +229 -221
- package/build/internal/es/index.typings.mjs +19 -19
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +229 -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 +2 -2
- package/build/internal/es/schemas.mjs +4 -4
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -335,7 +335,15 @@ interface Tag {
|
|
|
335
335
|
meta?: Record<string, any> | null;
|
|
336
336
|
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
337
337
|
children?: string;
|
|
338
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).
|
|
340
|
+
*
|
|
341
|
+
* Limitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read
|
|
342
|
+
* only from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor
|
|
343
|
+
* or Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For
|
|
344
|
+
* those pages `false` therefore does not mean "not a custom tag" — it means this API could not tell.
|
|
345
|
+
* Pass `seoData` explicitly to resolve against a known set of tags.
|
|
346
|
+
*/
|
|
339
347
|
custom?: boolean;
|
|
340
348
|
/** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */
|
|
341
349
|
disabled?: boolean;
|
|
@@ -3580,91 +3588,62 @@ interface GetTotalPostsResponse {
|
|
|
3580
3588
|
/** Total amount of published posts. */
|
|
3581
3589
|
total?: number;
|
|
3582
3590
|
}
|
|
3583
|
-
interface
|
|
3584
|
-
/**
|
|
3585
|
-
* Member ID of person who triggered the counter update
|
|
3586
|
-
* @format GUID
|
|
3587
|
-
*/
|
|
3588
|
-
memberId?: string | null;
|
|
3589
|
-
/**
|
|
3590
|
-
* Visitor ID if person that liked the post is not logged in
|
|
3591
|
-
* @format GUID
|
|
3592
|
-
*/
|
|
3593
|
-
anonymousVisitorId?: string | null;
|
|
3594
|
-
/**
|
|
3595
|
-
* ID of the post which counters were updated.
|
|
3596
|
-
* @format GUID
|
|
3597
|
-
*/
|
|
3598
|
-
postId?: string;
|
|
3599
|
-
/**
|
|
3600
|
-
* Internal ID of the post which counters were updated.
|
|
3601
|
-
* @internal
|
|
3602
|
-
* @maxLength 24
|
|
3603
|
-
*/
|
|
3604
|
-
postInternalId?: string;
|
|
3605
|
-
/** Field of the updated counter. */
|
|
3606
|
-
updatedCounterField?: FieldWithLiterals;
|
|
3607
|
-
/** New counter value. */
|
|
3608
|
-
counter?: number;
|
|
3609
|
-
}
|
|
3610
|
-
/** @oneof */
|
|
3611
|
-
interface PostCountersUpdatedInitiatorOneOf {
|
|
3591
|
+
interface ListDemoPostsRequest {
|
|
3612
3592
|
/**
|
|
3613
|
-
*
|
|
3614
|
-
*
|
|
3593
|
+
* Whether to return only featured posts.
|
|
3594
|
+
*
|
|
3595
|
+
* Default: `false`
|
|
3615
3596
|
*/
|
|
3616
|
-
|
|
3597
|
+
featured?: boolean;
|
|
3617
3598
|
/**
|
|
3618
|
-
*
|
|
3619
|
-
*
|
|
3599
|
+
* Hashtag filter.
|
|
3600
|
+
*
|
|
3601
|
+
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
3602
|
+
* If omitted, all posts with or without hashtags are returned.
|
|
3603
|
+
* @maxSize 100
|
|
3604
|
+
* @maxLength 100
|
|
3620
3605
|
*/
|
|
3621
|
-
|
|
3622
|
-
}
|
|
3623
|
-
declare enum Field {
|
|
3624
|
-
/** Undefined field. */
|
|
3625
|
-
UNKNOWN = "UNKNOWN",
|
|
3626
|
-
/** Total comments field. */
|
|
3627
|
-
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
3628
|
-
/** Like count field. */
|
|
3629
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
3630
|
-
/** View count field. */
|
|
3631
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
3632
|
-
/** Rating count field. */
|
|
3633
|
-
RATING_COUNT = "RATING_COUNT"
|
|
3634
|
-
}
|
|
3635
|
-
/** @enumType */
|
|
3636
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
3637
|
-
interface PostOwnerChanged {
|
|
3606
|
+
hashtags?: string[];
|
|
3638
3607
|
/**
|
|
3639
|
-
*
|
|
3640
|
-
*
|
|
3608
|
+
* Category filter.
|
|
3609
|
+
*
|
|
3610
|
+
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
3611
|
+
* If omitted, all posts with or without associated categories are returned.
|
|
3612
|
+
* @maxSize 50
|
|
3641
3613
|
* @format GUID
|
|
3642
3614
|
*/
|
|
3643
|
-
|
|
3615
|
+
categoryIds?: string[];
|
|
3644
3616
|
/**
|
|
3645
|
-
*
|
|
3646
|
-
*
|
|
3617
|
+
* Tag filter.
|
|
3618
|
+
*
|
|
3619
|
+
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
3620
|
+
* If omitted, all posts with or without tags are returned.
|
|
3621
|
+
* @maxSize 50
|
|
3647
3622
|
* @format GUID
|
|
3648
3623
|
*/
|
|
3649
|
-
|
|
3650
|
-
}
|
|
3651
|
-
interface InitialPostsCopied {
|
|
3652
|
-
/** Number of posts copied. */
|
|
3653
|
-
count?: number;
|
|
3654
|
-
}
|
|
3655
|
-
interface GetPostRequest {
|
|
3624
|
+
tagIds?: string[];
|
|
3656
3625
|
/**
|
|
3657
|
-
*
|
|
3658
|
-
*
|
|
3659
|
-
*
|
|
3626
|
+
* Sorting options.
|
|
3627
|
+
*
|
|
3628
|
+
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
3629
|
+
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
3630
|
+
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
3631
|
+
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
3632
|
+
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
3633
|
+
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
3634
|
+
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
3635
|
+
* - `RATING`: reserved for internal use.
|
|
3636
|
+
*
|
|
3637
|
+
* Default: `FEED`
|
|
3660
3638
|
*/
|
|
3661
|
-
|
|
3639
|
+
sort?: GetPostsSortWithLiterals;
|
|
3640
|
+
/** Pagination options. */
|
|
3641
|
+
paging?: BlogPaging;
|
|
3662
3642
|
/**
|
|
3663
3643
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
3664
3644
|
* This parameter will be removed on June 30, 2023.
|
|
3665
3645
|
*
|
|
3666
3646
|
* List of post fields to be included in the response.
|
|
3667
|
-
* @internal
|
|
3668
3647
|
* @maxSize 20
|
|
3669
3648
|
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
3670
3649
|
* This parameter will be removed on June 30, 2023.
|
|
@@ -3674,6 +3653,20 @@ interface GetPostRequest {
|
|
|
3674
3653
|
* @targetRemovalDate 2024-06-30
|
|
3675
3654
|
*/
|
|
3676
3655
|
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
3656
|
+
/**
|
|
3657
|
+
* Language filter.
|
|
3658
|
+
*
|
|
3659
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
3660
|
+
* Pass a language to only receive posts that are in that language.
|
|
3661
|
+
* If omitted, posts in all languages are returned.
|
|
3662
|
+
* @format LANGUAGE_TAG
|
|
3663
|
+
*/
|
|
3664
|
+
language?: string | null;
|
|
3665
|
+
/**
|
|
3666
|
+
* Post owner's member ID.
|
|
3667
|
+
* @format GUID
|
|
3668
|
+
*/
|
|
3669
|
+
memberId?: string | null;
|
|
3677
3670
|
/**
|
|
3678
3671
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3679
3672
|
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
@@ -3682,6 +3675,52 @@ interface GetPostRequest {
|
|
|
3682
3675
|
*/
|
|
3683
3676
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3684
3677
|
}
|
|
3678
|
+
declare enum GetPostsSort {
|
|
3679
|
+
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
3680
|
+
FEED = "FEED",
|
|
3681
|
+
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
3682
|
+
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
3683
|
+
/** Ordered by `firstPublishedDate` in descending order. */
|
|
3684
|
+
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
3685
|
+
/** Ordered by total number of views in descending order. */
|
|
3686
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
3687
|
+
/** Ordered by total number of likes in descending order. */
|
|
3688
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
3689
|
+
/** Ordered by `title` in ascending order. */
|
|
3690
|
+
TITLE_ASC = "TITLE_ASC",
|
|
3691
|
+
/** Ordered by `title` in descending order. */
|
|
3692
|
+
TITLE_DESC = "TITLE_DESC",
|
|
3693
|
+
/**
|
|
3694
|
+
* Sorting by post rating descending.
|
|
3695
|
+
* @internal
|
|
3696
|
+
*/
|
|
3697
|
+
RATING = "RATING"
|
|
3698
|
+
}
|
|
3699
|
+
/** @enumType */
|
|
3700
|
+
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
3701
|
+
interface BlogPaging {
|
|
3702
|
+
/**
|
|
3703
|
+
* Number of items to skip in the current sort order.
|
|
3704
|
+
*
|
|
3705
|
+
*
|
|
3706
|
+
* Default: `0`
|
|
3707
|
+
*/
|
|
3708
|
+
offset?: number;
|
|
3709
|
+
/**
|
|
3710
|
+
* Number of items to return.
|
|
3711
|
+
*
|
|
3712
|
+
*
|
|
3713
|
+
* Default:`50`
|
|
3714
|
+
* @min 1
|
|
3715
|
+
* @max 100
|
|
3716
|
+
*/
|
|
3717
|
+
limit?: number;
|
|
3718
|
+
/**
|
|
3719
|
+
* Pointer to the next or previous page in the list of results.
|
|
3720
|
+
* @maxLength 2000
|
|
3721
|
+
*/
|
|
3722
|
+
cursor?: string | null;
|
|
3723
|
+
}
|
|
3685
3724
|
declare enum PostFieldField {
|
|
3686
3725
|
UNKNOWN = "UNKNOWN",
|
|
3687
3726
|
/**
|
|
@@ -3763,6 +3802,127 @@ declare enum PostFieldField {
|
|
|
3763
3802
|
}
|
|
3764
3803
|
/** @enumType */
|
|
3765
3804
|
type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
|
|
3805
|
+
interface ListDemoPostsResponse {
|
|
3806
|
+
/** List of posts. */
|
|
3807
|
+
posts?: Post[];
|
|
3808
|
+
/** Details on the paged set of results returned. */
|
|
3809
|
+
metaData?: MetaData;
|
|
3810
|
+
}
|
|
3811
|
+
interface MetaData {
|
|
3812
|
+
/** Number of items returned in this response. */
|
|
3813
|
+
count?: number;
|
|
3814
|
+
/** Requested offset. */
|
|
3815
|
+
offset?: number;
|
|
3816
|
+
/** Total number of items that match the query. */
|
|
3817
|
+
total?: number;
|
|
3818
|
+
/**
|
|
3819
|
+
* Pointer to the next or previous page in the list of results.
|
|
3820
|
+
* @maxLength 2000
|
|
3821
|
+
*/
|
|
3822
|
+
cursor?: string | null;
|
|
3823
|
+
}
|
|
3824
|
+
interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
|
|
3825
|
+
/**
|
|
3826
|
+
* Member ID of person who triggered the counter update
|
|
3827
|
+
* @format GUID
|
|
3828
|
+
*/
|
|
3829
|
+
memberId?: string | null;
|
|
3830
|
+
/**
|
|
3831
|
+
* Visitor ID if person that liked the post is not logged in
|
|
3832
|
+
* @format GUID
|
|
3833
|
+
*/
|
|
3834
|
+
anonymousVisitorId?: string | null;
|
|
3835
|
+
/**
|
|
3836
|
+
* ID of the post which counters were updated.
|
|
3837
|
+
* @format GUID
|
|
3838
|
+
*/
|
|
3839
|
+
postId?: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Internal ID of the post which counters were updated.
|
|
3842
|
+
* @internal
|
|
3843
|
+
* @maxLength 24
|
|
3844
|
+
*/
|
|
3845
|
+
postInternalId?: string;
|
|
3846
|
+
/** Field of the updated counter. */
|
|
3847
|
+
updatedCounterField?: FieldWithLiterals;
|
|
3848
|
+
/** New counter value. */
|
|
3849
|
+
counter?: number;
|
|
3850
|
+
}
|
|
3851
|
+
/** @oneof */
|
|
3852
|
+
interface PostCountersUpdatedInitiatorOneOf {
|
|
3853
|
+
/**
|
|
3854
|
+
* Member ID of person who triggered the counter update
|
|
3855
|
+
* @format GUID
|
|
3856
|
+
*/
|
|
3857
|
+
memberId?: string | null;
|
|
3858
|
+
/**
|
|
3859
|
+
* Visitor ID if person that liked the post is not logged in
|
|
3860
|
+
* @format GUID
|
|
3861
|
+
*/
|
|
3862
|
+
anonymousVisitorId?: string | null;
|
|
3863
|
+
}
|
|
3864
|
+
declare enum Field {
|
|
3865
|
+
/** Undefined field. */
|
|
3866
|
+
UNKNOWN = "UNKNOWN",
|
|
3867
|
+
/** Total comments field. */
|
|
3868
|
+
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
3869
|
+
/** Like count field. */
|
|
3870
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
3871
|
+
/** View count field. */
|
|
3872
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
3873
|
+
/** Rating count field. */
|
|
3874
|
+
RATING_COUNT = "RATING_COUNT"
|
|
3875
|
+
}
|
|
3876
|
+
/** @enumType */
|
|
3877
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
3878
|
+
interface PostOwnerChanged {
|
|
3879
|
+
/**
|
|
3880
|
+
* Member ID of the post's owner before the change.
|
|
3881
|
+
* @internal
|
|
3882
|
+
* @format GUID
|
|
3883
|
+
*/
|
|
3884
|
+
oldMemberId?: string;
|
|
3885
|
+
/**
|
|
3886
|
+
* Member ID of the post's owner after the change.
|
|
3887
|
+
* @internal
|
|
3888
|
+
* @format GUID
|
|
3889
|
+
*/
|
|
3890
|
+
newMemberId?: string;
|
|
3891
|
+
}
|
|
3892
|
+
interface InitialPostsCopied {
|
|
3893
|
+
/** Number of posts copied. */
|
|
3894
|
+
count?: number;
|
|
3895
|
+
}
|
|
3896
|
+
interface GetPostRequest {
|
|
3897
|
+
/**
|
|
3898
|
+
* Post ID.
|
|
3899
|
+
* @minLength 1
|
|
3900
|
+
* @maxLength 38
|
|
3901
|
+
*/
|
|
3902
|
+
postId: string;
|
|
3903
|
+
/**
|
|
3904
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
3905
|
+
* This parameter will be removed on June 30, 2023.
|
|
3906
|
+
*
|
|
3907
|
+
* List of post fields to be included in the response.
|
|
3908
|
+
* @internal
|
|
3909
|
+
* @maxSize 20
|
|
3910
|
+
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
3911
|
+
* This parameter will be removed on June 30, 2023.
|
|
3912
|
+
*
|
|
3913
|
+
* List of post fields to be included in the response.
|
|
3914
|
+
* @replacedBy fieldsets
|
|
3915
|
+
* @targetRemovalDate 2024-06-30
|
|
3916
|
+
*/
|
|
3917
|
+
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
3918
|
+
/**
|
|
3919
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3920
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
3921
|
+
* only the post’s base fields are returned.
|
|
3922
|
+
* @maxSize 20
|
|
3923
|
+
*/
|
|
3924
|
+
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3925
|
+
}
|
|
3766
3926
|
interface GetPostResponse {
|
|
3767
3927
|
/** Retrieved post info. */
|
|
3768
3928
|
post?: Post;
|
|
@@ -3885,71 +4045,12 @@ interface ListPostsRequest {
|
|
|
3885
4045
|
*/
|
|
3886
4046
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3887
4047
|
}
|
|
3888
|
-
declare enum GetPostsSort {
|
|
3889
|
-
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
3890
|
-
FEED = "FEED",
|
|
3891
|
-
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
3892
|
-
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
3893
|
-
/** Ordered by `firstPublishedDate` in descending order. */
|
|
3894
|
-
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
3895
|
-
/** Ordered by total number of views in descending order. */
|
|
3896
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
3897
|
-
/** Ordered by total number of likes in descending order. */
|
|
3898
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
3899
|
-
/** Ordered by `title` in ascending order. */
|
|
3900
|
-
TITLE_ASC = "TITLE_ASC",
|
|
3901
|
-
/** Ordered by `title` in descending order. */
|
|
3902
|
-
TITLE_DESC = "TITLE_DESC",
|
|
3903
|
-
/**
|
|
3904
|
-
* Sorting by post rating descending.
|
|
3905
|
-
* @internal
|
|
3906
|
-
*/
|
|
3907
|
-
RATING = "RATING"
|
|
3908
|
-
}
|
|
3909
|
-
/** @enumType */
|
|
3910
|
-
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
3911
|
-
interface BlogPaging {
|
|
3912
|
-
/**
|
|
3913
|
-
* Number of items to skip in the current sort order.
|
|
3914
|
-
*
|
|
3915
|
-
*
|
|
3916
|
-
* Default: `0`
|
|
3917
|
-
*/
|
|
3918
|
-
offset?: number;
|
|
3919
|
-
/**
|
|
3920
|
-
* Number of items to return.
|
|
3921
|
-
*
|
|
3922
|
-
*
|
|
3923
|
-
* Default:`50`
|
|
3924
|
-
* @min 1
|
|
3925
|
-
* @max 100
|
|
3926
|
-
*/
|
|
3927
|
-
limit?: number;
|
|
3928
|
-
/**
|
|
3929
|
-
* Pointer to the next or previous page in the list of results.
|
|
3930
|
-
* @maxLength 2000
|
|
3931
|
-
*/
|
|
3932
|
-
cursor?: string | null;
|
|
3933
|
-
}
|
|
3934
4048
|
interface ListPostsResponse {
|
|
3935
4049
|
/** List of retrieved posts. */
|
|
3936
4050
|
posts?: Post[];
|
|
3937
4051
|
/** Details on the paged set of results returned. */
|
|
3938
4052
|
metaData?: MetaData;
|
|
3939
4053
|
}
|
|
3940
|
-
interface MetaData {
|
|
3941
|
-
/** Number of items returned in this response. */
|
|
3942
|
-
count?: number;
|
|
3943
|
-
/** Requested offset. */
|
|
3944
|
-
offset?: number;
|
|
3945
|
-
/** Total number of items that match the query. */
|
|
3946
|
-
total?: number;
|
|
3947
|
-
/**
|
|
3948
|
-
* Pointer to the next or previous page in the list of results.
|
|
3949
|
-
* @maxLength 2000
|
|
3950
|
-
*/
|
|
3951
|
-
cursor?: string | null;
|
|
3952
|
-
}
|
|
3953
4054
|
interface QueryPostsRequest {
|
|
3954
4055
|
/**
|
|
3955
4056
|
* __Deprecated.__ Use `query` instead.
|
|
@@ -4397,99 +4498,6 @@ interface PostCount {
|
|
|
4397
4498
|
/** Number of posts. */
|
|
4398
4499
|
postCount?: number;
|
|
4399
4500
|
}
|
|
4400
|
-
interface ListDemoPostsRequest {
|
|
4401
|
-
/**
|
|
4402
|
-
* Whether to return only featured posts.
|
|
4403
|
-
*
|
|
4404
|
-
* Default: `false`
|
|
4405
|
-
*/
|
|
4406
|
-
featured?: boolean;
|
|
4407
|
-
/**
|
|
4408
|
-
* Hashtag filter.
|
|
4409
|
-
*
|
|
4410
|
-
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
4411
|
-
* If omitted, all posts with or without hashtags are returned.
|
|
4412
|
-
* @maxSize 100
|
|
4413
|
-
* @maxLength 100
|
|
4414
|
-
*/
|
|
4415
|
-
hashtags?: string[];
|
|
4416
|
-
/**
|
|
4417
|
-
* Category filter.
|
|
4418
|
-
*
|
|
4419
|
-
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
4420
|
-
* If omitted, all posts with or without associated categories are returned.
|
|
4421
|
-
* @maxSize 50
|
|
4422
|
-
* @format GUID
|
|
4423
|
-
*/
|
|
4424
|
-
categoryIds?: string[];
|
|
4425
|
-
/**
|
|
4426
|
-
* Tag filter.
|
|
4427
|
-
*
|
|
4428
|
-
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
4429
|
-
* If omitted, all posts with or without tags are returned.
|
|
4430
|
-
* @maxSize 50
|
|
4431
|
-
* @format GUID
|
|
4432
|
-
*/
|
|
4433
|
-
tagIds?: string[];
|
|
4434
|
-
/**
|
|
4435
|
-
* Sorting options.
|
|
4436
|
-
*
|
|
4437
|
-
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
4438
|
-
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
4439
|
-
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
4440
|
-
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
4441
|
-
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
4442
|
-
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
4443
|
-
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
4444
|
-
* - `RATING`: reserved for internal use.
|
|
4445
|
-
*
|
|
4446
|
-
* Default: `FEED`
|
|
4447
|
-
*/
|
|
4448
|
-
sort?: GetPostsSortWithLiterals;
|
|
4449
|
-
/** Pagination options. */
|
|
4450
|
-
paging?: BlogPaging;
|
|
4451
|
-
/**
|
|
4452
|
-
* __Deprecated.__ Use `fieldsets` instead.
|
|
4453
|
-
* This parameter will be removed on June 30, 2023.
|
|
4454
|
-
*
|
|
4455
|
-
* List of post fields to be included in the response.
|
|
4456
|
-
* @maxSize 20
|
|
4457
|
-
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
4458
|
-
* This parameter will be removed on June 30, 2023.
|
|
4459
|
-
*
|
|
4460
|
-
* List of post fields to be included in the response.
|
|
4461
|
-
* @replacedBy fieldsets
|
|
4462
|
-
* @targetRemovalDate 2024-06-30
|
|
4463
|
-
*/
|
|
4464
|
-
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
4465
|
-
/**
|
|
4466
|
-
* Language filter.
|
|
4467
|
-
*
|
|
4468
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4469
|
-
* Pass a language to only receive posts that are in that language.
|
|
4470
|
-
* If omitted, posts in all languages are returned.
|
|
4471
|
-
* @format LANGUAGE_TAG
|
|
4472
|
-
*/
|
|
4473
|
-
language?: string | null;
|
|
4474
|
-
/**
|
|
4475
|
-
* Post owner's member ID.
|
|
4476
|
-
* @format GUID
|
|
4477
|
-
*/
|
|
4478
|
-
memberId?: string | null;
|
|
4479
|
-
/**
|
|
4480
|
-
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
4481
|
-
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
4482
|
-
* only the post’s base fields are returned.
|
|
4483
|
-
* @maxSize 20
|
|
4484
|
-
*/
|
|
4485
|
-
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4486
|
-
}
|
|
4487
|
-
interface ListDemoPostsResponse {
|
|
4488
|
-
/** List of posts. */
|
|
4489
|
-
posts?: Post[];
|
|
4490
|
-
/** Details on the paged set of results returned. */
|
|
4491
|
-
metaData?: MetaData;
|
|
4492
|
-
}
|
|
4493
4501
|
interface BaseEventMetadata {
|
|
4494
4502
|
/**
|
|
4495
4503
|
* App instance ID.
|
|
@@ -1593,14 +1593,17 @@ var Order = /* @__PURE__ */ ((Order2) => {
|
|
|
1593
1593
|
Order2["NEWEST"] = "NEWEST";
|
|
1594
1594
|
return Order2;
|
|
1595
1595
|
})(Order || {});
|
|
1596
|
-
var
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1596
|
+
var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
|
|
1597
|
+
GetPostsSort2["FEED"] = "FEED";
|
|
1598
|
+
GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
|
1599
|
+
GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
|
1600
|
+
GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1601
|
+
GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1602
|
+
GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
|
|
1603
|
+
GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
|
|
1604
|
+
GetPostsSort2["RATING"] = "RATING";
|
|
1605
|
+
return GetPostsSort2;
|
|
1606
|
+
})(GetPostsSort || {});
|
|
1604
1607
|
var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
1605
1608
|
PostFieldField2["UNKNOWN"] = "UNKNOWN";
|
|
1606
1609
|
PostFieldField2["COUNTERS"] = "COUNTERS";
|
|
@@ -1624,17 +1627,14 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
|
|
1624
1627
|
PostFieldField2["IMAGE"] = "IMAGE";
|
|
1625
1628
|
return PostFieldField2;
|
|
1626
1629
|
})(PostFieldField || {});
|
|
1627
|
-
var
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
GetPostsSort2["RATING"] = "RATING";
|
|
1636
|
-
return GetPostsSort2;
|
|
1637
|
-
})(GetPostsSort || {});
|
|
1630
|
+
var Field = /* @__PURE__ */ ((Field2) => {
|
|
1631
|
+
Field2["UNKNOWN"] = "UNKNOWN";
|
|
1632
|
+
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
|
1633
|
+
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
|
1634
|
+
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
|
1635
|
+
Field2["RATING_COUNT"] = "RATING_COUNT";
|
|
1636
|
+
return Field2;
|
|
1637
|
+
})(Field || {});
|
|
1638
1638
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1639
1639
|
SortOrder2["ASC"] = "ASC";
|
|
1640
1640
|
SortOrder2["DESC"] = "DESC";
|