@sixtyninecommerce/client 0.17.0 → 0.20.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/dist/commerce/branding.d.ts.map +1 -1
- package/dist/commerce/branding.js +6 -3
- package/dist/commerce/branding.js.map +1 -1
- package/dist/commerce/queries.d.ts +13 -13
- package/dist/commerce/queries.d.ts.map +1 -1
- package/dist/commerce/queries.js +13 -6
- package/dist/commerce/queries.js.map +1 -1
- package/dist/commerce/saved-lists.d.ts +8 -0
- package/dist/commerce/saved-lists.d.ts.map +1 -1
- package/dist/commerce/saved-lists.js +9 -8
- package/dist/commerce/saved-lists.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/media/index.d.ts +1 -1
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +3 -14
- package/dist/media/index.js.map +1 -1
- package/dist/media/urls.d.ts +4 -1
- package/dist/media/urls.d.ts.map +1 -1
- package/dist/media/urls.js +16 -0
- package/dist/media/urls.js.map +1 -1
- package/dist/pricing/validation.d.ts +3 -0
- package/dist/pricing/validation.d.ts.map +1 -1
- package/dist/pricing/validation.js +10 -0
- package/dist/pricing/validation.js.map +1 -1
- package/dist/seo/canonical.d.ts +2 -1
- package/dist/seo/canonical.d.ts.map +1 -1
- package/dist/seo/canonical.js +10 -9
- package/dist/seo/canonical.js.map +1 -1
- package/dist/seo/index.d.ts +1 -0
- package/dist/seo/index.d.ts.map +1 -1
- package/dist/seo/index.js +4 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/json-ld.d.ts +3 -0
- package/dist/seo/json-ld.d.ts.map +1 -1
- package/dist/seo/json-ld.js +11 -11
- package/dist/seo/json-ld.js.map +1 -1
- package/dist/seo/meta-tags.d.ts +2 -0
- package/dist/seo/meta-tags.d.ts.map +1 -1
- package/dist/seo/meta-tags.js +15 -9
- package/dist/seo/meta-tags.js.map +1 -1
- package/dist/seo/product-path.d.ts +14 -0
- package/dist/seo/product-path.d.ts.map +1 -0
- package/dist/seo/product-path.js +32 -0
- package/dist/seo/product-path.js.map +1 -0
- package/dist/seo/types.d.ts +1 -0
- package/dist/seo/types.d.ts.map +1 -1
- package/dist/seo/url-builder.d.ts +4 -0
- package/dist/seo/url-builder.d.ts.map +1 -1
- package/dist/seo/url-builder.js +31 -0
- package/dist/seo/url-builder.js.map +1 -1
- package/dist/types.d.ts +24 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../../src/commerce/branding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../../src/commerce/branding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,KAAK,EAGV,YAAY,EAEZ,cAAc,EACd,YAAY,EACb,MAAM,aAAa,CAAC;AAmBrB,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,YAAY;0BAEzC,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;EAwGrE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createContextAssetUrlResolver } from '../media/urls.js';
|
|
2
|
+
import { normalizeProductPathSegment } from '../seo/product-path.js';
|
|
2
3
|
import { GET_BRANDING } from './queries.js';
|
|
3
4
|
export function createBrandingMethods(http, ctx) {
|
|
4
5
|
return {
|
|
@@ -13,13 +14,14 @@ export function createBrandingMethods(http, ctx) {
|
|
|
13
14
|
const uniqueIds = [...new Set(channelAssetIds)];
|
|
14
15
|
const data = await http.graphql(GET_BRANDING, { ids: uniqueIds }, options);
|
|
15
16
|
const channelAssetsById = new Map(data.brandingAssets.map((a) => [a.id, a]));
|
|
17
|
+
const resolveAssetUrl = createContextAssetUrlResolver(ctx);
|
|
16
18
|
const toRef = (asset) => {
|
|
17
19
|
if (!asset)
|
|
18
20
|
return null;
|
|
19
21
|
return {
|
|
20
22
|
id: asset.id,
|
|
21
|
-
url:
|
|
22
|
-
preview: asset.preview ?
|
|
23
|
+
url: resolveAssetUrl(asset.source),
|
|
24
|
+
preview: asset.preview ? resolveAssetUrl(asset.preview) : null,
|
|
23
25
|
mimeType: asset.mimeType ?? null,
|
|
24
26
|
};
|
|
25
27
|
};
|
|
@@ -73,6 +75,7 @@ export function createBrandingMethods(http, ctx) {
|
|
|
73
75
|
urlLocalePrefixDefault: cf.urlLocalePrefixDefault === true,
|
|
74
76
|
commercePathPrefix: readString(cf.commercePathPrefix),
|
|
75
77
|
commercePathPrefixTranslations: parsePrefixTranslations(readString(cf.commercePathPrefixTranslations)),
|
|
78
|
+
productPathSegment: normalizeProductPathSegment(readString(cf.productPathSegment)),
|
|
76
79
|
maintenanceMode: cf.maintenanceMode === true,
|
|
77
80
|
defaultLanguage: data.activeChannel.defaultLanguageCode,
|
|
78
81
|
defaultCurrency: data.activeChannel.defaultCurrencyCode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../../src/commerce/branding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../../src/commerce/branding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AASrE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAkB5C,MAAM,UAAU,qBAAqB,CAAC,IAAgB,EAAE,GAAiB;IACvE,OAAO;QACL,KAAK,CAAC,WAAW,CAAC,OAAwB;YACxC,MAAM,EAAE,GAAG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AAG,CAAC,CAAC;YACnD,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE;gBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QACvE,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,SAAS,uBAAuB,CAAC,KAAoB;IACnD,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAY,CAAC;QAC5C,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YAAE,OAAO,IAAI,CAAC;QACxF,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAiC,CAAC,EAAE,CAAC;YACvE,IAAI,OAAO,CAAC,KAAK,QAAQ;gBAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC3C,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IACxD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const GET_PRODUCT = "\n query GetProduct($slug: String!) {\n product(slug: $slug) {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets {\n xxs { url webpUrl } xs { url webpUrl }\n s { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n assets {\n source name width height\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n options { id code name group { id name code } }\n customFields { minOrderQuantity salesUnit position }\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } }\n }\n assets {\n source name width height\n customFields { altText }\n presets { m { url webpUrl } l { url webpUrl } }\n }\n }\n optionGroups { id name code options { id name code } }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n documents {\n id position title description fileUrl fileMimeType fileSize fileName requiresAuth\n }\n \n metadata {\n seoTitle seoDescription canonicalUrl\n socialTitle socialDescription socialImageAlt socialOgType\n socialImage {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n twitterCardType twitterTitleOverride twitterDescriptionOverride\n twitterImageOverride {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n aiSummary qaPairs qaEmitFaqpageJsonld\n breadcrumbOverride hreflangOverrides\n metaRobots resolvedBotDirectives\n includeReviewsInJsonld\n }\n\n }\n }\n";
|
|
2
|
-
export declare const GET_PRODUCT_BY_ID = "\n query GetProductById($id: ID!) {\n product(id: $id) {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets {\n xxs { url webpUrl } xs { url webpUrl }\n s { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n assets {\n source name width height\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n options { id code name group { id name code } }\n customFields { minOrderQuantity salesUnit position }\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } }\n }\n assets {\n source name width height\n customFields { altText }\n presets { m { url webpUrl } l { url webpUrl } }\n }\n }\n optionGroups { id name code options { id name code } }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n documents {\n id position title description fileUrl fileMimeType fileSize fileName requiresAuth\n }\n \n metadata {\n seoTitle seoDescription canonicalUrl\n socialTitle socialDescription socialImageAlt socialOgType\n socialImage {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n twitterCardType twitterTitleOverride twitterDescriptionOverride\n twitterImageOverride {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n aiSummary qaPairs qaEmitFaqpageJsonld\n breadcrumbOverride hreflangOverrides\n metaRobots resolvedBotDirectives\n includeReviewsInJsonld\n }\n\n }\n }\n";
|
|
3
|
-
export declare const LIST_PRODUCTS = "\n query ListProducts($options: ProductListOptions) {\n products(options: $options) {\n items {\n id name slug description enabled\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n }\n totalItems\n }\n }\n";
|
|
1
|
+
export declare const GET_PRODUCT = "\n query GetProduct($slug: String!) {\n product(slug: $slug) {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets {\n xxs { url webpUrl } xs { url webpUrl }\n s { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n assets {\n source name width height\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n options { id code name group { id name code } }\n customFields { minOrderQuantity salesUnit position }\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } }\n }\n assets {\n source name width height\n customFields { altText }\n presets { m { url webpUrl } l { url webpUrl } }\n }\n }\n optionGroups { id name code options { id name code } }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id slug }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n documents {\n id position title description fileUrl fileMimeType fileSize fileName requiresAuth\n }\n \n metadata {\n seoTitle seoDescription canonicalUrl\n socialTitle socialDescription socialImageAlt socialOgType\n socialImage {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n twitterCardType twitterTitleOverride twitterDescriptionOverride\n twitterImageOverride {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n aiSummary qaPairs qaEmitFaqpageJsonld\n breadcrumbOverride hreflangOverrides\n metaRobots resolvedBotDirectives\n includeReviewsInJsonld\n }\n\n }\n }\n";
|
|
2
|
+
export declare const GET_PRODUCT_BY_ID = "\n query GetProductById($id: ID!) {\n product(id: $id) {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets {\n xxs { url webpUrl } xs { url webpUrl }\n s { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n assets {\n source name width height\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n options { id code name group { id name code } }\n customFields { minOrderQuantity salesUnit position }\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } }\n }\n assets {\n source name width height\n customFields { altText }\n presets { m { url webpUrl } l { url webpUrl } }\n }\n }\n optionGroups { id name code options { id name code } }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id slug }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n documents {\n id position title description fileUrl fileMimeType fileSize fileName requiresAuth\n }\n \n metadata {\n seoTitle seoDescription canonicalUrl\n socialTitle socialDescription socialImageAlt socialOgType\n socialImage {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n twitterCardType twitterTitleOverride twitterDescriptionOverride\n twitterImageOverride {\n source name\n customFields { altText }\n presets {\n xs { url webpUrl } m { url webpUrl }\n l { url webpUrl } xl { url webpUrl }\n }\n }\n aiSummary qaPairs qaEmitFaqpageJsonld\n breadcrumbOverride hreflangOverrides\n metaRobots resolvedBotDirectives\n includeReviewsInJsonld\n }\n\n }\n }\n";
|
|
3
|
+
export declare const LIST_PRODUCTS = "\n query ListProducts($options: ProductListOptions) {\n products(options: $options) {\n items {\n id name slug description enabled\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n facetValues { id name code facet { id name code } }\n translations { languageCode name slug description }\n collections {\n id name slug position\n parent { id slug }\n translations { languageCode name slug }\n customFields { isRoutable isCanonical }\n }\n }\n totalItems\n }\n }\n";
|
|
4
4
|
export declare const LIST_FACETS = "\n query ListFacets {\n facets {\n items {\n id name code\n values { id name code }\n }\n totalItems\n }\n }\n";
|
|
5
5
|
export declare const LIST_COLLECTIONS = "\n query ListCollections($options: CollectionListOptions) {\n collections(options: $options) {\n items {\n id name slug description\n breadcrumbs { id name slug }\n featuredAsset {\n source width height\n presets { xs { url webpUrl } m { url webpUrl } }\n }\n parent { id name slug }\n children { id name slug }\n }\n totalItems\n }\n }\n";
|
|
6
|
-
export declare const GET_COLLECTION = "\n query GetCollection($slug: String!) {\n collection(slug: $slug) {\n id name slug description position\n featuredAsset {\n source width height\n presets { l { url webpUrl } xl { url webpUrl } }\n }\n breadcrumbs { id name slug }\n parent { id }\n children { id name slug }\n customFields {\n isRoutable\n isCanonical\n noindex\n nofollow\n metaRobotsMaxImagePreview\n socialImageId\n socialOgType\n twitterCardType\n }\n translations {\n languageCode\n name\n slug\n customFields {\n seoTitle\n seoDescription\n canonicalUrl\n socialTitle\n socialDescription\n socialImageAlt\n }\n }\n productVariants(options: { take: 20 }) {\n items {\n id\n product {\n id name slug\n featuredAsset { source width height presets { m { url webpUrl } } }\n }\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n totalItems\n }\n }\n }\n";
|
|
6
|
+
export declare const GET_COLLECTION = "\n query GetCollection($slug: String!) {\n collection(slug: $slug) {\n id name slug description position\n featuredAsset {\n source width height\n presets { l { url webpUrl } xl { url webpUrl } }\n }\n breadcrumbs { id name slug }\n parent { id }\n children { id name slug }\n customFields {\n isRoutable\n isCanonical\n noindex\n nofollow\n metaRobotsMaxImagePreview\n socialImageId\n socialOgType\n twitterCardType\n }\n translations {\n languageCode\n name\n slug\n customFields {\n seoTitle\n seoDescription\n canonicalUrl\n socialTitle\n socialDescription\n socialImageAlt\n }\n }\n productVariants(options: { take: 20 }) {\n items {\n id\n product {\n id name slug\n featuredAsset { source width height presets { m { url webpUrl } } }\n }\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n totalItems\n }\n }\n }\n";
|
|
7
7
|
export declare const SEARCH_PRODUCTS = "\n query SearchProducts($input: SearchInput!) {\n search(input: $input) {\n items {\n productId productVariantId productName slug description\n price { ... on SinglePrice { value } ... on PriceRange { min max } }\n priceWithTax { ... on SinglePrice { value } ... on PriceRange { min max } }\n currencyCode\n productAsset { preview focalPoint { x y } }\n collectionIds\n inStock\n }\n totalItems\n facetValues { facetValue { id name code facet { id name code } } count }\n }\n }\n";
|
|
8
8
|
export declare const ACTIVE_ORDER = "\n query ActiveOrder {\n activeOrder { \n id code state active\n createdAt orderPlacedAt\n totalQuantity\n subTotal subTotalWithTax\n shipping shippingWithTax\n total totalWithTax\n currencyCode\n lines {\n id quantity\n unitPrice unitPriceWithTax taxRate\n linePrice linePriceWithTax\n discountedLinePrice discountedLinePriceWithTax\n discounts { adjustmentSource type description amount amountWithTax }\n productVariant {\n id name sku\n product { id name slug }\n options { id name group { name } }\n }\n featuredAsset { source presets { xs { url webpUrl } } }\n }\n discounts { adjustmentSource type description amount amountWithTax }\n taxSummary { description taxRate taxBase taxTotal }\n promotions { id name couponCode description }\n shippingLines { shippingMethod { id name code } priceWithTax }\n payments { id method amount state transactionId }\n shippingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n billingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n customer { id firstName lastName emailAddress }\n couponCodes\n }\n }\n";
|
|
9
9
|
export declare const ADD_TO_CART = "\n mutation AddToCart($variantId: ID!, $quantity: Int!) {\n addItemToOrder(productVariantId: $variantId, quantity: $quantity) {\n ... on Order { \n id code state active\n createdAt orderPlacedAt\n totalQuantity\n subTotal subTotalWithTax\n shipping shippingWithTax\n total totalWithTax\n currencyCode\n lines {\n id quantity\n unitPrice unitPriceWithTax taxRate\n linePrice linePriceWithTax\n discountedLinePrice discountedLinePriceWithTax\n discounts { adjustmentSource type description amount amountWithTax }\n productVariant {\n id name sku\n product { id name slug }\n options { id name group { name } }\n }\n featuredAsset { source presets { xs { url webpUrl } } }\n }\n discounts { adjustmentSource type description amount amountWithTax }\n taxSummary { description taxRate taxBase taxTotal }\n promotions { id name couponCode description }\n shippingLines { shippingMethod { id name code } priceWithTax }\n payments { id method amount state transactionId }\n shippingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n billingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n customer { id firstName lastName emailAddress }\n couponCodes\n }\n ... on OrderModificationError { errorCode message }\n ... on OrderLimitError { errorCode message maxItems }\n ... on NegativeQuantityError { errorCode message }\n ... on InsufficientStockError { errorCode message quantityAvailable order { id } }\n }\n }\n";
|
|
@@ -54,13 +54,13 @@ export declare const DELETE_ADDRESS = "\n mutation DeleteAddress($id: ID!) {\n
|
|
|
54
54
|
export declare const AVAILABLE_COUNTRIES = "\n query AvailableCountries {\n availableCountries {\n id code name\n }\n }\n";
|
|
55
55
|
export declare const ORDER_BY_CODE = "\n query OrderByCode($code: String!) {\n orderByCode(code: $code) {\n \n id code state active\n createdAt orderPlacedAt\n totalQuantity\n subTotal subTotalWithTax\n shipping shippingWithTax\n total totalWithTax\n currencyCode\n lines {\n id quantity\n unitPrice unitPriceWithTax taxRate\n linePrice linePriceWithTax\n discountedLinePrice discountedLinePriceWithTax\n discounts { adjustmentSource type description amount amountWithTax }\n productVariant {\n id name sku\n product { id name slug }\n options { id name group { name } }\n }\n featuredAsset { source presets { xs { url webpUrl } } }\n }\n discounts { adjustmentSource type description amount amountWithTax }\n taxSummary { description taxRate taxBase taxTotal }\n promotions { id name couponCode description }\n shippingLines { shippingMethod { id name code } priceWithTax }\n payments { id method amount state transactionId }\n shippingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n billingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n customer { id firstName lastName emailAddress }\n couponCodes\n\n \n fulfillments {\n id state method trackingCode createdAt updatedAt\n lines { orderLineId quantity }\n }\n externalShipments {\n carrier reference isLink shippedAt deliveryNumber\n }\n\n \n paymentTerms {\n source managedExternally status\n conditionCode conditionDescription summary classification\n paymentDays paymentEndOfMonths paymentMethod percentage\n discountPaymentDays discountPercentage paymentDiscountType\n stale syncedAt error\n resolvedAt remoteConditionCode remoteConfirmedAt remoteMismatch\n }\n\n \n deliveryTerms {\n source managedExternally status shippingMethodStatus policyStatus summary selectionSource\n selectedShippingMethodId selectedShippingMethodCode selectedShippingMethodName\n platformShippingMethodCode platformShippingMethodName platformShippingMethodDescription\n platformShippingPrice platformShippingPriceWithTax\n preferredShippingMethodId\n incotermStatus incotermCode incotermVersion incotermAddress incotermDescription\n shippingLeadDays deliveryAdvice stale syncedAt warning resolvedAt\n remoteShippingMethodCode remoteShippingMethodName\n remoteIncotermCode remoteIncotermVersion remoteIncotermAddress remoteDeliveryDate\n remoteConfirmedAt remoteMismatch\n }\n\n }\n }\n";
|
|
56
56
|
export declare const FAVORITE_VARIANT_IDS = "\n query FavoriteVariantIds {\n favoriteProductVariantIds\n }\n";
|
|
57
|
-
export declare const MY_FAVORITES = "\n query MyFavorites($options: FavoriteListOptions) {\n myFavorites(options: $options) {\n items {\n id\n productVariantId\n createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n product {\n id name slug\n featuredAsset {\n source width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n totalItems\n }\n }\n";
|
|
57
|
+
export declare const MY_FAVORITES = "\n query MyFavorites($options: FavoriteListOptions) {\n myFavorites(options: $options) {\n items {\n id\n productVariantId\n createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n product {\n id name slug\n featuredAsset {\n source width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n totalItems\n }\n }\n";
|
|
58
58
|
export declare const TOGGLE_FAVORITE = "\n mutation ToggleFavorite($productVariantId: ID!) {\n toggleFavorite(productVariantId: $productVariantId)\n }\n";
|
|
59
59
|
export declare const REMOVE_FAVORITE = "\n mutation RemoveFavorite($productVariantId: ID!) {\n removeFavorite(productVariantId: $productVariantId)\n }\n";
|
|
60
|
-
export declare const GET_ACTIVE_CHANNEL = "\n query ActiveChannel {\n activeChannel {\n id code\n defaultLanguageCode\n availableLanguageCodes\n defaultCurrencyCode\n availableCurrencyCodes\n \n customFields {\n businessName businessDescription\n logoAssetId darkLogoAssetId coverAssetId faviconAssetId\n websiteUrl primaryColor\n contactEmail contactPhone\n legalName vatNumber registrationNumber\n addressLine1 addressLine2 city postalCode province country\n socialLinks\n commercePathPrefix commercePathPrefixTranslations\n cdnDomain maintenanceMode\n urlLocaleStrategy urlLocalePrefixDefault\n twitterHandle defaultOgImageId llmsTxtEnabled\n storefrontUrl quotesEnabled\n returnsEnabled returnWindowDays\n }\n\n }\n }\n";
|
|
60
|
+
export declare const GET_ACTIVE_CHANNEL = "\n query ActiveChannel {\n activeChannel {\n id code\n defaultLanguageCode\n availableLanguageCodes\n defaultCurrencyCode\n availableCurrencyCodes\n \n customFields {\n businessName businessDescription\n logoAssetId darkLogoAssetId coverAssetId faviconAssetId\n websiteUrl primaryColor\n contactEmail contactPhone\n legalName vatNumber registrationNumber\n addressLine1 addressLine2 city postalCode province country\n socialLinks\n commercePathPrefix commercePathPrefixTranslations productPathSegment\n cdnDomain maintenanceMode\n urlLocaleStrategy urlLocalePrefixDefault\n twitterHandle defaultOgImageId llmsTxtEnabled\n storefrontUrl quotesEnabled\n returnsEnabled returnWindowDays\n }\n\n }\n }\n";
|
|
61
61
|
export declare const PROPERTY_GROUPS = "\n query PropertyGroups {\n productPropertyGroups {\n id position\n translations { id languageCode name }\n properties {\n id slug fieldType isFilterable isRequired position\n config { options { value label } min max maxLength allowedCollectionIds filterableFieldSlugs }\n facetId\n fieldFacets { fieldSlug fieldType facetId }\n translations { id languageCode name helpText }\n }\n }\n }\n";
|
|
62
62
|
export declare const PRODUCT_PROPERTIES = "\n query ProductProperties($productId: ID!) {\n productPropertyValues(productId: $productId) {\n group {\n id position\n translations { id languageCode name }\n properties {\n id slug fieldType isFilterable isRequired position\n config { options { value label } min max maxLength }\n facetId\n fieldFacets { fieldSlug fieldType facetId }\n translations { id languageCode name helpText }\n }\n }\n values { id propertyId languageCode value }\n }\n }\n";
|
|
63
|
-
export declare const GET_PRODUCT_RECOMMENDATIONS = "\n query ProductRecommendations($productId: ID!, $groupSlug: String) {\n productRecommendations(productId: $productId, groupSlug: $groupSlug) {\n groupName\n groupSlug\n products {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
63
|
+
export declare const GET_PRODUCT_RECOMMENDATIONS = "\n query ProductRecommendations($productId: ID!, $groupSlug: String) {\n productRecommendations(productId: $productId, groupSlug: $groupSlug) {\n groupName\n groupSlug\n products {\n id name slug description\n featuredAsset {\n source name width height\n customFields { altText }\n presets { xs { url webpUrl } m { url webpUrl } l { url webpUrl } }\n }\n variants {\n id name sku\n price priceWithTax currencyCode stockLevel\n stockOnHand stockAllocated saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n availabilityByLocation { locationId locationName inStock }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
64
64
|
export declare const GET_EXCHANGE_RATES = "\n query ExchangeRates {\n exchangeRates {\n baseCurrency targetCurrency rate inverseRate rateDate\n }\n }\n";
|
|
65
65
|
export declare const CONVERT_CURRENCY = "\n query ConvertCurrency($amount: String!, $from: String!, $to: String!) {\n convertCurrency(amount: $amount, fromCurrency: $from, toCurrency: $to) {\n \n originalAmount originalCurrency convertedAmount targetCurrency rate rateDate\n\n }\n }\n";
|
|
66
66
|
export declare const GET_EXCHANGE_RATE = "\n query ExchangeRate($targetCurrency: String!) {\n exchangeRate(targetCurrency: $targetCurrency) {\n baseCurrency targetCurrency rate inverseRate rateDate\n }\n }\n";
|
|
@@ -73,12 +73,12 @@ export declare const CREATE_QUOTE_REQUEST = "\n mutation CreateQuoteRequest($in
|
|
|
73
73
|
export declare const ACCEPT_QUOTE = "\n mutation AcceptQuote($id: ID!) {\n acceptQuote(id: $id) { \n id code state active\n createdAt orderPlacedAt\n totalQuantity\n subTotal subTotalWithTax\n shipping shippingWithTax\n total totalWithTax\n currencyCode\n lines {\n id quantity\n unitPrice unitPriceWithTax taxRate\n linePrice linePriceWithTax\n discountedLinePrice discountedLinePriceWithTax\n discounts { adjustmentSource type description amount amountWithTax }\n productVariant {\n id name sku\n product { id name slug }\n options { id name group { name } }\n }\n featuredAsset { source presets { xs { url webpUrl } } }\n }\n discounts { adjustmentSource type description amount amountWithTax }\n taxSummary { description taxRate taxBase taxTotal }\n promotions { id name couponCode description }\n shippingLines { shippingMethod { id name code } priceWithTax }\n payments { id method amount state transactionId }\n shippingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n billingAddress { fullName company streetLine1 streetLine2 city province postalCode countryCode phoneNumber }\n customer { id firstName lastName emailAddress }\n couponCodes\n }\n }\n";
|
|
74
74
|
export declare const CANCEL_MY_QUOTE = "\n mutation CancelMyQuote($id: ID!, $reason: String) {\n cancelMyQuote(id: $id, reason: $reason) { \n id code channelId customerId currencyCode status\n expiresAt salesRepUserId customerNotes convertedOrderId\n createdAt updatedAt\n lines {\n id productVariantId quantity unitPrice discountType discountValue discountLabel position\n createdAt updatedAt\n }\n }\n }\n";
|
|
75
75
|
export declare const GET_BRANDING = "\n query GetBranding($ids: [ID!]!) {\n activeChannel {\n id\n defaultLanguageCode\n availableLanguageCodes\n defaultCurrencyCode\n }\n fontResources {\n id\n identifier\n kind\n family\n weights\n files {\n id\n source\n preview\n mimeType\n }\n }\n brandingAssets(ids: $ids) {\n id\n source\n preview\n mimeType\n }\n }\n";
|
|
76
|
-
export declare const ACTIVE_CHANNEL_ORDER_CONSTRAINTS = "\n query ActiveChannelOrderConstraints {\n activeChannelOrderConstraints {\n minOrderAmountGross\n minOrderQuantity\n fulfillmentMinOrderNet\n currencyCode\n customerIsExempt\n }\n }\n";
|
|
76
|
+
export declare const ACTIVE_CHANNEL_ORDER_CONSTRAINTS = "\n query ActiveChannelOrderConstraints {\n activeChannelOrderConstraints {\n minOrderAmountGross\n minOrderAmountNet\n minOrderQuantity\n fulfillmentMinOrderNet\n currencyCode\n customerIsExempt\n }\n }\n";
|
|
77
77
|
export declare const MY_ORDER_INVOICES = "\n query MyOrderInvoices($orderCode: String!) {\n myOrderInvoices(orderCode: $orderCode) {\n id invoiceNumber invoicedOn totalWithTax currencyCode languageCode createdAt\n }\n }\n";
|
|
78
78
|
export declare const MY_INVOICE_PDF = "\n query MyInvoicePdf($invoiceId: ID!) {\n myInvoicePdf(invoiceId: $invoiceId) {\n base64 filename invoiceNumber\n }\n }\n";
|
|
79
|
-
export declare const MY_RETURNS = "\n query MyReturns($take: Int, $skip: Int) {\n myReturns(options: { take: $take, skip: $skip }) {\n items { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax refundAmount\n }\n }\n totalItems\n }\n }\n";
|
|
80
|
-
export declare const MY_RETURN = "\n query MyReturn($id: ID!) {\n myReturn(id: $id) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax refundAmount\n }\n }\n }\n";
|
|
81
|
-
export declare const REQUEST_RETURN = "\n mutation RequestReturn(\n $orderId: ID!\n $lines: [ReturnRequestLineInput!]!\n $customerNote: String\n $preferredSettlementMethod: OrderReturnSettlementMethod\n ) {\n requestReturn(\n input: {\n orderId: $orderId\n lines: $lines\n customerNote: $customerNote\n preferredSettlementMethod: $preferredSettlementMethod\n }\n ) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax refundAmount\n }\n }\n }\n";
|
|
82
|
-
export declare const CANCEL_MY_RETURN = "\n mutation CancelMyReturn($id: ID!) {\n cancelMyReturn(id: $id) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax refundAmount\n }\n }\n }\n";
|
|
83
|
-
export declare const RETURNABLE_LINES_FOR_ORDER = "\n query ReturnableLinesForOrder($orderId: ID!) {\n returnableLinesForOrder(orderId: $orderId) {\n orderId eligible reason returnWindowEndsAt\n lines {\n orderLineId\n productVariantId productVariantName productVariantSku\n fulfilledQty returnableQty unitPriceWithTax\n }\n }\n }\n";
|
|
79
|
+
export declare const MY_RETURNS = "\n query MyReturns($take: Int, $skip: Int) {\n myReturns(options: { take: $take, skip: $skip }) {\n items { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax unitPriceWithTaxUnrounded refundAmount\n }\n }\n totalItems\n }\n }\n";
|
|
80
|
+
export declare const MY_RETURN = "\n query MyReturn($id: ID!) {\n myReturn(id: $id) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax unitPriceWithTaxUnrounded refundAmount\n }\n }\n }\n";
|
|
81
|
+
export declare const REQUEST_RETURN = "\n mutation RequestReturn(\n $orderId: ID!\n $lines: [ReturnRequestLineInput!]!\n $customerNote: String\n $preferredSettlementMethod: OrderReturnSettlementMethod\n ) {\n requestReturn(\n input: {\n orderId: $orderId\n lines: $lines\n customerNote: $customerNote\n preferredSettlementMethod: $preferredSettlementMethod\n }\n ) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax unitPriceWithTaxUnrounded refundAmount\n }\n }\n }\n";
|
|
82
|
+
export declare const CANCEL_MY_RETURN = "\n mutation CancelMyReturn($id: ID!) {\n cancelMyReturn(id: $id) { \n id code state\n orderId orderCode currencyCode\n preferredSettlementMethod settlementMethod\n shippingRefundAmount settledAmount\n customerNote requestedAt resolvedAt createdAt\n lines {\n id orderLineId\n productVariantId productVariantName productVariantSku\n requestedQty approvedQty receivedQty restockQty writeOffQty\n reasonCode reasonNote\n unitPriceWithTax unitPriceWithTaxUnrounded refundAmount\n }\n }\n }\n";
|
|
83
|
+
export declare const RETURNABLE_LINES_FOR_ORDER = "\n query ReturnableLinesForOrder($orderId: ID!) {\n returnableLinesForOrder(orderId: $orderId) {\n orderId eligible reason returnWindowEndsAt\n lines {\n orderLineId\n productVariantId productVariantName productVariantSku\n fulfilledQty returnableQty unitPriceWithTax unitPriceWithTaxUnrounded\n }\n }\n }\n";
|
|
84
84
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/commerce/queries.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/commerce/queries.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,WAAW,mqFAyDvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,6pFAyD7B,CAAC;AAEF,eAAO,MAAM,aAAa,mrCAgCzB,CAAC;AAEF,eAAO,MAAM,WAAW,wJAUvB,CAAC;AAIF,eAAO,MAAM,gBAAgB,0aAgB5B,CAAC;AAEF,eAAO,MAAM,cAAc,u/CAqD1B,CAAC;AAIF,eAAO,MAAM,eAAe,ijBAgB3B,CAAC;AA8GF,eAAO,MAAM,YAAY,qsCAIxB,CAAC;AAEF,eAAO,MAAM,WAAW,ukDAUvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,sjDAU7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,40CAO7B,CAAC;AAEF,eAAO,MAAM,YAAY,k+CASxB,CAAC;AAEF,eAAO,MAAM,aAAa,ivCAIzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,gzCAOlC,CAAC;AAOF,eAAO,MAAM,iBAAiB,ooDAa7B,CAAC;AAIF,eAAO,MAAM,YAAY,+/CAUxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,21CAOhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,y1CAO/B,CAAC;AAEF,eAAO,MAAM,yBAAyB,wKAMrC,CAAC;AAEF,eAAO,MAAM,iBAAiB,wdAW7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,o9CAS/B,CAAC;AAEF,eAAO,MAAM,+BAA+B,27CAS3C,CAAC;AAEF,eAAO,MAAM,wBAAwB,yIAMpC,CAAC;AAEF,eAAO,MAAM,+BAA+B,42CAO3C,CAAC;AAEF,eAAO,MAAM,WAAW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yCode stockLevel
|
|
52
52
|
stockOnHand stockAllocated saleable
|
|
53
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
53
54
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
54
55
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
55
56
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -71,7 +72,7 @@ export const GET_PRODUCT = `
|
|
|
71
72
|
translations { languageCode name slug description }
|
|
72
73
|
collections {
|
|
73
74
|
id name slug position
|
|
74
|
-
parent { id }
|
|
75
|
+
parent { id slug }
|
|
75
76
|
translations { languageCode name slug }
|
|
76
77
|
customFields { isRoutable isCanonical }
|
|
77
78
|
}
|
|
@@ -107,6 +108,7 @@ export const GET_PRODUCT_BY_ID = `
|
|
|
107
108
|
id name sku
|
|
108
109
|
price priceWithTax currencyCode stockLevel
|
|
109
110
|
stockOnHand stockAllocated saleable
|
|
111
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
110
112
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
111
113
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
112
114
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -128,7 +130,7 @@ export const GET_PRODUCT_BY_ID = `
|
|
|
128
130
|
translations { languageCode name slug description }
|
|
129
131
|
collections {
|
|
130
132
|
id name slug position
|
|
131
|
-
parent { id }
|
|
133
|
+
parent { id slug }
|
|
132
134
|
translations { languageCode name slug }
|
|
133
135
|
customFields { isRoutable isCanonical }
|
|
134
136
|
}
|
|
@@ -153,6 +155,7 @@ export const LIST_PRODUCTS = `
|
|
|
153
155
|
id name sku
|
|
154
156
|
price priceWithTax currencyCode stockLevel
|
|
155
157
|
stockOnHand stockAllocated saleable
|
|
158
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
156
159
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
157
160
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
158
161
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -162,7 +165,7 @@ export const LIST_PRODUCTS = `
|
|
|
162
165
|
translations { languageCode name slug description }
|
|
163
166
|
collections {
|
|
164
167
|
id name slug position
|
|
165
|
-
parent { id }
|
|
168
|
+
parent { id slug }
|
|
166
169
|
translations { languageCode name slug }
|
|
167
170
|
customFields { isRoutable isCanonical }
|
|
168
171
|
}
|
|
@@ -242,6 +245,7 @@ export const GET_COLLECTION = `
|
|
|
242
245
|
}
|
|
243
246
|
price priceWithTax currencyCode stockLevel
|
|
244
247
|
stockOnHand stockAllocated saleable
|
|
248
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
245
249
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
246
250
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
247
251
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -839,6 +843,7 @@ export const MY_FAVORITES = `
|
|
|
839
843
|
id name sku
|
|
840
844
|
price priceWithTax currencyCode stockLevel
|
|
841
845
|
stockOnHand stockAllocated saleable
|
|
846
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
842
847
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
843
848
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
844
849
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -877,7 +882,7 @@ const CHANNEL_CUSTOM_FIELDS_FRAGMENT = `
|
|
|
877
882
|
legalName vatNumber registrationNumber
|
|
878
883
|
addressLine1 addressLine2 city postalCode province country
|
|
879
884
|
socialLinks
|
|
880
|
-
commercePathPrefix commercePathPrefixTranslations
|
|
885
|
+
commercePathPrefix commercePathPrefixTranslations productPathSegment
|
|
881
886
|
cdnDomain maintenanceMode
|
|
882
887
|
urlLocaleStrategy urlLocalePrefixDefault
|
|
883
888
|
twitterHandle defaultOgImageId llmsTxtEnabled
|
|
@@ -946,6 +951,7 @@ export const GET_PRODUCT_RECOMMENDATIONS = `
|
|
|
946
951
|
id name sku
|
|
947
952
|
price priceWithTax currencyCode stockLevel
|
|
948
953
|
stockOnHand stockAllocated saleable
|
|
954
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
949
955
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
950
956
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
951
957
|
availabilityByLocation { locationId locationName inStock }
|
|
@@ -1070,6 +1076,7 @@ export const ACTIVE_CHANNEL_ORDER_CONSTRAINTS = `
|
|
|
1070
1076
|
query ActiveChannelOrderConstraints {
|
|
1071
1077
|
activeChannelOrderConstraints {
|
|
1072
1078
|
minOrderAmountGross
|
|
1079
|
+
minOrderAmountNet
|
|
1073
1080
|
minOrderQuantity
|
|
1074
1081
|
fulfillmentMinOrderNet
|
|
1075
1082
|
currencyCode
|
|
@@ -1102,7 +1109,7 @@ const RETURN_FIELDS = `
|
|
|
1102
1109
|
productVariantId productVariantName productVariantSku
|
|
1103
1110
|
requestedQty approvedQty receivedQty restockQty writeOffQty
|
|
1104
1111
|
reasonCode reasonNote
|
|
1105
|
-
unitPriceWithTax refundAmount
|
|
1112
|
+
unitPriceWithTax unitPriceWithTaxUnrounded refundAmount
|
|
1106
1113
|
}
|
|
1107
1114
|
`;
|
|
1108
1115
|
export const MY_RETURNS = `
|
|
@@ -1147,7 +1154,7 @@ export const RETURNABLE_LINES_FOR_ORDER = `
|
|
|
1147
1154
|
lines {
|
|
1148
1155
|
orderLineId
|
|
1149
1156
|
productVariantId productVariantName productVariantSku
|
|
1150
|
-
fulfilledQty returnableQty unitPriceWithTax
|
|
1157
|
+
fulfilledQty returnableQty unitPriceWithTax unitPriceWithTaxUnrounded
|
|
1151
1158
|
}
|
|
1152
1159
|
}
|
|
1153
1160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/commerce/queries.ts"],"names":[],"mappings":"AAQA,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bj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,MAAM,CAAC,MAAM,UAAU,GAAG;;;gBAGV,aAAa;;;;CAI5B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;;0BAEC,aAAa;;CAEtC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;UAcpB,aAAa;;CAEtB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;;gCAEA,aAAa;;CAE5C,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;;;;CAWzC,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { HttpClient } from '../core/http.js';
|
|
2
2
|
import type { SavedList } from '../types.js';
|
|
3
|
+
export declare const MY_SAVED_LISTS = "\n query MySavedLists {\n mySavedLists { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
4
|
+
export declare const MY_SAVED_LIST = "\n query MySavedList($id: ID!) {\n mySavedList(id: $id) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
5
|
+
export declare const CREATE_SAVED_LIST = "\n mutation CreateSavedList($name: String!) {\n createSavedList(name: $name) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
6
|
+
export declare const RENAME_SAVED_LIST = "\n mutation RenameSavedList($id: ID!, $name: String!) {\n renameSavedList(id: $id, name: $name) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
7
|
+
export declare const DELETE_SAVED_LIST = "\n mutation DeleteSavedList($id: ID!) {\n deleteSavedList(id: $id)\n }\n";
|
|
8
|
+
export declare const ADD_ITEM_TO_SAVED_LIST = "\n mutation AddItemToSavedList($listId: ID!, $variantId: ID!, $quantity: Int!) {\n addItemToSavedList(listId: $listId, variantId: $variantId, quantity: $quantity) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
9
|
+
export declare const UPDATE_SAVED_LIST_ITEM = "\n mutation UpdateSavedListItem($listId: ID!, $variantId: ID!, $quantity: Int!) {\n updateSavedListItem(listId: $listId, variantId: $variantId, quantity: $quantity) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
10
|
+
export declare const REMOVE_ITEM_FROM_SAVED_LIST = "\n mutation RemoveItemFromSavedList($listId: ID!, $variantId: ID!) {\n removeItemFromSavedList(listId: $listId, variantId: $variantId) { \n id name createdAt updatedAt\n items {\n id productVariantId quantity position createdAt\n productVariant {\n id name sku\n price priceWithTax currencyCode stockLevel saleable\n incomingStock projectedSaleable nextExpectedArrival\n priceListName retailPrice retailPriceWithTax taxRateApplied { value }\n priceTiers { minQuantity price priceWithTax discountLabel }\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n product {\n id name slug\n featuredAsset {\n source\n presets { xs { url webpUrl } }\n }\n }\n options { id name group { name } }\n customFields { minOrderQuantity salesUnit position }\n }\n }\n }\n }\n";
|
|
3
11
|
export declare function createSavedListsMethods(http: HttpClient): {
|
|
4
12
|
getMySavedLists(): Promise<SavedList[]>;
|
|
5
13
|
getMySavedList(id: string): Promise<SavedList | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saved-lists.d.ts","sourceRoot":"","sources":["../../src/commerce/saved-lists.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"saved-lists.d.ts","sourceRoot":"","sources":["../../src/commerce/saved-lists.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA6B7C,eAAO,MAAM,cAAc,qyBAI1B,CAAC;AAEF,eAAO,MAAM,aAAa,szBAIzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,20BAI7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,81BAI7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,kFAI7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,i6BAIlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,m6BAIlC,CAAC;AAEF,eAAO,MAAM,2BAA2B,q4BAIvC,CAAC;AAEF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU;uBAE3B,OAAO,CAAC,SAAS,EAAE,CAAC;uBAKpB,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;0BAK/B,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;wBAK7B,MAAM,QAAQ,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;wBAQzC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;+BAMzC,MAAM,aACH,MAAM,YACP,MAAM,GACf,OAAO,CAAC,SAAS,CAAC;gCAUX,MAAM,aACH,MAAM,YACP,MAAM,GACf,OAAO,CAAC,SAAS,CAAC;oCASiB,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;EAQvF"}
|
|
@@ -5,6 +5,7 @@ const LIST_FIELDS = `
|
|
|
5
5
|
productVariant {
|
|
6
6
|
id name sku
|
|
7
7
|
price priceWithTax currencyCode stockLevel saleable
|
|
8
|
+
incomingStock projectedSaleable nextExpectedArrival
|
|
8
9
|
priceListName retailPrice retailPriceWithTax taxRateApplied { value }
|
|
9
10
|
priceTiers { minQuantity price priceWithTax discountLabel }
|
|
10
11
|
featuredAsset {
|
|
@@ -23,42 +24,42 @@ const LIST_FIELDS = `
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
`;
|
|
26
|
-
const MY_SAVED_LISTS = `
|
|
27
|
+
export const MY_SAVED_LISTS = `
|
|
27
28
|
query MySavedLists {
|
|
28
29
|
mySavedLists { ${LIST_FIELDS} }
|
|
29
30
|
}
|
|
30
31
|
`;
|
|
31
|
-
const MY_SAVED_LIST = `
|
|
32
|
+
export const MY_SAVED_LIST = `
|
|
32
33
|
query MySavedList($id: ID!) {
|
|
33
34
|
mySavedList(id: $id) { ${LIST_FIELDS} }
|
|
34
35
|
}
|
|
35
36
|
`;
|
|
36
|
-
const CREATE_SAVED_LIST = `
|
|
37
|
+
export const CREATE_SAVED_LIST = `
|
|
37
38
|
mutation CreateSavedList($name: String!) {
|
|
38
39
|
createSavedList(name: $name) { ${LIST_FIELDS} }
|
|
39
40
|
}
|
|
40
41
|
`;
|
|
41
|
-
const RENAME_SAVED_LIST = `
|
|
42
|
+
export const RENAME_SAVED_LIST = `
|
|
42
43
|
mutation RenameSavedList($id: ID!, $name: String!) {
|
|
43
44
|
renameSavedList(id: $id, name: $name) { ${LIST_FIELDS} }
|
|
44
45
|
}
|
|
45
46
|
`;
|
|
46
|
-
const DELETE_SAVED_LIST = `
|
|
47
|
+
export const DELETE_SAVED_LIST = `
|
|
47
48
|
mutation DeleteSavedList($id: ID!) {
|
|
48
49
|
deleteSavedList(id: $id)
|
|
49
50
|
}
|
|
50
51
|
`;
|
|
51
|
-
const ADD_ITEM_TO_SAVED_LIST = `
|
|
52
|
+
export const ADD_ITEM_TO_SAVED_LIST = `
|
|
52
53
|
mutation AddItemToSavedList($listId: ID!, $variantId: ID!, $quantity: Int!) {
|
|
53
54
|
addItemToSavedList(listId: $listId, variantId: $variantId, quantity: $quantity) { ${LIST_FIELDS} }
|
|
54
55
|
}
|
|
55
56
|
`;
|
|
56
|
-
const UPDATE_SAVED_LIST_ITEM = `
|
|
57
|
+
export const UPDATE_SAVED_LIST_ITEM = `
|
|
57
58
|
mutation UpdateSavedListItem($listId: ID!, $variantId: ID!, $quantity: Int!) {
|
|
58
59
|
updateSavedListItem(listId: $listId, variantId: $variantId, quantity: $quantity) { ${LIST_FIELDS} }
|
|
59
60
|
}
|
|
60
61
|
`;
|
|
61
|
-
const REMOVE_ITEM_FROM_SAVED_LIST = `
|
|
62
|
+
export const REMOVE_ITEM_FROM_SAVED_LIST = `
|
|
62
63
|
mutation RemoveItemFromSavedList($listId: ID!, $variantId: ID!) {
|
|
63
64
|
removeItemFromSavedList(listId: $listId, variantId: $variantId) { ${LIST_FIELDS} }
|
|
64
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saved-lists.js","sourceRoot":"","sources":["../../src/commerce/saved-lists.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"saved-lists.js","sourceRoot":"","sources":["../../src/commerce/saved-lists.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBnB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;qBAET,WAAW;;CAE/B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG;;6BAEA,WAAW;;CAEvC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;qCAEI,WAAW;;CAE/C,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;8CAEa,WAAW;;CAExD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;CAIhC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG;;wFAEkD,WAAW;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AAsB,EAAE;gBACzF,MAAM;gBACN,SAAS;gBACT,QAAQ;aACT,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,kBAAkB,CAAC;QACjC,CAAC;QAED,KAAK,CAAC,mBAAmB,CACvB,MAAc,EACd,SAAiB,EACjB,QAAgB;YAEhB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAqC,sBAAsB,EAAE;gBAC1F,MAAM;gBACN,SAAS;gBACT,QAAQ;aACT,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,mBAAmB,CAAC;QAClC,CAAC;QAED,KAAK,CAAC,uBAAuB,CAAC,MAAc,EAAE,SAAiB;YAC7D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAC7B,2BAA2B,EAC3B,EAAE,MAAM,EAAE,SAAS,EAAE,CACtB,CAAC;YACF,OAAO,IAAI,CAAC,uBAAuB,CAAC;QACtC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { buildFilteredProductsSearch, type FilteredProductsConfig, type Filtered
|
|
|
4
4
|
export { FORM_FIELD_TYPES, FORM_SLUG_RULES } from './content/form-field-types.js';
|
|
5
5
|
export { MutationError, StorefrontError } from './errors.js';
|
|
6
6
|
export type { AiSummaryInput, BotDirective, BreadcrumbOverrideEntry, CmsItemMetadata, CmsMetaTagsInput, CmsSeoExtras, CollectionForSeo, CollectionMetadata, CollectionMetaTagsInput, CollectionSeoExtras, CommonSeoMetadata, HreflangLink, HreflangLinkTag, HreflangOverrideEntry, LlmsTxtEntryInput, MetaRobots, MetaRobotsFollowDirective, MetaRobotsIndexDirective, MetaRobotsMaxImagePreview, MetaTagsEntityInput, MetaTagsResult, OpenGraphTag, PerBotDirectives, ProductForSeo, ProductMetadata, ProductMetadataAi, ProductMetadataSocial, ProductMetadataTwitter, ProductMetaTagsInput, ProductSeoExtras, QAPair, RawCmsSeo, RawCollectionSeo, RawProductMetadata, RobotsMetaTag, RobotsXRobotsHeader, SeoEntityInput, SeoMeta, SeoModule, SocialOgType, TwitterCardType, TwitterTag, UrlLocaleStrategy, UrlStrategyConfig, } from './seo/index.js';
|
|
7
|
-
export { buildUrl, parseCmsItemMetadata, parseCollectionMetadata, parseProductMetadata, readUrlStrategy, robotsFromFlags, } from './seo/index.js';
|
|
7
|
+
export { buildUrl, DEFAULT_PRODUCT_PATH_SEGMENT, isUserFacingRoot, normalizeProductPathSegment, parseCmsItemMetadata, parseCollectionMetadata, parseProductMetadata, pickCanonicalRootIndex, readUrlStrategy, robotsFromFlags, } from './seo/index.js';
|
|
8
8
|
export type { ActiveChannel, AddressInput, AgeVerificationStatus, Asset, AssetPresetSize, AssetPresets, B2bCreditStatus, BrandingAssetRef, BrandingContact, BrandingFontResource, BrandingIdentity, BrandingInfo, BrandingLegal, BrandingLegalAddress, BrandingSocialLinks, BrandingStorefrontConfig, BrandingTheme, Breadcrumb, ChannelInfo, CmsAsset, CmsAssetTranslation, Collection, CollectionDetail, CollectionFieldDefinition, CollectionListOptions, CollectionPageValues, CollectionProductListOptions, CollectionProductSummary, CollectionProductVariant, CommerceModule, ContentItemSummary, ContentItemWithFields, ContentModule, ContentQueryOptions, ContentSearchHit, ContentSearchQuery, ContentSearchResult, ContentStrings, ConvertedAmount, Country, CreateMolliePaymentIntentInput, CreateQuoteRequestInput, CreateReviewInput, CreateReviewResult, CreditBalanceSource, CreditModule, CurrencyModule, Customer, CustomerAddress, CustomerDeliveryTerms, CustomerGroup, CustomerInput, CustomerPaymentTerms, CustomerPriceList, CustomerReturn, CustomerReturnEligibility, CustomerReturnLine, CustomerReturnList, CustomerReturnListOptions, CustomerReturnReasonCode, CustomerReturnSettlementMethod, CustomerReturnState, CustomerSubscription, CustomerSubscriptionStatus, DeliveryAdvice, DeliveryOption, DeliveryOptionsInput, DeliverySelectionSource, DeliveryTermsStatus, DeliveryTimeFrame, DisplayPrice, DropOffPoint, DropOffPointInput, ExchangeRate, Facet, FacetValue, FacetValueFilterInput, FavoriteItem, FavoriteVariant, FormDefinition, FormField, FormFieldTypeConstraint, FormFieldTypeDescriptor, FormFieldTypeRegistry, FormListOptions, FormListResult, FormSlugRule, FormSlugRules, FormSubmissionResult, FormSummary, FormTranslation, LoginResult, MediaModule, Menu, MenuItem, MollieOrderStatusResult, MolliePaymentIntentResult, MolliePaymentMethod, MolliePaymentMethodAmount, MolliePaymentMethodsInput, MyPaymentMandate, NavigationModule, OptionGroup, Order, OrderAddress, OrderDeliveryTermsSnapshot, OrderedMollieMethod, OrderLine, OrderListOptions, OrderPayment, OrderPaymentTermsSnapshot, OrderSummary, OrderValidationError, OrderValidationResult, PaginatedList, PaymentInput, PaymentMethod, PaymentTermsClassification, PaymentTermsStatus, PresetName, PriceDisplay, PriceTier, PricingModule, Product, ProductListOptions, ProductOption, ProductPropertyGroupValues, ProductPropertyRecord, ProductReview, ProductSummary, ProductVariant, Property, PropertyConfig, PropertyFieldFacet, PropertyGroup, PropertyGroupTranslation, PropertyTranslation, PropertyValue, PublicProductDocument, Quote, QuoteLine, QuoteList, QuoteListOptions, QuoteStatus, RecommendedProductGroup, RegisterInput, RequestOptions, RequestReturnInput, RequestReturnLineInput, ResolvedContent, ResponsiveImageData, RetryConfig, ReturnableOrderLine, ReviewAttribute, ReviewAttributeAggregation, ReviewChannelConfig, ReviewListOptions, ReviewMediaUploadResult, ReviewRatingDistribution, ReviewRatingSummary, RouteEntry, RoutesResponse, SavedList, SavedListItem, SearchFacetValue, SearchInput, SearchResult, SearchResultItem, SetupPaymentMandateResult, ShipmentTrackingHistoryEntry, ShipmentTrackingInfo, ShippingLine, ShippingMethod, SitemapEntry, StoreContext, StorefrontClient, StorefrontClientConfig, StripePaymentIntentResult, SubscriptionPlanPublic, TaxDisplayMode, TierTableEntry, UpdateAddressInput, UpdateCustomerInput, UpdateReviewInput, VariantPriceData, VatValidationResult, VendureAssetDescriptionTranslation, } from './types.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EACV,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,OAAO,EACP,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACx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AC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,sBAAsB,EAC3B,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EACV,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,OAAO,EACP,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,G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kCAAkC,GACnC,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,5 @@ export { DEFAULT_CMS_URL, DEFAULT_PLUGINS_URL, DEFAULT_VENDURE_URL, RESERVED_STO
|
|
|
3
3
|
export { buildFilteredProductsSearch, } from './content/filtered-products.js';
|
|
4
4
|
export { FORM_FIELD_TYPES, FORM_SLUG_RULES } from './content/form-field-types.js';
|
|
5
5
|
export { MutationError, StorefrontError } from './errors.js';
|
|
6
|
-
export { buildUrl, parseCmsItemMetadata, parseCollectionMetadata, parseProductMetadata, readUrlStrategy, robotsFromFlags, } from './seo/index.js';
|
|
6
|
+
export { buildUrl, DEFAULT_PRODUCT_PATH_SEGMENT, isUserFacingRoot, normalizeProductPathSegment, parseCmsItemMetadata, parseCollectionMetadata, parseProductMetadata, pickCanonicalRootIndex, readUrlStrategy, robotsFromFlags, } from './seo/index.js';
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EAEzB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,GAG5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA+C7D,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EAEzB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,2BAA2B,GAG5B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA+C7D,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
|
package/dist/media/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MediaModule, StoreContext } from '../types.js';
|
|
2
|
-
export { DEFAULT_PRESET, getPresetUrl, getResponsiveImageData, isRasterImage, PRESETS, RASTER_MIME_TYPES, } from './urls.js';
|
|
2
|
+
export { createAssetUrlResolver, createContextAssetUrlResolver, DEFAULT_PRESET, getPresetUrl, getResponsiveImageData, isRasterImage, PRESETS, RASTER_MIME_TYPES, } from './urls.js';
|
|
3
3
|
export { getEmbedUrl, getThumbnailUrl, getVideoEmbedHtml, type ParsedVideo, parseVideoUrl, type VideoProvider, type VideoSource, type VideoValue, } from './video.js';
|
|
4
4
|
export declare function createMediaModule(ctx: StoreContext): MediaModule;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,OAAO,EACP,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,OAAO,EACP,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,YAAY,GAAG,WAAW,CAgChE"}
|
package/dist/media/index.js
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { getPresetUrl, getResponsiveImageData
|
|
2
|
-
export { DEFAULT_PRESET, getPresetUrl, getResponsiveImageData, isRasterImage, PRESETS, RASTER_MIME_TYPES, } from './urls.js';
|
|
1
|
+
import { createContextAssetUrlResolver, getPresetUrl, getResponsiveImageData } from './urls.js';
|
|
2
|
+
export { createAssetUrlResolver, createContextAssetUrlResolver, DEFAULT_PRESET, getPresetUrl, getResponsiveImageData, isRasterImage, PRESETS, RASTER_MIME_TYPES, } from './urls.js';
|
|
3
3
|
export { getEmbedUrl, getThumbnailUrl, getVideoEmbedHtml, parseVideoUrl, } from './video.js';
|
|
4
4
|
export function createMediaModule(ctx) {
|
|
5
|
-
const
|
|
6
|
-
function resolveUrl(path) {
|
|
7
|
-
if (!path)
|
|
8
|
-
return '';
|
|
9
|
-
if (path.startsWith('http://') || path.startsWith('https://'))
|
|
10
|
-
return path;
|
|
11
|
-
let clean = path.replace(/^\/+/, '');
|
|
12
|
-
if (channelPrefix && clean.startsWith(channelPrefix)) {
|
|
13
|
-
clean = clean.slice(channelPrefix.length);
|
|
14
|
-
}
|
|
15
|
-
return makeAssetUrl(ctx.cdnUrl, clean);
|
|
16
|
-
}
|
|
5
|
+
const resolveUrl = createContextAssetUrlResolver(ctx);
|
|
17
6
|
return {
|
|
18
7
|
assetUrl: resolveUrl,
|
|
19
8
|
getFullUrl(asset) {
|
package/dist/media/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/media/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEhG,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,OAAO,EACP,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,eAAe,EACf,iBAAiB,EAEjB,aAAa,GAId,MAAM,YAAY,CAAC;AAEpB,MAAM,UAAU,iBAAiB,CAAC,GAAiB;IACjD,MAAM,UAAU,GAAG,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAEtD,OAAO;QACL,QAAQ,EAAE,UAAU;QACpB,UAAU,CAAC,KAAK;YAGd,OAAO,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,CAAC;QACD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM;YAChC,OAAO,UAAU,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACzD,CAAC;QACD,sBAAsB,CAAC,KAAK,EAAE,OAAO;YACnC,MAAM,IAAI,GAAG,sBAAsB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;YACpD,OAAO;gBACL,GAAG,IAAI;gBACP,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;gBACzB,MAAM,EAAE,IAAI,CAAC,MAAM;oBACjB,CAAC,CAAC,IAAI,CAAC,MAAM;yBACR,KAAK,CAAC,IAAI,CAAC;yBACX,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;wBACb,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;wBACzC,MAAM,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;wBACtC,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;wBAC1C,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,UAAU,EAAE,CAAC;oBAC3C,CAAC,CAAC;yBACD,IAAI,CAAC,IAAI,CAAC;oBACf,CAAC,CAAC,EAAE;aACP,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/media/urls.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Asset, PresetName, ResponsiveImageData } from '../types.js';
|
|
1
|
+
import type { Asset, PresetName, ResponsiveImageData, StoreContext } from '../types.js';
|
|
2
2
|
export declare const PRESETS: {
|
|
3
3
|
readonly xxs: {
|
|
4
4
|
readonly width: 50;
|
|
@@ -29,6 +29,9 @@ export declare const DEFAULT_PRESET: PresetName;
|
|
|
29
29
|
export declare const RASTER_MIME_TYPES: Set<string>;
|
|
30
30
|
export declare function isRasterImage(mimeType: string): boolean;
|
|
31
31
|
export declare function makeAssetUrl(cdnUrl: string, path: string): string;
|
|
32
|
+
export type AssetUrlResolver = (path: string | null | undefined) => string;
|
|
33
|
+
export declare function createAssetUrlResolver(cdnUrl: string, channelPrefix: string | null): AssetUrlResolver;
|
|
34
|
+
export declare function createContextAssetUrlResolver(ctx: StoreContext): AssetUrlResolver;
|
|
32
35
|
export declare function getPresetUrl(asset: Asset, preset: PresetName, format?: 'original' | 'webp'): string;
|
|
33
36
|
export declare function getResponsiveImageData(asset: Asset, presets?: PresetName[]): ResponsiveImageData;
|
|
34
37
|
//# sourceMappingURL=urls.d.ts.map
|
package/dist/media/urls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../../src/media/urls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"urls.d.ts","sourceRoot":"","sources":["../../src/media/urls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAWxF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CAOV,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,UAAgB,CAAC;AAG9C,eAAO,MAAM,iBAAiB,aAU5B,CAAC;AAEH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEvD;AAMD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAIjE;AAkBD,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,KAAK,MAAM,CAAC;AAE3E,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,gBAAgB,CAUlB;AAWD,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,YAAY,GAAG,gBAAgB,CAEjF;AAMD,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,EAClB,MAAM,GAAE,UAAU,GAAG,MAAe,GACnC,MAAM,CAQR;AAWD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,GAAG,mBAAmB,CA+ChG"}
|
package/dist/media/urls.js
CHANGED
|
@@ -28,6 +28,22 @@ export function makeAssetUrl(cdnUrl, path) {
|
|
|
28
28
|
return path;
|
|
29
29
|
return `${cdnUrl}/${path.replace(/^\/+/, '')}`;
|
|
30
30
|
}
|
|
31
|
+
export function createAssetUrlResolver(cdnUrl, channelPrefix) {
|
|
32
|
+
return (path) => {
|
|
33
|
+
if (!path)
|
|
34
|
+
return '';
|
|
35
|
+
if (path.startsWith('http://') || path.startsWith('https://'))
|
|
36
|
+
return path;
|
|
37
|
+
let clean = path.replace(/^\/+/, '');
|
|
38
|
+
if (channelPrefix && clean.startsWith(channelPrefix)) {
|
|
39
|
+
clean = clean.slice(channelPrefix.length);
|
|
40
|
+
}
|
|
41
|
+
return makeAssetUrl(cdnUrl, clean);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function createContextAssetUrlResolver(ctx) {
|
|
45
|
+
return createAssetUrlResolver(ctx.cdnUrl, ctx.channelCdnDomain ? `${ctx.channel.code}/` : null);
|
|
46
|
+
}
|
|
31
47
|
export function getPresetUrl(asset, preset, format = 'webp') {
|
|
32
48
|
const presets = asset.presets;
|
|
33
49
|
if (!presets)
|