@wix/auto_sdk_blog_categories 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/build/cjs/src/blog-v3-category-categories.types.d.ts +159 -43
  2. package/build/cjs/src/blog-v3-category-categories.types.js +0 -5
  3. package/build/cjs/src/blog-v3-category-categories.types.js.map +1 -1
  4. package/build/cjs/src/blog-v3-category-categories.universal.d.ts +203 -58
  5. package/build/cjs/src/blog-v3-category-categories.universal.js +0 -5
  6. package/build/cjs/src/blog-v3-category-categories.universal.js.map +1 -1
  7. package/build/es/src/blog-v3-category-categories.types.d.ts +159 -43
  8. package/build/es/src/blog-v3-category-categories.types.js +0 -5
  9. package/build/es/src/blog-v3-category-categories.types.js.map +1 -1
  10. package/build/es/src/blog-v3-category-categories.universal.d.ts +203 -58
  11. package/build/es/src/blog-v3-category-categories.universal.js +0 -5
  12. package/build/es/src/blog-v3-category-categories.universal.js.map +1 -1
  13. package/build/internal/cjs/src/blog-v3-category-categories.types.d.ts +159 -43
  14. package/build/internal/cjs/src/blog-v3-category-categories.types.js +0 -5
  15. package/build/internal/cjs/src/blog-v3-category-categories.types.js.map +1 -1
  16. package/build/internal/cjs/src/blog-v3-category-categories.universal.d.ts +203 -58
  17. package/build/internal/cjs/src/blog-v3-category-categories.universal.js +0 -5
  18. package/build/internal/cjs/src/blog-v3-category-categories.universal.js.map +1 -1
  19. package/build/internal/es/src/blog-v3-category-categories.types.d.ts +159 -43
  20. package/build/internal/es/src/blog-v3-category-categories.types.js +0 -5
  21. package/build/internal/es/src/blog-v3-category-categories.types.js.map +1 -1
  22. package/build/internal/es/src/blog-v3-category-categories.universal.d.ts +203 -58
  23. package/build/internal/es/src/blog-v3-category-categories.universal.js +0 -5
  24. package/build/internal/es/src/blog-v3-category-categories.universal.js.map +1 -1
  25. package/package.json +2 -2
