@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
package/build/meta.d.mts
ADDED
@@ -0,0 +1,457 @@
|
|
1
|
+
import { l as CreateCategoryRequest$1, m as CreateCategoryResponse$1, t as UpdateCategoryRequest$1, u as UpdateCategoryResponse$1, y as GetCategoryRequest$1, c as GetCategoryResponse$1, z as GetCategoryBySlugRequest$1, e as GetCategoryBySlugResponse$1, D as ListCategoriesRequest$1, f as ListCategoriesResponse$1, J as QueryCategoriesRequest$1, X as QueryCategoriesResponse$1, a0 as DeleteCategoryRequest$1, a1 as DeleteCategoryResponse$1 } from './blog-v3-category-categories.universal-CF5HyUlx.mjs';
|
2
|
+
|
3
|
+
interface Category {
|
4
|
+
/**
|
5
|
+
* Category ID.
|
6
|
+
* @immutable
|
7
|
+
* @maxLength 38
|
8
|
+
*/
|
9
|
+
id?: string;
|
10
|
+
/**
|
11
|
+
* Category label. Displayed in the Category Menu.
|
12
|
+
* @maxLength 35
|
13
|
+
*/
|
14
|
+
label?: string;
|
15
|
+
/**
|
16
|
+
* Number of posts in the category.
|
17
|
+
* @readonly
|
18
|
+
*/
|
19
|
+
postCount?: number;
|
20
|
+
/**
|
21
|
+
* The `url` of the page that lists every post with the specified category.
|
22
|
+
* @readonly
|
23
|
+
*/
|
24
|
+
url?: PageUrl;
|
25
|
+
/**
|
26
|
+
* Category description.
|
27
|
+
* @maxLength 500
|
28
|
+
*/
|
29
|
+
description?: string | null;
|
30
|
+
/**
|
31
|
+
* Category title.
|
32
|
+
* @maxLength 200
|
33
|
+
* @deprecated Category title.
|
34
|
+
* @targetRemovalDate 2025-07-16
|
35
|
+
*/
|
36
|
+
title?: string;
|
37
|
+
/**
|
38
|
+
* Position of the category in the [Category Menu](https://support.wix.com/en/article/wix-blog-adding-and-customizing-a-category-menu).
|
39
|
+
* Categories are displayed in ascending order. Categories with a position of `-1` appear at the end of the sequence.
|
40
|
+
*
|
41
|
+
* Default: `-1`
|
42
|
+
*/
|
43
|
+
displayPosition?: number | null;
|
44
|
+
/**
|
45
|
+
* ID of the category's translations. All translations of a single category share the same `translationId`.
|
46
|
+
* @format GUID
|
47
|
+
*/
|
48
|
+
translationId?: string | null;
|
49
|
+
/**
|
50
|
+
* Category language.
|
51
|
+
*
|
52
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
53
|
+
* @immutable
|
54
|
+
*/
|
55
|
+
language?: string | null;
|
56
|
+
/**
|
57
|
+
* 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`.
|
58
|
+
* @maxLength 100
|
59
|
+
*/
|
60
|
+
slug?: string;
|
61
|
+
/** SEO data. */
|
62
|
+
seoData?: SeoSchema;
|
63
|
+
/** Category cover image. */
|
64
|
+
coverImage?: Image;
|
65
|
+
/**
|
66
|
+
* Date and time the Category was last updated.
|
67
|
+
* @readonly
|
68
|
+
*/
|
69
|
+
updatedDate?: Date | null;
|
70
|
+
}
|
71
|
+
interface PageUrl {
|
72
|
+
/** The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`. */
|
73
|
+
base?: string;
|
74
|
+
/** The relative path for the page within the site. For example, `/product-page/a-product`. */
|
75
|
+
path?: string;
|
76
|
+
}
|
77
|
+
/**
|
78
|
+
* 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.
|
79
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
80
|
+
* 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.
|
81
|
+
*/
|
82
|
+
interface SeoSchema {
|
83
|
+
/** SEO tag information. */
|
84
|
+
tags?: Tag[];
|
85
|
+
/** SEO general settings. */
|
86
|
+
settings?: Settings;
|
87
|
+
}
|
88
|
+
interface Keyword {
|
89
|
+
/** Keyword value. */
|
90
|
+
term?: string;
|
91
|
+
/** Whether the keyword is the main focus keyword. */
|
92
|
+
isMain?: boolean;
|
93
|
+
/**
|
94
|
+
* The source that added the keyword terms to the SEO settings.
|
95
|
+
* @maxLength 1000
|
96
|
+
*/
|
97
|
+
origin?: string | null;
|
98
|
+
}
|
99
|
+
interface Tag {
|
100
|
+
/**
|
101
|
+
* SEO tag type.
|
102
|
+
*
|
103
|
+
*
|
104
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
105
|
+
*/
|
106
|
+
type?: string;
|
107
|
+
/**
|
108
|
+
* A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
|
109
|
+
* For example: `{"name": "description", "content": "the description itself"}`.
|
110
|
+
*/
|
111
|
+
props?: Record<string, any> | null;
|
112
|
+
/** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
|
113
|
+
meta?: Record<string, any> | null;
|
114
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
115
|
+
children?: string;
|
116
|
+
/** Whether the tag is a custom tag. */
|
117
|
+
custom?: boolean;
|
118
|
+
/** Whether the tag is disabled. */
|
119
|
+
disabled?: boolean;
|
120
|
+
}
|
121
|
+
interface Settings {
|
122
|
+
/**
|
123
|
+
* Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
|
124
|
+
*
|
125
|
+
*
|
126
|
+
* Default: `false` (Auto Redirect is enabled.)
|
127
|
+
*/
|
128
|
+
preventAutoRedirect?: boolean;
|
129
|
+
/**
|
130
|
+
* User-selected keyword terms for a specific page.
|
131
|
+
* @maxSize 5
|
132
|
+
*/
|
133
|
+
keywords?: Keyword[];
|
134
|
+
}
|
135
|
+
interface Image {
|
136
|
+
/** WixMedia image ID. */
|
137
|
+
id?: string;
|
138
|
+
/** Image URL. */
|
139
|
+
url?: string;
|
140
|
+
/**
|
141
|
+
* Original image height.
|
142
|
+
* @readonly
|
143
|
+
*/
|
144
|
+
height?: number;
|
145
|
+
/**
|
146
|
+
* Original image width.
|
147
|
+
* @readonly
|
148
|
+
*/
|
149
|
+
width?: number;
|
150
|
+
/** Image alt text. */
|
151
|
+
altText?: string | null;
|
152
|
+
/**
|
153
|
+
* Image filename.
|
154
|
+
* @readonly
|
155
|
+
*/
|
156
|
+
filename?: string | null;
|
157
|
+
}
|
158
|
+
interface CreateCategoryRequest {
|
159
|
+
/** Category info. */
|
160
|
+
category: Category;
|
161
|
+
/**
|
162
|
+
* List of additional category fields to include in the response. By default
|
163
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
164
|
+
*
|
165
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
166
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
167
|
+
* @maxSize 10
|
168
|
+
*/
|
169
|
+
fieldsets?: Field[];
|
170
|
+
}
|
171
|
+
declare enum Field {
|
172
|
+
UNKNOWN = "UNKNOWN",
|
173
|
+
/** Includes Category url. */
|
174
|
+
URL = "URL",
|
175
|
+
/** Includes SEO data. */
|
176
|
+
SEO = "SEO"
|
177
|
+
}
|
178
|
+
interface CreateCategoryResponse {
|
179
|
+
/** Category info. */
|
180
|
+
category?: Category;
|
181
|
+
}
|
182
|
+
interface UpdateCategoryRequest {
|
183
|
+
/** Category info. */
|
184
|
+
category: Category;
|
185
|
+
/**
|
186
|
+
* List of additional category fields to include in the response. By default
|
187
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
188
|
+
*
|
189
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
190
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
191
|
+
* @maxSize 10
|
192
|
+
*/
|
193
|
+
fieldsets?: Field[];
|
194
|
+
}
|
195
|
+
interface UpdateCategoryResponse {
|
196
|
+
/** Category info. */
|
197
|
+
category?: Category;
|
198
|
+
}
|
199
|
+
interface GetCategoryRequest {
|
200
|
+
/**
|
201
|
+
* Category ID.
|
202
|
+
* @minLength 1
|
203
|
+
* @maxLength 38
|
204
|
+
*/
|
205
|
+
categoryId: string;
|
206
|
+
/**
|
207
|
+
* List of additional category fields to include in the response. By default
|
208
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
209
|
+
*
|
210
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
211
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
212
|
+
* @maxSize 10
|
213
|
+
*/
|
214
|
+
fieldsets?: Field[];
|
215
|
+
}
|
216
|
+
interface GetCategoryResponse {
|
217
|
+
/** Category info. */
|
218
|
+
category?: Category;
|
219
|
+
}
|
220
|
+
interface GetCategoryBySlugRequest {
|
221
|
+
/**
|
222
|
+
* Slug of the category to retrieve.
|
223
|
+
* @minLength 1
|
224
|
+
* @maxLength 100
|
225
|
+
*/
|
226
|
+
slug: string;
|
227
|
+
/**
|
228
|
+
* List of additional category fields to include in the response. By default
|
229
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
230
|
+
*
|
231
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
232
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
233
|
+
* @maxSize 10
|
234
|
+
*/
|
235
|
+
fieldsets?: Field[];
|
236
|
+
/**
|
237
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
238
|
+
* Language of the category to retrieve.
|
239
|
+
* @format LANGUAGE_TAG
|
240
|
+
*/
|
241
|
+
language?: string | null;
|
242
|
+
}
|
243
|
+
interface GetCategoryBySlugResponse {
|
244
|
+
/** Category info. */
|
245
|
+
category?: Category;
|
246
|
+
}
|
247
|
+
interface ListCategoriesRequest {
|
248
|
+
/** Pagination options. */
|
249
|
+
paging?: BlogPaging;
|
250
|
+
/**
|
251
|
+
* List of additional category fields to include in the response. By default
|
252
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
253
|
+
*
|
254
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
255
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
256
|
+
* @maxSize 10
|
257
|
+
*/
|
258
|
+
fieldsets?: Field[];
|
259
|
+
/**
|
260
|
+
* Language filter.
|
261
|
+
*
|
262
|
+
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
263
|
+
* Pass a language to only receive categories that are in that language.
|
264
|
+
* If omitted, categories in all languages are returned.
|
265
|
+
* @format LANGUAGE_TAG
|
266
|
+
*/
|
267
|
+
language?: string | null;
|
268
|
+
}
|
269
|
+
interface BlogPaging {
|
270
|
+
/**
|
271
|
+
* Number of items to skip in the current sort order.
|
272
|
+
*
|
273
|
+
*
|
274
|
+
* Default: `0`
|
275
|
+
*/
|
276
|
+
offset?: number;
|
277
|
+
/**
|
278
|
+
* Number of items to return.
|
279
|
+
*
|
280
|
+
*
|
281
|
+
* Default:`50`
|
282
|
+
* @min 1
|
283
|
+
* @max 100
|
284
|
+
*/
|
285
|
+
limit?: number;
|
286
|
+
/**
|
287
|
+
* Pointer to the next or previous page in the list of results.
|
288
|
+
* @maxLength 2000
|
289
|
+
*/
|
290
|
+
cursor?: string | null;
|
291
|
+
}
|
292
|
+
interface ListCategoriesResponse {
|
293
|
+
/** List of categories. */
|
294
|
+
categories?: Category[];
|
295
|
+
/** Details on the paged set of results returned. */
|
296
|
+
metaData?: MetaData;
|
297
|
+
}
|
298
|
+
interface MetaData {
|
299
|
+
/** Number of items returned in this response. */
|
300
|
+
count?: number;
|
301
|
+
/** Requested offset. */
|
302
|
+
offset?: number;
|
303
|
+
/** Total number of items that match the query. */
|
304
|
+
total?: number;
|
305
|
+
/**
|
306
|
+
* Pointer to the next or previous page in the list of results.
|
307
|
+
* @maxLength 2000
|
308
|
+
*/
|
309
|
+
cursor?: string | null;
|
310
|
+
}
|
311
|
+
interface QueryCategoriesRequest {
|
312
|
+
/** Query options. */
|
313
|
+
query?: PlatformQuery;
|
314
|
+
/**
|
315
|
+
* List of additional category fields to include in the response. By default
|
316
|
+
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
317
|
+
*
|
318
|
+
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
319
|
+
* retrieve the url field in the response in addition to the category’s base fields.
|
320
|
+
* @maxSize 10
|
321
|
+
*/
|
322
|
+
fieldsets?: Field[];
|
323
|
+
}
|
324
|
+
interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
325
|
+
/** Paging options to limit and skip the number of items. */
|
326
|
+
paging?: Paging;
|
327
|
+
/** 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`. */
|
328
|
+
cursorPaging?: CursorPaging;
|
329
|
+
/**
|
330
|
+
* Filter object in the following format:
|
331
|
+
* `"filter" : {
|
332
|
+
* "fieldName1": "value1",
|
333
|
+
* "fieldName2":{"$operator":"value2"}
|
334
|
+
* }`
|
335
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
336
|
+
*/
|
337
|
+
filter?: Record<string, any> | null;
|
338
|
+
/**
|
339
|
+
* Sort object in the following format:
|
340
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
341
|
+
* @maxSize 3
|
342
|
+
*/
|
343
|
+
sort?: Sorting[];
|
344
|
+
}
|
345
|
+
/** @oneof */
|
346
|
+
interface PlatformQueryPagingMethodOneOf {
|
347
|
+
/** Paging options to limit and skip the number of items. */
|
348
|
+
paging?: Paging;
|
349
|
+
/** 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`. */
|
350
|
+
cursorPaging?: CursorPaging;
|
351
|
+
}
|
352
|
+
interface Sorting {
|
353
|
+
/**
|
354
|
+
* Name of the field to sort by.
|
355
|
+
* @maxLength 512
|
356
|
+
*/
|
357
|
+
fieldName?: string;
|
358
|
+
/** Sort order. */
|
359
|
+
order?: SortOrder;
|
360
|
+
}
|
361
|
+
declare enum SortOrder {
|
362
|
+
ASC = "ASC",
|
363
|
+
DESC = "DESC"
|
364
|
+
}
|
365
|
+
interface Paging {
|
366
|
+
/**
|
367
|
+
* Number of items to load.
|
368
|
+
* @max 100
|
369
|
+
*/
|
370
|
+
limit?: number | null;
|
371
|
+
/** Number of items to skip in the current sort order. */
|
372
|
+
offset?: number | null;
|
373
|
+
}
|
374
|
+
interface CursorPaging {
|
375
|
+
/**
|
376
|
+
* Number of items to load.
|
377
|
+
* @max 100
|
378
|
+
*/
|
379
|
+
limit?: number | null;
|
380
|
+
/**
|
381
|
+
* Pointer to the next or previous page in the list of results.
|
382
|
+
*
|
383
|
+
* You can get the relevant cursor token
|
384
|
+
* from the `pagingMetadata` object in the previous call's response.
|
385
|
+
* Not relevant for the first request.
|
386
|
+
* @maxLength 2000
|
387
|
+
*/
|
388
|
+
cursor?: string | null;
|
389
|
+
}
|
390
|
+
interface QueryCategoriesResponse {
|
391
|
+
/** List of categories. */
|
392
|
+
categories?: Category[];
|
393
|
+
/** Details on the paged set of results returned. */
|
394
|
+
pagingMetadata?: PagingMetadataV2;
|
395
|
+
}
|
396
|
+
interface PagingMetadataV2 {
|
397
|
+
/** Number of items returned in the response. */
|
398
|
+
count?: number | null;
|
399
|
+
/** Offset that was requested. */
|
400
|
+
offset?: number | null;
|
401
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
402
|
+
total?: number | null;
|
403
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
404
|
+
tooManyToCount?: boolean | null;
|
405
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
406
|
+
cursors?: Cursors;
|
407
|
+
}
|
408
|
+
interface Cursors {
|
409
|
+
/**
|
410
|
+
* Cursor pointing to next page in the list of results.
|
411
|
+
* @maxLength 2000
|
412
|
+
*/
|
413
|
+
next?: string | null;
|
414
|
+
/**
|
415
|
+
* Cursor pointing to previous page in the list of results.
|
416
|
+
* @maxLength 2000
|
417
|
+
*/
|
418
|
+
prev?: string | null;
|
419
|
+
}
|
420
|
+
interface DeleteCategoryRequest {
|
421
|
+
/**
|
422
|
+
* Category ID.
|
423
|
+
* @minLength 1
|
424
|
+
* @maxLength 38
|
425
|
+
*/
|
426
|
+
categoryId: string;
|
427
|
+
}
|
428
|
+
interface DeleteCategoryResponse {
|
429
|
+
}
|
430
|
+
|
431
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
432
|
+
getUrl: (context: any) => string;
|
433
|
+
httpMethod: K;
|
434
|
+
path: string;
|
435
|
+
pathParams: M;
|
436
|
+
__requestType: T;
|
437
|
+
__originalRequestType: S;
|
438
|
+
__responseType: Q;
|
439
|
+
__originalResponseType: R;
|
440
|
+
};
|
441
|
+
declare function createCategory(): __PublicMethodMetaInfo<'POST', {}, CreateCategoryRequest$1, CreateCategoryRequest, CreateCategoryResponse$1, CreateCategoryResponse>;
|
442
|
+
declare function updateCategory(): __PublicMethodMetaInfo<'PATCH', {
|
443
|
+
categoryId: string;
|
444
|
+
}, UpdateCategoryRequest$1, UpdateCategoryRequest, UpdateCategoryResponse$1, UpdateCategoryResponse>;
|
445
|
+
declare function getCategory(): __PublicMethodMetaInfo<'GET', {
|
446
|
+
categoryId: string;
|
447
|
+
}, GetCategoryRequest$1, GetCategoryRequest, GetCategoryResponse$1, GetCategoryResponse>;
|
448
|
+
declare function getCategoryBySlug(): __PublicMethodMetaInfo<'GET', {
|
449
|
+
slug: string;
|
450
|
+
}, GetCategoryBySlugRequest$1, GetCategoryBySlugRequest, GetCategoryBySlugResponse$1, GetCategoryBySlugResponse>;
|
451
|
+
declare function listCategories(): __PublicMethodMetaInfo<'GET', {}, ListCategoriesRequest$1, ListCategoriesRequest, ListCategoriesResponse$1, ListCategoriesResponse>;
|
452
|
+
declare function queryCategories(): __PublicMethodMetaInfo<'POST', {}, QueryCategoriesRequest$1, QueryCategoriesRequest, QueryCategoriesResponse$1, QueryCategoriesResponse>;
|
453
|
+
declare function deleteCategory(): __PublicMethodMetaInfo<'DELETE', {
|
454
|
+
categoryId: string;
|
455
|
+
}, DeleteCategoryRequest$1, DeleteCategoryRequest, DeleteCategoryResponse$1, DeleteCategoryResponse>;
|
456
|
+
|
457
|
+
export { type __PublicMethodMetaInfo, createCategory, deleteCategory, getCategory, getCategoryBySlug, listCategories, queryCategories, updateCategory };
|