@wix/auto_sdk_categories_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.
@@ -1,5 +1,9 @@
1
1
  export interface Category {
2
- /** Category ID. */
2
+ /**
3
+ * Category ID.
4
+ * @format GUID
5
+ * @immutable
6
+ */
3
7
  id?: string | null;
4
8
  /**
5
9
  * Revision number, which increments by 1 each time the category is updated.
@@ -19,7 +23,11 @@ export interface Category {
19
23
  * @readonly
20
24
  */
21
25
  updatedDate?: Date | null;
22
- /** Category name. */
26
+ /**
27
+ * Category name.
28
+ * @minLength 1
29
+ * @maxLength 80
30
+ */
23
31
  name?: string | null;
24
32
  /**
25
33
  * Category image.
@@ -36,6 +44,8 @@ export interface Category {
36
44
  /**
37
45
  * Category description.
38
46
  * > **Note:** This field is returned only when you pass `fields: "DESCRIPTION"` in the request.
47
+ * @minLength 1
48
+ * @maxLength 600
39
49
  */
40
50
  description?: string | null;
41
51
  /**
@@ -44,6 +54,7 @@ export interface Category {
44
54
  * + If the parent category's visibility is set to `false`, all the children categories' visibility will also be set to `false`.
45
55
  * + Passing `true` will fail if the visibility of any parent categories is `false`.
46
56
  * + Default: `false`.
57
+ * @immutable
47
58
  */
48
59
  visible?: boolean | null;
49
60
  /**
@@ -53,12 +64,16 @@ export interface Category {
53
64
  * @readonly
54
65
  */
55
66
  breadcrumbsInfo?: BreadcrumbsInfo;
56
- /** Parent category reference data. */
67
+ /**
68
+ * Parent category reference data.
69
+ * @immutable
70
+ */
57
71
  parentCategory?: ParentCategory;
58
72
  /**
59
73
  * Category slug.
60
74
  *
61
75
  * If not provided, the slug is autogenerated based on the category name.
76
+ * @format URL_SLUG
62
77
  */
63
78
  slug?: string | null;
64
79
  /**
@@ -74,6 +89,8 @@ export interface Category {
74
89
  * ID of the app responsible for managing the items in this category.
75
90
  *
76
91
  * Pass your app ID to restrict updating and deleting items in this category to your app only.
92
+ * @format GUID
93
+ * @immutable
77
94
  */
78
95
  managingAppId?: string | null;
79
96
  /**
@@ -84,9 +101,15 @@ export interface Category {
84
101
  extendedFields?: ExtendedFields;
85
102
  }
86
103
  export interface Image {
87
- /** WixMedia image ID. */
104
+ /**
105
+ * WixMedia image ID.
106
+ * @maxLength 400
107
+ */
88
108
  id?: string;
89
- /** Image URL. */
109
+ /**
110
+ * Image URL.
111
+ * @format WEB_URL
112
+ */
90
113
  url?: string;
91
114
  /**
92
115
  * Original image height.
@@ -98,11 +121,15 @@ export interface Image {
98
121
  * @readonly
99
122
  */
100
123
  width?: number;
101
- /** Image alt text. */
124
+ /**
125
+ * Image alt text.
126
+ * @maxLength 200
127
+ */
102
128
  altText?: string | null;
103
129
  /**
104
130
  * Image filename.
105
131
  * @readonly
132
+ * @maxLength 200
106
133
  */
107
134
  filename?: string | null;
108
135
  }
@@ -110,15 +137,27 @@ export interface BreadcrumbsInfo {
110
137
  /**
111
138
  * List of breadcrumb data. The current category isn't included in the list.
112
139
  * @readonly
140
+ * @maxSize 5
113
141
  */
114
142
  breadcrumbs?: Breadcrumb[];
115
143
  }
116
144
  export interface Breadcrumb {
117
- /** Category ID. */
145
+ /**
146
+ * Category ID.
147
+ * @format GUID
148
+ */
118
149
  categoryId?: string;
119
- /** Category name. */
150
+ /**
151
+ * Category name.
152
+ * @minLength 1
153
+ * @maxLength 80
154
+ */
120
155
  categoryName?: string;
121
- /** Category slug. */
156
+ /**
157
+ * Category slug.
158
+ * @minLength 1
159
+ * @maxLength 100
160
+ */
122
161
  categorySlug?: string;
123
162
  }
