@wix/auto_sdk_blog_categories 1.0.5 → 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 -264
- package/build/{cjs/src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CF5HyUlx.d.ts} +74 -264
- package/build/{internal/es/src/blog-v3-category-categories.public.d.ts → index.d.mts} +34 -16
- package/build/{internal/cjs/src/blog-v3-category-categories.public.d.ts → index.d.ts} +34 -16
- 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 -264
- package/build/internal/{es/src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CF5HyUlx.d.ts} +74 -264
- package/build/{cjs/src/blog-v3-category-categories.public.d.ts → internal/index.d.mts} +34 -16
- package/build/{es/src/blog-v3-category-categories.public.d.ts → internal/index.d.ts} +34 -16
- 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/{es/src/blog-v3-category-categories.types.d.ts → meta.d.mts} +63 -324
- package/build/{es/src/blog-v3-category-categories.types.d.ts → internal/meta.d.ts} +63 -324
- 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/{cjs/src/blog-v3-category-categories.types.d.ts → meta.d.mts} +63 -324
- package/build/{internal/cjs/src/blog-v3-category-categories.types.d.ts → meta.d.ts} +63 -324
- 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.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.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.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.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.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.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.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.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,4 +1,6 @@
|
|
1
|
-
|
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 {
|
2
4
|
/**
|
3
5
|
* Category ID.
|
4
6
|
* @immutable
|
@@ -66,7 +68,7 @@ export interface Category {
|
|
66
68
|
*/
|
67
69
|
updatedDate?: Date | null;
|
68
70
|
}
|
69
|
-
|
71
|
+
interface PageUrl {
|
70
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`. */
|
71
73
|
base?: string;
|
72
74
|
/** The relative path for the page within the site. For example, `/product-page/a-product`. */
|
@@ -77,13 +79,13 @@ export interface PageUrl {
|
|
77
79
|
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
78
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.
|
79
81
|
*/
|
80
|
-
|
82
|
+
interface SeoSchema {
|
81
83
|
/** SEO tag information. */
|
82
84
|
tags?: Tag[];
|
83
85
|
/** SEO general settings. */
|
84
86
|
settings?: Settings;
|
85
87
|
}
|
86
|
-
|
88
|
+
interface Keyword {
|
87
89
|
/** Keyword value. */
|
88
90
|
term?: string;
|
89
91
|
/** Whether the keyword is the main focus keyword. */
|
@@ -94,7 +96,7 @@ export interface Keyword {
|
|
94
96
|
*/
|
95
97
|
origin?: string | null;
|
96
98
|
}
|
97
|
-
|
99
|
+
interface Tag {
|
98
100
|
/**
|
99
101
|
* SEO tag type.
|
100
102
|
*
|
@@ -116,7 +118,7 @@ export interface Tag {
|
|
116
118
|
/** Whether the tag is disabled. */
|
117
119
|
disabled?: boolean;
|
118
120
|
}
|
119
|
-
|
121
|
+
interface Settings {
|
120
122
|
/**
|
121
123
|
* Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
|
122
124
|
*
|
@@ -130,7 +132,7 @@ export interface Settings {
|
|
130
132
|
*/
|
131
133
|
keywords?: Keyword[];
|
132
134
|
}
|
133
|
-
|
135
|
+
interface Image {
|
134
136
|
/** WixMedia image ID. */
|
135
137
|
id?: string;
|
136
138
|
/** Image URL. */
|
@@ -153,40 +155,7 @@ export interface Image {
|
|
153
155
|
*/
|
154
156
|
filename?: string | null;
|
155
157
|
}
|
156
|
-
|
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 {
|
158
|
+
interface CreateCategoryRequest {
|
190
159
|
/** Category info. */
|
191
160
|
category: Category;
|
192
161
|
/**
|
@@ -199,106 +168,18 @@ export interface CreateCategoryRequest {
|
|
199
168
|
*/
|
200
169
|
fieldsets?: Field[];
|
201
170
|
}
|
202
|
-
|
171
|
+
declare enum Field {
|
203
172
|
UNKNOWN = "UNKNOWN",
|
204
173
|
/** Includes Category url. */
|
205
174
|
URL = "URL",
|
206
175
|
/** Includes SEO data. */
|
207
176
|
SEO = "SEO"
|
208
177
|
}
|
209
|
-
|
178
|
+
interface CreateCategoryResponse {
|
210
179
|
/** Category info. */
|
211
180
|
category?: Category;
|
212
181
|
}
|
213
|
-
|
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 {
|
182
|
+
interface UpdateCategoryRequest {
|
302
183
|
/** Category info. */
|
303
184
|
category: Category;
|
304
185
|
/**
|
@@ -311,26 +192,11 @@ export interface UpdateCategoryRequest {
|
|
311
192
|
*/
|
312
193
|
fieldsets?: Field[];
|
313
194
|
}
|
314
|
-
|
195
|
+
interface UpdateCategoryResponse {
|
315
196
|
/** Category info. */
|
316
197
|
category?: Category;
|
317
198
|
}
|
318
|
-
|
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 {
|
199
|
+
interface GetCategoryRequest {
|
334
200
|
/**
|
335
201
|
* Category ID.
|
336
202
|
* @minLength 1
|
@@ -347,11 +213,11 @@ export interface GetCategoryRequest {
|
|
347
213
|
*/
|
348
214
|
fieldsets?: Field[];
|
349
215
|
}
|
350
|
-
|
216
|
+
interface GetCategoryResponse {
|
351
217
|
/** Category info. */
|
352
218
|
category?: Category;
|
353
219
|
}
|
354
|
-
|
220
|
+
interface GetCategoryBySlugRequest {
|
355
221
|
/**
|
356
222
|
* Slug of the category to retrieve.
|
357
223
|
* @minLength 1
|
@@ -374,11 +240,11 @@ export interface GetCategoryBySlugRequest {
|
|
374
240
|
*/
|
375
241
|
language?: string | null;
|
376
242
|
}
|
377
|
-
|
243
|
+
interface GetCategoryBySlugResponse {
|
378
244
|
/** Category info. */
|
379
245
|
category?: Category;
|
380
246
|
}
|
381
|
-
|
247
|
+
interface ListCategoriesRequest {
|
382
248
|
/** Pagination options. */
|
383
249
|
paging?: BlogPaging;
|
384
250
|
/**
|
@@ -400,7 +266,7 @@ export interface ListCategoriesRequest {
|
|
400
266
|
*/
|
401
267
|
language?: string | null;
|
402
268
|
}
|
403
|
-
|
269
|
+
interface BlogPaging {
|
404
270
|
/**
|
405
271
|
* Number of items to skip in the current sort order.
|
406
272
|
*
|
@@ -423,13 +289,13 @@ export interface BlogPaging {
|
|
423
289
|
*/
|
424
290
|
cursor?: string | null;
|
425
291
|
}
|
426
|
-
|
292
|
+
interface ListCategoriesResponse {
|
427
293
|
/** List of categories. */
|
428
294
|
categories?: Category[];
|
429
295
|
/** Details on the paged set of results returned. */
|
430
296
|
metaData?: MetaData;
|
431
297
|
}
|
432
|
-
|
298
|
+
interface MetaData {
|
433
299
|
/** Number of items returned in this response. */
|
434
300
|
count?: number;
|
435
301
|
/** Requested offset. */
|
@@ -442,7 +308,7 @@ export interface MetaData {
|
|
442
308
|
*/
|
443
309
|
cursor?: string | null;
|
444
310
|
}
|
445
|
-
|
311
|
+
interface QueryCategoriesRequest {
|
446
312
|
/** Query options. */
|
447
313
|
query?: PlatformQuery;
|
448
314
|
/**
|
@@ -455,7 +321,7 @@ export interface QueryCategoriesRequest {
|
|
455
321
|
*/
|
456
322
|
fieldsets?: Field[];
|
457
323
|
}
|
458
|
-
|
324
|
+
interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
459
325
|
/** Paging options to limit and skip the number of items. */
|
460
326
|
paging?: Paging;
|
461
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`. */
|
@@ -477,13 +343,13 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
|
477
343
|
sort?: Sorting[];
|
478
344
|
}
|
479
345
|
/** @oneof */
|
480
|
-
|
346
|
+
interface PlatformQueryPagingMethodOneOf {
|
481
347
|
/** Paging options to limit and skip the number of items. */
|
482
348
|
paging?: Paging;
|
483
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`. */
|
484
350
|
cursorPaging?: CursorPaging;
|
485
351
|
}
|
486
|
-
|
352
|
+
interface Sorting {
|
487
353
|
/**
|
488
354
|
* Name of the field to sort by.
|
489
355
|
* @maxLength 512
|
@@ -492,11 +358,11 @@ export interface Sorting {
|
|
492
358
|
/** Sort order. */
|
493
359
|
order?: SortOrder;
|
494
360
|
}
|
495
|
-
|
361
|
+
declare enum SortOrder {
|
496
362
|
ASC = "ASC",
|
497
363
|
DESC = "DESC"
|
498
364
|
}
|
499
|
-
|
365
|
+
interface Paging {
|
500
366
|
/**
|
501
367
|
* Number of items to load.
|
502
368
|
* @max 100
|
@@ -505,7 +371,7 @@ export interface Paging {
|
|
505
371
|
/** Number of items to skip in the current sort order. */
|
506
372
|
offset?: number | null;
|
507
373
|
}
|
508
|
-
|
374
|
+
interface CursorPaging {
|
509
375
|
/**
|
510
376
|
* Number of items to load.
|
511
377
|
* @max 100
|
@@ -521,13 +387,13 @@ export interface CursorPaging {
|
|
521
387
|
*/
|
522
388
|
cursor?: string | null;
|
523
389
|
}
|
524
|
-
|
390
|
+
interface QueryCategoriesResponse {
|
525
391
|
/** List of categories. */
|
526
392
|
categories?: Category[];
|
527
393
|
/** Details on the paged set of results returned. */
|
528
394
|
pagingMetadata?: PagingMetadataV2;
|
529
395
|
}
|
530
|
-
|
396
|
+
interface PagingMetadataV2 {
|
531
397
|
/** Number of items returned in the response. */
|
532
398
|
count?: number | null;
|
533
399
|
/** Offset that was requested. */
|
@@ -539,7 +405,7 @@ export interface PagingMetadataV2 {
|
|
539
405
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
540
406
|
cursors?: Cursors;
|
541
407
|
}
|
542
|
-
|
408
|
+
interface Cursors {
|
543
409
|
/**
|
544
410
|
* Cursor pointing to next page in the list of results.
|
545
411
|
* @maxLength 2000
|
@@ -551,20 +417,7 @@ export interface Cursors {
|
|
551
417
|
*/
|
552
418
|
prev?: string | null;
|
553
419
|
}
|
554
|
-
|
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 {
|
420
|
+
interface DeleteCategoryRequest {
|
568
421
|
/**
|
569
422
|
* Category ID.
|
570
423
|
* @minLength 1
|
@@ -572,147 +425,33 @@ export interface DeleteCategoryRequest {
|
|
572
425
|
*/
|
573
426
|
categoryId: string;
|
574
427
|
}
|
575
|
-
|
576
|
-
}
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
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
|
-
}
|
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 };
|