@wix/auto_sdk_blog_draft-posts 1.0.14 → 1.0.16

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-vVP72XfS.d.mts} +311 -958
  2. package/build/{internal/es/src/blog-v3-draft-draft-posts.universal.d.ts → blog-v3-draft-draft-posts.universal-vVP72XfS.d.ts} +311 -958
  3. package/build/index.d.mts +193 -0
  4. package/build/index.d.ts +193 -0
  5. package/build/index.js +3411 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +3331 -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-vVP72XfS.d.mts} +311 -958
  10. package/build/{es/src/blog-v3-draft-draft-posts.universal.d.ts → internal/blog-v3-draft-draft-posts.universal-vVP72XfS.d.ts} +311 -958
  11. package/build/internal/index.d.mts +193 -0
  12. package/build/internal/index.d.ts +193 -0
  13. package/build/internal/index.js +3411 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +3331 -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} +269 -1445
  18. package/build/internal/{cjs/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +269 -1445
  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} +269 -1445
  24. package/build/{internal/es/src/blog-v3-draft-draft-posts.types.d.ts → meta.d.ts} +269 -1445
  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 +13 -12
  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 -476
  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 -1497
  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 -473
  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 -1456
  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 -476
  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 -1497
  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 -473
  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 -1456
  130. package/build/internal/es/src/blog-v3-draft-draft-posts.universal.js.map +0 -1
