@wix/blog 1.0.238 → 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 -675
  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 -819
  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 -675
  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 -819
  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,910 +0,0 @@
1
- export interface Category {
2
- /**
3
- * Category ID.
4
- * @readonly
5
- */
6
- id?: string;
7
- /** Category label. Displayed in the Category Menu. */
8
- label?: string;
9
- /**
10
- * Number of posts in the category.
11
- * @readonly
12
- */
13
- postCount?: number;
14
- /**
15
- * Category URL.
16
- * @readonly
17
- */
18
- url?: PageUrl;
19
- /** Category description. */
20
- description?: string | null;
21
- /** Category title. */
22
- title?: string;
23
- /**
24
- * __Deprecated.__ Use `coverImage` instead.
25
- * This property will be removed on June 30, 2023.
26
- *
27
- * Category cover image or video.
28
- */
29
- coverMedia?: CoverMedia;
30
- /**
31
- * Reserved for internal use.
32
- * @readonly
33
- */
34
- oldRank?: number;
35
- /**
36
- * __Deprecated.__ Use `displayPosition` instead.
37
- * This property will be removed on June 30, 2023.
38
- *
39
- * Category position in sequence.
40
- */
41
- rank?: number | null;
42
- /**
43
- * Category position in sequence. Categories with a lower display position are displayed first. Categories with a position of `-1` appear at the end of the sequence.
44
- *
45
- * Default: `-1`
46
- */
47
- displayPosition?: number | null;
48
- /**
49
- * ID of the category's translations. All translations of a single category share the same `translationId`.
50
- * @readonly
51
- */
52
- translationId?: string | null;
53
- /**
54
- * Category language.
55
- *
56
- * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
57
- */
58
- language?: string | null;
59
- /** Category slug. For example, `'category-slug'`. */
60
- slug?: string;
61
- /**
62
- * Reserved for internal use.
63
- * @readonly
64
- */
65
- internalId?: string | null;
66
- /** SEO data. */
67
- seoData?: SeoSchema;
68
- /** Category cover image. */
69
- coverImage?: Image;
70
- }
71
- export interface PageUrl {
72
- /** The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`. */
73
- base?: string;
74
- /** The relative path for the page within the site. For example, `/product-page/a-product`. */
75
- path?: string;
76
- }
77
- export interface CoverMedia extends CoverMediaMediaOneOf {
78
- /** Image url. */
79
- image?: Image;
80
- /** Video url. */
81
- video?: Video;
82
- /**
83
- * Is cover media enabled.
84
- * Selected by user whether to display cover media on the feed
85
- */
86
- enabled?: boolean;
87
- /** Whether cover media is displayed. */
88
- displayed?: boolean;
89
- /** Whether cover media is custom. If `false` the cover image is set to the first media item that appears in the content. */
90
- custom?: boolean;
91
- }
92
- /** @oneof */
93
- export interface CoverMediaMediaOneOf {
94
- /** Image url. */
95
- image?: Image;
96
- /** Video url. */
97
- video?: Video;
98
- }
99
- export interface Image {
100
- /** WixMedia image ID. */
101
- id?: string;
102
- /** Image URL. */
103
- url?: string;
104
- /**
105
- * Original image height.
106
- * @readonly
107
- */
108
- height?: number;
109
- /**
110
- * Original image width.
111
- * @readonly
112
- */
113
- width?: number;
114
- /** Image alt text. */
115
- altText?: string | null;
116
- /**
117
- * Image filename.
118
- * @readonly
119
- */
120
- filename?: string | null;
121
- }
122
- /** Deprecated - use VideoV2 */
123
- export interface Video {
124
- /** WixMedia ID */
125
- id?: string;
126
- /** URL of video */
127
- url?: string;
128
- /**
129
- * Original image height
130
- * @readonly
131
- */
132
- height?: number;
133
- /**
134
- * Original image width
135
- * @readonly
136
- */
137
- width?: number;
138
- /** Video poster */
139
- thumbnail?: Image;
140
- }
141
- /**
142
- * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
143
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
144
- * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
145
- */
146
- export interface SeoSchema {
147
- /** SEO tag information. */
148
- tags?: Tag[];
149
- /** SEO general settings. */
150
- settings?: Settings;
151
- }
152
- export interface Keyword {
153
- /** Keyword value. */
154
- term?: string;
155
- /** Whether the keyword is the main focus keyword. */
156
- isMain?: boolean;
157
- }
158
- export interface Tag {
159
- /**
160
- * SEO tag type.
161
- *
162
- *
163
- * Supported values: `title`, `meta`, `script`, `link`.
164
- */
165
- type?: string;
166
- /**
167
- * A `{'key':'value'}` pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
168
- * For example: `{'name': 'description', 'content': 'the description itself'}`.
169
- */
170
- props?: Record<string, any> | null;
171
- /** SEO tag meta data. For example, `{height: 300, width: 240}`. */
172
- meta?: Record<string, any> | null;
173
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
174
- children?: string;
175
- /** Whether the tag is a custom tag. */
176
- custom?: boolean;
177
- /** Whether the tag is disabled. */
178
- disabled?: boolean;
179
- }
180
- export interface Settings {
181
- /**
182
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
183
- *
184
- *
185
- * Default: `false` (Auto Redirect is enabled.)
186
- */
187
- preventAutoRedirect?: boolean;
188
- /** User-selected keyword terms for a specific page. */
189
- keywords?: Keyword[];
190
- }
191
- export interface CategoryTranslation {
192
- /** Category ID */
193
- id?: string;
194
- /** Label which is presented in the categories menu on site */
195
- label?: string | null;
196
- /** Language of the category */
197
- language?: string | null;
198
- /** Url of this category page */
199
- url?: PageUrl;
200
- }
201
- export interface InitialCategoriesCopied {
202
- /** Number of categories copied. */
203
- count?: number;
204
- }
205
- export interface CreateCategoryRequest {
206
- /** Category info. */
207
- category?: Category;
208
- /**
209
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
210
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
211
- * only the category’s base fields are returned.
212
- */
213
- fieldsets?: Field[];
214
- }
215
- export declare enum Field {
216
- UNKNOWN = "UNKNOWN",
217
- /** Includes Category url. */
218
- URL = "URL",
219
- /**
220
- * Includes internal id field.
221
- * Reserved for internal use
222
- */
223
- INTERNAL_ID = "INTERNAL_ID",
224
- /** Includes SEO data. */
225
- SEO = "SEO",
226
- /** Includes translations. */
227
- TRANSLATIONS = "TRANSLATIONS"
228
- }
229
- export interface CreateCategoryResponse {
230
- /** Category info. */
231
- category?: Category;
232
- }
233
- export interface BulkCreateCategoriesRequest {
234
- /** Categories to create. */
235
- categories?: Category[];
236
- /** Whether to return the full created category entities in the response. */
237
- returnFullEntity?: boolean;
238
- /**
239
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
240
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
241
- * only the category’s base fields are returned.
242
- */
243
- fieldsets?: Field[];
244
- }
245
- export interface BulkCreateCategoriesResponse {
246
- /** Categories created by bulk action. */
247
- results?: BulkCategoryResult[];
248
- /** Bulk action metadata. */
249
- bulkActionMetadata?: BulkActionMetadata;
250
- }
251
- export interface BulkCategoryResult {
252
- /** Bulk actions metadata for category. */
253
- itemMetadata?: ItemMetadata;
254
- /** Optional created category. */
255
- item?: Category;
256
- }
257
- export interface ItemMetadata {
258
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
259
- id?: string | null;
260
- /** Index of the item within the request array. Allows for correlation between request and response items. */
261
- originalIndex?: number;
262
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
263
- success?: boolean;
264
- /** Details about the error in case of failure. */
265
- error?: ApplicationError;
266
- }
267
- export interface ApplicationError {
268
- /** Error code. */
269
- code?: string;
270
- /** Description of the error. */
271
- description?: string;
272
- /** Data related to the error. */
273
- data?: Record<string, any> | null;
274
- }
275
- export interface BulkActionMetadata {
276
- /** Number of items that were successfully processed. */
277
- totalSuccesses?: number;
278
- /** Number of items that couldn't be processed. */
279
- totalFailures?: number;
280
- /** Number of failures without details because detailed failure threshold was exceeded. */
281
- undetailedFailures?: number;
282
- }
283
- export interface BulkUpdateCategoriesRequest {
284
- /** Categories to update. */
285
- categories?: MaskedCategory[];
286
- /** Whether to return the full created category entities in the response. */
287
- returnFullEntity?: boolean;
288
- /**
289
- * List of category fields to be included in the response if the entities are present.
290
- * Base default fieldset returns all core category properties (all properties that are not a supported fieldset value).
291
- * For example, when `URL` fieldset is selected, returned category will include the set of base properties and the category's preview url.
292
- */
293
- fieldsets?: Field[];
294
- }
295
- export interface MaskedCategory {
296
- /** Category */
297
- category?: Category;
298
- }
299
- export interface BulkUpdateCategoriesResponse {
300
- /** Categories updated by bulk action. */
301
- results?: BulkCategoryResult[];
302
- /** Bulk action metadata. */
303
- bulkActionMetadata?: BulkActionMetadata;
304
- }
305
- export interface UpdateCategoryRequest {
306
- /** Category info. */
307
- category?: Category;
308
- /**
309
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
310
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
311
- * only the category’s base fields are returned.
312
- */
313
- fieldsets?: Field[];
314
- }
315
- export interface UpdateCategoryResponse {
316
- /** Category info. */
317
- category?: Category;
318
- }
319
- export interface GetCategoriesCountByLanguageRequest {
320
- }
321
- export interface GetCategoriesCountByLanguageResponse {
322
- /** The language and it's count. */
323
- categoriesLanguageCount?: CategoryLanguageCount[];
324
- }
325
- export interface CategoryLanguageCount {
326
- /** 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
327
- languageCode?: string | null;
328
- /** The count of Categories for the language. */
329
- categoryCount?: number | null;
330
- }
331
- export interface GetCategoryRequest {
332
- /** Category ID. */
333
- categoryId: string;
334
- /**
335
- * __Deprecated.__ Use `fieldsets` instead.
336
- * This parameter will be removed on June 30, 2023.
337
- *
338
- * List of category fields to be included in the response.
339
- */
340
- fieldsToInclude?: Field[];
341
- /**
342
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
343
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
344
- * only the category’s base fields are returned.
345
- */
346
- fieldsets?: Field[];
347
- }
348
- export interface GetCategoryResponse {
349
- /** Category info. */
350
- category?: Category;
351
- }
352
- export interface GetCategoryBySlugRequest {
353
- /** Slug of the category to retrieve. */
354
- slug: string;
355
- /**
356
- * __Deprecated.__ Use `fieldsets` instead.
357
- *
358
- * This parameter will be removed on June 30, 2023.
359
- * List of category fields to be included in the response.
360
- */
361
- fieldsToInclude?: Field[];
362
- /**
363
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
364
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
365
- * only the category’s base fields are returned.
366
- */
367
- fieldsets?: Field[];
368
- /**
369
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
370
- * Language of the category to retrieve.
371
- */
372
- language?: string | null;
373
- }
374
- export interface GetCategoryBySlugResponse {
375
- /** Category info. */
376
- category?: Category;
377
- }
378
- export interface ListCategoriesRequest {
379
- /** Pagination options. */
380
- paging?: BlogPaging;
381
- /**
382
- * __Deprecated.__ Use `fieldsets` instead.
383
- *
384
- * This parameter will be removed on June 30, 2023.
385
- *
386
- * List of category fields to be included in the response.
387
- */
388
- fieldsToInclude?: Field[];
389
- /**
390
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
391
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
392
- * only the category’s base fields are returned.
393
- */
394
- fieldsets?: Field[];
395
- /**
396
- * Language filter.
397
- *
398
- * 2-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
399
- * Pass a language to only receive categories that are in that language.
400
- * If omitted, categories in all languages are returned.
401
- */
402
- language?: string | null;
403
- }
404
- export interface BlogPaging {
405
- /**
406
- * Number of items to skip in the current sort order.
407
- *
408
- *
409
- * Default: `0`
410
- */
411
- offset?: number;
412
- /**
413
- * Number of items to return.
414
- *
415
- *
416
- * Default:`50`
417
- */
418
- limit?: number;
419
- /** Pointer to the next or previous page in the list of results. */
420
- cursor?: string | null;
421
- }
422
- export interface ListCategoriesResponse {
423
- /** List of categories. */
424
- categories?: Category[];
425
- /** Details on the paged set of results returned. */
426
- metaData?: MetaData;
427
- }
428
- export interface MetaData {
429
- /** Number of items returned in this response. */
430
- count?: number;
431
- /** Requested offset. */
432
- offset?: number;
433
- /** Total number of items that match the query. */
434
- total?: number;
435
- /** Pointer to the next or previous page in the list of results. */
436
- cursor?: string | null;
437
- }
438
- export interface QueryCategoriesRequest {
439
- /**
440
- * __Deprecated.__ Use `query` instead.
441
- * This parameter will be removed on June 30, 2023.
442
- *
443
- * Pagination options.
444
- */
445
- paging?: BlogPaging;
446
- /**
447
- * __Deprecated.__ Use `query` instead.
448
- * This parameter will be removed on June 30, 2023.
449
- *
450
- * Filter object.
451
- */
452
- filter?: Record<string, any> | null;
453
- /**
454
- * __Deprecated.__ Use `query` instead.
455
- * This parameter will be removed on June 3, 2023.
456
- *
457
- * Sorting options.
458
- */
459
- sort?: Sorting[];
460
- /**
461
- * __Deprecated.__ Use `fieldsets` instead.
462
- * This parameter will be removed on June 30, 2023.
463
- *
464
- * List of category fields to be included in the response.
465
- */
466
- fieldsToInclude?: Field[];
467
- /** Query options. */
468
- query?: PlatformQuery;
469
- /**
470
- * List of additional category fields to include in the response. For example, use the `URL` fieldset to retrieve the url field in
471
- * the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default
472
- * only the category’s base fields are returned.
473
- */
474
- fieldsets?: Field[];
475
- }
476
- export interface Sorting {
477
- /** Name of the field to sort by. */
478
- fieldName?: string;
479
- /** Sort order. */
480
- order?: SortOrder;
481
- }
482
- export declare enum SortOrder {
483
- ASC = "ASC",
484
- DESC = "DESC"
485
- }
486
- export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
487
- /** Paging options to limit and skip the number of items. */
488
- paging?: Paging;
489
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
490
- cursorPaging?: CursorPaging;
491
- /**
492
- * Filter object in the following format:
493
- * `"filter" : {
494
- * "fieldName1": "value1",
495
- * "fieldName2":{"$operator":"value2"}
496
- * }`
497
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
498
- */
499
- filter?: Record<string, any> | null;
500
- /**
501
- * Sort object in the following format:
502
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
503
- */
504
- sort?: Sorting[];
505
- }
506
- /** @oneof */
507
- export interface PlatformQueryPagingMethodOneOf {
508
- /** Paging options to limit and skip the number of items. */
509
- paging?: Paging;
510
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
511
- cursorPaging?: CursorPaging;
512
- }
513
- export interface Paging {
514
- /** Number of items to load. */
515
- limit?: number | null;
516
- /** Number of items to skip in the current sort order. */
517
- offset?: number | null;
518
- }
519
- export interface CursorPaging {
520
- /** Number of items to load. */
521
- limit?: number | null;
522
- /**
523
- * Pointer to the next or previous page in the list of results.
524
- *
525
- * You can get the relevant cursor token
526
- * from the `pagingMetadata` object in the previous call's response.
527
- * Not relevant for the first request.
528
- */
529
- cursor?: string | null;
530
- }
531
- export interface QueryCategoriesResponse {
532
- /** List of categories. */
533
- categories?: Category[];
534
- /**
535
- * __Deprecated.__ Use `pagingMetadata` instead.
536
- * This property will be removed on June 30, 2023.
537
- *
538
- * Details on the paged set of results returned.
539
- */
540
- metaData?: MetaData;
541
- /** Details on the paged set of results returned. */
542
- pagingMetadata?: PagingMetadataV2;
543
- }
544
- export interface PagingMetadataV2 {
545
- /** Number of items returned in the response. */
546
- count?: number | null;
547
- /** Offset that was requested. */
548
- offset?: number | null;
549
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
550
- total?: number | null;
551
- /** Flag that indicates the server failed to calculate the `total` field. */
552
- tooManyToCount?: boolean | null;
553
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
554
- cursors?: Cursors;
555
- }
556
- export interface Cursors {
557
- /** Cursor pointing to next page in the list of results. */
558
- next?: string | null;
559
- /** Cursor pointing to previous page in the list of results. */
560
- prev?: string | null;
561
- }
562
- export interface BulkDeleteCategoryRequest {
563
- /** Category IDs. */
564
- categoryIds?: string[];
565
- }
566
- export interface BulkDeleteCategoryResponse {
567
- }
568
- export interface DeleteCategoryRequest {
569
- /** Category ID. */
570
- categoryId?: string;
571
- }
572
- export interface DeleteCategoryResponse {
573
- }
574
- export interface DomainEvent extends DomainEventBodyOneOf {
575
- createdEvent?: EntityCreatedEvent;
576
- updatedEvent?: EntityUpdatedEvent;
577
- deletedEvent?: EntityDeletedEvent;
578
- actionEvent?: ActionEvent;
579
- /**
580
- * Unique event ID.
581
- * Allows clients to ignore duplicate webhooks.
582
- */
583
- id?: string;
584
- /**
585
- * Assumes actions are also always typed to an entity_type
586
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
587
- */
588
- entityFqdn?: string;
589
- /**
590
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
591
- * This is although the created/updated/deleted notion is duplication of the oneof types
592
- * Example: created/updated/deleted/started/completed/email_opened
593
- */
594
- slug?: string;
595
- /** ID of the entity associated with the event. */
596
- entityId?: string;
597
- /** Event timestamp. */
598
- eventTime?: Date;
599
- /**
600
- * Whether the event was triggered as a result of a privacy regulation application
601
- * (for example, GDPR).
602
- */
603
- triggeredByAnonymizeRequest?: boolean | null;
604
- /** If present, indicates the action that triggered the event. */
605
- originatedFrom?: string | null;
606
- /**
607
- * A sequence number defining the order of updates to the underlying entity.
608
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
609
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
610
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
611
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
612
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
613
- */
614
- entityEventSequence?: string | null;
615
- }
616
- /** @oneof */
617
- export interface DomainEventBodyOneOf {
618
- createdEvent?: EntityCreatedEvent;
619
- updatedEvent?: EntityUpdatedEvent;
620
- deletedEvent?: EntityDeletedEvent;
621
- actionEvent?: ActionEvent;
622
- }
623
- export interface EntityCreatedEvent {
624
- entityAsJson?: string;
625
- }
626
- export interface EntityUpdatedEvent {
627
- /**
628
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
629
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
630
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
631
- */
632
- currentEntityAsJson?: string;
633
- }
634
- export interface EntityDeletedEvent {
635
- /** Entity that was deleted */
636
- deletedEntityAsJson?: string | null;
637
- }
638
- export interface ActionEvent {
639
- bodyAsJson?: string;
640
- }
641
- export interface GetCategoryResponseNonNullableFields {
642
- category?: {
643
- id: string;
644
- label: string;
645
- postCount: number;
646
- url?: {
647
- base: string;
648
- path: string;
649
- };
650
- title: string;
651
- coverMedia?: {
652
- image?: {
653
- id: string;
654
- url: string;
655
- height: number;
656
- width: number;
657
- };
658
- video?: {
659
- id: string;
660
- url: string;
661
- height: number;
662
- width: number;
663
- thumbnail?: {
664
- id: string;
665
- url: string;
666
- height: number;
667
- width: number;
668
- };
669
- };
670
- enabled: boolean;
671
- displayed: boolean;
672
- custom: boolean;
673
- };
674
- oldRank: number;
675
- slug: string;
676
- seoData?: {
677
- tags: {
678
- type: string;
679
- children: string;
680
- custom: boolean;
681
- disabled: boolean;
682
- }[];
683
- settings?: {
684
- preventAutoRedirect: boolean;
685
- keywords: {
686
- term: string;
687
- isMain: boolean;
688
- }[];
689
- };
690
- };
691
- coverImage?: {
692
- id: string;
693
- url: string;
694
- height: number;
695
- width: number;
696
- };
697
- translations: {
698
- id: string;
699
- url?: {
700
- base: string;
701
- path: string;
702
- };
703
- }[];
704
- };
705
- }
706
- export interface GetCategoryBySlugResponseNonNullableFields {
707
- category?: {
708
- id: string;
709
- label: string;
710
- postCount: number;
711
- url?: {
712
- base: string;
713
- path: string;
714
- };
715
- title: string;
716
- coverMedia?: {
717
- image?: {
718
- id: string;
719
- url: string;
720
- height: number;
721
- width: number;
722
- };
723
- video?: {
724
- id: string;
725
- url: string;
726
- height: number;
727
- width: number;
728
- thumbnail?: {
729
- id: string;
730
- url: string;
731
- height: number;
732
- width: number;
733
- };
734
- };
735
- enabled: boolean;
736
- displayed: boolean;
737
- custom: boolean;
738
- };
739
- oldRank: number;
740
- slug: string;
741
- seoData?: {
742
- tags: {
743
- type: string;
744
- children: string;
745
- custom: boolean;
746
- disabled: boolean;
747
- }[];
748
- settings?: {
749
- preventAutoRedirect: boolean;
750
- keywords: {
751
- term: string;
752
- isMain: boolean;
753
- }[];
754
- };
755
- };
756
- coverImage?: {
757
- id: string;
758
- url: string;
759
- height: number;
760
- width: number;
761
- };
762
- translations: {
763
- id: string;
764
- url?: {
765
- base: string;
766
- path: string;
767
- };
768
- }[];
769
- };
770
- }
771
- export interface ListCategoriesResponseNonNullableFields {
772
- categories: {
773
- id: string;
774
- label: string;
775
- postCount: number;
776
- url?: {
777
- base: string;
778
- path: string;
779
- };
780
- title: string;
781
- coverMedia?: {
782
- image?: {
783
- id: string;
784
- url: string;
785
- height: number;
786
- width: number;
787
- };
788
- video?: {
789
- id: string;
790
- url: string;
791
- height: number;
792
- width: number;
793
- thumbnail?: {
794
- id: string;
795
- url: string;
796
- height: number;
797
- width: number;
798
- };
799
- };
800
- enabled: boolean;
801
- displayed: boolean;
802
- custom: boolean;
803
- };
804
- oldRank: number;
805
- slug: string;
806
- seoData?: {
807
- tags: {
808
- type: string;
809
- children: string;
810
- custom: boolean;
811
- disabled: boolean;
812
- }[];
813
- settings?: {
814
- preventAutoRedirect: boolean;
815
- keywords: {
816
- term: string;
817
- isMain: boolean;
818
- }[];
819
- };
820
- };
821
- coverImage?: {
822
- id: string;
823
- url: string;
824
- height: number;
825
- width: number;
826
- };
827
- translations: {
828
- id: string;
829
- url?: {
830
- base: string;
831
- path: string;
832
- };
833
- }[];
834
- }[];
835
- metaData?: {
836
- count: number;
837
- offset: number;
838
- total: number;
839
- };
840
- }
841
- export interface QueryCategoriesResponseNonNullableFields {
842
- categories: {
843
- id: string;
844
- label: string;
845
- postCount: number;
846
- url?: {
847
- base: string;
848
- path: string;
849
- };
850
- title: string;
851
- coverMedia?: {
852
- image?: {
853
- id: string;
854
- url: string;
855
- height: number;
856
- width: number;
857
- };
858
- video?: {
859
- id: string;
860
- url: string;
861
- height: number;
862
- width: number;
863
- thumbnail?: {
864
- id: string;
865
- url: string;
866
- height: number;
867
- width: number;
868
- };
869
- };
870
- enabled: boolean;
871
- displayed: boolean;
872
- custom: boolean;
873
- };
874
- oldRank: number;
875
- slug: string;
876
- seoData?: {
877
- tags: {
878
- type: string;
879
- children: string;
880
- custom: boolean;
881
- disabled: boolean;
882
- }[];
883
- settings?: {
884
- preventAutoRedirect: boolean;
885
- keywords: {
886
- term: string;
887
- isMain: boolean;
888
- }[];
889
- };
890
- };
891
- coverImage?: {
892
- id: string;
893
- url: string;
894
- height: number;
895
- width: number;
896
- };
897
- translations: {
898
- id: string;
899
- url?: {
900
- base: string;
901
- path: string;
902
- };
903
- }[];
904
- }[];
905
- metaData?: {
906
- count: number;
907
- offset: number;
908
- total: number;
909
- };
910
- }