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