@wix/auto_sdk_blog_categories 1.0.0

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 (111) 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-category-categories.context.d.ts +27 -0
  11. package/build/cjs/src/blog-v3-category-categories.context.js +33 -0
  12. package/build/cjs/src/blog-v3-category-categories.context.js.map +1 -0
  13. package/build/cjs/src/blog-v3-category-categories.http.d.ts +49 -0
  14. package/build/cjs/src/blog-v3-category-categories.http.js +408 -0
  15. package/build/cjs/src/blog-v3-category-categories.http.js.map +1 -0
  16. package/build/cjs/src/blog-v3-category-categories.meta.d.ts +27 -0
  17. package/build/cjs/src/blog-v3-category-categories.meta.js +161 -0
  18. package/build/cjs/src/blog-v3-category-categories.meta.js.map +1 -0
  19. package/build/cjs/src/blog-v3-category-categories.public.d.ts +99 -0
  20. package/build/cjs/src/blog-v3-category-categories.public.js +112 -0
  21. package/build/cjs/src/blog-v3-category-categories.public.js.map +1 -0
  22. package/build/cjs/src/blog-v3-category-categories.types.d.ts +675 -0
  23. package/build/cjs/src/blog-v3-category-categories.types.js +30 -0
  24. package/build/cjs/src/blog-v3-category-categories.types.js.map +1 -0
  25. package/build/cjs/src/blog-v3-category-categories.universal.d.ts +1044 -0
  26. package/build/cjs/src/blog-v3-category-categories.universal.js +504 -0
  27. package/build/cjs/src/blog-v3-category-categories.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-category-categories.context.d.ts +27 -0
  39. package/build/es/src/blog-v3-category-categories.context.js +27 -0
  40. package/build/es/src/blog-v3-category-categories.context.js.map +1 -0
  41. package/build/es/src/blog-v3-category-categories.http.d.ts +49 -0
  42. package/build/es/src/blog-v3-category-categories.http.js +398 -0
  43. package/build/es/src/blog-v3-category-categories.http.js.map +1 -0
  44. package/build/es/src/blog-v3-category-categories.meta.d.ts +27 -0
  45. package/build/es/src/blog-v3-category-categories.meta.js +128 -0
  46. package/build/es/src/blog-v3-category-categories.meta.js.map +1 -0
  47. package/build/es/src/blog-v3-category-categories.public.d.ts +99 -0
  48. package/build/es/src/blog-v3-category-categories.public.js +99 -0
  49. package/build/es/src/blog-v3-category-categories.public.js.map +1 -0
  50. package/build/es/src/blog-v3-category-categories.types.d.ts +675 -0
  51. package/build/es/src/blog-v3-category-categories.types.js +27 -0
  52. package/build/es/src/blog-v3-category-categories.types.js.map +1 -0
  53. package/build/es/src/blog-v3-category-categories.universal.d.ts +1044 -0
  54. package/build/es/src/blog-v3-category-categories.universal.js +471 -0
  55. package/build/es/src/blog-v3-category-categories.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-category-categories.context.d.ts +27 -0
  66. package/build/internal/cjs/src/blog-v3-category-categories.context.js +33 -0
  67. package/build/internal/cjs/src/blog-v3-category-categories.context.js.map +1 -0
  68. package/build/internal/cjs/src/blog-v3-category-categories.http.d.ts +49 -0
  69. package/build/internal/cjs/src/blog-v3-category-categories.http.js +408 -0
  70. package/build/internal/cjs/src/blog-v3-category-categories.http.js.map +1 -0
  71. package/build/internal/cjs/src/blog-v3-category-categories.meta.d.ts +27 -0
  72. package/build/internal/cjs/src/blog-v3-category-categories.meta.js +161 -0
  73. package/build/internal/cjs/src/blog-v3-category-categories.meta.js.map +1 -0
  74. package/build/internal/cjs/src/blog-v3-category-categories.public.d.ts +99 -0
  75. package/build/internal/cjs/src/blog-v3-category-categories.public.js +112 -0
  76. package/build/internal/cjs/src/blog-v3-category-categories.public.js.map +1 -0
  77. package/build/internal/cjs/src/blog-v3-category-categories.types.d.ts +675 -0
  78. package/build/internal/cjs/src/blog-v3-category-categories.types.js +30 -0
  79. package/build/internal/cjs/src/blog-v3-category-categories.types.js.map +1 -0
  80. package/build/internal/cjs/src/blog-v3-category-categories.universal.d.ts +1044 -0
  81. package/build/internal/cjs/src/blog-v3-category-categories.universal.js +504 -0
  82. package/build/internal/cjs/src/blog-v3-category-categories.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-category-categories.context.d.ts +27 -0
  93. package/build/internal/es/src/blog-v3-category-categories.context.js +27 -0
  94. package/build/internal/es/src/blog-v3-category-categories.context.js.map +1 -0
  95. package/build/internal/es/src/blog-v3-category-categories.http.d.ts +49 -0
  96. package/build/internal/es/src/blog-v3-category-categories.http.js +398 -0
  97. package/build/internal/es/src/blog-v3-category-categories.http.js.map +1 -0
  98. package/build/internal/es/src/blog-v3-category-categories.meta.d.ts +27 -0
  99. package/build/internal/es/src/blog-v3-category-categories.meta.js +128 -0
  100. package/build/internal/es/src/blog-v3-category-categories.meta.js.map +1 -0
  101. package/build/internal/es/src/blog-v3-category-categories.public.d.ts +99 -0
  102. package/build/internal/es/src/blog-v3-category-categories.public.js +99 -0
  103. package/build/internal/es/src/blog-v3-category-categories.public.js.map +1 -0
  104. package/build/internal/es/src/blog-v3-category-categories.types.d.ts +675 -0
  105. package/build/internal/es/src/blog-v3-category-categories.types.js +27 -0
  106. package/build/internal/es/src/blog-v3-category-categories.types.js.map +1 -0
  107. package/build/internal/es/src/blog-v3-category-categories.universal.d.ts +1044 -0
  108. package/build/internal/es/src/blog-v3-category-categories.universal.js +471 -0
  109. package/build/internal/es/src/blog-v3-category-categories.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1044 @@
