@wix/auto_sdk_blog_posts 1.0.194 → 1.0.195

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.
@@ -3804,62 +3804,91 @@ interface GetTotalPostsResponse {
3804
3804
  /** Total amount of published posts. */
3805
3805
  total?: number;
3806
3806
  }
3807
- interface ListDemoPostsRequest {
3807
+ interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
3808
3808
  /**
3809
- * Whether to return only featured posts.
3810
- *
3811
- * Default: `false`
3809
+ * Member ID of person who triggered the counter update
3810
+ * @format GUID
3812
3811
  */
3813
- featured?: boolean;
3812
+ memberId?: string | null;
3814
3813
  /**
3815
- * Hashtag filter.
3816
- *
3817
- * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3818
- * If omitted, all posts with or without hashtags are returned.
3819
- * @maxSize 100
3820
- * @maxLength 100
3814
+ * Visitor ID if person that liked the post is not logged in
3815
+ * @format GUID
3821
3816
  */
3822
- hashtags?: string[];
3817
+ anonymousVisitorId?: string | null;
3823
3818
  /**
3824
- * Category filter.
3825
- *
3826
- * Pass an array of category IDs to return only posts with any of the provided categories.
3827
- * If omitted, all posts with or without associated categories are returned.
3828
- * @maxSize 50
3819
+ * ID of the post which counters were updated.
3829
3820
  * @format GUID
3830
3821
  */
3831
- categoryIds?: string[];
3822
+ postId?: string;
3832
3823
  /**
3833
- * Tag filter.
3834
- *
3835
- * Pass an array of tag IDs to return only posts with any of the provided tags.
3836
- * If omitted, all posts with or without tags are returned.
3837
- * @maxSize 50
3824
+ * Internal ID of the post which counters were updated.
3825
+ * @internal
3826
+ * @maxLength 24
3827
+ */
3828
+ postInternalId?: string;
3829
+ /** Field of the updated counter. */
3830
+ updatedCounterField?: FieldWithLiterals;
3831
+ /** New counter value. */
3832
+ counter?: number;
3833
+ }
3834
+ /** @oneof */
3835
+ interface PostCountersUpdatedInitiatorOneOf {
3836
+ /**
3837
+ * Member ID of person who triggered the counter update
3838
3838
  * @format GUID
3839
3839
  */
3840
- tagIds?: string[];
3840
+ memberId?: string | null;
3841
3841
  /**
3842
- * Sorting options.
3843
- *
3844
- * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3845
- * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3846
- * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3847
- * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3848
- * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3849
- * - `TITLE_ASC`: Ordered by `title` in ascending order.
3850
- * - `TITLE_DESC`: Ordered by `title` in descending order.
3851
- * - `RATING`: reserved for internal use.
3852
- *
3853
- * Default: `FEED`
3842
+ * Visitor ID if person that liked the post is not logged in
3843
+ * @format GUID
3854
3844
  */
3855
- sort?: GetPostsSortWithLiterals;
3856
- /** Pagination options. */
3857
- paging?: BlogPaging;
3845
+ anonymousVisitorId?: string | null;
3846
+ }
3847
+ declare enum Field {
3848
+ /** Undefined field. */
3849
+ UNKNOWN = "UNKNOWN",
3850
+ /** Total comments field. */
3851
+ TOTAL_COMMENTS = "TOTAL_COMMENTS",
3852
+ /** Like count field. */
3853
+ LIKE_COUNT = "LIKE_COUNT",
3854
+ /** View count field. */
3855
+ VIEW_COUNT = "VIEW_COUNT",
3856
+ /** Rating count field. */
3857
+ RATING_COUNT = "RATING_COUNT"
3858
+ }
3859
+ /** @enumType */
3860
+ type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
3861
+ interface PostOwnerChanged {
3862
+ /**
3863
+ * Member ID of the post's owner before the change.
3864
+ * @internal
3865
+ * @format GUID
3866
+ */
3867
+ oldMemberId?: string;
3868
+ /**
3869
+ * Member ID of the post's owner after the change.
3870
+ * @internal
3871
+ * @format GUID
3872
+ */
3873
+ newMemberId?: string;
3874
+ }
3875
+ interface InitialPostsCopied {
3876
+ /** Number of posts copied. */
3877
+ count?: number;
3878
+ }
3879
+ interface GetPostRequest {
3880
+ /**
3881
+ * Post ID.
3882
+ * @minLength 1
3883
+ * @maxLength 38
3884
+ */
3885
+ postId: string;
3858
3886
  /**
3859
3887
  * __Deprecated.__ Use `fieldsets` instead.
3860
3888
  * This parameter will be removed on June 30, 2023.
3861
3889
  *
3862
3890
  * List of post fields to be included in the response.
3891
+ * @internal
3863
3892
  * @maxSize 20
3864
3893
  * @deprecated __Deprecated.__ Use `fieldsets` instead.
3865
3894
  * This parameter will be removed on June 30, 2023.
@@ -3869,20 +3898,6 @@ interface ListDemoPostsRequest {
3869
3898
  * @targetRemovalDate 2024-06-30
3870
3899
  */
3871
3900
  fieldsToInclude?: PostFieldFieldWithLiterals[];
3872
- /**
3873
- * Language filter.
3874
- *
3875
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3876
- * Pass a language to only receive posts that are in that language.
3877
- * If omitted, posts in all languages are returned.
3878
- * @format LANGUAGE_TAG
3879
- */
3880
- language?: string | null;
3881
- /**
3882
- * Post owner's member ID.
3883
- * @format GUID
3884
- */
3885
- memberId?: string | null;
3886
3901
  /**
3887
3902
  * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3888
3903
  * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
@@ -3891,52 +3906,6 @@ interface ListDemoPostsRequest {
3891
3906
  */
3892
3907
  fieldsets?: PostFieldFieldWithLiterals[];
3893
3908
  }
