@wix/auto_sdk_blog_categories 1.0.13 → 1.0.15

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 (117) hide show
  1. package/build/{internal/cjs/src/blog-v3-category-categories.universal.d.ts → cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
  2. package/build/cjs/index.d.ts +119 -1
  3. package/build/cjs/index.js +935 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +461 -1
  6. package/build/cjs/meta.js +539 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{cjs/src/blog-v3-category-categories.universal.d.ts → es/blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
  9. package/build/{internal/es/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
  10. package/build/es/index.mjs +902 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/{internal/es/src/blog-v3-category-categories.types.d.ts → es/meta.d.mts} +65 -320
  13. package/build/es/meta.mjs +509 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/{es/src/blog-v3-category-categories.universal.d.ts → internal/cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
  16. package/build/internal/cjs/index.d.ts +119 -1
  17. package/build/internal/cjs/index.js +935 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +461 -1
  20. package/build/internal/cjs/meta.js +539 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/{src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
  23. package/build/internal/{cjs/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
  24. package/build/internal/es/index.mjs +902 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/{cjs/src/blog-v3-category-categories.types.d.ts → internal/es/meta.d.mts} +65 -320
  27. package/build/internal/es/meta.mjs +509 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
  34. package/build/cjs/src/blog-v3-category-categories.context.js +0 -33
  35. package/build/cjs/src/blog-v3-category-categories.context.js.map +0 -1
  36. package/build/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
  37. package/build/cjs/src/blog-v3-category-categories.http.js +0 -408
  38. package/build/cjs/src/blog-v3-category-categories.http.js.map +0 -1
  39. package/build/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
  40. package/build/cjs/src/blog-v3-category-categories.meta.js +0 -161
  41. package/build/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
  42. package/build/cjs/src/blog-v3-category-categories.public.d.ts +0 -99
  43. package/build/cjs/src/blog-v3-category-categories.public.js +0 -112
  44. package/build/cjs/src/blog-v3-category-categories.public.js.map +0 -1
  45. package/build/cjs/src/blog-v3-category-categories.types.js +0 -25
  46. package/build/cjs/src/blog-v3-category-categories.types.js.map +0 -1
  47. package/build/cjs/src/blog-v3-category-categories.universal.js +0 -513
  48. package/build/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/blog-v3-category-categories.context.d.ts +0 -27
  59. package/build/es/src/blog-v3-category-categories.context.js +0 -27
  60. package/build/es/src/blog-v3-category-categories.context.js.map +0 -1
  61. package/build/es/src/blog-v3-category-categories.http.d.ts +0 -49
  62. package/build/es/src/blog-v3-category-categories.http.js +0 -398
  63. package/build/es/src/blog-v3-category-categories.http.js.map +0 -1
  64. package/build/es/src/blog-v3-category-categories.meta.d.ts +0 -27
  65. package/build/es/src/blog-v3-category-categories.meta.js +0 -128
  66. package/build/es/src/blog-v3-category-categories.meta.js.map +0 -1
  67. package/build/es/src/blog-v3-category-categories.public.d.ts +0 -99
  68. package/build/es/src/blog-v3-category-categories.public.js +0 -99
  69. package/build/es/src/blog-v3-category-categories.public.js.map +0 -1
  70. package/build/es/src/blog-v3-category-categories.types.d.ts +0 -716
  71. package/build/es/src/blog-v3-category-categories.types.js +0 -22
  72. package/build/es/src/blog-v3-category-categories.types.js.map +0 -1
  73. package/build/es/src/blog-v3-category-categories.universal.js +0 -480
  74. package/build/es/src/blog-v3-category-categories.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
  79. package/build/internal/cjs/src/blog-v3-category-categories.context.js +0 -33
  80. package/build/internal/cjs/src/blog-v3-category-categories.context.js.map +0 -1
  81. package/build/internal/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
  82. package/build/internal/cjs/src/blog-v3-category-categories.http.js +0 -408
  83. package/build/internal/cjs/src/blog-v3-category-categories.http.js.map +0 -1
  84. package/build/internal/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
  85. package/build/internal/cjs/src/blog-v3-category-categories.meta.js +0 -161
  86. package/build/internal/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
  87. package/build/internal/cjs/src/blog-v3-category-categories.public.js +0 -112
  88. package/build/internal/cjs/src/blog-v3-category-categories.public.js.map +0 -1
  89. package/build/internal/cjs/src/blog-v3-category-categories.types.d.ts +0 -716
  90. package/build/internal/cjs/src/blog-v3-category-categories.types.js +0 -25
  91. package/build/internal/cjs/src/blog-v3-category-categories.types.js.map +0 -1
  92. package/build/internal/cjs/src/blog-v3-category-categories.universal.js +0 -513
  93. package/build/internal/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/blog-v3-category-categories.context.d.ts +0 -27
  104. package/build/internal/es/src/blog-v3-category-categories.context.js +0 -27
  105. package/build/internal/es/src/blog-v3-category-categories.context.js.map +0 -1
  106. package/build/internal/es/src/blog-v3-category-categories.http.d.ts +0 -49
  107. package/build/internal/es/src/blog-v3-category-categories.http.js +0 -398
  108. package/build/internal/es/src/blog-v3-category-categories.http.js.map +0 -1
  109. package/build/internal/es/src/blog-v3-category-categories.meta.d.ts +0 -27
  110. package/build/internal/es/src/blog-v3-category-categories.meta.js +0 -128
  111. package/build/internal/es/src/blog-v3-category-categories.meta.js.map +0 -1
  112. package/build/internal/es/src/blog-v3-category-categories.public.js +0 -99
  113. package/build/internal/es/src/blog-v3-category-categories.public.js.map +0 -1
  114. package/build/internal/es/src/blog-v3-category-categories.types.js +0 -22
  115. package/build/internal/es/src/blog-v3-category-categories.types.js.map +0 -1
  116. package/build/internal/es/src/blog-v3-category-categories.universal.js +0 -480
  117. package/build/internal/es/src/blog-v3-category-categories.universal.js.map +0 -1
@@ -1,716 +0,0 @@
1
- export interface Category {
2
- /**
3
- * Category ID.
4
- * @immutable
5
- * @maxLength 38
6
- */
7
- id?: string;
8
- /**
9
- * Category label. Displayed in the Category Menu.
10
- * @maxLength 35
11
- */
12
- label?: string;
13
- /**
14
- * Number of posts in the category.
15
- * @readonly
16
- */
17
- postCount?: number;
18
- /**
19
- * The `url` of the page that lists every post with the specified category.
20
- * @readonly
21
- */
22
- url?: PageUrl;
23
- /**
24
- * Category description.
25
- * @maxLength 500
26
- */
27
- description?: string | null;
28
- /**
29
- * Category title.
30
- * @maxLength 200
31
- * @deprecated Category title.
32
- * @targetRemovalDate 2025-07-16
33
- */
34
- title?: string;
35
- /**
36
- * Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).
37
- * Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.
38
- *
39
- * Default: `-1`
40
- */
41
- displayPosition?: number | null;
42
- /**
43
- * ID of the category's translations. All translations of a single category share the same `translationId`.
44
- * @format GUID
45
- */
46
- translationId?: string | null;
47
- /**
48
- * Category language.
49
- *
50
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
51
- * @immutable
52
- */
53
- language?: string | null;
54
- /**
55
- * 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`.
56
- * @maxLength 100
57
- */
58
- slug?: string;
59
- /** SEO data. */
60
- seoData?: SeoSchema;
61
- /** Category cover image. */
62
- coverImage?: Image;
63
- /**
64
- * Date and time the Category was last updated.
65
- * @readonly
66
- */
67
- updatedDate?: Date | null;
68
- }
69
- export interface PageUrl {
70
- /** The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`. */
71
- base?: string;
72
- /** The relative path for the page within the site. For example, `/product-page/a-product`. */
73
- path?: string;
74
- }
75
- /**
76
- * 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.
77
- * The search engines use this information for ranking purposes, or to display snippets in the search results.
78
- * 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.
79
- */
80
- export interface SeoSchema {
81
- /** SEO tag information. */
82
- tags?: Tag[];
83
- /** SEO general settings. */
84
- settings?: Settings;
85
- }
86
- export interface Keyword {
87
- /** Keyword value. */
88
- term?: string;
89
- /** Whether the keyword is the main focus keyword. */
90
- isMain?: boolean;
91
- /**
92
- * The source that added the keyword terms to the SEO settings.
93
- * @maxLength 1000
94
- */
95
- origin?: string | null;
96
- }
97
- export interface Tag {
98
- /**
99
- * SEO tag type.
100
- *
101
- *
102
- * Supported values: `title`, `meta`, `script`, `link`.
103
- */
104
- type?: string;
105
- /**
106
- * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
107
- * For example: `{"name": "description", "content": "the description itself"}`.
108
- */
109
- props?: Record<string, any> | null;
110
- /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
111
- meta?: Record<string, any> | null;
112
- /** SEO tag inner content. For example, `<title> inner content </title>`. */
113
- children?: string;
114
- /** Whether the tag is a custom tag. */
115
- custom?: boolean;
116
- /** Whether the tag is disabled. */
117
- disabled?: boolean;
118
- }
119
- export interface Settings {
120
- /**
121
- * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
122
- *
123
- *
124
- * Default: `false` (Auto Redirect is enabled.)
125
- */
126
- preventAutoRedirect?: boolean;
127
- /**
128
- * User-selected keyword terms for a specific page.
129
- * @maxSize 5
130
- */
131
- keywords?: Keyword[];
132
- }
133
- export interface Image {
134
- /** WixMedia image ID. */
135
- id?: string;
136
- /** Image URL. */
137
- url?: string;
138
- /**
139
- * Original image height.
140
- * @readonly
141
- */
142
- height?: number;
143
- /**
144
- * Original image width.
145
- * @readonly
146
- */
147
- width?: number;
148
- /** Image alt text. */
149
- altText?: string | null;
150
- /**
151
- * Image filename.
152
- * @readonly
153
- */
154
- filename?: string | null;
155
- }
156
- export interface FocalPoint {
157
- /** X-coordinate of the focal point. */
158
- x?: number;
159
- /** Y-coordinate of the focal point. */
160
- y?: number;
161
- /** crop by height */
162
- height?: number | null;
163
- /** crop by width */
164
- width?: number | null;
165
- }
166
- export interface CategoryTranslation {
167
- /**
168
- * Category ID.
169
- * @format GUID
170
- */
171
- id?: string;
172
- /**
173
- * Label displayed in the categories menu on the site.
174
- * @maxLength 100
175
- */
176
- label?: string | null;
177
- /**
178
- * Language of the category.
179
- * @format LANGUAGE_TAG
180
- */
181
- language?: string | null;
182
- /** URL of this category page. */
183
- url?: PageUrl;
184
- }
185
- export interface InitialCategoriesCopied {
186
- /** Number of categories copied. */
187
- count?: number;
188
- }
189
- export interface CreateCategoryRequest {
190
- /** Category info. */
191
- category: Category;
192
- /**
193
- * List of additional category fields to include in the response. By default
194
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
195
- *
196
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
197
- * retrieve the url field in the response in addition to the category’s base fields.
198
- * @maxSize 10
199
- */
200
- fieldsets?: FieldWithLiterals[];
201
- }
202
- export declare enum Field {
203
- UNKNOWN = "UNKNOWN",
204
- /** Includes category URL. */
205
- URL = "URL",
206
- /** Includes SEO data. */
207
- SEO = "SEO"
208
- }
209
- /** @enumType */
210
- export type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'SEO';
211
- export interface CreateCategoryResponse {
212
- /** Category info. */
213
- category?: Category;
214
- }
215
- export interface BulkCreateCategoriesRequest {
216
- /**
217
- * Categories to create.
218
- * @minSize 1
219
- * @maxSize 50
220
- */
221
- categories?: Category[];
222
- /** Whether to return the full created category entities in the response. */
223
- returnFullEntity?: boolean;
224
- /**
225
- * List of additional category fields to include in the response. By default
226
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
227
- *
228
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
229
- * retrieve the url field in the response in addition to the category’s base fields.
230
- * @maxSize 10
231
- */
232
- fieldsets?: FieldWithLiterals[];
233
- }
234
- export interface BulkCreateCategoriesResponse {
235
- /** Categories created by bulk action. */
236
- results?: BulkCategoryResult[];
237
- /** Bulk action metadata. */
238
- bulkActionMetadata?: BulkActionMetadata;
239
- }
240
- export interface BulkCategoryResult {
241
- /** Bulk actions metadata for category. */
242
- itemMetadata?: ItemMetadata;
243
- /** Optional created category. */
244
- item?: Category;
245
- }
246
- export interface ItemMetadata {
247
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
248
- id?: string | null;
249
- /** Index of the item within the request array. Allows for correlation between request and response items. */
250
- originalIndex?: number;
251
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
252
- success?: boolean;
253
- /** Details about the error in case of failure. */
254
- error?: ApplicationError;
255
- }
256
- export interface ApplicationError {
257
- /** Error code. */
258
- code?: string;
259
- /** Description of the error. */
260
- description?: string;
261
- /** Data related to the error. */
262
- data?: Record<string, any> | null;
263
- }
264
- export interface BulkActionMetadata {
265
- /** Number of items that were successfully processed. */
266
- totalSuccesses?: number;
267
- /** Number of items that couldn't be processed. */
268
- totalFailures?: number;
269
- /** Number of failures without details because detailed failure threshold was exceeded. */
270
- undetailedFailures?: number;
271
- }
272
- export interface BulkUpdateCategoriesRequest {
273
- /**
274
- * Categories to update.
275
- * @minSize 1
276
- * @maxSize 100
277
- */
278
- categories?: MaskedCategory[];
279
- /** Whether to return the full created category entities in the response. */
280
- returnFullEntity?: boolean;
281
- /**
282
- * List of additional category fields to include in the response. By default
283
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
284
- *
285
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
286
- * retrieve the url field in the response in addition to the category’s base fields.
287
- * @maxSize 10
288
- */
289
- fieldsets?: FieldWithLiterals[];
290
- }
291
- export interface MaskedCategory {
292
- /** Category */
293
- category?: Category;
294
- /** Field mask of fields to update. */
295
- fieldMask?: string[];
296
- }
297
- export interface BulkUpdateCategoriesResponse {
298
- /** Categories updated by bulk action. */
299
- results?: BulkCategoryResult[];
300
- /** Bulk action metadata. */
301
- bulkActionMetadata?: BulkActionMetadata;
302
- }
303
- export interface UpdateCategoryRequest {
304
- /** Category info. */
305
- category: Category;
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
- * @maxSize 10
313
- */
314
- fieldsets?: FieldWithLiterals[];
315
- }
316
- export interface UpdateCategoryResponse {
317
- /** Category info. */
318
- category?: Category;
319
- }
320
- export interface GetCategoriesCountByLanguageRequest {
321
- }
322
- export interface GetCategoriesCountByLanguageResponse {
323
- /** The language and it's count. */
324
- categoriesLanguageCount?: CategoryLanguageCount[];
325
- }
326
- export interface CategoryLanguageCount {
327
- /**
328
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
329
- * @format LANGUAGE_TAG
330
- */
331
- languageCode?: string | null;
332
- /** The count of Categories for the language. */
333
- categoryCount?: number | null;
334
- }
335
- export interface GetCategoryRequest {
336
- /**
337
- * Category ID.
338
- * @minLength 1
339
- * @maxLength 38
340
- */
341
- categoryId: string;
342
- /**
343
- * List of additional category fields to include in the response. By default
344
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
345
- *
346
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
347
- * retrieve the url field in the response in addition to the category’s base fields.
348
- * @maxSize 10
349
- */
350
- fieldsets?: FieldWithLiterals[];
351
- }
352
- export interface GetCategoryResponse {
353
- /** Category info. */
354
- category?: Category;
355
- }
356
- export interface GetCategoryBySlugRequest {
357
- /**
358
- * Slug of the category to retrieve.
359
- * @minLength 1
360
- * @maxLength 100
361
- */
362
- slug: string;
363
- /**
364
- * List of additional category fields to include in the response. By default
365
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
366
- *
367
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
368
- * retrieve the url field in the response in addition to the category’s base fields.
369
- * @maxSize 10
370
- */
371
- fieldsets?: FieldWithLiterals[];
372
- /**
373
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
374
- * Language of the category to retrieve.
375
- * @format LANGUAGE_TAG
376
- */
377
- language?: string | null;
378
- }
379
- export interface GetCategoryBySlugResponse {
380
- /** Category info. */
381
- category?: Category;
382
- }
383
- export interface ListCategoriesRequest {
384
- /** Pagination options. */
385
- paging?: BlogPaging;
386
- /**
387
- * List of additional category fields to include in the response. By default
388
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
389
- *
390
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
391
- * retrieve the url field in the response in addition to the category’s base fields.
392
- * @maxSize 10
393
- */
394
- fieldsets?: FieldWithLiterals[];
395
- /**
396
- * Language filter.
397
- *
398
- * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
399
- * Pass a language to only receive categories that are in that language.
400
- * If omitted, categories in all languages are returned.
401
- * @format LANGUAGE_TAG
402
- */
403
- language?: string | null;
404
- }
405
- export interface BlogPaging {
406
- /**
407
- * Number of items to skip in the current sort order.
408
- *
409
- *
410
- * Default: `0`
411
- */
412
- offset?: number;
413
- /**
414
- * Number of items to return.
415
- *
416
- *
417
- * Default:`50`
418
- * @min 1
419
- * @max 100
420
- */
421
- limit?: number;
422
- /**
423
- * Pointer to the next or previous page in the list of results.
424
- * @maxLength 2000
425
- */
426
- cursor?: string | null;
427
- }
428
- export interface ListCategoriesResponse {
429
- /** List of categories. */
430
- categories?: Category[];
431
- /** Details on the paged set of results returned. */
432
- metaData?: MetaData;
433
- }
434
- export interface MetaData {
435
- /** Number of items returned in this response. */
436
- count?: number;
437
- /** Requested offset. */
438
- offset?: number;
439
- /** Total number of items that match the query. */
440
- total?: number;
441
- /**
442
- * Pointer to the next or previous page in the list of results.
443
- * @maxLength 2000
444
- */
445
- cursor?: string | null;
446
- }
447
- export interface QueryCategoriesRequest {
448
- /** Query options. */
449
- query?: PlatformQuery;
450
- /**
451
- * List of additional category fields to include in the response. By default
452
- * only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
453
- *
454
- * To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
455
- * retrieve the url field in the response in addition to the category’s base fields.
456
- * @maxSize 10
457
- */
458
- fieldsets?: FieldWithLiterals[];
459
- }
460
- export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
461
- /** Paging options to limit and skip the number of items. */
462
- paging?: Paging;
463
- /** 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`. */
464
- cursorPaging?: CursorPaging;
465
- /**
466
- * Filter object in the following format:
467
- * `"filter" : {
468
- * "fieldName1": "value1",
469
- * "fieldName2":{"$operator":"value2"}
470
- * }`
471
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
472
- */
473
- filter?: Record<string, any> | null;
474
- /**
475
- * Sort object in the following format:
476
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
477
- * @maxSize 3
478
- */
479
- sort?: Sorting[];
480
- }
481
- /** @oneof */
482
- export interface PlatformQueryPagingMethodOneOf {
483
- /** Paging options to limit and skip the number of items. */
484
- paging?: Paging;
485
- /** 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`. */
486
- cursorPaging?: CursorPaging;
487
- }
488
- export interface Sorting {
489
- /**
490
- * Name of the field to sort by.
491
- * @maxLength 512
492
- */
493
- fieldName?: string;
494
- /** Sort order. */
495
- order?: SortOrderWithLiterals;
496
- }
497
- export declare enum SortOrder {
498
- ASC = "ASC",
499
- DESC = "DESC"
500
- }
501
- /** @enumType */
502
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
503
- export interface Paging {
504
- /**
505
- * Number of items to load.
506
- * @max 100
507
- */
508
- limit?: number | null;
509
- /** Number of items to skip in the current sort order. */
510
- offset?: number | null;
511
- }
512
- export interface CursorPaging {
513
- /**
514
- * Number of items to load.
515
- * @max 100
516
- */
517
- limit?: number | null;
518
- /**
519
- * Pointer to the next or previous page in the list of results.
520
- *
521
- * You can get the relevant cursor token
522
- * from the `pagingMetadata` object in the previous call's response.
523
- * Not relevant for the first request.
524
- * @maxLength 2000
525
- */
526
- cursor?: string | null;
527
- }
528
- export interface QueryCategoriesResponse {
529
- /** List of categories. */
530
- categories?: Category[];
531
- /** Details on the paged set of results returned. */
532
- pagingMetadata?: PagingMetadataV2;
533
- }
534
- export interface PagingMetadataV2 {
535
- /** Number of items returned in the response. */
536
- count?: number | null;
537
- /** Offset that was requested. */
538
- offset?: number | null;
539
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
540
- total?: number | null;
541
- /** Flag that indicates the server failed to calculate the `total` field. */
542
- tooManyToCount?: boolean | null;
543
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
544
- cursors?: Cursors;
545
- }
546
- export interface Cursors {
547
- /**
548
- * Cursor pointing to next page in the list of results.
549
- * @maxLength 2000
550
- */
551
- next?: string | null;
552
- /**
553
- * Cursor pointing to previous page in the list of results.
554
- * @maxLength 2000
555
- */
556
- prev?: string | null;
557
- }
558
- export interface BulkDeleteCategoryRequest {
559
- /**
560
- * Category IDs.
561
- * @minSize 1
562
- * @maxSize 100
563
- * @maxLength 38
564
- */
565
- categoryIds?: string[];
566
- /** Should delete bypassing the trash-bin. */
567
- permanent?: boolean;
568
- }
569
- export interface BulkDeleteCategoryResponse {
570
- }
571
- export interface DeleteCategoryRequest {
572
- /**
573
- * Category ID.
574
- * @minLength 1
575
- * @maxLength 38
576
- */
577
- categoryId: string;
578
- }
579
- export interface DeleteCategoryResponse {
580
- }
581
- export interface DomainEvent extends DomainEventBodyOneOf {
582
- createdEvent?: EntityCreatedEvent;
583
- updatedEvent?: EntityUpdatedEvent;
584
- deletedEvent?: EntityDeletedEvent;
585
- actionEvent?: ActionEvent;
586
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
587
- id?: string;
588
- /**
589
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
590
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
591
- */
592
- entityFqdn?: string;
593
- /**
594
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
595
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
596
- */
597
- slug?: string;
598
- /** ID of the entity associated with the event. */
599
- entityId?: string;
600
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
601
- eventTime?: Date | null;
602
- /**
603
- * Whether the event was triggered as a result of a privacy regulation application
604
- * (for example, GDPR).
605
- */
606
- triggeredByAnonymizeRequest?: boolean | null;
607
- /** If present, indicates the action that triggered the event. */
608
- originatedFrom?: string | null;
609
- /**
610
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
611
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
612
- */
613
- entityEventSequence?: string | null;
614
- }
615
- /** @oneof */
616
- export interface DomainEventBodyOneOf {
617
- createdEvent?: EntityCreatedEvent;
618
- updatedEvent?: EntityUpdatedEvent;
619
- deletedEvent?: EntityDeletedEvent;
620
- actionEvent?: ActionEvent;
621
- }
622
- export interface EntityCreatedEvent {
623
- entityAsJson?: string;
624
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
625
- restoreInfo?: RestoreInfo;
626
- }
627
- export interface RestoreInfo {
628
- deletedDate?: Date | null;
629
- }
630
- export interface EntityUpdatedEvent {
631
- /**
632
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
633
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
634
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
635
- */
636
- currentEntityAsJson?: string;
637
- }
638
- export interface EntityDeletedEvent {
639
- /** Entity that was deleted. */
640
- deletedEntityAsJson?: string | null;
641
- }
642
- export interface ActionEvent {
643
- bodyAsJson?: string;
644
- }
645
- export interface MessageEnvelope {
646
- /**
647
- * App instance ID.
648
- * @format GUID
649
- */
650
- instanceId?: string | null;
651
- /**
652
- * Event type.
653
- * @maxLength 150
654
- */
655
- eventType?: string;
656
- /** The identification type and identity data. */
657
- identity?: IdentificationData;
658
- /** Stringify payload. */
659
- data?: string;
660
- }
661
- export interface IdentificationData extends IdentificationDataIdOneOf {
662
- /**
663
- * ID of a site visitor that has not logged in to the site.
664
- * @format GUID
665
- */
666
- anonymousVisitorId?: string;
667
- /**
668
- * ID of a site visitor that has logged in to the site.
669
- * @format GUID
670
- */
671
- memberId?: string;
672
- /**
673
- * ID of a Wix user (site owner, contributor, etc.).
674
- * @format GUID
675
- */
676
- wixUserId?: string;
677
- /**
678
- * ID of an app.
679
- * @format GUID
680
- */
681
- appId?: string;
682
- /** @readonly */
683
- identityType?: WebhookIdentityTypeWithLiterals;
684
- }
685
- /** @oneof */
686
- export interface IdentificationDataIdOneOf {
687
- /**
688
- * ID of a site visitor that has not logged in to the site.
689
- * @format GUID
690
- */
691
- anonymousVisitorId?: string;
692
- /**
693
- * ID of a site visitor that has logged in to the site.
694
- * @format GUID
695
- */
696
- memberId?: string;
697
- /**
698
- * ID of a Wix user (site owner, contributor, etc.).
699
- * @format GUID
700
- */
701
- wixUserId?: string;
702
- /**
703
- * ID of an app.
704
- * @format GUID
705
- */
706
- appId?: string;
707
- }
708
- export declare enum WebhookIdentityType {
709
- UNKNOWN = "UNKNOWN",
710
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
711
- MEMBER = "MEMBER",
712
- WIX_USER = "WIX_USER",
713
- APP = "APP"
714
- }
715
- /** @enumType */
716
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';