@wix/blog 1.0.237 → 1.0.239

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 (169) hide show
  1. package/build/cjs/context.d.ts +4 -4
  2. package/build/cjs/context.js +4 -4
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +4 -4
  5. package/build/cjs/index.js +4 -4
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +4 -4
  8. package/build/cjs/meta.js +4 -4
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +4 -4
  11. package/build/es/context.js +4 -4
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +4 -4
  14. package/build/es/index.js +4 -4
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +4 -4
  17. package/build/es/meta.js +4 -4
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +14 -9
  20. package/build/cjs/index.typings.d.ts +0 -4
  21. package/build/cjs/index.typings.js +0 -31
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/blog-v3-category.context.d.ts +0 -6
  24. package/build/cjs/src/blog-v3-category.context.js +0 -53
  25. package/build/cjs/src/blog-v3-category.context.js.map +0 -1
  26. package/build/cjs/src/blog-v3-category.http.d.ts +0 -43
  27. package/build/cjs/src/blog-v3-category.http.js +0 -355
  28. package/build/cjs/src/blog-v3-category.http.js.map +0 -1
  29. package/build/cjs/src/blog-v3-category.meta.d.ts +0 -20
  30. package/build/cjs/src/blog-v3-category.meta.js +0 -104
  31. package/build/cjs/src/blog-v3-category.meta.js.map +0 -1
  32. package/build/cjs/src/blog-v3-category.public.d.ts +0 -43
  33. package/build/cjs/src/blog-v3-category.public.js +0 -37
  34. package/build/cjs/src/blog-v3-category.public.js.map +0 -1
  35. package/build/cjs/src/blog-v3-category.types.d.ts +0 -910
  36. package/build/cjs/src/blog-v3-category.types.js +0 -24
  37. package/build/cjs/src/blog-v3-category.types.js.map +0 -1
  38. package/build/cjs/src/blog-v3-category.universal.d.ts +0 -956
  39. package/build/cjs/src/blog-v3-category.universal.js +0 -383
  40. package/build/cjs/src/blog-v3-category.universal.js.map +0 -1
  41. package/build/cjs/src/blog-v3-draft.context.d.ts +0 -16
  42. package/build/cjs/src/blog-v3-draft.context.js +0 -173
  43. package/build/cjs/src/blog-v3-draft.context.js.map +0 -1
  44. package/build/cjs/src/blog-v3-draft.http.d.ts +0 -79
  45. package/build/cjs/src/blog-v3-draft.http.js +0 -1498
  46. package/build/cjs/src/blog-v3-draft.http.js.map +0 -1
  47. package/build/cjs/src/blog-v3-draft.meta.d.ts +0 -40
  48. package/build/cjs/src/blog-v3-draft.meta.js +0 -294
  49. package/build/cjs/src/blog-v3-draft.meta.js.map +0 -1
  50. package/build/cjs/src/blog-v3-draft.public.d.ts +0 -22
  51. package/build/cjs/src/blog-v3-draft.public.js +0 -133
  52. package/build/cjs/src/blog-v3-draft.public.js.map +0 -1
  53. package/build/cjs/src/blog-v3-draft.types.d.ts +0 -9171
  54. package/build/cjs/src/blog-v3-draft.types.js +0 -456
  55. package/build/cjs/src/blog-v3-draft.types.js.map +0 -1
  56. package/build/cjs/src/blog-v3-draft.universal.d.ts +0 -8816
  57. package/build/cjs/src/blog-v3-draft.universal.js +0 -1585
  58. package/build/cjs/src/blog-v3-draft.universal.js.map +0 -1
  59. package/build/cjs/src/blog-v3-post.context.d.ts +0 -9
  60. package/build/cjs/src/blog-v3-post.context.js +0 -89
  61. package/build/cjs/src/blog-v3-post.context.js.map +0 -1
  62. package/build/cjs/src/blog-v3-post.http.d.ts +0 -80
  63. package/build/cjs/src/blog-v3-post.http.js +0 -893
  64. package/build/cjs/src/blog-v3-post.http.js.map +0 -1
  65. package/build/cjs/src/blog-v3-post.meta.d.ts +0 -25
  66. package/build/cjs/src/blog-v3-post.meta.js +0 -161
  67. package/build/cjs/src/blog-v3-post.meta.js.map +0 -1
  68. package/build/cjs/src/blog-v3-post.public.d.ts +0 -548
  69. package/build/cjs/src/blog-v3-post.public.js +0 -94
  70. package/build/cjs/src/blog-v3-post.public.js.map +0 -1
  71. package/build/cjs/src/blog-v3-post.types.d.ts +0 -5238
  72. package/build/cjs/src/blog-v3-post.types.js +0 -478
  73. package/build/cjs/src/blog-v3-post.types.js.map +0 -1
  74. package/build/cjs/src/blog-v3-post.universal.d.ts +0 -5216
  75. package/build/cjs/src/blog-v3-post.universal.js +0 -1112
  76. package/build/cjs/src/blog-v3-post.universal.js.map +0 -1
  77. package/build/cjs/src/blog-v3-tag.context.d.ts +0 -6
  78. package/build/cjs/src/blog-v3-tag.context.js +0 -53
  79. package/build/cjs/src/blog-v3-tag.context.js.map +0 -1
  80. package/build/cjs/src/blog-v3-tag.http.d.ts +0 -40
  81. package/build/cjs/src/blog-v3-tag.http.js +0 -348
  82. package/build/cjs/src/blog-v3-tag.http.js.map +0 -1
  83. package/build/cjs/src/blog-v3-tag.meta.d.ts +0 -22
  84. package/build/cjs/src/blog-v3-tag.meta.js +0 -104
  85. package/build/cjs/src/blog-v3-tag.meta.js.map +0 -1
  86. package/build/cjs/src/blog-v3-tag.public.d.ts +0 -20
  87. package/build/cjs/src/blog-v3-tag.public.js +0 -37
  88. package/build/cjs/src/blog-v3-tag.public.js.map +0 -1
  89. package/build/cjs/src/blog-v3-tag.types.d.ts +0 -663
  90. package/build/cjs/src/blog-v3-tag.types.js +0 -17
  91. package/build/cjs/src/blog-v3-tag.types.js.map +0 -1
  92. package/build/cjs/src/blog-v3-tag.universal.d.ts +0 -807
  93. package/build/cjs/src/blog-v3-tag.universal.js +0 -364
  94. package/build/cjs/src/blog-v3-tag.universal.js.map +0 -1
  95. package/build/es/index.typings.d.ts +0 -4
  96. package/build/es/index.typings.js +0 -5
  97. package/build/es/index.typings.js.map +0 -1
  98. package/build/es/src/blog-v3-category.context.d.ts +0 -6
  99. package/build/es/src/blog-v3-category.context.js +0 -46
  100. package/build/es/src/blog-v3-category.context.js.map +0 -1
  101. package/build/es/src/blog-v3-category.http.d.ts +0 -43
  102. package/build/es/src/blog-v3-category.http.js +0 -348
  103. package/build/es/src/blog-v3-category.http.js.map +0 -1
  104. package/build/es/src/blog-v3-category.meta.d.ts +0 -20
  105. package/build/es/src/blog-v3-category.meta.js +0 -74
  106. package/build/es/src/blog-v3-category.meta.js.map +0 -1
  107. package/build/es/src/blog-v3-category.public.d.ts +0 -43
  108. package/build/es/src/blog-v3-category.public.js +0 -25
  109. package/build/es/src/blog-v3-category.public.js.map +0 -1
  110. package/build/es/src/blog-v3-category.types.d.ts +0 -910
  111. package/build/es/src/blog-v3-category.types.js +0 -21
  112. package/build/es/src/blog-v3-category.types.js.map +0 -1
  113. package/build/es/src/blog-v3-category.universal.d.ts +0 -956
  114. package/build/es/src/blog-v3-category.universal.js +0 -353
  115. package/build/es/src/blog-v3-category.universal.js.map +0 -1
  116. package/build/es/src/blog-v3-draft.context.d.ts +0 -16
  117. package/build/es/src/blog-v3-draft.context.js +0 -156
  118. package/build/es/src/blog-v3-draft.context.js.map +0 -1
  119. package/build/es/src/blog-v3-draft.http.d.ts +0 -79
  120. package/build/es/src/blog-v3-draft.http.js +0 -1481
  121. package/build/es/src/blog-v3-draft.http.js.map +0 -1
  122. package/build/es/src/blog-v3-draft.meta.d.ts +0 -40
  123. package/build/es/src/blog-v3-draft.meta.js +0 -254
  124. package/build/es/src/blog-v3-draft.meta.js.map +0 -1
  125. package/build/es/src/blog-v3-draft.public.d.ts +0 -22
  126. package/build/es/src/blog-v3-draft.public.js +0 -75
  127. package/build/es/src/blog-v3-draft.public.js.map +0 -1
  128. package/build/es/src/blog-v3-draft.types.d.ts +0 -9171
  129. package/build/es/src/blog-v3-draft.types.js +0 -453
  130. package/build/es/src/blog-v3-draft.types.js.map +0 -1
  131. package/build/es/src/blog-v3-draft.universal.d.ts +0 -8816
  132. package/build/es/src/blog-v3-draft.universal.js +0 -1544
  133. package/build/es/src/blog-v3-draft.universal.js.map +0 -1
  134. package/build/es/src/blog-v3-post.context.d.ts +0 -9
  135. package/build/es/src/blog-v3-post.context.js +0 -79
  136. package/build/es/src/blog-v3-post.context.js.map +0 -1
  137. package/build/es/src/blog-v3-post.http.d.ts +0 -80
  138. package/build/es/src/blog-v3-post.http.js +0 -883
  139. package/build/es/src/blog-v3-post.http.js.map +0 -1
  140. package/build/es/src/blog-v3-post.meta.d.ts +0 -25
  141. package/build/es/src/blog-v3-post.meta.js +0 -128
  142. package/build/es/src/blog-v3-post.meta.js.map +0 -1
  143. package/build/es/src/blog-v3-post.public.d.ts +0 -548
  144. package/build/es/src/blog-v3-post.public.js +0 -40
  145. package/build/es/src/blog-v3-post.public.js.map +0 -1
  146. package/build/es/src/blog-v3-post.types.d.ts +0 -5238
  147. package/build/es/src/blog-v3-post.types.js +0 -475
  148. package/build/es/src/blog-v3-post.types.js.map +0 -1
  149. package/build/es/src/blog-v3-post.universal.d.ts +0 -5216
  150. package/build/es/src/blog-v3-post.universal.js +0 -1079
  151. package/build/es/src/blog-v3-post.universal.js.map +0 -1
  152. package/build/es/src/blog-v3-tag.context.d.ts +0 -6
  153. package/build/es/src/blog-v3-tag.context.js +0 -46
  154. package/build/es/src/blog-v3-tag.context.js.map +0 -1
  155. package/build/es/src/blog-v3-tag.http.d.ts +0 -40
  156. package/build/es/src/blog-v3-tag.http.js +0 -341
  157. package/build/es/src/blog-v3-tag.http.js.map +0 -1
  158. package/build/es/src/blog-v3-tag.meta.d.ts +0 -22
  159. package/build/es/src/blog-v3-tag.meta.js +0 -74
  160. package/build/es/src/blog-v3-tag.meta.js.map +0 -1
  161. package/build/es/src/blog-v3-tag.public.d.ts +0 -20
  162. package/build/es/src/blog-v3-tag.public.js +0 -25
  163. package/build/es/src/blog-v3-tag.public.js.map +0 -1
  164. package/build/es/src/blog-v3-tag.types.d.ts +0 -663
  165. package/build/es/src/blog-v3-tag.types.js +0 -14
  166. package/build/es/src/blog-v3-tag.types.js.map +0 -1
  167. package/build/es/src/blog-v3-tag.universal.d.ts +0 -807
  168. package/build/es/src/blog-v3-tag.universal.js +0 -334
  169. package/build/es/src/blog-v3-tag.universal.js.map +0 -1
