@wix/auto_sdk_blog_posts 1.0.178 → 1.0.180
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 +166 -166
- package/build/cjs/index.typings.js +19 -19
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +166 -166
- 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 +450 -438
- 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 +166 -166
- package/build/es/index.typings.mjs +19 -19
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +166 -166
- 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 +450 -438
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +220 -220
- package/build/internal/cjs/meta.d.ts +220 -220
- package/build/internal/cjs/schemas.d.ts +2 -2
- package/build/internal/es/index.typings.d.mts +220 -220
- package/build/internal/es/meta.d.mts +220 -220
- package/build/internal/es/schemas.d.mts +2 -2
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -2841
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -2221
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1975
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -988
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -2734
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -2118
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1871
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -938
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -3885,62 +3885,91 @@ interface GetTotalPostsResponse {
|
|
|
3885
3885
|
/** Total amount of published posts. */
|
|
3886
3886
|
total?: number;
|
|
3887
3887
|
}
|
|
3888
|
-
interface
|
|
3888
|
+
interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
|
|
3889
3889
|
/**
|
|
3890
|
-
*
|
|
3891
|
-
*
|
|
3892
|
-
* Default: `false`
|
|
3890
|
+
* Member ID of person who triggered the counter update
|
|
3891
|
+
* @format GUID
|
|
3893
3892
|
*/
|
|
3894
|
-
|
|
3893
|
+
memberId?: string | null;
|
|
3895
3894
|
/**
|
|
3896
|
-
*
|
|
3897
|
-
*
|
|
3898
|
-
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
3899
|
-
* If omitted, all posts with or without hashtags are returned.
|
|
3900
|
-
* @maxSize 100
|
|
3901
|
-
* @maxLength 100
|
|
3895
|
+
* Visitor ID if person that liked the post is not logged in
|
|
3896
|
+
* @format GUID
|
|
3902
3897
|
*/
|
|
3903
|
-
|
|
3898
|
+
anonymousVisitorId?: string | null;
|
|
3904
3899
|
/**
|
|
3905
|
-
*
|
|
3906
|
-
*
|
|
3907
|
-
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
3908
|
-
* If omitted, all posts with or without associated categories are returned.
|
|
3909
|
-
* @maxSize 50
|
|
3900
|
+
* ID of the post which counters were updated.
|
|
3910
3901
|
* @format GUID
|
|
3911
3902
|
*/
|
|
3912
|
-
|
|
3903
|
+
postId?: string;
|
|
3913
3904
|
/**
|
|
3914
|
-
*
|
|
3915
|
-
*
|
|
3916
|
-
*
|
|
3917
|
-
|
|
3918
|
-
|
|
3905
|
+
* Internal ID of the post which counters were updated.
|
|
3906
|
+
* @internal
|
|
3907
|
+
* @maxLength 24
|
|
3908
|
+
*/
|
|
3909
|
+
postInternalId?: string;
|
|
3910
|
+
/** Field of the updated counter. */
|
|
3911
|
+
updatedCounterField?: FieldWithLiterals;
|
|
3912
|
+
/** New counter value. */
|
|
3913
|
+
counter?: number;
|
|
3914
|
+
}
|
|
3915
|
+
/** @oneof */
|
|
3916
|
+
interface PostCountersUpdatedInitiatorOneOf {
|
|
3917
|
+
/**
|
|
3918
|
+
* Member ID of person who triggered the counter update
|
|
3919
3919
|
* @format GUID
|
|
3920
3920
|
*/
|
|
3921
|
-
|
|
3921
|
+
memberId?: string | null;
|
|
3922
3922
|
/**
|
|
3923
|
-
*
|
|
3924
|
-
*
|
|
3925
|
-
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
3926
|
-
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
3927
|
-
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
3928
|
-
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
3929
|
-
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
3930
|
-
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
3931
|
-
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
3932
|
-
* - `RATING`: reserved for internal use.
|
|
3933
|
-
*
|
|
3934
|
-
* Default: `FEED`
|
|
3923
|
+
* Visitor ID if person that liked the post is not logged in
|
|
3924
|
+
* @format GUID
|
|
3935
3925
|
*/
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3926
|
+
anonymousVisitorId?: string | null;
|
|
3927
|
+
}
|
|
3928
|
+
declare enum Field {
|
|
3929
|
+
/** Undefined field. */
|
|
3930
|
+
UNKNOWN = "UNKNOWN",
|
|
3931
|
+
/** Total comments field. */
|
|
3932
|
+
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
3933
|
+
/** Like count field. */
|
|
3934
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
3935
|
+
/** View count field. */
|
|
3936
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
3937
|
+
/** Rating count field. */
|
|
3938
|
+
RATING_COUNT = "RATING_COUNT"
|
|
3939
|
+
}
|
|
3940
|
+
/** @enumType */
|
|
3941
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
3942
|
+
interface PostOwnerChanged {
|
|
3943
|
+
/**
|
|
3944
|
+
* Member ID of the post's owner before the change.
|
|
3945
|
+
* @internal
|
|
3946
|
+
* @format GUID
|
|
3947
|
+
*/
|
|
3948
|
+
oldMemberId?: string;
|
|
3949
|
+
/**
|
|
3950
|
+
* Member ID of the post's owner after the change.
|
|
3951
|
+
* @internal
|
|
3952
|
+
* @format GUID
|
|
3953
|
+
*/
|
|
3954
|
+
newMemberId?: string;
|
|
3955
|
+
}
|
|
3956
|
+
interface InitialPostsCopied {
|
|
3957
|
+
/** Number of posts copied. */
|
|
3958
|
+
count?: number;
|
|
3959
|
+
}
|
|
3960
|
+
interface GetPostRequest {
|
|
3961
|
+
/**
|
|
3962
|
+
* Post ID.
|
|
3963
|
+
* @minLength 1
|
|
3964
|
+
* @maxLength 38
|
|
3965
|
+
*/
|
|
3966
|
+
postId: string;
|
|
3939
3967
|
/**
|
|
3940
3968
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
3941
3969
|
* This parameter will be removed on June 30, 2023.
|
|
3942
3970
|
*
|
|
3943
3971
|
* List of post fields to be included in the response.
|
|
3972
|
+
* @internal
|
|
3944
3973
|
* @maxSize 20
|
|
3945
3974
|
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
3946
3975
|
* This parameter will be removed on June 30, 2023.
|
|
@@ -3950,20 +3979,6 @@ interface ListDemoPostsRequest {
|
|
|
3950
3979
|
* @targetRemovalDate 2024-06-30
|
|
3951
3980
|
*/
|
|
3952
3981
|
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
3953
|
-
/**
|
|
3954
|
-
* Language filter.
|
|
3955
|
-
*
|
|
3956
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
3957
|
-
* Pass a language to only receive posts that are in that language.
|
|
3958
|
-
* If omitted, posts in all languages are returned.
|
|
3959
|
-
* @format LANGUAGE_TAG
|
|
3960
|
-
*/
|
|
3961
|
-
language?: string | null;
|
|
3962
|
-
/**
|
|
3963
|
-
* Post owner's member ID.
|
|
3964
|
-
* @format GUID
|
|
3965
|
-
*/
|
|
3966
|
-
memberId?: string | null;
|
|
3967
3982
|
/**
|
|
3968
3983
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3969
3984
|
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
@@ -3972,52 +3987,6 @@ interface ListDemoPostsRequest {
|
|
|
3972
3987
|
*/
|
|
3973
3988
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3974
3989
|
}
|
|
3975
|
-
declare enum GetPostsSort {
|
|
3976
|
-
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
3977
|
-
FEED = "FEED",
|
|
3978
|
-
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
3979
|
-
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
3980
|
-
/** Ordered by `firstPublishedDate` in descending order. */
|
|
3981
|
-
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
3982
|
-
/** Ordered by total number of views in descending order. */
|
|
3983
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
3984
|
-
/** Ordered by total number of likes in descending order. */
|
|
3985
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
3986
|
-
/** Ordered by `title` in ascending order. */
|
|
3987
|
-
TITLE_ASC = "TITLE_ASC",
|
|
3988
|
-
/** Ordered by `title` in descending order. */
|
|
3989
|
-
TITLE_DESC = "TITLE_DESC",
|
|
3990
|
-
/**
|
|
3991
|
-
* Sorting by post rating descending.
|
|
3992
|
-
* @internal
|
|
3993
|
-
*/
|
|
3994
|
-
RATING = "RATING"
|
|
3995
|
-
}
|
|
3996
|
-
/** @enumType */
|
|
3997
|
-
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
3998
|
-
interface BlogPaging {
|
|
3999
|
-
/**
|
|
4000
|
-
* Number of items to skip in the current sort order.
|
|
4001
|
-
*
|
|
4002
|
-
*
|
|
4003
|
-
* Default: `0`
|
|
4004
|
-
*/
|
|
4005
|
-
offset?: number;
|
|
4006
|
-
/**
|
|
4007
|
-
* Number of items to return.
|
|
4008
|
-
*
|
|
4009
|
-
*
|
|
4010
|
-
* Default:`50`
|
|
4011
|
-
* @min 1
|
|
4012
|
-
* @max 100
|
|
4013
|
-
*/
|
|
4014
|
-
limit?: number;
|
|
4015
|
-
/**
|
|
4016
|
-
* Pointer to the next or previous page in the list of results.
|
|
4017
|
-
* @maxLength 2000
|
|
4018
|
-
*/
|
|
4019
|
-
cursor?: string | null;
|
|
4020
|
-
}
|
|
4021
3990
|
declare enum PostFieldField {
|
|
4022
3991
|
UNKNOWN = "UNKNOWN",
|
|
4023
3992
|
/**
|
|
@@ -4099,127 +4068,6 @@ declare enum PostFieldField {
|
|
|
4099
4068
|
}
|
|
4100
4069
|
/** @enumType */
|
|
4101
4070
|
type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
|
|
4102
|
-
interface ListDemoPostsResponse {
|
|
4103
|
-
/** List of posts. */
|
|
4104
|
-
posts?: Post[];
|
|
4105
|
-
/** Details on the paged set of results returned. */
|
|
4106
|
-
metaData?: MetaData;
|
|
4107
|
-
}
|
|
4108
|
-
interface MetaData {
|
|
4109
|
-
/** Number of items returned in this response. */
|
|
4110
|
-
count?: number;
|
|
4111
|
-
/** Requested offset. */
|
|
4112
|
-
offset?: number;
|
|
4113
|
-
/** Total number of items that match the query. */
|
|
4114
|
-
total?: number;
|
|
4115
|
-
/**
|
|
4116
|
-
* Pointer to the next or previous page in the list of results.
|
|
4117
|
-
* @maxLength 2000
|
|
4118
|
-
*/
|
|
4119
|
-
cursor?: string | null;
|
|
4120
|
-
}
|
|
4121
|
-
interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
|
|
4122
|
-
/**
|
|
4123
|
-
* Member ID of person who triggered the counter update
|
|
4124
|
-
* @format GUID
|
|
4125
|
-
*/
|
|
4126
|
-
memberId?: string | null;
|
|
4127
|
-
/**
|
|
4128
|
-
* Visitor ID if person that liked the post is not logged in
|
|
4129
|
-
* @format GUID
|
|
4130
|
-
*/
|
|
4131
|
-
anonymousVisitorId?: string | null;
|
|
4132
|
-
/**
|
|
4133
|
-
* ID of the post which counters were updated.
|
|
4134
|
-
* @format GUID
|
|
4135
|
-
*/
|
|
4136
|
-
postId?: string;
|
|
4137
|
-
/**
|
|
4138
|
-
* Internal ID of the post which counters were updated.
|
|
4139
|
-
* @internal
|
|
4140
|
-
* @maxLength 24
|
|
4141
|
-
*/
|
|
4142
|
-
postInternalId?: string;
|
|
4143
|
-
/** Field of the updated counter. */
|
|
4144
|
-
updatedCounterField?: FieldWithLiterals;
|
|
4145
|
-
/** New counter value. */
|
|
4146
|
-
counter?: number;
|
|
4147
|
-
}
|
|
4148
|
-
/** @oneof */
|
|
4149
|
-
interface PostCountersUpdatedInitiatorOneOf {
|
|
4150
|
-
/**
|
|
4151
|
-
* Member ID of person who triggered the counter update
|
|
4152
|
-
* @format GUID
|
|
4153
|
-
*/
|
|
4154
|
-
memberId?: string | null;
|
|
4155
|
-
/**
|
|
4156
|
-
* Visitor ID if person that liked the post is not logged in
|
|
4157
|
-
* @format GUID
|
|
4158
|
-
*/
|
|
4159
|
-
anonymousVisitorId?: string | null;
|
|
4160
|
-
}
|
|
4161
|
-
declare enum Field {
|
|
4162
|
-
/** Undefined field. */
|
|
4163
|
-
UNKNOWN = "UNKNOWN",
|
|
4164
|
-
/** Total comments field. */
|
|
4165
|
-
TOTAL_COMMENTS = "TOTAL_COMMENTS",
|
|
4166
|
-
/** Like count field. */
|
|
4167
|
-
LIKE_COUNT = "LIKE_COUNT",
|
|
4168
|
-
/** View count field. */
|
|
4169
|
-
VIEW_COUNT = "VIEW_COUNT",
|
|
4170
|
-
/** Rating count field. */
|
|
4171
|
-
RATING_COUNT = "RATING_COUNT"
|
|
4172
|
-
}
|
|
4173
|
-
/** @enumType */
|
|
4174
|
-
type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
|
|
4175
|
-
interface PostOwnerChanged {
|
|
4176
|
-
/**
|
|
4177
|
-
* Member ID of the post's owner before the change.
|
|
4178
|
-
* @internal
|
|
4179
|
-
* @format GUID
|
|
4180
|
-
*/
|
|
4181
|
-
oldMemberId?: string;
|
|
4182
|
-
/**
|
|
4183
|
-
* Member ID of the post's owner after the change.
|
|
4184
|
-
* @internal
|
|
4185
|
-
* @format GUID
|
|
4186
|
-
*/
|
|
4187
|
-
newMemberId?: string;
|
|
4188
|
-
}
|
|
4189
|
-
interface InitialPostsCopied {
|
|
4190
|
-
/** Number of posts copied. */
|
|
4191
|
-
count?: number;
|
|
4192
|
-
}
|
|
4193
|
-
interface GetPostRequest {
|
|
4194
|
-
/**
|
|
4195
|
-
* Post ID.
|
|
4196
|
-
* @minLength 1
|
|
4197
|
-
* @maxLength 38
|
|
4198
|
-
*/
|
|
4199
|
-
postId: string;
|
|
4200
|
-
/**
|
|
4201
|
-
* __Deprecated.__ Use `fieldsets` instead.
|
|
4202
|
-
* This parameter will be removed on June 30, 2023.
|
|
4203
|
-
*
|
|
4204
|
-
* List of post fields to be included in the response.
|
|
4205
|
-
* @internal
|
|
4206
|
-
* @maxSize 20
|
|
4207
|
-
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
4208
|
-
* This parameter will be removed on June 30, 2023.
|
|
4209
|
-
*
|
|
4210
|
-
* List of post fields to be included in the response.
|
|
4211
|
-
* @replacedBy fieldsets
|
|
4212
|
-
* @targetRemovalDate 2024-06-30
|
|
4213
|
-
*/
|
|
4214
|
-
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
4215
|
-
/**
|
|
4216
|
-
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
4217
|
-
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
4218
|
-
* only the post’s base fields are returned.
|
|
4219
|
-
* @maxSize 20
|
|
4220
|
-
*/
|
|
4221
|
-
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4222
|
-
}
|
|
4223
4071
|
interface GetPostResponse {
|
|
4224
4072
|
/** Retrieved post info. */
|
|
4225
4073
|
post?: Post;
|
|
@@ -4342,12 +4190,71 @@ interface ListPostsRequest {
|
|
|
4342
4190
|
*/
|
|
4343
4191
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4344
4192
|
}
|
|
4193
|
+
declare enum GetPostsSort {
|
|
4194
|
+
/** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
|
|
4195
|
+
FEED = "FEED",
|
|
4196
|
+
/** Ordered by `firstPublishedDate` in ascending order. */
|
|
4197
|
+
PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
|
|
4198
|
+
/** Ordered by `firstPublishedDate` in descending order. */
|
|
4199
|
+
PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
|
|
4200
|
+
/** Ordered by total number of views in descending order. */
|
|
4201
|
+
VIEW_COUNT = "VIEW_COUNT",
|
|
4202
|
+
/** Ordered by total number of likes in descending order. */
|
|
4203
|
+
LIKE_COUNT = "LIKE_COUNT",
|
|
4204
|
+
/** Ordered by `title` in ascending order. */
|
|
4205
|
+
TITLE_ASC = "TITLE_ASC",
|
|
4206
|
+
/** Ordered by `title` in descending order. */
|
|
4207
|
+
TITLE_DESC = "TITLE_DESC",
|
|
4208
|
+
/**
|
|
4209
|
+
* Sorting by post rating descending.
|
|
4210
|
+
* @internal
|
|
4211
|
+
*/
|
|
4212
|
+
RATING = "RATING"
|
|
4213
|
+
}
|
|
4214
|
+
/** @enumType */
|
|
4215
|
+
type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
|
|
4216
|
+
interface BlogPaging {
|
|
4217
|
+
/**
|
|
4218
|
+
* Number of items to skip in the current sort order.
|
|
4219
|
+
*
|
|
4220
|
+
*
|
|
4221
|
+
* Default: `0`
|
|
4222
|
+
*/
|
|
4223
|
+
offset?: number;
|
|
4224
|
+
/**
|
|
4225
|
+
* Number of items to return.
|
|
4226
|
+
*
|
|
4227
|
+
*
|
|
4228
|
+
* Default:`50`
|
|
4229
|
+
* @min 1
|
|
4230
|
+
* @max 100
|
|
4231
|
+
*/
|
|
4232
|
+
limit?: number;
|
|
4233
|
+
/**
|
|
4234
|
+
* Pointer to the next or previous page in the list of results.
|
|
4235
|
+
* @maxLength 2000
|
|
4236
|
+
*/
|
|
4237
|
+
cursor?: string | null;
|
|
4238
|
+
}
|
|
4345
4239
|
interface ListPostsResponse {
|
|
4346
4240
|
/** List of retrieved posts. */
|
|
4347
4241
|
posts?: Post[];
|
|
4348
4242
|
/** Details on the paged set of results returned. */
|
|
4349
4243
|
metaData?: MetaData;
|
|
4350
4244
|
}
|
|
4245
|
+
interface MetaData {
|
|
4246
|
+
/** Number of items returned in this response. */
|
|
4247
|
+
count?: number;
|
|
4248
|
+
/** Requested offset. */
|
|
4249
|
+
offset?: number;
|
|
4250
|
+
/** Total number of items that match the query. */
|
|
4251
|
+
total?: number;
|
|
4252
|
+
/**
|
|
4253
|
+
* Pointer to the next or previous page in the list of results.
|
|
4254
|
+
* @maxLength 2000
|
|
4255
|
+
*/
|
|
4256
|
+
cursor?: string | null;
|
|
4257
|
+
}
|
|
4351
4258
|
interface QueryPostsRequest {
|
|
4352
4259
|
/**
|
|
4353
4260
|
* __Deprecated.__ Use `query` instead.
|
|
@@ -4799,6 +4706,99 @@ interface PostCount {
|
|
|
4799
4706
|
/** Number of posts. */
|
|
4800
4707
|
postCount?: number;
|
|
4801
4708
|
}
|
|
4709
|
+
interface ListDemoPostsRequest {
|
|
4710
|
+
/**
|
|
4711
|
+
* Whether to return only featured posts.
|
|
4712
|
+
*
|
|
4713
|
+
* Default: `false`
|
|
4714
|
+
*/
|
|
4715
|
+
featured?: boolean;
|
|
4716
|
+
/**
|
|
4717
|
+
* Hashtag filter.
|
|
4718
|
+
*
|
|
4719
|
+
* Pass an array of hashtags to return only posts containing any of the provided hashtags.
|
|
4720
|
+
* If omitted, all posts with or without hashtags are returned.
|
|
4721
|
+
* @maxSize 100
|
|
4722
|
+
* @maxLength 100
|
|
4723
|
+
*/
|
|
4724
|
+
hashtags?: string[];
|
|
4725
|
+
/**
|
|
4726
|
+
* Category filter.
|
|
4727
|
+
*
|
|
4728
|
+
* Pass an array of category IDs to return only posts with any of the provided categories.
|
|
4729
|
+
* If omitted, all posts with or without associated categories are returned.
|
|
4730
|
+
* @maxSize 50
|
|
4731
|
+
* @format GUID
|
|
4732
|
+
*/
|
|
4733
|
+
categoryIds?: string[];
|
|
4734
|
+
/**
|
|
4735
|
+
* Tag filter.
|
|
4736
|
+
*
|
|
4737
|
+
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
4738
|
+
* If omitted, all posts with or without tags are returned.
|
|
4739
|
+
* @maxSize 50
|
|
4740
|
+
* @format GUID
|
|
4741
|
+
*/
|
|
4742
|
+
tagIds?: string[];
|
|
4743
|
+
/**
|
|
4744
|
+
* Sorting options.
|
|
4745
|
+
*
|
|
4746
|
+
* - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
|
|
4747
|
+
* - `VIEW_COUNT`: Ordered by total number of views in descending order.
|
|
4748
|
+
* - `LIKE_COUNT`: Ordered by total number of likes in descending order.
|
|
4749
|
+
* - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
|
|
4750
|
+
* - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
|
|
4751
|
+
* - `TITLE_ASC`: Ordered by `title` in ascending order.
|
|
4752
|
+
* - `TITLE_DESC`: Ordered by `title` in descending order.
|
|
4753
|
+
* - `RATING`: reserved for internal use.
|
|
4754
|
+
*
|
|
4755
|
+
* Default: `FEED`
|
|
4756
|
+
*/
|
|
4757
|
+
sort?: GetPostsSortWithLiterals;
|
|
4758
|
+
/** Pagination options. */
|
|
4759
|
+
paging?: BlogPaging;
|
|
4760
|
+
/**
|
|
4761
|
+
* __Deprecated.__ Use `fieldsets` instead.
|
|
4762
|
+
* This parameter will be removed on June 30, 2023.
|
|
4763
|
+
*
|
|
4764
|
+
* List of post fields to be included in the response.
|
|
4765
|
+
* @maxSize 20
|
|
4766
|
+
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
4767
|
+
* This parameter will be removed on June 30, 2023.
|
|
4768
|
+
*
|
|
4769
|
+
* List of post fields to be included in the response.
|
|
4770
|
+
* @replacedBy fieldsets
|
|
4771
|
+
* @targetRemovalDate 2024-06-30
|
|
4772
|
+
*/
|
|
4773
|
+
fieldsToInclude?: PostFieldFieldWithLiterals[];
|
|
4774
|
+
/**
|
|
4775
|
+
* Language filter.
|
|
4776
|
+
*
|
|
4777
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
|
4778
|
+
* Pass a language to only receive posts that are in that language.
|
|
4779
|
+
* If omitted, posts in all languages are returned.
|
|
4780
|
+
* @format LANGUAGE_TAG
|
|
4781
|
+
*/
|
|
4782
|
+
language?: string | null;
|
|
4783
|
+
/**
|
|
4784
|
+
* Post owner's member ID.
|
|
4785
|
+
* @format GUID
|
|
4786
|
+
*/
|
|
4787
|
+
memberId?: string | null;
|
|
4788
|
+
/**
|
|
4789
|
+
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
4790
|
+
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
4791
|
+
* only the post’s base fields are returned.
|
|
4792
|
+
* @maxSize 20
|
|
4793
|
+
*/
|
|
4794
|
+
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4795
|
+
}
|
|
4796
|
+
interface ListDemoPostsResponse {
|
|
4797
|
+
/** List of posts. */
|
|
4798
|
+
posts?: Post[];
|
|
4799
|
+
/** Details on the paged set of results returned. */
|
|
4800
|
+
metaData?: MetaData;
|
|
4801
|
+
}
|
|
4802
4802
|
|
|
4803
4803
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4804
4804
|
getUrl: (context: any) => string;
|
|
@@ -239,11 +239,11 @@ declare const ListPostsRequest: z.ZodObject<{
|
|
|
239
239
|
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
240
|
tagIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
241
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
242
|
+
LIKE_COUNT: "LIKE_COUNT";
|
|
243
|
+
VIEW_COUNT: "VIEW_COUNT";
|
|
242
244
|
FEED: "FEED";
|
|
243
245
|
PUBLISHED_DATE_ASC: "PUBLISHED_DATE_ASC";
|
|
244
246
|
PUBLISHED_DATE_DESC: "PUBLISHED_DATE_DESC";
|
|
245
|
-
VIEW_COUNT: "VIEW_COUNT";
|
|
246
|
-
LIKE_COUNT: "LIKE_COUNT";
|
|
247
247
|
TITLE_ASC: "TITLE_ASC";
|
|
248
248
|
TITLE_DESC: "TITLE_DESC";
|
|
249
249
|
}>>;
|