124
163
  export interface ParentCategory {
@@ -126,6 +165,7 @@ export interface ParentCategory {
126
165
  * Parent category ID.
127
166
  *
128
167
  * Default: root category ID
168
+ * @format GUID
129
169
  */
130
170
  id?: string | null;
131
171
  /**
@@ -150,7 +190,10 @@ export interface Keyword {
150
190
  term?: string;
151
191
  /** Whether the keyword is the main focus keyword. */
152
192
  isMain?: boolean;
153
- /** The source that added the keyword terms to the SEO settings. */
193
+ /**
194
+ * The source that added the keyword terms to the SEO settings.
195
+ * @maxLength 1000
196
+ */
154
197
  origin?: string | null;
155
198
  }
156
199
  export interface Tag {
@@ -183,7 +226,10 @@ export interface Settings {
183
226
  * Default: `false` (Auto Redirect is enabled.)
184
227
  */
185
228
  preventAutoRedirect?: boolean;
186
- /** User-selected keyword terms for a specific page. */
229
+ /**
230
+ * User-selected keyword terms for a specific page.
231
+ * @maxSize 5
232
+ */
187
233
  keywords?: Keyword[];
188
234
  }
189
235
  export interface RichContent {
@@ -784,11 +830,20 @@ export interface GIFData {
784
830
  gifType?: GIFType;
785
831
  }
786
832
  export interface GIF {
787
- /** GIF format URL. */
833
+ /**
834
+ * GIF format URL.
835
+ * @format WEB_URL
836
+ */
788
837
  gif?: string | null;
789
- /** MP4 format URL. */
838
+ /**
839
+ * MP4 format URL.
840
+ * @format WEB_URL
841
+ */
790
842
  mp4?: string | null;
791
- /** Thumbnail URL. */
843
+ /**
844
+ * Thumbnail URL.
845
+ * @format WEB_URL
846
+ */
792
847
  still?: string | null;
793
848
  }
794
849
  export declare enum GIFType {
@@ -862,7 +917,10 @@ export interface ImageData {
862
917
  export interface StylesBorder {
863
918
  /** Border width in pixels. */
864
919
  width?: number | null;
865
- /** Border color. */
920
+ /**
921
+ * Border color as a hexadecimal value.
922
+ * @format COLOR_HEX
923
+ */
866
924
  color?: string | null;
867
925
  /** Border radius in pixels. */
868
926
  radius?: number | null;
@@ -1016,13 +1074,22 @@ export declare enum BackgroundType {
1016
1074
  export interface Gradient {
1017
1075
  /** The gradient angle in degrees. */
1018
1076
  angle?: number | null;
1019
- /** The start color as a hexademical value. */
1077
+ /**
1078
+ * The start color as a hexademical value.
1079
+ * @format COLOR_HEX
1080
+ */
1020
1081
  startColor?: string | null;
1021
- /** The end color as a hexademical value. */
1082
+ /**
1083
+ * The end color as a hexademical value.
1084
+ * @format COLOR_HEX
1085
+ */
1022
1086
  lastColor?: string | null;
1023
1087
  }
1024
1088
  export interface Background extends BackgroundBackgroundOneOf {
1025
- /** The background color as a hexademical value. */
1089
+ /**
1090
+ * The background color as a hexademical value.
1091
+ * @format COLOR_HEX
1092
+ */
1026
1093
  color?: string | null;
1027
1094
  /** An image to use for the background. */
1028
1095
  image?: Media;
@@ -1033,7 +1100,10 @@ export interface Background extends BackgroundBackgroundOneOf {
1033
1100
  }
1034
1101
  /** @oneof */
1035
1102
  export interface BackgroundBackgroundOneOf {
1036
- /** The background color as a hexademical value. */
1103
+ /**
1104
+ * The background color as a hexademical value.
1105
+ * @format COLOR_HEX
1106
+ */
1037
1107
  color?: string | null;
1038
1108
  /** An image to use for the background. */
1039
1109
  image?: Media;
@@ -1345,17 +1415,32 @@ export declare enum VerticalAlignment {
1345
1415
  export interface CellStyle {
1346
1416
  /** Vertical alignment for the cell's text. */
1347
1417
  verticalAlignment?: VerticalAlignment;
1348
- /** Cell background color as a hexadecimal value. */
1418
+ /**
1419
+ * Cell background color as a hexadecimal value.
1420
+ * @format COLOR_HEX
1421
+ */
1349
1422
  backgroundColor?: string | null;
1350
1423
  }
1351
1424
  export interface BorderColors {
1352
- /** Left border color as a hexadecimal value. */
1425
+ /**
1426
+ * Left border color as a hexadecimal value.
1427
+ * @format COLOR_HEX
1428
+ */
1353
1429
  left?: string | null;
1354
- /** Right border color as a hexadecimal value. */
1430
+ /**
1431
+ * Right border color as a hexadecimal value.
1432
+ * @format COLOR_HEX
1433
+ */
1355
1434
  right?: string | null;
1356
- /** Top border color as a hexadecimal value. */
1435
+ /**
1436
+ * Top border color as a hexadecimal value.
1437
+ * @format COLOR_HEX
1438
+ */
1357
1439
  top?: string | null;
1358
- /** Bottom border color as a hexadecimal value. */
1440
+ /**
1441
+ * Bottom border color as a hexadecimal value.
1442
+ * @format COLOR_HEX
1443
+ */
1359
1444
  bottom?: string | null;
1360
1445
  }
1361
1446
  /**
@@ -1468,9 +1553,15 @@ export interface TreeReference {
1468
1553
  * Namespace of the app that manages the tree.
1469
1554
  *
1470
1555
  * For example, `"@wix/stores"`, `"@bookings/bookingslist"`, `"@achievements/quizzes"`.
1556
+ * @minLength 4
1557
+ * @maxLength 150
1471
1558
  */
1472
1559
  appNamespace?: string;
1473
- /** Tree key. You must pass this when a single app manages more than one tree. */
1560
+ /**
1561
+ * Tree key. You must pass this when a single app manages more than one tree.
1562
+ * @minLength 1
1563
+ * @maxLength 44
1564
+ */
1474
1565
  treeKey?: string | null;
1475
1566
  }
1476
1567
  export interface ExtendedFields {
@@ -1485,9 +1576,15 @@ export interface ExtendedFields {
1485
1576
  namespaces?: Record<string, Record<string, any>>;
1486
1577
  }
1487
1578
  export interface InvalidateCache extends InvalidateCacheGetByOneOf {
1488
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1579
+ /**
1580
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
1581
+ * @format GUID
1582
+ */
1489
1583
  metaSiteId?: string;
1490
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1584
+ /**
1585
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
1586
+ * @format GUID
1587
+ */
1491
1588
  siteId?: string;
1492
1589
  /** Invalidate by App */
1493
1590
  app?: App;
@@ -1497,7 +1594,10 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
1497
1594
  uri?: URI;
1498
1595
  /** Invalidate by file (for media files such as PDFs) */
1499
1596
  file?: File;
1500
- /** tell us why you're invalidating the cache. You don't need to add your app name */
1597
+ /**
1598
+ * tell us why you're invalidating the cache. You don't need to add your app name
1599
+ * @maxLength 256
1600
+ */
1501
1601
  reason?: string | null;
1502
1602
  /** Is local DS */
1503
1603
  localDc?: boolean;
@@ -1505,9 +1605,15 @@ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
1505
1605
  }
1506
1606
  /** @oneof */
1507
1607
  export interface InvalidateCacheGetByOneOf {
1508
- /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
1608
+ /**
1609
+ * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
1610
+ * @format GUID
1611
+ */
1509
1612
  metaSiteId?: string;
1510
- /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
1613
+ /**
1614
+ * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
1615
+ * @format GUID
1616
+ */
1511
1617
  siteId?: string;
1512
1618
  /** Invalidate by App */
1513
1619
  app?: App;
@@ -1519,31 +1625,59 @@ export interface InvalidateCacheGetByOneOf {
1519
1625
  file?: File;
1520
1626
  }
1521
1627
  export interface App {
1522
- /** The AppDefId */
1628
+ /**
1629
+ * The AppDefId
1630
+ * @minLength 1
1631
+ */
1523
1632
  appDefId?: string;
1524
- /** The instance Id */
1633
+ /**
1634
+ * The instance Id
1635
+ * @format GUID
1636
+ */
1525
1637
  instanceId?: string;
1526
1638
  }
1527
1639
  export interface Page {
1528
- /** the msid the page is on */
1640
+ /**
1641
+ * the msid the page is on
1642
+ * @format GUID
1643
+ */
1529
1644
  metaSiteId?: string;
1530
- /** Invalidate by Page ID */
1645
+ /**
1646
+ * Invalidate by Page ID
1647
+ * @minLength 1
1648
+ */
1531
1649
  pageId?: string;
1532
1650
  }
1533
1651
  export interface URI {
1534
- /** the msid the URI is on */
1652
+ /**
1653
+ * the msid the URI is on
1654
+ * @format GUID
1655
+ */
1535
1656
  metaSiteId?: string;
1536
- /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
1657
+ /**
1658
+ * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
1659
+ * @minLength 1
1660
+ */
1537
1661
  uriPath?: string;
1538
1662
  }
1539
1663
  export interface File {
1540
- /** the msid the file is related to */
1664
+ /**
1665
+ * the msid the file is related to
1666
+ * @format GUID
1667
+ */
1541
1668
  metaSiteId?: string;
1542
- /** Invalidate by filename (for media files such as PDFs) */
1669
+ /**
1670
+ * Invalidate by filename (for media files such as PDFs)
1671
+ * @minLength 1
1672
+ * @maxLength 256
1673
+ */
1543
1674
  fileName?: string;
1544
1675
  }
1545
1676
  export interface CategoryMoved {
1546
- /** Category ID. */
1677
+ /**
1678
+ * Category ID.
1679
+ * @format GUID
1680
+ */
1547
1681
  categoryId?: string;
1548
1682
  /** Parent category details. */
1549
1683
  parentCategory?: ParentCategory;
@@ -1551,7 +1685,10 @@ export interface CategoryMoved {
1551
1685
  treeReference?: TreeReference;
1552
1686
  }
1553
1687
  export interface ItemAddedToCategory {
1554
- /** Category ID. */
1688
+ /**
1689
+ * Category ID.
1690
+ * @format GUID
1691
+ */
1555
1692
  categoryId?: string;
1556
1693
  /** Details about the added item. */
1557
1694
  addedItem?: ItemReference;
@@ -1563,6 +1700,8 @@ export interface ItemReference {
1563
1700
  * ID of the item within the catalog it belongs to.
1564
1701
  *
1565
1702
  * For example, `product.id` for Wix Stores or `event.id` for Wix Events.
1703
+ * @minLength 1
1704
+ * @maxLength 36
1566
1705
  */
1567
1706
  catalogItemId?: string;
1568
1707
  /**
@@ -1574,19 +1713,30 @@ export interface ItemReference {
1574
1713
  * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
1575
1714
  * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
1576
1715
  * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
1716
+ * @minLength 1
1717
+ * @maxLength 36
1577
1718
  */
1578
1719
  appId?: string;
1579
1720
  }
1580
1721
  export interface ItemsAddedToCategory {
1581
- /** Category ID. */
1722
+ /**
1723
+ * Category ID.
1724
+ * @format GUID
1725
+ */
1582
1726
  categoryId?: string;
1583
- /** List of added items. */
1727
+ /**
1728
+ * List of added items.
1729
+ * @maxSize 100
1730
+ */
1584
1731
  addedItems?: ItemReference[];
1585
1732
  /** Category tree reference details. */
1586
1733
  treeReference?: TreeReference;
1587
1734
  }
1588
1735
  export interface ItemRemovedFromCategory {
1589
- /** Category ID. */
1736
+ /**
1737
+ * Category ID.
1738
+ * @format GUID
1739
+ */
1590
1740
  categoryId?: string;
1591
1741
  /** Details about the removed item. */
1592
1742
  removedItem?: ItemReference;
@@ -1594,15 +1744,24 @@ export interface ItemRemovedFromCategory {
1594
1744
  treeReference?: TreeReference;
1595
1745
  }
1596
1746
  export interface ItemsRemovedFromCategory {
1597
- /** Category ID. */
1747
+ /**
1748
+ * Category ID.
1749
+ * @format GUID
1750
+ */
1598
1751
  categoryId?: string;
1599
- /** List of removed items. */
1752
+ /**
1753
+ * List of removed items.
1754
+ * @maxSize 100
1755
+ */
1600
1756
  removedItems?: ItemReference[];
1601
1757
  /** Category tree reference details. */
1602
1758
  treeReference?: TreeReference;
1603
1759
  }
1604
1760
  export interface ItemsArrangedInCategory {
1605
- /** Category ID. */
1761
+ /**
1762
+ * Category ID.
1763
+ * @format GUID
1764
+ */
1606
1765
  categoryId?: string;
1607
1766
  /** Category tree reference details. */
1608
1767
  treeReference?: TreeReference;
@@ -1612,7 +1771,10 @@ export interface CreateCategoryRequest {
1612
1771
  category: Category;
1613
1772
  /** Category tree reference details. */
1614
1773
  treeReference: TreeReference;
1615
- /** Fields to include in the response. */
1774
+ /**
1775
+ * Fields to include in the response.
1776
+ * @maxSize 100
1777
+ */
1616
1778
  fields?: SingleEntityOpsRequestedFields[];
1617
1779
  }
1618
1780
  export declare enum SingleEntityOpsRequestedFields {
@@ -1627,11 +1789,17 @@ export interface CreateCategoryResponse {
1627
1789
  category?: Category;
1628
1790
  }
1629
1791
  export interface GetCategoryRequest {
1630
- /** Category ID. */
1792
+ /**
1793
+ * Category ID.
1794
+ * @format GUID
1795
+ */
1631
1796
  categoryId: string;
1632
1797
  /** Category tree reference details. */
1633
1798
  treeReference: TreeReference;
1634
- /** Fields to include in the response. */
1799
+ /**
1800
+ * Fields to include in the response.
1801
+ * @maxSize 100
1802
+ */
1635
1803
  fields?: SingleEntityOpsRequestedFields[];
1636
1804
  }
1637
1805
  export interface GetCategoryResponse {
@@ -1643,7 +1811,10 @@ export interface UpdateCategoryRequest {
1643
1811
  category: Category;
1644
1812
  /** Category tree reference details. */
1645
1813
  treeReference: TreeReference;
1646
- /** Fields to include in the response. */
1814
+ /**
1815
+ * Fields to include in the response.
1816
+ * @maxSize 100
1817
+ */
1647
1818
  fields?: SingleEntityOpsRequestedFields[];
1648
1819
  }
1649
1820
  export interface UpdateCategoryResponse {
@@ -1651,7 +1822,10 @@ export interface UpdateCategoryResponse {
1651
1822
  category?: Category;
1652
1823
  }
1653
1824
  export interface DeleteCategoryRequest {
1654
- /** Category ID. */
1825
+ /**
1826
+ * Category ID.
1827
+ * @format GUID
1828
+ */
1655
1829
  categoryId: string;
1656
1830
  /** Category tree reference details. */
1657
1831
  treeReference: TreeReference;
@@ -1669,7 +1843,10 @@ export interface QueryCategoriesRequest {
1669
1843
  * Default: `false` (only visible categories are returned)
1670
1844
  */
1671
1845
  returnNonVisibleCategories?: boolean;
1672
- /** Fields to include in the response. */
1846
+ /**
1847
+ * Fields to include in the response.
1848
+ * @maxSize 100
1849
+ */
1673
1850
  fields?: RequestedFields[];
1674
1851
  }
1675
1852
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -1687,6 +1864,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1687
1864
  /**
1688
1865
  * Sort object in the following format:
1689
1866
  * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1867
+ * @maxSize 5
1690
1868
  */
1691
1869
  sort?: Sorting[];
1692
1870
  }
@@ -1696,7 +1874,10 @@ export interface CursorQueryPagingMethodOneOf {
1696
1874
  cursorPaging?: CursorPaging;
1697
1875
  }
1698
1876
  export interface Sorting {
1699
- /** Name of the field to sort by. */
1877
+ /**
1878
+ * Name of the field to sort by.
1879
+ * @maxLength 512
1880
+ */
1700
1881
  fieldName?: string;
1701
1882
  /** Sort order. */
1702
1883
  order?: SortOrder;
@@ -1708,13 +1889,17 @@ export declare enum SortOrder {
1708
1889
  DESC = "DESC"
1709
1890
  }
1710
1891
  export interface CursorPaging {
1711
- /** Maximum number of items to return in the results. */
1892
+ /**
1893
+ * Maximum number of items to return in the results.
1894
+ * @max 1000
1895
+ */
1712
1896
  limit?: number | null;
1713
1897
  /**
1714
1898
  * Pointer to the next or previous page in the list of results.
1715
1899
  *
1716
1900
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1717
1901
  * Not relevant for the first request.
1902
+ * @maxLength 16000
1718
1903
  */
1719
1904
  cursor?: string | null;
1720
1905
  }
@@ -1724,7 +1909,10 @@ export declare enum RequestedFields {
1724
1909
  BREADCRUMBS_INFO = "BREADCRUMBS_INFO"
1725
1910
  }
1726
1911
  export interface QueryCategoriesResponse {
1727
- /** List of categories. */
1912
+ /**
1913
+ * List of categories.
1914
+ * @maxSize 1000
1915
+ */
1728
1916
  categories?: Category[];
1729
1917
  /** Paging metadata. */
1730
1918
  pagingMetadata?: CursorPagingMetadata;
@@ -1743,13 +1931,24 @@ export interface CursorPagingMetadata {
1743
1931
  hasNext?: boolean | null;
1744
1932
  }
1745
1933
  export interface Cursors {
1746
- /** Cursor string pointing to the next page in the list of results. */
1934
+ /**
1935
+ * Cursor string pointing to the next page in the list of results.
1936
+ * @maxLength 16000
1937
+ */
1747
1938
  next?: string | null;
1748
- /** Cursor pointing to the previous page in the list of results. */
1939
+ /**
1940
+ * Cursor pointing to the previous page in the list of results.
1941
+ * @maxLength 16000
1942
+ */
1749
1943
  prev?: string | null;
1750
1944
  }
1751
1945
  export interface ListCompactCategoriesByIdsRequest {
1752
- /** List of category ids. */
1946
+ /**
1947
+ * List of category ids.
1948
+ * @format GUID
1949
+ * @minSize 1
1950
+ * @maxSize 1000
1951
+ */
1753
1952
  categoryIds?: string[];
1754
1953
  /** A reference to the tree that contains the categories. */
1755
1954
  treeReference?: TreeReference;
@@ -1759,9 +1958,16 @@ export interface ListCompactCategoriesByIdsResponse {
1759
1958
  categories?: CompactCategory[];
1760
1959
  }
1761
1960
  export interface CompactCategory {
1762
- /** Category ID. */
1961
+ /**
1962
+ * Category ID.
1963
+ * @format GUID
1964
+ */
1763
1965
  id?: string | null;
1764
- /** Category name. */
1966
+ /**
1967
+ * Category name.
1968
+ * @minLength 1
1969
+ * @maxLength 80
1970
+ */
1765
1971
  name?: string | null;
1766
1972
  }
1767
1973
  export interface SearchCategoriesRequest {
@@ -1778,7 +1984,10 @@ export interface SearchCategoriesRequest {
1778
1984
  * Default: `false` - only visible categories are returned in the response
1779
1985
  */
1780
1986
  returnNonVisibleCategories?: boolean;
1781
- /** Fields to include in the response. */
1987
+ /**
1988
+ * Fields to include in the response.
1989
+ * @maxSize 100
1990
+ */
1782
1991
  fields?: RequestedFields[];
1783
1992
  }
1784
1993
  export interface CursorSearch extends CursorSearchPagingMethodOneOf {
@@ -1789,9 +1998,15 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
1789
1998
  cursorPaging?: CursorPaging;
1790
1999
  /** A filter object. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
1791
2000
  filter?: Record<string, any> | null;
1792
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
2001
+ /**
2002
+ * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
2003
+ * @maxSize 10
2004
+ */
1793
2005
  sort?: Sorting[];
1794
- /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
2006
+ /**
2007
+ * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
2008
+ * @maxSize 10
2009
+ */
1795
2010
  aggregations?: Aggregation[];
1796
2011
  /** Free text to match in searchable fields */
1797
2012
  search?: SearchDetails;
@@ -1803,6 +2018,7 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
1803
2018
  * Affects all filters and aggregations returned values.
1804
2019
  * You may override this behavior in a specific filter by providing
1805
2020
  * timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
2021
+ * @maxLength 50
1806
2022
  */
1807
2023
  timeZone?: string | null;
1808
2024
  }
@@ -1825,11 +2041,17 @@ export interface Aggregation extends AggregationKindOneOf {
1825
2041
  dateHistogram?: DateHistogramAggregation;
1826
2042
  /** Nested aggregation */
1827
2043
  nested?: NestedAggregation;
1828
- /** User-defined name of aggregation, should be unique, will appear in aggregation results */
2044
+ /**
2045
+ * User-defined name of aggregation, should be unique, will appear in aggregation results
2046
+ * @maxLength 100
2047
+ */
1829
2048
  name?: string | null;
1830
2049
  /** Type of aggregation, client must provide matching aggregation field below */
1831
2050
  type?: AggregationType;
1832
- /** Field to aggregate by, use dot notation to specify json path */
2051
+ /**
2052
+ * Field to aggregate by, use dot notation to specify json path
2053
+ * @maxLength 200
2054
+ */
1833
2055
  fieldPath?: string;
1834
2056
  }
1835
2057
  /** @oneof */
@@ -1870,7 +2092,10 @@ export declare enum MissingValues {
1870
2092
  INCLUDE = "INCLUDE"
1871
2093
  }
1872
2094
  export interface IncludeMissingValuesOptions {
1873
- /** Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
2095
+ /**
2096
+ * Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ...
2097
+ * @maxLength 20
2098
+ */
1874
2099
  addToBucket?: string;
1875
2100
  }
1876
2101
  export declare enum ScalarType {
@@ -1915,7 +2140,10 @@ export declare enum NestedAggregationType {
1915
2140
  DATE_HISTOGRAM = "DATE_HISTOGRAM"
1916
2141
  }
1917
2142
  export interface RangeAggregation {
1918
- /** List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds */
2143
+ /**
2144
+ * List of range buckets, where during aggregation each entity will be placed in the first bucket where its value falls into based on provided range bounds
2145
+ * @maxSize 50
2146
+ */
1919
2147
  buckets?: RangeBucket[];
1920
2148
  }
1921
2149
  export interface ScalarAggregation {
@@ -1952,11 +2180,17 @@ export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
1952
2180
  scalar?: ScalarAggregation;
1953
2181
  /** Date histogram aggregation */
1954
2182
  dateHistogram?: DateHistogramAggregation;
1955
- /** User-defined name of aggregation, should be unique, will appear in aggregation results */
2183
+ /**
2184
+ * User-defined name of aggregation, should be unique, will appear in aggregation results
2185
+ * @maxLength 100
2186
+ */
1956
2187
  name?: string | null;
1957
2188
  /** Type of aggregation client must provide matching aggregation field below */
1958
2189
  type?: NestedAggregationType;
1959
- /** Field to aggregate by, use dont notation to specify json path */
2190
+ /**
2191
+ * Field to aggregate by, use dont notation to specify json path
2192
+ * @maxLength 200
2193
+ */
1960
2194
  fieldPath?: string;
1961
2195
  }
1962
2196
  /** @oneof */
@@ -1985,18 +2219,27 @@ export declare enum AggregationType {
1985
2219
  }
1986
2220
  /** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
1987
2221
  export interface NestedAggregation {
1988
- /** Flattened list of aggregations, where each next aggregation is nested within previous one */
2222
+ /**
2223
+ * Flattened list of aggregations, where each next aggregation is nested within previous one
2224
+ * @minSize 2
2225
+ * @maxSize 3
2226
+ */
1989
2227
  nestedAggregations?: NestedAggregationItem[];
1990
2228
  }
1991
2229
  export interface SearchDetails {
1992
2230
  /** Defines how separate search terms in `expression` are combined. */
1993
2231
  mode?: Mode;
1994
- /** Search term or expression. */
2232
+ /**
2233
+ * Search term or expression.
2234
+ * @maxLength 100
2235
+ */
1995
2236
  expression?: string | null;
1996
2237
  /**
1997
2238
  * Fields in which to search for the `expression`. Use dot notation to specify field path.
1998
2239
  *
1999
2240
  * When empty - all searchable fields are looked at.
2241
+ * @maxLength 200
2242
+ * @maxSize 20
2000
2243
  */
2001
2244
  fields?: string[];
2002
2245
  /** Whether to use fuzzy search - allowing typos and other minor errors in the search. */
@@ -2009,7 +2252,10 @@ export declare enum Mode {
2009
2252
  AND = "AND"
2010
2253
  }
2011
2254
  export interface SearchCategoriesResponse {
2012
- /** List of categories. */
2255
+ /**
2256
+ * List of categories.
2257
+ * @maxSize 1000
2258
+ */
2013
2259
  categories?: Category[];
2014
2260
  /** Paging metadata. */
2015
2261
  pagingMetadata?: CursorPagingMetadata;
@@ -2017,11 +2263,17 @@ export interface SearchCategoriesResponse {
2017
2263
  aggregationData?: AggregationData;
2018
2264
  }
2019
2265
  export interface AggregationData {
2020
- /** key = aggregation name (as derived from search request) */
2266
+ /**
2267
+ * key = aggregation name (as derived from search request)
2268
+ * @maxSize 10000
2269
+ */
2021
2270
  results?: AggregationResults[];
2022
2271
  }
2023
2272
  export interface ValueAggregationResult {
2024
- /** Value of the field */
2273
+ /**
2274
+ * Value of the field
2275
+ * @maxLength 100
2276
+ */
2025
2277
  value?: string;
2026
2278
  /** Count of entities with this value */
2027
2279
  count?: number;
@@ -2041,11 +2293,17 @@ export interface NestedAggregationResults extends NestedAggregationResultsResult
2041
2293
  ranges?: RangeResults;
2042
2294
  /** Scalar aggregation results */
2043
2295
  scalar?: AggregationResultsScalarResult;
2044
- /** User-defined name of aggregation, matches the one provided in request */
2296
+ /**
2297
+ * User-defined name of aggregation, matches the one provided in request
2298
+ * @maxLength 100
2299
+ */
2045
2300
  name?: string;
2046
2301
  /** Type of aggregation that matches result */
2047
2302
  type?: AggregationType;
2048
- /** Field to aggregate by, matches the one provided in request */
2303
+ /**
2304
+ * Field to aggregate by, matches the one provided in request
2305
+ * @maxLength 200
2306
+ */
2049
2307
  fieldPath?: string;
2050
2308
  }
2051
2309
  /** @oneof */
@@ -2058,11 +2316,17 @@ export interface NestedAggregationResultsResultOneOf {
2058
2316
  scalar?: AggregationResultsScalarResult;
2059
2317
  }
2060
2318
  export interface ValueResults {
2061
- /** List of value aggregations */
2319
+ /**
2320
+ * List of value aggregations
2321
+ * @maxSize 250
2322
+ */
2062
2323
  results?: ValueAggregationResult[];
2063
2324
  }
2064
2325
  export interface RangeResults {
2065
- /** List of ranges returned in same order as requested */
2326
+ /**
2327
+ * List of ranges returned in same order as requested
2328
+ * @maxSize 50
2329
+ */
2066
2330
  results?: RangeAggregationResult[];
2067
2331
  }
2068
2332
  export interface AggregationResultsScalarResult {
@@ -2072,13 +2336,19 @@ export interface AggregationResultsScalarResult {
2072
2336
  value?: number;
2073
2337
  }
2074
2338
  export interface NestedValueAggregationResult {
2075
- /** Value of the field */
2339
+ /**
2340
+ * Value of the field
2341
+ * @maxLength 1000
2342
+ */
2076
2343
  value?: string;
2077
2344
  /** Nested aggregations */
2078
2345
  nestedResults?: NestedAggregationResults;
2079
2346
  }
2080
2347
  export interface ValueResult {
2081
- /** Value of the field */
2348
+ /**
2349
+ * Value of the field
2350
+ * @maxLength 1000
2351
+ */
2082
2352
  value?: string;
2083
2353
  /** Count of entities with this value */
2084
2354
  count?: number | null;
@@ -2121,17 +2391,26 @@ export interface Results {
2121
2391
  results?: Record<string, NestedResultValue>;
2122
2392
  }
2123
2393
  export interface DateHistogramResult {
2124
- /** Date in ISO 8601 format */
2394
+ /**
2395
+ * Date in ISO 8601 format
2396
+ * @maxLength 100
2397
+ */
2125
2398
  value?: string;
2126
2399
  /** Count of documents in the bucket */
2127
2400
  count?: number;
2128
2401
  }
2129
2402
  export interface GroupByValueResults {
2130
- /** List of value aggregations */
2403
+ /**
2404
+ * List of value aggregations
2405
+ * @maxSize 1000
2406
+ */
2131
2407
  results?: NestedValueAggregationResult[];
2132
2408
  }
2133
2409
  export interface DateHistogramResults {
2134
- /** List of date histogram aggregations */
2410
+ /**
2411
+ * List of date histogram aggregations
2412
+ * @maxSize 200
2413
+ */
2135
2414
  results?: DateHistogramResult[];
2136
2415
  }
2137
2416
  /**
@@ -2139,7 +2418,10 @@ export interface DateHistogramResults {
2139
2418
  * aggregations in resulting array are keyed by requested aggregation `name`.
2140
2419
  */
2141
2420
  export interface NestedResults {
2142
- /** List of nested aggregations */
2421
+ /**
2422
+ * List of nested aggregations
2423
+ * @maxSize 1000
2424
+ */
2143
2425
  results?: Results[];
2144
2426
  }
2145
2427
  export interface AggregationResults extends AggregationResultsResultOneOf {
@@ -2155,11 +2437,17 @@ export interface AggregationResults extends AggregationResultsResultOneOf {
2155
2437
  dateHistogram?: DateHistogramResults;
2156
2438
  /** Nested aggregation results */
2157
2439
  nested?: NestedResults;
2158
- /** User-defined name of aggregation as derived from search request */
2440
+ /**
2441
+ * User-defined name of aggregation as derived from search request
2442
+ * @maxLength 100
2443
+ */
2159
2444
  name?: string;
2160
2445
  /** Type of aggregation that must match provided kind as derived from search request */
2161
2446
  type?: AggregationType;
2162
- /** Field to aggregate by as derived from search request */
2447
+ /**
2448
+ * Field to aggregate by as derived from search request
2449
+ * @maxLength 200
2450
+ */
2163
2451
  fieldPath?: string;
2164
2452
  }
2165
2453
  /** @oneof */
@@ -2184,7 +2472,10 @@ export interface DeprecatedSearchCategoriesWithOffsetRequest {
2184
2472
  treeReference?: TreeReference;
2185
2473
  /** Whether to return categories with `visible:false`. Default: false so only visible categories will be in response. */
2186
2474
  returnNonVisibleCategories?: boolean;
2187
- /** Fields to include in the response. */
2475
+ /**
2476
+ * Fields to include in the response.
2477
+ * @maxSize 100
2478
+ */
2188
2479
  fields?: RequestedFields[];
2189
2480
  }
2190
2481
  export interface OffsetSearch extends OffsetSearchPagingMethodOneOf {
@@ -2192,9 +2483,15 @@ export interface OffsetSearch extends OffsetSearchPagingMethodOneOf {
2192
2483
  paging?: Paging;
2193
2484
  /** A filter object. Learn more about [API query language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language). */
2194
2485
  filter?: Record<string, any> | null;
2195
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
2486
+ /**
2487
+ * Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
2488
+ * @maxSize 10
2489
+ */
2196
2490
  sort?: Sorting[];
2197
- /** Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. */
2491
+ /**
2492
+ * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.
2493
+ * @maxSize 10
2494
+ */
2198
2495
  aggregations?: Aggregation[];
2199
2496
  /** Free text to match in searchable fields */
2200
2497
  search?: SearchDetails;
@@ -2206,6 +2503,7 @@ export interface OffsetSearch extends OffsetSearchPagingMethodOneOf {
2206
2503
  * Affects all filters and aggregations returned values.
2207
2504
  * You may override this behavior in a specific filter by providing
2208
2505
  * timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
2506
+ * @maxLength 50
2209
2507
  */
2210
2508
  timeZone?: string | null;
2211
2509
  }
@@ -2215,13 +2513,19 @@ export interface OffsetSearchPagingMethodOneOf {
2215
2513
  paging?: Paging;
2216
2514
  }
2217
2515
  export interface Paging {
2218
- /** Number of items to load. */
2516
+ /**
2517
+ * Number of items to load.
2518
+ * @max 1000
2519
+ */
2219
2520
  limit?: number | null;
2220
2521
  /** Number of items to skip in the current sort order. */
2221
2522
  offset?: number | null;
2222
2523
  }
2223
2524
  export interface DeprecatedSearchCategoriesWithOffsetResponse {
2224
- /** Categories which satisfy the provided query. */
2525
+ /**
2526
+ * Categories which satisfy the provided query.
2527
+ * @maxSize 1000
2528
+ */
2225
2529
  categories?: Category[];
2226
2530
  /** Paging metadata. */
2227
2531
  pagingMetadata?: PagingMetadata;
@@ -2261,7 +2565,10 @@ export interface CountCategoriesResponse {
2261
2565
  count?: number;
2262
2566
  }
2263
2567
  export interface MoveCategoryRequest {
2264
- /** ID of the category to move. */
2568
+ /**
2569
+ * ID of the category to move.
2570
+ * @format GUID
2571
+ */
2265
2572
  categoryId: string;
2266
2573
  /** Category tree reference details. */
2267
2574
  treeReference: TreeReference;
@@ -2269,6 +2576,7 @@ export interface MoveCategoryRequest {
2269
2576
  * Parent category ID.
2270
2577
  *
2271
2578
  * Default: root category ID
2579
+ * @format GUID
2272
2580
  */
2273
2581
  parentCategoryId?: string | null;
2274
2582
  /**
@@ -2279,7 +2587,10 @@ export interface MoveCategoryRequest {
2279
2587
  * + `AFTER`: Position the category after the category ID passed in `moveAfterCategoryId`.
2280
2588
  */
2281
2589
  position: Position;
2282
- /** Required when passing `position: AFTER`. */
2590
+ /**
2591
+ * Required when passing `position: AFTER`.
2592
+ * @format GUID
2593
+ */
2283
2594
  moveAfterCategoryId?: string | null;
2284
2595
  }
2285
2596
  export declare enum Position {
@@ -2289,13 +2600,24 @@ export declare enum Position {
2289
2600
  AFTER = "AFTER"
2290
2601
  }
2291
2602
  export interface MoveCategoryResponse {
2292
- /** Parent category ID. */
2603
+ /**
2604
+ * Parent category ID.
2605
+ * @format GUID
2606
+ */
2293
2607
  parentCategoryId?: string | null;
2294
- /** List of category IDs in the new order of arrangement. */
2608
+ /**
2609
+ * List of category IDs in the new order of arrangement.
2610
+ * @format GUID
2611
+ * @maxSize 100
2612
+ */
2295
2613
  categoriesAfterMove?: string[];
2296
2614
  }
2297
2615
  export interface BulkCreateCategoriesRequest {
2298
- /** List of categories to be created. */
2616
+ /**
2617
+ * List of categories to be created.
2618
+ * @minSize 1
2619
+ * @maxSize 100
2620
+ */
2299
2621
  categories?: Category[];
2300
2622
  /** Category tree reference details. */
2301
2623
  treeReference?: TreeReference;
@@ -2305,11 +2627,18 @@ export interface BulkCreateCategoriesRequest {
2305
2627
  * Default: `false`
2306
2628
  */
2307
2629
  returnEntity?: boolean;
2308
- /** Fields to include in the response. */
2630
+ /**
2631
+ * Fields to include in the response.
2632
+ * @maxSize 100
2633
+ */
2309
2634
  fields?: RequestedFields[];
2310
2635
  }
2311
2636
  export interface BulkCreateCategoriesResponse {
2312
- /** Categories created by bulk action. */
2637
+ /**
2638
+ * Categories created by bulk action.
2639
+ * @minSize 1
2640
+ * @maxSize 100
2641
+ */
2313
2642
  results?: BulkCategoriesResult[];
2314
2643
  /** Bulk action metadata. */
2315
2644
  bulkActionMetadata?: BulkActionMetadata;
@@ -2325,7 +2654,10 @@ export interface BulkCategoriesResult {
2325
2654
  category?: Category;
2326
2655
  }
2327
2656
  export interface ItemMetadata {
2328
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
2657
+ /**
2658
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
2659
+ * @format GUID
2660
+ */
2329
2661
  id?: string | null;
2330
2662
  /** Index of the item within the request array. Allows for correlation between request and response items. */
2331
2663
  originalIndex?: number;
@@ -2351,7 +2683,11 @@ export interface BulkActionMetadata {
2351
2683
  undetailedFailures?: number;
2352
2684
  }
2353
2685
  export interface BulkUpdateCategoriesRequest {
2354
- /** List of categories to update. */
2686
+ /**
2687
+ * List of categories to update.
2688
+ * @minSize 1
2689
+ * @maxSize 100
2690
+ */
2355
2691
  categories: MaskedCategory[];
2356
2692
  /** Category tree reference details. */
2357
2693
  treeReference: TreeReference;
@@ -2361,7 +2697,10 @@ export interface BulkUpdateCategoriesRequest {
2361
2697
  * Default: `false`
2362
2698
  */
2363
2699
  returnEntity?: boolean;
2364
- /** Fields to include in the response. */
2700
+ /**
2701
+ * Fields to include in the response.
2702
+ * @maxSize 100
2703
+ */
2365
2704
  fields?: RequestedFields[];
2366
2705
  }
2367
2706
  export interface MaskedCategory {
@@ -2369,13 +2708,20 @@ export interface MaskedCategory {
2369
2708
  category?: Category;
2370
2709
  }
2371
2710
  export interface BulkUpdateCategoriesResponse {
2372
- /** Categories updated by bulk action. */
2711
+ /**
2712
+ * Categories updated by bulk action.
2713
+ * @minSize 1
2714
+ * @maxSize 100
2715
+ */
2373
2716
  results?: BulkCategoriesResult[];
2374
2717
  /** Bulk action metadata. */
2375
2718
  bulkActionMetadata?: BulkActionMetadata;
2376
2719
  }
2377
2720
  export interface UpdateCategoryVisibilityRequest {
2378
- /** Category ID. */
2721
+ /**
2722
+ * Category ID.
2723
+ * @format GUID
2724
+ */
2379
2725
  categoryId: string;
2380
2726
  /**
2381
2727
  * Whether the category is visible to site visitors in dynamic pages.
@@ -2391,7 +2737,10 @@ export interface UpdateCategoryVisibilityRequest {
2391
2737
  * To prevent conflicting changes, the current revision must be passed on update.
2392
2738
  */
2393
2739
  revision: string | null;
2394
- /** Fields to include in the response. */
2740
+ /**
2741
+ * Fields to include in the response.
2742
+ * @maxSize 100
2743
+ */
2395
2744
  fields?: SingleEntityOpsRequestedFields[];
2396
2745
  }
2397
2746
  export interface UpdateCategoryVisibilityResponse {
@@ -2399,7 +2748,12 @@ export interface UpdateCategoryVisibilityResponse {
2399
2748
  category?: Category;
2400
2749
  }
2401
2750
  export interface BulkShowCategoriesRequest {
2402
- /** IDs of the categories to update. */
2751
+ /**
2752
+ * IDs of the categories to update.
2753
+ * @format GUID
2754
+ * @minSize 1
2755
+ * @maxSize 100
2756
+ */
2403
2757
  categoryIds: string[];
2404
2758
  /** Category tree reference details. */
2405
2759
  treeReference: TreeReference;
@@ -2409,11 +2763,18 @@ export interface BulkShowCategoriesRequest {
2409
2763
  * Default: `false`
2410
2764
  */
2411
2765
  returnEntity?: boolean;
2412
- /** Fields to include in the response. */
2766
+ /**
2767
+ * Fields to include in the response.
2768
+ * @maxSize 100
2769
+ */
2413
2770
  fields?: RequestedFields[];
2414
2771
  }
2415
2772
  export interface BulkShowCategoriesResponse {
2416
- /** Categories updated by bulk action. */
2773
+ /**
2774
+ * Categories updated by bulk action.
2775
+ * @minSize 1
2776
+ * @maxSize 100
2777
+ */
2417
2778
  results?: BulkCategoriesResult[];
2418
2779
  /** Bulk action metadata. */
2419
2780
  bulkActionMetadata?: BulkActionMetadata;
@@ -2438,15 +2799,25 @@ export interface BulkUpdateCategoryVisibilityByFilterResponse {
2438
2799
  * Job ID.
2439
2800
  *
2440
2801
  * Pass this ID to [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata..
2802
+ * @format GUID
2441
2803
  */
2442
2804
  jobId?: string;
2443
2805
  }
2444
2806
  export interface BulkDeleteCategoriesRequest {
2445
- /** IDs of categories to be deleted. */
2807
+ /**
2808
+ * IDs of categories to be deleted.
2809
+ * @format GUID
2810
+ * @minSize 1
2811
+ * @maxSize 100
2812
+ */
2446
2813
  categoryIds?: string[];
2447
2814
  }
2448
2815
  export interface BulkDeleteCategoriesResponse {
2449
- /** Categories deleted by bulk action. */
2816
+ /**
2817
+ * Categories deleted by bulk action.
2818
+ * @minSize 1
2819
+ * @maxSize 100
2820
+ */
2450
2821
  results?: BulkDeleteCategoriesResponseBulkCategoriesResult[];
2451
2822
  /** Bulk action metadata. */
2452
2823
  bulkActionMetadata?: BulkActionMetadata;
@@ -2473,19 +2844,31 @@ export interface BulkDeleteCategoriesByFilterResponse {
2473
2844
  * Job ID.
2474
2845
  *
2475
2846
  * Pass this ID to [Get Async Job](https://dev.wix.com/docs/rest/business-management/async-job/introduction) to retrieve job details and metadata..
2847
+ * @format GUID
2476
2848
  */
2477
2849
  jobId?: string;
2478
2850
  }
2479
2851
  export interface BulkAddItemsToCategoryRequest {
2480
- /** Category ID. */
2852
+ /**
2853
+ * Category ID.
2854
+ * @format GUID
2855
+ */
2481
2856
  categoryId: string;
2482
- /** List of items to add. */
2857
+ /**
2858
+ * List of items to add.
2859
+ * @minSize 1
2860
+ * @maxSize 1000
2861
+ */
2483
2862
  items: ItemReference[];
2484
2863
  /** Category tree reference details. */
2485
2864
  treeReference: TreeReference;
2486
2865
  }
2487
2866
  export interface BulkAddItemsToCategoryResponse {
2488
- /** List of items added to a category by bulk action. */
2867
+ /**
2868
+ * List of items added to a category by bulk action.
2869
+ * @minSize 1
2870
+ * @maxSize 100
2871
+ */
2489
2872
  results?: BulkItemsToCategoryResult[];
2490
2873
  /** Bulk action metadata. */
2491
2874
  bulkActionMetadata?: BulkActionMetadata;
@@ -2510,13 +2893,22 @@ export interface ItemReferenceMetadata {
2510
2893
  export interface BulkAddItemToCategoriesRequest {
2511
2894
  /** Item to add. */
2512
2895
  item: ItemReference;
2513
- /** IDs of categories to which to add the item. */
2896
+ /**
2897
+ * IDs of categories to which to add the item.
2898
+ * @format GUID
2899
+ * @minSize 1
2900
+ * @maxSize 100
2901
+ */
2514
2902
  categoryIds: string[];
2515
2903
  /** Category tree reference details. */
2516
2904
  treeReference: TreeReference;
2517
2905
  }
2518
2906
  export interface BulkAddItemToCategoriesResponse {
2519
- /** Items added by bulk action. */
2907
+ /**
2908
+ * Items added by bulk action.
2909
+ * @minSize 1
2910
+ * @maxSize 100
2911
+ */
2520
2912
  results?: BulkItemToCategoriesResult[];
2521
2913
  /** Bulk action metadata. */
2522
2914
  bulkActionMetadata?: BulkActionMetadata;
@@ -2526,15 +2918,26 @@ export interface BulkItemToCategoriesResult {
2526
2918
  itemMetadata?: ItemMetadata;
2527
2919
  }
2528
2920
  export interface BulkRemoveItemsFromCategoryRequest {
2529
- /** Category ID. */
2921
+ /**
2922
+ * Category ID.
2923
+ * @format GUID
2924
+ */
2530
2925
  categoryId: string;
2531
- /** List of items to remove. */
2926
+ /**
2927
+ * List of items to remove.
2928
+ * @minSize 1
2929
+ * @maxSize 100
2930
+ */
2532
2931
  items: ItemReference[];
2533
2932
  /** Category tree reference details. */
2534
2933
  treeReference: TreeReference;
2535
2934
  }
2536
2935
  export interface BulkRemoveItemsFromCategoryResponse {
2537
- /** Items removed by bulk action. */
2936
+ /**
2937
+ * Items removed by bulk action.
2938
+ * @minSize 1
2939
+ * @maxSize 100
2940
+ */
2538
2941
  results?: BulkItemsToCategoryResult[];
2539
2942
  /** Bulk action metadata. */
2540
2943
  bulkActionMetadata?: BulkActionMetadata;
@@ -2542,13 +2945,22 @@ export interface BulkRemoveItemsFromCategoryResponse {
2542
2945
  export interface BulkRemoveItemFromCategoriesRequest {
2543
2946
  /** Item to remove. */
2544
2947
  item: ItemReference;
2545
- /** IDs of categories from which to remove the item. */
2948
+ /**
2949
+ * IDs of categories from which to remove the item.
2950
+ * @format GUID
2951
+ * @minSize 1
2952
+ * @maxSize 100
2953
+ */
2546
2954
  categoryIds: string[];
2547
2955
  /** Category tree reference details. */
2548
2956
  treeReference: TreeReference;
2549
2957
  }
2550
2958
  export interface BulkRemoveItemFromCategoriesResponse {
2551
- /** Items removed by bulk action. */
2959
+ /**
2960
+ * Items removed by bulk action.
2961
+ * @minSize 1
2962
+ * @maxSize 100
2963
+ */
2552
2964
  results?: BulkItemToCategoriesResult[];
2553
2965
  /** Bulk action metadata. */
2554
2966
  bulkActionMetadata?: BulkActionMetadata;
@@ -2560,7 +2972,10 @@ export interface ListItemsInCategoryRequest extends ListItemsInCategoryRequestPa
2560
2972
  * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
2561
2973
  */
2562
2974
  cursorPaging?: CursorPaging;
2563
- /** Category ID. */
2975
+ /**
2976
+ * Category ID.
2977
+ * @format GUID
2978
+ */
2564
2979
  categoryId: string;
2565
2980
  /** Category tree reference details. */
2566
2981
  treeReference: TreeReference;
@@ -2587,7 +3002,10 @@ export interface ListItemsInCategoryRequestPagingMethodOneOf {
2587
3002
  cursorPaging?: CursorPaging;
2588
3003
  }
2589
3004
  export interface ListItemsInCategoryResponse {
2590
- /** List of items in the category. */
3005
+ /**
3006
+ * List of items in the category.
3007
+ * @maxSize 100
3008
+ */
2591
3009
  items?: ItemReference[];
2592
3010
  /** Paging metadata. */
2593
3011
  pagingMetadata?: PagingMetadataV2;
@@ -2609,37 +3027,65 @@ export interface ListCategoriesForItemRequest {
2609
3027
  treeReference: TreeReference;
2610
3028
  }
2611
3029
  export interface ListCategoriesForItemResponse {
2612
- /** List of IDs of categories that directly contain this item. */
3030
+ /**
3031
+ * List of IDs of categories that directly contain this item.
3032
+ * @format GUID
3033
+ * @maxSize 1000
3034
+ */
2613
3035
  directCategoryIds?: string[];
2614
- /** List of IDs of categories that directly contain this item, and their parent category IDs. */
3036
+ /**
3037
+ * List of IDs of categories that directly contain this item, and their parent category IDs.
3038
+ * @format GUID
3039
+ * @maxSize 1000
3040
+ */
2615
3041
  allCategoryIds?: string[];
2616
3042
  }
2617
3043
  export interface ListCategoriesForItemsRequest {
2618
- /** List of Item reference info. */
3044
+ /**
3045
+ * List of Item reference info.
3046
+ * @maxSize 100
3047
+ */
2619
3048
  items: ItemReference[];
2620
3049
  /** Category tree reference details. */
2621
3050
  treeReference: TreeReference;
2622
3051
  }
2623
3052
  export interface ListCategoriesForItemsResponse {
2624
- /** Map of item references to lists of direct category IDs and all category IDs, including parent categories and direct ones. */
3053
+ /**
3054
+ * Map of item references to lists of direct category IDs and all category IDs, including parent categories and direct ones.
3055
+ * @maxSize 100
3056
+ */
2625
3057
  categoriesForItems?: MapItemToCategories[];
2626
3058
  }
2627
3059
  export interface MapItemToCategories {
2628
3060
  /** Item reference info. */
2629
3061
  item?: ItemReference;
2630
- /** List of IDs of categories that directly contain this item. */
3062
+ /**
3063
+ * List of IDs of categories that directly contain this item.
3064
+ * @format GUID
3065
+ * @maxSize 1000
3066
+ */
2631
3067
  directCategoryIds?: string[];
2632
- /** List of IDs of categories that indirectly contain this item, including all ancestors of its direct categories in the hierarchy. */
3068
+ /**
3069
+ * List of IDs of categories that indirectly contain this item, including all ancestors of its direct categories in the hierarchy.
3070
+ * @format GUID
3071
+ * @maxSize 1000
3072
+ */
2633
3073
  indirectCategoryIds?: string[];
2634
3074
  }
2635
3075
  export interface ListTreesRequest {
2636
3076
  }
2637
3077
  export interface ListTreesResponse {
2638
- /** List of trees. */
3078
+ /**
3079
+ * List of trees.
3080
+ * @maxSize 20
3081
+ */
2639
3082
  trees?: TreeReference[];
2640
3083
  }
2641
3084
  export interface MoveItemInCategoryRequest {
2642
- /** Category ID. */
3085
+ /**
3086
+ * Category ID.
3087
+ * @format GUID
3088
+ */
2643
3089
  categoryId?: string;
2644
3090
  /** Category tree reference details. */
2645
3091
  treeReference?: TreeReference;
@@ -2664,29 +3110,47 @@ export declare enum MoveItemInCategoryRequestPosition {
2664
3110
  NONE = "NONE"
2665
3111
  }
2666
3112
  export interface MoveItemInCategoryResponse {
2667
- /** Information about manually arranged items after move. */
3113
+ /**
3114
+ * Information about manually arranged items after move.
3115
+ * @maxSize 100
3116
+ */
2668
3117
  itemsAfterMove?: ItemReference[];
2669
3118
  }
2670
3119
  export interface SetArrangedItemsRequest {
2671
- /** Category ID. */
3120
+ /**
3121
+ * Category ID.
3122
+ * @format GUID
3123
+ */
2672
3124
  categoryId: string;
2673
3125
  /** Category tree reference details. */
2674
3126
  treeReference: TreeReference;
2675
- /** List of items to set. */
3127
+ /**
3128
+ * List of items to set.
3129
+ * @maxSize 100
3130
+ */
2676
3131
  items?: ItemReference[];
2677
3132
  }
2678
3133
  export interface SetArrangedItemsResponse {
2679
- /** List of arranged items. */
3134
+ /**
3135
+ * List of arranged items.
3136
+ * @maxSize 100
3137
+ */
2680
3138
  items?: ItemReference[];
2681
3139
  }
2682
3140
  export interface GetArrangedItemsRequest {
2683
- /** Category ID. */
3141
+ /**
3142
+ * Category ID.
3143
+ * @format GUID
3144
+ */
2684
3145
  categoryId: string;
2685
3146
  /** Category tree reference details. */
2686
3147
  treeReference: TreeReference;
2687
3148
  }
2688
3149
  export interface GetArrangedItemsResponse {
2689
- /** List of arranged items. */
3150
+ /**
3151
+ * List of arranged items.
3152
+ * @maxSize 100
3153
+ */
2690
3154
  items?: ItemReference[];
2691
3155
  }
2692
3156
  export interface GetCategoriesTreeRequest {
@@ -2701,7 +3165,10 @@ export interface GetCategoriesTreeResponse {
2701
3165
  export interface CategoryTreeNode {
2702
3166
  /** Category ID. */
2703
3167
  id?: Uint8Array;
2704
- /** List of subcategories. */
3168
+ /**
3169
+ * List of subcategories.
3170
+ * @maxSize 1000
3171
+ */
2705
3172
  subcategories?: CategoryTreeNode[];
2706
3173
  }
2707
3174
  export interface DomainEvent extends DomainEventBodyOneOf {
@@ -2779,9 +3246,15 @@ export interface ActionEvent {
2779
3246
  export interface Empty {
2780
3247
  }
2781
3248
  export interface MessageEnvelope {
2782
- /** App instance ID. */
3249
+ /**
3250
+ * App instance ID.
3251
+ * @format GUID
3252
+ */
2783
3253
  instanceId?: string | null;
2784
- /** Event type. */
3254
+ /**
3255
+ * Event type.
3256
+ * @maxLength 150
3257
+ */
2785
3258
  eventType?: string;
2786
3259
  /** The identification type and identity data. */
2787
3260
  identity?: IdentificationData;
@@ -2789,26 +3262,50 @@ export interface MessageEnvelope {
2789
3262
  data?: string;
2790
3263
  }
2791
3264
  export interface IdentificationData extends IdentificationDataIdOneOf {
2792
- /** ID of a site visitor that has not logged in to the site. */
3265
+ /**
3266
+ * ID of a site visitor that has not logged in to the site.
3267
+ * @format GUID
3268
+ */
2793
3269
  anonymousVisitorId?: string;
2794
- /** ID of a site visitor that has logged in to the site. */
3270
+ /**
3271
+ * ID of a site visitor that has logged in to the site.
3272
+ * @format GUID
3273
+ */
2795
3274
  memberId?: string;
2796
- /** ID of a Wix user (site owner, contributor, etc.). */
3275
+ /**
3276
+ * ID of a Wix user (site owner, contributor, etc.).
3277
+ * @format GUID
3278
+ */
2797
3279
  wixUserId?: string;
2798
- /** ID of an app. */
3280
+ /**
3281
+ * ID of an app.
3282
+ * @format GUID
3283
+ */
2799
3284
  appId?: string;
2800
3285
  /** @readonly */
2801
3286
  identityType?: WebhookIdentityType;
2802
3287
  }
2803
3288
  /** @oneof */
2804
3289
  export interface IdentificationDataIdOneOf {
2805
- /** ID of a site visitor that has not logged in to the site. */
3290
+ /**
3291
+ * ID of a site visitor that has not logged in to the site.
3292
+ * @format GUID
3293
+ */
2806
3294
  anonymousVisitorId?: string;
2807
- /** ID of a site visitor that has logged in to the site. */
3295
+ /**
3296
+ * ID of a site visitor that has logged in to the site.
3297
+ * @format GUID
3298
+ */
2808
3299
  memberId?: string;
2809
- /** ID of a Wix user (site owner, contributor, etc.). */
3300
+ /**
3301
+ * ID of a Wix user (site owner, contributor, etc.).
3302
+ * @format GUID
3303
+ */
2810
3304
  wixUserId?: string;
2811
- /** ID of an app. */
3305
+ /**
3306
+ * ID of an app.
3307
+ * @format GUID
3308
+ */
2812
3309
  appId?: string;
2813
3310
  }
2814
3311
  export declare enum WebhookIdentityType {