@wix/auto_sdk_blog_draft-posts 1.0.24 → 1.0.25

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 (130) hide show
  1. package/build/{internal/cjs/src/blog-v3-draft-draft-posts.universal.d.ts → blog-v3-draft-draft-posts.universal-yk8zFFHT.d.mts} +311 -644
  2. package/build/{internal/es/src/blog-v3-draft-draft-posts.universal.d.ts → blog-v3-draft-draft-posts.universal-yk8zFFHT.d.ts} +311 -644
  3. package/build/index.d.mts +195 -0
  4. package/build/index.d.ts +195 -0
  5. package/build/index.js +3444 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3364 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{cjs/src/blog-v3-draft-draft-posts.universal.d.ts → internal/blog-v3-draft-draft-posts.universal-yk8zFFHT.d.mts} +311 -644
  10. package/build/{es/src/blog-v3-draft-draft-posts.universal.d.ts → internal/blog-v3-draft-draft-posts.universal-yk8zFFHT.d.ts} +311 -644
  11. package/build/internal/index.d.mts +195 -0
  12. package/build/internal/index.d.ts +195 -0
  13. package/build/internal/index.js +3444 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3364 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/blog-v3-draft-draft-posts.types.d.ts → internal/meta.d.mts} +263 -1025
  18. package/build/internal/{cjs/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +263 -1025
  19. package/build/internal/meta.js +2057 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +2017 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.mts} +263 -1025
  24. package/build/{internal/es/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +263 -1025
  25. package/build/meta.js +2057 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +2017 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
  40. package/build/cjs/src/blog-v3-draft-draft-posts.context.js +0 -78
  41. package/build/cjs/src/blog-v3-draft-draft-posts.context.js.map +0 -1
  42. package/build/cjs/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
  43. package/build/cjs/src/blog-v3-draft-draft-posts.http.js +0 -1803
  44. package/build/cjs/src/blog-v3-draft-draft-posts.http.js.map +0 -1
  45. package/build/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
  46. package/build/cjs/src/blog-v3-draft-draft-posts.meta.js +0 -294
  47. package/build/cjs/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
  48. package/build/cjs/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
  49. package/build/cjs/src/blog-v3-draft-draft-posts.public.js +0 -339
  50. package/build/cjs/src/blog-v3-draft-draft-posts.public.js.map +0 -1
  51. package/build/cjs/src/blog-v3-draft-draft-posts.types.js +0 -477
  52. package/build/cjs/src/blog-v3-draft-draft-posts.types.js.map +0 -1
  53. package/build/cjs/src/blog-v3-draft-draft-posts.universal.js +0 -1506
  54. package/build/cjs/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
  66. package/build/es/src/blog-v3-draft-draft-posts.context.js +0 -34
  67. package/build/es/src/blog-v3-draft-draft-posts.context.js.map +0 -1
  68. package/build/es/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
  69. package/build/es/src/blog-v3-draft-draft-posts.http.js +0 -1786
  70. package/build/es/src/blog-v3-draft-draft-posts.http.js.map +0 -1
  71. package/build/es/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
  72. package/build/es/src/blog-v3-draft-draft-posts.meta.js +0 -254
  73. package/build/es/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
  74. package/build/es/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
  75. package/build/es/src/blog-v3-draft-draft-posts.public.js +0 -281
  76. package/build/es/src/blog-v3-draft-draft-posts.public.js.map +0 -1
  77. package/build/es/src/blog-v3-draft-draft-posts.types.js +0 -474
  78. package/build/es/src/blog-v3-draft-draft-posts.types.js.map +0 -1
  79. package/build/es/src/blog-v3-draft-draft-posts.universal.js +0 -1465
  80. package/build/es/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
  91. package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.js +0 -78
  92. package/build/internal/cjs/src/blog-v3-draft-draft-posts.context.js.map +0 -1
  93. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
  94. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js +0 -1803
  95. package/build/internal/cjs/src/blog-v3-draft-draft-posts.http.js.map +0 -1
  96. package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
  97. package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.js +0 -294
  98. package/build/internal/cjs/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
  99. package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
  100. package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js +0 -339
  101. package/build/internal/cjs/src/blog-v3-draft-draft-posts.public.js.map +0 -1
  102. package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js +0 -477
  103. package/build/internal/cjs/src/blog-v3-draft-draft-posts.types.js.map +0 -1
  104. package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js +0 -1506
  105. package/build/internal/cjs/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/blog-v3-draft-draft-posts.context.d.ts +0 -34
  116. package/build/internal/es/src/blog-v3-draft-draft-posts.context.js +0 -34
  117. package/build/internal/es/src/blog-v3-draft-draft-posts.context.js.map +0 -1
  118. package/build/internal/es/src/blog-v3-draft-draft-posts.http.d.ts +0 -83
  119. package/build/internal/es/src/blog-v3-draft-draft-posts.http.js +0 -1786
  120. package/build/internal/es/src/blog-v3-draft-draft-posts.http.js.map +0 -1
  121. package/build/internal/es/src/blog-v3-draft-draft-posts.meta.d.ts +0 -40
  122. package/build/internal/es/src/blog-v3-draft-draft-posts.meta.js +0 -254
  123. package/build/internal/es/src/blog-v3-draft-draft-posts.meta.js.map +0 -1
  124. package/build/internal/es/src/blog-v3-draft-draft-posts.public.d.ts +0 -168
  125. package/build/internal/es/src/blog-v3-draft-draft-posts.public.js +0 -281
  126. package/build/internal/es/src/blog-v3-draft-draft-posts.public.js.map +0 -1
  127. package/build/internal/es/src/blog-v3-draft-draft-posts.types.js +0 -474
  128. package/build/internal/es/src/blog-v3-draft-draft-posts.types.js.map +0 -1
  129. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js +0 -1465
  130. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
@@ -0,0 +1,3444 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Action: () => Action,
24
+ Alignment: () => Alignment,
25
+ AppType: () => AppType,
26
+ BackgroundType: () => BackgroundType,
27
+ ButtonDataType: () => ButtonDataType,
28
+ Crop: () => Crop,
29
+ DecorationType: () => DecorationType,
30
+ Direction: () => Direction,
31
+ Field: () => Field,
32
+ FontType: () => FontType,
33
+ GIFType: () => GIFType,
34
+ GetDraftPostsSort: () => GetDraftPostsSort,
35
+ InitialExpandedItems: () => InitialExpandedItems,
36
+ LayoutType: () => LayoutType,
37
+ LineStyle: () => LineStyle,
38
+ MapType: () => MapType,
39
+ ModerationStatusStatus: () => ModerationStatusStatus,
40
+ NodeType: () => NodeType,
41
+ NullValue: () => NullValue,
42
+ Orientation: () => Orientation,
43
+ Origin: () => Origin,
44
+ PluginContainerDataAlignment: () => PluginContainerDataAlignment,
45
+ PollLayoutDirection: () => PollLayoutDirection,
46
+ PollLayoutType: () => PollLayoutType,
47
+ Position: () => Position,
48
+ SortOrder: () => SortOrder,
49
+ Source: () => Source,
50
+ Status: () => Status,
51
+ Target: () => Target,
52
+ TextAlignment: () => TextAlignment,
53
+ ThumbnailsAlignment: () => ThumbnailsAlignment,
54
+ TotalDraftPostsGroupingField: () => TotalDraftPostsGroupingField,
55
+ Type: () => Type,
56
+ VerticalAlignment: () => VerticalAlignment,
57
+ ViewMode: () => ViewMode,
58
+ ViewRole: () => ViewRole,
59
+ VoteRole: () => VoteRole,
60
+ WebhookIdentityType: () => WebhookIdentityType,
61
+ Width: () => Width,
62
+ WidthType: () => WidthType,
63
+ bulkCreateDraftPosts: () => bulkCreateDraftPosts4,
64
+ bulkDeleteDraftPosts: () => bulkDeleteDraftPosts4,
65
+ bulkUpdateDraftPosts: () => bulkUpdateDraftPosts4,
66
+ createDraftPost: () => createDraftPost4,
67
+ deleteDraftPost: () => deleteDraftPost4,
68
+ getDeletedDraftPost: () => getDeletedDraftPost4,
69
+ getDraftPost: () => getDraftPost4,
70
+ listDeletedDraftPosts: () => listDeletedDraftPosts4,
71
+ listDraftPosts: () => listDraftPosts4,
72
+ onDraftCreated: () => onDraftCreated2,
73
+ onDraftDeleted: () => onDraftDeleted2,
74
+ onDraftUpdated: () => onDraftUpdated2,
75
+ publishDraftPost: () => publishDraftPost4,
76
+ queryDraftPosts: () => queryDraftPosts4,
77
+ removeFromTrashBin: () => removeFromTrashBin4,
78
+ restoreFromTrashBin: () => restoreFromTrashBin4,
79
+ updateDraftPost: () => updateDraftPost4
80
+ });
81
+ module.exports = __toCommonJS(index_exports);
82
+
83
+ // src/blog-v3-draft-draft-posts.public.ts
84
+ var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
85
+ var import_float3 = require("@wix/sdk-runtime/transformations/float");
86
+ var import_image3 = require("@wix/sdk-runtime/transformations/image");
87
+ var import_page_url3 = require("@wix/sdk-runtime/transformations/page-url");
88
+ var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
89
+ var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
90
+ var import_video3 = require("@wix/sdk-runtime/transformations/video");
91
+ var import_video_v23 = require("@wix/sdk-runtime/transformations/video-v2");
92
+ var import_sdk_types = require("@wix/sdk-types");
93
+
94
+ // src/blog-v3-draft-draft-posts.universal.ts
95
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
96
+ var import_query_builder = require("@wix/sdk-runtime/query-builder");
97
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
98
+
99
+ // src/blog-v3-draft-draft-posts.http.ts
100
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
101
+ var import_float = require("@wix/sdk-runtime/transformations/float");
102
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
103
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
104
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
105
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
106
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
107
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
108
+ function resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(opts) {
109
+ const domainToMappings = {
110
+ _api_base_domain_: [
111
+ {
112
+ srcPath: "/draft-post-service-api-proxy",
113
+ destPath: ""
114
+ }
115
+ ],
116
+ "*.dev.wix-code.com": [
117
+ {
118
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
119
+ destPath: "/v3/draft-posts"
120
+ }
121
+ ],
122
+ "*.pub.wix-code.com": [
123
+ {
124
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
125
+ destPath: "/v3/draft-posts"
126
+ }
127
+ ],
128
+ _: [
129
+ {
130
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
131
+ destPath: "/v3/draft-posts"
132
+ }
133
+ ],
134
+ "apps._base_domain_": [
135
+ {
136
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
137
+ destPath: "/v3/draft-posts"
138
+ }
139
+ ],
140
+ "bo._base_domain_": [
141
+ {
142
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
143
+ destPath: "/v3/draft-posts"
144
+ }
145
+ ],
146
+ "wixbo.ai": [
147
+ {
148
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
149
+ destPath: "/v3/draft-posts"
150
+ }
151
+ ],
152
+ "wix-bo.com": [
153
+ {
154
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
155
+ destPath: "/v3/draft-posts"
156
+ }
157
+ ],
158
+ "editor._base_domain_": [
159
+ {
160
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
161
+ destPath: "/v3/draft-posts"
162
+ }
163
+ ],
164
+ "blocks._base_domain_": [
165
+ {
166
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
167
+ destPath: "/v3/draft-posts"
168
+ }
169
+ ],
170
+ "create.editorx": [
171
+ {
172
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
173
+ destPath: "/v3/draft-posts"
174
+ }
175
+ ],
176
+ "editor.wixapps.net": [
177
+ {
178
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
179
+ destPath: "/v3/draft-posts"
180
+ }
181
+ ],
182
+ "manage._base_domain_": [
183
+ {
184
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
185
+ destPath: "/v3/draft-posts"
186
+ },
187
+ {
188
+ srcPath: "/_api/draft-post-service-api-proxy/v3/bulk/draft-posts",
189
+ destPath: "/v3/bulk/draft-posts"
190
+ }
191
+ ],
192
+ "social-blog._base_domain_": [
193
+ {
194
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
195
+ destPath: "/v3/draft-posts"
196
+ }
197
+ ],
198
+ "www.wixapis.com": [
199
+ {
200
+ srcPath: "/blog/v3/draft-posts",
201
+ destPath: "/v3/draft-posts"
202
+ },
203
+ {
204
+ srcPath: "/blog/v3/bulk/draft-posts/create",
205
+ destPath: "/v3/bulk/draft-posts/create"
206
+ },
207
+ {
208
+ srcPath: "/blog/v3/draft-posts/",
209
+ destPath: "/v3/draft-posts"
210
+ },
211
+ {
212
+ srcPath: "/blog/v3/bulk/draft-posts",
213
+ destPath: "/v3/bulk/draft-posts"
214
+ }
215
+ ],
216
+ "www._base_domain_": [
217
+ {
218
+ srcPath: "/_api/communities-blog-node-api/v3/draft-posts",
219
+ destPath: "/v3/draft-posts"
220
+ }
221
+ ]
222
+ };
223
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
224
+ }
225
+ var PACKAGE_NAME = "@wix/auto_sdk_blog_draft-posts";
226
+ function createDraftPost(payload) {
227
+ function __createDraftPost({ host }) {
228
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
229
+ {
230
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
231
+ paths: [{ path: "fieldMask" }]
232
+ },
233
+ {
234
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
235
+ paths: [
236
+ { path: "draftPost.editedDate" },
237
+ { path: "draftPost.scheduledPublishDate" },
238
+ { path: "draftPost.firstPublishedDate" },
239
+ { path: "draftPost.createdDate" },
240
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
241
+ { path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate" },
242
+ { path: "draftPost.heroImage.urlExpirationDate" },
243
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
244
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
245
+ { path: "draftPost.moderationDetails.submittedDate" },
246
+ { path: "draftPost.moderationDetails.moderationDate" },
247
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
248
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
249
+ {
250
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
251
+ },
252
+ {
253
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
254
+ },
255
+ {
256
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ transformFn: import_float.transformSDKFloatToRESTFloat,
262
+ paths: [
263
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
264
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
265
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
266
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
267
+ { path: "draftPost.heroImage.focalPoint.x" },
268
+ { path: "draftPost.heroImage.focalPoint.y" },
269
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
270
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
271
+ {
272
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
273
+ },
274
+ {
275
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
276
+ },
277
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
278
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
279
+ {
280
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
281
+ },
282
+ {
283
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
284
+ },
285
+ {
286
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
287
+ },
288
+ {
289
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
290
+ },
291
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
292
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
293
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
294
+ { path: "draftPost.richContent.nodes.pollData.poll.image.duration" },
295
+ {
296
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
297
+ },
298
+ {
299
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
300
+ },
301
+ { path: "draftPost.richContent.nodes.appEmbedData.image.duration" },
302
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
303
+ { path: "draftPost.richContent.nodes.videoData.thumbnail.duration" },
304
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
305
+ { path: "draftPost.richContent.nodes.audioData.coverImage.duration" }
306
+ ]
307
+ }
308
+ ]);
309
+ const metadata = {
310
+ entityFqdn: "wix.blog.v3.draft",
311
+ method: "POST",
312
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.CreateDraftPost",
313
+ packageName: PACKAGE_NAME,
314
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
315
+ { protoPath: "/v3/draft-posts", data: serializedData, host }
316
+ ),
317
+ data: serializedData,
318
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
319
+ {
320
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
321
+ paths: [
322
+ { path: "draftPost.editedDate" },
323
+ { path: "draftPost.scheduledPublishDate" },
324
+ { path: "draftPost.firstPublishedDate" },
325
+ { path: "draftPost.createdDate" },
326
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
327
+ {
328
+ path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate"
329
+ },
330
+ { path: "draftPost.heroImage.urlExpirationDate" },
331
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
332
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
333
+ { path: "draftPost.moderationDetails.submittedDate" },
334
+ { path: "draftPost.moderationDetails.moderationDate" },
335
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
336
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
337
+ {
338
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
339
+ },
340
+ {
341
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
342
+ },
343
+ {
344
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
345
+ }
346
+ ]
347
+ },
348
+ {
349
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
350
+ paths: [
351
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
352
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
353
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
354
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
355
+ { path: "draftPost.heroImage.focalPoint.x" },
356
+ { path: "draftPost.heroImage.focalPoint.y" },
357
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
358
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
359
+ {
360
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
361
+ },
362
+ {
363
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
364
+ },
365
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
366
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
367
+ {
368
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
369
+ },
370
+ {
371
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
372
+ },
373
+ {
374
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
375
+ },
376
+ {
377
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
378
+ },
379
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
380
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
381
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
382
+ {
383
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
384
+ },
385
+ {
386
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
387
+ },
388
+ {
389
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
390
+ },
391
+ {
392
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
393
+ },
394
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
395
+ {
396
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
397
+ },
398
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
399
+ {
400
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
401
+ }
402
+ ]
403
+ }
404
+ ])
405
+ };
406
+ return metadata;
407
+ }
408
+ return __createDraftPost;
409
+ }
410
+ function bulkCreateDraftPosts(payload) {
411
+ function __bulkCreateDraftPosts({ host }) {
412
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
413
+ {
414
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
415
+ paths: [{ path: "fieldMask" }]
416
+ },
417
+ {
418
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
419
+ paths: [
420
+ { path: "draftPosts.editedDate" },
421
+ { path: "draftPosts.scheduledPublishDate" },
422
+ { path: "draftPosts.firstPublishedDate" },
423
+ { path: "draftPosts.createdDate" },
424
+ { path: "draftPosts.coverMedia.image.urlExpirationDate" },
425
+ { path: "draftPosts.coverMedia.video.thumbnail.urlExpirationDate" },
426
+ { path: "draftPosts.heroImage.urlExpirationDate" },
427
+ { path: "draftPosts.richContent.metadata.createdTimestamp" },
428
+ { path: "draftPosts.richContent.metadata.updatedTimestamp" },
429
+ { path: "draftPosts.moderationDetails.submittedDate" },
430
+ { path: "draftPosts.moderationDetails.moderationDate" },
431
+ { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
432
+ { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
433
+ {
434
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
435
+ },
436
+ {
437
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
438
+ },
439
+ {
440
+ path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ transformFn: import_float.transformSDKFloatToRESTFloat,
446
+ paths: [
447
+ { path: "draftPosts.coverMedia.image.focalPoint.x" },
448
+ { path: "draftPosts.coverMedia.image.focalPoint.y" },
449
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.x" },
450
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.y" },
451
+ { path: "draftPosts.heroImage.focalPoint.x" },
452
+ { path: "draftPosts.heroImage.focalPoint.y" },
453
+ { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
454
+ { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
455
+ {
456
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
457
+ },
458
+ {
459
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
460
+ },
461
+ { path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x" },
462
+ { path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y" },
463
+ {
464
+ path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
465
+ },
466
+ {
467
+ path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
468
+ },
469
+ {
470
+ path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
471
+ },
472
+ {
473
+ path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
474
+ },
475
+ { path: "draftPosts.richContent.nodes.imageData.image.duration" },
476
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
477
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
478
+ { path: "draftPosts.richContent.nodes.pollData.poll.image.duration" },
479
+ {
480
+ path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
481
+ },
482
+ {
483
+ path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
484
+ },
485
+ { path: "draftPosts.richContent.nodes.appEmbedData.image.duration" },
486
+ { path: "draftPosts.richContent.nodes.videoData.video.duration" },
487
+ { path: "draftPosts.richContent.nodes.videoData.thumbnail.duration" },
488
+ { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
489
+ {
490
+ path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
491
+ }
492
+ ]
493
+ }
494
+ ]);
495
+ const metadata = {
496
+ entityFqdn: "wix.blog.v3.draft",
497
+ method: "POST",
498
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkCreateDraftPosts",
499
+ packageName: PACKAGE_NAME,
500
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
501
+ { protoPath: "/v3/bulk/draft-posts/create", data: serializedData, host }
502
+ ),
503
+ data: serializedData,
504
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
505
+ {
506
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
507
+ paths: [
508
+ { path: "results.item.editedDate" },
509
+ { path: "results.item.scheduledPublishDate" },
510
+ { path: "results.item.firstPublishedDate" },
511
+ { path: "results.item.createdDate" },
512
+ { path: "results.item.coverMedia.image.urlExpirationDate" },
513
+ {
514
+ path: "results.item.coverMedia.video.thumbnail.urlExpirationDate"
515
+ },
516
+ { path: "results.item.heroImage.urlExpirationDate" },
517
+ { path: "results.item.richContent.metadata.createdTimestamp" },
518
+ { path: "results.item.richContent.metadata.updatedTimestamp" },
519
+ { path: "results.item.moderationDetails.submittedDate" },
520
+ { path: "results.item.moderationDetails.moderationDate" },
521
+ { path: "results.item.media.wixMedia.image.urlExpirationDate" },
522
+ { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
523
+ {
524
+ path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
525
+ },
526
+ {
527
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
528
+ },
529
+ {
530
+ path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
536
+ paths: [
537
+ { path: "results.item.coverMedia.image.focalPoint.x" },
538
+ { path: "results.item.coverMedia.image.focalPoint.y" },
539
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.x" },
540
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.y" },
541
+ { path: "results.item.heroImage.focalPoint.x" },
542
+ { path: "results.item.heroImage.focalPoint.y" },
543
+ { path: "results.item.media.wixMedia.image.focalPoint.x" },
544
+ { path: "results.item.media.wixMedia.image.focalPoint.y" },
545
+ {
546
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
547
+ },
548
+ {
549
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
550
+ },
551
+ {
552
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
553
+ },
554
+ {
555
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
556
+ },
557
+ {
558
+ path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
559
+ },
560
+ {
561
+ path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
562
+ },
563
+ {
564
+ path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
565
+ },
566
+ {
567
+ path: "results.item.richContent.nodes.galleryData.options.item.ratio"
568
+ },
569
+ {
570
+ path: "results.item.richContent.nodes.imageData.image.duration"
571
+ },
572
+ {
573
+ path: "results.item.richContent.nodes.mapData.mapSettings.lat"
574
+ },
575
+ {
576
+ path: "results.item.richContent.nodes.mapData.mapSettings.lng"
577
+ },
578
+ {
579
+ path: "results.item.richContent.nodes.pollData.poll.image.duration"
580
+ },
581
+ {
582
+ path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
583
+ },
584
+ {
585
+ path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
586
+ },
587
+ {
588
+ path: "results.item.richContent.nodes.appEmbedData.image.duration"
589
+ },
590
+ {
591
+ path: "results.item.richContent.nodes.videoData.video.duration"
592
+ },
593
+ {
594
+ path: "results.item.richContent.nodes.videoData.thumbnail.duration"
595
+ },
596
+ {
597
+ path: "results.item.richContent.nodes.audioData.audio.duration"
598
+ },
599
+ {
600
+ path: "results.item.richContent.nodes.audioData.coverImage.duration"
601
+ }
602
+ ]
603
+ }
604
+ ])
605
+ };
606
+ return metadata;
607
+ }
608
+ return __bulkCreateDraftPosts;
609
+ }
610
+ function bulkUpdateDraftPosts(payload) {
611
+ function __bulkUpdateDraftPosts({ host }) {
612
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
613
+ {
614
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
615
+ paths: [
616
+ { path: "scheduledPublishDate" },
617
+ { path: "draftPosts.draftPost.editedDate" },
618
+ { path: "draftPosts.draftPost.scheduledPublishDate" },
619
+ { path: "draftPosts.draftPost.firstPublishedDate" },
620
+ { path: "draftPosts.draftPost.createdDate" },
621
+ { path: "draftPosts.draftPost.coverMedia.image.urlExpirationDate" },
622
+ {
623
+ path: "draftPosts.draftPost.coverMedia.video.thumbnail.urlExpirationDate"
624
+ },
625
+ { path: "draftPosts.draftPost.heroImage.urlExpirationDate" },
626
+ {
627
+ path: "draftPosts.draftPost.richContent.metadata.createdTimestamp"
628
+ },
629
+ {
630
+ path: "draftPosts.draftPost.richContent.metadata.updatedTimestamp"
631
+ },
632
+ { path: "draftPosts.draftPost.moderationDetails.submittedDate" },
633
+ { path: "draftPosts.draftPost.moderationDetails.moderationDate" },
634
+ {
635
+ path: "draftPosts.draftPost.media.wixMedia.image.urlExpirationDate"
636
+ },
637
+ {
638
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.urlExpirationDate"
639
+ },
640
+ {
641
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
642
+ },
643
+ {
644
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
645
+ },
646
+ {
647
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
648
+ }
649
+ ]
650
+ },
651
+ {
652
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
653
+ paths: [{ path: "draftPosts.fieldMask" }]
654
+ },
655
+ {
656
+ transformFn: import_float.transformSDKFloatToRESTFloat,
657
+ paths: [
658
+ { path: "draftPosts.draftPost.coverMedia.image.focalPoint.x" },
659
+ { path: "draftPosts.draftPost.coverMedia.image.focalPoint.y" },
660
+ {
661
+ path: "draftPosts.draftPost.coverMedia.video.thumbnail.focalPoint.x"
662
+ },
663
+ {
664
+ path: "draftPosts.draftPost.coverMedia.video.thumbnail.focalPoint.y"
665
+ },
666
+ { path: "draftPosts.draftPost.heroImage.focalPoint.x" },
667
+ { path: "draftPosts.draftPost.heroImage.focalPoint.y" },
668
+ { path: "draftPosts.draftPost.media.wixMedia.image.focalPoint.x" },
669
+ { path: "draftPosts.draftPost.media.wixMedia.image.focalPoint.y" },
670
+ {
671
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
672
+ },
673
+ {
674
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
675
+ },
676
+ {
677
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.x"
678
+ },
679
+ {
680
+ path: "draftPosts.draftPost.media.wixMedia.videoV2.posters.focalPoint.y"
681
+ },
682
+ {
683
+ path: "draftPosts.draftPost.richContent.nodes.galleryData.items.image.media.duration"
684
+ },
685
+ {
686
+ path: "draftPosts.draftPost.richContent.nodes.galleryData.items.video.media.duration"
687
+ },
688
+ {
689
+ path: "draftPosts.draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
690
+ },
691
+ {
692
+ path: "draftPosts.draftPost.richContent.nodes.galleryData.options.item.ratio"
693
+ },
694
+ {
695
+ path: "draftPosts.draftPost.richContent.nodes.imageData.image.duration"
696
+ },
697
+ {
698
+ path: "draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lat"
699
+ },
700
+ {
701
+ path: "draftPosts.draftPost.richContent.nodes.mapData.mapSettings.lng"
702
+ },
703
+ {
704
+ path: "draftPosts.draftPost.richContent.nodes.pollData.poll.image.duration"
705
+ },
706
+ {
707
+ path: "draftPosts.draftPost.richContent.nodes.pollData.poll.options.image.duration"
708
+ },
709
+ {
710
+ path: "draftPosts.draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
711
+ },
712
+ {
713
+ path: "draftPosts.draftPost.richContent.nodes.appEmbedData.image.duration"
714
+ },
715
+ {
716
+ path: "draftPosts.draftPost.richContent.nodes.videoData.video.duration"
717
+ },
718
+ {
719
+ path: "draftPosts.draftPost.richContent.nodes.videoData.thumbnail.duration"
720
+ },
721
+ {
722
+ path: "draftPosts.draftPost.richContent.nodes.audioData.audio.duration"
723
+ },
724
+ {
725
+ path: "draftPosts.draftPost.richContent.nodes.audioData.coverImage.duration"
726
+ }
727
+ ]
728
+ }
729
+ ]);
730
+ const metadata = {
731
+ entityFqdn: "wix.blog.v3.draft",
732
+ method: "PATCH",
733
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkUpdateDraftPosts",
734
+ packageName: PACKAGE_NAME,
735
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
736
+ { protoPath: "/v3/draft-posts/update", data: serializedData, host }
737
+ ),
738
+ data: serializedData,
739
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
740
+ {
741
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
742
+ paths: [
743
+ { path: "results.item.editedDate" },
744
+ { path: "results.item.scheduledPublishDate" },
745
+ { path: "results.item.firstPublishedDate" },
746
+ { path: "results.item.createdDate" },
747
+ { path: "results.item.coverMedia.image.urlExpirationDate" },
748
+ {
749
+ path: "results.item.coverMedia.video.thumbnail.urlExpirationDate"
750
+ },
751
+ { path: "results.item.heroImage.urlExpirationDate" },
752
+ { path: "results.item.richContent.metadata.createdTimestamp" },
753
+ { path: "results.item.richContent.metadata.updatedTimestamp" },
754
+ { path: "results.item.moderationDetails.submittedDate" },
755
+ { path: "results.item.moderationDetails.moderationDate" },
756
+ { path: "results.item.media.wixMedia.image.urlExpirationDate" },
757
+ { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
758
+ {
759
+ path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
760
+ },
761
+ {
762
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
763
+ },
764
+ {
765
+ path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
766
+ }
767
+ ]
768
+ },
769
+ {
770
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
771
+ paths: [
772
+ { path: "results.item.coverMedia.image.focalPoint.x" },
773
+ { path: "results.item.coverMedia.image.focalPoint.y" },
774
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.x" },
775
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.y" },
776
+ { path: "results.item.heroImage.focalPoint.x" },
777
+ { path: "results.item.heroImage.focalPoint.y" },
778
+ { path: "results.item.media.wixMedia.image.focalPoint.x" },
779
+ { path: "results.item.media.wixMedia.image.focalPoint.y" },
780
+ {
781
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
782
+ },
783
+ {
784
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
785
+ },
786
+ {
787
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
788
+ },
789
+ {
790
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
791
+ },
792
+ {
793
+ path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
794
+ },
795
+ {
796
+ path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
797
+ },
798
+ {
799
+ path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
800
+ },
801
+ {
802
+ path: "results.item.richContent.nodes.galleryData.options.item.ratio"
803
+ },
804
+ {
805
+ path: "results.item.richContent.nodes.imageData.image.duration"
806
+ },
807
+ {
808
+ path: "results.item.richContent.nodes.mapData.mapSettings.lat"
809
+ },
810
+ {
811
+ path: "results.item.richContent.nodes.mapData.mapSettings.lng"
812
+ },
813
+ {
814
+ path: "results.item.richContent.nodes.pollData.poll.image.duration"
815
+ },
816
+ {
817
+ path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
818
+ },
819
+ {
820
+ path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
821
+ },
822
+ {
823
+ path: "results.item.richContent.nodes.appEmbedData.image.duration"
824
+ },
825
+ {
826
+ path: "results.item.richContent.nodes.videoData.video.duration"
827
+ },
828
+ {
829
+ path: "results.item.richContent.nodes.videoData.thumbnail.duration"
830
+ },
831
+ {
832
+ path: "results.item.richContent.nodes.audioData.audio.duration"
833
+ },
834
+ {
835
+ path: "results.item.richContent.nodes.audioData.coverImage.duration"
836
+ }
837
+ ]
838
+ }
839
+ ])
840
+ };
841
+ return metadata;
842
+ }
843
+ return __bulkUpdateDraftPosts;
844
+ }
845
+ function listDeletedDraftPosts(payload) {
846
+ function __listDeletedDraftPosts({ host }) {
847
+ const metadata = {
848
+ entityFqdn: "wix.blog.v3.draft",
849
+ method: "GET",
850
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDeletedDraftPosts",
851
+ packageName: PACKAGE_NAME,
852
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
853
+ { protoPath: "/v3/draft-posts/trash-bin", data: payload, host }
854
+ ),
855
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
856
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
857
+ {
858
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
859
+ paths: [
860
+ { path: "draftPosts.editedDate" },
861
+ { path: "draftPosts.scheduledPublishDate" },
862
+ { path: "draftPosts.firstPublishedDate" },
863
+ { path: "draftPosts.createdDate" },
864
+ { path: "draftPosts.coverMedia.image.urlExpirationDate" },
865
+ {
866
+ path: "draftPosts.coverMedia.video.thumbnail.urlExpirationDate"
867
+ },
868
+ { path: "draftPosts.heroImage.urlExpirationDate" },
869
+ { path: "draftPosts.richContent.metadata.createdTimestamp" },
870
+ { path: "draftPosts.richContent.metadata.updatedTimestamp" },
871
+ { path: "draftPosts.moderationDetails.submittedDate" },
872
+ { path: "draftPosts.moderationDetails.moderationDate" },
873
+ { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
874
+ { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
875
+ {
876
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
877
+ },
878
+ {
879
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
880
+ },
881
+ {
882
+ path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
883
+ }
884
+ ]
885
+ },
886
+ {
887
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
888
+ paths: [
889
+ { path: "draftPosts.coverMedia.image.focalPoint.x" },
890
+ { path: "draftPosts.coverMedia.image.focalPoint.y" },
891
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.x" },
892
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.y" },
893
+ { path: "draftPosts.heroImage.focalPoint.x" },
894
+ { path: "draftPosts.heroImage.focalPoint.y" },
895
+ { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
896
+ { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
897
+ {
898
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
899
+ },
900
+ {
901
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
902
+ },
903
+ {
904
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
905
+ },
906
+ {
907
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
908
+ },
909
+ {
910
+ path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
911
+ },
912
+ {
913
+ path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
914
+ },
915
+ {
916
+ path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
917
+ },
918
+ {
919
+ path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
920
+ },
921
+ { path: "draftPosts.richContent.nodes.imageData.image.duration" },
922
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
923
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
924
+ {
925
+ path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
926
+ },
927
+ {
928
+ path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
929
+ },
930
+ {
931
+ path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
932
+ },
933
+ {
934
+ path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
935
+ },
936
+ { path: "draftPosts.richContent.nodes.videoData.video.duration" },
937
+ {
938
+ path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
939
+ },
940
+ { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
941
+ {
942
+ path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
943
+ }
944
+ ]
945
+ }
946
+ ])
947
+ };
948
+ return metadata;
949
+ }
950
+ return __listDeletedDraftPosts;
951
+ }
952
+ function getDraftPost(payload) {
953
+ function __getDraftPost({ host }) {
954
+ const metadata = {
955
+ entityFqdn: "wix.blog.v3.draft",
956
+ method: "GET",
957
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDraftPost",
958
+ packageName: PACKAGE_NAME,
959
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
960
+ { protoPath: "/v3/draft-posts/{draftPostId}", data: payload, host }
961
+ ),
962
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
963
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
964
+ {
965
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
966
+ paths: [
967
+ { path: "draftPost.editedDate" },
968
+ { path: "draftPost.scheduledPublishDate" },
969
+ { path: "draftPost.firstPublishedDate" },
970
+ { path: "draftPost.createdDate" },
971
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
972
+ {
973
+ path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate"
974
+ },
975
+ { path: "draftPost.heroImage.urlExpirationDate" },
976
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
977
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
978
+ { path: "draftPost.moderationDetails.submittedDate" },
979
+ { path: "draftPost.moderationDetails.moderationDate" },
980
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
981
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
982
+ {
983
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
984
+ },
985
+ {
986
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
987
+ },
988
+ {
989
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
990
+ }
991
+ ]
992
+ },
993
+ {
994
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
995
+ paths: [
996
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
997
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
998
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
999
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
1000
+ { path: "draftPost.heroImage.focalPoint.x" },
1001
+ { path: "draftPost.heroImage.focalPoint.y" },
1002
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1003
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1004
+ {
1005
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1006
+ },
1007
+ {
1008
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1009
+ },
1010
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1011
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1012
+ {
1013
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1014
+ },
1015
+ {
1016
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1017
+ },
1018
+ {
1019
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1020
+ },
1021
+ {
1022
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1023
+ },
1024
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
1025
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1026
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1027
+ {
1028
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1029
+ },
1030
+ {
1031
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1032
+ },
1033
+ {
1034
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1035
+ },
1036
+ {
1037
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1038
+ },
1039
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
1040
+ {
1041
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1042
+ },
1043
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1044
+ {
1045
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1046
+ }
1047
+ ]
1048
+ }
1049
+ ])
1050
+ };
1051
+ return metadata;
1052
+ }
1053
+ return __getDraftPost;
1054
+ }
1055
+ function updateDraftPost(payload) {
1056
+ function __updateDraftPost({ host }) {
1057
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1058
+ {
1059
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
1060
+ paths: [{ path: "fieldMask" }]
1061
+ },
1062
+ {
1063
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
1064
+ paths: [
1065
+ { path: "scheduledPublishDate" },
1066
+ { path: "draftPost.editedDate" },
1067
+ { path: "draftPost.scheduledPublishDate" },
1068
+ { path: "draftPost.firstPublishedDate" },
1069
+ { path: "draftPost.createdDate" },
1070
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
1071
+ { path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate" },
1072
+ { path: "draftPost.heroImage.urlExpirationDate" },
1073
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
1074
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
1075
+ { path: "draftPost.moderationDetails.submittedDate" },
1076
+ { path: "draftPost.moderationDetails.moderationDate" },
1077
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1078
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1079
+ {
1080
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1081
+ },
1082
+ {
1083
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1084
+ },
1085
+ {
1086
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1087
+ }
1088
+ ]
1089
+ },
1090
+ {
1091
+ transformFn: import_float.transformSDKFloatToRESTFloat,
1092
+ paths: [
1093
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
1094
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
1095
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
1096
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
1097
+ { path: "draftPost.heroImage.focalPoint.x" },
1098
+ { path: "draftPost.heroImage.focalPoint.y" },
1099
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1100
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1101
+ {
1102
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1103
+ },
1104
+ {
1105
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1106
+ },
1107
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1108
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1109
+ {
1110
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1111
+ },
1112
+ {
1113
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1114
+ },
1115
+ {
1116
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1117
+ },
1118
+ {
1119
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1120
+ },
1121
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
1122
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1123
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1124
+ { path: "draftPost.richContent.nodes.pollData.poll.image.duration" },
1125
+ {
1126
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1127
+ },
1128
+ {
1129
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1130
+ },
1131
+ { path: "draftPost.richContent.nodes.appEmbedData.image.duration" },
1132
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
1133
+ { path: "draftPost.richContent.nodes.videoData.thumbnail.duration" },
1134
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1135
+ { path: "draftPost.richContent.nodes.audioData.coverImage.duration" }
1136
+ ]
1137
+ }
1138
+ ]);
1139
+ const metadata = {
1140
+ entityFqdn: "wix.blog.v3.draft",
1141
+ method: "PATCH",
1142
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.UpdateDraftPost",
1143
+ packageName: PACKAGE_NAME,
1144
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1145
+ {
1146
+ protoPath: "/v3/draft-posts/{draftPost.id}",
1147
+ data: serializedData,
1148
+ host
1149
+ }
1150
+ ),
1151
+ data: serializedData,
1152
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1153
+ {
1154
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1155
+ paths: [
1156
+ { path: "draftPost.editedDate" },
1157
+ { path: "draftPost.scheduledPublishDate" },
1158
+ { path: "draftPost.firstPublishedDate" },
1159
+ { path: "draftPost.createdDate" },
1160
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
1161
+ {
1162
+ path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate"
1163
+ },
1164
+ { path: "draftPost.heroImage.urlExpirationDate" },
1165
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
1166
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
1167
+ { path: "draftPost.moderationDetails.submittedDate" },
1168
+ { path: "draftPost.moderationDetails.moderationDate" },
1169
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1170
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1171
+ {
1172
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1173
+ },
1174
+ {
1175
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1176
+ },
1177
+ {
1178
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1179
+ }
1180
+ ]
1181
+ },
1182
+ {
1183
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1184
+ paths: [
1185
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
1186
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
1187
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
1188
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
1189
+ { path: "draftPost.heroImage.focalPoint.x" },
1190
+ { path: "draftPost.heroImage.focalPoint.y" },
1191
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1192
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1193
+ {
1194
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1195
+ },
1196
+ {
1197
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1198
+ },
1199
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1200
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1201
+ {
1202
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1203
+ },
1204
+ {
1205
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1206
+ },
1207
+ {
1208
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1209
+ },
1210
+ {
1211
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1212
+ },
1213
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
1214
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1215
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1216
+ {
1217
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1218
+ },
1219
+ {
1220
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1221
+ },
1222
+ {
1223
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1224
+ },
1225
+ {
1226
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1227
+ },
1228
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
1229
+ {
1230
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1231
+ },
1232
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1233
+ {
1234
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1235
+ }
1236
+ ]
1237
+ }
1238
+ ])
1239
+ };
1240
+ return metadata;
1241
+ }
1242
+ return __updateDraftPost;
1243
+ }
1244
+ function deleteDraftPost(payload) {
1245
+ function __deleteDraftPost({ host }) {
1246
+ const metadata = {
1247
+ entityFqdn: "wix.blog.v3.draft",
1248
+ method: "DELETE",
1249
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.DeleteDraftPost",
1250
+ packageName: PACKAGE_NAME,
1251
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1252
+ { protoPath: "/v3/draft-posts/{draftPostId}", data: payload, host }
1253
+ ),
1254
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1255
+ };
1256
+ return metadata;
1257
+ }
1258
+ return __deleteDraftPost;
1259
+ }
1260
+ function removeFromTrashBin(payload) {
1261
+ function __removeFromTrashBin({ host }) {
1262
+ const metadata = {
1263
+ entityFqdn: "wix.blog.v3.draft",
1264
+ method: "DELETE",
1265
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RemoveFromTrashBin",
1266
+ packageName: PACKAGE_NAME,
1267
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1268
+ {
1269
+ protoPath: "/v3/draft-posts/trash-bin/{draftPostId}",
1270
+ data: payload,
1271
+ host
1272
+ }
1273
+ ),
1274
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
1275
+ };
1276
+ return metadata;
1277
+ }
1278
+ return __removeFromTrashBin;
1279
+ }
1280
+ function bulkDeleteDraftPosts(payload) {
1281
+ function __bulkDeleteDraftPosts({ host }) {
1282
+ const metadata = {
1283
+ entityFqdn: "wix.blog.v3.draft",
1284
+ method: "DELETE",
1285
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.BulkDeleteDraftPosts",
1286
+ packageName: PACKAGE_NAME,
1287
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1288
+ { protoPath: "/v3/bulk/draft-posts", data: payload, host }
1289
+ ),
1290
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1291
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1292
+ {
1293
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1294
+ paths: [
1295
+ { path: "results.item.editedDate" },
1296
+ { path: "results.item.scheduledPublishDate" },
1297
+ { path: "results.item.firstPublishedDate" },
1298
+ { path: "results.item.createdDate" },
1299
+ { path: "results.item.coverMedia.image.urlExpirationDate" },
1300
+ {
1301
+ path: "results.item.coverMedia.video.thumbnail.urlExpirationDate"
1302
+ },
1303
+ { path: "results.item.heroImage.urlExpirationDate" },
1304
+ { path: "results.item.richContent.metadata.createdTimestamp" },
1305
+ { path: "results.item.richContent.metadata.updatedTimestamp" },
1306
+ { path: "results.item.moderationDetails.submittedDate" },
1307
+ { path: "results.item.moderationDetails.moderationDate" },
1308
+ { path: "results.item.media.wixMedia.image.urlExpirationDate" },
1309
+ { path: "results.item.media.wixMedia.videoV2.urlExpirationDate" },
1310
+ {
1311
+ path: "results.item.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1312
+ },
1313
+ {
1314
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1315
+ },
1316
+ {
1317
+ path: "results.item.media.wixMedia.videoV2.posters.urlExpirationDate"
1318
+ }
1319
+ ]
1320
+ },
1321
+ {
1322
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1323
+ paths: [
1324
+ { path: "results.item.coverMedia.image.focalPoint.x" },
1325
+ { path: "results.item.coverMedia.image.focalPoint.y" },
1326
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.x" },
1327
+ { path: "results.item.coverMedia.video.thumbnail.focalPoint.y" },
1328
+ { path: "results.item.heroImage.focalPoint.x" },
1329
+ { path: "results.item.heroImage.focalPoint.y" },
1330
+ { path: "results.item.media.wixMedia.image.focalPoint.x" },
1331
+ { path: "results.item.media.wixMedia.image.focalPoint.y" },
1332
+ {
1333
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1334
+ },
1335
+ {
1336
+ path: "results.item.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1337
+ },
1338
+ {
1339
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.x"
1340
+ },
1341
+ {
1342
+ path: "results.item.media.wixMedia.videoV2.posters.focalPoint.y"
1343
+ },
1344
+ {
1345
+ path: "results.item.richContent.nodes.galleryData.items.image.media.duration"
1346
+ },
1347
+ {
1348
+ path: "results.item.richContent.nodes.galleryData.items.video.media.duration"
1349
+ },
1350
+ {
1351
+ path: "results.item.richContent.nodes.galleryData.items.video.thumbnail.duration"
1352
+ },
1353
+ {
1354
+ path: "results.item.richContent.nodes.galleryData.options.item.ratio"
1355
+ },
1356
+ {
1357
+ path: "results.item.richContent.nodes.imageData.image.duration"
1358
+ },
1359
+ {
1360
+ path: "results.item.richContent.nodes.mapData.mapSettings.lat"
1361
+ },
1362
+ {
1363
+ path: "results.item.richContent.nodes.mapData.mapSettings.lng"
1364
+ },
1365
+ {
1366
+ path: "results.item.richContent.nodes.pollData.poll.image.duration"
1367
+ },
1368
+ {
1369
+ path: "results.item.richContent.nodes.pollData.poll.options.image.duration"
1370
+ },
1371
+ {
1372
+ path: "results.item.richContent.nodes.pollData.design.poll.background.image.duration"
1373
+ },
1374
+ {
1375
+ path: "results.item.richContent.nodes.appEmbedData.image.duration"
1376
+ },
1377
+ {
1378
+ path: "results.item.richContent.nodes.videoData.video.duration"
1379
+ },
1380
+ {
1381
+ path: "results.item.richContent.nodes.videoData.thumbnail.duration"
1382
+ },
1383
+ {
1384
+ path: "results.item.richContent.nodes.audioData.audio.duration"
1385
+ },
1386
+ {
1387
+ path: "results.item.richContent.nodes.audioData.coverImage.duration"
1388
+ }
1389
+ ]
1390
+ }
1391
+ ])
1392
+ };
1393
+ return metadata;
1394
+ }
1395
+ return __bulkDeleteDraftPosts;
1396
+ }
1397
+ function listDraftPosts(payload) {
1398
+ function __listDraftPosts({ host }) {
1399
+ const metadata = {
1400
+ entityFqdn: "wix.blog.v3.draft",
1401
+ method: "GET",
1402
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.ListDraftPosts",
1403
+ packageName: PACKAGE_NAME,
1404
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1405
+ { protoPath: "/v3/draft-posts", data: payload, host }
1406
+ ),
1407
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1408
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1409
+ {
1410
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1411
+ paths: [
1412
+ { path: "draftPosts.editedDate" },
1413
+ { path: "draftPosts.scheduledPublishDate" },
1414
+ { path: "draftPosts.firstPublishedDate" },
1415
+ { path: "draftPosts.createdDate" },
1416
+ { path: "draftPosts.coverMedia.image.urlExpirationDate" },
1417
+ {
1418
+ path: "draftPosts.coverMedia.video.thumbnail.urlExpirationDate"
1419
+ },
1420
+ { path: "draftPosts.heroImage.urlExpirationDate" },
1421
+ { path: "draftPosts.richContent.metadata.createdTimestamp" },
1422
+ { path: "draftPosts.richContent.metadata.updatedTimestamp" },
1423
+ { path: "draftPosts.moderationDetails.submittedDate" },
1424
+ { path: "draftPosts.moderationDetails.moderationDate" },
1425
+ { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
1426
+ { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
1427
+ {
1428
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1429
+ },
1430
+ {
1431
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1432
+ },
1433
+ {
1434
+ path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1440
+ paths: [
1441
+ { path: "draftPosts.coverMedia.image.focalPoint.x" },
1442
+ { path: "draftPosts.coverMedia.image.focalPoint.y" },
1443
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.x" },
1444
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.y" },
1445
+ { path: "draftPosts.heroImage.focalPoint.x" },
1446
+ { path: "draftPosts.heroImage.focalPoint.y" },
1447
+ { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
1448
+ { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
1449
+ {
1450
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1451
+ },
1452
+ {
1453
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1454
+ },
1455
+ {
1456
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
1457
+ },
1458
+ {
1459
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
1460
+ },
1461
+ {
1462
+ path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
1463
+ },
1464
+ {
1465
+ path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
1466
+ },
1467
+ {
1468
+ path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1469
+ },
1470
+ {
1471
+ path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
1472
+ },
1473
+ { path: "draftPosts.richContent.nodes.imageData.image.duration" },
1474
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
1475
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
1476
+ {
1477
+ path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
1478
+ },
1479
+ {
1480
+ path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
1481
+ },
1482
+ {
1483
+ path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
1484
+ },
1485
+ {
1486
+ path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
1487
+ },
1488
+ { path: "draftPosts.richContent.nodes.videoData.video.duration" },
1489
+ {
1490
+ path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
1491
+ },
1492
+ { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
1493
+ {
1494
+ path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
1495
+ }
1496
+ ]
1497
+ }
1498
+ ])
1499
+ };
1500
+ return metadata;
1501
+ }
1502
+ return __listDraftPosts;
1503
+ }
1504
+ function getDeletedDraftPost(payload) {
1505
+ function __getDeletedDraftPost({ host }) {
1506
+ const metadata = {
1507
+ entityFqdn: "wix.blog.v3.draft",
1508
+ method: "GET",
1509
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.GetDeletedDraftPost",
1510
+ packageName: PACKAGE_NAME,
1511
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1512
+ {
1513
+ protoPath: "/v3/draft-posts/trash-bin/{draftPostId}",
1514
+ data: payload,
1515
+ host
1516
+ }
1517
+ ),
1518
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
1519
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1520
+ {
1521
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1522
+ paths: [
1523
+ { path: "draftPost.editedDate" },
1524
+ { path: "draftPost.scheduledPublishDate" },
1525
+ { path: "draftPost.firstPublishedDate" },
1526
+ { path: "draftPost.createdDate" },
1527
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
1528
+ {
1529
+ path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate"
1530
+ },
1531
+ { path: "draftPost.heroImage.urlExpirationDate" },
1532
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
1533
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
1534
+ { path: "draftPost.moderationDetails.submittedDate" },
1535
+ { path: "draftPost.moderationDetails.moderationDate" },
1536
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1537
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1538
+ {
1539
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1540
+ },
1541
+ {
1542
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1543
+ },
1544
+ {
1545
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1546
+ }
1547
+ ]
1548
+ },
1549
+ {
1550
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1551
+ paths: [
1552
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
1553
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
1554
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
1555
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
1556
+ { path: "draftPost.heroImage.focalPoint.x" },
1557
+ { path: "draftPost.heroImage.focalPoint.y" },
1558
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1559
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1560
+ {
1561
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1562
+ },
1563
+ {
1564
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1565
+ },
1566
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1567
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1568
+ {
1569
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1570
+ },
1571
+ {
1572
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1573
+ },
1574
+ {
1575
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1576
+ },
1577
+ {
1578
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1579
+ },
1580
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
1581
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1582
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1583
+ {
1584
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1585
+ },
1586
+ {
1587
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1588
+ },
1589
+ {
1590
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1591
+ },
1592
+ {
1593
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1594
+ },
1595
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
1596
+ {
1597
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1598
+ },
1599
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1600
+ {
1601
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1602
+ }
1603
+ ]
1604
+ }
1605
+ ])
1606
+ };
1607
+ return metadata;
1608
+ }
1609
+ return __getDeletedDraftPost;
1610
+ }
1611
+ function restoreFromTrashBin(payload) {
1612
+ function __restoreFromTrashBin({ host }) {
1613
+ const metadata = {
1614
+ entityFqdn: "wix.blog.v3.draft",
1615
+ method: "POST",
1616
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.RestoreFromTrashBin",
1617
+ packageName: PACKAGE_NAME,
1618
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1619
+ {
1620
+ protoPath: "/v3/draft-posts/trash-bin/{draftPostId}/restore",
1621
+ data: payload,
1622
+ host
1623
+ }
1624
+ ),
1625
+ data: payload,
1626
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1627
+ {
1628
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1629
+ paths: [
1630
+ { path: "draftPost.editedDate" },
1631
+ { path: "draftPost.scheduledPublishDate" },
1632
+ { path: "draftPost.firstPublishedDate" },
1633
+ { path: "draftPost.createdDate" },
1634
+ { path: "draftPost.coverMedia.image.urlExpirationDate" },
1635
+ {
1636
+ path: "draftPost.coverMedia.video.thumbnail.urlExpirationDate"
1637
+ },
1638
+ { path: "draftPost.heroImage.urlExpirationDate" },
1639
+ { path: "draftPost.richContent.metadata.createdTimestamp" },
1640
+ { path: "draftPost.richContent.metadata.updatedTimestamp" },
1641
+ { path: "draftPost.moderationDetails.submittedDate" },
1642
+ { path: "draftPost.moderationDetails.moderationDate" },
1643
+ { path: "draftPost.media.wixMedia.image.urlExpirationDate" },
1644
+ { path: "draftPost.media.wixMedia.videoV2.urlExpirationDate" },
1645
+ {
1646
+ path: "draftPost.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1647
+ },
1648
+ {
1649
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1650
+ },
1651
+ {
1652
+ path: "draftPost.media.wixMedia.videoV2.posters.urlExpirationDate"
1653
+ }
1654
+ ]
1655
+ },
1656
+ {
1657
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1658
+ paths: [
1659
+ { path: "draftPost.coverMedia.image.focalPoint.x" },
1660
+ { path: "draftPost.coverMedia.image.focalPoint.y" },
1661
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.x" },
1662
+ { path: "draftPost.coverMedia.video.thumbnail.focalPoint.y" },
1663
+ { path: "draftPost.heroImage.focalPoint.x" },
1664
+ { path: "draftPost.heroImage.focalPoint.y" },
1665
+ { path: "draftPost.media.wixMedia.image.focalPoint.x" },
1666
+ { path: "draftPost.media.wixMedia.image.focalPoint.y" },
1667
+ {
1668
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1669
+ },
1670
+ {
1671
+ path: "draftPost.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1672
+ },
1673
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.x" },
1674
+ { path: "draftPost.media.wixMedia.videoV2.posters.focalPoint.y" },
1675
+ {
1676
+ path: "draftPost.richContent.nodes.galleryData.items.image.media.duration"
1677
+ },
1678
+ {
1679
+ path: "draftPost.richContent.nodes.galleryData.items.video.media.duration"
1680
+ },
1681
+ {
1682
+ path: "draftPost.richContent.nodes.galleryData.items.video.thumbnail.duration"
1683
+ },
1684
+ {
1685
+ path: "draftPost.richContent.nodes.galleryData.options.item.ratio"
1686
+ },
1687
+ { path: "draftPost.richContent.nodes.imageData.image.duration" },
1688
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lat" },
1689
+ { path: "draftPost.richContent.nodes.mapData.mapSettings.lng" },
1690
+ {
1691
+ path: "draftPost.richContent.nodes.pollData.poll.image.duration"
1692
+ },
1693
+ {
1694
+ path: "draftPost.richContent.nodes.pollData.poll.options.image.duration"
1695
+ },
1696
+ {
1697
+ path: "draftPost.richContent.nodes.pollData.design.poll.background.image.duration"
1698
+ },
1699
+ {
1700
+ path: "draftPost.richContent.nodes.appEmbedData.image.duration"
1701
+ },
1702
+ { path: "draftPost.richContent.nodes.videoData.video.duration" },
1703
+ {
1704
+ path: "draftPost.richContent.nodes.videoData.thumbnail.duration"
1705
+ },
1706
+ { path: "draftPost.richContent.nodes.audioData.audio.duration" },
1707
+ {
1708
+ path: "draftPost.richContent.nodes.audioData.coverImage.duration"
1709
+ }
1710
+ ]
1711
+ }
1712
+ ])
1713
+ };
1714
+ return metadata;
1715
+ }
1716
+ return __restoreFromTrashBin;
1717
+ }
1718
+ function queryDraftPosts(payload) {
1719
+ function __queryDraftPosts({ host }) {
1720
+ const metadata = {
1721
+ entityFqdn: "wix.blog.v3.draft",
1722
+ method: "POST",
1723
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.QueryDraftPosts",
1724
+ packageName: PACKAGE_NAME,
1725
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1726
+ { protoPath: "/v3/draft-posts/query", data: payload, host }
1727
+ ),
1728
+ data: payload,
1729
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
1730
+ {
1731
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
1732
+ paths: [
1733
+ { path: "draftPosts.editedDate" },
1734
+ { path: "draftPosts.scheduledPublishDate" },
1735
+ { path: "draftPosts.firstPublishedDate" },
1736
+ { path: "draftPosts.createdDate" },
1737
+ { path: "draftPosts.coverMedia.image.urlExpirationDate" },
1738
+ {
1739
+ path: "draftPosts.coverMedia.video.thumbnail.urlExpirationDate"
1740
+ },
1741
+ { path: "draftPosts.heroImage.urlExpirationDate" },
1742
+ { path: "draftPosts.richContent.metadata.createdTimestamp" },
1743
+ { path: "draftPosts.richContent.metadata.updatedTimestamp" },
1744
+ { path: "draftPosts.moderationDetails.submittedDate" },
1745
+ { path: "draftPosts.moderationDetails.moderationDate" },
1746
+ { path: "draftPosts.media.wixMedia.image.urlExpirationDate" },
1747
+ { path: "draftPosts.media.wixMedia.videoV2.urlExpirationDate" },
1748
+ {
1749
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
1750
+ },
1751
+ {
1752
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
1753
+ },
1754
+ {
1755
+ path: "draftPosts.media.wixMedia.videoV2.posters.urlExpirationDate"
1756
+ }
1757
+ ]
1758
+ },
1759
+ {
1760
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
1761
+ paths: [
1762
+ { path: "draftPosts.coverMedia.image.focalPoint.x" },
1763
+ { path: "draftPosts.coverMedia.image.focalPoint.y" },
1764
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.x" },
1765
+ { path: "draftPosts.coverMedia.video.thumbnail.focalPoint.y" },
1766
+ { path: "draftPosts.heroImage.focalPoint.x" },
1767
+ { path: "draftPosts.heroImage.focalPoint.y" },
1768
+ { path: "draftPosts.media.wixMedia.image.focalPoint.x" },
1769
+ { path: "draftPosts.media.wixMedia.image.focalPoint.y" },
1770
+ {
1771
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
1772
+ },
1773
+ {
1774
+ path: "draftPosts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
1775
+ },
1776
+ {
1777
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.x"
1778
+ },
1779
+ {
1780
+ path: "draftPosts.media.wixMedia.videoV2.posters.focalPoint.y"
1781
+ },
1782
+ {
1783
+ path: "draftPosts.richContent.nodes.galleryData.items.image.media.duration"
1784
+ },
1785
+ {
1786
+ path: "draftPosts.richContent.nodes.galleryData.items.video.media.duration"
1787
+ },
1788
+ {
1789
+ path: "draftPosts.richContent.nodes.galleryData.items.video.thumbnail.duration"
1790
+ },
1791
+ {
1792
+ path: "draftPosts.richContent.nodes.galleryData.options.item.ratio"
1793
+ },
1794
+ { path: "draftPosts.richContent.nodes.imageData.image.duration" },
1795
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lat" },
1796
+ { path: "draftPosts.richContent.nodes.mapData.mapSettings.lng" },
1797
+ {
1798
+ path: "draftPosts.richContent.nodes.pollData.poll.image.duration"
1799
+ },
1800
+ {
1801
+ path: "draftPosts.richContent.nodes.pollData.poll.options.image.duration"
1802
+ },
1803
+ {
1804
+ path: "draftPosts.richContent.nodes.pollData.design.poll.background.image.duration"
1805
+ },
1806
+ {
1807
+ path: "draftPosts.richContent.nodes.appEmbedData.image.duration"
1808
+ },
1809
+ { path: "draftPosts.richContent.nodes.videoData.video.duration" },
1810
+ {
1811
+ path: "draftPosts.richContent.nodes.videoData.thumbnail.duration"
1812
+ },
1813
+ { path: "draftPosts.richContent.nodes.audioData.audio.duration" },
1814
+ {
1815
+ path: "draftPosts.richContent.nodes.audioData.coverImage.duration"
1816
+ }
1817
+ ]
1818
+ }
1819
+ ])
1820
+ };
1821
+ return metadata;
1822
+ }
1823
+ return __queryDraftPosts;
1824
+ }
1825
+ function publishDraftPost(payload) {
1826
+ function __publishDraftPost({ host }) {
1827
+ const metadata = {
1828
+ entityFqdn: "wix.blog.v3.draft",
1829
+ method: "POST",
1830
+ methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.DraftPostService.PublishDraftPost",
1831
+ packageName: PACKAGE_NAME,
1832
+ url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3DraftPostServiceUrl(
1833
+ {
1834
+ protoPath: "/v3/draft-posts/{draftPostId}/publish",
1835
+ data: payload,
1836
+ host
1837
+ }
1838
+ ),
1839
+ data: payload
1840
+ };
1841
+ return metadata;
1842
+ }
1843
+ return __publishDraftPost;
1844
+ }
1845
+
1846
+ // src/blog-v3-draft-draft-posts.universal.ts
1847
+ var import_image = require("@wix/sdk-runtime/transformations/image");
1848
+ var import_image2 = require("@wix/sdk-runtime/transformations/image");
1849
+ var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
1850
+ var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
1851
+ var import_video = require("@wix/sdk-runtime/transformations/video");
1852
+ var import_video2 = require("@wix/sdk-runtime/transformations/video");
1853
+ var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
1854
+ var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
1855
+ var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
1856
+ var Origin = /* @__PURE__ */ ((Origin2) => {
1857
+ Origin2["UNKNOWN"] = "UNKNOWN";
1858
+ Origin2["ADMIN"] = "ADMIN";
1859
+ Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
1860
+ Origin2["AUTO_SAVE"] = "AUTO_SAVE";
1861
+ Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
1862
+ Origin2["IMPORT"] = "IMPORT";
1863
+ Origin2["IMPORT_BULK"] = "IMPORT_BULK";
1864
+ Origin2["IMPORT_HTML"] = "IMPORT_HTML";
1865
+ Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
1866
+ Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
1867
+ Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
1868
+ Origin2["MIGRATION"] = "MIGRATION";
1869
+ Origin2["MODERATION"] = "MODERATION";
1870
+ Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
1871
+ Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
1872
+ Origin2["PROVISION"] = "PROVISION";
1873
+ Origin2["PUBLISH"] = "PUBLISH";
1874
+ Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
1875
+ Origin2["REBLOG"] = "REBLOG";
1876
+ Origin2["RESTORE"] = "RESTORE";
1877
+ Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
1878
+ Origin2["TRANSLATION"] = "TRANSLATION";
1879
+ Origin2["UNPUBLISH"] = "UNPUBLISH";
1880
+ Origin2["UNSCHEDULE"] = "UNSCHEDULE";
1881
+ Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
1882
+ Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
1883
+ Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
1884
+ Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
1885
+ Origin2["SCHEDULE"] = "SCHEDULE";
1886
+ Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
1887
+ Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
1888
+ Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
1889
+ Origin2["DELETE_TAG"] = "DELETE_TAG";
1890
+ Origin2["PIN"] = "PIN";
1891
+ Origin2["UNPIN"] = "UNPIN";
1892
+ Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
1893
+ return Origin2;
1894
+ })(Origin || {});
1895
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
1896
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
1897
+ NodeType2["TEXT"] = "TEXT";
1898
+ NodeType2["HEADING"] = "HEADING";
1899
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
1900
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
1901
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
1902
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
1903
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
1904
+ NodeType2["VIDEO"] = "VIDEO";
1905
+ NodeType2["DIVIDER"] = "DIVIDER";
1906
+ NodeType2["FILE"] = "FILE";
1907
+ NodeType2["GALLERY"] = "GALLERY";
1908
+ NodeType2["GIF"] = "GIF";
1909
+ NodeType2["HTML"] = "HTML";
1910
+ NodeType2["IMAGE"] = "IMAGE";
1911
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
1912
+ NodeType2["MAP"] = "MAP";
1913
+ NodeType2["POLL"] = "POLL";
1914
+ NodeType2["APP_EMBED"] = "APP_EMBED";
1915
+ NodeType2["BUTTON"] = "BUTTON";
1916
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
1917
+ NodeType2["TABLE"] = "TABLE";
1918
+ NodeType2["EMBED"] = "EMBED";
1919
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
1920
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
1921
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
1922
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
1923
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
1924
+ NodeType2["EXTERNAL"] = "EXTERNAL";
1925
+ NodeType2["AUDIO"] = "AUDIO";
1926
+ NodeType2["CAPTION"] = "CAPTION";
1927
+ NodeType2["LAYOUT"] = "LAYOUT";
1928
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1929
+ return NodeType2;
1930
+ })(NodeType || {});
1931
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
1932
+ WidthType2["CONTENT"] = "CONTENT";
1933
+ WidthType2["SMALL"] = "SMALL";
1934
+ WidthType2["ORIGINAL"] = "ORIGINAL";
1935
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
1936
+ return WidthType2;
1937
+ })(WidthType || {});
1938
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
1939
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
1940
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
1941
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
1942
+ return PluginContainerDataAlignment2;
1943
+ })(PluginContainerDataAlignment || {});
1944
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
1945
+ ButtonDataType2["LINK"] = "LINK";
1946
+ ButtonDataType2["ACTION"] = "ACTION";
1947
+ return ButtonDataType2;
1948
+ })(ButtonDataType || {});
1949
+ var Target = /* @__PURE__ */ ((Target2) => {
1950
+ Target2["SELF"] = "SELF";
1951
+ Target2["BLANK"] = "BLANK";
1952
+ Target2["PARENT"] = "PARENT";
1953
+ Target2["TOP"] = "TOP";
1954
+ return Target2;
1955
+ })(Target || {});
1956
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1957
+ TextAlignment2["AUTO"] = "AUTO";
1958
+ TextAlignment2["LEFT"] = "LEFT";
1959
+ TextAlignment2["RIGHT"] = "RIGHT";
1960
+ TextAlignment2["CENTER"] = "CENTER";
1961
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
1962
+ return TextAlignment2;
1963
+ })(TextAlignment || {});
1964
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1965
+ LineStyle2["SINGLE"] = "SINGLE";
1966
+ LineStyle2["DOUBLE"] = "DOUBLE";
1967
+ LineStyle2["DASHED"] = "DASHED";
1968
+ LineStyle2["DOTTED"] = "DOTTED";
1969
+ return LineStyle2;
1970
+ })(LineStyle || {});
1971
+ var Width = /* @__PURE__ */ ((Width2) => {
1972
+ Width2["LARGE"] = "LARGE";
1973
+ Width2["MEDIUM"] = "MEDIUM";
1974
+ Width2["SMALL"] = "SMALL";
1975
+ return Width2;
1976
+ })(Width || {});
1977
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1978
+ Alignment2["CENTER"] = "CENTER";
1979
+ Alignment2["LEFT"] = "LEFT";
1980
+ Alignment2["RIGHT"] = "RIGHT";
1981
+ return Alignment2;
1982
+ })(Alignment || {});
1983
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
1984
+ ViewMode2["NONE"] = "NONE";
1985
+ ViewMode2["FULL"] = "FULL";
1986
+ ViewMode2["MINI"] = "MINI";
1987
+ return ViewMode2;
1988
+ })(ViewMode || {});
1989
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
1990
+ LayoutType2["COLLAGE"] = "COLLAGE";
1991
+ LayoutType2["MASONRY"] = "MASONRY";
1992
+ LayoutType2["GRID"] = "GRID";
1993
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
1994
+ LayoutType2["SLIDER"] = "SLIDER";
1995
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
1996
+ LayoutType2["PANORAMA"] = "PANORAMA";
1997
+ LayoutType2["COLUMN"] = "COLUMN";
1998
+ LayoutType2["MAGIC"] = "MAGIC";
1999
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
2000
+ return LayoutType2;
2001
+ })(LayoutType || {});
2002
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
2003
+ Orientation2["ROWS"] = "ROWS";
2004
+ Orientation2["COLUMNS"] = "COLUMNS";
2005
+ return Orientation2;
2006
+ })(Orientation || {});
2007
+ var Crop = /* @__PURE__ */ ((Crop2) => {
2008
+ Crop2["FILL"] = "FILL";
2009
+ Crop2["FIT"] = "FIT";
2010
+ return Crop2;
2011
+ })(Crop || {});
2012
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
2013
+ ThumbnailsAlignment2["TOP"] = "TOP";
2014
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
2015
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
2016
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
2017
+ ThumbnailsAlignment2["NONE"] = "NONE";
2018
+ return ThumbnailsAlignment2;
2019
+ })(ThumbnailsAlignment || {});
2020
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
2021
+ GIFType2["NORMAL"] = "NORMAL";
2022
+ GIFType2["STICKER"] = "STICKER";
2023
+ return GIFType2;
2024
+ })(GIFType || {});
2025
+ var Source = /* @__PURE__ */ ((Source2) => {
2026
+ Source2["HTML"] = "HTML";
2027
+ Source2["ADSENSE"] = "ADSENSE";
2028
+ return Source2;
2029
+ })(Source || {});
2030
+ var Position = /* @__PURE__ */ ((Position2) => {
2031
+ Position2["START"] = "START";
2032
+ Position2["END"] = "END";
2033
+ Position2["TOP"] = "TOP";
2034
+ Position2["HIDDEN"] = "HIDDEN";
2035
+ return Position2;
2036
+ })(Position || {});
2037
+ var MapType = /* @__PURE__ */ ((MapType2) => {
2038
+ MapType2["ROADMAP"] = "ROADMAP";
2039
+ MapType2["SATELITE"] = "SATELITE";
2040
+ MapType2["HYBRID"] = "HYBRID";
2041
+ MapType2["TERRAIN"] = "TERRAIN";
2042
+ return MapType2;
2043
+ })(MapType || {});
2044
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
2045
+ ViewRole2["CREATOR"] = "CREATOR";
2046
+ ViewRole2["VOTERS"] = "VOTERS";
2047
+ ViewRole2["EVERYONE"] = "EVERYONE";
2048
+ return ViewRole2;
2049
+ })(ViewRole || {});
2050
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
2051
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
2052
+ VoteRole2["ALL"] = "ALL";
2053
+ return VoteRole2;
2054
+ })(VoteRole || {});
2055
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
2056
+ PollLayoutType2["LIST"] = "LIST";
2057
+ PollLayoutType2["GRID"] = "GRID";
2058
+ return PollLayoutType2;
2059
+ })(PollLayoutType || {});
2060
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
2061
+ PollLayoutDirection2["LTR"] = "LTR";
2062
+ PollLayoutDirection2["RTL"] = "RTL";
2063
+ return PollLayoutDirection2;
2064
+ })(PollLayoutDirection || {});
2065
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
2066
+ BackgroundType2["COLOR"] = "COLOR";
2067
+ BackgroundType2["IMAGE"] = "IMAGE";
2068
+ BackgroundType2["GRADIENT"] = "GRADIENT";
2069
+ return BackgroundType2;
2070
+ })(BackgroundType || {});
2071
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
2072
+ DecorationType2["BOLD"] = "BOLD";
2073
+ DecorationType2["ITALIC"] = "ITALIC";
2074
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
2075
+ DecorationType2["SPOILER"] = "SPOILER";
2076
+ DecorationType2["ANCHOR"] = "ANCHOR";
2077
+ DecorationType2["MENTION"] = "MENTION";
2078
+ DecorationType2["LINK"] = "LINK";
2079
+ DecorationType2["COLOR"] = "COLOR";
2080
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
2081
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
2082
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
2083
+ return DecorationType2;
2084
+ })(DecorationType || {});
2085
+ var FontType = /* @__PURE__ */ ((FontType2) => {
2086
+ FontType2["PX"] = "PX";
2087
+ FontType2["EM"] = "EM";
2088
+ return FontType2;
2089
+ })(FontType || {});
2090
+ var AppType = /* @__PURE__ */ ((AppType2) => {
2091
+ AppType2["PRODUCT"] = "PRODUCT";
2092
+ AppType2["EVENT"] = "EVENT";
2093
+ AppType2["BOOKING"] = "BOOKING";
2094
+ return AppType2;
2095
+ })(AppType || {});
2096
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
2097
+ InitialExpandedItems2["FIRST"] = "FIRST";
2098
+ InitialExpandedItems2["ALL"] = "ALL";
2099
+ InitialExpandedItems2["NONE"] = "NONE";
2100
+ return InitialExpandedItems2;
2101
+ })(InitialExpandedItems || {});
2102
+ var Direction = /* @__PURE__ */ ((Direction2) => {
2103
+ Direction2["LTR"] = "LTR";
2104
+ Direction2["RTL"] = "RTL";
2105
+ return Direction2;
2106
+ })(Direction || {});
2107
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
2108
+ VerticalAlignment2["TOP"] = "TOP";
2109
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
2110
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
2111
+ return VerticalAlignment2;
2112
+ })(VerticalAlignment || {});
2113
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
2114
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
2115
+ return NullValue2;
2116
+ })(NullValue || {});
2117
+ var Status = /* @__PURE__ */ ((Status2) => {
2118
+ Status2["UNKNOWN"] = "UNKNOWN";
2119
+ Status2["PUBLISHED"] = "PUBLISHED";
2120
+ Status2["UNPUBLISHED"] = "UNPUBLISHED";
2121
+ Status2["SCHEDULED"] = "SCHEDULED";
2122
+ Status2["DELETED"] = "DELETED";
2123
+ Status2["IN_REVIEW"] = "IN_REVIEW";
2124
+ return Status2;
2125
+ })(Status || {});
2126
+ var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
2127
+ ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
2128
+ ModerationStatusStatus2["APPROVED"] = "APPROVED";
2129
+ ModerationStatusStatus2["REJECTED"] = "REJECTED";
2130
+ return ModerationStatusStatus2;
2131
+ })(ModerationStatusStatus || {});
2132
+ var TotalDraftPostsGroupingField = /* @__PURE__ */ ((TotalDraftPostsGroupingField2) => {
2133
+ TotalDraftPostsGroupingField2["STATUS"] = "STATUS";
2134
+ TotalDraftPostsGroupingField2["LANGUAGE"] = "LANGUAGE";
2135
+ return TotalDraftPostsGroupingField2;
2136
+ })(TotalDraftPostsGroupingField || {});
2137
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
2138
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
2139
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
2140
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
2141
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
2142
+ WebhookIdentityType2["APP"] = "APP";
2143
+ return WebhookIdentityType2;
2144
+ })(WebhookIdentityType || {});
2145
+ var Type = /* @__PURE__ */ ((Type2) => {
2146
+ Type2["UNKNOWN"] = "UNKNOWN";
2147
+ Type2["MANUAL"] = "MANUAL";
2148
+ Type2["AUTO_SAVE"] = "AUTO_SAVE";
2149
+ Type2["PROVISIONING"] = "PROVISIONING";
2150
+ Type2["IMPORT"] = "IMPORT";
2151
+ Type2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
2152
+ return Type2;
2153
+ })(Type || {});
2154
+ var Field = /* @__PURE__ */ ((Field2) => {
2155
+ Field2["UNKNOWN"] = "UNKNOWN";
2156
+ Field2["URL"] = "URL";
2157
+ Field2["CONTENT"] = "CONTENT";
2158
+ Field2["RICH_CONTENT"] = "RICH_CONTENT";
2159
+ Field2["GENERATED_EXCERPT"] = "GENERATED_EXCERPT";
2160
+ return Field2;
2161
+ })(Field || {});
2162
+ var Action = /* @__PURE__ */ ((Action2) => {
2163
+ Action2["UPDATE"] = "UPDATE";
2164
+ Action2["UPDATE_PUBLISH"] = "UPDATE_PUBLISH";
2165
+ Action2["UPDATE_SCHEDULE"] = "UPDATE_SCHEDULE";
2166
+ Action2["UPDATE_REVERT_TO_DRAFT"] = "UPDATE_REVERT_TO_DRAFT";
2167
+ Action2["UPDATE_CANCEL_SCHEDULE"] = "UPDATE_CANCEL_SCHEDULE";
2168
+ Action2["UPDATE_REJECT"] = "UPDATE_REJECT";
2169
+ Action2["UPDATE_PUBLICATION"] = "UPDATE_PUBLICATION";
2170
+ return Action2;
2171
+ })(Action || {});
2172
+ var GetDraftPostsSort = /* @__PURE__ */ ((GetDraftPostsSort2) => {
2173
+ GetDraftPostsSort2["EDITING_DATE_DESC"] = "EDITING_DATE_DESC";
2174
+ GetDraftPostsSort2["EDITING_DATE_ASC"] = "EDITING_DATE_ASC";
2175
+ return GetDraftPostsSort2;
2176
+ })(GetDraftPostsSort || {});
2177
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
2178
+ SortOrder2["ASC"] = "ASC";
2179
+ SortOrder2["DESC"] = "DESC";
2180
+ return SortOrder2;
2181
+ })(SortOrder || {});
2182
+ async function createDraftPost2(draftPost, options) {
2183
+ const { httpClient, sideEffects } = arguments[2];
2184
+ const payload = (0, import_transform_paths2.transformPaths)(
2185
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2186
+ {
2187
+ draftPost,
2188
+ publish: options?.publish,
2189
+ fieldsets: options?.fieldsets
2190
+ },
2191
+ ["draftPost.richContent"]
2192
+ ),
2193
+ [
2194
+ {
2195
+ transformFn: import_image.transformSDKImageToRESTImage,
2196
+ paths: [
2197
+ { path: "draftPost.heroImage" },
2198
+ { path: "draftPost.coverMedia.image" },
2199
+ { path: "draftPost.media.wixMedia.image" }
2200
+ ]
2201
+ },
2202
+ {
2203
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2204
+ paths: [
2205
+ { path: "draftPost.url" },
2206
+ { path: "draftPost.translations.url" }
2207
+ ]
2208
+ },
2209
+ {
2210
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2211
+ paths: [{ path: "draftPost.coverMedia.video" }]
2212
+ },
2213
+ {
2214
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2215
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2216
+ }
2217
+ ]
2218
+ );
2219
+ const reqOpts = createDraftPost(payload);
2220
+ sideEffects?.onSiteCall?.();
2221
+ try {
2222
+ const result = await httpClient.request(reqOpts);
2223
+ sideEffects?.onSuccess?.(result);
2224
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2225
+ (0, import_transform_paths2.transformPaths)(result.data, [
2226
+ {
2227
+ transformFn: import_image2.transformRESTImageToSDKImage,
2228
+ paths: [
2229
+ { path: "draftPost.heroImage" },
2230
+ { path: "draftPost.coverMedia.image" },
2231
+ { path: "draftPost.media.wixMedia.image" }
2232
+ ]
2233
+ },
2234
+ {
2235
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2236
+ paths: [
2237
+ { path: "draftPost.url" },
2238
+ { path: "draftPost.translations.url" }
2239
+ ]
2240
+ },
2241
+ {
2242
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2243
+ paths: [{ path: "draftPost.coverMedia.video" }]
2244
+ },
2245
+ {
2246
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2247
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2248
+ }
2249
+ ]),
2250
+ ["draftPost.richContent"]
2251
+ );
2252
+ } catch (err) {
2253
+ const transformedError = (0, import_transform_error.transformError)(
2254
+ err,
2255
+ {
2256
+ spreadPathsToArguments: {},
2257
+ explicitPathsToArguments: {
2258
+ draftPost: "$[0]",
2259
+ publish: "$[1].publish",
2260
+ fieldsets: "$[1].fieldsets"
2261
+ },
2262
+ singleArgumentUnchanged: false
2263
+ },
2264
+ ["draftPost", "options"]
2265
+ );
2266
+ sideEffects?.onError?.(err);
2267
+ throw transformedError;
2268
+ }
2269
+ }
2270
+ async function bulkCreateDraftPosts2(draftPosts, options) {
2271
+ const { httpClient, sideEffects } = arguments[2];
2272
+ const payload = (0, import_transform_paths2.transformPaths)(
2273
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2274
+ {
2275
+ draftPosts,
2276
+ publish: options?.publish,
2277
+ returnFullEntity: options?.returnFullEntity,
2278
+ fieldsets: options?.fieldsets
2279
+ },
2280
+ ["draftPosts.richContent"]
2281
+ ),
2282
+ [
2283
+ {
2284
+ transformFn: import_image.transformSDKImageToRESTImage,
2285
+ paths: [
2286
+ { path: "draftPosts.heroImage" },
2287
+ { path: "draftPosts.coverMedia.image" },
2288
+ { path: "draftPosts.media.wixMedia.image" }
2289
+ ]
2290
+ },
2291
+ {
2292
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2293
+ paths: [
2294
+ { path: "draftPosts.url" },
2295
+ { path: "draftPosts.translations.url" }
2296
+ ]
2297
+ },
2298
+ {
2299
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2300
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2301
+ },
2302
+ {
2303
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2304
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2305
+ }
2306
+ ]
2307
+ );
2308
+ const reqOpts = bulkCreateDraftPosts(payload);
2309
+ sideEffects?.onSiteCall?.();
2310
+ try {
2311
+ const result = await httpClient.request(reqOpts);
2312
+ sideEffects?.onSuccess?.(result);
2313
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2314
+ (0, import_transform_paths2.transformPaths)(result.data, [
2315
+ {
2316
+ transformFn: import_image2.transformRESTImageToSDKImage,
2317
+ paths: [
2318
+ { path: "results.item.heroImage" },
2319
+ { path: "results.item.coverMedia.image" },
2320
+ { path: "results.item.media.wixMedia.image" }
2321
+ ]
2322
+ },
2323
+ {
2324
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2325
+ paths: [
2326
+ { path: "results.item.url" },
2327
+ { path: "results.item.translations.url" }
2328
+ ]
2329
+ },
2330
+ {
2331
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2332
+ paths: [{ path: "results.item.coverMedia.video" }]
2333
+ },
2334
+ {
2335
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2336
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2337
+ }
2338
+ ]),
2339
+ ["results.item.richContent"]
2340
+ );
2341
+ } catch (err) {
2342
+ const transformedError = (0, import_transform_error.transformError)(
2343
+ err,
2344
+ {
2345
+ spreadPathsToArguments: {},
2346
+ explicitPathsToArguments: {
2347
+ draftPosts: "$[0]",
2348
+ publish: "$[1].publish",
2349
+ returnFullEntity: "$[1].returnFullEntity",
2350
+ fieldsets: "$[1].fieldsets"
2351
+ },
2352
+ singleArgumentUnchanged: false
2353
+ },
2354
+ ["draftPosts", "options"]
2355
+ );
2356
+ sideEffects?.onError?.(err);
2357
+ throw transformedError;
2358
+ }
2359
+ }
2360
+ async function bulkUpdateDraftPosts2(options) {
2361
+ const { httpClient, sideEffects } = arguments[1];
2362
+ const payload = (0, import_transform_paths2.transformPaths)(
2363
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2364
+ {
2365
+ draftPosts: options?.draftPosts,
2366
+ action: options?.action,
2367
+ scheduledPublishDate: options?.scheduledPublishDate,
2368
+ returnFullEntity: options?.returnFullEntity,
2369
+ fieldsets: options?.fieldsets
2370
+ },
2371
+ ["draftPosts.draftPost.richContent"]
2372
+ ),
2373
+ [
2374
+ {
2375
+ transformFn: import_image.transformSDKImageToRESTImage,
2376
+ paths: [
2377
+ { path: "draftPosts.draftPost.heroImage" },
2378
+ { path: "draftPosts.draftPost.coverMedia.image" },
2379
+ { path: "draftPosts.draftPost.media.wixMedia.image" }
2380
+ ]
2381
+ },
2382
+ {
2383
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2384
+ paths: [
2385
+ { path: "draftPosts.draftPost.url" },
2386
+ { path: "draftPosts.draftPost.translations.url" }
2387
+ ]
2388
+ },
2389
+ {
2390
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2391
+ paths: [{ path: "draftPosts.draftPost.coverMedia.video" }]
2392
+ },
2393
+ {
2394
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2395
+ paths: [{ path: "draftPosts.draftPost.media.wixMedia.videoV2" }]
2396
+ }
2397
+ ]
2398
+ );
2399
+ const reqOpts = bulkUpdateDraftPosts(payload);
2400
+ sideEffects?.onSiteCall?.();
2401
+ try {
2402
+ const result = await httpClient.request(reqOpts);
2403
+ sideEffects?.onSuccess?.(result);
2404
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2405
+ (0, import_transform_paths2.transformPaths)(result.data, [
2406
+ {
2407
+ transformFn: import_image2.transformRESTImageToSDKImage,
2408
+ paths: [
2409
+ { path: "results.item.heroImage" },
2410
+ { path: "results.item.coverMedia.image" },
2411
+ { path: "results.item.media.wixMedia.image" }
2412
+ ]
2413
+ },
2414
+ {
2415
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2416
+ paths: [
2417
+ { path: "results.item.url" },
2418
+ { path: "results.item.translations.url" }
2419
+ ]
2420
+ },
2421
+ {
2422
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2423
+ paths: [{ path: "results.item.coverMedia.video" }]
2424
+ },
2425
+ {
2426
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2427
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2428
+ }
2429
+ ]),
2430
+ ["results.item.richContent"]
2431
+ );
2432
+ } catch (err) {
2433
+ const transformedError = (0, import_transform_error.transformError)(
2434
+ err,
2435
+ {
2436
+ spreadPathsToArguments: {},
2437
+ explicitPathsToArguments: {
2438
+ draftPosts: "$[0].draftPosts",
2439
+ action: "$[0].action",
2440
+ scheduledPublishDate: "$[0].scheduledPublishDate",
2441
+ returnFullEntity: "$[0].returnFullEntity",
2442
+ fieldsets: "$[0].fieldsets"
2443
+ },
2444
+ singleArgumentUnchanged: false
2445
+ },
2446
+ ["options"]
2447
+ );
2448
+ sideEffects?.onError?.(err);
2449
+ throw transformedError;
2450
+ }
2451
+ }
2452
+ async function listDeletedDraftPosts2(options) {
2453
+ const { httpClient, sideEffects } = arguments[1];
2454
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2455
+ {
2456
+ language: options?.language,
2457
+ sort: options?.sort,
2458
+ paging: options?.paging,
2459
+ fieldsets: options?.fieldsets,
2460
+ draftPostIds: options?.draftPostIds
2461
+ },
2462
+ []
2463
+ );
2464
+ const reqOpts = listDeletedDraftPosts(payload);
2465
+ sideEffects?.onSiteCall?.();
2466
+ try {
2467
+ const result = await httpClient.request(reqOpts);
2468
+ sideEffects?.onSuccess?.(result);
2469
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2470
+ (0, import_transform_paths2.transformPaths)(result.data, [
2471
+ {
2472
+ transformFn: import_image2.transformRESTImageToSDKImage,
2473
+ paths: [
2474
+ { path: "draftPosts.heroImage" },
2475
+ { path: "draftPosts.coverMedia.image" },
2476
+ { path: "draftPosts.media.wixMedia.image" }
2477
+ ]
2478
+ },
2479
+ {
2480
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2481
+ paths: [
2482
+ { path: "draftPosts.url" },
2483
+ { path: "draftPosts.translations.url" }
2484
+ ]
2485
+ },
2486
+ {
2487
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2488
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2489
+ },
2490
+ {
2491
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2492
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2493
+ }
2494
+ ]),
2495
+ ["draftPosts.richContent"]
2496
+ );
2497
+ } catch (err) {
2498
+ const transformedError = (0, import_transform_error.transformError)(
2499
+ err,
2500
+ {
2501
+ spreadPathsToArguments: {},
2502
+ explicitPathsToArguments: {
2503
+ language: "$[0].language",
2504
+ sort: "$[0].sort",
2505
+ paging: "$[0].paging",
2506
+ fieldsets: "$[0].fieldsets",
2507
+ draftPostIds: "$[0].draftPostIds"
2508
+ },
2509
+ singleArgumentUnchanged: false
2510
+ },
2511
+ ["options"]
2512
+ );
2513
+ sideEffects?.onError?.(err);
2514
+ throw transformedError;
2515
+ }
2516
+ }
2517
+ async function getDraftPost2(draftPostId, options) {
2518
+ const { httpClient, sideEffects } = arguments[2];
2519
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2520
+ { draftPostId, fieldsets: options?.fieldsets },
2521
+ []
2522
+ );
2523
+ const reqOpts = getDraftPost(payload);
2524
+ sideEffects?.onSiteCall?.();
2525
+ try {
2526
+ const result = await httpClient.request(reqOpts);
2527
+ sideEffects?.onSuccess?.(result);
2528
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2529
+ (0, import_transform_paths2.transformPaths)(result.data, [
2530
+ {
2531
+ transformFn: import_image2.transformRESTImageToSDKImage,
2532
+ paths: [
2533
+ { path: "draftPost.heroImage" },
2534
+ { path: "draftPost.coverMedia.image" },
2535
+ { path: "draftPost.media.wixMedia.image" }
2536
+ ]
2537
+ },
2538
+ {
2539
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2540
+ paths: [
2541
+ { path: "draftPost.url" },
2542
+ { path: "draftPost.translations.url" }
2543
+ ]
2544
+ },
2545
+ {
2546
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2547
+ paths: [{ path: "draftPost.coverMedia.video" }]
2548
+ },
2549
+ {
2550
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2551
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2552
+ }
2553
+ ]),
2554
+ ["draftPost.richContent"]
2555
+ );
2556
+ } catch (err) {
2557
+ const transformedError = (0, import_transform_error.transformError)(
2558
+ err,
2559
+ {
2560
+ spreadPathsToArguments: {},
2561
+ explicitPathsToArguments: {
2562
+ draftPostId: "$[0]",
2563
+ fieldsets: "$[1].fieldsets"
2564
+ },
2565
+ singleArgumentUnchanged: false
2566
+ },
2567
+ ["draftPostId", "options"]
2568
+ );
2569
+ sideEffects?.onError?.(err);
2570
+ throw transformedError;
2571
+ }
2572
+ }
2573
+ async function updateDraftPost2(_id, draftPost, options) {
2574
+ const { httpClient, sideEffects } = arguments[3];
2575
+ const payload = (0, import_transform_paths2.transformPaths)(
2576
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2577
+ {
2578
+ draftPost: { ...draftPost, id: _id },
2579
+ action: options?.action,
2580
+ scheduledPublishDate: options?.scheduledPublishDate,
2581
+ fieldsets: options?.fieldsets
2582
+ },
2583
+ ["draftPost.richContent"]
2584
+ ),
2585
+ [
2586
+ {
2587
+ transformFn: import_image.transformSDKImageToRESTImage,
2588
+ paths: [
2589
+ { path: "draftPost.heroImage" },
2590
+ { path: "draftPost.coverMedia.image" },
2591
+ { path: "draftPost.media.wixMedia.image" }
2592
+ ]
2593
+ },
2594
+ {
2595
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2596
+ paths: [
2597
+ { path: "draftPost.url" },
2598
+ { path: "draftPost.translations.url" }
2599
+ ]
2600
+ },
2601
+ {
2602
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2603
+ paths: [{ path: "draftPost.coverMedia.video" }]
2604
+ },
2605
+ {
2606
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2607
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2608
+ }
2609
+ ]
2610
+ );
2611
+ const reqOpts = updateDraftPost(payload);
2612
+ sideEffects?.onSiteCall?.();
2613
+ try {
2614
+ const result = await httpClient.request(reqOpts);
2615
+ sideEffects?.onSuccess?.(result);
2616
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2617
+ (0, import_transform_paths2.transformPaths)(result.data, [
2618
+ {
2619
+ transformFn: import_image2.transformRESTImageToSDKImage,
2620
+ paths: [
2621
+ { path: "draftPost.heroImage" },
2622
+ { path: "draftPost.coverMedia.image" },
2623
+ { path: "draftPost.media.wixMedia.image" }
2624
+ ]
2625
+ },
2626
+ {
2627
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2628
+ paths: [
2629
+ { path: "draftPost.url" },
2630
+ { path: "draftPost.translations.url" }
2631
+ ]
2632
+ },
2633
+ {
2634
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2635
+ paths: [{ path: "draftPost.coverMedia.video" }]
2636
+ },
2637
+ {
2638
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2639
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2640
+ }
2641
+ ]),
2642
+ ["draftPost.richContent"]
2643
+ );
2644
+ } catch (err) {
2645
+ const transformedError = (0, import_transform_error.transformError)(
2646
+ err,
2647
+ {
2648
+ spreadPathsToArguments: { draftPost: "$[1]" },
2649
+ explicitPathsToArguments: {
2650
+ "draftPost.id": "$[0]",
2651
+ action: "$[2].action",
2652
+ scheduledPublishDate: "$[2].scheduledPublishDate",
2653
+ fieldsets: "$[2].fieldsets"
2654
+ },
2655
+ singleArgumentUnchanged: false
2656
+ },
2657
+ ["_id", "draftPost", "options"]
2658
+ );
2659
+ sideEffects?.onError?.(err);
2660
+ throw transformedError;
2661
+ }
2662
+ }
2663
+ async function deleteDraftPost2(draftPostId, options) {
2664
+ const { httpClient, sideEffects } = arguments[2];
2665
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2666
+ { draftPostId, permanent: options?.permanent },
2667
+ []
2668
+ );
2669
+ const reqOpts = deleteDraftPost(payload);
2670
+ sideEffects?.onSiteCall?.();
2671
+ try {
2672
+ const result = await httpClient.request(reqOpts);
2673
+ sideEffects?.onSuccess?.(result);
2674
+ } catch (err) {
2675
+ const transformedError = (0, import_transform_error.transformError)(
2676
+ err,
2677
+ {
2678
+ spreadPathsToArguments: {},
2679
+ explicitPathsToArguments: {
2680
+ draftPostId: "$[0]",
2681
+ permanent: "$[1].permanent"
2682
+ },
2683
+ singleArgumentUnchanged: false
2684
+ },
2685
+ ["draftPostId", "options"]
2686
+ );
2687
+ sideEffects?.onError?.(err);
2688
+ throw transformedError;
2689
+ }
2690
+ }
2691
+ async function removeFromTrashBin2(draftPostId) {
2692
+ const { httpClient, sideEffects } = arguments[1];
2693
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2694
+ { draftPostId },
2695
+ []
2696
+ );
2697
+ const reqOpts = removeFromTrashBin(payload);
2698
+ sideEffects?.onSiteCall?.();
2699
+ try {
2700
+ const result = await httpClient.request(reqOpts);
2701
+ sideEffects?.onSuccess?.(result);
2702
+ } catch (err) {
2703
+ const transformedError = (0, import_transform_error.transformError)(
2704
+ err,
2705
+ {
2706
+ spreadPathsToArguments: {},
2707
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2708
+ singleArgumentUnchanged: false
2709
+ },
2710
+ ["draftPostId"]
2711
+ );
2712
+ sideEffects?.onError?.(err);
2713
+ throw transformedError;
2714
+ }
2715
+ }
2716
+ async function bulkDeleteDraftPosts2(postIds, options) {
2717
+ const { httpClient, sideEffects } = arguments[2];
2718
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2719
+ { postIds, permanent: options?.permanent },
2720
+ []
2721
+ );
2722
+ const reqOpts = bulkDeleteDraftPosts(payload);
2723
+ sideEffects?.onSiteCall?.();
2724
+ try {
2725
+ const result = await httpClient.request(reqOpts);
2726
+ sideEffects?.onSuccess?.(result);
2727
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2728
+ (0, import_transform_paths2.transformPaths)(result.data, [
2729
+ {
2730
+ transformFn: import_image2.transformRESTImageToSDKImage,
2731
+ paths: [
2732
+ { path: "results.item.heroImage" },
2733
+ { path: "results.item.coverMedia.image" },
2734
+ { path: "results.item.media.wixMedia.image" }
2735
+ ]
2736
+ },
2737
+ {
2738
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2739
+ paths: [
2740
+ { path: "results.item.url" },
2741
+ { path: "results.item.translations.url" }
2742
+ ]
2743
+ },
2744
+ {
2745
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2746
+ paths: [{ path: "results.item.coverMedia.video" }]
2747
+ },
2748
+ {
2749
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2750
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2751
+ }
2752
+ ]),
2753
+ ["results.item.richContent"]
2754
+ );
2755
+ } catch (err) {
2756
+ const transformedError = (0, import_transform_error.transformError)(
2757
+ err,
2758
+ {
2759
+ spreadPathsToArguments: {},
2760
+ explicitPathsToArguments: {
2761
+ postIds: "$[0]",
2762
+ permanent: "$[1].permanent"
2763
+ },
2764
+ singleArgumentUnchanged: false
2765
+ },
2766
+ ["postIds", "options"]
2767
+ );
2768
+ sideEffects?.onError?.(err);
2769
+ throw transformedError;
2770
+ }
2771
+ }
2772
+ async function listDraftPosts2(options) {
2773
+ const { httpClient, sideEffects } = arguments[1];
2774
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2775
+ {
2776
+ status: options?.status,
2777
+ language: options?.language,
2778
+ sort: options?.sort,
2779
+ paging: options?.paging,
2780
+ fieldsets: options?.fieldsets
2781
+ },
2782
+ []
2783
+ );
2784
+ const reqOpts = listDraftPosts(payload);
2785
+ sideEffects?.onSiteCall?.();
2786
+ try {
2787
+ const result = await httpClient.request(reqOpts);
2788
+ sideEffects?.onSuccess?.(result);
2789
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2790
+ (0, import_transform_paths2.transformPaths)(result.data, [
2791
+ {
2792
+ transformFn: import_image2.transformRESTImageToSDKImage,
2793
+ paths: [
2794
+ { path: "draftPosts.heroImage" },
2795
+ { path: "draftPosts.coverMedia.image" },
2796
+ { path: "draftPosts.media.wixMedia.image" }
2797
+ ]
2798
+ },
2799
+ {
2800
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2801
+ paths: [
2802
+ { path: "draftPosts.url" },
2803
+ { path: "draftPosts.translations.url" }
2804
+ ]
2805
+ },
2806
+ {
2807
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2808
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2809
+ },
2810
+ {
2811
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2812
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2813
+ }
2814
+ ]),
2815
+ ["draftPosts.richContent"]
2816
+ );
2817
+ } catch (err) {
2818
+ const transformedError = (0, import_transform_error.transformError)(
2819
+ err,
2820
+ {
2821
+ spreadPathsToArguments: {},
2822
+ explicitPathsToArguments: {
2823
+ status: "$[0].status",
2824
+ language: "$[0].language",
2825
+ sort: "$[0].sort",
2826
+ paging: "$[0].paging",
2827
+ fieldsets: "$[0].fieldsets"
2828
+ },
2829
+ singleArgumentUnchanged: false
2830
+ },
2831
+ ["options"]
2832
+ );
2833
+ sideEffects?.onError?.(err);
2834
+ throw transformedError;
2835
+ }
2836
+ }
2837
+ async function getDeletedDraftPost2(draftPostId) {
2838
+ const { httpClient, sideEffects } = arguments[1];
2839
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2840
+ { draftPostId },
2841
+ []
2842
+ );
2843
+ const reqOpts = getDeletedDraftPost(payload);
2844
+ sideEffects?.onSiteCall?.();
2845
+ try {
2846
+ const result = await httpClient.request(reqOpts);
2847
+ sideEffects?.onSuccess?.(result);
2848
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2849
+ (0, import_transform_paths2.transformPaths)(result.data, [
2850
+ {
2851
+ transformFn: import_image2.transformRESTImageToSDKImage,
2852
+ paths: [
2853
+ { path: "draftPost.heroImage" },
2854
+ { path: "draftPost.coverMedia.image" },
2855
+ { path: "draftPost.media.wixMedia.image" }
2856
+ ]
2857
+ },
2858
+ {
2859
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2860
+ paths: [
2861
+ { path: "draftPost.url" },
2862
+ { path: "draftPost.translations.url" }
2863
+ ]
2864
+ },
2865
+ {
2866
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2867
+ paths: [{ path: "draftPost.coverMedia.video" }]
2868
+ },
2869
+ {
2870
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2871
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2872
+ }
2873
+ ]),
2874
+ ["draftPost.richContent"]
2875
+ );
2876
+ } catch (err) {
2877
+ const transformedError = (0, import_transform_error.transformError)(
2878
+ err,
2879
+ {
2880
+ spreadPathsToArguments: {},
2881
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2882
+ singleArgumentUnchanged: false
2883
+ },
2884
+ ["draftPostId"]
2885
+ );
2886
+ sideEffects?.onError?.(err);
2887
+ throw transformedError;
2888
+ }
2889
+ }
2890
+ async function restoreFromTrashBin2(draftPostId) {
2891
+ const { httpClient, sideEffects } = arguments[1];
2892
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2893
+ { draftPostId },
2894
+ []
2895
+ );
2896
+ const reqOpts = restoreFromTrashBin(payload);
2897
+ sideEffects?.onSiteCall?.();
2898
+ try {
2899
+ const result = await httpClient.request(reqOpts);
2900
+ sideEffects?.onSuccess?.(result);
2901
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2902
+ (0, import_transform_paths2.transformPaths)(result.data, [
2903
+ {
2904
+ transformFn: import_image2.transformRESTImageToSDKImage,
2905
+ paths: [
2906
+ { path: "draftPost.heroImage" },
2907
+ { path: "draftPost.coverMedia.image" },
2908
+ { path: "draftPost.media.wixMedia.image" }
2909
+ ]
2910
+ },
2911
+ {
2912
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2913
+ paths: [
2914
+ { path: "draftPost.url" },
2915
+ { path: "draftPost.translations.url" }
2916
+ ]
2917
+ },
2918
+ {
2919
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2920
+ paths: [{ path: "draftPost.coverMedia.video" }]
2921
+ },
2922
+ {
2923
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2924
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2925
+ }
2926
+ ]),
2927
+ ["draftPost.richContent"]
2928
+ );
2929
+ } catch (err) {
2930
+ const transformedError = (0, import_transform_error.transformError)(
2931
+ err,
2932
+ {
2933
+ spreadPathsToArguments: {},
2934
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2935
+ singleArgumentUnchanged: false
2936
+ },
2937
+ ["draftPostId"]
2938
+ );
2939
+ sideEffects?.onError?.(err);
2940
+ throw transformedError;
2941
+ }
2942
+ }
2943
+ function queryDraftPosts2(options) {
2944
+ const { httpClient, sideEffects } = arguments[1];
2945
+ return (0, import_query_builder.queryBuilder)({
2946
+ func: async (payload) => {
2947
+ const reqOpts = queryDraftPosts({
2948
+ ...payload,
2949
+ ...options ?? {}
2950
+ });
2951
+ sideEffects?.onSiteCall?.();
2952
+ try {
2953
+ const result = await httpClient.request(reqOpts);
2954
+ sideEffects?.onSuccess?.(result);
2955
+ return result;
2956
+ } catch (err) {
2957
+ sideEffects?.onError?.(err);
2958
+ throw err;
2959
+ }
2960
+ },
2961
+ requestTransformer: (query) => {
2962
+ const args = [query, options];
2963
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2964
+ { ...args?.[1], query: args?.[0] },
2965
+ []
2966
+ );
2967
+ },
2968
+ responseTransformer: ({ data }) => {
2969
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2970
+ (0, import_transform_paths2.transformPaths)(data, [
2971
+ {
2972
+ transformFn: import_image2.transformRESTImageToSDKImage,
2973
+ paths: [
2974
+ { path: "draftPosts.heroImage" },
2975
+ { path: "draftPosts.coverMedia.image" },
2976
+ { path: "draftPosts.media.wixMedia.image" }
2977
+ ]
2978
+ },
2979
+ {
2980
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2981
+ paths: [
2982
+ { path: "draftPosts.url" },
2983
+ { path: "draftPosts.translations.url" }
2984
+ ]
2985
+ },
2986
+ {
2987
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2988
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2989
+ },
2990
+ {
2991
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2992
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2993
+ }
2994
+ ]),
2995
+ ["draftPosts.richContent"]
2996
+ );
2997
+ return {
2998
+ items: transformedData?.draftPosts,
2999
+ pagingMetadata: transformedData?.pagingMetadata
3000
+ };
3001
+ },
3002
+ errorTransformer: (err) => {
3003
+ const transformedError = (0, import_transform_error.transformError)(err, {
3004
+ spreadPathsToArguments: {},
3005
+ explicitPathsToArguments: { query: "$[0]" },
3006
+ singleArgumentUnchanged: false
3007
+ });
3008
+ throw transformedError;
3009
+ },
3010
+ pagingMethod: "CURSOR",
3011
+ transformationPaths: {}
3012
+ });
3013
+ }
3014
+ async function publishDraftPost2(draftPostId) {
3015
+ const { httpClient, sideEffects } = arguments[1];
3016
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
3017
+ { draftPostId },
3018
+ []
3019
+ );
3020
+ const reqOpts = publishDraftPost(payload);
3021
+ sideEffects?.onSiteCall?.();
3022
+ try {
3023
+ const result = await httpClient.request(reqOpts);
3024
+ sideEffects?.onSuccess?.(result);
3025
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
3026
+ } catch (err) {
3027
+ const transformedError = (0, import_transform_error.transformError)(
3028
+ err,
3029
+ {
3030
+ spreadPathsToArguments: {},
3031
+ explicitPathsToArguments: { draftPostId: "$[0]" },
3032
+ singleArgumentUnchanged: false
3033
+ },
3034
+ ["draftPostId"]
3035
+ );
3036
+ sideEffects?.onError?.(err);
3037
+ throw transformedError;
3038
+ }
3039
+ }
3040
+
3041
+ // src/blog-v3-draft-draft-posts.public.ts
3042
+ function createDraftPost3(httpClient) {
3043
+ return (draftPost, options) => createDraftPost2(
3044
+ draftPost,
3045
+ options,
3046
+ // @ts-ignore
3047
+ { httpClient }
3048
+ );
3049
+ }
3050
+ function bulkCreateDraftPosts3(httpClient) {
3051
+ return (draftPosts, options) => bulkCreateDraftPosts2(
3052
+ draftPosts,
3053
+ options,
3054
+ // @ts-ignore
3055
+ { httpClient }
3056
+ );
3057
+ }
3058
+ function bulkUpdateDraftPosts3(httpClient) {
3059
+ return (options) => bulkUpdateDraftPosts2(
3060
+ options,
3061
+ // @ts-ignore
3062
+ { httpClient }
3063
+ );
3064
+ }
3065
+ function listDeletedDraftPosts3(httpClient) {
3066
+ return (options) => listDeletedDraftPosts2(
3067
+ options,
3068
+ // @ts-ignore
3069
+ { httpClient }
3070
+ );
3071
+ }
3072
+ function getDraftPost3(httpClient) {
3073
+ return (draftPostId, options) => getDraftPost2(
3074
+ draftPostId,
3075
+ options,
3076
+ // @ts-ignore
3077
+ { httpClient }
3078
+ );
3079
+ }
3080
+ function updateDraftPost3(httpClient) {
3081
+ return (_id, draftPost, options) => updateDraftPost2(
3082
+ _id,
3083
+ draftPost,
3084
+ options,
3085
+ // @ts-ignore
3086
+ { httpClient }
3087
+ );
3088
+ }
3089
+ function deleteDraftPost3(httpClient) {
3090
+ return (draftPostId, options) => deleteDraftPost2(
3091
+ draftPostId,
3092
+ options,
3093
+ // @ts-ignore
3094
+ { httpClient }
3095
+ );
3096
+ }
3097
+ function removeFromTrashBin3(httpClient) {
3098
+ return (draftPostId) => removeFromTrashBin2(
3099
+ draftPostId,
3100
+ // @ts-ignore
3101
+ { httpClient }
3102
+ );
3103
+ }
3104
+ function bulkDeleteDraftPosts3(httpClient) {
3105
+ return (postIds, options) => bulkDeleteDraftPosts2(
3106
+ postIds,
3107
+ options,
3108
+ // @ts-ignore
3109
+ { httpClient }
3110
+ );
3111
+ }
3112
+ function listDraftPosts3(httpClient) {
3113
+ return (options) => listDraftPosts2(
3114
+ options,
3115
+ // @ts-ignore
3116
+ { httpClient }
3117
+ );
3118
+ }
3119
+ function getDeletedDraftPost3(httpClient) {
3120
+ return (draftPostId) => getDeletedDraftPost2(
3121
+ draftPostId,
3122
+ // @ts-ignore
3123
+ { httpClient }
3124
+ );
3125
+ }
3126
+ function restoreFromTrashBin3(httpClient) {
3127
+ return (draftPostId) => restoreFromTrashBin2(
3128
+ draftPostId,
3129
+ // @ts-ignore
3130
+ { httpClient }
3131
+ );
3132
+ }
3133
+ function queryDraftPosts3(httpClient) {
3134
+ return (options) => queryDraftPosts2(
3135
+ options,
3136
+ // @ts-ignore
3137
+ { httpClient }
3138
+ );
3139
+ }
3140
+ function publishDraftPost3(httpClient) {
3141
+ return (draftPostId) => publishDraftPost2(
3142
+ draftPostId,
3143
+ // @ts-ignore
3144
+ { httpClient }
3145
+ );
3146
+ }
3147
+ var onDraftCreated = (0, import_sdk_types.EventDefinition)(
3148
+ "wix.blog.v3.draft_created",
3149
+ true,
3150
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3151
+ (0, import_transform_paths3.transformPaths)(event, [
3152
+ {
3153
+ transformFn: import_image3.transformRESTImageToSDKImage,
3154
+ paths: [
3155
+ { path: "entity.heroImage" },
3156
+ { path: "entity.coverMedia.image" },
3157
+ { path: "entity.media.wixMedia.image" }
3158
+ ]
3159
+ },
3160
+ {
3161
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3162
+ paths: [
3163
+ { path: "entity.editedDate" },
3164
+ { path: "entity.scheduledPublishDate" },
3165
+ { path: "entity.firstPublishedDate" },
3166
+ { path: "entity.createdDate" },
3167
+ { path: "entity.richContent.metadata.createdTimestamp" },
3168
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3169
+ { path: "entity.moderationDetails.submittedDate" },
3170
+ { path: "entity.moderationDetails.moderationDate" },
3171
+ { path: "metadata.eventTime" }
3172
+ ]
3173
+ },
3174
+ {
3175
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3176
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3177
+ },
3178
+ {
3179
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3180
+ paths: [{ path: "entity.coverMedia.video" }]
3181
+ },
3182
+ {
3183
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3184
+ paths: [
3185
+ {
3186
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3187
+ },
3188
+ {
3189
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3190
+ },
3191
+ {
3192
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3193
+ },
3194
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3195
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3196
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3197
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3198
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3199
+ {
3200
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3201
+ },
3202
+ {
3203
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3204
+ },
3205
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3206
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3207
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3208
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3209
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3210
+ ]
3211
+ },
3212
+ {
3213
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3214
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3215
+ }
3216
+ ])
3217
+ )
3218
+ )();
3219
+ var onDraftDeleted = (0, import_sdk_types.EventDefinition)(
3220
+ "wix.blog.v3.draft_deleted",
3221
+ true,
3222
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3223
+ (0, import_transform_paths3.transformPaths)(event, [
3224
+ {
3225
+ transformFn: import_image3.transformRESTImageToSDKImage,
3226
+ paths: [
3227
+ { path: "entity.heroImage" },
3228
+ { path: "entity.coverMedia.image" },
3229
+ { path: "entity.media.wixMedia.image" }
3230
+ ]
3231
+ },
3232
+ {
3233
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3234
+ paths: [
3235
+ { path: "entity.editedDate" },
3236
+ { path: "entity.scheduledPublishDate" },
3237
+ { path: "entity.firstPublishedDate" },
3238
+ { path: "entity.createdDate" },
3239
+ { path: "entity.richContent.metadata.createdTimestamp" },
3240
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3241
+ { path: "entity.moderationDetails.submittedDate" },
3242
+ { path: "entity.moderationDetails.moderationDate" },
3243
+ { path: "metadata.eventTime" }
3244
+ ]
3245
+ },
3246
+ {
3247
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3248
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3249
+ },
3250
+ {
3251
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3252
+ paths: [{ path: "entity.coverMedia.video" }]
3253
+ },
3254
+ {
3255
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3256
+ paths: [
3257
+ {
3258
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3259
+ },
3260
+ {
3261
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3262
+ },
3263
+ {
3264
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3265
+ },
3266
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3267
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3268
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3269
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3270
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3271
+ {
3272
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3273
+ },
3274
+ {
3275
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3276
+ },
3277
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3278
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3279
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3280
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3281
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3282
+ ]
3283
+ },
3284
+ {
3285
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3286
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3287
+ }
3288
+ ])
3289
+ )
3290
+ )();
3291
+ var onDraftUpdated = (0, import_sdk_types.EventDefinition)(
3292
+ "wix.blog.v3.draft_updated",
3293
+ true,
3294
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3295
+ (0, import_transform_paths3.transformPaths)(event, [
3296
+ {
3297
+ transformFn: import_image3.transformRESTImageToSDKImage,
3298
+ paths: [
3299
+ { path: "entity.heroImage" },
3300
+ { path: "entity.coverMedia.image" },
3301
+ { path: "entity.media.wixMedia.image" }
3302
+ ]
3303
+ },
3304
+ {
3305
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3306
+ paths: [
3307
+ { path: "entity.editedDate" },
3308
+ { path: "entity.scheduledPublishDate" },
3309
+ { path: "entity.firstPublishedDate" },
3310
+ { path: "entity.createdDate" },
3311
+ { path: "entity.richContent.metadata.createdTimestamp" },
3312
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3313
+ { path: "entity.moderationDetails.submittedDate" },
3314
+ { path: "entity.moderationDetails.moderationDate" },
3315
+ { path: "metadata.eventTime" }
3316
+ ]
3317
+ },
3318
+ {
3319
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3320
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3321
+ },
3322
+ {
3323
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3324
+ paths: [{ path: "entity.coverMedia.video" }]
3325
+ },
3326
+ {
3327
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3328
+ paths: [
3329
+ {
3330
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3331
+ },
3332
+ {
3333
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3334
+ },
3335
+ {
3336
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3337
+ },
3338
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3339
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3340
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3341
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3342
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3343
+ {
3344
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3345
+ },
3346
+ {
3347
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3348
+ },
3349
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3350
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3351
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3352
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3353
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3354
+ ]
3355
+ },
3356
+ {
3357
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3358
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3359
+ }
3360
+ ])
3361
+ )
3362
+ )();
3363
+
3364
+ // src/blog-v3-draft-draft-posts.context.ts
3365
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
3366
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
3367
+ var createDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftPost3);
3368
+ var bulkCreateDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateDraftPosts3);
3369
+ var bulkUpdateDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDraftPosts3);
3370
+ var listDeletedDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listDeletedDraftPosts3);
3371
+ var getDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDraftPost3);
3372
+ var updateDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateDraftPost3);
3373
+ var deleteDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDraftPost3);
3374
+ var removeFromTrashBin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeFromTrashBin3);
3375
+ var bulkDeleteDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteDraftPosts3);
3376
+ var listDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listDraftPosts3);
3377
+ var getDeletedDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDeletedDraftPost3);
3378
+ var restoreFromTrashBin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(restoreFromTrashBin3);
3379
+ var queryDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDraftPosts3);
3380
+ var publishDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(publishDraftPost3);
3381
+ var onDraftCreated2 = (0, import_event_definition_modules.createEventModule)(onDraftCreated);
3382
+ var onDraftDeleted2 = (0, import_event_definition_modules.createEventModule)(onDraftDeleted);
3383
+ var onDraftUpdated2 = (0, import_event_definition_modules.createEventModule)(onDraftUpdated);
3384
+ // Annotate the CommonJS export names for ESM import in node:
3385
+ 0 && (module.exports = {
3386
+ Action,
3387
+ Alignment,
3388
+ AppType,
3389
+ BackgroundType,
3390
+ ButtonDataType,
3391
+ Crop,
3392
+ DecorationType,
3393
+ Direction,
3394
+ Field,
3395
+ FontType,
3396
+ GIFType,
3397
+ GetDraftPostsSort,
3398
+ InitialExpandedItems,
3399
+ LayoutType,
3400
+ LineStyle,
3401
+ MapType,
3402
+ ModerationStatusStatus,
3403
+ NodeType,
3404
+ NullValue,
3405
+ Orientation,
3406
+ Origin,
3407
+ PluginContainerDataAlignment,
3408
+ PollLayoutDirection,
3409
+ PollLayoutType,
3410
+ Position,
3411
+ SortOrder,
3412
+ Source,
3413
+ Status,
3414
+ Target,
3415
+ TextAlignment,
3416
+ ThumbnailsAlignment,
3417
+ TotalDraftPostsGroupingField,
3418
+ Type,
3419
+ VerticalAlignment,
3420
+ ViewMode,
3421
+ ViewRole,
3422
+ VoteRole,
3423
+ WebhookIdentityType,
3424
+ Width,
3425
+ WidthType,
3426
+ bulkCreateDraftPosts,
3427
+ bulkDeleteDraftPosts,
3428
+ bulkUpdateDraftPosts,
3429
+ createDraftPost,
3430
+ deleteDraftPost,
3431
+ getDeletedDraftPost,
3432
+ getDraftPost,
3433
+ listDeletedDraftPosts,
3434
+ listDraftPosts,
3435
+ onDraftCreated,
3436
+ onDraftDeleted,
3437
+ onDraftUpdated,
3438
+ publishDraftPost,
3439
+ queryDraftPosts,
3440
+ removeFromTrashBin,
3441
+ restoreFromTrashBin,
3442
+ updateDraftPost
3443
+ });
3444
+ //# sourceMappingURL=index.js.map