@sixtyninecommerce/client 0.29.0 → 0.31.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 +556 -16
- package/dist/admin/http.d.ts.map +1 -1
- package/dist/admin/http.js.map +1 -1
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/build-client.d.ts +9 -0
- package/dist/build-client.d.ts.map +1 -0
- package/dist/build-client.js +58 -0
- package/dist/build-client.js.map +1 -0
- package/dist/cache-tags.d.ts +35 -1
- package/dist/cache-tags.d.ts.map +1 -1
- package/dist/cache-tags.js +39 -1
- package/dist/cache-tags.js.map +1 -1
- package/dist/client.d.ts +25 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +9 -62
- package/dist/client.js.map +1 -1
- package/dist/commerce/age-verification.d.ts +7 -4
- package/dist/commerce/age-verification.d.ts.map +1 -1
- package/dist/commerce/age-verification.js +6 -4
- package/dist/commerce/age-verification.js.map +1 -1
- package/dist/commerce/arguments.d.ts +13 -0
- package/dist/commerce/arguments.d.ts.map +1 -0
- package/dist/commerce/arguments.js +19 -0
- package/dist/commerce/arguments.js.map +1 -0
- package/dist/commerce/branding.d.ts.map +1 -1
- package/dist/commerce/branding.js.map +1 -1
- package/dist/commerce/capabilities.d.ts +40 -0
- package/dist/commerce/capabilities.d.ts.map +1 -0
- package/dist/commerce/capabilities.js +41 -0
- package/dist/commerce/capabilities.js.map +1 -0
- package/dist/commerce/cart.d.ts +9 -12
- package/dist/commerce/cart.d.ts.map +1 -1
- package/dist/commerce/cart.js +6 -1
- package/dist/commerce/cart.js.map +1 -1
- package/dist/commerce/checkout.d.ts +95 -15
- package/dist/commerce/checkout.d.ts.map +1 -1
- package/dist/commerce/checkout.js +230 -10
- package/dist/commerce/checkout.js.map +1 -1
- package/dist/commerce/customer.d.ts +82 -38
- package/dist/commerce/customer.d.ts.map +1 -1
- package/dist/commerce/customer.js +146 -10
- package/dist/commerce/customer.js.map +1 -1
- package/dist/commerce/favorites.d.ts +2 -5
- package/dist/commerce/favorites.d.ts.map +1 -1
- package/dist/commerce/favorites.js.map +1 -1
- package/dist/commerce/index.d.ts +189 -133
- package/dist/commerce/index.d.ts.map +1 -1
- package/dist/commerce/index.js +9 -0
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/order-states.d.ts +18 -0
- package/dist/commerce/order-states.d.ts.map +1 -0
- package/dist/commerce/order-states.js +30 -0
- package/dist/commerce/order-states.js.map +1 -0
- package/dist/commerce/parcel-pricing.d.ts +48 -0
- package/dist/commerce/parcel-pricing.d.ts.map +1 -0
- package/dist/commerce/parcel-pricing.js +39 -0
- package/dist/commerce/parcel-pricing.js.map +1 -0
- package/dist/commerce/parked-orders.d.ts +22 -0
- package/dist/commerce/parked-orders.d.ts.map +1 -0
- package/dist/commerce/parked-orders.js +47 -0
- package/dist/commerce/parked-orders.js.map +1 -0
- package/dist/commerce/payments.d.ts +12 -5
- package/dist/commerce/payments.d.ts.map +1 -1
- package/dist/commerce/payments.js +10 -1
- package/dist/commerce/payments.js.map +1 -1
- package/dist/commerce/placement-error.d.ts +17 -0
- package/dist/commerce/placement-error.d.ts.map +1 -1
- package/dist/commerce/placement-error.js.map +1 -1
- package/dist/commerce/products.d.ts +92 -38
- package/dist/commerce/products.d.ts.map +1 -1
- package/dist/commerce/products.js +162 -123
- package/dist/commerce/products.js.map +1 -1
- package/dist/commerce/queries.d.ts +204 -49
- package/dist/commerce/queries.d.ts.map +1 -1
- package/dist/commerce/queries.js +1296 -737
- package/dist/commerce/queries.js.map +1 -1
- package/dist/commerce/quotes.d.ts +5 -4
- package/dist/commerce/quotes.d.ts.map +1 -1
- package/dist/commerce/quotes.js +1 -36
- package/dist/commerce/quotes.js.map +1 -1
- package/dist/commerce/recommendations.d.ts +3 -3
- package/dist/commerce/recommendations.d.ts.map +1 -1
- package/dist/commerce/recommendations.js +3 -1
- package/dist/commerce/recommendations.js.map +1 -1
- package/dist/commerce/returns.d.ts +7 -6
- package/dist/commerce/returns.d.ts.map +1 -1
- package/dist/commerce/returns.js.map +1 -1
- package/dist/commerce/reviews.d.ts +24 -15
- package/dist/commerce/reviews.d.ts.map +1 -1
- package/dist/commerce/reviews.js +67 -50
- package/dist/commerce/reviews.js.map +1 -1
- package/dist/commerce/saved-lists.d.ts +15 -15
- package/dist/commerce/saved-lists.d.ts.map +1 -1
- package/dist/commerce/saved-lists.js +67 -55
- package/dist/commerce/saved-lists.js.map +1 -1
- package/dist/commerce/search.d.ts +3 -2
- package/dist/commerce/search.d.ts.map +1 -1
- package/dist/commerce/search.js +10 -2
- package/dist/commerce/search.js.map +1 -1
- package/dist/commerce/shipping.d.ts +11 -4
- package/dist/commerce/shipping.d.ts.map +1 -1
- package/dist/commerce/shipping.js +17 -2
- package/dist/commerce/shipping.js.map +1 -1
- package/dist/commerce/stock-notifications.d.ts +2 -0
- package/dist/commerce/stock-notifications.d.ts.map +1 -1
- package/dist/commerce/stock-notifications.js +2 -2
- package/dist/commerce/stock-notifications.js.map +1 -1
- package/dist/commerce/subscriptions.d.ts +35 -37
- package/dist/commerce/subscriptions.d.ts.map +1 -1
- package/dist/commerce/subscriptions.js +159 -120
- package/dist/commerce/subscriptions.js.map +1 -1
- package/dist/commerce/vat-validation.d.ts +6 -3
- package/dist/commerce/vat-validation.d.ts.map +1 -1
- package/dist/commerce/vat-validation.js +24 -19
- package/dist/commerce/vat-validation.js.map +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/content/assets.d.ts +5 -4
- package/dist/content/assets.d.ts.map +1 -1
- package/dist/content/assets.js.map +1 -1
- package/dist/content/collection-pages.d.ts +3 -2
- package/dist/content/collection-pages.d.ts.map +1 -1
- package/dist/content/collection-pages.js.map +1 -1
- package/dist/content/collections.d.ts +5 -4
- package/dist/content/collections.d.ts.map +1 -1
- package/dist/content/collections.js.map +1 -1
- package/dist/content/filtered-products.d.ts.map +1 -1
- package/dist/content/filtered-products.js.map +1 -1
- package/dist/content/form-field-types.d.ts +3 -3
- package/dist/content/form-field-types.d.ts.map +1 -1
- package/dist/content/form-field-types.js.map +1 -1
- package/dist/content/forms.d.ts +4 -3
- package/dist/content/forms.d.ts.map +1 -1
- package/dist/content/forms.js +3 -0
- package/dist/content/forms.js.map +1 -1
- package/dist/content/index.d.ts +18 -17
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/items.d.ts +5 -4
- package/dist/content/items.d.ts.map +1 -1
- package/dist/content/items.js +2 -0
- package/dist/content/items.js.map +1 -1
- package/dist/content/menus.d.ts +3 -2
- package/dist/content/menus.d.ts.map +1 -1
- package/dist/content/menus.js +7 -1
- package/dist/content/menus.js.map +1 -1
- package/dist/content/resolve.d.ts +3 -2
- package/dist/content/resolve.d.ts.map +1 -1
- package/dist/content/resolve.js +1 -1
- package/dist/content/resolve.js.map +1 -1
- package/dist/content/sitemap.d.ts +3 -2
- package/dist/content/sitemap.d.ts.map +1 -1
- package/dist/content/sitemap.js.map +1 -1
- package/dist/content/strings.d.ts +16 -2
- package/dist/content/strings.d.ts.map +1 -1
- package/dist/content/strings.js +32 -4
- package/dist/content/strings.js.map +1 -1
- package/dist/core/context.d.ts +127 -1
- package/dist/core/context.d.ts.map +1 -1
- package/dist/core/context.js +436 -45
- package/dist/core/context.js.map +1 -1
- package/dist/core/currency.d.ts +14 -0
- package/dist/core/currency.d.ts.map +1 -0
- package/dist/core/currency.js +52 -0
- package/dist/core/currency.js.map +1 -0
- package/dist/core/deprecation.d.ts +23 -0
- package/dist/core/deprecation.d.ts.map +1 -0
- package/dist/core/deprecation.js +81 -0
- package/dist/core/deprecation.js.map +1 -0
- package/dist/core/http.d.ts +15 -1
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +55 -3
- package/dist/core/http.js.map +1 -1
- package/dist/core/public-artifact.d.ts +72 -0
- package/dist/core/public-artifact.d.ts.map +1 -0
- package/dist/core/public-artifact.js +122 -0
- package/dist/core/public-artifact.js.map +1 -0
- package/dist/core/unknown-field-rejection.d.ts +18 -0
- package/dist/core/unknown-field-rejection.d.ts.map +1 -0
- package/dist/core/unknown-field-rejection.js +37 -0
- package/dist/core/unknown-field-rejection.js.map +1 -0
- package/dist/credit/credit-status.d.ts +2 -0
- package/dist/credit/credit-status.d.ts.map +1 -1
- package/dist/credit/credit-status.js +71 -19
- package/dist/credit/credit-status.js.map +1 -1
- package/dist/credit/index.d.ts +1 -1
- package/dist/credit/payment-terms.d.ts +3 -3
- package/dist/credit/payment-terms.d.ts.map +1 -1
- package/dist/credit/payment-terms.js +28 -24
- package/dist/credit/payment-terms.js.map +1 -1
- package/dist/currency/exchange.d.ts +7 -7
- package/dist/currency/exchange.d.ts.map +1 -1
- package/dist/currency/exchange.js +5 -1
- package/dist/currency/exchange.js.map +1 -1
- package/dist/errors.d.ts +17 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +13 -0
- package/dist/errors.js.map +1 -1
- package/dist/events/index.d.ts +20 -7
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +17 -5
- package/dist/events/index.js.map +1 -1
- package/dist/events/payloads.d.ts +7 -4
- package/dist/events/payloads.d.ts.map +1 -1
- package/dist/events/payloads.js +6 -3
- package/dist/events/payloads.js.map +1 -1
- package/dist/feeds/index.d.ts +5 -0
- package/dist/feeds/index.d.ts.map +1 -0
- package/dist/feeds/index.js +12 -0
- package/dist/feeds/index.js.map +1 -0
- package/dist/feeds/types.d.ts +18 -0
- package/dist/feeds/types.d.ts.map +1 -0
- package/dist/feeds/types.js +8 -0
- package/dist/feeds/types.js.map +1 -0
- package/dist/generated/cms.d.ts +2136 -0
- package/dist/generated/cms.d.ts.map +1 -0
- package/dist/generated/cms.js +4 -0
- package/dist/generated/cms.js.map +1 -0
- package/dist/generated/plugins.d.ts +550 -0
- package/dist/generated/plugins.d.ts.map +1 -0
- package/dist/generated/plugins.js +4 -0
- package/dist/generated/plugins.js.map +1 -0
- package/dist/generated/shop.d.ts +5539 -0
- package/dist/generated/shop.d.ts.map +1 -0
- package/dist/generated/shop.js +5 -0
- package/dist/generated/shop.js.map +1 -0
- package/dist/graphql-document.d.ts +29 -0
- package/dist/graphql-document.d.ts.map +1 -0
- package/dist/graphql-document.js +21 -0
- package/dist/graphql-document.js.map +1 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/media/urls.d.ts.map +1 -1
- package/dist/media/urls.js +12 -1
- package/dist/media/urls.js.map +1 -1
- package/dist/media/video.d.ts.map +1 -1
- package/dist/media/video.js.map +1 -1
- package/dist/multi-store.d.ts +200 -0
- package/dist/multi-store.d.ts.map +1 -0
- package/dist/multi-store.js +558 -0
- package/dist/multi-store.js.map +1 -0
- package/dist/navigation/routes.d.ts +4 -3
- package/dist/navigation/routes.d.ts.map +1 -1
- package/dist/navigation/routes.js.map +1 -1
- package/dist/next/artifact-handler.d.ts +21 -13
- package/dist/next/artifact-handler.d.ts.map +1 -1
- package/dist/next/artifact-handler.js +28 -66
- package/dist/next/artifact-handler.js.map +1 -1
- package/dist/next/event-revalidate-handler.d.ts +26 -6
- package/dist/next/event-revalidate-handler.d.ts.map +1 -1
- package/dist/next/event-revalidate-handler.js +126 -19
- package/dist/next/event-revalidate-handler.js.map +1 -1
- package/dist/next/feed-handler.d.ts +50 -0
- package/dist/next/feed-handler.d.ts.map +1 -0
- package/dist/next/feed-handler.js +61 -0
- package/dist/next/feed-handler.js.map +1 -0
- package/dist/next/index.d.ts +3 -1
- package/dist/next/index.d.ts.map +1 -1
- package/dist/next/index.js +1 -0
- package/dist/next/index.js.map +1 -1
- package/dist/next/metadata.d.ts.map +1 -1
- package/dist/next/metadata.js.map +1 -1
- package/dist/next/redirect-middleware.d.ts +5 -31
- package/dist/next/redirect-middleware.d.ts.map +1 -1
- package/dist/next/redirect-middleware.js +4 -46
- package/dist/next/redirect-middleware.js.map +1 -1
- package/dist/next/revalidate-handler.d.ts.map +1 -1
- package/dist/next/revalidate-handler.js.map +1 -1
- package/dist/pricing/index.d.ts +1 -1
- package/dist/pricing/index.d.ts.map +1 -1
- package/dist/pricing/index.js +5 -2
- package/dist/pricing/index.js.map +1 -1
- package/dist/pricing/tax-display.js +1 -1
- package/dist/pricing/tax-display.js.map +1 -1
- package/dist/pricing/tiers.d.ts +3 -2
- package/dist/pricing/tiers.d.ts.map +1 -1
- package/dist/pricing/tiers.js.map +1 -1
- package/dist/pricing/validation.d.ts +152 -13
- package/dist/pricing/validation.d.ts.map +1 -1
- package/dist/pricing/validation.js +167 -13
- package/dist/pricing/validation.js.map +1 -1
- package/dist/redirects/index.d.ts.map +1 -1
- package/dist/redirects/index.js +2 -1
- package/dist/redirects/index.js.map +1 -1
- package/dist/redirects/store.d.ts.map +1 -1
- package/dist/redirects/store.js +6 -2
- package/dist/redirects/store.js.map +1 -1
- package/dist/redirects/types.d.ts +5 -2
- package/dist/redirects/types.d.ts.map +1 -1
- package/dist/revalidation/event-plan.d.ts +55 -4
- package/dist/revalidation/event-plan.d.ts.map +1 -1
- package/dist/revalidation/event-plan.js +115 -8
- package/dist/revalidation/event-plan.js.map +1 -1
- package/dist/revalidation/event-verify.d.ts +8 -37
- package/dist/revalidation/event-verify.d.ts.map +1 -1
- package/dist/revalidation/event-verify.js +7 -97
- package/dist/revalidation/event-verify.js.map +1 -1
- package/dist/revalidation/types.d.ts.map +1 -1
- package/dist/revalidation/url-context.d.ts +17 -0
- package/dist/revalidation/url-context.d.ts.map +1 -1
- package/dist/revalidation/url-context.js +35 -2
- package/dist/revalidation/url-context.js.map +1 -1
- package/dist/seo/ai.d.ts.map +1 -1
- package/dist/seo/ai.js.map +1 -1
- package/dist/seo/artifacts.d.ts +86 -4
- package/dist/seo/artifacts.d.ts.map +1 -1
- package/dist/seo/artifacts.js +115 -16
- package/dist/seo/artifacts.js.map +1 -1
- package/dist/seo/availability.d.ts +95 -0
- package/dist/seo/availability.d.ts.map +1 -0
- package/dist/seo/availability.js +89 -0
- package/dist/seo/availability.js.map +1 -0
- package/dist/seo/index.d.ts +4 -0
- package/dist/seo/index.d.ts.map +1 -1
- package/dist/seo/index.js +6 -1
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/json-ld.d.ts.map +1 -1
- package/dist/seo/json-ld.js +34 -1
- package/dist/seo/json-ld.js.map +1 -1
- package/dist/seo/meta-tags.d.ts +40 -1
- package/dist/seo/meta-tags.d.ts.map +1 -1
- package/dist/seo/meta-tags.js +8 -1
- package/dist/seo/meta-tags.js.map +1 -1
- package/dist/seo/metadata-parser.d.ts.map +1 -1
- package/dist/seo/metadata-parser.js.map +1 -1
- package/dist/seo/metadata-types.d.ts.map +1 -1
- package/dist/seo/robots.d.ts.map +1 -1
- package/dist/seo/robots.js.map +1 -1
- package/dist/seo/types.d.ts +20 -2
- package/dist/seo/types.d.ts.map +1 -1
- package/dist/seo/url-builder.d.ts +5 -3
- package/dist/seo/url-builder.d.ts.map +1 -1
- package/dist/seo/url-builder.js +3 -1
- package/dist/seo/url-builder.js.map +1 -1
- package/dist/types.d.ts +1306 -2429
- package/dist/types.d.ts.map +1 -1
- package/dist/web/artifact-responder.d.ts +69 -0
- package/dist/web/artifact-responder.d.ts.map +1 -0
- package/dist/web/artifact-responder.js +90 -0
- package/dist/web/artifact-responder.js.map +1 -0
- package/dist/web/feed-responder.d.ts +72 -0
- package/dist/web/feed-responder.d.ts.map +1 -0
- package/dist/web/feed-responder.js +81 -0
- package/dist/web/feed-responder.js.map +1 -0
- package/dist/web/index.d.ts +23 -0
- package/dist/web/index.d.ts.map +1 -0
- package/dist/web/index.js +19 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/redirect-middleware.d.ts +76 -0
- package/dist/web/redirect-middleware.d.ts.map +1 -0
- package/dist/web/redirect-middleware.js +94 -0
- package/dist/web/redirect-middleware.js.map +1 -0
- package/dist/web/respond.d.ts +20 -0
- package/dist/web/respond.d.ts.map +1 -0
- package/dist/web/respond.js +52 -0
- package/dist/web/respond.js.map +1 -0
- package/package.json +19 -3
|
@@ -1,6 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
/** The merchant publication state — the same three fields wherever it is read. */
|
|
2
|
+
export declare const PRODUCT_AVAILABILITY_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
3
|
+
export declare const PRICE_TIER_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
4
|
+
export declare const VARIANT_LOCATION_AVAILABILITY_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
5
|
+
export declare const FACET_VALUE_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
6
|
+
/**
|
|
7
|
+
* A product's collections, as canonical/hreflang resolution reads them.
|
|
8
|
+
*
|
|
9
|
+
* The parent's `slug` is load-bearing: a top-level collection is parented to
|
|
10
|
+
* the `__root_collection__` SENTINEL (Vendure resolves `parent` to null only
|
|
11
|
+
* when the real parent is PRIVATE), so the slug is what tells "root" from
|
|
12
|
+
* "nested" — see `isUserFacingRoot`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const COLLECTION_REF_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
15
|
+
/**
|
|
16
|
+
* `Product.metadata` (vendure-plugin-product-metadata). The server already
|
|
17
|
+
* picks the active-language translation and composes `metaRobots` +
|
|
18
|
+
* `resolvedBotDirectives` — the SDK only validates and type-narrows the
|
|
19
|
+
* JSON-scalar fields at the boundary (`parseProductMetadata`).
|
|
20
|
+
*/
|
|
21
|
+
export declare const PRODUCT_METADATA_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
22
|
+
/** A variant as the product DETAIL read returns it. */
|
|
23
|
+
export declare const PRODUCT_VARIANT_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
24
|
+
/** The product DETAIL read (`getProduct`, `getProductById`). */
|
|
25
|
+
export declare const PRODUCT_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
26
|
+
/** A row of the full product LIST (`getProducts`, the default `detail`). */
|
|
27
|
+
export declare const PRODUCT_SUMMARY_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
4
28
|
/**
|
|
5
29
|
* The card selection: what a product GRID tile renders, and nothing else.
|
|
6
30
|
*
|
|
@@ -29,15 +53,27 @@ export declare const LIST_PRODUCTS = "\n query ListProducts($options: ProductLi
|
|
|
29
53
|
* the default everywhere — and an anonymous visitor cost neither). A grid
|
|
30
54
|
* that must not label a backorderable SKU "out of stock" pays that either
|
|
31
55
|
* way: asking for it in a second document would cost the same.
|
|
56
|
+
* - `availability` — the merchant publication state. A grid is exactly where
|
|
57
|
+
* a coming-soon or pre-orderable SKU must not read "out of stock", and the
|
|
58
|
+
* card has no other signal for it: `stockLevel`/`saleable` say 0 for both.
|
|
59
|
+
* One batched product read per request for the whole page (variants with
|
|
60
|
+
* their own state cost nothing extra), and unlike `backorderAllowance` it
|
|
61
|
+
* is buyer-independent, so a cached grid keeps working.
|
|
32
62
|
* - The whole `collections { … parent … translations … customFields }` block
|
|
33
63
|
* and `translations { languageCode name slug }` — `pickCanonicalRoot` /
|
|
34
64
|
* `isUserFacingRoot` (src/seo) derive a product's canonical URL from
|
|
35
65
|
* `customFields.isCanonical` + `parent.slug` + `position`, and its localized
|
|
36
66
|
* slug from the translations. A card row still satisfies `ProductForSeo`
|
|
37
67
|
* structurally, so omitting these does not fail to compile — it silently
|
|
38
|
-
* hands every product the FLAT path.
|
|
39
|
-
*
|
|
40
|
-
*
|
|
68
|
+
* hands every product the FLAT path. Cost: a constant number of queries per
|
|
69
|
+
* page, not per row. The platform batches `Product.collections` for every
|
|
70
|
+
* product of the page into ONE statement and `parent` for every listed
|
|
71
|
+
* collection into one more (`services/vendure/src/collection-batching`),
|
|
72
|
+
* and `translations` / `customFields` come back in those same rows. Core
|
|
73
|
+
* Vendure alone ran one query per product plus one per listed collection
|
|
74
|
+
* — measured 419 statements for an 80-product page, 2 with the batching.
|
|
75
|
+
* Not batched: `featuredAsset`, `children`, `breadcrumbs` or
|
|
76
|
+
* `productVariants` under `collections` still cost a query per collection.
|
|
41
77
|
* - `priceTiers` — the SDK's own `getPriceDisplay()` reads
|
|
42
78
|
* `variant.priceTiers?.length ? … : null`, so an ABSENT ladder is
|
|
43
79
|
* indistinguishable from "this variant has no tiers": a tile would quietly
|
|
@@ -51,34 +87,110 @@ export declare const LIST_PRODUCTS = "\n query ListProducts($options: ProductLi
|
|
|
51
87
|
* Reached with `getProducts(..., { detail: 'card' })`. The default stays
|
|
52
88
|
* `LIST_PRODUCTS`, so no existing caller changes behaviour.
|
|
53
89
|
*/
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const
|
|
57
|
-
|
|
58
|
-
export declare const
|
|
59
|
-
|
|
60
|
-
export declare const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export declare const
|
|
90
|
+
export declare const PRODUCT_CARD_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
91
|
+
export declare const FACET_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
92
|
+
export declare const BREADCRUMB_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
93
|
+
/** A row of the collection LIST (`getCollections`). */
|
|
94
|
+
export declare const COLLECTION_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
95
|
+
/** The collection DETAIL read, shared by the slug and the id lookup. */
|
|
96
|
+
export declare const COLLECTION_DETAIL_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
97
|
+
/**
|
|
98
|
+
* One search hit. `productVariantId` is the orderable id (never pass
|
|
99
|
+
* `productId` to `addToCart`); `availability` is null for a document indexed
|
|
100
|
+
* before the attribute existed, until the channel is fully reindexed.
|
|
101
|
+
*/
|
|
102
|
+
export declare const SEARCH_RESULT_ITEM_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
103
|
+
export declare const SEARCH_RESULT_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
104
|
+
export declare const GET_PRODUCT: string;
|
|
105
|
+
export declare const GET_PRODUCT_BY_ID: string;
|
|
106
|
+
/**
|
|
107
|
+
* A storefront-visible metafield as it arrives ON an entity: the
|
|
108
|
+
* `storefront: read` values an app or the store published (headless spec
|
|
109
|
+
* §8.13). `value` is whatever the definition's type describes.
|
|
110
|
+
*/
|
|
111
|
+
export declare const METAFIELD_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
112
|
+
/**
|
|
113
|
+
* OPT-IN product reads, chosen by `getProduct(slug, { metafields })` and
|
|
114
|
+
* `getProductById(id, { metafields })`: the default `Product` selection plus
|
|
115
|
+
* the product's own metafields and every variant's, `$namespace` narrowing
|
|
116
|
+
* both to one app (`null` is every namespace).
|
|
117
|
+
*
|
|
118
|
+
* Separate documents, never a `metafields` selection in `PRODUCT_FRAGMENT`
|
|
119
|
+
* (the rule `ORDER_FULFILLMENT_PARCELS_FRAGMENT` follows): `Product.metafields`
|
|
120
|
+
* is an additive Shop API field, and an engine without it fails the WHOLE
|
|
121
|
+
* document at validation. Selected by default, an SDK upgraded ahead of the
|
|
122
|
+
* engine deploy would 400 every product page; selected here, only a caller
|
|
123
|
+
* that asked for metafields needs the newer engine. GraphQL merges this
|
|
124
|
+
* `variants` selection with the fragment's, so each variant still comes back
|
|
125
|
+
* whole.
|
|
126
|
+
*
|
|
127
|
+
* The server reads every product's (and every variant's) metafields of the
|
|
128
|
+
* request in one statement per owner type, so the variant selection costs one
|
|
129
|
+
* read, not one per variant.
|
|
130
|
+
*/
|
|
131
|
+
export declare const GET_PRODUCT_WITH_METAFIELDS: string;
|
|
132
|
+
/** {@link GET_PRODUCT_WITH_METAFIELDS} by id. */
|
|
133
|
+
export declare const GET_PRODUCT_BY_ID_WITH_METAFIELDS: string;
|
|
134
|
+
export declare const LIST_PRODUCTS: string;
|
|
135
|
+
export declare const LIST_PRODUCT_CARDS: string;
|
|
136
|
+
export declare const LIST_FACETS: string;
|
|
137
|
+
export declare const LIST_COLLECTIONS: string;
|
|
138
|
+
export declare const GET_COLLECTION: string;
|
|
139
|
+
export declare const GET_COLLECTION_BY_ID: string;
|
|
140
|
+
/**
|
|
141
|
+
* OPT-IN collection reads with the collection's own metafields, chosen by
|
|
142
|
+
* `getCollection(slug, { metafields })` and `getCollectionById(id, {
|
|
143
|
+
* metafields })`. Separate documents for the reason
|
|
144
|
+
* {@link GET_PRODUCT_WITH_METAFIELDS} gives.
|
|
145
|
+
*/
|
|
146
|
+
export declare const GET_COLLECTION_WITH_METAFIELDS: string;
|
|
147
|
+
/** {@link GET_COLLECTION_WITH_METAFIELDS} by id. */
|
|
148
|
+
export declare const GET_COLLECTION_BY_ID_WITH_METAFIELDS: string;
|
|
149
|
+
export declare const SEARCH_PRODUCTS: string;
|
|
150
|
+
export declare const ACTIVE_ORDER: string;
|
|
151
|
+
export declare const ADD_TO_CART: string;
|
|
152
|
+
export declare const ADJUST_ORDER_LINE: string;
|
|
153
|
+
export declare const REMOVE_ORDER_LINE: string;
|
|
154
|
+
export declare const APPLY_COUPON: string;
|
|
155
|
+
export declare const REMOVE_COUPON: string;
|
|
156
|
+
export declare const REMOVE_ALL_ORDER_LINES: string;
|
|
67
157
|
/**
|
|
68
158
|
* Bulk add (favourite-box bundles). `addItemsToOrder` returns
|
|
69
159
|
* UpdateMultipleOrderItemsResult: a single resulting Order plus a per-input
|
|
70
160
|
* `errorResults` list — partial success is possible, so surface both.
|
|
71
161
|
*/
|
|
72
|
-
export declare const ADD_ITEMS_TO_CART
|
|
73
|
-
export declare const SET_CUSTOMER
|
|
74
|
-
export declare const SET_SHIPPING_ADDRESS
|
|
75
|
-
export declare const SET_BILLING_ADDRESS
|
|
162
|
+
export declare const ADD_ITEMS_TO_CART: string;
|
|
163
|
+
export declare const SET_CUSTOMER: string;
|
|
164
|
+
export declare const SET_SHIPPING_ADDRESS: string;
|
|
165
|
+
export declare const SET_BILLING_ADDRESS: string;
|
|
76
166
|
export declare const ELIGIBLE_SHIPPING_METHODS = "\n query ShippingMethods {\n eligibleShippingMethods {\n id name description price priceWithTax metadata isPreferred isDeliveryTermsEligible\n }\n }\n";
|
|
167
|
+
/** Every platform method and every app rate the active order can ship with (`shipping.rates`). */
|
|
168
|
+
export declare const ELIGIBLE_SHIPPING_RATES = "\n query ShippingRates {\n eligibleShippingRates {\n shippingMethodId code rateCode name description price priceWithTax source appSlug selected\n isPreferred isDeliveryTermsEligible\n }\n }\n";
|
|
169
|
+
export declare const SET_SHIPPING_RATE: string;
|
|
77
170
|
export declare const MY_DELIVERY_TERMS = "\n query MyDeliveryTerms {\n myDeliveryTerms {\n customerId source managedExternally status shippingMethodStatus policyStatus summary\n preferredShippingMethodId preferredShippingMethodCode preferredShippingMethodName\n preferredShippingMethodAvailable\n eligibleShippingMethodIds\n incotermStatus incotermCode incotermVersion incotermAddress incotermDescription\n shippingLeadDays deliveryAdvice stale syncedAt warning\n }\n }\n";
|
|
78
|
-
export declare const SET_SHIPPING_METHOD
|
|
79
|
-
export declare const APPLY_PREFERRED_SHIPPING_METHOD
|
|
171
|
+
export declare const SET_SHIPPING_METHOD: string;
|
|
172
|
+
export declare const APPLY_PREFERRED_SHIPPING_METHOD: string;
|
|
80
173
|
export declare const ELIGIBLE_PAYMENT_METHODS = "\n query PaymentMethods {\n eligiblePaymentMethods {\n id name code description isEligible eligibilityMessage\n }\n }\n";
|
|
81
|
-
export declare const TRANSITION_TO_ARRANGING_PAYMENT
|
|
174
|
+
export declare const TRANSITION_TO_ARRANGING_PAYMENT: string;
|
|
175
|
+
/**
|
|
176
|
+
* `TRANSITION_TO_ARRANGING_PAYMENT` with the target state as a variable. The
|
|
177
|
+
* engine's order process and its placement guards decide which targets a
|
|
178
|
+
* shopper may reach; the document only carries the request.
|
|
179
|
+
*/
|
|
180
|
+
export declare const TRANSITION_ORDER: string;
|
|
181
|
+
export declare const NEXT_ORDER_STATES = "\n query NextOrderStates {\n nextOrderStates\n }\n";
|
|
182
|
+
export declare const ACTIVE_PAYMENT_METHODS: string;
|
|
183
|
+
/** Every shipping method offered on the channel's storefront, whatever the active order. */
|
|
184
|
+
export declare const ACTIVE_SHIPPING_METHODS: string;
|
|
185
|
+
export declare const SET_ORDER_CUSTOM_FIELDS: string;
|
|
186
|
+
export declare const UNSET_SHIPPING_ADDRESS: string;
|
|
187
|
+
export declare const UNSET_BILLING_ADDRESS: string;
|
|
188
|
+
/**
|
|
189
|
+
* `setCurrencyCodeForOrder` answers `UpdateOrderItemsResult`, so every member of
|
|
190
|
+
* that union is selected: an unselected member comes back as `{}`, which
|
|
191
|
+
* carries no `errorCode` and would read as success.
|
|
192
|
+
*/
|
|
193
|
+
export declare const SET_ORDER_CURRENCY: string;
|
|
82
194
|
/**
|
|
83
195
|
* Record how the buyer intends to pay AND re-price the order in one round trip.
|
|
84
196
|
*
|
|
@@ -90,33 +202,63 @@ export declare const TRANSITION_TO_ARRANGING_PAYMENT = "\n mutation TransitionT
|
|
|
90
202
|
* the pay-now discount.
|
|
91
203
|
*
|
|
92
204
|
* `customFields { paymentIntent }` is selected HERE and nowhere else, and that
|
|
93
|
-
* is deliberate. Putting it in the shared `
|
|
205
|
+
* is deliberate. Putting it in the shared `ORDER_FRAGMENT` would make every order
|
|
94
206
|
* query and cart mutation in this client fail GraphQL validation against an
|
|
95
207
|
* engine that predates the field — one missing feature would take the whole cart
|
|
96
208
|
* down. Confined to this document, only the call that needs the field is
|
|
97
209
|
* coupled to an engine that has it.
|
|
98
210
|
*/
|
|
99
|
-
export declare const SET_PAYMENT_INTENT
|
|
100
|
-
export declare const ADD_PAYMENT
|
|
101
|
-
export declare const PICKUP_LOCATIONS
|
|
102
|
-
export declare const ACTIVE_ORDER_PICKUP_LOCATION
|
|
211
|
+
export declare const SET_PAYMENT_INTENT: string;
|
|
212
|
+
export declare const ADD_PAYMENT: string;
|
|
213
|
+
export declare const PICKUP_LOCATIONS: string;
|
|
214
|
+
export declare const ACTIVE_ORDER_PICKUP_LOCATION: string;
|
|
103
215
|
export declare const SET_ACTIVE_ORDER_PICKUP_LOCATION = "\n mutation SetActiveOrderPickupLocation($location: StoredPickupLocationInput!) {\n setActiveOrderPickupLocation(location: $location) {\n __typename\n ... on Order {\n id code state\n }\n ... on ErrorResult {\n errorCode\n message\n }\n }\n }\n";
|
|
104
216
|
export declare const CREATE_STRIPE_PAYMENT_INTENT = "\n mutation CreateStripePaymentIntent {\n createStripePaymentIntent\n }\n";
|
|
105
217
|
export declare const MOLLIE_PAYMENT_METHODS = "\n query MolliePaymentMethods($input: MolliePaymentMethodsInput!) {\n molliePaymentMethods(input: $input) {\n id\n code\n description\n minimumAmount { value currency }\n maximumAmount { value currency }\n image { size1x size2x svg }\n status\n }\n }\n";
|
|
106
218
|
export declare const ORDERED_MOLLIE_PAYMENT_METHODS = "\n query OrderedMolliePaymentMethods($paymentMethodCode: String!) {\n orderedMolliePaymentMethods(paymentMethodCode: $paymentMethodCode) {\n id\n code\n description\n imageUrl\n status\n }\n }\n";
|
|
107
219
|
export declare const CREATE_MOLLIE_PAYMENT_INTENT = "\n mutation CreateMolliePaymentIntent($input: MolliePaymentIntentInput!) {\n createMolliePaymentIntent(input: $input) {\n ... on MolliePaymentIntent { url }\n ... on MolliePaymentIntentError { errorCode message }\n }\n }\n";
|
|
108
220
|
export declare const SYNC_MOLLIE_PAYMENT_STATUS = "\n mutation SyncMolliePaymentStatus($orderCode: String!) {\n syncMolliePaymentStatus(orderCode: $orderCode) {\n id\n code\n state\n }\n }\n";
|
|
221
|
+
export declare const PARKED_ORDERS_QUERY: string;
|
|
222
|
+
export declare const PAY_PARKED_ORDER_MUTATION = "\n mutation PayParkedOrder(\n $orderCode: String!\n $input: PayParkedOrderInput!\n $idempotencyKey: String\n ) {\n payParkedOrder(orderCode: $orderCode, input: $input, idempotencyKey: $idempotencyKey) {\n order { id code state }\n payment { id state amount method metadata }\n position { total covered outstanding currencyCode }\n settled\n }\n }\n";
|
|
223
|
+
export declare const CREATE_PARKED_ORDER_PAYMENT_INTENT_MUTATION = "\n mutation CreateParkedOrderPaymentIntent(\n $orderCode: String!\n $input: ParkedOrderPaymentIntentInput!\n $idempotencyKey: String\n ) {\n createParkedOrderPaymentIntent(\n orderCode: $orderCode\n input: $input\n idempotencyKey: $idempotencyKey\n ) {\n provider\n url\n clientSecret\n amount\n currencyCode\n }\n }\n";
|
|
224
|
+
/**
|
|
225
|
+
* A deposit paid in checkout, which parks the active order (W8-13).
|
|
226
|
+
*
|
|
227
|
+
* `order` selects exactly what `ADD_PAYMENT` selects for its `Order` member, so
|
|
228
|
+
* `addPayment(input, { amount })` — which routes here — resolves to the same
|
|
229
|
+
* type whether it paid in full or paid a deposit. No `idempotencyKey` argument:
|
|
230
|
+
* like `addPaymentToOrder`, this mutation is keyed by the `Idempotency-Key`
|
|
231
|
+
* header (the W8-12 contract), unlike the parked-order calls above.
|
|
232
|
+
*/
|
|
233
|
+
export declare const PAY_DEPOSIT_MUTATION: string;
|
|
234
|
+
/** A card (Mollie) deposit in checkout; keyed by the header, as `PAY_DEPOSIT_MUTATION`. */
|
|
235
|
+
export declare const CREATE_DEPOSIT_PAYMENT_INTENT_MUTATION = "\n mutation CreateDepositPaymentIntent($input: DepositPaymentIntentInput!) {\n createDepositPaymentIntent(input: $input) {\n provider\n url\n clientSecret\n amount\n currencyCode\n }\n }\n";
|
|
109
236
|
export declare const LOGIN = "\n mutation Login($email: String!, $password: String!) {\n login(username: $email, password: $password) {\n ... on CurrentUser { id identifier }\n ... on InvalidCredentialsError { errorCode message authenticationError }\n ... on NotVerifiedError { errorCode message }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
237
|
+
/**
|
|
238
|
+
* Sign in through a named authentication strategy (`native` is the only one the
|
|
239
|
+
* engine registers today). Every `AuthenticationResult` member is selected, and
|
|
240
|
+
* `authenticationError` with it: the engine's native strategy reports an
|
|
241
|
+
* imported account with no password (`PASSWORD_RESET_REQUIRED`) or an
|
|
242
|
+
* unverified one (`ACCOUNT_NOT_VERIFIED`) there, not as an error type.
|
|
243
|
+
*/
|
|
244
|
+
export declare const AUTHENTICATE: string;
|
|
110
245
|
export declare const REGISTER = "\n mutation Register($input: RegisterCustomerInput!) {\n registerCustomerAccount(input: $input) {\n ... on Success { success }\n ... on MissingPasswordError { errorCode message }\n ... on PasswordValidationError { errorCode message validationErrorMessage }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
111
|
-
export declare const GET_CURRENT_CUSTOMER
|
|
246
|
+
export declare const GET_CURRENT_CUSTOMER: string;
|
|
112
247
|
export declare const ACTIVE_CUSTOMER_PRICE_LISTS = "\n query ActiveCustomerPriceLists {\n activeCustomerPriceLists { id name isContract }\n }\n";
|
|
113
|
-
export declare const GET_CUSTOMER_ORDERS
|
|
248
|
+
export declare const GET_CUSTOMER_ORDERS: string;
|
|
114
249
|
export declare const LOGOUT = "\n mutation Logout {\n logout { success }\n }\n";
|
|
115
250
|
export declare const UPDATE_CUSTOMER = "\n mutation UpdateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n id firstName lastName emailAddress phoneNumber\n }\n }\n";
|
|
116
251
|
export declare const UPDATE_PASSWORD = "\n mutation UpdatePassword($currentPassword: String!, $newPassword: String!) {\n updateCustomerPassword(currentPassword: $currentPassword, newPassword: $newPassword) {\n ... on Success { success }\n ... on InvalidCredentialsError { errorCode message }\n ... on PasswordValidationError { errorCode message validationErrorMessage }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
252
|
+
/**
|
|
253
|
+
* The signed-in customer's FIRST password, for an account that signed in by
|
|
254
|
+
* email link or code and has none (`updatePassword` needs the current one).
|
|
255
|
+
* Every member is selected: an unselected error member arrives as `{}` and the
|
|
256
|
+
* wrapper would read a refused password as set.
|
|
257
|
+
*/
|
|
258
|
+
export declare const SET_CUSTOMER_PASSWORD = "\n mutation SetCustomerPassword($newPassword: String!) {\n setCustomerPassword(newPassword: $newPassword) {\n ... on Success { success }\n ... on PasswordValidationError { errorCode message validationErrorMessage }\n ... on PasswordAlreadySetError { errorCode message }\n ... on NativeAuthStrategyError { errorCode message }\n ... on SetPasswordRequiresEmailSignInError { errorCode message }\n }\n }\n";
|
|
117
259
|
export declare const REQUEST_PASSWORD_RESET = "\n mutation RequestPasswordReset($emailAddress: String!) {\n requestPasswordReset(emailAddress: $emailAddress) {\n ... on Success { success }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
118
260
|
export declare const RESET_PASSWORD = "\n mutation ResetPassword($token: String!, $password: String!) {\n resetPassword(token: $token, password: $password) {\n ... on CurrentUser { id identifier }\n ... on PasswordResetTokenInvalidError { errorCode message }\n ... on PasswordResetTokenExpiredError { errorCode message }\n ... on PasswordValidationError { errorCode message validationErrorMessage }\n ... on NativeAuthStrategyError { errorCode message }\n ... on NotVerifiedError { errorCode message }\n }\n }\n";
|
|
119
|
-
export declare const REQUEST_MAGIC_LINK = "\n mutation RequestMagicLink($emailAddress: String
|
|
261
|
+
export declare const REQUEST_MAGIC_LINK = "\n mutation RequestMagicLink($emailAddress: String!, $portal: MagicLinkPortal) {\n requestMagicLink(emailAddress: $emailAddress, portal: $portal) {\n ... on Success { success }\n ... on NativeAuthStrategyError { errorCode message }\n ... on MagicLinkRateLimitedError { errorCode message retryAfterSeconds }\n }\n }\n";
|
|
120
262
|
export declare const LOGIN_WITH_MAGIC_LINK = "\n mutation LoginWithMagicLink($token: String!) {\n loginWithMagicLink(token: $token) {\n ... on CurrentUser { id identifier }\n ... on MagicLinkInvalidError { errorCode message }\n ... on MagicLinkExpiredError { errorCode message }\n ... on MagicLinkLockedError { errorCode message }\n ... on NotVerifiedError { errorCode message }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
121
263
|
export declare const LOGIN_WITH_MAGIC_CODE = "\n mutation LoginWithMagicCode($emailAddress: String!, $code: String!) {\n loginWithMagicCode(emailAddress: $emailAddress, code: $code) {\n ... on CurrentUser { id identifier }\n ... on MagicLinkInvalidError { errorCode message }\n ... on MagicLinkExpiredError { errorCode message }\n ... on MagicLinkLockedError { errorCode message }\n ... on NotVerifiedError { errorCode message }\n ... on NativeAuthStrategyError { errorCode message }\n }\n }\n";
|
|
122
264
|
export declare const REQUEST_EMAIL_UPDATE = "\n mutation RequestEmailUpdate($password: String!, $newEmailAddress: String!) {\n requestUpdateCustomerEmailAddress(password: $password, newEmailAddress: $newEmailAddress) {\n ... on Success { success }\n ... on InvalidCredentialsError { errorCode message }\n ... on EmailAddressConflictError { errorCode message }\n ... on NativeAuthStrategyError { errorCode message }\n ... on EmailChangeRateLimitedError { errorCode message retryAfterSeconds }\n ... on ErrorResult { errorCode message }\n }\n }\n";
|
|
@@ -130,26 +272,36 @@ export declare const AVAILABLE_COUNTRIES = "\n query AvailableCountries {\n
|
|
|
130
272
|
/**
|
|
131
273
|
* `lines { backorderedQuantity }` is selected HERE and on `GET_CUSTOMER_ORDERS`,
|
|
132
274
|
* and nowhere else — the same rule `customFields { paymentIntent }` follows
|
|
133
|
-
* below. In the shared `
|
|
275
|
+
* below. In the shared `ORDER_FRAGMENT` fragment it would make every cart read
|
|
134
276
|
* and mutation fail validation against an engine that predates the backorders
|
|
135
277
|
* plugin, taking the whole cart down for a field a cart line never carries a
|
|
136
278
|
* value for (the stamp is written at placement). GraphQL merges this `lines`
|
|
137
279
|
* selection with the fragment's, so the line still comes back whole.
|
|
280
|
+
*
|
|
281
|
+
* `customFields { chargedParcelCount }` follows the same rule: frozen when the
|
|
282
|
+
* order leaves the cart, so it belongs to this placed-order read alone. It
|
|
283
|
+
* does make this document need an engine with the extra-parcel charge: a
|
|
284
|
+
* client release carrying it publishes after that engine is deployed.
|
|
138
285
|
*/
|
|
139
|
-
export declare const ORDER_BY_CODE
|
|
286
|
+
export declare const ORDER_BY_CODE: string;
|
|
140
287
|
export declare const FAVORITE_VARIANT_IDS = "\n query FavoriteVariantIds {\n favoriteProductVariantIds\n }\n";
|
|
141
|
-
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 backorderAllowance\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";
|
|
288
|
+
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 backorderAllowance\n availability { state availableFrom orderable }\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";
|
|
142
289
|
export declare const TOGGLE_FAVORITE = "\n mutation ToggleFavorite($productVariantId: ID!) {\n toggleFavorite(productVariantId: $productVariantId)\n }\n";
|
|
143
290
|
export declare const REMOVE_FAVORITE = "\n mutation RemoveFavorite($productVariantId: ID!) {\n removeFavorite(productVariantId: $productVariantId)\n }\n";
|
|
144
|
-
export declare const GET_ACTIVE_CHANNEL
|
|
145
|
-
|
|
146
|
-
export declare const
|
|
147
|
-
|
|
291
|
+
export declare const GET_ACTIVE_CHANNEL: string;
|
|
292
|
+
/** Every property group, with each property's full config (`getPropertyGroups`). */
|
|
293
|
+
export declare const PROPERTY_GROUP_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
294
|
+
/** One product's values per group (`getProductProperties`); the group config is narrower. */
|
|
295
|
+
export declare const PRODUCT_PROPERTY_GROUP_VALUES_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
296
|
+
export declare const PROPERTY_GROUPS: string;
|
|
297
|
+
export declare const PRODUCT_PROPERTIES: string;
|
|
298
|
+
export declare const RECOMMENDED_PRODUCT_GROUP_FRAGMENT: import("../graphql-document.js").GraphQLFragment;
|
|
299
|
+
export declare const GET_PRODUCT_RECOMMENDATIONS: string;
|
|
148
300
|
export declare const GET_EXCHANGE_RATES = "\n query ExchangeRates {\n exchangeRates {\n baseCurrency targetCurrency rate inverseRate rateDate\n }\n }\n";
|
|
149
|
-
export declare const CONVERT_CURRENCY
|
|
301
|
+
export declare const CONVERT_CURRENCY: string;
|
|
150
302
|
export declare const GET_EXCHANGE_RATE = "\n query ExchangeRate($targetCurrency: String!) {\n exchangeRate(targetCurrency: $targetCurrency) {\n baseCurrency targetCurrency rate inverseRate rateDate\n }\n }\n";
|
|
151
|
-
export declare const CONVERT_FROM_BASE
|
|
152
|
-
export declare const CONVERT_TO_BASE
|
|
303
|
+
export declare const CONVERT_FROM_BASE: string;
|
|
304
|
+
export declare const CONVERT_TO_BASE: string;
|
|
153
305
|
export declare const CONVERT_TO_MULTIPLE = "\n query ConvertToMultiple($amount: String!, $from: String!, $to: [String!]!) {\n convertToMultiple(amount: $amount, fromCurrency: $from, toCurrencies: $to) {\n currency amount rate\n }\n }\n";
|
|
154
306
|
export declare const MY_QUOTES: string;
|
|
155
307
|
export declare const MY_QUOTES_LEGACY: string;
|
|
@@ -157,7 +309,7 @@ export declare const MY_QUOTE: string;
|
|
|
157
309
|
export declare const MY_QUOTE_LEGACY: string;
|
|
158
310
|
export declare const CREATE_QUOTE_REQUEST: string;
|
|
159
311
|
export declare const CREATE_QUOTE_REQUEST_LEGACY: string;
|
|
160
|
-
export declare const ACCEPT_QUOTE
|
|
312
|
+
export declare const ACCEPT_QUOTE: string;
|
|
161
313
|
export declare const CANCEL_MY_QUOTE: string;
|
|
162
314
|
export declare const CANCEL_MY_QUOTE_LEGACY: string;
|
|
163
315
|
/**
|
|
@@ -169,9 +321,12 @@ export declare const GET_BRANDING = "\n query GetBranding($ids: [ID!]!) {\n
|
|
|
169
321
|
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";
|
|
170
322
|
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";
|
|
171
323
|
export declare const MY_INVOICE_PDF = "\n query MyInvoicePdf($invoiceId: ID!) {\n myInvoicePdf(invoiceId: $invoiceId) {\n base64 filename invoiceNumber\n }\n }\n";
|
|
172
|
-
export declare const
|
|
173
|
-
export declare const
|
|
174
|
-
export declare const
|
|
175
|
-
export declare const
|
|
324
|
+
export declare const CREATE_INVOICE_DOWNLOAD_URL = "\n mutation CreateInvoiceDownloadUrl($invoiceId: ID!) {\n createInvoiceDownloadUrl(invoiceId: $invoiceId) {\n url expiresAt filename invoiceNumber\n }\n }\n";
|
|
325
|
+
export declare const MY_ORDER_CREDIT_NOTES = "\n query MyOrderCreditNotes($orderCode: String!) {\n myOrderCreditNotes(orderCode: $orderCode) {\n id creditNoteNumber issuedOn totalWithTax currencyCode kind reason invoiceNumber createdAt\n }\n }\n";
|
|
326
|
+
export declare const CREATE_CREDIT_NOTE_DOWNLOAD_URL = "\n mutation CreateCreditNoteDownloadUrl($creditNoteId: ID!) {\n createCreditNoteDownloadUrl(creditNoteId: $creditNoteId) {\n url expiresAt filename creditNoteNumber\n }\n }\n";
|
|
327
|
+
export declare const MY_RETURNS: string;
|
|
328
|
+
export declare const MY_RETURN: string;
|
|
329
|
+
export declare const REQUEST_RETURN: string;
|
|
330
|
+
export declare const CANCEL_MY_RETURN: string;
|
|
176
331
|
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";
|
|
177
332
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/commerce/queries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/commerce/queries.ts"],"names":[],"mappings":"AASA,kFAAkF;AAClF,eAAO,MAAM,6BAA6B,kDAIxC,CAAC;AAEH,eAAO,MAAM,mBAAmB,kDAI9B,CAAC;AAEH,eAAO,MAAM,sCAAsC,kDAIjD,CAAC;AAEH,eAAO,MAAM,oBAAoB,kDAI/B,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,kDAOlC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,kDA0BpC,CAAC;AAEH,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,kDA8BpC,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,kDAsC5B,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,kDAgCpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,eAAO,MAAM,qBAAqB,kDA2BjC,CAAC;AAEF,eAAO,MAAM,cAAc,kDAKzB,CAAC;AAEH,eAAO,MAAM,mBAAmB,kDAI9B,CAAC;AAEH,uDAAuD;AACv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