@wix/auto_sdk_blog_categories 1.0.4 → 1.0.6
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.
- package/build/{internal/cjs/src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CF5HyUlx.d.mts} +74 -313
- package/build/{cjs/src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CF5HyUlx.d.ts} +74 -313
- package/build/index.d.mts +117 -0
- package/build/index.d.ts +117 -0
- package/build/index.js +938 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +902 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/blog-v3-category-categories.universal.d.ts → internal/blog-v3-category-categories.universal-CF5HyUlx.d.mts} +74 -313
- package/build/internal/{es/src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CF5HyUlx.d.ts} +74 -313
- package/build/internal/index.d.mts +117 -0
- package/build/internal/index.d.ts +117 -0
- package/build/internal/index.js +938 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +902 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +457 -0
- package/build/internal/meta.d.ts +457 -0
- package/build/internal/meta.js +542 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +509 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +457 -0
- package/build/meta.d.ts +457 -0
- package/build/meta.js +542 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +509 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
- package/build/cjs/src/blog-v3-category-categories.context.js +0 -33
- package/build/cjs/src/blog-v3-category-categories.context.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
- package/build/cjs/src/blog-v3-category-categories.http.js +0 -408
- package/build/cjs/src/blog-v3-category-categories.http.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
- package/build/cjs/src/blog-v3-category-categories.meta.js +0 -161
- package/build/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.public.d.ts +0 -99
- package/build/cjs/src/blog-v3-category-categories.public.js +0 -112
- package/build/cjs/src/blog-v3-category-categories.public.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.types.d.ts +0 -791
- package/build/cjs/src/blog-v3-category-categories.types.js +0 -25
- package/build/cjs/src/blog-v3-category-categories.types.js.map +0 -1
- package/build/cjs/src/blog-v3-category-categories.universal.js +0 -499
- package/build/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/blog-v3-category-categories.context.d.ts +0 -27
- package/build/es/src/blog-v3-category-categories.context.js +0 -27
- package/build/es/src/blog-v3-category-categories.context.js.map +0 -1
- package/build/es/src/blog-v3-category-categories.http.d.ts +0 -49
- package/build/es/src/blog-v3-category-categories.http.js +0 -398
- package/build/es/src/blog-v3-category-categories.http.js.map +0 -1
- package/build/es/src/blog-v3-category-categories.meta.d.ts +0 -27
- package/build/es/src/blog-v3-category-categories.meta.js +0 -128
- package/build/es/src/blog-v3-category-categories.meta.js.map +0 -1
- package/build/es/src/blog-v3-category-categories.public.d.ts +0 -99
- package/build/es/src/blog-v3-category-categories.public.js +0 -99
- package/build/es/src/blog-v3-category-categories.public.js.map +0 -1
- package/build/es/src/blog-v3-category-categories.types.d.ts +0 -791
- package/build/es/src/blog-v3-category-categories.types.js +0 -22
- package/build/es/src/blog-v3-category-categories.types.js.map +0 -1
- package/build/es/src/blog-v3-category-categories.universal.js +0 -466
- package/build/es/src/blog-v3-category-categories.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
- package/build/internal/cjs/src/blog-v3-category-categories.context.js +0 -33
- package/build/internal/cjs/src/blog-v3-category-categories.context.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
- package/build/internal/cjs/src/blog-v3-category-categories.http.js +0 -408
- package/build/internal/cjs/src/blog-v3-category-categories.http.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
- package/build/internal/cjs/src/blog-v3-category-categories.meta.js +0 -161
- package/build/internal/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.public.d.ts +0 -99
- package/build/internal/cjs/src/blog-v3-category-categories.public.js +0 -112
- package/build/internal/cjs/src/blog-v3-category-categories.public.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.types.d.ts +0 -791
- package/build/internal/cjs/src/blog-v3-category-categories.types.js +0 -25
- package/build/internal/cjs/src/blog-v3-category-categories.types.js.map +0 -1
- package/build/internal/cjs/src/blog-v3-category-categories.universal.js +0 -499
- package/build/internal/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.context.d.ts +0 -27
- package/build/internal/es/src/blog-v3-category-categories.context.js +0 -27
- package/build/internal/es/src/blog-v3-category-categories.context.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.http.d.ts +0 -49
- package/build/internal/es/src/blog-v3-category-categories.http.js +0 -398
- package/build/internal/es/src/blog-v3-category-categories.http.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.meta.d.ts +0 -27
- package/build/internal/es/src/blog-v3-category-categories.meta.js +0 -128
- package/build/internal/es/src/blog-v3-category-categories.meta.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.public.d.ts +0 -99
- package/build/internal/es/src/blog-v3-category-categories.public.js +0 -99
- package/build/internal/es/src/blog-v3-category-categories.public.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.types.d.ts +0 -791
- package/build/internal/es/src/blog-v3-category-categories.types.js +0 -22
- package/build/internal/es/src/blog-v3-category-categories.types.js.map +0 -1
- package/build/internal/es/src/blog-v3-category-categories.universal.js +0 -466
- package/build/internal/es/src/blog-v3-category-categories.universal.js.map +0 -1
@@ -1,791 +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?: Field[];
|
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
|
-
export interface CreateCategoryResponse {
|
210
|
-
/** Category info. */
|
211
|
-
category?: Category;
|
212
|
-
}
|
213
|
-
export interface BulkCreateCategoriesRequest {
|
214
|
-
/**
|
215
|
-
* Categories to create.
|
216
|
-
* @minSize 1
|
217
|
-
* @maxSize 50
|
218
|
-
*/
|
219
|
-
categories?: Category[];
|
220
|
-
/** Whether to return the full created category entities in the response. */
|
221
|
-
returnFullEntity?: boolean;
|
222
|
-
/**
|
223
|
-
* List of additional category fields to include in the response. By default
|
224
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
225
|
-
*
|
226
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
227
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
228
|
-
* @maxSize 10
|
229
|
-
*/
|
230
|
-
fieldsets?: Field[];
|
231
|
-
}
|
232
|
-
export interface BulkCreateCategoriesResponse {
|
233
|
-
/** Categories created by bulk action. */
|
234
|
-
results?: BulkCategoryResult[];
|
235
|
-
/** Bulk action metadata. */
|
236
|
-
bulkActionMetadata?: BulkActionMetadata;
|
237
|
-
}
|
238
|
-
export interface BulkCategoryResult {
|
239
|
-
/** Bulk actions metadata for category. */
|
240
|
-
itemMetadata?: ItemMetadata;
|
241
|
-
/** Optional created category. */
|
242
|
-
item?: Category;
|
243
|
-
}
|
244
|
-
export interface ItemMetadata {
|
245
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
246
|
-
id?: string | null;
|
247
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
248
|
-
originalIndex?: number;
|
249
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
250
|
-
success?: boolean;
|
251
|
-
/** Details about the error in case of failure. */
|
252
|
-
error?: ApplicationError;
|
253
|
-
}
|
254
|
-
export interface ApplicationError {
|
255
|
-
/** Error code. */
|
256
|
-
code?: string;
|
257
|
-
/** Description of the error. */
|
258
|
-
description?: string;
|
259
|
-
/** Data related to the error. */
|
260
|
-
data?: Record<string, any> | null;
|
261
|
-
}
|
262
|
-
export interface BulkActionMetadata {
|
263
|
-
/** Number of items that were successfully processed. */
|
264
|
-
totalSuccesses?: number;
|
265
|
-
/** Number of items that couldn't be processed. */
|
266
|
-
totalFailures?: number;
|
267
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
268
|
-
undetailedFailures?: number;
|
269
|
-
}
|
270
|
-
export interface BulkUpdateCategoriesRequest {
|
271
|
-
/**
|
272
|
-
* Categories to update.
|
273
|
-
* @minSize 1
|
274
|
-
* @maxSize 100
|
275
|
-
*/
|
276
|
-
categories?: MaskedCategory[];
|
277
|
-
/** Whether to return the full created category entities in the response. */
|
278
|
-
returnFullEntity?: boolean;
|
279
|
-
/**
|
280
|
-
* List of additional category fields to include in the response. By default
|
281
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
282
|
-
*
|
283
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
284
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
285
|
-
* @maxSize 10
|
286
|
-
*/
|
287
|
-
fieldsets?: Field[];
|
288
|
-
}
|
289
|
-
export interface MaskedCategory {
|
290
|
-
/** Category */
|
291
|
-
category?: Category;
|
292
|
-
/** Field mask of fields to update. */
|
293
|
-
fieldMask?: string[];
|
294
|
-
}
|
295
|
-
export interface BulkUpdateCategoriesResponse {
|
296
|
-
/** Categories updated by bulk action. */
|
297
|
-
results?: BulkCategoryResult[];
|
298
|
-
/** Bulk action metadata. */
|
299
|
-
bulkActionMetadata?: BulkActionMetadata;
|
300
|
-
}
|
301
|
-
export interface UpdateCategoryRequest {
|
302
|
-
/** Category info. */
|
303
|
-
category: Category;
|
304
|
-
/**
|
305
|
-
* List of additional category fields to include in the response. By default
|
306
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
307
|
-
*
|
308
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
309
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
310
|
-
* @maxSize 10
|
311
|
-
*/
|
312
|
-
fieldsets?: Field[];
|
313
|
-
}
|
314
|
-
export interface UpdateCategoryResponse {
|
315
|
-
/** Category info. */
|
316
|
-
category?: Category;
|
317
|
-
}
|
318
|
-
export interface GetCategoriesCountByLanguageRequest {
|
319
|
-
}
|
320
|
-
export interface GetCategoriesCountByLanguageResponse {
|
321
|
-
/** The language and it's count. */
|
322
|
-
categoriesLanguageCount?: CategoryLanguageCount[];
|
323
|
-
}
|
324
|
-
export interface CategoryLanguageCount {
|
325
|
-
/**
|
326
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
327
|
-
* @format LANGUAGE_TAG
|
328
|
-
*/
|
329
|
-
languageCode?: string | null;
|
330
|
-
/** The count of Categories for the language. */
|
331
|
-
categoryCount?: number | null;
|
332
|
-
}
|
333
|
-
export interface GetCategoryRequest {
|
334
|
-
/**
|
335
|
-
* Category ID.
|
336
|
-
* @minLength 1
|
337
|
-
* @maxLength 38
|
338
|
-
*/
|
339
|
-
categoryId: string;
|
340
|
-
/**
|
341
|
-
* List of additional category fields to include in the response. By default
|
342
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
343
|
-
*
|
344
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
345
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
346
|
-
* @maxSize 10
|
347
|
-
*/
|
348
|
-
fieldsets?: Field[];
|
349
|
-
}
|
350
|
-
export interface GetCategoryResponse {
|
351
|
-
/** Category info. */
|
352
|
-
category?: Category;
|
353
|
-
}
|
354
|
-
export interface GetCategoryBySlugRequest {
|
355
|
-
/**
|
356
|
-
* Slug of the category to retrieve.
|
357
|
-
* @minLength 1
|
358
|
-
* @maxLength 100
|
359
|
-
*/
|
360
|
-
slug: string;
|
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
|
-
* @maxSize 10
|
368
|
-
*/
|
369
|
-
fieldsets?: Field[];
|
370
|
-
/**
|
371
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
372
|
-
* Language of the category to retrieve.
|
373
|
-
* @format LANGUAGE_TAG
|
374
|
-
*/
|
375
|
-
language?: string | null;
|
376
|
-
}
|
377
|
-
export interface GetCategoryBySlugResponse {
|
378
|
-
/** Category info. */
|
379
|
-
category?: Category;
|
380
|
-
}
|
381
|
-
export interface ListCategoriesRequest {
|
382
|
-
/** Pagination options. */
|
383
|
-
paging?: BlogPaging;
|
384
|
-
/**
|
385
|
-
* List of additional category fields to include in the response. By default
|
386
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
387
|
-
*
|
388
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
389
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
390
|
-
* @maxSize 10
|
391
|
-
*/
|
392
|
-
fieldsets?: Field[];
|
393
|
-
/**
|
394
|
-
* Language filter.
|
395
|
-
*
|
396
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
397
|
-
* Pass a language to only receive categories that are in that language.
|
398
|
-
* If omitted, categories in all languages are returned.
|
399
|
-
* @format LANGUAGE_TAG
|
400
|
-
*/
|
401
|
-
language?: string | null;
|
402
|
-
}
|
403
|
-
export interface BlogPaging {
|
404
|
-
/**
|
405
|
-
* Number of items to skip in the current sort order.
|
406
|
-
*
|
407
|
-
*
|
408
|
-
* Default: `0`
|
409
|
-
*/
|
410
|
-
offset?: number;
|
411
|
-
/**
|
412
|
-
* Number of items to return.
|
413
|
-
*
|
414
|
-
*
|
415
|
-
* Default:`50`
|
416
|
-
* @min 1
|
417
|
-
* @max 100
|
418
|
-
*/
|
419
|
-
limit?: number;
|
420
|
-
/**
|
421
|
-
* Pointer to the next or previous page in the list of results.
|
422
|
-
* @maxLength 2000
|
423
|
-
*/
|
424
|
-
cursor?: string | null;
|
425
|
-
}
|
426
|
-
export interface ListCategoriesResponse {
|
427
|
-
/** List of categories. */
|
428
|
-
categories?: Category[];
|
429
|
-
/** Details on the paged set of results returned. */
|
430
|
-
metaData?: MetaData;
|
431
|
-
}
|
432
|
-
export interface MetaData {
|
433
|
-
/** Number of items returned in this response. */
|
434
|
-
count?: number;
|
435
|
-
/** Requested offset. */
|
436
|
-
offset?: number;
|
437
|
-
/** Total number of items that match the query. */
|
438
|
-
total?: number;
|
439
|
-
/**
|
440
|
-
* Pointer to the next or previous page in the list of results.
|
441
|
-
* @maxLength 2000
|
442
|
-
*/
|
443
|
-
cursor?: string | null;
|
444
|
-
}
|
445
|
-
export interface QueryCategoriesRequest {
|
446
|
-
/** Query options. */
|
447
|
-
query?: PlatformQuery;
|
448
|
-
/**
|
449
|
-
* List of additional category fields to include in the response. By default
|
450
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
451
|
-
*
|
452
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
453
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
454
|
-
* @maxSize 10
|
455
|
-
*/
|
456
|
-
fieldsets?: Field[];
|
457
|
-
}
|
458
|
-
export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
459
|
-
/** Paging options to limit and skip the number of items. */
|
460
|
-
paging?: Paging;
|
461
|
-
/** 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`. */
|
462
|
-
cursorPaging?: CursorPaging;
|
463
|
-
/**
|
464
|
-
* Filter object in the following format:
|
465
|
-
* `"filter" : {
|
466
|
-
* "fieldName1": "value1",
|
467
|
-
* "fieldName2":{"$operator":"value2"}
|
468
|
-
* }`
|
469
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
470
|
-
*/
|
471
|
-
filter?: Record<string, any> | null;
|
472
|
-
/**
|
473
|
-
* Sort object in the following format:
|
474
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
475
|
-
* @maxSize 3
|
476
|
-
*/
|
477
|
-
sort?: Sorting[];
|
478
|
-
}
|
479
|
-
/** @oneof */
|
480
|
-
export interface PlatformQueryPagingMethodOneOf {
|
481
|
-
/** Paging options to limit and skip the number of items. */
|
482
|
-
paging?: Paging;
|
483
|
-
/** 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`. */
|
484
|
-
cursorPaging?: CursorPaging;
|
485
|
-
}
|
486
|
-
export interface Sorting {
|
487
|
-
/**
|
488
|
-
* Name of the field to sort by.
|
489
|
-
* @maxLength 512
|
490
|
-
*/
|
491
|
-
fieldName?: string;
|
492
|
-
/** Sort order. */
|
493
|
-
order?: SortOrder;
|
494
|
-
}
|
495
|
-
export declare enum SortOrder {
|
496
|
-
ASC = "ASC",
|
497
|
-
DESC = "DESC"
|
498
|
-
}
|
499
|
-
export interface Paging {
|
500
|
-
/**
|
501
|
-
* Number of items to load.
|
502
|
-
* @max 100
|
503
|
-
*/
|
504
|
-
limit?: number | null;
|
505
|
-
/** Number of items to skip in the current sort order. */
|
506
|
-
offset?: number | null;
|
507
|
-
}
|
508
|
-
export interface CursorPaging {
|
509
|
-
/**
|
510
|
-
* Number of items to load.
|
511
|
-
* @max 100
|
512
|
-
*/
|
513
|
-
limit?: number | null;
|
514
|
-
/**
|
515
|
-
* Pointer to the next or previous page in the list of results.
|
516
|
-
*
|
517
|
-
* You can get the relevant cursor token
|
518
|
-
* from the `pagingMetadata` object in the previous call's response.
|
519
|
-
* Not relevant for the first request.
|
520
|
-
* @maxLength 2000
|
521
|
-
*/
|
522
|
-
cursor?: string | null;
|
523
|
-
}
|
524
|
-
export interface QueryCategoriesResponse {
|
525
|
-
/** List of categories. */
|
526
|
-
categories?: Category[];
|
527
|
-
/** Details on the paged set of results returned. */
|
528
|
-
pagingMetadata?: PagingMetadataV2;
|
529
|
-
}
|
530
|
-
export interface PagingMetadataV2 {
|
531
|
-
/** Number of items returned in the response. */
|
532
|
-
count?: number | null;
|
533
|
-
/** Offset that was requested. */
|
534
|
-
offset?: number | null;
|
535
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
536
|
-
total?: number | null;
|
537
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
538
|
-
tooManyToCount?: boolean | null;
|
539
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
540
|
-
cursors?: Cursors;
|
541
|
-
}
|
542
|
-
export interface Cursors {
|
543
|
-
/**
|
544
|
-
* Cursor pointing to next page in the list of results.
|
545
|
-
* @maxLength 2000
|
546
|
-
*/
|
547
|
-
next?: string | null;
|
548
|
-
/**
|
549
|
-
* Cursor pointing to previous page in the list of results.
|
550
|
-
* @maxLength 2000
|
551
|
-
*/
|
552
|
-
prev?: string | null;
|
553
|
-
}
|
554
|
-
export interface BulkDeleteCategoryRequest {
|
555
|
-
/**
|
556
|
-
* Category IDs.
|
557
|
-
* @minSize 1
|
558
|
-
* @maxSize 100
|
559
|
-
* @maxLength 38
|
560
|
-
*/
|
561
|
-
categoryIds?: string[];
|
562
|
-
/** Should delete bypassing the trash-bin. */
|
563
|
-
permanent?: boolean;
|
564
|
-
}
|
565
|
-
export interface BulkDeleteCategoryResponse {
|
566
|
-
}
|
567
|
-
export interface DeleteCategoryRequest {
|
568
|
-
/**
|
569
|
-
* Category ID.
|
570
|
-
* @minLength 1
|
571
|
-
* @maxLength 38
|
572
|
-
*/
|
573
|
-
categoryId: string;
|
574
|
-
}
|
575
|
-
export interface DeleteCategoryResponse {
|
576
|
-
}
|
577
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
578
|
-
createdEvent?: EntityCreatedEvent;
|
579
|
-
updatedEvent?: EntityUpdatedEvent;
|
580
|
-
deletedEvent?: EntityDeletedEvent;
|
581
|
-
actionEvent?: ActionEvent;
|
582
|
-
/**
|
583
|
-
* Unique event ID.
|
584
|
-
* Allows clients to ignore duplicate webhooks.
|
585
|
-
*/
|
586
|
-
id?: string;
|
587
|
-
/**
|
588
|
-
* Assumes actions are also always typed to an entity_type
|
589
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
590
|
-
*/
|
591
|
-
entityFqdn?: string;
|
592
|
-
/**
|
593
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
594
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
595
|
-
* 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 defining the order of updates to the underlying entity.
|
611
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
612
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
613
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
614
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
615
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
616
|
-
*/
|
617
|
-
entityEventSequence?: string | null;
|
618
|
-
}
|
619
|
-
/** @oneof */
|
620
|
-
export interface DomainEventBodyOneOf {
|
621
|
-
createdEvent?: EntityCreatedEvent;
|
622
|
-
updatedEvent?: EntityUpdatedEvent;
|
623
|
-
deletedEvent?: EntityDeletedEvent;
|
624
|
-
actionEvent?: ActionEvent;
|
625
|
-
}
|
626
|
-
export interface EntityCreatedEvent {
|
627
|
-
entityAsJson?: string;
|
628
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
629
|
-
restoreInfo?: RestoreInfo;
|
630
|
-
}
|
631
|
-
export interface RestoreInfo {
|
632
|
-
deletedDate?: Date | null;
|
633
|
-
}
|
634
|
-
export interface EntityUpdatedEvent {
|
635
|
-
/**
|
636
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
637
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
638
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
639
|
-
*/
|
640
|
-
currentEntityAsJson?: string;
|
641
|
-
}
|
642
|
-
export interface EntityDeletedEvent {
|
643
|
-
/** Entity that was deleted */
|
644
|
-
deletedEntityAsJson?: string | null;
|
645
|
-
}
|
646
|
-
export interface ActionEvent {
|
647
|
-
bodyAsJson?: string;
|
648
|
-
}
|
649
|
-
export interface MessageEnvelope {
|
650
|
-
/**
|
651
|
-
* App instance ID.
|
652
|
-
* @format GUID
|
653
|
-
*/
|
654
|
-
instanceId?: string | null;
|
655
|
-
/**
|
656
|
-
* Event type.
|
657
|
-
* @maxLength 150
|
658
|
-
*/
|
659
|
-
eventType?: string;
|
660
|
-
/** The identification type and identity data. */
|
661
|
-
identity?: IdentificationData;
|
662
|
-
/** Stringify payload. */
|
663
|
-
data?: string;
|
664
|
-
}
|
665
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
666
|
-
/**
|
667
|
-
* ID of a site visitor that has not logged in to the site.
|
668
|
-
* @format GUID
|
669
|
-
*/
|
670
|
-
anonymousVisitorId?: string;
|
671
|
-
/**
|
672
|
-
* ID of a site visitor that has logged in to the site.
|
673
|
-
* @format GUID
|
674
|
-
*/
|
675
|
-
memberId?: string;
|
676
|
-
/**
|
677
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
678
|
-
* @format GUID
|
679
|
-
*/
|
680
|
-
wixUserId?: string;
|
681
|
-
/**
|
682
|
-
* ID of an app.
|
683
|
-
* @format GUID
|
684
|
-
*/
|
685
|
-
appId?: string;
|
686
|
-
/** @readonly */
|
687
|
-
identityType?: WebhookIdentityType;
|
688
|
-
}
|
689
|
-
/** @oneof */
|
690
|
-
export interface IdentificationDataIdOneOf {
|
691
|
-
/**
|
692
|
-
* ID of a site visitor that has not logged in to the site.
|
693
|
-
* @format GUID
|
694
|
-
*/
|
695
|
-
anonymousVisitorId?: string;
|
696
|
-
/**
|
697
|
-
* ID of a site visitor that has logged in to the site.
|
698
|
-
* @format GUID
|
699
|
-
*/
|
700
|
-
memberId?: string;
|
701
|
-
/**
|
702
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
703
|
-
* @format GUID
|
704
|
-
*/
|
705
|
-
wixUserId?: string;
|
706
|
-
/**
|
707
|
-
* ID of an app.
|
708
|
-
* @format GUID
|
709
|
-
*/
|
710
|
-
appId?: string;
|
711
|
-
}
|
712
|
-
export declare enum WebhookIdentityType {
|
713
|
-
UNKNOWN = "UNKNOWN",
|
714
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
715
|
-
MEMBER = "MEMBER",
|
716
|
-
WIX_USER = "WIX_USER",
|
717
|
-
APP = "APP"
|
718
|
-
}
|
719
|
-
interface PageUrlNonNullableFields {
|
720
|
-
base: string;
|
721
|
-
path: string;
|
722
|
-
}
|
723
|
-
interface TagNonNullableFields {
|
724
|
-
type: string;
|
725
|
-
children: string;
|
726
|
-
custom: boolean;
|
727
|
-
disabled: boolean;
|
728
|
-
}
|
729
|
-
interface KeywordNonNullableFields {
|
730
|
-
term: string;
|
731
|
-
isMain: boolean;
|
732
|
-
}
|
733
|
-
interface SettingsNonNullableFields {
|
734
|
-
preventAutoRedirect: boolean;
|
735
|
-
keywords: KeywordNonNullableFields[];
|
736
|
-
}
|
737
|
-
interface SeoSchemaNonNullableFields {
|
738
|
-
tags: TagNonNullableFields[];
|
739
|
-
settings?: SettingsNonNullableFields;
|
740
|
-
}
|
741
|
-
interface FocalPointNonNullableFields {
|
742
|
-
x: number;
|
743
|
-
y: number;
|
744
|
-
}
|
745
|
-
interface ImageNonNullableFields {
|
746
|
-
id: string;
|
747
|
-
url: string;
|
748
|
-
height: number;
|
749
|
-
width: number;
|
750
|
-
focalPoint?: FocalPointNonNullableFields;
|
751
|
-
}
|
752
|
-
interface CategoryTranslationNonNullableFields {
|
753
|
-
id: string;
|
754
|
-
url?: PageUrlNonNullableFields;
|
755
|
-
}
|
756
|
-
interface CategoryNonNullableFields {
|
757
|
-
id: string;
|
758
|
-
label: string;
|
759
|
-
postCount: number;
|
760
|
-
url?: PageUrlNonNullableFields;
|
761
|
-
title: string;
|
762
|
-
slug: string;
|
763
|
-
seoData?: SeoSchemaNonNullableFields;
|
764
|
-
coverImage?: ImageNonNullableFields;
|
765
|
-
translations: CategoryTranslationNonNullableFields[];
|
766
|
-
}
|
767
|
-
export interface CreateCategoryResponseNonNullableFields {
|
768
|
-
category?: CategoryNonNullableFields;
|
769
|
-
}
|
770
|
-
export interface UpdateCategoryResponseNonNullableFields {
|
771
|
-
category?: CategoryNonNullableFields;
|
772
|
-
}
|
773
|
-
export interface GetCategoryResponseNonNullableFields {
|
774
|
-
category?: CategoryNonNullableFields;
|
775
|
-
}
|
776
|
-
export interface GetCategoryBySlugResponseNonNullableFields {
|
777
|
-
category?: CategoryNonNullableFields;
|
778
|
-
}
|
779
|
-
interface MetaDataNonNullableFields {
|
780
|
-
count: number;
|
781
|
-
offset: number;
|
782
|
-
total: number;
|
783
|
-
}
|
784
|
-
export interface ListCategoriesResponseNonNullableFields {
|
785
|
-
categories: CategoryNonNullableFields[];
|
786
|
-
metaData?: MetaDataNonNullableFields;
|
787
|
-
}
|
788
|
-
export interface QueryCategoriesResponseNonNullableFields {
|
789
|
-
categories: CategoryNonNullableFields[];
|
790
|
-
}
|
791
|
-
export {};
|