1
+ export interface Category {
2
+ /** Category ID. */
3
+ _id?: string;
4
+ /** Category label. Displayed in the Category Menu. */
5
+ label?: string;
6
+ /**
7
+ * Number of posts in the category.
8
+ * @readonly
9
+ */
10
+ postCount?: number;
11
+ /**
12
+ * The `url` of the page that lists every post with the specified category.
13
+ * @readonly
14
+ */
15
+ url?: string;
16
+ /** Category description. */
17
+ description?: string | null;
18
+ /**
19
+ * Category title.
20
+ * @deprecated Category title.
21
+ * @targetRemovalDate 2025-07-16
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).
26
+ * Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.
27
+ *
28
+ * Default: `-1`
29
+ */
30
+ displayPosition?: number | null;
31
+ /** ID of the category's translations. All translations of a single category share the same `translationId`. */
32
+ translationId?: string | null;
33
+ /**
34
+ * Category language.
35
+ *
36
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
37
+ */
38
+ language?: string | null;
39
+ /** Part of a category's URL that refers to a specific category. For example, the slug of `https:/example.com/blog/category/famous-cats` is `famous-cats`. */
40
+ slug?: string;
41
+ /**
42
+ * Reserved for internal use.
43
+ * @readonly
44
+ */
45
+ internalId?: string | null;
46
+ /** SEO data. */
47
+ seoData?: SeoSchema;
48
+ /** Category cover image. */
49
+ coverImage?: string;
50
+ /**
51
+ * Date and time the Category was last updated.
52
+ * @readonly
53
+ */
54
+ _updatedDate?: Date | null;
55
+ }
56
+ /**
57
+ * 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.
58
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
59
+ * 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.
60
+ */
61
+ export interface SeoSchema {
62
+ /** SEO tag information. */
63
+ tags?: Tag[];
64
+ /** SEO general settings. */
65
+ settings?: Settings;
66
+ }
67
+ export interface Keyword {
68
+ /** Keyword value. */
69
+ term?: string;
70
+ /** Whether the keyword is the main focus keyword. */
71
+ isMain?: boolean;
72
+ /** The source that added the keyword terms to the SEO settings. */
73
+ origin?: string | null;
74
+ }
75
+ export interface Tag {
76
+ /**
77
+ * SEO tag type.
78
+ *
79
+ *
80
+ * Supported values: `title`, `meta`, `script`, `link`.
81
+ */
82
+ type?: string;
83
+ /**
84
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
85
+ * For example: `{"name": "description", "content": "the description itself"}`.
86
+ */
87
+ props?: Record<string, any> | null;
88
+ /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
89
+ meta?: Record<string, any> | null;
90
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
91
+ children?: string;
92
+ /** Whether the tag is a custom tag. */
93
+ custom?: boolean;
94
+ /** Whether the tag is disabled. */
95
+ disabled?: boolean;
96
+ }
97
+ export interface Settings {
98
+ /**
99
+ * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
100
+ *
101
+ *
102
+ * Default: `false` (Auto Redirect is enabled.)
103
+ */
104
+ preventAutoRedirect?: boolean;
105
+ /** User-selected keyword terms for a specific page. */
106
+ keywords?: Keyword[];
107
+ }
108
+ export interface FocalPoint {
109
+ /** X-coordinate of the focal point. */
110
+ x?: number;
111
+ /** Y-coordinate of the focal point. */
112
+ y?: number;
113
+ /** crop by height */
114
+ height?: number | null;
115
+ /** crop by width */
116
+ width?: number | null;
117
+ }
118
+ export interface CategoryTranslation {
119
+ /** Category ID. */
120
+ _id?: string;
121
+ /** Label displayed in the categories menu on the site. */
122
+ label?: string | null;
123
+ /** Language of the category. */
124
+ language?: string | null;
125
+ /** URL of this category page. */
126
+ url?: string;
127
+ }
128
+ export interface InitialCategoriesCopied {
129
+ /** Number of categories copied. */
130
+ count?: number;
131
+ }
132
+ export interface CreateCategoryRequest {
133
+ /** Category info. */
134
+ category: Category;
135
+ /**
136
+ * List of additional category fields to include in the response. By default
137
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
138
+ *
139
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
140
+ * retrieve the url field in the response in addition to the category’s base fields.
141
+ */
142
+ fieldsets?: Field[];
143
+ }
144
+ export declare enum Field {
145
+ UNKNOWN = "UNKNOWN",
146
+ /** Includes Category url. */
147
+ URL = "URL",
148
+ /**
149
+ * Includes internal id field.
150
+ * Reserved for internal use
151
+ */
152
+ INTERNAL_ID = "INTERNAL_ID",
153
+ /** Includes SEO data. */
154
+ SEO = "SEO"
155
+ }
156
+ export interface CreateCategoryResponse {
157
+ /** Category info. */
158
+ category?: Category;
159
+ }
160
+ export interface BulkCreateCategoriesRequest {
161
+ /** Categories to create. */
162
+ categories?: Category[];
163
+ /** Whether to return the full created category entities in the response. */
164
+ returnFullEntity?: boolean;
165
+ /**
166
+ * List of additional category fields to include in the response. By default
167
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
168
+ *
169
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
170
+ * retrieve the url field in the response in addition to the category’s base fields.
171
+ */
172
+ fieldsets?: Field[];
173
+ }
174
+ export interface BulkCreateCategoriesResponse {
175
+ /** Categories created by bulk action. */
176
+ results?: BulkCategoryResult[];
177
+ /** Bulk action metadata. */
178
+ bulkActionMetadata?: BulkActionMetadata;
179
+ }
180
+ export interface BulkCategoryResult {
181
+ /** Bulk actions metadata for category. */
182
+ itemMetadata?: ItemMetadata;
183
+ /** Optional created category. */
184
+ item?: Category;
185
+ }
186
+ export interface ItemMetadata {
187
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
188
+ _id?: string | null;
189
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
190
+ originalIndex?: number;
191
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
192
+ success?: boolean;
193
+ /** Details about the error in case of failure. */
194
+ error?: ApplicationError;
195
+ }
196
+ export interface ApplicationError {
197
+ /** Error code. */
198
+ code?: string;
199
+ /** Description of the error. */
200
+ description?: string;
201
+ /** Data related to the error. */
202
+ data?: Record<string, any> | null;
203
+ }
204
+ export interface BulkActionMetadata {
205
+ /** Number of items that were successfully processed. */
206
+ totalSuccesses?: number;
207
+ /** Number of items that couldn't be processed. */
208
+ totalFailures?: number;
209
+ /** Number of failures without details because detailed failure threshold was exceeded. */
210
+ undetailedFailures?: number;
211
+ }
212
+ export interface BulkUpdateCategoriesRequest {
213
+ /** Categories to update. */
214
+ categories?: MaskedCategory[];
215
+ /** Whether to return the full created category entities in the response. */
216
+ returnFullEntity?: boolean;
217
+ /**
218
+ * List of additional category fields to include in the response. By default
219
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
220
+ *
221
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
222
+ * retrieve the url field in the response in addition to the category’s base fields.
223
+ */
224
+ fieldsets?: Field[];
225
+ }
226
+ export interface MaskedCategory {
227
+ /** Category */
228
+ category?: Category;
229
+ /** Field mask of fields to update. */
230
+ fieldMask?: string[];
231
+ }
232
+ export interface BulkUpdateCategoriesResponse {
233
+ /** Categories updated by bulk action. */
234
+ results?: BulkCategoryResult[];
235
+ /** Bulk action metadata. */
236
+ bulkActionMetadata?: BulkActionMetadata;
237
+ }
238
+ export interface UpdateCategoryRequest {
239
+ /** Category info. */
240
+ category: Category;
241
+ /**
242
+ * List of additional category fields to include in the response. By default
243
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
244
+ *
245
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
246
+ * retrieve the url field in the response in addition to the category’s base fields.
247
+ */
248
+ fieldsets?: Field[];
249
+ }
250
+ export interface UpdateCategoryResponse {
251
+ /** Category info. */
252
+ category?: Category;
253
+ }
254
+ export interface GetCategoriesCountByLanguageRequest {
255
+ }
256
+ export interface GetCategoriesCountByLanguageResponse {
257
+ /** The language and it's count. */
258
+ categoriesLanguageCount?: CategoryLanguageCount[];
259
+ }
260
+ export interface CategoryLanguageCount {
261
+ /** 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. */
262
+ languageCode?: string | null;
263
+ /** The count of Categories for the language. */
264
+ categoryCount?: number | null;
265
+ }
266
+ export interface GetCategoryRequest {
267
+ /** Category ID. */
268
+ categoryId: string;
269
+ /**
270
+ * List of additional category fields to include in the response. By default
271
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
272
+ *
273
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
274
+ * retrieve the url field in the response in addition to the category’s base fields.
275
+ */
276
+ fieldsets?: Field[];
277
+ }
278
+ export interface GetCategoryResponse {
279
+ /** Category info. */
280
+ category?: Category;
281
+ }
282
+ export interface GetCategoryBySlugRequest {
283
+ /** Slug of the category to retrieve. */
284
+ slug: string;
285
+ /**
286
+ * List of additional category fields to include in the response. By default
287
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
288
+ *
289
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
290
+ * retrieve the url field in the response in addition to the category’s base fields.
291
+ */
292
+ fieldsets?: Field[];
293
+ /**
294
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
295
+ * Language of the category to retrieve.
296
+ */
297
+ language?: string | null;
298
+ }
299
+ export interface GetCategoryBySlugResponse {
300
+ /** Category info. */
301
+ category?: Category;
302
+ }
303
+ export interface ListCategoriesRequest {
304
+ /** Pagination options. */
305
+ paging?: BlogPaging;
306
+ /**
307
+ * List of additional category fields to include in the response. By default
308
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
309
+ *
310
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
311
+ * retrieve the url field in the response in addition to the category’s base fields.
312
+ */
313
+ fieldsets?: Field[];
314
+ /**
315
+ * Language filter.
316
+ *
317
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
318
+ * Pass a language to only receive categories that are in that language.
319
+ * If omitted, categories in all languages are returned.
320
+ */
321
+ language?: string | null;
322
+ }
323
+ export interface BlogPaging {
324
+ /**
325
+ * Number of items to skip in the current sort order.
326
+ *
327
+ *
328
+ * Default: `0`
329
+ */
330
+ offset?: number;
331
+ /**
332
+ * Number of items to return.
333
+ *
334
+ * Default: `50`
335
+ *
336
+ * Max: `100`
337
+ */
338
+ limit?: number;
339
+ /** Pointer to the next or previous page in the list of results. */
340
+ cursor?: string | null;
341
+ }
342
+ export interface ListCategoriesResponse {
343
+ /** List of categories. */
344
+ categories?: Category[];
345
+ /** Details on the paged set of results returned. */
346
+ metaData?: MetaData;
347
+ }
348
+ export interface MetaData {
349
+ /** Number of items returned in this response. */
350
+ count?: number;
351
+ /** Requested offset. */
352
+ offset?: number;
353
+ /** Total number of items that match the query. */
354
+ total?: number;
355
+ /** Pointer to the next or previous page in the list of results. */
356
+ cursor?: string | null;
357
+ }
358
+ export interface QueryCategoriesRequest {
359
+ /** Query options. */
360
+ query?: PlatformQuery;
361
+ /**
362
+ * List of additional category fields to include in the response. By default
363
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
364
+ *
365
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
366
+ * retrieve the url field in the response in addition to the category’s base fields.
367
+ */
368
+ fieldsets?: Field[];
369
+ }
370
+ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
371
+ /** Paging options to limit and skip the number of items. */
372
+ paging?: Paging;
373
+ /** 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`. */
374
+ cursorPaging?: CursorPaging;
375
+ /**
376
+ * Filter object in the following format:
377
+ * `"filter" : {
378
+ * "fieldName1": "value1",
379
+ * "fieldName2":{"$operator":"value2"}
380
+ * }`
381
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
382
+ */
383
+ filter?: Record<string, any> | null;
384
+ /**
385
+ * Sort object in the following format:
386
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
387
+ */
388
+ sort?: Sorting[];
389
+ }
390
+ /** @oneof */
391
+ export interface PlatformQueryPagingMethodOneOf {
392
+ /** Paging options to limit and skip the number of items. */
393
+ paging?: Paging;
394
+ /** 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`. */
395
+ cursorPaging?: CursorPaging;
396
+ }
397
+ export interface Sorting {
398
+ /** Name of the field to sort by. */
399
+ fieldName?: string;
400
+ /** Sort order. */
401
+ order?: SortOrder;
402
+ }
403
+ export declare enum SortOrder {
404
+ ASC = "ASC",
405
+ DESC = "DESC"
406
+ }
407
+ export interface Paging {
408
+ /** Number of items to load. */
409
+ limit?: number | null;
410
+ /** Number of items to skip in the current sort order. */
411
+ offset?: number | null;
412
+ }
413
+ export interface CursorPaging {
414
+ /** Number of items to load. */
415
+ limit?: number | null;
416
+ /**
417
+ * Pointer to the next or previous page in the list of results.
418
+ *
419
+ * You can get the relevant cursor token
420
+ * from the `pagingMetadata` object in the previous call's response.
421
+ * Not relevant for the first request.
422
+ */
423
+ cursor?: string | null;
424
+ }
425
+ export interface QueryCategoriesResponse {
426
+ /** List of categories. */
427
+ categories?: Category[];
428
+ /** Details on the paged set of results returned. */
429
+ pagingMetadata?: PagingMetadataV2;
430
+ }
431
+ export interface PagingMetadataV2 {
432
+ /** Number of items returned in the response. */
433
+ count?: number | null;
434
+ /** Offset that was requested. */
435
+ offset?: number | null;
436
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
437
+ total?: number | null;
438
+ /** Flag that indicates the server failed to calculate the `total` field. */
439
+ tooManyToCount?: boolean | null;
440
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
441
+ cursors?: Cursors;
442
+ }
443
+ export interface Cursors {
444
+ /** Cursor pointing to next page in the list of results. */
445
+ next?: string | null;
446
+ /** Cursor pointing to previous page in the list of results. */
447
+ prev?: string | null;
448
+ }
449
+ export interface BulkDeleteCategoryRequest {
450
+ /** Category IDs. */
451
+ categoryIds?: string[];
452
+ /** Should delete bypassing the trash-bin. */
453
+ permanent?: boolean;
454
+ }
455
+ export interface BulkDeleteCategoryResponse {
456
+ }
457
+ export interface DeleteCategoryRequest {
458
+ /** Category ID. */
459
+ categoryId: string;
460
+ }
461
+ export interface DeleteCategoryResponse {
462
+ }
463
+ export interface DomainEvent extends DomainEventBodyOneOf {
464
+ createdEvent?: EntityCreatedEvent;
465
+ updatedEvent?: EntityUpdatedEvent;
466
+ deletedEvent?: EntityDeletedEvent;
467
+ actionEvent?: ActionEvent;
468
+ /**
469
+ * Unique event ID.
470
+ * Allows clients to ignore duplicate webhooks.
471
+ */
472
+ _id?: string;
473
+ /**
474
+ * Assumes actions are also always typed to an entity_type
475
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
476
+ */
477
+ entityFqdn?: string;
478
+ /**
479
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
480
+ * This is although the created/updated/deleted notion is duplication of the oneof types
481
+ * Example: created/updated/deleted/started/completed/email_opened
482
+ */
483
+ slug?: string;
484
+ /** ID of the entity associated with the event. */
485
+ entityId?: string;
486
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
487
+ eventTime?: Date | null;
488
+ /**
489
+ * Whether the event was triggered as a result of a privacy regulation application
490
+ * (for example, GDPR).
491
+ */
492
+ triggeredByAnonymizeRequest?: boolean | null;
493
+ /** If present, indicates the action that triggered the event. */
494
+ originatedFrom?: string | null;
495
+ /**
496
+ * A sequence number defining the order of updates to the underlying entity.
497
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
498
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
499
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
500
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
501
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
502
+ */
503
+ entityEventSequence?: string | null;
504
+ }
505
+ /** @oneof */
506
+ export interface DomainEventBodyOneOf {
507
+ createdEvent?: EntityCreatedEvent;
508
+ updatedEvent?: EntityUpdatedEvent;
509
+ deletedEvent?: EntityDeletedEvent;
510
+ actionEvent?: ActionEvent;
511
+ }
512
+ export interface EntityCreatedEvent {
513
+ entity?: string;
514
+ }
515
+ export interface RestoreInfo {
516
+ deletedDate?: Date | null;
517
+ }
518
+ export interface EntityUpdatedEvent {
519
+ /**
520
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
521
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
522
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
523
+ */
524
+ currentEntity?: string;
525
+ }
526
+ export interface EntityDeletedEvent {
527
+ /** Entity that was deleted */
528
+ deletedEntity?: string | null;
529
+ }
530
+ export interface ActionEvent {
531
+ body?: string;
532
+ }
533
+ export interface MessageEnvelope {
534
+ /** App instance ID. */
535
+ instanceId?: string | null;
536
+ /** Event type. */
537
+ eventType?: string;
538
+ /** The identification type and identity data. */
539
+ identity?: IdentificationData;
540
+ /** Stringify payload. */
541
+ data?: string;
542
+ }
543
+ export interface IdentificationData extends IdentificationDataIdOneOf {
544
+ /** ID of a site visitor that has not logged in to the site. */
545
+ anonymousVisitorId?: string;
546
+ /** ID of a site visitor that has logged in to the site. */
547
+ memberId?: string;
548
+ /** ID of a Wix user (site owner, contributor, etc.). */
549
+ wixUserId?: string;
550
+ /** ID of an app. */
551
+ appId?: string;
552
+ /** @readonly */
553
+ identityType?: WebhookIdentityType;
554
+ }
555
+ /** @oneof */
556
+ export interface IdentificationDataIdOneOf {
557
+ /** ID of a site visitor that has not logged in to the site. */
558
+ anonymousVisitorId?: string;
559
+ /** ID of a site visitor that has logged in to the site. */
560
+ memberId?: string;
561
+ /** ID of a Wix user (site owner, contributor, etc.). */
562
+ wixUserId?: string;
563
+ /** ID of an app. */
564
+ appId?: string;
565
+ }
566
+ export declare enum WebhookIdentityType {
567
+ UNKNOWN = "UNKNOWN",
568
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
569
+ MEMBER = "MEMBER",
570
+ WIX_USER = "WIX_USER",
571
+ APP = "APP"
572
+ }
573
+ interface TagNonNullableFields {
574
+ type: string;
575
+ children: string;
576
+ custom: boolean;
577
+ disabled: boolean;
578
+ }
579
+ interface KeywordNonNullableFields {
580
+ term: string;
581
+ isMain: boolean;
582
+ }
583
+ interface SettingsNonNullableFields {
584
+ preventAutoRedirect: boolean;
585
+ keywords: KeywordNonNullableFields[];
586
+ }
587
+ interface SeoSchemaNonNullableFields {
588
+ tags: TagNonNullableFields[];
589
+ settings?: SettingsNonNullableFields;
590
+ }
591
+ interface CategoryTranslationNonNullableFields {
592
+ _id: string;
593
+ url: string;
594
+ }
595
+ export interface CategoryNonNullableFields {
596
+ _id: string;
597
+ label: string;
598
+ postCount: number;
599
+ url: string;
600
+ title: string;
601
+ slug: string;
602
+ seoData?: SeoSchemaNonNullableFields;
603
+ coverImage: string;
604
+ translations: CategoryTranslationNonNullableFields[];
605
+ }
606
+ export interface CreateCategoryResponseNonNullableFields {
607
+ category?: CategoryNonNullableFields;
608
+ }
609
+ export interface UpdateCategoryResponseNonNullableFields {
610
+ category?: CategoryNonNullableFields;
611
+ }
612
+ export interface GetCategoryResponseNonNullableFields {
613
+ category?: CategoryNonNullableFields;
614
+ }
615
+ export interface GetCategoryBySlugResponseNonNullableFields {
616
+ category?: CategoryNonNullableFields;
617
+ }
618
+ interface MetaDataNonNullableFields {
619
+ count: number;
620
+ offset: number;
621
+ total: number;
622
+ }
623
+ export interface ListCategoriesResponseNonNullableFields {
624
+ categories: CategoryNonNullableFields[];
625
+ metaData?: MetaDataNonNullableFields;
626
+ }
627
+ export interface QueryCategoriesResponseNonNullableFields {
628
+ categories: CategoryNonNullableFields[];
629
+ }
630
+ export interface BaseEventMetadata {
631
+ /** App instance ID. */
632
+ instanceId?: string | null;
633
+ /** Event type. */
634
+ eventType?: string;
635
+ /** The identification type and identity data. */
636
+ identity?: IdentificationData;
637
+ }
638
+ export interface EventMetadata extends BaseEventMetadata {
639
+ /**
640
+ * Unique event ID.
641
+ * Allows clients to ignore duplicate webhooks.
642
+ */
643
+ _id?: string;
644
+ /**
645
+ * Assumes actions are also always typed to an entity_type
646
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
647
+ */
648
+ entityFqdn?: string;
649
+ /**
650
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
651
+ * This is although the created/updated/deleted notion is duplication of the oneof types
652
+ * Example: created/updated/deleted/started/completed/email_opened
653
+ */
654
+ slug?: string;
655
+ /** ID of the entity associated with the event. */
656
+ entityId?: string;
657
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
658
+ eventTime?: Date | null;
659
+ /**
660
+ * Whether the event was triggered as a result of a privacy regulation application
661
+ * (for example, GDPR).
662
+ */
663
+ triggeredByAnonymizeRequest?: boolean | null;
664
+ /** If present, indicates the action that triggered the event. */
665
+ originatedFrom?: string | null;
666
+ /**
667
+ * A sequence number defining the order of updates to the underlying entity.
668
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
669
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
670
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
671
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
672
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
673
+ */
674
+ entityEventSequence?: string | null;
675
+ }
676
+ export interface CategoryCreatedEnvelope {
677
+ entity: Category;
678
+ metadata: EventMetadata;
679
+ }
680
+ /**
681
+ * Triggered when a category is created.
682
+ * @permissionScope Read Blog
683
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
684
+ * @permissionScope Manage Blog
685
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
686
+ * @permissionScope Read Draft Blog Posts
687
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
688
+ * @permissionId BLOG.READ-CATEGORY
689
+ * @webhook
690
+ * @eventType wix.blog.v3.category_created
691
+ */
692
+ export declare function onCategoryCreated(handler: (event: CategoryCreatedEnvelope) => void | Promise<void>): void;
693
+ export interface CategoryDeletedEnvelope {
694
+ metadata: EventMetadata;
695
+ }
696
+ /**
697
+ * Triggered when a category is deleted.
698
+ * @permissionScope Read Blog
699
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
700
+ * @permissionScope Manage Blog
701
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
702
+ * @permissionScope Read Draft Blog Posts
703
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
704
+ * @permissionId BLOG.READ-CATEGORY
705
+ * @webhook
706
+ * @eventType wix.blog.v3.category_deleted
707
+ */
708
+ export declare function onCategoryDeleted(handler: (event: CategoryDeletedEnvelope) => void | Promise<void>): void;
709
+ export interface CategoryUpdatedEnvelope {
710
+ entity: Category;
711
+ metadata: EventMetadata;
712
+ }
713
+ /**
714
+ * Triggered when a category is updated.
715
+ * @permissionScope Read Blog
716
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
717
+ * @permissionScope Manage Blog
718
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
719
+ * @permissionScope Read Draft Blog Posts
720
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
721
+ * @permissionId BLOG.READ-CATEGORY
722
+ * @webhook
723
+ * @eventType wix.blog.v3.category_updated
724
+ */
725
+ export declare function onCategoryUpdated(handler: (event: CategoryUpdatedEnvelope) => void | Promise<void>): void;
726
+ /**
727
+ * Creates a category.
728
+ * @param category - Category info.
729
+ * @public
730
+ * @requiredField category
731
+ * @requiredField category.label
732
+ * @permissionId BLOG.CREATE-CATEGORY
733
+ * @permissionScope Manage Blog
734
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
735
+ * @applicableIdentity APP
736
+ * @returns Category info.
737
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory
738
+ */
739
+ export declare function createCategory(category: Category, options?: CreateCategoryOptions): Promise<Category & CategoryNonNullableFields>;
740
+ export interface CreateCategoryOptions {
741
+ /**
742
+ * List of additional category fields to include in the response. By default
743
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
744
+ *
745
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
746
+ * retrieve the url field in the response in addition to the category’s base fields.
747
+ */
748
+ fieldsets?: Field[];
749
+ }
750
+ /**
751
+ * Updates a category.
752
+ * @param _id - Category ID.
753
+ * @public
754
+ * @requiredField _id
755
+ * @requiredField category
756
+ * @permissionId BLOG.EDIT-CATEGORY
757
+ * @permissionScope Manage Blog
758
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
759
+ * @applicableIdentity APP
760
+ * @returns Category info.
761
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory
762
+ */
763
+ export declare function updateCategory(_id: string, category: UpdateCategory, options?: UpdateCategoryOptions): Promise<Category & CategoryNonNullableFields>;
764
+ export interface UpdateCategory {
765
+ /** Category ID. */
766
+ _id?: string;
767
+ /** Category label. Displayed in the Category Menu. */
768
+ label?: string;
769
+ /**
770
+ * Number of posts in the category.
771
+ * @readonly
772
+ */
773
+ postCount?: number;
774
+ /**
775
+ * The `url` of the page that lists every post with the specified category.
776
+ * @readonly
777
+ */
778
+ url?: string;
779
+ /** Category description. */
780
+ description?: string | null;
781
+ /**
782
+ * Category title.
783
+ * @deprecated Category title.
784
+ * @targetRemovalDate 2025-07-16
785
+ */
786
+ title?: string;
787
+ /**
788
+ * Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).
789
+ * Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.
790
+ *
791
+ * Default: `-1`
792
+ */
793
+ displayPosition?: number | null;
794
+ /** ID of the category's translations. All translations of a single category share the same `translationId`. */
795
+ translationId?: string | null;
796
+ /**
797
+ * Category language.
798
+ *
799
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
800
+ */
801
+ language?: string | null;
802
+ /** Part of a category's URL that refers to a specific category. For example, the slug of `https:/example.com/blog/category/famous-cats` is `famous-cats`. */
803
+ slug?: string;
804
+ /**
805
+ * Reserved for internal use.
806
+ * @readonly
807
+ */
808
+ internalId?: string | null;
809
+ /** SEO data. */
810
+ seoData?: SeoSchema;
811
+ /** Category cover image. */
812
+ coverImage?: string;
813
+ /**
814
+ * Date and time the Category was last updated.
815
+ * @readonly
816
+ */
817
+ _updatedDate?: Date | null;
818
+ }
819
+ export interface UpdateCategoryOptions {
820
+ /**
821
+ * List of additional category fields to include in the response. By default
822
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
823
+ *
824
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
825
+ * retrieve the url field in the response in addition to the category’s base fields.
826
+ */
827
+ fieldsets?: Field[];
828
+ }
829
+ /**
830
+ * Gets a category with the specified ID.
831
+ * @param categoryId - Category ID.
832
+ * @public
833
+ * @requiredField categoryId
834
+ * @param options - Options specifying which fields to return.
835
+ * @permissionId BLOG.READ-CATEGORY
836
+ * @permissionScope Read Blog
837
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
838
+ * @permissionScope Manage Blog
839
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
840
+ * @permissionScope Read Draft Blog Posts
841
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
842
+ * @applicableIdentity APP
843
+ * @applicableIdentity VISITOR
844
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory
845
+ */
846
+ export declare function getCategory(categoryId: string, options?: GetCategoryOptions): Promise<GetCategoryResponse & GetCategoryResponseNonNullableFields>;
847
+ export interface GetCategoryOptions {
848
+ /**
849
+ * List of additional category fields to include in the response. By default
850
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
851
+ *
852
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
853
+ * retrieve the url field in the response in addition to the category’s base fields.
854
+ */
855
+ fieldsets?: Field[];
856
+ }
857
+ /**
858
+ * Gets a category with the specified slug.
859
+ *
860
+ * The slug is at the end of the URL of a specific category.
861
+ * For example, if a category's URL is `https://example.com/blog/categories/famous-cats`, the slug is `famous-cats`.
862
+ * The slug is a case-sensitive string that is derived from the category's label, unless specified otherwise.
863
+ * @public
864
+ * @requiredField slug
865
+ * @param slug - Slug of the category to retrieve.
866
+ *
867
+ * The end of a category's URL. For example, `'https:/example.com/blog/category/{my-category-slug}'`. Case sensitive and generally based on the category `label` if not specified.
868
+ * @param options - Options specifying which fields to return.
869
+ * @permissionId BLOG.READ-CATEGORY
870
+ * @permissionScope Read Blog
871
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
872
+ * @permissionScope Manage Blog
873
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
874
+ * @permissionScope Read Draft Blog Posts
875
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
876
+ * @applicableIdentity APP
877
+ * @applicableIdentity VISITOR
878
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug
879
+ */
880
+ export declare function getCategoryBySlug(slug: string, options?: GetCategoryBySlugOptions): Promise<GetCategoryBySlugResponse & GetCategoryBySlugResponseNonNullableFields>;
881
+ export interface GetCategoryBySlugOptions {
882
+ /**
883
+ * List of additional category fields to include in the response. By default
884
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
885
+ *
886
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
887
+ * retrieve the url field in the response in addition to the category’s base fields.
888
+ */
889
+ fieldsets?: Field[];
890
+ /**
891
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
892
+ * Language of the category to retrieve.
893
+ */
894
+ language?: string | null;
895
+ }
896
+ /**
897
+ * Retrieves a list of up to 100 categories per request.
898
+ *
899
+ * If you pass a language filter to the method, it returns a list of up to 100 categories in the requested language.
900
+ *
901
+ * The categoies are displayed in order of their `displayPosition`, starting with `0`. The `displayPosition` is the position in which the categories
902
+ * are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu page with a `displayPosition` of `-1`.
903
+ *
904
+ * List Categories runs with these defaults, which you can override:
905
+ * - `paging.limit` is `50`.
906
+ * - `paging.offset` is `0`.
907
+ *
908
+ * List Categories is sorted by `displayPosition` in descending order. This cannot be overridden.
909
+ * @public
910
+ * @param options - Filter and paging options.
911
+ * @permissionId BLOG.READ-CATEGORY
912
+ * @permissionScope Read Blog
913
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
914
+ * @permissionScope Manage Blog
915
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
916
+ * @permissionScope Read Draft Blog Posts
917
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
918
+ * @applicableIdentity APP
919
+ * @applicableIdentity VISITOR
920
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories
921
+ */
922
+ export declare function listCategories(options?: ListCategoriesOptions): Promise<ListCategoriesResponse & ListCategoriesResponseNonNullableFields>;
923
+ export interface ListCategoriesOptions {
924
+ /** Pagination options. */
925
+ paging?: BlogPaging;
926
+ /**
927
+ * List of additional category fields to include in the response. By default
928
+ * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
929
+ *
930
+ * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
931
+ * retrieve the url field in the response in addition to the category’s base fields.
932
+ */
933
+ fieldsets?: Field[];
934
+ /**
935
+ * Language filter.
936
+ *
937
+ * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
938
+ * Pass a language to only receive categories that are in that language.
939
+ * If omitted, categories in all languages are returned.
940
+ */
941
+ language?: string | null;
942
+ }
943
+ /**
944
+ * Creates a query to retrieve a list of categories.
945
+ *
946
+ *
947
+ * The Query Categories method builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending) object.
948
+ *
949
+ * The response contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/find) method.
950
+ *
951
+ * You can refine the query by chaining `CategoriesQueryBuilder` methods to the query. `CategoriesQueryBuilder` methods enable you to sort, filter, and control the results that Query Categories returns. Any methods chained to the Query Categories method are applied in the order that they are called.
952
+ *
953
+ * Query Categories runs with these `CategoriesQueryBuilder` defaults, which you can override.
954
+ * - [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/limit)
955
+ * - [`ascending(displayPosition)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending)
956
+ *
957
+ * The following `CategoriesQueryBuilder` methods are supported for Query Categories. For a full description of the `Categories` object, see the response for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-result/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
958
+ * @public
959
+ * @param options - Options specifying which fields to return.
960
+ * @permissionScope Read Blog
961
+ * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
962
+ * @permissionScope Manage Blog
963
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
964
+ * @permissionScope Read Draft Blog Posts
965
+ * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
966
+ * @permissionId BLOG.READ-CATEGORY
967
+ * @applicableIdentity APP
968
+ * @applicableIdentity VISITOR
969
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories
970
+ */
971
+ export declare function queryCategories(options?: QueryCategoriesOptions): CategoriesQueryBuilder;
972
+ export interface QueryCategoriesOptions {
973
+ /** */
974
+ fieldsets?: Field[] | undefined;
975
+ }
976
+ interface QueryOffsetResult {
977
+ currentPage: number | undefined;
978
+ totalPages: number | undefined;
979
+ totalCount: number | undefined;
980
+ hasNext: () => boolean;
981
+ hasPrev: () => boolean;
982
+ length: number;
983
+ pageSize: number;
984
+ }
985
+ export interface CategoriesQueryResult extends QueryOffsetResult {
986
+ items: Category[];
987
+ query: CategoriesQueryBuilder;
988
+ next: () => Promise<CategoriesQueryResult>;
989
+ prev: () => Promise<CategoriesQueryResult>;
990
+ }
991
+ export interface CategoriesQueryBuilder {
992
+ /** @param propertyName - Property whose value is compared with `value`.
993
+ * @param value - Value to compare against.
994
+ */
995
+ eq: (propertyName: '_id' | 'label' | 'postCount' | 'title' | 'displayPosition' | 'translationId' | 'language' | 'slug' | 'internalId', value: any) => CategoriesQueryBuilder;
996
+ /** @param propertyName - Property whose value is compared with `value`.
997
+ * @param value - Value to compare against.
998
+ */
999
+ ne: (propertyName: '_id' | 'label' | 'postCount' | 'title' | 'displayPosition' | 'translationId' | 'language' | 'slug' | 'internalId', value: any) => CategoriesQueryBuilder;
1000
+ /** @param propertyName - Property whose value is compared with `value`.
1001
+ * @param value - Value to compare against.
1002
+ */
1003
+ ge: (propertyName: 'postCount' | 'displayPosition', value: any) => CategoriesQueryBuilder;
1004
+ /** @param propertyName - Property whose value is compared with `value`.
1005
+ * @param value - Value to compare against.
1006
+ */
1007
+ gt: (propertyName: 'postCount' | 'displayPosition', value: any) => CategoriesQueryBuilder;
1008
+ /** @param propertyName - Property whose value is compared with `value`.
1009
+ * @param value - Value to compare against.
1010
+ */
1011
+ le: (propertyName: 'postCount' | 'displayPosition', value: any) => CategoriesQueryBuilder;
1012
+ /** @param propertyName - Property whose value is compared with `value`.
1013
+ * @param value - Value to compare against.
1014
+ */
1015
+ lt: (propertyName: 'postCount' | 'displayPosition', value: any) => CategoriesQueryBuilder;
1016
+ /** @param propertyName - Property whose value is compared with `string`.
1017
+ * @param string - String to compare against. Case-insensitive.
1018
+ */
1019
+ startsWith: (propertyName: 'label' | 'title', value: string) => CategoriesQueryBuilder;
1020
+ in: (propertyName: '_id' | 'label' | 'postCount' | 'title' | 'displayPosition' | 'translationId' | 'language' | 'slug' | 'internalId', value: any) => CategoriesQueryBuilder;
1021
+ exists: (propertyName: 'label' | 'title' | 'translationId' | 'language' | 'slug', value: boolean) => CategoriesQueryBuilder;
1022
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1023
+ ascending: (...propertyNames: Array<'_id' | 'label' | 'postCount' | 'title' | 'displayPosition' | 'language' | 'slug'>) => CategoriesQueryBuilder;
1024
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
1025
+ descending: (...propertyNames: Array<'_id' | 'label' | 'postCount' | 'title' | 'displayPosition' | 'language' | 'slug'>) => CategoriesQueryBuilder;
1026
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
1027
+ limit: (limit: number) => CategoriesQueryBuilder;
1028
+ /** @param skip - Number of items to skip in the query results before returning the results. */
1029
+ skip: (skip: number) => CategoriesQueryBuilder;
1030
+ find: () => Promise<CategoriesQueryResult>;
1031
+ }
1032
+ /**
1033
+ * Deletes a category.
1034
+ * @param categoryId - Category ID.
1035
+ * @public
1036
+ * @requiredField categoryId
1037
+ * @permissionId BLOG.DELETE-CATEGORY
1038
+ * @permissionScope Manage Blog
1039
+ * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
1040
+ * @applicableIdentity APP
1041
+ * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory
1042
+ */
1043
+ export declare function deleteCategory(categoryId: string): Promise<void>;
1044
+ export {};