@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.
@@ -3671,172 +3671,6 @@ interface GetTotalPostsResponse {
3671
3671
  /** Total amount of published posts. */
3672
3672
  total?: number;
3673
3673
  }
3674
- interface ListDemoPostsRequest {
3675
- /**
3676
- * Whether to return only featured posts.
3677
- *
3678
- * Default: `false`
3679
- */
3680
- featured?: boolean;
3681
- /**
3682
- * Hashtag filter.
3683
- *
3684
- * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3685
- * If omitted, all posts with or without hashtags are returned.
3686
- * @maxSize 100
3687
- * @maxLength 100
3688
- */
3689
- hashtags?: string[];
3690
- /**
3691
- * Category filter.
3692
- *
3693
- * Pass an array of category IDs to return only posts with any of the provided categories.
3694
- * If omitted, all posts with or without associated categories are returned.
3695
- * @maxSize 50
3696
- * @format GUID
3697
- */
3698
- categoryIds?: string[];
3699
- /**
3700
- * Tag filter.
3701
- *
3702
- * Pass an array of tag IDs to return only posts with any of the provided tags.
3703
- * If omitted, all posts with or without tags are returned.
3704
- * @maxSize 50
3705
- * @format GUID
3706
- */
3707
- tagIds?: string[];
3708
- /**
3709
- * Sorting options.
3710
- *
3711
- * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3712
- * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3713
- * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3714
- * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3715
- * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3716
- * - `TITLE_ASC`: Ordered by `title` in ascending order.
3717
- * - `TITLE_DESC`: Ordered by `title` in descending order.
3718
- * - `RATING`: reserved for internal use.
3719
- *
3720
- * Default: `FEED`
3721
- */
3722
- sort?: GetPostsSortWithLiterals;
3723
- /** Pagination options. */
3724
- paging?: BlogPaging;
3725
- /**
3726
- * __Deprecated.__ Use `fieldsets` instead.
3727
- * This parameter will be removed on June 30, 2023.
3728
- *
3729
- * List of post fields to be included in the response.
3730
- * @maxSize 20
3731
- * @deprecated __Deprecated.__ Use `fieldsets` instead.
3732
- * This parameter will be removed on June 30, 2023.
3733
- *
3734
- * List of post fields to be included in the response.
3735
- * @replacedBy fieldsets
3736
- * @targetRemovalDate 2024-06-30
3737
- */
3738
- fieldsToInclude?: PostFieldFieldWithLiterals[];
3739
- /**
3740
- * Language filter.
3741
- *
3742
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3743
- * Pass a language to only receive posts that are in that language.
3744
- * If omitted, posts in all languages are returned.
3745
- * @format LANGUAGE_TAG
3746
- */
3747
- language?: string | null;
3748
- /**
3749
- * Post owner's member ID.
3750
- * @format GUID
3751
- */
3752
- memberId?: string | null;
3753
- /**
3754
- * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3755
- * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3756
- * only the post’s base fields are returned.
3757
- * @maxSize 20
3758
- */
3759
- fieldsets?: PostFieldFieldWithLiterals[];
3760
- }
3761
- declare enum GetPostsSort {
3762
- /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3763
- FEED = "FEED",
3764
- /** Ordered by `firstPublishedDate` in ascending order. */
3765
- PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3766
- /** Ordered by `firstPublishedDate` in descending order. */
3767
- PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3768
- /** Ordered by total number of views in descending order. */
3769
- VIEW_COUNT = "VIEW_COUNT",
3770
- /** Ordered by total number of likes in descending order. */
3771
- LIKE_COUNT = "LIKE_COUNT",
3772
- /** Ordered by `title` in ascending order. */
3773
- TITLE_ASC = "TITLE_ASC",
3774
- /** Ordered by `title` in descending order. */
3775
- TITLE_DESC = "TITLE_DESC"
3776
- }
3777
- /** @enumType */
3778
- type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3779
- interface BlogPaging {
3780
- /**
3781
- * Number of items to skip in the current sort order.
3782
- *
3783
- *
3784
- * Default: `0`
3785
- */
3786
- offset?: number;
3787
- /**
3788
- * Number of items to return.
3789
- *
3790
- *
3791
- * Default:`50`
3792
- * @min 1
3793
- * @max 100
3794
- */
3795
- limit?: number;
3796
- /**
3797
- * Pointer to the next or previous page in the list of results.
3798
- * @maxLength 2000
3799
- */
3800
- cursor?: string | null;
3801
- }
3802
- declare enum PostFieldField {
3803
- UNKNOWN = "UNKNOWN",
3804
- /** Includes post URL when present. */
3805
- URL = "URL",
3806
- /** Includes post content text string when present. */
3807
- CONTENT_TEXT = "CONTENT_TEXT",
3808
- /** Includes post metrics when present. */
3809
- METRICS = "METRICS",
3810
- /** Includes SEO data. */
3811
- SEO = "SEO",
3812
- /** Includes post owner's contact ID. */
3813
- CONTACT_ID = "CONTACT_ID",
3814
- /** Includes post rich content. */
3815
- RICH_CONTENT = "RICH_CONTENT",
3816
- /** Includes post reference ID field. */
3817
- REFERENCE_ID = "REFERENCE_ID"
3818
- }
3819
- /** @enumType */
3820
- type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3821
- interface ListDemoPostsResponse {
3822
- /** List of posts. */
3823
- posts?: Post[];
3824
- /** Details on the paged set of results returned. */
3825
- metaData?: MetaData;
3826
- }
3827
- interface MetaData {
3828
- /** Number of items returned in this response. */
3829
- count?: number;
3830
- /** Requested offset. */
3831
- offset?: number;
3832
- /** Total number of items that match the query. */
3833
- total?: number;
3834
- /**
3835
- * Pointer to the next or previous page in the list of results.
3836
- * @maxLength 2000
3837
- */
3838
- cursor?: string | null;
3839
- }
3840
3674
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
3841
3675
  /**
3842
3676
  * Member ID of person who triggered the counter update
@@ -3906,6 +3740,25 @@ interface GetPostRequest {
3906
3740
  */
