@wix/categories 1.0.22 → 1.0.24
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/cjs/context.d.ts +1 -0
- package/build/cjs/context.js +28 -0
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/categories-v1-category.context.d.ts +20 -0
- package/build/cjs/src/categories-v1-category.context.js +203 -0
- package/build/cjs/src/categories-v1-category.context.js.map +1 -0
- package/build/cjs/src/categories-v1-category.http.js +664 -501
- package/build/cjs/src/categories-v1-category.http.js.map +1 -1
- package/build/cjs/src/categories-v1-category.meta.d.ts +1 -1
- package/build/cjs/src/categories-v1-category.meta.js +5 -1
- package/build/cjs/src/categories-v1-category.meta.js.map +1 -1
- package/build/cjs/src/categories-v1-category.public.d.ts +13 -12
- package/build/cjs/src/categories-v1-category.public.js +9 -1
- package/build/cjs/src/categories-v1-category.public.js.map +1 -1
- package/build/cjs/src/categories-v1-category.types.d.ts +168 -26
- package/build/cjs/src/categories-v1-category.types.js +69 -42
- package/build/cjs/src/categories-v1-category.types.js.map +1 -1
- package/build/cjs/src/categories-v1-category.universal.d.ts +327 -49
- package/build/cjs/src/categories-v1-category.universal.js +374 -155
- package/build/cjs/src/categories-v1-category.universal.js.map +1 -1
- package/build/es/context.d.ts +1 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -0
- package/build/es/src/categories-v1-category.context.d.ts +20 -0
- package/build/es/src/categories-v1-category.context.js +182 -0
- package/build/es/src/categories-v1-category.context.js.map +1 -0
- package/build/es/src/categories-v1-category.http.js +664 -501
- package/build/es/src/categories-v1-category.http.js.map +1 -1
- package/build/es/src/categories-v1-category.meta.d.ts +1 -1
- package/build/es/src/categories-v1-category.public.d.ts +13 -12
- package/build/es/src/categories-v1-category.public.js +1 -0
- package/build/es/src/categories-v1-category.public.js.map +1 -1
- package/build/es/src/categories-v1-category.types.d.ts +168 -26
- package/build/es/src/categories-v1-category.types.js +29 -2
- package/build/es/src/categories-v1-category.types.js.map +1 -1
- package/build/es/src/categories-v1-category.universal.d.ts +327 -49
- package/build/es/src/categories-v1-category.universal.js +328 -113
- package/build/es/src/categories-v1-category.universal.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +12 -6
|
@@ -1372,6 +1372,8 @@ export interface ExtendedFields {
|
|
|
1372
1372
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
1373
1373
|
*
|
|
1374
1374
|
* You can only access fields for which you have the appropriate permissions.
|
|
1375
|
+
*
|
|
1376
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
1375
1377
|
*/
|
|
1376
1378
|
namespaces?: Record<string, Record<string, any>>;
|
|
1377
1379
|
}
|
|
@@ -1526,13 +1528,12 @@ export interface PlatformPaging {
|
|
|
1526
1528
|
offset?: number | null;
|
|
1527
1529
|
}
|
|
1528
1530
|
export interface CursorPaging {
|
|
1529
|
-
/**
|
|
1531
|
+
/** Maximum number of items to return in the results. */
|
|
1530
1532
|
limit?: number | null;
|
|
1531
1533
|
/**
|
|
1532
1534
|
* Pointer to the next or previous page in the list of results.
|
|
1533
1535
|
*
|
|
1534
|
-
*
|
|
1535
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
1536
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1536
1537
|
* Not relevant for the first request.
|
|
1537
1538
|
*/
|
|
1538
1539
|
cursor?: string | null;
|
|
@@ -1550,9 +1551,9 @@ export interface PlatformPagingMetadataV2 {
|
|
|
1550
1551
|
cursors?: Cursors;
|
|
1551
1552
|
}
|
|
1552
1553
|
export interface Cursors {
|
|
1553
|
-
/** Cursor pointing to next page in the list of results. */
|
|
1554
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
1554
1555
|
next?: string | null;
|
|
1555
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
1556
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
1556
1557
|
prev?: string | null;
|
|
1557
1558
|
}
|
|
1558
1559
|
export interface ListCompactCategoriesByIdsRequest {
|
|
@@ -1588,7 +1589,10 @@ export interface SearchCategoriesRequest {
|
|
|
1588
1589
|
fields?: RequestedFields[];
|
|
1589
1590
|
}
|
|
1590
1591
|
export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
1591
|
-
/**
|
|
1592
|
+
/**
|
|
1593
|
+
* Cursor pointing to page of results.
|
|
1594
|
+
* When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
|
|
1595
|
+
*/
|
|
1592
1596
|
cursorPaging?: CursorPaging;
|
|
1593
1597
|
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
1594
1598
|
filter?: Record<string, any> | null;
|
|
@@ -1596,155 +1600,230 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
1596
1600
|
sort?: Sorting[];
|
|
1597
1601
|
/** 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. */
|
|
1598
1602
|
aggregations?: Aggregation[];
|
|
1599
|
-
/**
|
|
1603
|
+
/** Free text to match in searchable fields */
|
|
1600
1604
|
search?: SearchDetails;
|
|
1605
|
+
/**
|
|
1606
|
+
* UTC offset or IANA time zone. Valid values are
|
|
1607
|
+
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1608
|
+
* and IANA time zone IDs, such as Europe/Rome
|
|
1609
|
+
*
|
|
1610
|
+
* Affects all filters and aggregations returned values.
|
|
1611
|
+
* You may override this behavior in a specific filter by providing
|
|
1612
|
+
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
1613
|
+
*/
|
|
1614
|
+
timeZone?: string | null;
|
|
1601
1615
|
}
|
|
1602
1616
|
/** @oneof */
|
|
1603
1617
|
export interface CursorSearchPagingMethodOneOf {
|
|
1604
|
-
/**
|
|
1618
|
+
/**
|
|
1619
|
+
* Cursor pointing to page of results.
|
|
1620
|
+
* When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
|
|
1621
|
+
*/
|
|
1605
1622
|
cursorPaging?: CursorPaging;
|
|
1606
1623
|
}
|
|
1607
1624
|
export interface Aggregation extends AggregationKindOneOf {
|
|
1625
|
+
/** Value aggregation */
|
|
1608
1626
|
value?: ValueAggregation;
|
|
1627
|
+
/** Range aggregation */
|
|
1609
1628
|
range?: RangeAggregation;
|
|
1629
|
+
/** Scalar aggregation */
|
|
1610
1630
|
scalar?: ScalarAggregation;
|
|
1631
|
+
/** Date histogram aggregation */
|
|
1611
1632
|
dateHistogram?: DateHistogramAggregation;
|
|
1633
|
+
/** Nested aggregation */
|
|
1612
1634
|
nested?: NestedAggregation;
|
|
1635
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1613
1636
|
name?: string | null;
|
|
1637
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1614
1638
|
type?: AggregationType;
|
|
1639
|
+
/** Field to aggregate by, use dot notation to specify json path */
|
|
1615
1640
|
fieldPath?: string;
|
|
1641
|
+
/** deprecated, use `nested` instead */
|
|
1616
1642
|
groupBy?: GroupByAggregation;
|
|
1617
1643
|
}
|
|
1618
1644
|
/** @oneof */
|
|
1619
1645
|
export interface AggregationKindOneOf {
|
|
1646
|
+
/** Value aggregation */
|
|
1620
1647
|
value?: ValueAggregation;
|
|
1648
|
+
/** Range aggregation */
|
|
1621
1649
|
range?: RangeAggregation;
|
|
1650
|
+
/** Scalar aggregation */
|
|
1622
1651
|
scalar?: ScalarAggregation;
|
|
1652
|
+
/** Date histogram aggregation */
|
|
1623
1653
|
dateHistogram?: DateHistogramAggregation;
|
|
1654
|
+
/** Nested aggregation */
|
|
1624
1655
|
nested?: NestedAggregation;
|
|
1625
1656
|
}
|
|
1626
1657
|
export interface RangeBucket {
|
|
1627
|
-
/** Inclusive lower bound of the range. Required if to is not given
|
|
1658
|
+
/** Inclusive lower bound of the range. Required if to is not given */
|
|
1628
1659
|
from?: number | null;
|
|
1629
|
-
/** Exclusive upper bound of the range. Required if from is not given
|
|
1660
|
+
/** Exclusive upper bound of the range. Required if from is not given */
|
|
1630
1661
|
to?: number | null;
|
|
1631
1662
|
}
|
|
1632
1663
|
export declare enum SortType {
|
|
1664
|
+
/** Should sort by number of matches */
|
|
1633
1665
|
COUNT = "COUNT",
|
|
1666
|
+
/** Should sort by value of the field alphabetically */
|
|
1634
1667
|
VALUE = "VALUE"
|
|
1635
1668
|
}
|
|
1636
1669
|
export declare enum SortDirection {
|
|
1670
|
+
/** Should sort in descending order */
|
|
1637
1671
|
DESC = "DESC",
|
|
1672
|
+
/** Should sort in ascending order */
|
|
1638
1673
|
ASC = "ASC"
|
|
1639
1674
|
}
|
|
1640
1675
|
export declare enum MissingValues {
|
|
1676
|
+
/** Should missing values be excluded from the aggregation results */
|
|
1641
1677
|
EXCLUDE = "EXCLUDE",
|
|
1678
|
+
/** Should missing values be included in the aggregation results */
|
|
1642
1679
|
INCLUDE = "INCLUDE"
|
|
1643
1680
|
}
|
|
1644
1681
|
export interface IncludeMissingValuesOptions {
|
|
1645
|
-
/**
|
|
1682
|
+
/** Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
1646
1683
|
addToBucket?: string;
|
|
1647
1684
|
}
|
|
1648
1685
|
export declare enum ScalarType {
|
|
1649
1686
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1687
|
+
/** Count of distinct values */
|
|
1650
1688
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
1689
|
+
/** Minimum value */
|
|
1651
1690
|
MIN = "MIN",
|
|
1691
|
+
/** Maximum value */
|
|
1652
1692
|
MAX = "MAX",
|
|
1693
|
+
/** Sum of values */
|
|
1653
1694
|
SUM = "SUM",
|
|
1695
|
+
/** Average of values */
|
|
1654
1696
|
AVG = "AVG"
|
|
1655
1697
|
}
|
|
1656
1698
|
export interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1657
|
-
/**
|
|
1699
|
+
/** Options for including missing values */
|
|
1658
1700
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1701
|
+
/** Should sort by number of matches or value of the field */
|
|
1659
1702
|
sortType?: SortType;
|
|
1703
|
+
/** Should sort in ascending or descending order */
|
|
1660
1704
|
sortDirection?: SortDirection;
|
|
1661
1705
|
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
1662
1706
|
limit?: number | null;
|
|
1663
|
-
/**
|
|
1707
|
+
/** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
1664
1708
|
missingValues?: MissingValues;
|
|
1665
1709
|
}
|
|
1666
1710
|
/** @oneof */
|
|
1667
1711
|
export interface ValueAggregationOptionsOneOf {
|
|
1668
|
-
/**
|
|
1712
|
+
/** Options for including missing values */
|
|
1669
1713
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1670
1714
|
}
|
|
1671
1715
|
export declare enum NestedAggregationType {
|
|
1672
1716
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1717
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1673
1718
|
VALUE = "VALUE",
|
|
1719
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1674
1720
|
RANGE = "RANGE",
|
|
1721
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1675
1722
|
SCALAR = "SCALAR",
|
|
1723
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1676
1724
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1677
1725
|
}
|
|
1678
1726
|
export interface RangeAggregation {
|
|
1727
|
+
/** 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 */
|
|
1679
1728
|
buckets?: RangeBucket[];
|
|
1680
1729
|
}
|
|
1681
1730
|
export interface ScalarAggregation {
|
|
1731
|
+
/** Define the operator for the scalar aggregation */
|
|
1682
1732
|
type?: ScalarType;
|
|
1683
1733
|
}
|
|
1684
1734
|
export interface DateHistogramAggregation {
|
|
1735
|
+
/** Interval for date histogram aggregation */
|
|
1685
1736
|
interval?: Interval;
|
|
1686
1737
|
}
|
|
1687
1738
|
export declare enum Interval {
|
|
1688
1739
|
UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
|
|
1740
|
+
/** Yearly interval */
|
|
1689
1741
|
YEAR = "YEAR",
|
|
1742
|
+
/** Monthly interval */
|
|
1690
1743
|
MONTH = "MONTH",
|
|
1744
|
+
/** Weekly interval */
|
|
1691
1745
|
WEEK = "WEEK",
|
|
1746
|
+
/** Daily interval */
|
|
1692
1747
|
DAY = "DAY",
|
|
1748
|
+
/** Hourly interval */
|
|
1693
1749
|
HOUR = "HOUR",
|
|
1750
|
+
/** Minute interval */
|
|
1694
1751
|
MINUTE = "MINUTE",
|
|
1752
|
+
/** Second interval */
|
|
1695
1753
|
SECOND = "SECOND"
|
|
1696
1754
|
}
|
|
1697
1755
|
export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1756
|
+
/** Value aggregation */
|
|
1698
1757
|
value?: ValueAggregation;
|
|
1758
|
+
/** Range aggregation */
|
|
1699
1759
|
range?: RangeAggregation;
|
|
1760
|
+
/** Scalar aggregation */
|
|
1700
1761
|
scalar?: ScalarAggregation;
|
|
1762
|
+
/** Date histogram aggregation */
|
|
1701
1763
|
dateHistogram?: DateHistogramAggregation;
|
|
1764
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1702
1765
|
name?: string | null;
|
|
1766
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1703
1767
|
type?: NestedAggregationType;
|
|
1768
|
+
/** Field to aggregate by, use dont notation to specify json path */
|
|
1704
1769
|
fieldPath?: string;
|
|
1705
1770
|
}
|
|
1706
1771
|
/** @oneof */
|
|
1707
1772
|
export interface NestedAggregationItemKindOneOf {
|
|
1773
|
+
/** Value aggregation */
|
|
1708
1774
|
value?: ValueAggregation;
|
|
1775
|
+
/** Range aggregation */
|
|
1709
1776
|
range?: RangeAggregation;
|
|
1777
|
+
/** Scalar aggregation */
|
|
1710
1778
|
scalar?: ScalarAggregation;
|
|
1779
|
+
/** Date histogram aggregation */
|
|
1711
1780
|
dateHistogram?: DateHistogramAggregation;
|
|
1712
1781
|
}
|
|
1713
1782
|
export declare enum AggregationType {
|
|
1714
1783
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1784
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1715
1785
|
VALUE = "VALUE",
|
|
1786
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1716
1787
|
RANGE = "RANGE",
|
|
1788
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1717
1789
|
SCALAR = "SCALAR",
|
|
1790
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1718
1791
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1792
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
1719
1793
|
NESTED = "NESTED"
|
|
1720
1794
|
}
|
|
1721
|
-
/**
|
|
1795
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
1722
1796
|
export interface NestedAggregation {
|
|
1797
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
1723
1798
|
nestedAggregations?: NestedAggregationItem[];
|
|
1724
1799
|
}
|
|
1725
1800
|
export interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
1801
|
+
/** Value aggregation configuration */
|
|
1726
1802
|
value?: ValueAggregation;
|
|
1803
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1727
1804
|
name?: string | null;
|
|
1805
|
+
/** Field to aggregate by */
|
|
1728
1806
|
fieldPath?: string;
|
|
1729
1807
|
}
|
|
1730
1808
|
/** @oneof */
|
|
1731
1809
|
export interface GroupByAggregationKindOneOf {
|
|
1810
|
+
/** Value aggregation configuration */
|
|
1732
1811
|
value?: ValueAggregation;
|
|
1733
1812
|
}
|
|
1734
1813
|
export interface SearchDetails {
|
|
1735
|
-
/**
|
|
1814
|
+
/** Defines how separate search terms in `expression` are combined */
|
|
1736
1815
|
mode?: Mode;
|
|
1737
|
-
/**
|
|
1816
|
+
/** Search term or expression */
|
|
1738
1817
|
expression?: string | null;
|
|
1739
|
-
/**
|
|
1818
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
1740
1819
|
fields?: string[];
|
|
1741
|
-
/**
|
|
1820
|
+
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
1742
1821
|
fuzzy?: boolean;
|
|
1743
1822
|
}
|
|
1744
1823
|
export declare enum Mode {
|
|
1745
|
-
/**
|
|
1824
|
+
/** Any of the search terms must be present */
|
|
1746
1825
|
OR = "OR",
|
|
1747
|
-
/**
|
|
1826
|
+
/** All search terms must be present */
|
|
1748
1827
|
AND = "AND"
|
|
1749
1828
|
}
|
|
1750
1829
|
export interface SearchCategoriesResponse {
|
|
@@ -1758,12 +1837,13 @@ export interface SearchCategoriesResponse {
|
|
|
1758
1837
|
export interface CursorPagingMetadata {
|
|
1759
1838
|
/** Number of items returned in the response. */
|
|
1760
1839
|
count?: number | null;
|
|
1761
|
-
/**
|
|
1840
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1762
1841
|
cursors?: Cursors;
|
|
1763
1842
|
/**
|
|
1764
|
-
*
|
|
1765
|
-
*
|
|
1766
|
-
*
|
|
1843
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1844
|
+
*
|
|
1845
|
+
* + `true`: Another page of results can be retrieved.
|
|
1846
|
+
* + `false`: This is the last page.
|
|
1767
1847
|
*/
|
|
1768
1848
|
hasNext?: boolean | null;
|
|
1769
1849
|
}
|
|
@@ -1772,105 +1852,160 @@ export interface AggregationData {
|
|
|
1772
1852
|
results?: AggregationResults[];
|
|
1773
1853
|
}
|
|
1774
1854
|
export interface ValueAggregationResult {
|
|
1855
|
+
/** Value of the field */
|
|
1775
1856
|
value?: string;
|
|
1857
|
+
/** Count of entities with this value */
|
|
1776
1858
|
count?: number;
|
|
1777
1859
|
}
|
|
1778
1860
|
export interface RangeAggregationResult {
|
|
1861
|
+
/** Inclusive lower bound of the range */
|
|
1779
1862
|
from?: number | null;
|
|
1863
|
+
/** Exclusive upper bound of the range */
|
|
1780
1864
|
to?: number | null;
|
|
1865
|
+
/** Count of entities in this range */
|
|
1781
1866
|
count?: number;
|
|
1782
1867
|
}
|
|
1783
1868
|
export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
1869
|
+
/** Value aggregation results */
|
|
1784
1870
|
values?: ValueResults;
|
|
1871
|
+
/** Range aggregation results */
|
|
1785
1872
|
ranges?: RangeResults;
|
|
1873
|
+
/** Scalar aggregation results */
|
|
1786
1874
|
scalar?: ScalarResult;
|
|
1875
|
+
/** User-defined name of aggregation, matches the one provided in request */
|
|
1787
1876
|
name?: string;
|
|
1877
|
+
/** Type of aggregation that matches result */
|
|
1788
1878
|
type?: AggregationType;
|
|
1879
|
+
/** Field to aggregate by, matches the one provided in request */
|
|
1789
1880
|
fieldPath?: string;
|
|
1790
1881
|
}
|
|
1791
1882
|
/** @oneof */
|
|
1792
1883
|
export interface NestedAggregationResultsResultOneOf {
|
|
1884
|
+
/** Value aggregation results */
|
|
1793
1885
|
values?: ValueResults;
|
|
1886
|
+
/** Range aggregation results */
|
|
1794
1887
|
ranges?: RangeResults;
|
|
1888
|
+
/** Scalar aggregation results */
|
|
1795
1889
|
scalar?: ScalarResult;
|
|
1796
1890
|
}
|
|
1797
1891
|
export interface ValueResults {
|
|
1892
|
+
/** List of value aggregations */
|
|
1798
1893
|
results?: ValueAggregationResult[];
|
|
1799
1894
|
}
|
|
1800
1895
|
export interface RangeResults {
|
|
1896
|
+
/** List of ranges returned in same order as requested */
|
|
1801
1897
|
results?: RangeAggregationResult[];
|
|
1802
1898
|
}
|
|
1803
1899
|
export interface ScalarResult {
|
|
1900
|
+
/** Type of scalar aggregation */
|
|
1804
1901
|
type?: ScalarType;
|
|
1902
|
+
/** Value of the scalar aggregation */
|
|
1805
1903
|
value?: number;
|
|
1806
1904
|
}
|
|
1807
1905
|
export interface NestedValueAggregationResult {
|
|
1906
|
+
/** Value of the field */
|
|
1808
1907
|
value?: string;
|
|
1908
|
+
/** Nested aggregations */
|
|
1809
1909
|
nestedResults?: NestedAggregationResults;
|
|
1810
1910
|
}
|
|
1811
1911
|
export interface ValueResult {
|
|
1912
|
+
/** Value of the field */
|
|
1812
1913
|
value?: string;
|
|
1914
|
+
/** Count of entities with this value */
|
|
1813
1915
|
count?: number | null;
|
|
1814
1916
|
}
|
|
1815
1917
|
export interface RangeResult {
|
|
1918
|
+
/** Inclusive lower bound of the range */
|
|
1816
1919
|
from?: number | null;
|
|
1920
|
+
/** Exclusive upper bound of the range */
|
|
1817
1921
|
to?: number | null;
|
|
1922
|
+
/** Count of entities in this range */
|
|
1818
1923
|
count?: number | null;
|
|
1819
1924
|
}
|
|
1820
1925
|
export interface NestedResultsScalarResult {
|
|
1926
|
+
/** Value of the scalar aggregation */
|
|
1821
1927
|
value?: number;
|
|
1822
1928
|
}
|
|
1823
1929
|
export interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1930
|
+
/** Value aggregation result */
|
|
1824
1931
|
value?: ValueResult;
|
|
1932
|
+
/** Range aggregation result */
|
|
1825
1933
|
range?: RangeResult;
|
|
1934
|
+
/** Scalar aggregation result */
|
|
1826
1935
|
scalar?: NestedResultsScalarResult;
|
|
1936
|
+
/** Date histogram aggregation result */
|
|
1827
1937
|
dateHistogram?: ValueResult;
|
|
1828
1938
|
}
|
|
1829
1939
|
/** @oneof */
|
|
1830
1940
|
export interface NestedResultValueResultOneOf {
|
|
1941
|
+
/** Value aggregation result */
|
|
1831
1942
|
value?: ValueResult;
|
|
1943
|
+
/** Range aggregation result */
|
|
1832
1944
|
range?: RangeResult;
|
|
1945
|
+
/** Scalar aggregation result */
|
|
1833
1946
|
scalar?: NestedResultsScalarResult;
|
|
1947
|
+
/** Date histogram aggregation result */
|
|
1834
1948
|
dateHistogram?: ValueResult;
|
|
1835
1949
|
}
|
|
1836
1950
|
export interface Results {
|
|
1951
|
+
/** List of nested aggregations */
|
|
1837
1952
|
results?: Record<string, NestedResultValue>;
|
|
1838
1953
|
}
|
|
1839
1954
|
export interface DateHistogramResult {
|
|
1955
|
+
/** Date in ISO 8601 format */
|
|
1840
1956
|
value?: string;
|
|
1957
|
+
/** Count of documents in the bucket */
|
|
1841
1958
|
count?: number;
|
|
1842
1959
|
}
|
|
1843
1960
|
export interface GroupByValueResults {
|
|
1961
|
+
/** List of value aggregations */
|
|
1844
1962
|
results?: NestedValueAggregationResult[];
|
|
1845
1963
|
}
|
|
1846
1964
|
export interface DateHistogramResults {
|
|
1965
|
+
/** List of date histogram aggregations */
|
|
1847
1966
|
results?: DateHistogramResult[];
|
|
1848
1967
|
}
|
|
1849
1968
|
/**
|
|
1850
|
-
*
|
|
1969
|
+
* Results of `NESTED` aggregation type in a flattened form
|
|
1851
1970
|
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1852
1971
|
*/
|
|
1853
1972
|
export interface NestedResults {
|
|
1973
|
+
/** List of nested aggregations */
|
|
1854
1974
|
results?: Results[];
|
|
1855
1975
|
}
|
|
1856
1976
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1977
|
+
/** Value aggregation results */
|
|
1857
1978
|
values?: ValueResults;
|
|
1979
|
+
/** Range aggregation results */
|
|
1858
1980
|
ranges?: RangeResults;
|
|
1981
|
+
/** Scalar aggregation results */
|
|
1859
1982
|
scalar?: ScalarResult;
|
|
1983
|
+
/** Group by value aggregation results */
|
|
1860
1984
|
groupedByValue?: GroupByValueResults;
|
|
1985
|
+
/** Date histogram aggregation results */
|
|
1861
1986
|
dateHistogram?: DateHistogramResults;
|
|
1987
|
+
/** Nested aggregation results */
|
|
1862
1988
|
nested?: NestedResults;
|
|
1989
|
+
/** User-defined name of aggregation as derived from search request */
|
|
1863
1990
|
name?: string;
|
|
1991
|
+
/** Type of aggregation that must match provided kind as derived from search request */
|
|
1864
1992
|
type?: AggregationType;
|
|
1993
|
+
/** Field to aggregate by as derived from search request */
|
|
1865
1994
|
fieldPath?: string;
|
|
1866
1995
|
}
|
|
1867
1996
|
/** @oneof */
|
|
1868
1997
|
export interface AggregationResultsResultOneOf {
|
|
1998
|
+
/** Value aggregation results */
|
|
1869
1999
|
values?: ValueResults;
|
|
2000
|
+
/** Range aggregation results */
|
|
1870
2001
|
ranges?: RangeResults;
|
|
2002
|
+
/** Scalar aggregation results */
|
|
1871
2003
|
scalar?: ScalarResult;
|
|
2004
|
+
/** Group by value aggregation results */
|
|
1872
2005
|
groupedByValue?: GroupByValueResults;
|
|
2006
|
+
/** Date histogram aggregation results */
|
|
1873
2007
|
dateHistogram?: DateHistogramResults;
|
|
2008
|
+
/** Nested aggregation results */
|
|
1874
2009
|
nested?: NestedResults;
|
|
1875
2010
|
}
|
|
1876
2011
|
export interface DeprecatedSearchCategoriesWithOffsetRequest {
|
|
@@ -2301,6 +2436,11 @@ export interface MoveItemInCategoryResponse {
|
|
|
2301
2436
|
/** Information about manually arranged items after move. */
|
|
2302
2437
|
itemsAfterMove?: ItemReference[];
|
|
2303
2438
|
}
|
|
2439
|
+
export interface ItemsArrangedInCategory {
|
|
2440
|
+
/** Category ID. */
|
|
2441
|
+
categoryId?: string;
|
|
2442
|
+
treeReference?: TreeReference;
|
|
2443
|
+
}
|
|
2304
2444
|
export interface SetArrangedItemsRequest {
|
|
2305
2445
|
/** ID of category. */
|
|
2306
2446
|
categoryId: string;
|
|
@@ -2402,6 +2542,8 @@ export interface EntityUpdatedEvent {
|
|
|
2402
2542
|
currentEntityAsJson?: string;
|
|
2403
2543
|
}
|
|
2404
2544
|
export interface EntityDeletedEvent {
|
|
2545
|
+
/** Entity that was deleted */
|
|
2546
|
+
deletedEntityAsJson?: string | null;
|
|
2405
2547
|
}
|
|
2406
2548
|
export interface ActionEvent {
|
|
2407
2549
|
bodyAsJson?: string;
|