@wix/auto_sdk_blog_posts 1.0.17 → 1.0.19
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/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-CEsWp0Fx.d.mts} +535 -748
- package/build/{internal/cjs/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-CEsWp0Fx.d.ts} +535 -748
- package/build/index.d.mts +130 -0
- package/build/index.d.ts +130 -0
- package/build/index.js +1975 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1899 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/blog-v3-post-posts.types.d.ts → internal/blog-v3-post-posts.universal-nU7XoyIE.d.mts} +542 -748
- package/build/internal/{es/src/blog-v3-post-posts.types.d.ts → blog-v3-post-posts.universal-nU7XoyIE.d.ts} +542 -748
- package/build/internal/index.d.mts +130 -0
- package/build/internal/index.d.ts +130 -0
- package/build/internal/index.js +1975 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1899 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +2094 -0
- package/build/internal/meta.d.ts +2094 -0
- package/build/internal/meta.js +1002 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +969 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +2094 -0
- package/build/meta.d.ts +2094 -0
- package/build/meta.js +1002 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +969 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/cjs/src/blog-v3-post-posts.context.js +0 -82
- package/build/cjs/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/cjs/src/blog-v3-post-posts.http.js +0 -892
- package/build/cjs/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/cjs/src/blog-v3-post-posts.meta.js +0 -161
- package/build/cjs/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/cjs/src/blog-v3-post-posts.public.js +0 -320
- package/build/cjs/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.types.js +0 -485
- package/build/cjs/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/cjs/src/blog-v3-post-posts.universal.d.ts +0 -4037
- package/build/cjs/src/blog-v3-post-posts.universal.js +0 -966
- package/build/cjs/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/es/src/blog-v3-post-posts.context.js +0 -37
- package/build/es/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/es/src/blog-v3-post-posts.http.js +0 -882
- package/build/es/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/es/src/blog-v3-post-posts.meta.js +0 -128
- package/build/es/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/es/src/blog-v3-post-posts.public.js +0 -268
- package/build/es/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.types.js +0 -482
- package/build/es/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/es/src/blog-v3-post-posts.universal.d.ts +0 -4037
- package/build/es/src/blog-v3-post-posts.universal.js +0 -933
- package/build/es/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/internal/cjs/src/blog-v3-post-posts.context.js +0 -82
- package/build/internal/cjs/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/internal/cjs/src/blog-v3-post-posts.http.js +0 -892
- package/build/internal/cjs/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js +0 -161
- package/build/internal/cjs/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/internal/cjs/src/blog-v3-post-posts.public.js +0 -320
- package/build/internal/cjs/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.types.js +0 -485
- package/build/internal/cjs/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-post-posts.universal.d.ts +0 -4044
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js +0 -966
- package/build/internal/cjs/src/blog-v3-post-posts.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.context.d.ts +0 -37
- package/build/internal/es/src/blog-v3-post-posts.context.js +0 -37
- package/build/internal/es/src/blog-v3-post-posts.context.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.http.d.ts +0 -59
- package/build/internal/es/src/blog-v3-post-posts.http.js +0 -882
- package/build/internal/es/src/blog-v3-post-posts.http.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.meta.d.ts +0 -25
- package/build/internal/es/src/blog-v3-post-posts.meta.js +0 -128
- package/build/internal/es/src/blog-v3-post-posts.meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.public.d.ts +0 -99
- package/build/internal/es/src/blog-v3-post-posts.public.js +0 -268
- package/build/internal/es/src/blog-v3-post-posts.public.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.types.js +0 -482
- package/build/internal/es/src/blog-v3-post-posts.types.js.map +0 -1
- package/build/internal/es/src/blog-v3-post-posts.universal.d.ts +0 -4044
- package/build/internal/es/src/blog-v3-post-posts.universal.js +0 -933
- package/build/internal/es/src/blog-v3-post-posts.universal.js.map +0 -1
package/build/meta.mjs
ADDED
@@ -0,0 +1,969 @@
|
|
1
|
+
// src/blog-v3-post-posts.http.ts
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
3
|
+
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
4
|
+
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
5
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
6
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
7
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
8
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
9
|
+
function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
|
10
|
+
const domainToMappings = {
|
11
|
+
"api._api_base_domain_": [
|
12
|
+
{
|
13
|
+
srcPath: "/communities-blog-node-api",
|
14
|
+
destPath: ""
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"www._base_domain_": [
|
18
|
+
{
|
19
|
+
srcPath: "/_api/communities-blog-node-api",
|
20
|
+
destPath: ""
|
21
|
+
},
|
22
|
+
{
|
23
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
24
|
+
destPath: "/v3/posts"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
28
|
+
destPath: "/v2/stats"
|
29
|
+
}
|
30
|
+
],
|
31
|
+
"apps._base_domain_": [
|
32
|
+
{
|
33
|
+
srcPath: "/_api/communities-blog-node-api",
|
34
|
+
destPath: ""
|
35
|
+
},
|
36
|
+
{
|
37
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
38
|
+
destPath: "/v3/posts"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
42
|
+
destPath: "/v2/stats"
|
43
|
+
}
|
44
|
+
],
|
45
|
+
_: [
|
46
|
+
{
|
47
|
+
srcPath: "/_api/communities-blog-node-api",
|
48
|
+
destPath: ""
|
49
|
+
},
|
50
|
+
{
|
51
|
+
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
52
|
+
destPath: "/_api/blogs/this"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
56
|
+
destPath: "/_api/categories"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
60
|
+
destPath: "/_api/site-properties"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
64
|
+
destPath: "/_api/posts/content"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
68
|
+
destPath: "/v3/posts"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
72
|
+
destPath: "/v2/stats"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"editor._base_domain_": [
|
76
|
+
{
|
77
|
+
srcPath: "/_api/communities-blog-node-api",
|
78
|
+
destPath: ""
|
79
|
+
}
|
80
|
+
],
|
81
|
+
"blocks._base_domain_": [
|
82
|
+
{
|
83
|
+
srcPath: "/_api/communities-blog-node-api",
|
84
|
+
destPath: ""
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"create.editorx": [
|
88
|
+
{
|
89
|
+
srcPath: "/_api/communities-blog-node-api",
|
90
|
+
destPath: ""
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"*.dev.wix-code.com": [
|
94
|
+
{
|
95
|
+
srcPath: "/_api/communities-blog-node-api",
|
96
|
+
destPath: ""
|
97
|
+
}
|
98
|
+
],
|
99
|
+
"*.pub.wix-code.com": [
|
100
|
+
{
|
101
|
+
srcPath: "/_api/communities-blog-node-api",
|
102
|
+
destPath: ""
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"bo._base_domain_": [
|
106
|
+
{
|
107
|
+
srcPath: "/_api/communities-blog-node-api",
|
108
|
+
destPath: ""
|
109
|
+
},
|
110
|
+
{
|
111
|
+
srcPath: "/_api/communities-blog-node-api",
|
112
|
+
destPath: ""
|
113
|
+
}
|
114
|
+
],
|
115
|
+
"wixbo.ai": [
|
116
|
+
{
|
117
|
+
srcPath: "/_api/communities-blog-node-api",
|
118
|
+
destPath: ""
|
119
|
+
},
|
120
|
+
{
|
121
|
+
srcPath: "/_api/communities-blog-node-api",
|
122
|
+
destPath: ""
|
123
|
+
}
|
124
|
+
],
|
125
|
+
"wix-bo.com": [
|
126
|
+
{
|
127
|
+
srcPath: "/_api/communities-blog-node-api",
|
128
|
+
destPath: ""
|
129
|
+
},
|
130
|
+
{
|
131
|
+
srcPath: "/_api/communities-blog-node-api",
|
132
|
+
destPath: ""
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"manage._base_domain_": [
|
136
|
+
{
|
137
|
+
srcPath: "/_api/communities-blog-node-api",
|
138
|
+
destPath: ""
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"social-blog._base_domain_": [
|
142
|
+
{
|
143
|
+
srcPath: "/_api/communities-blog-node-api",
|
144
|
+
destPath: ""
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"editor.wixapps.net": [
|
148
|
+
{
|
149
|
+
srcPath: "/_api/communities-blog-node-api",
|
150
|
+
destPath: ""
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"dev._base_domain_": [
|
154
|
+
{
|
155
|
+
srcPath: "/_api/communities-blog-node-api",
|
156
|
+
destPath: ""
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"www.wixapis.com": [
|
160
|
+
{
|
161
|
+
srcPath: "/blog/v2",
|
162
|
+
destPath: "/v2"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
srcPath: "/blog/v3",
|
166
|
+
destPath: "/v3"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
srcPath: "/v2/stats",
|
170
|
+
destPath: "/v2/stats"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
srcPath: "/v3/posts",
|
174
|
+
destPath: "/v3/posts"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
srcPath: "/blog/v3/posts",
|
178
|
+
destPath: "/v3/posts"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
srcPath: "/blog/v2/stats",
|
182
|
+
destPath: "/v2/stats"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
srcPath: "/_api/v3/posts",
|
186
|
+
destPath: "/v3/posts"
|
187
|
+
}
|
188
|
+
]
|
189
|
+
};
|
190
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
191
|
+
}
|
192
|
+
function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
|
193
|
+
const domainToMappings = {
|
194
|
+
"api._api_base_domain_": [
|
195
|
+
{
|
196
|
+
srcPath: "/communities-blog-node-api",
|
197
|
+
destPath: ""
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"www._base_domain_": [
|
201
|
+
{
|
202
|
+
srcPath: "/_api/communities-blog-node-api",
|
203
|
+
destPath: ""
|
204
|
+
},
|
205
|
+
{
|
206
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
207
|
+
destPath: "/v3/posts"
|
208
|
+
},
|
209
|
+
{
|
210
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
211
|
+
destPath: "/v2/stats"
|
212
|
+
}
|
213
|
+
],
|
214
|
+
"apps._base_domain_": [
|
215
|
+
{
|
216
|
+
srcPath: "/_api/communities-blog-node-api",
|
217
|
+
destPath: ""
|
218
|
+
},
|
219
|
+
{
|
220
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
221
|
+
destPath: "/v3/posts"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
225
|
+
destPath: "/v2/stats"
|
226
|
+
}
|
227
|
+
],
|
228
|
+
_: [
|
229
|
+
{
|
230
|
+
srcPath: "/_api/communities-blog-node-api",
|
231
|
+
destPath: ""
|
232
|
+
},
|
233
|
+
{
|
234
|
+
srcPath: "/_api/communities-blog-node-api/_api/blogs/this",
|
235
|
+
destPath: "/_api/blogs/this"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
srcPath: "/_api/communities-blog-node-api/_api/categories",
|
239
|
+
destPath: "/_api/categories"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
srcPath: "/_api/communities-blog-node-api/_api/site-properties",
|
243
|
+
destPath: "/_api/site-properties"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
srcPath: "/_api/communities-blog-node-api/_api/posts/content",
|
247
|
+
destPath: "/_api/posts/content"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
srcPath: "/_api/communities-blog-node-api/v3/posts",
|
251
|
+
destPath: "/v3/posts"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
srcPath: "/_api/communities-blog-node-api/v2/stats",
|
255
|
+
destPath: "/v2/stats"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"editor._base_domain_": [
|
259
|
+
{
|
260
|
+
srcPath: "/_api/communities-blog-node-api",
|
261
|
+
destPath: ""
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"blocks._base_domain_": [
|
265
|
+
{
|
266
|
+
srcPath: "/_api/communities-blog-node-api",
|
267
|
+
destPath: ""
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"create.editorx": [
|
271
|
+
{
|
272
|
+
srcPath: "/_api/communities-blog-node-api",
|
273
|
+
destPath: ""
|
274
|
+
}
|
275
|
+
],
|
276
|
+
"*.dev.wix-code.com": [
|
277
|
+
{
|
278
|
+
srcPath: "/_api/communities-blog-node-api",
|
279
|
+
destPath: ""
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"*.pub.wix-code.com": [
|
283
|
+
{
|
284
|
+
srcPath: "/_api/communities-blog-node-api",
|
285
|
+
destPath: ""
|
286
|
+
}
|
287
|
+
],
|
288
|
+
"bo._base_domain_": [
|
289
|
+
{
|
290
|
+
srcPath: "/_api/communities-blog-node-api",
|
291
|
+
destPath: ""
|
292
|
+
},
|
293
|
+
{
|
294
|
+
srcPath: "/_api/communities-blog-node-api",
|
295
|
+
destPath: ""
|
296
|
+
}
|
297
|
+
],
|
298
|
+
"wixbo.ai": [
|
299
|
+
{
|
300
|
+
srcPath: "/_api/communities-blog-node-api",
|
301
|
+
destPath: ""
|
302
|
+
},
|
303
|
+
{
|
304
|
+
srcPath: "/_api/communities-blog-node-api",
|
305
|
+
destPath: ""
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"wix-bo.com": [
|
309
|
+
{
|
310
|
+
srcPath: "/_api/communities-blog-node-api",
|
311
|
+
destPath: ""
|
312
|
+
},
|
313
|
+
{
|
314
|
+
srcPath: "/_api/communities-blog-node-api",
|
315
|
+
destPath: ""
|
316
|
+
}
|
317
|
+
],
|
318
|
+
"manage._base_domain_": [
|
319
|
+
{
|
320
|
+
srcPath: "/_api/communities-blog-node-api",
|
321
|
+
destPath: ""
|
322
|
+
}
|
323
|
+
],
|
324
|
+
"social-blog._base_domain_": [
|
325
|
+
{
|
326
|
+
srcPath: "/_api/communities-blog-node-api",
|
327
|
+
destPath: ""
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"editor.wixapps.net": [
|
331
|
+
{
|
332
|
+
srcPath: "/_api/communities-blog-node-api",
|
333
|
+
destPath: ""
|
334
|
+
}
|
335
|
+
],
|
336
|
+
"dev._base_domain_": [
|
337
|
+
{
|
338
|
+
srcPath: "/_api/communities-blog-node-api",
|
339
|
+
destPath: ""
|
340
|
+
}
|
341
|
+
],
|
342
|
+
"www.wixapis.com": [
|
343
|
+
{
|
344
|
+
srcPath: "/blog/v2",
|
345
|
+
destPath: "/v2"
|
346
|
+
},
|
347
|
+
{
|
348
|
+
srcPath: "/blog/v3",
|
349
|
+
destPath: "/v3"
|
350
|
+
},
|
351
|
+
{
|
352
|
+
srcPath: "/v2/stats",
|
353
|
+
destPath: "/v2/stats"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
srcPath: "/v3/posts",
|
357
|
+
destPath: "/v3/posts"
|
358
|
+
},
|
359
|
+
{
|
360
|
+
srcPath: "/blog/v3/posts",
|
361
|
+
destPath: "/v3/posts"
|
362
|
+
},
|
363
|
+
{
|
364
|
+
srcPath: "/blog/v2/stats",
|
365
|
+
destPath: "/v2/stats"
|
366
|
+
},
|
367
|
+
{
|
368
|
+
srcPath: "/_api/v3/posts",
|
369
|
+
destPath: "/v3/posts"
|
370
|
+
}
|
371
|
+
]
|
372
|
+
};
|
373
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
374
|
+
}
|
375
|
+
var PACKAGE_NAME = "@wix/auto_sdk_blog_posts";
|
376
|
+
function queryPostCountStats(payload) {
|
377
|
+
function __queryPostCountStats({ host }) {
|
378
|
+
const serializedData = transformPaths(payload, [
|
379
|
+
{
|
380
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
381
|
+
paths: [{ path: "rangeStart" }, { path: "rangeEnd" }]
|
382
|
+
}
|
383
|
+
]);
|
384
|
+
const metadata = {
|
385
|
+
entityFqdn: "wix.blog.v3.post",
|
386
|
+
method: "GET",
|
387
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats",
|
388
|
+
packageName: PACKAGE_NAME,
|
389
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
|
390
|
+
protoPath: "/v2/stats/post/count",
|
391
|
+
data: serializedData,
|
392
|
+
host
|
393
|
+
}),
|
394
|
+
params: toURLSearchParams(serializedData),
|
395
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
396
|
+
{
|
397
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
398
|
+
paths: [{ path: "stats.periodStart" }]
|
399
|
+
}
|
400
|
+
])
|
401
|
+
};
|
402
|
+
return metadata;
|
403
|
+
}
|
404
|
+
return __queryPostCountStats;
|
405
|
+
}
|
406
|
+
function getTotalPosts(payload) {
|
407
|
+
function __getTotalPosts({ host }) {
|
408
|
+
const metadata = {
|
409
|
+
entityFqdn: "wix.blog.v3.post",
|
410
|
+
method: "GET",
|
411
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts",
|
412
|
+
packageName: PACKAGE_NAME,
|
413
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
|
414
|
+
protoPath: "/v2/stats/posts/total",
|
415
|
+
data: payload,
|
416
|
+
host
|
417
|
+
}),
|
418
|
+
params: toURLSearchParams(payload)
|
419
|
+
};
|
420
|
+
return metadata;
|
421
|
+
}
|
422
|
+
return __getTotalPosts;
|
423
|
+
}
|
424
|
+
function getPost(payload) {
|
425
|
+
function __getPost({ host }) {
|
426
|
+
const metadata = {
|
427
|
+
entityFqdn: "wix.blog.v3.post",
|
428
|
+
method: "GET",
|
429
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost",
|
430
|
+
packageName: PACKAGE_NAME,
|
431
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
432
|
+
protoPath: "/v3/posts/{postId}",
|
433
|
+
data: payload,
|
434
|
+
host
|
435
|
+
}),
|
436
|
+
params: toURLSearchParams(payload),
|
437
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
438
|
+
{
|
439
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
440
|
+
paths: [
|
441
|
+
{ path: "post.firstPublishedDate" },
|
442
|
+
{ path: "post.lastPublishedDate" },
|
443
|
+
{ path: "post.coverMedia.image.urlExpirationDate" },
|
444
|
+
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
445
|
+
{ path: "post.heroImage.urlExpirationDate" },
|
446
|
+
{ path: "post.richContent.metadata.createdTimestamp" },
|
447
|
+
{ path: "post.richContent.metadata.updatedTimestamp" },
|
448
|
+
{ path: "post.moderationDetails.submittedDate" },
|
449
|
+
{ path: "post.moderationDetails.moderationDate" },
|
450
|
+
{ path: "post.media.wixMedia.image.urlExpirationDate" },
|
451
|
+
{ path: "post.media.wixMedia.videoV2.urlExpirationDate" },
|
452
|
+
{
|
453
|
+
path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
454
|
+
},
|
455
|
+
{
|
456
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
457
|
+
},
|
458
|
+
{ path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
|
459
|
+
]
|
460
|
+
},
|
461
|
+
{
|
462
|
+
transformFn: transformRESTBytesToSDKBytes,
|
463
|
+
paths: [{ path: "post.richContentCompressed" }]
|
464
|
+
},
|
465
|
+
{
|
466
|
+
transformFn: transformRESTFloatToSDKFloat,
|
467
|
+
paths: [
|
468
|
+
{ path: "post.coverMedia.image.focalPoint.x" },
|
469
|
+
{ path: "post.coverMedia.image.focalPoint.y" },
|
470
|
+
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
471
|
+
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
472
|
+
{ path: "post.heroImage.focalPoint.x" },
|
473
|
+
{ path: "post.heroImage.focalPoint.y" },
|
474
|
+
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
475
|
+
{ path: "post.media.wixMedia.image.focalPoint.y" },
|
476
|
+
{
|
477
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
478
|
+
},
|
479
|
+
{
|
480
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
481
|
+
},
|
482
|
+
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
|
483
|
+
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
|
484
|
+
{ path: "post.metrics.averageRating" },
|
485
|
+
{
|
486
|
+
path: "post.richContent.nodes.galleryData.items.image.media.duration"
|
487
|
+
},
|
488
|
+
{
|
489
|
+
path: "post.richContent.nodes.galleryData.items.video.media.duration"
|
490
|
+
},
|
491
|
+
{
|
492
|
+
path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
493
|
+
},
|
494
|
+
{ path: "post.richContent.nodes.galleryData.options.item.ratio" },
|
495
|
+
{ path: "post.richContent.nodes.imageData.image.duration" },
|
496
|
+
{ path: "post.richContent.nodes.mapData.mapSettings.lat" },
|
497
|
+
{ path: "post.richContent.nodes.mapData.mapSettings.lng" },
|
498
|
+
{ path: "post.richContent.nodes.pollData.poll.image.duration" },
|
499
|
+
{
|
500
|
+
path: "post.richContent.nodes.pollData.poll.options.image.duration"
|
501
|
+
},
|
502
|
+
{
|
503
|
+
path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
|
504
|
+
},
|
505
|
+
{ path: "post.richContent.nodes.appEmbedData.image.duration" },
|
506
|
+
{ path: "post.richContent.nodes.videoData.video.duration" },
|
507
|
+
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
508
|
+
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
509
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
510
|
+
]
|
511
|
+
}
|
512
|
+
])
|
513
|
+
};
|
514
|
+
return metadata;
|
515
|
+
}
|
516
|
+
return __getPost;
|
517
|
+
}
|
518
|
+
function getPostBySlug(payload) {
|
519
|
+
function __getPostBySlug({ host }) {
|
520
|
+
const metadata = {
|
521
|
+
entityFqdn: "wix.blog.v3.post",
|
522
|
+
method: "GET",
|
523
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostBySlug",
|
524
|
+
packageName: PACKAGE_NAME,
|
525
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
526
|
+
protoPath: "/v3/posts/slugs/{slug}",
|
527
|
+
data: payload,
|
528
|
+
host
|
529
|
+
}),
|
530
|
+
params: toURLSearchParams(payload),
|
531
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
532
|
+
{
|
533
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
534
|
+
paths: [
|
535
|
+
{ path: "post.firstPublishedDate" },
|
536
|
+
{ path: "post.lastPublishedDate" },
|
537
|
+
{ path: "post.coverMedia.image.urlExpirationDate" },
|
538
|
+
{ path: "post.coverMedia.video.thumbnail.urlExpirationDate" },
|
539
|
+
{ path: "post.heroImage.urlExpirationDate" },
|
540
|
+
{ path: "post.richContent.metadata.createdTimestamp" },
|
541
|
+
{ path: "post.richContent.metadata.updatedTimestamp" },
|
542
|
+
{ path: "post.moderationDetails.submittedDate" },
|
543
|
+
{ path: "post.moderationDetails.moderationDate" },
|
544
|
+
{ path: "post.media.wixMedia.image.urlExpirationDate" },
|
545
|
+
{ path: "post.media.wixMedia.videoV2.urlExpirationDate" },
|
546
|
+
{
|
547
|
+
path: "post.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
551
|
+
},
|
552
|
+
{ path: "post.media.wixMedia.videoV2.posters.urlExpirationDate" }
|
553
|
+
]
|
554
|
+
},
|
555
|
+
{
|
556
|
+
transformFn: transformRESTBytesToSDKBytes,
|
557
|
+
paths: [{ path: "post.richContentCompressed" }]
|
558
|
+
},
|
559
|
+
{
|
560
|
+
transformFn: transformRESTFloatToSDKFloat,
|
561
|
+
paths: [
|
562
|
+
{ path: "post.coverMedia.image.focalPoint.x" },
|
563
|
+
{ path: "post.coverMedia.image.focalPoint.y" },
|
564
|
+
{ path: "post.coverMedia.video.thumbnail.focalPoint.x" },
|
565
|
+
{ path: "post.coverMedia.video.thumbnail.focalPoint.y" },
|
566
|
+
{ path: "post.heroImage.focalPoint.x" },
|
567
|
+
{ path: "post.heroImage.focalPoint.y" },
|
568
|
+
{ path: "post.media.wixMedia.image.focalPoint.x" },
|
569
|
+
{ path: "post.media.wixMedia.image.focalPoint.y" },
|
570
|
+
{
|
571
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
path: "post.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
575
|
+
},
|
576
|
+
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.x" },
|
577
|
+
{ path: "post.media.wixMedia.videoV2.posters.focalPoint.y" },
|
578
|
+
{ path: "post.metrics.averageRating" },
|
579
|
+
{
|
580
|
+
path: "post.richContent.nodes.galleryData.items.image.media.duration"
|
581
|
+
},
|
582
|
+
{
|
583
|
+
path: "post.richContent.nodes.galleryData.items.video.media.duration"
|
584
|
+
},
|
585
|
+
{
|
586
|
+
path: "post.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
587
|
+
},
|
588
|
+
{ path: "post.richContent.nodes.galleryData.options.item.ratio" },
|
589
|
+
{ path: "post.richContent.nodes.imageData.image.duration" },
|
590
|
+
{ path: "post.richContent.nodes.mapData.mapSettings.lat" },
|
591
|
+
{ path: "post.richContent.nodes.mapData.mapSettings.lng" },
|
592
|
+
{ path: "post.richContent.nodes.pollData.poll.image.duration" },
|
593
|
+
{
|
594
|
+
path: "post.richContent.nodes.pollData.poll.options.image.duration"
|
595
|
+
},
|
596
|
+
{
|
597
|
+
path: "post.richContent.nodes.pollData.design.poll.background.image.duration"
|
598
|
+
},
|
599
|
+
{ path: "post.richContent.nodes.appEmbedData.image.duration" },
|
600
|
+
{ path: "post.richContent.nodes.videoData.video.duration" },
|
601
|
+
{ path: "post.richContent.nodes.videoData.thumbnail.duration" },
|
602
|
+
{ path: "post.richContent.nodes.audioData.audio.duration" },
|
603
|
+
{ path: "post.richContent.nodes.audioData.coverImage.duration" }
|
604
|
+
]
|
605
|
+
}
|
606
|
+
])
|
607
|
+
};
|
608
|
+
return metadata;
|
609
|
+
}
|
610
|
+
return __getPostBySlug;
|
611
|
+
}
|
612
|
+
function listPosts(payload) {
|
613
|
+
function __listPosts({ host }) {
|
614
|
+
const metadata = {
|
615
|
+
entityFqdn: "wix.blog.v3.post",
|
616
|
+
method: "GET",
|
617
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts",
|
618
|
+
packageName: PACKAGE_NAME,
|
619
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
620
|
+
protoPath: "/v3/posts",
|
621
|
+
data: payload,
|
622
|
+
host
|
623
|
+
}),
|
624
|
+
params: toURLSearchParams(payload),
|
625
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
626
|
+
{
|
627
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
628
|
+
paths: [
|
629
|
+
{ path: "posts.firstPublishedDate" },
|
630
|
+
{ path: "posts.lastPublishedDate" },
|
631
|
+
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
632
|
+
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
633
|
+
{ path: "posts.heroImage.urlExpirationDate" },
|
634
|
+
{ path: "posts.richContent.metadata.createdTimestamp" },
|
635
|
+
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
636
|
+
{ path: "posts.moderationDetails.submittedDate" },
|
637
|
+
{ path: "posts.moderationDetails.moderationDate" },
|
638
|
+
{ path: "posts.media.wixMedia.image.urlExpirationDate" },
|
639
|
+
{ path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
|
640
|
+
{
|
641
|
+
path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
642
|
+
},
|
643
|
+
{
|
644
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
645
|
+
},
|
646
|
+
{
|
647
|
+
path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
|
648
|
+
}
|
649
|
+
]
|
650
|
+
},
|
651
|
+
{
|
652
|
+
transformFn: transformRESTBytesToSDKBytes,
|
653
|
+
paths: [{ path: "posts.richContentCompressed" }]
|
654
|
+
},
|
655
|
+
{
|
656
|
+
transformFn: transformRESTFloatToSDKFloat,
|
657
|
+
paths: [
|
658
|
+
{ path: "posts.coverMedia.image.focalPoint.x" },
|
659
|
+
{ path: "posts.coverMedia.image.focalPoint.y" },
|
660
|
+
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
661
|
+
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
662
|
+
{ path: "posts.heroImage.focalPoint.x" },
|
663
|
+
{ path: "posts.heroImage.focalPoint.y" },
|
664
|
+
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
665
|
+
{ path: "posts.media.wixMedia.image.focalPoint.y" },
|
666
|
+
{
|
667
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
668
|
+
},
|
669
|
+
{
|
670
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
671
|
+
},
|
672
|
+
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
|
673
|
+
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
|
674
|
+
{ path: "posts.metrics.averageRating" },
|
675
|
+
{
|
676
|
+
path: "posts.richContent.nodes.galleryData.items.image.media.duration"
|
677
|
+
},
|
678
|
+
{
|
679
|
+
path: "posts.richContent.nodes.galleryData.items.video.media.duration"
|
680
|
+
},
|
681
|
+
{
|
682
|
+
path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
683
|
+
},
|
684
|
+
{
|
685
|
+
path: "posts.richContent.nodes.galleryData.options.item.ratio"
|
686
|
+
},
|
687
|
+
{ path: "posts.richContent.nodes.imageData.image.duration" },
|
688
|
+
{ path: "posts.richContent.nodes.mapData.mapSettings.lat" },
|
689
|
+
{ path: "posts.richContent.nodes.mapData.mapSettings.lng" },
|
690
|
+
{ path: "posts.richContent.nodes.pollData.poll.image.duration" },
|
691
|
+
{
|
692
|
+
path: "posts.richContent.nodes.pollData.poll.options.image.duration"
|
693
|
+
},
|
694
|
+
{
|
695
|
+
path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
|
696
|
+
},
|
697
|
+
{ path: "posts.richContent.nodes.appEmbedData.image.duration" },
|
698
|
+
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
699
|
+
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
700
|
+
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
701
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
702
|
+
]
|
703
|
+
}
|
704
|
+
])
|
705
|
+
};
|
706
|
+
return metadata;
|
707
|
+
}
|
708
|
+
return __listPosts;
|
709
|
+
}
|
710
|
+
function queryPosts(payload) {
|
711
|
+
function __queryPosts({ host }) {
|
712
|
+
const metadata = {
|
713
|
+
entityFqdn: "wix.blog.v3.post",
|
714
|
+
method: "POST",
|
715
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts",
|
716
|
+
packageName: PACKAGE_NAME,
|
717
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
718
|
+
protoPath: "/v3/posts/query",
|
719
|
+
data: payload,
|
720
|
+
host
|
721
|
+
}),
|
722
|
+
data: payload,
|
723
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
724
|
+
{
|
725
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
726
|
+
paths: [
|
727
|
+
{ path: "posts.firstPublishedDate" },
|
728
|
+
{ path: "posts.lastPublishedDate" },
|
729
|
+
{ path: "posts.coverMedia.image.urlExpirationDate" },
|
730
|
+
{ path: "posts.coverMedia.video.thumbnail.urlExpirationDate" },
|
731
|
+
{ path: "posts.heroImage.urlExpirationDate" },
|
732
|
+
{ path: "posts.richContent.metadata.createdTimestamp" },
|
733
|
+
{ path: "posts.richContent.metadata.updatedTimestamp" },
|
734
|
+
{ path: "posts.moderationDetails.submittedDate" },
|
735
|
+
{ path: "posts.moderationDetails.moderationDate" },
|
736
|
+
{ path: "posts.media.wixMedia.image.urlExpirationDate" },
|
737
|
+
{ path: "posts.media.wixMedia.videoV2.urlExpirationDate" },
|
738
|
+
{
|
739
|
+
path: "posts.media.wixMedia.videoV2.resolutions.urlExpirationDate"
|
740
|
+
},
|
741
|
+
{
|
742
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate"
|
743
|
+
},
|
744
|
+
{
|
745
|
+
path: "posts.media.wixMedia.videoV2.posters.urlExpirationDate"
|
746
|
+
}
|
747
|
+
]
|
748
|
+
},
|
749
|
+
{
|
750
|
+
transformFn: transformRESTBytesToSDKBytes,
|
751
|
+
paths: [{ path: "posts.richContentCompressed" }]
|
752
|
+
},
|
753
|
+
{
|
754
|
+
transformFn: transformRESTFloatToSDKFloat,
|
755
|
+
paths: [
|
756
|
+
{ path: "posts.coverMedia.image.focalPoint.x" },
|
757
|
+
{ path: "posts.coverMedia.image.focalPoint.y" },
|
758
|
+
{ path: "posts.coverMedia.video.thumbnail.focalPoint.x" },
|
759
|
+
{ path: "posts.coverMedia.video.thumbnail.focalPoint.y" },
|
760
|
+
{ path: "posts.heroImage.focalPoint.x" },
|
761
|
+
{ path: "posts.heroImage.focalPoint.y" },
|
762
|
+
{ path: "posts.media.wixMedia.image.focalPoint.x" },
|
763
|
+
{ path: "posts.media.wixMedia.image.focalPoint.y" },
|
764
|
+
{
|
765
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x"
|
766
|
+
},
|
767
|
+
{
|
768
|
+
path: "posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y"
|
769
|
+
},
|
770
|
+
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.x" },
|
771
|
+
{ path: "posts.media.wixMedia.videoV2.posters.focalPoint.y" },
|
772
|
+
{ path: "posts.metrics.averageRating" },
|
773
|
+
{
|
774
|
+
path: "posts.richContent.nodes.galleryData.items.image.media.duration"
|
775
|
+
},
|
776
|
+
{
|
777
|
+
path: "posts.richContent.nodes.galleryData.items.video.media.duration"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
path: "posts.richContent.nodes.galleryData.items.video.thumbnail.duration"
|
781
|
+
},
|
782
|
+
{
|
783
|
+
path: "posts.richContent.nodes.galleryData.options.item.ratio"
|
784
|
+
},
|
785
|
+
{ path: "posts.richContent.nodes.imageData.image.duration" },
|
786
|
+
{ path: "posts.richContent.nodes.mapData.mapSettings.lat" },
|
787
|
+
{ path: "posts.richContent.nodes.mapData.mapSettings.lng" },
|
788
|
+
{ path: "posts.richContent.nodes.pollData.poll.image.duration" },
|
789
|
+
{
|
790
|
+
path: "posts.richContent.nodes.pollData.poll.options.image.duration"
|
791
|
+
},
|
792
|
+
{
|
793
|
+
path: "posts.richContent.nodes.pollData.design.poll.background.image.duration"
|
794
|
+
},
|
795
|
+
{ path: "posts.richContent.nodes.appEmbedData.image.duration" },
|
796
|
+
{ path: "posts.richContent.nodes.videoData.video.duration" },
|
797
|
+
{ path: "posts.richContent.nodes.videoData.thumbnail.duration" },
|
798
|
+
{ path: "posts.richContent.nodes.audioData.audio.duration" },
|
799
|
+
{ path: "posts.richContent.nodes.audioData.coverImage.duration" }
|
800
|
+
]
|
801
|
+
}
|
802
|
+
])
|
803
|
+
};
|
804
|
+
return metadata;
|
805
|
+
}
|
806
|
+
return __queryPosts;
|
807
|
+
}
|
808
|
+
function getPostMetrics(payload) {
|
809
|
+
function __getPostMetrics({ host }) {
|
810
|
+
const metadata = {
|
811
|
+
entityFqdn: "wix.blog.v3.post",
|
812
|
+
method: "GET",
|
813
|
+
methodFqn: "com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics",
|
814
|
+
packageName: PACKAGE_NAME,
|
815
|
+
url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
|
816
|
+
protoPath: "/v3/posts/{postId}/metrics",
|
817
|
+
data: payload,
|
818
|
+
host
|
819
|
+
}),
|
820
|
+
params: toURLSearchParams(payload),
|
821
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
822
|
+
{
|
823
|
+
transformFn: transformRESTFloatToSDKFloat,
|
824
|
+
paths: [{ path: "metrics.averageRating" }]
|
825
|
+
}
|
826
|
+
])
|
827
|
+
};
|
828
|
+
return metadata;
|
829
|
+
}
|
830
|
+
return __getPostMetrics;
|
831
|
+
}
|
832
|
+
|
833
|
+
// src/blog-v3-post-posts.meta.ts
|
834
|
+
function queryPostCountStats2() {
|
835
|
+
const payload = {};
|
836
|
+
const getRequestOptions = queryPostCountStats(payload);
|
837
|
+
const getUrl = (context) => {
|
838
|
+
const { url } = getRequestOptions(context);
|
839
|
+
return url;
|
840
|
+
};
|
841
|
+
return {
|
842
|
+
getUrl,
|
843
|
+
httpMethod: "GET",
|
844
|
+
path: "/v2/stats/post/count",
|
845
|
+
pathParams: {},
|
846
|
+
__requestType: null,
|
847
|
+
__originalRequestType: null,
|
848
|
+
__responseType: null,
|
849
|
+
__originalResponseType: null
|
850
|
+
};
|
851
|
+
}
|
852
|
+
function getTotalPosts2() {
|
853
|
+
const payload = {};
|
854
|
+
const getRequestOptions = getTotalPosts(payload);
|
855
|
+
const getUrl = (context) => {
|
856
|
+
const { url } = getRequestOptions(context);
|
857
|
+
return url;
|
858
|
+
};
|
859
|
+
return {
|
860
|
+
getUrl,
|
861
|
+
httpMethod: "GET",
|
862
|
+
path: "/v2/stats/posts/total",
|
863
|
+
pathParams: {},
|
864
|
+
__requestType: null,
|
865
|
+
__originalRequestType: null,
|
866
|
+
__responseType: null,
|
867
|
+
__originalResponseType: null
|
868
|
+
};
|
869
|
+
}
|
870
|
+
function getPost2() {
|
871
|
+
const payload = { postId: ":postId" };
|
872
|
+
const getRequestOptions = getPost(payload);
|
873
|
+
const getUrl = (context) => {
|
874
|
+
const { url } = getRequestOptions(context);
|
875
|
+
return url;
|
876
|
+
};
|
877
|
+
return {
|
878
|
+
getUrl,
|
879
|
+
httpMethod: "GET",
|
880
|
+
path: "/v3/posts/{postId}",
|
881
|
+
pathParams: { postId: "postId" },
|
882
|
+
__requestType: null,
|
883
|
+
__originalRequestType: null,
|
884
|
+
__responseType: null,
|
885
|
+
__originalResponseType: null
|
886
|
+
};
|
887
|
+
}
|
888
|
+
function getPostBySlug2() {
|
889
|
+
const payload = { slug: ":slug" };
|
890
|
+
const getRequestOptions = getPostBySlug(payload);
|
891
|
+
const getUrl = (context) => {
|
892
|
+
const { url } = getRequestOptions(context);
|
893
|
+
return url;
|
894
|
+
};
|
895
|
+
return {
|
896
|
+
getUrl,
|
897
|
+
httpMethod: "GET",
|
898
|
+
path: "/v3/posts/slugs/{slug}",
|
899
|
+
pathParams: { slug: "slug" },
|
900
|
+
__requestType: null,
|
901
|
+
__originalRequestType: null,
|
902
|
+
__responseType: null,
|
903
|
+
__originalResponseType: null
|
904
|
+
};
|
905
|
+
}
|
906
|
+
function listPosts2() {
|
907
|
+
const payload = {};
|
908
|
+
const getRequestOptions = listPosts(payload);
|
909
|
+
const getUrl = (context) => {
|
910
|
+
const { url } = getRequestOptions(context);
|
911
|
+
return url;
|
912
|
+
};
|
913
|
+
return {
|
914
|
+
getUrl,
|
915
|
+
httpMethod: "GET",
|
916
|
+
path: "/v3/posts",
|
917
|
+
pathParams: {},
|
918
|
+
__requestType: null,
|
919
|
+
__originalRequestType: null,
|
920
|
+
__responseType: null,
|
921
|
+
__originalResponseType: null
|
922
|
+
};
|
923
|
+
}
|
924
|
+
function queryPosts2() {
|
925
|
+
const payload = {};
|
926
|
+
const getRequestOptions = queryPosts(payload);
|
927
|
+
const getUrl = (context) => {
|
928
|
+
const { url } = getRequestOptions(context);
|
929
|
+
return url;
|
930
|
+
};
|
931
|
+
return {
|
932
|
+
getUrl,
|
933
|
+
httpMethod: "POST",
|
934
|
+
path: "/v3/posts/query",
|
935
|
+
pathParams: {},
|
936
|
+
__requestType: null,
|
937
|
+
__originalRequestType: null,
|
938
|
+
__responseType: null,
|
939
|
+
__originalResponseType: null
|
940
|
+
};
|
941
|
+
}
|
942
|
+
function getPostMetrics2() {
|
943
|
+
const payload = { postId: ":postId" };
|
944
|
+
const getRequestOptions = getPostMetrics(payload);
|
945
|
+
const getUrl = (context) => {
|
946
|
+
const { url } = getRequestOptions(context);
|
947
|
+
return url;
|
948
|
+
};
|
949
|
+
return {
|
950
|
+
getUrl,
|
951
|
+
httpMethod: "GET",
|
952
|
+
path: "/v3/posts/{postId}/metrics",
|
953
|
+
pathParams: { postId: "postId" },
|
954
|
+
__requestType: null,
|
955
|
+
__originalRequestType: null,
|
956
|
+
__responseType: null,
|
957
|
+
__originalResponseType: null
|
958
|
+
};
|
959
|
+
}
|
960
|
+
export {
|
961
|
+
getPost2 as getPost,
|
962
|
+
getPostBySlug2 as getPostBySlug,
|
963
|
+
getPostMetrics2 as getPostMetrics,
|
964
|
+
getTotalPosts2 as getTotalPosts,
|
965
|
+
listPosts2 as listPosts,
|
966
|
+
queryPostCountStats2 as queryPostCountStats,
|
967
|
+
queryPosts2 as queryPosts
|
968
|
+
};
|
969
|
+
//# sourceMappingURL=meta.mjs.map
|