@@ -0,0 +1,3411 @@
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
+ draftPost,
2187
+ publish: options?.publish,
2188
+ fieldsets: options?.fieldsets
2189
+ }),
2190
+ [
2191
+ {
2192
+ transformFn: import_image.transformSDKImageToRESTImage,
2193
+ paths: [
2194
+ { path: "draftPost.heroImage" },
2195
+ { path: "draftPost.coverMedia.image" },
2196
+ { path: "draftPost.media.wixMedia.image" }
2197
+ ]
2198
+ },
2199
+ {
2200
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2201
+ paths: [
2202
+ { path: "draftPost.url" },
2203
+ { path: "draftPost.translations.url" }
2204
+ ]
2205
+ },
2206
+ {
2207
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2208
+ paths: [{ path: "draftPost.coverMedia.video" }]
2209
+ },
2210
+ {
2211
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2212
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2213
+ }
2214
+ ]
2215
+ );
2216
+ const reqOpts = createDraftPost(payload);
2217
+ sideEffects?.onSiteCall?.();
2218
+ try {
2219
+ const result = await httpClient.request(reqOpts);
2220
+ sideEffects?.onSuccess?.(result);
2221
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2222
+ (0, import_transform_paths2.transformPaths)(result.data, [
2223
+ {
2224
+ transformFn: import_image2.transformRESTImageToSDKImage,
2225
+ paths: [
2226
+ { path: "draftPost.heroImage" },
2227
+ { path: "draftPost.coverMedia.image" },
2228
+ { path: "draftPost.media.wixMedia.image" }
2229
+ ]
2230
+ },
2231
+ {
2232
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2233
+ paths: [
2234
+ { path: "draftPost.url" },
2235
+ { path: "draftPost.translations.url" }
2236
+ ]
2237
+ },
2238
+ {
2239
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2240
+ paths: [{ path: "draftPost.coverMedia.video" }]
2241
+ },
2242
+ {
2243
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2244
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2245
+ }
2246
+ ])
2247
+ );
2248
+ } catch (err) {
2249
+ const transformedError = (0, import_transform_error.transformError)(
2250
+ err,
2251
+ {
2252
+ spreadPathsToArguments: {},
2253
+ explicitPathsToArguments: {
2254
+ draftPost: "$[0]",
2255
+ publish: "$[1].publish",
2256
+ fieldsets: "$[1].fieldsets"
2257
+ },
2258
+ singleArgumentUnchanged: false
2259
+ },
2260
+ ["draftPost", "options"]
2261
+ );
2262
+ sideEffects?.onError?.(err);
2263
+ throw transformedError;
2264
+ }
2265
+ }
2266
+ async function bulkCreateDraftPosts2(draftPosts, options) {
2267
+ const { httpClient, sideEffects } = arguments[2];
2268
+ const payload = (0, import_transform_paths2.transformPaths)(
2269
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2270
+ draftPosts,
2271
+ publish: options?.publish,
2272
+ returnFullEntity: options?.returnFullEntity,
2273
+ fieldsets: options?.fieldsets
2274
+ }),
2275
+ [
2276
+ {
2277
+ transformFn: import_image.transformSDKImageToRESTImage,
2278
+ paths: [
2279
+ { path: "draftPosts.heroImage" },
2280
+ { path: "draftPosts.coverMedia.image" },
2281
+ { path: "draftPosts.media.wixMedia.image" }
2282
+ ]
2283
+ },
2284
+ {
2285
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2286
+ paths: [
2287
+ { path: "draftPosts.url" },
2288
+ { path: "draftPosts.translations.url" }
2289
+ ]
2290
+ },
2291
+ {
2292
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2293
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2294
+ },
2295
+ {
2296
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2297
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2298
+ }
2299
+ ]
2300
+ );
2301
+ const reqOpts = bulkCreateDraftPosts(payload);
2302
+ sideEffects?.onSiteCall?.();
2303
+ try {
2304
+ const result = await httpClient.request(reqOpts);
2305
+ sideEffects?.onSuccess?.(result);
2306
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2307
+ (0, import_transform_paths2.transformPaths)(result.data, [
2308
+ {
2309
+ transformFn: import_image2.transformRESTImageToSDKImage,
2310
+ paths: [
2311
+ { path: "results.item.heroImage" },
2312
+ { path: "results.item.coverMedia.image" },
2313
+ { path: "results.item.media.wixMedia.image" }
2314
+ ]
2315
+ },
2316
+ {
2317
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2318
+ paths: [
2319
+ { path: "results.item.url" },
2320
+ { path: "results.item.translations.url" }
2321
+ ]
2322
+ },
2323
+ {
2324
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2325
+ paths: [{ path: "results.item.coverMedia.video" }]
2326
+ },
2327
+ {
2328
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2329
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2330
+ }
2331
+ ])
2332
+ );
2333
+ } catch (err) {
2334
+ const transformedError = (0, import_transform_error.transformError)(
2335
+ err,
2336
+ {
2337
+ spreadPathsToArguments: {},
2338
+ explicitPathsToArguments: {
2339
+ draftPosts: "$[0]",
2340
+ publish: "$[1].publish",
2341
+ returnFullEntity: "$[1].returnFullEntity",
2342
+ fieldsets: "$[1].fieldsets"
2343
+ },
2344
+ singleArgumentUnchanged: false
2345
+ },
2346
+ ["draftPosts", "options"]
2347
+ );
2348
+ sideEffects?.onError?.(err);
2349
+ throw transformedError;
2350
+ }
2351
+ }
2352
+ async function bulkUpdateDraftPosts2(options) {
2353
+ const { httpClient, sideEffects } = arguments[1];
2354
+ const payload = (0, import_transform_paths2.transformPaths)(
2355
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2356
+ draftPosts: options?.draftPosts,
2357
+ action: options?.action,
2358
+ scheduledPublishDate: options?.scheduledPublishDate,
2359
+ returnFullEntity: options?.returnFullEntity,
2360
+ fieldsets: options?.fieldsets
2361
+ }),
2362
+ [
2363
+ {
2364
+ transformFn: import_image.transformSDKImageToRESTImage,
2365
+ paths: [
2366
+ { path: "draftPosts.draftPost.heroImage" },
2367
+ { path: "draftPosts.draftPost.coverMedia.image" },
2368
+ { path: "draftPosts.draftPost.media.wixMedia.image" }
2369
+ ]
2370
+ },
2371
+ {
2372
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2373
+ paths: [
2374
+ { path: "draftPosts.draftPost.url" },
2375
+ { path: "draftPosts.draftPost.translations.url" }
2376
+ ]
2377
+ },
2378
+ {
2379
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2380
+ paths: [{ path: "draftPosts.draftPost.coverMedia.video" }]
2381
+ },
2382
+ {
2383
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2384
+ paths: [{ path: "draftPosts.draftPost.media.wixMedia.videoV2" }]
2385
+ }
2386
+ ]
2387
+ );
2388
+ const reqOpts = bulkUpdateDraftPosts(payload);
2389
+ sideEffects?.onSiteCall?.();
2390
+ try {
2391
+ const result = await httpClient.request(reqOpts);
2392
+ sideEffects?.onSuccess?.(result);
2393
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2394
+ (0, import_transform_paths2.transformPaths)(result.data, [
2395
+ {
2396
+ transformFn: import_image2.transformRESTImageToSDKImage,
2397
+ paths: [
2398
+ { path: "results.item.heroImage" },
2399
+ { path: "results.item.coverMedia.image" },
2400
+ { path: "results.item.media.wixMedia.image" }
2401
+ ]
2402
+ },
2403
+ {
2404
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2405
+ paths: [
2406
+ { path: "results.item.url" },
2407
+ { path: "results.item.translations.url" }
2408
+ ]
2409
+ },
2410
+ {
2411
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2412
+ paths: [{ path: "results.item.coverMedia.video" }]
2413
+ },
2414
+ {
2415
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2416
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2417
+ }
2418
+ ])
2419
+ );
2420
+ } catch (err) {
2421
+ const transformedError = (0, import_transform_error.transformError)(
2422
+ err,
2423
+ {
2424
+ spreadPathsToArguments: {},
2425
+ explicitPathsToArguments: {
2426
+ draftPosts: "$[0].draftPosts",
2427
+ action: "$[0].action",
2428
+ scheduledPublishDate: "$[0].scheduledPublishDate",
2429
+ returnFullEntity: "$[0].returnFullEntity",
2430
+ fieldsets: "$[0].fieldsets"
2431
+ },
2432
+ singleArgumentUnchanged: false
2433
+ },
2434
+ ["options"]
2435
+ );
2436
+ sideEffects?.onError?.(err);
2437
+ throw transformedError;
2438
+ }
2439
+ }
2440
+ async function listDeletedDraftPosts2(options) {
2441
+ const { httpClient, sideEffects } = arguments[1];
2442
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2443
+ language: options?.language,
2444
+ sort: options?.sort,
2445
+ paging: options?.paging,
2446
+ fieldsets: options?.fieldsets,
2447
+ draftPostIds: options?.draftPostIds
2448
+ });
2449
+ const reqOpts = listDeletedDraftPosts(payload);
2450
+ sideEffects?.onSiteCall?.();
2451
+ try {
2452
+ const result = await httpClient.request(reqOpts);
2453
+ sideEffects?.onSuccess?.(result);
2454
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2455
+ (0, import_transform_paths2.transformPaths)(result.data, [
2456
+ {
2457
+ transformFn: import_image2.transformRESTImageToSDKImage,
2458
+ paths: [
2459
+ { path: "draftPosts.heroImage" },
2460
+ { path: "draftPosts.coverMedia.image" },
2461
+ { path: "draftPosts.media.wixMedia.image" }
2462
+ ]
2463
+ },
2464
+ {
2465
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2466
+ paths: [
2467
+ { path: "draftPosts.url" },
2468
+ { path: "draftPosts.translations.url" }
2469
+ ]
2470
+ },
2471
+ {
2472
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2473
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2474
+ },
2475
+ {
2476
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2477
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2478
+ }
2479
+ ])
2480
+ );
2481
+ } catch (err) {
2482
+ const transformedError = (0, import_transform_error.transformError)(
2483
+ err,
2484
+ {
2485
+ spreadPathsToArguments: {},
2486
+ explicitPathsToArguments: {
2487
+ language: "$[0].language",
2488
+ sort: "$[0].sort",
2489
+ paging: "$[0].paging",
2490
+ fieldsets: "$[0].fieldsets",
2491
+ draftPostIds: "$[0].draftPostIds"
2492
+ },
2493
+ singleArgumentUnchanged: false
2494
+ },
2495
+ ["options"]
2496
+ );
2497
+ sideEffects?.onError?.(err);
2498
+ throw transformedError;
2499
+ }
2500
+ }
2501
+ async function getDraftPost2(draftPostId, options) {
2502
+ const { httpClient, sideEffects } = arguments[2];
2503
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2504
+ draftPostId,
2505
+ fieldsets: options?.fieldsets
2506
+ });
2507
+ const reqOpts = getDraftPost(payload);
2508
+ sideEffects?.onSiteCall?.();
2509
+ try {
2510
+ const result = await httpClient.request(reqOpts);
2511
+ sideEffects?.onSuccess?.(result);
2512
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2513
+ (0, import_transform_paths2.transformPaths)(result.data, [
2514
+ {
2515
+ transformFn: import_image2.transformRESTImageToSDKImage,
2516
+ paths: [
2517
+ { path: "draftPost.heroImage" },
2518
+ { path: "draftPost.coverMedia.image" },
2519
+ { path: "draftPost.media.wixMedia.image" }
2520
+ ]
2521
+ },
2522
+ {
2523
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2524
+ paths: [
2525
+ { path: "draftPost.url" },
2526
+ { path: "draftPost.translations.url" }
2527
+ ]
2528
+ },
2529
+ {
2530
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2531
+ paths: [{ path: "draftPost.coverMedia.video" }]
2532
+ },
2533
+ {
2534
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2535
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2536
+ }
2537
+ ])
2538
+ );
2539
+ } catch (err) {
2540
+ const transformedError = (0, import_transform_error.transformError)(
2541
+ err,
2542
+ {
2543
+ spreadPathsToArguments: {},
2544
+ explicitPathsToArguments: {
2545
+ draftPostId: "$[0]",
2546
+ fieldsets: "$[1].fieldsets"
2547
+ },
2548
+ singleArgumentUnchanged: false
2549
+ },
2550
+ ["draftPostId", "options"]
2551
+ );
2552
+ sideEffects?.onError?.(err);
2553
+ throw transformedError;
2554
+ }
2555
+ }
2556
+ async function updateDraftPost2(_id, draftPost, options) {
2557
+ const { httpClient, sideEffects } = arguments[3];
2558
+ const payload = (0, import_transform_paths2.transformPaths)(
2559
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2560
+ draftPost: { ...draftPost, id: _id },
2561
+ action: options?.action,
2562
+ scheduledPublishDate: options?.scheduledPublishDate,
2563
+ fieldsets: options?.fieldsets
2564
+ }),
2565
+ [
2566
+ {
2567
+ transformFn: import_image.transformSDKImageToRESTImage,
2568
+ paths: [
2569
+ { path: "draftPost.heroImage" },
2570
+ { path: "draftPost.coverMedia.image" },
2571
+ { path: "draftPost.media.wixMedia.image" }
2572
+ ]
2573
+ },
2574
+ {
2575
+ transformFn: import_page_url.transformSDKPageURLToRESTPageURL,
2576
+ paths: [
2577
+ { path: "draftPost.url" },
2578
+ { path: "draftPost.translations.url" }
2579
+ ]
2580
+ },
2581
+ {
2582
+ transformFn: import_video.transformSDKVideoToRESTVideo,
2583
+ paths: [{ path: "draftPost.coverMedia.video" }]
2584
+ },
2585
+ {
2586
+ transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
2587
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2588
+ }
2589
+ ]
2590
+ );
2591
+ const reqOpts = updateDraftPost(payload);
2592
+ sideEffects?.onSiteCall?.();
2593
+ try {
2594
+ const result = await httpClient.request(reqOpts);
2595
+ sideEffects?.onSuccess?.(result);
2596
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2597
+ (0, import_transform_paths2.transformPaths)(result.data, [
2598
+ {
2599
+ transformFn: import_image2.transformRESTImageToSDKImage,
2600
+ paths: [
2601
+ { path: "draftPost.heroImage" },
2602
+ { path: "draftPost.coverMedia.image" },
2603
+ { path: "draftPost.media.wixMedia.image" }
2604
+ ]
2605
+ },
2606
+ {
2607
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2608
+ paths: [
2609
+ { path: "draftPost.url" },
2610
+ { path: "draftPost.translations.url" }
2611
+ ]
2612
+ },
2613
+ {
2614
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2615
+ paths: [{ path: "draftPost.coverMedia.video" }]
2616
+ },
2617
+ {
2618
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2619
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2620
+ }
2621
+ ])
2622
+ );
2623
+ } catch (err) {
2624
+ const transformedError = (0, import_transform_error.transformError)(
2625
+ err,
2626
+ {
2627
+ spreadPathsToArguments: { draftPost: "$[1]" },
2628
+ explicitPathsToArguments: {
2629
+ "draftPost.id": "$[0]",
2630
+ action: "$[2].action",
2631
+ scheduledPublishDate: "$[2].scheduledPublishDate",
2632
+ fieldsets: "$[2].fieldsets"
2633
+ },
2634
+ singleArgumentUnchanged: false
2635
+ },
2636
+ ["_id", "draftPost", "options"]
2637
+ );
2638
+ sideEffects?.onError?.(err);
2639
+ throw transformedError;
2640
+ }
2641
+ }
2642
+ async function deleteDraftPost2(draftPostId, options) {
2643
+ const { httpClient, sideEffects } = arguments[2];
2644
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2645
+ draftPostId,
2646
+ permanent: options?.permanent
2647
+ });
2648
+ const reqOpts = deleteDraftPost(payload);
2649
+ sideEffects?.onSiteCall?.();
2650
+ try {
2651
+ const result = await httpClient.request(reqOpts);
2652
+ sideEffects?.onSuccess?.(result);
2653
+ } catch (err) {
2654
+ const transformedError = (0, import_transform_error.transformError)(
2655
+ err,
2656
+ {
2657
+ spreadPathsToArguments: {},
2658
+ explicitPathsToArguments: {
2659
+ draftPostId: "$[0]",
2660
+ permanent: "$[1].permanent"
2661
+ },
2662
+ singleArgumentUnchanged: false
2663
+ },
2664
+ ["draftPostId", "options"]
2665
+ );
2666
+ sideEffects?.onError?.(err);
2667
+ throw transformedError;
2668
+ }
2669
+ }
2670
+ async function removeFromTrashBin2(draftPostId) {
2671
+ const { httpClient, sideEffects } = arguments[1];
2672
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2673
+ draftPostId
2674
+ });
2675
+ const reqOpts = removeFromTrashBin(payload);
2676
+ sideEffects?.onSiteCall?.();
2677
+ try {
2678
+ const result = await httpClient.request(reqOpts);
2679
+ sideEffects?.onSuccess?.(result);
2680
+ } catch (err) {
2681
+ const transformedError = (0, import_transform_error.transformError)(
2682
+ err,
2683
+ {
2684
+ spreadPathsToArguments: {},
2685
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2686
+ singleArgumentUnchanged: false
2687
+ },
2688
+ ["draftPostId"]
2689
+ );
2690
+ sideEffects?.onError?.(err);
2691
+ throw transformedError;
2692
+ }
2693
+ }
2694
+ async function bulkDeleteDraftPosts2(postIds, options) {
2695
+ const { httpClient, sideEffects } = arguments[2];
2696
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2697
+ postIds,
2698
+ permanent: options?.permanent
2699
+ });
2700
+ const reqOpts = bulkDeleteDraftPosts(payload);
2701
+ sideEffects?.onSiteCall?.();
2702
+ try {
2703
+ const result = await httpClient.request(reqOpts);
2704
+ sideEffects?.onSuccess?.(result);
2705
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2706
+ (0, import_transform_paths2.transformPaths)(result.data, [
2707
+ {
2708
+ transformFn: import_image2.transformRESTImageToSDKImage,
2709
+ paths: [
2710
+ { path: "results.item.heroImage" },
2711
+ { path: "results.item.coverMedia.image" },
2712
+ { path: "results.item.media.wixMedia.image" }
2713
+ ]
2714
+ },
2715
+ {
2716
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2717
+ paths: [
2718
+ { path: "results.item.url" },
2719
+ { path: "results.item.translations.url" }
2720
+ ]
2721
+ },
2722
+ {
2723
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2724
+ paths: [{ path: "results.item.coverMedia.video" }]
2725
+ },
2726
+ {
2727
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2728
+ paths: [{ path: "results.item.media.wixMedia.videoV2" }]
2729
+ }
2730
+ ])
2731
+ );
2732
+ } catch (err) {
2733
+ const transformedError = (0, import_transform_error.transformError)(
2734
+ err,
2735
+ {
2736
+ spreadPathsToArguments: {},
2737
+ explicitPathsToArguments: {
2738
+ postIds: "$[0]",
2739
+ permanent: "$[1].permanent"
2740
+ },
2741
+ singleArgumentUnchanged: false
2742
+ },
2743
+ ["postIds", "options"]
2744
+ );
2745
+ sideEffects?.onError?.(err);
2746
+ throw transformedError;
2747
+ }
2748
+ }
2749
+ async function listDraftPosts2(options) {
2750
+ const { httpClient, sideEffects } = arguments[1];
2751
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2752
+ status: options?.status,
2753
+ language: options?.language,
2754
+ sort: options?.sort,
2755
+ paging: options?.paging,
2756
+ fieldsets: options?.fieldsets
2757
+ });
2758
+ const reqOpts = listDraftPosts(payload);
2759
+ sideEffects?.onSiteCall?.();
2760
+ try {
2761
+ const result = await httpClient.request(reqOpts);
2762
+ sideEffects?.onSuccess?.(result);
2763
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2764
+ (0, import_transform_paths2.transformPaths)(result.data, [
2765
+ {
2766
+ transformFn: import_image2.transformRESTImageToSDKImage,
2767
+ paths: [
2768
+ { path: "draftPosts.heroImage" },
2769
+ { path: "draftPosts.coverMedia.image" },
2770
+ { path: "draftPosts.media.wixMedia.image" }
2771
+ ]
2772
+ },
2773
+ {
2774
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2775
+ paths: [
2776
+ { path: "draftPosts.url" },
2777
+ { path: "draftPosts.translations.url" }
2778
+ ]
2779
+ },
2780
+ {
2781
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2782
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2783
+ },
2784
+ {
2785
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2786
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2787
+ }
2788
+ ])
2789
+ );
2790
+ } catch (err) {
2791
+ const transformedError = (0, import_transform_error.transformError)(
2792
+ err,
2793
+ {
2794
+ spreadPathsToArguments: {},
2795
+ explicitPathsToArguments: {
2796
+ status: "$[0].status",
2797
+ language: "$[0].language",
2798
+ sort: "$[0].sort",
2799
+ paging: "$[0].paging",
2800
+ fieldsets: "$[0].fieldsets"
2801
+ },
2802
+ singleArgumentUnchanged: false
2803
+ },
2804
+ ["options"]
2805
+ );
2806
+ sideEffects?.onError?.(err);
2807
+ throw transformedError;
2808
+ }
2809
+ }
2810
+ async function getDeletedDraftPost2(draftPostId) {
2811
+ const { httpClient, sideEffects } = arguments[1];
2812
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2813
+ draftPostId
2814
+ });
2815
+ const reqOpts = getDeletedDraftPost(payload);
2816
+ sideEffects?.onSiteCall?.();
2817
+ try {
2818
+ const result = await httpClient.request(reqOpts);
2819
+ sideEffects?.onSuccess?.(result);
2820
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2821
+ (0, import_transform_paths2.transformPaths)(result.data, [
2822
+ {
2823
+ transformFn: import_image2.transformRESTImageToSDKImage,
2824
+ paths: [
2825
+ { path: "draftPost.heroImage" },
2826
+ { path: "draftPost.coverMedia.image" },
2827
+ { path: "draftPost.media.wixMedia.image" }
2828
+ ]
2829
+ },
2830
+ {
2831
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2832
+ paths: [
2833
+ { path: "draftPost.url" },
2834
+ { path: "draftPost.translations.url" }
2835
+ ]
2836
+ },
2837
+ {
2838
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2839
+ paths: [{ path: "draftPost.coverMedia.video" }]
2840
+ },
2841
+ {
2842
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2843
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2844
+ }
2845
+ ])
2846
+ );
2847
+ } catch (err) {
2848
+ const transformedError = (0, import_transform_error.transformError)(
2849
+ err,
2850
+ {
2851
+ spreadPathsToArguments: {},
2852
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2853
+ singleArgumentUnchanged: false
2854
+ },
2855
+ ["draftPostId"]
2856
+ );
2857
+ sideEffects?.onError?.(err);
2858
+ throw transformedError;
2859
+ }
2860
+ }
2861
+ async function restoreFromTrashBin2(draftPostId) {
2862
+ const { httpClient, sideEffects } = arguments[1];
2863
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2864
+ draftPostId
2865
+ });
2866
+ const reqOpts = restoreFromTrashBin(payload);
2867
+ sideEffects?.onSiteCall?.();
2868
+ try {
2869
+ const result = await httpClient.request(reqOpts);
2870
+ sideEffects?.onSuccess?.(result);
2871
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2872
+ (0, import_transform_paths2.transformPaths)(result.data, [
2873
+ {
2874
+ transformFn: import_image2.transformRESTImageToSDKImage,
2875
+ paths: [
2876
+ { path: "draftPost.heroImage" },
2877
+ { path: "draftPost.coverMedia.image" },
2878
+ { path: "draftPost.media.wixMedia.image" }
2879
+ ]
2880
+ },
2881
+ {
2882
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2883
+ paths: [
2884
+ { path: "draftPost.url" },
2885
+ { path: "draftPost.translations.url" }
2886
+ ]
2887
+ },
2888
+ {
2889
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2890
+ paths: [{ path: "draftPost.coverMedia.video" }]
2891
+ },
2892
+ {
2893
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2894
+ paths: [{ path: "draftPost.media.wixMedia.videoV2" }]
2895
+ }
2896
+ ])
2897
+ );
2898
+ } catch (err) {
2899
+ const transformedError = (0, import_transform_error.transformError)(
2900
+ err,
2901
+ {
2902
+ spreadPathsToArguments: {},
2903
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2904
+ singleArgumentUnchanged: false
2905
+ },
2906
+ ["draftPostId"]
2907
+ );
2908
+ sideEffects?.onError?.(err);
2909
+ throw transformedError;
2910
+ }
2911
+ }
2912
+ function queryDraftPosts2(options) {
2913
+ const { httpClient, sideEffects } = arguments[1];
2914
+ return (0, import_query_builder.queryBuilder)({
2915
+ func: async (payload) => {
2916
+ const reqOpts = queryDraftPosts({
2917
+ ...payload,
2918
+ ...options ?? {}
2919
+ });
2920
+ sideEffects?.onSiteCall?.();
2921
+ try {
2922
+ const result = await httpClient.request(reqOpts);
2923
+ sideEffects?.onSuccess?.(result);
2924
+ return result;
2925
+ } catch (err) {
2926
+ sideEffects?.onError?.(err);
2927
+ throw err;
2928
+ }
2929
+ },
2930
+ requestTransformer: (query) => {
2931
+ const args = [query, options];
2932
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2933
+ ...args?.[1],
2934
+ query: args?.[0]
2935
+ });
2936
+ },
2937
+ responseTransformer: ({ data }) => {
2938
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2939
+ (0, import_transform_paths2.transformPaths)(data, [
2940
+ {
2941
+ transformFn: import_image2.transformRESTImageToSDKImage,
2942
+ paths: [
2943
+ { path: "draftPosts.heroImage" },
2944
+ { path: "draftPosts.coverMedia.image" },
2945
+ { path: "draftPosts.media.wixMedia.image" }
2946
+ ]
2947
+ },
2948
+ {
2949
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2950
+ paths: [
2951
+ { path: "draftPosts.url" },
2952
+ { path: "draftPosts.translations.url" }
2953
+ ]
2954
+ },
2955
+ {
2956
+ transformFn: import_video2.transformRESTVideoToSDKVideo,
2957
+ paths: [{ path: "draftPosts.coverMedia.video" }]
2958
+ },
2959
+ {
2960
+ transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
2961
+ paths: [{ path: "draftPosts.media.wixMedia.videoV2" }]
2962
+ }
2963
+ ])
2964
+ );
2965
+ return {
2966
+ items: transformedData?.draftPosts,
2967
+ pagingMetadata: transformedData?.pagingMetadata
2968
+ };
2969
+ },
2970
+ errorTransformer: (err) => {
2971
+ const transformedError = (0, import_transform_error.transformError)(err, {
2972
+ spreadPathsToArguments: {},
2973
+ explicitPathsToArguments: { query: "$[0]" },
2974
+ singleArgumentUnchanged: false
2975
+ });
2976
+ throw transformedError;
2977
+ },
2978
+ pagingMethod: "CURSOR",
2979
+ transformationPaths: {}
2980
+ });
2981
+ }
2982
+ async function publishDraftPost2(draftPostId) {
2983
+ const { httpClient, sideEffects } = arguments[1];
2984
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2985
+ draftPostId
2986
+ });
2987
+ const reqOpts = publishDraftPost(payload);
2988
+ sideEffects?.onSiteCall?.();
2989
+ try {
2990
+ const result = await httpClient.request(reqOpts);
2991
+ sideEffects?.onSuccess?.(result);
2992
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2993
+ } catch (err) {
2994
+ const transformedError = (0, import_transform_error.transformError)(
2995
+ err,
2996
+ {
2997
+ spreadPathsToArguments: {},
2998
+ explicitPathsToArguments: { draftPostId: "$[0]" },
2999
+ singleArgumentUnchanged: false
3000
+ },
3001
+ ["draftPostId"]
3002
+ );
3003
+ sideEffects?.onError?.(err);
3004
+ throw transformedError;
3005
+ }
3006
+ }
3007
+
3008
+ // src/blog-v3-draft-draft-posts.public.ts
3009
+ function createDraftPost3(httpClient) {
3010
+ return (draftPost, options) => createDraftPost2(
3011
+ draftPost,
3012
+ options,
3013
+ // @ts-ignore
3014
+ { httpClient }
3015
+ );
3016
+ }
3017
+ function bulkCreateDraftPosts3(httpClient) {
3018
+ return (draftPosts, options) => bulkCreateDraftPosts2(
3019
+ draftPosts,
3020
+ options,
3021
+ // @ts-ignore
3022
+ { httpClient }
3023
+ );
3024
+ }
3025
+ function bulkUpdateDraftPosts3(httpClient) {
3026
+ return (options) => bulkUpdateDraftPosts2(
3027
+ options,
3028
+ // @ts-ignore
3029
+ { httpClient }
3030
+ );
3031
+ }
3032
+ function listDeletedDraftPosts3(httpClient) {
3033
+ return (options) => listDeletedDraftPosts2(
3034
+ options,
3035
+ // @ts-ignore
3036
+ { httpClient }
3037
+ );
3038
+ }
3039
+ function getDraftPost3(httpClient) {
3040
+ return (draftPostId, options) => getDraftPost2(
3041
+ draftPostId,
3042
+ options,
3043
+ // @ts-ignore
3044
+ { httpClient }
3045
+ );
3046
+ }
3047
+ function updateDraftPost3(httpClient) {
3048
+ return (_id, draftPost, options) => updateDraftPost2(
3049
+ _id,
3050
+ draftPost,
3051
+ options,
3052
+ // @ts-ignore
3053
+ { httpClient }
3054
+ );
3055
+ }
3056
+ function deleteDraftPost3(httpClient) {
3057
+ return (draftPostId, options) => deleteDraftPost2(
3058
+ draftPostId,
3059
+ options,
3060
+ // @ts-ignore
3061
+ { httpClient }
3062
+ );
3063
+ }
3064
+ function removeFromTrashBin3(httpClient) {
3065
+ return (draftPostId) => removeFromTrashBin2(
3066
+ draftPostId,
3067
+ // @ts-ignore
3068
+ { httpClient }
3069
+ );
3070
+ }
3071
+ function bulkDeleteDraftPosts3(httpClient) {
3072
+ return (postIds, options) => bulkDeleteDraftPosts2(
3073
+ postIds,
3074
+ options,
3075
+ // @ts-ignore
3076
+ { httpClient }
3077
+ );
3078
+ }
3079
+ function listDraftPosts3(httpClient) {
3080
+ return (options) => listDraftPosts2(
3081
+ options,
3082
+ // @ts-ignore
3083
+ { httpClient }
3084
+ );
3085
+ }
3086
+ function getDeletedDraftPost3(httpClient) {
3087
+ return (draftPostId) => getDeletedDraftPost2(
3088
+ draftPostId,
3089
+ // @ts-ignore
3090
+ { httpClient }
3091
+ );
3092
+ }
3093
+ function restoreFromTrashBin3(httpClient) {
3094
+ return (draftPostId) => restoreFromTrashBin2(
3095
+ draftPostId,
3096
+ // @ts-ignore
3097
+ { httpClient }
3098
+ );
3099
+ }
3100
+ function queryDraftPosts3(httpClient) {
3101
+ return (options) => queryDraftPosts2(
3102
+ options,
3103
+ // @ts-ignore
3104
+ { httpClient }
3105
+ );
3106
+ }
3107
+ function publishDraftPost3(httpClient) {
3108
+ return (draftPostId) => publishDraftPost2(
3109
+ draftPostId,
3110
+ // @ts-ignore
3111
+ { httpClient }
3112
+ );
3113
+ }
3114
+ var onDraftCreated = (0, import_sdk_types.EventDefinition)(
3115
+ "wix.blog.v3.draft_created",
3116
+ true,
3117
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3118
+ (0, import_transform_paths3.transformPaths)(event, [
3119
+ {
3120
+ transformFn: import_image3.transformRESTImageToSDKImage,
3121
+ paths: [
3122
+ { path: "entity.heroImage" },
3123
+ { path: "entity.coverMedia.image" },
3124
+ { path: "entity.media.wixMedia.image" }
3125
+ ]
3126
+ },
3127
+ {
3128
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3129
+ paths: [
3130
+ { path: "entity.editedDate" },
3131
+ { path: "entity.scheduledPublishDate" },
3132
+ { path: "entity.firstPublishedDate" },
3133
+ { path: "entity.createdDate" },
3134
+ { path: "entity.richContent.metadata.createdTimestamp" },
3135
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3136
+ { path: "entity.moderationDetails.submittedDate" },
3137
+ { path: "entity.moderationDetails.moderationDate" },
3138
+ { path: "metadata.eventTime" }
3139
+ ]
3140
+ },
3141
+ {
3142
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3143
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3144
+ },
3145
+ {
3146
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3147
+ paths: [{ path: "entity.coverMedia.video" }]
3148
+ },
3149
+ {
3150
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3151
+ paths: [
3152
+ {
3153
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3154
+ },
3155
+ {
3156
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3157
+ },
3158
+ {
3159
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3160
+ },
3161
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3162
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3163
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3164
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3165
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3166
+ {
3167
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3168
+ },
3169
+ {
3170
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3171
+ },
3172
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3173
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3174
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3175
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3176
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3177
+ ]
3178
+ },
3179
+ {
3180
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3181
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3182
+ }
3183
+ ])
3184
+ )
3185
+ )();
3186
+ var onDraftDeleted = (0, import_sdk_types.EventDefinition)(
3187
+ "wix.blog.v3.draft_deleted",
3188
+ true,
3189
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3190
+ (0, import_transform_paths3.transformPaths)(event, [
3191
+ {
3192
+ transformFn: import_image3.transformRESTImageToSDKImage,
3193
+ paths: [
3194
+ { path: "entity.heroImage" },
3195
+ { path: "entity.coverMedia.image" },
3196
+ { path: "entity.media.wixMedia.image" }
3197
+ ]
3198
+ },
3199
+ {
3200
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3201
+ paths: [
3202
+ { path: "entity.editedDate" },
3203
+ { path: "entity.scheduledPublishDate" },
3204
+ { path: "entity.firstPublishedDate" },
3205
+ { path: "entity.createdDate" },
3206
+ { path: "entity.richContent.metadata.createdTimestamp" },
3207
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3208
+ { path: "entity.moderationDetails.submittedDate" },
3209
+ { path: "entity.moderationDetails.moderationDate" },
3210
+ { path: "metadata.eventTime" }
3211
+ ]
3212
+ },
3213
+ {
3214
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3215
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3216
+ },
3217
+ {
3218
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3219
+ paths: [{ path: "entity.coverMedia.video" }]
3220
+ },
3221
+ {
3222
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3223
+ paths: [
3224
+ {
3225
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3226
+ },
3227
+ {
3228
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3229
+ },
3230
+ {
3231
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3232
+ },
3233
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3234
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3235
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3236
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3237
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3238
+ {
3239
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3240
+ },
3241
+ {
3242
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3243
+ },
3244
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3245
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3246
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3247
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3248
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3249
+ ]
3250
+ },
3251
+ {
3252
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3253
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3254
+ }
3255
+ ])
3256
+ )
3257
+ )();
3258
+ var onDraftUpdated = (0, import_sdk_types.EventDefinition)(
3259
+ "wix.blog.v3.draft_updated",
3260
+ true,
3261
+ (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
3262
+ (0, import_transform_paths3.transformPaths)(event, [
3263
+ {
3264
+ transformFn: import_image3.transformRESTImageToSDKImage,
3265
+ paths: [
3266
+ { path: "entity.heroImage" },
3267
+ { path: "entity.coverMedia.image" },
3268
+ { path: "entity.media.wixMedia.image" }
3269
+ ]
3270
+ },
3271
+ {
3272
+ transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
3273
+ paths: [
3274
+ { path: "entity.editedDate" },
3275
+ { path: "entity.scheduledPublishDate" },
3276
+ { path: "entity.firstPublishedDate" },
3277
+ { path: "entity.createdDate" },
3278
+ { path: "entity.richContent.metadata.createdTimestamp" },
3279
+ { path: "entity.richContent.metadata.updatedTimestamp" },
3280
+ { path: "entity.moderationDetails.submittedDate" },
3281
+ { path: "entity.moderationDetails.moderationDate" },
3282
+ { path: "metadata.eventTime" }
3283
+ ]
3284
+ },
3285
+ {
3286
+ transformFn: import_page_url3.transformRESTPageURLToSDKPageURL,
3287
+ paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
3288
+ },
3289
+ {
3290
+ transformFn: import_video3.transformRESTVideoToSDKVideo,
3291
+ paths: [{ path: "entity.coverMedia.video" }]
3292
+ },
3293
+ {
3294
+ transformFn: import_float3.transformRESTFloatToSDKFloat,
3295
+ paths: [
3296
+ {
3297
+ path: "entity.richContent.nodes.galleryData.items.image.media.duration"
3298
+ },
3299
+ {
3300
+ path: "entity.richContent.nodes.galleryData.items.video.media.duration"
3301
+ },
3302
+ {
3303
+ path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
3304
+ },
3305
+ { path: "entity.richContent.nodes.galleryData.options.item.ratio" },
3306
+ { path: "entity.richContent.nodes.imageData.image.duration" },
3307
+ { path: "entity.richContent.nodes.mapData.mapSettings.lat" },
3308
+ { path: "entity.richContent.nodes.mapData.mapSettings.lng" },
3309
+ { path: "entity.richContent.nodes.pollData.poll.image.duration" },
3310
+ {
3311
+ path: "entity.richContent.nodes.pollData.poll.options.image.duration"
3312
+ },
3313
+ {
3314
+ path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
3315
+ },
3316
+ { path: "entity.richContent.nodes.appEmbedData.image.duration" },
3317
+ { path: "entity.richContent.nodes.videoData.video.duration" },
3318
+ { path: "entity.richContent.nodes.videoData.thumbnail.duration" },
3319
+ { path: "entity.richContent.nodes.audioData.audio.duration" },
3320
+ { path: "entity.richContent.nodes.audioData.coverImage.duration" }
3321
+ ]
3322
+ },
3323
+ {
3324
+ transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
3325
+ paths: [{ path: "entity.media.wixMedia.videoV2" }]
3326
+ }
3327
+ ])
3328
+ )
3329
+ )();
3330
+
3331
+ // src/blog-v3-draft-draft-posts.context.ts
3332
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
3333
+ var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
3334
+ var createDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftPost3);
3335
+ var bulkCreateDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateDraftPosts3);
3336
+ var bulkUpdateDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkUpdateDraftPosts3);
3337
+ var listDeletedDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listDeletedDraftPosts3);
3338
+ var getDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDraftPost3);
3339
+ var updateDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateDraftPost3);
3340
+ var deleteDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteDraftPost3);
3341
+ var removeFromTrashBin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeFromTrashBin3);
3342
+ var bulkDeleteDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteDraftPosts3);
3343
+ var listDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listDraftPosts3);
3344
+ var getDeletedDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDeletedDraftPost3);
3345
+ var restoreFromTrashBin4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(restoreFromTrashBin3);
3346
+ var queryDraftPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryDraftPosts3);
3347
+ var publishDraftPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(publishDraftPost3);
3348
+ var onDraftCreated2 = (0, import_event_definition_modules.createEventModule)(onDraftCreated);
3349
+ var onDraftDeleted2 = (0, import_event_definition_modules.createEventModule)(onDraftDeleted);
3350
+ var onDraftUpdated2 = (0, import_event_definition_modules.createEventModule)(onDraftUpdated);
3351
+ // Annotate the CommonJS export names for ESM import in node:
3352
+ 0 && (module.exports = {
3353
+ Action,
3354
+ Alignment,
3355
+ AppType,
3356
+ BackgroundType,
3357
+ ButtonDataType,
3358
+ Crop,
3359
+ DecorationType,
3360
+ Direction,
3361
+ Field,
3362
+ FontType,
3363
+ GIFType,
3364
+ GetDraftPostsSort,
3365
+ InitialExpandedItems,
3366
+ LayoutType,
3367
+ LineStyle,
3368
+ MapType,
3369
+ ModerationStatusStatus,
3370
+ NodeType,
3371
+ NullValue,
3372
+ Orientation,
3373
+ Origin,
3374
+ PluginContainerDataAlignment,
3375
+ PollLayoutDirection,
3376
+ PollLayoutType,
3377
+ Position,
3378
+ SortOrder,
3379
+ Source,
3380
+ Status,
3381
+ Target,
3382
+ TextAlignment,
3383
+ ThumbnailsAlignment,
3384
+ TotalDraftPostsGroupingField,
3385
+ Type,
3386
+ VerticalAlignment,
3387
+ ViewMode,
3388
+ ViewRole,
3389
+ VoteRole,
3390
+ WebhookIdentityType,
3391
+ Width,
3392
+ WidthType,
3393
+ bulkCreateDraftPosts,
3394
+ bulkDeleteDraftPosts,
3395
+ bulkUpdateDraftPosts,
3396
+ createDraftPost,
3397
+ deleteDraftPost,
3398
+ getDeletedDraftPost,
3399
+ getDraftPost,
3400
+ listDeletedDraftPosts,
3401
+ listDraftPosts,
3402
+ onDraftCreated,
3403
+ onDraftDeleted,
3404
+ onDraftUpdated,
3405
+ publishDraftPost,
3406
+ queryDraftPosts,
3407
+ removeFromTrashBin,
3408
+ restoreFromTrashBin,
3409
+ updateDraftPost
3410
+ });
3411
+ //# sourceMappingURL=index.js.map