@wix/auto_sdk_blog_posts 1.0.186 → 1.0.188

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.
@@ -29,6 +29,7 @@ __export(index_typings_exports, {
29
29
  ButtonDataType: () => ButtonDataType,
30
30
  CardDataBackgroundType: () => CardDataBackgroundType,
31
31
  CardStylesType: () => CardStylesType,
32
+ ColorDataBackgroundType: () => ColorDataBackgroundType,
32
33
  ColumnSize: () => ColumnSize,
33
34
  Crop: () => Crop,
34
35
  DecorationType: () => DecorationType,
@@ -99,7 +100,8 @@ __export(index_typings_exports, {
99
100
  queryPostCountStats: () => queryPostCountStats2,
100
101
  queryPosts: () => queryPosts2,
101
102
  typedQueryPosts: () => typedQueryPosts,
102
- utils: () => utils
103
+ utils: () => utils,
104
+ viewPost: () => viewPost2
103
105
  });
104
106
  module.exports = __toCommonJS(index_typings_exports);
105
107
 
@@ -514,6 +516,24 @@ function getPost(payload) {
514
516
  {
515
517
  path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
516
518
  },
519
+ {
520
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
521
+ },
522
+ {
523
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
524
+ },
525
+ {
526
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
527
+ },
528
+ {
529
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
530
+ },
531
+ {
532
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
533
+ },
534
+ {
535
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
536
+ },
517
537
  { path: "post.richContent.nodes.appEmbedData.image.duration" },
518
538
  { path: "post.richContent.nodes.videoData.video.duration" },
519
539
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
@@ -587,6 +607,168 @@ function getPost(payload) {
587
607
  { path: "post.richContent.nodes.tocData.itemSpacing" },
588
608
  {
589
609
  path: "post.richContent.nodes.smartBlockCellData.shape.duration"
610
+ },
611
+ {
612
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
613
+ },
614
+ {
615
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
616
+ },
617
+ {
618
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
619
+ },
620
+ {
621
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
622
+ },
623
+ {
624
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
625
+ },
626
+ {
627
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
628
+ },
629
+ {
630
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
631
+ },
632
+ {
633
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
634
+ },
635
+ {
636
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
637
+ },
638
+ {
639
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
640
+ },
641
+ {
642
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
643
+ },
644
+ {
645
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
646
+ },
647
+ {
648
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
649
+ },
650
+ {
651
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
652
+ },
653
+ {
654
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
655
+ },
656
+ {
657
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
658
+ },
659
+ {
660
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
661
+ },
662
+ {
663
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
664
+ },
665
+ {
666
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
667
+ },
668
+ {
669
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
670
+ },
671
+ {
672
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
673
+ },
674
+ {
675
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
676
+ },
677
+ {
678
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
679
+ },
680
+ {
681
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
682
+ },
683
+ {
684
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
685
+ },
686
+ {
687
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
688
+ },
689
+ {
690
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
691
+ },
692
+ {
693
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
694
+ },
695
+ {
696
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
697
+ },
698
+ {
699
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
700
+ },
701
+ {
702
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
703
+ },
704
+ {
705
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
706
+ },
707
+ {
708
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
709
+ },
710
+ {
711
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
712
+ },
713
+ {
714
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
715
+ },
716
+ {
717
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
718
+ },
719
+ {
720
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
721
+ },
722
+ {
723
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
724
+ },
725
+ {
726
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
727
+ },
728
+ {
729
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
730
+ },
731
+ {
732
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
733
+ },
734
+ {
735
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
736
+ },
737
+ {
738
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
739
+ },
740
+ {
741
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
742
+ },
743
+ {
744
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
745
+ },
746
+ {
747
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
748
+ },
749
+ {
750
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
751
+ },
752
+ {
753
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
754
+ },
755
+ {
756
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
757
+ },
758
+ {
759
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
760
+ },
761
+ {
762
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
763
+ },
764
+ {
765
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
766
+ },
767
+ {
768
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
769
+ },
770
+ {
771
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
590
772
  }
591
773
  ]
592
774
  }
@@ -696,79 +878,625 @@ function getPostBySlug(payload) {
696
878
  {
697
879
  path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
698
880
  },
881
+ {
882
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
883
+ },
884
+ {
885
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
886
+ },
887
+ {
888
+ path: "post.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
889
+ },
890
+ {
891
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
892
+ },
893
+ {
894
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
895
+ },
896
+ {
897
+ path: "post.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
898
+ },
699
899
  { path: "post.richContent.nodes.appEmbedData.image.duration" },
700
900
  { path: "post.richContent.nodes.videoData.video.duration" },
701
901
  { path: "post.richContent.nodes.videoData.thumbnail.duration" },
702
902
  { path: "post.richContent.nodes.audioData.audio.duration" },
703
903
  { path: "post.richContent.nodes.audioData.coverImage.duration" },
704
904
  {
705
- path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
905
+ path: "post.richContent.nodes.layoutData.backgroundImage.media.duration"
906
+ },
907
+ {
908
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
909
+ },
910
+ {
911
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
912
+ },
913
+ {
914
+ path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
915
+ },
916
+ {
917
+ path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
918
+ },
919
+ {
920
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
921
+ },
922
+ {
923
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
924
+ },
925
+ {
926
+ path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
927
+ },
928
+ {
929
+ path: "post.richContent.nodes.layoutData.background.gradient.centerX"
930
+ },
931
+ {
932
+ path: "post.richContent.nodes.layoutData.background.gradient.centerY"
933
+ },
934
+ {
935
+ path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
936
+ },
937
+ {
938
+ path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
939
+ },
940
+ {
941
+ path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
942
+ },
943
+ {
944
+ path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
945
+ },
946
+ { path: "post.richContent.nodes.shapeData.shape.duration" },
947
+ {
948
+ path: "post.richContent.nodes.cardData.background.gradient.centerX"
949
+ },
950
+ {
951
+ path: "post.richContent.nodes.cardData.background.gradient.centerY"
952
+ },
953
+ {
954
+ path: "post.richContent.nodes.cardData.background.gradient.stops.position"
955
+ },
956
+ {
957
+ path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
958
+ },
959
+ {
960
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
961
+ },
962
+ {
963
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
964
+ },
965
+ {
966
+ path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
967
+ },
968
+ { path: "post.richContent.nodes.tocData.fontSize" },
969
+ { path: "post.richContent.nodes.tocData.itemSpacing" },
970
+ {
971
+ path: "post.richContent.nodes.smartBlockCellData.shape.duration"
972
+ },
973
+ {
974
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
975
+ },
976
+ {
977
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
978
+ },
979
+ {
980
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
981
+ },
982
+ {
983
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
984
+ },
985
+ {
986
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
987
+ },
988
+ {
989
+ path: "post.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
990
+ },
991
+ {
992
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
993
+ },
994
+ {
995
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
996
+ },
997
+ {
998
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
999
+ },
1000
+ {
1001
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
1002
+ },
1003
+ {
1004
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
1005
+ },
1006
+ {
1007
+ path: "post.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
1008
+ },
1009
+ {
1010
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
1011
+ },
1012
+ {
1013
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
1014
+ },
1015
+ {
1016
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
1017
+ },
1018
+ {
1019
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
1020
+ },
1021
+ {
1022
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
1023
+ },
1024
+ {
1025
+ path: "post.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
1026
+ },
1027
+ {
1028
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
1029
+ },
1030
+ {
1031
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
1032
+ },
1033
+ {
1034
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
1035
+ },
1036
+ {
1037
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
1038
+ },
1039
+ {
1040
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
1041
+ },
1042
+ {
1043
+ path: "post.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
1044
+ },
1045
+ {
1046
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
1047
+ },
1048
+ {
1049
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
1050
+ },
1051
+ {
1052
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
1053
+ },
1054
+ {
1055
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
1056
+ },
1057
+ {
1058
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
1059
+ },
1060
+ {
1061
+ path: "post.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
1062
+ },
1063
+ {
1064
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
1065
+ },
1066
+ {
1067
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
1068
+ },
1069
+ {
1070
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
1071
+ },
1072
+ {
1073
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
1074
+ },
1075
+ {
1076
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
1077
+ },
1078
+ {
1079
+ path: "post.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
1080
+ },
1081
+ {
1082
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
1083
+ },
1084
+ {
1085
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
1086
+ },
1087
+ {
1088
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
1089
+ },
1090
+ {
1091
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
1092
+ },
1093
+ {
1094
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
1095
+ },
1096
+ {
1097
+ path: "post.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
1098
+ },
1099
+ {
1100
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
1101
+ },
1102
+ {
1103
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
1104
+ },
1105
+ {
1106
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
1107
+ },
1108
+ {
1109
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
1110
+ },
1111
+ {
1112
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
1113
+ },
1114
+ {
1115
+ path: "post.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
1116
+ },
1117
+ {
1118
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
1119
+ },
1120
+ {
1121
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
1122
+ },
1123
+ {
1124
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
1125
+ },
1126
+ {
1127
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
1128
+ },
1129
+ {
1130
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1131
+ },
1132
+ {
1133
+ path: "post.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
1134
+ }
1135
+ ]
1136
+ }
1137
+ ])
1138
+ };
1139
+ return metadata;
1140
+ }
1141
+ return __getPostBySlug;
1142
+ }
1143
+ function listPosts(payload) {
1144
+ function __listPosts({ host }) {
1145
+ const metadata = {
1146
+ entityFqdn: "wix.blog.v3.post",
1147
+ method: "GET",
1148
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
1149
+ packageName: PACKAGE_NAME,
1150
+ migrationOptions: {
1151
+ optInTransformResponse: true
1152
+ },
1153
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
1154
+ protoPath: "/v3/posts",
1155
+ data: payload,
1156
+ host
1157
+ }),
1158
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1159
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1160
+ {
1161
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1162
+ paths: [
1163
+ { path: "posts.firstPublishedDate" },
1164
+ { path: "posts.lastPublishedDate" },
1165
+ { path: "posts.heroImage.urlExpirationDate" },
1166
+ { path: "posts.richContent.metadata.createdTimestamp" },
1167
+ { path: "posts.richContent.metadata.updatedTimestamp" },
1168
+ { path: "posts.moderationDetails.submittedDate" },
1169
+ { path: "posts.moderationDetails.moderationDate" },
1170
+ { path: "posts.media.wixMedia.image.urlExpirationDate" },
1171
+ { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
1172
+ {
1173
+ path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1174
+ },
1175
+ {
1176
+ path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1177
+ },
1178
+ {
1179
+ path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
1180
+ }
1181
+ ]
1182
+ },
1183
+ {
1184
+ transformFn: import_bytes.transformRESTBytesToSDKBytes,
1185
+ paths: [{ path: "posts.richContentCompressed" }]
1186
+ },
1187
+ {
1188
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1189
+ paths: [
1190
+ { path: "posts.heroImage.focalPoint.x" },
1191
+ { path: "posts.heroImage.focalPoint.y" },
1192
+ { path: "posts.media.wixMedia.image.focalPoint.x" },
1193
+ { path: "posts.media.wixMedia.image.focalPoint.y" },
1194
+ {
1195
+ path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1196
+ },
1197
+ {
1198
+ path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1199
+ },
1200
+ { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
1201
+ { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
1202
+ { path: "posts.metrics.averageRating" },
1203
+ {
1204
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1205
+ },
1206
+ {
1207
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1208
+ },
1209
+ {
1210
+ path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1211
+ },
1212
+ {
1213
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1214
+ },
1215
+ {
1216
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1217
+ },
1218
+ {
1219
+ path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1220
+ },
1221
+ {
1222
+ path: "posts.richContent.nodes.galleryData.items.image.media.duration"
1223
+ },
1224
+ {
1225
+ path: "posts.richContent.nodes.galleryData.items.video.media.duration"
1226
+ },
1227
+ {
1228
+ path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1229
+ },
1230
+ {
1231
+ path: "posts.richContent.nodes.galleryData.options.item.ratio"
1232
+ },
1233
+ { path: "posts.richContent.nodes.imageData.image.duration" },
1234
+ { path: "posts.richContent.nodes.imageData.crop.x" },
1235
+ { path: "posts.richContent.nodes.imageData.crop.y" },
1236
+ { path: "posts.richContent.nodes.imageData.crop.width" },
1237
+ { path: "posts.richContent.nodes.imageData.crop.height" },
1238
+ { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
1239
+ { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
1240
+ { path: "posts.richContent.nodes.pollData.poll.image.duration" },
1241
+ {
1242
+ path: "posts.richContent.nodes.pollData.poll.options.image.duration"
1243
+ },
1244
+ {
1245
+ path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
1246
+ },
1247
+ {
1248
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
1249
+ },
1250
+ {
1251
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
1252
+ },
1253
+ {
1254
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
1255
+ },
1256
+ {
1257
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
1258
+ },
1259
+ {
1260
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
1261
+ },
1262
+ {
1263
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
1264
+ },
1265
+ { path: "posts.richContent.nodes.appEmbedData.image.duration" },
1266
+ { path: "posts.richContent.nodes.videoData.video.duration" },
1267
+ { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
1268
+ { path: "posts.richContent.nodes.audioData.audio.duration" },
1269
+ { path: "posts.richContent.nodes.audioData.coverImage.duration" },
1270
+ {
1271
+ path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
1272
+ },
1273
+ {
1274
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1275
+ },
1276
+ {
1277
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1278
+ },
1279
+ {
1280
+ path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1281
+ },
1282
+ {
1283
+ path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
1284
+ },
1285
+ {
1286
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1287
+ },
1288
+ {
1289
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1290
+ },
1291
+ {
1292
+ path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1293
+ },
1294
+ {
1295
+ path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
1296
+ },
1297
+ {
1298
+ path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
1299
+ },
1300
+ {
1301
+ path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
1302
+ },
1303
+ {
1304
+ path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1305
+ },
1306
+ {
1307
+ path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1308
+ },
1309
+ {
1310
+ path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1311
+ },
1312
+ { path: "posts.richContent.nodes.shapeData.shape.duration" },
1313
+ {
1314
+ path: "posts.richContent.nodes.cardData.background.gradient.centerX"
1315
+ },
1316
+ {
1317
+ path: "posts.richContent.nodes.cardData.background.gradient.centerY"
1318
+ },
1319
+ {
1320
+ path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
1321
+ },
1322
+ {
1323
+ path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1324
+ },
1325
+ {
1326
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1327
+ },
1328
+ {
1329
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1330
+ },
1331
+ {
1332
+ path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1333
+ },
1334
+ { path: "posts.richContent.nodes.tocData.fontSize" },
1335
+ { path: "posts.richContent.nodes.tocData.itemSpacing" },
1336
+ {
1337
+ path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
1338
+ },
1339
+ {
1340
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
1341
+ },
1342
+ {
1343
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
1344
+ },
1345
+ {
1346
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
1347
+ },
1348
+ {
1349
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
1350
+ },
1351
+ {
1352
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
1353
+ },
1354
+ {
1355
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
1356
+ },
1357
+ {
1358
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
1359
+ },
1360
+ {
1361
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
1362
+ },
1363
+ {
1364
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
1365
+ },
1366
+ {
1367
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
1368
+ },
1369
+ {
1370
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
1371
+ },
1372
+ {
1373
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
1374
+ },
1375
+ {
1376
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
1377
+ },
1378
+ {
1379
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
1380
+ },
1381
+ {
1382
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
1383
+ },
1384
+ {
1385
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
1386
+ },
1387
+ {
1388
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
1389
+ },
1390
+ {
1391
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
1392
+ },
1393
+ {
1394
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
1395
+ },
1396
+ {
1397
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
1398
+ },
1399
+ {
1400
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
1401
+ },
1402
+ {
1403
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
1404
+ },
1405
+ {
1406
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
1407
+ },
1408
+ {
1409
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
1410
+ },
1411
+ {
1412
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
1413
+ },
1414
+ {
1415
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
1416
+ },
1417
+ {
1418
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
1419
+ },
1420
+ {
1421
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
1422
+ },
1423
+ {
1424
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
1425
+ },
1426
+ {
1427
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
1428
+ },
1429
+ {
1430
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
1431
+ },
1432
+ {
1433
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
706
1434
  },
707
1435
  {
708
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1436
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
709
1437
  },
710
1438
  {
711
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1439
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
712
1440
  },
713
1441
  {
714
- path: "post.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1442
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
715
1443
  },
716
1444
  {
717
- path: "post.richContent.nodes.layoutData.backdropImage.media.duration"
1445
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
718
1446
  },
719
1447
  {
720
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1448
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
721
1449
  },
722
1450
  {
723
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1451
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
724
1452
  },
725
1453
  {
726
- path: "post.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1454
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
727
1455
  },
728
1456
  {
729
- path: "post.richContent.nodes.layoutData.background.gradient.centerX"
1457
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
730
1458
  },
731
1459
  {
732
- path: "post.richContent.nodes.layoutData.background.gradient.centerY"
1460
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
733
1461
  },
734
1462
  {
735
- path: "post.richContent.nodes.layoutData.background.gradient.stops.position"
1463
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
736
1464
  },
737
1465
  {
738
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerX"
1466
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
739
1467
  },
740
1468
  {
741
- path: "post.richContent.nodes.layoutData.backdrop.gradient.centerY"
1469
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
742
1470
  },
743
1471
  {
744
- path: "post.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1472
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
745
1473
  },
746
- { path: "post.richContent.nodes.shapeData.shape.duration" },
747
1474
  {
748
- path: "post.richContent.nodes.cardData.background.gradient.centerX"
1475
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
749
1476
  },
750
1477
  {
751
- path: "post.richContent.nodes.cardData.background.gradient.centerY"
1478
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
752
1479
  },
753
1480
  {
754
- path: "post.richContent.nodes.cardData.background.gradient.stops.position"
1481
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
755
1482
  },
756
1483
  {
757
- path: "post.richContent.nodes.cardData.backgroundImage.media.duration"
1484
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
758
1485
  },
759
1486
  {
760
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1487
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
761
1488
  },
762
1489
  {
763
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1490
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
764
1491
  },
765
1492
  {
766
- path: "post.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1493
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
767
1494
  },
768
- { path: "post.richContent.nodes.tocData.fontSize" },
769
- { path: "post.richContent.nodes.tocData.itemSpacing" },
770
1495
  {
771
- path: "post.richContent.nodes.smartBlockCellData.shape.duration"
1496
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1497
+ },
1498
+ {
1499
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
772
1500
  }
773
1501
  ]
774
1502
  }
@@ -776,24 +1504,35 @@ function getPostBySlug(payload) {
776
1504
  };
777
1505
  return metadata;
778
1506
  }
779
- return __getPostBySlug;
1507
+ return __listPosts;
780
1508
  }
781
- function listPosts(payload) {
782
- function __listPosts({ host }) {
1509
+ function queryPosts(payload) {
1510
+ function __queryPosts({ host }) {
1511
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1512
+ {
1513
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1514
+ paths: [
1515
+ { path: "sort.origin.latitude" },
1516
+ { path: "sort.origin.longitude" },
1517
+ { path: "query.sort.origin.latitude" },
1518
+ { path: "query.sort.origin.longitude" }
1519
+ ]
1520
+ }
1521
+ ]);
783
1522
  const metadata = {
784
1523
  entityFqdn: "wix.blog.v3.post",
785
- method: "GET",
786
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
1524
+ method: "POST",
1525
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
787
1526
  packageName: PACKAGE_NAME,
788
1527
  migrationOptions: {
789
1528
  optInTransformResponse: true
790
1529
  },
791
1530
  url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
792
- protoPath: "/v3/posts",
793
- data: payload,
1531
+ protoPath: "/v3/posts/query",
1532
+ data: serializedData,
794
1533
  host
795
1534
  }),
796
- params: (0, import_rest_modules.toURLSearchParams)(payload),
1535
+ data: serializedData,
797
1536
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
798
1537
  {
799
1538
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -882,6 +1621,24 @@ function listPosts(payload) {
882
1621
  {
883
1622
  path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
884
1623
  },
1624
+ {
1625
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX"
1626
+ },
1627
+ {
1628
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY"
1629
+ },
1630
+ {
1631
+ path: "posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position"
1632
+ },
1633
+ {
1634
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX"
1635
+ },
1636
+ {
1637
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY"
1638
+ },
1639
+ {
1640
+ path: "posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position"
1641
+ },
885
1642
  { path: "posts.richContent.nodes.appEmbedData.image.duration" },
886
1643
  { path: "posts.richContent.nodes.videoData.video.duration" },
887
1644
  { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
@@ -955,203 +1712,168 @@ function listPosts(payload) {
955
1712
  { path: "posts.richContent.nodes.tocData.itemSpacing" },
956
1713
  {
957
1714
  path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
958
- }
959
- ]
960
- }
961
- ])
962
- };
963
- return metadata;
964
- }
965
- return __listPosts;
966
- }
967
- function queryPosts(payload) {
968
- function __queryPosts({ host }) {
969
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
970
- {
971
- transformFn: import_float.transformSDKFloatToRESTFloat,
972
- paths: [
973
- { path: "sort.origin.latitude" },
974
- { path: "sort.origin.longitude" },
975
- { path: "query.sort.origin.latitude" },
976
- { path: "query.sort.origin.longitude" }
977
- ]
978
- }
979
- ]);
980
- const metadata = {
981
- entityFqdn: "wix.blog.v3.post",
982
- method: "POST",
983
- methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
984
- packageName: PACKAGE_NAME,
985
- migrationOptions: {
986
- optInTransformResponse: true
987
- },
988
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
989
- protoPath: "/v3/posts/query",
990
- data: serializedData,
991
- host
992
- }),
993
- data: serializedData,
994
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
995
- {
996
- transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
997
- paths: [
998
- { path: "posts.firstPublishedDate" },
999
- { path: "posts.lastPublishedDate" },
1000
- { path: "posts.heroImage.urlExpirationDate" },
1001
- { path: "posts.richContent.metadata.createdTimestamp" },
1002
- { path: "posts.richContent.metadata.updatedTimestamp" },
1003
- { path: "posts.moderationDetails.submittedDate" },
1004
- { path: "posts.moderationDetails.moderationDate" },
1005
- { path: "posts.media.wixMedia.image.urlExpirationDate" },
1006
- { path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
1715
+ },
1007
1716
  {
1008
- path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1717
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX"
1009
1718
  },
1010
1719
  {
1011
- path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1720
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY"
1012
1721
  },
1013
1722
  {
1014
- path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
1015
- }
1016
- ]
1017
- },
1018
- {
1019
- transformFn: import_bytes.transformRESTBytesToSDKBytes,
1020
- paths: [{ path: "posts.richContentCompressed" }]
1021
- },
1022
- {
1023
- transformFn: import_float2.transformRESTFloatToSDKFloat,
1024
- paths: [
1025
- { path: "posts.heroImage.focalPoint.x" },
1026
- { path: "posts.heroImage.focalPoint.y" },
1027
- { path: "posts.media.wixMedia.image.focalPoint.x" },
1028
- { path: "posts.media.wixMedia.image.focalPoint.y" },
1723
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position"
1724
+ },
1029
1725
  {
1030
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1726
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX"
1031
1727
  },
1032
1728
  {
1033
- path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1729
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY"
1034
1730
  },
1035
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
1036
- { path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
1037
- { path: "posts.metrics.averageRating" },
1038
1731
  {
1039
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerX"
1732
+ path: "posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position"
1040
1733
  },
1041
1734
  {
1042
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.centerY"
1735
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX"
1043
1736
  },
1044
1737
  {
1045
- path: "posts.richContent.nodes.buttonData.styles.background.gradient.stops.position"
1738
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY"
1046
1739
  },
1047
1740
  {
1048
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1741
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position"
1049
1742
  },
1050
1743
  {
1051
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1744
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX"
1052
1745
  },
1053
1746
  {
1054
- path: "posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1747
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY"
1055
1748
  },
1056
1749
  {
1057
- path: "posts.richContent.nodes.galleryData.items.image.media.duration"
1750
+ path: "posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position"
1058
1751
  },
1059
1752
  {
1060
- path: "posts.richContent.nodes.galleryData.items.video.media.duration"
1753
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX"
1061
1754
  },
1062
1755
  {
1063
- path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1756
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY"
1064
1757
  },
1065
1758
  {
1066
- path: "posts.richContent.nodes.galleryData.options.item.ratio"
1759
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position"
1067
1760
  },
1068
- { path: "posts.richContent.nodes.imageData.image.duration" },
1069
- { path: "posts.richContent.nodes.imageData.crop.x" },
1070
- { path: "posts.richContent.nodes.imageData.crop.y" },
1071
- { path: "posts.richContent.nodes.imageData.crop.width" },
1072
- { path: "posts.richContent.nodes.imageData.crop.height" },
1073
- { path: "posts.richContent.nodes.mapData.mapSettings.lat" },
1074
- { path: "posts.richContent.nodes.mapData.mapSettings.lng" },
1075
- { path: "posts.richContent.nodes.pollData.poll.image.duration" },
1076
1761
  {
1077
- path: "posts.richContent.nodes.pollData.poll.options.image.duration"
1762
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX"
1078
1763
  },
1079
1764
  {
1080
- path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
1765
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY"
1081
1766
  },
1082
- { path: "posts.richContent.nodes.appEmbedData.image.duration" },
1083
- { path: "posts.richContent.nodes.videoData.video.duration" },
1084
- { path: "posts.richContent.nodes.videoData.thumbnail.duration" },
1085
- { path: "posts.richContent.nodes.audioData.audio.duration" },
1086
- { path: "posts.richContent.nodes.audioData.coverImage.duration" },
1087
1767
  {
1088
- path: "posts.richContent.nodes.layoutData.backgroundImage.media.duration"
1768
+ path: "posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position"
1089
1769
  },
1090
1770
  {
1091
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1771
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX"
1092
1772
  },
1093
1773
  {
1094
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1774
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY"
1095
1775
  },
1096
1776
  {
1097
- path: "posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1777
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position"
1098
1778
  },
1099
1779
  {
1100
- path: "posts.richContent.nodes.layoutData.backdropImage.media.duration"
1780
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX"
1101
1781
  },
1102
1782
  {
1103
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1783
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY"
1104
1784
  },
1105
1785
  {
1106
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1786
+ path: "posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position"
1107
1787
  },
1108
1788
  {
1109
- path: "posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1789
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX"
1110
1790
  },
1111
1791
  {
1112
- path: "posts.richContent.nodes.layoutData.background.gradient.centerX"
1792
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY"
1113
1793
  },
1114
1794
  {
1115
- path: "posts.richContent.nodes.layoutData.background.gradient.centerY"
1795
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position"
1116
1796
  },
1117
1797
  {
1118
- path: "posts.richContent.nodes.layoutData.background.gradient.stops.position"
1798
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX"
1119
1799
  },
1120
1800
  {
1121
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerX"
1801
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY"
1122
1802
  },
1123
1803
  {
1124
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.centerY"
1804
+ path: "posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position"
1125
1805
  },
1126
1806
  {
1127
- path: "posts.richContent.nodes.layoutData.backdrop.gradient.stops.position"
1807
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX"
1128
1808
  },
1129
- { path: "posts.richContent.nodes.shapeData.shape.duration" },
1130
1809
  {
1131
- path: "posts.richContent.nodes.cardData.background.gradient.centerX"
1810
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY"
1132
1811
  },
1133
1812
  {
1134
- path: "posts.richContent.nodes.cardData.background.gradient.centerY"
1813
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position"
1135
1814
  },
1136
1815
  {
1137
- path: "posts.richContent.nodes.cardData.background.gradient.stops.position"
1816
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX"
1138
1817
  },
1139
1818
  {
1140
- path: "posts.richContent.nodes.cardData.backgroundImage.media.duration"
1819
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY"
1141
1820
  },
1142
1821
  {
1143
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1822
+ path: "posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position"
1144
1823
  },
1145
1824
  {
1146
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1825
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX"
1147
1826
  },
1148
1827
  {
1149
- path: "posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1828
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY"
1150
1829
  },
1151
- { path: "posts.richContent.nodes.tocData.fontSize" },
1152
- { path: "posts.richContent.nodes.tocData.itemSpacing" },
1153
1830
  {
1154
- path: "posts.richContent.nodes.smartBlockCellData.shape.duration"
1831
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position"
1832
+ },
1833
+ {
1834
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX"
1835
+ },
1836
+ {
1837
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY"
1838
+ },
1839
+ {
1840
+ path: "posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position"
1841
+ },
1842
+ {
1843
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX"
1844
+ },
1845
+ {
1846
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY"
1847
+ },
1848
+ {
1849
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position"
1850
+ },
1851
+ {
1852
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX"
1853
+ },
1854
+ {
1855
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY"
1856
+ },
1857
+ {
1858
+ path: "posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position"
1859
+ },
1860
+ {
1861
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX"
1862
+ },
1863
+ {
1864
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY"
1865
+ },
1866
+ {
1867
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position"
1868
+ },
1869
+ {
1870
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX"
1871
+ },
1872
+ {
1873
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY"
1874
+ },
1875
+ {
1876
+ path: "posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position"
1155
1877
  }
1156
1878
  ]
1157
1879
  }
@@ -1188,6 +1910,27 @@ function getPostMetrics(payload) {
1188
1910
  }
1189
1911
  return __getPostMetrics;
1190
1912
  }
1913
+ function viewPost(payload) {
1914
+ function __viewPost({ host }) {
1915
+ const metadata = {
1916
+ entityFqdn: "wix.blog.v3.post",
1917
+ method: "POST",
1918
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ViewPost",
1919
+ packageName: PACKAGE_NAME,
1920
+ migrationOptions: {
1921
+ optInTransformResponse: true
1922
+ },
1923
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
1924
+ protoPath: "/v3/posts/{postId}/view",
1925
+ data: payload,
1926
+ host
1927
+ }),
1928
+ data: payload
1929
+ };
1930
+ return metadata;
1931
+ }
1932
+ return __viewPost;
1933
+ }
1191
1934
 
