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