@wix/auto_sdk_blog_posts 1.0.21 → 1.0.22
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 +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/blog-v3-post-posts.context.d.ts +37 -0
- package/build/cjs/src/blog-v3-post-posts.context.js +82 -0
- package/build/cjs/src/blog-v3-post-posts.context.js.map +1 -0
- package/build/cjs/src/blog-v3-post-posts.http.d.ts +61 -0
- package/build/cjs/src/blog-v3-post-posts.http.js +894 -0
- package/build/cjs/src/blog-v3-post-posts.http.js.map +1 -0
- package/build/cjs/src/blog-v3-post-posts.meta.d.ts +25 -0
- package/build/cjs/src/blog-v3-post-posts.meta.js +161 -0
- package/build/cjs/src/blog-v3-post-posts.meta.js.map +1 -0
- package/build/cjs/src/blog-v3-post-posts.public.d.ts +106 -0
- package/build/cjs/src/blog-v3-post-posts.public.js +320 -0
- package/build/cjs/src/blog-v3-post-posts.public.js.map +1 -0
- package/build/cjs/src/blog-v3-post-posts.types.d.ts +3231 -0
- package/build/cjs/src/blog-v3-post-posts.types.js +485 -0
- package/build/cjs/src/blog-v3-post-posts.types.js.map +1 -0
- package/build/{blog-v3-post-posts.universal-CEsWp0Fx.d.mts → cjs/src/blog-v3-post-posts.universal.d.ts} +494 -256
- package/build/cjs/src/blog-v3-post-posts.universal.js +962 -0
- package/build/cjs/src/blog-v3-post-posts.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/blog-v3-post-posts.context.d.ts +37 -0
- package/build/es/src/blog-v3-post-posts.context.js +37 -0
- package/build/es/src/blog-v3-post-posts.context.js.map +1 -0
- package/build/es/src/blog-v3-post-posts.http.d.ts +61 -0
- package/build/es/src/blog-v3-post-posts.http.js +884 -0
- package/build/es/src/blog-v3-post-posts.http.js.map +1 -0
- package/build/es/src/blog-v3-post-posts.meta.d.ts +25 -0
- package/build/es/src/blog-v3-post-posts.meta.js +128 -0
- package/build/es/src/blog-v3-post-posts.meta.js.map +1 -0
- package/build/es/src/blog-v3-post-posts.public.d.ts +106 -0
- package/build/es/src/blog-v3-post-posts.public.js +268 -0
- package/build/es/src/blog-v3-post-posts.public.js.map +1 -0
- package/build/es/src/blog-v3-post-posts.types.d.ts +3231 -0
- package/build/es/src/blog-v3-post-posts.types.js +482 -0
- package/build/es/src/blog-v3-post-posts.types.js.map +1 -0
- package/build/{blog-v3-post-posts.universal-CEsWp0Fx.d.ts → es/src/blog-v3-post-posts.universal.d.ts} +494 -256
- package/build/es/src/blog-v3-post-posts.universal.js +929 -0
- package/build/es/src/blog-v3-post-posts.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/blog-v3-post-posts.context.d.ts +37 -0
- package/build/internal/cjs/src/blog-v3-post-posts.context.js +82 -0
- package/build/internal/cjs/src/blog-v3-post-posts.context.js.map +1 -0
- package/build/internal/cjs/src/blog-v3-post-posts.http.d.ts +61 -0
- package/build/internal/cjs/src/blog-v3-post-posts.http.js +894 -0
- package/build/internal/cjs/src/blog-v3-post-posts.http.js.map +1 -0
- package/build/internal/cjs/src/blog-v3-post-posts.meta.d.ts +25 -0
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js +161 -0
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js.map +1 -0
- package/build/internal/cjs/src/blog-v3-post-posts.public.d.ts +106 -0
- package/build/internal/cjs/src/blog-v3-post-posts.public.js +320 -0
- package/build/internal/cjs/src/blog-v3-post-posts.public.js.map +1 -0
- package/build/internal/cjs/src/blog-v3-post-posts.types.d.ts +3231 -0
- package/build/internal/cjs/src/blog-v3-post-posts.types.js +485 -0
- package/build/internal/cjs/src/blog-v3-post-posts.types.js.map +1 -0
- package/build/internal/{blog-v3-post-posts.universal-nU7XoyIE.d.ts → cjs/src/blog-v3-post-posts.universal.d.ts} +494 -256
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js +962 -0
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/blog-v3-post-posts.context.d.ts +37 -0
- package/build/internal/es/src/blog-v3-post-posts.context.js +37 -0
- package/build/internal/es/src/blog-v3-post-posts.context.js.map +1 -0
- package/build/internal/es/src/blog-v3-post-posts.http.d.ts +61 -0
- package/build/internal/es/src/blog-v3-post-posts.http.js +884 -0
- package/build/internal/es/src/blog-v3-post-posts.http.js.map +1 -0
- package/build/internal/es/src/blog-v3-post-posts.meta.d.ts +25 -0
- package/build/internal/es/src/blog-v3-post-posts.meta.js +128 -0
- package/build/internal/es/src/blog-v3-post-posts.meta.js.map +1 -0
- package/build/internal/es/src/blog-v3-post-posts.public.d.ts +106 -0
- package/build/internal/es/src/blog-v3-post-posts.public.js +268 -0
- package/build/internal/es/src/blog-v3-post-posts.public.js.map +1 -0
- package/build/internal/es/src/blog-v3-post-posts.types.d.ts +3231 -0
- package/build/internal/es/src/blog-v3-post-posts.types.js +482 -0
- package/build/internal/es/src/blog-v3-post-posts.types.js.map +1 -0
- package/build/internal/{blog-v3-post-posts.universal-nU7XoyIE.d.mts → es/src/blog-v3-post-posts.universal.d.ts} +494 -256
- package/build/internal/es/src/blog-v3-post-posts.universal.js +929 -0
- package/build/internal/es/src/blog-v3-post-posts.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.d.mts +0 -130
- package/build/index.d.ts +0 -130
- package/build/index.js +0 -1975
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -1899
- package/build/index.mjs.map +0 -1
- package/build/internal/index.d.mts +0 -130
- package/build/internal/index.d.ts +0 -130
- package/build/internal/index.js +0 -1975
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -1899
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -2094
- package/build/internal/meta.d.ts +0 -2094
- package/build/internal/meta.js +0 -1002
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -969
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -2094
- package/build/meta.d.ts +0 -2094
- package/build/meta.js +0 -1002
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -969
- package/build/meta.mjs.map +0 -1
package/build/internal/index.js
DELETED
@@ -1,1975 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// index.ts
|
21
|
-
var index_exports = {};
|
22
|
-
__export(index_exports, {
|
23
|
-
Alignment: () => Alignment,
|
24
|
-
AppType: () => AppType,
|
25
|
-
BackgroundType: () => BackgroundType,
|
26
|
-
Crop: () => Crop,
|
27
|
-
DecorationType: () => DecorationType,
|
28
|
-
Direction: () => Direction,
|
29
|
-
Field: () => Field,
|
30
|
-
FontType: () => FontType,
|
31
|
-
GIFType: () => GIFType,
|
32
|
-
GetPostTemplatesSort: () => GetPostTemplatesSort,
|
33
|
-
GetPostsSort: () => GetPostsSort,
|
34
|
-
InitialExpandedItems: () => InitialExpandedItems,
|
35
|
-
LayoutType: () => LayoutType,
|
36
|
-
LineStyle: () => LineStyle,
|
37
|
-
MapType: () => MapType,
|
38
|
-
ModerationStatusStatus: () => ModerationStatusStatus,
|
39
|
-
NodeType: () => NodeType,
|
40
|
-
NullValue: () => NullValue,
|
41
|
-
Order: () => Order,
|
42
|
-
Orientation: () => Orientation,
|
43
|
-
Origin: () => Origin,
|
44
|
-
PluginContainerDataAlignment: () => PluginContainerDataAlignment,
|
45
|
-
PollLayoutDirection: () => PollLayoutDirection,
|
46
|
-
PollLayoutType: () => PollLayoutType,
|
47
|
-
Position: () => Position,
|
48
|
-
PostFieldField: () => PostFieldField,
|
49
|
-
QueryPublicationsCountStatsRequestOrder: () => QueryPublicationsCountStatsRequestOrder,
|
50
|
-
SortOrder: () => SortOrder,
|
51
|
-
Source: () => Source,
|
52
|
-
Status: () => Status,
|
53
|
-
Target: () => Target,
|
54
|
-
TextAlignment: () => TextAlignment,
|
55
|
-
ThumbnailsAlignment: () => ThumbnailsAlignment,
|
56
|
-
Type: () => Type,
|
57
|
-
VerticalAlignment: () => VerticalAlignment,
|
58
|
-
ViewMode: () => ViewMode,
|
59
|
-
ViewRole: () => ViewRole,
|
60
|
-
VoteRole: () => VoteRole,
|
61
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
62
|
-
Width: () => Width,
|
63
|
-
WidthType: () => WidthType,
|
64
|
-
getPost: () => getPost4,
|
65
|
-
getPostBySlug: () => getPostBySlug4,
|
66
|
-
getPostMetrics: () => getPostMetrics4,
|
67
|
-
getTotalPosts: () => getTotalPosts4,
|
68
|
-
listPosts: () => listPosts4,
|
69
|
-
onPostCreated: () => onPostCreated2,
|
70
|
-
onPostDeleted: () => onPostDeleted2,
|
71
|
-
onPostLiked: () => onPostLiked2,
|
72
|
-
onPostUnliked: () => onPostUnliked2,
|
73
|
-
onPostUpdated: () => onPostUpdated2,
|
74
|
-
queryPostCountStats: () => queryPostCountStats4,
|
75
|
-
queryPosts: () => queryPosts4
|
76
|
-
});
|
77
|
-
module.exports = __toCommonJS(index_exports);
|
78
|
-
|
79
|
-
// src/blog-v3-post-posts.public.ts
|
80
|
-
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
81
|
-
var import_bytes2 = require("@wix/sdk-runtime/transformations/bytes");
|
82
|
-
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
83
|
-
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
84
|
-
var import_page_url2 = require("@wix/sdk-runtime/transformations/page-url");
|
85
|
-
var import_timestamp3 = require("@wix/sdk-runtime/transformations/timestamp");
|
86
|
-
var import_transform_paths3 = require("@wix/sdk-runtime/transformations/transform-paths");
|
87
|
-
var import_video2 = require("@wix/sdk-runtime/transformations/video");
|
88
|
-
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
89
|
-
var import_sdk_types = require("@wix/sdk-types");
|
90
|
-
|
91
|
-
// src/blog-v3-post-posts.universal.ts
|
92
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
93
|
-
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
94
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
95
|
-
|
96
|
-
// src/blog-v3-post-posts.http.ts
|
97
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
98
|
-
var import_float = require("@wix/sdk-runtime/transformations/float");
|
99
|
-
var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
|
100
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
101
|
-
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
102
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
103
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
104
|
-
function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
|
105
|
-
const domainToMappings = {
|
106
|
-
"api._api_base_domain_": [
|
107
|
-
{
|
108
|
-
srcPath: "/communities-blog-node-api",
|
109
|
-
destPath: ""
|
110
|
-
}
|
111
|
-
],
|
112
|
-
"www._base_domain_": [
|
113
|
-
{
|
114
|
-
srcPath: "/_api/communities-blog-node-api",
|
115
|
-
destPath: ""
|
116
|
-
},
|
117
|
-
{
|
118
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
119
|
-
destPath: "/v3/posts"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
123
|
-
destPath: "/v2/stats"
|
124
|
-
}
|
125
|
-
],
|
126
|
-
"apps._base_domain_": [
|
127
|
-
{
|
128
|
-
srcPath: "/_api/communities-blog-node-api",
|
129
|
-
destPath: ""
|
130
|
-
},
|
131
|
-
{
|
132
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
133
|
-
destPath: "/v3/posts"
|
134
|
-
},
|
135
|
-
{
|
136
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
137
|
-
destPath: "/v2/stats"
|
138
|
-
}
|
139
|
-
],
|
140
|
-
_: [
|
141
|
-
{
|
142
|
-
srcPath: "/_api/communities-blog-node-api",
|
143
|
-
destPath: ""
|
144
|
-
},
|
145
|
-
{
|
146
|
-
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
147
|
-
destPath: "/_api/blogs/this"
|
148
|
-
},
|
149
|
-
{
|
150
|
-
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
151
|
-
destPath: "/_api/categories"
|
152
|
-
},
|
153
|
-
{
|
154
|
-
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
155
|
-
destPath: "/_api/site-properties"
|
156
|
-
},
|
157
|
-
{
|
158
|
-
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
159
|
-
destPath: "/_api/posts/content"
|
160
|
-
},
|
161
|
-
{
|
162
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
163
|
-
destPath: "/v3/posts"
|
164
|
-
},
|
165
|
-
{
|
166
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
167
|
-
destPath: "/v2/stats"
|
168
|
-
}
|
169
|
-
],
|
170
|
-
"editor._base_domain_": [
|
171
|
-
{
|
172
|
-
srcPath: "/_api/communities-blog-node-api",
|
173
|
-
destPath: ""
|
174
|
-
}
|
175
|
-
],
|
176
|
-
"blocks._base_domain_": [
|
177
|
-
{
|
178
|
-
srcPath: "/_api/communities-blog-node-api",
|
179
|
-
destPath: ""
|
180
|
-
}
|
181
|
-
],
|
182
|
-
"create.editorx": [
|
183
|
-
{
|
184
|
-
srcPath: "/_api/communities-blog-node-api",
|
185
|
-
destPath: ""
|
186
|
-
}
|
187
|
-
],
|
188
|
-
"*.dev.wix-code.com": [
|
189
|
-
{
|
190
|
-
srcPath: "/_api/communities-blog-node-api",
|
191
|
-
destPath: ""
|
192
|
-
}
|
193
|
-
],
|
194
|
-
"*.pub.wix-code.com": [
|
195
|
-
{
|
196
|
-
srcPath: "/_api/communities-blog-node-api",
|
197
|
-
destPath: ""
|
198
|
-
}
|
199
|
-
],
|
200
|
-
"bo._base_domain_": [
|
201
|
-
{
|
202
|
-
srcPath: "/_api/communities-blog-node-api",
|
203
|
-
destPath: ""
|
204
|
-
},
|
205
|
-
{
|
206
|
-
srcPath: "/_api/communities-blog-node-api",
|
207
|
-
destPath: ""
|
208
|
-
}
|
209
|
-
],
|
210
|
-
"wixbo.ai": [
|
211
|
-
{
|
212
|
-
srcPath: "/_api/communities-blog-node-api",
|
213
|
-
destPath: ""
|
214
|
-
},
|
215
|
-
{
|
216
|
-
srcPath: "/_api/communities-blog-node-api",
|
217
|
-
destPath: ""
|
218
|
-
}
|
219
|
-
],
|
220
|
-
"wix-bo.com": [
|
221
|
-
{
|
222
|
-
srcPath: "/_api/communities-blog-node-api",
|
223
|
-
destPath: ""
|
224
|
-
},
|
225
|
-
{
|
226
|
-
srcPath: "/_api/communities-blog-node-api",
|
227
|
-
destPath: ""
|
228
|
-
}
|
229
|
-
],
|
230
|
-
"manage._base_domain_": [
|
231
|
-
{
|
232
|
-
srcPath: "/_api/communities-blog-node-api",
|
233
|
-
destPath: ""
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"social-blog._base_domain_": [
|
237
|
-
{
|
238
|
-
srcPath: "/_api/communities-blog-node-api",
|
239
|
-
destPath: ""
|
240
|
-
}
|
241
|
-
],
|
242
|
-
"editor.wixapps.net": [
|
243
|
-
{
|
244
|
-
srcPath: "/_api/communities-blog-node-api",
|
245
|
-
destPath: ""
|
246
|
-
}
|
247
|
-
],
|
248
|
-
"dev._base_domain_": [
|
249
|
-
{
|
250
|
-
srcPath: "/_api/communities-blog-node-api",
|
251
|
-
destPath: ""
|
252
|
-
}
|
253
|
-
],
|
254
|
-
"www.wixapis.com": [
|
255
|
-
{
|
256
|
-
srcPath: "/blog/v2",
|
257
|
-
destPath: "/v2"
|
258
|
-
},
|
259
|
-
{
|
260
|
-
srcPath: "/blog/v3",
|
261
|
-
destPath: "/v3"
|
262
|
-
},
|
263
|
-
{
|
264
|
-
srcPath: "/v2/stats",
|
265
|
-
destPath: "/v2/stats"
|
266
|
-
},
|
267
|
-
{
|
268
|
-
srcPath: "/v3/posts",
|
269
|
-
destPath: "/v3/posts"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
srcPath: "/blog/v3/posts",
|
273
|
-
destPath: "/v3/posts"
|
274
|
-
},
|
275
|
-
{
|
276
|
-
srcPath: "/blog/v2/stats",
|
277
|
-
destPath: "/v2/stats"
|
278
|
-
},
|
279
|
-
{
|
280
|
-
srcPath: "/_api/v3/posts",
|
281
|
-
destPath: "/v3/posts"
|
282
|
-
}
|
283
|
-
]
|
284
|
-
};
|
285
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
286
|
-
}
|
287
|
-
function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
|
288
|
-
const domainToMappings = {
|
289
|
-
"api._api_base_domain_": [
|
290
|
-
{
|
291
|
-
srcPath: "/communities-blog-node-api",
|
292
|
-
destPath: ""
|
293
|
-
}
|
294
|
-
],
|
295
|
-
"www._base_domain_": [
|
296
|
-
{
|
297
|
-
srcPath: "/_api/communities-blog-node-api",
|
298
|
-
destPath: ""
|
299
|
-
},
|
300
|
-
{
|
301
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
302
|
-
destPath: "/v3/posts"
|
303
|
-
},
|
304
|
-
{
|
305
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
306
|
-
destPath: "/v2/stats"
|
307
|
-
}
|
308
|
-
],
|
309
|
-
"apps._base_domain_": [
|
310
|
-
{
|
311
|
-
srcPath: "/_api/communities-blog-node-api",
|
312
|
-
destPath: ""
|
313
|
-
},
|
314
|
-
{
|
315
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
316
|
-
destPath: "/v3/posts"
|
317
|
-
},
|
318
|
-
{
|
319
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
320
|
-
destPath: "/v2/stats"
|
321
|
-
}
|
322
|
-
],
|
323
|
-
_: [
|
324
|
-
{
|
325
|
-
srcPath: "/_api/communities-blog-node-api",
|
326
|
-
destPath: ""
|
327
|
-
},
|
328
|
-
{
|
329
|
-
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
330
|
-
destPath: "/_api/blogs/this"
|
331
|
-
},
|
332
|
-
{
|
333
|
-
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
334
|
-
destPath: "/_api/categories"
|
335
|
-
},
|
336
|
-
{
|
337
|
-
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
338
|
-
destPath: "/_api/site-properties"
|
339
|
-
},
|
340
|
-
{
|
341
|
-
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
342
|
-
destPath: "/_api/posts/content"
|
343
|
-
},
|
344
|
-
{
|
345
|
-
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
346
|
-
destPath: "/v3/posts"
|
347
|
-
},
|
348
|
-
{
|
349
|
-
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
350
|
-
destPath: "/v2/stats"
|
351
|
-
}
|
352
|
-
],
|
353
|
-
"editor._base_domain_": [
|
354
|
-
{
|
355
|
-
srcPath: "/_api/communities-blog-node-api",
|
356
|
-
destPath: ""
|
357
|
-
}
|
358
|
-
],
|
359
|
-
"blocks._base_domain_": [
|
360
|
-
{
|
361
|
-
srcPath: "/_api/communities-blog-node-api",
|
362
|
-
destPath: ""
|
363
|
-
}
|
364
|
-
],
|
365
|
-
"create.editorx": [
|
366
|
-
{
|
367
|
-
srcPath: "/_api/communities-blog-node-api",
|
368
|
-
destPath: ""
|
369
|
-
}
|
370
|
-
],
|
371
|
-
"*.dev.wix-code.com": [
|
372
|
-
{
|
373
|
-
srcPath: "/_api/communities-blog-node-api",
|
374
|
-
destPath: ""
|
375
|
-
}
|
376
|
-
],
|
377
|
-
"*.pub.wix-code.com": [
|
378
|
-
{
|
379
|
-
srcPath: "/_api/communities-blog-node-api",
|
380
|
-
destPath: ""
|
381
|
-
}
|
382
|
-
],
|
383
|
-
"bo._base_domain_": [
|
384
|
-
{
|
385
|
-
srcPath: "/_api/communities-blog-node-api",
|
386
|
-
destPath: ""
|
387
|
-
},
|
388
|
-
{
|
389
|
-
srcPath: "/_api/communities-blog-node-api",
|
390
|
-
destPath: ""
|
391
|
-
}
|
392
|
-
],
|
393
|
-
"wixbo.ai": [
|
394
|
-
{
|
395
|
-
srcPath: "/_api/communities-blog-node-api",
|
396
|
-
destPath: ""
|
397
|
-
},
|
398
|
-
{
|
399
|
-
srcPath: "/_api/communities-blog-node-api",
|
400
|
-
destPath: ""
|
401
|
-
}
|
402
|
-
],
|
403
|
-
"wix-bo.com": [
|
404
|
-
{
|
405
|
-
srcPath: "/_api/communities-blog-node-api",
|
406
|
-
destPath: ""
|
407
|
-
},
|
408
|
-
{
|
409
|
-
srcPath: "/_api/communities-blog-node-api",
|
410
|
-
destPath: ""
|
411
|
-
}
|
412
|
-
],
|
413
|
-
"manage._base_domain_": [
|
414
|
-
{
|
415
|
-
srcPath: "/_api/communities-blog-node-api",
|
416
|
-
destPath: ""
|
417
|
-
}
|
418
|
-
],
|
419
|
-
"social-blog._base_domain_": [
|
420
|
-
{
|
421
|
-
srcPath: "/_api/communities-blog-node-api",
|
422
|
-
destPath: ""
|
423
|
-
}
|
424
|
-
],
|
425
|
-
"editor.wixapps.net": [
|
426
|
-
{
|
427
|
-
srcPath: "/_api/communities-blog-node-api",
|
428
|
-
destPath: ""
|
429
|
-
}
|
430
|
-
],
|
431
|
-
"dev._base_domain_": [
|
432
|
-
{
|
433
|
-
srcPath: "/_api/communities-blog-node-api",
|
434
|
-
destPath: ""
|
435
|
-
}
|
436
|
-
],
|
437
|
-
"www.wixapis.com": [
|
438
|
-
{
|
439
|
-
srcPath: "/blog/v2",
|
440
|
-
destPath: "/v2"
|
441
|
-
},
|
442
|
-
{
|
443
|
-
srcPath: "/blog/v3",
|
444
|
-
destPath: "/v3"
|
445
|
-
},
|
446
|
-
{
|
447
|
-
srcPath: "/v2/stats",
|
448
|
-
destPath: "/v2/stats"
|
449
|
-
},
|
450
|
-
{
|
451
|
-
srcPath: "/v3/posts",
|
452
|
-
destPath: "/v3/posts"
|
453
|
-
},
|
454
|
-
{
|
455
|
-
srcPath: "/blog/v3/posts",
|
456
|
-
destPath: "/v3/posts"
|
457
|
-
},
|
458
|
-
{
|
459
|
-
srcPath: "/blog/v2/stats",
|
460
|
-
destPath: "/v2/stats"
|
461
|
-
},
|
462
|
-
{
|
463
|
-
srcPath: "/_api/v3/posts",
|
464
|
-
destPath: "/v3/posts"
|
465
|
-
}
|
466
|
-
]
|
467
|
-
};
|
468
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
469
|
-
}
|
470
|
-
var PACKAGE_NAME = "@wix/auto_sdk_blog_posts";
|
471
|
-
function queryPostCountStats(payload) {
|
472
|
-
function __queryPostCountStats({ host }) {
|
473
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
474
|
-
{
|
475
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
476
|
-
paths: [{ path: "rangeStart" }, { path: "rangeEnd" }]
|
477
|
-
}
|
478
|
-
]);
|
479
|
-
const metadata = {
|
480
|
-
entityFqdn: "wix.blog.v3.post",
|
481
|
-
method: "GET",
|
482
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
|
483
|
-
packageName: PACKAGE_NAME,
|
484
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
|
485
|
-
protoPath: "/v2/stats/post/count",
|
486
|
-
data: serializedData,
|
487
|
-
host
|
488
|
-
}),
|
489
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
490
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
491
|
-
{
|
492
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
493
|
-
paths: [{ path: "stats.periodStart" }]
|
494
|
-
}
|
495
|
-
])
|
496
|
-
};
|
497
|
-
return metadata;
|
498
|
-
}
|
499
|
-
return __queryPostCountStats;
|
500
|
-
}
|
501
|
-
function getTotalPosts(payload) {
|
502
|
-
function __getTotalPosts({ host }) {
|
503
|
-
const metadata = {
|
504
|
-
entityFqdn: "wix.blog.v3.post",
|
505
|
-
method: "GET",
|
506
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
|
507
|
-
packageName: PACKAGE_NAME,
|
508
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
|
509
|
-
protoPath: "/v2/stats/posts/total",
|
510
|
-
data: payload,
|
511
|
-
host
|
512
|
-
}),
|
513
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
514
|
-
};
|
515
|
-
return metadata;
|
516
|
-
}
|
517
|
-
return __getTotalPosts;
|
518
|
-
}
|
519
|
-
function getPost(payload) {
|
520
|
-
function __getPost({ host }) {
|
521
|
-
const metadata = {
|
522
|
-
entityFqdn: "wix.blog.v3.post",
|
523
|
-
method: "GET",
|
524
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
|
525
|
-
packageName: PACKAGE_NAME,
|
526
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
527
|
-
protoPath: "/v3/posts/{postId}",
|
528
|
-
data: payload,
|
529
|
-
host
|
530
|
-
}),
|
531
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
532
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
533
|
-
{
|
534
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
535
|
-
paths: [
|
536
|
-
{ path: "post.firstPublishedDate" },
|
537
|
-
{ path: "post.lastPublishedDate" },
|
538
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
539
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
540
|
-
{ path: "post.heroImage.urlExpirationDate" },
|
541
|
-
{ path: "post.richContent.metadata.createdTimestamp" },
|
542
|
-
{ path: "post.richContent.metadata.updatedTimestamp" },
|
543
|
-
{ path: "post.moderationDetails.submittedDate" },
|
544
|
-
{ path: "post.moderationDetails.moderationDate" },
|
545
|
-
{ path: "post.media.wixMedia.image.urlExpirationDate" },
|
546
|
-
{ path: "post.media.wixMedia.videoV2.urlExpirationDate" },
|
547
|
-
{
|
548
|
-
path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
549
|
-
},
|
550
|
-
{
|
551
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
552
|
-
},
|
553
|
-
{ path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
|
554
|
-
]
|
555
|
-
},
|
556
|
-
{
|
557
|
-
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
558
|
-
paths: [{ path: "post.richContentCompressed" }]
|
559
|
-
},
|
560
|
-
{
|
561
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
562
|
-
paths: [
|
563
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
564
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
565
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
566
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
567
|
-
{ path: "post.heroImage.focalPoint.x" },
|
568
|
-
{ path: "post.heroImage.focalPoint.y" },
|
569
|
-
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
570
|
-
{ path: "post.media.wixMedia.image.focalPoint.y" },
|
571
|
-
{
|
572
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
576
|
-
},
|
577
|
-
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
|
578
|
-
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
|
579
|
-
{ path: "post.metrics.averageRating" },
|
580
|
-
{
|
581
|
-
path: "post.richContent.nodes.galleryData.items.image.media.duration"
|
582
|
-
},
|
583
|
-
{
|
584
|
-
path: "post.richContent.nodes.galleryData.items.video.media.duration"
|
585
|
-
},
|
586
|
-
{
|
587
|
-
path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
588
|
-
},
|
589
|
-
{ path: "post.richContent.nodes.galleryData.options.item.ratio" },
|
590
|
-
{ path: "post.richContent.nodes.imageData.image.duration" },
|
591
|
-
{ path: "post.richContent.nodes.mapData.mapSettings.lat" },
|
592
|
-
{ path: "post.richContent.nodes.mapData.mapSettings.lng" },
|
593
|
-
{ path: "post.richContent.nodes.pollData.poll.image.duration" },
|
594
|
-
{
|
595
|
-
path: "post.richContent.nodes.pollData.poll.options.image.duration"
|
596
|
-
},
|
597
|
-
{
|
598
|
-
path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
|
599
|
-
},
|
600
|
-
{ path: "post.richContent.nodes.appEmbedData.image.duration" },
|
601
|
-
{ path: "post.richContent.nodes.videoData.video.duration" },
|
602
|
-
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
603
|
-
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
604
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
605
|
-
]
|
606
|
-
}
|
607
|
-
])
|
608
|
-
};
|
609
|
-
return metadata;
|
610
|
-
}
|
611
|
-
return __getPost;
|
612
|
-
}
|
613
|
-
function getPostBySlug(payload) {
|
614
|
-
function __getPostBySlug({ host }) {
|
615
|
-
const metadata = {
|
616
|
-
entityFqdn: "wix.blog.v3.post",
|
617
|
-
method: "GET",
|
618
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
|
619
|
-
packageName: PACKAGE_NAME,
|
620
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
621
|
-
protoPath: "/v3/posts/slugs/{slug}",
|
622
|
-
data: payload,
|
623
|
-
host
|
624
|
-
}),
|
625
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
626
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
627
|
-
{
|
628
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
629
|
-
paths: [
|
630
|
-
{ path: "post.firstPublishedDate" },
|
631
|
-
{ path: "post.lastPublishedDate" },
|
632
|
-
{ path: "post.coverMedia.image.urlExpirationDate" },
|
633
|
-
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
634
|
-
{ path: "post.heroImage.urlExpirationDate" },
|
635
|
-
{ path: "post.richContent.metadata.createdTimestamp" },
|
636
|
-
{ path: "post.richContent.metadata.updatedTimestamp" },
|
637
|
-
{ path: "post.moderationDetails.submittedDate" },
|
638
|
-
{ path: "post.moderationDetails.moderationDate" },
|
639
|
-
{ path: "post.media.wixMedia.image.urlExpirationDate" },
|
640
|
-
{ path: "post.media.wixMedia.videoV2.urlExpirationDate" },
|
641
|
-
{
|
642
|
-
path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
643
|
-
},
|
644
|
-
{
|
645
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
646
|
-
},
|
647
|
-
{ path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
|
648
|
-
]
|
649
|
-
},
|
650
|
-
{
|
651
|
-
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
652
|
-
paths: [{ path: "post.richContentCompressed" }]
|
653
|
-
},
|
654
|
-
{
|
655
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
656
|
-
paths: [
|
657
|
-
{ path: "post.coverMedia.image.focalPoint.x" },
|
658
|
-
{ path: "post.coverMedia.image.focalPoint.y" },
|
659
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
660
|
-
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
661
|
-
{ path: "post.heroImage.focalPoint.x" },
|
662
|
-
{ path: "post.heroImage.focalPoint.y" },
|
663
|
-
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
664
|
-
{ path: "post.media.wixMedia.image.focalPoint.y" },
|
665
|
-
{
|
666
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
667
|
-
},
|
668
|
-
{
|
669
|
-
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
670
|
-
},
|
671
|
-
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
|
672
|
-
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
|
673
|
-
{ path: "post.metrics.averageRating" },
|
674
|
-
{
|
675
|
-
path: "post.richContent.nodes.galleryData.items.image.media.duration"
|
676
|
-
},
|
677
|
-
{
|
678
|
-
path: "post.richContent.nodes.galleryData.items.video.media.duration"
|
679
|
-
},
|
680
|
-
{
|
681
|
-
path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
682
|
-
},
|
683
|
-
{ path: "post.richContent.nodes.galleryData.options.item.ratio" },
|
684
|
-
{ path: "post.richContent.nodes.imageData.image.duration" },
|
685
|
-
{ path: "post.richContent.nodes.mapData.mapSettings.lat" },
|
686
|
-
{ path: "post.richContent.nodes.mapData.mapSettings.lng" },
|
687
|
-
{ path: "post.richContent.nodes.pollData.poll.image.duration" },
|
688
|
-
{
|
689
|
-
path: "post.richContent.nodes.pollData.poll.options.image.duration"
|
690
|
-
},
|
691
|
-
{
|
692
|
-
path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
|
693
|
-
},
|
694
|
-
{ path: "post.richContent.nodes.appEmbedData.image.duration" },
|
695
|
-
{ path: "post.richContent.nodes.videoData.video.duration" },
|
696
|
-
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
697
|
-
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
698
|
-
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
699
|
-
]
|
700
|
-
}
|
701
|
-
])
|
702
|
-
};
|
703
|
-
return metadata;
|
704
|
-
}
|
705
|
-
return __getPostBySlug;
|
706
|
-
}
|
707
|
-
function listPosts(payload) {
|
708
|
-
function __listPosts({ host }) {
|
709
|
-
const metadata = {
|
710
|
-
entityFqdn: "wix.blog.v3.post",
|
711
|
-
method: "GET",
|
712
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
|
713
|
-
packageName: PACKAGE_NAME,
|
714
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
715
|
-
protoPath: "/v3/posts",
|
716
|
-
data: payload,
|
717
|
-
host
|
718
|
-
}),
|
719
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
720
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
721
|
-
{
|
722
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
723
|
-
paths: [
|
724
|
-
{ path: "posts.firstPublishedDate" },
|
725
|
-
{ path: "posts.lastPublishedDate" },
|
726
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
727
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
728
|
-
{ path: "posts.heroImage.urlExpirationDate" },
|
729
|
-
{ path: "posts.richContent.metadata.createdTimestamp" },
|
730
|
-
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
731
|
-
{ path: "posts.moderationDetails.submittedDate" },
|
732
|
-
{ path: "posts.moderationDetails.moderationDate" },
|
733
|
-
{ path: "posts.media.wixMedia.image.urlExpirationDate" },
|
734
|
-
{ path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
|
735
|
-
{
|
736
|
-
path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
737
|
-
},
|
738
|
-
{
|
739
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
740
|
-
},
|
741
|
-
{
|
742
|
-
path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
|
743
|
-
}
|
744
|
-
]
|
745
|
-
},
|
746
|
-
{
|
747
|
-
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
748
|
-
paths: [{ path: "posts.richContentCompressed" }]
|
749
|
-
},
|
750
|
-
{
|
751
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
752
|
-
paths: [
|
753
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
754
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
755
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
756
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
757
|
-
{ path: "posts.heroImage.focalPoint.x" },
|
758
|
-
{ path: "posts.heroImage.focalPoint.y" },
|
759
|
-
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
760
|
-
{ path: "posts.media.wixMedia.image.focalPoint.y" },
|
761
|
-
{
|
762
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
763
|
-
},
|
764
|
-
{
|
765
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
766
|
-
},
|
767
|
-
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
|
768
|
-
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
|
769
|
-
{ path: "posts.metrics.averageRating" },
|
770
|
-
{
|
771
|
-
path: "posts.richContent.nodes.galleryData.items.image.media.duration"
|
772
|
-
},
|
773
|
-
{
|
774
|
-
path: "posts.richContent.nodes.galleryData.items.video.media.duration"
|
775
|
-
},
|
776
|
-
{
|
777
|
-
path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
778
|
-
},
|
779
|
-
{
|
780
|
-
path: "posts.richContent.nodes.galleryData.options.item.ratio"
|
781
|
-
},
|
782
|
-
{ path: "posts.richContent.nodes.imageData.image.duration" },
|
783
|
-
{ path: "posts.richContent.nodes.mapData.mapSettings.lat" },
|
784
|
-
{ path: "posts.richContent.nodes.mapData.mapSettings.lng" },
|
785
|
-
{ path: "posts.richContent.nodes.pollData.poll.image.duration" },
|
786
|
-
{
|
787
|
-
path: "posts.richContent.nodes.pollData.poll.options.image.duration"
|
788
|
-
},
|
789
|
-
{
|
790
|
-
path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
|
791
|
-
},
|
792
|
-
{ path: "posts.richContent.nodes.appEmbedData.image.duration" },
|
793
|
-
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
794
|
-
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
795
|
-
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
796
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
797
|
-
]
|
798
|
-
}
|
799
|
-
])
|
800
|
-
};
|
801
|
-
return metadata;
|
802
|
-
}
|
803
|
-
return __listPosts;
|
804
|
-
}
|
805
|
-
function queryPosts(payload) {
|
806
|
-
function __queryPosts({ host }) {
|
807
|
-
const metadata = {
|
808
|
-
entityFqdn: "wix.blog.v3.post",
|
809
|
-
method: "POST",
|
810
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
|
811
|
-
packageName: PACKAGE_NAME,
|
812
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
813
|
-
protoPath: "/v3/posts/query",
|
814
|
-
data: payload,
|
815
|
-
host
|
816
|
-
}),
|
817
|
-
data: payload,
|
818
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
819
|
-
{
|
820
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
821
|
-
paths: [
|
822
|
-
{ path: "posts.firstPublishedDate" },
|
823
|
-
{ path: "posts.lastPublishedDate" },
|
824
|
-
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
825
|
-
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
826
|
-
{ path: "posts.heroImage.urlExpirationDate" },
|
827
|
-
{ path: "posts.richContent.metadata.createdTimestamp" },
|
828
|
-
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
829
|
-
{ path: "posts.moderationDetails.submittedDate" },
|
830
|
-
{ path: "posts.moderationDetails.moderationDate" },
|
831
|
-
{ path: "posts.media.wixMedia.image.urlExpirationDate" },
|
832
|
-
{ path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
|
833
|
-
{
|
834
|
-
path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
835
|
-
},
|
836
|
-
{
|
837
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
838
|
-
},
|
839
|
-
{
|
840
|
-
path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
|
841
|
-
}
|
842
|
-
]
|
843
|
-
},
|
844
|
-
{
|
845
|
-
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
846
|
-
paths: [{ path: "posts.richContentCompressed" }]
|
847
|
-
},
|
848
|
-
{
|
849
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
850
|
-
paths: [
|
851
|
-
{ path: "posts.coverMedia.image.focalPoint.x" },
|
852
|
-
{ path: "posts.coverMedia.image.focalPoint.y" },
|
853
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
854
|
-
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
855
|
-
{ path: "posts.heroImage.focalPoint.x" },
|
856
|
-
{ path: "posts.heroImage.focalPoint.y" },
|
857
|
-
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
858
|
-
{ path: "posts.media.wixMedia.image.focalPoint.y" },
|
859
|
-
{
|
860
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
861
|
-
},
|
862
|
-
{
|
863
|
-
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
864
|
-
},
|
865
|
-
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
|
866
|
-
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
|
867
|
-
{ path: "posts.metrics.averageRating" },
|
868
|
-
{
|
869
|
-
path: "posts.richContent.nodes.galleryData.items.image.media.duration"
|
870
|
-
},
|
871
|
-
{
|
872
|
-
path: "posts.richContent.nodes.galleryData.items.video.media.duration"
|
873
|
-
},
|
874
|
-
{
|
875
|
-
path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
876
|
-
},
|
877
|
-
{
|
878
|
-
path: "posts.richContent.nodes.galleryData.options.item.ratio"
|
879
|
-
},
|
880
|
-
{ path: "posts.richContent.nodes.imageData.image.duration" },
|
881
|
-
{ path: "posts.richContent.nodes.mapData.mapSettings.lat" },
|
882
|
-
{ path: "posts.richContent.nodes.mapData.mapSettings.lng" },
|
883
|
-
{ path: "posts.richContent.nodes.pollData.poll.image.duration" },
|
884
|
-
{
|
885
|
-
path: "posts.richContent.nodes.pollData.poll.options.image.duration"
|
886
|
-
},
|
887
|
-
{
|
888
|
-
path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
|
889
|
-
},
|
890
|
-
{ path: "posts.richContent.nodes.appEmbedData.image.duration" },
|
891
|
-
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
892
|
-
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
893
|
-
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
894
|
-
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
895
|
-
]
|
896
|
-
}
|
897
|
-
])
|
898
|
-
};
|
899
|
-
return metadata;
|
900
|
-
}
|
901
|
-
return __queryPosts;
|
902
|
-
}
|
903
|
-
function getPostMetrics(payload) {
|
904
|
-
function __getPostMetrics({ host }) {
|
905
|
-
const metadata = {
|
906
|
-
entityFqdn: "wix.blog.v3.post",
|
907
|
-
method: "GET",
|
908
|
-
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
|
909
|
-
packageName: PACKAGE_NAME,
|
910
|
-
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
911
|
-
protoPath: "/v3/posts/{postId}/metrics",
|
912
|
-
data: payload,
|
913
|
-
host
|
914
|
-
}),
|
915
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
916
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
917
|
-
{
|
918
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
919
|
-
paths: [{ path: "metrics.averageRating" }]
|
920
|
-
}
|
921
|
-
])
|
922
|
-
};
|
923
|
-
return metadata;
|
924
|
-
}
|
925
|
-
return __getPostMetrics;
|
926
|
-
}
|
927
|
-
|
928
|
-
// src/blog-v3-post-posts.universal.ts
|
929
|
-
var import_image = require("@wix/sdk-runtime/transformations/image");
|
930
|
-
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
931
|
-
var import_video = require("@wix/sdk-runtime/transformations/video");
|
932
|
-
var import_page_url = require("@wix/sdk-runtime/transformations/page-url");
|
933
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
934
|
-
var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
935
|
-
NodeType2["PARAGRAPH"] = "PARAGRAPH";
|
936
|
-
NodeType2["TEXT"] = "TEXT";
|
937
|
-
NodeType2["HEADING"] = "HEADING";
|
938
|
-
NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
|
939
|
-
NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
|
940
|
-
NodeType2["LIST_ITEM"] = "LIST_ITEM";
|
941
|
-
NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
|
942
|
-
NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
|
943
|
-
NodeType2["VIDEO"] = "VIDEO";
|
944
|
-
NodeType2["DIVIDER"] = "DIVIDER";
|
945
|
-
NodeType2["FILE"] = "FILE";
|
946
|
-
NodeType2["GALLERY"] = "GALLERY";
|
947
|
-
NodeType2["GIF"] = "GIF";
|
948
|
-
NodeType2["HTML"] = "HTML";
|
949
|
-
NodeType2["IMAGE"] = "IMAGE";
|
950
|
-
NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
|
951
|
-
NodeType2["MAP"] = "MAP";
|
952
|
-
NodeType2["POLL"] = "POLL";
|
953
|
-
NodeType2["APP_EMBED"] = "APP_EMBED";
|
954
|
-
NodeType2["BUTTON"] = "BUTTON";
|
955
|
-
NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
956
|
-
NodeType2["TABLE"] = "TABLE";
|
957
|
-
NodeType2["EMBED"] = "EMBED";
|
958
|
-
NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
959
|
-
NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
960
|
-
NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
961
|
-
NodeType2["TABLE_CELL"] = "TABLE_CELL";
|
962
|
-
NodeType2["TABLE_ROW"] = "TABLE_ROW";
|
963
|
-
NodeType2["EXTERNAL"] = "EXTERNAL";
|
964
|
-
NodeType2["AUDIO"] = "AUDIO";
|
965
|
-
NodeType2["CAPTION"] = "CAPTION";
|
966
|
-
NodeType2["LAYOUT"] = "LAYOUT";
|
967
|
-
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
968
|
-
return NodeType2;
|
969
|
-
})(NodeType || {});
|
970
|
-
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
971
|
-
WidthType2["CONTENT"] = "CONTENT";
|
972
|
-
WidthType2["SMALL"] = "SMALL";
|
973
|
-
WidthType2["ORIGINAL"] = "ORIGINAL";
|
974
|
-
WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
|
975
|
-
return WidthType2;
|
976
|
-
})(WidthType || {});
|
977
|
-
var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
|
978
|
-
PluginContainerDataAlignment2["CENTER"] = "CENTER";
|
979
|
-
PluginContainerDataAlignment2["LEFT"] = "LEFT";
|
980
|
-
PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
|
981
|
-
return PluginContainerDataAlignment2;
|
982
|
-
})(PluginContainerDataAlignment || {});
|
983
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
984
|
-
Type2["LINK"] = "LINK";
|
985
|
-
Type2["ACTION"] = "ACTION";
|
986
|
-
return Type2;
|
987
|
-
})(Type || {});
|
988
|
-
var Target = /* @__PURE__ */ ((Target2) => {
|
989
|
-
Target2["SELF"] = "SELF";
|
990
|
-
Target2["BLANK"] = "BLANK";
|
991
|
-
Target2["PARENT"] = "PARENT";
|
992
|
-
Target2["TOP"] = "TOP";
|
993
|
-
return Target2;
|
994
|
-
})(Target || {});
|
995
|
-
var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
996
|
-
TextAlignment2["AUTO"] = "AUTO";
|
997
|
-
TextAlignment2["LEFT"] = "LEFT";
|
998
|
-
TextAlignment2["RIGHT"] = "RIGHT";
|
999
|
-
TextAlignment2["CENTER"] = "CENTER";
|
1000
|
-
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
1001
|
-
return TextAlignment2;
|
1002
|
-
})(TextAlignment || {});
|
1003
|
-
var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
|
1004
|
-
LineStyle2["SINGLE"] = "SINGLE";
|
1005
|
-
LineStyle2["DOUBLE"] = "DOUBLE";
|
1006
|
-
LineStyle2["DASHED"] = "DASHED";
|
1007
|
-
LineStyle2["DOTTED"] = "DOTTED";
|
1008
|
-
return LineStyle2;
|
1009
|
-
})(LineStyle || {});
|
1010
|
-
var Width = /* @__PURE__ */ ((Width2) => {
|
1011
|
-
Width2["LARGE"] = "LARGE";
|
1012
|
-
Width2["MEDIUM"] = "MEDIUM";
|
1013
|
-
Width2["SMALL"] = "SMALL";
|
1014
|
-
return Width2;
|
1015
|
-
})(Width || {});
|
1016
|
-
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
1017
|
-
Alignment2["CENTER"] = "CENTER";
|
1018
|
-
Alignment2["LEFT"] = "LEFT";
|
1019
|
-
Alignment2["RIGHT"] = "RIGHT";
|
1020
|
-
return Alignment2;
|
1021
|
-
})(Alignment || {});
|
1022
|
-
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
1023
|
-
ViewMode2["NONE"] = "NONE";
|
1024
|
-
ViewMode2["FULL"] = "FULL";
|
1025
|
-
ViewMode2["MINI"] = "MINI";
|
1026
|
-
return ViewMode2;
|
1027
|
-
})(ViewMode || {});
|
1028
|
-
var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
|
1029
|
-
LayoutType2["COLLAGE"] = "COLLAGE";
|
1030
|
-
LayoutType2["MASONRY"] = "MASONRY";
|
1031
|
-
LayoutType2["GRID"] = "GRID";
|
1032
|
-
LayoutType2["THUMBNAIL"] = "THUMBNAIL";
|
1033
|
-
LayoutType2["SLIDER"] = "SLIDER";
|
1034
|
-
LayoutType2["SLIDESHOW"] = "SLIDESHOW";
|
1035
|
-
LayoutType2["PANORAMA"] = "PANORAMA";
|
1036
|
-
LayoutType2["COLUMN"] = "COLUMN";
|
1037
|
-
LayoutType2["MAGIC"] = "MAGIC";
|
1038
|
-
LayoutType2["FULLSIZE"] = "FULLSIZE";
|
1039
|
-
return LayoutType2;
|
1040
|
-
})(LayoutType || {});
|
1041
|
-
var Orientation = /* @__PURE__ */ ((Orientation2) => {
|
1042
|
-
Orientation2["ROWS"] = "ROWS";
|
1043
|
-
Orientation2["COLUMNS"] = "COLUMNS";
|
1044
|
-
return Orientation2;
|
1045
|
-
})(Orientation || {});
|
1046
|
-
var Crop = /* @__PURE__ */ ((Crop2) => {
|
1047
|
-
Crop2["FILL"] = "FILL";
|
1048
|
-
Crop2["FIT"] = "FIT";
|
1049
|
-
return Crop2;
|
1050
|
-
})(Crop || {});
|
1051
|
-
var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
|
1052
|
-
ThumbnailsAlignment2["TOP"] = "TOP";
|
1053
|
-
ThumbnailsAlignment2["RIGHT"] = "RIGHT";
|
1054
|
-
ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
|
1055
|
-
ThumbnailsAlignment2["LEFT"] = "LEFT";
|
1056
|
-
ThumbnailsAlignment2["NONE"] = "NONE";
|
1057
|
-
return ThumbnailsAlignment2;
|
1058
|
-
})(ThumbnailsAlignment || {});
|
1059
|
-
var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
1060
|
-
GIFType2["GIF"] = "GIF";
|
1061
|
-
GIFType2["STICKER"] = "STICKER";
|
1062
|
-
return GIFType2;
|
1063
|
-
})(GIFType || {});
|
1064
|
-
var Source = /* @__PURE__ */ ((Source2) => {
|
1065
|
-
Source2["HTML"] = "HTML";
|
1066
|
-
Source2["ADSENSE"] = "ADSENSE";
|
1067
|
-
return Source2;
|
1068
|
-
})(Source || {});
|
1069
|
-
var Position = /* @__PURE__ */ ((Position2) => {
|
1070
|
-
Position2["START"] = "START";
|
1071
|
-
Position2["END"] = "END";
|
1072
|
-
Position2["TOP"] = "TOP";
|
1073
|
-
Position2["HIDDEN"] = "HIDDEN";
|
1074
|
-
return Position2;
|
1075
|
-
})(Position || {});
|
1076
|
-
var MapType = /* @__PURE__ */ ((MapType2) => {
|
1077
|
-
MapType2["ROADMAP"] = "ROADMAP";
|
1078
|
-
MapType2["SATELITE"] = "SATELITE";
|
1079
|
-
MapType2["HYBRID"] = "HYBRID";
|
1080
|
-
MapType2["TERRAIN"] = "TERRAIN";
|
1081
|
-
return MapType2;
|
1082
|
-
})(MapType || {});
|
1083
|
-
var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
|
1084
|
-
ViewRole2["CREATOR"] = "CREATOR";
|
1085
|
-
ViewRole2["VOTERS"] = "VOTERS";
|
1086
|
-
ViewRole2["EVERYONE"] = "EVERYONE";
|
1087
|
-
return ViewRole2;
|
1088
|
-
})(ViewRole || {});
|
1089
|
-
var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
|
1090
|
-
VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
|
1091
|
-
VoteRole2["ALL"] = "ALL";
|
1092
|
-
return VoteRole2;
|
1093
|
-
})(VoteRole || {});
|
1094
|
-
var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
|
1095
|
-
PollLayoutType2["LIST"] = "LIST";
|
1096
|
-
PollLayoutType2["GRID"] = "GRID";
|
1097
|
-
return PollLayoutType2;
|
1098
|
-
})(PollLayoutType || {});
|
1099
|
-
var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
|
1100
|
-
PollLayoutDirection2["LTR"] = "LTR";
|
1101
|
-
PollLayoutDirection2["RTL"] = "RTL";
|
1102
|
-
return PollLayoutDirection2;
|
1103
|
-
})(PollLayoutDirection || {});
|
1104
|
-
var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
|
1105
|
-
BackgroundType2["COLOR"] = "COLOR";
|
1106
|
-
BackgroundType2["IMAGE"] = "IMAGE";
|
1107
|
-
BackgroundType2["GRADIENT"] = "GRADIENT";
|
1108
|
-
return BackgroundType2;
|
1109
|
-
})(BackgroundType || {});
|
1110
|
-
var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
|
1111
|
-
DecorationType2["BOLD"] = "BOLD";
|
1112
|
-
DecorationType2["ITALIC"] = "ITALIC";
|
1113
|
-
DecorationType2["UNDERLINE"] = "UNDERLINE";
|
1114
|
-
DecorationType2["SPOILER"] = "SPOILER";
|
1115
|
-
DecorationType2["ANCHOR"] = "ANCHOR";
|
1116
|
-
DecorationType2["MENTION"] = "MENTION";
|
1117
|
-
DecorationType2["LINK"] = "LINK";
|
1118
|
-
DecorationType2["COLOR"] = "COLOR";
|
1119
|
-
DecorationType2["FONT_SIZE"] = "FONT_SIZE";
|
1120
|
-
DecorationType2["EXTERNAL"] = "EXTERNAL";
|
1121
|
-
return DecorationType2;
|
1122
|
-
})(DecorationType || {});
|
1123
|
-
var FontType = /* @__PURE__ */ ((FontType2) => {
|
1124
|
-
FontType2["PX"] = "PX";
|
1125
|
-
FontType2["EM"] = "EM";
|
1126
|
-
return FontType2;
|
1127
|
-
})(FontType || {});
|
1128
|
-
var AppType = /* @__PURE__ */ ((AppType2) => {
|
1129
|
-
AppType2["PRODUCT"] = "PRODUCT";
|
1130
|
-
AppType2["EVENT"] = "EVENT";
|
1131
|
-
AppType2["BOOKING"] = "BOOKING";
|
1132
|
-
return AppType2;
|
1133
|
-
})(AppType || {});
|
1134
|
-
var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
|
1135
|
-
InitialExpandedItems2["FIRST"] = "FIRST";
|
1136
|
-
InitialExpandedItems2["ALL"] = "ALL";
|
1137
|
-
InitialExpandedItems2["NONE"] = "NONE";
|
1138
|
-
return InitialExpandedItems2;
|
1139
|
-
})(InitialExpandedItems || {});
|
1140
|
-
var Direction = /* @__PURE__ */ ((Direction2) => {
|
1141
|
-
Direction2["LTR"] = "LTR";
|
1142
|
-
Direction2["RTL"] = "RTL";
|
1143
|
-
return Direction2;
|
1144
|
-
})(Direction || {});
|
1145
|
-
var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
|
1146
|
-
VerticalAlignment2["TOP"] = "TOP";
|
1147
|
-
VerticalAlignment2["MIDDLE"] = "MIDDLE";
|
1148
|
-
VerticalAlignment2["BOTTOM"] = "BOTTOM";
|
1149
|
-
return VerticalAlignment2;
|
1150
|
-
})(VerticalAlignment || {});
|
1151
|
-
var NullValue = /* @__PURE__ */ ((NullValue2) => {
|
1152
|
-
NullValue2["NULL_VALUE"] = "NULL_VALUE";
|
1153
|
-
return NullValue2;
|
1154
|
-
})(NullValue || {});
|
1155
|
-
var ModerationStatusStatus = /* @__PURE__ */ ((ModerationStatusStatus2) => {
|
1156
|
-
ModerationStatusStatus2["UNKNOWN"] = "UNKNOWN";
|
1157
|
-
ModerationStatusStatus2["APPROVED"] = "APPROVED";
|
1158
|
-
ModerationStatusStatus2["REJECTED"] = "REJECTED";
|
1159
|
-
return ModerationStatusStatus2;
|
1160
|
-
})(ModerationStatusStatus || {});
|
1161
|
-
var QueryPublicationsCountStatsRequestOrder = /* @__PURE__ */ ((QueryPublicationsCountStatsRequestOrder2) => {
|
1162
|
-
QueryPublicationsCountStatsRequestOrder2["UNKNOWN"] = "UNKNOWN";
|
1163
|
-
QueryPublicationsCountStatsRequestOrder2["OLDEST"] = "OLDEST";
|
1164
|
-
QueryPublicationsCountStatsRequestOrder2["NEWEST"] = "NEWEST";
|
1165
|
-
return QueryPublicationsCountStatsRequestOrder2;
|
1166
|
-
})(QueryPublicationsCountStatsRequestOrder || {});
|
1167
|
-
var Order = /* @__PURE__ */ ((Order2) => {
|
1168
|
-
Order2["UNKNOWN"] = "UNKNOWN";
|
1169
|
-
Order2["OLDEST"] = "OLDEST";
|
1170
|
-
Order2["NEWEST"] = "NEWEST";
|
1171
|
-
return Order2;
|
1172
|
-
})(Order || {});
|
1173
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
1174
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
1175
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
1176
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
1177
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
1178
|
-
WebhookIdentityType2["APP"] = "APP";
|
1179
|
-
return WebhookIdentityType2;
|
1180
|
-
})(WebhookIdentityType || {});
|
1181
|
-
var GetPostTemplatesSort = /* @__PURE__ */ ((GetPostTemplatesSort2) => {
|
1182
|
-
GetPostTemplatesSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
1183
|
-
GetPostTemplatesSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
1184
|
-
return GetPostTemplatesSort2;
|
1185
|
-
})(GetPostTemplatesSort || {});
|
1186
|
-
var Origin = /* @__PURE__ */ ((Origin2) => {
|
1187
|
-
Origin2["UNKNOWN"] = "UNKNOWN";
|
1188
|
-
Origin2["ADMIN"] = "ADMIN";
|
1189
|
-
Origin2["ADD_CATEGORIES"] = "ADD_CATEGORIES";
|
1190
|
-
Origin2["AUTO_SAVE"] = "AUTO_SAVE";
|
1191
|
-
Origin2["COPY_TEMPLATE"] = "COPY_TEMPLATE";
|
1192
|
-
Origin2["IMPORT"] = "IMPORT";
|
1193
|
-
Origin2["IMPORT_BULK"] = "IMPORT_BULK";
|
1194
|
-
Origin2["IMPORT_HTML"] = "IMPORT_HTML";
|
1195
|
-
Origin2["IMPORT_PATCH"] = "IMPORT_PATCH";
|
1196
|
-
Origin2["LANGUAGE_CHANGE"] = "LANGUAGE_CHANGE";
|
1197
|
-
Origin2["MANUAL_SAVE"] = "MANUAL_SAVE";
|
1198
|
-
Origin2["MIGRATION"] = "MIGRATION";
|
1199
|
-
Origin2["MODERATION"] = "MODERATION";
|
1200
|
-
Origin2["MOVE_TO_TRASH"] = "MOVE_TO_TRASH";
|
1201
|
-
Origin2["PRICING_PLANS_CHANGE"] = "PRICING_PLANS_CHANGE";
|
1202
|
-
Origin2["PROVISION"] = "PROVISION";
|
1203
|
-
Origin2["PUBLISH"] = "PUBLISH";
|
1204
|
-
Origin2["REASSIGN_OWNER"] = "REASSIGN_OWNER";
|
1205
|
-
Origin2["REBLOG"] = "REBLOG";
|
1206
|
-
Origin2["RESTORE"] = "RESTORE";
|
1207
|
-
Origin2["REVERT_TO_DRAFT"] = "REVERT_TO_DRAFT";
|
1208
|
-
Origin2["TRANSLATION"] = "TRANSLATION";
|
1209
|
-
Origin2["UNPUBLISH"] = "UNPUBLISH";
|
1210
|
-
Origin2["UNSCHEDULE"] = "UNSCHEDULE";
|
1211
|
-
Origin2["NEW_EDIT_SESSION"] = "NEW_EDIT_SESSION";
|
1212
|
-
Origin2["SCHEDULING_SERVICE_SCHEDULE"] = "SCHEDULING_SERVICE_SCHEDULE";
|
1213
|
-
Origin2["SCHEDULING_SERVICE_UNSCHEDULE"] = "SCHEDULING_SERVICE_UNSCHEDULE";
|
1214
|
-
Origin2["SCHEDULING_SERVICE_PUBLISH"] = "SCHEDULING_SERVICE_PUBLISH";
|
1215
|
-
Origin2["SCHEDULE"] = "SCHEDULE";
|
1216
|
-
Origin2["REMOVE_FROM_MODERATION"] = "REMOVE_FROM_MODERATION";
|
1217
|
-
Origin2["REJECT_FROM_MODERATION"] = "REJECT_FROM_MODERATION";
|
1218
|
-
Origin2["APPROVE_IN_MODERATION"] = "APPROVE_IN_MODERATION";
|
1219
|
-
Origin2["DELETE_TAG"] = "DELETE_TAG";
|
1220
|
-
Origin2["PIN"] = "PIN";
|
1221
|
-
Origin2["UNPIN"] = "UNPIN";
|
1222
|
-
Origin2["AI_AUTO_SAVE"] = "AI_AUTO_SAVE";
|
1223
|
-
return Origin2;
|
1224
|
-
})(Origin || {});
|
1225
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
1226
|
-
Status2["UNKNOWN"] = "UNKNOWN";
|
1227
|
-
Status2["PUBLISHED"] = "PUBLISHED";
|
1228
|
-
Status2["UNPUBLISHED"] = "UNPUBLISHED";
|
1229
|
-
Status2["SCHEDULED"] = "SCHEDULED";
|
1230
|
-
Status2["DELETED"] = "DELETED";
|
1231
|
-
Status2["IN_REVIEW"] = "IN_REVIEW";
|
1232
|
-
return Status2;
|
1233
|
-
})(Status || {});
|
1234
|
-
var Field = /* @__PURE__ */ ((Field2) => {
|
1235
|
-
Field2["UNKNOWN"] = "UNKNOWN";
|
1236
|
-
Field2["TOTAL_COMMENTS"] = "TOTAL_COMMENTS";
|
1237
|
-
Field2["LIKE_COUNT"] = "LIKE_COUNT";
|
1238
|
-
Field2["VIEW_COUNT"] = "VIEW_COUNT";
|
1239
|
-
Field2["RATING_COUNT"] = "RATING_COUNT";
|
1240
|
-
return Field2;
|
1241
|
-
})(Field || {});
|
1242
|
-
var PostFieldField = /* @__PURE__ */ ((PostFieldField2) => {
|
1243
|
-
PostFieldField2["UNKNOWN"] = "UNKNOWN";
|
1244
|
-
PostFieldField2["URL"] = "URL";
|
1245
|
-
PostFieldField2["CONTENT_TEXT"] = "CONTENT_TEXT";
|
1246
|
-
PostFieldField2["METRICS"] = "METRICS";
|
1247
|
-
PostFieldField2["SEO"] = "SEO";
|
1248
|
-
PostFieldField2["CONTACT_ID"] = "CONTACT_ID";
|
1249
|
-
PostFieldField2["RICH_CONTENT"] = "RICH_CONTENT";
|
1250
|
-
PostFieldField2["REFERENCE_ID"] = "REFERENCE_ID";
|
1251
|
-
return PostFieldField2;
|
1252
|
-
})(PostFieldField || {});
|
1253
|
-
var GetPostsSort = /* @__PURE__ */ ((GetPostsSort2) => {
|
1254
|
-
GetPostsSort2["FEED"] = "FEED";
|
1255
|
-
GetPostsSort2["PUBLISHED_DATE_ASC"] = "PUBLISHED_DATE_ASC";
|
1256
|
-
GetPostsSort2["PUBLISHED_DATE_DESC"] = "PUBLISHED_DATE_DESC";
|
1257
|
-
GetPostsSort2["VIEW_COUNT"] = "VIEW_COUNT";
|
1258
|
-
GetPostsSort2["LIKE_COUNT"] = "LIKE_COUNT";
|
1259
|
-
GetPostsSort2["TITLE_ASC"] = "TITLE_ASC";
|
1260
|
-
GetPostsSort2["TITLE_DESC"] = "TITLE_DESC";
|
1261
|
-
return GetPostsSort2;
|
1262
|
-
})(GetPostsSort || {});
|
1263
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
1264
|
-
SortOrder2["ASC"] = "ASC";
|
1265
|
-
SortOrder2["DESC"] = "DESC";
|
1266
|
-
return SortOrder2;
|
1267
|
-
})(SortOrder || {});
|
1268
|
-
async function queryPostCountStats2(options) {
|
1269
|
-
const { httpClient, sideEffects } = arguments[1];
|
1270
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1271
|
-
{
|
1272
|
-
rangeStart: options?.rangeStart,
|
1273
|
-
order: options?.order,
|
1274
|
-
months: options?.months,
|
1275
|
-
language: options?.language,
|
1276
|
-
timeZone: options?.timeZone
|
1277
|
-
},
|
1278
|
-
[]
|
1279
|
-
);
|
1280
|
-
const reqOpts = queryPostCountStats(payload);
|
1281
|
-
sideEffects?.onSiteCall?.();
|
1282
|
-
try {
|
1283
|
-
const result = await httpClient.request(reqOpts);
|
1284
|
-
sideEffects?.onSuccess?.(result);
|
1285
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
|
1286
|
-
} catch (err) {
|
1287
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1288
|
-
err,
|
1289
|
-
{
|
1290
|
-
spreadPathsToArguments: {},
|
1291
|
-
explicitPathsToArguments: {
|
1292
|
-
rangeStart: "$[0].rangeStart",
|
1293
|
-
order: "$[0].order",
|
1294
|
-
months: "$[0].months",
|
1295
|
-
language: "$[0].language",
|
1296
|
-
timeZone: "$[0].timeZone"
|
1297
|
-
},
|
1298
|
-
singleArgumentUnchanged: false
|
1299
|
-
},
|
1300
|
-
["options"]
|
1301
|
-
);
|
1302
|
-
sideEffects?.onError?.(err);
|
1303
|
-
throw transformedError;
|
1304
|
-
}
|
1305
|
-
}
|
1306
|
-
async function getTotalPosts2(options) {
|
1307
|
-
const { httpClient, sideEffects } = arguments[1];
|
1308
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1309
|
-
{ language: options?.language },
|
1310
|
-
[]
|
1311
|
-
);
|
1312
|
-
const reqOpts = getTotalPosts(payload);
|
1313
|
-
sideEffects?.onSiteCall?.();
|
1314
|
-
try {
|
1315
|
-
const result = await httpClient.request(reqOpts);
|
1316
|
-
sideEffects?.onSuccess?.(result);
|
1317
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
|
1318
|
-
} catch (err) {
|
1319
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1320
|
-
err,
|
1321
|
-
{
|
1322
|
-
spreadPathsToArguments: {},
|
1323
|
-
explicitPathsToArguments: { language: "$[0].language" },
|
1324
|
-
singleArgumentUnchanged: false
|
1325
|
-
},
|
1326
|
-
["options"]
|
1327
|
-
);
|
1328
|
-
sideEffects?.onError?.(err);
|
1329
|
-
throw transformedError;
|
1330
|
-
}
|
1331
|
-
}
|
1332
|
-
async function getPost2(postId, options) {
|
1333
|
-
const { httpClient, sideEffects } = arguments[2];
|
1334
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1335
|
-
{ postId, fieldsets: options?.fieldsets },
|
1336
|
-
[]
|
1337
|
-
);
|
1338
|
-
const reqOpts = getPost(payload);
|
1339
|
-
sideEffects?.onSiteCall?.();
|
1340
|
-
try {
|
1341
|
-
const result = await httpClient.request(reqOpts);
|
1342
|
-
sideEffects?.onSuccess?.(result);
|
1343
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
1344
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
1345
|
-
{
|
1346
|
-
transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
|
1347
|
-
paths: [{ path: "post.url" }, { path: "post.translations.url" }]
|
1348
|
-
},
|
1349
|
-
{
|
1350
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
1351
|
-
paths: [
|
1352
|
-
{ path: "post.heroImage" },
|
1353
|
-
{ path: "post.coverMedia.image" },
|
1354
|
-
{ path: "post.media.wixMedia.image" }
|
1355
|
-
]
|
1356
|
-
},
|
1357
|
-
{
|
1358
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
1359
|
-
paths: [{ path: "post.coverMedia.video" }]
|
1360
|
-
},
|
1361
|
-
{
|
1362
|
-
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
1363
|
-
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
1364
|
-
}
|
1365
|
-
]),
|
1366
|
-
["post.rich_content"]
|
1367
|
-
);
|
1368
|
-
} catch (err) {
|
1369
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1370
|
-
err,
|
1371
|
-
{
|
1372
|
-
spreadPathsToArguments: {},
|
1373
|
-
explicitPathsToArguments: {
|
1374
|
-
postId: "$[0]",
|
1375
|
-
fieldsets: "$[1].fieldsets"
|
1376
|
-
},
|
1377
|
-
singleArgumentUnchanged: false
|
1378
|
-
},
|
1379
|
-
["postId", "options"]
|
1380
|
-
);
|
1381
|
-
sideEffects?.onError?.(err);
|
1382
|
-
throw transformedError;
|
1383
|
-
}
|
1384
|
-
}
|
1385
|
-
async function getPostBySlug2(slug, options) {
|
1386
|
-
const { httpClient, sideEffects } = arguments[2];
|
1387
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1388
|
-
{ slug, fieldsets: options?.fieldsets },
|
1389
|
-
[]
|
1390
|
-
);
|
1391
|
-
const reqOpts = getPostBySlug(payload);
|
1392
|
-
sideEffects?.onSiteCall?.();
|
1393
|
-
try {
|
1394
|
-
const result = await httpClient.request(reqOpts);
|
1395
|
-
sideEffects?.onSuccess?.(result);
|
1396
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
1397
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
1398
|
-
{
|
1399
|
-
transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
|
1400
|
-
paths: [{ path: "post.url" }, { path: "post.translations.url" }]
|
1401
|
-
},
|
1402
|
-
{
|
1403
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
1404
|
-
paths: [
|
1405
|
-
{ path: "post.heroImage" },
|
1406
|
-
{ path: "post.coverMedia.image" },
|
1407
|
-
{ path: "post.media.wixMedia.image" }
|
1408
|
-
]
|
1409
|
-
},
|
1410
|
-
{
|
1411
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
1412
|
-
paths: [{ path: "post.coverMedia.video" }]
|
1413
|
-
},
|
1414
|
-
{
|
1415
|
-
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
1416
|
-
paths: [{ path: "post.media.wixMedia.videoV2" }]
|
1417
|
-
}
|
1418
|
-
]),
|
1419
|
-
["post.rich_content"]
|
1420
|
-
);
|
1421
|
-
} catch (err) {
|
1422
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1423
|
-
err,
|
1424
|
-
{
|
1425
|
-
spreadPathsToArguments: {},
|
1426
|
-
explicitPathsToArguments: { slug: "$[0]", fieldsets: "$[1].fieldsets" },
|
1427
|
-
singleArgumentUnchanged: false
|
1428
|
-
},
|
1429
|
-
["slug", "options"]
|
1430
|
-
);
|
1431
|
-
sideEffects?.onError?.(err);
|
1432
|
-
throw transformedError;
|
1433
|
-
}
|
1434
|
-
}
|
1435
|
-
async function listPosts2(options) {
|
1436
|
-
const { httpClient, sideEffects } = arguments[1];
|
1437
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1438
|
-
{
|
1439
|
-
featured: options?.featured,
|
1440
|
-
hashtags: options?.hashtags,
|
1441
|
-
categoryIds: options?.categoryIds,
|
1442
|
-
tagIds: options?.tagIds,
|
1443
|
-
sort: options?.sort,
|
1444
|
-
paging: options?.paging,
|
1445
|
-
language: options?.language,
|
1446
|
-
memberId: options?.memberId,
|
1447
|
-
fieldsets: options?.fieldsets
|
1448
|
-
},
|
1449
|
-
[]
|
1450
|
-
);
|
1451
|
-
const reqOpts = listPosts(payload);
|
1452
|
-
sideEffects?.onSiteCall?.();
|
1453
|
-
try {
|
1454
|
-
const result = await httpClient.request(reqOpts);
|
1455
|
-
sideEffects?.onSuccess?.(result);
|
1456
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
1457
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
1458
|
-
{
|
1459
|
-
transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
|
1460
|
-
paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
|
1461
|
-
},
|
1462
|
-
{
|
1463
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
1464
|
-
paths: [
|
1465
|
-
{ path: "posts.heroImage" },
|
1466
|
-
{ path: "posts.coverMedia.image" },
|
1467
|
-
{ path: "posts.media.wixMedia.image" }
|
1468
|
-
]
|
1469
|
-
},
|
1470
|
-
{
|
1471
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
1472
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
1473
|
-
},
|
1474
|
-
{
|
1475
|
-
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
1476
|
-
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
1477
|
-
}
|
1478
|
-
]),
|
1479
|
-
["posts.rich_content"]
|
1480
|
-
);
|
1481
|
-
} catch (err) {
|
1482
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1483
|
-
err,
|
1484
|
-
{
|
1485
|
-
spreadPathsToArguments: {},
|
1486
|
-
explicitPathsToArguments: {
|
1487
|
-
featured: "$[0].featured",
|
1488
|
-
hashtags: "$[0].hashtags",
|
1489
|
-
categoryIds: "$[0].categoryIds",
|
1490
|
-
tagIds: "$[0].tagIds",
|
1491
|
-
sort: "$[0].sort",
|
1492
|
-
paging: "$[0].paging",
|
1493
|
-
language: "$[0].language",
|
1494
|
-
memberId: "$[0].memberId",
|
1495
|
-
fieldsets: "$[0].fieldsets"
|
1496
|
-
},
|
1497
|
-
singleArgumentUnchanged: false
|
1498
|
-
},
|
1499
|
-
["options"]
|
1500
|
-
);
|
1501
|
-
sideEffects?.onError?.(err);
|
1502
|
-
throw transformedError;
|
1503
|
-
}
|
1504
|
-
}
|
1505
|
-
function queryPosts2(options) {
|
1506
|
-
const { httpClient, sideEffects } = arguments[1];
|
1507
|
-
return (0, import_query_builder.queryBuilder)({
|
1508
|
-
func: async (payload) => {
|
1509
|
-
const reqOpts = queryPosts({
|
1510
|
-
...payload,
|
1511
|
-
...options ?? {}
|
1512
|
-
});
|
1513
|
-
sideEffects?.onSiteCall?.();
|
1514
|
-
try {
|
1515
|
-
const result = await httpClient.request(reqOpts);
|
1516
|
-
sideEffects?.onSuccess?.(result);
|
1517
|
-
return result;
|
1518
|
-
} catch (err) {
|
1519
|
-
sideEffects?.onError?.(err);
|
1520
|
-
throw err;
|
1521
|
-
}
|
1522
|
-
},
|
1523
|
-
requestTransformer: (query) => {
|
1524
|
-
const args = [query, options];
|
1525
|
-
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
|
1526
|
-
{ ...args?.[1], query: args?.[0] },
|
1527
|
-
[]
|
1528
|
-
);
|
1529
|
-
},
|
1530
|
-
responseTransformer: ({ data }) => {
|
1531
|
-
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
1532
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
1533
|
-
{
|
1534
|
-
transformFn: import_page_url.transformRESTPageURLToSDKPageURL,
|
1535
|
-
paths: [{ path: "posts.url" }, { path: "posts.translations.url" }]
|
1536
|
-
},
|
1537
|
-
{
|
1538
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
1539
|
-
paths: [
|
1540
|
-
{ path: "posts.heroImage" },
|
1541
|
-
{ path: "posts.coverMedia.image" },
|
1542
|
-
{ path: "posts.media.wixMedia.image" }
|
1543
|
-
]
|
1544
|
-
},
|
1545
|
-
{
|
1546
|
-
transformFn: import_video.transformRESTVideoToSDKVideo,
|
1547
|
-
paths: [{ path: "posts.coverMedia.video" }]
|
1548
|
-
},
|
1549
|
-
{
|
1550
|
-
transformFn: import_video_v2.transformRESTVideoV2ToSDKVideoV2,
|
1551
|
-
paths: [{ path: "posts.media.wixMedia.videoV2" }]
|
1552
|
-
}
|
1553
|
-
]),
|
1554
|
-
["posts.rich_content"]
|
1555
|
-
);
|
1556
|
-
return {
|
1557
|
-
items: transformedData?.posts,
|
1558
|
-
pagingMetadata: transformedData?.pagingMetadata
|
1559
|
-
};
|
1560
|
-
},
|
1561
|
-
errorTransformer: (err) => {
|
1562
|
-
const transformedError = (0, import_transform_error.transformError)(err, {
|
1563
|
-
spreadPathsToArguments: {},
|
1564
|
-
explicitPathsToArguments: { query: "$[0]" },
|
1565
|
-
singleArgumentUnchanged: false
|
1566
|
-
});
|
1567
|
-
throw transformedError;
|
1568
|
-
},
|
1569
|
-
pagingMethod: "CURSOR",
|
1570
|
-
transformationPaths: {}
|
1571
|
-
});
|
1572
|
-
}
|
1573
|
-
async function getPostMetrics2(postId) {
|
1574
|
-
const { httpClient, sideEffects } = arguments[1];
|
1575
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ postId }, []);
|
1576
|
-
const reqOpts = getPostMetrics(payload);
|
1577
|
-
sideEffects?.onSiteCall?.();
|
1578
|
-
try {
|
1579
|
-
const result = await httpClient.request(reqOpts);
|
1580
|
-
sideEffects?.onSuccess?.(result);
|
1581
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data, []);
|
1582
|
-
} catch (err) {
|
1583
|
-
const transformedError = (0, import_transform_error.transformError)(
|
1584
|
-
err,
|
1585
|
-
{
|
1586
|
-
spreadPathsToArguments: {},
|
1587
|
-
explicitPathsToArguments: { postId: "$[0]" },
|
1588
|
-
singleArgumentUnchanged: false
|
1589
|
-
},
|
1590
|
-
["postId"]
|
1591
|
-
);
|
1592
|
-
sideEffects?.onError?.(err);
|
1593
|
-
throw transformedError;
|
1594
|
-
}
|
1595
|
-
}
|
1596
|
-
|
1597
|
-
// src/blog-v3-post-posts.public.ts
|
1598
|
-
function queryPostCountStats3(httpClient) {
|
1599
|
-
return (options) => queryPostCountStats2(
|
1600
|
-
options,
|
1601
|
-
// @ts-ignore
|
1602
|
-
{ httpClient }
|
1603
|
-
);
|
1604
|
-
}
|
1605
|
-
function getTotalPosts3(httpClient) {
|
1606
|
-
return (options) => getTotalPosts2(
|
1607
|
-
options,
|
1608
|
-
// @ts-ignore
|
1609
|
-
{ httpClient }
|
1610
|
-
);
|
1611
|
-
}
|
1612
|
-
function getPost3(httpClient) {
|
1613
|
-
return (postId, options) => getPost2(
|
1614
|
-
postId,
|
1615
|
-
options,
|
1616
|
-
// @ts-ignore
|
1617
|
-
{ httpClient }
|
1618
|
-
);
|
1619
|
-
}
|
1620
|
-
function getPostBySlug3(httpClient) {
|
1621
|
-
return (slug, options) => getPostBySlug2(
|
1622
|
-
slug,
|
1623
|
-
options,
|
1624
|
-
// @ts-ignore
|
1625
|
-
{ httpClient }
|
1626
|
-
);
|
1627
|
-
}
|
1628
|
-
function listPosts3(httpClient) {
|
1629
|
-
return (options) => listPosts2(
|
1630
|
-
options,
|
1631
|
-
// @ts-ignore
|
1632
|
-
{ httpClient }
|
1633
|
-
);
|
1634
|
-
}
|
1635
|
-
function queryPosts3(httpClient) {
|
1636
|
-
return (options) => queryPosts2(
|
1637
|
-
options,
|
1638
|
-
// @ts-ignore
|
1639
|
-
{ httpClient }
|
1640
|
-
);
|
1641
|
-
}
|
1642
|
-
function getPostMetrics3(httpClient) {
|
1643
|
-
return (postId) => getPostMetrics2(
|
1644
|
-
postId,
|
1645
|
-
// @ts-ignore
|
1646
|
-
{ httpClient }
|
1647
|
-
);
|
1648
|
-
}
|
1649
|
-
var onPostCreated = (0, import_sdk_types.EventDefinition)(
|
1650
|
-
"wix.blog.v3.post_created",
|
1651
|
-
true,
|
1652
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
1653
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
1654
|
-
{
|
1655
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
1656
|
-
paths: [
|
1657
|
-
{ path: "entity.firstPublishedDate" },
|
1658
|
-
{ path: "entity.lastPublishedDate" },
|
1659
|
-
{ path: "entity.richContent.metadata.createdTimestamp" },
|
1660
|
-
{ path: "entity.richContent.metadata.updatedTimestamp" },
|
1661
|
-
{ path: "entity.moderationDetails.submittedDate" },
|
1662
|
-
{ path: "entity.moderationDetails.moderationDate" },
|
1663
|
-
{ path: "metadata.eventTime" }
|
1664
|
-
]
|
1665
|
-
},
|
1666
|
-
{
|
1667
|
-
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
1668
|
-
paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
|
1669
|
-
},
|
1670
|
-
{
|
1671
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
1672
|
-
paths: [
|
1673
|
-
{ path: "entity.heroImage" },
|
1674
|
-
{ path: "entity.coverMedia.image" },
|
1675
|
-
{ path: "entity.media.wixMedia.image" }
|
1676
|
-
]
|
1677
|
-
},
|
1678
|
-
{
|
1679
|
-
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
1680
|
-
paths: [{ path: "entity.richContentCompressed" }]
|
1681
|
-
},
|
1682
|
-
{
|
1683
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
1684
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
1685
|
-
},
|
1686
|
-
{
|
1687
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
1688
|
-
paths: [
|
1689
|
-
{ path: "entity.metrics.averageRating" },
|
1690
|
-
{
|
1691
|
-
path: "entity.richContent.nodes.galleryData.items.image.media.duration"
|
1692
|
-
},
|
1693
|
-
{
|
1694
|
-
path: "entity.richContent.nodes.galleryData.items.video.media.duration"
|
1695
|
-
},
|
1696
|
-
{
|
1697
|
-
path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
1698
|
-
},
|
1699
|
-
{ path: "entity.richContent.nodes.galleryData.options.item.ratio" },
|
1700
|
-
{ path: "entity.richContent.nodes.imageData.image.duration" },
|
1701
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lat" },
|
1702
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lng" },
|
1703
|
-
{ path: "entity.richContent.nodes.pollData.poll.image.duration" },
|
1704
|
-
{
|
1705
|
-
path: "entity.richContent.nodes.pollData.poll.options.image.duration"
|
1706
|
-
},
|
1707
|
-
{
|
1708
|
-
path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
|
1709
|
-
},
|
1710
|
-
{ path: "entity.richContent.nodes.appEmbedData.image.duration" },
|
1711
|
-
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
1712
|
-
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
1713
|
-
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
1714
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
1715
|
-
]
|
1716
|
-
},
|
1717
|
-
{
|
1718
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
1719
|
-
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1720
|
-
}
|
1721
|
-
]),
|
1722
|
-
["entity.rich_content"]
|
1723
|
-
)
|
1724
|
-
)();
|
1725
|
-
var onPostDeleted = (0, import_sdk_types.EventDefinition)(
|
1726
|
-
"wix.blog.v3.post_deleted",
|
1727
|
-
true,
|
1728
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
1729
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
1730
|
-
{
|
1731
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
1732
|
-
paths: [
|
1733
|
-
{ path: "entity.firstPublishedDate" },
|
1734
|
-
{ path: "entity.lastPublishedDate" },
|
1735
|
-
{ path: "entity.richContent.metadata.createdTimestamp" },
|
1736
|
-
{ path: "entity.richContent.metadata.updatedTimestamp" },
|
1737
|
-
{ path: "entity.moderationDetails.submittedDate" },
|
1738
|
-
{ path: "entity.moderationDetails.moderationDate" },
|
1739
|
-
{ path: "metadata.eventTime" }
|
1740
|
-
]
|
1741
|
-
},
|
1742
|
-
{
|
1743
|
-
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
1744
|
-
paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
|
1745
|
-
},
|
1746
|
-
{
|
1747
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
1748
|
-
paths: [
|
1749
|
-
{ path: "entity.heroImage" },
|
1750
|
-
{ path: "entity.coverMedia.image" },
|
1751
|
-
{ path: "entity.media.wixMedia.image" }
|
1752
|
-
]
|
1753
|
-
},
|
1754
|
-
{
|
1755
|
-
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
1756
|
-
paths: [{ path: "entity.richContentCompressed" }]
|
1757
|
-
},
|
1758
|
-
{
|
1759
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
1760
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
1761
|
-
},
|
1762
|
-
{
|
1763
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
1764
|
-
paths: [
|
1765
|
-
{ path: "entity.metrics.averageRating" },
|
1766
|
-
{
|
1767
|
-
path: "entity.richContent.nodes.galleryData.items.image.media.duration"
|
1768
|
-
},
|
1769
|
-
{
|
1770
|
-
path: "entity.richContent.nodes.galleryData.items.video.media.duration"
|
1771
|
-
},
|
1772
|
-
{
|
1773
|
-
path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
1774
|
-
},
|
1775
|
-
{ path: "entity.richContent.nodes.galleryData.options.item.ratio" },
|
1776
|
-
{ path: "entity.richContent.nodes.imageData.image.duration" },
|
1777
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lat" },
|
1778
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lng" },
|
1779
|
-
{ path: "entity.richContent.nodes.pollData.poll.image.duration" },
|
1780
|
-
{
|
1781
|
-
path: "entity.richContent.nodes.pollData.poll.options.image.duration"
|
1782
|
-
},
|
1783
|
-
{
|
1784
|
-
path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
|
1785
|
-
},
|
1786
|
-
{ path: "entity.richContent.nodes.appEmbedData.image.duration" },
|
1787
|
-
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
1788
|
-
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
1789
|
-
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
1790
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
1791
|
-
]
|
1792
|
-
},
|
1793
|
-
{
|
1794
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
1795
|
-
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1796
|
-
}
|
1797
|
-
]),
|
1798
|
-
["entity.rich_content"]
|
1799
|
-
)
|
1800
|
-
)();
|
1801
|
-
var onPostLiked = (0, import_sdk_types.EventDefinition)(
|
1802
|
-
"wix.blog.v3.post_liked",
|
1803
|
-
true,
|
1804
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
1805
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
1806
|
-
{
|
1807
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
1808
|
-
paths: [{ path: "metadata.eventTime" }]
|
1809
|
-
}
|
1810
|
-
]),
|
1811
|
-
["entity.rich_content"]
|
1812
|
-
)
|
1813
|
-
)();
|
1814
|
-
var onPostUnliked = (0, import_sdk_types.EventDefinition)(
|
1815
|
-
"wix.blog.v3.post_unliked",
|
1816
|
-
true,
|
1817
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
1818
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
1819
|
-
{
|
1820
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
1821
|
-
paths: [{ path: "metadata.eventTime" }]
|
1822
|
-
}
|
1823
|
-
]),
|
1824
|
-
["entity.rich_content"]
|
1825
|
-
)
|
1826
|
-
)();
|
1827
|
-
var onPostUpdated = (0, import_sdk_types.EventDefinition)(
|
1828
|
-
"wix.blog.v3.post_updated",
|
1829
|
-
true,
|
1830
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
1831
|
-
(0, import_transform_paths3.transformPaths)(event, [
|
1832
|
-
{
|
1833
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
1834
|
-
paths: [
|
1835
|
-
{ path: "entity.firstPublishedDate" },
|
1836
|
-
{ path: "entity.lastPublishedDate" },
|
1837
|
-
{ path: "entity.richContent.metadata.createdTimestamp" },
|
1838
|
-
{ path: "entity.richContent.metadata.updatedTimestamp" },
|
1839
|
-
{ path: "entity.moderationDetails.submittedDate" },
|
1840
|
-
{ path: "entity.moderationDetails.moderationDate" },
|
1841
|
-
{ path: "metadata.eventTime" }
|
1842
|
-
]
|
1843
|
-
},
|
1844
|
-
{
|
1845
|
-
transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
|
1846
|
-
paths: [{ path: "entity.url" }, { path: "entity.translations.url" }]
|
1847
|
-
},
|
1848
|
-
{
|
1849
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
1850
|
-
paths: [
|
1851
|
-
{ path: "entity.heroImage" },
|
1852
|
-
{ path: "entity.coverMedia.image" },
|
1853
|
-
{ path: "entity.media.wixMedia.image" }
|
1854
|
-
]
|
1855
|
-
},
|
1856
|
-
{
|
1857
|
-
transformFn: import_bytes2.transformRESTBytesToSDKBytes,
|
1858
|
-
paths: [{ path: "entity.richContentCompressed" }]
|
1859
|
-
},
|
1860
|
-
{
|
1861
|
-
transformFn: import_video2.transformRESTVideoToSDKVideo,
|
1862
|
-
paths: [{ path: "entity.coverMedia.video" }]
|
1863
|
-
},
|
1864
|
-
{
|
1865
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
1866
|
-
paths: [
|
1867
|
-
{ path: "entity.metrics.averageRating" },
|
1868
|
-
{
|
1869
|
-
path: "entity.richContent.nodes.galleryData.items.image.media.duration"
|
1870
|
-
},
|
1871
|
-
{
|
1872
|
-
path: "entity.richContent.nodes.galleryData.items.video.media.duration"
|
1873
|
-
},
|
1874
|
-
{
|
1875
|
-
path: "entity.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
1876
|
-
},
|
1877
|
-
{ path: "entity.richContent.nodes.galleryData.options.item.ratio" },
|
1878
|
-
{ path: "entity.richContent.nodes.imageData.image.duration" },
|
1879
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lat" },
|
1880
|
-
{ path: "entity.richContent.nodes.mapData.mapSettings.lng" },
|
1881
|
-
{ path: "entity.richContent.nodes.pollData.poll.image.duration" },
|
1882
|
-
{
|
1883
|
-
path: "entity.richContent.nodes.pollData.poll.options.image.duration"
|
1884
|
-
},
|
1885
|
-
{
|
1886
|
-
path: "entity.richContent.nodes.pollData.design.poll.background.image.duration"
|
1887
|
-
},
|
1888
|
-
{ path: "entity.richContent.nodes.appEmbedData.image.duration" },
|
1889
|
-
{ path: "entity.richContent.nodes.videoData.video.duration" },
|
1890
|
-
{ path: "entity.richContent.nodes.videoData.thumbnail.duration" },
|
1891
|
-
{ path: "entity.richContent.nodes.audioData.audio.duration" },
|
1892
|
-
{ path: "entity.richContent.nodes.audioData.coverImage.duration" }
|
1893
|
-
]
|
1894
|
-
},
|
1895
|
-
{
|
1896
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
1897
|
-
paths: [{ path: "entity.media.wixMedia.videoV2" }]
|
1898
|
-
}
|
1899
|
-
]),
|
1900
|
-
["entity.rich_content"]
|
1901
|
-
)
|
1902
|
-
)();
|
1903
|
-
|
1904
|
-
// src/blog-v3-post-posts.context.ts
|
1905
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
1906
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
1907
|
-
var queryPostCountStats4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPostCountStats3);
|
1908
|
-
var getTotalPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getTotalPosts3);
|
1909
|
-
var getPost4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPost3);
|
1910
|
-
var getPostBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPostBySlug3);
|
1911
|
-
var listPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listPosts3);
|
1912
|
-
var queryPosts4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryPosts3);
|
1913
|
-
var getPostMetrics4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPostMetrics3);
|
1914
|
-
var onPostCreated2 = (0, import_event_definition_modules.createEventModule)(onPostCreated);
|
1915
|
-
var onPostDeleted2 = (0, import_event_definition_modules.createEventModule)(onPostDeleted);
|
1916
|
-
var onPostLiked2 = (0, import_event_definition_modules.createEventModule)(onPostLiked);
|
1917
|
-
var onPostUnliked2 = (0, import_event_definition_modules.createEventModule)(onPostUnliked);
|
1918
|
-
var onPostUpdated2 = (0, import_event_definition_modules.createEventModule)(onPostUpdated);
|
1919
|
-
// Annotate the CommonJS export names for ESM import in node:
|
1920
|
-
0 && (module.exports = {
|
1921
|
-
Alignment,
|
1922
|
-
AppType,
|
1923
|
-
BackgroundType,
|
1924
|
-
Crop,
|
1925
|
-
DecorationType,
|
1926
|
-
Direction,
|
1927
|
-
Field,
|
1928
|
-
FontType,
|
1929
|
-
GIFType,
|
1930
|
-
GetPostTemplatesSort,
|
1931
|
-
GetPostsSort,
|
1932
|
-
InitialExpandedItems,
|
1933
|
-
LayoutType,
|
1934
|
-
LineStyle,
|
1935
|
-
MapType,
|
1936
|
-
ModerationStatusStatus,
|
1937
|
-
NodeType,
|
1938
|
-
NullValue,
|
1939
|
-
Order,
|
1940
|
-
Orientation,
|
1941
|
-
Origin,
|
1942
|
-
PluginContainerDataAlignment,
|
1943
|
-
PollLayoutDirection,
|
1944
|
-
PollLayoutType,
|
1945
|
-
Position,
|
1946
|
-
PostFieldField,
|
1947
|
-
QueryPublicationsCountStatsRequestOrder,
|
1948
|
-
SortOrder,
|
1949
|
-
Source,
|
1950
|
-
Status,
|
1951
|
-
Target,
|
1952
|
-
TextAlignment,
|
1953
|
-
ThumbnailsAlignment,
|
1954
|
-
Type,
|
1955
|
-
VerticalAlignment,
|
1956
|
-
ViewMode,
|
1957
|
-
ViewRole,
|
1958
|
-
VoteRole,
|
1959
|
-
WebhookIdentityType,
|
1960
|
-
Width,
|
1961
|
-
WidthType,
|
1962
|
-
getPost,
|
1963
|
-
getPostBySlug,
|
1964
|
-
getPostMetrics,
|
1965
|
-
getTotalPosts,
|
1966
|
-
listPosts,
|
1967
|
-
onPostCreated,
|
1968
|
-
onPostDeleted,
|
1969
|
-
onPostLiked,
|
1970
|
-
onPostUnliked,
|
1971
|
-
onPostUpdated,
|
1972
|
-
queryPostCountStats,
|
1973
|
-
queryPosts
|
1974
|
-
});
|
1975
|
-
//# sourceMappingURL=index.js.map
|