1192
1935
  // src/blog-v3-post-posts.universal.ts
1193
1936
  var import_image = require("@wix/sdk-runtime/transformations/image");
@@ -1235,6 +1978,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
1235
1978
  NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
1236
1979
  NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
1237
1980
  NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
1981
+ NodeType2["SLOT"] = "SLOT";
1238
1982
  return NodeType2;
1239
1983
  })(NodeType || {});
1240
1984
  var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
@@ -1466,6 +2210,11 @@ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1466
2210
  DecorationType2["SKETCH"] = "SKETCH";
1467
2211
  return DecorationType2;
1468
2212
  })(DecorationType || {});
2213
+ var ColorDataBackgroundType = /* @__PURE__ */ ((ColorDataBackgroundType2) => {
2214
+ ColorDataBackgroundType2["COLOR"] = "COLOR";
2215
+ ColorDataBackgroundType2["GRADIENT"] = "GRADIENT";
2216
+ return ColorDataBackgroundType2;
2217
+ })(ColorDataBackgroundType || {});
1469
2218
  var FontType = /* @__PURE__ */ ((FontType2) => {
1470
2219
  FontType2["PX"] = "PX";
1471
2220
  FontType2["EM"] = "EM";
@@ -2135,6 +2884,29 @@ async function getPostMetrics2(postId) {
2135
2884
  throw transformedError;
2136
2885
  }
2137
2886
  }
2887
+ async function viewPost2(postId) {
2888
+ const { httpClient, sideEffects } = arguments[1];
2889
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
2890
+ const reqOpts = viewPost(payload);
2891
+ sideEffects?.onSiteCall?.();
2892
+ try {
2893
+ const result = await httpClient.request(reqOpts);
2894
+ sideEffects?.onSuccess?.(result);
2895
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
2896
+ } catch (err) {
2897
+ const transformedError = (0, import_transform_error.transformError)(
2898
+ err,
2899
+ {
2900
+ spreadPathsToArguments: {},
2901
+ explicitPathsToArguments: { postId: "$[0]" },
2902
+ singleArgumentUnchanged: false
2903
+ },
2904
+ ["postId"]
2905
+ );
2906
+ sideEffects?.onError?.(err);
2907
+ throw transformedError;
2908
+ }
2909
+ }
2138
2910
  // Annotate the CommonJS export names for ESM import in node:
2139
2911
  0 && (module.exports = {
2140
2912
  Alignment,
@@ -2146,6 +2918,7 @@ async function getPostMetrics2(postId) {
2146
2918
  ButtonDataType,
2147
2919
  CardDataBackgroundType,
2148
2920
  CardStylesType,
2921
+ ColorDataBackgroundType,
2149
2922
  ColumnSize,
2150
2923
  Crop,
2151
2924
  DecorationType,
@@ -2216,6 +2989,7 @@ async function getPostMetrics2(postId) {
2216
2989
  queryPostCountStats,
2217
2990
  queryPosts,
2218
2991
  typedQueryPosts,
2219
- utils
2992
+ utils,
2993
+ viewPost
2220
2994
  });
2221
2995
  //# sourceMappingURL=index.typings.js.map