@wix/auto_sdk_blog_posts 1.0.21 → 1.0.23

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