@shopify/ui-extensions 2025.10.14 → 2025.10.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/surfaces/checkout/preact/api.js +2 -0
- package/build/cjs/surfaces/checkout/preact/app-metafields.js +1 -0
- package/build/cjs/surfaces/checkout/preact/attributes.js +3 -0
- package/build/cjs/surfaces/checkout/preact/billing-address.js +1 -0
- package/build/cjs/surfaces/checkout/preact/buyer-identity.js +4 -0
- package/build/cjs/surfaces/checkout/preact/buyer-journey.js +5 -0
- package/build/cjs/surfaces/checkout/preact/capabilities.js +2 -0
- package/build/cjs/surfaces/checkout/preact/cart-line-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/cart-lines.js +2 -0
- package/build/cjs/surfaces/checkout/preact/checkout-settings.js +1 -0
- package/build/cjs/surfaces/checkout/preact/checkout-token.js +1 -0
- package/build/cjs/surfaces/checkout/preact/cost.js +4 -0
- package/build/cjs/surfaces/checkout/preact/country.js +1 -0
- package/build/cjs/surfaces/checkout/preact/currency.js +1 -0
- package/build/cjs/surfaces/checkout/preact/customer-privacy.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group-list-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-groups.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-selection-groups.js +1 -0
- package/build/cjs/surfaces/checkout/preact/discounts.js +3 -0
- package/build/cjs/surfaces/checkout/preact/extension-editor.js +1 -0
- package/build/cjs/surfaces/checkout/preact/extension-language.js +1 -0
- package/build/cjs/surfaces/checkout/preact/extension.js +2 -0
- package/build/cjs/surfaces/checkout/preact/gift-cards.js +2 -0
- package/build/cjs/surfaces/checkout/preact/instructions.js +1 -0
- package/build/cjs/surfaces/checkout/preact/language.js +1 -0
- package/build/cjs/surfaces/checkout/preact/localized-fields.js +4 -0
- package/build/cjs/surfaces/checkout/preact/market.js +1 -0
- package/build/cjs/surfaces/checkout/preact/metafield.js +1 -0
- package/build/cjs/surfaces/checkout/preact/metafields.js +2 -0
- package/build/cjs/surfaces/checkout/preact/note.js +2 -0
- package/build/cjs/surfaces/checkout/preact/payment-method.js +3 -0
- package/build/cjs/surfaces/checkout/preact/payment-options.js +2 -0
- package/build/cjs/surfaces/checkout/preact/pickup-location-option-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/redeemable.js +1 -0
- package/build/cjs/surfaces/checkout/preact/session-token.js +1 -0
- package/build/cjs/surfaces/checkout/preact/settings.js +1 -0
- package/build/cjs/surfaces/checkout/preact/shipping-address.js +2 -0
- package/build/cjs/surfaces/checkout/preact/shipping-option-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/shop.js +1 -0
- package/build/cjs/surfaces/checkout/preact/storage.js +1 -0
- package/build/cjs/surfaces/checkout/preact/subscription.js +1 -0
- package/build/cjs/surfaces/checkout/preact/target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/timezone.js +1 -0
- package/build/cjs/surfaces/checkout/preact/translate.js +1 -0
- package/build/cjs/surfaces/checkout/shared.js +2 -0
- package/build/cjs/surfaces/checkout/style/style.js +1 -0
- package/build/cjs/surfaces/point-of-sale/types/storage.js +3 -1
- package/build/esm/surfaces/checkout/preact/api.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/app-metafields.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/attributes.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/billing-address.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/buyer-identity.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/buyer-journey.mjs +5 -0
- package/build/esm/surfaces/checkout/preact/capabilities.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/cart-line-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/cart-lines.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/checkout-settings.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/checkout-token.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/cost.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/country.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/currency.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/customer-privacy.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group-list-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-groups.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-selection-groups.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/discounts.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/extension-editor.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/extension-language.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/extension.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/gift-cards.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/instructions.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/language.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/localized-fields.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/market.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/metafield.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/metafields.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/note.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/payment-method.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/payment-options.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/pickup-location-option-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/redeemable.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/session-token.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/settings.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/shipping-address.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/shipping-option-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/shop.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/storage.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/subscription.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/timezone.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/translate.mjs +1 -0
- package/build/esm/surfaces/checkout/shared.mjs +2 -0
- package/build/esm/surfaces/checkout/style/style.mjs +1 -0
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -1
- package/build/esnext/surfaces/checkout/preact/api.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/app-metafields.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/attributes.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/billing-address.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/buyer-identity.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/buyer-journey.esnext +5 -0
- package/build/esnext/surfaces/checkout/preact/capabilities.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/cart-line-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/cart-lines.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/checkout-settings.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/checkout-token.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/cost.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/country.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/currency.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/customer-privacy.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group-list-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-groups.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-selection-groups.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/discounts.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/extension-editor.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/extension-language.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/extension.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/gift-cards.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/instructions.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/language.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/localized-fields.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/market.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/metafield.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/metafields.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/note.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/payment-method.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/payment-options.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/pickup-location-option-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/redeemable.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/session-token.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/settings.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/shipping-address.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/shipping-option-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/shop.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/storage.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/subscription.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/timezone.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/translate.esnext +1 -0
- package/build/esnext/surfaces/checkout/shared.esnext +2 -0
- package/build/esnext/surfaces/checkout/style/style.esnext +1 -0
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -1
- package/build/ts/shared.d.ts +68 -13
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +1 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +1 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +6 -0
- package/build/ts/surfaces/admin/api/intents/intents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts +1 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +1 -0
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts +1 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts +1 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +2 -0
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts +1 -0
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +1 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +2 -0
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +2 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +3 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Box.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Button.d.ts +3 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +2 -0
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Clickable.d.ts +7 -7
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +2 -0
- package/build/ts/surfaces/admin/components/DateField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Divider.d.ts +2 -0
- package/build/ts/surfaces/admin/components/EmailField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Form.d.ts +2 -0
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Grid.d.ts +12 -12
- package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Heading.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Icon.d.ts +0 -3
- package/build/ts/surfaces/admin/components/Image.d.ts +9 -7
- package/build/ts/surfaces/admin/components/Link.d.ts +2 -0
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/NumberField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +2 -0
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Section.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Select.d.ts +2 -0
- package/build/ts/surfaces/admin/components/Stack.d.ts +11 -11
- package/build/ts/surfaces/admin/components/Text.d.ts +2 -0
- package/build/ts/surfaces/admin/components/TextArea.d.ts +2 -0
- package/build/ts/surfaces/admin/components/TextField.d.ts +3 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +2 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +1 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +3 -2
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts +3 -2
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +9 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +229 -118
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +33 -0
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +13 -5
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +11 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +4 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +4 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +77 -31
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +13 -4
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +16 -12
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +652 -437
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +43 -13
- package/build/ts/surfaces/checkout/components/Badge.d.ts +47 -6
- package/build/ts/surfaces/checkout/components/Banner.d.ts +67 -12
- package/build/ts/surfaces/checkout/components/Box.d.ts +55 -2
- package/build/ts/surfaces/checkout/components/Button.d.ts +27 -6
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +54 -9
- package/build/ts/surfaces/checkout/components/Chip.d.ts +6 -3
- package/build/ts/surfaces/checkout/components/Choice.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +17 -5
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +50 -9
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +21 -8
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +16 -5
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +26 -5
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +37 -13
- package/build/ts/surfaces/checkout/components/DateField.d.ts +36 -15
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +31 -12
- package/build/ts/surfaces/checkout/components/Details.d.ts +22 -11
- package/build/ts/surfaces/checkout/components/Divider.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +23 -8
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +42 -12
- package/build/ts/surfaces/checkout/components/Form.d.ts +18 -4
- package/build/ts/surfaces/checkout/components/Grid.d.ts +142 -2
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +60 -2
- package/build/ts/surfaces/checkout/components/Heading.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Icon.d.ts +45 -6
- package/build/ts/surfaces/checkout/components/Image.d.ts +40 -2
- package/build/ts/surfaces/checkout/components/Link.d.ts +17 -6
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Map.d.ts +72 -8
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +36 -10
- package/build/ts/surfaces/checkout/components/Modal.d.ts +51 -10
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +37 -10
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +45 -12
- package/build/ts/surfaces/checkout/components/Option.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +12 -2
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +42 -12
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +12 -3
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +42 -12
- package/build/ts/surfaces/checkout/components/Popover.d.ts +39 -24
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +21 -9
- package/build/ts/surfaces/checkout/components/ProductThumbnail.d.ts +21 -3
- package/build/ts/surfaces/checkout/components/Progress.d.ts +29 -3
- package/build/ts/surfaces/checkout/components/QRCode.d.ts +27 -5
- package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +60 -2
- package/build/ts/surfaces/checkout/components/Section.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Select.d.ts +35 -7
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +40 -15
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +3 -3
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +18 -3
- package/build/ts/surfaces/checkout/components/Stack.d.ts +115 -2
- package/build/ts/surfaces/checkout/components/Summary.d.ts +2 -0
- package/build/ts/surfaces/checkout/components/Switch.d.ts +16 -5
- package/build/ts/surfaces/checkout/components/Text.d.ts +21 -4
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +37 -10
- package/build/ts/surfaces/checkout/components/TextField.d.ts +45 -12
- package/build/ts/surfaces/checkout/components/Time.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Tooltip.d.ts +21 -4
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +31 -17
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +656 -488
- package/build/ts/surfaces/checkout/components/components.d.ts +462 -358
- package/build/ts/surfaces/checkout/extension-targets.d.ts +12 -0
- package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts +1 -0
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/api.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/app-metafields.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/app-metafields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/attributes.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/attributes.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/billing-address.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/billing-address.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/buyer-identity.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/buyer-identity.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/buyer-journey.d.ts +5 -0
- package/build/ts/surfaces/checkout/preact/buyer-journey.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/capabilities.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/capabilities.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cart-line-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/cart-line-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cart-lines.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/cart-lines.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/checkout-settings.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/checkout-settings.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/checkout-token.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/checkout-token.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cost.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/cost.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/country.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/country.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/currency.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/currency.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/customer-privacy.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/customer-privacy.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group-list-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group-list-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-groups.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-groups.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-selection-groups.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-selection-groups.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/discounts.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/discounts.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension-editor.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/extension-editor.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension-language.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/extension-language.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/extension.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/gift-cards.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/gift-cards.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/instructions.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/instructions.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/language.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/language.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/localized-fields.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/localized-fields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/market.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/market.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/metafield.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/metafield.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/metafields.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/note.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/note.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/payment-method.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/payment-method.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/payment-options.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/payment-options.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/pickup-location-option-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/pickup-location-option-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/redeemable.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/session-token.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/session-token.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/settings.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/settings.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shipping-address.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/shipping-address.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shipping-option-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/shipping-option-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shop.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/shop.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/storage.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/storage.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/subscription.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/timezone.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/timezone.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/translate.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/translate.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +3 -2
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.d.ts +1 -0
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/types.d.ts +0 -4
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +236 -20
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +38 -9
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +53 -36
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +46 -52
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +43 -13
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +44 -14
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +47 -6
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +67 -12
- package/build/ts/surfaces/customer-account/components/Box.d.ts +55 -2
- package/build/ts/surfaces/customer-account/components/Button.d.ts +27 -6
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -9
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +6 -3
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +17 -5
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +50 -9
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +21 -8
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +16 -5
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +26 -5
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +37 -13
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +36 -15
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +31 -12
- package/build/ts/surfaces/customer-account/components/Details.d.ts +22 -11
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +23 -8
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +42 -12
- package/build/ts/surfaces/customer-account/components/Form.d.ts +18 -4
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +142 -2
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +60 -2
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +45 -6
- package/build/ts/surfaces/customer-account/components/Image.d.ts +40 -2
- package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/build/ts/surfaces/customer-account/components/Link.d.ts +17 -6
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Map.d.ts +72 -8
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +36 -10
- package/build/ts/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +51 -10
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +37 -10
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +45 -12
- package/build/ts/surfaces/customer-account/components/Option.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Page.d.ts +5 -5
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +12 -2
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +42 -12
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +12 -3
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +42 -12
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +39 -24
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +21 -9
- package/build/ts/surfaces/customer-account/components/ProductThumbnail.d.ts +21 -3
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +29 -3
- package/build/ts/surfaces/customer-account/components/QRCode.d.ts +27 -5
- package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +60 -2
- package/build/ts/surfaces/customer-account/components/Section.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Select.d.ts +35 -7
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +40 -15
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +18 -3
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +115 -2
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +16 -5
- package/build/ts/surfaces/customer-account/components/Text.d.ts +21 -4
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +37 -10
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +45 -12
- package/build/ts/surfaces/customer-account/components/Time.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +21 -4
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +31 -17
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +656 -488
- package/build/ts/surfaces/customer-account/components/components.d.ts +462 -358
- package/build/ts/surfaces/customer-account/components/shared.d.ts +23 -2
- package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared.ts +23 -5
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +3 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +4 -2
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +4 -5
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +6 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +5 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +1 -16
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -3
- package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +33 -20
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +3 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -5
- package/src/shared.ts +67 -13
- package/src/surfaces/admin/api/action/action.ts +1 -0
- package/src/surfaces/admin/api/block/block.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +1 -0
- package/src/surfaces/admin/api/intents/intents.ts +6 -0
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +1 -0
- package/src/surfaces/admin/api/picker/picker.ts +1 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +1 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +1 -0
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +1 -0
- package/src/surfaces/admin/api/purchase-options-card-action.ts +1 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +2 -0
- package/src/surfaces/admin/api/should-render/should-render.ts +1 -0
- package/src/surfaces/admin/api/standard/standard.ts +1 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +2 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +2 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +2 -0
- package/src/surfaces/admin/components/Badge.d.ts +3 -1
- package/src/surfaces/admin/components/Banner.d.ts +2 -0
- package/src/surfaces/admin/components/Box.d.ts +2 -0
- package/src/surfaces/admin/components/Button.d.ts +3 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +2 -0
- package/src/surfaces/admin/components/ChoiceList.d.ts +2 -0
- package/src/surfaces/admin/components/Clickable.d.ts +7 -7
- package/src/surfaces/admin/components/ColorPicker.d.ts +2 -0
- package/src/surfaces/admin/components/DateField.d.ts +2 -0
- package/src/surfaces/admin/components/DatePicker.d.ts +2 -0
- package/src/surfaces/admin/components/Divider.d.ts +2 -0
- package/src/surfaces/admin/components/EmailField.d.ts +2 -0
- package/src/surfaces/admin/components/Form.d.ts +2 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +2 -0
- package/src/surfaces/admin/components/Grid.d.ts +12 -12
- package/src/surfaces/admin/components/GridItem.d.ts +7 -7
- package/src/surfaces/admin/components/Heading.d.ts +2 -0
- package/src/surfaces/admin/components/Icon.d.ts +0 -3
- package/src/surfaces/admin/components/Image.d.ts +9 -7
- package/src/surfaces/admin/components/Link.d.ts +2 -0
- package/src/surfaces/admin/components/MoneyField.d.ts +2 -0
- package/src/surfaces/admin/components/NumberField.d.ts +2 -0
- package/src/surfaces/admin/components/Paragraph.d.ts +2 -0
- package/src/surfaces/admin/components/PasswordField.d.ts +2 -0
- package/src/surfaces/admin/components/Section.d.ts +2 -0
- package/src/surfaces/admin/components/Select.d.ts +2 -0
- package/src/surfaces/admin/components/Stack.d.ts +11 -11
- package/src/surfaces/admin/components/Text.d.ts +2 -0
- package/src/surfaces/admin/components/TextArea.d.ts +2 -0
- package/src/surfaces/admin/components/TextField.d.ts +3 -1
- package/src/surfaces/admin/components/URLField.d.ts +2 -0
- package/src/surfaces/admin/components/shared.d.ts +1 -1
- package/src/surfaces/admin/components.d.ts +1129 -23
- package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +1 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +3 -2
- package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +3 -2
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +9 -1
- package/src/surfaces/checkout/api/checkout/checkout.ts +229 -118
- package/src/surfaces/checkout/api/docs.ts +33 -0
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +13 -5
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +11 -2
- package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +4 -1
- package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +4 -1
- package/src/surfaces/checkout/api/shared.ts +77 -31
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +13 -4
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +16 -12
- package/src/surfaces/checkout/api/standard/standard.ts +654 -437
- package/src/surfaces/checkout/components/Abbreviation.d.ts +4 -3
- package/src/surfaces/checkout/components/Announcement.d.ts +43 -13
- package/src/surfaces/checkout/components/Badge.d.ts +47 -6
- package/src/surfaces/checkout/components/Banner.d.ts +67 -12
- package/src/surfaces/checkout/components/Box.d.ts +55 -2
- package/src/surfaces/checkout/components/Button.d.ts +27 -6
- package/src/surfaces/checkout/components/Checkbox.d.ts +54 -9
- package/src/surfaces/checkout/components/Chip.d.ts +6 -3
- package/src/surfaces/checkout/components/Choice.d.ts +5 -3
- package/src/surfaces/checkout/components/ChoiceList.d.ts +17 -5
- package/src/surfaces/checkout/components/Clickable.d.ts +50 -9
- package/src/surfaces/checkout/components/ClickableChip.d.ts +21 -8
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +16 -5
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +26 -5
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +37 -13
- package/src/surfaces/checkout/components/DateField.d.ts +36 -15
- package/src/surfaces/checkout/components/DatePicker.d.ts +31 -12
- package/src/surfaces/checkout/components/Details.d.ts +22 -11
- package/src/surfaces/checkout/components/Divider.d.ts +4 -3
- package/src/surfaces/checkout/components/DropZone.d.ts +23 -8
- package/src/surfaces/checkout/components/EmailField.d.ts +42 -12
- package/src/surfaces/checkout/components/Form.d.ts +18 -4
- package/src/surfaces/checkout/components/Grid.d.ts +142 -2
- package/src/surfaces/checkout/components/GridItem.d.ts +60 -2
- package/src/surfaces/checkout/components/Heading.d.ts +4 -3
- package/src/surfaces/checkout/components/Icon.d.ts +45 -6
- package/src/surfaces/checkout/components/Image.d.ts +40 -2
- package/src/surfaces/checkout/components/Link.d.ts +17 -6
- package/src/surfaces/checkout/components/ListItem.d.ts +4 -3
- package/src/surfaces/checkout/components/Map.d.ts +72 -8
- package/src/surfaces/checkout/components/MapMarker.d.ts +36 -10
- package/src/surfaces/checkout/components/Modal.d.ts +51 -10
- package/src/surfaces/checkout/components/MoneyField.d.ts +37 -10
- package/src/surfaces/checkout/components/NumberField.d.ts +45 -12
- package/src/surfaces/checkout/components/Option.d.ts +4 -3
- package/src/surfaces/checkout/components/OrderedList.d.ts +4 -3
- package/src/surfaces/checkout/components/Paragraph.d.ts +12 -2
- package/src/surfaces/checkout/components/PasswordField.d.ts +42 -12
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +12 -3
- package/src/surfaces/checkout/components/PhoneField.d.ts +42 -12
- package/src/surfaces/checkout/components/Popover.d.ts +39 -24
- package/src/surfaces/checkout/components/PressButton.d.ts +21 -9
- package/src/surfaces/checkout/components/ProductThumbnail.d.ts +21 -3
- package/src/surfaces/checkout/components/Progress.d.ts +29 -3
- package/src/surfaces/checkout/components/QRCode.d.ts +27 -5
- package/src/surfaces/checkout/components/QueryContainer.d.ts +5 -3
- package/src/surfaces/checkout/components/ScrollBox.d.ts +60 -2
- package/src/surfaces/checkout/components/Section.d.ts +4 -3
- package/src/surfaces/checkout/components/Select.d.ts +35 -7
- package/src/surfaces/checkout/components/Sheet.d.ts +40 -15
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +3 -3
- package/src/surfaces/checkout/components/Spinner.d.ts +18 -3
- package/src/surfaces/checkout/components/Stack.d.ts +115 -2
- package/src/surfaces/checkout/components/Summary.d.ts +2 -0
- package/src/surfaces/checkout/components/Switch.d.ts +16 -5
- package/src/surfaces/checkout/components/Text.d.ts +21 -4
- package/src/surfaces/checkout/components/TextArea.d.ts +37 -10
- package/src/surfaces/checkout/components/TextField.d.ts +45 -12
- package/src/surfaces/checkout/components/Time.d.ts +4 -3
- package/src/surfaces/checkout/components/Tooltip.d.ts +21 -4
- package/src/surfaces/checkout/components/UnorderedList.d.ts +4 -3
- package/src/surfaces/checkout/components/UrlField.d.ts +31 -17
- package/src/surfaces/checkout/components/components-shared.d.ts +656 -488
- package/src/surfaces/checkout/components/components.d.ts +462 -358
- package/src/surfaces/checkout/extension-targets.ts +12 -0
- package/src/surfaces/checkout/globals.ts +1 -0
- package/src/surfaces/checkout/preact/api.ts +2 -0
- package/src/surfaces/checkout/preact/app-metafields.ts +1 -0
- package/src/surfaces/checkout/preact/attributes.ts +3 -0
- package/src/surfaces/checkout/preact/billing-address.ts +1 -0
- package/src/surfaces/checkout/preact/buyer-identity.ts +4 -0
- package/src/surfaces/checkout/preact/buyer-journey.ts +5 -0
- package/src/surfaces/checkout/preact/capabilities.ts +2 -0
- package/src/surfaces/checkout/preact/cart-line-target.ts +1 -0
- package/src/surfaces/checkout/preact/cart-lines.ts +2 -0
- package/src/surfaces/checkout/preact/checkout-settings.ts +1 -0
- package/src/surfaces/checkout/preact/checkout-token.ts +1 -0
- package/src/surfaces/checkout/preact/cost.ts +4 -0
- package/src/surfaces/checkout/preact/country.ts +1 -0
- package/src/surfaces/checkout/preact/currency.ts +1 -0
- package/src/surfaces/checkout/preact/customer-privacy.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group-list-target.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group-target.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-groups.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-selection-groups.ts +1 -0
- package/src/surfaces/checkout/preact/discounts.ts +3 -0
- package/src/surfaces/checkout/preact/extension-editor.ts +1 -0
- package/src/surfaces/checkout/preact/extension-language.ts +1 -0
- package/src/surfaces/checkout/preact/extension.ts +2 -0
- package/src/surfaces/checkout/preact/gift-cards.ts +2 -0
- package/src/surfaces/checkout/preact/instructions.ts +1 -0
- package/src/surfaces/checkout/preact/language.ts +1 -0
- package/src/surfaces/checkout/preact/localized-fields.ts +4 -0
- package/src/surfaces/checkout/preact/market.ts +1 -0
- package/src/surfaces/checkout/preact/metafield.ts +1 -0
- package/src/surfaces/checkout/preact/metafields.ts +2 -0
- package/src/surfaces/checkout/preact/note.ts +2 -0
- package/src/surfaces/checkout/preact/payment-method.ts +3 -0
- package/src/surfaces/checkout/preact/payment-options.ts +2 -0
- package/src/surfaces/checkout/preact/pickup-location-option-target.ts +1 -0
- package/src/surfaces/checkout/preact/redeemable.ts +1 -0
- package/src/surfaces/checkout/preact/session-token.ts +1 -0
- package/src/surfaces/checkout/preact/settings.ts +1 -0
- package/src/surfaces/checkout/preact/shipping-address.ts +2 -0
- package/src/surfaces/checkout/preact/shipping-option-target.ts +1 -0
- package/src/surfaces/checkout/preact/shop.ts +1 -0
- package/src/surfaces/checkout/preact/storage.ts +1 -0
- package/src/surfaces/checkout/preact/subscription.ts +1 -0
- package/src/surfaces/checkout/preact/target.ts +1 -0
- package/src/surfaces/checkout/preact/timezone.ts +1 -0
- package/src/surfaces/checkout/preact/translate.ts +1 -0
- package/src/surfaces/checkout/shared.ts +3 -2
- package/src/surfaces/checkout/style/style.ts +1 -0
- package/src/surfaces/checkout/style/types.ts +0 -4
- package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +1 -1
- package/src/surfaces/customer-account/api/docs.ts +241 -22
- package/src/surfaces/customer-account/api/order-status/order-status.ts +38 -9
- package/src/surfaces/customer-account/api/shared.ts +53 -36
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +46 -52
- package/src/surfaces/customer-account/components/Avatar.d.ts +44 -14
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/src/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/src/surfaces/customer-account/components/Page.d.ts +5 -5
- package/src/surfaces/customer-account/components/Section.d.ts +3 -7
- package/src/surfaces/customer-account/components/shared.ts +23 -5
- package/src/surfaces/customer-account/components.d.ts +58 -0
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +3 -1
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +6 -0
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +4 -2
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +4 -5
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +6 -1
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +1 -1
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +5 -1
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -2
- package/src/surfaces/point-of-sale/components.d.ts +190 -11
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +1 -20
- package/src/surfaces/point-of-sale/event/data.ts +1 -10
- package/src/surfaces/point-of-sale/extension-targets.ts +33 -35
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +2 -0
- package/src/surfaces/point-of-sale/types/storage.ts +3 -1
- package/build/ts/docs/shared/component-definitions.d.ts +0 -32
- package/build/ts/docs/shared/component-definitions.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Abbreviation.d.ts +0 -4
- package/build/ts/docs/shared/components/Abbreviation.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Announcement.d.ts +0 -4
- package/build/ts/docs/shared/components/Announcement.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Avatar.d.ts +0 -4
- package/build/ts/docs/shared/components/Avatar.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Badge.d.ts +0 -4
- package/build/ts/docs/shared/components/Badge.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Banner.d.ts +0 -4
- package/build/ts/docs/shared/components/Banner.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Box.d.ts +0 -4
- package/build/ts/docs/shared/components/Box.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Button.d.ts +0 -4
- package/build/ts/docs/shared/components/Button.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ButtonGroup.d.ts +0 -4
- package/build/ts/docs/shared/components/ButtonGroup.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Checkbox.d.ts +0 -4
- package/build/ts/docs/shared/components/Checkbox.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Chip.d.ts +0 -4
- package/build/ts/docs/shared/components/Chip.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Choice.d.ts +0 -4
- package/build/ts/docs/shared/components/Choice.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ChoiceList.d.ts +0 -4
- package/build/ts/docs/shared/components/ChoiceList.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Clickable.d.ts +0 -4
- package/build/ts/docs/shared/components/Clickable.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ClickableChip.d.ts +0 -4
- package/build/ts/docs/shared/components/ClickableChip.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ClipboardItem.d.ts +0 -4
- package/build/ts/docs/shared/components/ClipboardItem.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ColorField.d.ts +0 -4
- package/build/ts/docs/shared/components/ColorField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ColorPicker.d.ts +0 -4
- package/build/ts/docs/shared/components/ColorPicker.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts +0 -4
- package/build/ts/docs/shared/components/ConsentCheckbox.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts +0 -4
- package/build/ts/docs/shared/components/ConsentPhoneField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/DateField.d.ts +0 -4
- package/build/ts/docs/shared/components/DateField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/DatePicker.d.ts +0 -4
- package/build/ts/docs/shared/components/DatePicker.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Details.d.ts +0 -4
- package/build/ts/docs/shared/components/Details.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Divider.d.ts +0 -4
- package/build/ts/docs/shared/components/Divider.d.ts.map +0 -1
- package/build/ts/docs/shared/components/DropZone.d.ts +0 -4
- package/build/ts/docs/shared/components/DropZone.d.ts.map +0 -1
- package/build/ts/docs/shared/components/EmailField.d.ts +0 -4
- package/build/ts/docs/shared/components/EmailField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Form.d.ts +0 -4
- package/build/ts/docs/shared/components/Form.d.ts.map +0 -1
- package/build/ts/docs/shared/components/FunctionSettings.d.ts +0 -4
- package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Grid.d.ts +0 -4
- package/build/ts/docs/shared/components/Grid.d.ts.map +0 -1
- package/build/ts/docs/shared/components/GridItem.d.ts +0 -4
- package/build/ts/docs/shared/components/GridItem.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Heading.d.ts +0 -4
- package/build/ts/docs/shared/components/Heading.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Icon.d.ts +0 -4
- package/build/ts/docs/shared/components/Icon.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Image.d.ts +0 -4
- package/build/ts/docs/shared/components/Image.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Link.d.ts +0 -4
- package/build/ts/docs/shared/components/Link.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ListItem.d.ts +0 -4
- package/build/ts/docs/shared/components/ListItem.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Map.d.ts +0 -4
- package/build/ts/docs/shared/components/Map.d.ts.map +0 -1
- package/build/ts/docs/shared/components/MapMarker.d.ts +0 -4
- package/build/ts/docs/shared/components/MapMarker.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Menu.d.ts +0 -4
- package/build/ts/docs/shared/components/Menu.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Modal.d.ts +0 -4
- package/build/ts/docs/shared/components/Modal.d.ts.map +0 -1
- package/build/ts/docs/shared/components/MoneyField.d.ts +0 -4
- package/build/ts/docs/shared/components/MoneyField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/NumberField.d.ts +0 -4
- package/build/ts/docs/shared/components/NumberField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Option.d.ts +0 -4
- package/build/ts/docs/shared/components/Option.d.ts.map +0 -1
- package/build/ts/docs/shared/components/OptionGroup.d.ts +0 -4
- package/build/ts/docs/shared/components/OptionGroup.d.ts.map +0 -1
- package/build/ts/docs/shared/components/OrderedList.d.ts +0 -4
- package/build/ts/docs/shared/components/OrderedList.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Page.d.ts +0 -4
- package/build/ts/docs/shared/components/Page.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Paragraph.d.ts +0 -4
- package/build/ts/docs/shared/components/Paragraph.d.ts.map +0 -1
- package/build/ts/docs/shared/components/PasswordField.d.ts +0 -4
- package/build/ts/docs/shared/components/PasswordField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/PaymentIcon.d.ts +0 -4
- package/build/ts/docs/shared/components/PaymentIcon.d.ts.map +0 -1
- package/build/ts/docs/shared/components/PhoneField.d.ts +0 -4
- package/build/ts/docs/shared/components/PhoneField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Popover.d.ts +0 -4
- package/build/ts/docs/shared/components/Popover.d.ts.map +0 -1
- package/build/ts/docs/shared/components/PressButton.d.ts +0 -4
- package/build/ts/docs/shared/components/PressButton.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ProductThumbnail.d.ts +0 -4
- package/build/ts/docs/shared/components/ProductThumbnail.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Progress.d.ts +0 -4
- package/build/ts/docs/shared/components/Progress.d.ts.map +0 -1
- package/build/ts/docs/shared/components/QRCode.d.ts +0 -4
- package/build/ts/docs/shared/components/QRCode.d.ts.map +0 -1
- package/build/ts/docs/shared/components/QueryContainer.d.ts +0 -4
- package/build/ts/docs/shared/components/QueryContainer.d.ts.map +0 -1
- package/build/ts/docs/shared/components/ScrollBox.d.ts +0 -4
- package/build/ts/docs/shared/components/ScrollBox.d.ts.map +0 -1
- package/build/ts/docs/shared/components/SearchField.d.ts +0 -4
- package/build/ts/docs/shared/components/SearchField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Section.d.ts +0 -4
- package/build/ts/docs/shared/components/Section.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Select.d.ts +0 -4
- package/build/ts/docs/shared/components/Select.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Sheet.d.ts +0 -4
- package/build/ts/docs/shared/components/Sheet.d.ts.map +0 -1
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts +0 -4
- package/build/ts/docs/shared/components/SkeletonParagraph.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Spinner.d.ts +0 -4
- package/build/ts/docs/shared/components/Spinner.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Stack.d.ts +0 -4
- package/build/ts/docs/shared/components/Stack.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Summary.d.ts +0 -4
- package/build/ts/docs/shared/components/Summary.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Switch.d.ts +0 -4
- package/build/ts/docs/shared/components/Switch.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Table.d.ts +0 -4
- package/build/ts/docs/shared/components/Table.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TableBody.d.ts +0 -4
- package/build/ts/docs/shared/components/TableBody.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TableCell.d.ts +0 -4
- package/build/ts/docs/shared/components/TableCell.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TableHeader.d.ts +0 -4
- package/build/ts/docs/shared/components/TableHeader.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TableHeaderRow.d.ts +0 -4
- package/build/ts/docs/shared/components/TableHeaderRow.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TableRow.d.ts +0 -4
- package/build/ts/docs/shared/components/TableRow.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Text.d.ts +0 -4
- package/build/ts/docs/shared/components/Text.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TextArea.d.ts +0 -4
- package/build/ts/docs/shared/components/TextArea.d.ts.map +0 -1
- package/build/ts/docs/shared/components/TextField.d.ts +0 -4
- package/build/ts/docs/shared/components/TextField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Thumbnail.d.ts +0 -4
- package/build/ts/docs/shared/components/Thumbnail.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Time.d.ts +0 -4
- package/build/ts/docs/shared/components/Time.d.ts.map +0 -1
- package/build/ts/docs/shared/components/Tooltip.d.ts +0 -4
- package/build/ts/docs/shared/components/Tooltip.d.ts.map +0 -1
- package/build/ts/docs/shared/components/URLField.d.ts +0 -4
- package/build/ts/docs/shared/components/URLField.d.ts.map +0 -1
- package/build/ts/docs/shared/components/UnorderedList.d.ts +0 -4
- package/build/ts/docs/shared/components/UnorderedList.d.ts.map +0 -1
- package/build/ts/docs/shared/components/index.d.ts +0 -53
- package/build/ts/docs/shared/components/index.d.ts.map +0 -1
- package/build/ts/docs/shared/docs-type.d.ts +0 -4
- package/build/ts/docs/shared/docs-type.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/intents/intents.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/intents/intents.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/purchase-options-card-action.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.ext.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.ext.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.ext.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.ext.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ext.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ext.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Form/Form.ext.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Form/Form.ext.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Switch/Switch.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Switch/Switch.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/accountConnection.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/appCard.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/calloutCard.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/details.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/emptyState.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/footerHelp.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/homepage.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/index.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/indexTable.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/interstitialNav.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/mediaCard.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/metricsCard.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/resourceList.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/settings.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts +0 -4
- package/build/ts/surfaces/admin/components/patterns/setupGuide.ab.doc.d.ts.map +0 -1
- package/build/ts/surfaces/admin/docs-types.d.ts +0 -32
- package/build/ts/surfaces/admin/docs-types.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Abbreviation/Abbreviation.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Abbreviation/Abbreviation.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Announcement/Announcement.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Badge/Badge.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Banner/Banner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Box/Box.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Button/Button.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Checkbox/Checkbox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Chip/Chip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ChoiceList/ChoiceList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Clickable/Clickable.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ClickableChip/ClickableChip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ClipboardItem/ClipboardItem.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/DateField/DateField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/DatePicker/DatePicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Details/Details.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Divider/Divider.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/DropZone/DropZone.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/EmailField/EmailField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Form/Form.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Grid/Grid.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Heading/Heading.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Icon/Icon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Image/Image.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Link/Link.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Map/Map.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Modal/Modal.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/MoneyField/MoneyField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/NumberField/NumberField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/OrderedList/OrderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Paragraph/Paragraph.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Paragraph/Paragraph.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/PasswordField/PasswordField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/PaymentIcon/PaymentIcon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/PhoneField/PhoneField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Popover/Popover.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/PressButton/PressButton.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Progress/Progress.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/QRCode/QRCode.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/QueryContainer/QueryContainer.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/ScrollBox/ScrollBox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Section/Section.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Section/Section.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Select/Select.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Sheet/Sheet.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Spinner/Spinner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Stack/Stack.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Stack/Stack.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Switch/Switch.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Text/Text.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/TextArea/TextArea.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/TextField/TextField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Time/Time.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Time/Time.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/Tooltip/Tooltip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/UnorderedList/UnorderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts +0 -4
- package/build/ts/surfaces/checkout/components/UrlField/UrlField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/checkout/helper.docs.d.ts +0 -15
- package/build/ts/surfaces/checkout/helper.docs.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Avatar/Avatar.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ButtonGroup/ButtonGroup.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction/CustomerAccountAction.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ImageGroup/ImageGroup.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Menu/Menu.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Page/Page.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Section/Section.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts +0 -4
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +0 -13
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +0 -43
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart-update.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-complete.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-start.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.transaction-complete.event.observe.d.ts +0 -7
- package/src/docs/shared/component-definitions.ts +0 -200
- package/src/docs/shared/components/Abbreviation.ts +0 -12
- package/src/docs/shared/components/Announcement.ts +0 -12
- package/src/docs/shared/components/Avatar.ts +0 -13
- package/src/docs/shared/components/Badge.ts +0 -13
- package/src/docs/shared/components/Banner.ts +0 -13
- package/src/docs/shared/components/Box.ts +0 -13
- package/src/docs/shared/components/Button.ts +0 -13
- package/src/docs/shared/components/ButtonGroup.ts +0 -13
- package/src/docs/shared/components/Checkbox.ts +0 -13
- package/src/docs/shared/components/Chip.ts +0 -13
- package/src/docs/shared/components/Choice.ts +0 -13
- package/src/docs/shared/components/ChoiceList.ts +0 -13
- package/src/docs/shared/components/Clickable.ts +0 -13
- package/src/docs/shared/components/ClickableChip.ts +0 -13
- package/src/docs/shared/components/ClipboardItem.ts +0 -12
- package/src/docs/shared/components/ColorField.ts +0 -13
- package/src/docs/shared/components/ColorPicker.ts +0 -13
- package/src/docs/shared/components/ConsentCheckbox.ts +0 -12
- package/src/docs/shared/components/ConsentPhoneField.ts +0 -12
- package/src/docs/shared/components/DateField.ts +0 -13
- package/src/docs/shared/components/DatePicker.ts +0 -13
- package/src/docs/shared/components/Details.ts +0 -12
- package/src/docs/shared/components/Divider.ts +0 -13
- package/src/docs/shared/components/DropZone.ts +0 -12
- package/src/docs/shared/components/EmailField.ts +0 -13
- package/src/docs/shared/components/Form.ts +0 -13
- package/src/docs/shared/components/FunctionSettings.ts +0 -13
- package/src/docs/shared/components/Grid.ts +0 -13
- package/src/docs/shared/components/GridItem.ts +0 -13
- package/src/docs/shared/components/Heading.ts +0 -13
- package/src/docs/shared/components/Icon.ts +0 -13
- package/src/docs/shared/components/Image.ts +0 -13
- package/src/docs/shared/components/Link.ts +0 -13
- package/src/docs/shared/components/ListItem.ts +0 -13
- package/src/docs/shared/components/Map.ts +0 -12
- package/src/docs/shared/components/MapMarker.ts +0 -12
- package/src/docs/shared/components/Menu.ts +0 -13
- package/src/docs/shared/components/Modal.ts +0 -12
- package/src/docs/shared/components/MoneyField.ts +0 -13
- package/src/docs/shared/components/NumberField.ts +0 -13
- package/src/docs/shared/components/Option.ts +0 -12
- package/src/docs/shared/components/OptionGroup.ts +0 -12
- package/src/docs/shared/components/OrderedList.ts +0 -13
- package/src/docs/shared/components/Page.ts +0 -12
- package/src/docs/shared/components/Paragraph.ts +0 -13
- package/src/docs/shared/components/PasswordField.ts +0 -13
- package/src/docs/shared/components/PaymentIcon.ts +0 -12
- package/src/docs/shared/components/PhoneField.ts +0 -11
- package/src/docs/shared/components/Popover.ts +0 -12
- package/src/docs/shared/components/PressButton.ts +0 -12
- package/src/docs/shared/components/ProductThumbnail.ts +0 -11
- package/src/docs/shared/components/Progress.ts +0 -12
- package/src/docs/shared/components/QRCode.ts +0 -12
- package/src/docs/shared/components/QueryContainer.ts +0 -13
- package/src/docs/shared/components/ScrollBox.ts +0 -12
- package/src/docs/shared/components/SearchField.ts +0 -12
- package/src/docs/shared/components/Section.ts +0 -13
- package/src/docs/shared/components/Select.ts +0 -13
- package/src/docs/shared/components/Sheet.ts +0 -14
- package/src/docs/shared/components/SkeletonParagraph.ts +0 -12
- package/src/docs/shared/components/Spinner.ts +0 -13
- package/src/docs/shared/components/Stack.ts +0 -13
- package/src/docs/shared/components/Summary.ts +0 -12
- package/src/docs/shared/components/Switch.ts +0 -13
- package/src/docs/shared/components/Table.ts +0 -13
- package/src/docs/shared/components/TableBody.ts +0 -13
- package/src/docs/shared/components/TableCell.ts +0 -13
- package/src/docs/shared/components/TableHeader.ts +0 -13
- package/src/docs/shared/components/TableHeaderRow.ts +0 -13
- package/src/docs/shared/components/TableRow.ts +0 -13
- package/src/docs/shared/components/Text.ts +0 -13
- package/src/docs/shared/components/TextArea.ts +0 -13
- package/src/docs/shared/components/TextField.ts +0 -13
- package/src/docs/shared/components/Thumbnail.ts +0 -13
- package/src/docs/shared/components/Time.ts +0 -12
- package/src/docs/shared/components/Tooltip.ts +0 -13
- package/src/docs/shared/components/URLField.ts +0 -13
- package/src/docs/shared/components/UnorderedList.ts +0 -13
- package/src/docs/shared/components/index.ts +0 -52
- package/src/docs/shared/docs-type.ts +0 -7
- package/src/surfaces/admin/components/Icon/icon-data.json +0 -9
- package/src/surfaces/admin/components/patterns/index.ab.doc.ts +0 -80
- package/src/surfaces/admin/docs-types.ts +0 -45
- package/src/surfaces/checkout/helper.docs.ts +0 -166
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +0 -13
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +0 -44
|
@@ -22,23 +22,21 @@ import type {SubscribableSignalLike} from '../../shared';
|
|
|
22
22
|
export type {ApiVersion, Capability} from '../../../../shared';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Stored data is only available to this
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* The storage backend is implemented with `localStorage` and
|
|
31
|
-
* should persist across the buyer's checkout session.
|
|
32
|
-
* However, data persistence isn't guaranteed.
|
|
25
|
+
* Key-value storage for a specific extension. Use storage to save
|
|
26
|
+
* preferences or cached data that should survive page reloads without
|
|
27
|
+
* requiring a backend call. Stored data is only available to this
|
|
28
|
+
* specific extension. The storage backend is implemented with
|
|
29
|
+
* `localStorage` and data persistence isn't guaranteed.
|
|
33
30
|
*/
|
|
34
31
|
export interface Storage {
|
|
35
32
|
/**
|
|
36
33
|
* Read and return a stored value by key.
|
|
37
34
|
*
|
|
38
35
|
* The stored data is deserialized from JSON and returned as
|
|
39
|
-
* its original
|
|
36
|
+
* its original type.
|
|
40
37
|
*
|
|
41
|
-
* Returns `null`
|
|
38
|
+
* Returns the stored value for the given key, or `null` when no value
|
|
39
|
+
* exists. Doesn't throw on a missing key.
|
|
42
40
|
*/
|
|
43
41
|
read<T = unknown>(key: string): Promise<T | null>;
|
|
44
42
|
|
|
@@ -50,13 +48,15 @@ export interface Storage {
|
|
|
50
48
|
write(key: string, data: any): Promise<void>;
|
|
51
49
|
|
|
52
50
|
/**
|
|
53
|
-
*
|
|
51
|
+
* Deletes a previously stored value by key.
|
|
54
52
|
*/
|
|
55
53
|
delete(key: string): Promise<void>;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
/**
|
|
59
|
-
*
|
|
57
|
+
* Metadata about the running extension, including its API version, target,
|
|
58
|
+
* capabilities, and editor context. Use this to read configuration details or
|
|
59
|
+
* conditionally render content based on where the extension is running.
|
|
60
60
|
*/
|
|
61
61
|
export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
62
62
|
/**
|
|
@@ -67,27 +67,15 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
67
67
|
apiVersion: ApiVersion;
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
|
-
* The allowed capabilities of the extension, defined
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* * [`api_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access): the extension can access the Storefront API.
|
|
74
|
-
*
|
|
75
|
-
* * [`network_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access): the extension can make external network calls.
|
|
76
|
-
*
|
|
77
|
-
* * [`block_progress`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#block-progress): the extension can block a customer's progress and the merchant has allowed this blocking behavior.
|
|
78
|
-
*
|
|
79
|
-
* * [`collect_buyer_consent.sms_marketing`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can collect customer consent for SMS marketing.
|
|
80
|
-
*
|
|
81
|
-
* * [`collect_buyer_consent.customer_privacy`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can register customer consent decisions that will be honored on Shopify-managed services.
|
|
82
|
-
*
|
|
83
|
-
* * [`iframe.sources`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#iframe): the extension can embed an external URL in an iframe.
|
|
70
|
+
* The allowed capabilities of the extension, defined in your
|
|
71
|
+
* [`shopify.extension.toml`](/docs/api/checkout-ui-extensions/{API_VERSION}/configuration) file.
|
|
84
72
|
*/
|
|
85
73
|
capabilities: SubscribableSignalLike<Capability[]>;
|
|
86
74
|
|
|
87
75
|
/**
|
|
88
76
|
* Information about the editor where the extension is being rendered.
|
|
89
77
|
*
|
|
90
|
-
* If the value is undefined, then the extension
|
|
78
|
+
* If the value is undefined, then the extension isn't running in an editor.
|
|
91
79
|
*/
|
|
92
80
|
editor?: Editor;
|
|
93
81
|
|
|
@@ -95,7 +83,7 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
95
83
|
* A Boolean to show whether your extension is currently rendered to the screen.
|
|
96
84
|
*
|
|
97
85
|
* Shopify might render your extension before it's visible in the UI,
|
|
98
|
-
* typically to pre-render extensions that
|
|
86
|
+
* typically to pre-render extensions that appear on a later step of the
|
|
99
87
|
* checkout.
|
|
100
88
|
*
|
|
101
89
|
* Your extension might also continue to run after the customer has navigated away
|
|
@@ -110,12 +98,12 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
110
98
|
scriptUrl: string;
|
|
111
99
|
|
|
112
100
|
/**
|
|
113
|
-
* The identifier that specifies where in Shopify
|
|
114
|
-
* injected. This
|
|
115
|
-
* extension
|
|
101
|
+
* The identifier that specifies where in Shopify's UI your code is being
|
|
102
|
+
* injected. This is one of the targets you've included in your
|
|
103
|
+
* extension's configuration file.
|
|
116
104
|
*
|
|
117
105
|
* @example 'purchase.checkout.block.render'
|
|
118
|
-
* @see https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
106
|
+
* @see https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/extension-targets-overview
|
|
119
107
|
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
120
108
|
*/
|
|
121
109
|
target: Target;
|
|
@@ -125,93 +113,143 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
125
113
|
*
|
|
126
114
|
* For unpublished extensions, the value is `undefined`.
|
|
127
115
|
*
|
|
116
|
+
* Don't use this property as a stable identifier in development environments.
|
|
117
|
+
* It becomes available only after the extension is published.
|
|
118
|
+
*
|
|
128
119
|
* @example 3.0.10
|
|
129
120
|
*/
|
|
130
121
|
version?: string;
|
|
131
122
|
}
|
|
132
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Information about the editor environment when an extension is rendered
|
|
126
|
+
* inside the checkout editor. The value is `undefined` when the extension
|
|
127
|
+
* is not rendering in an editor.
|
|
128
|
+
*/
|
|
133
129
|
export interface Editor {
|
|
134
130
|
/**
|
|
135
|
-
* Indicates whether the extension is rendering in the checkout editor.
|
|
131
|
+
* Indicates whether the extension is rendering in the [checkout editor](https://shopify.dev/docs/apps/checkout). Always `'checkout'`.
|
|
136
132
|
*/
|
|
137
133
|
type: 'checkout';
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
/**
|
|
141
|
-
* Metadata associated with the checkout.
|
|
137
|
+
* Metadata associated with the checkout. See the [metafields documentation](https://shopify.dev/docs/apps/build/custom-data/metafields) for more information on how metafields work.
|
|
142
138
|
*/
|
|
143
139
|
export interface Metafield {
|
|
144
140
|
/**
|
|
145
|
-
* The name of the metafield.
|
|
146
|
-
*
|
|
141
|
+
* The name of the metafield.
|
|
142
|
+
*
|
|
143
|
+
* @example 'delivery_instructions'
|
|
147
144
|
*/
|
|
148
145
|
key: string;
|
|
149
146
|
|
|
150
147
|
/**
|
|
151
148
|
* A container for a set of metafields. You need to define a custom
|
|
152
149
|
* namespace for your metafields to distinguish them from the metafields
|
|
153
|
-
* used by other apps.
|
|
150
|
+
* used by other apps.
|
|
151
|
+
*
|
|
152
|
+
* @example 'my_app'
|
|
154
153
|
*/
|
|
155
154
|
namespace: string;
|
|
156
155
|
|
|
157
156
|
/**
|
|
158
|
-
* The information to be stored as metadata.
|
|
157
|
+
* The information to be stored as metadata.
|
|
159
158
|
*/
|
|
160
159
|
value: string | number;
|
|
161
160
|
|
|
162
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* The metafield's information type.
|
|
163
|
+
*
|
|
164
|
+
* - `'integer'`: A whole number value.
|
|
165
|
+
* - `'string'`: A plain text value.
|
|
166
|
+
* - `'json_string'`: A JSON-encoded string value.
|
|
167
|
+
*/
|
|
163
168
|
valueType: 'integer' | 'string' | 'json_string';
|
|
164
169
|
}
|
|
165
170
|
|
|
166
171
|
/**
|
|
167
|
-
* Represents a custom
|
|
172
|
+
* Represents a custom [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields) attached to a resource such as a product, variant, customer, or shop.
|
|
168
173
|
*/
|
|
169
174
|
export interface AppMetafield {
|
|
170
|
-
/**
|
|
175
|
+
/**
|
|
176
|
+
* The identifier for the metafield within its namespace, such as `'ingredients'` or `'shipping_weight'`.
|
|
177
|
+
*/
|
|
171
178
|
key: string;
|
|
172
179
|
|
|
173
180
|
/**
|
|
174
|
-
* The namespace
|
|
181
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
175
182
|
*
|
|
176
|
-
* App owned metafield namespaces are returned using the `$app` format. See [app owned metafields](/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
183
|
+
* App owned metafield namespaces are returned using the `$app` format. See [app owned metafields](https://shopify.dev/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
177
184
|
*/
|
|
178
185
|
namespace: string;
|
|
179
186
|
|
|
180
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* The value of a metafield, stored as a string regardless of the underlying type. For JSON metafields, parse the string to access structured data.
|
|
189
|
+
*/
|
|
181
190
|
value: string;
|
|
182
191
|
|
|
183
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* The metafield's information type.
|
|
194
|
+
*
|
|
195
|
+
* - `'boolean'`: A true or false value.
|
|
196
|
+
* - `'float'`: A decimal number value.
|
|
197
|
+
* - `'integer'`: A whole number value.
|
|
198
|
+
* - `'json_string'`: A JSON-encoded string value.
|
|
199
|
+
* - `'string'`: A plain text value.
|
|
200
|
+
*/
|
|
184
201
|
valueType: 'boolean' | 'float' | 'integer' | 'json_string' | 'string';
|
|
185
202
|
|
|
186
|
-
/**
|
|
203
|
+
/**
|
|
204
|
+
* The metafield's [type name](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types), such as `'single_line_text_field'` or `'json'`. This is the full type identifier, whereas `valueType` is a simplified category.
|
|
205
|
+
*/
|
|
187
206
|
type: string;
|
|
188
207
|
}
|
|
189
208
|
|
|
190
209
|
/**
|
|
191
|
-
* Represents a custom metadata attached to a
|
|
210
|
+
* Represents a custom metadata attached to the cart. Unlike `AppMetafield`, cart metafield values are always strings and don't include a `valueType` discriminator.
|
|
211
|
+
*
|
|
212
|
+
* Cart [metafields](https://shopify.dev/docs/apps/build/custom-data/metafields) are set by extensions using `applyMetafieldChange()` and can be copied to order metafields at order creation time.
|
|
192
213
|
*/
|
|
193
214
|
export interface CartMetafield {
|
|
194
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* The key name of a metafield, such as `'delivery_instructions'` or `'gift_message'`. Together with `namespace`, this uniquely identifies the metafield on the cart.
|
|
217
|
+
*/
|
|
195
218
|
key: string;
|
|
196
219
|
|
|
197
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* The namespace for a metafield, such as `'custom'` or `'my_app'`. Together with `key`, this uniquely identifies the metafield on the cart.
|
|
222
|
+
*/
|
|
198
223
|
namespace: string;
|
|
199
224
|
|
|
200
|
-
/**
|
|
225
|
+
/**
|
|
226
|
+
* The string value stored in the cart metafield. Unlike `AppMetafield`, cart metafield values are always strings.
|
|
227
|
+
*/
|
|
201
228
|
value: string;
|
|
202
229
|
|
|
203
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* The metafield's [type name](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types), such as `'single_line_text_field'` or `'json'`.
|
|
232
|
+
*/
|
|
204
233
|
type: string;
|
|
205
234
|
}
|
|
206
235
|
|
|
207
236
|
/**
|
|
208
|
-
* The metafield
|
|
237
|
+
* The Shopify resource that a metafield is attached to. Each entry identifies a specific resource by its type and globally-unique ID, so you can trace where the data comes from.
|
|
209
238
|
*/
|
|
210
239
|
export interface AppMetafieldEntryTarget {
|
|
211
240
|
/**
|
|
212
|
-
* The
|
|
241
|
+
* The kind of Shopify resource this metafield belongs to:
|
|
242
|
+
*
|
|
243
|
+
* - `'customer'`: The customer who placed the order.
|
|
244
|
+
* - `'product'`: A product in the merchant's catalog.
|
|
245
|
+
* - `'shop'`: The merchant's shop.
|
|
246
|
+
* - `'shopUser'`: A staff member or collaborator account on the shop.
|
|
247
|
+
* - `'variant'`: A specific variant of a product.
|
|
248
|
+
* - `'company'`: A [B2B](https://shopify.dev/docs/apps/build/b2b) company associated with the order.
|
|
249
|
+
* - `'companyLocation'`: A location belonging to a [B2B](https://shopify.dev/docs/apps/build/b2b) company.
|
|
250
|
+
* - `'cart'`: The cart associated with the checkout.
|
|
213
251
|
*
|
|
214
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
252
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
215
253
|
*/
|
|
216
254
|
type:
|
|
217
255
|
| 'customer'
|
|
@@ -223,22 +261,28 @@ export interface AppMetafieldEntryTarget {
|
|
|
223
261
|
| 'companyLocation'
|
|
224
262
|
| 'cart';
|
|
225
263
|
|
|
226
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* The globally-unique identifier of the Shopify resource, in [GID](https://shopify.dev/docs/api/usage/gids) format. Use this value to match the metafield to a specific resource in your extension or when querying the [Storefront API](https://shopify.dev/docs/api/storefront).
|
|
266
|
+
*
|
|
267
|
+
* @example 'gid://shopify/Product/123'
|
|
268
|
+
*/
|
|
227
269
|
id: string;
|
|
228
270
|
}
|
|
229
271
|
|
|
230
272
|
/**
|
|
231
|
-
*
|
|
273
|
+
* An entry that pairs a Shopify resource with one of its [metafields](https://shopify.dev/docs/apps/build/custom-data/metafields). Each entry contains a `target` identifying which resource the metafield belongs to and a `metafield` object with the actual data.
|
|
232
274
|
*/
|
|
233
275
|
export interface AppMetafieldEntry {
|
|
234
276
|
/**
|
|
235
|
-
* The
|
|
277
|
+
* The Shopify resource that this metafield is attached to, including the resource type (such as `'product'` or `'customer'`) and its globally-unique ID.
|
|
236
278
|
*
|
|
237
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
279
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
238
280
|
*/
|
|
239
281
|
target: AppMetafieldEntryTarget;
|
|
240
282
|
|
|
241
|
-
/**
|
|
283
|
+
/**
|
|
284
|
+
* The metafield data, including the namespace, key, value, and content type. Use the `namespace` and `key` together to uniquely identify the metafield within its resource.
|
|
285
|
+
*/
|
|
242
286
|
metafield: AppMetafield;
|
|
243
287
|
}
|
|
244
288
|
|
|
@@ -246,9 +290,9 @@ export type Version = string;
|
|
|
246
290
|
export type CheckoutToken = string;
|
|
247
291
|
|
|
248
292
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
293
|
+
* Translates a key from your extension's locale files into a localized string.
|
|
294
|
+
* Supports interpolation with placeholder replacements and pluralization
|
|
295
|
+
* via the special `count` option.
|
|
252
296
|
*/
|
|
253
297
|
export interface I18nTranslate {
|
|
254
298
|
<ReplacementType = string>(
|
|
@@ -259,6 +303,11 @@ export interface I18nTranslate {
|
|
|
259
303
|
: (string | ReplacementType)[];
|
|
260
304
|
}
|
|
261
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Utilities for translating strings, formatting currencies, numbers,
|
|
308
|
+
* and dates according to the buyer's locale. Use the I18n API alongside
|
|
309
|
+
* the Localization API to build fully localized extensions.
|
|
310
|
+
*/
|
|
262
311
|
export interface I18n {
|
|
263
312
|
/**
|
|
264
313
|
* Returns a localized number.
|
|
@@ -266,7 +315,7 @@ export interface I18n {
|
|
|
266
315
|
* This function behaves like the standard `Intl.NumberFormat()`
|
|
267
316
|
* with a style of `decimal` applied. It uses the buyer's locale by default.
|
|
268
317
|
*
|
|
269
|
-
* @param options.inExtensionLocale -
|
|
318
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
270
319
|
*/
|
|
271
320
|
formatNumber: (
|
|
272
321
|
number: number | bigint,
|
|
@@ -279,7 +328,7 @@ export interface I18n {
|
|
|
279
328
|
* This function behaves like the standard `Intl.NumberFormat()`
|
|
280
329
|
* with a style of `currency` applied. It uses the buyer's locale by default.
|
|
281
330
|
*
|
|
282
|
-
* @param options.inExtensionLocale -
|
|
331
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
283
332
|
*/
|
|
284
333
|
formatCurrency: (
|
|
285
334
|
number: number | bigint,
|
|
@@ -289,14 +338,11 @@ export interface I18n {
|
|
|
289
338
|
/**
|
|
290
339
|
* Returns a localized date value.
|
|
291
340
|
*
|
|
292
|
-
* This function behaves like the standard `Intl.
|
|
293
|
-
* the buyer's locale by default. Formatting options can be passed in as
|
|
341
|
+
* This function behaves like the standard [`Intl.DateTimeFormat()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) and uses
|
|
342
|
+
* the buyer's locale by default. Formatting [options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) can be passed in as
|
|
294
343
|
* options.
|
|
295
344
|
*
|
|
296
|
-
* @
|
|
297
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
298
|
-
*
|
|
299
|
-
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
345
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
300
346
|
*/
|
|
301
347
|
formatDate: (
|
|
302
348
|
date: Date,
|
|
@@ -317,89 +363,97 @@ export interface I18n {
|
|
|
317
363
|
|
|
318
364
|
export interface Language {
|
|
319
365
|
/**
|
|
320
|
-
* The BCP-47 language tag.
|
|
321
|
-
*
|
|
322
|
-
* @example 'en' for English, or 'en-US' for English local to United States.
|
|
323
|
-
* @see https://en.wikipedia.org/wiki/IETF_language_tag
|
|
324
|
-
* @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
366
|
+
* The [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag that identifies the language. This is a standardized code that might include a base language and an optional region subtag separated by a dash. For example, `'en'` represents English and `'en-US'` represents English as used in the United States. The region subtag follows the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) standard.
|
|
325
367
|
*/
|
|
326
368
|
isoCode: string;
|
|
327
369
|
}
|
|
328
370
|
|
|
329
371
|
export interface Currency {
|
|
330
372
|
/**
|
|
331
|
-
* The
|
|
332
|
-
* @see https://www.iso.org/iso-4217-currency-codes.html
|
|
373
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, such as `'USD'`, `'EUR'`, or `'CAD'`.
|
|
333
374
|
*/
|
|
334
375
|
isoCode: CurrencyCode;
|
|
335
376
|
}
|
|
336
377
|
|
|
378
|
+
/**
|
|
379
|
+
* A [Shopify Market](https://shopify.dev/docs/apps/build/markets) that represents a group of one or more regions for international selling.
|
|
380
|
+
*/
|
|
337
381
|
export interface Market {
|
|
338
382
|
/**
|
|
339
|
-
* A globally-unique identifier for
|
|
383
|
+
* A globally-unique identifier for the market in the format `gid://shopify/Market/<id>`.
|
|
340
384
|
*/
|
|
341
385
|
id: string;
|
|
342
386
|
|
|
343
387
|
/**
|
|
344
|
-
* The human-readable, shop-scoped identifier for the market.
|
|
388
|
+
* The human-readable, shop-scoped identifier for the market, such as `'us'` or `'eu'`. Merchants define these handles when configuring [Shopify Markets](https://shopify.dev/docs/apps/build/markets).
|
|
345
389
|
*/
|
|
346
390
|
handle: string;
|
|
347
391
|
}
|
|
348
392
|
|
|
393
|
+
/**
|
|
394
|
+
* The buyer's language, country, currency, and timezone context. Use this
|
|
395
|
+
* to adapt your extension to the buyer's region and display localized content.
|
|
396
|
+
*/
|
|
349
397
|
export interface Localization {
|
|
350
398
|
/**
|
|
351
|
-
* The currency that the
|
|
399
|
+
* The currency that the buyer sees for money amounts in the checkout. Use this value to format prices and totals in the buyer's expected currency.
|
|
352
400
|
*/
|
|
353
401
|
currency: SubscribableSignalLike<Currency>;
|
|
354
402
|
|
|
355
403
|
/**
|
|
356
|
-
* The buyer
|
|
404
|
+
* The buyer's time zone, based on their browser or account settings. Use this value to format dates and times relative to the buyer's local time.
|
|
357
405
|
*/
|
|
358
406
|
timezone: SubscribableSignalLike<Timezone>;
|
|
359
407
|
|
|
360
408
|
/**
|
|
361
|
-
* The language the
|
|
409
|
+
* The language the buyer sees in the checkout. This reflects the language selected by the buyer or determined by their browser settings, and might differ from the languages your extension supports.
|
|
362
410
|
*/
|
|
363
411
|
language: SubscribableSignalLike<Language>;
|
|
364
412
|
|
|
365
413
|
/**
|
|
366
|
-
*
|
|
367
|
-
* If the customer's actual language is not supported by the extension,
|
|
368
|
-
* then this is the language that is used for translations.
|
|
369
|
-
*
|
|
370
|
-
* For example, if the customer's language is 'fr-CA' but your extension
|
|
371
|
-
* only supports translations for 'fr', then the `isoCode` for this
|
|
372
|
-
* language is 'fr'. If your extension does not provide french
|
|
373
|
-
* translations at all, then this value is the default locale for your
|
|
374
|
-
* extension (that is, the one matching your .default.json file).
|
|
414
|
+
* The best available language match for your extension based on the buyer's language. If the buyer's language is `'fr-CA'` but your extension supports only `'fr'`, this returns `'fr'`. If your extension doesn't support any variant of the buyer's language, this falls back to your extension's default locale (the `.default.json` translation file). Use this value to load the correct translation file for your extension.
|
|
375
415
|
*/
|
|
376
416
|
extensionLanguage: SubscribableSignalLike<Language>;
|
|
377
417
|
|
|
378
418
|
/**
|
|
379
|
-
* The country context of the checkout.
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
419
|
+
* The country context of the checkout, carried over from the cart. It updates when the buyer changes their shipping address country. Use this value to display region-specific content such as local support information or regional policies. The value is `undefined` if the buyer's country is unknown.
|
|
420
|
+
*
|
|
421
|
+
* Derived from the buyer's shipping address. Returns `undefined` until the
|
|
422
|
+
* buyer enters a shipping address.
|
|
383
423
|
*/
|
|
384
424
|
country: SubscribableSignalLike<Country | undefined>;
|
|
385
425
|
|
|
386
426
|
/**
|
|
387
|
-
* The [market](
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* buyer changes the country of their
|
|
391
|
-
*
|
|
392
|
-
*
|
|
393
|
-
* > Caution: This field is deprecated and will be removed in a future version.
|
|
427
|
+
* The [market](/docs/apps/build/markets) context of the checkout,
|
|
428
|
+
* carried over from the cart context. Markets group countries and
|
|
429
|
+
* regions with shared pricing, languages, and domains. The market
|
|
430
|
+
* context updates when the buyer changes the country of their
|
|
431
|
+
* shipping address. The value is `undefined` if the market is unknown.
|
|
394
432
|
*
|
|
395
|
-
* @deprecated
|
|
433
|
+
* @deprecated Merchants now manage which extensions load for each
|
|
434
|
+
* market, so extensions no longer need to check this value.
|
|
396
435
|
*/
|
|
397
436
|
market: SubscribableSignalLike<Market | undefined>;
|
|
398
437
|
}
|
|
399
438
|
|
|
400
439
|
export interface LocalizedField {
|
|
440
|
+
/**
|
|
441
|
+
* The identifier for the localized field, indicating the type of information
|
|
442
|
+
* collected (for example, a tax credential or shipping credential for a
|
|
443
|
+
* specific country).
|
|
444
|
+
*/
|
|
401
445
|
key: LocalizedFieldKey;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* The localized display label for the field, suitable for rendering in the UI.
|
|
449
|
+
*
|
|
450
|
+
* @example 'CPF/CNPJ' for a Brazilian tax credential
|
|
451
|
+
*/
|
|
402
452
|
title: string;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* The current value entered by the buyer for this field.
|
|
456
|
+
*/
|
|
403
457
|
value: string;
|
|
404
458
|
}
|
|
405
459
|
|
|
@@ -411,31 +465,28 @@ export interface BuyerJourney {
|
|
|
411
465
|
* Installs a function for intercepting and preventing progress on checkout.
|
|
412
466
|
*
|
|
413
467
|
* This returns a promise that resolves to a teardown function. Calling the
|
|
414
|
-
* teardown function
|
|
468
|
+
* teardown function removes the interceptor.
|
|
415
469
|
*
|
|
416
|
-
* To block checkout progress, you must set the [block_progress](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#block-progress)
|
|
470
|
+
* To block checkout progress, you must set the [block_progress](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#block-progress)
|
|
417
471
|
* capability in your extension's configuration.
|
|
418
472
|
*
|
|
419
473
|
* If you do, then you're expected to inform the buyer why navigation was blocked,
|
|
420
474
|
* either by passing validation errors to the checkout UI or rendering the errors in your extension.
|
|
421
475
|
*
|
|
422
|
-
*
|
|
423
|
-
* to block checkout progress.
|
|
476
|
+
* If the merchant hasn't allowed your extension to block checkout progress, show a warning in the [checkout editor](https://shopify.dev/docs/apps/build/checkout/test-checkout-ui-extensions#test-the-extension-in-the-checkout-editor).
|
|
424
477
|
*/
|
|
425
478
|
intercept(interceptor: Interceptor): Promise<() => void>;
|
|
426
479
|
|
|
427
480
|
/**
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* For example, when viewing the **Order status** page after submitting payment, the buyer will have completed their order.
|
|
481
|
+
* Whether the buyer has completed submitting their order. When `true`, the buyer is on the order status page after submitting payment. When `false`, the buyer is still in the checkout flow.
|
|
431
482
|
*/
|
|
432
483
|
completed: SubscribableSignalLike<boolean>;
|
|
433
484
|
/**
|
|
434
|
-
* All possible steps
|
|
485
|
+
* All possible steps the buyer can take to complete checkout. These steps vary depending on whether the checkout is one-page or three-page, and on the shop's configuration.
|
|
435
486
|
*/
|
|
436
487
|
steps: SubscribableSignalLike<BuyerJourneyStep[]>;
|
|
437
488
|
/**
|
|
438
|
-
*
|
|
489
|
+
* The step of checkout the buyer is currently on. The value is `undefined` if the current step can't be determined.
|
|
439
490
|
*/
|
|
440
491
|
activeStep: SubscribableSignalLike<BuyerJourneyStepReference | undefined>;
|
|
441
492
|
}
|
|
@@ -467,92 +518,106 @@ type BuyerJourneyStepHandle =
|
|
|
467
518
|
*/
|
|
468
519
|
interface BuyerJourneyStepReference {
|
|
469
520
|
/**
|
|
470
|
-
* The handle
|
|
521
|
+
* The handle identifying which step the buyer is on, such as `'information'`,
|
|
522
|
+
* `'shipping'`, or `'payment'`. See `BuyerJourneyStepHandle` for all values.
|
|
471
523
|
*/
|
|
472
524
|
handle: BuyerJourneyStepHandle;
|
|
473
525
|
}
|
|
474
526
|
|
|
475
527
|
export interface BuyerJourneyStep {
|
|
476
528
|
/**
|
|
477
|
-
* The handle that uniquely identifies the buyer journey step
|
|
529
|
+
* The handle that uniquely identifies the buyer journey step, such as `'information'`, `'shipping'`, or `'payment'`.
|
|
478
530
|
*/
|
|
479
531
|
handle: BuyerJourneyStepHandle;
|
|
480
532
|
/**
|
|
481
|
-
* The localized label of the buyer journey step.
|
|
533
|
+
* The localized label of the buyer journey step, suitable for rendering in navigation UI.
|
|
482
534
|
*/
|
|
483
535
|
label: string;
|
|
484
536
|
/**
|
|
485
|
-
* The
|
|
486
|
-
*
|
|
537
|
+
* The URL of the buyer journey step, using the `shopify:` protocol.
|
|
538
|
+
*
|
|
539
|
+
* @example 'shopify:cart'
|
|
540
|
+
* @example 'shopify:checkout/information'
|
|
487
541
|
*/
|
|
488
542
|
to: string;
|
|
489
543
|
/**
|
|
490
|
-
*
|
|
544
|
+
* Whether this step is disabled. When `true`, the buyer hasn't reached this step yet and can't navigate to it. When `false`, the step is accessible.
|
|
491
545
|
*
|
|
492
|
-
* For example, if the buyer
|
|
546
|
+
* For example, if the buyer hasn't reached the `shipping` step yet, then `shipping` is disabled.
|
|
493
547
|
*/
|
|
494
548
|
disabled: boolean;
|
|
495
549
|
}
|
|
496
550
|
|
|
551
|
+
/** @publicDocs */
|
|
497
552
|
export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
498
553
|
/**
|
|
499
|
-
*
|
|
554
|
+
* Tracks custom events and sends visitor information to
|
|
555
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
556
|
+
* and `visitor()` to submit buyer contact details.
|
|
500
557
|
*/
|
|
501
558
|
analytics: Analytics;
|
|
502
559
|
|
|
503
560
|
/**
|
|
504
|
-
*
|
|
561
|
+
* The gift cards that have been applied to the checkout. Each entry includes
|
|
562
|
+
* the last four characters of the gift card code, the amount used at
|
|
563
|
+
* checkout, and the card's remaining balance.
|
|
505
564
|
*/
|
|
506
565
|
appliedGiftCards: SubscribableSignalLike<AppliedGiftCard[]>;
|
|
507
566
|
|
|
508
567
|
/**
|
|
509
568
|
* The cart instructions used to create the checkout and possibly limit extension capabilities.
|
|
510
569
|
*
|
|
511
|
-
* These instructions should be checked
|
|
570
|
+
* These instructions should be checked before performing any actions that might be affected by them.
|
|
512
571
|
*
|
|
513
572
|
* For example, if you intend to add a discount code via the `applyDiscountCodeChange` method,
|
|
514
573
|
* check `discounts.canUpdateDiscountCodes` to ensure it's supported in this checkout.
|
|
515
574
|
*
|
|
516
|
-
* > Caution:
|
|
517
|
-
*
|
|
575
|
+
* > Caution: Check cart instructions before calling select APIs, as
|
|
576
|
+
* > some may not be available. See the
|
|
577
|
+
* > [Cart Instructions API](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/cart-instructions#examples)
|
|
578
|
+
* > for more information.
|
|
518
579
|
*
|
|
519
580
|
*/
|
|
520
581
|
instructions: SubscribableSignalLike<CartInstructions>;
|
|
521
582
|
|
|
522
583
|
/**
|
|
523
584
|
* The metafields requested in the
|
|
524
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration)
|
|
585
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration)
|
|
525
586
|
* file. These metafields are updated when there's a change in the merchandise items
|
|
526
587
|
* being purchased by the customer.
|
|
527
588
|
*
|
|
528
|
-
* App owned metafields are supported and are returned using the `$app` format. The fully qualified reserved namespace format such as `app--{your-app-id}[--{optional-namespace}]`
|
|
589
|
+
* App owned metafields are supported and are returned using the `$app` format. The fully qualified reserved namespace format such as `app--{your-app-id}[--{optional-namespace}]` isn't supported. See [app owned metafields](https://shopify.dev/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
529
590
|
*
|
|
530
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
591
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
531
592
|
*/
|
|
532
593
|
appMetafields: SubscribableSignalLike<AppMetafieldEntry[]>;
|
|
533
594
|
|
|
534
595
|
/**
|
|
535
|
-
* The custom attributes
|
|
596
|
+
* The custom key-value attributes attached to the cart or checkout. These are set by the buyer or by an extension using `applyAttributeChange()`. The list is empty if no attributes have been added.
|
|
536
597
|
*/
|
|
537
598
|
attributes: SubscribableSignalLike<Attribute[]>;
|
|
538
599
|
|
|
539
600
|
/**
|
|
540
|
-
* All available
|
|
601
|
+
* All payment options available to the buyer for this checkout, such as
|
|
602
|
+
* credit cards, wallets, and local payment methods. The list depends on
|
|
603
|
+
* the shop's payment configuration and the buyer's region.
|
|
604
|
+
*
|
|
605
|
+
* The set of payment options can change when the buyer updates their
|
|
606
|
+
* address or cart, so subscribe to changes rather than reading once
|
|
607
|
+
* during initialization. Each option exposes `handle` and `type` only.
|
|
608
|
+
* Provider names, logos, fees, and installment terms aren't available.
|
|
541
609
|
*/
|
|
542
610
|
availablePaymentOptions: SubscribableSignalLike<PaymentOption[]>;
|
|
543
611
|
|
|
544
612
|
/**
|
|
545
|
-
* Information about the buyer that
|
|
613
|
+
* Information about the buyer that's interacting with the checkout. The property is available only if the extension has access to protected customer data.
|
|
546
614
|
*
|
|
547
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
615
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
548
616
|
*/
|
|
549
617
|
buyerIdentity?: BuyerIdentity;
|
|
550
618
|
|
|
551
619
|
/**
|
|
552
|
-
* Provides details on the buyer's progression through the checkout.
|
|
553
|
-
*
|
|
554
|
-
* Refer to [buyer journey](https://shopify.dev/docs/api/checkout-ui-extensions/apis/buyer-journey#examples)
|
|
555
|
-
* examples for more information.
|
|
620
|
+
* Provides details on the buyer's progression through the checkout and lets you intercept navigation to validate data before the buyer continues.
|
|
556
621
|
*/
|
|
557
622
|
buyerJourney: BuyerJourney;
|
|
558
623
|
|
|
@@ -564,68 +629,77 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
564
629
|
/**
|
|
565
630
|
* A stable ID that represents the current checkout.
|
|
566
631
|
*
|
|
632
|
+
* The value is `undefined` when the checkout hasn't been created on the server yet.
|
|
633
|
+
*
|
|
634
|
+
* Use this to correlate checkout sessions across your extension, web pixels, and backend systems.
|
|
635
|
+
*
|
|
567
636
|
* This matches the `data.checkout.token` field in a [checkout-related WebPixel event](https://shopify.dev/docs/api/web-pixels-api/standard-events/checkout_started#properties-propertydetail-data)
|
|
568
637
|
* and the `checkout_token` field in the [REST Admin API `Order` resource](https://shopify.dev/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
638
|
+
*
|
|
639
|
+
* Can be `undefined`. Handle the `undefined` state before using the value.
|
|
569
640
|
*/
|
|
570
641
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
571
642
|
|
|
572
643
|
/**
|
|
573
|
-
*
|
|
644
|
+
* The cost breakdown for the current checkout, including subtotal, shipping, tax, and total amounts. These values update as the buyer progresses through checkout and costs like shipping and tax are calculated.
|
|
574
645
|
*/
|
|
575
646
|
cost: CartCost;
|
|
576
647
|
|
|
577
648
|
/**
|
|
578
|
-
*
|
|
649
|
+
* The delivery groups for this checkout. Each group contains one or more cart lines and the available delivery options (shipping, pickup point, or pickup location) for those items.
|
|
650
|
+
*
|
|
651
|
+
* Empty until the buyer enters enough address information for Shopify to
|
|
652
|
+
* calculate shipping rates.
|
|
579
653
|
*/
|
|
580
654
|
deliveryGroups: SubscribableSignalLike<DeliveryGroup[]>;
|
|
581
655
|
|
|
582
656
|
/**
|
|
583
|
-
*
|
|
657
|
+
* The discount codes currently applied to the checkout. The list is empty if no discount codes have been applied. Use `applyDiscountCodeChange()` to add or remove codes.
|
|
584
658
|
*/
|
|
585
659
|
discountCodes: SubscribableSignalLike<CartDiscountCode[]>;
|
|
586
660
|
|
|
587
661
|
/**
|
|
588
|
-
*
|
|
662
|
+
* The discount allocations applied to the entire cart, including automatic discounts, code-based discounts, and custom discounts from [Shopify Functions](https://shopify.dev/docs/apps/build/functions). Each allocation indicates how much was discounted and how the discount was triggered.
|
|
589
663
|
*/
|
|
590
664
|
discountAllocations: SubscribableSignalLike<CartDiscountAllocation[]>;
|
|
591
665
|
|
|
592
666
|
/**
|
|
593
|
-
*
|
|
667
|
+
* Metadata about the running extension, including the current target, API version,
|
|
668
|
+
* capabilities, and editor context. Use this to conditionally render content
|
|
669
|
+
* based on where the extension is running.
|
|
594
670
|
*/
|
|
595
671
|
extension: Extension<Target>;
|
|
596
672
|
|
|
597
673
|
/**
|
|
598
|
-
* The identifier that specifies where in Shopify
|
|
599
|
-
* injected. This
|
|
600
|
-
* extension
|
|
674
|
+
* The identifier that specifies where in Shopify's UI your code is being
|
|
675
|
+
* injected. This is one of the targets you've included in your
|
|
676
|
+
* extension's configuration file.
|
|
601
677
|
*
|
|
602
678
|
* @example 'purchase.checkout.block.render'
|
|
603
|
-
* @see https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
679
|
+
* @see https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/extension-targets-overview
|
|
604
680
|
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
605
681
|
*
|
|
606
|
-
* @deprecated
|
|
682
|
+
* @deprecated Use `extension.target` instead.
|
|
607
683
|
*/
|
|
608
684
|
extensionPoint: Target;
|
|
609
685
|
|
|
610
686
|
/**
|
|
611
|
-
* Utilities for translating
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
* Refer to [`localization` examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/localization#examples)
|
|
616
|
-
* for more information.
|
|
687
|
+
* Utilities for translating strings, formatting currencies, numbers, and dates
|
|
688
|
+
* according to the buyer's locale. Use alongside
|
|
689
|
+
* [`localization`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization)
|
|
690
|
+
* to build fully localized extensions.
|
|
617
691
|
*/
|
|
618
692
|
i18n: I18n;
|
|
619
693
|
|
|
620
694
|
/**
|
|
621
|
-
*
|
|
695
|
+
* The list of line items the buyer intends to purchase. Each entry includes the merchandise, quantity, cost, and any custom attributes. Use `applyCartLinesChange()` to add, remove, or update line items.
|
|
622
696
|
*/
|
|
623
697
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
624
698
|
|
|
625
699
|
/**
|
|
626
|
-
* The
|
|
627
|
-
*
|
|
628
|
-
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/localization#
|
|
700
|
+
* The buyer's language, country, currency, and timezone context. For
|
|
701
|
+
* formatting and translation helpers, use the
|
|
702
|
+
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization#properties-propertydetail-i18n)
|
|
629
703
|
* object instead.
|
|
630
704
|
*/
|
|
631
705
|
localization: Localization;
|
|
@@ -648,13 +722,14 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
648
722
|
|
|
649
723
|
/**
|
|
650
724
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
725
|
+
*
|
|
726
|
+
* The value is `undefined` if the buyer hasn't entered a note. Use this to display or react to order-level instructions such as delivery preferences or gift messages.
|
|
651
727
|
*/
|
|
652
728
|
note: SubscribableSignalLike<string | undefined>;
|
|
653
729
|
|
|
654
730
|
/**
|
|
655
731
|
* The method used to query the Storefront GraphQL API with a prefetched token.
|
|
656
732
|
*
|
|
657
|
-
* Refer to [Storefront API access examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/storefront-api) for more information.
|
|
658
733
|
*/
|
|
659
734
|
query: <Data = unknown, Variables = Record<string, unknown>>(
|
|
660
735
|
query: string,
|
|
@@ -662,62 +737,71 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
662
737
|
) => Promise<{data?: Data; errors?: GraphQLError[]}>;
|
|
663
738
|
|
|
664
739
|
/**
|
|
665
|
-
*
|
|
740
|
+
* The payment options the buyer has currently selected. This updates as
|
|
741
|
+
* the buyer changes their payment method. The array can contain multiple
|
|
742
|
+
* entries when the buyer splits payment across methods (for example, a
|
|
743
|
+
* gift card and a credit card).
|
|
744
|
+
*
|
|
745
|
+
* Each option exposes `handle` and `type` only. Provider names, logos,
|
|
746
|
+
* fees, and installment terms aren't available.
|
|
666
747
|
*/
|
|
667
748
|
selectedPaymentOptions: SubscribableSignalLike<SelectedPaymentOption[]>;
|
|
668
749
|
|
|
669
750
|
/**
|
|
670
751
|
* The session token providing a set of claims as a signed JSON Web Token (JWT).
|
|
671
752
|
*
|
|
672
|
-
* The token has a TTL of
|
|
753
|
+
* The token has a TTL of five minutes.
|
|
673
754
|
*
|
|
674
|
-
* If the previous token expires, this value
|
|
755
|
+
* If the previous token expires, this value reflects a new session token with a new signature and expiry.
|
|
675
756
|
*
|
|
676
|
-
*
|
|
757
|
+
* Learn more about [session tokens](/docs/apps/build/authentication-authorization/session-tokens).
|
|
677
758
|
*/
|
|
678
759
|
sessionToken: SessionToken;
|
|
679
760
|
|
|
680
761
|
/**
|
|
681
762
|
* The settings matching the settings definition written in the
|
|
682
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) file.
|
|
763
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration) file.
|
|
683
764
|
*
|
|
684
|
-
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/settings#examples) for more information.
|
|
765
|
+
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/settings#examples) for more information.
|
|
685
766
|
*
|
|
686
|
-
* > Note: When an extension is being installed in the editor, the settings
|
|
687
|
-
* a merchant sets a value. In that case, this object
|
|
767
|
+
* > Note: When an extension is being installed in the editor, the settings are empty until
|
|
768
|
+
* a merchant sets a value. In that case, this object updates in real time as a merchant fills in the settings.
|
|
688
769
|
*/
|
|
689
770
|
settings: SubscribableSignalLike<ExtensionSettings>;
|
|
690
771
|
|
|
691
772
|
/**
|
|
692
773
|
* The proposed customer shipping address. During the information step, the address
|
|
693
774
|
* updates when the field is committed (on change) rather than every keystroke.
|
|
694
|
-
*
|
|
695
|
-
* subscribable value is undefined.
|
|
775
|
+
* The property is available only if the extension has access to protected customer
|
|
776
|
+
* data. When available, the subscribable value is `undefined` if delivery isn't required.
|
|
696
777
|
*
|
|
697
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
778
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
698
779
|
*/
|
|
699
780
|
shippingAddress?: SubscribableSignalLike<ShippingAddress | undefined>;
|
|
700
781
|
|
|
701
782
|
/**
|
|
702
783
|
* The proposed customer billing address. The address updates when the field is
|
|
703
|
-
* committed (on change) rather than every keystroke.
|
|
784
|
+
* committed (on change) rather than every keystroke. The property is available only
|
|
785
|
+
* if the extension has access to protected customer data. The subscribable value is
|
|
786
|
+
* `undefined` if the billing address hasn't been provided yet.
|
|
704
787
|
*
|
|
705
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
788
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
706
789
|
*/
|
|
707
790
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
708
791
|
|
|
709
|
-
/**
|
|
792
|
+
/**
|
|
793
|
+
* The store where the checkout is taking place, including the shop name,
|
|
794
|
+
* storefront URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
795
|
+
*/
|
|
710
796
|
shop: Shop;
|
|
711
797
|
|
|
712
798
|
/**
|
|
713
|
-
*
|
|
714
|
-
*
|
|
715
|
-
*
|
|
799
|
+
* Key-value storage that persists across page loads within the current checkout
|
|
800
|
+
* session. Data is shared across all activated targets associated with
|
|
801
|
+
* this extension.
|
|
716
802
|
*
|
|
717
|
-
* > Caution: Data persistence isn't guaranteed and storage is
|
|
718
|
-
*
|
|
719
|
-
* Data is shared across all activated extension targets of this extension. In versions 2023-07 and earlier,
|
|
720
|
-
* each activated extension target had its own storage.
|
|
803
|
+
* > Caution: Data persistence isn't guaranteed and storage is cleared when the
|
|
804
|
+
* buyer starts a new checkout.
|
|
721
805
|
*/
|
|
722
806
|
storage: Storage;
|
|
723
807
|
|
|
@@ -734,237 +818,252 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
734
818
|
customerPrivacy: SubscribableSignalLike<CustomerPrivacy>;
|
|
735
819
|
|
|
736
820
|
/**
|
|
737
|
-
*
|
|
821
|
+
* Enables setting and updating customer privacy consent settings and tracking consent metafields.
|
|
738
822
|
*
|
|
739
|
-
* > Note: Requires the [`
|
|
823
|
+
* > Note: Requires the [`collect_buyer_consent` capability](/docs/apps/build/customer-accounts/capabilities#collect-buyer-consent) to be set to `true`.
|
|
740
824
|
*
|
|
741
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
825
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
742
826
|
*/
|
|
743
827
|
applyTrackingConsentChange: ApplyTrackingConsentChangeType;
|
|
744
828
|
|
|
745
829
|
/**
|
|
746
|
-
* The
|
|
747
|
-
* For example, some countries require additional fields for customs information or tax identification numbers.
|
|
830
|
+
* Additional region-specific fields required during checkout, such as tax identification numbers (Brazil's CPF/CNPJ) or customs credentials. The property is available only if the extension has access to protected customer data. The array is empty if the current checkout doesn't require any localized fields.
|
|
748
831
|
*/
|
|
749
832
|
localizedFields?: SubscribableSignalLike<LocalizedField[]>;
|
|
750
833
|
}
|
|
751
834
|
|
|
835
|
+
/**
|
|
836
|
+
* Authenticates requests between your extension and your app backend.
|
|
837
|
+
* Use session tokens to verify the identity of the buyer and the shop
|
|
838
|
+
* context when making server-side API calls. The token is a signed JWT
|
|
839
|
+
* that contains claims such as the customer ID, shop domain, and expiration.
|
|
840
|
+
*
|
|
841
|
+
* The `sub` claim in the decoded token is present only when the buyer is
|
|
842
|
+
* logged in and the app has permission to read customer accounts. Absent for
|
|
843
|
+
* anonymous buyers.
|
|
844
|
+
*/
|
|
752
845
|
export interface SessionToken {
|
|
753
846
|
/**
|
|
754
847
|
* Requests a session token that hasn't expired. You should call this method every
|
|
755
848
|
* time you need to make a request to your backend in order to get a valid token.
|
|
756
|
-
* This method
|
|
849
|
+
* This method returns cached tokens when possible, so you don't need to worry
|
|
757
850
|
* about storing these tokens yourself.
|
|
758
851
|
*/
|
|
759
852
|
get(): Promise<string>;
|
|
760
853
|
}
|
|
761
854
|
|
|
855
|
+
/**
|
|
856
|
+
* Information about the buyer who is completing the checkout.
|
|
857
|
+
*
|
|
858
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data). The `customer` and `purchasingCompany` properties require level 1 access. The `email` and `phone` properties require level 2 access.
|
|
859
|
+
*/
|
|
762
860
|
export interface BuyerIdentity {
|
|
763
861
|
/**
|
|
764
|
-
* The buyer's customer account. The value is undefined if the buyer isn
|
|
862
|
+
* The buyer's customer account, including their ID and whether they've accepted marketing. The value is `undefined` if the buyer isn't a
|
|
765
863
|
* known customer for this shop or if they haven't logged in yet.
|
|
766
864
|
*
|
|
767
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
865
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
768
866
|
*/
|
|
769
867
|
customer: SubscribableSignalLike<Customer | undefined>;
|
|
770
868
|
|
|
771
869
|
/**
|
|
772
|
-
* The email address
|
|
773
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
870
|
+
* The email address the buyer provided during checkout. The value is `undefined` if the app doesn't have access to customer data.
|
|
774
871
|
*
|
|
775
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
872
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
776
873
|
*/
|
|
777
874
|
email: SubscribableSignalLike<string | undefined>;
|
|
778
875
|
|
|
779
876
|
/**
|
|
780
|
-
* The phone number
|
|
781
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
877
|
+
* The phone number the buyer provided during checkout. The value is `undefined` if no phone number was provided or the app doesn't have access to customer data.
|
|
782
878
|
*
|
|
783
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
879
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
784
880
|
*/
|
|
785
881
|
phone: SubscribableSignalLike<string | undefined>;
|
|
786
882
|
|
|
787
883
|
/**
|
|
788
|
-
*
|
|
789
|
-
* This includes information that can be used to identify the company and the company location that the business
|
|
790
|
-
* customer belongs to.
|
|
884
|
+
* The company and company location that a B2B (business-to-business) customer is purchasing on behalf of. Use this to identify the business context of the order. The value is `undefined` if the buyer isn't a B2B customer.
|
|
791
885
|
*
|
|
792
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
886
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
793
887
|
*/
|
|
794
888
|
purchasingCompany: SubscribableSignalLike<PurchasingCompany | undefined>;
|
|
795
889
|
}
|
|
796
890
|
|
|
797
891
|
/**
|
|
798
|
-
* The
|
|
892
|
+
* The company and location that the [B2B](https://shopify.dev/docs/apps/build/b2b) customer is purchasing on behalf of. This is present only when the buyer is logged in as a business customer.
|
|
799
893
|
*/
|
|
800
894
|
export interface PurchasingCompany {
|
|
801
895
|
/**
|
|
802
|
-
*
|
|
896
|
+
* The company the B2B customer belongs to.
|
|
803
897
|
*
|
|
804
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
898
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
805
899
|
*/
|
|
806
900
|
company: Company;
|
|
807
901
|
/**
|
|
808
|
-
*
|
|
902
|
+
* The specific company location associated with this B2B purchase.
|
|
809
903
|
*
|
|
810
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
904
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
811
905
|
*/
|
|
812
906
|
location: CompanyLocation;
|
|
813
907
|
}
|
|
814
908
|
|
|
815
909
|
export interface Company {
|
|
816
910
|
/**
|
|
817
|
-
*
|
|
911
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
912
|
+
*
|
|
913
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
818
914
|
*
|
|
819
|
-
*
|
|
915
|
+
* @example 'gid://shopify/Company/123'
|
|
820
916
|
*/
|
|
821
917
|
id: string;
|
|
822
918
|
/**
|
|
823
|
-
* The
|
|
919
|
+
* The company's display name.
|
|
824
920
|
*
|
|
825
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
921
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
826
922
|
*/
|
|
827
923
|
name: string;
|
|
828
924
|
/**
|
|
829
|
-
*
|
|
925
|
+
* A merchant-defined external identifier for the company. The value is `undefined` if the merchant hasn't set one.
|
|
830
926
|
*
|
|
831
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
927
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
832
928
|
*/
|
|
833
929
|
externalId?: string;
|
|
834
930
|
}
|
|
835
931
|
|
|
836
932
|
export interface CompanyLocation {
|
|
837
933
|
/**
|
|
838
|
-
*
|
|
934
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
839
935
|
*
|
|
840
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
936
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
937
|
+
*
|
|
938
|
+
* @example 'gid://shopify/CompanyLocation/123'
|
|
841
939
|
*/
|
|
842
940
|
id: string;
|
|
843
941
|
/**
|
|
844
|
-
* The name of the company location.
|
|
942
|
+
* The display name of the company location.
|
|
845
943
|
*
|
|
846
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
944
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
847
945
|
*/
|
|
848
946
|
name: string;
|
|
849
947
|
/**
|
|
850
|
-
*
|
|
948
|
+
* A merchant-defined external identifier for the company location. The value is `undefined` if the merchant hasn't set one.
|
|
851
949
|
*
|
|
852
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
950
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
853
951
|
*/
|
|
854
952
|
externalId?: string;
|
|
855
953
|
}
|
|
856
954
|
|
|
857
955
|
export interface AppliedGiftCard {
|
|
858
956
|
/**
|
|
859
|
-
* The last four characters of the applied gift card's code.
|
|
957
|
+
* The last four characters of the applied gift card's code. The full code isn't exposed for security reasons. Use this value to display which card is applied.
|
|
860
958
|
*/
|
|
861
959
|
lastCharacters: string;
|
|
862
960
|
|
|
863
961
|
/**
|
|
864
|
-
* The amount of the applied gift card that
|
|
962
|
+
* The amount of the applied gift card that's used when the checkout is completed. This might be less than `balance` if the order total is lower than the card's remaining balance.
|
|
865
963
|
*/
|
|
866
964
|
amountUsed: Money;
|
|
867
965
|
|
|
868
966
|
/**
|
|
869
|
-
* The current balance of the applied gift card
|
|
967
|
+
* The current balance of the applied gift card before checkout completion. This reflects the full remaining value on the card, not just the amount being applied to this order.
|
|
870
968
|
*/
|
|
871
969
|
balance: Money;
|
|
872
970
|
}
|
|
873
971
|
|
|
972
|
+
/**
|
|
973
|
+
* Metadata about the merchant's store, including its name, storefront
|
|
974
|
+
* URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
975
|
+
*/
|
|
874
976
|
export interface Shop {
|
|
875
977
|
/**
|
|
876
|
-
*
|
|
978
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
979
|
+
*
|
|
877
980
|
* @example 'gid://shopify/Shop/123'
|
|
878
981
|
*/
|
|
879
982
|
id: string;
|
|
880
983
|
/**
|
|
881
|
-
* The name of the shop.
|
|
984
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
882
985
|
*/
|
|
883
986
|
name: string;
|
|
884
987
|
/**
|
|
885
|
-
* The primary storefront URL.
|
|
886
|
-
*
|
|
887
|
-
* > Caution:
|
|
888
|
-
* > As of version `2024-04` this value will no longer have a trailing slash.
|
|
988
|
+
* The primary storefront URL for the shop, such as `'https://example.myshopify.com'`. Use this to build links back to the merchant's online store.
|
|
889
989
|
*/
|
|
890
990
|
storefrontUrl?: string;
|
|
891
991
|
/**
|
|
892
|
-
* The shop's myshopify.com domain.
|
|
992
|
+
* The shop's unique `.myshopify.com` subdomain, such as `'example.myshopify.com'`. This domain is permanent and doesn't change even if the merchant adds a custom domain.
|
|
893
993
|
*/
|
|
894
994
|
myshopifyDomain: string;
|
|
895
995
|
}
|
|
896
996
|
|
|
897
997
|
export interface CartCost {
|
|
898
998
|
/**
|
|
899
|
-
*
|
|
900
|
-
* step of checkout.
|
|
999
|
+
* The sum of all line item prices at the current step of checkout, before shipping and taxes are applied. Use this value to display the base cost of the items the buyer purchased.
|
|
901
1000
|
*/
|
|
902
1001
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
903
1002
|
|
|
904
1003
|
/**
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
1004
|
+
* The total shipping cost after shipping discounts have been applied. The value is `undefined` if shipping hasn't been calculated yet, such as when the buyer is still on the information step.
|
|
1005
|
+
*
|
|
1006
|
+
* `undefined` until the buyer selects a shipping method (typically after the
|
|
1007
|
+
* information step).
|
|
908
1008
|
*/
|
|
909
1009
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
910
1010
|
|
|
911
1011
|
/**
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
* undefined
|
|
1012
|
+
* The total tax the buyer can expect to pay, or the total tax already included in product and shipping prices (for tax-inclusive regions). The value is `undefined` if taxes haven't been calculated yet.
|
|
1013
|
+
*
|
|
1014
|
+
* `undefined` when taxes haven't been calculated or aren't available for the
|
|
1015
|
+
* buyer's region.
|
|
915
1016
|
*/
|
|
916
1017
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
917
1018
|
|
|
918
1019
|
/**
|
|
919
|
-
*
|
|
920
|
-
* step of checkout. This value excludes amounts yet to be negotiated. For example,
|
|
921
|
-
* the information step might not have delivery costs calculated.
|
|
1020
|
+
* The minimum total at the current step of checkout. Costs not yet calculated, such as shipping on the information step, aren't included. Gift cards and store credits are excluded from this total.
|
|
922
1021
|
*/
|
|
923
1022
|
totalAmount: SubscribableSignalLike<Money>;
|
|
924
1023
|
}
|
|
925
1024
|
|
|
926
1025
|
export interface CartLine {
|
|
927
1026
|
/**
|
|
928
|
-
*
|
|
929
|
-
*
|
|
930
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
931
|
-
* create a `CartLineChange` object.
|
|
1027
|
+
* A unique identifier for the cart line in the format `gid://shopify/CartLine/<id>`. This ID isn't stable and can change after any cart operation, so avoid persisting it. Always look up the current ID before calling `applyCartLinesChange()`, because you'll need it to create a `CartLineChange` object.
|
|
1028
|
+
*
|
|
932
1029
|
* @example 'gid://shopify/CartLine/123'
|
|
933
1030
|
*/
|
|
934
1031
|
id: string;
|
|
935
1032
|
|
|
936
1033
|
/**
|
|
937
|
-
* The merchandise
|
|
1034
|
+
* The product variant or other merchandise associated with this line item. Use this to access product details such as the title, image, SKU, and selected options.
|
|
938
1035
|
*/
|
|
939
1036
|
merchandise: Merchandise;
|
|
940
1037
|
|
|
941
1038
|
/**
|
|
942
|
-
* The
|
|
1039
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
943
1040
|
*/
|
|
944
1041
|
quantity: number;
|
|
945
1042
|
|
|
946
1043
|
/**
|
|
947
|
-
* The
|
|
1044
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
948
1045
|
*/
|
|
949
1046
|
cost: CartLineCost;
|
|
950
1047
|
|
|
951
1048
|
/**
|
|
952
|
-
*
|
|
1049
|
+
* Custom key-value attributes attached to this cart line, such as gift messages or engraving text. Use `applyCartLinesChange()` to update these values.
|
|
953
1050
|
*/
|
|
954
1051
|
attributes: Attribute[];
|
|
955
1052
|
|
|
956
1053
|
/**
|
|
957
|
-
* Discounts applied to
|
|
1054
|
+
* Discounts applied to this cart line, including code-based, automatic, and custom discounts. Each allocation shows the discounted amount and how the discount was triggered.
|
|
958
1055
|
*/
|
|
959
1056
|
discountAllocations: CartDiscountAllocation[];
|
|
960
1057
|
|
|
961
1058
|
/**
|
|
962
|
-
*
|
|
1059
|
+
* The individual components of a [bundle](https://shopify.dev/docs/apps/build/product-merchandising/bundles) line item. Each component represents a separate product within the bundle. Returns an empty array if the line item isn't a bundle.
|
|
963
1060
|
*/
|
|
964
1061
|
lineComponents: CartLineComponentType[];
|
|
965
1062
|
|
|
966
1063
|
/**
|
|
967
|
-
* The
|
|
1064
|
+
* The parent line item that this line belongs to, or `null` if this is a
|
|
1065
|
+
* top-level line item. Used to identify lines added as children of a bundle
|
|
1066
|
+
* or other grouped product.
|
|
968
1067
|
*/
|
|
969
1068
|
parentRelationship: CartLineParentRelationship | null;
|
|
970
1069
|
}
|
|
@@ -975,8 +1074,8 @@ export interface CartLineParentRelationship {
|
|
|
975
1074
|
*/
|
|
976
1075
|
parent: {
|
|
977
1076
|
/**
|
|
978
|
-
* These line item IDs
|
|
979
|
-
* any operations on the line items.
|
|
1077
|
+
* These line item IDs aren't stable at the moment, and they might change after
|
|
1078
|
+
* any operations on the line items. Always look up an updated
|
|
980
1079
|
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
981
1080
|
* create a `CartLineChange` object.
|
|
982
1081
|
* @example 'gid://shopify/CartLine/123'
|
|
@@ -987,35 +1086,39 @@ export interface CartLineParentRelationship {
|
|
|
987
1086
|
|
|
988
1087
|
type CartLineComponentType = CartBundleLineComponent;
|
|
989
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* An individual component within a bundled cart line. Each `CartLine` that represents a bundle has a `lineComponents` array containing these components.
|
|
1091
|
+
*/
|
|
990
1092
|
export interface CartBundleLineComponent {
|
|
1093
|
+
/**
|
|
1094
|
+
* Identifies this as a bundle line component. This is currently the only component type.
|
|
1095
|
+
*/
|
|
991
1096
|
type: 'bundle';
|
|
992
1097
|
|
|
993
1098
|
/**
|
|
994
|
-
* A unique identifier for the bundle line
|
|
995
|
-
*
|
|
996
|
-
* This ID is not stable. If an operation updates the line items in any way, all IDs could change.
|
|
1099
|
+
* A unique identifier for this component within the bundle, in the format `gid://shopify/CartLineComponent/<id>`. This ID isn't stable and might change after any operation that updates the line items.
|
|
997
1100
|
*
|
|
998
1101
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
999
1102
|
*/
|
|
1000
1103
|
id: string;
|
|
1001
1104
|
|
|
1002
1105
|
/**
|
|
1003
|
-
* The
|
|
1106
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
1004
1107
|
*/
|
|
1005
1108
|
merchandise: Merchandise;
|
|
1006
1109
|
|
|
1007
1110
|
/**
|
|
1008
|
-
* The
|
|
1111
|
+
* The number of units of this component included in the bundle.
|
|
1009
1112
|
*/
|
|
1010
1113
|
quantity: number;
|
|
1011
1114
|
|
|
1012
1115
|
/**
|
|
1013
|
-
* The cost
|
|
1116
|
+
* The cost breakdown for this bundle component, including the total amount after any per-item discounts.
|
|
1014
1117
|
*/
|
|
1015
1118
|
cost: CartLineCost;
|
|
1016
1119
|
|
|
1017
1120
|
/**
|
|
1018
|
-
*
|
|
1121
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
1019
1122
|
*
|
|
1020
1123
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
1021
1124
|
*/
|
|
@@ -1024,19 +1127,19 @@ export interface CartBundleLineComponent {
|
|
|
1024
1127
|
|
|
1025
1128
|
export interface CartLineCost {
|
|
1026
1129
|
/**
|
|
1027
|
-
* The total
|
|
1028
|
-
* cart line.
|
|
1130
|
+
* The total price the buyer pays for this line item after all line-level discounts have been applied, but before order-level discounts, taxes, and shipping.
|
|
1029
1131
|
*/
|
|
1030
1132
|
totalAmount: Money;
|
|
1031
1133
|
}
|
|
1032
1134
|
|
|
1033
1135
|
export interface Money {
|
|
1034
1136
|
/**
|
|
1035
|
-
* The
|
|
1137
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
1036
1138
|
*/
|
|
1037
1139
|
amount: number;
|
|
1038
1140
|
/**
|
|
1039
|
-
* The
|
|
1141
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
1142
|
+
*
|
|
1040
1143
|
* @example 'CAD' for Canadian dollar
|
|
1041
1144
|
*/
|
|
1042
1145
|
currencyCode: CurrencyCode;
|
|
@@ -1046,99 +1149,110 @@ export type Merchandise = ProductVariant;
|
|
|
1046
1149
|
|
|
1047
1150
|
export interface BaseMerchandise {
|
|
1048
1151
|
/**
|
|
1049
|
-
*
|
|
1152
|
+
* A globally unique identifier for the merchandise.
|
|
1153
|
+
*
|
|
1154
|
+
* @example 'gid://shopify/ProductVariant/123'
|
|
1050
1155
|
*/
|
|
1051
1156
|
id: string;
|
|
1052
1157
|
}
|
|
1053
1158
|
|
|
1054
1159
|
export interface ProductVariant extends BaseMerchandise {
|
|
1160
|
+
/**
|
|
1161
|
+
* Identifies the merchandise as a product variant. This is currently the only merchandise type in checkout.
|
|
1162
|
+
*/
|
|
1055
1163
|
type: 'variant';
|
|
1056
1164
|
|
|
1057
1165
|
/**
|
|
1058
|
-
* A globally-unique identifier
|
|
1166
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
1167
|
+
*
|
|
1059
1168
|
* @example 'gid://shopify/ProductVariant/123'
|
|
1060
1169
|
*/
|
|
1061
1170
|
id: string;
|
|
1062
1171
|
|
|
1063
1172
|
/**
|
|
1064
|
-
* The product variant
|
|
1173
|
+
* The display title of the product variant, such as "Small" or "Red / Large". This is the variant-specific label, not the parent product title.
|
|
1065
1174
|
*/
|
|
1066
1175
|
title: string;
|
|
1067
1176
|
|
|
1068
1177
|
/**
|
|
1069
|
-
*
|
|
1178
|
+
* A secondary description for the variant that provides additional context, such as a color or size combination. The value is `undefined` if no subtitle is available.
|
|
1070
1179
|
*/
|
|
1071
1180
|
subtitle?: string;
|
|
1072
1181
|
|
|
1073
1182
|
/**
|
|
1074
|
-
*
|
|
1075
|
-
* image if no image is available.
|
|
1183
|
+
* The image associated with the product variant. Falls back to the product image if the variant doesn't have its own. The value is `undefined` if neither the variant nor the product has an image.
|
|
1076
1184
|
*/
|
|
1077
1185
|
image?: ImageDetails;
|
|
1078
1186
|
|
|
1079
1187
|
/**
|
|
1080
|
-
*
|
|
1188
|
+
* The product options applied to this variant, such as size, color, or material. Each entry contains the option name and the selected value.
|
|
1081
1189
|
*/
|
|
1082
1190
|
selectedOptions: SelectedOption[];
|
|
1083
1191
|
|
|
1084
1192
|
/**
|
|
1085
|
-
* The product
|
|
1193
|
+
* The parent product that this variant belongs to. Use this to access the product's ID, vendor, and type.
|
|
1086
1194
|
*/
|
|
1087
1195
|
product: Product;
|
|
1088
1196
|
|
|
1089
1197
|
/**
|
|
1090
|
-
* Whether
|
|
1198
|
+
* Whether this product variant requires physical shipping. When `true`, the buyer must provide a shipping address. Returns `false` for digital products, gift cards, and services.
|
|
1091
1199
|
*/
|
|
1092
1200
|
requiresShipping: boolean;
|
|
1093
1201
|
|
|
1094
1202
|
/**
|
|
1095
|
-
* The selling plan associated with the
|
|
1203
|
+
* The [selling plan](https://shopify.dev/docs/apps/build/purchase-options/subscriptions) associated with this variant, such as a subscription or pre-order plan. The value is `undefined` if the item isn't being purchased through a selling plan.
|
|
1096
1204
|
*/
|
|
1097
1205
|
sellingPlan?: SellingPlan;
|
|
1098
1206
|
|
|
1099
1207
|
/**
|
|
1100
|
-
* The
|
|
1208
|
+
* The stock keeping unit (SKU) assigned to this variant by the merchant, used for inventory tracking. The value is `undefined` if no SKU has been set.
|
|
1101
1209
|
*/
|
|
1102
1210
|
sku?: string;
|
|
1103
1211
|
}
|
|
1104
1212
|
|
|
1105
1213
|
export interface Product {
|
|
1106
1214
|
/**
|
|
1107
|
-
* A globally-unique identifier
|
|
1215
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
1216
|
+
*
|
|
1217
|
+
* @example 'gid://shopify/Product/123'
|
|
1108
1218
|
*/
|
|
1109
1219
|
id: string;
|
|
1110
1220
|
|
|
1111
1221
|
/**
|
|
1112
|
-
* The product
|
|
1222
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
1113
1223
|
*/
|
|
1114
1224
|
vendor: string;
|
|
1115
1225
|
|
|
1116
1226
|
/**
|
|
1117
|
-
* A categorization
|
|
1227
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
1118
1228
|
*/
|
|
1119
1229
|
productType: string;
|
|
1120
1230
|
}
|
|
1121
1231
|
|
|
1122
1232
|
export interface ImageDetails {
|
|
1123
1233
|
/**
|
|
1124
|
-
* The
|
|
1234
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
1125
1235
|
*/
|
|
1126
1236
|
url: string;
|
|
1127
1237
|
|
|
1128
1238
|
/**
|
|
1129
|
-
* The alternative text for the image.
|
|
1239
|
+
* The alternative text for the image, used for accessibility. The value is `undefined` if the merchant hasn't provided alt text.
|
|
1130
1240
|
*/
|
|
1131
1241
|
altText?: string;
|
|
1132
1242
|
}
|
|
1133
1243
|
|
|
1134
1244
|
export interface SelectedOption {
|
|
1135
1245
|
/**
|
|
1136
|
-
* The name of the
|
|
1246
|
+
* The name of the product option, such as "Color" or "Size".
|
|
1247
|
+
*
|
|
1248
|
+
* @example 'Size'
|
|
1137
1249
|
*/
|
|
1138
1250
|
name: string;
|
|
1139
1251
|
|
|
1140
1252
|
/**
|
|
1141
|
-
* The value
|
|
1253
|
+
* The selected value for the product option, such as "Red" or "Large".
|
|
1254
|
+
*
|
|
1255
|
+
* @example 'Large'
|
|
1142
1256
|
*/
|
|
1143
1257
|
value: string;
|
|
1144
1258
|
}
|
|
@@ -1150,7 +1264,7 @@ export interface PaymentOption {
|
|
|
1150
1264
|
/**
|
|
1151
1265
|
* The type of the payment option.
|
|
1152
1266
|
*
|
|
1153
|
-
* Shops can be configured to support many different payment options. Some options are only
|
|
1267
|
+
* Shops can be configured to support many different payment options. Some options are available only to buyers in specific regions.
|
|
1154
1268
|
*
|
|
1155
1269
|
* | Type | Description |
|
|
1156
1270
|
* |---|---|
|
|
@@ -1160,10 +1274,10 @@ export interface PaymentOption {
|
|
|
1160
1274
|
* | `manualPayment` | A manual payment option such as an in-person retail transaction. |
|
|
1161
1275
|
* | `offsite` | A payment processed outside of Shopify's checkout, excluding integrated wallets. |
|
|
1162
1276
|
* | `other` | Another type of payment not defined here. |
|
|
1163
|
-
* | `paymentOnDelivery` | A payment
|
|
1277
|
+
* | `paymentOnDelivery` | A payment collected on delivery. |
|
|
1164
1278
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
1165
|
-
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay
|
|
1166
|
-
* | `customOnsite` | A custom payment option that
|
|
1279
|
+
* | `wallet` | An integrated wallet such as PayPal, Google Pay, or Apple Pay. |
|
|
1280
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
1167
1281
|
*/
|
|
1168
1282
|
type:
|
|
1169
1283
|
| 'creditCard'
|
|
@@ -1178,21 +1292,29 @@ export interface PaymentOption {
|
|
|
1178
1292
|
| 'customOnsite';
|
|
1179
1293
|
|
|
1180
1294
|
/**
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1183
|
-
* This is not a globally unique identifier. It may be an identifier specific to the given checkout session or the current shop.
|
|
1295
|
+
* A session-scoped identifier for this payment option. This handle isn't globally unique; it's specific to the current checkout session or the shop.
|
|
1184
1296
|
*/
|
|
1185
1297
|
handle: string;
|
|
1186
1298
|
}
|
|
1187
1299
|
|
|
1300
|
+
/**
|
|
1301
|
+
* A payment option that the buyer has actively selected. This is the same shape as `PaymentOption` and appears in `selectedPaymentOptions`.
|
|
1302
|
+
*/
|
|
1188
1303
|
export type SelectedPaymentOption = PaymentOption;
|
|
1189
1304
|
|
|
1190
1305
|
export interface CartDiscountCode {
|
|
1191
1306
|
/**
|
|
1192
|
-
* The code
|
|
1307
|
+
* The discount code string entered by the buyer during checkout or applied programmatically, such as `"SAVE10"` or `"FREESHIP"`. Use this to display which discount codes were applied.
|
|
1193
1308
|
*/
|
|
1194
1309
|
code: string;
|
|
1195
1310
|
}
|
|
1311
|
+
/**
|
|
1312
|
+
* A discount allocation applied to the cart. Use the `type` property to determine how the discount was triggered:
|
|
1313
|
+
*
|
|
1314
|
+
* - `CartCodeDiscountAllocation` (`type: 'code'`): Triggered by a discount code the buyer entered.
|
|
1315
|
+
* - `CartAutomaticDiscountAllocation` (`type: 'automatic'`): Applied automatically based on merchant-configured rules.
|
|
1316
|
+
* - `CartCustomDiscountAllocation` (`type: 'custom'`): Applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1317
|
+
*/
|
|
1196
1318
|
export type CartDiscountAllocation =
|
|
1197
1319
|
| CartCodeDiscountAllocation
|
|
1198
1320
|
| CartAutomaticDiscountAllocation
|
|
@@ -1200,19 +1322,19 @@ export type CartDiscountAllocation =
|
|
|
1200
1322
|
|
|
1201
1323
|
export interface CartDiscountAllocationBase {
|
|
1202
1324
|
/**
|
|
1203
|
-
* The
|
|
1325
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
1204
1326
|
*/
|
|
1205
1327
|
discountedAmount: Money;
|
|
1206
1328
|
}
|
|
1207
1329
|
|
|
1208
1330
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
1209
1331
|
/**
|
|
1210
|
-
* The code
|
|
1332
|
+
* The discount code string that the buyer entered during checkout, such as `"SAVE10"` or `"FREESHIP"`.
|
|
1211
1333
|
*/
|
|
1212
1334
|
code: string;
|
|
1213
1335
|
|
|
1214
1336
|
/**
|
|
1215
|
-
*
|
|
1337
|
+
* Identifies this as a code-based discount, triggered by a discount code the buyer entered at checkout.
|
|
1216
1338
|
*/
|
|
1217
1339
|
type: 'code';
|
|
1218
1340
|
}
|
|
@@ -1220,12 +1342,12 @@ export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
|
1220
1342
|
export interface CartAutomaticDiscountAllocation
|
|
1221
1343
|
extends CartDiscountAllocationBase {
|
|
1222
1344
|
/**
|
|
1223
|
-
* The title of the automatic discount
|
|
1345
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
1224
1346
|
*/
|
|
1225
1347
|
title: string;
|
|
1226
1348
|
|
|
1227
1349
|
/**
|
|
1228
|
-
*
|
|
1350
|
+
* Identifies this as an automatic discount, applied based on merchant-configured rules without a code.
|
|
1229
1351
|
*/
|
|
1230
1352
|
type: 'automatic';
|
|
1231
1353
|
}
|
|
@@ -1233,12 +1355,12 @@ export interface CartAutomaticDiscountAllocation
|
|
|
1233
1355
|
export interface CartCustomDiscountAllocation
|
|
1234
1356
|
extends CartDiscountAllocationBase {
|
|
1235
1357
|
/**
|
|
1236
|
-
* The title of the custom discount
|
|
1358
|
+
* The title of the custom discount, typically applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1237
1359
|
*/
|
|
1238
1360
|
title: string;
|
|
1239
1361
|
|
|
1240
1362
|
/**
|
|
1241
|
-
*
|
|
1363
|
+
* Identifies this as a custom discount applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1242
1364
|
*/
|
|
1243
1365
|
type: 'custom';
|
|
1244
1366
|
}
|
|
@@ -1255,7 +1377,7 @@ interface InterceptorResultAllow {
|
|
|
1255
1377
|
interface InterceptorResultBlock {
|
|
1256
1378
|
/**
|
|
1257
1379
|
* Indicates that some part of the checkout UI intercepted and prevented
|
|
1258
|
-
* the buyer
|
|
1380
|
+
* the buyer's progress. The buyer typically needs to take some action
|
|
1259
1381
|
* to resolve this issue and to move on to the next step.
|
|
1260
1382
|
*/
|
|
1261
1383
|
behavior: 'block';
|
|
@@ -1267,7 +1389,7 @@ export type InterceptorRequest =
|
|
|
1267
1389
|
|
|
1268
1390
|
interface InterceptorRequestAllow {
|
|
1269
1391
|
/**
|
|
1270
|
-
* Indicates that the interceptor
|
|
1392
|
+
* Indicates that the interceptor allows the buyer's journey to continue.
|
|
1271
1393
|
*/
|
|
1272
1394
|
behavior: 'allow';
|
|
1273
1395
|
|
|
@@ -1275,6 +1397,11 @@ interface InterceptorRequestAllow {
|
|
|
1275
1397
|
* This callback is called when all interceptors finish. We recommend
|
|
1276
1398
|
* setting errors or reasons for blocking at this stage, so that all the errors in
|
|
1277
1399
|
* the UI show up at once.
|
|
1400
|
+
*
|
|
1401
|
+
* Runs after all intercept results are collected. Use it for local state
|
|
1402
|
+
* updates such as setting an error flag. By the time it runs, the navigation
|
|
1403
|
+
* decision is final, so blocking logic belongs in the intercept handler
|
|
1404
|
+
* itself, not here.
|
|
1278
1405
|
* @param result InterceptorResult with behavior as either 'allow' or 'block'
|
|
1279
1406
|
*/
|
|
1280
1407
|
perform?(result: InterceptorResult): void | Promise<void>;
|
|
@@ -1282,13 +1409,13 @@ interface InterceptorRequestAllow {
|
|
|
1282
1409
|
// The reason is used for tracing and debugging purposes.
|
|
1283
1410
|
interface InterceptorRequestBlock {
|
|
1284
1411
|
/**
|
|
1285
|
-
* Indicates that the interceptor
|
|
1412
|
+
* Indicates that the interceptor blocks the buyer's journey from continuing.
|
|
1286
1413
|
*/
|
|
1287
1414
|
behavior: 'block';
|
|
1288
1415
|
|
|
1289
1416
|
/**
|
|
1290
1417
|
* The reason for blocking the interceptor request. This value isn't presented to
|
|
1291
|
-
* the buyer, so it doesn't need to be localized. The value is used only for Shopify
|
|
1418
|
+
* the buyer, so it doesn't need to be localized. The value is used only for Shopify's
|
|
1292
1419
|
* own internal debugging and metrics.
|
|
1293
1420
|
*/
|
|
1294
1421
|
reason: string;
|
|
@@ -1302,6 +1429,11 @@ interface InterceptorRequestBlock {
|
|
|
1302
1429
|
* This callback is called when all interceptors finish. We recommend
|
|
1303
1430
|
* setting errors or reasons for blocking at this stage, so that all the errors in
|
|
1304
1431
|
* the UI show up at once.
|
|
1432
|
+
*
|
|
1433
|
+
* Runs after all intercept results are collected. Use it for local state
|
|
1434
|
+
* updates such as setting an error flag. By the time it runs, the navigation
|
|
1435
|
+
* decision is final, so blocking logic belongs in the intercept handler
|
|
1436
|
+
* itself, not here.
|
|
1305
1437
|
* @param result InterceptorResult with behavior as either 'allow' or 'block'
|
|
1306
1438
|
*/
|
|
1307
1439
|
perform?(result: InterceptorResult): void | Promise<void>;
|
|
@@ -1309,8 +1441,7 @@ interface InterceptorRequestBlock {
|
|
|
1309
1441
|
|
|
1310
1442
|
export interface InterceptorProps {
|
|
1311
1443
|
/**
|
|
1312
|
-
* Whether the interceptor has the capability
|
|
1313
|
-
* checkout. This ability might be granted by a merchant in differing checkout contexts.
|
|
1444
|
+
* Whether the interceptor can block the buyer's progress through checkout. When `true`, the merchant has granted your extension the `block_progress` capability. When `false`, you can still validate but can't prevent the buyer from continuing.
|
|
1314
1445
|
*/
|
|
1315
1446
|
canBlockProgress: boolean;
|
|
1316
1447
|
}
|
|
@@ -1318,9 +1449,9 @@ export interface InterceptorProps {
|
|
|
1318
1449
|
/**
|
|
1319
1450
|
* A function for intercepting and preventing navigation on checkout. You can block
|
|
1320
1451
|
* navigation by returning an object with
|
|
1321
|
-
* `{behavior: 'block', reason:
|
|
1452
|
+
* `{behavior: 'block', reason: 'your reason here', errors?: ValidationError[]}`.
|
|
1322
1453
|
* If you do, then you're expected to also update some part of your UI to reflect the reason why navigation
|
|
1323
|
-
* was blocked, either by targeting checkout UI fields, passing errors to the page level or rendering the errors in your extension.
|
|
1454
|
+
* was blocked, either by targeting checkout UI fields, passing errors to the page level, or rendering the errors in your extension.
|
|
1324
1455
|
*/
|
|
1325
1456
|
export type Interceptor = (
|
|
1326
1457
|
interceptorProps: InterceptorProps,
|
|
@@ -1329,57 +1460,57 @@ export type Interceptor = (
|
|
|
1329
1460
|
/**
|
|
1330
1461
|
* Information about a customer who has previously purchased from this shop.
|
|
1331
1462
|
*
|
|
1332
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1463
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1333
1464
|
*/
|
|
1334
1465
|
export interface Customer {
|
|
1335
1466
|
/**
|
|
1336
|
-
* Customer
|
|
1467
|
+
* An identifier for the customer in the format `gid://shopify/Customer/<id>`. This value is unique per shop.
|
|
1337
1468
|
*
|
|
1338
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1469
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1339
1470
|
*
|
|
1340
1471
|
* @example 'gid://shopify/Customer/123'
|
|
1341
1472
|
*/
|
|
1342
1473
|
id: string;
|
|
1343
1474
|
/**
|
|
1344
|
-
* The email
|
|
1475
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
1345
1476
|
*
|
|
1346
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1477
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1347
1478
|
*/
|
|
1348
1479
|
email?: string;
|
|
1349
1480
|
/**
|
|
1350
|
-
* The phone number
|
|
1481
|
+
* The phone number associated with the customer's account. The value is `undefined` if no phone number is on file or the app doesn't have the required access level.
|
|
1351
1482
|
*
|
|
1352
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1483
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1353
1484
|
*/
|
|
1354
1485
|
phone?: string;
|
|
1355
1486
|
/**
|
|
1356
|
-
* The full name of the
|
|
1487
|
+
* The customer's full name, typically a combination of first and last name. The value is `undefined` if the app doesn't have the required access level.
|
|
1357
1488
|
*
|
|
1358
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1489
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1359
1490
|
*/
|
|
1360
1491
|
fullName?: string;
|
|
1361
1492
|
/**
|
|
1362
|
-
* The first name
|
|
1493
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
1363
1494
|
*
|
|
1364
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1495
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1365
1496
|
*/
|
|
1366
1497
|
firstName?: string;
|
|
1367
1498
|
/**
|
|
1368
|
-
* The last name
|
|
1499
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
1369
1500
|
*
|
|
1370
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1501
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1371
1502
|
*/
|
|
1372
1503
|
lastName?: string;
|
|
1373
1504
|
/**
|
|
1374
|
-
* The image
|
|
1505
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
1375
1506
|
*
|
|
1376
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1507
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1377
1508
|
*/
|
|
1378
1509
|
image: ImageDetails;
|
|
1379
1510
|
/**
|
|
1380
|
-
*
|
|
1511
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
1381
1512
|
*
|
|
1382
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1513
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1383
1514
|
*
|
|
1384
1515
|
* > Caution: This field is deprecated and will be removed in a future version. Use `acceptsEmailMarketing` or `acceptsSmsMarketing` instead.
|
|
1385
1516
|
*
|
|
@@ -1387,29 +1518,29 @@ export interface Customer {
|
|
|
1387
1518
|
*/
|
|
1388
1519
|
acceptsMarketing: boolean;
|
|
1389
1520
|
/**
|
|
1390
|
-
*
|
|
1521
|
+
* Whether the customer has opted in to email marketing.
|
|
1391
1522
|
*
|
|
1392
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1523
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1393
1524
|
*/
|
|
1394
1525
|
acceptsEmailMarketing: boolean;
|
|
1395
1526
|
/**
|
|
1396
|
-
*
|
|
1527
|
+
* Whether the customer has opted in to SMS marketing.
|
|
1397
1528
|
*
|
|
1398
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1529
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1399
1530
|
*/
|
|
1400
1531
|
acceptsSmsMarketing: boolean;
|
|
1401
1532
|
/**
|
|
1402
|
-
* The
|
|
1533
|
+
* The store credit accounts owned by this customer that can be used as payment during checkout. Each account has a balance representing available store credit.
|
|
1403
1534
|
*
|
|
1404
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1535
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1405
1536
|
*
|
|
1406
1537
|
* @private
|
|
1407
1538
|
*/
|
|
1408
1539
|
storeCreditAccounts: StoreCreditAccount[];
|
|
1409
1540
|
/**
|
|
1410
|
-
* The number of
|
|
1541
|
+
* The number of orders the customer has previously placed with this shop.
|
|
1411
1542
|
*
|
|
1412
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1543
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1413
1544
|
*/
|
|
1414
1545
|
ordersCount: number;
|
|
1415
1546
|
}
|
|
@@ -1419,15 +1550,18 @@ export interface Customer {
|
|
|
1419
1550
|
*/
|
|
1420
1551
|
export interface CheckoutSettings {
|
|
1421
1552
|
/**
|
|
1422
|
-
* The type of order
|
|
1553
|
+
* The type of order created when the buyer completes checkout.
|
|
1554
|
+
*
|
|
1555
|
+
* - `'DRAFT_ORDER'`: The checkout creates a draft order that the merchant must manually confirm before fulfillment. Common for B2B checkouts with deferred payment terms.
|
|
1556
|
+
* - `'ORDER'`: The checkout creates a confirmed order immediately upon completion.
|
|
1423
1557
|
*/
|
|
1424
1558
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
1425
1559
|
/**
|
|
1426
|
-
*
|
|
1560
|
+
* The payment terms configured by the merchant for B2B orders, such as net-30 or net-60. The value is `undefined` if no payment terms are configured.
|
|
1427
1561
|
*/
|
|
1428
1562
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
1429
1563
|
/**
|
|
1430
|
-
* Settings
|
|
1564
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
1431
1565
|
*/
|
|
1432
1566
|
shippingAddress: ShippingAddressSettings;
|
|
1433
1567
|
}
|
|
@@ -1437,45 +1571,47 @@ export interface CheckoutSettings {
|
|
|
1437
1571
|
*/
|
|
1438
1572
|
export interface ShippingAddressSettings {
|
|
1439
1573
|
/**
|
|
1440
|
-
*
|
|
1574
|
+
* Whether the buyer is allowed to edit the shipping address during checkout. When `false`, the shipping address is locked and can't be changed, which is common for B2B orders with a predefined ship-to address.
|
|
1441
1575
|
*/
|
|
1442
1576
|
isEditable: boolean;
|
|
1443
1577
|
}
|
|
1444
1578
|
|
|
1445
1579
|
/**
|
|
1446
|
-
*
|
|
1580
|
+
* A payment terms template configured by the merchant, defining when payment is due for B2B orders. Common examples include "Net 30" (due in 30 days) or "Due on receipt".
|
|
1447
1581
|
*/
|
|
1448
1582
|
export interface PaymentTermsTemplate {
|
|
1449
1583
|
/**
|
|
1450
|
-
* A globally-unique
|
|
1584
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
1585
|
+
*
|
|
1451
1586
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
1452
1587
|
*/
|
|
1453
1588
|
id: string;
|
|
1454
1589
|
/**
|
|
1455
|
-
* The name of the payment terms translated to the buyer's current language
|
|
1590
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt".
|
|
1456
1591
|
*/
|
|
1457
1592
|
name: string;
|
|
1458
1593
|
/**
|
|
1459
|
-
* The due date for
|
|
1594
|
+
* The due date for payment in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ss.sssZ`). The value is `undefined` if the payment terms don't have a fixed due date.
|
|
1460
1595
|
*/
|
|
1461
1596
|
dueDate?: string;
|
|
1462
1597
|
/**
|
|
1463
|
-
* The number of days
|
|
1598
|
+
* The number of days the buyer has to pay after the order is placed, such as `30` for "Net 30" terms. The value is `undefined` if the payment terms aren't net-based.
|
|
1464
1599
|
*/
|
|
1465
1600
|
dueInDays?: number;
|
|
1466
1601
|
}
|
|
1467
1602
|
|
|
1468
1603
|
/**
|
|
1469
|
-
*
|
|
1604
|
+
* A store credit account owned by the customer. Store credit is a form of payment that merchants can issue to customers for returns, refunds, or promotional purposes.
|
|
1470
1605
|
*/
|
|
1471
1606
|
export interface StoreCreditAccount {
|
|
1472
1607
|
/**
|
|
1473
|
-
* A globally-unique identifier
|
|
1608
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
1609
|
+
*
|
|
1474
1610
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
1475
1611
|
*/
|
|
1476
1612
|
id: string;
|
|
1477
1613
|
/**
|
|
1478
|
-
* The
|
|
1614
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
1479
1615
|
*/
|
|
1480
1616
|
balance: Money;
|
|
1481
1617
|
}
|
|
@@ -1488,14 +1624,24 @@ export type ExtensionSettings = Record<
|
|
|
1488
1624
|
string | number | boolean | undefined
|
|
1489
1625
|
>;
|
|
1490
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Tracks custom events and sends visitor information to
|
|
1629
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
1630
|
+
* and `visitor()` to submit buyer contact details.
|
|
1631
|
+
*/
|
|
1491
1632
|
export interface Analytics {
|
|
1492
1633
|
/**
|
|
1493
|
-
*
|
|
1634
|
+
* Publishes a custom event to [Web Pixels](https://shopify.dev/docs/apps/marketing).
|
|
1635
|
+
* Returns `true` when the event is successfully dispatched.
|
|
1636
|
+
*
|
|
1637
|
+
* The Promise resolves to `true` when the event was dispatched. The boolean
|
|
1638
|
+
* indicates dispatch confirmation only. It doesn't indicate whether any
|
|
1639
|
+
* specific web pixel processed the event.
|
|
1494
1640
|
*/
|
|
1495
1641
|
publish(name: string, data: Record<string, unknown>): Promise<boolean>;
|
|
1496
1642
|
|
|
1497
1643
|
/**
|
|
1498
|
-
*
|
|
1644
|
+
* Submits buyer contact details for attribution and analytics purposes.
|
|
1499
1645
|
*/
|
|
1500
1646
|
visitor(data: {email?: string; phone?: string}): Promise<VisitorResult>;
|
|
1501
1647
|
}
|
|
@@ -1520,78 +1666,88 @@ export interface VisitorSuccess {
|
|
|
1520
1666
|
export interface VisitorError {
|
|
1521
1667
|
/**
|
|
1522
1668
|
* Indicates that the visitor information is invalid and wasn't submitted.
|
|
1523
|
-
*
|
|
1669
|
+
* Common causes include using the wrong data type or omitting a required property.
|
|
1524
1670
|
*/
|
|
1525
1671
|
type: 'error';
|
|
1526
1672
|
|
|
1527
1673
|
/**
|
|
1528
1674
|
* A message that explains the error. This message is useful for debugging.
|
|
1529
|
-
* It'
|
|
1530
|
-
* to the buyer.
|
|
1675
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1531
1676
|
*/
|
|
1532
1677
|
message: string;
|
|
1533
1678
|
}
|
|
1534
1679
|
|
|
1535
1680
|
/**
|
|
1536
|
-
*
|
|
1537
|
-
* more cart lines.
|
|
1681
|
+
* A group of cart lines that share the same set of delivery options. For example, physical items might form one delivery group while digital items form another.
|
|
1538
1682
|
*/
|
|
1539
1683
|
export interface DeliveryGroup {
|
|
1540
1684
|
/**
|
|
1541
|
-
*
|
|
1685
|
+
* A unique identifier for the delivery group. The value is `undefined` if the underlying delivery line doesn't have an ID assigned.
|
|
1542
1686
|
*/
|
|
1543
1687
|
id?: string;
|
|
1544
1688
|
/**
|
|
1545
|
-
* The cart
|
|
1689
|
+
* The cart lines that belong to this delivery group. Each reference contains the cart line's `id`, which you can match against `lines` to get the full cart line details.
|
|
1546
1690
|
*/
|
|
1547
1691
|
targetedCartLines: CartLineReference[];
|
|
1548
1692
|
|
|
1549
1693
|
/**
|
|
1550
|
-
* The delivery options available for
|
|
1694
|
+
* The delivery options available for this group, including shipping, pickup point, and pickup location options. The buyer selects one of these to determine how their items are delivered.
|
|
1551
1695
|
*/
|
|
1552
1696
|
deliveryOptions: DeliveryOption[];
|
|
1553
1697
|
|
|
1554
1698
|
/**
|
|
1555
|
-
* The
|
|
1699
|
+
* The delivery option the buyer has selected for this group. The value is `undefined` if the buyer hasn't selected a delivery option yet. Contains a `handle` you can match against `deliveryOptions` entries.
|
|
1556
1700
|
*/
|
|
1557
1701
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
1558
1702
|
|
|
1559
1703
|
/**
|
|
1560
|
-
*
|
|
1704
|
+
* Whether this group contains items for a one-time purchase or a subscription.
|
|
1705
|
+
* Subscription delivery groups might have different shipping options. See `DeliveryGroupType` for possible values.
|
|
1561
1706
|
*/
|
|
1562
1707
|
groupType: DeliveryGroupType;
|
|
1563
1708
|
|
|
1564
1709
|
/**
|
|
1565
|
-
* Whether delivery is required for the
|
|
1710
|
+
* Whether physical delivery is required for the items in this group.
|
|
1711
|
+
* Digital-only groups don't require delivery.
|
|
1566
1712
|
*/
|
|
1567
1713
|
isDeliveryRequired: boolean;
|
|
1568
1714
|
}
|
|
1569
1715
|
|
|
1570
1716
|
/**
|
|
1571
1717
|
* The possible types of a delivery group.
|
|
1718
|
+
*
|
|
1719
|
+
* - `'oneTimePurchase'`: Items bought as a single, non-recurring purchase.
|
|
1720
|
+
* - `'subscription'`: Items bought through a [selling plan](https://shopify.dev/docs/apps/build/purchase-options/subscriptions) that results in recurring deliveries.
|
|
1572
1721
|
*/
|
|
1573
1722
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
1574
1723
|
|
|
1575
1724
|
/**
|
|
1576
|
-
*
|
|
1725
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
1577
1726
|
*/
|
|
1578
1727
|
export interface CartLineReference {
|
|
1579
1728
|
/**
|
|
1580
|
-
* The unique identifier of the referenced cart line.
|
|
1729
|
+
* The unique identifier of the referenced cart line. Match this against `CartLine.id` from the `lines` property to get the full line item details.
|
|
1581
1730
|
*/
|
|
1582
1731
|
id: string;
|
|
1583
1732
|
}
|
|
1584
1733
|
|
|
1585
1734
|
/**
|
|
1586
|
-
*
|
|
1735
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
1587
1736
|
*/
|
|
1588
1737
|
export interface DeliveryOptionReference {
|
|
1589
1738
|
/**
|
|
1590
|
-
* The unique identifier of the referenced delivery option.
|
|
1739
|
+
* The unique identifier of the referenced delivery option. Match this against `DeliveryOption.handle` from the `deliveryOptions` array to get the full option details.
|
|
1591
1740
|
*/
|
|
1592
1741
|
handle: string;
|
|
1593
1742
|
}
|
|
1594
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* A delivery option available to the buyer. Use the `type` property to determine which kind of option it is:
|
|
1746
|
+
*
|
|
1747
|
+
* - `ShippingOption` (`type: 'shipping' | 'local'`): Items shipped by a carrier or delivered locally by the merchant.
|
|
1748
|
+
* - `PickupPointOption` (`type: 'pickupPoint'`): Items shipped to a third-party collection point for the buyer to pick up.
|
|
1749
|
+
* - `PickupLocationOption` (`type: 'pickup'`): Items picked up directly from a merchant's store or warehouse.
|
|
1750
|
+
*/
|
|
1595
1751
|
export type DeliveryOption =
|
|
1596
1752
|
| ShippingOption
|
|
1597
1753
|
| PickupPointOption
|
|
@@ -1602,129 +1758,136 @@ export type DeliveryOption =
|
|
|
1602
1758
|
*/
|
|
1603
1759
|
export interface DeliveryOptionBase {
|
|
1604
1760
|
/**
|
|
1605
|
-
* The unique identifier of the delivery option.
|
|
1761
|
+
* The unique identifier of the delivery option. Use this to match against `DeliveryOptionReference.handle` or `DeliverySelectionGroup` entries.
|
|
1606
1762
|
*/
|
|
1607
1763
|
handle: string;
|
|
1608
1764
|
|
|
1609
1765
|
/**
|
|
1610
|
-
* The
|
|
1766
|
+
* The merchant-facing or carrier-provided display name for the delivery
|
|
1767
|
+
* option, such as "Standard Shipping" or "Express".
|
|
1611
1768
|
*/
|
|
1612
1769
|
title?: string;
|
|
1613
1770
|
|
|
1614
1771
|
/**
|
|
1615
|
-
*
|
|
1772
|
+
* Additional details about the delivery option provided by the carrier
|
|
1773
|
+
* or merchant, such as estimated delivery windows or service level notes.
|
|
1616
1774
|
*/
|
|
1617
1775
|
description?: string;
|
|
1618
1776
|
|
|
1619
1777
|
/**
|
|
1620
|
-
* The code
|
|
1778
|
+
* The carrier service code or rate identifier for this delivery option.
|
|
1621
1779
|
*/
|
|
1622
1780
|
code: string;
|
|
1623
1781
|
|
|
1624
1782
|
/**
|
|
1625
|
-
*
|
|
1783
|
+
* Custom [metafields](https://shopify.dev/docs/apps/build/custom-data/metafields) attached to this delivery option by the carrier or a [Shopify Function](https://shopify.dev/docs/apps/build/functions). Use these to display additional information about the option.
|
|
1626
1784
|
*/
|
|
1627
1785
|
metafields: Metafield[];
|
|
1628
1786
|
}
|
|
1629
1787
|
|
|
1630
1788
|
/**
|
|
1631
|
-
* Represents a delivery option that
|
|
1789
|
+
* Represents a delivery option that's a shipping option.
|
|
1632
1790
|
*/
|
|
1633
1791
|
export interface ShippingOption extends DeliveryOptionBase {
|
|
1634
1792
|
/**
|
|
1635
|
-
*
|
|
1793
|
+
* Identifies the delivery method. `'shipping'` means items are shipped by a carrier. `'local'` means the merchant handles delivery themselves, for example same-day local delivery.
|
|
1636
1794
|
*/
|
|
1637
1795
|
type: 'shipping' | 'local';
|
|
1638
1796
|
|
|
1639
1797
|
/**
|
|
1640
|
-
* Information about the carrier.
|
|
1798
|
+
* Information about the carrier providing this shipping option, including the carrier's display name.
|
|
1641
1799
|
*/
|
|
1642
1800
|
carrier: ShippingOptionCarrier;
|
|
1643
1801
|
|
|
1644
1802
|
/**
|
|
1645
|
-
* The cost of
|
|
1803
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1646
1804
|
*/
|
|
1647
1805
|
cost: Money;
|
|
1648
1806
|
|
|
1649
1807
|
/**
|
|
1650
|
-
* The cost of
|
|
1808
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1651
1809
|
*/
|
|
1652
1810
|
costAfterDiscounts: Money;
|
|
1653
1811
|
|
|
1654
1812
|
/**
|
|
1655
|
-
*
|
|
1813
|
+
* The estimated delivery time for this shipping option. Use the `timeInTransit` range to display an estimated arrival window to the buyer.
|
|
1656
1814
|
*/
|
|
1657
1815
|
deliveryEstimate: DeliveryEstimate;
|
|
1658
1816
|
}
|
|
1659
1817
|
|
|
1660
1818
|
export interface DeliveryEstimate {
|
|
1661
1819
|
/**
|
|
1662
|
-
* The estimated time in transit for the delivery
|
|
1820
|
+
* The estimated time in transit for the delivery, expressed as a range
|
|
1821
|
+
* in seconds. Undefined when the carrier doesn't provide an estimate.
|
|
1822
|
+
* When present, either the lower or upper bound of the range might still
|
|
1823
|
+
* be omitted.
|
|
1663
1824
|
*/
|
|
1664
1825
|
timeInTransit?: NumberRange;
|
|
1665
1826
|
}
|
|
1666
1827
|
|
|
1667
1828
|
export interface ShippingOptionCarrier {
|
|
1668
1829
|
/**
|
|
1669
|
-
* The name of the carrier.
|
|
1830
|
+
* The display name of the shipping carrier, such as "Canada Post" or "UPS". The value is `undefined` if the carrier name isn't available.
|
|
1670
1831
|
*/
|
|
1671
1832
|
name?: string;
|
|
1672
1833
|
}
|
|
1673
1834
|
|
|
1674
1835
|
export interface PickupPointOption extends DeliveryOptionBase {
|
|
1675
1836
|
/**
|
|
1676
|
-
*
|
|
1837
|
+
* Identifies this as a pickup point option, where items are shipped to a third-party collection point for the buyer to pick up.
|
|
1677
1838
|
*/
|
|
1678
1839
|
type: 'pickupPoint';
|
|
1679
1840
|
|
|
1680
1841
|
/**
|
|
1681
|
-
* Information about the carrier that ships to
|
|
1842
|
+
* Information about the carrier that ships items to this pickup point, including the carrier's name and code.
|
|
1682
1843
|
*/
|
|
1683
1844
|
carrier: PickupPointCarrier;
|
|
1684
1845
|
|
|
1685
1846
|
/**
|
|
1686
|
-
* The cost
|
|
1847
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1687
1848
|
*/
|
|
1688
1849
|
cost: Money;
|
|
1689
1850
|
|
|
1690
1851
|
/**
|
|
1691
|
-
* The cost
|
|
1852
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1692
1853
|
*/
|
|
1693
1854
|
costAfterDiscounts: Money;
|
|
1694
1855
|
|
|
1695
1856
|
/**
|
|
1696
|
-
* The location
|
|
1857
|
+
* The physical location where the buyer picks up their order, including the address and display name of the collection point.
|
|
1697
1858
|
*/
|
|
1698
1859
|
location: PickupPointLocation;
|
|
1699
1860
|
}
|
|
1700
1861
|
|
|
1701
1862
|
export interface PickupLocationOption extends DeliveryOptionBase {
|
|
1702
1863
|
/**
|
|
1703
|
-
*
|
|
1864
|
+
* Identifies this as a pickup location option, where the buyer picks up items directly from a merchant's store or warehouse.
|
|
1704
1865
|
*/
|
|
1705
1866
|
type: 'pickup';
|
|
1706
1867
|
|
|
1707
1868
|
/**
|
|
1708
|
-
* The
|
|
1869
|
+
* The merchant's store or warehouse where the buyer picks up their order, including the address and display name.
|
|
1709
1870
|
*/
|
|
1710
1871
|
location: PickupLocation;
|
|
1711
1872
|
}
|
|
1712
1873
|
|
|
1713
1874
|
interface PickupLocation {
|
|
1714
1875
|
/**
|
|
1715
|
-
* The name of the pickup location
|
|
1876
|
+
* The merchant-defined display name of the pickup location, such as a
|
|
1877
|
+
* store name or warehouse label.
|
|
1716
1878
|
*/
|
|
1717
1879
|
name?: string;
|
|
1718
1880
|
|
|
1719
1881
|
/**
|
|
1720
|
-
* The address of the pickup location.
|
|
1882
|
+
* The physical address of the pickup location.
|
|
1721
1883
|
*/
|
|
1722
1884
|
address: MailingAddress;
|
|
1723
1885
|
}
|
|
1724
1886
|
|
|
1725
1887
|
interface PickupPointLocation {
|
|
1726
1888
|
/**
|
|
1727
|
-
* The name of the pickup point
|
|
1889
|
+
* The display name of the pickup point, such as the name of the locker
|
|
1890
|
+
* or collection point.
|
|
1728
1891
|
*/
|
|
1729
1892
|
name?: string;
|
|
1730
1893
|
|
|
@@ -1734,31 +1897,34 @@ interface PickupPointLocation {
|
|
|
1734
1897
|
handle: string;
|
|
1735
1898
|
|
|
1736
1899
|
/**
|
|
1737
|
-
* The address of the pickup point.
|
|
1900
|
+
* The physical address of the pickup point.
|
|
1738
1901
|
*/
|
|
1739
1902
|
address: MailingAddress;
|
|
1740
1903
|
}
|
|
1741
1904
|
|
|
1742
1905
|
interface PickupPointCarrier {
|
|
1743
1906
|
/**
|
|
1744
|
-
* The code
|
|
1907
|
+
* The carrier's unique identifier code, used to distinguish between
|
|
1908
|
+
* different carriers that deliver to pickup points.
|
|
1745
1909
|
*/
|
|
1746
1910
|
code?: string;
|
|
1747
1911
|
|
|
1748
1912
|
/**
|
|
1749
|
-
* The name of the carrier.
|
|
1913
|
+
* The display name of the carrier that delivers to this pickup point.
|
|
1750
1914
|
*/
|
|
1751
1915
|
name?: string;
|
|
1752
1916
|
}
|
|
1753
1917
|
|
|
1754
1918
|
export interface NumberRange {
|
|
1755
1919
|
/**
|
|
1756
|
-
* The lower bound of the
|
|
1920
|
+
* The lower bound of the range. Undefined if only an upper bound is
|
|
1921
|
+
* provided.
|
|
1757
1922
|
*/
|
|
1758
1923
|
lower?: number;
|
|
1759
1924
|
|
|
1760
1925
|
/**
|
|
1761
|
-
* The upper bound of the
|
|
1926
|
+
* The upper bound of the range. Undefined if only a lower bound is
|
|
1927
|
+
* provided.
|
|
1762
1928
|
*/
|
|
1763
1929
|
upper?: number;
|
|
1764
1930
|
}
|
|
@@ -1768,78 +1934,112 @@ export interface NumberRange {
|
|
|
1768
1934
|
*/
|
|
1769
1935
|
export interface DeliveryGroupDetails extends DeliveryGroup {
|
|
1770
1936
|
/**
|
|
1771
|
-
* The
|
|
1937
|
+
* The full delivery option the buyer has selected for this group, with all cost and carrier details included. The value is `undefined` if the buyer hasn't selected an option yet. Unlike `DeliveryGroup.selectedDeliveryOption`, which is a reference, this contains the complete `DeliveryOption` object.
|
|
1772
1938
|
*/
|
|
1773
1939
|
selectedDeliveryOption?: DeliveryOption;
|
|
1774
1940
|
|
|
1775
1941
|
/**
|
|
1776
|
-
* The cart
|
|
1942
|
+
* The full cart line objects associated with this delivery group, with all merchandise and cost details included. Unlike `DeliveryGroup.targetedCartLines`, which contains references, this contains the complete `CartLine` objects.
|
|
1777
1943
|
*/
|
|
1778
1944
|
targetedCartLines: CartLine[];
|
|
1779
1945
|
}
|
|
1780
1946
|
|
|
1781
1947
|
export interface AllowedProcessing {
|
|
1782
1948
|
/**
|
|
1783
|
-
*
|
|
1949
|
+
* Whether analytics data can be collected based on the visitor's consent,
|
|
1950
|
+
* the merchant's privacy configuration, and the visitor's region. Analytics
|
|
1951
|
+
* data includes how the shop was used and what interactions occurred.
|
|
1952
|
+
*
|
|
1953
|
+
* Whether analytics data can be collected right now. Combines the buyer's
|
|
1954
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1955
|
+
* a single boolean. Check this flag, not `visitorConsent.analytics`, before
|
|
1956
|
+
* calling `shopify.analytics.publish()`.
|
|
1784
1957
|
*/
|
|
1785
1958
|
analytics: boolean;
|
|
1786
1959
|
/**
|
|
1787
|
-
*
|
|
1960
|
+
* Whether marketing data can be collected based on the visitor's consent,
|
|
1961
|
+
* the merchant's privacy configuration, and the visitor's region. Marketing
|
|
1962
|
+
* data includes attribution and targeted advertising preferences.
|
|
1963
|
+
*
|
|
1964
|
+
* Whether marketing data can be collected right now. Combines the buyer's
|
|
1965
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1966
|
+
* a single boolean. Check this flag, not `visitorConsent.marketing`, before
|
|
1967
|
+
* performing marketing-related data collection.
|
|
1788
1968
|
*/
|
|
1789
1969
|
marketing: boolean;
|
|
1790
1970
|
/**
|
|
1791
|
-
*
|
|
1971
|
+
* Whether preference data can be collected based on the visitor's consent,
|
|
1972
|
+
* the merchant's privacy configuration, and the visitor's region. Preference
|
|
1973
|
+
* data includes language, currency, and sizing choices.
|
|
1974
|
+
*
|
|
1975
|
+
* Whether preference data can be collected right now. Combines the buyer's
|
|
1976
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1977
|
+
* a single boolean. Check this flag, not `visitorConsent.preferences`,
|
|
1978
|
+
* before storing or reading buyer preference data.
|
|
1792
1979
|
*/
|
|
1793
1980
|
preferences: boolean;
|
|
1794
1981
|
/**
|
|
1795
|
-
*
|
|
1982
|
+
* Whether data can be shared with third parties based on the visitor's
|
|
1983
|
+
* consent, the merchant's privacy configuration, and the visitor's region.
|
|
1984
|
+
* This typically applies to behavioral advertising data.
|
|
1985
|
+
*
|
|
1986
|
+
* Whether buyer data can be shared with or sold to third parties right now.
|
|
1987
|
+
* Combines the buyer's consent, the merchant's privacy configuration, and
|
|
1988
|
+
* the buyer's region into a single boolean. Check this flag, not
|
|
1989
|
+
* `visitorConsent.saleOfData`, before sharing or selling buyer data with
|
|
1990
|
+
* third parties.
|
|
1796
1991
|
*/
|
|
1797
1992
|
saleOfData: boolean;
|
|
1798
1993
|
}
|
|
1799
1994
|
|
|
1800
1995
|
export interface VisitorConsent {
|
|
1801
1996
|
/**
|
|
1802
|
-
*
|
|
1997
|
+
* The visitor's consent for analytics tracking. `true` means the visitor
|
|
1998
|
+
* actively granted consent, `false` means actively denied, and `undefined`
|
|
1999
|
+
* means no decision has been made yet.
|
|
1803
2000
|
*/
|
|
1804
2001
|
analytics?: boolean;
|
|
1805
2002
|
/**
|
|
1806
|
-
*
|
|
2003
|
+
* The visitor's consent for marketing and targeted advertising. `true` means
|
|
2004
|
+
* the visitor actively granted consent, `false` means actively denied, and
|
|
2005
|
+
* `undefined` means no decision has been made yet.
|
|
1807
2006
|
*/
|
|
1808
2007
|
marketing?: boolean;
|
|
1809
2008
|
/**
|
|
1810
|
-
*
|
|
2009
|
+
* The visitor's consent for storing preferences such as language and currency.
|
|
2010
|
+
* `true` means the visitor actively granted consent, `false` means actively
|
|
2011
|
+
* denied, and `undefined` means no decision has been made yet.
|
|
1811
2012
|
*/
|
|
1812
2013
|
preferences?: boolean;
|
|
1813
2014
|
/**
|
|
1814
|
-
*
|
|
2015
|
+
* The visitor's consent for the sale or sharing of their personal data with
|
|
2016
|
+
* third parties. `true` means the visitor actively granted consent, `false`
|
|
2017
|
+
* means actively denied, and `undefined` means no decision has been made yet.
|
|
1815
2018
|
*/
|
|
1816
2019
|
saleOfData?: boolean;
|
|
1817
2020
|
}
|
|
1818
2021
|
|
|
1819
2022
|
export interface TrackingConsentMetafield {
|
|
1820
2023
|
/**
|
|
1821
|
-
* The
|
|
1822
|
-
* length (inclusive).
|
|
2024
|
+
* The identifier for the tracking consent metafield, such as `'analyticsType'` or `'marketingType'`.
|
|
1823
2025
|
*/
|
|
1824
2026
|
key: string;
|
|
1825
2027
|
/**
|
|
1826
|
-
* The
|
|
1827
|
-
*
|
|
1828
|
-
* @example 'any string', '', or a stringified JSON object
|
|
2028
|
+
* The value stored in the tracking consent metafield, such as `'granular'` or a stringified JSON object.
|
|
1829
2029
|
*/
|
|
1830
2030
|
value: string;
|
|
1831
2031
|
}
|
|
1832
2032
|
|
|
1833
2033
|
export interface TrackingConsentMetafieldChange {
|
|
1834
2034
|
/**
|
|
1835
|
-
* The
|
|
1836
|
-
* length (inclusive).
|
|
2035
|
+
* The identifier for the tracking consent metafield to update.
|
|
1837
2036
|
*/
|
|
1838
2037
|
key: string;
|
|
1839
2038
|
/**
|
|
1840
|
-
* The
|
|
2039
|
+
* The new value to store in the metafield. Set to `null` to delete the metafield.
|
|
1841
2040
|
*
|
|
1842
|
-
*
|
|
2041
|
+
* Consent metafield values are strings, not booleans. Pass `null` to delete
|
|
2042
|
+
* a tracking consent metafield.
|
|
1843
2043
|
*/
|
|
1844
2044
|
value: string | null;
|
|
1845
2045
|
}
|
|
@@ -1848,11 +2048,14 @@ export interface VisitorConsentChange extends VisitorConsent {
|
|
|
1848
2048
|
/**
|
|
1849
2049
|
* Tracking consent metafield data to be saved.
|
|
1850
2050
|
*
|
|
1851
|
-
* If the value is `null`, the metafield
|
|
2051
|
+
* If the value is `null`, the metafield is deleted.
|
|
1852
2052
|
*
|
|
1853
2053
|
* @example `[{key: 'granularAnalytics', value: 'true'}, {key: 'granularMarketing', value: 'false'}]`
|
|
1854
2054
|
*/
|
|
1855
2055
|
metafields?: TrackingConsentMetafieldChange[];
|
|
2056
|
+
/**
|
|
2057
|
+
* Identifies this as a visitor consent change. This is the only supported change type for `applyTrackingConsentChange()`.
|
|
2058
|
+
*/
|
|
1856
2059
|
type: 'changeVisitorConsent';
|
|
1857
2060
|
}
|
|
1858
2061
|
|
|
@@ -1862,40 +2065,36 @@ export type ApplyTrackingConsentChangeType = (
|
|
|
1862
2065
|
|
|
1863
2066
|
export interface CustomerPrivacyRegion {
|
|
1864
2067
|
/**
|
|
1865
|
-
* The [ISO 3166
|
|
2068
|
+
* The buyer's country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. The value is `undefined` if geolocation failed.
|
|
1866
2069
|
*
|
|
1867
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2070
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1868
2071
|
*
|
|
1869
|
-
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
2072
|
+
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
1870
2073
|
*/
|
|
1871
2074
|
countryCode?: CountryCode;
|
|
1872
2075
|
/**
|
|
1873
|
-
* The buyer's province
|
|
2076
|
+
* The buyer's province, state, or region code in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. The value is `undefined` if geolocation failed or only the country was detected.
|
|
1874
2077
|
*
|
|
1875
|
-
*
|
|
2078
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1876
2079
|
*
|
|
1877
|
-
*
|
|
1878
|
-
*
|
|
1879
|
-
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California, or undefined if geolocation failed or only the country was detected.
|
|
2080
|
+
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California
|
|
1880
2081
|
*/
|
|
1881
2082
|
provinceCode?: string;
|
|
1882
2083
|
}
|
|
1883
2084
|
|
|
1884
2085
|
export interface CustomerPrivacy {
|
|
1885
2086
|
/**
|
|
1886
|
-
*
|
|
2087
|
+
* Flags indicating whether each type of data processing is permitted, based on the visitor's consent, the merchant's privacy configuration, and the visitor's geographic location.
|
|
1887
2088
|
*/
|
|
1888
2089
|
allowedProcessing: AllowedProcessing;
|
|
1889
2090
|
/**
|
|
1890
|
-
*
|
|
2091
|
+
* The tracking consent metafields that have been stored for this visitor. These contain app-specific consent data beyond the standard categories.
|
|
1891
2092
|
*
|
|
1892
2093
|
* @example `[{key: 'analyticsType', value: 'granular'}, {key: 'marketingType', value: 'granular'}]`, or `[]`
|
|
1893
2094
|
*/
|
|
1894
2095
|
metafields: TrackingConsentMetafield[];
|
|
1895
2096
|
/**
|
|
1896
|
-
*
|
|
1897
|
-
* *
|
|
1898
|
-
* @example `true` — the customer has actively granted consent, `false` — the customer has actively denied consent, or `undefined` — the customer has not yet made a decision.
|
|
2097
|
+
* The visitor's current privacy consent settings. Each property represents a consent category and is `true` (actively granted), `false` (actively denied), or `undefined` (no decision made yet).
|
|
1899
2098
|
*/
|
|
1900
2099
|
visitorConsent: VisitorConsent;
|
|
1901
2100
|
/**
|
|
@@ -1905,15 +2104,15 @@ export interface CustomerPrivacy {
|
|
|
1905
2104
|
*/
|
|
1906
2105
|
shouldShowBanner: boolean;
|
|
1907
2106
|
/**
|
|
1908
|
-
* Whether the visitor is in a region
|
|
2107
|
+
* Whether the visitor is located in a region that requires an explicit opt-out option for the sale or sharing of personal data, such as California (CCPA) or other jurisdictions with similar regulations.
|
|
1909
2108
|
*/
|
|
1910
2109
|
saleOfDataRegion: boolean;
|
|
1911
2110
|
/**
|
|
1912
|
-
*
|
|
2111
|
+
* The visitor's geographic location, used to determine whether more granular consent controls should be displayed based on regional privacy regulations.
|
|
1913
2112
|
*
|
|
1914
2113
|
* @example `{countryCode: 'CA', provinceCode: 'ON'}` for a visitor in Ontario, Canada; `{countryCode: 'US', provinceCode: undefined}` for a visitor in the United States if geolocation fails to detect the state; or `undefined` if neither country nor province is detected or geolocation fails.
|
|
1915
2114
|
*
|
|
1916
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2115
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1917
2116
|
*/
|
|
1918
2117
|
region?: CustomerPrivacyRegion;
|
|
1919
2118
|
}
|
|
@@ -1927,7 +2126,7 @@ export type TrackingConsentChangeResult =
|
|
|
1927
2126
|
*/
|
|
1928
2127
|
export interface TrackingConsentChangeResultSuccess {
|
|
1929
2128
|
/**
|
|
1930
|
-
*
|
|
2129
|
+
* Indicates that the tracking consent update was applied successfully.
|
|
1931
2130
|
*/
|
|
1932
2131
|
type: 'success';
|
|
1933
2132
|
}
|
|
@@ -1938,105 +2137,123 @@ export interface TrackingConsentChangeResultSuccess {
|
|
|
1938
2137
|
*/
|
|
1939
2138
|
export interface TrackingConsentChangeResultError {
|
|
1940
2139
|
/**
|
|
1941
|
-
*
|
|
2140
|
+
* Indicates that the tracking consent update couldn't be applied. Check the `message` property for details.
|
|
1942
2141
|
*/
|
|
1943
2142
|
type: 'error';
|
|
1944
2143
|
|
|
1945
2144
|
/**
|
|
1946
2145
|
* A message that explains the error. This message is useful for debugging.
|
|
1947
|
-
* It
|
|
1948
|
-
* to the buyer.
|
|
2146
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1949
2147
|
*/
|
|
1950
2148
|
message: string;
|
|
1951
2149
|
}
|
|
1952
2150
|
|
|
1953
2151
|
export interface CartInstructions {
|
|
1954
2152
|
/**
|
|
1955
|
-
*
|
|
2153
|
+
* Whether the extension can update custom attributes using `applyAttributeChange()`.
|
|
1956
2154
|
*/
|
|
1957
2155
|
attributes: AttributesCartInstructions;
|
|
1958
2156
|
|
|
1959
2157
|
/**
|
|
1960
|
-
*
|
|
2158
|
+
* Whether the extension can modify the shipping address using `applyShippingAddressChange()`.
|
|
1961
2159
|
*/
|
|
1962
2160
|
delivery: DeliveryCartInstructions;
|
|
1963
2161
|
|
|
1964
2162
|
/**
|
|
1965
|
-
*
|
|
2163
|
+
* Whether the extension can add or remove discount codes using `applyDiscountCodeChange()`.
|
|
1966
2164
|
*/
|
|
1967
2165
|
discounts: DiscountsCartInstructions;
|
|
1968
2166
|
|
|
1969
2167
|
/**
|
|
1970
|
-
*
|
|
2168
|
+
* Whether the extension can add, remove, or update cart lines using `applyCartLinesChange()`.
|
|
1971
2169
|
*/
|
|
1972
2170
|
lines: CartLinesCartInstructions;
|
|
1973
2171
|
|
|
1974
2172
|
/**
|
|
1975
|
-
*
|
|
2173
|
+
* Whether the extension can add, update, or delete cart metafields using `applyMetafieldChange()`.
|
|
1976
2174
|
*/
|
|
1977
2175
|
metafields: MetafieldsCartInstructions;
|
|
1978
2176
|
|
|
1979
2177
|
/**
|
|
1980
|
-
*
|
|
2178
|
+
* Whether the extension can update the order note using `applyNoteChange()`.
|
|
1981
2179
|
*/
|
|
1982
2180
|
notes: NotesCartInstructions;
|
|
1983
2181
|
}
|
|
1984
2182
|
|
|
1985
2183
|
export interface AttributesCartInstructions {
|
|
1986
2184
|
/**
|
|
1987
|
-
*
|
|
2185
|
+
* Whether attributes can be updated using `applyAttributeChange()`. When
|
|
2186
|
+
* `false`, the checkout configuration doesn't allow attribute changes.
|
|
2187
|
+
* Even when `true`, calls to `applyAttributeChange()` can still fail
|
|
2188
|
+
* during accelerated checkout (Apple Pay, Google Pay).
|
|
1988
2189
|
*/
|
|
1989
2190
|
canUpdateAttributes: boolean;
|
|
1990
2191
|
}
|
|
1991
2192
|
|
|
1992
2193
|
export interface DeliveryCartInstructions {
|
|
1993
2194
|
/**
|
|
1994
|
-
*
|
|
1995
|
-
*
|
|
1996
|
-
*
|
|
2195
|
+
* Whether the shipping address can be modified using
|
|
2196
|
+
* `applyShippingAddressChange()`. When `false`, the buyer is using an
|
|
2197
|
+
* accelerated checkout flow (Apple Pay, Google Pay) where the address
|
|
2198
|
+
* can't be changed.
|
|
1997
2199
|
*/
|
|
1998
2200
|
canSelectCustomAddress: boolean;
|
|
1999
2201
|
}
|
|
2000
2202
|
|
|
2001
2203
|
export interface DiscountsCartInstructions {
|
|
2002
2204
|
/**
|
|
2003
|
-
*
|
|
2205
|
+
* Whether discount codes can be updated using `applyDiscountCodeChange()`.
|
|
2206
|
+
* When `false`, the checkout configuration doesn't allow discount code
|
|
2207
|
+
* changes. Even when `true`, calls to `applyDiscountCodeChange()` can
|
|
2208
|
+
* still fail during accelerated checkout (Apple Pay, Google Pay).
|
|
2004
2209
|
*/
|
|
2005
2210
|
canUpdateDiscountCodes: boolean;
|
|
2006
2211
|
}
|
|
2007
2212
|
|
|
2008
2213
|
export interface CartLinesCartInstructions {
|
|
2009
2214
|
/**
|
|
2010
|
-
*
|
|
2215
|
+
* Whether new cart lines can be added using `applyCartLinesChange()`. When
|
|
2216
|
+
* `false`, the checkout configuration doesn't allow adding lines (for
|
|
2217
|
+
* example, draft orders). Even when `true`, calls can still fail during
|
|
2218
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
2011
2219
|
*/
|
|
2012
2220
|
canAddCartLine: boolean;
|
|
2013
2221
|
|
|
2014
2222
|
/**
|
|
2015
|
-
*
|
|
2223
|
+
* Whether cart lines can be removed using `applyCartLinesChange()`. When
|
|
2224
|
+
* `false`, the checkout configuration doesn't allow removing lines.
|
|
2225
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2016
2226
|
*/
|
|
2017
2227
|
canRemoveCartLine: boolean;
|
|
2018
2228
|
|
|
2019
2229
|
/**
|
|
2020
|
-
*
|
|
2230
|
+
* Whether cart lines can be updated using `applyCartLinesChange()`. When
|
|
2231
|
+
* `false`, the checkout configuration doesn't allow updating lines.
|
|
2232
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2021
2233
|
*/
|
|
2022
2234
|
canUpdateCartLine: boolean;
|
|
2023
2235
|
}
|
|
2024
2236
|
|
|
2025
2237
|
export interface MetafieldsCartInstructions {
|
|
2026
2238
|
/**
|
|
2027
|
-
*
|
|
2239
|
+
* Whether the extension can add or update cart metafields using
|
|
2240
|
+
* `applyMetafieldChange()`.
|
|
2028
2241
|
*/
|
|
2029
2242
|
canSetCartMetafields: boolean;
|
|
2030
2243
|
|
|
2031
2244
|
/**
|
|
2032
|
-
*
|
|
2245
|
+
* Whether the extension can delete cart metafields using
|
|
2246
|
+
* `applyMetafieldChange()`.
|
|
2033
2247
|
*/
|
|
2034
2248
|
canDeleteCartMetafield: boolean;
|
|
2035
2249
|
}
|
|
2036
2250
|
|
|
2037
2251
|
export interface NotesCartInstructions {
|
|
2038
2252
|
/**
|
|
2039
|
-
*
|
|
2253
|
+
* Whether the order note can be updated using `applyNoteChange()`. When
|
|
2254
|
+
* `false`, the checkout configuration doesn't allow note changes. Even
|
|
2255
|
+
* when `true`, calls to `applyNoteChange()` can still fail during
|
|
2256
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
2040
2257
|
*/
|
|
2041
2258
|
canUpdateNote: boolean;
|
|
2042
2259
|
}
|