@shopify/ui-extensions 2026.1.3 → 2026.1.5
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 +1 -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 +1 -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 +1 -1
- package/build/ts/shared.d.ts +29 -11
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +2 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +3 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts +2 -0
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +2 -0
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +2 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +2 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts +2 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +4 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +7 -1
- 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 +2 -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 +2 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +9 -0
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +9 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Avatar.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +13 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Box.d.ts +17 -0
- package/build/ts/surfaces/admin/components/Button.d.ts +18 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Chip.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Choice.d.ts +11 -0
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +13 -0
- package/build/ts/surfaces/admin/components/Clickable.d.ts +57 -7
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +14 -0
- package/build/ts/surfaces/admin/components/ColorField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +12 -0
- package/build/ts/surfaces/admin/components/DateField.d.ts +14 -0
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Divider.d.ts +10 -0
- package/build/ts/surfaces/admin/components/DropZone.d.ts +18 -0
- package/build/ts/surfaces/admin/components/EmailField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Form.d.ts +13 -0
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Grid.d.ts +34 -12
- package/build/ts/surfaces/admin/components/GridItem.d.ts +28 -7
- package/build/ts/surfaces/admin/components/Heading.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Icon.d.ts +0 -3
- package/build/ts/surfaces/admin/components/Image.d.ts +28 -7
- package/build/ts/surfaces/admin/components/Link.d.ts +34 -0
- package/build/ts/surfaces/admin/components/ListItem.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Menu.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Modal.d.ts +27 -0
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +16 -0
- package/build/ts/surfaces/admin/components/NumberField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Option.d.ts +11 -0
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +11 -0
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Page.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +11 -0
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +11 -0
- package/build/ts/surfaces/admin/components/SearchField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Section.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Select.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Spinner.d.ts +10 -0
- package/build/ts/surfaces/admin/components/Stack.d.ts +33 -11
- package/build/ts/surfaces/admin/components/Switch.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Table.d.ts +18 -0
- package/build/ts/surfaces/admin/components/TableBody.d.ts +11 -0
- package/build/ts/surfaces/admin/components/TableCell.d.ts +12 -0
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +12 -0
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +11 -0
- package/build/ts/surfaces/admin/components/TableRow.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Text.d.ts +11 -0
- package/build/ts/surfaces/admin/components/TextArea.d.ts +15 -0
- package/build/ts/surfaces/admin/components/TextField.d.ts +17 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +14 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +15 -0
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +11 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +268 -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 +231 -121
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +37 -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 +12 -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 +651 -437
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +43 -13
- package/build/ts/surfaces/checkout/components/Badge.d.ts +48 -6
- package/build/ts/surfaces/checkout/components/Banner.d.ts +67 -12
- package/build/ts/surfaces/checkout/components/Box.d.ts +56 -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 +7 -6
- package/build/ts/surfaces/checkout/components/Choice.d.ts +6 -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 +24 -11
- 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 +35 -13
- package/build/ts/surfaces/checkout/components/DateField.d.ts +30 -9
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +27 -8
- package/build/ts/surfaces/checkout/components/Details.d.ts +22 -11
- package/build/ts/surfaces/checkout/components/Divider.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +21 -6
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +37 -13
- package/build/ts/surfaces/checkout/components/Form.d.ts +17 -5
- package/build/ts/surfaces/checkout/components/Grid.d.ts +143 -2
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +61 -2
- package/build/ts/surfaces/checkout/components/Heading.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/Icon.d.ts +49 -6
- package/build/ts/surfaces/checkout/components/Image.d.ts +44 -2
- package/build/ts/surfaces/checkout/components/Link.d.ts +17 -6
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +5 -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 +34 -11
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +41 -13
- package/build/ts/surfaces/checkout/components/Option.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +13 -2
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +37 -13
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +16 -3
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +37 -13
- 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 +25 -3
- package/build/ts/surfaces/checkout/components/Progress.d.ts +30 -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 +61 -2
- package/build/ts/surfaces/checkout/components/Section.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/Select.d.ts +33 -9
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +40 -15
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -3
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +19 -3
- package/build/ts/surfaces/checkout/components/Stack.d.ts +116 -2
- package/build/ts/surfaces/checkout/components/Summary.d.ts +3 -0
- package/build/ts/surfaces/checkout/components/Switch.d.ts +16 -5
- package/build/ts/surfaces/checkout/components/Text.d.ts +22 -4
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +34 -11
- package/build/ts/surfaces/checkout/components/TextField.d.ts +41 -13
- package/build/ts/surfaces/checkout/components/Time.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/Tooltip.d.ts +21 -4
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +5 -3
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +25 -13
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +663 -486
- package/build/ts/surfaces/checkout/components/components.d.ts +485 -372
- 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 +220 -19
- 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 +76 -52
- 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 +60 -64
- 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 +5 -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 +48 -6
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +67 -12
- package/build/ts/surfaces/customer-account/components/Box.d.ts +56 -2
- package/build/ts/surfaces/customer-account/components/Button.d.ts +27 -6
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +54 -9
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +7 -6
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +6 -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 +24 -11
- 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 +35 -13
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +30 -9
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +27 -8
- package/build/ts/surfaces/customer-account/components/Details.d.ts +22 -11
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +21 -6
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +37 -13
- package/build/ts/surfaces/customer-account/components/Form.d.ts +17 -5
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +143 -2
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +61 -2
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +49 -6
- package/build/ts/surfaces/customer-account/components/Image.d.ts +44 -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 +5 -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 +34 -11
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +41 -13
- package/build/ts/surfaces/customer-account/components/Option.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/Page.d.ts +14 -6
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +13 -2
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +37 -13
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +16 -3
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +37 -13
- 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 +25 -3
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +30 -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 +61 -2
- package/build/ts/surfaces/customer-account/components/Section.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/Select.d.ts +33 -9
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +40 -15
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +4 -3
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +19 -3
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +116 -2
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +3 -0
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +16 -5
- package/build/ts/surfaces/customer-account/components/Text.d.ts +22 -4
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +34 -11
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +41 -13
- package/build/ts/surfaces/customer-account/components/Time.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +21 -4
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +5 -3
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +25 -13
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +663 -486
- package/build/ts/surfaces/customer-account/components/components.d.ts +485 -372
- package/build/ts/surfaces/customer-account/components/polaris-elements.d.ts +151 -0
- 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 -3
- 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/action-target-api/action-target-api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts +4 -5
- package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +6 -3
- 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/cash-drawer-api/cash-drawer-api.d.ts +4 -7
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +6 -3
- 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 -3
- 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 -3
- 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 -3
- 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 +6 -3
- 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 +8 -10
- 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 -4
- 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 -3
- 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 -7
- 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 -3
- 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 -3
- 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 +6 -3
- 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 -3
- 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 -3
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +6 -3
- 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.register-details.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 +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -4
- package/src/shared.ts +30 -11
- package/src/surfaces/admin/api/action/action.ts +2 -0
- package/src/surfaces/admin/api/block/block.ts +3 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +2 -0
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +2 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +2 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +2 -0
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +2 -0
- package/src/surfaces/admin/api/intents/intents.ts +4 -0
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +2 -0
- package/src/surfaces/admin/api/picker/picker.ts +2 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +2 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +2 -0
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +2 -0
- package/src/surfaces/admin/api/purchase-options-card-action.ts +2 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +7 -1
- package/src/surfaces/admin/api/should-render/should-render.ts +2 -0
- package/src/surfaces/admin/api/standard/standard.ts +2 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +9 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +9 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +9 -0
- package/src/surfaces/admin/components/Avatar.d.ts +12 -0
- package/src/surfaces/admin/components/Badge.d.ts +13 -1
- package/src/surfaces/admin/components/Banner.d.ts +14 -0
- package/src/surfaces/admin/components/Box.d.ts +17 -0
- package/src/surfaces/admin/components/Button.d.ts +18 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +11 -0
- package/src/surfaces/admin/components/Checkbox.d.ts +14 -0
- package/src/surfaces/admin/components/Chip.d.ts +9 -0
- package/src/surfaces/admin/components/Choice.d.ts +11 -0
- package/src/surfaces/admin/components/ChoiceList.d.ts +13 -0
- package/src/surfaces/admin/components/Clickable.d.ts +57 -7
- package/src/surfaces/admin/components/ClickableChip.d.ts +14 -0
- package/src/surfaces/admin/components/ColorField.d.ts +15 -0
- package/src/surfaces/admin/components/ColorPicker.d.ts +12 -0
- package/src/surfaces/admin/components/DateField.d.ts +14 -0
- package/src/surfaces/admin/components/DatePicker.d.ts +12 -0
- package/src/surfaces/admin/components/Divider.d.ts +10 -0
- package/src/surfaces/admin/components/DropZone.d.ts +18 -0
- package/src/surfaces/admin/components/EmailField.d.ts +15 -0
- package/src/surfaces/admin/components/Form.d.ts +13 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +15 -0
- package/src/surfaces/admin/components/Grid.d.ts +34 -12
- package/src/surfaces/admin/components/GridItem.d.ts +28 -7
- package/src/surfaces/admin/components/Heading.d.ts +11 -0
- package/src/surfaces/admin/components/Icon.d.ts +0 -3
- package/src/surfaces/admin/components/Image.d.ts +28 -7
- package/src/surfaces/admin/components/Link.d.ts +34 -0
- package/src/surfaces/admin/components/ListItem.d.ts +11 -0
- package/src/surfaces/admin/components/Menu.d.ts +14 -0
- package/src/surfaces/admin/components/Modal.d.ts +27 -0
- package/src/surfaces/admin/components/MoneyField.d.ts +16 -0
- package/src/surfaces/admin/components/NumberField.d.ts +15 -0
- package/src/surfaces/admin/components/Option.d.ts +11 -0
- package/src/surfaces/admin/components/OptionGroup.d.ts +11 -0
- package/src/surfaces/admin/components/OrderedList.d.ts +11 -0
- package/src/surfaces/admin/components/Page.d.ts +9 -0
- package/src/surfaces/admin/components/Paragraph.d.ts +11 -0
- package/src/surfaces/admin/components/PasswordField.d.ts +15 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +11 -0
- package/src/surfaces/admin/components/SearchField.d.ts +15 -0
- package/src/surfaces/admin/components/Section.d.ts +12 -0
- package/src/surfaces/admin/components/Select.d.ts +14 -0
- package/src/surfaces/admin/components/Spinner.d.ts +10 -0
- package/src/surfaces/admin/components/Stack.d.ts +33 -11
- package/src/surfaces/admin/components/Switch.d.ts +14 -0
- package/src/surfaces/admin/components/Table.d.ts +18 -0
- package/src/surfaces/admin/components/TableBody.d.ts +11 -0
- package/src/surfaces/admin/components/TableCell.d.ts +12 -0
- package/src/surfaces/admin/components/TableHeader.d.ts +12 -0
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +11 -0
- package/src/surfaces/admin/components/TableRow.d.ts +11 -0
- package/src/surfaces/admin/components/Text.d.ts +11 -0
- package/src/surfaces/admin/components/TextArea.d.ts +15 -0
- package/src/surfaces/admin/components/TextField.d.ts +17 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +12 -0
- package/src/surfaces/admin/components/Tooltip.d.ts +14 -0
- package/src/surfaces/admin/components/URLField.d.ts +15 -0
- package/src/surfaces/admin/components/UnorderedList.d.ts +11 -0
- package/src/surfaces/admin/components/shared.d.ts +268 -1
- package/src/surfaces/admin/components.d.ts +669 -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 +231 -121
- package/src/surfaces/checkout/api/docs.ts +37 -0
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +12 -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 +653 -437
- package/src/surfaces/checkout/components/Abbreviation.d.ts +5 -3
- package/src/surfaces/checkout/components/Announcement.d.ts +43 -13
- package/src/surfaces/checkout/components/Badge.d.ts +48 -6
- package/src/surfaces/checkout/components/Banner.d.ts +67 -12
- package/src/surfaces/checkout/components/Box.d.ts +56 -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 +7 -6
- package/src/surfaces/checkout/components/Choice.d.ts +6 -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 +24 -11
- 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 +35 -13
- package/src/surfaces/checkout/components/DateField.d.ts +30 -9
- package/src/surfaces/checkout/components/DatePicker.d.ts +27 -8
- package/src/surfaces/checkout/components/Details.d.ts +22 -11
- package/src/surfaces/checkout/components/Divider.d.ts +5 -3
- package/src/surfaces/checkout/components/DropZone.d.ts +21 -6
- package/src/surfaces/checkout/components/EmailField.d.ts +37 -13
- package/src/surfaces/checkout/components/Form.d.ts +17 -5
- package/src/surfaces/checkout/components/Grid.d.ts +143 -2
- package/src/surfaces/checkout/components/GridItem.d.ts +61 -2
- package/src/surfaces/checkout/components/Heading.d.ts +5 -3
- package/src/surfaces/checkout/components/Icon.d.ts +49 -6
- package/src/surfaces/checkout/components/Image.d.ts +44 -2
- package/src/surfaces/checkout/components/Link.d.ts +17 -6
- package/src/surfaces/checkout/components/ListItem.d.ts +5 -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 +34 -11
- package/src/surfaces/checkout/components/NumberField.d.ts +41 -13
- package/src/surfaces/checkout/components/Option.d.ts +5 -3
- package/src/surfaces/checkout/components/OrderedList.d.ts +5 -3
- package/src/surfaces/checkout/components/Paragraph.d.ts +13 -2
- package/src/surfaces/checkout/components/PasswordField.d.ts +37 -13
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +16 -3
- package/src/surfaces/checkout/components/PhoneField.d.ts +37 -13
- 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 +25 -3
- package/src/surfaces/checkout/components/Progress.d.ts +30 -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 +61 -2
- package/src/surfaces/checkout/components/Section.d.ts +5 -3
- package/src/surfaces/checkout/components/Select.d.ts +33 -9
- package/src/surfaces/checkout/components/Sheet.d.ts +40 -15
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -3
- package/src/surfaces/checkout/components/Spinner.d.ts +19 -3
- package/src/surfaces/checkout/components/Stack.d.ts +116 -2
- package/src/surfaces/checkout/components/Summary.d.ts +3 -0
- package/src/surfaces/checkout/components/Switch.d.ts +16 -5
- package/src/surfaces/checkout/components/Text.d.ts +22 -4
- package/src/surfaces/checkout/components/TextArea.d.ts +34 -11
- package/src/surfaces/checkout/components/TextField.d.ts +41 -13
- package/src/surfaces/checkout/components/Time.d.ts +5 -3
- package/src/surfaces/checkout/components/Tooltip.d.ts +21 -4
- package/src/surfaces/checkout/components/UnorderedList.d.ts +5 -3
- package/src/surfaces/checkout/components/UrlField.d.ts +25 -13
- package/src/surfaces/checkout/components/components-shared.d.ts +663 -486
- package/src/surfaces/checkout/components/components.d.ts +485 -372
- 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 +225 -21
- package/src/surfaces/customer-account/api/order-status/order-status.ts +38 -9
- package/src/surfaces/customer-account/api/shared.ts +77 -52
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +60 -64
- package/src/surfaces/customer-account/components/Avatar.d.ts +44 -14
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +12 -4
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +12 -4
- 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 +14 -6
- package/src/surfaces/customer-account/components/Section.d.ts +12 -8
- package/src/surfaces/customer-account/components/polaris-elements.d.ts +151 -0
- package/src/surfaces/customer-account/components/shared.ts +23 -5
- package/src/surfaces/customer-account/components.d.ts +79 -1
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +1 -0
- package/src/surfaces/point-of-sale/api/camera-api/camera-api.ts +4 -5
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +6 -3
- 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/cash-drawer-api/cash-drawer-api.ts +4 -7
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +8 -11
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +4 -4
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +4 -7
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +1 -3
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +6 -3
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -2
- package/src/surfaces/point-of-sale/components.d.ts +330 -0
- 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 +1 -1
- package/build/ts/docs/shared/component-definitions.d.ts +0 -31
- 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 -38
- 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/Embed/Embed.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Embed/Embed.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/EmptyState/EmptyState.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/EmptyState/EmptyState.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/Link/Link.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Link/Link.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/Spinner/Spinner.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Spinner/Spinner.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/Switch/Switch.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Switch/Switch.doc.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/components/Tabs/Tabs.doc.d.ts +0 -4
- package/build/ts/surfaces/point-of-sale/components/Tabs/Tabs.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 -190
- 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 -103
- package/src/surfaces/admin/docs-types.ts +0 -54
- 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,105 @@ 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
|
|
|
497
551
|
export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
498
552
|
/**
|
|
499
|
-
*
|
|
553
|
+
* Tracks custom events and sends visitor information to
|
|
554
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
555
|
+
* and `visitor()` to submit buyer contact details.
|
|
500
556
|
*/
|
|
501
557
|
analytics: Analytics;
|
|
502
558
|
|
|
503
559
|
/**
|
|
504
|
-
*
|
|
560
|
+
* The gift cards that have been applied to the checkout. Each entry includes
|
|
561
|
+
* the last four characters of the gift card code, the amount used at
|
|
562
|
+
* checkout, and the card's remaining balance.
|
|
505
563
|
*/
|
|
506
564
|
appliedGiftCards: SubscribableSignalLike<AppliedGiftCard[]>;
|
|
507
565
|
|
|
508
566
|
/**
|
|
509
567
|
* The cart instructions used to create the checkout and possibly limit extension capabilities.
|
|
510
568
|
*
|
|
511
|
-
* These instructions should be checked
|
|
569
|
+
* These instructions should be checked before performing any actions that might be affected by them.
|
|
512
570
|
*
|
|
513
571
|
* For example, if you intend to add a discount code via the `applyDiscountCodeChange` method,
|
|
514
572
|
* check `discounts.canUpdateDiscountCodes` to ensure it's supported in this checkout.
|
|
515
573
|
*
|
|
516
|
-
* > Caution:
|
|
517
|
-
*
|
|
574
|
+
* > Caution: Check cart instructions before calling select APIs, as
|
|
575
|
+
* > some may not be available. See the
|
|
576
|
+
* > [Cart Instructions API](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/cart-instructions#examples)
|
|
577
|
+
* > for more information.
|
|
518
578
|
*
|
|
519
579
|
*/
|
|
520
580
|
instructions: SubscribableSignalLike<CartInstructions>;
|
|
521
581
|
|
|
522
582
|
/**
|
|
523
583
|
* The metafields requested in the
|
|
524
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration)
|
|
584
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration)
|
|
525
585
|
* file. These metafields are updated when there's a change in the merchandise items
|
|
526
586
|
* being purchased by the customer.
|
|
527
587
|
*
|
|
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}]`
|
|
588
|
+
* 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
589
|
*
|
|
530
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
590
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
531
591
|
*/
|
|
532
592
|
appMetafields: SubscribableSignalLike<AppMetafieldEntry[]>;
|
|
533
593
|
|
|
534
594
|
/**
|
|
535
|
-
* The custom attributes
|
|
595
|
+
* 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
596
|
*/
|
|
537
597
|
attributes: SubscribableSignalLike<Attribute[]>;
|
|
538
598
|
|
|
539
599
|
/**
|
|
540
|
-
* All available
|
|
600
|
+
* All payment options available to the buyer for this checkout, such as
|
|
601
|
+
* credit cards, wallets, and local payment methods. The list depends on
|
|
602
|
+
* the shop's payment configuration and the buyer's region.
|
|
603
|
+
*
|
|
604
|
+
* The set of payment options can change when the buyer updates their
|
|
605
|
+
* address or cart, so subscribe to changes rather than reading once
|
|
606
|
+
* during initialization. Each option exposes `handle` and `type` only.
|
|
607
|
+
* Provider names, logos, fees, and installment terms aren't available.
|
|
541
608
|
*/
|
|
542
609
|
availablePaymentOptions: SubscribableSignalLike<PaymentOption[]>;
|
|
543
610
|
|
|
544
611
|
/**
|
|
545
|
-
* Information about the buyer that
|
|
612
|
+
* 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
613
|
*
|
|
547
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
614
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
548
615
|
*/
|
|
549
616
|
buyerIdentity?: BuyerIdentity;
|
|
550
617
|
|
|
551
618
|
/**
|
|
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.
|
|
619
|
+
* Provides details on the buyer's progression through the checkout and lets you intercept navigation to validate data before the buyer continues.
|
|
556
620
|
*/
|
|
557
621
|
buyerJourney: BuyerJourney;
|
|
558
622
|
|
|
@@ -564,68 +628,77 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
564
628
|
/**
|
|
565
629
|
* A stable ID that represents the current checkout.
|
|
566
630
|
*
|
|
631
|
+
* The value is `undefined` when the checkout hasn't been created on the server yet.
|
|
632
|
+
*
|
|
633
|
+
* Use this to correlate checkout sessions across your extension, web pixels, and backend systems.
|
|
634
|
+
*
|
|
567
635
|
* 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
636
|
* and the `checkout_token` field in the [REST Admin API `Order` resource](https://shopify.dev/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
637
|
+
*
|
|
638
|
+
* Can be `undefined`. Handle the `undefined` state before using the value.
|
|
569
639
|
*/
|
|
570
640
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
571
641
|
|
|
572
642
|
/**
|
|
573
|
-
*
|
|
643
|
+
* 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
644
|
*/
|
|
575
645
|
cost: CartCost;
|
|
576
646
|
|
|
577
647
|
/**
|
|
578
|
-
*
|
|
648
|
+
* 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.
|
|
649
|
+
*
|
|
650
|
+
* Empty until the buyer enters enough address information for Shopify to
|
|
651
|
+
* calculate shipping rates.
|
|
579
652
|
*/
|
|
580
653
|
deliveryGroups: SubscribableSignalLike<DeliveryGroup[]>;
|
|
581
654
|
|
|
582
655
|
/**
|
|
583
|
-
*
|
|
656
|
+
* 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
657
|
*/
|
|
585
658
|
discountCodes: SubscribableSignalLike<CartDiscountCode[]>;
|
|
586
659
|
|
|
587
660
|
/**
|
|
588
|
-
*
|
|
661
|
+
* 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
662
|
*/
|
|
590
663
|
discountAllocations: SubscribableSignalLike<CartDiscountAllocation[]>;
|
|
591
664
|
|
|
592
665
|
/**
|
|
593
|
-
*
|
|
666
|
+
* Metadata about the running extension, including the current target, API version,
|
|
667
|
+
* capabilities, and editor context. Use this to conditionally render content
|
|
668
|
+
* based on where the extension is running.
|
|
594
669
|
*/
|
|
595
670
|
extension: Extension<Target>;
|
|
596
671
|
|
|
597
672
|
/**
|
|
598
|
-
* The identifier that specifies where in Shopify
|
|
599
|
-
* injected. This
|
|
600
|
-
* extension
|
|
673
|
+
* The identifier that specifies where in Shopify's UI your code is being
|
|
674
|
+
* injected. This is one of the targets you've included in your
|
|
675
|
+
* extension's configuration file.
|
|
601
676
|
*
|
|
602
677
|
* @example 'purchase.checkout.block.render'
|
|
603
|
-
* @see https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
678
|
+
* @see https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/extension-targets-overview
|
|
604
679
|
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
605
680
|
*
|
|
606
|
-
* @deprecated
|
|
681
|
+
* @deprecated Use `extension.target` instead.
|
|
607
682
|
*/
|
|
608
683
|
extensionPoint: Target;
|
|
609
684
|
|
|
610
685
|
/**
|
|
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.
|
|
686
|
+
* Utilities for translating strings, formatting currencies, numbers, and dates
|
|
687
|
+
* according to the buyer's locale. Use alongside
|
|
688
|
+
* [`localization`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization)
|
|
689
|
+
* to build fully localized extensions.
|
|
617
690
|
*/
|
|
618
691
|
i18n: I18n;
|
|
619
692
|
|
|
620
693
|
/**
|
|
621
|
-
*
|
|
694
|
+
* 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
695
|
*/
|
|
623
696
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
624
697
|
|
|
625
698
|
/**
|
|
626
|
-
* The
|
|
627
|
-
*
|
|
628
|
-
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/localization#
|
|
699
|
+
* The buyer's language, country, currency, and timezone context. For
|
|
700
|
+
* formatting and translation helpers, use the
|
|
701
|
+
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization#properties-propertydetail-i18n)
|
|
629
702
|
* object instead.
|
|
630
703
|
*/
|
|
631
704
|
localization: Localization;
|
|
@@ -650,13 +723,14 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
650
723
|
|
|
651
724
|
/**
|
|
652
725
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
726
|
+
*
|
|
727
|
+
* 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.
|
|
653
728
|
*/
|
|
654
729
|
note: SubscribableSignalLike<string | undefined>;
|
|
655
730
|
|
|
656
731
|
/**
|
|
657
732
|
* The method used to query the Storefront GraphQL API with a prefetched token.
|
|
658
733
|
*
|
|
659
|
-
* Refer to [Storefront API access examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/storefront-api) for more information.
|
|
660
734
|
*/
|
|
661
735
|
query: <Data = unknown, Variables = Record<string, unknown>>(
|
|
662
736
|
query: string,
|
|
@@ -664,62 +738,71 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
664
738
|
) => Promise<{data?: Data; errors?: GraphQLError[]}>;
|
|
665
739
|
|
|
666
740
|
/**
|
|
667
|
-
*
|
|
741
|
+
* The payment options the buyer has currently selected. This updates as
|
|
742
|
+
* the buyer changes their payment method. The array can contain multiple
|
|
743
|
+
* entries when the buyer splits payment across methods (for example, a
|
|
744
|
+
* gift card and a credit card).
|
|
745
|
+
*
|
|
746
|
+
* Each option exposes `handle` and `type` only. Provider names, logos,
|
|
747
|
+
* fees, and installment terms aren't available.
|
|
668
748
|
*/
|
|
669
749
|
selectedPaymentOptions: SubscribableSignalLike<SelectedPaymentOption[]>;
|
|
670
750
|
|
|
671
751
|
/**
|
|
672
752
|
* The session token providing a set of claims as a signed JSON Web Token (JWT).
|
|
673
753
|
*
|
|
674
|
-
* The token has a TTL of
|
|
754
|
+
* The token has a TTL of five minutes.
|
|
675
755
|
*
|
|
676
|
-
* If the previous token expires, this value
|
|
756
|
+
* If the previous token expires, this value reflects a new session token with a new signature and expiry.
|
|
677
757
|
*
|
|
678
|
-
*
|
|
758
|
+
* Learn more about [session tokens](/docs/apps/build/authentication-authorization/session-tokens).
|
|
679
759
|
*/
|
|
680
760
|
sessionToken: SessionToken;
|
|
681
761
|
|
|
682
762
|
/**
|
|
683
763
|
* The settings matching the settings definition written in the
|
|
684
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) file.
|
|
764
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration) file.
|
|
685
765
|
*
|
|
686
|
-
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/settings#examples) for more information.
|
|
766
|
+
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/settings#examples) for more information.
|
|
687
767
|
*
|
|
688
|
-
* > Note: When an extension is being installed in the editor, the settings
|
|
689
|
-
* a merchant sets a value. In that case, this object
|
|
768
|
+
* > Note: When an extension is being installed in the editor, the settings are empty until
|
|
769
|
+
* a merchant sets a value. In that case, this object updates in real time as a merchant fills in the settings.
|
|
690
770
|
*/
|
|
691
771
|
settings: SubscribableSignalLike<ExtensionSettings>;
|
|
692
772
|
|
|
693
773
|
/**
|
|
694
774
|
* The proposed customer shipping address. During the information step, the address
|
|
695
775
|
* updates when the field is committed (on change) rather than every keystroke.
|
|
696
|
-
*
|
|
697
|
-
* subscribable value is undefined.
|
|
776
|
+
* The property is available only if the extension has access to protected customer
|
|
777
|
+
* data. When available, the subscribable value is `undefined` if delivery isn't required.
|
|
698
778
|
*
|
|
699
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
779
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
700
780
|
*/
|
|
701
781
|
shippingAddress?: SubscribableSignalLike<ShippingAddress | undefined>;
|
|
702
782
|
|
|
703
783
|
/**
|
|
704
784
|
* The proposed customer billing address. The address updates when the field is
|
|
705
|
-
* committed (on change) rather than every keystroke.
|
|
785
|
+
* committed (on change) rather than every keystroke. The property is available only
|
|
786
|
+
* if the extension has access to protected customer data. The subscribable value is
|
|
787
|
+
* `undefined` if the billing address hasn't been provided yet.
|
|
706
788
|
*
|
|
707
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
789
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
708
790
|
*/
|
|
709
791
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
710
792
|
|
|
711
|
-
/**
|
|
793
|
+
/**
|
|
794
|
+
* The store where the checkout is taking place, including the shop name,
|
|
795
|
+
* storefront URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
796
|
+
*/
|
|
712
797
|
shop: Shop;
|
|
713
798
|
|
|
714
799
|
/**
|
|
715
|
-
*
|
|
716
|
-
*
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
* > Caution: Data persistence isn't guaranteed and storage is reset when the customer starts a new checkout.
|
|
800
|
+
* Key-value storage that persists across page loads within the current checkout
|
|
801
|
+
* session. Data is shared across all activated targets associated with
|
|
802
|
+
* this extension.
|
|
720
803
|
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
804
|
+
* > Caution: Data persistence isn't guaranteed and storage is cleared when the
|
|
805
|
+
* buyer starts a new checkout.
|
|
723
806
|
*/
|
|
724
807
|
storage: Storage;
|
|
725
808
|
|
|
@@ -736,237 +819,252 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
736
819
|
customerPrivacy: SubscribableSignalLike<CustomerPrivacy>;
|
|
737
820
|
|
|
738
821
|
/**
|
|
739
|
-
*
|
|
822
|
+
* Enables setting and updating customer privacy consent settings and tracking consent metafields.
|
|
740
823
|
*
|
|
741
|
-
* > Note: Requires the [`
|
|
824
|
+
* > Note: Requires the [`collect_buyer_consent` capability](/docs/apps/build/customer-accounts/capabilities#collect-buyer-consent) to be set to `true`.
|
|
742
825
|
*
|
|
743
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
826
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
744
827
|
*/
|
|
745
828
|
applyTrackingConsentChange: ApplyTrackingConsentChangeType;
|
|
746
829
|
|
|
747
830
|
/**
|
|
748
|
-
* The
|
|
749
|
-
* For example, some countries require additional fields for customs information or tax identification numbers.
|
|
831
|
+
* 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.
|
|
750
832
|
*/
|
|
751
833
|
localizedFields?: SubscribableSignalLike<LocalizedField[]>;
|
|
752
834
|
}
|
|
753
835
|
|
|
836
|
+
/**
|
|
837
|
+
* Authenticates requests between your extension and your app backend.
|
|
838
|
+
* Use session tokens to verify the identity of the buyer and the shop
|
|
839
|
+
* context when making server-side API calls. The token is a signed JWT
|
|
840
|
+
* that contains claims such as the customer ID, shop domain, and expiration.
|
|
841
|
+
*
|
|
842
|
+
* The `sub` claim in the decoded token is present only when the buyer is
|
|
843
|
+
* logged in and the app has permission to read customer accounts. Absent for
|
|
844
|
+
* anonymous buyers.
|
|
845
|
+
*/
|
|
754
846
|
export interface SessionToken {
|
|
755
847
|
/**
|
|
756
848
|
* Requests a session token that hasn't expired. You should call this method every
|
|
757
849
|
* time you need to make a request to your backend in order to get a valid token.
|
|
758
|
-
* This method
|
|
850
|
+
* This method returns cached tokens when possible, so you don't need to worry
|
|
759
851
|
* about storing these tokens yourself.
|
|
760
852
|
*/
|
|
761
853
|
get(): Promise<string>;
|
|
762
854
|
}
|
|
763
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Information about the buyer who is completing the checkout.
|
|
858
|
+
*
|
|
859
|
+
* {% 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.
|
|
860
|
+
*/
|
|
764
861
|
export interface BuyerIdentity {
|
|
765
862
|
/**
|
|
766
|
-
* The buyer's customer account. The value is undefined if the buyer isn
|
|
863
|
+
* The buyer's customer account, including their ID and whether they've accepted marketing. The value is `undefined` if the buyer isn't a
|
|
767
864
|
* known customer for this shop or if they haven't logged in yet.
|
|
768
865
|
*
|
|
769
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
866
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
770
867
|
*/
|
|
771
868
|
customer: SubscribableSignalLike<Customer | undefined>;
|
|
772
869
|
|
|
773
870
|
/**
|
|
774
|
-
* The email address
|
|
775
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
871
|
+
* The email address the buyer provided during checkout. The value is `undefined` if the app doesn't have access to customer data.
|
|
776
872
|
*
|
|
777
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
873
|
+
* {% 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).
|
|
778
874
|
*/
|
|
779
875
|
email: SubscribableSignalLike<string | undefined>;
|
|
780
876
|
|
|
781
877
|
/**
|
|
782
|
-
* The phone number
|
|
783
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
878
|
+
* 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.
|
|
784
879
|
*
|
|
785
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
880
|
+
* {% 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).
|
|
786
881
|
*/
|
|
787
882
|
phone: SubscribableSignalLike<string | undefined>;
|
|
788
883
|
|
|
789
884
|
/**
|
|
790
|
-
*
|
|
791
|
-
* This includes information that can be used to identify the company and the company location that the business
|
|
792
|
-
* customer belongs to.
|
|
885
|
+
* 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.
|
|
793
886
|
*
|
|
794
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
887
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
795
888
|
*/
|
|
796
889
|
purchasingCompany: SubscribableSignalLike<PurchasingCompany | undefined>;
|
|
797
890
|
}
|
|
798
891
|
|
|
799
892
|
/**
|
|
800
|
-
* The
|
|
893
|
+
* 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.
|
|
801
894
|
*/
|
|
802
895
|
export interface PurchasingCompany {
|
|
803
896
|
/**
|
|
804
|
-
*
|
|
897
|
+
* The company the B2B customer belongs to.
|
|
805
898
|
*
|
|
806
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
899
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
807
900
|
*/
|
|
808
901
|
company: Company;
|
|
809
902
|
/**
|
|
810
|
-
*
|
|
903
|
+
* The specific company location associated with this B2B purchase.
|
|
811
904
|
*
|
|
812
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
905
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
813
906
|
*/
|
|
814
907
|
location: CompanyLocation;
|
|
815
908
|
}
|
|
816
909
|
|
|
817
910
|
export interface Company {
|
|
818
911
|
/**
|
|
819
|
-
*
|
|
912
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
820
913
|
*
|
|
821
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
914
|
+
* {% 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).
|
|
915
|
+
*
|
|
916
|
+
* @example 'gid://shopify/Company/123'
|
|
822
917
|
*/
|
|
823
918
|
id: string;
|
|
824
919
|
/**
|
|
825
|
-
* The
|
|
920
|
+
* The company's display name.
|
|
826
921
|
*
|
|
827
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
922
|
+
* {% 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).
|
|
828
923
|
*/
|
|
829
924
|
name: string;
|
|
830
925
|
/**
|
|
831
|
-
*
|
|
926
|
+
* A merchant-defined external identifier for the company. The value is `undefined` if the merchant hasn't set one.
|
|
832
927
|
*
|
|
833
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
928
|
+
* {% 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).
|
|
834
929
|
*/
|
|
835
930
|
externalId?: string;
|
|
836
931
|
}
|
|
837
932
|
|
|
838
933
|
export interface CompanyLocation {
|
|
839
934
|
/**
|
|
840
|
-
*
|
|
935
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
936
|
+
*
|
|
937
|
+
* {% 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).
|
|
841
938
|
*
|
|
842
|
-
*
|
|
939
|
+
* @example 'gid://shopify/CompanyLocation/123'
|
|
843
940
|
*/
|
|
844
941
|
id: string;
|
|
845
942
|
/**
|
|
846
|
-
* The name of the company location.
|
|
943
|
+
* The display name of the company location.
|
|
847
944
|
*
|
|
848
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
945
|
+
* {% 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).
|
|
849
946
|
*/
|
|
850
947
|
name: string;
|
|
851
948
|
/**
|
|
852
|
-
*
|
|
949
|
+
* A merchant-defined external identifier for the company location. The value is `undefined` if the merchant hasn't set one.
|
|
853
950
|
*
|
|
854
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
951
|
+
* {% 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).
|
|
855
952
|
*/
|
|
856
953
|
externalId?: string;
|
|
857
954
|
}
|
|
858
955
|
|
|
859
956
|
export interface AppliedGiftCard {
|
|
860
957
|
/**
|
|
861
|
-
* The last four characters of the applied gift card's code.
|
|
958
|
+
* 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.
|
|
862
959
|
*/
|
|
863
960
|
lastCharacters: string;
|
|
864
961
|
|
|
865
962
|
/**
|
|
866
|
-
* The amount of the applied gift card that
|
|
963
|
+
* 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.
|
|
867
964
|
*/
|
|
868
965
|
amountUsed: Money;
|
|
869
966
|
|
|
870
967
|
/**
|
|
871
|
-
* The current balance of the applied gift card
|
|
968
|
+
* 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.
|
|
872
969
|
*/
|
|
873
970
|
balance: Money;
|
|
874
971
|
}
|
|
875
972
|
|
|
973
|
+
/**
|
|
974
|
+
* Metadata about the merchant's store, including its name, storefront
|
|
975
|
+
* URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
976
|
+
*/
|
|
876
977
|
export interface Shop {
|
|
877
978
|
/**
|
|
878
|
-
*
|
|
979
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
980
|
+
*
|
|
879
981
|
* @example 'gid://shopify/Shop/123'
|
|
880
982
|
*/
|
|
881
983
|
id: string;
|
|
882
984
|
/**
|
|
883
|
-
* The name of the shop.
|
|
985
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
884
986
|
*/
|
|
885
987
|
name: string;
|
|
886
988
|
/**
|
|
887
|
-
* The primary storefront URL.
|
|
888
|
-
*
|
|
889
|
-
* > Caution:
|
|
890
|
-
* > As of version `2024-04` this value will no longer have a trailing slash.
|
|
989
|
+
* 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.
|
|
891
990
|
*/
|
|
892
991
|
storefrontUrl?: string;
|
|
893
992
|
/**
|
|
894
|
-
* The shop's myshopify.com domain.
|
|
993
|
+
* 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.
|
|
895
994
|
*/
|
|
896
995
|
myshopifyDomain: string;
|
|
897
996
|
}
|
|
898
997
|
|
|
899
998
|
export interface CartCost {
|
|
900
999
|
/**
|
|
901
|
-
*
|
|
902
|
-
* step of checkout.
|
|
1000
|
+
* 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.
|
|
903
1001
|
*/
|
|
904
1002
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
905
1003
|
|
|
906
1004
|
/**
|
|
907
|
-
*
|
|
908
|
-
*
|
|
909
|
-
*
|
|
1005
|
+
* 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.
|
|
1006
|
+
*
|
|
1007
|
+
* `undefined` until the buyer selects a shipping method (typically after the
|
|
1008
|
+
* information step).
|
|
910
1009
|
*/
|
|
911
1010
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
912
1011
|
|
|
913
1012
|
/**
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
* undefined
|
|
1013
|
+
* 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.
|
|
1014
|
+
*
|
|
1015
|
+
* `undefined` when taxes haven't been calculated or aren't available for the
|
|
1016
|
+
* buyer's region.
|
|
917
1017
|
*/
|
|
918
1018
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
919
1019
|
|
|
920
1020
|
/**
|
|
921
|
-
*
|
|
922
|
-
* step of checkout. This value excludes amounts yet to be negotiated. For example,
|
|
923
|
-
* the information step might not have delivery costs calculated.
|
|
1021
|
+
* 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.
|
|
924
1022
|
*/
|
|
925
1023
|
totalAmount: SubscribableSignalLike<Money>;
|
|
926
1024
|
}
|
|
927
1025
|
|
|
928
1026
|
export interface CartLine {
|
|
929
1027
|
/**
|
|
930
|
-
*
|
|
931
|
-
*
|
|
932
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
933
|
-
* create a `CartLineChange` object.
|
|
1028
|
+
* 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.
|
|
1029
|
+
*
|
|
934
1030
|
* @example 'gid://shopify/CartLine/123'
|
|
935
1031
|
*/
|
|
936
1032
|
id: string;
|
|
937
1033
|
|
|
938
1034
|
/**
|
|
939
|
-
* The merchandise
|
|
1035
|
+
* 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.
|
|
940
1036
|
*/
|
|
941
1037
|
merchandise: Merchandise;
|
|
942
1038
|
|
|
943
1039
|
/**
|
|
944
|
-
* The
|
|
1040
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
945
1041
|
*/
|
|
946
1042
|
quantity: number;
|
|
947
1043
|
|
|
948
1044
|
/**
|
|
949
|
-
* The
|
|
1045
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
950
1046
|
*/
|
|
951
1047
|
cost: CartLineCost;
|
|
952
1048
|
|
|
953
1049
|
/**
|
|
954
|
-
*
|
|
1050
|
+
* Custom key-value attributes attached to this cart line, such as gift messages or engraving text. Use `applyCartLinesChange()` to update these values.
|
|
955
1051
|
*/
|
|
956
1052
|
attributes: Attribute[];
|
|
957
1053
|
|
|
958
1054
|
/**
|
|
959
|
-
* Discounts applied to
|
|
1055
|
+
* 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.
|
|
960
1056
|
*/
|
|
961
1057
|
discountAllocations: CartDiscountAllocation[];
|
|
962
1058
|
|
|
963
1059
|
/**
|
|
964
|
-
*
|
|
1060
|
+
* 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.
|
|
965
1061
|
*/
|
|
966
1062
|
lineComponents: CartLineComponentType[];
|
|
967
1063
|
|
|
968
1064
|
/**
|
|
969
|
-
* The
|
|
1065
|
+
* The parent line item that this line belongs to, or `null` if this is a
|
|
1066
|
+
* top-level line item. Used to identify lines added as children of a bundle
|
|
1067
|
+
* or other grouped product.
|
|
970
1068
|
*/
|
|
971
1069
|
parentRelationship: CartLineParentRelationship | null;
|
|
972
1070
|
}
|
|
@@ -977,8 +1075,8 @@ export interface CartLineParentRelationship {
|
|
|
977
1075
|
*/
|
|
978
1076
|
parent: {
|
|
979
1077
|
/**
|
|
980
|
-
* These line item IDs
|
|
981
|
-
* any operations on the line items.
|
|
1078
|
+
* These line item IDs aren't stable at the moment, and they might change after
|
|
1079
|
+
* any operations on the line items. Always look up an updated
|
|
982
1080
|
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
983
1081
|
* create a `CartLineChange` object.
|
|
984
1082
|
* @example 'gid://shopify/CartLine/123'
|
|
@@ -989,35 +1087,39 @@ export interface CartLineParentRelationship {
|
|
|
989
1087
|
|
|
990
1088
|
type CartLineComponentType = CartBundleLineComponent;
|
|
991
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* An individual component within a bundled cart line. Each `CartLine` that represents a bundle has a `lineComponents` array containing these components.
|
|
1092
|
+
*/
|
|
992
1093
|
export interface CartBundleLineComponent {
|
|
1094
|
+
/**
|
|
1095
|
+
* Identifies this as a bundle line component. This is currently the only component type.
|
|
1096
|
+
*/
|
|
993
1097
|
type: 'bundle';
|
|
994
1098
|
|
|
995
1099
|
/**
|
|
996
|
-
* A unique identifier for the bundle line
|
|
997
|
-
*
|
|
998
|
-
* This ID is not stable. If an operation updates the line items in any way, all IDs could change.
|
|
1100
|
+
* 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.
|
|
999
1101
|
*
|
|
1000
1102
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
1001
1103
|
*/
|
|
1002
1104
|
id: string;
|
|
1003
1105
|
|
|
1004
1106
|
/**
|
|
1005
|
-
* The
|
|
1107
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
1006
1108
|
*/
|
|
1007
1109
|
merchandise: Merchandise;
|
|
1008
1110
|
|
|
1009
1111
|
/**
|
|
1010
|
-
* The
|
|
1112
|
+
* The number of units of this component included in the bundle.
|
|
1011
1113
|
*/
|
|
1012
1114
|
quantity: number;
|
|
1013
1115
|
|
|
1014
1116
|
/**
|
|
1015
|
-
* The cost
|
|
1117
|
+
* The cost breakdown for this bundle component, including the total amount after any per-item discounts.
|
|
1016
1118
|
*/
|
|
1017
1119
|
cost: CartLineCost;
|
|
1018
1120
|
|
|
1019
1121
|
/**
|
|
1020
|
-
*
|
|
1122
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
1021
1123
|
*
|
|
1022
1124
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
1023
1125
|
*/
|
|
@@ -1026,19 +1128,19 @@ export interface CartBundleLineComponent {
|
|
|
1026
1128
|
|
|
1027
1129
|
export interface CartLineCost {
|
|
1028
1130
|
/**
|
|
1029
|
-
* The total
|
|
1030
|
-
* cart line.
|
|
1131
|
+
* 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.
|
|
1031
1132
|
*/
|
|
1032
1133
|
totalAmount: Money;
|
|
1033
1134
|
}
|
|
1034
1135
|
|
|
1035
1136
|
export interface Money {
|
|
1036
1137
|
/**
|
|
1037
|
-
* The
|
|
1138
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
1038
1139
|
*/
|
|
1039
1140
|
amount: number;
|
|
1040
1141
|
/**
|
|
1041
|
-
* The
|
|
1142
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
1143
|
+
*
|
|
1042
1144
|
* @example 'CAD' for Canadian dollar
|
|
1043
1145
|
*/
|
|
1044
1146
|
currencyCode: CurrencyCode;
|
|
@@ -1048,99 +1150,110 @@ export type Merchandise = ProductVariant;
|
|
|
1048
1150
|
|
|
1049
1151
|
export interface BaseMerchandise {
|
|
1050
1152
|
/**
|
|
1051
|
-
*
|
|
1153
|
+
* A globally unique identifier for the merchandise.
|
|
1154
|
+
*
|
|
1155
|
+
* @example 'gid://shopify/ProductVariant/123'
|
|
1052
1156
|
*/
|
|
1053
1157
|
id: string;
|
|
1054
1158
|
}
|
|
1055
1159
|
|
|
1056
1160
|
export interface ProductVariant extends BaseMerchandise {
|
|
1161
|
+
/**
|
|
1162
|
+
* Identifies the merchandise as a product variant. This is currently the only merchandise type in checkout.
|
|
1163
|
+
*/
|
|
1057
1164
|
type: 'variant';
|
|
1058
1165
|
|
|
1059
1166
|
/**
|
|
1060
|
-
* A globally-unique identifier
|
|
1167
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
1168
|
+
*
|
|
1061
1169
|
* @example 'gid://shopify/ProductVariant/123'
|
|
1062
1170
|
*/
|
|
1063
1171
|
id: string;
|
|
1064
1172
|
|
|
1065
1173
|
/**
|
|
1066
|
-
* The product variant
|
|
1174
|
+
* The display title of the product variant, such as "Small" or "Red / Large". This is the variant-specific label, not the parent product title.
|
|
1067
1175
|
*/
|
|
1068
1176
|
title: string;
|
|
1069
1177
|
|
|
1070
1178
|
/**
|
|
1071
|
-
*
|
|
1179
|
+
* 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.
|
|
1072
1180
|
*/
|
|
1073
1181
|
subtitle?: string;
|
|
1074
1182
|
|
|
1075
1183
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* image if no image is available.
|
|
1184
|
+
* 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.
|
|
1078
1185
|
*/
|
|
1079
1186
|
image?: ImageDetails;
|
|
1080
1187
|
|
|
1081
1188
|
/**
|
|
1082
|
-
*
|
|
1189
|
+
* The product options applied to this variant, such as size, color, or material. Each entry contains the option name and the selected value.
|
|
1083
1190
|
*/
|
|
1084
1191
|
selectedOptions: SelectedOption[];
|
|
1085
1192
|
|
|
1086
1193
|
/**
|
|
1087
|
-
* The product
|
|
1194
|
+
* The parent product that this variant belongs to. Use this to access the product's ID, vendor, and type.
|
|
1088
1195
|
*/
|
|
1089
1196
|
product: Product;
|
|
1090
1197
|
|
|
1091
1198
|
/**
|
|
1092
|
-
* Whether
|
|
1199
|
+
* 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.
|
|
1093
1200
|
*/
|
|
1094
1201
|
requiresShipping: boolean;
|
|
1095
1202
|
|
|
1096
1203
|
/**
|
|
1097
|
-
* The selling plan associated with the
|
|
1204
|
+
* 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.
|
|
1098
1205
|
*/
|
|
1099
1206
|
sellingPlan?: SellingPlan;
|
|
1100
1207
|
|
|
1101
1208
|
/**
|
|
1102
|
-
* The
|
|
1209
|
+
* 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.
|
|
1103
1210
|
*/
|
|
1104
1211
|
sku?: string;
|
|
1105
1212
|
}
|
|
1106
1213
|
|
|
1107
1214
|
export interface Product {
|
|
1108
1215
|
/**
|
|
1109
|
-
* A globally-unique identifier
|
|
1216
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
1217
|
+
*
|
|
1218
|
+
* @example 'gid://shopify/Product/123'
|
|
1110
1219
|
*/
|
|
1111
1220
|
id: string;
|
|
1112
1221
|
|
|
1113
1222
|
/**
|
|
1114
|
-
* The product
|
|
1223
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
1115
1224
|
*/
|
|
1116
1225
|
vendor: string;
|
|
1117
1226
|
|
|
1118
1227
|
/**
|
|
1119
|
-
* A categorization
|
|
1228
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
1120
1229
|
*/
|
|
1121
1230
|
productType: string;
|
|
1122
1231
|
}
|
|
1123
1232
|
|
|
1124
1233
|
export interface ImageDetails {
|
|
1125
1234
|
/**
|
|
1126
|
-
* The
|
|
1235
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
1127
1236
|
*/
|
|
1128
1237
|
url: string;
|
|
1129
1238
|
|
|
1130
1239
|
/**
|
|
1131
|
-
* The alternative text for the image.
|
|
1240
|
+
* The alternative text for the image, used for accessibility. The value is `undefined` if the merchant hasn't provided alt text.
|
|
1132
1241
|
*/
|
|
1133
1242
|
altText?: string;
|
|
1134
1243
|
}
|
|
1135
1244
|
|
|
1136
1245
|
export interface SelectedOption {
|
|
1137
1246
|
/**
|
|
1138
|
-
* The name of the
|
|
1247
|
+
* The name of the product option, such as "Color" or "Size".
|
|
1248
|
+
*
|
|
1249
|
+
* @example 'Size'
|
|
1139
1250
|
*/
|
|
1140
1251
|
name: string;
|
|
1141
1252
|
|
|
1142
1253
|
/**
|
|
1143
|
-
* The value
|
|
1254
|
+
* The selected value for the product option, such as "Red" or "Large".
|
|
1255
|
+
*
|
|
1256
|
+
* @example 'Large'
|
|
1144
1257
|
*/
|
|
1145
1258
|
value: string;
|
|
1146
1259
|
}
|
|
@@ -1152,7 +1265,7 @@ export interface PaymentOption {
|
|
|
1152
1265
|
/**
|
|
1153
1266
|
* The type of the payment option.
|
|
1154
1267
|
*
|
|
1155
|
-
* Shops can be configured to support many different payment options. Some options are only
|
|
1268
|
+
* Shops can be configured to support many different payment options. Some options are available only to buyers in specific regions.
|
|
1156
1269
|
*
|
|
1157
1270
|
* | Type | Description |
|
|
1158
1271
|
* |---|---|
|
|
@@ -1162,10 +1275,10 @@ export interface PaymentOption {
|
|
|
1162
1275
|
* | `manualPayment` | A manual payment option such as an in-person retail transaction. |
|
|
1163
1276
|
* | `offsite` | A payment processed outside of Shopify's checkout, excluding integrated wallets. |
|
|
1164
1277
|
* | `other` | Another type of payment not defined here. |
|
|
1165
|
-
* | `paymentOnDelivery` | A payment
|
|
1278
|
+
* | `paymentOnDelivery` | A payment collected on delivery. |
|
|
1166
1279
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
1167
|
-
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay
|
|
1168
|
-
* | `customOnsite` | A custom payment option that
|
|
1280
|
+
* | `wallet` | An integrated wallet such as PayPal, Google Pay, or Apple Pay. |
|
|
1281
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
1169
1282
|
*/
|
|
1170
1283
|
type:
|
|
1171
1284
|
| 'creditCard'
|
|
@@ -1180,21 +1293,29 @@ export interface PaymentOption {
|
|
|
1180
1293
|
| 'customOnsite';
|
|
1181
1294
|
|
|
1182
1295
|
/**
|
|
1183
|
-
*
|
|
1184
|
-
*
|
|
1185
|
-
* This is not a globally unique identifier. It may be an identifier specific to the given checkout session or the current shop.
|
|
1296
|
+
* 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.
|
|
1186
1297
|
*/
|
|
1187
1298
|
handle: string;
|
|
1188
1299
|
}
|
|
1189
1300
|
|
|
1301
|
+
/**
|
|
1302
|
+
* A payment option that the buyer has actively selected. This is the same shape as `PaymentOption` and appears in `selectedPaymentOptions`.
|
|
1303
|
+
*/
|
|
1190
1304
|
export type SelectedPaymentOption = PaymentOption;
|
|
1191
1305
|
|
|
1192
1306
|
export interface CartDiscountCode {
|
|
1193
1307
|
/**
|
|
1194
|
-
* The code
|
|
1308
|
+
* 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.
|
|
1195
1309
|
*/
|
|
1196
1310
|
code: string;
|
|
1197
1311
|
}
|
|
1312
|
+
/**
|
|
1313
|
+
* A discount allocation applied to the cart. Use the `type` property to determine how the discount was triggered:
|
|
1314
|
+
*
|
|
1315
|
+
* - `CartCodeDiscountAllocation` (`type: 'code'`): Triggered by a discount code the buyer entered.
|
|
1316
|
+
* - `CartAutomaticDiscountAllocation` (`type: 'automatic'`): Applied automatically based on merchant-configured rules.
|
|
1317
|
+
* - `CartCustomDiscountAllocation` (`type: 'custom'`): Applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1318
|
+
*/
|
|
1198
1319
|
export type CartDiscountAllocation =
|
|
1199
1320
|
| CartCodeDiscountAllocation
|
|
1200
1321
|
| CartAutomaticDiscountAllocation
|
|
@@ -1202,19 +1323,19 @@ export type CartDiscountAllocation =
|
|
|
1202
1323
|
|
|
1203
1324
|
export interface CartDiscountAllocationBase {
|
|
1204
1325
|
/**
|
|
1205
|
-
* The
|
|
1326
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
1206
1327
|
*/
|
|
1207
1328
|
discountedAmount: Money;
|
|
1208
1329
|
}
|
|
1209
1330
|
|
|
1210
1331
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
1211
1332
|
/**
|
|
1212
|
-
* The code
|
|
1333
|
+
* The discount code string that the buyer entered during checkout, such as `"SAVE10"` or `"FREESHIP"`.
|
|
1213
1334
|
*/
|
|
1214
1335
|
code: string;
|
|
1215
1336
|
|
|
1216
1337
|
/**
|
|
1217
|
-
*
|
|
1338
|
+
* Identifies this as a code-based discount, triggered by a discount code the buyer entered at checkout.
|
|
1218
1339
|
*/
|
|
1219
1340
|
type: 'code';
|
|
1220
1341
|
}
|
|
@@ -1222,12 +1343,12 @@ export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
|
1222
1343
|
export interface CartAutomaticDiscountAllocation
|
|
1223
1344
|
extends CartDiscountAllocationBase {
|
|
1224
1345
|
/**
|
|
1225
|
-
* The title of the automatic discount
|
|
1346
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
1226
1347
|
*/
|
|
1227
1348
|
title: string;
|
|
1228
1349
|
|
|
1229
1350
|
/**
|
|
1230
|
-
*
|
|
1351
|
+
* Identifies this as an automatic discount, applied based on merchant-configured rules without a code.
|
|
1231
1352
|
*/
|
|
1232
1353
|
type: 'automatic';
|
|
1233
1354
|
}
|
|
@@ -1235,12 +1356,12 @@ export interface CartAutomaticDiscountAllocation
|
|
|
1235
1356
|
export interface CartCustomDiscountAllocation
|
|
1236
1357
|
extends CartDiscountAllocationBase {
|
|
1237
1358
|
/**
|
|
1238
|
-
* The title of the custom discount
|
|
1359
|
+
* The title of the custom discount, typically applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1239
1360
|
*/
|
|
1240
1361
|
title: string;
|
|
1241
1362
|
|
|
1242
1363
|
/**
|
|
1243
|
-
*
|
|
1364
|
+
* Identifies this as a custom discount applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1244
1365
|
*/
|
|
1245
1366
|
type: 'custom';
|
|
1246
1367
|
}
|
|
@@ -1257,7 +1378,7 @@ interface InterceptorResultAllow {
|
|
|
1257
1378
|
interface InterceptorResultBlock {
|
|
1258
1379
|
/**
|
|
1259
1380
|
* Indicates that some part of the checkout UI intercepted and prevented
|
|
1260
|
-
* the buyer
|
|
1381
|
+
* the buyer's progress. The buyer typically needs to take some action
|
|
1261
1382
|
* to resolve this issue and to move on to the next step.
|
|
1262
1383
|
*/
|
|
1263
1384
|
behavior: 'block';
|
|
@@ -1269,7 +1390,7 @@ export type InterceptorRequest =
|
|
|
1269
1390
|
|
|
1270
1391
|
interface InterceptorRequestAllow {
|
|
1271
1392
|
/**
|
|
1272
|
-
* Indicates that the interceptor
|
|
1393
|
+
* Indicates that the interceptor allows the buyer's journey to continue.
|
|
1273
1394
|
*/
|
|
1274
1395
|
behavior: 'allow';
|
|
1275
1396
|
|
|
@@ -1277,6 +1398,11 @@ interface InterceptorRequestAllow {
|
|
|
1277
1398
|
* This callback is called when all interceptors finish. We recommend
|
|
1278
1399
|
* setting errors or reasons for blocking at this stage, so that all the errors in
|
|
1279
1400
|
* the UI show up at once.
|
|
1401
|
+
*
|
|
1402
|
+
* Runs after all intercept results are collected. Use it for local state
|
|
1403
|
+
* updates such as setting an error flag. By the time it runs, the navigation
|
|
1404
|
+
* decision is final, so blocking logic belongs in the intercept handler
|
|
1405
|
+
* itself, not here.
|
|
1280
1406
|
* @param result InterceptorResult with behavior as either 'allow' or 'block'
|
|
1281
1407
|
*/
|
|
1282
1408
|
perform?(result: InterceptorResult): void | Promise<void>;
|
|
@@ -1284,13 +1410,13 @@ interface InterceptorRequestAllow {
|
|
|
1284
1410
|
// The reason is used for tracing and debugging purposes.
|
|
1285
1411
|
interface InterceptorRequestBlock {
|
|
1286
1412
|
/**
|
|
1287
|
-
* Indicates that the interceptor
|
|
1413
|
+
* Indicates that the interceptor blocks the buyer's journey from continuing.
|
|
1288
1414
|
*/
|
|
1289
1415
|
behavior: 'block';
|
|
1290
1416
|
|
|
1291
1417
|
/**
|
|
1292
1418
|
* The reason for blocking the interceptor request. This value isn't presented to
|
|
1293
|
-
* the buyer, so it doesn't need to be localized. The value is used only for Shopify
|
|
1419
|
+
* the buyer, so it doesn't need to be localized. The value is used only for Shopify's
|
|
1294
1420
|
* own internal debugging and metrics.
|
|
1295
1421
|
*/
|
|
1296
1422
|
reason: string;
|
|
@@ -1304,6 +1430,11 @@ interface InterceptorRequestBlock {
|
|
|
1304
1430
|
* This callback is called when all interceptors finish. We recommend
|
|
1305
1431
|
* setting errors or reasons for blocking at this stage, so that all the errors in
|
|
1306
1432
|
* the UI show up at once.
|
|
1433
|
+
*
|
|
1434
|
+
* Runs after all intercept results are collected. Use it for local state
|
|
1435
|
+
* updates such as setting an error flag. By the time it runs, the navigation
|
|
1436
|
+
* decision is final, so blocking logic belongs in the intercept handler
|
|
1437
|
+
* itself, not here.
|
|
1307
1438
|
* @param result InterceptorResult with behavior as either 'allow' or 'block'
|
|
1308
1439
|
*/
|
|
1309
1440
|
perform?(result: InterceptorResult): void | Promise<void>;
|
|
@@ -1311,8 +1442,7 @@ interface InterceptorRequestBlock {
|
|
|
1311
1442
|
|
|
1312
1443
|
export interface InterceptorProps {
|
|
1313
1444
|
/**
|
|
1314
|
-
* Whether the interceptor has the capability
|
|
1315
|
-
* checkout. This ability might be granted by a merchant in differing checkout contexts.
|
|
1445
|
+
* 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.
|
|
1316
1446
|
*/
|
|
1317
1447
|
canBlockProgress: boolean;
|
|
1318
1448
|
}
|
|
@@ -1320,9 +1450,9 @@ export interface InterceptorProps {
|
|
|
1320
1450
|
/**
|
|
1321
1451
|
* A function for intercepting and preventing navigation on checkout. You can block
|
|
1322
1452
|
* navigation by returning an object with
|
|
1323
|
-
* `{behavior: 'block', reason:
|
|
1453
|
+
* `{behavior: 'block', reason: 'your reason here', errors?: ValidationError[]}`.
|
|
1324
1454
|
* If you do, then you're expected to also update some part of your UI to reflect the reason why navigation
|
|
1325
|
-
* was blocked, either by targeting checkout UI fields, passing errors to the page level or rendering the errors in your extension.
|
|
1455
|
+
* was blocked, either by targeting checkout UI fields, passing errors to the page level, or rendering the errors in your extension.
|
|
1326
1456
|
*/
|
|
1327
1457
|
export type Interceptor = (
|
|
1328
1458
|
interceptorProps: InterceptorProps,
|
|
@@ -1331,57 +1461,57 @@ export type Interceptor = (
|
|
|
1331
1461
|
/**
|
|
1332
1462
|
* Information about a customer who has previously purchased from this shop.
|
|
1333
1463
|
*
|
|
1334
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1464
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1335
1465
|
*/
|
|
1336
1466
|
export interface Customer {
|
|
1337
1467
|
/**
|
|
1338
|
-
* Customer
|
|
1468
|
+
* An identifier for the customer in the format `gid://shopify/Customer/<id>`. This value is unique per shop.
|
|
1339
1469
|
*
|
|
1340
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1470
|
+
* {% 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).
|
|
1341
1471
|
*
|
|
1342
1472
|
* @example 'gid://shopify/Customer/123'
|
|
1343
1473
|
*/
|
|
1344
1474
|
id: string;
|
|
1345
1475
|
/**
|
|
1346
|
-
* The email
|
|
1476
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
1347
1477
|
*
|
|
1348
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1478
|
+
* {% 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).
|
|
1349
1479
|
*/
|
|
1350
1480
|
email?: string;
|
|
1351
1481
|
/**
|
|
1352
|
-
* The phone number
|
|
1482
|
+
* 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.
|
|
1353
1483
|
*
|
|
1354
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1484
|
+
* {% 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).
|
|
1355
1485
|
*/
|
|
1356
1486
|
phone?: string;
|
|
1357
1487
|
/**
|
|
1358
|
-
* The full name of the
|
|
1488
|
+
* 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.
|
|
1359
1489
|
*
|
|
1360
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1490
|
+
* {% 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).
|
|
1361
1491
|
*/
|
|
1362
1492
|
fullName?: string;
|
|
1363
1493
|
/**
|
|
1364
|
-
* The first name
|
|
1494
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
1365
1495
|
*
|
|
1366
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1496
|
+
* {% 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).
|
|
1367
1497
|
*/
|
|
1368
1498
|
firstName?: string;
|
|
1369
1499
|
/**
|
|
1370
|
-
* The last name
|
|
1500
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
1371
1501
|
*
|
|
1372
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1502
|
+
* {% 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).
|
|
1373
1503
|
*/
|
|
1374
1504
|
lastName?: string;
|
|
1375
1505
|
/**
|
|
1376
|
-
* The image
|
|
1506
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
1377
1507
|
*
|
|
1378
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1508
|
+
* {% 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).
|
|
1379
1509
|
*/
|
|
1380
1510
|
image: ImageDetails;
|
|
1381
1511
|
/**
|
|
1382
|
-
*
|
|
1512
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
1383
1513
|
*
|
|
1384
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1514
|
+
* {% 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).
|
|
1385
1515
|
*
|
|
1386
1516
|
* > Caution: This field is deprecated and will be removed in a future version. Use `acceptsEmailMarketing` or `acceptsSmsMarketing` instead.
|
|
1387
1517
|
*
|
|
@@ -1389,29 +1519,29 @@ export interface Customer {
|
|
|
1389
1519
|
*/
|
|
1390
1520
|
acceptsMarketing: boolean;
|
|
1391
1521
|
/**
|
|
1392
|
-
*
|
|
1522
|
+
* Whether the customer has opted in to email marketing.
|
|
1393
1523
|
*
|
|
1394
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1524
|
+
* {% 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).
|
|
1395
1525
|
*/
|
|
1396
1526
|
acceptsEmailMarketing: boolean;
|
|
1397
1527
|
/**
|
|
1398
|
-
*
|
|
1528
|
+
* Whether the customer has opted in to SMS marketing.
|
|
1399
1529
|
*
|
|
1400
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1530
|
+
* {% 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).
|
|
1401
1531
|
*/
|
|
1402
1532
|
acceptsSmsMarketing: boolean;
|
|
1403
1533
|
/**
|
|
1404
|
-
* The
|
|
1534
|
+
* 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.
|
|
1405
1535
|
*
|
|
1406
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1536
|
+
* {% 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).
|
|
1407
1537
|
*
|
|
1408
1538
|
* @private
|
|
1409
1539
|
*/
|
|
1410
1540
|
storeCreditAccounts: StoreCreditAccount[];
|
|
1411
1541
|
/**
|
|
1412
|
-
* The number of
|
|
1542
|
+
* The number of orders the customer has previously placed with this shop.
|
|
1413
1543
|
*
|
|
1414
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1544
|
+
* {% 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).
|
|
1415
1545
|
*/
|
|
1416
1546
|
ordersCount: number;
|
|
1417
1547
|
}
|
|
@@ -1421,15 +1551,18 @@ export interface Customer {
|
|
|
1421
1551
|
*/
|
|
1422
1552
|
export interface CheckoutSettings {
|
|
1423
1553
|
/**
|
|
1424
|
-
* The type of order
|
|
1554
|
+
* The type of order created when the buyer completes checkout.
|
|
1555
|
+
*
|
|
1556
|
+
* - `'DRAFT_ORDER'`: The checkout creates a draft order that the merchant must manually confirm before fulfillment. Common for B2B checkouts with deferred payment terms.
|
|
1557
|
+
* - `'ORDER'`: The checkout creates a confirmed order immediately upon completion.
|
|
1425
1558
|
*/
|
|
1426
1559
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
1427
1560
|
/**
|
|
1428
|
-
*
|
|
1561
|
+
* 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.
|
|
1429
1562
|
*/
|
|
1430
1563
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
1431
1564
|
/**
|
|
1432
|
-
* Settings
|
|
1565
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
1433
1566
|
*/
|
|
1434
1567
|
shippingAddress: ShippingAddressSettings;
|
|
1435
1568
|
}
|
|
@@ -1439,45 +1572,47 @@ export interface CheckoutSettings {
|
|
|
1439
1572
|
*/
|
|
1440
1573
|
export interface ShippingAddressSettings {
|
|
1441
1574
|
/**
|
|
1442
|
-
*
|
|
1575
|
+
* 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.
|
|
1443
1576
|
*/
|
|
1444
1577
|
isEditable: boolean;
|
|
1445
1578
|
}
|
|
1446
1579
|
|
|
1447
1580
|
/**
|
|
1448
|
-
*
|
|
1581
|
+
* 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".
|
|
1449
1582
|
*/
|
|
1450
1583
|
export interface PaymentTermsTemplate {
|
|
1451
1584
|
/**
|
|
1452
|
-
* A globally-unique
|
|
1585
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
1586
|
+
*
|
|
1453
1587
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
1454
1588
|
*/
|
|
1455
1589
|
id: string;
|
|
1456
1590
|
/**
|
|
1457
|
-
* The name of the payment terms translated to the buyer's current language
|
|
1591
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt".
|
|
1458
1592
|
*/
|
|
1459
1593
|
name: string;
|
|
1460
1594
|
/**
|
|
1461
|
-
* The due date for
|
|
1595
|
+
* 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.
|
|
1462
1596
|
*/
|
|
1463
1597
|
dueDate?: string;
|
|
1464
1598
|
/**
|
|
1465
|
-
* The number of days
|
|
1599
|
+
* 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.
|
|
1466
1600
|
*/
|
|
1467
1601
|
dueInDays?: number;
|
|
1468
1602
|
}
|
|
1469
1603
|
|
|
1470
1604
|
/**
|
|
1471
|
-
*
|
|
1605
|
+
* 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.
|
|
1472
1606
|
*/
|
|
1473
1607
|
export interface StoreCreditAccount {
|
|
1474
1608
|
/**
|
|
1475
|
-
* A globally-unique identifier
|
|
1609
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
1610
|
+
*
|
|
1476
1611
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
1477
1612
|
*/
|
|
1478
1613
|
id: string;
|
|
1479
1614
|
/**
|
|
1480
|
-
* The
|
|
1615
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
1481
1616
|
*/
|
|
1482
1617
|
balance: Money;
|
|
1483
1618
|
}
|
|
@@ -1490,14 +1625,24 @@ export type ExtensionSettings = Record<
|
|
|
1490
1625
|
string | number | boolean | undefined
|
|
1491
1626
|
>;
|
|
1492
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* Tracks custom events and sends visitor information to
|
|
1630
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
1631
|
+
* and `visitor()` to submit buyer contact details.
|
|
1632
|
+
*/
|
|
1493
1633
|
export interface Analytics {
|
|
1494
1634
|
/**
|
|
1495
|
-
*
|
|
1635
|
+
* Publishes a custom event to [Web Pixels](https://shopify.dev/docs/apps/marketing).
|
|
1636
|
+
* Returns `true` when the event is successfully dispatched.
|
|
1637
|
+
*
|
|
1638
|
+
* The Promise resolves to `true` when the event was dispatched. The boolean
|
|
1639
|
+
* indicates dispatch confirmation only. It doesn't indicate whether any
|
|
1640
|
+
* specific web pixel processed the event.
|
|
1496
1641
|
*/
|
|
1497
1642
|
publish(name: string, data: Record<string, unknown>): Promise<boolean>;
|
|
1498
1643
|
|
|
1499
1644
|
/**
|
|
1500
|
-
*
|
|
1645
|
+
* Submits buyer contact details for attribution and analytics purposes.
|
|
1501
1646
|
*/
|
|
1502
1647
|
visitor(data: {email?: string; phone?: string}): Promise<VisitorResult>;
|
|
1503
1648
|
}
|
|
@@ -1522,78 +1667,88 @@ export interface VisitorSuccess {
|
|
|
1522
1667
|
export interface VisitorError {
|
|
1523
1668
|
/**
|
|
1524
1669
|
* Indicates that the visitor information is invalid and wasn't submitted.
|
|
1525
|
-
*
|
|
1670
|
+
* Common causes include using the wrong data type or omitting a required property.
|
|
1526
1671
|
*/
|
|
1527
1672
|
type: 'error';
|
|
1528
1673
|
|
|
1529
1674
|
/**
|
|
1530
1675
|
* A message that explains the error. This message is useful for debugging.
|
|
1531
|
-
* It'
|
|
1532
|
-
* to the buyer.
|
|
1676
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1533
1677
|
*/
|
|
1534
1678
|
message: string;
|
|
1535
1679
|
}
|
|
1536
1680
|
|
|
1537
1681
|
/**
|
|
1538
|
-
*
|
|
1539
|
-
* more cart lines.
|
|
1682
|
+
* 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.
|
|
1540
1683
|
*/
|
|
1541
1684
|
export interface DeliveryGroup {
|
|
1542
1685
|
/**
|
|
1543
|
-
*
|
|
1686
|
+
* A unique identifier for the delivery group. The value is `undefined` if the underlying delivery line doesn't have an ID assigned.
|
|
1544
1687
|
*/
|
|
1545
1688
|
id?: string;
|
|
1546
1689
|
/**
|
|
1547
|
-
* The cart
|
|
1690
|
+
* 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.
|
|
1548
1691
|
*/
|
|
1549
1692
|
targetedCartLines: CartLineReference[];
|
|
1550
1693
|
|
|
1551
1694
|
/**
|
|
1552
|
-
* The delivery options available for
|
|
1695
|
+
* 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.
|
|
1553
1696
|
*/
|
|
1554
1697
|
deliveryOptions: DeliveryOption[];
|
|
1555
1698
|
|
|
1556
1699
|
/**
|
|
1557
|
-
* The
|
|
1700
|
+
* 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.
|
|
1558
1701
|
*/
|
|
1559
1702
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
1560
1703
|
|
|
1561
1704
|
/**
|
|
1562
|
-
*
|
|
1705
|
+
* Whether this group contains items for a one-time purchase or a subscription.
|
|
1706
|
+
* Subscription delivery groups might have different shipping options. See `DeliveryGroupType` for possible values.
|
|
1563
1707
|
*/
|
|
1564
1708
|
groupType: DeliveryGroupType;
|
|
1565
1709
|
|
|
1566
1710
|
/**
|
|
1567
|
-
* Whether delivery is required for the
|
|
1711
|
+
* Whether physical delivery is required for the items in this group.
|
|
1712
|
+
* Digital-only groups don't require delivery.
|
|
1568
1713
|
*/
|
|
1569
1714
|
isDeliveryRequired: boolean;
|
|
1570
1715
|
}
|
|
1571
1716
|
|
|
1572
1717
|
/**
|
|
1573
1718
|
* The possible types of a delivery group.
|
|
1719
|
+
*
|
|
1720
|
+
* - `'oneTimePurchase'`: Items bought as a single, non-recurring purchase.
|
|
1721
|
+
* - `'subscription'`: Items bought through a [selling plan](https://shopify.dev/docs/apps/build/purchase-options/subscriptions) that results in recurring deliveries.
|
|
1574
1722
|
*/
|
|
1575
1723
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
1576
1724
|
|
|
1577
1725
|
/**
|
|
1578
|
-
*
|
|
1726
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
1579
1727
|
*/
|
|
1580
1728
|
export interface CartLineReference {
|
|
1581
1729
|
/**
|
|
1582
|
-
* The unique identifier of the referenced cart line.
|
|
1730
|
+
* The unique identifier of the referenced cart line. Match this against `CartLine.id` from the `lines` property to get the full line item details.
|
|
1583
1731
|
*/
|
|
1584
1732
|
id: string;
|
|
1585
1733
|
}
|
|
1586
1734
|
|
|
1587
1735
|
/**
|
|
1588
|
-
*
|
|
1736
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
1589
1737
|
*/
|
|
1590
1738
|
export interface DeliveryOptionReference {
|
|
1591
1739
|
/**
|
|
1592
|
-
* The unique identifier of the referenced delivery option.
|
|
1740
|
+
* The unique identifier of the referenced delivery option. Match this against `DeliveryOption.handle` from the `deliveryOptions` array to get the full option details.
|
|
1593
1741
|
*/
|
|
1594
1742
|
handle: string;
|
|
1595
1743
|
}
|
|
1596
1744
|
|
|
1745
|
+
/**
|
|
1746
|
+
* A delivery option available to the buyer. Use the `type` property to determine which kind of option it is:
|
|
1747
|
+
*
|
|
1748
|
+
* - `ShippingOption` (`type: 'shipping' | 'local'`): Items shipped by a carrier or delivered locally by the merchant.
|
|
1749
|
+
* - `PickupPointOption` (`type: 'pickupPoint'`): Items shipped to a third-party collection point for the buyer to pick up.
|
|
1750
|
+
* - `PickupLocationOption` (`type: 'pickup'`): Items picked up directly from a merchant's store or warehouse.
|
|
1751
|
+
*/
|
|
1597
1752
|
export type DeliveryOption =
|
|
1598
1753
|
| ShippingOption
|
|
1599
1754
|
| PickupPointOption
|
|
@@ -1604,129 +1759,136 @@ export type DeliveryOption =
|
|
|
1604
1759
|
*/
|
|
1605
1760
|
export interface DeliveryOptionBase {
|
|
1606
1761
|
/**
|
|
1607
|
-
* The unique identifier of the delivery option.
|
|
1762
|
+
* The unique identifier of the delivery option. Use this to match against `DeliveryOptionReference.handle` or `DeliverySelectionGroup` entries.
|
|
1608
1763
|
*/
|
|
1609
1764
|
handle: string;
|
|
1610
1765
|
|
|
1611
1766
|
/**
|
|
1612
|
-
* The
|
|
1767
|
+
* The merchant-facing or carrier-provided display name for the delivery
|
|
1768
|
+
* option, such as "Standard Shipping" or "Express".
|
|
1613
1769
|
*/
|
|
1614
1770
|
title?: string;
|
|
1615
1771
|
|
|
1616
1772
|
/**
|
|
1617
|
-
*
|
|
1773
|
+
* Additional details about the delivery option provided by the carrier
|
|
1774
|
+
* or merchant, such as estimated delivery windows or service level notes.
|
|
1618
1775
|
*/
|
|
1619
1776
|
description?: string;
|
|
1620
1777
|
|
|
1621
1778
|
/**
|
|
1622
|
-
* The code
|
|
1779
|
+
* The carrier service code or rate identifier for this delivery option.
|
|
1623
1780
|
*/
|
|
1624
1781
|
code: string;
|
|
1625
1782
|
|
|
1626
1783
|
/**
|
|
1627
|
-
*
|
|
1784
|
+
* 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.
|
|
1628
1785
|
*/
|
|
1629
1786
|
metafields: Metafield[];
|
|
1630
1787
|
}
|
|
1631
1788
|
|
|
1632
1789
|
/**
|
|
1633
|
-
* Represents a delivery option that
|
|
1790
|
+
* Represents a delivery option that's a shipping option.
|
|
1634
1791
|
*/
|
|
1635
1792
|
export interface ShippingOption extends DeliveryOptionBase {
|
|
1636
1793
|
/**
|
|
1637
|
-
*
|
|
1794
|
+
* 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.
|
|
1638
1795
|
*/
|
|
1639
1796
|
type: 'shipping' | 'local';
|
|
1640
1797
|
|
|
1641
1798
|
/**
|
|
1642
|
-
* Information about the carrier.
|
|
1799
|
+
* Information about the carrier providing this shipping option, including the carrier's display name.
|
|
1643
1800
|
*/
|
|
1644
1801
|
carrier: ShippingOptionCarrier;
|
|
1645
1802
|
|
|
1646
1803
|
/**
|
|
1647
|
-
* The cost of
|
|
1804
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1648
1805
|
*/
|
|
1649
1806
|
cost: Money;
|
|
1650
1807
|
|
|
1651
1808
|
/**
|
|
1652
|
-
* The cost of
|
|
1809
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1653
1810
|
*/
|
|
1654
1811
|
costAfterDiscounts: Money;
|
|
1655
1812
|
|
|
1656
1813
|
/**
|
|
1657
|
-
*
|
|
1814
|
+
* The estimated delivery time for this shipping option. Use the `timeInTransit` range to display an estimated arrival window to the buyer.
|
|
1658
1815
|
*/
|
|
1659
1816
|
deliveryEstimate: DeliveryEstimate;
|
|
1660
1817
|
}
|
|
1661
1818
|
|
|
1662
1819
|
export interface DeliveryEstimate {
|
|
1663
1820
|
/**
|
|
1664
|
-
* The estimated time in transit for the delivery
|
|
1821
|
+
* The estimated time in transit for the delivery, expressed as a range
|
|
1822
|
+
* in seconds. Undefined when the carrier doesn't provide an estimate.
|
|
1823
|
+
* When present, either the lower or upper bound of the range might still
|
|
1824
|
+
* be omitted.
|
|
1665
1825
|
*/
|
|
1666
1826
|
timeInTransit?: NumberRange;
|
|
1667
1827
|
}
|
|
1668
1828
|
|
|
1669
1829
|
export interface ShippingOptionCarrier {
|
|
1670
1830
|
/**
|
|
1671
|
-
* The name of the carrier.
|
|
1831
|
+
* The display name of the shipping carrier, such as "Canada Post" or "UPS". The value is `undefined` if the carrier name isn't available.
|
|
1672
1832
|
*/
|
|
1673
1833
|
name?: string;
|
|
1674
1834
|
}
|
|
1675
1835
|
|
|
1676
1836
|
export interface PickupPointOption extends DeliveryOptionBase {
|
|
1677
1837
|
/**
|
|
1678
|
-
*
|
|
1838
|
+
* Identifies this as a pickup point option, where items are shipped to a third-party collection point for the buyer to pick up.
|
|
1679
1839
|
*/
|
|
1680
1840
|
type: 'pickupPoint';
|
|
1681
1841
|
|
|
1682
1842
|
/**
|
|
1683
|
-
* Information about the carrier that ships to
|
|
1843
|
+
* Information about the carrier that ships items to this pickup point, including the carrier's name and code.
|
|
1684
1844
|
*/
|
|
1685
1845
|
carrier: PickupPointCarrier;
|
|
1686
1846
|
|
|
1687
1847
|
/**
|
|
1688
|
-
* The cost
|
|
1848
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1689
1849
|
*/
|
|
1690
1850
|
cost: Money;
|
|
1691
1851
|
|
|
1692
1852
|
/**
|
|
1693
|
-
* The cost
|
|
1853
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1694
1854
|
*/
|
|
1695
1855
|
costAfterDiscounts: Money;
|
|
1696
1856
|
|
|
1697
1857
|
/**
|
|
1698
|
-
* The location
|
|
1858
|
+
* The physical location where the buyer picks up their order, including the address and display name of the collection point.
|
|
1699
1859
|
*/
|
|
1700
1860
|
location: PickupPointLocation;
|
|
1701
1861
|
}
|
|
1702
1862
|
|
|
1703
1863
|
export interface PickupLocationOption extends DeliveryOptionBase {
|
|
1704
1864
|
/**
|
|
1705
|
-
*
|
|
1865
|
+
* Identifies this as a pickup location option, where the buyer picks up items directly from a merchant's store or warehouse.
|
|
1706
1866
|
*/
|
|
1707
1867
|
type: 'pickup';
|
|
1708
1868
|
|
|
1709
1869
|
/**
|
|
1710
|
-
* The
|
|
1870
|
+
* The merchant's store or warehouse where the buyer picks up their order, including the address and display name.
|
|
1711
1871
|
*/
|
|
1712
1872
|
location: PickupLocation;
|
|
1713
1873
|
}
|
|
1714
1874
|
|
|
1715
1875
|
interface PickupLocation {
|
|
1716
1876
|
/**
|
|
1717
|
-
* The name of the pickup location
|
|
1877
|
+
* The merchant-defined display name of the pickup location, such as a
|
|
1878
|
+
* store name or warehouse label.
|
|
1718
1879
|
*/
|
|
1719
1880
|
name?: string;
|
|
1720
1881
|
|
|
1721
1882
|
/**
|
|
1722
|
-
* The address of the pickup location.
|
|
1883
|
+
* The physical address of the pickup location.
|
|
1723
1884
|
*/
|
|
1724
1885
|
address: MailingAddress;
|
|
1725
1886
|
}
|
|
1726
1887
|
|
|
1727
1888
|
interface PickupPointLocation {
|
|
1728
1889
|
/**
|
|
1729
|
-
* The name of the pickup point
|
|
1890
|
+
* The display name of the pickup point, such as the name of the locker
|
|
1891
|
+
* or collection point.
|
|
1730
1892
|
*/
|
|
1731
1893
|
name?: string;
|
|
1732
1894
|
|
|
@@ -1736,31 +1898,34 @@ interface PickupPointLocation {
|
|
|
1736
1898
|
handle: string;
|
|
1737
1899
|
|
|
1738
1900
|
/**
|
|
1739
|
-
* The address of the pickup point.
|
|
1901
|
+
* The physical address of the pickup point.
|
|
1740
1902
|
*/
|
|
1741
1903
|
address: MailingAddress;
|
|
1742
1904
|
}
|
|
1743
1905
|
|
|
1744
1906
|
interface PickupPointCarrier {
|
|
1745
1907
|
/**
|
|
1746
|
-
* The code
|
|
1908
|
+
* The carrier's unique identifier code, used to distinguish between
|
|
1909
|
+
* different carriers that deliver to pickup points.
|
|
1747
1910
|
*/
|
|
1748
1911
|
code?: string;
|
|
1749
1912
|
|
|
1750
1913
|
/**
|
|
1751
|
-
* The name of the carrier.
|
|
1914
|
+
* The display name of the carrier that delivers to this pickup point.
|
|
1752
1915
|
*/
|
|
1753
1916
|
name?: string;
|
|
1754
1917
|
}
|
|
1755
1918
|
|
|
1756
1919
|
export interface NumberRange {
|
|
1757
1920
|
/**
|
|
1758
|
-
* The lower bound of the
|
|
1921
|
+
* The lower bound of the range. Undefined if only an upper bound is
|
|
1922
|
+
* provided.
|
|
1759
1923
|
*/
|
|
1760
1924
|
lower?: number;
|
|
1761
1925
|
|
|
1762
1926
|
/**
|
|
1763
|
-
* The upper bound of the
|
|
1927
|
+
* The upper bound of the range. Undefined if only a lower bound is
|
|
1928
|
+
* provided.
|
|
1764
1929
|
*/
|
|
1765
1930
|
upper?: number;
|
|
1766
1931
|
}
|
|
@@ -1770,78 +1935,112 @@ export interface NumberRange {
|
|
|
1770
1935
|
*/
|
|
1771
1936
|
export interface DeliveryGroupDetails extends DeliveryGroup {
|
|
1772
1937
|
/**
|
|
1773
|
-
* The
|
|
1938
|
+
* 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.
|
|
1774
1939
|
*/
|
|
1775
1940
|
selectedDeliveryOption?: DeliveryOption;
|
|
1776
1941
|
|
|
1777
1942
|
/**
|
|
1778
|
-
* The cart
|
|
1943
|
+
* 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.
|
|
1779
1944
|
*/
|
|
1780
1945
|
targetedCartLines: CartLine[];
|
|
1781
1946
|
}
|
|
1782
1947
|
|
|
1783
1948
|
export interface AllowedProcessing {
|
|
1784
1949
|
/**
|
|
1785
|
-
*
|
|
1950
|
+
* Whether analytics data can be collected based on the visitor's consent,
|
|
1951
|
+
* the merchant's privacy configuration, and the visitor's region. Analytics
|
|
1952
|
+
* data includes how the shop was used and what interactions occurred.
|
|
1953
|
+
*
|
|
1954
|
+
* Whether analytics data can be collected right now. Combines the buyer's
|
|
1955
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1956
|
+
* a single boolean. Check this flag, not `visitorConsent.analytics`, before
|
|
1957
|
+
* calling `shopify.analytics.publish()`.
|
|
1786
1958
|
*/
|
|
1787
1959
|
analytics: boolean;
|
|
1788
1960
|
/**
|
|
1789
|
-
*
|
|
1961
|
+
* Whether marketing data can be collected based on the visitor's consent,
|
|
1962
|
+
* the merchant's privacy configuration, and the visitor's region. Marketing
|
|
1963
|
+
* data includes attribution and targeted advertising preferences.
|
|
1964
|
+
*
|
|
1965
|
+
* Whether marketing data can be collected right now. Combines the buyer's
|
|
1966
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1967
|
+
* a single boolean. Check this flag, not `visitorConsent.marketing`, before
|
|
1968
|
+
* performing marketing-related data collection.
|
|
1790
1969
|
*/
|
|
1791
1970
|
marketing: boolean;
|
|
1792
1971
|
/**
|
|
1793
|
-
*
|
|
1972
|
+
* Whether preference data can be collected based on the visitor's consent,
|
|
1973
|
+
* the merchant's privacy configuration, and the visitor's region. Preference
|
|
1974
|
+
* data includes language, currency, and sizing choices.
|
|
1975
|
+
*
|
|
1976
|
+
* Whether preference data can be collected right now. Combines the buyer's
|
|
1977
|
+
* consent, the merchant's privacy configuration, and the buyer's region into
|
|
1978
|
+
* a single boolean. Check this flag, not `visitorConsent.preferences`,
|
|
1979
|
+
* before storing or reading buyer preference data.
|
|
1794
1980
|
*/
|
|
1795
1981
|
preferences: boolean;
|
|
1796
1982
|
/**
|
|
1797
|
-
*
|
|
1983
|
+
* Whether data can be shared with third parties based on the visitor's
|
|
1984
|
+
* consent, the merchant's privacy configuration, and the visitor's region.
|
|
1985
|
+
* This typically applies to behavioral advertising data.
|
|
1986
|
+
*
|
|
1987
|
+
* Whether buyer data can be shared with or sold to third parties right now.
|
|
1988
|
+
* Combines the buyer's consent, the merchant's privacy configuration, and
|
|
1989
|
+
* the buyer's region into a single boolean. Check this flag, not
|
|
1990
|
+
* `visitorConsent.saleOfData`, before sharing or selling buyer data with
|
|
1991
|
+
* third parties.
|
|
1798
1992
|
*/
|
|
1799
1993
|
saleOfData: boolean;
|
|
1800
1994
|
}
|
|
1801
1995
|
|
|
1802
1996
|
export interface VisitorConsent {
|
|
1803
1997
|
/**
|
|
1804
|
-
*
|
|
1998
|
+
* The visitor's consent for analytics tracking. `true` means the visitor
|
|
1999
|
+
* actively granted consent, `false` means actively denied, and `undefined`
|
|
2000
|
+
* means no decision has been made yet.
|
|
1805
2001
|
*/
|
|
1806
2002
|
analytics?: boolean;
|
|
1807
2003
|
/**
|
|
1808
|
-
*
|
|
2004
|
+
* The visitor's consent for marketing and targeted advertising. `true` means
|
|
2005
|
+
* the visitor actively granted consent, `false` means actively denied, and
|
|
2006
|
+
* `undefined` means no decision has been made yet.
|
|
1809
2007
|
*/
|
|
1810
2008
|
marketing?: boolean;
|
|
1811
2009
|
/**
|
|
1812
|
-
*
|
|
2010
|
+
* The visitor's consent for storing preferences such as language and currency.
|
|
2011
|
+
* `true` means the visitor actively granted consent, `false` means actively
|
|
2012
|
+
* denied, and `undefined` means no decision has been made yet.
|
|
1813
2013
|
*/
|
|
1814
2014
|
preferences?: boolean;
|
|
1815
2015
|
/**
|
|
1816
|
-
*
|
|
2016
|
+
* The visitor's consent for the sale or sharing of their personal data with
|
|
2017
|
+
* third parties. `true` means the visitor actively granted consent, `false`
|
|
2018
|
+
* means actively denied, and `undefined` means no decision has been made yet.
|
|
1817
2019
|
*/
|
|
1818
2020
|
saleOfData?: boolean;
|
|
1819
2021
|
}
|
|
1820
2022
|
|
|
1821
2023
|
export interface TrackingConsentMetafield {
|
|
1822
2024
|
/**
|
|
1823
|
-
* The
|
|
1824
|
-
* length (inclusive).
|
|
2025
|
+
* The identifier for the tracking consent metafield, such as `'analyticsType'` or `'marketingType'`.
|
|
1825
2026
|
*/
|
|
1826
2027
|
key: string;
|
|
1827
2028
|
/**
|
|
1828
|
-
* The
|
|
1829
|
-
*
|
|
1830
|
-
* @example 'any string', '', or a stringified JSON object
|
|
2029
|
+
* The value stored in the tracking consent metafield, such as `'granular'` or a stringified JSON object.
|
|
1831
2030
|
*/
|
|
1832
2031
|
value: string;
|
|
1833
2032
|
}
|
|
1834
2033
|
|
|
1835
2034
|
export interface TrackingConsentMetafieldChange {
|
|
1836
2035
|
/**
|
|
1837
|
-
* The
|
|
1838
|
-
* length (inclusive).
|
|
2036
|
+
* The identifier for the tracking consent metafield to update.
|
|
1839
2037
|
*/
|
|
1840
2038
|
key: string;
|
|
1841
2039
|
/**
|
|
1842
|
-
* The
|
|
2040
|
+
* The new value to store in the metafield. Set to `null` to delete the metafield.
|
|
1843
2041
|
*
|
|
1844
|
-
*
|
|
2042
|
+
* Consent metafield values are strings, not booleans. Pass `null` to delete
|
|
2043
|
+
* a tracking consent metafield.
|
|
1845
2044
|
*/
|
|
1846
2045
|
value: string | null;
|
|
1847
2046
|
}
|
|
@@ -1850,11 +2049,14 @@ export interface VisitorConsentChange extends VisitorConsent {
|
|
|
1850
2049
|
/**
|
|
1851
2050
|
* Tracking consent metafield data to be saved.
|
|
1852
2051
|
*
|
|
1853
|
-
* If the value is `null`, the metafield
|
|
2052
|
+
* If the value is `null`, the metafield is deleted.
|
|
1854
2053
|
*
|
|
1855
2054
|
* @example `[{key: 'granularAnalytics', value: 'true'}, {key: 'granularMarketing', value: 'false'}]`
|
|
1856
2055
|
*/
|
|
1857
2056
|
metafields?: TrackingConsentMetafieldChange[];
|
|
2057
|
+
/**
|
|
2058
|
+
* Identifies this as a visitor consent change. This is the only supported change type for `applyTrackingConsentChange()`.
|
|
2059
|
+
*/
|
|
1858
2060
|
type: 'changeVisitorConsent';
|
|
1859
2061
|
}
|
|
1860
2062
|
|
|
@@ -1864,40 +2066,36 @@ export type ApplyTrackingConsentChangeType = (
|
|
|
1864
2066
|
|
|
1865
2067
|
export interface CustomerPrivacyRegion {
|
|
1866
2068
|
/**
|
|
1867
|
-
* The [ISO 3166
|
|
2069
|
+
* 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.
|
|
1868
2070
|
*
|
|
1869
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2071
|
+
* {% 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).
|
|
1870
2072
|
*
|
|
1871
|
-
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
2073
|
+
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
1872
2074
|
*/
|
|
1873
2075
|
countryCode?: CountryCode;
|
|
1874
2076
|
/**
|
|
1875
|
-
* The buyer's province
|
|
2077
|
+
* 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.
|
|
1876
2078
|
*
|
|
1877
|
-
*
|
|
2079
|
+
* {% 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).
|
|
1878
2080
|
*
|
|
1879
|
-
*
|
|
1880
|
-
*
|
|
1881
|
-
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California, or undefined if geolocation failed or only the country was detected.
|
|
2081
|
+
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California
|
|
1882
2082
|
*/
|
|
1883
2083
|
provinceCode?: string;
|
|
1884
2084
|
}
|
|
1885
2085
|
|
|
1886
2086
|
export interface CustomerPrivacy {
|
|
1887
2087
|
/**
|
|
1888
|
-
*
|
|
2088
|
+
* 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.
|
|
1889
2089
|
*/
|
|
1890
2090
|
allowedProcessing: AllowedProcessing;
|
|
1891
2091
|
/**
|
|
1892
|
-
*
|
|
2092
|
+
* The tracking consent metafields that have been stored for this visitor. These contain app-specific consent data beyond the standard categories.
|
|
1893
2093
|
*
|
|
1894
2094
|
* @example `[{key: 'analyticsType', value: 'granular'}, {key: 'marketingType', value: 'granular'}]`, or `[]`
|
|
1895
2095
|
*/
|
|
1896
2096
|
metafields: TrackingConsentMetafield[];
|
|
1897
2097
|
/**
|
|
1898
|
-
*
|
|
1899
|
-
* *
|
|
1900
|
-
* @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.
|
|
2098
|
+
* 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).
|
|
1901
2099
|
*/
|
|
1902
2100
|
visitorConsent: VisitorConsent;
|
|
1903
2101
|
/**
|
|
@@ -1907,15 +2105,15 @@ export interface CustomerPrivacy {
|
|
|
1907
2105
|
*/
|
|
1908
2106
|
shouldShowBanner: boolean;
|
|
1909
2107
|
/**
|
|
1910
|
-
* Whether the visitor is in a region
|
|
2108
|
+
* 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.
|
|
1911
2109
|
*/
|
|
1912
2110
|
saleOfDataRegion: boolean;
|
|
1913
2111
|
/**
|
|
1914
|
-
*
|
|
2112
|
+
* The visitor's geographic location, used to determine whether more granular consent controls should be displayed based on regional privacy regulations.
|
|
1915
2113
|
*
|
|
1916
2114
|
* @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.
|
|
1917
2115
|
*
|
|
1918
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2116
|
+
* {% 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).
|
|
1919
2117
|
*/
|
|
1920
2118
|
region?: CustomerPrivacyRegion;
|
|
1921
2119
|
}
|
|
@@ -1929,7 +2127,7 @@ export type TrackingConsentChangeResult =
|
|
|
1929
2127
|
*/
|
|
1930
2128
|
export interface TrackingConsentChangeResultSuccess {
|
|
1931
2129
|
/**
|
|
1932
|
-
*
|
|
2130
|
+
* Indicates that the tracking consent update was applied successfully.
|
|
1933
2131
|
*/
|
|
1934
2132
|
type: 'success';
|
|
1935
2133
|
}
|
|
@@ -1940,105 +2138,123 @@ export interface TrackingConsentChangeResultSuccess {
|
|
|
1940
2138
|
*/
|
|
1941
2139
|
export interface TrackingConsentChangeResultError {
|
|
1942
2140
|
/**
|
|
1943
|
-
*
|
|
2141
|
+
* Indicates that the tracking consent update couldn't be applied. Check the `message` property for details.
|
|
1944
2142
|
*/
|
|
1945
2143
|
type: 'error';
|
|
1946
2144
|
|
|
1947
2145
|
/**
|
|
1948
2146
|
* A message that explains the error. This message is useful for debugging.
|
|
1949
|
-
* It
|
|
1950
|
-
* to the buyer.
|
|
2147
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1951
2148
|
*/
|
|
1952
2149
|
message: string;
|
|
1953
2150
|
}
|
|
1954
2151
|
|
|
1955
2152
|
export interface CartInstructions {
|
|
1956
2153
|
/**
|
|
1957
|
-
*
|
|
2154
|
+
* Whether the extension can update custom attributes using `applyAttributeChange()`.
|
|
1958
2155
|
*/
|
|
1959
2156
|
attributes: AttributesCartInstructions;
|
|
1960
2157
|
|
|
1961
2158
|
/**
|
|
1962
|
-
*
|
|
2159
|
+
* Whether the extension can modify the shipping address using `applyShippingAddressChange()`.
|
|
1963
2160
|
*/
|
|
1964
2161
|
delivery: DeliveryCartInstructions;
|
|
1965
2162
|
|
|
1966
2163
|
/**
|
|
1967
|
-
*
|
|
2164
|
+
* Whether the extension can add or remove discount codes using `applyDiscountCodeChange()`.
|
|
1968
2165
|
*/
|
|
1969
2166
|
discounts: DiscountsCartInstructions;
|
|
1970
2167
|
|
|
1971
2168
|
/**
|
|
1972
|
-
*
|
|
2169
|
+
* Whether the extension can add, remove, or update cart lines using `applyCartLinesChange()`.
|
|
1973
2170
|
*/
|
|
1974
2171
|
lines: CartLinesCartInstructions;
|
|
1975
2172
|
|
|
1976
2173
|
/**
|
|
1977
|
-
*
|
|
2174
|
+
* Whether the extension can add, update, or delete cart metafields using `applyMetafieldChange()`.
|
|
1978
2175
|
*/
|
|
1979
2176
|
metafields: MetafieldsCartInstructions;
|
|
1980
2177
|
|
|
1981
2178
|
/**
|
|
1982
|
-
*
|
|
2179
|
+
* Whether the extension can update the order note using `applyNoteChange()`.
|
|
1983
2180
|
*/
|
|
1984
2181
|
notes: NotesCartInstructions;
|
|
1985
2182
|
}
|
|
1986
2183
|
|
|
1987
2184
|
export interface AttributesCartInstructions {
|
|
1988
2185
|
/**
|
|
1989
|
-
*
|
|
2186
|
+
* Whether attributes can be updated using `applyAttributeChange()`. When
|
|
2187
|
+
* `false`, the checkout configuration doesn't allow attribute changes.
|
|
2188
|
+
* Even when `true`, calls to `applyAttributeChange()` can still fail
|
|
2189
|
+
* during accelerated checkout (Apple Pay, Google Pay).
|
|
1990
2190
|
*/
|
|
1991
2191
|
canUpdateAttributes: boolean;
|
|
1992
2192
|
}
|
|
1993
2193
|
|
|
1994
2194
|
export interface DeliveryCartInstructions {
|
|
1995
2195
|
/**
|
|
1996
|
-
*
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
2196
|
+
* Whether the shipping address can be modified using
|
|
2197
|
+
* `applyShippingAddressChange()`. When `false`, the buyer is using an
|
|
2198
|
+
* accelerated checkout flow (Apple Pay, Google Pay) where the address
|
|
2199
|
+
* can't be changed.
|
|
1999
2200
|
*/
|
|
2000
2201
|
canSelectCustomAddress: boolean;
|
|
2001
2202
|
}
|
|
2002
2203
|
|
|
2003
2204
|
export interface DiscountsCartInstructions {
|
|
2004
2205
|
/**
|
|
2005
|
-
*
|
|
2206
|
+
* Whether discount codes can be updated using `applyDiscountCodeChange()`.
|
|
2207
|
+
* When `false`, the checkout configuration doesn't allow discount code
|
|
2208
|
+
* changes. Even when `true`, calls to `applyDiscountCodeChange()` can
|
|
2209
|
+
* still fail during accelerated checkout (Apple Pay, Google Pay).
|
|
2006
2210
|
*/
|
|
2007
2211
|
canUpdateDiscountCodes: boolean;
|
|
2008
2212
|
}
|
|
2009
2213
|
|
|
2010
2214
|
export interface CartLinesCartInstructions {
|
|
2011
2215
|
/**
|
|
2012
|
-
*
|
|
2216
|
+
* Whether new cart lines can be added using `applyCartLinesChange()`. When
|
|
2217
|
+
* `false`, the checkout configuration doesn't allow adding lines (for
|
|
2218
|
+
* example, draft orders). Even when `true`, calls can still fail during
|
|
2219
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
2013
2220
|
*/
|
|
2014
2221
|
canAddCartLine: boolean;
|
|
2015
2222
|
|
|
2016
2223
|
/**
|
|
2017
|
-
*
|
|
2224
|
+
* Whether cart lines can be removed using `applyCartLinesChange()`. When
|
|
2225
|
+
* `false`, the checkout configuration doesn't allow removing lines.
|
|
2226
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2018
2227
|
*/
|
|
2019
2228
|
canRemoveCartLine: boolean;
|
|
2020
2229
|
|
|
2021
2230
|
/**
|
|
2022
|
-
*
|
|
2231
|
+
* Whether cart lines can be updated using `applyCartLinesChange()`. When
|
|
2232
|
+
* `false`, the checkout configuration doesn't allow updating lines.
|
|
2233
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2023
2234
|
*/
|
|
2024
2235
|
canUpdateCartLine: boolean;
|
|
2025
2236
|
}
|
|
2026
2237
|
|
|
2027
2238
|
export interface MetafieldsCartInstructions {
|
|
2028
2239
|
/**
|
|
2029
|
-
*
|
|
2240
|
+
* Whether the extension can add or update cart metafields using
|
|
2241
|
+
* `applyMetafieldChange()`.
|
|
2030
2242
|
*/
|
|
2031
2243
|
canSetCartMetafields: boolean;
|
|
2032
2244
|
|
|
2033
2245
|
/**
|
|
2034
|
-
*
|
|
2246
|
+
* Whether the extension can delete cart metafields using
|
|
2247
|
+
* `applyMetafieldChange()`.
|
|
2035
2248
|
*/
|
|
2036
2249
|
canDeleteCartMetafield: boolean;
|
|
2037
2250
|
}
|
|
2038
2251
|
|
|
2039
2252
|
export interface NotesCartInstructions {
|
|
2040
2253
|
/**
|
|
2041
|
-
*
|
|
2254
|
+
* Whether the order note can be updated using `applyNoteChange()`. When
|
|
2255
|
+
* `false`, the checkout configuration doesn't allow note changes. Even
|
|
2256
|
+
* when `true`, calls to `applyNoteChange()` can still fail during
|
|
2257
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
2042
2258
|
*/
|
|
2043
2259
|
canUpdateNote: boolean;
|
|
2044
2260
|
}
|