@shopify/ui-extensions 2026.4.0-rc.3 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2 -0
- package/build/cjs/surfaces/checkout/preact/market.js +1 -0
- package/build/cjs/surfaces/checkout/preact/metafields.js +1 -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 +3 -16
- package/build/cjs/surfaces/checkout/style/style.js +1 -0
- package/build/cjs/surfaces/point-of-sale/types/storage.js +4 -0
- 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 +2 -0
- package/build/esm/surfaces/checkout/preact/market.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/metafields.mjs +1 -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 +3 -16
- package/build/esm/surfaces/checkout/style/style.mjs +1 -0
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +4 -0
- 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 +2 -0
- package/build/esnext/surfaces/checkout/preact/market.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/metafields.esnext +1 -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 +3 -16
- package/build/esnext/surfaces/checkout/style/style.esnext +1 -0
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +4 -0
- package/build/ts/shared.d.ts +32 -12
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +2 -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 +7 -4
- 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 +13 -7
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts +1 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +3 -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/discount-function-settings.d.ts +1 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +7 -3
- 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 +13 -7
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intent-render.d.ts +24 -0
- package/build/ts/surfaces/admin/api/intents/intent-render.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +44 -8
- package/build/ts/surfaces/admin/api/intents/intents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts +5 -3
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +8 -3
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts +1 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +15 -7
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts +4 -2
- 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 +4 -2
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +36 -17
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/shared.d.ts +2 -0
- package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard-rendering.d.ts +3 -0
- package/build/ts/surfaces/admin/api/standard/standard-rendering.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +4 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/storage.d.ts +4 -0
- package/build/ts/surfaces/admin/api/standard/storage.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +6 -0
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +6 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +6 -0
- package/build/ts/surfaces/admin/components/Avatar.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Banner.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Box.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Button.d.ts +14 -0
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +12 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +4 -2
- package/build/ts/surfaces/admin/components/Choice.d.ts +10 -2
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +12 -2
- package/build/ts/surfaces/admin/components/Clickable.d.ts +16 -4
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +11 -0
- package/build/ts/surfaces/admin/components/ColorField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +9 -0
- package/build/ts/surfaces/admin/components/DateField.d.ts +11 -0
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +10 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +7 -0
- package/build/ts/surfaces/admin/components/DropZone.d.ts +8 -4
- package/build/ts/surfaces/admin/components/EmailField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Form.d.ts +10 -0
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Grid.d.ts +16 -0
- package/build/ts/surfaces/admin/components/GridItem.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Heading.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Icon.d.ts +6 -3
- package/build/ts/surfaces/admin/components/Image.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Link.d.ts +13 -3
- package/build/ts/surfaces/admin/components/ListItem.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Menu.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Modal.d.ts +8 -4
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +13 -0
- package/build/ts/surfaces/admin/components/NumberField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Option.d.ts +10 -2
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +10 -2
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Page.d.ts +4 -2
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +8 -0
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +8 -0
- package/build/ts/surfaces/admin/components/SearchField.d.ts +13 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Select.d.ts +14 -2
- package/build/ts/surfaces/admin/components/Spinner.d.ts +7 -0
- package/build/ts/surfaces/admin/components/Stack.d.ts +16 -0
- package/build/ts/surfaces/admin/components/Switch.d.ts +12 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +15 -0
- package/build/ts/surfaces/admin/components/TableBody.d.ts +8 -0
- package/build/ts/surfaces/admin/components/TableCell.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +8 -0
- package/build/ts/surfaces/admin/components/TableRow.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Text.d.ts +19 -0
- package/build/ts/surfaces/admin/components/TextArea.d.ts +12 -0
- package/build/ts/surfaces/admin/components/TextField.d.ts +13 -0
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +11 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +14 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +267 -0
- package/build/ts/surfaces/admin/extension-targets.d.ts +8 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +61 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +3 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -0
- 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 +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +1 -0
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +5 -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 +258 -122
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +33 -6
- 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/payment/payment-option-item.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -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/redeemable/redeemable.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +79 -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 +6 -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 +18 -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 +659 -425
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +38 -9
- package/build/ts/surfaces/checkout/components/Badge.d.ts +46 -3
- package/build/ts/surfaces/checkout/components/Banner.d.ts +64 -9
- package/build/ts/surfaces/checkout/components/Box.d.ts +52 -0
- package/build/ts/surfaces/checkout/components/Button.d.ts +16 -3
- package/build/ts/surfaces/checkout/components/Chat.d.ts +20 -0
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Chip.d.ts +8 -0
- package/build/ts/surfaces/checkout/components/Choice.d.ts +8 -0
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +37 -7
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +23 -5
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +16 -2
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/DateField.d.ts +31 -6
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +28 -5
- package/build/ts/surfaces/checkout/components/Details.d.ts +14 -0
- package/build/ts/surfaces/checkout/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +22 -3
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Form.d.ts +16 -1
- package/build/ts/surfaces/checkout/components/Grid.d.ts +139 -0
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +57 -0
- package/build/ts/surfaces/checkout/components/Heading.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Icon.d.ts +49 -4
- package/build/ts/surfaces/checkout/components/Image.d.ts +43 -1
- package/build/ts/surfaces/checkout/components/Link.d.ts +16 -3
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Map.d.ts +68 -6
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +39 -8
- package/build/ts/surfaces/checkout/components/Modal.d.ts +52 -8
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +23 -8
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Option.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +20 -6
- package/build/ts/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/checkout/components/Progress.d.ts +29 -0
- package/build/ts/surfaces/checkout/components/QRCode.d.ts +28 -3
- package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +57 -0
- package/build/ts/surfaces/checkout/components/Section.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select.d.ts +21 -6
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +18 -0
- package/build/ts/surfaces/checkout/components/Stack.d.ts +112 -0
- package/build/ts/surfaces/checkout/components/Summary.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Text.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +23 -8
- package/build/ts/surfaces/checkout/components/TextField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Time.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +616 -605
- package/build/ts/surfaces/checkout/components/components.d.ts +568 -288
- package/build/ts/surfaces/checkout/extension-targets.d.ts +13 -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 +2 -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/metafields.d.ts +1 -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 +11 -19
- 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 +20 -8
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.chat.render.d.ts +2 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.chat.render.d.ts +2 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +3 -0
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +231 -3
- 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 +454 -295
- 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 +209 -137
- 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 +84 -68
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +38 -9
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +43 -15
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +46 -3
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +64 -9
- package/build/ts/surfaces/customer-account/components/Box.d.ts +52 -0
- package/build/ts/surfaces/customer-account/components/Button.d.ts +16 -3
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Chat.d.ts +20 -0
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +8 -0
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +8 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +37 -7
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +23 -5
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +16 -2
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +31 -6
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +28 -5
- package/build/ts/surfaces/customer-account/components/Details.d.ts +14 -0
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +22 -3
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Form.d.ts +16 -1
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +139 -0
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +57 -0
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +49 -4
- package/build/ts/surfaces/customer-account/components/Image.d.ts +43 -1
- package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/build/ts/surfaces/customer-account/components/Link.d.ts +16 -3
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Map.d.ts +68 -6
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +39 -8
- package/build/ts/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +52 -8
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +23 -8
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Option.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Page.d.ts +5 -5
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +20 -6
- package/build/ts/surfaces/customer-account/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +29 -0
- package/build/ts/surfaces/customer-account/components/QRCode.d.ts +28 -3
- package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +57 -0
- package/build/ts/surfaces/customer-account/components/Section.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Select.d.ts +21 -6
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +18 -0
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +112 -0
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Text.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +23 -8
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Time.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +616 -605
- package/build/ts/surfaces/customer-account/components/components.d.ts +568 -288
- 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/customer-account/extension-targets.d.ts +8 -0
- package/build/ts/surfaces/customer-account/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +4 -0
- 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 +3 -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 -0
- 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 +7 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +1 -0
- 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 +2 -0
- 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 +9 -0
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +5 -0
- 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 +5 -0
- 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 +5 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -0
- 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 +5 -0
- 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 +2 -0
- 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 +5 -0
- 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 +10 -0
- 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 +12 -1
- 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 +5 -0
- 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/standard/standard-api.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +1 -0
- 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 +5 -0
- 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/Badge.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/components/Embed.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/EmptyState.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Link.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Spinner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Switch.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Tab.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TabList.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TabPanel.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Tabs.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +135 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +3 -2
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +1 -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 +1 -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 +1 -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 +1 -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 +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +1 -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/cart.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/order.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/product.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/shared.ts +32 -12
- package/src/surfaces/admin/api/action/action.ts +1 -0
- package/src/surfaces/admin/api/block/block.ts +2 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +7 -3
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +13 -6
- package/src/surfaces/admin/api/checkout-rules/validation-settings.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +3 -0
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.ts +1 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +7 -2
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +13 -6
- package/src/surfaces/admin/api/intents/intent-render.ts +26 -0
- package/src/surfaces/admin/api/intents/intents.ts +49 -8
- package/src/surfaces/admin/api/order-routing-rule/data.ts +5 -2
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +8 -3
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +1 -0
- package/src/surfaces/admin/api/picker/picker.ts +15 -6
- package/src/surfaces/admin/api/print-action/print-action.ts +1 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +4 -1
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +4 -1
- package/src/surfaces/admin/api/purchase-options-card-action.ts +1 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +36 -17
- package/src/surfaces/admin/api/shared.ts +2 -0
- package/src/surfaces/admin/api/standard/standard-rendering.ts +3 -0
- package/src/surfaces/admin/api/standard/standard.ts +4 -1
- package/src/surfaces/admin/api/standard/storage.ts +4 -0
- package/src/surfaces/admin/api.ts +1 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +6 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +6 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +6 -0
- package/src/surfaces/admin/components/Avatar.d.ts +9 -0
- package/src/surfaces/admin/components/Badge.d.ts +9 -0
- package/src/surfaces/admin/components/Banner.d.ts +11 -0
- package/src/surfaces/admin/components/Box.d.ts +14 -0
- package/src/surfaces/admin/components/Button.d.ts +14 -0
- package/src/surfaces/admin/components/ButtonGroup.d.ts +8 -0
- package/src/surfaces/admin/components/Checkbox.d.ts +12 -1
- package/src/surfaces/admin/components/Chip.d.ts +4 -2
- package/src/surfaces/admin/components/Choice.d.ts +10 -2
- package/src/surfaces/admin/components/ChoiceList.d.ts +12 -2
- package/src/surfaces/admin/components/Clickable.d.ts +16 -4
- package/src/surfaces/admin/components/ClickableChip.d.ts +11 -0
- package/src/surfaces/admin/components/ColorField.d.ts +12 -0
- package/src/surfaces/admin/components/ColorPicker.d.ts +9 -0
- package/src/surfaces/admin/components/DateField.d.ts +11 -0
- package/src/surfaces/admin/components/DatePicker.d.ts +10 -1
- package/src/surfaces/admin/components/Divider.d.ts +7 -0
- package/src/surfaces/admin/components/DropZone.d.ts +8 -4
- package/src/surfaces/admin/components/EmailField.d.ts +12 -0
- package/src/surfaces/admin/components/Form.d.ts +10 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +12 -0
- package/src/surfaces/admin/components/Grid.d.ts +16 -0
- package/src/surfaces/admin/components/GridItem.d.ts +15 -0
- package/src/surfaces/admin/components/Heading.d.ts +8 -0
- package/src/surfaces/admin/components/Icon.d.ts +6 -3
- package/src/surfaces/admin/components/Image.d.ts +15 -0
- package/src/surfaces/admin/components/Link.d.ts +13 -3
- package/src/surfaces/admin/components/ListItem.d.ts +8 -0
- package/src/surfaces/admin/components/Menu.d.ts +11 -0
- package/src/surfaces/admin/components/Modal.d.ts +8 -4
- package/src/surfaces/admin/components/MoneyField.d.ts +13 -0
- package/src/surfaces/admin/components/NumberField.d.ts +12 -0
- package/src/surfaces/admin/components/Option.d.ts +10 -2
- package/src/surfaces/admin/components/OptionGroup.d.ts +10 -2
- package/src/surfaces/admin/components/OrderedList.d.ts +8 -0
- package/src/surfaces/admin/components/Page.d.ts +4 -2
- package/src/surfaces/admin/components/Paragraph.d.ts +8 -0
- package/src/surfaces/admin/components/PasswordField.d.ts +12 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +8 -0
- package/src/surfaces/admin/components/SearchField.d.ts +13 -1
- package/src/surfaces/admin/components/Section.d.ts +9 -0
- package/src/surfaces/admin/components/Select.d.ts +14 -2
- package/src/surfaces/admin/components/Spinner.d.ts +7 -0
- package/src/surfaces/admin/components/Stack.d.ts +16 -0
- package/src/surfaces/admin/components/Switch.d.ts +12 -1
- package/src/surfaces/admin/components/Table.d.ts +15 -0
- package/src/surfaces/admin/components/TableBody.d.ts +8 -0
- package/src/surfaces/admin/components/TableCell.d.ts +9 -0
- package/src/surfaces/admin/components/TableHeader.d.ts +9 -0
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +8 -0
- package/src/surfaces/admin/components/TableRow.d.ts +8 -0
- package/src/surfaces/admin/components/Text.d.ts +19 -0
- package/src/surfaces/admin/components/TextArea.d.ts +12 -0
- package/src/surfaces/admin/components/TextField.d.ts +13 -0
- package/src/surfaces/admin/components/Thumbnail.d.ts +9 -0
- package/src/surfaces/admin/components/Tooltip.d.ts +11 -0
- package/src/surfaces/admin/components/URLField.d.ts +12 -0
- package/src/surfaces/admin/components/UnorderedList.d.ts +14 -0
- package/src/surfaces/admin/components/shared.d.ts +267 -0
- package/src/surfaces/admin/components.d.ts +700 -0
- package/src/surfaces/admin/extension-targets.ts +12 -0
- package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +2 -0
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +3 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -0
- package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +2 -0
- package/src/surfaces/checkout/api/announcement/announcement.ts +1 -0
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +5 -1
- package/src/surfaces/checkout/api/checkout/checkout.ts +258 -122
- package/src/surfaces/checkout/api/docs.ts +34 -1
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +12 -5
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +7 -0
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -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/redeemable/redeemable.ts +7 -0
- package/src/surfaces/checkout/api/shared.ts +79 -31
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +6 -4
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +18 -12
- package/src/surfaces/checkout/api/standard/standard.ts +661 -425
- package/src/surfaces/checkout/components/Abbreviation.d.ts +4 -0
- package/src/surfaces/checkout/components/Announcement.d.ts +38 -9
- package/src/surfaces/checkout/components/Badge.d.ts +46 -3
- package/src/surfaces/checkout/components/Banner.d.ts +64 -9
- package/src/surfaces/checkout/components/Box.d.ts +52 -0
- package/src/surfaces/checkout/components/Button.d.ts +16 -3
- package/src/surfaces/checkout/components/Chat.d.ts +20 -0
- package/src/surfaces/checkout/components/Checkbox.d.ts +17 -2
- package/src/surfaces/checkout/components/Chip.d.ts +8 -0
- package/src/surfaces/checkout/components/Choice.d.ts +8 -0
- package/src/surfaces/checkout/components/ChoiceList.d.ts +17 -2
- package/src/surfaces/checkout/components/Clickable.d.ts +37 -7
- package/src/surfaces/checkout/components/ClickableChip.d.ts +23 -5
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +16 -2
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +17 -2
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +29 -10
- package/src/surfaces/checkout/components/DateField.d.ts +31 -6
- package/src/surfaces/checkout/components/DatePicker.d.ts +28 -5
- package/src/surfaces/checkout/components/Details.d.ts +14 -0
- package/src/surfaces/checkout/components/Divider.d.ts +1 -0
- package/src/surfaces/checkout/components/DropZone.d.ts +22 -3
- package/src/surfaces/checkout/components/EmailField.d.ts +29 -10
- package/src/surfaces/checkout/components/Form.d.ts +16 -1
- package/src/surfaces/checkout/components/Grid.d.ts +139 -0
- package/src/surfaces/checkout/components/GridItem.d.ts +57 -0
- package/src/surfaces/checkout/components/Heading.d.ts +4 -0
- package/src/surfaces/checkout/components/Icon.d.ts +49 -4
- package/src/surfaces/checkout/components/Image.d.ts +43 -1
- package/src/surfaces/checkout/components/Link.d.ts +16 -3
- package/src/surfaces/checkout/components/ListItem.d.ts +4 -0
- package/src/surfaces/checkout/components/Map.d.ts +68 -6
- package/src/surfaces/checkout/components/MapMarker.d.ts +39 -8
- package/src/surfaces/checkout/components/Modal.d.ts +52 -8
- package/src/surfaces/checkout/components/MoneyField.d.ts +23 -8
- package/src/surfaces/checkout/components/NumberField.d.ts +29 -10
- package/src/surfaces/checkout/components/Option.d.ts +4 -0
- package/src/surfaces/checkout/components/OrderedList.d.ts +4 -0
- package/src/surfaces/checkout/components/Paragraph.d.ts +4 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +29 -10
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/src/surfaces/checkout/components/PhoneField.d.ts +29 -10
- package/src/surfaces/checkout/components/Popover.d.ts +39 -22
- package/src/surfaces/checkout/components/PressButton.d.ts +20 -6
- package/src/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/src/surfaces/checkout/components/Progress.d.ts +29 -0
- package/src/surfaces/checkout/components/QRCode.d.ts +28 -3
- package/src/surfaces/checkout/components/QueryContainer.d.ts +1 -0
- package/src/surfaces/checkout/components/ScrollBox.d.ts +57 -0
- package/src/surfaces/checkout/components/Section.d.ts +4 -0
- package/src/surfaces/checkout/components/Select.d.ts +21 -6
- package/src/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -0
- package/src/surfaces/checkout/components/Spinner.d.ts +18 -0
- package/src/surfaces/checkout/components/Stack.d.ts +112 -0
- package/src/surfaces/checkout/components/Summary.d.ts +4 -0
- package/src/surfaces/checkout/components/Switch.d.ts +17 -2
- package/src/surfaces/checkout/components/Text.d.ts +4 -0
- package/src/surfaces/checkout/components/TextArea.d.ts +23 -8
- package/src/surfaces/checkout/components/TextField.d.ts +29 -10
- package/src/surfaces/checkout/components/Time.d.ts +4 -0
- package/src/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/src/surfaces/checkout/components/UnorderedList.d.ts +4 -0
- package/src/surfaces/checkout/components/UrlField.d.ts +29 -10
- package/src/surfaces/checkout/components/components-shared.d.ts +616 -605
- package/src/surfaces/checkout/components/components.d.ts +568 -288
- package/src/surfaces/checkout/extension-targets.ts +13 -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 +2 -0
- package/src/surfaces/checkout/preact/market.ts +1 -0
- package/src/surfaces/checkout/preact/metafields.ts +1 -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 +11 -21
- package/src/surfaces/checkout/style/style.ts +1 -0
- package/src/surfaces/checkout/style/types.ts +20 -7
- package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +3 -0
- package/src/surfaces/customer-account/api/docs.ts +236 -5
- package/src/surfaces/customer-account/api/order-status/order-status.ts +461 -295
- package/src/surfaces/customer-account/api/shared.ts +210 -137
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +84 -68
- package/src/surfaces/customer-account/components/Avatar.d.ts +43 -15
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/src/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/src/surfaces/customer-account/components/Page.d.ts +5 -5
- package/src/surfaces/customer-account/components/Section.d.ts +3 -7
- package/src/surfaces/customer-account/components/shared.ts +23 -5
- package/src/surfaces/customer-account/components.d.ts +93 -0
- package/src/surfaces/customer-account/extension-targets.ts +8 -0
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/camera-api/camera-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +7 -0
- package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +1 -0
- package/src/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +12 -1
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +1 -0
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +5 -0
- package/src/surfaces/point-of-sale/components/Badge.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Banner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Box.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Button.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Choice.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/DateField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Divider.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +8 -0
- package/src/surfaces/point-of-sale/components/Embed.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/EmptyState.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Heading.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Icon.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Image.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Link.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Modal.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Page.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Section.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Spinner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Stack.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Switch.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Tab.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TabList.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TabPanel.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Tabs.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Text.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +8 -0
- package/src/surfaces/point-of-sale/components/TextField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Tile.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +135 -0
- package/src/surfaces/point-of-sale/components/targets/ActionExtensionComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/BasicComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/SmartGridComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components.d.ts +286 -0
- package/src/surfaces/point-of-sale/event/data/BaseApi.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +7 -2
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +2 -0
- package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +1 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +18 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +1 -0
- package/src/surfaces/point-of-sale/types/cart.ts +13 -0
- package/src/surfaces/point-of-sale/types/country-code.ts +1 -0
- package/src/surfaces/point-of-sale/types/device.ts +1 -0
- package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +1 -0
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +1 -0
- package/src/surfaces/point-of-sale/types/money.ts +2 -0
- package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -0
- package/src/surfaces/point-of-sale/types/order.ts +2 -0
- package/src/surfaces/point-of-sale/types/paginated-result.ts +1 -0
- package/src/surfaces/point-of-sale/types/payment.ts +2 -0
- package/src/surfaces/point-of-sale/types/pin-pad.ts +5 -0
- package/src/surfaces/point-of-sale/types/product.ts +5 -0
- package/src/surfaces/point-of-sale/types/session.ts +1 -0
- package/src/surfaces/point-of-sale/types/shipping-line.ts +3 -0
- package/src/surfaces/point-of-sale/types/storage.ts +4 -0
- package/src/surfaces/point-of-sale/types/tax-line.ts +1 -0
- package/src/surfaces/point-of-sale/types/transaction-type.ts +1 -0
|
@@ -26,14 +26,10 @@ export {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Persists key-value data across customer sessions for a specific extension target. Use storage to save preferences, dismiss states, or cached data that should survive page reloads without requiring a backend call.
|
|
30
30
|
*
|
|
31
|
-
* Stored data is only available to this specific app
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* The storage backend is implemented with `localStorage` and
|
|
35
|
-
* should persist for ... days
|
|
36
|
-
* However, data persistence isn't guaranteed.
|
|
31
|
+
* Stored data is only available to this specific app but can be shared across multiple extension targets. The storage backend is implemented with `localStorage` and data persistence isn't guaranteed.
|
|
32
|
+
* @publicDocs
|
|
37
33
|
*/
|
|
38
34
|
export interface Storage {
|
|
39
35
|
/**
|
|
@@ -59,19 +55,22 @@ export interface Storage {
|
|
|
59
55
|
delete(key: string): Promise<void>;
|
|
60
56
|
}
|
|
61
57
|
|
|
58
|
+
/**
|
|
59
|
+
* A language identifier following the [BCP-47 standard](https://en.wikipedia.org/wiki/IETF_language_tag).
|
|
60
|
+
* @publicDocs
|
|
61
|
+
*/
|
|
62
62
|
export interface Language {
|
|
63
63
|
/**
|
|
64
|
-
* The BCP-47 language tag.
|
|
64
|
+
* The [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag that identifies the language. This is a standardized code that may 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.
|
|
65
65
|
*
|
|
66
66
|
* @example 'en' for English, or 'en-US' for English local to United States.
|
|
67
|
-
* @see https://en.wikipedia.org/wiki/IETF_language_tag
|
|
68
|
-
* @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
69
67
|
*/
|
|
70
68
|
isoCode: string;
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
72
|
+
* Translates a key from your extension's locale files into a localized string. Supports interpolation with placeholder replacements and pluralization via a `count` option.
|
|
73
|
+
* @publicDocs
|
|
75
74
|
*/
|
|
76
75
|
export interface I18nTranslate {
|
|
77
76
|
/**
|
|
@@ -87,6 +86,10 @@ export interface I18nTranslate {
|
|
|
87
86
|
: (string | ReplacementType)[];
|
|
88
87
|
}
|
|
89
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Utilities for translating strings, formatting currencies, numbers, and dates according to the buyer's locale. Use the I18n API alongside the Localization API to build fully localized extensions.
|
|
91
|
+
* @publicDocs
|
|
92
|
+
*/
|
|
90
93
|
export interface I18n {
|
|
91
94
|
/**
|
|
92
95
|
* Returns a localized number.
|
|
@@ -115,13 +118,9 @@ export interface I18n {
|
|
|
115
118
|
) => string;
|
|
116
119
|
|
|
117
120
|
/**
|
|
118
|
-
* Returns a localized date value.
|
|
119
|
-
*
|
|
120
|
-
* This function behaves like the standard `Intl.DateTimeFormatOptions()` and uses
|
|
121
|
-
* the buyer's locale by default. Formatting options can be passed in as
|
|
122
|
-
* options.
|
|
121
|
+
* Returns a localized date value. Behaves like the standard `Intl.DateTimeFormat()` and uses the buyer's locale by default.
|
|
123
122
|
*
|
|
124
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/
|
|
123
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
|
|
125
124
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
126
125
|
*
|
|
127
126
|
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
@@ -144,7 +143,8 @@ export interface I18n {
|
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
/**
|
|
147
|
-
*
|
|
146
|
+
* Metadata about the running extension, including its API version, target, capabilities, and editor context. Use this to read configuration details or conditionally render content based on where the extension is running.
|
|
147
|
+
* @publicDocs
|
|
148
148
|
*/
|
|
149
149
|
export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
150
150
|
/**
|
|
@@ -156,18 +156,18 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* The allowed capabilities of the extension, defined
|
|
159
|
-
* in your [shopify.
|
|
159
|
+
* in your [`shopify.extension.toml`](/docs/api/customer-account-ui-extensions/{API_VERSION}/configuration) file.
|
|
160
160
|
*
|
|
161
|
-
* * [`api_access`](
|
|
161
|
+
* * [`api_access`](/docs/api/customer-account-ui-extensions/{API_VERSION}/configuration#api-access): the extension can access the Storefront API.
|
|
162
162
|
*
|
|
163
|
-
* * [`network_access`](
|
|
163
|
+
* * [`network_access`](/docs/api/customer-account-ui-extensions/{API_VERSION}/configuration#network-access): the extension can make external network calls.
|
|
164
164
|
*/
|
|
165
165
|
capabilities: SubscribableSignalLike<Capability[]>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* Information about the editor where the extension is being rendered.
|
|
169
169
|
*
|
|
170
|
-
* The value is undefined if the extension
|
|
170
|
+
* The value is undefined if the extension isn't rendering in an editor.
|
|
171
171
|
*/
|
|
172
172
|
editor?: Editor;
|
|
173
173
|
|
|
@@ -175,12 +175,11 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
175
175
|
* Whether your extension is currently rendered to the screen.
|
|
176
176
|
*
|
|
177
177
|
* Shopify might render your extension before it's visible in the UI,
|
|
178
|
-
* typically to pre-render extensions that will appear on a later
|
|
179
|
-
* checkout.
|
|
178
|
+
* typically to pre-render extensions that will appear on a later page.
|
|
180
179
|
*
|
|
181
180
|
* Your extension might also continue to run after the buyer has navigated away
|
|
182
181
|
* from where it was rendered. The extension continues running so that
|
|
183
|
-
*
|
|
182
|
+
* it's immediately available if the buyer navigates back.
|
|
184
183
|
*/
|
|
185
184
|
rendered: SubscribableSignalLike<boolean>;
|
|
186
185
|
|
|
@@ -191,12 +190,10 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
191
190
|
|
|
192
191
|
/**
|
|
193
192
|
* The identifier that specifies where in Shopify’s UI your code is being
|
|
194
|
-
* injected. This will be one of the targets you have included in your
|
|
195
|
-
* extension’s configuration file.
|
|
193
|
+
* injected. This will be one of the [targets](/docs/api/customer-account-ui-extensions/{API_VERSION}/configuration#targets) you have included in your
|
|
194
|
+
* extension’s configuration file. For more information, refer to the [extension targets overview](/docs/api/customer-account-ui-extensions/{API_VERSION}/extension-targets-overview).
|
|
196
195
|
*
|
|
197
196
|
* @example 'customer-account.order-status.block.render'
|
|
198
|
-
* @see https://shopify.dev/docs/api/customer-account-ui-extensions/extension-targets-overview
|
|
199
|
-
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
200
197
|
*/
|
|
201
198
|
target: Target;
|
|
202
199
|
|
|
@@ -210,6 +207,10 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
210
207
|
version?: string;
|
|
211
208
|
}
|
|
212
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Information about the editor environment when an extension is rendered inside the editor. The value is `undefined` when the extension is not rendering in an editor.
|
|
212
|
+
* @publicDocs
|
|
213
|
+
*/
|
|
213
214
|
export interface Editor {
|
|
214
215
|
/**
|
|
215
216
|
* Indicates whether the extension is rendering in the checkout editor.
|
|
@@ -219,56 +220,67 @@ export interface Editor {
|
|
|
219
220
|
|
|
220
221
|
export type ValueOrPromise<T> = T extends PromiseLike<any> ? T : T | Promise<T>;
|
|
221
222
|
|
|
223
|
+
/**
|
|
224
|
+
* A selling plan represents a recurring or deferred purchasing option for a product, such as a [subscription](/docs/apps/build/purchase-options/subscriptions), pre-order, or try-before-you-buy arrangement. Selling plans are configured by the merchant and define how and when the buyer is charged.
|
|
225
|
+
* @publicDocs
|
|
226
|
+
*/
|
|
222
227
|
export interface SellingPlan {
|
|
223
228
|
/**
|
|
224
|
-
* A globally-unique identifier.
|
|
229
|
+
* A globally-unique identifier for the selling plan in the format `gid://shopify/SellingPlan/<id>`. Use this to reference the specific selling plan associated with a line item.
|
|
230
|
+
*
|
|
225
231
|
* @example 'gid://shopify/SellingPlan/1'
|
|
226
232
|
*/
|
|
227
233
|
id: string;
|
|
228
234
|
}
|
|
229
235
|
|
|
236
|
+
/**
|
|
237
|
+
* @publicDocs
|
|
238
|
+
*/
|
|
230
239
|
export interface Attribute {
|
|
231
240
|
/**
|
|
232
|
-
* The
|
|
241
|
+
* The identifier for the attribute. Use this to distinguish between different custom attributes on a line item or order.
|
|
242
|
+
*
|
|
243
|
+
* @example 'engraving_text'
|
|
233
244
|
*/
|
|
234
245
|
key: string;
|
|
235
246
|
|
|
236
247
|
/**
|
|
237
|
-
* The value for the attribute.
|
|
248
|
+
* The value associated with the attribute key. This contains the buyer-provided or app-set data for the custom attribute.
|
|
249
|
+
*
|
|
250
|
+
* @example 'Happy Birthday!'
|
|
238
251
|
*/
|
|
239
252
|
value: string;
|
|
240
253
|
}
|
|
241
254
|
|
|
255
|
+
/**
|
|
256
|
+
* A mailing address associated with the order, such as a shipping or billing address.
|
|
257
|
+
*
|
|
258
|
+
* @publicDocs
|
|
259
|
+
*/
|
|
242
260
|
export interface MailingAddress {
|
|
243
261
|
/**
|
|
244
|
-
* The buyer's full name.
|
|
245
|
-
*
|
|
246
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
262
|
+
* The buyer's full name, typically a combination of first and last name. This value is `undefined` if the buyer didn't provide a name.
|
|
247
263
|
*
|
|
248
264
|
* @example 'John Doe'
|
|
249
265
|
*/
|
|
250
266
|
name?: string;
|
|
251
267
|
|
|
252
268
|
/**
|
|
253
|
-
* The buyer's first name.
|
|
254
|
-
*
|
|
255
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
269
|
+
* The buyer's first name. Use this alongside `lastName` when you need to display or process name parts separately.
|
|
256
270
|
*
|
|
257
271
|
* @example 'John'
|
|
258
272
|
*/
|
|
259
273
|
firstName?: string;
|
|
260
274
|
|
|
261
275
|
/**
|
|
262
|
-
* The buyer's last name.
|
|
263
|
-
*
|
|
264
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
276
|
+
* The buyer's last name. Use this alongside `firstName` when you need to display or process name parts separately.
|
|
265
277
|
*
|
|
266
278
|
* @example 'Doe'
|
|
267
279
|
*/
|
|
268
280
|
lastName?: string;
|
|
269
281
|
|
|
270
282
|
/**
|
|
271
|
-
* The buyer'
|
|
283
|
+
* The company or organization name associated with the address. This value is `undefined` if the buyer didn't provide a company name.
|
|
272
284
|
*
|
|
273
285
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
274
286
|
*
|
|
@@ -277,149 +289,156 @@ export interface MailingAddress {
|
|
|
277
289
|
company?: string;
|
|
278
290
|
|
|
279
291
|
/**
|
|
280
|
-
* The first line of the
|
|
281
|
-
*
|
|
282
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
292
|
+
* The first line of the street address, including the street number and name.
|
|
283
293
|
*
|
|
284
294
|
* @example '151 O'Connor Street'
|
|
285
295
|
*/
|
|
286
296
|
address1?: string;
|
|
287
297
|
|
|
288
298
|
/**
|
|
289
|
-
* The second line of the
|
|
290
|
-
*
|
|
291
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
299
|
+
* The second line of the street address, such as an apartment number, suite, or unit. This value is `undefined` if the buyer didn't provide a second address line.
|
|
292
300
|
*
|
|
293
301
|
* @example 'Ground floor'
|
|
294
302
|
*/
|
|
295
303
|
address2?: string;
|
|
296
304
|
|
|
297
305
|
/**
|
|
298
|
-
* The
|
|
299
|
-
*
|
|
300
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
306
|
+
* The city, town, or village of the address.
|
|
301
307
|
*
|
|
302
308
|
* @example 'Ottawa'
|
|
303
309
|
*/
|
|
304
310
|
city?: string;
|
|
305
311
|
|
|
306
312
|
/**
|
|
307
|
-
* The
|
|
308
|
-
*
|
|
309
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
313
|
+
* The postal code or ZIP code of the address, used for mail sorting and delivery routing.
|
|
310
314
|
*
|
|
311
315
|
* @example 'K2P 2L8'
|
|
312
316
|
*/
|
|
313
317
|
zip?: string;
|
|
314
318
|
|
|
315
319
|
/**
|
|
316
|
-
* The ISO 3166 Alpha-2
|
|
317
|
-
*
|
|
318
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
320
|
+
* The two-letter country code in [ISO 3166 Alpha-2](https://www.iso.org/iso-3166-country-codes.html) format.
|
|
319
321
|
*
|
|
320
322
|
* @example 'CA' for Canada.
|
|
321
323
|
*/
|
|
322
324
|
countryCode?: CountryCode;
|
|
323
325
|
|
|
324
326
|
/**
|
|
325
|
-
* The
|
|
326
|
-
*
|
|
327
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
327
|
+
* The province, state, prefecture, or region code of the address. The format varies by country.
|
|
328
328
|
*
|
|
329
329
|
* @example 'ON' for Ontario.
|
|
330
330
|
*/
|
|
331
331
|
provinceCode?: string;
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
* The buyer'
|
|
335
|
-
*
|
|
336
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
334
|
+
* The phone number associated with the address, typically in international format. This value is `undefined` if the buyer didn't provide a phone number.
|
|
337
335
|
*
|
|
338
336
|
* @example '+1 613 111 2222'.
|
|
339
337
|
*/
|
|
340
338
|
phone?: string;
|
|
341
339
|
}
|
|
342
340
|
|
|
341
|
+
/**
|
|
342
|
+
* @publicDocs
|
|
343
|
+
*/
|
|
343
344
|
export interface AuthenticatedAccount {
|
|
344
345
|
/**
|
|
345
|
-
*
|
|
346
|
-
* If the customer is not authenticated or is not a business customer, this value is `undefined`.
|
|
346
|
+
* The company that the authenticated B2B customer belongs to, including the company ID and location. The value is `undefined` if the customer isn't authenticated or isn't a B2B customer.
|
|
347
347
|
*/
|
|
348
348
|
purchasingCompany: SubscribableSignalLike<PurchasingCompany | undefined>;
|
|
349
349
|
/**
|
|
350
|
-
*
|
|
350
|
+
* The authenticated customer's account information. The value is `undefined` if the customer isn't logged in.
|
|
351
351
|
*/
|
|
352
352
|
customer: SubscribableSignalLike<Customer | undefined>;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
/**
|
|
356
|
-
*
|
|
356
|
+
* The authenticated customer's account, identified by a globally-unique ID.
|
|
357
357
|
*
|
|
358
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
358
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
359
|
+
* @publicDocs
|
|
359
360
|
*/
|
|
360
361
|
export interface Customer {
|
|
361
362
|
/**
|
|
362
|
-
* Customer
|
|
363
|
+
* A globally-unique identifier for the customer in the format `gid://shopify/Customer/<id>`.
|
|
363
364
|
*
|
|
364
365
|
* @example 'gid://shopify/Customer/123'
|
|
365
366
|
*/
|
|
366
367
|
id: string;
|
|
367
368
|
}
|
|
368
369
|
|
|
370
|
+
/**
|
|
371
|
+
* @publicDocs
|
|
372
|
+
*/
|
|
369
373
|
export interface PurchasingCompany {
|
|
370
374
|
/**
|
|
371
|
-
*
|
|
375
|
+
* The company that the authenticated B2B customer is associated with.
|
|
372
376
|
*/
|
|
373
377
|
company: Company;
|
|
374
378
|
|
|
375
379
|
/**
|
|
376
|
-
*
|
|
380
|
+
* The specific company location associated with the authenticated B2B customer. The value is `undefined` if no location is set.
|
|
377
381
|
*/
|
|
378
382
|
location?: CompanyLocation;
|
|
379
383
|
}
|
|
380
384
|
|
|
385
|
+
/**
|
|
386
|
+
* @publicDocs
|
|
387
|
+
*/
|
|
381
388
|
export interface Company {
|
|
382
389
|
/**
|
|
383
|
-
* Company
|
|
390
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
384
391
|
*/
|
|
385
392
|
id: string;
|
|
386
393
|
}
|
|
387
394
|
|
|
395
|
+
/**
|
|
396
|
+
* @publicDocs
|
|
397
|
+
*/
|
|
388
398
|
export interface CompanyLocation {
|
|
389
399
|
/**
|
|
390
|
-
*
|
|
400
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
391
401
|
*/
|
|
392
402
|
id: string;
|
|
393
403
|
}
|
|
394
404
|
|
|
405
|
+
/**
|
|
406
|
+
* Authenticates requests between your extension and your app backend. Use session tokens to verify the identity of the customer and the shop context when making server-side API calls. The token includes claims such as the customer ID, shop domain, and expiration time.
|
|
407
|
+
* @publicDocs
|
|
408
|
+
*/
|
|
395
409
|
export interface SessionToken {
|
|
396
410
|
/**
|
|
397
|
-
* Requests a session token that hasn't expired.
|
|
398
|
-
* time you
|
|
399
|
-
*
|
|
400
|
-
* about storing these tokens yourself.
|
|
411
|
+
* Requests a session token that hasn't expired. Call this method every
|
|
412
|
+
* time you make a request to your backend to get a valid token.
|
|
413
|
+
* Cached tokens are returned when possible, so you don’t need to store them yourself.
|
|
401
414
|
*/
|
|
402
415
|
get(): Promise<string>;
|
|
403
416
|
}
|
|
404
417
|
|
|
418
|
+
/**
|
|
419
|
+
* Tracks custom events and sends visitor information to [web pixels](/docs/apps/build/marketing-analytics/pixels). Use the Analytics API to emit analytics events from your extension, such as tracking product views, button clicks, or conversion funnels.
|
|
420
|
+
* @publicDocs
|
|
421
|
+
*/
|
|
405
422
|
export interface Analytics {
|
|
406
423
|
/**
|
|
407
|
-
*
|
|
424
|
+
* Emit an analytics event to web pixels. The event name and data are forwarded to all registered pixels on the page.
|
|
408
425
|
*/
|
|
409
426
|
publish(name: string, data: Record<string, unknown>): Promise<boolean>;
|
|
410
427
|
|
|
411
428
|
/**
|
|
412
|
-
*
|
|
429
|
+
* Submits visitor contact information (email or phone) to the shop backend. This data is sent to Shopify and is not propagated to web pixels on the page.
|
|
413
430
|
*/
|
|
414
431
|
visitor(data: {email?: string; phone?: string}): Promise<VisitorResult>;
|
|
415
432
|
}
|
|
416
433
|
/**
|
|
417
|
-
*
|
|
434
|
+
* The result returned by `Analytics.visitor()`. Check the `type` property to determine whether the submission succeeded or failed.
|
|
435
|
+
* @publicDocs
|
|
418
436
|
*/
|
|
419
437
|
export type VisitorResult = VisitorSuccess | VisitorError;
|
|
420
438
|
|
|
421
439
|
/**
|
|
422
|
-
*
|
|
440
|
+
* Returned when visitor information was validated and submitted successfully.
|
|
441
|
+
* @publicDocs
|
|
423
442
|
*/
|
|
424
443
|
export interface VisitorSuccess {
|
|
425
444
|
/**
|
|
@@ -429,7 +448,8 @@ export interface VisitorSuccess {
|
|
|
429
448
|
}
|
|
430
449
|
|
|
431
450
|
/**
|
|
432
|
-
*
|
|
451
|
+
* Returned when visitor information is invalid and wasn't submitted. Contains a `message` with details about what went wrong.
|
|
452
|
+
* @publicDocs
|
|
433
453
|
*/
|
|
434
454
|
export interface VisitorError {
|
|
435
455
|
/**
|
|
@@ -440,97 +460,117 @@ export interface VisitorError {
|
|
|
440
460
|
|
|
441
461
|
/**
|
|
442
462
|
* A message that explains the error. This message is useful for debugging.
|
|
443
|
-
* It's
|
|
463
|
+
* It's not localized, and therefore shouldn't be presented directly
|
|
444
464
|
* to the buyer.
|
|
445
465
|
*/
|
|
446
466
|
message: string;
|
|
447
467
|
}
|
|
448
468
|
|
|
469
|
+
/**
|
|
470
|
+
* @publicDocs
|
|
471
|
+
*/
|
|
449
472
|
export interface AllowedProcessing {
|
|
450
473
|
/**
|
|
451
|
-
*
|
|
474
|
+
* Whether analytics data can be collected about how the buyer interacts with the shop, based on their consent, merchant configuration, and location.
|
|
452
475
|
*/
|
|
453
476
|
analytics: boolean;
|
|
454
477
|
/**
|
|
455
|
-
*
|
|
478
|
+
* Whether marketing data can be collected for attribution, targeted advertising, and promotional communications.
|
|
456
479
|
*/
|
|
457
480
|
marketing: boolean;
|
|
458
481
|
/**
|
|
459
|
-
*
|
|
482
|
+
* Whether preference data can be collected, such as the buyer's language, currency, and sizing choices.
|
|
460
483
|
*/
|
|
461
484
|
preferences: boolean;
|
|
462
485
|
/**
|
|
463
|
-
*
|
|
486
|
+
* Whether data can be shared with or sold to third parties, typically for behavioral advertising purposes.
|
|
464
487
|
*/
|
|
465
488
|
saleOfData: boolean;
|
|
466
489
|
}
|
|
467
490
|
|
|
491
|
+
/**
|
|
492
|
+
* @publicDocs
|
|
493
|
+
*/
|
|
468
494
|
export interface VisitorConsent {
|
|
469
495
|
/**
|
|
470
|
-
*
|
|
496
|
+
* Whether the visitor has consented to analytics tracking. `true` means consent was granted, `false` means denied, and `undefined` means no decision has been made.
|
|
471
497
|
*/
|
|
472
498
|
analytics?: boolean;
|
|
473
499
|
/**
|
|
474
|
-
*
|
|
500
|
+
* Whether the visitor has consented to marketing and targeted advertising. `true` means consent was granted, `false` means denied, and `undefined` means no decision has been made.
|
|
475
501
|
*/
|
|
476
502
|
marketing?: boolean;
|
|
477
503
|
/**
|
|
478
|
-
*
|
|
504
|
+
* Whether the visitor has consented to storing preferences such as language and currency. `true` means consent was granted, `false` means denied, and `undefined` means no decision has been made.
|
|
479
505
|
*/
|
|
480
506
|
preferences?: boolean;
|
|
481
507
|
/**
|
|
482
|
-
*
|
|
508
|
+
* Whether the visitor has opted out of the sale or sharing of their data with third parties. `true` means opted out, `false` means not opted out, and `undefined` means no decision has been made.
|
|
483
509
|
*/
|
|
484
510
|
saleOfData?: boolean;
|
|
485
511
|
}
|
|
486
512
|
|
|
513
|
+
/**
|
|
514
|
+
* @publicDocs
|
|
515
|
+
*/
|
|
487
516
|
export interface TrackingConsentMetafield {
|
|
488
517
|
/**
|
|
489
|
-
* The
|
|
490
|
-
* length (inclusive).
|
|
518
|
+
* The identifier for the tracking consent metafield, such as `'analyticsType'` or `'marketingType'`.
|
|
491
519
|
*/
|
|
492
520
|
key: string;
|
|
493
521
|
/**
|
|
494
|
-
* The
|
|
495
|
-
*
|
|
496
|
-
* @example 'any string', '', or a stringified JSON object
|
|
522
|
+
* The value stored in the tracking consent metafield, such as `'granular'` or a stringified JSON object.
|
|
497
523
|
*/
|
|
498
524
|
value: string;
|
|
499
525
|
}
|
|
500
526
|
|
|
527
|
+
/**
|
|
528
|
+
* @publicDocs
|
|
529
|
+
*/
|
|
501
530
|
export interface TrackingConsentMetafieldChange {
|
|
502
531
|
/**
|
|
503
|
-
* The
|
|
504
|
-
* length (inclusive).
|
|
532
|
+
* The identifier for the tracking consent metafield to update.
|
|
505
533
|
*/
|
|
506
534
|
key: string;
|
|
507
535
|
/**
|
|
508
|
-
* The
|
|
509
|
-
*
|
|
510
|
-
* @example 'any string', `null`, or a stringified JSON object
|
|
536
|
+
* The new value to store in the metafield. Set to `null` to delete the metafield.
|
|
511
537
|
*/
|
|
512
538
|
value: string | null;
|
|
513
539
|
}
|
|
514
540
|
|
|
541
|
+
/**
|
|
542
|
+
* The consent change payload passed to `applyTrackingConsentChange`. Includes the visitor's updated consent decisions for analytics, marketing, preferences, and data sale, along with any custom tracking consent metafields.
|
|
543
|
+
* @publicDocs
|
|
544
|
+
*/
|
|
515
545
|
export interface VisitorConsentChange extends VisitorConsent {
|
|
516
546
|
/**
|
|
517
|
-
*
|
|
547
|
+
* Custom tracking consent metafield data to save alongside the standard consent categories. Use metafields to store app-specific consent granularity beyond the built-in categories.
|
|
518
548
|
*
|
|
519
|
-
* If
|
|
549
|
+
* If a metafield's value is `null`, that metafield is deleted.
|
|
520
550
|
*
|
|
521
551
|
* @example `[{key: 'granularAnalytics', value: 'true'}, {key: 'granularMarketing', value: 'false'}]`
|
|
522
552
|
*/
|
|
523
553
|
metafields?: TrackingConsentMetafieldChange[];
|
|
554
|
+
/**
|
|
555
|
+
* The type of consent change. Always `'changeVisitorConsent'`.
|
|
556
|
+
*/
|
|
524
557
|
type: 'changeVisitorConsent';
|
|
525
558
|
}
|
|
526
559
|
|
|
560
|
+
/**
|
|
561
|
+
* A function that applies updated tracking consent preferences for the buyer. Accepts a `VisitorConsentChange` object containing the buyer's consent decisions and returns a promise that resolves with a `TrackingConsentChangeResult` indicating whether the update succeeded or failed.
|
|
562
|
+
* @publicDocs
|
|
563
|
+
*/
|
|
527
564
|
export type ApplyTrackingConsentChangeType = (
|
|
528
565
|
visitorConsent: VisitorConsentChange,
|
|
529
566
|
) => Promise<TrackingConsentChangeResult>;
|
|
530
567
|
|
|
568
|
+
/**
|
|
569
|
+
* @publicDocs
|
|
570
|
+
*/
|
|
531
571
|
export interface CustomerPrivacyRegion {
|
|
532
572
|
/**
|
|
533
|
-
* The [ISO 3166
|
|
573
|
+
* 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.
|
|
534
574
|
*
|
|
535
575
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
536
576
|
*
|
|
@@ -538,9 +578,7 @@ export interface CustomerPrivacyRegion {
|
|
|
538
578
|
*/
|
|
539
579
|
countryCode?: CountryCode;
|
|
540
580
|
/**
|
|
541
|
-
* The buyer's province
|
|
542
|
-
*
|
|
543
|
-
* Province codes can be found by clicking on the `Subdivisions assigned codes` column for countries listed [here](https://en.wikipedia.org/wiki/ISO_3166-2).
|
|
581
|
+
* 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.
|
|
544
582
|
*
|
|
545
583
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
546
584
|
*
|
|
@@ -549,35 +587,35 @@ export interface CustomerPrivacyRegion {
|
|
|
549
587
|
provinceCode?: string;
|
|
550
588
|
}
|
|
551
589
|
|
|
590
|
+
/**
|
|
591
|
+
* @publicDocs
|
|
592
|
+
*/
|
|
552
593
|
export interface CustomerPrivacy {
|
|
553
594
|
/**
|
|
554
|
-
*
|
|
595
|
+
* 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.
|
|
555
596
|
*/
|
|
556
597
|
allowedProcessing: AllowedProcessing;
|
|
557
598
|
/**
|
|
558
|
-
*
|
|
599
|
+
* The tracking consent metafields that have been stored for this visitor. These contain app-specific consent data beyond the standard categories.
|
|
559
600
|
*
|
|
560
601
|
* @example `[{key: 'analyticsType', value: 'granular'}, {key: 'marketingType', value: 'granular'}]`, or `[]`
|
|
561
602
|
*/
|
|
562
603
|
metafields: TrackingConsentMetafield[];
|
|
563
604
|
/**
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
* @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.
|
|
605
|
+
* The visitor's current privacy consent decisions for each category.
|
|
606
|
+
* @example `true` — the customer has actively granted consent, `false` — the customer has actively denied consent, or `undefined` — the customer hasn't yet made a decision.
|
|
567
607
|
*/
|
|
568
608
|
visitorConsent: VisitorConsent;
|
|
569
609
|
/**
|
|
570
|
-
* Whether a consent banner should be displayed
|
|
571
|
-
*
|
|
572
|
-
* This is determined by the visitor's current privacy consent, the shop's [region visibility configuration](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings#add-a-cookie-banner) settings, and the region in which the visitor is located.
|
|
610
|
+
* Whether a consent banner should be displayed when the page loads. This is determined by the visitor's current consent state, the merchant's [region visibility settings](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings#add-a-cookie-banner), and the visitor's geographic location. Use this as the initial visibility state for your consent banner UI.
|
|
573
611
|
*/
|
|
574
612
|
shouldShowBanner: boolean;
|
|
575
613
|
/**
|
|
576
|
-
* Whether the visitor is in a region
|
|
614
|
+
* 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.
|
|
577
615
|
*/
|
|
578
616
|
saleOfDataRegion: boolean;
|
|
579
617
|
/**
|
|
580
|
-
*
|
|
618
|
+
* The visitor's geographic location, used to determine whether more granular consent controls should be displayed based on regional privacy regulations.
|
|
581
619
|
*
|
|
582
620
|
* @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.
|
|
583
621
|
*
|
|
@@ -586,42 +624,60 @@ export interface CustomerPrivacy {
|
|
|
586
624
|
region?: CustomerPrivacyRegion;
|
|
587
625
|
}
|
|
588
626
|
|
|
627
|
+
/**
|
|
628
|
+
* The result returned by `applyTrackingConsentChange`. Either a `TrackingConsentChangeResultSuccess` if the consent preferences were saved, or a `TrackingConsentChangeResultError` if the update failed.
|
|
629
|
+
* @publicDocs
|
|
630
|
+
*/
|
|
589
631
|
export type TrackingConsentChangeResult =
|
|
590
632
|
| TrackingConsentChangeResultSuccess
|
|
591
633
|
| TrackingConsentChangeResultError;
|
|
592
634
|
|
|
593
635
|
/**
|
|
594
|
-
*
|
|
636
|
+
* Returned when the tracking consent update succeeds. Check the `type` property to confirm the result before proceeding.
|
|
637
|
+
* @publicDocs
|
|
595
638
|
*/
|
|
596
639
|
export interface TrackingConsentChangeResultSuccess {
|
|
597
640
|
/**
|
|
598
|
-
* The type
|
|
641
|
+
* The result type. Always `'success'` for a successful consent update.
|
|
599
642
|
*/
|
|
600
643
|
type: 'success';
|
|
601
644
|
}
|
|
602
645
|
|
|
603
646
|
/**
|
|
604
|
-
*
|
|
605
|
-
*
|
|
647
|
+
* Returned when the tracking consent update fails. Contains an error `message` with details about what went wrong.
|
|
648
|
+
* @publicDocs
|
|
606
649
|
*/
|
|
607
650
|
export interface TrackingConsentChangeResultError {
|
|
608
651
|
/**
|
|
609
|
-
* The type
|
|
652
|
+
* The result type. Always `'error'` for a failed consent update.
|
|
610
653
|
*/
|
|
611
654
|
type: 'error';
|
|
612
655
|
|
|
613
656
|
/**
|
|
614
|
-
* A message
|
|
615
|
-
* It is **not** localized, and therefore should not be presented directly
|
|
616
|
-
* to the buyer.
|
|
657
|
+
* A developer-facing message explaining why the consent update failed. This message isn't localized and shouldn't be displayed directly to the buyer.
|
|
617
658
|
*/
|
|
618
659
|
message: string;
|
|
619
660
|
}
|
|
620
661
|
|
|
662
|
+
/**
|
|
663
|
+
* A handle returned by `ToastApi.show()`. Call `hide()` to dismiss the toast notification programmatically.
|
|
664
|
+
* @publicDocs
|
|
665
|
+
*/
|
|
621
666
|
export interface ToastApiResult {
|
|
667
|
+
/**
|
|
668
|
+
* Dismisses the toast notification.
|
|
669
|
+
*/
|
|
622
670
|
hide: () => void;
|
|
623
671
|
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Displays brief, non-blocking notification messages to the customer. Use the Toast API to confirm successful actions, report errors, or surface contextual feedback without interrupting the customer workflow.
|
|
675
|
+
* @publicDocs
|
|
676
|
+
*/
|
|
624
677
|
export interface ToastApi {
|
|
678
|
+
/**
|
|
679
|
+
* Show a toast notification with the given message. Returns a handle with a `hide()` method to dismiss the toast programmatically.
|
|
680
|
+
*/
|
|
625
681
|
show: (content: string) => Promise<ToastApiResult>;
|
|
626
682
|
}
|
|
627
683
|
|
|
@@ -631,6 +687,7 @@ export interface ToastApi {
|
|
|
631
687
|
* When invoking via URL syntax, `action` and `type` are parsed from the
|
|
632
688
|
* string. This companion type captures the remaining optional fields that can
|
|
633
689
|
* be provided alongside the URL.
|
|
690
|
+
* @publicDocs
|
|
634
691
|
*/
|
|
635
692
|
export interface IntentQueryOptions {
|
|
636
693
|
/**
|
|
@@ -638,12 +695,7 @@ export interface IntentQueryOptions {
|
|
|
638
695
|
*/
|
|
639
696
|
value?: string;
|
|
640
697
|
/**
|
|
641
|
-
* Optional input payload passed to the intent.
|
|
642
|
-
*
|
|
643
|
-
* Used to seed forms or supply parameters. The accepted shape is
|
|
644
|
-
* intent-specific. For example:
|
|
645
|
-
* - Replacing a payment method on a subscription contract requires
|
|
646
|
-
* { field: 'paymentMethod' }
|
|
698
|
+
* Optional input payload passed to the intent. Used to seed forms or supply parameters. The accepted shape is intent-specific. For example, replacing a payment method on a subscription contract requires `{ field: 'paymentMethod' }`.
|
|
647
699
|
*/
|
|
648
700
|
data?: Record<string, unknown>;
|
|
649
701
|
}
|
|
@@ -654,6 +706,7 @@ export interface IntentQueryOptions {
|
|
|
654
706
|
* Common actions include:
|
|
655
707
|
* - `'create'`: Initiate creation of a new resource.
|
|
656
708
|
* - `'open'`: Modify an existing resource.
|
|
709
|
+
* @publicDocs
|
|
657
710
|
*/
|
|
658
711
|
export type IntentAction = 'create' | 'open' | string;
|
|
659
712
|
|
|
@@ -662,6 +715,7 @@ export type IntentAction = 'create' | 'open' | string;
|
|
|
662
715
|
*
|
|
663
716
|
* Use this object form when programmatically composing an intent at runtime.
|
|
664
717
|
* It pairs an action (verb) with a resource type and optional inputs.
|
|
718
|
+
* @publicDocs
|
|
665
719
|
*/
|
|
666
720
|
export interface IntentQuery extends IntentQueryOptions {
|
|
667
721
|
/**
|
|
@@ -682,8 +736,12 @@ export interface IntentQuery extends IntentQueryOptions {
|
|
|
682
736
|
*
|
|
683
737
|
* - `code` is always `'ok'`
|
|
684
738
|
* - `data` contains the output payload
|
|
739
|
+
* @publicDocs
|
|
685
740
|
*/
|
|
686
741
|
export interface SuccessIntentResponse {
|
|
742
|
+
/**
|
|
743
|
+
* Always `'ok'` for a successful response.
|
|
744
|
+
*/
|
|
687
745
|
code: 'ok';
|
|
688
746
|
/**
|
|
689
747
|
* Validated output payload produced by the workflow.
|
|
@@ -701,10 +759,20 @@ export interface SuccessIntentResponse {
|
|
|
701
759
|
* - `issues` optionally provides structured details for validation or
|
|
702
760
|
* field-specific problems following the Standard Schema convention
|
|
703
761
|
*
|
|
762
|
+
* @publicDocs
|
|
704
763
|
*/
|
|
705
764
|
export interface ErrorIntentResponse {
|
|
765
|
+
/**
|
|
766
|
+
* Set to `'error'` when present. This property is optional.
|
|
767
|
+
*/
|
|
706
768
|
code?: 'error';
|
|
769
|
+
/**
|
|
770
|
+
* A human-readable summary of the failure.
|
|
771
|
+
*/
|
|
707
772
|
message?: string;
|
|
773
|
+
/**
|
|
774
|
+
* Structured details for validation or field-specific problems, following the Standard Schema convention.
|
|
775
|
+
*/
|
|
708
776
|
issues?: {
|
|
709
777
|
/**
|
|
710
778
|
* The path to the field with the issue.
|
|
@@ -722,8 +790,12 @@ export interface ErrorIntentResponse {
|
|
|
722
790
|
*
|
|
723
791
|
* Distinct from `error`: no failure occurred, the activity was simply
|
|
724
792
|
* abandoned by the user.
|
|
793
|
+
* @publicDocs
|
|
725
794
|
*/
|
|
726
795
|
export interface ClosedIntentResponse {
|
|
796
|
+
/**
|
|
797
|
+
* Always `'closed'` when the user dismissed the workflow without completing it.
|
|
798
|
+
*/
|
|
727
799
|
code: 'closed';
|
|
728
800
|
}
|
|
729
801
|
|
|
@@ -732,6 +804,7 @@ export interface ClosedIntentResponse {
|
|
|
732
804
|
*
|
|
733
805
|
* Discriminated union representing all possible completion outcomes for an
|
|
734
806
|
* invoked intent.
|
|
807
|
+
* @publicDocs
|
|
735
808
|
*/
|
|
736
809
|
export type IntentResponse =
|
|
737
810
|
| SuccessIntentResponse
|
|
@@ -740,6 +813,7 @@ export type IntentResponse =
|
|
|
740
813
|
|
|
741
814
|
/**
|
|
742
815
|
* Activity handle for tracking intent workflow progress.
|
|
816
|
+
* @publicDocs
|
|
743
817
|
*/
|
|
744
818
|
export interface IntentActivity {
|
|
745
819
|
/**
|
|
@@ -749,16 +823,15 @@ export interface IntentActivity {
|
|
|
749
823
|
}
|
|
750
824
|
|
|
751
825
|
/**
|
|
752
|
-
*
|
|
826
|
+
* Invokes built-in Shopify workflows for managing customer account resources. Use the Intents API to trigger native Shopify modals and flows, such as replacing a payment method on a subscription contract, without building the UI yourself.
|
|
753
827
|
*
|
|
754
828
|
* Intents pair an `action` (verb) with a resource `type` and optional `value`
|
|
755
829
|
* and `data` to request a workflow.
|
|
830
|
+
* @publicDocs
|
|
756
831
|
*/
|
|
757
832
|
export interface Intents {
|
|
758
833
|
/**
|
|
759
|
-
*
|
|
760
|
-
*
|
|
761
|
-
* Object format: `{action, type, value?, data?}`
|
|
834
|
+
* Triggers a built-in Shopify workflow by passing a structured intent object. Specify an `action` (such as `'open'`), a resource `type`, and an optional `value` identifying the resource. Returns a promise that resolves to an `IntentActivity` you can use to track completion.
|
|
762
835
|
*
|
|
763
836
|
* @param query - Structured intent description, including `action` and `type`.
|
|
764
837
|
* @returns A promise for an {@link IntentActivity} that completes with an
|
|
@@ -778,9 +851,9 @@ export interface Intents {
|
|
|
778
851
|
*/
|
|
779
852
|
invoke(query: IntentQuery): Promise<IntentActivity>;
|
|
780
853
|
/**
|
|
781
|
-
* URL format
|
|
854
|
+
* Triggers a built-in Shopify workflow using a URL string in the format `action:type[,value][?params]`. Use this overload when composing intents from dynamic strings rather than structured objects.
|
|
782
855
|
*
|
|
783
|
-
* @param intentURL - Intent in URL form
|
|
856
|
+
* @param intentURL - Intent in URL form, such as `'open:shopify/SubscriptionContract,gid://shopify/SubscriptionContract/123'`.
|
|
784
857
|
* @param options - Optional supplemental inputs such as `value` or `data`.
|
|
785
858
|
* @returns A promise for an {@link IntentActivity} that completes with an
|
|
786
859
|
* {@link IntentResponse}.
|