@wix/auto_sdk_blog_categories 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/src/blog-v3-category-categories.universal.d.ts → cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
- package/build/cjs/index.d.ts +119 -1
- package/build/cjs/index.js +935 -15
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +461 -1
- package/build/cjs/meta.js +539 -15
- package/build/cjs/meta.js.map +1 -1
- package/build/{cjs/src/blog-v3-category-categories.universal.d.ts → es/blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
- package/build/{internal/es/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
- package/build/es/index.mjs +902 -0
- package/build/es/index.mjs.map +1 -0
- package/build/{internal/es/src/blog-v3-category-categories.types.d.ts → es/meta.d.mts} +65 -320
- package/build/es/meta.mjs +509 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/{es/src/blog-v3-category-categories.universal.d.ts → internal/cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
- package/build/internal/cjs/index.d.ts +119 -1
- package/build/internal/cjs/index.js +935 -15
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +461 -1
- package/build/internal/cjs/meta.js +539 -15
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
- package/build/internal/{cjs/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
- package/build/internal/es/index.mjs +902 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/{cjs/src/blog-v3-category-categories.types.d.ts → internal/es/meta.d.mts} +65 -320
- package/build/internal/es/meta.mjs +509 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/package.json +9 -8
- 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/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.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 -513
- 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/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 -716
- 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 -480
- package/build/es/src/blog-v3-category-categories.universal.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/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.d.ts +0 -716
- 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 -513
- 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 -480
- package/build/internal/es/src/blog-v3-category-categories.universal.js.map +0 -1
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
import { o as CreateCategoryRequest$1, p as CreateCategoryResponse$1, w as UpdateCategoryRequest$1, x as UpdateCategoryResponse$1, E as GetCategoryRequest$1, c as GetCategoryResponse$1, H as GetCategoryBySlugRequest$1, e as GetCategoryBySlugResponse$1, J as ListCategoriesRequest$1, f as ListCategoriesResponse$1, P as QueryCategoriesRequest$1, _ as QueryCategoriesResponse$1, a3 as DeleteCategoryRequest$1, a4 as DeleteCategoryResponse$1 } from './blog-v3-category-categories.universal-CZqdXr9y.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,7 +168,7 @@ export interface CreateCategoryRequest {
|
|
199
168
|
*/
|
200
169
|
fieldsets?: FieldWithLiterals[];
|
201
170
|
}
|
202
|
-
|
171
|
+
declare enum Field {
|
203
172
|
UNKNOWN = "UNKNOWN",
|
204
173
|
/** Includes category URL. */
|
205
174
|
URL = "URL",
|
@@ -207,100 +176,12 @@ export declare enum Field {
|
|
207
176
|
SEO = "SEO"
|
208
177
|
}
|
209
178
|
/** @enumType */
|
210
|
-
|
211
|
-
|
179
|
+
type FieldWithLiterals = Field | 'UNKNOWN' | 'URL' | 'SEO';
|
180
|
+
interface CreateCategoryResponse {
|
212
181
|
/** Category info. */
|
213
182
|
category?: Category;
|
214
183
|
}
|
215
|
-
|
216
|
-
/**
|
217
|
-
* Categories to create.
|
218
|
-
* @minSize 1
|
219
|
-
* @maxSize 50
|
220
|
-
*/
|
221
|
-
categories?: Category[];
|
222
|
-
/** Whether to return the full created category entities in the response. */
|
223
|
-
returnFullEntity?: boolean;
|
224
|
-
/**
|
225
|
-
* List of additional category fields to include in the response. By default
|
226
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
227
|
-
*
|
228
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
229
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
230
|
-
* @maxSize 10
|
231
|
-
*/
|
232
|
-
fieldsets?: FieldWithLiterals[];
|
233
|
-
}
|
234
|
-
export interface BulkCreateCategoriesResponse {
|
235
|
-
/** Categories created by bulk action. */
|
236
|
-
results?: BulkCategoryResult[];
|
237
|
-
/** Bulk action metadata. */
|
238
|
-
bulkActionMetadata?: BulkActionMetadata;
|
239
|
-
}
|
240
|
-
export interface BulkCategoryResult {
|
241
|
-
/** Bulk actions metadata for category. */
|
242
|
-
itemMetadata?: ItemMetadata;
|
243
|
-
/** Optional created category. */
|
244
|
-
item?: Category;
|
245
|
-
}
|
246
|
-
export interface ItemMetadata {
|
247
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
248
|
-
id?: string | null;
|
249
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
250
|
-
originalIndex?: number;
|
251
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
252
|
-
success?: boolean;
|
253
|
-
/** Details about the error in case of failure. */
|
254
|
-
error?: ApplicationError;
|
255
|
-
}
|
256
|
-
export interface ApplicationError {
|
257
|
-
/** Error code. */
|
258
|
-
code?: string;
|
259
|
-
/** Description of the error. */
|
260
|
-
description?: string;
|
261
|
-
/** Data related to the error. */
|
262
|
-
data?: Record<string, any> | null;
|
263
|
-
}
|
264
|
-
export interface BulkActionMetadata {
|
265
|
-
/** Number of items that were successfully processed. */
|
266
|
-
totalSuccesses?: number;
|
267
|
-
/** Number of items that couldn't be processed. */
|
268
|
-
totalFailures?: number;
|
269
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
270
|
-
undetailedFailures?: number;
|
271
|
-
}
|
272
|
-
export interface BulkUpdateCategoriesRequest {
|
273
|
-
/**
|
274
|
-
* Categories to update.
|
275
|
-
* @minSize 1
|
276
|
-
* @maxSize 100
|
277
|
-
*/
|
278
|
-
categories?: MaskedCategory[];
|
279
|
-
/** Whether to return the full created category entities in the response. */
|
280
|
-
returnFullEntity?: boolean;
|
281
|
-
/**
|
282
|
-
* List of additional category fields to include in the response. By default
|
283
|
-
* only the category’s base fields are returned. Base fields are all category fields that don't appear in the fieldset enum.
|
284
|
-
*
|
285
|
-
* To retrieve a field, pass the relevant fieldset in the enum in the `fieldsets` array. For example, add the `URL` fieldset to `fieldsets` to
|
286
|
-
* retrieve the url field in the response in addition to the category’s base fields.
|
287
|
-
* @maxSize 10
|
288
|
-
*/
|
289
|
-
fieldsets?: FieldWithLiterals[];
|
290
|
-
}
|
291
|
-
export interface MaskedCategory {
|
292
|
-
/** Category */
|
293
|
-
category?: Category;
|
294
|
-
/** Field mask of fields to update. */
|
295
|
-
fieldMask?: string[];
|
296
|
-
}
|
297
|
-
export interface BulkUpdateCategoriesResponse {
|
298
|
-
/** Categories updated by bulk action. */
|
299
|
-
results?: BulkCategoryResult[];
|
300
|
-
/** Bulk action metadata. */
|
301
|
-
bulkActionMetadata?: BulkActionMetadata;
|
302
|
-
}
|
303
|
-
export interface UpdateCategoryRequest {
|
184
|
+
interface UpdateCategoryRequest {
|
304
185
|
/** Category info. */
|
305
186
|
category: Category;
|
306
187
|
/**
|
@@ -313,26 +194,11 @@ export interface UpdateCategoryRequest {
|
|
313
194
|
*/
|
314
195
|
fieldsets?: FieldWithLiterals[];
|
315
196
|
}
|
316
|
-
|
197
|
+
interface UpdateCategoryResponse {
|
317
198
|
/** Category info. */
|
318
199
|
category?: Category;
|
319
200
|
}
|
320
|
-
|
321
|
-
}
|
322
|
-
export interface GetCategoriesCountByLanguageResponse {
|
323
|
-
/** The language and it's count. */
|
324
|
-
categoriesLanguageCount?: CategoryLanguageCount[];
|
325
|
-
}
|
326
|
-
export interface CategoryLanguageCount {
|
327
|
-
/**
|
328
|
-
* 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
|
329
|
-
* @format LANGUAGE_TAG
|
330
|
-
*/
|
331
|
-
languageCode?: string | null;
|
332
|
-
/** The count of Categories for the language. */
|
333
|
-
categoryCount?: number | null;
|
334
|
-
}
|
335
|
-
export interface GetCategoryRequest {
|
201
|
+
interface GetCategoryRequest {
|
336
202
|
/**
|
337
203
|
* Category ID.
|
338
204
|
* @minLength 1
|
@@ -349,11 +215,11 @@ export interface GetCategoryRequest {
|
|
349
215
|
*/
|
350
216
|
fieldsets?: FieldWithLiterals[];
|
351
217
|
}
|
352
|
-
|
218
|
+
interface GetCategoryResponse {
|
353
219
|
/** Category info. */
|
354
220
|
category?: Category;
|
355
221
|
}
|
356
|
-
|
222
|
+
interface GetCategoryBySlugRequest {
|
357
223
|
/**
|
358
224
|
* Slug of the category to retrieve.
|
359
225
|
* @minLength 1
|
@@ -376,11 +242,11 @@ export interface GetCategoryBySlugRequest {
|
|
376
242
|
*/
|
377
243
|
language?: string | null;
|
378
244
|
}
|
379
|
-
|
245
|
+
interface GetCategoryBySlugResponse {
|
380
246
|
/** Category info. */
|
381
247
|
category?: Category;
|
382
248
|
}
|
383
|
-
|
249
|
+
interface ListCategoriesRequest {
|
384
250
|
/** Pagination options. */
|
385
251
|
paging?: BlogPaging;
|
386
252
|
/**
|
@@ -402,7 +268,7 @@ export interface ListCategoriesRequest {
|
|
402
268
|
*/
|
403
269
|
language?: string | null;
|
404
270
|
}
|
405
|
-
|
271
|
+
interface BlogPaging {
|
406
272
|
/**
|
407
273
|
* Number of items to skip in the current sort order.
|
408
274
|
*
|
@@ -425,13 +291,13 @@ export interface BlogPaging {
|
|
425
291
|
*/
|
426
292
|
cursor?: string | null;
|
427
293
|
}
|
428
|
-
|
294
|
+
interface ListCategoriesResponse {
|
429
295
|
/** List of categories. */
|
430
296
|
categories?: Category[];
|
431
297
|
/** Details on the paged set of results returned. */
|
432
298
|
metaData?: MetaData;
|
433
299
|
}
|
434
|
-
|
300
|
+
interface MetaData {
|
435
301
|
/** Number of items returned in this response. */
|
436
302
|
count?: number;
|
437
303
|
/** Requested offset. */
|
@@ -444,7 +310,7 @@ export interface MetaData {
|
|
444
310
|
*/
|
445
311
|
cursor?: string | null;
|
446
312
|
}
|
447
|
-
|
313
|
+
interface QueryCategoriesRequest {
|
448
314
|
/** Query options. */
|
449
315
|
query?: PlatformQuery;
|
450
316
|
/**
|
@@ -457,7 +323,7 @@ export interface QueryCategoriesRequest {
|
|
457
323
|
*/
|
458
324
|
fieldsets?: FieldWithLiterals[];
|
459
325
|
}
|
460
|
-
|
326
|
+
interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
461
327
|
/** Paging options to limit and skip the number of items. */
|
462
328
|
paging?: Paging;
|
463
329
|
/** 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`. */
|
@@ -479,13 +345,13 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
|
|
479
345
|
sort?: Sorting[];
|
480
346
|
}
|
481
347
|
/** @oneof */
|
482
|
-
|
348
|
+
interface PlatformQueryPagingMethodOneOf {
|
483
349
|
/** Paging options to limit and skip the number of items. */
|
484
350
|
paging?: Paging;
|
485
351
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
486
352
|
cursorPaging?: CursorPaging;
|
487
353
|
}
|
488
|
-
|
354
|
+
interface Sorting {
|
489
355
|
/**
|
490
356
|
* Name of the field to sort by.
|
491
357
|
* @maxLength 512
|
@@ -494,13 +360,13 @@ export interface Sorting {
|
|
494
360
|
/** Sort order. */
|
495
361
|
order?: SortOrderWithLiterals;
|
496
362
|
}
|
497
|
-
|
363
|
+
declare enum SortOrder {
|
498
364
|
ASC = "ASC",
|
499
365
|
DESC = "DESC"
|
500
366
|
}
|
501
367
|
/** @enumType */
|
502
|
-
|
503
|
-
|
368
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
369
|
+
interface Paging {
|
504
370
|
/**
|
505
371
|
* Number of items to load.
|
506
372
|
* @max 100
|
@@ -509,7 +375,7 @@ export interface Paging {
|
|
509
375
|
/** Number of items to skip in the current sort order. */
|
510
376
|
offset?: number | null;
|
511
377
|
}
|
512
|
-
|
378
|
+
interface CursorPaging {
|
513
379
|
/**
|
514
380
|
* Number of items to load.
|
515
381
|
* @max 100
|
@@ -525,13 +391,13 @@ export interface CursorPaging {
|
|
525
391
|
*/
|
526
392
|
cursor?: string | null;
|
527
393
|
}
|
528
|
-
|
394
|
+
interface QueryCategoriesResponse {
|
529
395
|
/** List of categories. */
|
530
396
|
categories?: Category[];
|
531
397
|
/** Details on the paged set of results returned. */
|
532
398
|
pagingMetadata?: PagingMetadataV2;
|
533
399
|
}
|
534
|
-
|
400
|
+
interface PagingMetadataV2 {
|
535
401
|
/** Number of items returned in the response. */
|
536
402
|
count?: number | null;
|
537
403
|
/** Offset that was requested. */
|
@@ -543,7 +409,7 @@ export interface PagingMetadataV2 {
|
|
543
409
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
544
410
|
cursors?: Cursors;
|
545
411
|
}
|
546
|
-
|
412
|
+
interface Cursors {
|
547
413
|
/**
|
548
414
|
* Cursor pointing to next page in the list of results.
|
549
415
|
* @maxLength 2000
|
@@ -555,20 +421,7 @@ export interface Cursors {
|
|
555
421
|
*/
|
556
422
|
prev?: string | null;
|
557
423
|
}
|
558
|
-
|
559
|
-
/**
|
560
|
-
* Category IDs.
|
561
|
-
* @minSize 1
|
562
|
-
* @maxSize 100
|
563
|
-
* @maxLength 38
|
564
|
-
*/
|
565
|
-
categoryIds?: string[];
|
566
|
-
/** Should delete bypassing the trash-bin. */
|
567
|
-
permanent?: boolean;
|
568
|
-
}
|
569
|
-
export interface BulkDeleteCategoryResponse {
|
570
|
-
}
|
571
|
-
export interface DeleteCategoryRequest {
|
424
|
+
interface DeleteCategoryRequest {
|
572
425
|
/**
|
573
426
|
* Category ID.
|
574
427
|
* @minLength 1
|
@@ -576,141 +429,33 @@ export interface DeleteCategoryRequest {
|
|
576
429
|
*/
|
577
430
|
categoryId: string;
|
578
431
|
}
|
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
|
-
|
607
|
-
|
608
|
-
|
609
|
-
/**
|
610
|
-
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
611
|
-
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
612
|
-
*/
|
613
|
-
entityEventSequence?: string | null;
|
614
|
-
}
|
615
|
-
/** @oneof */
|
616
|
-
export interface DomainEventBodyOneOf {
|
617
|
-
createdEvent?: EntityCreatedEvent;
|
618
|
-
updatedEvent?: EntityUpdatedEvent;
|
619
|
-
deletedEvent?: EntityDeletedEvent;
|
620
|
-
actionEvent?: ActionEvent;
|
621
|
-
}
|
622
|
-
export interface EntityCreatedEvent {
|
623
|
-
entityAsJson?: string;
|
624
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
625
|
-
restoreInfo?: RestoreInfo;
|
626
|
-
}
|
627
|
-
export interface RestoreInfo {
|
628
|
-
deletedDate?: Date | null;
|
629
|
-
}
|
630
|
-
export interface EntityUpdatedEvent {
|
631
|
-
/**
|
632
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
633
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
634
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
635
|
-
*/
|
636
|
-
currentEntityAsJson?: string;
|
637
|
-
}
|
638
|
-
export interface EntityDeletedEvent {
|
639
|
-
/** Entity that was deleted. */
|
640
|
-
deletedEntityAsJson?: string | null;
|
641
|
-
}
|
642
|
-
export interface ActionEvent {
|
643
|
-
bodyAsJson?: string;
|
644
|
-
}
|
645
|
-
export interface MessageEnvelope {
|
646
|
-
/**
|
647
|
-
* App instance ID.
|
648
|
-
* @format GUID
|
649
|
-
*/
|
650
|
-
instanceId?: string | null;
|
651
|
-
/**
|
652
|
-
* Event type.
|
653
|
-
* @maxLength 150
|
654
|
-
*/
|
655
|
-
eventType?: string;
|
656
|
-
/** The identification type and identity data. */
|
657
|
-
identity?: IdentificationData;
|
658
|
-
/** Stringify payload. */
|
659
|
-
data?: string;
|
660
|
-
}
|
661
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
662
|
-
/**
|
663
|
-
* ID of a site visitor that has not logged in to the site.
|
664
|
-
* @format GUID
|
665
|
-
*/
|
666
|
-
anonymousVisitorId?: string;
|
667
|
-
/**
|
668
|
-
* ID of a site visitor that has logged in to the site.
|
669
|
-
* @format GUID
|
670
|
-
*/
|
671
|
-
memberId?: string;
|
672
|
-
/**
|
673
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
674
|
-
* @format GUID
|
675
|
-
*/
|
676
|
-
wixUserId?: string;
|
677
|
-
/**
|
678
|
-
* ID of an app.
|
679
|
-
* @format GUID
|
680
|
-
*/
|
681
|
-
appId?: string;
|
682
|
-
/** @readonly */
|
683
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
684
|
-
}
|
685
|
-
/** @oneof */
|
686
|
-
export interface IdentificationDataIdOneOf {
|
687
|
-
/**
|
688
|
-
* ID of a site visitor that has not logged in to the site.
|
689
|
-
* @format GUID
|
690
|
-
*/
|
691
|
-
anonymousVisitorId?: string;
|
692
|
-
/**
|
693
|
-
* ID of a site visitor that has logged in to the site.
|
694
|
-
* @format GUID
|
695
|
-
*/
|
696
|
-
memberId?: string;
|
697
|
-
/**
|
698
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
699
|
-
* @format GUID
|
700
|
-
*/
|
701
|
-
wixUserId?: string;
|
702
|
-
/**
|
703
|
-
* ID of an app.
|
704
|
-
* @format GUID
|
705
|
-
*/
|
706
|
-
appId?: string;
|
707
|
-
}
|
708
|
-
export declare enum WebhookIdentityType {
|
709
|
-
UNKNOWN = "UNKNOWN",
|
710
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
711
|
-
MEMBER = "MEMBER",
|
712
|
-
WIX_USER = "WIX_USER",
|
713
|
-
APP = "APP"
|
714
|
-
}
|
715
|
-
/** @enumType */
|
716
|
-
export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
432
|
+
interface DeleteCategoryResponse {
|
433
|
+
}
|
434
|
+
|
435
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
436
|
+
getUrl: (context: any) => string;
|
437
|
+
httpMethod: K;
|
438
|
+
path: string;
|
439
|
+
pathParams: M;
|
440
|
+
__requestType: T;
|
441
|
+
__originalRequestType: S;
|
442
|
+
__responseType: Q;
|
443
|
+
__originalResponseType: R;
|
444
|
+
};
|
445
|
+
declare function createCategory(): __PublicMethodMetaInfo<'POST', {}, CreateCategoryRequest$1, CreateCategoryRequest, CreateCategoryResponse$1, CreateCategoryResponse>;
|
446
|
+
declare function updateCategory(): __PublicMethodMetaInfo<'PATCH', {
|
447
|
+
categoryId: string;
|
448
|
+
}, UpdateCategoryRequest$1, UpdateCategoryRequest, UpdateCategoryResponse$1, UpdateCategoryResponse>;
|
449
|
+
declare function getCategory(): __PublicMethodMetaInfo<'GET', {
|
450
|
+
categoryId: string;
|
451
|
+
}, GetCategoryRequest$1, GetCategoryRequest, GetCategoryResponse$1, GetCategoryResponse>;
|
452
|
+
declare function getCategoryBySlug(): __PublicMethodMetaInfo<'GET', {
|
453
|
+
slug: string;
|
454
|
+
}, GetCategoryBySlugRequest$1, GetCategoryBySlugRequest, GetCategoryBySlugResponse$1, GetCategoryBySlugResponse>;
|
455
|
+
declare function listCategories(): __PublicMethodMetaInfo<'GET', {}, ListCategoriesRequest$1, ListCategoriesRequest, ListCategoriesResponse$1, ListCategoriesResponse>;
|
456
|
+
declare function queryCategories(): __PublicMethodMetaInfo<'POST', {}, QueryCategoriesRequest$1, QueryCategoriesRequest, QueryCategoriesResponse$1, QueryCategoriesResponse>;
|
457
|
+
declare function deleteCategory(): __PublicMethodMetaInfo<'DELETE', {
|
458
|
+
categoryId: string;
|
459
|
+
}, DeleteCategoryRequest$1, DeleteCategoryRequest, DeleteCategoryResponse$1, DeleteCategoryResponse>;
|
460
|
+
|
461
|
+
export { type __PublicMethodMetaInfo, createCategory, deleteCategory, getCategory, getCategoryBySlug, listCategories, queryCategories, updateCategory };
|