@wix/auto_sdk_blog_posts 1.0.162 → 1.0.164

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +11 -15
  2. package/build/cjs/index.js +29 -34
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +207 -219
  5. package/build/cjs/index.typings.js +24 -24
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +188 -188
  8. package/build/cjs/meta.js +18 -18
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +85 -86
  11. package/build/cjs/schemas.js +149 -154
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +11 -15
  14. package/build/es/index.mjs +29 -34
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +207 -219
  17. package/build/es/index.typings.mjs +24 -24
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +188 -188
  20. package/build/es/meta.mjs +18 -18
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +85 -86
  23. package/build/es/schemas.mjs +149 -154
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +11 -15
  26. package/build/internal/cjs/index.js +29 -34
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +207 -219
  29. package/build/internal/cjs/index.typings.js +24 -24
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +188 -188
  32. package/build/internal/cjs/meta.js +18 -18
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +85 -86
  35. package/build/internal/cjs/schemas.js +149 -154
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +11 -15
  38. package/build/internal/es/index.mjs +29 -34
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +207 -219
  41. package/build/internal/es/index.typings.mjs +24 -24
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +188 -188
  44. package/build/internal/es/meta.mjs +18 -18
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +85 -86
  47. package/build/internal/es/schemas.mjs +149 -154
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -3173,194 +3173,6 @@ interface GetTotalPostsResponse {
3173
3173
  /** Total amount of published posts. */
3174
3174
  total?: number;
3175
3175
  }
