@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
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
verboseLogging: {
|
|
3
|
-
on: () => boolean;
|
|
4
|
-
off: () => boolean;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
1
|
+
import { EventDefinition } from '@wix/sdk-types';
|
|
7
2
|
export interface Category {
|
|
8
3
|
/** Category ID. */
|
|
9
4
|
_id?: string | null;
|
|
@@ -1355,6 +1350,8 @@ export interface ExtendedFields {
|
|
|
1355
1350
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
1356
1351
|
*
|
|
1357
1352
|
* You can only access fields for which you have the appropriate permissions.
|
|
1353
|
+
*
|
|
1354
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
1358
1355
|
*/
|
|
1359
1356
|
namespaces?: Record<string, Record<string, any>>;
|
|
1360
1357
|
}
|
|
@@ -1509,13 +1506,12 @@ export interface PlatformPaging {
|
|
|
1509
1506
|
offset?: number | null;
|
|
1510
1507
|
}
|
|
1511
1508
|
export interface CursorPaging {
|
|
1512
|
-
/**
|
|
1509
|
+
/** Maximum number of items to return in the results. */
|
|
1513
1510
|
limit?: number | null;
|
|
1514
1511
|
/**
|
|
1515
1512
|
* Pointer to the next or previous page in the list of results.
|
|
1516
1513
|
*
|
|
1517
|
-
*
|
|
1518
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
1514
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1519
1515
|
* Not relevant for the first request.
|
|
1520
1516
|
*/
|
|
1521
1517
|
cursor?: string | null;
|
|
@@ -1533,9 +1529,9 @@ export interface PlatformPagingMetadataV2 {
|
|
|
1533
1529
|
cursors?: Cursors;
|
|
1534
1530
|
}
|
|
1535
1531
|
export interface Cursors {
|
|
1536
|
-
/** Cursor pointing to next page in the list of results. */
|
|
1532
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
1537
1533
|
next?: string | null;
|
|
1538
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
1534
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
1539
1535
|
prev?: string | null;
|
|
1540
1536
|
}
|
|
1541
1537
|
export interface ListCompactCategoriesByIdsRequest {
|
|
@@ -1571,7 +1567,10 @@ export interface SearchCategoriesRequest {
|
|
|
1571
1567
|
fields?: RequestedFields[];
|
|
1572
1568
|
}
|
|
1573
1569
|
export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
1574
|
-
/**
|
|
1570
|
+
/**
|
|
1571
|
+
* Cursor pointing to page of results.
|
|
1572
|
+
* When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
|
|
1573
|
+
*/
|
|
1575
1574
|
cursorPaging?: CursorPaging;
|
|
1576
1575
|
/** 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) */
|
|
1577
1576
|
filter?: Record<string, any> | null;
|
|
@@ -1579,155 +1578,230 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
1579
1578
|
sort?: Sorting[];
|
|
1580
1579
|
/** 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. */
|
|
1581
1580
|
aggregations?: Aggregation[];
|
|
1582
|
-
/**
|
|
1581
|
+
/** Free text to match in searchable fields */
|
|
1583
1582
|
search?: SearchDetails;
|
|
1583
|
+
/**
|
|
1584
|
+
* UTC offset or IANA time zone. Valid values are
|
|
1585
|
+
* ISO 8601 UTC offsets, such as +02:00 or -06:00,
|
|
1586
|
+
* and IANA time zone IDs, such as Europe/Rome
|
|
1587
|
+
*
|
|
1588
|
+
* Affects all filters and aggregations returned values.
|
|
1589
|
+
* You may override this behavior in a specific filter by providing
|
|
1590
|
+
* timestamps including time zone. e.g. `"2023-12-20T10:52:34.795Z"`
|
|
1591
|
+
*/
|
|
1592
|
+
timeZone?: string | null;
|
|
1584
1593
|
}
|
|
1585
1594
|
/** @oneof */
|
|
1586
1595
|
export interface CursorSearchPagingMethodOneOf {
|
|
1587
|
-
/**
|
|
1596
|
+
/**
|
|
1597
|
+
* Cursor pointing to page of results.
|
|
1598
|
+
* When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.
|
|
1599
|
+
*/
|
|
1588
1600
|
cursorPaging?: CursorPaging;
|
|
1589
1601
|
}
|
|
1590
1602
|
export interface Aggregation extends AggregationKindOneOf {
|
|
1603
|
+
/** Value aggregation */
|
|
1591
1604
|
value?: ValueAggregation;
|
|
1605
|
+
/** Range aggregation */
|
|
1592
1606
|
range?: RangeAggregation;
|
|
1607
|
+
/** Scalar aggregation */
|
|
1593
1608
|
scalar?: ScalarAggregation;
|
|
1609
|
+
/** Date histogram aggregation */
|
|
1594
1610
|
dateHistogram?: DateHistogramAggregation;
|
|
1611
|
+
/** Nested aggregation */
|
|
1595
1612
|
nested?: NestedAggregation;
|
|
1613
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1596
1614
|
name?: string | null;
|
|
1615
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1597
1616
|
type?: AggregationType;
|
|
1617
|
+
/** Field to aggregate by, use dot notation to specify json path */
|
|
1598
1618
|
fieldPath?: string;
|
|
1619
|
+
/** deprecated, use `nested` instead */
|
|
1599
1620
|
groupBy?: GroupByAggregation;
|
|
1600
1621
|
}
|
|
1601
1622
|
/** @oneof */
|
|
1602
1623
|
export interface AggregationKindOneOf {
|
|
1624
|
+
/** Value aggregation */
|
|
1603
1625
|
value?: ValueAggregation;
|
|
1626
|
+
/** Range aggregation */
|
|
1604
1627
|
range?: RangeAggregation;
|
|
1628
|
+
/** Scalar aggregation */
|
|
1605
1629
|
scalar?: ScalarAggregation;
|
|
1630
|
+
/** Date histogram aggregation */
|
|
1606
1631
|
dateHistogram?: DateHistogramAggregation;
|
|
1632
|
+
/** Nested aggregation */
|
|
1607
1633
|
nested?: NestedAggregation;
|
|
1608
1634
|
}
|
|
1609
1635
|
export interface RangeBucket {
|
|
1610
|
-
/** Inclusive lower bound of the range. Required if to is not given
|
|
1636
|
+
/** Inclusive lower bound of the range. Required if to is not given */
|
|
1611
1637
|
from?: number | null;
|
|
1612
|
-
/** Exclusive upper bound of the range. Required if from is not given
|
|
1638
|
+
/** Exclusive upper bound of the range. Required if from is not given */
|
|
1613
1639
|
to?: number | null;
|
|
1614
1640
|
}
|
|
1615
1641
|
export declare enum SortType {
|
|
1642
|
+
/** Should sort by number of matches */
|
|
1616
1643
|
COUNT = "COUNT",
|
|
1644
|
+
/** Should sort by value of the field alphabetically */
|
|
1617
1645
|
VALUE = "VALUE"
|
|
1618
1646
|
}
|
|
1619
1647
|
export declare enum SortDirection {
|
|
1648
|
+
/** Should sort in descending order */
|
|
1620
1649
|
DESC = "DESC",
|
|
1650
|
+
/** Should sort in ascending order */
|
|
1621
1651
|
ASC = "ASC"
|
|
1622
1652
|
}
|
|
1623
1653
|
export declare enum MissingValues {
|
|
1654
|
+
/** Should missing values be excluded from the aggregation results */
|
|
1624
1655
|
EXCLUDE = "EXCLUDE",
|
|
1656
|
+
/** Should missing values be included in the aggregation results */
|
|
1625
1657
|
INCLUDE = "INCLUDE"
|
|
1626
1658
|
}
|
|
1627
1659
|
export interface IncludeMissingValuesOptions {
|
|
1628
|
-
/**
|
|
1660
|
+
/** Can specify custom bucket name. Defaults are [string -> "N/A"], [int -> "0"], [bool -> "false"] ... */
|
|
1629
1661
|
addToBucket?: string;
|
|
1630
1662
|
}
|
|
1631
1663
|
export declare enum ScalarType {
|
|
1632
1664
|
UNKNOWN_SCALAR_TYPE = "UNKNOWN_SCALAR_TYPE",
|
|
1665
|
+
/** Count of distinct values */
|
|
1633
1666
|
COUNT_DISTINCT = "COUNT_DISTINCT",
|
|
1667
|
+
/** Minimum value */
|
|
1634
1668
|
MIN = "MIN",
|
|
1669
|
+
/** Maximum value */
|
|
1635
1670
|
MAX = "MAX",
|
|
1671
|
+
/** Sum of values */
|
|
1636
1672
|
SUM = "SUM",
|
|
1673
|
+
/** Average of values */
|
|
1637
1674
|
AVG = "AVG"
|
|
1638
1675
|
}
|
|
1639
1676
|
export interface ValueAggregation extends ValueAggregationOptionsOneOf {
|
|
1640
|
-
/**
|
|
1677
|
+
/** Options for including missing values */
|
|
1641
1678
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1679
|
+
/** Should sort by number of matches or value of the field */
|
|
1642
1680
|
sortType?: SortType;
|
|
1681
|
+
/** Should sort in ascending or descending order */
|
|
1643
1682
|
sortDirection?: SortDirection;
|
|
1644
1683
|
/** How many aggregations would you like to return? Can be between 1 and 250. 10 is the default. */
|
|
1645
1684
|
limit?: number | null;
|
|
1646
|
-
/**
|
|
1685
|
+
/** Should missing values be included or excluded from the aggregation results. Default is EXCLUDE */
|
|
1647
1686
|
missingValues?: MissingValues;
|
|
1648
1687
|
}
|
|
1649
1688
|
/** @oneof */
|
|
1650
1689
|
export interface ValueAggregationOptionsOneOf {
|
|
1651
|
-
/**
|
|
1690
|
+
/** Options for including missing values */
|
|
1652
1691
|
includeOptions?: IncludeMissingValuesOptions;
|
|
1653
1692
|
}
|
|
1654
1693
|
export declare enum NestedAggregationType {
|
|
1655
1694
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1695
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1656
1696
|
VALUE = "VALUE",
|
|
1697
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1657
1698
|
RANGE = "RANGE",
|
|
1699
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1658
1700
|
SCALAR = "SCALAR",
|
|
1701
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1659
1702
|
DATE_HISTOGRAM = "DATE_HISTOGRAM"
|
|
1660
1703
|
}
|
|
1661
1704
|
export interface RangeAggregation {
|
|
1705
|
+
/** 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 */
|
|
1662
1706
|
buckets?: RangeBucket[];
|
|
1663
1707
|
}
|
|
1664
1708
|
export interface ScalarAggregation {
|
|
1709
|
+
/** Define the operator for the scalar aggregation */
|
|
1665
1710
|
type?: ScalarType;
|
|
1666
1711
|
}
|
|
1667
1712
|
export interface DateHistogramAggregation {
|
|
1713
|
+
/** Interval for date histogram aggregation */
|
|
1668
1714
|
interval?: Interval;
|
|
1669
1715
|
}
|
|
1670
1716
|
export declare enum Interval {
|
|
1671
1717
|
UNKNOWN_INTERVAL = "UNKNOWN_INTERVAL",
|
|
1718
|
+
/** Yearly interval */
|
|
1672
1719
|
YEAR = "YEAR",
|
|
1720
|
+
/** Monthly interval */
|
|
1673
1721
|
MONTH = "MONTH",
|
|
1722
|
+
/** Weekly interval */
|
|
1674
1723
|
WEEK = "WEEK",
|
|
1724
|
+
/** Daily interval */
|
|
1675
1725
|
DAY = "DAY",
|
|
1726
|
+
/** Hourly interval */
|
|
1676
1727
|
HOUR = "HOUR",
|
|
1728
|
+
/** Minute interval */
|
|
1677
1729
|
MINUTE = "MINUTE",
|
|
1730
|
+
/** Second interval */
|
|
1678
1731
|
SECOND = "SECOND"
|
|
1679
1732
|
}
|
|
1680
1733
|
export interface NestedAggregationItem extends NestedAggregationItemKindOneOf {
|
|
1734
|
+
/** Value aggregation */
|
|
1681
1735
|
value?: ValueAggregation;
|
|
1736
|
+
/** Range aggregation */
|
|
1682
1737
|
range?: RangeAggregation;
|
|
1738
|
+
/** Scalar aggregation */
|
|
1683
1739
|
scalar?: ScalarAggregation;
|
|
1740
|
+
/** Date histogram aggregation */
|
|
1684
1741
|
dateHistogram?: DateHistogramAggregation;
|
|
1742
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1685
1743
|
name?: string | null;
|
|
1744
|
+
/** Type of aggregation, client must provide matching aggregation field below */
|
|
1686
1745
|
type?: NestedAggregationType;
|
|
1746
|
+
/** Field to aggregate by, use dont notation to specify json path */
|
|
1687
1747
|
fieldPath?: string;
|
|
1688
1748
|
}
|
|
1689
1749
|
/** @oneof */
|
|
1690
1750
|
export interface NestedAggregationItemKindOneOf {
|
|
1751
|
+
/** Value aggregation */
|
|
1691
1752
|
value?: ValueAggregation;
|
|
1753
|
+
/** Range aggregation */
|
|
1692
1754
|
range?: RangeAggregation;
|
|
1755
|
+
/** Scalar aggregation */
|
|
1693
1756
|
scalar?: ScalarAggregation;
|
|
1757
|
+
/** Date histogram aggregation */
|
|
1694
1758
|
dateHistogram?: DateHistogramAggregation;
|
|
1695
1759
|
}
|
|
1696
1760
|
export declare enum AggregationType {
|
|
1697
1761
|
UNKNOWN_AGGREGATION_TYPE = "UNKNOWN_AGGREGATION_TYPE",
|
|
1762
|
+
/** An aggregation where result buckets are dynamically built - one per unique value */
|
|
1698
1763
|
VALUE = "VALUE",
|
|
1764
|
+
/** An aggregation, where user can define set of ranges - each representing a bucket */
|
|
1699
1765
|
RANGE = "RANGE",
|
|
1766
|
+
/** A single-value metric aggregation - e.g. min, max, sum, avg */
|
|
1700
1767
|
SCALAR = "SCALAR",
|
|
1768
|
+
/** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */
|
|
1701
1769
|
DATE_HISTOGRAM = "DATE_HISTOGRAM",
|
|
1770
|
+
/** Multi-level aggregation, where each next aggregation is nested within previous one */
|
|
1702
1771
|
NESTED = "NESTED"
|
|
1703
1772
|
}
|
|
1704
|
-
/**
|
|
1773
|
+
/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one */
|
|
1705
1774
|
export interface NestedAggregation {
|
|
1775
|
+
/** Flattened list of aggregations, where each next aggregation is nested within previous one */
|
|
1706
1776
|
nestedAggregations?: NestedAggregationItem[];
|
|
1707
1777
|
}
|
|
1708
1778
|
export interface GroupByAggregation extends GroupByAggregationKindOneOf {
|
|
1779
|
+
/** Value aggregation configuration */
|
|
1709
1780
|
value?: ValueAggregation;
|
|
1781
|
+
/** User-defined name of aggregation, should be unique, will appear in aggregation results */
|
|
1710
1782
|
name?: string | null;
|
|
1783
|
+
/** Field to aggregate by */
|
|
1711
1784
|
fieldPath?: string;
|
|
1712
1785
|
}
|
|
1713
1786
|
/** @oneof */
|
|
1714
1787
|
export interface GroupByAggregationKindOneOf {
|
|
1788
|
+
/** Value aggregation configuration */
|
|
1715
1789
|
value?: ValueAggregation;
|
|
1716
1790
|
}
|
|
1717
1791
|
export interface SearchDetails {
|
|
1718
|
-
/**
|
|
1792
|
+
/** Defines how separate search terms in `expression` are combined */
|
|
1719
1793
|
mode?: Mode;
|
|
1720
|
-
/**
|
|
1794
|
+
/** Search term or expression */
|
|
1721
1795
|
expression?: string | null;
|
|
1722
|
-
/**
|
|
1796
|
+
/** Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path */
|
|
1723
1797
|
fields?: string[];
|
|
1724
|
-
/**
|
|
1798
|
+
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
1725
1799
|
fuzzy?: boolean;
|
|
1726
1800
|
}
|
|
1727
1801
|
export declare enum Mode {
|
|
1728
|
-
/**
|
|
1802
|
+
/** Any of the search terms must be present */
|
|
1729
1803
|
OR = "OR",
|
|
1730
|
-
/**
|
|
1804
|
+
/** All search terms must be present */
|
|
1731
1805
|
AND = "AND"
|
|
1732
1806
|
}
|
|
1733
1807
|
export interface SearchCategoriesResponse {
|
|
@@ -1741,12 +1815,13 @@ export interface SearchCategoriesResponse {
|
|
|
1741
1815
|
export interface CursorPagingMetadata {
|
|
1742
1816
|
/** Number of items returned in the response. */
|
|
1743
1817
|
count?: number | null;
|
|
1744
|
-
/**
|
|
1818
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
1745
1819
|
cursors?: Cursors;
|
|
1746
1820
|
/**
|
|
1747
|
-
*
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1821
|
+
* Whether there are more pages to retrieve following the current page.
|
|
1822
|
+
*
|
|
1823
|
+
* + `true`: Another page of results can be retrieved.
|
|
1824
|
+
* + `false`: This is the last page.
|
|
1750
1825
|
*/
|
|
1751
1826
|
hasNext?: boolean | null;
|
|
1752
1827
|
}
|
|
@@ -1755,105 +1830,160 @@ export interface AggregationData {
|
|
|
1755
1830
|
results?: AggregationResults[];
|
|
1756
1831
|
}
|
|
1757
1832
|
export interface ValueAggregationResult {
|
|
1833
|
+
/** Value of the field */
|
|
1758
1834
|
value?: string;
|
|
1835
|
+
/** Count of entities with this value */
|
|
1759
1836
|
count?: number;
|
|
1760
1837
|
}
|
|
1761
1838
|
export interface RangeAggregationResult {
|
|
1839
|
+
/** Inclusive lower bound of the range */
|
|
1762
1840
|
from?: number | null;
|
|
1841
|
+
/** Exclusive upper bound of the range */
|
|
1763
1842
|
to?: number | null;
|
|
1843
|
+
/** Count of entities in this range */
|
|
1764
1844
|
count?: number;
|
|
1765
1845
|
}
|
|
1766
1846
|
export interface NestedAggregationResults extends NestedAggregationResultsResultOneOf {
|
|
1847
|
+
/** Value aggregation results */
|
|
1767
1848
|
values?: ValueResults;
|
|
1849
|
+
/** Range aggregation results */
|
|
1768
1850
|
ranges?: RangeResults;
|
|
1851
|
+
/** Scalar aggregation results */
|
|
1769
1852
|
scalar?: ScalarResult;
|
|
1853
|
+
/** User-defined name of aggregation, matches the one provided in request */
|
|
1770
1854
|
name?: string;
|
|
1855
|
+
/** Type of aggregation that matches result */
|
|
1771
1856
|
type?: AggregationType;
|
|
1857
|
+
/** Field to aggregate by, matches the one provided in request */
|
|
1772
1858
|
fieldPath?: string;
|
|
1773
1859
|
}
|
|
1774
1860
|
/** @oneof */
|
|
1775
1861
|
export interface NestedAggregationResultsResultOneOf {
|
|
1862
|
+
/** Value aggregation results */
|
|
1776
1863
|
values?: ValueResults;
|
|
1864
|
+
/** Range aggregation results */
|
|
1777
1865
|
ranges?: RangeResults;
|
|
1866
|
+
/** Scalar aggregation results */
|
|
1778
1867
|
scalar?: ScalarResult;
|
|
1779
1868
|
}
|
|
1780
1869
|
export interface ValueResults {
|
|
1870
|
+
/** List of value aggregations */
|
|
1781
1871
|
results?: ValueAggregationResult[];
|
|
1782
1872
|
}
|
|
1783
1873
|
export interface RangeResults {
|
|
1874
|
+
/** List of ranges returned in same order as requested */
|
|
1784
1875
|
results?: RangeAggregationResult[];
|
|
1785
1876
|
}
|
|
1786
1877
|
export interface ScalarResult {
|
|
1878
|
+
/** Type of scalar aggregation */
|
|
1787
1879
|
type?: ScalarType;
|
|
1880
|
+
/** Value of the scalar aggregation */
|
|
1788
1881
|
value?: number;
|
|
1789
1882
|
}
|
|
1790
1883
|
export interface NestedValueAggregationResult {
|
|
1884
|
+
/** Value of the field */
|
|
1791
1885
|
value?: string;
|
|
1886
|
+
/** Nested aggregations */
|
|
1792
1887
|
nestedResults?: NestedAggregationResults;
|
|
1793
1888
|
}
|
|
1794
1889
|
export interface ValueResult {
|
|
1890
|
+
/** Value of the field */
|
|
1795
1891
|
value?: string;
|
|
1892
|
+
/** Count of entities with this value */
|
|
1796
1893
|
count?: number | null;
|
|
1797
1894
|
}
|
|
1798
1895
|
export interface RangeResult {
|
|
1896
|
+
/** Inclusive lower bound of the range */
|
|
1799
1897
|
from?: number | null;
|
|
1898
|
+
/** Exclusive upper bound of the range */
|
|
1800
1899
|
to?: number | null;
|
|
1900
|
+
/** Count of entities in this range */
|
|
1801
1901
|
count?: number | null;
|
|
1802
1902
|
}
|
|
1803
1903
|
export interface NestedResultsScalarResult {
|
|
1904
|
+
/** Value of the scalar aggregation */
|
|
1804
1905
|
value?: number;
|
|
1805
1906
|
}
|
|
1806
1907
|
export interface NestedResultValue extends NestedResultValueResultOneOf {
|
|
1908
|
+
/** Value aggregation result */
|
|
1807
1909
|
value?: ValueResult;
|
|
1910
|
+
/** Range aggregation result */
|
|
1808
1911
|
range?: RangeResult;
|
|
1912
|
+
/** Scalar aggregation result */
|
|
1809
1913
|
scalar?: NestedResultsScalarResult;
|
|
1914
|
+
/** Date histogram aggregation result */
|
|
1810
1915
|
dateHistogram?: ValueResult;
|
|
1811
1916
|
}
|
|
1812
1917
|
/** @oneof */
|
|
1813
1918
|
export interface NestedResultValueResultOneOf {
|
|
1919
|
+
/** Value aggregation result */
|
|
1814
1920
|
value?: ValueResult;
|
|
1921
|
+
/** Range aggregation result */
|
|
1815
1922
|
range?: RangeResult;
|
|
1923
|
+
/** Scalar aggregation result */
|
|
1816
1924
|
scalar?: NestedResultsScalarResult;
|
|
1925
|
+
/** Date histogram aggregation result */
|
|
1817
1926
|
dateHistogram?: ValueResult;
|
|
1818
1927
|
}
|
|
1819
1928
|
export interface Results {
|
|
1929
|
+
/** List of nested aggregations */
|
|
1820
1930
|
results?: Record<string, NestedResultValue>;
|
|
1821
1931
|
}
|
|
1822
1932
|
export interface DateHistogramResult {
|
|
1933
|
+
/** Date in ISO 8601 format */
|
|
1823
1934
|
value?: string;
|
|
1935
|
+
/** Count of documents in the bucket */
|
|
1824
1936
|
count?: number;
|
|
1825
1937
|
}
|
|
1826
1938
|
export interface GroupByValueResults {
|
|
1939
|
+
/** List of value aggregations */
|
|
1827
1940
|
results?: NestedValueAggregationResult[];
|
|
1828
1941
|
}
|
|
1829
1942
|
export interface DateHistogramResults {
|
|
1943
|
+
/** List of date histogram aggregations */
|
|
1830
1944
|
results?: DateHistogramResult[];
|
|
1831
1945
|
}
|
|
1832
1946
|
/**
|
|
1833
|
-
*
|
|
1947
|
+
* Results of `NESTED` aggregation type in a flattened form
|
|
1834
1948
|
* aggregations in resulting array are keyed by requested aggregation `name`.
|
|
1835
1949
|
*/
|
|
1836
1950
|
export interface NestedResults {
|
|
1951
|
+
/** List of nested aggregations */
|
|
1837
1952
|
results?: Results[];
|
|
1838
1953
|
}
|
|
1839
1954
|
export interface AggregationResults extends AggregationResultsResultOneOf {
|
|
1955
|
+
/** Value aggregation results */
|
|
1840
1956
|
values?: ValueResults;
|
|
1957
|
+
/** Range aggregation results */
|
|
1841
1958
|
ranges?: RangeResults;
|
|
1959
|
+
/** Scalar aggregation results */
|
|
1842
1960
|
scalar?: ScalarResult;
|
|
1961
|
+
/** Group by value aggregation results */
|
|
1843
1962
|
groupedByValue?: GroupByValueResults;
|
|
1963
|
+
/** Date histogram aggregation results */
|
|
1844
1964
|
dateHistogram?: DateHistogramResults;
|
|
1965
|
+
/** Nested aggregation results */
|
|
1845
1966
|
nested?: NestedResults;
|
|
1967
|
+
/** User-defined name of aggregation as derived from search request */
|
|
1846
1968
|
name?: string;
|
|
1969
|
+
/** Type of aggregation that must match provided kind as derived from search request */
|
|
1847
1970
|
type?: AggregationType;
|
|
1971
|
+
/** Field to aggregate by as derived from search request */
|
|
1848
1972
|
fieldPath?: string;
|
|
1849
1973
|
}
|
|
1850
1974
|
/** @oneof */
|
|
1851
1975
|
export interface AggregationResultsResultOneOf {
|
|
1976
|
+
/** Value aggregation results */
|
|
1852
1977
|
values?: ValueResults;
|
|
1978
|
+
/** Range aggregation results */
|
|
1853
1979
|
ranges?: RangeResults;
|
|
1980
|
+
/** Scalar aggregation results */
|
|
1854
1981
|
scalar?: ScalarResult;
|
|
1982
|
+
/** Group by value aggregation results */
|
|
1855
1983
|
groupedByValue?: GroupByValueResults;
|
|
1984
|
+
/** Date histogram aggregation results */
|
|
1856
1985
|
dateHistogram?: DateHistogramResults;
|
|
1986
|
+
/** Nested aggregation results */
|
|
1857
1987
|
nested?: NestedResults;
|
|
1858
1988
|
}
|
|
1859
1989
|
export interface DeprecatedSearchCategoriesWithOffsetRequest {
|
|
@@ -2284,6 +2414,11 @@ export interface MoveItemInCategoryResponse {
|
|
|
2284
2414
|
/** Information about manually arranged items after move. */
|
|
2285
2415
|
itemsAfterMove?: ItemReference[];
|
|
2286
2416
|
}
|
|
2417
|
+
export interface ItemsArrangedInCategory {
|
|
2418
|
+
/** Category ID. */
|
|
2419
|
+
categoryId?: string;
|
|
2420
|
+
treeReference?: TreeReference;
|
|
2421
|
+
}
|
|
2287
2422
|
export interface SetArrangedItemsRequest {
|
|
2288
2423
|
/** ID of category. */
|
|
2289
2424
|
categoryId: string;
|
|
@@ -2324,11 +2459,11 @@ export interface CategoryTreeNode {
|
|
|
2324
2459
|
/** A list of child categories. */
|
|
2325
2460
|
subcategories?: CategoryTreeNode[];
|
|
2326
2461
|
}
|
|
2327
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
2328
|
-
createdEvent?: EntityCreatedEvent
|
|
2329
|
-
updatedEvent?: EntityUpdatedEvent
|
|
2330
|
-
deletedEvent?: EntityDeletedEvent
|
|
2331
|
-
actionEvent?: ActionEvent
|
|
2462
|
+
export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
|
|
2463
|
+
createdEvent?: EntityCreatedEvent<T>;
|
|
2464
|
+
updatedEvent?: EntityUpdatedEvent<T>;
|
|
2465
|
+
deletedEvent?: EntityDeletedEvent<T>;
|
|
2466
|
+
actionEvent?: ActionEvent<T>;
|
|
2332
2467
|
/**
|
|
2333
2468
|
* Unique event ID.
|
|
2334
2469
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -2366,28 +2501,38 @@ export interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
2366
2501
|
*/
|
|
2367
2502
|
entityEventSequence?: string | null;
|
|
2368
2503
|
}
|
|
2504
|
+
export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
|
|
2505
|
+
}
|
|
2506
|
+
export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
|
|
2507
|
+
}
|
|
2508
|
+
export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
|
|
2509
|
+
}
|
|
2510
|
+
export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
|
|
2511
|
+
}
|
|
2369
2512
|
/** @oneof */
|
|
2370
|
-
export interface DomainEventBodyOneOf {
|
|
2371
|
-
createdEvent?: EntityCreatedEvent
|
|
2372
|
-
updatedEvent?: EntityUpdatedEvent
|
|
2373
|
-
deletedEvent?: EntityDeletedEvent
|
|
2374
|
-
actionEvent?: ActionEvent
|
|
2513
|
+
export interface DomainEventBodyOneOf<T> {
|
|
2514
|
+
createdEvent?: EntityCreatedEvent<T>;
|
|
2515
|
+
updatedEvent?: EntityUpdatedEvent<T>;
|
|
2516
|
+
deletedEvent?: EntityDeletedEvent<T>;
|
|
2517
|
+
actionEvent?: ActionEvent<T>;
|
|
2375
2518
|
}
|
|
2376
|
-
export interface EntityCreatedEvent {
|
|
2377
|
-
|
|
2519
|
+
export interface EntityCreatedEvent<T> {
|
|
2520
|
+
entity?: T;
|
|
2378
2521
|
}
|
|
2379
|
-
export interface EntityUpdatedEvent {
|
|
2522
|
+
export interface EntityUpdatedEvent<T> {
|
|
2380
2523
|
/**
|
|
2381
2524
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2382
2525
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
2383
2526
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
2384
2527
|
*/
|
|
2385
|
-
|
|
2528
|
+
currentEntity?: T;
|
|
2386
2529
|
}
|
|
2387
|
-
export interface EntityDeletedEvent {
|
|
2530
|
+
export interface EntityDeletedEvent<T> {
|
|
2531
|
+
/** Entity that was deleted */
|
|
2532
|
+
deletedEntity?: T | null;
|
|
2388
2533
|
}
|
|
2389
|
-
export interface ActionEvent {
|
|
2390
|
-
|
|
2534
|
+
export interface ActionEvent<T> {
|
|
2535
|
+
body?: T;
|
|
2391
2536
|
}
|
|
2392
2537
|
export interface Empty {
|
|
2393
2538
|
}
|
|
@@ -5458,6 +5603,13 @@ export interface GetArrangedItemsResponseNonNullableFields {
|
|
|
5458
5603
|
appId: string;
|
|
5459
5604
|
}[];
|
|
5460
5605
|
}
|
|
5606
|
+
export declare const onCategoryCreated: EventDefinition<DomainCreatedEvent<Category>, "wix.categories.v1.category_created">;
|
|
5607
|
+
export declare const onCategoryUpdated: EventDefinition<DomainUpdatedEvent<Category>, "wix.categories.v1.category_updated">;
|
|
5608
|
+
export declare const onCategoryDeleted: EventDefinition<DomainDeletedEvent<Category>, "wix.categories.v1.category_deleted">;
|
|
5609
|
+
export declare const onCategoryMoved: EventDefinition<DomainActionEvent<CategoryMoved>, "wix.categories.v1.category_category_moved">;
|
|
5610
|
+
export declare const onCategoryItemAddedToCategory: EventDefinition<DomainActionEvent<ItemAddedToCategory>, "wix.categories.v1.category_item_added_to_category">;
|
|
5611
|
+
export declare const onCategoryItemRemovedFromCategory: EventDefinition<DomainActionEvent<ItemRemovedFromCategory>, "wix.categories.v1.category_item_removed_from_category">;
|
|
5612
|
+
export declare const onCategoryItemsArrangedInCategory: EventDefinition<DomainActionEvent<ItemsArrangedInCategory>, "wix.categories.v1.category_items_arranged_in_category">;
|
|
5461
5613
|
/**
|
|
5462
5614
|
* Creates a new Category.
|
|
5463
5615
|
* @param category - Category to be created.
|
|
@@ -5468,6 +5620,11 @@ export interface GetArrangedItemsResponseNonNullableFields {
|
|
|
5468
5620
|
* @requiredField category.parentCategory._id
|
|
5469
5621
|
* @requiredField options.treeReference
|
|
5470
5622
|
* @requiredField options.treeReference.appNamespace
|
|
5623
|
+
* @permissionScope Manage Stores - all permissions
|
|
5624
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5625
|
+
* @permissionScope Manage Products
|
|
5626
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5627
|
+
* @applicableIdentity APP
|
|
5471
5628
|
* @returns The created Category.
|
|
5472
5629
|
*/
|
|
5473
5630
|
export declare function createCategory(category: Category, options?: CreateCategoryOptions): Promise<Category & NonNullable<CreateCategoryResponseNonNullableFields>['category']>;
|
|
@@ -5486,6 +5643,17 @@ export interface CreateCategoryOptions {
|
|
|
5486
5643
|
* @requiredField categoryId
|
|
5487
5644
|
* @requiredField treeReference
|
|
5488
5645
|
* @requiredField treeReference.appNamespace
|
|
5646
|
+
* @permissionScope Manage Stores - all permissions
|
|
5647
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5648
|
+
* @permissionScope Manage Products
|
|
5649
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5650
|
+
* @permissionScope Read Stores - all read permissions
|
|
5651
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
5652
|
+
* @permissionScope Read Products
|
|
5653
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
5654
|
+
* @permissionScope Manage Orders
|
|
5655
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
5656
|
+
* @applicableIdentity APP
|
|
5489
5657
|
* @applicableIdentity MEMBER
|
|
5490
5658
|
* @applicableIdentity VISITOR
|
|
5491
5659
|
* @returns The retrieved Category.
|
|
@@ -5507,6 +5675,11 @@ export interface GetCategoryOptions {
|
|
|
5507
5675
|
* @requiredField category.revision
|
|
5508
5676
|
* @requiredField options.treeReference
|
|
5509
5677
|
* @requiredField options.treeReference.appNamespace
|
|
5678
|
+
* @permissionScope Manage Stores - all permissions
|
|
5679
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5680
|
+
* @permissionScope Manage Products
|
|
5681
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5682
|
+
* @applicableIdentity APP
|
|
5510
5683
|
* @returns The updated Category.
|
|
5511
5684
|
*/
|
|
5512
5685
|
export declare function updateCategory(_id: string | null, category: UpdateCategory, options?: UpdateCategoryOptions): Promise<Category & NonNullable<UpdateCategoryResponseNonNullableFields>['category']>;
|
|
@@ -5594,6 +5767,11 @@ export interface UpdateCategoryOptions {
|
|
|
5594
5767
|
* @requiredField categoryId
|
|
5595
5768
|
* @requiredField treeReference
|
|
5596
5769
|
* @requiredField treeReference.appNamespace
|
|
5770
|
+
* @permissionScope Manage Stores - all permissions
|
|
5771
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5772
|
+
* @permissionScope Manage Products
|
|
5773
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5774
|
+
* @applicableIdentity APP
|
|
5597
5775
|
*/
|
|
5598
5776
|
export declare function deleteCategory(categoryId: string, treeReference: TreeReference): Promise<void>;
|
|
5599
5777
|
/**
|
|
@@ -5602,6 +5780,17 @@ export declare function deleteCategory(categoryId: string, treeReference: TreeRe
|
|
|
5602
5780
|
* @documentationMaturity preview
|
|
5603
5781
|
* @requiredField options.treeReference
|
|
5604
5782
|
* @requiredField options.treeReference.appNamespace
|
|
5783
|
+
* @permissionScope Manage Stores - all permissions
|
|
5784
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5785
|
+
* @permissionScope Manage Products
|
|
5786
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5787
|
+
* @permissionScope Read Stores - all read permissions
|
|
5788
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
5789
|
+
* @permissionScope Read Products
|
|
5790
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
5791
|
+
* @permissionScope Manage Orders
|
|
5792
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
5793
|
+
* @applicableIdentity APP
|
|
5605
5794
|
* @applicableIdentity MEMBER
|
|
5606
5795
|
* @applicableIdentity VISITOR
|
|
5607
5796
|
*/
|
|
@@ -5628,6 +5817,17 @@ export interface SearchCategoriesOptions {
|
|
|
5628
5817
|
* @documentationMaturity preview
|
|
5629
5818
|
* @requiredField options.treeReference
|
|
5630
5819
|
* @requiredField options.treeReference.appNamespace
|
|
5820
|
+
* @permissionScope Manage Stores - all permissions
|
|
5821
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5822
|
+
* @permissionScope Manage Products
|
|
5823
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5824
|
+
* @permissionScope Read Stores - all read permissions
|
|
5825
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
5826
|
+
* @permissionScope Read Products
|
|
5827
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
5828
|
+
* @permissionScope Manage Orders
|
|
5829
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
5830
|
+
* @applicableIdentity APP
|
|
5631
5831
|
* @applicableIdentity MEMBER
|
|
5632
5832
|
* @applicableIdentity VISITOR
|
|
5633
5833
|
*/
|
|
@@ -5663,6 +5863,11 @@ export interface CountCategoriesOptions {
|
|
|
5663
5863
|
* @requiredField options.position
|
|
5664
5864
|
* @requiredField treeReference
|
|
5665
5865
|
* @requiredField treeReference.appNamespace
|
|
5866
|
+
* @permissionScope Manage Stores - all permissions
|
|
5867
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5868
|
+
* @permissionScope Manage Products
|
|
5869
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5870
|
+
* @applicableIdentity APP
|
|
5666
5871
|
*/
|
|
5667
5872
|
export declare function moveCategory(categoryId: string, treeReference: TreeReference, options?: MoveCategoryOptions): Promise<MoveCategoryResponse & MoveCategoryResponseNonNullableFields>;
|
|
5668
5873
|
export interface MoveCategoryOptions {
|
|
@@ -5694,6 +5899,11 @@ export interface MoveCategoryOptions {
|
|
|
5694
5899
|
* @requiredField categories.category.revision
|
|
5695
5900
|
* @requiredField options.treeReference
|
|
5696
5901
|
* @requiredField options.treeReference.appNamespace
|
|
5902
|
+
* @permissionScope Manage Stores - all permissions
|
|
5903
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5904
|
+
* @permissionScope Manage Products
|
|
5905
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5906
|
+
* @applicableIdentity APP
|
|
5697
5907
|
*/
|
|
5698
5908
|
export declare function bulkUpdateCategories(categories: MaskedCategory[], options?: BulkUpdateCategoriesOptions): Promise<BulkUpdateCategoriesResponse & BulkUpdateCategoriesResponseNonNullableFields>;
|
|
5699
5909
|
export interface BulkUpdateCategoriesOptions {
|
|
@@ -5712,6 +5922,11 @@ export interface BulkUpdateCategoriesOptions {
|
|
|
5712
5922
|
* @requiredField options.treeReference
|
|
5713
5923
|
* @requiredField options.treeReference.appNamespace
|
|
5714
5924
|
* @requiredField options.visible
|
|
5925
|
+
* @permissionScope Manage Stores - all permissions
|
|
5926
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5927
|
+
* @permissionScope Manage Products
|
|
5928
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5929
|
+
* @applicableIdentity APP
|
|
5715
5930
|
*/
|
|
5716
5931
|
export declare function updateCategoryVisibility(categoryId: string, options?: UpdateCategoryVisibilityOptions): Promise<UpdateCategoryVisibilityResponse & UpdateCategoryVisibilityResponseNonNullableFields>;
|
|
5717
5932
|
export interface UpdateCategoryVisibilityOptions {
|
|
@@ -5737,6 +5952,11 @@ export interface UpdateCategoryVisibilityOptions {
|
|
|
5737
5952
|
* @requiredField options
|
|
5738
5953
|
* @requiredField options.treeReference
|
|
5739
5954
|
* @requiredField options.treeReference.appNamespace
|
|
5955
|
+
* @permissionScope Manage Stores - all permissions
|
|
5956
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5957
|
+
* @permissionScope Manage Products
|
|
5958
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5959
|
+
* @applicableIdentity APP
|
|
5740
5960
|
*/
|
|
5741
5961
|
export declare function bulkAddItemsToCategory(categoryId: string, items: ItemReference[], options: BulkAddItemsToCategoryOptions): Promise<BulkAddItemsToCategoryResponse & BulkAddItemsToCategoryResponseNonNullableFields>;
|
|
5742
5962
|
export interface BulkAddItemsToCategoryOptions {
|
|
@@ -5755,6 +5975,11 @@ export interface BulkAddItemsToCategoryOptions {
|
|
|
5755
5975
|
* @requiredField options.categoryIds
|
|
5756
5976
|
* @requiredField options.treeReference
|
|
5757
5977
|
* @requiredField options.treeReference.appNamespace
|
|
5978
|
+
* @permissionScope Manage Stores - all permissions
|
|
5979
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
5980
|
+
* @permissionScope Manage Products
|
|
5981
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
5982
|
+
* @applicableIdentity APP
|
|
5758
5983
|
*/
|
|
5759
5984
|
export declare function bulkAddItemToCategories(itemReference: ItemReference, options: BulkAddItemToCategoriesOptions): Promise<BulkAddItemToCategoriesResponse & BulkAddItemToCategoriesResponseNonNullableFields>;
|
|
5760
5985
|
export interface BulkAddItemToCategoriesOptions {
|
|
@@ -5776,6 +6001,11 @@ export interface BulkAddItemToCategoriesOptions {
|
|
|
5776
6001
|
* @requiredField options
|
|
5777
6002
|
* @requiredField options.treeReference
|
|
5778
6003
|
* @requiredField options.treeReference.appNamespace
|
|
6004
|
+
* @permissionScope Manage Stores - all permissions
|
|
6005
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6006
|
+
* @permissionScope Manage Products
|
|
6007
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6008
|
+
* @applicableIdentity APP
|
|
5779
6009
|
*/
|
|
5780
6010
|
export declare function bulkRemoveItemsFromCategory(categoryId: string, items: ItemReference[], options: BulkRemoveItemsFromCategoryOptions): Promise<BulkRemoveItemsFromCategoryResponse & BulkRemoveItemsFromCategoryResponseNonNullableFields>;
|
|
5781
6011
|
export interface BulkRemoveItemsFromCategoryOptions {
|
|
@@ -5794,6 +6024,11 @@ export interface BulkRemoveItemsFromCategoryOptions {
|
|
|
5794
6024
|
* @requiredField options.categoryIds
|
|
5795
6025
|
* @requiredField options.treeReference
|
|
5796
6026
|
* @requiredField options.treeReference.appNamespace
|
|
6027
|
+
* @permissionScope Manage Stores - all permissions
|
|
6028
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6029
|
+
* @permissionScope Manage Products
|
|
6030
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6031
|
+
* @applicableIdentity APP
|
|
5797
6032
|
*/
|
|
5798
6033
|
export declare function bulkRemoveItemFromCategories(itemReference: ItemReference, options: BulkRemoveItemFromCategoriesOptions): Promise<BulkRemoveItemFromCategoriesResponse & BulkRemoveItemFromCategoriesResponseNonNullableFields>;
|
|
5799
6034
|
export interface BulkRemoveItemFromCategoriesOptions {
|
|
@@ -5812,6 +6047,17 @@ export interface BulkRemoveItemFromCategoriesOptions {
|
|
|
5812
6047
|
* @requiredField categoryId
|
|
5813
6048
|
* @requiredField treeReference
|
|
5814
6049
|
* @requiredField treeReference.appNamespace
|
|
6050
|
+
* @permissionScope Manage Stores - all permissions
|
|
6051
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6052
|
+
* @permissionScope Manage Products
|
|
6053
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6054
|
+
* @permissionScope Read Stores - all read permissions
|
|
6055
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
6056
|
+
* @permissionScope Read Products
|
|
6057
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
6058
|
+
* @permissionScope Manage Orders
|
|
6059
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
6060
|
+
* @applicableIdentity APP
|
|
5815
6061
|
* @applicableIdentity MEMBER
|
|
5816
6062
|
* @applicableIdentity VISITOR
|
|
5817
6063
|
*/
|
|
@@ -5833,6 +6079,17 @@ export interface ListItemsInCategoryOptions extends ListItemsInCategoryRequestPa
|
|
|
5833
6079
|
* @requiredField options
|
|
5834
6080
|
* @requiredField options.treeReference
|
|
5835
6081
|
* @requiredField options.treeReference.appNamespace
|
|
6082
|
+
* @permissionScope Manage Stores - all permissions
|
|
6083
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6084
|
+
* @permissionScope Manage Products
|
|
6085
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6086
|
+
* @permissionScope Read Stores - all read permissions
|
|
6087
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
6088
|
+
* @permissionScope Read Products
|
|
6089
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
6090
|
+
* @permissionScope Manage Orders
|
|
6091
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
6092
|
+
* @applicableIdentity APP
|
|
5836
6093
|
* @applicableIdentity MEMBER
|
|
5837
6094
|
* @applicableIdentity VISITOR
|
|
5838
6095
|
*/
|
|
@@ -5853,6 +6110,11 @@ export interface ListCategoriesForItemOptions {
|
|
|
5853
6110
|
* @requiredField options.position
|
|
5854
6111
|
* @requiredField treeReference
|
|
5855
6112
|
* @requiredField treeReference.appNamespace
|
|
6113
|
+
* @permissionScope Manage Stores - all permissions
|
|
6114
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6115
|
+
* @permissionScope Manage Products
|
|
6116
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6117
|
+
* @applicableIdentity APP
|
|
5856
6118
|
*/
|
|
5857
6119
|
export declare function moveItemInCategory(categoryId: string, treeReference: TreeReference, options?: MoveItemInCategoryOptions): Promise<MoveItemInCategoryResponse & MoveItemInCategoryResponseNonNullableFields>;
|
|
5858
6120
|
export interface MoveItemInCategoryOptions {
|
|
@@ -5879,6 +6141,11 @@ export interface MoveItemInCategoryOptions {
|
|
|
5879
6141
|
* @requiredField categoryId
|
|
5880
6142
|
* @requiredField treeReference
|
|
5881
6143
|
* @requiredField treeReference.appNamespace
|
|
6144
|
+
* @permissionScope Manage Stores - all permissions
|
|
6145
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6146
|
+
* @permissionScope Manage Products
|
|
6147
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6148
|
+
* @applicableIdentity APP
|
|
5882
6149
|
*/
|
|
5883
6150
|
export declare function setArrangedItems(categoryId: string, treeReference: TreeReference, options?: SetArrangedItemsOptions): Promise<SetArrangedItemsResponse & SetArrangedItemsResponseNonNullableFields>;
|
|
5884
6151
|
export interface SetArrangedItemsOptions {
|
|
@@ -5897,6 +6164,17 @@ export interface SetArrangedItemsOptions {
|
|
|
5897
6164
|
* @requiredField categoryId
|
|
5898
6165
|
* @requiredField treeReference
|
|
5899
6166
|
* @requiredField treeReference.appNamespace
|
|
6167
|
+
* @permissionScope Manage Stores - all permissions
|
|
6168
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
6169
|
+
* @permissionScope Manage Products
|
|
6170
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-PRODUCTS
|
|
6171
|
+
* @permissionScope Read Stores - all read permissions
|
|
6172
|
+
* @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
|
|
6173
|
+
* @permissionScope Read Products
|
|
6174
|
+
* @permissionScopeId SCOPE.DC-STORES.READ-PRODUCTS
|
|
6175
|
+
* @permissionScope Manage Orders
|
|
6176
|
+
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
6177
|
+
* @applicableIdentity APP
|
|
5900
6178
|
* @applicableIdentity MEMBER
|
|
5901
6179
|
* @applicableIdentity VISITOR
|
|
5902
6180
|
*/
|