3907
3741
  fieldsets?: PostFieldFieldWithLiterals[];
3908
3742
  }
3743
+ declare enum PostFieldField {
3744
+ UNKNOWN = "UNKNOWN",
3745
+ /** Includes post URL when present. */
3746
+ URL = "URL",
3747
+ /** Includes post content text string when present. */
3748
+ CONTENT_TEXT = "CONTENT_TEXT",
3749
+ /** Includes post metrics when present. */
3750
+ METRICS = "METRICS",
3751
+ /** Includes SEO data. */
3752
+ SEO = "SEO",
3753
+ /** Includes post owner's contact ID. */
3754
+ CONTACT_ID = "CONTACT_ID",
3755
+ /** Includes post rich content. */
3756
+ RICH_CONTENT = "RICH_CONTENT",
3757
+ /** Includes post reference ID field. */
3758
+ REFERENCE_ID = "REFERENCE_ID"
3759
+ }
3760
+ /** @enumType */
3761
+ type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3909
3762
  interface GetPostResponse {
3910
3763
  /** Retrieved post info. */
3911
3764
  post?: Post;
@@ -3998,12 +3851,66 @@ interface ListPostsRequest {
3998
3851
  */
3999
3852
  fieldsets?: PostFieldFieldWithLiterals[];
4000
3853
  }
3854
+ declare enum GetPostsSort {
3855
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3856
+ FEED = "FEED",
3857
+ /** Ordered by `firstPublishedDate` in ascending order. */
3858
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3859
+ /** Ordered by `firstPublishedDate` in descending order. */
3860
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3861
+ /** Ordered by total number of views in descending order. */
3862
+ VIEW_COUNT = "VIEW_COUNT",
3863
+ /** Ordered by total number of likes in descending order. */
3864
+ LIKE_COUNT = "LIKE_COUNT",
3865
+ /** Ordered by `title` in ascending order. */
3866
+ TITLE_ASC = "TITLE_ASC",
3867
+ /** Ordered by `title` in descending order. */
3868
+ TITLE_DESC = "TITLE_DESC"
3869
+ }
3870
+ /** @enumType */
3871
+ type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3872
+ interface BlogPaging {
3873
+ /**
3874
+ * Number of items to skip in the current sort order.
3875
+ *
3876
+ *
3877
+ * Default: `0`
3878
+ */
3879
+ offset?: number;
3880
+ /**
3881
+ * Number of items to return.
3882
+ *
3883
+ *
3884
+ * Default:`50`
3885
+ * @min 1
3886
+ * @max 100
3887
+ */
3888
+ limit?: number;
3889
+ /**
3890
+ * Pointer to the next or previous page in the list of results.
3891
+ * @maxLength 2000
3892
+ */
3893
+ cursor?: string | null;
3894
+ }
4001
3895
  interface ListPostsResponse {
4002
3896
  /** List of retrieved posts. */
4003
3897
  posts?: Post[];
4004
3898
  /** Details on the paged set of results returned. */
4005
3899
  metaData?: MetaData;
4006
3900
  }
3901
+ interface MetaData {
3902
+ /** Number of items returned in this response. */
3903
+ count?: number;
3904
+ /** Requested offset. */
3905
+ offset?: number;
3906
+ /** Total number of items that match the query. */
3907
+ total?: number;
3908
+ /**
3909
+ * Pointer to the next or previous page in the list of results.
3910
+ * @maxLength 2000
3911
+ */
3912
+ cursor?: string | null;
3913
+ }
4007
3914
  interface QueryPostsRequest {
4008
3915
  /** Query options. */
4009
3916
  query?: PlatformQuery;
@@ -4362,6 +4269,99 @@ interface PostCount {
4362
4269
  /** Number of posts. */
4363
4270
  postCount?: number;
4364
4271
  }
4272
+ interface ListDemoPostsRequest {
4273
+ /**
4274
+ * Whether to return only featured posts.
4275
+ *
4276
+ * Default: `false`
4277
+ */
4278
+ featured?: boolean;
4279
+ /**
4280
+ * Hashtag filter.
4281
+ *
4282
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
4283
+ * If omitted, all posts with or without hashtags are returned.
4284
+ * @maxSize 100
4285
+ * @maxLength 100
4286
+ */
4287
+ hashtags?: string[];
4288
+ /**
4289
+ * Category filter.
4290
+ *
4291
+ * Pass an array of category IDs to return only posts with any of the provided categories.
4292
+ * If omitted, all posts with or without associated categories are returned.
4293
+ * @maxSize 50
4294
+ * @format GUID
4295
+ */
4296
+ categoryIds?: string[];
4297
+ /**
4298
+ * Tag filter.
4299
+ *
4300
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
4301
+ * If omitted, all posts with or without tags are returned.
4302
+ * @maxSize 50
4303
+ * @format GUID
4304
+ */
4305
+ tagIds?: string[];
4306
+ /**
4307
+ * Sorting options.
4308
+ *
4309
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
4310
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
4311
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
4312
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
4313
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
4314
+ * - `TITLE_ASC`: Ordered by `title` in ascending order.
4315
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
4316
+ * - `RATING`: reserved for internal use.
4317
+ *
4318
+ * Default: `FEED`
4319
+ */
4320
+ sort?: GetPostsSortWithLiterals;
4321
+ /** Pagination options. */
4322
+ paging?: BlogPaging;
4323
+ /**
4324
+ * __Deprecated.__ Use `fieldsets` instead.
4325
+ * This parameter will be removed on June 30, 2023.
4326
+ *
4327
+ * List of post fields to be included in the response.
4328
+ * @maxSize 20
4329
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
4330
+ * This parameter will be removed on June 30, 2023.
4331
+ *
4332
+ * List of post fields to be included in the response.
4333
+ * @replacedBy fieldsets
4334
+ * @targetRemovalDate 2024-06-30
4335
+ */
4336
+ fieldsToInclude?: PostFieldFieldWithLiterals[];
4337
+ /**
4338
+ * Language filter.
4339
+ *
4340
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
4341
+ * Pass a language to only receive posts that are in that language.
4342
+ * If omitted, posts in all languages are returned.
4343
+ * @format LANGUAGE_TAG
4344
+ */
4345
+ language?: string | null;
4346
+ /**
4347
+ * Post owner's member ID.
4348
+ * @format GUID
4349
+ */
4350
+ memberId?: string | null;
4351
+ /**
4352
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
4353
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
4354
+ * only the post’s base fields are returned.
4355
+ * @maxSize 20
4356
+ */
4357
+ fieldsets?: PostFieldFieldWithLiterals[];
4358
+ }
4359
+ interface ListDemoPostsResponse {
4360
+ /** List of posts. */
4361
+ posts?: Post[];
4362
+ /** Details on the paged set of results returned. */
4363
+ metaData?: MetaData;
4364
+ }
4365
4365
 
4366
4366
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4367
4367
  getUrl: (context: any) => string;
package/build/cjs/meta.js CHANGED
@@ -1744,17 +1744,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
1744
1744
  Order2["NEWEST"] = "NEWEST";
1745
1745
  return Order2;
1746
1746
  })(Order || {});
