@wix/auto_sdk_blog_posts 1.0.180 → 1.0.181
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/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/internal/cjs/index.typings.d.ts +220 -220
- package/build/internal/cjs/meta.d.ts +220 -220
- package/build/internal/es/index.typings.d.mts +220 -220
- package/build/internal/es/meta.d.mts +220 -220
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -603
- package/build/cjs/schemas.js +0 -1000
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -603
- package/build/es/schemas.mjs +0 -950
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -603
- package/build/internal/es/schemas.d.mts +0 -603
- package/schemas/package.json +0 -3
|
@@ -3885,91 +3885,62 @@ interface GetTotalPostsResponse {
|
|
|
3885
3885
|
/** Total amount of published posts. */
|
|
3886
3886
|
total?: number;
|
|
3887
3887
|
}
|
|
3888
|
-
interface
|
|
3889
|
-
/**
|
|
3890
|
-
* Member ID of person who triggered the counter update
|
|
3891
|
-
* @format GUID
|
|
3892
|
-
*/
|
|
3893
|
-
memberId?: string | null;
|
|
3894
|
-
/**
|
|
3895
|
-
* Visitor ID if person that liked the post is not logged in
|
|
3896
|
-
* @format GUID
|
|
3897
|
-
*/
|
|
3898
|
-
anonymousVisitorId?: string | null;
|
|
3899
|
-
/**
|
|
3900
|
-
* ID of the post which counters were updated.
|
|
3901
|
-
* @format GUID
|
|
3902
|
-
*/
|
|
3903
|
-
postId?: string;
|
|
3904
|
-
/**
|
|
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 {
|
|
3888
|
+
interface ListDemoPostsRequest {
|
|
3917
3889
|
/**
|
|
3918
|
-
*
|
|
3919
|
-
*
|
|
3890
|
+
* Whether to return only featured posts.
|
|
3891
|
+
*
|
|
3892
|
+
* Default: `false`
|
|
3920
3893
|
*/
|
|
3921
|
-
|
|
3894
|
+
featured?: boolean;
|
|
3922
3895
|
/**
|
|
3923
|
-
*
|
|
3924
|
-
*
|
|
3896
|
+
* Hashtag filter.
|
|
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
|
|
3925
3902
|
*/
|
|
3926
|
-
|
|
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 {
|
|
3903
|
+
hashtags?: string[];
|
|
3943
3904
|
/**
|
|
3944
|
-
*
|
|
3945
|
-
*
|
|
3905
|
+
* Category filter.
|
|
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
|
|
3946
3910
|
* @format GUID
|
|
3947
3911
|
*/
|
|
3948
|
-
|
|
3912
|
+
categoryIds?: string[];
|
|
3949
3913
|
/**
|
|
3950
|
-
*
|
|
3951
|
-
*
|
|
3914
|
+
* Tag filter.
|
|
3915
|
+
*
|
|
3916
|
+
* Pass an array of tag IDs to return only posts with any of the provided tags.
|
|
3917
|
+
* If omitted, all posts with or without tags are returned.
|
|
3918
|
+
* @maxSize 50
|
|
3952
3919
|
* @format GUID
|
|
3953
3920
|
*/
|
|
3954
|
-
|
|
3955
|
-
}
|
|
3956
|
-
interface InitialPostsCopied {
|
|
3957
|
-
/** Number of posts copied. */
|
|
3958
|
-
count?: number;
|
|
3959
|
-
}
|
|
3960
|
-
interface GetPostRequest {
|
|
3921
|
+
tagIds?: string[];
|
|
3961
3922
|
/**
|
|
3962
|
-
*
|
|
3963
|
-
*
|
|
3964
|
-
*
|
|
3923
|
+
* Sorting options.
|
|
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`
|
|
3965
3935
|
*/
|
|
3966
|
-
|
|
3936
|
+
sort?: GetPostsSortWithLiterals;
|
|
3937
|
+
/** Pagination options. */
|
|
3938
|
+
paging?: BlogPaging;
|
|
3967
3939
|
/**
|
|
3968
3940
|
* __Deprecated.__ Use `fieldsets` instead.
|
|
3969
3941
|
* This parameter will be removed on June 30, 2023.
|
|
3970
3942
|
*
|
|
3971
3943
|
* List of post fields to be included in the response.
|
|
3972
|
-
* @internal
|
|
3973
3944
|
* @maxSize 20
|
|
3974
3945
|
* @deprecated __Deprecated.__ Use `fieldsets` instead.
|
|
3975
3946
|
* This parameter will be removed on June 30, 2023.
|
|
@@ -3979,6 +3950,20 @@ interface GetPostRequest {
|
|
|
3979
3950
|
* @targetRemovalDate 2024-06-30
|
|
3980
3951
|
*/
|
|
3981
3952
|
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;
|
|
3982
3967
|
/**
|
|
3983
3968
|
* List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
|
|
3984
3969
|
* the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
|
|
@@ -3987,6 +3972,52 @@ interface GetPostRequest {
|
|
|
3987
3972
|
*/
|
|
3988
3973
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
3989
3974
|
}
|
|
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
|
+
}
|
|
3990
4021
|
declare enum PostFieldField {
|
|
3991
4022
|
UNKNOWN = "UNKNOWN",
|
|
3992
4023
|
/**
|
|
@@ -4068,6 +4099,127 @@ declare enum PostFieldField {
|
|
|
4068
4099
|
}
|
|
4069
4100
|
/** @enumType */
|
|
4070
4101
|
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
|
+
}
|
|
4071
4223
|
interface GetPostResponse {
|
|
4072
4224
|
/** Retrieved post info. */
|
|
4073
4225
|
post?: Post;
|
|
@@ -4190,71 +4342,12 @@ interface ListPostsRequest {
|
|
|
4190
4342
|
*/
|
|
4191
4343
|
fieldsets?: PostFieldFieldWithLiterals[];
|
|
4192
4344
|
}
|
|
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
|
-
}
|
|
4239
4345
|
interface ListPostsResponse {
|
|
4240
4346
|
/** List of retrieved posts. */
|
|
4241
4347
|
posts?: Post[];
|
|
4242
4348
|
/** Details on the paged set of results returned. */
|
|
4243
4349
|
metaData?: MetaData;
|
|
4244
4350
|
}
|
|
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
|
-
}
|
|
4258
4351
|
interface QueryPostsRequest {
|
|
4259
4352
|
/**
|
|
4260
4353
|
* __Deprecated.__ Use `query` instead.
|
|
@@ -4706,99 +4799,6 @@ interface PostCount {
|
|
|
4706
4799
|
/** Number of posts. */
|
|
4707
4800
|
postCount?: number;
|
|
4708
4801
|
}
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_blog_posts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.181",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
-
},
|
|
25
|
-
"./schemas": {
|
|
26
|
-
"import": "./build/es/schemas.mjs",
|
|
27
|
-
"require": "./build/cjs/schemas.js",
|
|
28
|
-
"types": "./build/es/schemas.d.mts"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
32
|
"@wix/sdk-runtime": "^1.0.24",
|
|
39
|
-
"@wix/sdk-types": "^1.17.11"
|
|
40
|
-
"zod": "^4.3.6"
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.blog.v3.post"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "8f114d93e6e77c19229f384e53c57a27919758d480b0868bb8aca837"
|
|
61
54
|
}
|