3176
- interface ListDemoPostsRequest {
3177
- /**
3178
- * Whether to return only featured posts.
3179
- *
3180
- * Default: `false`
3181
- */
3182
- featured?: boolean;
3183
- /**
3184
- * Hashtag filter.
3185
- *
3186
- * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3187
- * If omitted, all posts with or without hashtags are returned.
3188
- * @maxSize 100
3189
- * @maxLength 100
3190
- */
3191
- hashtags?: string[];
3192
- /**
3193
- * Category filter.
3194
- *
3195
- * Pass an array of category IDs to return only posts with any of the provided categories.
3196
- * If omitted, all posts with or without associated categories are returned.
3197
- * @maxSize 50
3198
- * @format GUID
3199
- */
3200
- categoryIds?: string[];
3201
- /**
3202
- * Tag filter.
3203
- *
3204
- * Pass an array of tag IDs to return only posts with any of the provided tags.
3205
- * If omitted, all posts with or without tags are returned.
3206
- * @maxSize 50
3207
- * @format GUID
3208
- */
3209
- tagIds?: string[];
3210
- /**
3211
- * Sorting options.
3212
- *
3213
- * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3214
- * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3215
- * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3216
- * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3217
- * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3218
- * - `TITLE_ASC`: Ordered by `title` in ascending order.
3219
- * - `TITLE_DESC`: Ordered by `title` in descending order.
3220
- * - `RATING`: reserved for internal use.
3221
- *
3222
- * Default: `FEED`
3223
- */
3224
- sort?: GetPostsSortWithLiterals;
3225
- /** Pagination options. */
3226
- paging?: BlogPaging;
3227
- /**
3228
- * __Deprecated.__ Use `fieldsets` instead.
3229
- * This parameter will be removed on June 30, 2023.
3230
- *
3231
- * List of post fields to be included in the response.
3232
- * @maxSize 20
3233
- * @deprecated __Deprecated.__ Use `fieldsets` instead.
3234
- * This parameter will be removed on June 30, 2023.
3235
- *
3236
- * List of post fields to be included in the response.
3237
- * @replacedBy fieldsets
3238
- * @targetRemovalDate 2024-06-30
3239
- */
3240
- fieldsToInclude?: PostFieldFieldWithLiterals[];
3241
- /**
3242
- * Language filter.
3243
- *
3244
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3245
- * Pass a language to only receive posts that are in that language.
3246
- * If omitted, posts in all languages are returned.
3247
- * @format LANGUAGE_TAG
3248
- */
3249
- language?: string | null;
3250
- /**
3251
- * Post owner's member ID.
3252
- * @format GUID
3253
- */
3254
- memberId?: string | null;
3255
- /**
3256
- * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3257
- * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3258
- * only the post’s base fields are returned.
3259
- * @maxSize 20
3260
- */
3261
- fieldsets?: PostFieldFieldWithLiterals[];
3262
- }
3263
- declare enum GetPostsSort {
3264
- /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3265
- FEED = "FEED",
3266
- /** Ordered by `firstPublishedDate` in ascending order. */
3267
- PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3268
- /** Ordered by `firstPublishedDate` in descending order. */
3269
- PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3270
- /** Ordered by total number of views in descending order. */
3271
- VIEW_COUNT = "VIEW_COUNT",
3272
- /** Ordered by total number of likes in descending order. */
3273
- LIKE_COUNT = "LIKE_COUNT",
3274
- /** Ordered by `title` in ascending order. */
3275
- TITLE_ASC = "TITLE_ASC",
3276
- /** Ordered by `title` in descending order. */
3277
- TITLE_DESC = "TITLE_DESC"
3278
- }
3279
- /** @enumType */
3280
- type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3281
- interface BlogPaging {
3282
- /**
3283
- * Number of items to skip in the current sort order.
3284
- *
3285
- *
3286
- * Default: `0`
3287
- */
3288
- offset?: number;
3289
- /**
3290
- * Number of items to return.
3291
- *
3292
- *
3293
- * Default:`50`
3294
- * @min 1
3295
- * @max 100
3296
- */
3297
- limit?: number;
3298
- /**
3299
- * Pointer to the next or previous page in the list of results.
3300
- * @maxLength 2000
3301
- */
3302
- cursor?: string | null;
3303
- }
3304
- declare enum PostFieldField {
3305
- UNKNOWN = "UNKNOWN",
3306
- /** Includes post URL when present. */
3307
- URL = "URL",
3308
- /** Includes post content text string when present. */
3309
- CONTENT_TEXT = "CONTENT_TEXT",
3310
- /** Includes post metrics when present. */
3311
- METRICS = "METRICS",
3312
- /** Includes SEO data. */
3313
- SEO = "SEO",
3314
- /** Includes post owner's contact ID. */
3315
- CONTACT_ID = "CONTACT_ID",
3316
- /** Includes post rich content. */
3317
- RICH_CONTENT = "RICH_CONTENT",
3318
- /** Includes post reference ID field. */
3319
- REFERENCE_ID = "REFERENCE_ID"
3320
- }
3321
- /** @enumType */
3322
- type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3323
- interface ListDemoPostsResponse {
3324
- /** List of posts. */
3325
- posts?: Post[];
3326
- /** Details on the paged set of results returned. */
3327
- metaData?: MetaData;
3328
- }
3329
- interface MetaData {
3330
- /** Number of items returned in this response. */
3331
- count?: number;
3332
- /** Requested offset. */
3333
- offset?: number;
3334
- /** Total number of items that match the query. */
3335
- total?: number;
3336
- /**
3337
- * Pointer to the next or previous page in the list of results.
3338
- * @maxLength 2000
3339
- */
3340
- cursor?: string | null;
3341
- }
3342
- interface ConvertDraftJsToRichContentRequest {
3343
- /** DraftJs content to convert to Rich content. */
3344
- content?: Record<string, any> | null;
3345
- }
3346
- interface ConvertDraftJsToRichContentResponse {
3347
- /**
3348
- * Rich content converted from DraftJs content.
3349
- * @maxLength 2000000
3350
- */
3351
- richContent?: string;
3352
- }
3353
- interface ConvertRichContentToDraftJsRequest {
3354
- /**
3355
- * Rich content to convert to DraftJs content.
3356
- * @maxLength 2000000
3357
- */
3358
- richContent?: string;
3359
- }
3360
- interface ConvertRichContentToDraftJsResponse {
3361
- /** DraftJs content converted from Rich content. */
3362
- content?: Record<string, any> | null;
3363
- }
3364
3176
  interface PostCountersUpdated extends PostCountersUpdatedInitiatorOneOf {
3365
3177
  /**
3366
3178
  * Member ID of person who triggered the counter update
@@ -3430,6 +3242,25 @@ interface GetPostRequest {
3430
3242
  */
3431
3243
  fieldsets?: PostFieldFieldWithLiterals[];
3432
3244
  }