@@ -1,883 +0,0 @@
1
- import { toURLSearchParams } from '@wix/metro-runtime';
2
- import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
3
- import { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';
4
- import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
5
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
6
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
7
- import { resolveUrl } from '@wix/metro-runtime';
8
- function resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl(opts) {
9
- const domainToMappings = {
10
- 'api._api_base_domain_': [
11
- {
12
- srcPath: '/communities-blog-node-api',
13
- destPath: '',
14
- },
15
- ],
16
- 'www._base_domain_': [
17
- {
18
- srcPath: '/_api/communities-blog-node-api',
19
- destPath: '',
20
- },
21
- {
22
- srcPath: '/_api/communities-blog-node-api/v3/posts',
23
- destPath: '/v3/posts',
24
- },
25
- {
26
- srcPath: '/_api/communities-blog-node-api/v3/categories',
27
- destPath: '/v3/categories',
28
- },
29
- {
30
- srcPath: '/_api/communities-blog-node-api/v3/tags',
31
- destPath: '/v3/tags',
32
- },
33
- {
34
- srcPath: '/_api/communities-blog-node-api/v2/stats',
35
- destPath: '/v2/stats',
36
- },
37
- ],
38
- 'apps._base_domain_': [
39
- {
40
- srcPath: '/_api/communities-blog-node-api',
41
- destPath: '',
42
- },
43
- {
44
- srcPath: '/_api/communities-blog-node-api/v3/posts',
45
- destPath: '/v3/posts',
46
- },
47
- {
48
- srcPath: '/_api/communities-blog-node-api/v3/categories',
49
- destPath: '/v3/categories',
50
- },
51
- {
52
- srcPath: '/_api/communities-blog-node-api/v3/tags',
53
- destPath: '/v3/tags',
54
- },
55
- {
56
- srcPath: '/_api/communities-blog-node-api/v2/stats',
57
- destPath: '/v2/stats',
58
- },
59
- ],
60
- _: [
61
- {
62
- srcPath: '/_api/communities-blog-node-api',
63
- destPath: '',
64
- },
65
- {
66
- srcPath: '/_api/communities-blog-node-api/_api/blogs/this',
67
- destPath: '/_api/blogs/this',
68
- },
69
- {
70
- srcPath: '/_api/communities-blog-node-api/_api/categories',
71
- destPath: '/_api/categories',
72
- },
73
- {
74
- srcPath: '/_api/communities-blog-node-api/_api/site-properties',
75
- destPath: '/_api/site-properties',
76
- },
77
- {
78
- srcPath: '/_api/communities-blog-node-api/_api/posts/content',
79
- destPath: '/_api/posts/content',
80
- },
81
- {
82
- srcPath: '/_api/communities-blog-node-api/v3/posts',
83
- destPath: '/v3/posts',
84
- },
85
- {
86
- srcPath: '/_api/communities-blog-node-api/v3/categories',
87
- destPath: '/v3/categories',
88
- },
89
- {
90
- srcPath: '/_api/communities-blog-node-api/v3/tags',
91
- destPath: '/v3/tags',
92
- },
93
- {
94
- srcPath: '/_api/communities-blog-node-api/v2/stats',
95
- destPath: '/v2/stats',
96
- },
97
- ],
98
- 'editor._base_domain_': [
99
- {
100
- srcPath: '/_api/communities-blog-node-api',
101
- destPath: '',
102
- },
103
- ],
104
- 'blocks._base_domain_': [
105
- {
106
- srcPath: '/_api/communities-blog-node-api',
107
- destPath: '',
108
- },
109
- ],
110
- 'create.editorx': [
111
- {
112
- srcPath: '/_api/communities-blog-node-api',
113
- destPath: '',
114
- },
115
- ],
116
- '*.dev.wix-code.com': [
117
- {
118
- srcPath: '/_api/communities-blog-node-api',
119
- destPath: '',
120
- },
121
- ],
122
- '*.pub.wix-code.com': [
123
- {
124
- srcPath: '/_api/communities-blog-node-api',
125
- destPath: '',
126
- },
127
- ],
128
- 'bo._base_domain_': [
129
- {
130
- srcPath: '/_api/communities-blog-node-api',
131
- destPath: '',
132
- },
133
- {
134
- srcPath: '/_api/communities-blog-node-api',
135
- destPath: '',
136
- },
137
- ],
138
- 'wixbo.ai': [
139
- {
140
- srcPath: '/_api/communities-blog-node-api',
141
- destPath: '',
142
- },
143
- {
144
- srcPath: '/_api/communities-blog-node-api',
145
- destPath: '',
146
- },
147
- ],
148
- 'manage._base_domain_': [
149
- {
150
- srcPath: '/_api/communities-blog-node-api',
151
- destPath: '',
152
- },
153
- ],
154
- 'social-blog._base_domain_': [
155
- {
156
- srcPath: '/_api/communities-blog-node-api',
157
- destPath: '',
158
- },
159
- ],
160
- 'editor.wixapps.net': [
161
- {
162
- srcPath: '/_api/communities-blog-node-api',
163
- destPath: '',
164
- },
165
- ],
166
- 'dev._base_domain_': [
167
- {
168
- srcPath: '/_api/communities-blog-node-api',
169
- destPath: '',
170
- },
171
- ],
172
- 'www.wixapis.com': [
173
- {
174
- srcPath: '/blog/v2',
175
- destPath: '/v2',
176
- },
177
- {
178
- srcPath: '/blog/v3',
179
- destPath: '/v3',
180
- },
181
- {
182
- srcPath: '/v2/stats',
183
- destPath: '/v2/stats',
184
- },
185
- {
186
- srcPath: '/v3/tags',
187
- destPath: '/v3/tags',
188
- },
189
- {
190
- srcPath: '/v3/categories',
191
- destPath: '/v3/categories',
192
- },
193
- {
194
- srcPath: '/v3/posts',
195
- destPath: '/v3/posts',
196
- },
197
- {
198
- srcPath: '/blog/v3/posts',
199
- destPath: '/v3/posts',
200
- },
201
- {
202
- srcPath: '/blog/v3/categories',
203
- destPath: '/v3/categories',
204
- },
205
- {
206
- srcPath: '/blog/v3/tags',
207
- destPath: '/v3/tags',
208
- },
209
- {
210
- srcPath: '/blog/v2/stats',
211
- destPath: '/v2/stats',
212
- },
213
- ],
214
- };
215
- return resolveUrl(Object.assign(opts, { domainToMappings }));
216
- }
217
- function resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl(opts) {
218
- const domainToMappings = {
219
- 'api._api_base_domain_': [
220
- {
221
- srcPath: '/communities-blog-node-api',
222
- destPath: '',
223
- },
224
- ],
225
- 'www._base_domain_': [
226
- {
227
- srcPath: '/_api/communities-blog-node-api',
228
- destPath: '',
229
- },
230
- {
231
- srcPath: '/_api/communities-blog-node-api/v3/posts',
232
- destPath: '/v3/posts',
233
- },
234
- {
235
- srcPath: '/_api/communities-blog-node-api/v3/categories',
236
- destPath: '/v3/categories',
237
- },
238
- {
239
- srcPath: '/_api/communities-blog-node-api/v3/tags',
240
- destPath: '/v3/tags',
241
- },
242
- {
243
- srcPath: '/_api/communities-blog-node-api/v2/stats',
244
- destPath: '/v2/stats',
245
- },
246
- ],
247
- 'apps._base_domain_': [
248
- {
249
- srcPath: '/_api/communities-blog-node-api',
250
- destPath: '',
251
- },
252
- {
253
- srcPath: '/_api/communities-blog-node-api/v3/posts',
254
- destPath: '/v3/posts',
255
- },
256
- {
257
- srcPath: '/_api/communities-blog-node-api/v3/categories',
258
- destPath: '/v3/categories',
259
- },
260
- {
261
- srcPath: '/_api/communities-blog-node-api/v3/tags',
262
- destPath: '/v3/tags',
263
- },
264
- {
265
- srcPath: '/_api/communities-blog-node-api/v2/stats',
266
- destPath: '/v2/stats',
267
- },
268
- ],
269
- _: [
270
- {
271
- srcPath: '/_api/communities-blog-node-api',
272
- destPath: '',
273
- },
274
- {
275
- srcPath: '/_api/communities-blog-node-api/_api/blogs/this',
276
- destPath: '/_api/blogs/this',
277
- },
278
- {
279
- srcPath: '/_api/communities-blog-node-api/_api/categories',
280
- destPath: '/_api/categories',
281
- },
282
- {
283
- srcPath: '/_api/communities-blog-node-api/_api/site-properties',
284
- destPath: '/_api/site-properties',
285
- },
286
- {
287
- srcPath: '/_api/communities-blog-node-api/_api/posts/content',
288
- destPath: '/_api/posts/content',
289
- },
290
- {
291
- srcPath: '/_api/communities-blog-node-api/v3/posts',
292
- destPath: '/v3/posts',
293
- },
294
- {
295
- srcPath: '/_api/communities-blog-node-api/v3/categories',
296
- destPath: '/v3/categories',
297
- },
298
- {
299
- srcPath: '/_api/communities-blog-node-api/v3/tags',
300
- destPath: '/v3/tags',
301
- },
302
- {
303
- srcPath: '/_api/communities-blog-node-api/v2/stats',
304
- destPath: '/v2/stats',
305
- },
306
- ],
307
- 'editor._base_domain_': [
308
- {
309
- srcPath: '/_api/communities-blog-node-api',
310
- destPath: '',
311
- },
312
- ],
313
- 'blocks._base_domain_': [
314
- {
315
- srcPath: '/_api/communities-blog-node-api',
316
- destPath: '',
317
- },
318
- ],
319
- 'create.editorx': [
320
- {
321
- srcPath: '/_api/communities-blog-node-api',
322
- destPath: '',
323
- },
324
- ],
325
- '*.dev.wix-code.com': [
326
- {
327
- srcPath: '/_api/communities-blog-node-api',
328
- destPath: '',
329
- },
330
- ],
331
- '*.pub.wix-code.com': [
332
- {
333
- srcPath: '/_api/communities-blog-node-api',
334
- destPath: '',
335
- },
336
- ],
337
- 'bo._base_domain_': [
338
- {
339
- srcPath: '/_api/communities-blog-node-api',
340
- destPath: '',
341
- },
342
- {
343
- srcPath: '/_api/communities-blog-node-api',
344
- destPath: '',
345
- },
346
- ],
347
- 'wixbo.ai': [
348
- {
349
- srcPath: '/_api/communities-blog-node-api',
350
- destPath: '',
351
- },
352
- {
353
- srcPath: '/_api/communities-blog-node-api',
354
- destPath: '',
355
- },
356
- ],
357
- 'manage._base_domain_': [
358
- {
359
- srcPath: '/_api/communities-blog-node-api',
360
- destPath: '',
361
- },
362
- ],
363
- 'social-blog._base_domain_': [
364
- {
365
- srcPath: '/_api/communities-blog-node-api',
366
- destPath: '',
367
- },
368
- ],
369
- 'editor.wixapps.net': [
370
- {
371
- srcPath: '/_api/communities-blog-node-api',
372
- destPath: '',
373
- },
374
- ],
375
- 'dev._base_domain_': [
376
- {
377
- srcPath: '/_api/communities-blog-node-api',
378
- destPath: '',
379
- },
380
- ],
381
- 'www.wixapis.com': [
382
- {
383
- srcPath: '/blog/v2',
384
- destPath: '/v2',
385
- },
386
- {
387
- srcPath: '/blog/v3',
388
- destPath: '/v3',
389
- },
390
- {
391
- srcPath: '/v2/stats',
392
- destPath: '/v2/stats',
393
- },
394
- {
395
- srcPath: '/v3/tags',
396
- destPath: '/v3/tags',
397
- },
398
- {
399
- srcPath: '/v3/categories',
400
- destPath: '/v3/categories',
401
- },
402
- {
403
- srcPath: '/v3/posts',
404
- destPath: '/v3/posts',
405
- },
406
- {
407
- srcPath: '/blog/v3/posts',
408
- destPath: '/v3/posts',
409
- },
410
- {
411
- srcPath: '/blog/v3/categories',
412
- destPath: '/v3/categories',
413
- },
414
- {
415
- srcPath: '/blog/v3/tags',
416
- destPath: '/v3/tags',
417
- },
418
- {
419
- srcPath: '/blog/v2/stats',
420
- destPath: '/v2/stats',
421
- },
422
- ],
423
- };
424
- return resolveUrl(Object.assign(opts, { domainToMappings }));
425
- }
426
- /**
427
- * Gets a post by the specified ID.
428
- *
429
- *
430
- * The `getPost()` function returns a Promise that resolves to a post whose ID matches the given ID.
431
- *
432
- */
433
- export function getPost(payload) {
434
- function __getPost({ host }) {
435
- const metadata = {
436
- entityFqdn: 'wix.blog.v3.post',
437
- method: 'GET',
438
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPost',
439
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
440
- protoPath: '/v3/posts/{postId}',
441
- data: payload,
442
- host,
443
- }),
444
- params: toURLSearchParams(payload),
445
- transformResponse: (payload) => transformPaths(payload, [
446
- {
447
- transformFn: transformRESTTimestampToSDKTimestamp,
448
- paths: [
449
- { path: 'post.firstPublishedDate' },
450
- { path: 'post.lastPublishedDate' },
451
- { path: 'post.coverMedia.image.urlExpirationDate' },
452
- { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },
453
- { path: 'post.heroImage.urlExpirationDate' },
454
- { path: 'post.richContent.metadata.createdTimestamp' },
455
- { path: 'post.richContent.metadata.updatedTimestamp' },
456
- { path: 'post.moderationDetails.submittedDate' },
457
- { path: 'post.moderationDetails.moderationDate' },
458
- { path: 'post.media.wixMedia.image.urlExpirationDate' },
459
- { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },
460
- {
461
- path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',
462
- },
463
- {
464
- path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',
465
- },
466
- { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },
467
- ],
468
- },
469
- {
470
- transformFn: transformRESTBytesToSDKBytes,
471
- paths: [{ path: 'post.richContentCompressed' }],
472
- },
473
- {
474
- transformFn: transformRESTFloatToSDKFloat,
475
- paths: [
476
- { path: 'post.metrics.averageRating' },
477
- {
478
- path: 'post.richContent.nodes.galleryData.items.image.media.duration',
479
- },
480
- {
481
- path: 'post.richContent.nodes.galleryData.items.video.media.duration',
482
- },
483
- {
484
- path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',
485
- },
486
- { path: 'post.richContent.nodes.galleryData.options.item.ratio' },
487
- { path: 'post.richContent.nodes.imageData.image.duration' },
488
- { path: 'post.richContent.nodes.mapData.mapSettings.lat' },
489
- { path: 'post.richContent.nodes.mapData.mapSettings.lng' },
490
- { path: 'post.richContent.nodes.pollData.poll.image.duration' },
491
- {
492
- path: 'post.richContent.nodes.pollData.poll.options.image.duration',
493
- },
494
- {
495
- path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',
496
- },
497
- { path: 'post.richContent.nodes.appEmbedData.image.duration' },
498
- { path: 'post.richContent.nodes.videoData.video.duration' },
499
- { path: 'post.richContent.nodes.videoData.thumbnail.duration' },
500
- { path: 'post.richContent.nodes.audioData.audio.duration' },
501
- { path: 'post.richContent.nodes.audioData.coverImage.duration' },
502
- ],
503
- },
504
- ]),
505
- };
506
- return metadata;
507
- }
508
- return __getPost;
509
- }
510
- /**
511
- * Gets a post by the provided slug.
512
- *
513
- *
514
- * The `getPostBySlug()` function returns a Promise that resolves to a post whose slug matches the given slug.
515
- *
516
- * The `slug` is the end of a post's URL that refers to a specific post. For example, if a post's URL is `https:/example.com/blog/post/my-post-slug`, the slug is `my-post-slug`. The slug is case-sensitive, and is generally derived from the post title, unless specified otherwise.
517
- */
518
- export 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
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
525
- protoPath: '/v3/posts/slugs/{slug}',
526
- data: payload,
527
- host,
528
- }),
529
- params: toURLSearchParams(payload),
530
- transformResponse: (payload) => transformPaths(payload, [
531
- {
532
- transformFn: transformRESTTimestampToSDKTimestamp,
533
- paths: [
534
- { path: 'post.firstPublishedDate' },
535
- { path: 'post.lastPublishedDate' },
536
- { path: 'post.coverMedia.image.urlExpirationDate' },
537
- { path: 'post.coverMedia.video.thumbnail.urlExpirationDate' },
538
- { path: 'post.heroImage.urlExpirationDate' },
539
- { path: 'post.richContent.metadata.createdTimestamp' },
540
- { path: 'post.richContent.metadata.updatedTimestamp' },
541
- { path: 'post.moderationDetails.submittedDate' },
542
- { path: 'post.moderationDetails.moderationDate' },
543
- { path: 'post.media.wixMedia.image.urlExpirationDate' },
544
- { path: 'post.media.wixMedia.videoV2.urlExpirationDate' },
545
- {
546
- path: 'post.media.wixMedia.videoV2.resolutions.urlExpirationDate',
547
- },
548
- {
549
- path: 'post.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',
550
- },
551
- { path: 'post.media.wixMedia.videoV2.posters.urlExpirationDate' },
552
- ],
553
- },
554
- {
555
- transformFn: transformRESTBytesToSDKBytes,
556
- paths: [{ path: 'post.richContentCompressed' }],
557
- },
558
- {
559
- transformFn: transformRESTFloatToSDKFloat,
560
- paths: [
561
- { path: 'post.metrics.averageRating' },
562
- {
563
- path: 'post.richContent.nodes.galleryData.items.image.media.duration',
564
- },
565
- {
566
- path: 'post.richContent.nodes.galleryData.items.video.media.duration',
567
- },
568
- {
569
- path: 'post.richContent.nodes.galleryData.items.video.thumbnail.duration',
570
- },
571
- { path: 'post.richContent.nodes.galleryData.options.item.ratio' },
572
- { path: 'post.richContent.nodes.imageData.image.duration' },
573
- { path: 'post.richContent.nodes.mapData.mapSettings.lat' },
574
- { path: 'post.richContent.nodes.mapData.mapSettings.lng' },
575
- { path: 'post.richContent.nodes.pollData.poll.image.duration' },
576
- {
577
- path: 'post.richContent.nodes.pollData.poll.options.image.duration',
578
- },
579
- {
580
- path: 'post.richContent.nodes.pollData.design.poll.background.image.duration',
581
- },
582
- { path: 'post.richContent.nodes.appEmbedData.image.duration' },
583
- { path: 'post.richContent.nodes.videoData.video.duration' },
584
- { path: 'post.richContent.nodes.videoData.thumbnail.duration' },
585
- { path: 'post.richContent.nodes.audioData.audio.duration' },
586
- { path: 'post.richContent.nodes.audioData.coverImage.duration' },
587
- ],
588
- },
589
- ]),
590
- };
591
- return metadata;
592
- }
593
- return __getPostBySlug;
594
- }
595
- /**
596
- * Retrieves a list of published posts.
597
- *
598
- *
599
- * The `listPosts()` function returns a Promise that resolves to a list of up to 100 published posts.
600
- *
601
- * Using the `options` parameter, you can filter your list of posts, set the amount of posts to be returned, and sort your list in a specified order.
602
- *
603
- * By default, the list is sorted by `firstPublishedDate` in descending order, and the amount of posts returned is 50.
604
- */
605
- export function listPosts(payload) {
606
- function __listPosts({ host }) {
607
- const metadata = {
608
- entityFqdn: 'wix.blog.v3.post',
609
- method: 'GET',
610
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts',
611
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
612
- protoPath: '/v3/posts',
613
- data: payload,
614
- host,
615
- }),
616
- params: toURLSearchParams(payload),
617
- transformResponse: (payload) => transformPaths(payload, [
618
- {
619
- transformFn: transformRESTTimestampToSDKTimestamp,
620
- paths: [
621
- { path: 'posts.firstPublishedDate' },
622
- { path: 'posts.lastPublishedDate' },
623
- { path: 'posts.coverMedia.image.urlExpirationDate' },
624
- { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },
625
- { path: 'posts.heroImage.urlExpirationDate' },
626
- { path: 'posts.richContent.metadata.createdTimestamp' },
627
- { path: 'posts.richContent.metadata.updatedTimestamp' },
628
- { path: 'posts.moderationDetails.submittedDate' },
629
- { path: 'posts.moderationDetails.moderationDate' },
630
- { path: 'posts.media.wixMedia.image.urlExpirationDate' },
631
- { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },
632
- {
633
- path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',
634
- },
635
- {
636
- path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',
637
- },
638
- {
639
- path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',
640
- },
641
- ],
642
- },
643
- {
644
- transformFn: transformRESTBytesToSDKBytes,
645
- paths: [{ path: 'posts.richContentCompressed' }],
646
- },
647
- {
648
- transformFn: transformRESTFloatToSDKFloat,
649
- paths: [
650
- { path: 'posts.metrics.averageRating' },
651
- {
652
- path: 'posts.richContent.nodes.galleryData.items.image.media.duration',
653
- },
654
- {
655
- path: 'posts.richContent.nodes.galleryData.items.video.media.duration',
656
- },
657
- {
658
- path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',
659
- },
660
- {
661
- path: 'posts.richContent.nodes.galleryData.options.item.ratio',
662
- },
663
- { path: 'posts.richContent.nodes.imageData.image.duration' },
664
- { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },
665
- { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },
666
- { path: 'posts.richContent.nodes.pollData.poll.image.duration' },
667
- {
668
- path: 'posts.richContent.nodes.pollData.poll.options.image.duration',
669
- },
670
- {
671
- path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',
672
- },
673
- { path: 'posts.richContent.nodes.appEmbedData.image.duration' },
674
- { path: 'posts.richContent.nodes.videoData.video.duration' },
675
- { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },
676
- { path: 'posts.richContent.nodes.audioData.audio.duration' },
677
- { path: 'posts.richContent.nodes.audioData.coverImage.duration' },
678
- ],
679
- },
680
- ]),
681
- };
682
- return metadata;
683
- }
684
- return __listPosts;
685
- }
686
- /**
687
- * Creates a query to retrieve a list of posts.
688
- *
689
- *
690
- * The `queryPosts()` function builds a query to retrieve a list of up to 100 posts, and returns a [`PostsQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder) object.
691
- *
692
- * The returned object contains the query definition which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/find) function.
693
- *
694
- * You can refine the query by chaining `PostsQueryBuilder` functions onto the query. `PostsQueryBuilder` functions enable you to sort, filter, and control the results that `queryPosts()` returns.
695
- *
696
- * `queryPosts()` runs with these `PostsQueryBuilder` defaults that can be overridden:
697
- * + [`limit(50)`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/limit)
698
- * + [`descending('firstPublishedDate')`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsquerybuilder/descending)
699
- *
700
- * Note that the default limit is `'50'`, but the max limit is `'100'`.
701
- *
702
- * To learn how to query posts, refer to the table below.
703
- *
704
- * The following `PostsQueryBuilder` functions are supported for the `queryPosts()` function. For a full description of the Posts object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult/items) property in [`PostsQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/posts/postsqueryresult).
705
- */
706
- export function queryPosts(payload) {
707
- function __queryPosts({ host }) {
708
- const metadata = {
709
- entityFqdn: 'wix.blog.v3.post',
710
- method: 'POST',
711
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts',
712
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
713
- protoPath: '/v3/posts/query',
714
- data: payload,
715
- host,
716
- }),
717
- data: payload,
718
- transformResponse: (payload) => transformPaths(payload, [
719
- {
720
- transformFn: transformRESTTimestampToSDKTimestamp,
721
- paths: [
722
- { path: 'posts.firstPublishedDate' },
723
- { path: 'posts.lastPublishedDate' },
724
- { path: 'posts.coverMedia.image.urlExpirationDate' },
725
- { path: 'posts.coverMedia.video.thumbnail.urlExpirationDate' },
726
- { path: 'posts.heroImage.urlExpirationDate' },
727
- { path: 'posts.richContent.metadata.createdTimestamp' },
728
- { path: 'posts.richContent.metadata.updatedTimestamp' },
729
- { path: 'posts.moderationDetails.submittedDate' },
730
- { path: 'posts.moderationDetails.moderationDate' },
731
- { path: 'posts.media.wixMedia.image.urlExpirationDate' },
732
- { path: 'posts.media.wixMedia.videoV2.urlExpirationDate' },
733
- {
734
- path: 'posts.media.wixMedia.videoV2.resolutions.urlExpirationDate',
735
- },
736
- {
737
- path: 'posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate',
738
- },
739
- {
740
- path: 'posts.media.wixMedia.videoV2.posters.urlExpirationDate',
741
- },
742
- ],
743
- },
744
- {
745
- transformFn: transformRESTBytesToSDKBytes,
746
- paths: [{ path: 'posts.richContentCompressed' }],
747
- },
748
- {
749
- transformFn: transformRESTFloatToSDKFloat,
750
- paths: [
751
- { path: 'posts.metrics.averageRating' },
752
- {
753
- path: 'posts.richContent.nodes.galleryData.items.image.media.duration',
754
- },
755
- {
756
- path: 'posts.richContent.nodes.galleryData.items.video.media.duration',
757
- },
758
- {
759
- path: 'posts.richContent.nodes.galleryData.items.video.thumbnail.duration',
760
- },
761
- {
762
- path: 'posts.richContent.nodes.galleryData.options.item.ratio',
763
- },
764
- { path: 'posts.richContent.nodes.imageData.image.duration' },
765
- { path: 'posts.richContent.nodes.mapData.mapSettings.lat' },
766
- { path: 'posts.richContent.nodes.mapData.mapSettings.lng' },
767
- { path: 'posts.richContent.nodes.pollData.poll.image.duration' },
768
- {
769
- path: 'posts.richContent.nodes.pollData.poll.options.image.duration',
770
- },
771
- {
772
- path: 'posts.richContent.nodes.pollData.design.poll.background.image.duration',
773
- },
774
- { path: 'posts.richContent.nodes.appEmbedData.image.duration' },
775
- { path: 'posts.richContent.nodes.videoData.video.duration' },
776
- { path: 'posts.richContent.nodes.videoData.thumbnail.duration' },
777
- { path: 'posts.richContent.nodes.audioData.audio.duration' },
778
- { path: 'posts.richContent.nodes.audioData.coverImage.duration' },
779
- ],
780
- },
781
- ]),
782
- };
783
- return metadata;
784
- }
785
- return __queryPosts;
786
- }
787
- /**
788
- * Gets a specified post's metrics.
789
- *
790
- *
791
- * The `getPostMetrics()` function returns a Promise that resolves to the specified post's metrics.
792
- *
793
- * A post's metrics include the comments, likes, and views the post receives.
794
- */
795
- export function getPostMetrics(payload) {
796
- function __getPostMetrics({ host }) {
797
- const metadata = {
798
- entityFqdn: 'wix.blog.v3.post',
799
- method: 'GET',
800
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics',
801
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogV3PostServiceUrl({
802
- protoPath: '/v3/posts/{postId}/metrics',
803
- data: payload,
804
- host,
805
- }),
806
- params: toURLSearchParams(payload),
807
- transformResponse: (payload) => transformPaths(payload, [
808
- {
809
- transformFn: transformRESTFloatToSDKFloat,
810
- paths: [{ path: 'metrics.averageRating' }],
811
- },
812
- ]),
813
- };
814
- return metadata;
815
- }
816
- return __getPostMetrics;
817
- }
818
- /**
819
- * Retrieves the number of published posts per month within a specified time range.
820
- *
821
- *
822
- * The `queryPostCountStats()` function returns a Promise that resolves to the number of posts per month within the specified time range.
823
- *
824
- * You can set the time range using the `rangeStart` and `months` properties. The time range always starts on the 1st day of the month set in `rangeStart` and includes the number of `months` following `rangeStart`. For example, if `rangeStart` is set to `'2022-03-13'` and `months` is set to `4`, the time range will be from `'2022-03-01'` until `'2022-06-30'`. The time range ends on the last day of the month.
825
- *
826
- * >**Note:** If there are no published posts in a specific month, that month is not included in the response. For example, let's say a blog has `0` posts dated in February 2022. If `rangeStart` is set to `'2022-01-01'` and `months` is set to `3`, the response includes `postCount` values for January and March, but not February.
827
- */
828
- export function queryPostCountStats(payload) {
829
- function __queryPostCountStats({ host }) {
830
- const serializedData = transformPaths(payload, [
831
- {
832
- transformFn: transformSDKTimestampToRESTTimestamp,
833
- paths: [{ path: 'rangeStart' }, { path: 'rangeEnd' }],
834
- },
835
- ]);
836
- const metadata = {
837
- entityFqdn: 'wix.blog.v3.post',
838
- method: 'GET',
839
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.QueryPostCountStats',
840
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
841
- protoPath: '/v2/stats/post/count',
842
- data: serializedData,
843
- host,
844
- }),
845
- params: toURLSearchParams(serializedData),
846
- transformResponse: (payload) => transformPaths(payload, [
847
- {
848
- transformFn: transformRESTTimestampToSDKTimestamp,
849
- paths: [{ path: 'stats.periodStart' }],
850
- },
851
- ]),
852
- };
853
- return metadata;
854
- }
855
- return __queryPostCountStats;
856
- }
857
- /**
858
- * Gets the total amount of published posts on the blog.
859
- *
860
- *
861
- * The `getTotalPosts()` function returns a Promise that resolves to the total amount of published posts on your blog's site.
862
- *
863
- *
864
- * You can use the `language` option to filter posts for a specified language.
865
- */
866
- export function getTotalPosts(payload) {
867
- function __getTotalPosts({ host }) {
868
- const metadata = {
869
- entityFqdn: 'wix.blog.v3.post',
870
- method: 'GET',
871
- methodFqn: 'com.wixpress.npm.communities.platformized.blog.BlogStatsService.GetTotalPosts',
872
- url: resolveComWixpressNpmCommunitiesPlatformizedBlogBlogStatsServiceUrl({
873
- protoPath: '/v2/stats/posts/total',
874
- data: payload,
875
- host,
876
- }),
877
- params: toURLSearchParams(payload),
878
- };
879
- return metadata;
880
- }
881
- return __getTotalPosts;
882
- }
883
- //# sourceMappingURL=blog-v3-post.http.js.map