@wix/auto_sdk_blog_posts 1.0.121 → 1.0.123

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 (37) hide show
  1. package/build/cjs/index.d.ts +4 -4
  2. package/build/cjs/index.js +75 -74
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +352 -144
  5. package/build/cjs/index.typings.js +51 -55
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +215 -145
  8. package/build/cjs/meta.js +43 -29
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +4 -4
  11. package/build/es/index.mjs +72 -74
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +352 -144
  14. package/build/es/index.typings.mjs +48 -55
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +215 -145
  17. package/build/es/meta.mjs +43 -29
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +4 -4
  20. package/build/internal/cjs/index.js +75 -74
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +353 -145
  23. package/build/internal/cjs/index.typings.js +51 -55
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +215 -145
  26. package/build/internal/cjs/meta.js +43 -29
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +4 -4
  29. package/build/internal/es/index.mjs +72 -74
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +353 -145
  32. package/build/internal/es/index.typings.mjs +48 -55
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +215 -145
  35. package/build/internal/es/meta.mjs +43 -29
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +4 -4
@@ -31,6 +31,7 @@ __export(index_typings_exports, {
31
31
  Direction: () => Direction,
32
32
  DividerDataAlignment: () => DividerDataAlignment,
33
33
  Field: () => Field,
34
+ Filter: () => Filter,
34
35
  FontType: () => FontType,
35
36
  GIFType: () => GIFType,
36
37
  GetPostTemplatesSort: () => GetPostTemplatesSort,
@@ -53,10 +54,12 @@ __export(index_typings_exports, {
53
54
  PollLayoutType: () => PollLayoutType,
54
55
  Position: () => Position,
55
56
  PostFieldField: () => PostFieldField,
57
+ QueryBuilder: () => QueryBuilder,
56
58
  QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
57
59
  Resizing: () => Resizing,
58
60
  ResponsivenessBehaviour: () => ResponsivenessBehaviour,
59
61
  Scaling: () => Scaling,
62
+ Sort: () => Sort,
60
63
  SortOrder: () => SortOrder,
61
64
  Source: () => Source,
62
65
  Status: () => Status,
@@ -294,6 +297,10 @@ function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opt
294
297
  {
295
298
  srcPath: "/_api/communities-blog-node-api",
296
299
  destPath: ""
300
+ },
301
+ {
302
+ srcPath: "/_api/communities-blog-node-api/v3/multilingual",
303
+ destPath: "/v3/multilingual"
297
304
  }
298
305
  ],
299
306
  "social-blog._base_domain_": [
@@ -412,8 +419,6 @@ function getPost(payload) {
412
419
  paths: [
413
420
  { path: "post.firstPublishedDate" },
414
421
  { path: "post.lastPublishedDate" },
415
- { path: "post.coverMedia.image.urlExpirationDate" },
416
- { path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
417
422
  { path: "post.heroImage.urlExpirationDate" },
418
423
  { path: "post.richContent.metadata.createdTimestamp" },
419
424
  { path: "post.richContent.metadata.updatedTimestamp" },
@@ -437,10 +442,6 @@ function getPost(payload) {
437
442
  {
438
443
  transformFn: import_float.transformRESTFloatToSDKFloat,
439
444
  paths: [
440
- { path: "post.coverMedia.image.focalPoint.x" },
441
- { path: "post.coverMedia.image.focalPoint.y" },
442
- { path: "post.coverMedia.video.thumbnail.focalPoint.x" },
443
- { path: "post.coverMedia.video.thumbnail.focalPoint.y" },
444
445
  { path: "post.heroImage.focalPoint.x" },
445
446
  { path: "post.heroImage.focalPoint.y" },
446
447
  { path: "post.media.wixMedia.image.focalPoint.x" },
@@ -478,7 +479,14 @@ function getPost(payload) {
478
479
  { path: "post.richContent.nodes.videoData.video.duration" },
479
480
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
480
481
  { path: "post.richContent.nodes.audioData.audio.duration" },
481
- { path: "post.richContent.nodes.audioData.coverImage.duration" }
482
+ { path: "post.richContent.nodes.audioData.coverImage.duration" },
483
+ {
484
+ path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
485
+ },
486
+ {
487
+ path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
488
+ },
489
+ { path: "post.richContent.nodes.shapeData.shape.duration" }
482
490
  ]
483
491
  }
484
492
  ])
@@ -509,8 +517,6 @@ function getPostBySlug(payload) {
509
517
  paths: [
510
518
  { path: "post.firstPublishedDate" },
511
519
  { path: "post.lastPublishedDate" },
512
- { path: "post.coverMedia.image.urlExpirationDate" },
513
- { path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
514
520
  { path: "post.heroImage.urlExpirationDate" },
515
521
  { path: "post.richContent.metadata.createdTimestamp" },
516
522
  { path: "post.richContent.metadata.updatedTimestamp" },
@@ -534,10 +540,6 @@ function getPostBySlug(payload) {
534
540
  {
535
541
  transformFn: import_float.transformRESTFloatToSDKFloat,
536
542
  paths: [
537
- { path: "post.coverMedia.image.focalPoint.x" },
538
- { path: "post.coverMedia.image.focalPoint.y" },
539
- { path: "post.coverMedia.video.thumbnail.focalPoint.x" },
540
- { path: "post.coverMedia.video.thumbnail.focalPoint.y" },
541
543
  { path: "post.heroImage.focalPoint.x" },
542
544
  { path: "post.heroImage.focalPoint.y" },
543
545
  { path: "post.media.wixMedia.image.focalPoint.x" },
@@ -575,7 +577,14 @@ function getPostBySlug(payload) {
575
577
  { path: "post.richContent.nodes.videoData.video.duration" },
576
578
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
577
579
  { path: "post.richContent.nodes.audioData.audio.duration" },
578
- { path: "post.richContent.nodes.audioData.coverImage.duration" }
580
+ { path: "post.richContent.nodes.audioData.coverImage.duration" },
581
+ {
582
+ path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
583
+ },
584
+ {
585
+ path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
586
+ },
587
+ { path: "post.richContent.nodes.shapeData.shape.duration" }
579
588
  ]
580
589
  }
581
590
  ])
@@ -606,8 +615,6 @@ function listPosts(payload) {
606
615
  paths: [
607
616
  { path: "posts.firstPublishedDate" },
608
617
  { path: "posts.lastPublishedDate" },
609
- { path: "posts.coverMedia.image.urlExpirationDate" },
610
- { path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
611
618
  { path: "posts.heroImage.urlExpirationDate" },
612
619
  { path: "posts.richContent.metadata.createdTimestamp" },
613
620
  { path: "posts.richContent.metadata.updatedTimestamp" },
@@ -633,10 +640,6 @@ function listPosts(payload) {
633
640
  {
634
641
  transformFn: import_float.transformRESTFloatToSDKFloat,
635
642
  paths: [
636
- { path: "posts.coverMedia.image.focalPoint.x" },
637
- { path: "posts.coverMedia.image.focalPoint.y" },
638
- { path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
639
- { path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
640
643
  { path: "posts.heroImage.focalPoint.x" },
641
644
  { path: "posts.heroImage.focalPoint.y" },
642
645
  { path: "posts.media.wixMedia.image.focalPoint.x" },
@@ -676,7 +679,14 @@ function listPosts(payload) {
676
679
  { path: "posts.richContent.nodes.videoData.video.duration" },
677
680
  { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
678
681
  { path: "posts.richContent.nodes.audioData.audio.duration" },
679
- { path: "posts.richContent.nodes.audioData.coverImage.duration" }
682
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
683
+ {
684
+ path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
685
+ },
686
+ {
687
+ path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
688
+ },
689
+ { path: "posts.richContent.nodes.shapeData.shape.duration" }
680
690
  ]
681
691
  }
682
692
  ])
@@ -707,8 +717,6 @@ function queryPosts(payload) {
707
717
  paths: [
708
718
  { path: "posts.firstPublishedDate" },
709
719
  { path: "posts.lastPublishedDate" },
710
- { path: "posts.coverMedia.image.urlExpirationDate" },
711
- { path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
712
720
  { path: "posts.heroImage.urlExpirationDate" },
713
721
  { path: "posts.richContent.metadata.createdTimestamp" },
714
722
  { path: "posts.richContent.metadata.updatedTimestamp" },
@@ -734,10 +742,6 @@ function queryPosts(payload) {
734
742
  {
735
743
  transformFn: import_float.transformRESTFloatToSDKFloat,
736
744
  paths: [
737
- { path: "posts.coverMedia.image.focalPoint.x" },
738
- { path: "posts.coverMedia.image.focalPoint.y" },
739
- { path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
740
- { path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
741
745
  { path: "posts.heroImage.focalPoint.x" },
742
746
  { path: "posts.heroImage.focalPoint.y" },
743
747
  { path: "posts.media.wixMedia.image.focalPoint.x" },
@@ -777,7 +781,14 @@ function queryPosts(payload) {
777
781
  { path: "posts.richContent.nodes.videoData.video.duration" },
778
782
  { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
779
783
  { path: "posts.richContent.nodes.audioData.audio.duration" },
780
- { path: "posts.richContent.nodes.audioData.coverImage.duration" }
784
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
785
+ {
786
+ path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
787
+ },
788
+ {
789
+ path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
790
+ },
791
+ { path: "posts.richContent.nodes.shapeData.shape.duration" }
781
792
  ]
782
793
  }
783
794
  ])
@@ -817,9 +828,9 @@ function getPostMetrics(payload) {
817
828
  // src/blog-v3-post-posts.universal.ts
818
829
  var import_image = require("@wix/sdk-runtime/transformations/image");
819
830
  var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
820
- var import_video = require("@wix/sdk-runtime/transformations/video");
821
831
  var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
822
832
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
833
+ var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
823
834
  var NodeType = /* @__PURE__ */ ((NodeType2) => {
824
835
  NodeType2["PARAGRAPH"] = "PARAGRAPH";
825
836
  NodeType2["TEXT"] = "TEXT";
@@ -854,6 +865,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
854
865
  NodeType2["CAPTION"] = "CAPTION";
855
866
  NodeType2["LAYOUT"] = "LAYOUT";
856
867
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
868
+ NodeType2["SHAPE"] = "SHAPE";
857
869
  return NodeType2;
858
870
  })(NodeType || {});
859
871
  var WidthType = /* @__PURE__ */ ((WidthType2) => {
@@ -946,13 +958,14 @@ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
946
958
  return ThumbnailsAlignment2;
947
959
  })(ThumbnailsAlignment || {});
948
960
  var GIFType = /* @__PURE__ */ ((GIFType2) => {
949
- GIFType2["GIF"] = "GIF";
961
+ GIFType2["NORMAL"] = "NORMAL";
950
962
  GIFType2["STICKER"] = "STICKER";
951
963
  return GIFType2;
952
964
  })(GIFType || {});
953
965
  var Source = /* @__PURE__ */ ((Source2) => {
954
966
  Source2["HTML"] = "HTML";
955
967
  Source2["ADSENSE"] = "ADSENSE";
968
+ Source2["AI"] = "AI";
956
969
  return Source2;
957
970
  })(Source || {});
958
971
  var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
@@ -1007,6 +1020,10 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1007
1020
  DecorationType2["COLOR"] = "COLOR";
1008
1021
  DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1009
1022
  DecorationType2["EXTERNAL"] = "EXTERNAL";
1023
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1024
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1025
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1026
+ DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1010
1027
  return DecorationType2;
1011
1028
  })(DecorationType || {});
1012
1029
  var FontType = /* @__PURE__ */ ((FontType2) => {
@@ -1310,14 +1327,9 @@ async function getPost2(postId, options) {
1310
1327
  transformFn: import_image.transformRESTImageToSDKImage,
1311
1328
  paths: [
1312
1329
  { path: "post.heroImage" },
1313
- { path: "post.coverMedia.image" },
1314
1330
  { path: "post.media.wixMedia.image" }
1315
1331
  ]
1316
1332
  },
1317
- {
1318
- transformFn: import_video.transformRESTVideoToSDKVideo,
1319
- paths: [{ path: "post.coverMedia.video" }]
1320
- },
1321
1333
  {
1322
1334
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1323
1335
  paths: [{ path: "post.media.wixMedia.videoV2" }]
@@ -1363,14 +1375,9 @@ async function getPostBySlug2(slug, options) {
1363
1375
  transformFn: import_image.transformRESTImageToSDKImage,
1364
1376
  paths: [
1365
1377
  { path: "post.heroImage" },
1366
- { path: "post.coverMedia.image" },
1367
1378
  { path: "post.media.wixMedia.image" }
1368
1379
  ]
1369
1380
  },
1370
- {
1371
- transformFn: import_video.transformRESTVideoToSDKVideo,
1372
- paths: [{ path: "post.coverMedia.video" }]
1373
- },
1374
1381
  {
1375
1382
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1376
1383
  paths: [{ path: "post.media.wixMedia.videoV2" }]
@@ -1427,14 +1434,9 @@ async function listPosts2(options) {
1427
1434
  transformFn: import_image.transformRESTImageToSDKImage,
1428
1435
  paths: [
1429
1436
  { path: "posts.heroImage" },
1430
- { path: "posts.coverMedia.image" },
1431
1437
  { path: "posts.media.wixMedia.image" }
1432
1438
  ]
1433
1439
  },
1434
- {
1435
- transformFn: import_video.transformRESTVideoToSDKVideo,
1436
- paths: [{ path: "posts.coverMedia.video" }]
1437
- },
1438
1440
  {
1439
1441
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1440
1442
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1502,14 +1504,9 @@ function queryPosts2(options) {
1502
1504
  transformFn: import_image.transformRESTImageToSDKImage,
1503
1505
  paths: [
1504
1506
  { path: "posts.heroImage" },
1505
- { path: "posts.coverMedia.image" },
1506
1507
  { path: "posts.media.wixMedia.image" }
1507
1508
  ]
1508
1509
  },
1509
- {
1510
- transformFn: import_video.transformRESTVideoToSDKVideo,
1511
- paths: [{ path: "posts.coverMedia.video" }]
1512
- },
1513
1510
  {
1514
1511
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1515
1512
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1555,14 +1552,9 @@ async function typedQueryPosts(query, options) {
1555
1552
  transformFn: import_image.transformRESTImageToSDKImage,
1556
1553
  paths: [
1557
1554
  { path: "posts.heroImage" },
1558
- { path: "posts.coverMedia.image" },
1559
1555
  { path: "posts.media.wixMedia.image" }
1560
1556
  ]
1561
1557
  },
1562
- {
1563
- transformFn: import_video.transformRESTVideoToSDKVideo,
1564
- paths: [{ path: "posts.coverMedia.video" }]
1565
- },
1566
1558
  {
1567
1559
  transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
1568
1560
  paths: [{ path: "posts.media.wixMedia.videoV2" }]
@@ -1584,6 +1576,7 @@ async function typedQueryPosts(query, options) {
1584
1576
  throw transformedError;
1585
1577
  }
1586
1578
  }
1579
+ var { QueryBuilder, Filter, Sort } = (0, import_query_builder_utils.createQueryUtils)();
1587
1580
  async function getPostMetrics2(postId) {
1588
1581
  const { httpClient, sideEffects } = arguments[1];
1589
1582
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
@@ -1620,6 +1613,7 @@ async function getPostMetrics2(postId) {
1620
1613
  Direction,
1621
1614
  DividerDataAlignment,
1622
1615
  Field,
1616
+ Filter,
1623
1617
  FontType,
1624
1618
  GIFType,
1625
1619
  GetPostTemplatesSort,
@@ -1642,10 +1636,12 @@ async function getPostMetrics2(postId) {
1642
1636
  PollLayoutType,
1643
1637
  Position,
1644
1638
  PostFieldField,
1639
+ QueryBuilder,
1645
1640
  QueryPublicationsCountStatsRequestOrder,
1646
1641
  Resizing,
1647
1642
  ResponsivenessBehaviour,
1648
1643
  Scaling,
1644
+ Sort,
1649
1645
  SortOrder,
1650
1646
  Source,
1651
1647
  Status,