1747
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1748
- GetPostsSort2["FEED"] = "FEED";
1749
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1750
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1751
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1752
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1753
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1754
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1755
- GetPostsSort2["RATING"] = "RATING";
1756
- return GetPostsSort2;
1757
- })(GetPostsSort || {});
1747
+ var Field = /* @__PURE__ */ ((Field2) => {
1748
+ Field2["UNKNOWN"] = "UNKNOWN";
1749
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1750
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1751
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1752
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1753
+ return Field2;
1754
+ })(Field || {});
1758
1755
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1759
1756
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1760
1757
  PostFieldField2["COUNTERS"] = "COUNTERS";
@@ -1778,14 +1775,17 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1778
1775
  PostFieldField2["IMAGE"] = "IMAGE";
1779
1776
  return PostFieldField2;
1780
1777
  })(PostFieldField || {});
1781
- var Field = /* @__PURE__ */ ((Field2) => {
1782
- Field2["UNKNOWN"] = "UNKNOWN";
1783
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1784
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1785
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1786
- Field2["RATING_COUNT"] = "RATING_COUNT";
1787
- return Field2;
1788
- })(Field || {});
1778
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1779
+ GetPostsSort2["FEED"] = "FEED";
1780
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1781
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1782
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1783
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1784
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1785
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1786
+ GetPostsSort2["RATING"] = "RATING";
1787
+ return GetPostsSort2;
1788
+ })(GetPostsSort || {});
1789
1789
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1790
1790
  SortOrder2["ASC"] = "ASC";
1791
1791
  SortOrder2["DESC"] = "DESC";