3245
+ declare enum PostFieldField {
3246
+ UNKNOWN = "UNKNOWN",
3247
+ /** Includes post URL when present. */
3248
+ URL = "URL",
3249
+ /** Includes post content text string when present. */
3250
+ CONTENT_TEXT = "CONTENT_TEXT",
3251
+ /** Includes post metrics when present. */
3252
+ METRICS = "METRICS",
3253
+ /** Includes SEO data. */
3254
+ SEO = "SEO",
3255
+ /** Includes post owner's contact ID. */
3256
+ CONTACT_ID = "CONTACT_ID",
3257
+ /** Includes post rich content. */
3258
+ RICH_CONTENT = "RICH_CONTENT",
3259
+ /** Includes post reference ID field. */
3260
+ REFERENCE_ID = "REFERENCE_ID"
3261
+ }
3262
+ /** @enumType */
3263
+ type PostFieldFieldWithLiterals = PostFieldField | 'UNKNOWN' | 'URL' | 'CONTENT_TEXT' | 'METRICS' | 'SEO' | 'CONTACT_ID' | 'RICH_CONTENT' | 'REFERENCE_ID';
3433
3264
  interface GetPostResponse {
3434
3265
  /** Retrieved post info. */
3435
3266
  post?: Post;
@@ -3522,12 +3353,66 @@ interface ListPostsRequest {
3522
3353
  */
3523
3354
  fieldsets?: PostFieldFieldWithLiterals[];
3524
3355
  }
3356
+ declare enum GetPostsSort {
3357
+ /** Ordered by `firstPublishedDate` in descending order with pinned posts first. */
3358
+ FEED = "FEED",
3359
+ /** Ordered by `firstPublishedDate` in ascending order. */
3360
+ PUBLISHED_DATE_ASC = "PUBLISHED_DATE_ASC",
3361
+ /** Ordered by `firstPublishedDate` in descending order. */
3362
+ PUBLISHED_DATE_DESC = "PUBLISHED_DATE_DESC",
3363
+ /** Ordered by total number of views in descending order. */
3364
+ VIEW_COUNT = "VIEW_COUNT",
3365
+ /** Ordered by total number of likes in descending order. */
3366
+ LIKE_COUNT = "LIKE_COUNT",
3367
+ /** Ordered by `title` in ascending order. */
3368
+ TITLE_ASC = "TITLE_ASC",
3369
+ /** Ordered by `title` in descending order. */
3370
+ TITLE_DESC = "TITLE_DESC"
3371
+ }
3372
+ /** @enumType */
3373
+ type GetPostsSortWithLiterals = GetPostsSort | 'FEED' | 'PUBLISHED_DATE_ASC' | 'PUBLISHED_DATE_DESC' | 'VIEW_COUNT' | 'LIKE_COUNT' | 'TITLE_ASC' | 'TITLE_DESC';
3374
+ interface BlogPaging {
3375
+ /**
3376
+ * Number of items to skip in the current sort order.
3377
+ *
3378
+ *
3379
+ * Default: `0`
3380
+ */
3381
+ offset?: number;
3382
+ /**
3383
+ * Number of items to return.
3384
+ *
3385
+ *
3386
+ * Default:`50`
3387
+ * @min 1
3388
+ * @max 100
3389
+ */
3390
+ limit?: number;
3391
+ /**
3392
+ * Pointer to the next or previous page in the list of results.
3393
+ * @maxLength 2000
3394
+ */
3395
+ cursor?: string | null;
3396
+ }
3525
3397
  interface ListPostsResponse {
3526
3398
  /** List of retrieved posts. */
3527
3399
  posts?: Post[];
3528
3400
  /** Details on the paged set of results returned. */
3529
3401
  metaData?: MetaData;
3530
3402
  }
3403
+ interface MetaData {
3404
+ /** Number of items returned in this response. */
3405
+ count?: number;
3406
+ /** Requested offset. */
3407
+ offset?: number;
3408
+ /** Total number of items that match the query. */
3409
+ total?: number;
3410
+ /**
3411
+ * Pointer to the next or previous page in the list of results.
3412
+ * @maxLength 2000
3413
+ */
3414
+ cursor?: string | null;
3415
+ }
3531
3416
  interface QueryPostsRequest {
3532
3417
  /** Query options. */
3533
3418
  query?: PlatformQuery;
@@ -3871,6 +3756,121 @@ interface PostCount {
3871
3756
  /** Number of posts. */
3872
3757
  postCount?: number;
3873
3758
  }
3759
+ interface ListDemoPostsRequest {
3760
+ /**
3761
+ * Whether to return only featured posts.
3762
+ *
3763
+ * Default: `false`
3764
+ */
3765
+ featured?: boolean;
3766
+ /**
3767
+ * Hashtag filter.
3768
+ *
3769
+ * Pass an array of hashtags to return only posts containing any of the provided hashtags.
3770
+ * If omitted, all posts with or without hashtags are returned.
3771
+ * @maxSize 100
3772
+ * @maxLength 100
3773
+ */
3774
+ hashtags?: string[];
3775
+ /**
3776
+ * Category filter.
3777
+ *
3778
+ * Pass an array of category IDs to return only posts with any of the provided categories.
3779
+ * If omitted, all posts with or without associated categories are returned.
3780
+ * @maxSize 50
3781
+ * @format GUID
3782
+ */
3783
+ categoryIds?: string[];
3784
+ /**
3785
+ * Tag filter.
3786
+ *
3787
+ * Pass an array of tag IDs to return only posts with any of the provided tags.
3788
+ * If omitted, all posts with or without tags are returned.
3789
+ * @maxSize 50
3790
+ * @format GUID
3791
+ */
3792
+ tagIds?: string[];
3793
+ /**
3794
+ * Sorting options.
3795
+ *
3796
+ * - `FEED`: Ordered by `firstPublishedDate` in descending order with pinned posts first.
3797
+ * - `VIEW_COUNT`: Ordered by total number of views in descending order.
3798
+ * - `LIKE_COUNT`: Ordered by total number of likes in descending order.
3799
+ * - `PUBLISHED_DATE_ASC`: Ordered by `firstPublishedDate` in ascending order.
3800
+ * - `PUBLISHED_DATE_DESC`: Ordered by `firstPublishedDate` in descending order.
3801
+ * - `TITLE_ASC`: Ordered by `title` in ascending order.
3802
+ * - `TITLE_DESC`: Ordered by `title` in descending order.
3803
+ * - `RATING`: reserved for internal use.
3804
+ *
3805
+ * Default: `FEED`
3806
+ */
3807
+ sort?: GetPostsSortWithLiterals;
3808
+ /** Pagination options. */
3809
+ paging?: BlogPaging;
3810
+ /**
3811
+ * __Deprecated.__ Use `fieldsets` instead.
3812
+ * This parameter will be removed on June 30, 2023.
3813
+ *
3814
+ * List of post fields to be included in the response.
3815
+ * @maxSize 20
3816
+ * @deprecated __Deprecated.__ Use `fieldsets` instead.
3817
+ * This parameter will be removed on June 30, 2023.
3818
+ *
3819
+ * List of post fields to be included in the response.
3820
+ * @replacedBy fieldsets
3821
+ * @targetRemovalDate 2024-06-30
3822
+ */
3823
+ fieldsToInclude?: PostFieldFieldWithLiterals[];
3824
+ /**
3825
+ * Language filter.
3826
+ *
3827
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
3828
+ * Pass a language to only receive posts that are in that language.
3829
+ * If omitted, posts in all languages are returned.
3830
+ * @format LANGUAGE_TAG
3831
+ */
3832
+ language?: string | null;
3833
+ /**
3834
+ * Post owner's member ID.
3835
+ * @format GUID
3836
+ */
3837
+ memberId?: string | null;
3838
+ /**
3839
+ * List of additional post fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
3840
+ * the response in addition to the post’s base fields. Base fields don’t include any of the supported fieldset values. By default
3841
+ * only the post’s base fields are returned.
3842
+ * @maxSize 20
3843
+ */
3844
+ fieldsets?: PostFieldFieldWithLiterals[];
3845
+ }
3846
+ interface ListDemoPostsResponse {
3847
+ /** List of posts. */
3848
+ posts?: Post[];
3849
+ /** Details on the paged set of results returned. */
3850
+ metaData?: MetaData;
3851
+ }
3852
+ interface ConvertDraftJsToRichContentRequest {
3853
+ /** DraftJs content to convert to Rich content. */
3854
+ content?: Record<string, any> | null;
3855
+ }
3856
+ interface ConvertDraftJsToRichContentResponse {
3857
+ /**
3858
+ * Rich content converted from DraftJs content.
3859
+ * @maxLength 2000000
3860
+ */
3861
+ richContent?: string;
3862
+ }
3863
+ interface ConvertRichContentToDraftJsRequest {
3864
+ /**
3865
+ * Rich content to convert to DraftJs content.
3866
+ * @maxLength 2000000
3867
+ */
3868
+ richContent?: string;
3869
+ }
3870
+ interface ConvertRichContentToDraftJsResponse {
3871
+ /** DraftJs content converted from Rich content. */
3872
+ content?: Record<string, any> | null;
3873
+ }
3874
3874
 
3875
3875
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
3876
3876
  getUrl: (context: any) => string;
package/build/cjs/meta.js CHANGED
@@ -1605,16 +1605,14 @@ var Order = /* @__PURE__ */ ((Order2) => {
1605
1605
  Order2["NEWEST"] = "NEWEST";
1606
1606
  return Order2;
1607
1607
  })(Order || {});
1608
- var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1609
- GetPostsSort2["FEED"] = "FEED";
1610
- GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1611
- GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1612
- GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1613
- GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1614
- GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1615
- GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1616
- return GetPostsSort2;
1617
- })(GetPostsSort || {});
1608
+ var Field = /* @__PURE__ */ ((Field2) => {
1609
+ Field2["UNKNOWN"] = "UNKNOWN";
1610
+ Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1611
+ Field2["LIKE_COUNT"] = "LIKE_COUNT";
1612
+ Field2["VIEW_COUNT"] = "VIEW_COUNT";
1613
+ Field2["RATING_COUNT"] = "RATING_COUNT";
1614
+ return Field2;
1615
+ })(Field || {});
1618
1616
  var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1619
1617
  PostFieldField2["UNKNOWN"] = "UNKNOWN";
1620
1618
  PostFieldField2["URL"] = "URL";
@@ -1626,14 +1624,16 @@ var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
1626
1624
  PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
1627
1625
  return PostFieldField2;
1628
1626
  })(PostFieldField || {});
1629
- var Field = /* @__PURE__ */ ((Field2) => {
1630
- Field2["UNKNOWN"] = "UNKNOWN";
1631
- Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
1632
- Field2["LIKE_COUNT"] = "LIKE_COUNT";
1633
- Field2["VIEW_COUNT"] = "VIEW_COUNT";
1634
- Field2["RATING_COUNT"] = "RATING_COUNT";
1635
- return Field2;
1636
- })(Field || {});
1627
+ var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
1628
+ GetPostsSort2["FEED"] = "FEED";
1629
+ GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
1630
+ GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
1631
+ GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
1632
+ GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
1633
+ GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
1634
+ GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
1635
+ return GetPostsSort2;
1636
+ })(GetPostsSort || {});
1637
1637
  var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1638
1638
  SortOrder2["ASC"] = "ASC";
1639
1639
  SortOrder2["DESC"] = "DESC";