@vtex/faststore 0.0.7 → 0.0.10
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/CHANGELOG.md +102 -0
- package/dist/actions.json +194 -1
- package/dist/catalog.json +3449 -1612
- package/dist/cli/index.d.ts +512 -63
- package/dist/cli/index.js +2098 -686
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/server-runtime.js +44 -24
- package/dist/cli/server-runtime.js.map +1 -1
- package/dist/client.d.ts +5 -1
- package/dist/client.js +5 -1
- package/dist/components.d.ts +42 -10
- package/dist/components.js +47 -15
- package/dist/content-types.json +823 -0
- package/dist/core/dist/define-component.d.ts +12 -2
- package/dist/docs/account-access-gate.md +4 -4
- package/dist/docs/account-address-book.md +519 -0
- package/dist/docs/account-entry-point.md +5 -5
- package/dist/docs/account-menu.md +7 -7
- package/dist/docs/account-saved-cards.md +301 -0
- package/dist/docs/alert-dialog.md +2 -2
- package/dist/docs/billing-address.md +17 -9
- package/dist/docs/binding-switcher.md +154 -0
- package/dist/docs/card-entry.md +38 -7
- package/dist/docs/card-summary.md +175 -0
- package/dist/docs/cardholder-document.md +16 -14
- package/dist/docs/cart-destination.md +238 -0
- package/dist/docs/cart-item.md +22 -4
- package/dist/docs/cart-totalizer.md +1 -1
- package/dist/docs/cart.md +126 -19
- package/dist/docs/client-profile-fieldset.md +7 -5
- package/dist/docs/copy-text.md +84 -0
- package/dist/docs/document-field.md +8 -8
- package/dist/docs/footer-link-group.md +2 -2
- package/dist/docs/footer-social.md +1 -1
- package/dist/docs/free-shipping-progress.md +13 -9
- package/dist/docs/header-root.md +1 -1
- package/dist/docs/incentives.md +4 -4
- package/dist/docs/logo.md +6 -6
- package/dist/docs/my-account-profile.md +4 -4
- package/dist/docs/navigation-link-list.md +2 -2
- package/dist/docs/navigation-link.md +3 -3
- package/dist/docs/order-cancel.md +52 -0
- package/dist/docs/order-delivery-address.md +63 -0
- package/dist/docs/order-delivery-group.md +83 -0
- package/dist/docs/order-details-back.md +41 -0
- package/dist/docs/order-details-header.md +48 -0
- package/dist/docs/order-list-row.md +46 -0
- package/dist/docs/order-list-search.md +101 -0
- package/dist/docs/order-list-views.md +97 -0
- package/dist/docs/order-list.md +94 -0
- package/dist/docs/order-payment.md +94 -0
- package/dist/docs/order-placed-date.md +49 -0
- package/dist/docs/order-placed-payment-summary.md +13 -15
- package/dist/docs/order-placed.md +225 -0
- package/dist/docs/order-progress.md +88 -0
- package/dist/docs/order-status-badge.md +91 -0
- package/dist/docs/order-summary.md +53 -0
- package/dist/docs/payment-method-badges.md +16 -5
- package/dist/docs/payment-methods.md +1 -1
- package/dist/docs/place-order.md +13 -9
- package/dist/docs/product-information.md +2 -2
- package/dist/docs/product-shelf.md +7 -0
- package/dist/docs/saved-cards.md +2 -2
- package/dist/docs/select.md +22 -10
- package/dist/docs/session.md +1 -1
- package/dist/docs/shipping-address.md +1 -1
- package/dist/docs/sign-in-redirect.md +7 -7
- package/dist/docs/toast.md +35 -13
- package/dist/index.d.ts +7 -2
- package/dist/index.js +2 -1
- package/dist/internal/client.d.ts +9 -1
- package/dist/internal/client.js +10 -2
- package/dist/internal/server.d.ts +8 -2
- package/dist/internal/server.js +8 -2
- package/dist/matter/account-access-gate/account-access-gate.d.ts +2 -1
- package/dist/matter/account-access-gate/account-access-gate.js +19 -16
- package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
- package/dist/matter/account-address-book/account-address-book-delete.d.ts +60 -0
- package/dist/matter/account-address-book/account-address-book-delete.js +184 -0
- package/dist/matter/account-address-book/account-address-book-delete.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.d.ts +19 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js +50 -0
- package/dist/matter/account-address-book/account-address-book-deliverability.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.d.ts +42 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js +146 -0
- package/dist/matter/account-address-book/account-address-book-form-parts.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.d.ts +25 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js +72 -0
- package/dist/matter/account-address-book/account-address-book-profile-notice.js.map +1 -0
- package/dist/matter/account-address-book/account-address-book.d.ts +120 -0
- package/dist/matter/account-address-book/account-address-book.js +469 -0
- package/dist/matter/account-address-book/account-address-book.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country-switch.js +59 -0
- package/dist/matter/account-address-book/account-address-country-switch.js.map +1 -0
- package/dist/matter/account-address-book/account-address-country.d.ts +36 -0
- package/dist/matter/account-address-book/account-address-country.js +151 -0
- package/dist/matter/account-address-book/account-address-country.js.map +1 -0
- package/dist/matter/account-address-book/account-address-first-line.js +11 -0
- package/dist/matter/account-address-book/account-address-first-line.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form-context.d.ts +55 -0
- package/dist/matter/account-address-book/account-address-form-context.js +14 -0
- package/dist/matter/account-address-book/account-address-form-context.js.map +1 -0
- package/dist/matter/account-address-book/account-address-form.d.ts +85 -0
- package/dist/matter/account-address-book/account-address-form.js +946 -0
- package/dist/matter/account-address-book/account-address-form.js.map +1 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js +189 -0
- package/dist/matter/account-address-book/account-address-postal-autofill.js.map +1 -0
- package/dist/matter/account-address-book/account-address-record.d.ts +26 -0
- package/dist/matter/account-address-book/account-address-record.js +138 -0
- package/dist/matter/account-address-book/account-address-record.js.map +1 -0
- package/dist/matter/account-entry-point/account-entry-point.js +11 -11
- package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
- package/dist/matter/account-menu/account-menu.d.ts +7 -3
- package/dist/matter/account-menu/account-menu.js +69 -28
- package/dist/matter/account-menu/account-menu.js.map +1 -1
- package/dist/matter/account-saved-cards/account-saved-cards.d.ts +383 -0
- package/dist/matter/account-saved-cards/account-saved-cards.js +956 -0
- package/dist/matter/account-saved-cards/account-saved-cards.js.map +1 -0
- package/dist/matter/billing-address/billing-address.d.ts +30 -17
- package/dist/matter/billing-address/billing-address.js +128 -33
- package/dist/matter/billing-address/billing-address.js.map +1 -1
- package/dist/matter/breadcrumb/breadcrumb.js +2 -2
- package/dist/matter/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/matter/card-entry/card-capture.js +4 -3
- package/dist/matter/card-entry/card-capture.js.map +1 -1
- package/dist/matter/card-entry/card-entry.d.ts +5 -3
- package/dist/matter/card-entry/card-entry.js +77 -27
- package/dist/matter/card-entry/card-entry.js.map +1 -1
- package/dist/matter/cardholder-document/cardholder-document.d.ts +10 -9
- package/dist/matter/cardholder-document/cardholder-document.js +36 -16
- package/dist/matter/cardholder-document/cardholder-document.js.map +1 -1
- package/dist/matter/cart/cart-namespace.d.ts +5 -1
- package/dist/matter/cart/cart-namespace.js +5 -1
- package/dist/matter/cart/cart-namespace.js.map +1 -1
- package/dist/matter/cart/cart.d.ts +41 -6
- package/dist/matter/cart/cart.js +267 -54
- package/dist/matter/cart/cart.js.map +1 -1
- package/dist/matter/cart-destination/cart-destination.d.ts +222 -0
- package/dist/matter/cart-destination/cart-destination.js +613 -0
- package/dist/matter/cart-destination/cart-destination.js.map +1 -0
- package/dist/matter/cart-item/cart-item.d.ts +4 -2
- package/dist/matter/cart-item/cart-item.js +76 -17
- package/dist/matter/cart-item/cart-item.js.map +1 -1
- package/dist/matter/cart-totalizer/cart-totalizer.js +3 -2
- package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -1
- package/dist/matter/client-preferences/client-preferences-fieldset.js +1 -1
- package/dist/matter/client-profile-form/client-profile-fieldset.js +8 -5
- package/dist/matter/client-profile-form/client-profile-fieldset.js.map +1 -1
- package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +6 -3
- package/dist/matter/free-shipping-progress/free-shipping-progress.js +76 -33
- package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -1
- package/dist/matter/identity-edit/identity-edit.js +3 -3
- package/dist/matter/identity-edit/identity-edit.js.map +1 -1
- package/dist/matter/identity-summary/identity-summary.js +2 -2
- package/dist/matter/identity-summary/identity-summary.js.map +1 -1
- package/dist/matter/my-account-profile/my-account-profile.d.ts +3 -3
- package/dist/matter/my-account-profile/my-account-profile.js +4 -4
- package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
- package/dist/matter/order-cancel/order-cancel.d.ts +110 -0
- package/dist/matter/order-cancel/order-cancel.js +344 -0
- package/dist/matter/order-cancel/order-cancel.js.map +1 -0
- package/dist/matter/order-delivery-address/order-delivery-address.d.ts +73 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js +172 -0
- package/dist/matter/order-delivery-address/order-delivery-address.js.map +1 -0
- package/dist/matter/order-delivery-group/order-delivery-group.d.ts +128 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js +408 -0
- package/dist/matter/order-delivery-group/order-delivery-group.js.map +1 -0
- package/dist/matter/order-details-header/order-details-header.d.ts +104 -0
- package/dist/matter/order-details-header/order-details-header.js +190 -0
- package/dist/matter/order-details-header/order-details-header.js.map +1 -0
- package/dist/matter/order-list/customer-orders-filter.d.ts +12 -0
- package/dist/matter/order-list/customer-orders-filter.js +30 -0
- package/dist/matter/order-list/customer-orders-filter.js.map +1 -0
- package/dist/matter/order-list/order-list.d.ts +121 -0
- package/dist/matter/order-list/order-list.js +395 -0
- package/dist/matter/order-list/order-list.js.map +1 -0
- package/dist/matter/order-list-row/order-list-row.d.ts +44 -0
- package/dist/matter/order-list-row/order-list-row.js +127 -0
- package/dist/matter/order-list-row/order-list-row.js.map +1 -0
- package/dist/matter/order-list-search/order-list-search.d.ts +72 -0
- package/dist/matter/order-list-search/order-list-search.js +296 -0
- package/dist/matter/order-list-search/order-list-search.js.map +1 -0
- package/dist/matter/order-list-views/order-list-views.d.ts +65 -0
- package/dist/matter/order-list-views/order-list-views.js +154 -0
- package/dist/matter/order-list-views/order-list-views.js.map +1 -0
- package/dist/matter/order-payment/order-payment.d.ts +83 -0
- package/dist/matter/order-payment/order-payment.js +258 -0
- package/dist/matter/order-payment/order-payment.js.map +1 -0
- package/dist/matter/order-placed/order-placed-deliveries.d.ts +145 -0
- package/dist/matter/order-placed/order-placed-deliveries.js +380 -0
- package/dist/matter/order-placed/order-placed-deliveries.js.map +1 -0
- package/dist/matter/order-placed/order-placed.d.ts +122 -0
- package/dist/matter/order-placed/order-placed.js +452 -0
- package/dist/matter/order-placed/order-placed.js.map +1 -0
- package/dist/matter/order-placed-date/order-placed-date.d.ts +45 -0
- package/dist/matter/order-placed-date/order-placed-date.js +92 -0
- package/dist/matter/order-placed-date/order-placed-date.js.map +1 -0
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.d.ts +5 -8
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js +29 -81
- package/dist/matter/order-placed-payment-summary/order-placed-payment-summary.js.map +1 -1
- package/dist/matter/order-progress/order-progress.d.ts +85 -0
- package/dist/matter/order-progress/order-progress.js +203 -0
- package/dist/matter/order-progress/order-progress.js.map +1 -0
- package/dist/matter/order-summary/order-summary.d.ts +81 -0
- package/dist/matter/order-summary/order-summary.js +192 -0
- package/dist/matter/order-summary/order-summary.js.map +1 -0
- package/dist/matter/payment/cardholder-document-rule.d.ts +35 -0
- package/dist/matter/payment/cardholder-document-rule.js +35 -0
- package/dist/matter/payment/cardholder-document-rule.js.map +1 -0
- package/dist/matter/payment/payment-card-capture.js +38 -23
- package/dist/matter/payment/payment-card-capture.js.map +1 -1
- package/dist/matter/payment/payment-controller.js +11 -0
- package/dist/matter/payment/payment-controller.js.map +1 -1
- package/dist/matter/payment/payment-method-badges.js +4 -2
- package/dist/matter/payment/payment-method-badges.js.map +1 -1
- package/dist/matter/payment/payment.js +11 -0
- package/dist/matter/payment/payment.js.map +1 -1
- package/dist/matter/payment/use-payment-method-selection.d.ts +39 -0
- package/dist/matter/payment/use-payment-method-selection.js +30 -2
- package/dist/matter/payment/use-payment-method-selection.js.map +1 -1
- package/dist/matter/payment/use-payment-submit-gate.d.ts +16 -2
- package/dist/matter/payment/use-payment-submit-gate.js +42 -14
- package/dist/matter/payment/use-payment-submit-gate.js.map +1 -1
- package/dist/matter/place-order/place-order.d.ts +12 -7
- package/dist/matter/place-order/place-order.js +126 -103
- package/dist/matter/place-order/place-order.js.map +1 -1
- package/dist/matter/pricing/pricing.js +5 -5
- package/dist/matter/pricing/pricing.js.map +1 -1
- package/dist/matter/product-shelf/product-shelf.d.ts +7 -0
- package/dist/matter/product-shelf/product-shelf.js +115 -1
- package/dist/matter/product-shelf/product-shelf.js.map +1 -1
- package/dist/matter/region/region.js +1 -1
- package/dist/matter/saved-cards/saved-cards.js +26 -15
- package/dist/matter/saved-cards/saved-cards.js.map +1 -1
- package/dist/matter/session/session.js +2 -2
- package/dist/matter/session/session.js.map +1 -1
- package/dist/matter/shipping-address/country-descriptors.d.ts +1 -0
- package/dist/matter/shipping-address/country-descriptors.js +23 -1
- package/dist/matter/shipping-address/country-descriptors.js.map +1 -1
- package/dist/matter/shipping-address/shipping-address.js +62 -14
- package/dist/matter/shipping-address/shipping-address.js.map +1 -1
- package/dist/matter/shipping-simulator/shipping-simulator.d.ts +2 -2
- package/dist/matter/shipping-simulator/shipping-simulator.js +6 -2
- package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
- package/dist/matter/sign-in-redirect/sign-in-redirect.js +48 -10
- package/dist/matter/sign-in-redirect/sign-in-redirect.js.map +1 -1
- package/dist/matter/variant-selector/variant-selector.js +2 -2
- package/dist/matter/variant-selector/variant-selector.js.map +1 -1
- package/dist/particles/address-summary/address-summary.js +2 -2
- package/dist/particles/address-summary/address-summary.js.map +1 -1
- package/dist/particles/alert-dialog/alert-dialog.d.ts +5 -1
- package/dist/particles/alert-dialog/alert-dialog.js +5 -2
- package/dist/particles/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/particles/binding-switcher/binding-switcher.d.ts +38 -0
- package/dist/particles/binding-switcher/binding-switcher.js +183 -0
- package/dist/particles/binding-switcher/binding-switcher.js.map +1 -0
- package/dist/particles/card-summary/card-network.d.ts +17 -0
- package/dist/particles/card-summary/card-network.js +25 -0
- package/dist/particles/card-summary/card-network.js.map +1 -0
- package/dist/particles/card-summary/card-summary.d.ts +83 -0
- package/dist/particles/card-summary/card-summary.js +188 -0
- package/dist/particles/card-summary/card-summary.js.map +1 -0
- package/dist/particles/copy-text/copy-text.d.ts +28 -0
- package/dist/particles/copy-text/copy-text.js +140 -0
- package/dist/particles/copy-text/copy-text.js.map +1 -0
- package/dist/particles/document-field/document-field.d.ts +34 -5
- package/dist/particles/document-field/document-field.js +115 -19
- package/dist/particles/document-field/document-field.js.map +1 -1
- package/dist/particles/field/field.js +1 -1
- package/dist/particles/field/field.js.map +1 -1
- package/dist/particles/footer-link-group/footer-link-group.d.ts +6 -2
- package/dist/particles/footer-link-group/footer-link-group.js +18 -7
- package/dist/particles/footer-link-group/footer-link-group.js.map +1 -1
- package/dist/particles/footer-social/footer-social.d.ts +1 -1
- package/dist/particles/footer-social/footer-social.js +1 -1
- package/dist/particles/footer-social/footer-social.js.map +1 -1
- package/dist/particles/incentives/incentives.d.ts +7 -3
- package/dist/particles/incentives/incentives.js +8 -3
- package/dist/particles/incentives/incentives.js.map +1 -1
- package/dist/particles/logo/logo.d.ts +3 -2
- package/dist/particles/logo/logo.js +20 -8
- package/dist/particles/logo/logo.js.map +1 -1
- package/dist/particles/navigation-link/navigation-link.d.ts +2 -3
- package/dist/particles/navigation-link/navigation-link.js +4 -4
- package/dist/particles/navigation-link/navigation-link.js.map +1 -1
- package/dist/particles/navigation-link-list/navigation-link-list.d.ts +6 -2
- package/dist/particles/navigation-link-list/navigation-link-list.js +18 -7
- package/dist/particles/navigation-link-list/navigation-link-list.js.map +1 -1
- package/dist/particles/order-details-back/order-details-back.d.ts +28 -0
- package/dist/particles/order-details-back/order-details-back.js +52 -0
- package/dist/particles/order-details-back/order-details-back.js.map +1 -0
- package/dist/particles/order-status-badge/order-status-badge.d.ts +19 -0
- package/dist/particles/order-status-badge/order-status-badge.js +50 -0
- package/dist/particles/order-status-badge/order-status-badge.js.map +1 -0
- package/dist/particles/payment-methods/payment-methods.d.ts +1 -1
- package/dist/particles/payment-methods/payment-methods.js +1 -1
- package/dist/particles/payment-methods/payment-methods.js.map +1 -1
- package/dist/particles/phone-field/phone-field.js +2 -2
- package/dist/particles/phone-field/phone-field.js.map +1 -1
- package/dist/particles/select/select.js +6 -6
- package/dist/particles/select/select.js.map +1 -1
- package/dist/particles/toast/toast.d.ts +21 -7
- package/dist/particles/toast/toast.js +76 -8
- package/dist/particles/toast/toast.js.map +1 -1
- package/dist/schema.graphql +1376 -126
- package/dist/sdk/actions/address-action-provider.d.ts +16 -0
- package/dist/sdk/actions/address-action-provider.js +20 -0
- package/dist/sdk/actions/address-action-provider.js.map +1 -0
- package/dist/sdk/actions/analytics-action-provider.js +1 -1
- package/dist/sdk/actions/index.d.ts +5 -1
- package/dist/sdk/actions/index.js +5 -1
- package/dist/sdk/actions/locale-action-provider.d.ts +16 -0
- package/dist/sdk/actions/locale-action-provider.js +20 -0
- package/dist/sdk/actions/locale-action-provider.js.map +1 -0
- package/dist/sdk/actions/order-action-provider.d.ts +12 -0
- package/dist/sdk/actions/order-action-provider.js +16 -0
- package/dist/sdk/actions/order-action-provider.js.map +1 -0
- package/dist/sdk/actions/saved-card-action-provider.d.ts +12 -0
- package/dist/sdk/actions/saved-card-action-provider.js +16 -0
- package/dist/sdk/actions/saved-card-action-provider.js.map +1 -0
- package/dist/sdk/actions/types.d.ts +10 -2
- package/dist/sdk/address/address-fields.js +38 -0
- package/dist/sdk/address/address-fields.js.map +1 -0
- package/dist/sdk/address/checkout-readiness.js +17 -0
- package/dist/sdk/address/checkout-readiness.js.map +1 -0
- package/dist/sdk/address/constants.js +60 -0
- package/dist/sdk/address/constants.js.map +1 -0
- package/dist/sdk/address/country-display.js +19 -0
- package/dist/sdk/address/country-display.js.map +1 -0
- package/dist/sdk/address/country-rules.js +30 -0
- package/dist/sdk/address/country-rules.js.map +1 -0
- package/dist/sdk/address/format-address.js +18 -0
- package/dist/sdk/address/format-address.js.map +1 -0
- package/dist/sdk/address/iso-countries.js +262 -0
- package/dist/sdk/address/iso-countries.js.map +1 -0
- package/dist/sdk/address/layouts.js +56 -0
- package/dist/sdk/address/layouts.js.map +1 -0
- package/dist/sdk/address/messages.js +97 -0
- package/dist/sdk/address/messages.js.map +1 -0
- package/dist/sdk/address/operations.d.ts +54 -0
- package/dist/sdk/address/operations.js +83 -0
- package/dist/sdk/address/operations.js.map +1 -0
- package/dist/sdk/address/postal-code-lookup-operations.js +23 -0
- package/dist/sdk/address/postal-code-lookup-operations.js.map +1 -0
- package/dist/sdk/address/postal-code.js +11 -0
- package/dist/sdk/address/postal-code.js.map +1 -0
- package/dist/sdk/address/schema.js +14 -0
- package/dist/sdk/address/schema.js.map +1 -0
- package/dist/sdk/address/server-fields.js +25 -0
- package/dist/sdk/address/server-fields.js.map +1 -0
- package/dist/sdk/address/switch-country.js +57 -0
- package/dist/sdk/address/switch-country.js.map +1 -0
- package/dist/sdk/address/types.d.ts +26 -0
- package/dist/sdk/address/use-address-actions.d.ts +29 -0
- package/dist/sdk/address/use-address-actions.js +247 -0
- package/dist/sdk/address/use-address-actions.js.map +1 -0
- package/dist/sdk/address/use-address-by-postal-code.js +57 -0
- package/dist/sdk/address/use-address-by-postal-code.js.map +1 -0
- package/dist/sdk/address/validate-address.js +62 -0
- package/dist/sdk/address/validate-address.js.map +1 -0
- package/dist/sdk/cache/storefront-cache.js +30 -4
- package/dist/sdk/cache/storefront-cache.js.map +1 -1
- package/dist/sdk/cart/operations.d.ts +2 -1
- package/dist/sdk/cart/operations.js +55 -1
- package/dist/sdk/cart/operations.js.map +1 -1
- package/dist/sdk/cart/optimistic.d.ts +30 -7
- package/dist/sdk/cart/optimistic.js +78 -41
- package/dist/sdk/cart/optimistic.js.map +1 -1
- package/dist/sdk/cart/use-cart-actions.d.ts +7 -0
- package/dist/sdk/cart/use-cart-actions.js +61 -15
- package/dist/sdk/cart/use-cart-actions.js.map +1 -1
- package/dist/sdk/cart/use-cart-sync-sales-channel.js +70 -0
- package/dist/sdk/cart/use-cart-sync-sales-channel.js.map +1 -0
- package/dist/sdk/client/fetch-page-data.d.ts +11 -0
- package/dist/sdk/client/fetch-page-data.js +12 -1
- package/dist/sdk/client/fetch-page-data.js.map +1 -1
- package/dist/sdk/content/create-content-runtime.js +1 -8
- package/dist/sdk/content/create-content-runtime.js.map +1 -1
- package/dist/sdk/data/failed-fields.js +23 -0
- package/dist/sdk/data/failed-fields.js.map +1 -0
- package/dist/sdk/data/index.js +2 -2
- package/dist/sdk/data/page-reactive-data-root.d.ts +45 -7
- package/dist/sdk/data/page-reactive-data-root.js +88 -12
- package/dist/sdk/data/page-reactive-data-root.js.map +1 -1
- package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
- package/dist/sdk/generated/fragment-types.js +2 -0
- package/dist/sdk/generated/fragment-types.js.map +1 -1
- package/dist/sdk/generated/gql.js +17 -11
- package/dist/sdk/generated/gql.js.map +1 -1
- package/dist/sdk/generated/graphql.d.ts +185 -46
- package/dist/sdk/generated/graphql.js +2587 -155
- package/dist/sdk/generated/graphql.js.map +1 -1
- package/dist/sdk/i18n/messages/en-US.js +157 -1
- package/dist/sdk/i18n/messages/en-US.json +157 -1
- package/dist/sdk/i18n/messages/en-US.json.d.ts +156 -0
- package/dist/sdk/i18n/messages/es-ES.js +157 -1
- package/dist/sdk/i18n/messages/es-ES.json +157 -1
- package/dist/sdk/i18n/messages/pt-BR.js +157 -1
- package/dist/sdk/i18n/messages/pt-BR.json +157 -1
- package/dist/sdk/i18n/provider.js +1 -1
- package/dist/sdk/i18n/provider.js.map +1 -1
- package/dist/sdk/locale/binding-switch-provider.d.ts +13 -0
- package/dist/sdk/locale/binding-switch-provider.js +20 -0
- package/dist/sdk/locale/binding-switch-provider.js.map +1 -0
- package/dist/sdk/locale/use-locale-actions.d.ts +16 -0
- package/dist/sdk/locale/use-locale-actions.js +70 -0
- package/dist/sdk/locale/use-locale-actions.js.map +1 -0
- package/dist/sdk/navigation/binding-switch.d.ts +39 -0
- package/dist/sdk/navigation/binding-switch.js +129 -0
- package/dist/sdk/navigation/binding-switch.js.map +1 -0
- package/dist/sdk/navigation/current-page.js +30 -0
- package/dist/sdk/navigation/current-page.js.map +1 -0
- package/dist/sdk/navigation/decode-route-params.d.ts +11 -0
- package/dist/sdk/navigation/decode-route-params.js +32 -0
- package/dist/sdk/navigation/decode-route-params.js.map +1 -0
- package/dist/sdk/navigation/not-found-log.d.ts +28 -0
- package/dist/sdk/navigation/not-found-log.js +133 -0
- package/dist/sdk/navigation/not-found-log.js.map +1 -0
- package/dist/sdk/navigation/path.js +25 -0
- package/dist/sdk/navigation/path.js.map +1 -0
- package/dist/sdk/navigation/redirect.d.ts +11 -0
- package/dist/sdk/navigation/redirect.js +22 -0
- package/dist/sdk/navigation/redirect.js.map +1 -0
- package/dist/sdk/navigation/report.js +70 -0
- package/dist/sdk/navigation/report.js.map +1 -0
- package/dist/sdk/navigation/resolve-storefront-href.d.ts +12 -0
- package/dist/sdk/navigation/resolve-storefront-href.js +214 -0
- package/dist/sdk/navigation/resolve-storefront-href.js.map +1 -0
- package/dist/sdk/navigation/route-identity-provider.d.ts +11 -0
- package/dist/sdk/navigation/route-identity-provider.js +20 -0
- package/dist/sdk/navigation/route-identity-provider.js.map +1 -0
- package/dist/sdk/navigation/route-map-provider.d.ts +19 -0
- package/dist/sdk/navigation/route-map-provider.js +29 -0
- package/dist/sdk/navigation/route-map-provider.js.map +1 -0
- package/dist/sdk/navigation/storefront-link.d.ts +16 -0
- package/dist/sdk/navigation/storefront-link.js +66 -0
- package/dist/sdk/navigation/storefront-link.js.map +1 -0
- package/dist/sdk/navigation/types.d.ts +45 -0
- package/dist/sdk/navigation/use-storefront-navigation.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-navigation.js +73 -0
- package/dist/sdk/navigation/use-storefront-navigation.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-route.d.ts +26 -0
- package/dist/sdk/navigation/use-storefront-route.js +87 -0
- package/dist/sdk/navigation/use-storefront-route.js.map +1 -0
- package/dist/sdk/navigation/use-storefront-search-params.d.ts +11 -0
- package/dist/sdk/navigation/use-storefront-search-params.js +16 -0
- package/dist/sdk/navigation/use-storefront-search-params.js.map +1 -0
- package/dist/sdk/orders/completion-badge.d.ts +8 -0
- package/dist/sdk/orders/completion-badge.js +47 -0
- package/dist/sdk/orders/completion-badge.js.map +1 -0
- package/dist/sdk/orders/order-operations.d.ts +19 -0
- package/dist/sdk/orders/order-operations.js +21 -0
- package/dist/sdk/orders/order-operations.js.map +1 -0
- package/dist/sdk/orders/use-order-actions.d.ts +23 -0
- package/dist/sdk/orders/use-order-actions.js +62 -0
- package/dist/sdk/orders/use-order-actions.js.map +1 -0
- package/dist/sdk/payment/gateway-origin.js +26 -13
- package/dist/sdk/payment/gateway-origin.js.map +1 -1
- package/dist/sdk/payment/gateway.d.ts +14 -2
- package/dist/sdk/payment/gateway.js +32 -14
- package/dist/sdk/payment/gateway.js.map +1 -1
- package/dist/sdk/payment/operations.js +11 -0
- package/dist/sdk/payment/operations.js.map +1 -1
- package/dist/sdk/payment/submission-registry.d.ts +2 -1
- package/dist/sdk/payment/submission-registry.js +12 -8
- package/dist/sdk/payment/submission-registry.js.map +1 -1
- package/dist/sdk/payment/use-payment-actions.d.ts +5 -3
- package/dist/sdk/payment/use-payment-actions.js +5 -2
- package/dist/sdk/payment/use-payment-actions.js.map +1 -1
- package/dist/sdk/payment/use-place-order.d.ts +6 -3
- package/dist/sdk/payment/use-place-order.js +333 -143
- package/dist/sdk/payment/use-place-order.js.map +1 -1
- package/dist/sdk/saved-cards/operations.d.ts +16 -0
- package/dist/sdk/saved-cards/operations.js +41 -0
- package/dist/sdk/saved-cards/operations.js.map +1 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.d.ts +26 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.js +86 -0
- package/dist/sdk/saved-cards/use-saved-card-actions.js.map +1 -0
- package/dist/sdk/seo/page-alternates.d.ts +57 -0
- package/dist/sdk/seo/page-alternates.js +127 -0
- package/dist/sdk/seo/page-alternates.js.map +1 -0
- package/dist/sdk/shipping/shipping-operations.d.ts +1 -1
- package/dist/sdk/shipping/shipping-operations.js +13 -0
- package/dist/sdk/shipping/shipping-operations.js.map +1 -1
- package/dist/sdk/state/cart.d.ts +9 -2
- package/dist/sdk/state/cart.js +9 -2
- package/dist/sdk/state/cart.js.map +1 -1
- package/dist/utils/own-value.js +19 -0
- package/dist/utils/own-value.js.map +1 -0
- package/dist/utils/safe-href.d.ts +4 -4
- package/dist/utils/safe-href.js +31 -22
- package/dist/utils/safe-href.js.map +1 -1
- package/package.json +5 -1
- package/skills/storefront-asset/SKILL.md +111 -0
- package/skills/storefront-asset/references/api-side.md +153 -0
- package/skills/storefront-asset/references/findings.md +40 -0
- package/skills/storefront-asset/references/ui-side.md +94 -0
- package/src/styles/tailwind.css +28 -2
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import "@graphql-typed-document-node/core";
|
|
2
2
|
//#region src/sdk/generated/graphql.d.ts
|
|
3
|
+
/** Origin of a cart-level discount line. */
|
|
4
|
+
export type CartDiscountKind =
|
|
5
|
+
/** A promotion matched by a coupon code the shopper entered. */
|
|
6
|
+
'COUPON' |
|
|
7
|
+
/**
|
|
8
|
+
* The part of the aggregate discount that no named promotion or coupon accounts
|
|
9
|
+
* for — a promotion the merchant did not feature, a discount the platform never
|
|
10
|
+
* itemized, or rounding. At most one entry, always last.
|
|
11
|
+
*/
|
|
12
|
+
'OTHER' |
|
|
13
|
+
/** An automatically applied promotion. */
|
|
14
|
+
'PROMOTION';
|
|
3
15
|
/**
|
|
4
16
|
* Stock availability status for a cart line. Mapped from the upstream
|
|
5
17
|
* order-form availability strings; UNKNOWN absorbs values we haven't classified.
|
|
@@ -19,34 +31,34 @@ export type CartItemQuantityDecreaseErrorCode =
|
|
|
19
31
|
'CART_NOT_FOUND' |
|
|
20
32
|
/** The quantity must be a positive integer. */
|
|
21
33
|
'INVALID_QUANTITY' |
|
|
22
|
-
/** The
|
|
23
|
-
'INVALID_VARIANT_ID' |
|
|
24
|
-
/** The specified variant was not found in the cart. */
|
|
34
|
+
/** The specified line was not found in the cart. */
|
|
25
35
|
'ITEM_NOT_FOUND' |
|
|
26
36
|
/** No cart context was provided (x-order-form-id header/cookie). */
|
|
27
|
-
'MISSING_CART_CONTEXT'
|
|
37
|
+
'MISSING_CART_CONTEXT' |
|
|
38
|
+
/** The upstream checkout API returned an unusable response. */
|
|
39
|
+
'UPSTREAM_ERROR';
|
|
28
40
|
/** Error codes for cart item quantity increase operations. */
|
|
29
41
|
export type CartItemQuantityIncreaseErrorCode =
|
|
30
42
|
/** The cart was not found. */
|
|
31
43
|
'CART_NOT_FOUND' |
|
|
32
44
|
/** The quantity must be a positive integer. */
|
|
33
45
|
'INVALID_QUANTITY' |
|
|
34
|
-
/** The
|
|
35
|
-
'INVALID_VARIANT_ID' |
|
|
36
|
-
/** The specified variant was not found in the cart. */
|
|
46
|
+
/** The specified line was not found in the cart. */
|
|
37
47
|
'ITEM_NOT_FOUND' |
|
|
38
48
|
/** No cart context was provided (x-order-form-id header/cookie). */
|
|
39
|
-
'MISSING_CART_CONTEXT'
|
|
49
|
+
'MISSING_CART_CONTEXT' |
|
|
50
|
+
/** The upstream checkout API returned an unusable response. */
|
|
51
|
+
'UPSTREAM_ERROR';
|
|
40
52
|
/** Error codes for cart item remove operations. */
|
|
41
53
|
export type CartItemRemoveErrorCode =
|
|
42
54
|
/** The cart was not found. */
|
|
43
55
|
'CART_NOT_FOUND' |
|
|
44
|
-
/** The
|
|
45
|
-
'INVALID_VARIANT_ID' |
|
|
46
|
-
/** The specified variant was not found in the cart. */
|
|
56
|
+
/** The specified line was not found in the cart. */
|
|
47
57
|
'ITEM_NOT_FOUND' |
|
|
48
58
|
/** No cart context was provided (x-order-form-id header/cookie). */
|
|
49
|
-
'MISSING_CART_CONTEXT'
|
|
59
|
+
'MISSING_CART_CONTEXT' |
|
|
60
|
+
/** The upstream checkout API returned an unusable response. */
|
|
61
|
+
'UPSTREAM_ERROR';
|
|
50
62
|
/**
|
|
51
63
|
* Input for simulating shipping for the whole active cart. Carries the
|
|
52
64
|
* destination only; items are sourced from the cart in the x-order-form-id
|
|
@@ -80,6 +92,14 @@ export type CurrencyCode =
|
|
|
80
92
|
'PEN' |
|
|
81
93
|
/** United States Dollar. */
|
|
82
94
|
'USD';
|
|
95
|
+
/** Whether a saved card can still be used. */
|
|
96
|
+
export type CustomerSavedCardStatus =
|
|
97
|
+
/** The card's expiry date has passed. Wins over any other platform report. */
|
|
98
|
+
'EXPIRED' |
|
|
99
|
+
/** The card has not expired, but the platform reports it cannot be used. */
|
|
100
|
+
'UNUSABLE' |
|
|
101
|
+
/** The card has not expired and the platform reports nothing against it. */
|
|
102
|
+
'USABLE';
|
|
83
103
|
/** Input for simulating shipping options for a single variant on a PDP. */
|
|
84
104
|
export type ShippingSimulateInput = {
|
|
85
105
|
/** ISO 3166-1 alpha-3 country code (e.g. "BRA"). */
|
|
@@ -179,37 +199,38 @@ export type VariantSelectorDataFragment = {
|
|
|
179
199
|
};
|
|
180
200
|
export type MoneyFragmentFragment = {
|
|
181
201
|
__typename: 'Money';
|
|
182
|
-
amount:
|
|
202
|
+
amount: string;
|
|
183
203
|
currencyCode: CurrencyCode;
|
|
184
204
|
};
|
|
185
205
|
export type CartItemFragmentFragment = {
|
|
186
206
|
__typename: 'CartItem';
|
|
187
207
|
id: string;
|
|
208
|
+
lineId: string;
|
|
188
209
|
quantity: number;
|
|
189
210
|
gift: boolean;
|
|
190
211
|
price: {
|
|
191
212
|
__typename: 'Money';
|
|
192
|
-
amount:
|
|
213
|
+
amount: string;
|
|
193
214
|
currencyCode: CurrencyCode;
|
|
194
215
|
};
|
|
195
216
|
listPrice: {
|
|
196
217
|
__typename: 'Money';
|
|
197
|
-
amount:
|
|
218
|
+
amount: string;
|
|
198
219
|
currencyCode: CurrencyCode;
|
|
199
220
|
};
|
|
200
221
|
sellingPrice: {
|
|
201
222
|
__typename: 'Money';
|
|
202
|
-
amount:
|
|
223
|
+
amount: string;
|
|
203
224
|
currencyCode: CurrencyCode;
|
|
204
225
|
};
|
|
205
226
|
ownTotal: {
|
|
206
227
|
__typename: 'Money';
|
|
207
|
-
amount:
|
|
228
|
+
amount: string;
|
|
208
229
|
currencyCode: CurrencyCode;
|
|
209
230
|
};
|
|
210
231
|
total: {
|
|
211
232
|
__typename: 'Money';
|
|
212
|
-
amount:
|
|
233
|
+
amount: string;
|
|
213
234
|
currencyCode: CurrencyCode;
|
|
214
235
|
};
|
|
215
236
|
variant: {
|
|
@@ -244,31 +265,32 @@ export type CartFragmentFragment = {
|
|
|
244
265
|
items: Array<{
|
|
245
266
|
__typename: 'CartItem';
|
|
246
267
|
id: string;
|
|
268
|
+
lineId: string;
|
|
247
269
|
quantity: number;
|
|
248
270
|
gift: boolean;
|
|
249
271
|
price: {
|
|
250
272
|
__typename: 'Money';
|
|
251
|
-
amount:
|
|
273
|
+
amount: string;
|
|
252
274
|
currencyCode: CurrencyCode;
|
|
253
275
|
};
|
|
254
276
|
listPrice: {
|
|
255
277
|
__typename: 'Money';
|
|
256
|
-
amount:
|
|
278
|
+
amount: string;
|
|
257
279
|
currencyCode: CurrencyCode;
|
|
258
280
|
};
|
|
259
281
|
sellingPrice: {
|
|
260
282
|
__typename: 'Money';
|
|
261
|
-
amount:
|
|
283
|
+
amount: string;
|
|
262
284
|
currencyCode: CurrencyCode;
|
|
263
285
|
};
|
|
264
286
|
ownTotal: {
|
|
265
287
|
__typename: 'Money';
|
|
266
|
-
amount:
|
|
288
|
+
amount: string;
|
|
267
289
|
currencyCode: CurrencyCode;
|
|
268
290
|
};
|
|
269
291
|
total: {
|
|
270
292
|
__typename: 'Money';
|
|
271
|
-
amount:
|
|
293
|
+
amount: string;
|
|
272
294
|
currencyCode: CurrencyCode;
|
|
273
295
|
};
|
|
274
296
|
variant: {
|
|
@@ -303,13 +325,13 @@ export type CartFragmentFragment = {
|
|
|
303
325
|
name: string;
|
|
304
326
|
value: {
|
|
305
327
|
__typename: 'Money';
|
|
306
|
-
amount:
|
|
328
|
+
amount: string;
|
|
307
329
|
currencyCode: CurrencyCode;
|
|
308
330
|
};
|
|
309
331
|
}>;
|
|
310
332
|
total: {
|
|
311
333
|
__typename: 'Money';
|
|
312
|
-
amount:
|
|
334
|
+
amount: string;
|
|
313
335
|
currencyCode: CurrencyCode;
|
|
314
336
|
};
|
|
315
337
|
messages: Array<{
|
|
@@ -322,6 +344,34 @@ export type CartFragmentFragment = {
|
|
|
322
344
|
code: string;
|
|
323
345
|
isUnmatchedCondition: boolean;
|
|
324
346
|
}>;
|
|
347
|
+
discounts: Array<{
|
|
348
|
+
name: string | null;
|
|
349
|
+
kind: CartDiscountKind;
|
|
350
|
+
value: {
|
|
351
|
+
__typename: 'Money';
|
|
352
|
+
amount: string;
|
|
353
|
+
currencyCode: CurrencyCode;
|
|
354
|
+
};
|
|
355
|
+
}>;
|
|
356
|
+
salesChannelMismatch: {
|
|
357
|
+
cartSalesChannel: string;
|
|
358
|
+
activeSalesChannel: string;
|
|
359
|
+
} | null;
|
|
360
|
+
};
|
|
361
|
+
export type CartFreeShippingProgressFragmentFragment = {
|
|
362
|
+
freeShippingProgress: {
|
|
363
|
+
qualified: boolean;
|
|
364
|
+
threshold: {
|
|
365
|
+
__typename: 'Money';
|
|
366
|
+
amount: string;
|
|
367
|
+
currencyCode: CurrencyCode;
|
|
368
|
+
} | null;
|
|
369
|
+
remaining: {
|
|
370
|
+
__typename: 'Money';
|
|
371
|
+
amount: string;
|
|
372
|
+
currencyCode: CurrencyCode;
|
|
373
|
+
};
|
|
374
|
+
} | null;
|
|
325
375
|
};
|
|
326
376
|
export type CartItemRemoveMutation = {
|
|
327
377
|
cartItemRemove: {
|
|
@@ -332,31 +382,32 @@ export type CartItemRemoveMutation = {
|
|
|
332
382
|
items: Array<{
|
|
333
383
|
__typename: 'CartItem';
|
|
334
384
|
id: string;
|
|
385
|
+
lineId: string;
|
|
335
386
|
quantity: number;
|
|
336
387
|
gift: boolean;
|
|
337
388
|
price: {
|
|
338
389
|
__typename: 'Money';
|
|
339
|
-
amount:
|
|
390
|
+
amount: string;
|
|
340
391
|
currencyCode: CurrencyCode;
|
|
341
392
|
};
|
|
342
393
|
listPrice: {
|
|
343
394
|
__typename: 'Money';
|
|
344
|
-
amount:
|
|
395
|
+
amount: string;
|
|
345
396
|
currencyCode: CurrencyCode;
|
|
346
397
|
};
|
|
347
398
|
sellingPrice: {
|
|
348
399
|
__typename: 'Money';
|
|
349
|
-
amount:
|
|
400
|
+
amount: string;
|
|
350
401
|
currencyCode: CurrencyCode;
|
|
351
402
|
};
|
|
352
403
|
ownTotal: {
|
|
353
404
|
__typename: 'Money';
|
|
354
|
-
amount:
|
|
405
|
+
amount: string;
|
|
355
406
|
currencyCode: CurrencyCode;
|
|
356
407
|
};
|
|
357
408
|
total: {
|
|
358
409
|
__typename: 'Money';
|
|
359
|
-
amount:
|
|
410
|
+
amount: string;
|
|
360
411
|
currencyCode: CurrencyCode;
|
|
361
412
|
};
|
|
362
413
|
variant: {
|
|
@@ -391,13 +442,13 @@ export type CartItemRemoveMutation = {
|
|
|
391
442
|
name: string;
|
|
392
443
|
value: {
|
|
393
444
|
__typename: 'Money';
|
|
394
|
-
amount:
|
|
445
|
+
amount: string;
|
|
395
446
|
currencyCode: CurrencyCode;
|
|
396
447
|
};
|
|
397
448
|
}>;
|
|
398
449
|
total: {
|
|
399
450
|
__typename: 'Money';
|
|
400
|
-
amount:
|
|
451
|
+
amount: string;
|
|
401
452
|
currencyCode: CurrencyCode;
|
|
402
453
|
};
|
|
403
454
|
messages: Array<{
|
|
@@ -410,6 +461,32 @@ export type CartItemRemoveMutation = {
|
|
|
410
461
|
code: string;
|
|
411
462
|
isUnmatchedCondition: boolean;
|
|
412
463
|
}>;
|
|
464
|
+
discounts: Array<{
|
|
465
|
+
name: string | null;
|
|
466
|
+
kind: CartDiscountKind;
|
|
467
|
+
value: {
|
|
468
|
+
__typename: 'Money';
|
|
469
|
+
amount: string;
|
|
470
|
+
currencyCode: CurrencyCode;
|
|
471
|
+
};
|
|
472
|
+
}>;
|
|
473
|
+
salesChannelMismatch: {
|
|
474
|
+
cartSalesChannel: string;
|
|
475
|
+
activeSalesChannel: string;
|
|
476
|
+
} | null;
|
|
477
|
+
freeShippingProgress: {
|
|
478
|
+
qualified: boolean;
|
|
479
|
+
threshold: {
|
|
480
|
+
__typename: 'Money';
|
|
481
|
+
amount: string;
|
|
482
|
+
currencyCode: CurrencyCode;
|
|
483
|
+
} | null;
|
|
484
|
+
remaining: {
|
|
485
|
+
__typename: 'Money';
|
|
486
|
+
amount: string;
|
|
487
|
+
currencyCode: CurrencyCode;
|
|
488
|
+
};
|
|
489
|
+
} | null;
|
|
413
490
|
} | null;
|
|
414
491
|
userErrors: Array<{
|
|
415
492
|
code: CartItemRemoveErrorCode;
|
|
@@ -426,31 +503,32 @@ export type CartItemQuantityIncreaseMutation = {
|
|
|
426
503
|
items: Array<{
|
|
427
504
|
__typename: 'CartItem';
|
|
428
505
|
id: string;
|
|
506
|
+
lineId: string;
|
|
429
507
|
quantity: number;
|
|
430
508
|
gift: boolean;
|
|
431
509
|
price: {
|
|
432
510
|
__typename: 'Money';
|
|
433
|
-
amount:
|
|
511
|
+
amount: string;
|
|
434
512
|
currencyCode: CurrencyCode;
|
|
435
513
|
};
|
|
436
514
|
listPrice: {
|
|
437
515
|
__typename: 'Money';
|
|
438
|
-
amount:
|
|
516
|
+
amount: string;
|
|
439
517
|
currencyCode: CurrencyCode;
|
|
440
518
|
};
|
|
441
519
|
sellingPrice: {
|
|
442
520
|
__typename: 'Money';
|
|
443
|
-
amount:
|
|
521
|
+
amount: string;
|
|
444
522
|
currencyCode: CurrencyCode;
|
|
445
523
|
};
|
|
446
524
|
ownTotal: {
|
|
447
525
|
__typename: 'Money';
|
|
448
|
-
amount:
|
|
526
|
+
amount: string;
|
|
449
527
|
currencyCode: CurrencyCode;
|
|
450
528
|
};
|
|
451
529
|
total: {
|
|
452
530
|
__typename: 'Money';
|
|
453
|
-
amount:
|
|
531
|
+
amount: string;
|
|
454
532
|
currencyCode: CurrencyCode;
|
|
455
533
|
};
|
|
456
534
|
variant: {
|
|
@@ -485,13 +563,13 @@ export type CartItemQuantityIncreaseMutation = {
|
|
|
485
563
|
name: string;
|
|
486
564
|
value: {
|
|
487
565
|
__typename: 'Money';
|
|
488
|
-
amount:
|
|
566
|
+
amount: string;
|
|
489
567
|
currencyCode: CurrencyCode;
|
|
490
568
|
};
|
|
491
569
|
}>;
|
|
492
570
|
total: {
|
|
493
571
|
__typename: 'Money';
|
|
494
|
-
amount:
|
|
572
|
+
amount: string;
|
|
495
573
|
currencyCode: CurrencyCode;
|
|
496
574
|
};
|
|
497
575
|
messages: Array<{
|
|
@@ -504,6 +582,32 @@ export type CartItemQuantityIncreaseMutation = {
|
|
|
504
582
|
code: string;
|
|
505
583
|
isUnmatchedCondition: boolean;
|
|
506
584
|
}>;
|
|
585
|
+
discounts: Array<{
|
|
586
|
+
name: string | null;
|
|
587
|
+
kind: CartDiscountKind;
|
|
588
|
+
value: {
|
|
589
|
+
__typename: 'Money';
|
|
590
|
+
amount: string;
|
|
591
|
+
currencyCode: CurrencyCode;
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
594
|
+
salesChannelMismatch: {
|
|
595
|
+
cartSalesChannel: string;
|
|
596
|
+
activeSalesChannel: string;
|
|
597
|
+
} | null;
|
|
598
|
+
freeShippingProgress: {
|
|
599
|
+
qualified: boolean;
|
|
600
|
+
threshold: {
|
|
601
|
+
__typename: 'Money';
|
|
602
|
+
amount: string;
|
|
603
|
+
currencyCode: CurrencyCode;
|
|
604
|
+
} | null;
|
|
605
|
+
remaining: {
|
|
606
|
+
__typename: 'Money';
|
|
607
|
+
amount: string;
|
|
608
|
+
currencyCode: CurrencyCode;
|
|
609
|
+
};
|
|
610
|
+
} | null;
|
|
507
611
|
} | null;
|
|
508
612
|
userErrors: Array<{
|
|
509
613
|
code: CartItemQuantityIncreaseErrorCode;
|
|
@@ -520,31 +624,32 @@ export type CartItemQuantityDecreaseMutation = {
|
|
|
520
624
|
items: Array<{
|
|
521
625
|
__typename: 'CartItem';
|
|
522
626
|
id: string;
|
|
627
|
+
lineId: string;
|
|
523
628
|
quantity: number;
|
|
524
629
|
gift: boolean;
|
|
525
630
|
price: {
|
|
526
631
|
__typename: 'Money';
|
|
527
|
-
amount:
|
|
632
|
+
amount: string;
|
|
528
633
|
currencyCode: CurrencyCode;
|
|
529
634
|
};
|
|
530
635
|
listPrice: {
|
|
531
636
|
__typename: 'Money';
|
|
532
|
-
amount:
|
|
637
|
+
amount: string;
|
|
533
638
|
currencyCode: CurrencyCode;
|
|
534
639
|
};
|
|
535
640
|
sellingPrice: {
|
|
536
641
|
__typename: 'Money';
|
|
537
|
-
amount:
|
|
642
|
+
amount: string;
|
|
538
643
|
currencyCode: CurrencyCode;
|
|
539
644
|
};
|
|
540
645
|
ownTotal: {
|
|
541
646
|
__typename: 'Money';
|
|
542
|
-
amount:
|
|
647
|
+
amount: string;
|
|
543
648
|
currencyCode: CurrencyCode;
|
|
544
649
|
};
|
|
545
650
|
total: {
|
|
546
651
|
__typename: 'Money';
|
|
547
|
-
amount:
|
|
652
|
+
amount: string;
|
|
548
653
|
currencyCode: CurrencyCode;
|
|
549
654
|
};
|
|
550
655
|
variant: {
|
|
@@ -579,13 +684,13 @@ export type CartItemQuantityDecreaseMutation = {
|
|
|
579
684
|
name: string;
|
|
580
685
|
value: {
|
|
581
686
|
__typename: 'Money';
|
|
582
|
-
amount:
|
|
687
|
+
amount: string;
|
|
583
688
|
currencyCode: CurrencyCode;
|
|
584
689
|
};
|
|
585
690
|
}>;
|
|
586
691
|
total: {
|
|
587
692
|
__typename: 'Money';
|
|
588
|
-
amount:
|
|
693
|
+
amount: string;
|
|
589
694
|
currencyCode: CurrencyCode;
|
|
590
695
|
};
|
|
591
696
|
messages: Array<{
|
|
@@ -598,6 +703,32 @@ export type CartItemQuantityDecreaseMutation = {
|
|
|
598
703
|
code: string;
|
|
599
704
|
isUnmatchedCondition: boolean;
|
|
600
705
|
}>;
|
|
706
|
+
discounts: Array<{
|
|
707
|
+
name: string | null;
|
|
708
|
+
kind: CartDiscountKind;
|
|
709
|
+
value: {
|
|
710
|
+
__typename: 'Money';
|
|
711
|
+
amount: string;
|
|
712
|
+
currencyCode: CurrencyCode;
|
|
713
|
+
};
|
|
714
|
+
}>;
|
|
715
|
+
salesChannelMismatch: {
|
|
716
|
+
cartSalesChannel: string;
|
|
717
|
+
activeSalesChannel: string;
|
|
718
|
+
} | null;
|
|
719
|
+
freeShippingProgress: {
|
|
720
|
+
qualified: boolean;
|
|
721
|
+
threshold: {
|
|
722
|
+
__typename: 'Money';
|
|
723
|
+
amount: string;
|
|
724
|
+
currencyCode: CurrencyCode;
|
|
725
|
+
} | null;
|
|
726
|
+
remaining: {
|
|
727
|
+
__typename: 'Money';
|
|
728
|
+
amount: string;
|
|
729
|
+
currencyCode: CurrencyCode;
|
|
730
|
+
};
|
|
731
|
+
} | null;
|
|
601
732
|
} | null;
|
|
602
733
|
userErrors: Array<{
|
|
603
734
|
code: CartItemQuantityDecreaseErrorCode;
|
|
@@ -611,6 +742,14 @@ export type RegionFragmentFragment = {
|
|
|
611
742
|
postalCode: string | null;
|
|
612
743
|
city: string | null;
|
|
613
744
|
};
|
|
745
|
+
export type CatalogRouteAlternatesQuery = {
|
|
746
|
+
catalogRoute: {
|
|
747
|
+
variants: Array<{
|
|
748
|
+
locale: string;
|
|
749
|
+
path: string;
|
|
750
|
+
}>;
|
|
751
|
+
} | null;
|
|
752
|
+
};
|
|
614
753
|
export type SessionFragmentFragment = {
|
|
615
754
|
__typename: 'Session';
|
|
616
755
|
id: string;
|