@asstio-dev/storefront 0.57.0 → 0.58.0
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/README.md +65 -0
- package/dist/analytics/facts.d.ts +2 -1
- package/dist/analytics/facts.js +7 -3
- package/dist/analytics/types.d.ts +3 -1
- package/dist/code-link/index.d.ts +83 -0
- package/dist/code-link/index.js +109 -0
- package/dist/filters.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/listing.d.ts +12 -0
- package/dist/listing.js +19 -0
- package/dist/schema.d.ts +606 -38
- package/dist/seo/head.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -2
- package/src/schema.d.ts +606 -38
package/src/schema.d.ts
CHANGED
|
@@ -329,7 +329,10 @@ export interface paths {
|
|
|
329
329
|
path?: never;
|
|
330
330
|
cookie?: never;
|
|
331
331
|
};
|
|
332
|
-
/**
|
|
332
|
+
/**
|
|
333
|
+
* One collection: itself, its breadcrumb, its children and its product listing (the /products shape).
|
|
334
|
+
* @description Once the catalog has been rebuilt for this release, the price filter uses the regular price; the price sort uses the regular price, and on a sale-aware context the active sale price first. A card's offer, priceFrom and priceTo are the request-time offer, which can be a sale price.
|
|
335
|
+
*/
|
|
333
336
|
get: operations["GetCollection"];
|
|
334
337
|
put?: never;
|
|
335
338
|
post?: never;
|
|
@@ -602,7 +605,10 @@ export interface paths {
|
|
|
602
605
|
path?: never;
|
|
603
606
|
cookie?: never;
|
|
604
607
|
};
|
|
605
|
-
/**
|
|
608
|
+
/**
|
|
609
|
+
* Search and list products with facets. filter[<key>]=a,b for every facet, including price (min-max) and in-stock (true).
|
|
610
|
+
* @description Once the catalog has been rebuilt for this release, the price filter uses the regular price; the price sort uses the regular price, and on a sale-aware context the active sale price first. A card's offer, priceFrom and priceTo are the request-time offer, which can be a sale price.
|
|
611
|
+
*/
|
|
606
612
|
get: operations["ListProducts"];
|
|
607
613
|
put?: never;
|
|
608
614
|
post?: never;
|
|
@@ -922,6 +928,63 @@ export interface paths {
|
|
|
922
928
|
patch?: never;
|
|
923
929
|
trace?: never;
|
|
924
930
|
};
|
|
931
|
+
"/v2/collections/{slugOrId}": {
|
|
932
|
+
parameters: {
|
|
933
|
+
query?: never;
|
|
934
|
+
header?: never;
|
|
935
|
+
path?: never;
|
|
936
|
+
cookie?: never;
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* One collection by its id or its own slug: itself, its breadcrumb, its alternates and its product listing (the /v2/products shape).
|
|
940
|
+
* @description The price filter and the price buckets use the regular price; the price sort uses the regular price, and on a site with item sales the active sale price first. A card's offer, priceFrom and priceTo are the request-time offer, which can be a sale price.
|
|
941
|
+
*/
|
|
942
|
+
get: operations["GetCollectionV2"];
|
|
943
|
+
put?: never;
|
|
944
|
+
post?: never;
|
|
945
|
+
delete?: never;
|
|
946
|
+
options?: never;
|
|
947
|
+
head?: never;
|
|
948
|
+
patch?: never;
|
|
949
|
+
trace?: never;
|
|
950
|
+
};
|
|
951
|
+
"/v2/products": {
|
|
952
|
+
parameters: {
|
|
953
|
+
query?: never;
|
|
954
|
+
header?: never;
|
|
955
|
+
path?: never;
|
|
956
|
+
cookie?: never;
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Search and list products: page/pageSize, include for facets, groups, child collections and card data.
|
|
960
|
+
* @description The price filter and the price buckets use the regular price; the price sort uses the regular price, and on a site with item sales the active sale price first. A card's offer, priceFrom and priceTo are the request-time offer, which can be a sale price.
|
|
961
|
+
*/
|
|
962
|
+
get: operations["ListProductsV2"];
|
|
963
|
+
put?: never;
|
|
964
|
+
post?: never;
|
|
965
|
+
delete?: never;
|
|
966
|
+
options?: never;
|
|
967
|
+
head?: never;
|
|
968
|
+
patch?: never;
|
|
969
|
+
trace?: never;
|
|
970
|
+
};
|
|
971
|
+
"/v2/products/facets/{key}": {
|
|
972
|
+
parameters: {
|
|
973
|
+
query?: never;
|
|
974
|
+
header?: never;
|
|
975
|
+
path?: never;
|
|
976
|
+
cookie?: never;
|
|
977
|
+
};
|
|
978
|
+
/** Values of one facet in a listing's scope: q, collection, filter[...] and group[...] as on /v2/products; match narrows to shown labels; paged with page and pageSize */
|
|
979
|
+
get: operations["SearchFacetValuesV2"];
|
|
980
|
+
put?: never;
|
|
981
|
+
post?: never;
|
|
982
|
+
delete?: never;
|
|
983
|
+
options?: never;
|
|
984
|
+
head?: never;
|
|
985
|
+
patch?: never;
|
|
986
|
+
trace?: never;
|
|
987
|
+
};
|
|
925
988
|
}
|
|
926
989
|
export type webhooks = Record<string, never>;
|
|
927
990
|
export interface components {
|
|
@@ -1322,6 +1385,25 @@ export interface components {
|
|
|
1322
1385
|
scriptUrl: null | string;
|
|
1323
1386
|
token: null | string;
|
|
1324
1387
|
};
|
|
1388
|
+
ChildCollectionDto: {
|
|
1389
|
+
/**
|
|
1390
|
+
* Format: int64
|
|
1391
|
+
* @description The total the child's listing answers for the request's selections (filters, groups, the sale filter); null when unavailable is set or the child was not counted.
|
|
1392
|
+
*/
|
|
1393
|
+
count: number | null;
|
|
1394
|
+
/** @description The child's id: follow the child with this id, on /v2/collections/{id} and as collection=; url is for links. */
|
|
1395
|
+
id: string;
|
|
1396
|
+
/** @description The child's name in the request's language. */
|
|
1397
|
+
name: string;
|
|
1398
|
+
/** @description The child's path from the root (parent slug, then its own). */
|
|
1399
|
+
path: string;
|
|
1400
|
+
/** @description The child's slug in the request's language. */
|
|
1401
|
+
slug: string;
|
|
1402
|
+
/** @description The problem code when the child is refused for this caller (SIGN_IN_REQUIRED, OFFER_ACCESS_REQUIRED, PRICE_QUERY_UNSUPPORTED, STOCK_QUERY_UNSUPPORTED); else null. */
|
|
1403
|
+
unavailable: null | string;
|
|
1404
|
+
/** @description The child's page on this binding, for links. */
|
|
1405
|
+
url: string;
|
|
1406
|
+
};
|
|
1325
1407
|
CollectionCrumbDto: {
|
|
1326
1408
|
id: string;
|
|
1327
1409
|
name: string;
|
|
@@ -1343,6 +1425,12 @@ export interface components {
|
|
|
1343
1425
|
collection: components["schemas"]["CollectionDto"];
|
|
1344
1426
|
listing: components["schemas"]["ListingResponse"];
|
|
1345
1427
|
};
|
|
1428
|
+
CollectionListingV2Response: {
|
|
1429
|
+
alternates: components["schemas"]["AlternateDto"][];
|
|
1430
|
+
breadcrumb: components["schemas"]["CollectionCrumbDto"][];
|
|
1431
|
+
collection: components["schemas"]["CollectionDto"];
|
|
1432
|
+
listing: components["schemas"]["ListingV2Response"];
|
|
1433
|
+
};
|
|
1346
1434
|
CollectionRefDto: {
|
|
1347
1435
|
id: string;
|
|
1348
1436
|
name: string;
|
|
@@ -1474,10 +1562,48 @@ export interface components {
|
|
|
1474
1562
|
type: string;
|
|
1475
1563
|
values: components["schemas"]["FacetValueDto"][];
|
|
1476
1564
|
};
|
|
1565
|
+
FacetGroupDto: {
|
|
1566
|
+
/**
|
|
1567
|
+
* Format: int64
|
|
1568
|
+
* @description The total of the request that follows the group (see groups).
|
|
1569
|
+
*/
|
|
1570
|
+
count: number;
|
|
1571
|
+
/** @description The facet the group belongs to. */
|
|
1572
|
+
facet: string;
|
|
1573
|
+
/** @description The group's key: send it as group[facet]=key. */
|
|
1574
|
+
key: string;
|
|
1575
|
+
/** @description The group's name in the request's language, else English, else its key. */
|
|
1576
|
+
label: string;
|
|
1577
|
+
/** @description True when the request's group[facet] names this group. */
|
|
1578
|
+
selected: boolean;
|
|
1579
|
+
};
|
|
1477
1580
|
FacetLinkDto: {
|
|
1478
1581
|
key: string;
|
|
1479
1582
|
valueKey: string;
|
|
1480
1583
|
};
|
|
1584
|
+
FacetV2Dto: {
|
|
1585
|
+
/** @description Price facet only; null when the shop has no price bands for this currency. */
|
|
1586
|
+
buckets: components["schemas"]["PriceBucketDto"][] | null;
|
|
1587
|
+
collapsed: boolean;
|
|
1588
|
+
help: null | string;
|
|
1589
|
+
key: string;
|
|
1590
|
+
label: string;
|
|
1591
|
+
/** @description How the facet's selected values combine: any (a product with any of them), all (a product with every one of them) or single (one value at a time). Not the match parameter of GET /v2/products/facets/{key}, which is the shopper's search text for value labels. */
|
|
1592
|
+
match: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Format: int32
|
|
1595
|
+
* @description How many values to show first; keep a selected value visible beyond it; null on hierarchy, range and toggle facets.
|
|
1596
|
+
*/
|
|
1597
|
+
maxVisible: number | null;
|
|
1598
|
+
priceBasis: null | components["schemas"]["PriceBasisDto"];
|
|
1599
|
+
range: null | components["schemas"]["RangeDto"];
|
|
1600
|
+
searchable: boolean;
|
|
1601
|
+
/** @description True when the facet has values that are not in values: show a 'show more' that opens GET /v2/products/facets/{key}; a facet with truncated true is listed even with no values. */
|
|
1602
|
+
truncated: boolean;
|
|
1603
|
+
type: string;
|
|
1604
|
+
/** @description Every value this answer counted, in display order, not cut. */
|
|
1605
|
+
values: components["schemas"]["FacetValueDto"][];
|
|
1606
|
+
};
|
|
1481
1607
|
FacetValueDto: {
|
|
1482
1608
|
children: components["schemas"]["FacetValueDto"][] | null;
|
|
1483
1609
|
/** Format: int64 */
|
|
@@ -1493,6 +1619,31 @@ export interface components {
|
|
|
1493
1619
|
facet: string;
|
|
1494
1620
|
values: components["schemas"]["FacetValueDto"][];
|
|
1495
1621
|
};
|
|
1622
|
+
FacetValuesV2Response: {
|
|
1623
|
+
/** @description The facet's key. */
|
|
1624
|
+
facet: string;
|
|
1625
|
+
/**
|
|
1626
|
+
* Format: int32
|
|
1627
|
+
* @description As requested, the default applied.
|
|
1628
|
+
*/
|
|
1629
|
+
page: number;
|
|
1630
|
+
/**
|
|
1631
|
+
* Format: int32
|
|
1632
|
+
* @description As requested, the default applied.
|
|
1633
|
+
*/
|
|
1634
|
+
pageSize: number;
|
|
1635
|
+
/**
|
|
1636
|
+
* Format: int64
|
|
1637
|
+
* @description The number of values after match.
|
|
1638
|
+
*/
|
|
1639
|
+
total: number;
|
|
1640
|
+
/** @description True when the listing's scope holds values this operation does not list on any page; the pages then cover the most common values plus every selected, pinned and positioned one. */
|
|
1641
|
+
truncated: boolean;
|
|
1642
|
+
/** @description The requested page of the facet's values, in display order. */
|
|
1643
|
+
values: components["schemas"]["FacetValueDto"][];
|
|
1644
|
+
/** @description What the request asked that was not honoured, as the listing warns on the same inputs; the rest was answered. */
|
|
1645
|
+
warnings: components["schemas"]["WarningDto"][];
|
|
1646
|
+
};
|
|
1496
1647
|
FavoriteItemAnswerDto: {
|
|
1497
1648
|
item: components["schemas"]["FavoriteItemDto"];
|
|
1498
1649
|
shopper: null | components["schemas"]["ShopperMintDto"];
|
|
@@ -1556,6 +1707,47 @@ export interface components {
|
|
|
1556
1707
|
total: number | string;
|
|
1557
1708
|
warnings: components["schemas"]["WarningDto"][];
|
|
1558
1709
|
};
|
|
1710
|
+
ListingV2Response: {
|
|
1711
|
+
/** @description The selections in effect, as chips: source filter for the request's filters, query for what the search text selected, group for an applied named group (remove it by dropping group[facet]). */
|
|
1712
|
+
appliedFilters: components["schemas"]["AppliedFilterDto"][];
|
|
1713
|
+
/** @description Only with include=childCollections: the listed collection's direct children in the shop's order, each with the count it would answer for the request's selections. count null with unavailable set: refused for this caller; both null: not counted (children past the 50th). Empty with q, without a collection or without children. */
|
|
1714
|
+
childCollections?: components["schemas"]["ChildCollectionDto"][];
|
|
1715
|
+
/** @description The commerce context the answer was built for. */
|
|
1716
|
+
context: components["schemas"]["ContextDto"];
|
|
1717
|
+
/** @description Only with include=facets: the facets of this answer, in display order; [] when every facet is hidden. */
|
|
1718
|
+
facets?: components["schemas"]["FacetV2Dto"][];
|
|
1719
|
+
/** @description Only with include=groups: every named group of the facets this request may filter by, facets in display order, groups in the shop's order, zero counts included. To follow one, send the same request with group[facet]=key and page 1; its total equals count, except when the search's own wording selected a value of that facet: the follow can then match the text differently. */
|
|
1720
|
+
groups?: components["schemas"]["FacetGroupDto"][];
|
|
1721
|
+
/** @description The requested page: positions [(page − 1) · pageSize, page · pageSize) of one sequence, pinned products included. [] with pageSize=0, or past the end. With filter[sale]=true a page can hold fewer than pageSize items without being the last: continue by page, pageSize and total, never by the number of items. */
|
|
1722
|
+
items: components["schemas"]["ProductCardV2Dto"][];
|
|
1723
|
+
/**
|
|
1724
|
+
* Format: int32
|
|
1725
|
+
* @description As requested, the default applied.
|
|
1726
|
+
*/
|
|
1727
|
+
page: number;
|
|
1728
|
+
/**
|
|
1729
|
+
* Format: int32
|
|
1730
|
+
* @description As requested, the default applied.
|
|
1731
|
+
*/
|
|
1732
|
+
pageSize: number;
|
|
1733
|
+
/** @description The tax basis and currency the price filter, the price sort and the price buckets are stated in. scope is matchedVariant when a variant-level selection is in effect (a variant facet value, a group on a variant facet, a product code or the collection's own variant rule): the price filter and the regular price sort then follow the cheapest orderable variant matching it; else product. The in-stock filter and listings of orderable products only leave it product. It is taken from the answer itself, and the price facet carries the same value. */
|
|
1734
|
+
priceBasis: components["schemas"]["PriceBasisDto"];
|
|
1735
|
+
/** @description The query the answer belongs to when the typed one found nothing and a corrected one did; else null. */
|
|
1736
|
+
queryCorrection: null | string;
|
|
1737
|
+
/** @description A collection URL when a search is answered by a collection and following it reproduces the answer: only on page 1 at the default page size, with no filter and no group. Else null. */
|
|
1738
|
+
redirect: null | string;
|
|
1739
|
+
/** @description How a search was answered; null without q. */
|
|
1740
|
+
search: null | components["schemas"]["SearchInfoDto"];
|
|
1741
|
+
/** @description The sort, as on /v1/products. */
|
|
1742
|
+
sort: components["schemas"]["SortDto"];
|
|
1743
|
+
/**
|
|
1744
|
+
* Format: int64
|
|
1745
|
+
* @description The products in the listing, pinned ones included; independent of the page.
|
|
1746
|
+
*/
|
|
1747
|
+
total: number;
|
|
1748
|
+
/** @description What the request asked that was not honoured; the rest was answered. */
|
|
1749
|
+
warnings: components["schemas"]["WarningDto"][];
|
|
1750
|
+
};
|
|
1559
1751
|
LocaleDto: {
|
|
1560
1752
|
tag: string;
|
|
1561
1753
|
};
|
|
@@ -1803,6 +1995,21 @@ export interface components {
|
|
|
1803
1995
|
source: string;
|
|
1804
1996
|
tax: components["schemas"]["DisplayBasisDto"];
|
|
1805
1997
|
};
|
|
1998
|
+
PriceBucketDto: {
|
|
1999
|
+
/**
|
|
2000
|
+
* Format: int64
|
|
2001
|
+
* @description The products in the bucket, whatever range the shopper has selected.
|
|
2002
|
+
*/
|
|
2003
|
+
count: number;
|
|
2004
|
+
/** @description Send this exact value as filter[price] to select the bucket. */
|
|
2005
|
+
filter: string;
|
|
2006
|
+
/** @description The bucket's lower edge, included, as an amount in the currency's exponent; null on the first bucket. */
|
|
2007
|
+
from: null | string;
|
|
2008
|
+
/** @description True when the shopper's price filter is exactly this bucket. */
|
|
2009
|
+
selected: boolean;
|
|
2010
|
+
/** @description The bucket's upper edge, not included; null on the last bucket. */
|
|
2011
|
+
toExclusive: null | string;
|
|
2012
|
+
};
|
|
1806
2013
|
PriceClaimDto: {
|
|
1807
2014
|
amountOff: components["schemas"]["PricePairDto"];
|
|
1808
2015
|
/** Format: date-time */
|
|
@@ -1866,6 +2073,43 @@ export interface components {
|
|
|
1866
2073
|
variantCount?: number | null | string;
|
|
1867
2074
|
variants?: components["schemas"]["CardVariantDto"][] | null;
|
|
1868
2075
|
};
|
|
2076
|
+
ProductCardV2Dto: {
|
|
2077
|
+
/** @description The product's brand, or null. */
|
|
2078
|
+
brand: null | components["schemas"]["BrandDto"];
|
|
2079
|
+
/** @description The product's categories, named in the request's language; always an array, in no meaningful order. */
|
|
2080
|
+
categories: components["schemas"]["CategoryRefDto"][];
|
|
2081
|
+
/** @description The product's id. */
|
|
2082
|
+
id: string;
|
|
2083
|
+
/** @description The product's display image, or null. */
|
|
2084
|
+
image: null | components["schemas"]["MediaDescriptorDto"];
|
|
2085
|
+
/** @description With include=matchedVariant and a variant-level condition in effect (a variant facet value or group, the in-stock filter, or listings of orderable products only): the cheapest variant that can be ordered and matches every variant filter, by regular price; its offer is the request-time offer, which can be a sale price. */
|
|
2086
|
+
matchedVariant?: components["schemas"]["CardVariantDto"];
|
|
2087
|
+
/** @description The product's name in the request's language. */
|
|
2088
|
+
name: string;
|
|
2089
|
+
/** @description The card's offer in the request's context, priced at request time: it can show a sale price. */
|
|
2090
|
+
offer: components["schemas"]["OfferDto"];
|
|
2091
|
+
/** @description Preview keys only: why the card stands where it does (reason pinned, keepVisible or base). Absent otherwise. */
|
|
2092
|
+
placement?: components["schemas"]["PlacementDto"];
|
|
2093
|
+
/** @description The lowest price on priceBasis.tax, one variant's whole pair; null when the offer shows no price. */
|
|
2094
|
+
priceFrom: null | components["schemas"]["PriceFromDto"];
|
|
2095
|
+
/** @description The highest price on priceBasis.tax, one variant's whole pair; null when the offer shows no price. Render "from" when priceFrom and priceTo differ. */
|
|
2096
|
+
priceTo: null | components["schemas"]["PriceFromDto"];
|
|
2097
|
+
/** @description The one category to use for analytics and breadcrumbs, or null. */
|
|
2098
|
+
primaryCategory: null | components["schemas"]["CategoryRefDto"];
|
|
2099
|
+
/** @description The product's article number. */
|
|
2100
|
+
sku: string;
|
|
2101
|
+
/** @description The product's slug in the request's language. */
|
|
2102
|
+
slug: string;
|
|
2103
|
+
/** @description The product page's URL on the request's binding. */
|
|
2104
|
+
url: string;
|
|
2105
|
+
/**
|
|
2106
|
+
* Format: int32
|
|
2107
|
+
* @description With include=variants: all visible variants; larger than variants' length when the list was cut.
|
|
2108
|
+
*/
|
|
2109
|
+
variantCount?: number;
|
|
2110
|
+
/** @description With include=variants: the variants visible here, by position, at most the site's card variant count (default 12). */
|
|
2111
|
+
variants?: components["schemas"]["CardVariantDto"][];
|
|
2112
|
+
};
|
|
1869
2113
|
ProductDto: {
|
|
1870
2114
|
alternates: components["schemas"]["AlternateDto"][];
|
|
1871
2115
|
attributes: components["schemas"]["AttributeDto"][];
|
|
@@ -2863,7 +3107,7 @@ export interface operations {
|
|
|
2863
3107
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2864
3108
|
};
|
|
2865
3109
|
};
|
|
2866
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
3110
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
2867
3111
|
401: {
|
|
2868
3112
|
headers: {
|
|
2869
3113
|
[name: string]: unknown;
|
|
@@ -2872,7 +3116,7 @@ export interface operations {
|
|
|
2872
3116
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2873
3117
|
};
|
|
2874
3118
|
};
|
|
2875
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
3119
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
2876
3120
|
403: {
|
|
2877
3121
|
headers: {
|
|
2878
3122
|
[name: string]: unknown;
|
|
@@ -2899,7 +3143,7 @@ export interface operations {
|
|
|
2899
3143
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2900
3144
|
};
|
|
2901
3145
|
};
|
|
2902
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
3146
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
2903
3147
|
503: {
|
|
2904
3148
|
headers: {
|
|
2905
3149
|
[name: string]: unknown;
|
|
@@ -2950,7 +3194,7 @@ export interface operations {
|
|
|
2950
3194
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2951
3195
|
};
|
|
2952
3196
|
};
|
|
2953
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
3197
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
2954
3198
|
401: {
|
|
2955
3199
|
headers: {
|
|
2956
3200
|
[name: string]: unknown;
|
|
@@ -2959,7 +3203,7 @@ export interface operations {
|
|
|
2959
3203
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2960
3204
|
};
|
|
2961
3205
|
};
|
|
2962
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
3206
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
2963
3207
|
403: {
|
|
2964
3208
|
headers: {
|
|
2965
3209
|
[name: string]: unknown;
|
|
@@ -2986,7 +3230,7 @@ export interface operations {
|
|
|
2986
3230
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
2987
3231
|
};
|
|
2988
3232
|
};
|
|
2989
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
3233
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
2990
3234
|
503: {
|
|
2991
3235
|
headers: {
|
|
2992
3236
|
[name: string]: unknown;
|
|
@@ -3991,7 +4235,7 @@ export interface operations {
|
|
|
3991
4235
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
3992
4236
|
};
|
|
3993
4237
|
};
|
|
3994
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
4238
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
3995
4239
|
401: {
|
|
3996
4240
|
headers: {
|
|
3997
4241
|
[name: string]: unknown;
|
|
@@ -4000,7 +4244,7 @@ export interface operations {
|
|
|
4000
4244
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4001
4245
|
};
|
|
4002
4246
|
};
|
|
4003
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
4247
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
4004
4248
|
403: {
|
|
4005
4249
|
headers: {
|
|
4006
4250
|
[name: string]: unknown;
|
|
@@ -4027,7 +4271,7 @@ export interface operations {
|
|
|
4027
4271
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4028
4272
|
};
|
|
4029
4273
|
};
|
|
4030
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4274
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
4031
4275
|
503: {
|
|
4032
4276
|
headers: {
|
|
4033
4277
|
[name: string]: unknown;
|
|
@@ -4585,7 +4829,7 @@ export interface operations {
|
|
|
4585
4829
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4586
4830
|
};
|
|
4587
4831
|
};
|
|
4588
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4832
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
4589
4833
|
503: {
|
|
4590
4834
|
headers: {
|
|
4591
4835
|
[name: string]: unknown;
|
|
@@ -4613,9 +4857,9 @@ export interface operations {
|
|
|
4613
4857
|
};
|
|
4614
4858
|
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
4615
4859
|
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
4616
|
-
/** @description Comma list of what the cards carry beyond the product: variants (
|
|
4860
|
+
/** @description Comma list of what the cards carry beyond the product: variants (the card's variants visible here, at most the shop's card variant count (default 12), by position, with variantCount) and matchedVariant (with a variant-level condition in effect (a variant facet value, the in-stock filter, or listings of orderable products only): the representative variant, priced at request time, and matchedVariantCount (null when it is not counted)). Unknown members are ignored with an INCLUDE_UNKNOWN warning. */
|
|
4617
4861
|
include?: string;
|
|
4618
|
-
/** @description
|
|
4862
|
+
/** @description Once the catalog has been rebuilt for this release, priceScope no longer changes which price the price filter and the price sort use: they use the regular price of the cheapest orderable variant that matches every variant-level filter, or of the product's cheapest orderable variant when no variant-level filter is in effect; a product with no orderable priced variant has no price here, so it sorts last and matches no price filter. On a sale-aware context the price sort puts the sale price first. matchedVariant still asks for the matched variant, as include=matchedVariant does, and priceBasis.scope then says matchedVariant when a variant-level filter narrowed the price, else product. While a catalog is still being rebuilt, matchedVariant keeps its earlier meaning: with a variant-level filter, when the context's variant offers are indexed and its display basis can be queried, the price filter and sort follow the matched variant, except on a sale-aware context, where it does not change the price filter and sort (it still asks for the matched variant). Not on /v2. Anything else is ignored with a PRICE_SCOPE_UNKNOWN warning. */
|
|
4619
4863
|
priceScope?: "matchedVariant" | "product";
|
|
4620
4864
|
};
|
|
4621
4865
|
header: {
|
|
@@ -4646,7 +4890,7 @@ export interface operations {
|
|
|
4646
4890
|
"application/json": components["schemas"]["CollectionListingResponse"];
|
|
4647
4891
|
};
|
|
4648
4892
|
};
|
|
4649
|
-
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
|
|
4893
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
4650
4894
|
400: {
|
|
4651
4895
|
headers: {
|
|
4652
4896
|
[name: string]: unknown;
|
|
@@ -4655,7 +4899,7 @@ export interface operations {
|
|
|
4655
4899
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4656
4900
|
};
|
|
4657
4901
|
};
|
|
4658
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
4902
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
4659
4903
|
401: {
|
|
4660
4904
|
headers: {
|
|
4661
4905
|
[name: string]: unknown;
|
|
@@ -4664,7 +4908,7 @@ export interface operations {
|
|
|
4664
4908
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4665
4909
|
};
|
|
4666
4910
|
};
|
|
4667
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
4911
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
4668
4912
|
403: {
|
|
4669
4913
|
headers: {
|
|
4670
4914
|
[name: string]: unknown;
|
|
@@ -4691,7 +4935,7 @@ export interface operations {
|
|
|
4691
4935
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4692
4936
|
};
|
|
4693
4937
|
};
|
|
4694
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
4938
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
4695
4939
|
503: {
|
|
4696
4940
|
headers: {
|
|
4697
4941
|
[name: string]: unknown;
|
|
@@ -4865,7 +5109,7 @@ export interface operations {
|
|
|
4865
5109
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
4866
5110
|
};
|
|
4867
5111
|
};
|
|
4868
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
5112
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
4869
5113
|
503: {
|
|
4870
5114
|
headers: {
|
|
4871
5115
|
[name: string]: unknown;
|
|
@@ -6327,9 +6571,9 @@ export interface operations {
|
|
|
6327
6571
|
};
|
|
6328
6572
|
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
6329
6573
|
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
6330
|
-
/** @description Comma list of what the cards carry beyond the product: variants (
|
|
6574
|
+
/** @description Comma list of what the cards carry beyond the product: variants (the card's variants visible here, at most the shop's card variant count (default 12), by position, with variantCount) and matchedVariant (with a variant-level condition in effect (a variant facet value, the in-stock filter, or listings of orderable products only): the representative variant, priced at request time, and matchedVariantCount (null when it is not counted)). Unknown members are ignored with an INCLUDE_UNKNOWN warning. */
|
|
6331
6575
|
include?: string;
|
|
6332
|
-
/** @description
|
|
6576
|
+
/** @description Once the catalog has been rebuilt for this release, priceScope no longer changes which price the price filter and the price sort use: they use the regular price of the cheapest orderable variant that matches every variant-level filter, or of the product's cheapest orderable variant when no variant-level filter is in effect; a product with no orderable priced variant has no price here, so it sorts last and matches no price filter. On a sale-aware context the price sort puts the sale price first. matchedVariant still asks for the matched variant, as include=matchedVariant does, and priceBasis.scope then says matchedVariant when a variant-level filter narrowed the price, else product. While a catalog is still being rebuilt, matchedVariant keeps its earlier meaning: with a variant-level filter, when the context's variant offers are indexed and its display basis can be queried, the price filter and sort follow the matched variant, except on a sale-aware context, where it does not change the price filter and sort (it still asks for the matched variant). Not on /v2. Anything else is ignored with a PRICE_SCOPE_UNKNOWN warning. */
|
|
6333
6577
|
priceScope?: "matchedVariant" | "product";
|
|
6334
6578
|
/** @description Narrow to a collection by slug path or id. An unknown one is answered with a COLLECTION_UNKNOWN warning, not a 404. */
|
|
6335
6579
|
collection?: string;
|
|
@@ -6360,7 +6604,7 @@ export interface operations {
|
|
|
6360
6604
|
"application/json": components["schemas"]["ListingResponse"];
|
|
6361
6605
|
};
|
|
6362
6606
|
};
|
|
6363
|
-
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper). */
|
|
6607
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
6364
6608
|
400: {
|
|
6365
6609
|
headers: {
|
|
6366
6610
|
[name: string]: unknown;
|
|
@@ -6369,7 +6613,7 @@ export interface operations {
|
|
|
6369
6613
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6370
6614
|
};
|
|
6371
6615
|
};
|
|
6372
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
6616
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
6373
6617
|
401: {
|
|
6374
6618
|
headers: {
|
|
6375
6619
|
[name: string]: unknown;
|
|
@@ -6378,7 +6622,7 @@ export interface operations {
|
|
|
6378
6622
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6379
6623
|
};
|
|
6380
6624
|
};
|
|
6381
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
6625
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
6382
6626
|
403: {
|
|
6383
6627
|
headers: {
|
|
6384
6628
|
[name: string]: unknown;
|
|
@@ -6405,7 +6649,7 @@ export interface operations {
|
|
|
6405
6649
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6406
6650
|
};
|
|
6407
6651
|
};
|
|
6408
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
6652
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6409
6653
|
503: {
|
|
6410
6654
|
headers: {
|
|
6411
6655
|
[name: string]: unknown;
|
|
@@ -6492,7 +6736,7 @@ export interface operations {
|
|
|
6492
6736
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6493
6737
|
};
|
|
6494
6738
|
};
|
|
6495
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
6739
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6496
6740
|
503: {
|
|
6497
6741
|
headers: {
|
|
6498
6742
|
[name: string]: unknown;
|
|
@@ -6512,7 +6756,7 @@ export interface operations {
|
|
|
6512
6756
|
filter?: {
|
|
6513
6757
|
[key: string]: string;
|
|
6514
6758
|
};
|
|
6515
|
-
/** @description The price
|
|
6759
|
+
/** @description The price filter in the context uses the regular price of the cheapest orderable variant matching every variant-level filter (a product with none matches no price filter); while a catalog is still being rebuilt, matchedVariant makes it follow the matched variant as before, when the context's variant offers are indexed and its display basis can be queried, except on a sale-aware context. */
|
|
6516
6760
|
priceScope?: "matchedVariant" | "product";
|
|
6517
6761
|
};
|
|
6518
6762
|
header: {
|
|
@@ -6543,7 +6787,7 @@ export interface operations {
|
|
|
6543
6787
|
"application/json": components["schemas"]["FacetValuesResponse"];
|
|
6544
6788
|
};
|
|
6545
6789
|
};
|
|
6546
|
-
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_QUERY (q present but blank, or longer than 100 characters), FACET_NOT_SEARCHABLE (the facet exists but has no list of values to search in: a range, a toggle or a tree),
|
|
6790
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; INVALID_QUERY (q present but blank, or longer than 100 characters), FACET_NOT_SEARCHABLE (the facet exists but has no list of values to search in: a range, a toggle or a tree), PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
6547
6791
|
400: {
|
|
6548
6792
|
headers: {
|
|
6549
6793
|
[name: string]: unknown;
|
|
@@ -6552,7 +6796,7 @@ export interface operations {
|
|
|
6552
6796
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6553
6797
|
};
|
|
6554
6798
|
};
|
|
6555
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
6799
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
6556
6800
|
401: {
|
|
6557
6801
|
headers: {
|
|
6558
6802
|
[name: string]: unknown;
|
|
@@ -6561,7 +6805,7 @@ export interface operations {
|
|
|
6561
6805
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6562
6806
|
};
|
|
6563
6807
|
};
|
|
6564
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
6808
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
6565
6809
|
403: {
|
|
6566
6810
|
headers: {
|
|
6567
6811
|
[name: string]: unknown;
|
|
@@ -6588,7 +6832,7 @@ export interface operations {
|
|
|
6588
6832
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6589
6833
|
};
|
|
6590
6834
|
};
|
|
6591
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
6835
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6592
6836
|
503: {
|
|
6593
6837
|
headers: {
|
|
6594
6838
|
[name: string]: unknown;
|
|
@@ -6678,7 +6922,7 @@ export interface operations {
|
|
|
6678
6922
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6679
6923
|
};
|
|
6680
6924
|
};
|
|
6681
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
6925
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6682
6926
|
503: {
|
|
6683
6927
|
headers: {
|
|
6684
6928
|
[name: string]: unknown;
|
|
@@ -6774,7 +7018,7 @@ export interface operations {
|
|
|
6774
7018
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6775
7019
|
};
|
|
6776
7020
|
};
|
|
6777
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
7021
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6778
7022
|
503: {
|
|
6779
7023
|
headers: {
|
|
6780
7024
|
[name: string]: unknown;
|
|
@@ -6826,7 +7070,7 @@ export interface operations {
|
|
|
6826
7070
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6827
7071
|
};
|
|
6828
7072
|
};
|
|
6829
|
-
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. */
|
|
7073
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
6830
7074
|
401: {
|
|
6831
7075
|
headers: {
|
|
6832
7076
|
[name: string]: unknown;
|
|
@@ -6835,7 +7079,7 @@ export interface operations {
|
|
|
6835
7079
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6836
7080
|
};
|
|
6837
7081
|
};
|
|
6838
|
-
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. */
|
|
7082
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
6839
7083
|
403: {
|
|
6840
7084
|
headers: {
|
|
6841
7085
|
[name: string]: unknown;
|
|
@@ -6862,7 +7106,7 @@ export interface operations {
|
|
|
6862
7106
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
6863
7107
|
};
|
|
6864
7108
|
};
|
|
6865
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
7109
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
6866
7110
|
503: {
|
|
6867
7111
|
headers: {
|
|
6868
7112
|
[name: string]: unknown;
|
|
@@ -8317,7 +8561,7 @@ export interface operations {
|
|
|
8317
8561
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8318
8562
|
};
|
|
8319
8563
|
};
|
|
8320
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
8564
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
8321
8565
|
503: {
|
|
8322
8566
|
headers: {
|
|
8323
8567
|
[name: string]: unknown;
|
|
@@ -8422,7 +8666,7 @@ export interface operations {
|
|
|
8422
8666
|
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8423
8667
|
};
|
|
8424
8668
|
};
|
|
8425
|
-
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE — retry, the request was not wrong. */
|
|
8669
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
8426
8670
|
503: {
|
|
8427
8671
|
headers: {
|
|
8428
8672
|
[name: string]: unknown;
|
|
@@ -8529,4 +8773,328 @@ export interface operations {
|
|
|
8529
8773
|
};
|
|
8530
8774
|
};
|
|
8531
8775
|
};
|
|
8776
|
+
GetCollectionV2: {
|
|
8777
|
+
parameters: {
|
|
8778
|
+
query?: {
|
|
8779
|
+
/** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. Longer than 200 characters is cut, with a QUERY_TRUNCATED warning. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
|
|
8780
|
+
q?: string;
|
|
8781
|
+
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
|
|
8782
|
+
page?: number;
|
|
8783
|
+
/** @description Items per page, 0–100; 0 returns no items (the total and the blocks include asks for). Out of range is a 400 with code INVALID_PAGE. */
|
|
8784
|
+
pageSize?: number;
|
|
8785
|
+
/** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. discount (biggest discount first, then price ascending) is accepted on every site and offered in sort.available only on a site with item sales. */
|
|
8786
|
+
sort?: "discount" | "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
|
|
8787
|
+
/** @description Facet selection, sent as filter[key]=value. Several values for one facet are comma-separated; a comma or a backslash inside a value is escaped as \, and \\. price is "min-max" on the display basis, with open ends ("min-" or "-max"); a price bucket is selected by sending its filter value as filter[price]. A boolean facet is "true", as in filter[in-stock]=true. An unknown key or an unreadable value is dropped with a FILTER_IGNORED warning. The key sale is reserved: filter[sale]=true lists only the products on sale to this shopper in the request's market and country, on a site with item sales; elsewhere it matches nothing. It is never echoed in appliedFilters, and any other value is dropped with FILTER_IGNORED. */
|
|
8788
|
+
filter?: {
|
|
8789
|
+
[key: string]: string;
|
|
8790
|
+
};
|
|
8791
|
+
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
8792
|
+
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
8793
|
+
/** @description group[facet]=key selects a named group of that facet. The first value per facet applies; a later one, an unknown group, or a filter[facet] a replace group sets aside is ignored with a FILTER_IGNORED warning, and the rest of the request is answered. */
|
|
8794
|
+
group?: {
|
|
8795
|
+
[key: string]: string;
|
|
8796
|
+
};
|
|
8797
|
+
/** @description Comma list. Blocks: facets, groups, childCollections. Card data: variants (each card's variants visible here, at most the shop's card variant count, by position, with variantCount) and matchedVariant (with a variant-level condition in effect: the cheapest variant that can be ordered and matches every variant-level filter). Unknown tokens are ignored with an INCLUDE_UNKNOWN warning. */
|
|
8798
|
+
include?: string;
|
|
8799
|
+
};
|
|
8800
|
+
header: {
|
|
8801
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
8802
|
+
"X-Site-Key": string;
|
|
8803
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
8804
|
+
"X-Market"?: string;
|
|
8805
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
8806
|
+
"X-Country"?: string;
|
|
8807
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
8808
|
+
"X-Locale"?: string;
|
|
8809
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
8810
|
+
"X-Shopper-Session"?: string;
|
|
8811
|
+
};
|
|
8812
|
+
path: {
|
|
8813
|
+
/** @description One collection, by the id the API returns or by the collection's own slug; a slash path names nothing. An id wins over a slug that looks like it; follow-up requests use the returned id. */
|
|
8814
|
+
slugOrId: string;
|
|
8815
|
+
};
|
|
8816
|
+
cookie?: never;
|
|
8817
|
+
};
|
|
8818
|
+
requestBody?: never;
|
|
8819
|
+
responses: {
|
|
8820
|
+
/** @description OK */
|
|
8821
|
+
200: {
|
|
8822
|
+
headers: {
|
|
8823
|
+
[name: string]: unknown;
|
|
8824
|
+
};
|
|
8825
|
+
content: {
|
|
8826
|
+
"application/json": components["schemas"]["CollectionListingV2Response"];
|
|
8827
|
+
};
|
|
8828
|
+
};
|
|
8829
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
8830
|
+
400: {
|
|
8831
|
+
headers: {
|
|
8832
|
+
[name: string]: unknown;
|
|
8833
|
+
};
|
|
8834
|
+
content: {
|
|
8835
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8836
|
+
};
|
|
8837
|
+
};
|
|
8838
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
8839
|
+
401: {
|
|
8840
|
+
headers: {
|
|
8841
|
+
[name: string]: unknown;
|
|
8842
|
+
};
|
|
8843
|
+
content: {
|
|
8844
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8845
|
+
};
|
|
8846
|
+
};
|
|
8847
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
8848
|
+
403: {
|
|
8849
|
+
headers: {
|
|
8850
|
+
[name: string]: unknown;
|
|
8851
|
+
};
|
|
8852
|
+
content: {
|
|
8853
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8854
|
+
};
|
|
8855
|
+
};
|
|
8856
|
+
/** @description problem+json. COLLECTION_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
8857
|
+
404: {
|
|
8858
|
+
headers: {
|
|
8859
|
+
[name: string]: unknown;
|
|
8860
|
+
};
|
|
8861
|
+
content: {
|
|
8862
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8863
|
+
};
|
|
8864
|
+
};
|
|
8865
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
8866
|
+
429: {
|
|
8867
|
+
headers: {
|
|
8868
|
+
[name: string]: unknown;
|
|
8869
|
+
};
|
|
8870
|
+
content: {
|
|
8871
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8872
|
+
};
|
|
8873
|
+
};
|
|
8874
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
8875
|
+
503: {
|
|
8876
|
+
headers: {
|
|
8877
|
+
[name: string]: unknown;
|
|
8878
|
+
};
|
|
8879
|
+
content: {
|
|
8880
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8881
|
+
};
|
|
8882
|
+
};
|
|
8883
|
+
};
|
|
8884
|
+
};
|
|
8885
|
+
ListProductsV2: {
|
|
8886
|
+
parameters: {
|
|
8887
|
+
query?: {
|
|
8888
|
+
/** @description Free-text search. Omit to browse rather than search; a q of separators only (such as !!!) browses too. Longer than 200 characters is cut, with a QUERY_TRUNCATED warning. A search answers with search (how it was answered), and may set queryCorrection and redirect. */
|
|
8889
|
+
q?: string;
|
|
8890
|
+
/** @description 1-based page. page × pageSize must not exceed 10000 (default pageSize 24, max 100). */
|
|
8891
|
+
page?: number;
|
|
8892
|
+
/** @description Items per page, 0–100; 0 returns no items (the total and the blocks include asks for). Out of range is a 400 with code INVALID_PAGE. */
|
|
8893
|
+
pageSize?: number;
|
|
8894
|
+
/** @description Sort key. An unknown one is not refused: it falls back to relevance with a SORT_UNKNOWN warning, because it usually comes from a stale bookmark. discount (biggest discount first, then price ascending) is accepted on every site and offered in sort.available only on a site with item sales. */
|
|
8895
|
+
sort?: "discount" | "name_asc" | "newest" | "popular" | "price_asc" | "price_desc" | "recommended" | "relevance";
|
|
8896
|
+
/** @description Facet selection, sent as filter[key]=value. Several values for one facet are comma-separated; a comma or a backslash inside a value is escaped as \, and \\. price is "min-max" on the display basis, with open ends ("min-" or "-max"); a price bucket is selected by sending its filter value as filter[price]. A boolean facet is "true", as in filter[in-stock]=true. An unknown key or an unreadable value is dropped with a FILTER_IGNORED warning. The key sale is reserved: filter[sale]=true lists only the products on sale to this shopper in the request's market and country, on a site with item sales; elsewhere it matches nothing. It is never echoed in appliedFilters, and any other value is dropped with FILTER_IGNORED. */
|
|
8897
|
+
filter?: {
|
|
8898
|
+
[key: string]: string;
|
|
8899
|
+
};
|
|
8900
|
+
/** @description Where a search came from, for measurement only: typed, suggestion, recent or other. It never changes the answer. Anything else is ignored with an ORIGIN_UNKNOWN warning. */
|
|
8901
|
+
origin?: "other" | "recent" | "suggestion" | "typed";
|
|
8902
|
+
/** @description group[facet]=key selects a named group of that facet. The first value per facet applies; a later one, an unknown group, or a filter[facet] a replace group sets aside is ignored with a FILTER_IGNORED warning, and the rest of the request is answered. */
|
|
8903
|
+
group?: {
|
|
8904
|
+
[key: string]: string;
|
|
8905
|
+
};
|
|
8906
|
+
/** @description Comma list. Blocks: facets, groups, childCollections. Card data: variants (each card's variants visible here, at most the shop's card variant count, by position, with variantCount) and matchedVariant (with a variant-level condition in effect: the cheapest variant that can be ordered and matches every variant-level filter). Unknown tokens are ignored with an INCLUDE_UNKNOWN warning. */
|
|
8907
|
+
include?: string;
|
|
8908
|
+
/** @description One collection, by the id the API returns or by the collection's own slug; a slash path names nothing. An id wins over a slug that looks like it; follow-up requests use the returned id. An unknown one is answered with a COLLECTION_UNKNOWN warning and narrows nothing, not a 404. */
|
|
8909
|
+
collection?: string;
|
|
8910
|
+
};
|
|
8911
|
+
header: {
|
|
8912
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
8913
|
+
"X-Site-Key": string;
|
|
8914
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
8915
|
+
"X-Market"?: string;
|
|
8916
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
8917
|
+
"X-Country"?: string;
|
|
8918
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
8919
|
+
"X-Locale"?: string;
|
|
8920
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
8921
|
+
"X-Shopper-Session"?: string;
|
|
8922
|
+
};
|
|
8923
|
+
path?: never;
|
|
8924
|
+
cookie?: never;
|
|
8925
|
+
};
|
|
8926
|
+
requestBody?: never;
|
|
8927
|
+
responses: {
|
|
8928
|
+
/** @description OK */
|
|
8929
|
+
200: {
|
|
8930
|
+
headers: {
|
|
8931
|
+
[name: string]: unknown;
|
|
8932
|
+
};
|
|
8933
|
+
content: {
|
|
8934
|
+
"application/json": components["schemas"]["ListingV2Response"];
|
|
8935
|
+
};
|
|
8936
|
+
};
|
|
8937
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
8938
|
+
400: {
|
|
8939
|
+
headers: {
|
|
8940
|
+
[name: string]: unknown;
|
|
8941
|
+
};
|
|
8942
|
+
content: {
|
|
8943
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8944
|
+
};
|
|
8945
|
+
};
|
|
8946
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
8947
|
+
401: {
|
|
8948
|
+
headers: {
|
|
8949
|
+
[name: string]: unknown;
|
|
8950
|
+
};
|
|
8951
|
+
content: {
|
|
8952
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8953
|
+
};
|
|
8954
|
+
};
|
|
8955
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
8956
|
+
403: {
|
|
8957
|
+
headers: {
|
|
8958
|
+
[name: string]: unknown;
|
|
8959
|
+
};
|
|
8960
|
+
content: {
|
|
8961
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8962
|
+
};
|
|
8963
|
+
};
|
|
8964
|
+
/** @description problem+json. SITE_INACTIVE, or NOT_FOUND for an unrouted path. */
|
|
8965
|
+
404: {
|
|
8966
|
+
headers: {
|
|
8967
|
+
[name: string]: unknown;
|
|
8968
|
+
};
|
|
8969
|
+
content: {
|
|
8970
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8971
|
+
};
|
|
8972
|
+
};
|
|
8973
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
8974
|
+
429: {
|
|
8975
|
+
headers: {
|
|
8976
|
+
[name: string]: unknown;
|
|
8977
|
+
};
|
|
8978
|
+
content: {
|
|
8979
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8980
|
+
};
|
|
8981
|
+
};
|
|
8982
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
8983
|
+
503: {
|
|
8984
|
+
headers: {
|
|
8985
|
+
[name: string]: unknown;
|
|
8986
|
+
};
|
|
8987
|
+
content: {
|
|
8988
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
8989
|
+
};
|
|
8990
|
+
};
|
|
8991
|
+
};
|
|
8992
|
+
};
|
|
8993
|
+
SearchFacetValuesV2: {
|
|
8994
|
+
parameters: {
|
|
8995
|
+
query?: {
|
|
8996
|
+
/** @description The listing's free text: values are counted in the answer the listing gives for it; longer than 200 characters is cut with a QUERY_TRUNCATED warning. */
|
|
8997
|
+
q?: string;
|
|
8998
|
+
/** @description One collection, by the id the API returns or by the collection's own slug; a slash path names nothing. An id wins over a slug that looks like it; follow-up requests use the returned id. An unknown one is answered with a COLLECTION_UNKNOWN warning and narrows nothing, not a 404. A menu opened on /v2/collections/{slugOrId} sends that collection's id here. */
|
|
8999
|
+
collection?: string;
|
|
9000
|
+
/** @description The listing's selection, sent as filter[key]=value exactly as on /v2/products, with the same warnings and limits. On a facet with match any or single, the facet's own selection (its filter and its group) does not narrow its counts: each count is what choosing that value instead would give. On a facet with match all it does: each count is the selection plus that value. */
|
|
9001
|
+
filter?: {
|
|
9002
|
+
[key: string]: string;
|
|
9003
|
+
};
|
|
9004
|
+
/** @description group[facet]=key selects a named group of that facet. The first value per facet applies; a later one, an unknown group, or a filter[facet] a replace group sets aside is ignored with a FILTER_IGNORED warning, and the rest of the request is answered. */
|
|
9005
|
+
group?: {
|
|
9006
|
+
[key: string]: string;
|
|
9007
|
+
};
|
|
9008
|
+
/** @description 1–100 characters; values whose shown label contains it, ignoring case and accents; applied after counting. Present but blank, or longer, is a 400 (INVALID_QUERY). */
|
|
9009
|
+
match?: string;
|
|
9010
|
+
/** @description 1-based; a page past the end is empty. */
|
|
9011
|
+
page?: number;
|
|
9012
|
+
/** @description Values per page, 0–300; 0 returns no values (the total). Out of range is a 400 with code INVALID_PAGE. */
|
|
9013
|
+
pageSize?: number;
|
|
9014
|
+
};
|
|
9015
|
+
header: {
|
|
9016
|
+
/** @description Publishable, preview or secret site key. Required on every request; secret keys are server-side only. */
|
|
9017
|
+
"X-Site-Key": string;
|
|
9018
|
+
/** @description Market code (e.g. "eur"). Optional when the site has one market; else the default binding's market. */
|
|
9019
|
+
"X-Market"?: string;
|
|
9020
|
+
/** @description ISO 3166-1 alpha-2 country (e.g. "DE"). Optional when the market has one country; catalog reads fall back to the market's default country, cart and checkout require it. */
|
|
9021
|
+
"X-Country"?: string;
|
|
9022
|
+
/** @description Locale tag as the site spells it (e.g. "sv"). Optional: the country's default locale. Accept-Language selects nothing. */
|
|
9023
|
+
"X-Locale"?: string;
|
|
9024
|
+
/** @description Optional. The shopper session (sfs_…) of a signed-in shopper, server-to-server with the site's server key only: the request resolves with the session's principal, so its prices, offer and stock visibility apply, and the answer is private, no-store. On a site without accounts it is not read. Not in the CORS allow-list. */
|
|
9025
|
+
"X-Shopper-Session"?: string;
|
|
9026
|
+
};
|
|
9027
|
+
path: {
|
|
9028
|
+
/** @description The facet's key, as the listing's facets[].key gives it. A key that is not a facet of this site is a 404 (FACET_NOT_FOUND); a range, toggle or hierarchy facet is a 400 (FACET_NOT_SEARCHABLE). */
|
|
9029
|
+
key: string;
|
|
9030
|
+
};
|
|
9031
|
+
cookie?: never;
|
|
9032
|
+
};
|
|
9033
|
+
requestBody?: never;
|
|
9034
|
+
responses: {
|
|
9035
|
+
/** @description OK */
|
|
9036
|
+
200: {
|
|
9037
|
+
headers: {
|
|
9038
|
+
[name: string]: unknown;
|
|
9039
|
+
};
|
|
9040
|
+
content: {
|
|
9041
|
+
"application/json": components["schemas"]["FacetValuesV2Response"];
|
|
9042
|
+
};
|
|
9043
|
+
};
|
|
9044
|
+
/** @description problem+json. MARKET_REQUIRED (several markets, no X-Market and no default binding), MARKET_NOT_FOUND (an unknown or inactive market), COUNTRY_NOT_ALLOWED (the country is not in the market) or LOCALE_NOT_ALLOWED (the locale is not allowed for the market and country); INVALID_PAGE; FACET_NOT_SEARCHABLE (the facet exists but has no list of values to page: a range, a toggle or a tree), INVALID_QUERY (match present but blank, or longer than 100 characters), PRICE_QUERY_UNSUPPORTED (a price sort, filter or facet where prices are not shown to this shopper, or on the ex-VAT basis where the country's ex amounts are incomplete) or STOCK_QUERY_UNSUPPORTED (a stock filter or facet where stock is not shown to this shopper), or FILTER_TOO_MANY_VALUES (more than 200 selected values, counting each ancestor of a selected hierarchy value and the values the search text selects: select fewer). */
|
|
9045
|
+
400: {
|
|
9046
|
+
headers: {
|
|
9047
|
+
[name: string]: unknown;
|
|
9048
|
+
};
|
|
9049
|
+
content: {
|
|
9050
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9051
|
+
};
|
|
9052
|
+
};
|
|
9053
|
+
/** @description problem+json. SITE_KEY_MISSING or SITE_KEY_INVALID; SESSION_INVALID when an X-Shopper-Session is sent on a site with accounts and does not validate (unknown, expired or revoked) — never a silent signed-out answer. Render signed-out and clear the session cookie. Or SIGN_IN_REQUIRED: this shop lists only products that can be ordered, and a shopper who is not signed in may not see that here; sign in. */
|
|
9054
|
+
401: {
|
|
9055
|
+
headers: {
|
|
9056
|
+
[name: string]: unknown;
|
|
9057
|
+
};
|
|
9058
|
+
content: {
|
|
9059
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9060
|
+
};
|
|
9061
|
+
};
|
|
9062
|
+
/** @description problem+json. SECRET_KEY_FROM_BROWSER: a secret or server key was sent from a browser. With X-Shopper-Session: SERVER_KEY_REQUIRED (any key but the site's server key) or SESSION_FROM_BROWSER (the header with an Origin header). A catalog read never answers PERMISSION_DENIED: a shopper who may not see prices reads the catalog with offerStatus loginRequired, and a price or stock query, where the operation takes one, is its 400. Or OFFER_ACCESS_REQUIRED: this shop lists only products that can be ordered, and the signed-in account may not see that. */
|
|
9063
|
+
403: {
|
|
9064
|
+
headers: {
|
|
9065
|
+
[name: string]: unknown;
|
|
9066
|
+
};
|
|
9067
|
+
content: {
|
|
9068
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9069
|
+
};
|
|
9070
|
+
};
|
|
9071
|
+
/** @description problem+json. FACET_NOT_FOUND, or SITE_INACTIVE when the site itself is not live. */
|
|
9072
|
+
404: {
|
|
9073
|
+
headers: {
|
|
9074
|
+
[name: string]: unknown;
|
|
9075
|
+
};
|
|
9076
|
+
content: {
|
|
9077
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9078
|
+
};
|
|
9079
|
+
};
|
|
9080
|
+
/** @description problem+json. RATE_LIMITED; retryAfterSeconds and the Retry-After header say how long to wait. */
|
|
9081
|
+
429: {
|
|
9082
|
+
headers: {
|
|
9083
|
+
[name: string]: unknown;
|
|
9084
|
+
};
|
|
9085
|
+
content: {
|
|
9086
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9087
|
+
};
|
|
9088
|
+
};
|
|
9089
|
+
/** @description problem+json. PRICE_CONTEXT_NOT_READY (the request's price context is not projected yet; Retry-After) or PRICE_CONTEXT_UNAVAILABLE (it cannot be priced); SITE_KEYS_SYNCING (a secret or server key before the site's first key sync; Retry-After), SITE_REGISTRY_WARMING or INDEX_UNAVAILABLE (an index being rebuilt, or the catalog being rebuilt for this API: retry after the delay; browsers read retryAfterSeconds) — retry, the request was not wrong. */
|
|
9090
|
+
503: {
|
|
9091
|
+
headers: {
|
|
9092
|
+
[name: string]: unknown;
|
|
9093
|
+
};
|
|
9094
|
+
content: {
|
|
9095
|
+
"application/problem+json": components["schemas"]["StorefrontProblem"];
|
|
9096
|
+
};
|
|
9097
|
+
};
|
|
9098
|
+
};
|
|
9099
|
+
};
|
|
8532
9100
|
}
|