3894
- declare enum GetPostsSort {
3895
- /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3896
- FEED = "FEED",
3897
- /** Ordered by `firstPublishedDate` in ascending order. */
3898
- PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3899
- /** Ordered by `firstPublishedDate` in descending order. */
3900
- PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3901
- /** Ordered by total number of views in descending order. */
3902
- VIEW_COUNT = "VIEW_COUNT",
3903
- /** Ordered by total number of likes in descending order. */
3904
- LIKE_COUNT = "LIKE_COUNT",
3905
- /** Ordered by `title` in ascending order. */
3906
- TITLE_ASC = "TITLE_ASC",
3907
- /** Ordered by `title` in descending order. */
3908
- TITLE_DESC = "TITLE_DESC",
3909
- /**
3910
- * Sorting by post rating descending.
3911
- * @internal
3912
- */
3913
- RATING = "RATING"
3914
- }
3915
- /** @enumType */
3916
- type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3917
- interface BlogPaging {
3918
- /**
3919
- * Number of items to skip in the current sort order.
3920
- *
3921
- *
3922
- * Default: `0`
3923
- */
3924
- offset?: number;
3925
- /**
3926
- * Number of items to return.
3927
- *
3928
- *
3929
- * Default:`50`
3930
- * @min 1
3931
- * @max 100
3932
- */
3933
- limit?: number;
3934
- /**
3935
- * Pointer to the next or previous page in the list of results.
3936
- * @maxLength 2000
3937
- */
3938
- cursor?: string | null;
3939
- }
3940
3909
  declare enum PostFieldField {
3941
3910
  UNKNOWN = "UNKNOWN",
3942
3911
  /**
@@ -4018,127 +3987,6 @@ declare enum PostFieldField {
4018
3987
  }
4019
3988
  /** @enumType */
4020
3989
  type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
4021
- interface ListDemoPostsResponse {
4022
- /** List of posts. */
4023
- posts?: Post[];
4024
- /** Details on the paged set of results returned. */
4025
- metaData?: MetaData;
4026
- }
4027
- interface MetaData {
4028
- /** Number of items returned in this response. */
4029
- count?: number;
4030
- /** Requested offset. */
4031
- offset?: number;
4032
- /** Total number of items that match the query. */
4033
- total?: number;
4034
- /**
4035
- * Pointer to the next or previous page in the list of results.
4036
- * @maxLength 2000
4037
- */
4038
- cursor?: string | null;
4039
- }
4040
- interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
4041
- /**
4042
- * Member ID of person who triggered the counter update
4043
- * @format GUID
4044
- */
4045
- memberId?: string | null;
4046
- /**
4047
- * Visitor ID if person that liked the post is not logged in
4048
- * @format GUID
4049
- */
4050
- anonymousVisitorId?: string | null;
4051
- /**
4052
- * ID of the post which counters were updated.
4053
- * @format GUID
4054
- */
4055
- postId?: string;
4056
- /**
4057
- * Internal ID of the post which counters were updated.
4058
- * @internal
4059
- * @maxLength 24
4060
- */
4061
- postInternalId?: string;
4062
- /** Field of the updated counter. */
4063
- updatedCounterField?: FieldWithLiterals;
4064
- /** New counter value. */
4065
- counter?: number;
4066
- }
4067
- /** @oneof */
4068
- interface PostCountersUpdatedInitiatorOneOf {
4069
- /**
4070
- * Member ID of person who triggered the counter update
4071
- * @format GUID
4072
- */
4073
- memberId?: string | null;
4074
- /**
4075
- * Visitor ID if person that liked the post is not logged in
4076
- * @format GUID
4077
- */
4078
- anonymousVisitorId?: string | null;
4079
- }
4080
- declare enum Field {
4081
- /** Undefined field. */
4082
- UNKNOWN = "UNKNOWN",
4083
- /** Total comments field. */
4084
- TOTAL_COMMENTS = "TOTAL_COMMENTS",
4085
- /** Like count field. */
4086
- LIKE_COUNT = "LIKE_COUNT",
4087
- /** View count field. */
4088
- VIEW_COUNT = "VIEW_COUNT",
4089
- /** Rating count field. */
4090
- RATING_COUNT = "RATING_COUNT"
4091
- }
4092
- /** @enumType */
4093
- type FieldWithLiterals = Field | 'UNKNOWN' | 'TOTAL_COMMENTS' | 'LIKE_COUNT' | 'VIEW_COUNT' | 'RATING_COUNT';
4094
- interface PostOwnerChanged {
4095
- /**
4096
- * Member ID of the post's owner before the change.
4097
- * @internal
4098
- * @format GUID
4099
- */
4100
- oldMemberId?: string;
4101
- /**
4102
- * Member ID of the post's owner after the change.
4103
- * @internal
4104
- * @format GUID
4105
- */
4106
- newMemberId?: string;
4107
- }
4108
- interface InitialPostsCopied {
4109
- /** Number of posts copied. */
4110
- count?: number;
4111
- }
4112
- interface GetPostRequest {
4113
- /**
4114
- * Post ID.
4115
- * @minLength 1
4116
- * @maxLength 38
4117
- */
4118
- postId: string;
4119
- /**
4120
- * __Deprecated.__ Use `fieldsets` instead.
4121
- * This parameter will be removed on June 30, 2023.
4122
- *
4123
- * List of post fields to be included in the response.
4124
- * @internal
4125
- * @maxSize 20
4126
- * @deprecated __Deprecated.__ Use `fieldsets` instead.
4127
- * This parameter will be removed on June 30, 2023.
4128
- *
4129
- * List of post fields to be included in the response.
4130
- * @replacedBy fieldsets
4131
- * @targetRemovalDate 2024-06-30
4132
- */
4133
- fieldsToInclude?: PostFieldFieldWithLiterals[];
4134
- /**
4135
- * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
4136
- * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
4137
- * only the post’s base fields are returned.
4138
- * @maxSize 20
4139
- */
4140
- fieldsets?: PostFieldFieldWithLiterals[];
4141
- }
4142
3990
  interface GetPostResponse {
4143
3991
  /** Retrieved post info. */
4144
3992
  post?: Post;
@@ -4261,12 +4109,71 @@ interface ListPostsRequest {
4261
4109
  */
4262
4110
  fieldsets?: PostFieldFieldWithLiterals[];
4263
4111
  }
4112
+ declare enum GetPostsSort {
4113
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
4114
+ FEED = "FEED",
4115
+ /** Ordered by `firstPublishedDate` in ascending order. */
4116
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
4117
+ /** Ordered by `firstPublishedDate` in descending order. */
4118
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
4119
+ /** Ordered by total number of views in descending order. */
4120
+ VIEW_COUNT = "VIEW_COUNT",
4121
+ /** Ordered by total number of likes in descending order. */
4122
+ LIKE_COUNT = "LIKE_COUNT",
4123
+ /** Ordered by `title` in ascending order. */
4124
+ TITLE_ASC = "TITLE_ASC",
4125
+ /** Ordered by `title` in descending order. */
4126
+ TITLE_DESC = "TITLE_DESC",
4127
+ /**
4128
+ * Sorting by post rating descending.
4129
+ * @internal
4130
+ */
4131
+ RATING = "RATING"
4132
+ }
4133
+ /** @enumType */
4134
+ type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
4135
+ interface BlogPaging {
4136
+ /**
4137
+ * Number of items to skip in the current sort order.
4138
+ *
4139
+ *
4140
+ * Default: `0`
4141
+ */
4142
+ offset?: number;
4143
+ /**
4144
+ * Number of items to return.
4145
+ *
4146
+ *
4147
+ * Default:`50`
4148
+ * @min 1
4149
+ * @max 100
4150
+ */
4151
+ limit?: number;
4152
+ /**
4153
+ * Pointer to the next or previous page in the list of results.
4154
+ * @maxLength 2000
4155
+ */
4156
+ cursor?: string | null;
4157
+ }
4264
4158
  interface ListPostsResponse {
4265
4159
  /** List of retrieved posts. */
4266
4160
  posts?: Post[];
4267
4161
  /** Details on the paged set of results returned. */
4268
4162
  metaData?: MetaData;
4269
4163
  }
4164
+ interface MetaData {
4165
+ /** Number of items returned in this response. */
4166
+ count?: number;
4167
+ /** Requested offset. */
4168
+ offset?: number;
4169
+ /** Total number of items that match the query. */
4170
+ total?: number;
4171
+ /**
4172
+ * Pointer to the next or previous page in the list of results.
4173
+ * @maxLength 2000
4174
+ */
4175
+ cursor?: string | null;
4176
+ }
4270
4177
  interface QueryPostsRequest {
4271
4178
  /**
4272
4179
  * __Deprecated.__ Use `query` instead.
@@ -4718,6 +4625,99 @@ interface PostCount {
4718
4625
  /** Number of posts. */
4719
4626
  postCount?: number;
4720
4627
  }
4628
+ interface ListDemoPostsRequest {
4629
+ /**
4630
+ * Whether to return only featured posts.
4631
+ *
4632
+ * Default: `false`
4633
+ */
4634
+ featured?: boolean;
4635
+ /**
4636
+ * Hashtag filter.
4637
+ *
4638
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
4639
+ * If omitted, all posts with or without hashtags are returned.
4640
+ * @maxSize 100
4641
+ * @maxLength 100
4642
+ */
4643
+ hashtags?: string[];
4644
+ /**
4645
+ * Category filter.
4646
+ *
4647
+ * Pass an array of category IDs to return only posts with any of the provided categories.
4648
+ * If omitted, all posts with or without associated categories are returned.
4649
+ * @maxSize 50
4650
+ * @format GUID
4651
+ */
4652
+ categoryIds?: string[];
4653
+ /**
4654
+ * Tag filter.
4655
+ *
4656
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
4657
+ * If omitted, all posts with or without tags are returned.
4658
+ * @maxSize 50
4659
+ * @format GUID
4660
+ */
4661
+ tagIds?: string[];
4662
+ /**
4663
+ * Sorting options.
4664
+ *
4665
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
4666
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
4667
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
4668
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
4669
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
4670
+ * - `TITLE_ASC`: Ordered by `title` in ascending order.
4671
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
4672
+ * - `RATING`: reserved for internal use.
4673
+ *
4674
+ * Default: `FEED`
4675
+ */
4676
+ sort?: GetPostsSortWithLiterals;
4677
+ /** Pagination options. */
4678
+ paging?: BlogPaging;
4679
+ /**
4680
+ * __Deprecated.__ Use `fieldsets` instead.
4681
+ * This parameter will be removed on June 30, 2023.
4682
+ *
4683
+ * List of post fields to be included in the response.
4684
+ * @maxSize 20
4685
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
4686
+ * This parameter will be removed on June 30, 2023.
4687
+ *
4688
+ * List of post fields to be included in the response.
4689
+ * @replacedBy fieldsets
4690
+ * @targetRemovalDate 2024-06-30
4691
+ */
4692
+ fieldsToInclude?: PostFieldFieldWithLiterals[];
4693
+ /**
4694
+ * Language filter.
4695
+ *
4696
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4697
+ * Pass a language to only receive posts that are in that language.
4698
+ * If omitted, posts in all languages are returned.
4699
+ * @format LANGUAGE_TAG
4700
+ */
4701
+ language?: string | null;
4702
+ /**
4703
+ * Post owner's member ID.
4704
+ * @format GUID
4705
+ */
4706
+ memberId?: string | null;
4707
+ /**
4708
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
4709
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
4710
+ * only the post’s base fields are returned.
4711
+ * @maxSize 20
4712
+ */
4713
+ fieldsets?: PostFieldFieldWithLiterals[];
4714
+ }
4715
+ interface ListDemoPostsResponse {
4716
+ /** List of posts. */
4717
+ posts?: Post[];
4718
+ /** Details on the paged set of results returned. */
4719
+ metaData?: MetaData;
4720
+ }
4721
4721
  interface BaseEventMetadata {
4722
4722
  /**
4723
4723
  * App instance ID.