@@ -1,7 +1,14 @@
1
1
  export interface Category {
2
- /** Category ID. */
2
+ /**
3
+ * Category ID.
4
+ * @immutable
5
+ * @maxLength 38
6
+ */
3
7
  id?: string;
4
- /** Category label. Displayed in the Category Menu. */
8
+ /**
9
+ * Category label. Displayed in the Category Menu.
10
+ * @maxLength 35
11
+ */
5
12
  label?: string;
6
13
  /**
7
14
  * Number of posts in the category.
@@ -13,10 +20,14 @@ export interface Category {
13
20
  * @readonly
14
21
  */
15
22
  url?: PageUrl;
16
- /** Category description. */
23
+ /**
24
+ * Category description.
25
+ * @maxLength 500
26
+ */
17
27
  description?: string | null;
18
28
  /**
19
29
  * Category title.
30
+ * @maxLength 200
20
31
  * @deprecated Category title.
21
32
  * @targetRemovalDate 2025-07-16
22
33
  */
@@ -28,21 +39,23 @@ export interface Category {
28
39
  * Default: `-1`
29
40
  */
30
41
  displayPosition?: number | null;
31
- /** ID of the category's translations. All translations of a single category share the same `translationId`. */
42
+ /**
43
+ * ID of the category's translations. All translations of a single category share the same `translationId`.
44
+ * @format GUID
45
+ */
32
46
  translationId?: string | null;
33
47
  /**
34
48
  * Category language.
35
49
  *
36
50
  * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
51
+ * @immutable
37
52
  */
38
53
  language?: string | null;
39
- /** 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`. */
40
- slug?: string;
41
54
  /**
42
- * Reserved for internal use.
43
- * @readonly
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
44
57
  */
45
- internalId?: string | null;
58
+ slug?: string;
46
59
  /** SEO data. */
47
60
  seoData?: SeoSchema;
48
61
  /** Category cover image. */
@@ -75,7 +88,10 @@ export interface Keyword {
75
88
  term?: string;
76
89
  /** Whether the keyword is the main focus keyword. */
77
90
  isMain?: boolean;
78
- /** The source that added the keyword terms to the SEO settings. */
91
+ /**
92
+ * The source that added the keyword terms to the SEO settings.
93
+ * @maxLength 1000
94
+ */
79
95
  origin?: string | null;
80
96
  }
81
97
  export interface Tag {
@@ -108,7 +124,10 @@ export interface Settings {
108
124
  * Default: `false` (Auto Redirect is enabled.)
109
125
  */
110
126
  preventAutoRedirect?: boolean;
111
- /** User-selected keyword terms for a specific page. */
127
+ /**
128
+ * User-selected keyword terms for a specific page.
129
+ * @maxSize 5
130
+ */
112
131
  keywords?: Keyword[];
113
132
  }
114
133
  export interface Image {
@@ -145,11 +164,20 @@ export interface FocalPoint {
145
164
  width?: number | null;
146
165
  }
147
166
  export interface CategoryTranslation {
148
- /** Category ID. */
167
+ /**
168
+ * Category ID.
169
+ * @format GUID
170
+ */
149
171
  id?: string;
150
- /** Label displayed in the categories menu on the site. */
172
+ /**
173
+ * Label displayed in the categories menu on the site.
174
+ * @maxLength 100
175
+ */
151
176
  label?: string | null;
152
- /** Language of the category. */
177
+ /**
178
+ * Language of the category.
179
+ * @format LANGUAGE_TAG
180
+ */
153
181
  language?: string | null;
154
182
  /** URL of this category page. */
155
183
  url?: PageUrl;
@@ -167,6 +195,7 @@ export interface CreateCategoryRequest {
167
195
  *
168
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
169
197
  * retrieve the url field in the response in addition to the category’s base fields.
198
+ * @maxSize 10
170
199
  */
171
200
  fieldsets?: Field[];
172
201
  }
@@ -174,11 +203,6 @@ export declare enum Field {
174
203
  UNKNOWN = "UNKNOWN",
175
204
  /** Includes Category url. */
176
205
  URL = "URL",
177
- /**
178
- * Includes internal id field.
179
- * Reserved for internal use
180
- */
181
- INTERNAL_ID = "INTERNAL_ID",
182
206
  /** Includes SEO data. */
183
207
  SEO = "SEO"
184
208
  }
@@ -187,7 +211,11 @@ export interface CreateCategoryResponse {
187
211
  category?: Category;
188
212
  }
189
213
  export interface BulkCreateCategoriesRequest {
190
- /** Categories to create. */
214
+ /**
215
+ * Categories to create.
216
+ * @minSize 1
217
+ * @maxSize 50
218
+ */
191
219
  categories?: Category[];
192
220
  /** Whether to return the full created category entities in the response. */
193
221
  returnFullEntity?: boolean;
@@ -197,6 +225,7 @@ export interface BulkCreateCategoriesRequest {
197
225
  *
198
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
199
227
  * retrieve the url field in the response in addition to the category’s base fields.
228
+ * @maxSize 10
200
229
  */
201
230
  fieldsets?: Field[];
202
231
  }
@@ -239,7 +268,11 @@ export interface BulkActionMetadata {
239
268
  undetailedFailures?: number;
240
269
  }
241
270
  export interface BulkUpdateCategoriesRequest {
242
- /** Categories to update. */
271
+ /**
272
+ * Categories to update.
273
+ * @minSize 1
274
+ * @maxSize 100
275
+ */
243
276
  categories?: MaskedCategory[];
244
277
  /** Whether to return the full created category entities in the response. */
245
278
  returnFullEntity?: boolean;
@@ -249,6 +282,7 @@ export interface BulkUpdateCategoriesRequest {
249
282
  *
250
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
251
284
  * retrieve the url field in the response in addition to the category’s base fields.
285
+ * @maxSize 10
252
286
  */
253
287
  fieldsets?: Field[];
254
288
  }
@@ -273,6 +307,7 @@ export interface UpdateCategoryRequest {
273
307
  *
274
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
275
309
  * retrieve the url field in the response in addition to the category’s base fields.
310
+ * @maxSize 10
276
311
  */
277
312
  fieldsets?: Field[];
278
313
  }
@@ -287,13 +322,20 @@ export interface GetCategoriesCountByLanguageResponse {
287
322
  categoriesLanguageCount?: CategoryLanguageCount[];
288
323
  }
289
324
  export interface CategoryLanguageCount {
290
- /** 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format. */
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
+ */
291
329
  languageCode?: string | null;
292
330
  /** The count of Categories for the language. */
293
331
  categoryCount?: number | null;
294
332
  }
295
333
  export interface GetCategoryRequest {
296
- /** Category ID. */
334
+ /**
335
+ * Category ID.
336
+ * @minLength 1
337
+ * @maxLength 38
338
+ */
297
339
  categoryId: string;
298
340
  /**
299
341
  * List of additional category fields to include in the response. By default
@@ -301,6 +343,7 @@ export interface GetCategoryRequest {
301
343
  *
302
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
303
345
  * retrieve the url field in the response in addition to the category’s base fields.
346
+ * @maxSize 10
304
347
  */
305
348
  fieldsets?: Field[];
306
349
  }
@@ -309,7 +352,11 @@ export interface GetCategoryResponse {
309
352
  category?: Category;
310
353
  }
311
354
  export interface GetCategoryBySlugRequest {
312
- /** Slug of the category to retrieve. */
355
+ /**
356
+ * Slug of the category to retrieve.
357
+ * @minLength 1
358
+ * @maxLength 100
359
+ */
313
360
  slug: string;
314
361
  /**
315
362
  * List of additional category fields to include in the response. By default
@@ -317,11 +364,13 @@ export interface GetCategoryBySlugRequest {
317
364
  *
318
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
319
366
  * retrieve the url field in the response in addition to the category’s base fields.
367
+ * @maxSize 10
320
368
  */
321
369
  fieldsets?: Field[];
322
370
  /**
323
371
  * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
324
372
  * Language of the category to retrieve.
373
+ * @format LANGUAGE_TAG
325
374
  */
326
375
  language?: string | null;
327
376
  }
@@ -338,6 +387,7 @@ export interface ListCategoriesRequest {
338
387
  *
339
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
340
389
  * retrieve the url field in the response in addition to the category’s base fields.
390
+ * @maxSize 10
341
391
  */
342
392
  fieldsets?: Field[];
343
393
  /**
@@ -346,6 +396,7 @@ export interface ListCategoriesRequest {
346
396
  * 2-or-4-letter language code in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.
347
397
  * Pass a language to only receive categories that are in that language.
348
398
  * If omitted, categories in all languages are returned.
399
+ * @format LANGUAGE_TAG
349
400
  */
350
401
  language?: string | null;
351
402
  }
@@ -362,9 +413,14 @@ export interface BlogPaging {
362
413
  *
363
414
  *
364
415
  * Default:`50`
416
+ * @min 1
417
+ * @max 100
365
418
  */
366
419
  limit?: number;
367
- /** Pointer to the next or previous page in the list of results. */
420
+ /**
421
+ * Pointer to the next or previous page in the list of results.
422
+ * @maxLength 2000
423
+ */
368
424
  cursor?: string | null;
369
425
  }
370
426
  export interface ListCategoriesResponse {
@@ -380,7 +436,10 @@ export interface MetaData {
380
436
  offset?: number;
381
437
  /** Total number of items that match the query. */
382
438
  total?: number;
383
- /** Pointer to the next or previous page in the list of results. */
439
+ /**
440
+ * Pointer to the next or previous page in the list of results.
441
+ * @maxLength 2000
442
+ */
384
443
  cursor?: string | null;
385
444
  }
386
445
  export interface QueryCategoriesRequest {
@@ -392,6 +451,7 @@ export interface QueryCategoriesRequest {
392
451
  *
393
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
394
453
  * retrieve the url field in the response in addition to the category’s base fields.
454
+ * @maxSize 10
395
455
  */
396
456
  fieldsets?: Field[];
397
457
  }
@@ -412,6 +472,7 @@ export interface PlatformQuery extends PlatformQueryPagingMethodOneOf {
412
472
  /**
413
473
  * Sort object in the following format:
414
474
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
475
+ * @maxSize 3
415
476
  */
416
477
  sort?: Sorting[];
417
478
  }
@@ -423,7 +484,10 @@ export interface PlatformQueryPagingMethodOneOf {
423
484
  cursorPaging?: CursorPaging;
424
485
  }
425
486
  export interface Sorting {
426
- /** Name of the field to sort by. */
487
+ /**
488
+ * Name of the field to sort by.
489
+ * @maxLength 512
490
+ */
427
491
  fieldName?: string;
428
492
  /** Sort order. */
429
493
  order?: SortOrder;
@@ -433,13 +497,19 @@ export declare enum SortOrder {
433
497
  DESC = "DESC"
434
498
  }
435
499
  export interface Paging {
436
- /** Number of items to load. */
500
+ /**
501
+ * Number of items to load.
502
+ * @max 100
503
+ */
437
504
  limit?: number | null;
438
505
  /** Number of items to skip in the current sort order. */
439
506
  offset?: number | null;
440
507
  }
441
508
  export interface CursorPaging {
442
- /** Number of items to load. */
509
+ /**
510
+ * Number of items to load.
511
+ * @max 100
512
+ */
443
513
  limit?: number | null;
444
514
  /**
445
515
  * Pointer to the next or previous page in the list of results.
@@ -447,6 +517,7 @@ export interface CursorPaging {
447
517
  * You can get the relevant cursor token
448
518
  * from the `pagingMetadata` object in the previous call's response.
449
519
  * Not relevant for the first request.
520
+ * @maxLength 2000
450
521
  */
451
522
  cursor?: string | null;
452
523
  }
@@ -469,13 +540,24 @@ export interface PagingMetadataV2 {
469
540
  cursors?: Cursors;
470
541
  }
471
542
  export interface Cursors {
472
- /** Cursor pointing to next page in the list of results. */
543
+ /**
544
+ * Cursor pointing to next page in the list of results.
545
+ * @maxLength 2000
546
+ */
473
547
  next?: string | null;
474
- /** Cursor pointing to previous page in the list of results. */
548
+ /**
549
+ * Cursor pointing to previous page in the list of results.
550
+ * @maxLength 2000
551
+ */
475
552
  prev?: string | null;
476
553
  }
477
554
  export interface BulkDeleteCategoryRequest {
478
- /** Category IDs. */
555
+ /**
556
+ * Category IDs.
557
+ * @minSize 1
558
+ * @maxSize 100
559
+ * @maxLength 38
560
+ */
479
561
  categoryIds?: string[];
480
562
  /** Should delete bypassing the trash-bin. */
481
563
  permanent?: boolean;
@@ -483,7 +565,11 @@ export interface BulkDeleteCategoryRequest {
483
565
  export interface BulkDeleteCategoryResponse {
484
566
  }
485
567
  export interface DeleteCategoryRequest {
486
- /** Category ID. */
568
+ /**
569
+ * Category ID.
570
+ * @minLength 1
571
+ * @maxLength 38
572
+ */
487
573
  categoryId: string;
488
574
  }
489
575
  export interface DeleteCategoryResponse {
@@ -561,9 +647,15 @@ export interface ActionEvent {
561
647
  bodyAsJson?: string;
562
648
  }
563
649
  export interface MessageEnvelope {
564
- /** App instance ID. */
650
+ /**
651
+ * App instance ID.
652
+ * @format GUID
653
+ */
565
654
  instanceId?: string | null;
566
- /** Event type. */
655
+ /**
656
+ * Event type.
657
+ * @maxLength 150
658
+ */
567
659
  eventType?: string;
568
660
  /** The identification type and identity data. */
569
661
  identity?: IdentificationData;
@@ -571,26 +663,50 @@ export interface MessageEnvelope {
571
663
  data?: string;
572
664
  }
573
665
  export interface IdentificationData extends IdentificationDataIdOneOf {
574
- /** ID of a site visitor that has not logged in to the site. */
666
+ /**
667
+ * ID of a site visitor that has not logged in to the site.
668
+ * @format GUID
669
+ */
575
670
  anonymousVisitorId?: string;
576
- /** ID of a site visitor that has logged in to the site. */
671
+ /**
672
+ * ID of a site visitor that has logged in to the site.
673
+ * @format GUID
674
+ */
577
675
  memberId?: string;
578
- /** ID of a Wix user (site owner, contributor, etc.). */
676
+ /**
677
+ * ID of a Wix user (site owner, contributor, etc.).
678
+ * @format GUID
679
+ */
579
680
  wixUserId?: string;
580
- /** ID of an app. */
681
+ /**
682
+ * ID of an app.
683
+ * @format GUID
684
+ */
581
685
  appId?: string;
582
686
  /** @readonly */
583
687
  identityType?: WebhookIdentityType;
584
688
  }
585
689
  /** @oneof */
586
690
  export interface IdentificationDataIdOneOf {
587
- /** ID of a site visitor that has not logged in to the site. */
691
+ /**
692
+ * ID of a site visitor that has not logged in to the site.
693
+ * @format GUID
694
+ */
588
695
  anonymousVisitorId?: string;
589
- /** ID of a site visitor that has logged in to the site. */
696
+ /**
697
+ * ID of a site visitor that has logged in to the site.
698
+ * @format GUID
699
+ */
590
700
  memberId?: string;
591
- /** ID of a Wix user (site owner, contributor, etc.). */
701
+ /**
702
+ * ID of a Wix user (site owner, contributor, etc.).
703
+ * @format GUID
704
+ */
592
705
  wixUserId?: string;
593
- /** ID of an app. */
706
+ /**
707
+ * ID of an app.
708
+ * @format GUID
709
+ */
594
710
  appId?: string;
595
711
  }
596
712
  export declare enum WebhookIdentityType {
@@ -6,11 +6,6 @@ var Field;
6
6
  Field["UNKNOWN"] = "UNKNOWN";
7
7
  /** Includes Category url. */
8
8
  Field["URL"] = "URL";
9
- /**
10
- * Includes internal id field.
11
- * Reserved for internal use
12
- */
13
- Field["INTERNAL_ID"] = "INTERNAL_ID";
14
9
  /** Includes SEO data. */
15
10
  Field["SEO"] = "SEO";
16
11
  })(Field || (exports.Field = Field = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"blog-v3-category-categories.types.js","sourceRoot":"","sources":["../../../../src/blog-v3-category-categories.types.ts"],"names":[],"mappings":";;;AAuLA,IAAY,KAWX;AAXD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX;;;OAGG;IACH,oCAA2B,CAAA;IAC3B,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EAXW,KAAK,qBAAL,KAAK,QAWhB;AAkRD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAoLD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"blog-v3-category-categories.types.js","sourceRoot":"","sources":["../../../../src/blog-v3-category-categories.types.ts"],"names":[],"mappings":";;;AAoNA,IAAY,KAMX;AAND,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EANW,KAAK,qBAAL,KAAK,QAMhB;AA0TD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAwOD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}