@shopify/ui-extensions 2025.10.13 → 2025.10.14
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/shared.js +1 -10
- package/build/esm/surfaces/checkout/shared.mjs +1 -10
- package/build/esnext/surfaces/checkout/shared.esnext +1 -10
- package/build/ts/api.d.ts +23 -26
- package/build/ts/api.d.ts.map +1 -1
- package/build/ts/docs/shared/component-definitions.d.ts +32 -0
- package/build/ts/docs/shared/component-definitions.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Avatar.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Badge.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Banner.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Box.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Button.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ButtonGroup.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Checkbox.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Chip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Choice.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ChoiceList.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Clickable.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ClickableChip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ColorField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ColorPicker.d.ts.map +1 -1
- package/build/ts/docs/shared/components/DateField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/DatePicker.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Divider.d.ts.map +1 -1
- package/build/ts/docs/shared/components/EmailField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Form.d.ts.map +1 -1
- package/build/ts/docs/shared/components/FunctionSettings.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Grid.d.ts.map +1 -1
- package/build/ts/docs/shared/components/GridItem.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Heading.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Icon.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Image.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Link.d.ts.map +1 -1
- package/build/ts/docs/shared/components/ListItem.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Menu.d.ts.map +1 -1
- package/build/ts/docs/shared/components/MoneyField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/NumberField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/OrderedList.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Paragraph.d.ts.map +1 -1
- package/build/ts/docs/shared/components/PasswordField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/QueryContainer.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Section.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Select.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Sheet.d.ts +4 -0
- package/build/ts/docs/shared/components/Sheet.d.ts.map +1 -0
- package/build/ts/docs/shared/components/Spinner.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Stack.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Switch.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Table.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableBody.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableCell.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableHeader.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableHeaderRow.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TableRow.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Text.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TextArea.d.ts.map +1 -1
- package/build/ts/docs/shared/components/TextField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Thumbnail.d.ts.map +1 -1
- package/build/ts/docs/shared/components/Tooltip.d.ts.map +1 -1
- package/build/ts/docs/shared/components/URLField.d.ts.map +1 -1
- package/build/ts/docs/shared/components/UnorderedList.d.ts.map +1 -1
- package/build/ts/extension.d.ts +21 -0
- package/build/ts/extension.d.ts.map +1 -1
- package/build/ts/shared.d.ts +7 -5
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +7 -4
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +12 -6
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts +21 -10
- 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 +32 -0
- 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 +5 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +18 -6
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts +5 -1
- 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/discount-function-settings.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +22 -4
- 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 +32 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +30 -35
- package/build/ts/surfaces/admin/api/intents/intents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intents.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts +20 -0
- 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 +23 -0
- 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 +5 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +44 -16
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +6 -3
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts +36 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts +36 -0
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts +7 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +181 -21
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/shared.d.ts +7 -1
- package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts +8 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/should-render/should-render.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +20 -10
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/storage.d.ts +21 -27
- package/build/ts/surfaces/admin/api/standard/storage.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/ActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction/AdminAction.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +53 -3
- package/build/ts/surfaces/admin/components/AdminBlock/AdminBlock.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +49 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction/AdminPrintAction.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +45 -1
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +110 -10
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +155 -8
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +101 -10
- package/build/ts/surfaces/admin/components/BlockExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +203 -75
- package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +244 -16
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +96 -11
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +133 -4
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +2 -4
- package/build/ts/surfaces/admin/components/Choice.d.ts +68 -11
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +102 -6
- package/build/ts/surfaces/admin/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +142 -41
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +115 -19
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +177 -18
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +100 -5
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +195 -22
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +141 -4
- package/build/ts/surfaces/admin/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +88 -6
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +159 -7
- package/build/ts/surfaces/admin/components/Form/Form.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +65 -5
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/FormExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings/FunctionSettings.ext.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +78 -8
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/FunctionSettingsComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +249 -69
- package/build/ts/surfaces/admin/components/GridItem.d.ts +212 -33
- package/build/ts/surfaces/admin/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +66 -7
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +113 -11
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +235 -36
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +76 -16
- package/build/ts/surfaces/admin/components/ListItem.d.ts +59 -7
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +101 -21
- package/build/ts/surfaces/admin/components/MoneyField/MoneyField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +158 -7
- package/build/ts/surfaces/admin/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +170 -7
- package/build/ts/surfaces/admin/components/Option.d.ts +62 -5
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +56 -7
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +57 -9
- package/build/ts/surfaces/admin/components/Paragraph/Paragraph.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +100 -11
- package/build/ts/surfaces/admin/components/PasswordField/PasswordField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +166 -14
- package/build/ts/surfaces/admin/components/PrintActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/PrintActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +65 -7
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +150 -4
- package/build/ts/surfaces/admin/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +81 -8
- package/build/ts/surfaces/admin/components/Select/Select.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Select.d.ts +145 -6
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +67 -5
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +239 -61
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +3 -0
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch/Switch.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +124 -4
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +144 -13
- package/build/ts/surfaces/admin/components/TableBody.d.ts +62 -7
- package/build/ts/surfaces/admin/components/TableCell.d.ts +66 -7
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +77 -7
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +62 -7
- package/build/ts/surfaces/admin/components/TableRow.d.ts +65 -7
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +129 -9
- package/build/ts/surfaces/admin/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +157 -7
- package/build/ts/surfaces/admin/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +170 -19
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +103 -10
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +98 -21
- package/build/ts/surfaces/admin/components/URLField/URLField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +171 -14
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +57 -9
- package/build/ts/surfaces/admin/components/shared.d.ts +842 -772
- package/build/ts/surfaces/admin/extension-targets.d.ts +85 -169
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +0 -2
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -18
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +8 -11
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +353 -318
- 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 +84 -97
- 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 +8 -10
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Abbreviation/Abbreviation.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Announcement/Announcement.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Badge/Badge.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Banner/Banner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Box/Box.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Button/Button.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Checkbox/Checkbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Chip/Chip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Clickable/Clickable.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ClipboardItem/ClipboardItem.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox/ConsentCheckbox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField/ConsentPhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DateField/DateField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DatePicker/DatePicker.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Details/Details.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Divider/Divider.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/EmailField/EmailField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Form/Form.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Grid/Grid.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Heading/Heading.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Icon/Icon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Image/Image.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Link/Link.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Map/Map.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Modal/Modal.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/MoneyField/MoneyField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/NumberField/NumberField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/OrderedList/OrderedList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Paragraph/Paragraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PasswordField/PasswordField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PaymentIcon/PaymentIcon.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PhoneField/PhoneField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Popover/Popover.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PressButton/PressButton.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ProductThumbnail/ProductThumbnail.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Progress/Progress.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/QRCode/QRCode.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/QueryContainer/QueryContainer.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Select/Select.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Sheet/Sheet.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph/SkeletonParagraph.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Spinner/Spinner.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Stack/Stack.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Switch/Switch.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Text/Text.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextArea/TextArea.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextField/TextField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Time/Time.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Tooltip/Tooltip.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/URLField/URLField.doc.d.ts.map +1 -0
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +10 -10
- package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +11 -11
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +23 -2
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api.ts +23 -26
- package/src/docs/shared/component-definitions.ts +200 -0
- package/src/docs/shared/components/Abbreviation.ts +2 -2
- package/src/docs/shared/components/Announcement.ts +2 -2
- package/src/docs/shared/components/Avatar.ts +3 -2
- package/src/docs/shared/components/Badge.ts +3 -2
- package/src/docs/shared/components/Banner.ts +3 -2
- package/src/docs/shared/components/Box.ts +3 -2
- package/src/docs/shared/components/Button.ts +3 -2
- package/src/docs/shared/components/ButtonGroup.ts +5 -3
- package/src/docs/shared/components/Checkbox.ts +3 -2
- package/src/docs/shared/components/Chip.ts +3 -2
- package/src/docs/shared/components/Choice.ts +3 -2
- package/src/docs/shared/components/ChoiceList.ts +4 -3
- package/src/docs/shared/components/Clickable.ts +3 -2
- package/src/docs/shared/components/ClickableChip.ts +4 -3
- package/src/docs/shared/components/ClipboardItem.ts +3 -3
- package/src/docs/shared/components/ColorField.ts +4 -3
- package/src/docs/shared/components/ColorPicker.ts +5 -3
- package/src/docs/shared/components/ConsentCheckbox.ts +2 -2
- package/src/docs/shared/components/ConsentPhoneField.ts +2 -2
- package/src/docs/shared/components/DateField.ts +5 -3
- package/src/docs/shared/components/DatePicker.ts +5 -3
- package/src/docs/shared/components/Details.ts +2 -2
- package/src/docs/shared/components/Divider.ts +3 -2
- package/src/docs/shared/components/DropZone.ts +3 -3
- package/src/docs/shared/components/EmailField.ts +4 -3
- package/src/docs/shared/components/Form.ts +3 -2
- package/src/docs/shared/components/FunctionSettings.ts +5 -20
- package/src/docs/shared/components/Grid.ts +3 -2
- package/src/docs/shared/components/GridItem.ts +6 -4
- package/src/docs/shared/components/Heading.ts +3 -2
- package/src/docs/shared/components/Icon.ts +3 -2
- package/src/docs/shared/components/Image.ts +3 -2
- package/src/docs/shared/components/Link.ts +3 -2
- package/src/docs/shared/components/ListItem.ts +5 -4
- package/src/docs/shared/components/Map.ts +2 -2
- package/src/docs/shared/components/MapMarker.ts +3 -3
- package/src/docs/shared/components/Menu.ts +3 -2
- package/src/docs/shared/components/Modal.ts +1 -1
- package/src/docs/shared/components/MoneyField.ts +4 -3
- package/src/docs/shared/components/NumberField.ts +4 -3
- package/src/docs/shared/components/Option.ts +1 -1
- package/src/docs/shared/components/OptionGroup.ts +2 -2
- package/src/docs/shared/components/OrderedList.ts +5 -4
- package/src/docs/shared/components/Page.ts +2 -2
- package/src/docs/shared/components/Paragraph.ts +3 -2
- package/src/docs/shared/components/PasswordField.ts +5 -3
- package/src/docs/shared/components/PaymentIcon.ts +3 -3
- package/src/docs/shared/components/PhoneField.ts +2 -2
- package/src/docs/shared/components/Popover.ts +1 -1
- package/src/docs/shared/components/PressButton.ts +2 -2
- package/src/docs/shared/components/ProductThumbnail.ts +3 -3
- package/src/docs/shared/components/Progress.ts +2 -2
- package/src/docs/shared/components/QRCode.ts +3 -3
- package/src/docs/shared/components/QueryContainer.ts +4 -3
- package/src/docs/shared/components/ScrollBox.ts +3 -3
- package/src/docs/shared/components/SearchField.ts +3 -3
- package/src/docs/shared/components/Section.ts +3 -2
- package/src/docs/shared/components/Select.ts +3 -2
- package/src/docs/shared/components/Sheet.ts +14 -0
- package/src/docs/shared/components/SkeletonParagraph.ts +3 -3
- package/src/docs/shared/components/Spinner.ts +3 -2
- package/src/docs/shared/components/Stack.ts +3 -2
- package/src/docs/shared/components/Summary.ts +2 -2
- package/src/docs/shared/components/Switch.ts +4 -2
- package/src/docs/shared/components/Table.ts +3 -2
- package/src/docs/shared/components/TableBody.ts +4 -3
- package/src/docs/shared/components/TableCell.ts +5 -3
- package/src/docs/shared/components/TableHeader.ts +5 -3
- package/src/docs/shared/components/TableHeaderRow.ts +4 -3
- package/src/docs/shared/components/TableRow.ts +5 -3
- package/src/docs/shared/components/Text.ts +3 -2
- package/src/docs/shared/components/TextArea.ts +4 -3
- package/src/docs/shared/components/TextField.ts +4 -3
- package/src/docs/shared/components/Thumbnail.ts +3 -2
- package/src/docs/shared/components/Time.ts +2 -2
- package/src/docs/shared/components/Tooltip.ts +4 -3
- package/src/docs/shared/components/URLField.ts +4 -3
- package/src/docs/shared/components/UnorderedList.ts +5 -4
- package/src/extension.ts +21 -0
- package/src/shared.ts +7 -5
- package/src/surfaces/admin/api/action/action.ts +7 -4
- package/src/surfaces/admin/api/action/examples/handle-errors.jsx +47 -0
- package/src/surfaces/admin/api/action/examples/process-selected-products.jsx +33 -0
- package/src/surfaces/admin/api/action/examples/select-additional-resources.jsx +46 -0
- package/src/surfaces/admin/api/block/block.ts +12 -6
- package/src/surfaces/admin/api/block/examples/display-product-info.jsx +46 -0
- package/src/surfaces/admin/api/block/examples/navigate-to-action.jsx +50 -0
- package/src/surfaces/admin/api/block/examples/select-related-products.jsx +46 -0
- package/src/surfaces/admin/api/checkout-rules/examples/configure-shipping-restrictions.jsx +52 -0
- package/src/surfaces/admin/api/checkout-rules/examples/load-validation-config.jsx +55 -0
- package/src/surfaces/admin/api/checkout-rules/examples/set-minimum-quantity.jsx +40 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +22 -10
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +35 -0
- package/src/surfaces/admin/api/checkout-rules/validation-settings.ts +5 -1
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +19 -7
- package/src/surfaces/admin/api/customer-segment-template/examples/abandoned-cart-recovery.jsx +30 -0
- package/src/surfaces/admin/api/customer-segment-template/examples/birthday-this-month.jsx +32 -0
- package/src/surfaces/admin/api/customer-segment-template/examples/high-value-customers.jsx +27 -0
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.ts +5 -1
- package/src/surfaces/admin/api/discount-function-settings/examples/configure-discount-threshold.jsx +39 -0
- package/src/surfaces/admin/api/discount-function-settings/examples/configure-eligibility-rules.jsx +45 -0
- package/src/surfaces/admin/api/discount-function-settings/examples/load-existing-settings.jsx +45 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +22 -4
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +35 -0
- package/src/surfaces/admin/api/intents/examples/create-article.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-catalog.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-collection.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-customer.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-discount.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-market.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-menu.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metafield-definition.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metaobject-definition.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-metaobject.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-page.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/create-product.jsx +37 -0
- package/src/surfaces/admin/api/intents/examples/create-variant.jsx +35 -0
- package/src/surfaces/admin/api/intents/examples/edit-article.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-catalog.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-collection.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-customer.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-discount.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-market.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-menu.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-page.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-product.jsx +41 -0
- package/src/surfaces/admin/api/intents/examples/edit-variant.jsx +41 -0
- package/src/surfaces/admin/api/intents/intents.ts +30 -35
- package/src/surfaces/admin/api/order-routing-rule/data.ts +20 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/configure-location-priority.jsx +46 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/remove-deprecated-settings.jsx +35 -0
- package/src/surfaces/admin/api/order-routing-rule/examples/set-routing-criteria.jsx +57 -0
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +24 -0
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +5 -0
- package/src/surfaces/admin/api/picker/examples/direct-api.jsx +42 -0
- package/src/surfaces/admin/api/picker/examples/disabled.jsx +23 -0
- package/src/surfaces/admin/api/picker/examples/minimal.jsx +37 -0
- package/src/surfaces/admin/api/picker/examples/multiple-limit.jsx +26 -0
- package/src/surfaces/admin/api/picker/examples/multiple-true.jsx +25 -0
- package/src/surfaces/admin/api/picker/examples/preselected.jsx +23 -0
- package/src/surfaces/admin/api/picker/examples/template-picker.jsx +58 -0
- package/src/surfaces/admin/api/picker/picker.ts +46 -16
- package/src/surfaces/admin/api/print-action/examples/custom-product-labels.jsx +47 -0
- package/src/surfaces/admin/api/print-action/examples/generate-packing-slip.jsx +34 -0
- package/src/surfaces/admin/api/print-action/examples/shipping-manifest.jsx +57 -0
- package/src/surfaces/admin/api/print-action/print-action.ts +6 -3
- package/src/surfaces/admin/api/product-configuration/examples/create-variant-component.jsx +56 -0
- package/src/surfaces/admin/api/product-configuration/examples/load-bundle-config.jsx +47 -0
- package/src/surfaces/admin/api/product-configuration/examples/load-variant-bundle-config.jsx +54 -0
- package/src/surfaces/admin/api/product-configuration/examples/navigate-to-component.jsx +27 -0
- package/src/surfaces/admin/api/product-configuration/examples/select-bundle-components.jsx +50 -0
- package/src/surfaces/admin/api/product-configuration/examples/select-variant-components.jsx +50 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +36 -6
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +36 -6
- package/src/surfaces/admin/api/purchase-options-card/examples/manage-subscription.jsx +45 -0
- package/src/surfaces/admin/api/purchase-options-card/examples/remove-from-plan.jsx +44 -0
- package/src/surfaces/admin/api/purchase-options-card/examples/validate-selling-plan.jsx +47 -0
- package/src/surfaces/admin/api/purchase-options-card-action.ts +11 -1
- package/src/surfaces/admin/api/resource-picker/examples/action.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/collection-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/filter-query.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/filters.jsx +27 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-limited.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/multiple-unlimited.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/product-variant-picker.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/examples/query.jsx +25 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection-ids.jsx +28 -0
- package/src/surfaces/admin/api/resource-picker/examples/selection.jsx +22 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +181 -21
- package/src/surfaces/admin/api/shared.ts +7 -1
- package/src/surfaces/admin/api/should-render/examples/bulk-selection-check.jsx +8 -0
- package/src/surfaces/admin/api/should-render/examples/check-order-status.jsx +7 -0
- package/src/surfaces/admin/api/should-render/examples/check-product-tag.jsx +7 -0
- package/src/surfaces/admin/api/should-render/should-render.ts +8 -1
- package/src/surfaces/admin/api/standard/examples/authenticate-backend-request.jsx +40 -0
- package/src/surfaces/admin/api/standard/examples/persist-settings.jsx +43 -0
- package/src/surfaces/admin/api/standard/examples/query-and-mutate.jsx +75 -0
- package/src/surfaces/admin/api/standard/standard.ts +20 -10
- package/src/surfaces/admin/api/standard/storage.ts +21 -27
- package/src/surfaces/admin/components/ActionExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/{ButtonGroup/examples/default.jsx → AdminAction/examples/default.html} +3 -2
- package/src/surfaces/admin/components/AdminAction/examples/destructive-action.html +10 -0
- package/src/surfaces/admin/components/AdminAction/examples/loading-state.html +5 -0
- package/src/surfaces/admin/components/AdminAction/examples/with-form-content.html +8 -0
- package/src/surfaces/admin/components/AdminAction/examples/with-resource-details.html +15 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +53 -3
- package/src/surfaces/admin/components/AdminBlock/examples/default.html +3 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-actions.html +14 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-badges.html +14 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-collapsed-summary.html +7 -0
- package/src/surfaces/admin/components/AdminBlock/examples/with-data-table.html +21 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +49 -1
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/dynamic-url.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction/examples/pdf-source.html +1 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +45 -1
- package/src/surfaces/admin/components/Avatar.d.ts +110 -10
- package/src/surfaces/admin/components/Badge.d.ts +155 -8
- package/src/surfaces/admin/components/Banner.d.ts +101 -10
- package/src/surfaces/admin/components/BlockExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/Box/examples/accessible-status-messages.html +8 -14
- package/src/surfaces/admin/components/Box/examples/screen-reader-only-content.html +3 -0
- package/src/surfaces/admin/components/Box.d.ts +203 -75
- package/src/surfaces/admin/components/Button/examples/component-interactions.html +8 -6
- package/src/surfaces/admin/components/Button/examples/icon-only-button.html +17 -1
- package/src/surfaces/admin/components/Button.d.ts +244 -16
- package/src/surfaces/admin/components/ButtonGroup.d.ts +96 -11
- package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.html +10 -0
- package/src/surfaces/admin/components/Checkbox/examples/validation-example.html +9 -0
- package/src/surfaces/admin/components/Checkbox.d.ts +133 -4
- package/src/surfaces/admin/components/Chip/examples/default.html +1 -1
- package/src/surfaces/admin/components/Chip.d.ts +2 -4
- package/src/surfaces/admin/components/Choice.d.ts +68 -11
- package/src/surfaces/admin/components/ChoiceList/examples/disabled-state.html +5 -0
- package/src/surfaces/admin/components/ChoiceList/examples/with-error-state.html +2 -3
- package/src/surfaces/admin/components/ChoiceList.d.ts +102 -6
- package/src/surfaces/admin/components/Clickable.d.ts +142 -41
- package/src/surfaces/admin/components/ClickableChip.d.ts +115 -19
- package/src/surfaces/admin/components/ColorField/examples/default.html +4 -1
- package/src/surfaces/admin/components/ColorField/examples/validation-example.html +12 -0
- package/src/surfaces/admin/components/ColorField.d.ts +177 -18
- package/src/surfaces/admin/components/ColorPicker/examples/default.html +1 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +100 -5
- package/src/surfaces/admin/components/DateField.d.ts +195 -22
- package/src/surfaces/admin/components/DatePicker.d.ts +141 -4
- package/src/surfaces/admin/components/Divider.d.ts +88 -6
- package/src/surfaces/admin/components/DropZone/examples/upload-with-validation.html +42 -0
- package/src/surfaces/admin/components/EmailField/examples/disabled-state.html +5 -0
- package/src/surfaces/admin/components/EmailField.d.ts +159 -7
- package/src/surfaces/admin/components/Form/examples/default.html +1 -1
- package/src/surfaces/admin/components/Form/examples/with-choice-fields.html +12 -0
- package/src/surfaces/admin/components/Form/examples/with-multiple-fields.html +12 -0
- package/src/surfaces/admin/components/Form/examples/with-sections.html +21 -0
- package/src/surfaces/admin/components/Form/examples/with-validation.html +7 -0
- package/src/surfaces/admin/components/Form.d.ts +65 -5
- package/src/surfaces/admin/components/FormExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/default.html +9 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-multiple-settings.html +16 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-select-options.html +10 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-toggle.html +13 -0
- package/src/surfaces/admin/components/FunctionSettings/examples/with-validation.html +23 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +78 -8
- package/src/surfaces/admin/components/FunctionSettingsComponents.ts +3 -0
- package/src/surfaces/admin/components/Grid.d.ts +249 -69
- package/src/surfaces/admin/components/GridItem.d.ts +212 -33
- package/src/surfaces/admin/components/Heading.d.ts +66 -7
- package/src/surfaces/admin/components/Icon.d.ts +113 -11
- package/src/surfaces/admin/components/Image/examples/basic-usage.html +15 -4
- package/src/surfaces/admin/components/Image.d.ts +235 -36
- package/src/surfaces/admin/components/Link/examples/default.html +1 -1
- package/src/surfaces/admin/components/Link.d.ts +76 -16
- package/src/surfaces/admin/components/ListItem.d.ts +59 -7
- package/src/surfaces/admin/components/Menu/examples/{menu-with-icons.html → icon-only-trigger.html} +7 -2
- package/src/surfaces/admin/components/Menu.d.ts +101 -21
- package/src/surfaces/admin/components/MoneyField/examples/basic-field.html +0 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +158 -7
- package/src/surfaces/admin/components/NumberField/examples/disabled-and-read-only.html +15 -0
- package/src/surfaces/admin/components/NumberField/examples/{basic-usage.html → with-error-state.html} +3 -1
- package/src/surfaces/admin/components/NumberField.d.ts +170 -7
- package/src/surfaces/admin/components/Option.d.ts +62 -5
- package/src/surfaces/admin/components/OptionGroup.d.ts +56 -7
- package/src/surfaces/admin/components/OrderedList/examples/default.html +3 -3
- package/src/surfaces/admin/components/OrderedList.d.ts +57 -9
- package/src/surfaces/admin/components/Paragraph/examples/subdued-color.html +3 -0
- package/src/surfaces/admin/components/Paragraph/examples/with-tone-and-color.html +13 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +100 -11
- package/src/surfaces/admin/components/PasswordField.d.ts +166 -14
- package/src/surfaces/admin/components/PrintActionExtensionComponents.ts +3 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +65 -7
- package/src/surfaces/admin/components/SearchField.d.ts +150 -4
- package/src/surfaces/admin/components/Section.d.ts +81 -8
- package/src/surfaces/admin/components/Select/examples/with-error-state.html +2 -2
- package/src/surfaces/admin/components/Select/examples/with-option-groups.html +4 -4
- package/src/surfaces/admin/components/Select.d.ts +145 -6
- package/src/surfaces/admin/components/Spinner/examples/spinner-sizes.html +5 -0
- package/src/surfaces/admin/components/Spinner.d.ts +67 -5
- package/src/surfaces/admin/components/Stack.d.ts +239 -61
- package/src/surfaces/admin/components/StandardComponents.ts +3 -0
- package/src/surfaces/admin/components/Switch/examples/disabled-switch.html +2 -2
- package/src/surfaces/admin/components/Switch/examples/form-integration.html +15 -12
- package/src/surfaces/admin/components/Switch/examples/hidden-label-for-accessibility.html +1 -1
- package/src/surfaces/admin/components/Switch/examples/settings-panel-with-stack.html +1 -1
- package/src/surfaces/admin/components/Switch/examples/with-details-and-error.html +1 -1
- package/src/surfaces/admin/components/Switch.d.ts +124 -4
- package/src/surfaces/admin/components/Table/examples/{basic-usage.jsx → with-filters.html} +2 -13
- package/src/surfaces/admin/components/Table.d.ts +144 -13
- package/src/surfaces/admin/components/TableBody.d.ts +62 -7
- package/src/surfaces/admin/components/TableCell.d.ts +66 -7
- package/src/surfaces/admin/components/TableHeader.d.ts +77 -7
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +62 -7
- package/src/surfaces/admin/components/TableRow.d.ts +65 -7
- package/src/surfaces/admin/components/Text.d.ts +129 -9
- package/src/surfaces/admin/components/TextArea/examples/disabled-and-read-only.html +15 -0
- package/src/surfaces/admin/components/TextArea.d.ts +157 -7
- package/src/surfaces/admin/components/TextField/examples/disabled-and-read-only.html +13 -0
- package/src/surfaces/admin/components/TextField.d.ts +170 -19
- package/src/surfaces/admin/components/Thumbnail/examples/default.html +1 -1
- package/src/surfaces/admin/components/Thumbnail/examples/different-sizes.html +3 -3
- package/src/surfaces/admin/components/Thumbnail/examples/with-event-handling.html +22 -9
- package/src/surfaces/admin/components/Thumbnail.d.ts +103 -10
- package/src/surfaces/admin/components/Tooltip/examples/basic-usage.html +2 -4
- package/src/surfaces/admin/components/Tooltip/examples/keyboard-shortcut.html +2 -0
- package/src/surfaces/admin/components/Tooltip/examples/with-icon-button.html +3 -5
- package/src/surfaces/admin/components/Tooltip.d.ts +98 -21
- package/src/surfaces/admin/components/URLField/examples/default.html +2 -2
- package/src/surfaces/admin/components/URLField/examples/with-default-value.html +5 -7
- package/src/surfaces/admin/components/URLField.d.ts +171 -14
- package/src/surfaces/admin/components/UnorderedList.d.ts +57 -9
- package/src/surfaces/admin/components/shared.d.ts +842 -772
- package/src/surfaces/admin/components.d.ts +2550 -1100
- package/src/surfaces/admin/extension-targets.ts +85 -169
- package/src/surfaces/checkout/api/docs.ts +0 -2
- package/src/surfaces/checkout/api/standard/standard.ts +0 -21
- package/src/surfaces/checkout/shared.ts +8 -11
- package/src/surfaces/customer-account/api/order-status/order-status.ts +360 -318
- package/src/surfaces/customer-account/api/shared.ts +84 -97
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +8 -10
- package/src/surfaces/customer-account/components/Abbreviation/examples/basic-abbreviation.example.html +1 -0
- package/src/surfaces/customer-account/components/Announcement/examples/basic-announcement.example.html +16 -0
- package/src/surfaces/customer-account/components/Badge/examples/basic-badge.example.html +3 -0
- package/src/surfaces/customer-account/components/Banner/examples/basic-banner.example.html +1 -0
- package/src/surfaces/customer-account/components/Box/examples/basic-box.example.html +11 -0
- package/src/surfaces/customer-account/components/Button/examples/basic-button.example.html +2 -0
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +2 -2
- package/src/surfaces/customer-account/components/Checkbox/examples/basic-checkbox.example.html +1 -0
- package/src/surfaces/customer-account/components/Chip/examples/basic-chip.example.html +1 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/basic-choice-list.example.html +7 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/block-choice-variant.example.html +47 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/grid-choice-variant.example.html +5 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/inline-choice-variant.example.html +6 -0
- package/src/surfaces/customer-account/components/ChoiceList/examples/list-choice-variant.example.html +5 -0
- package/src/surfaces/customer-account/components/Clickable/examples/basic-clickable.example.html +3 -0
- package/src/surfaces/customer-account/components/ClickableChip/examples/basic-clickable-chip.example.html +1 -0
- package/src/surfaces/customer-account/components/ClipboardItem/examples/basic-clipboard-item.example.html +2 -0
- package/src/surfaces/customer-account/components/ConsentCheckbox/examples/basic-consent-checkbox.example.html +5 -0
- package/src/surfaces/customer-account/components/ConsentPhoneField/examples/basic-consent-phone-field.example.html +5 -0
- package/src/surfaces/customer-account/components/DateField/examples/basic-date-field.example.html +1 -0
- package/src/surfaces/customer-account/components/DatePicker/examples/basic-date-picker.example.html +1 -0
- package/src/surfaces/customer-account/components/Details/examples/basic-details.example.html +6 -0
- package/src/surfaces/customer-account/components/DropZone/examples/basic-drop-zone.example.html +1 -0
- package/src/surfaces/customer-account/components/EmailField/examples/basic-email-field.example.html +1 -0
- package/src/surfaces/customer-account/components/Form/examples/basic-form.example.html +4 -0
- package/src/surfaces/customer-account/components/Grid/examples/basic-grid.example.html +11 -0
- package/src/surfaces/customer-account/components/Heading/examples/basic-heading.example.html +1 -0
- package/src/surfaces/customer-account/components/Icon/examples/basic-icon.example.html +4 -0
- package/src/surfaces/customer-account/components/Image/examples/basic-image.example.html +1 -0
- package/src/surfaces/customer-account/components/Link/examples/basic-link.example.html +1 -0
- package/src/surfaces/customer-account/components/Map/examples/basic-map.example.html +3 -0
- package/src/surfaces/customer-account/components/Map/examples/map-marker-graphic.example.html +14 -0
- package/src/surfaces/customer-account/components/Map/examples/map-marker-popover.example.html +14 -0
- package/src/surfaces/customer-account/components/Modal/examples/basic-modal.example.html +20 -0
- package/src/surfaces/customer-account/components/MoneyField/examples/basic-money-field.example.html +1 -0
- package/src/surfaces/customer-account/components/NumberField/examples/basic-number-field.example.html +8 -0
- package/src/surfaces/customer-account/components/OrderedList/examples/basic-ordered-list.example.html +5 -0
- package/src/surfaces/customer-account/components/Paragraph/examples/basic-paragraph.example.html +1 -0
- package/src/surfaces/customer-account/components/PasswordField/examples/basic-password-field.example.html +1 -0
- package/src/surfaces/customer-account/components/PaymentIcon/examples/basic-payment-icon.example.html +7 -0
- package/src/surfaces/customer-account/components/PhoneField/examples/basic-phone-field.example.html +2 -0
- package/src/surfaces/customer-account/components/Popover/examples/basic-popover.example.html +7 -0
- package/src/surfaces/customer-account/components/PressButton/examples/basic-press-button.example.html +1 -0
- package/src/surfaces/customer-account/components/ProductThumbnail/examples/basic-product-thumbnail.example.html +4 -0
- package/src/surfaces/customer-account/components/Progress/examples/basic-progress.example.html +1 -0
- package/src/surfaces/customer-account/components/QRCode/examples/basic-qr-code.example.html +4 -0
- package/src/surfaces/{admin/components/QueryContainer/examples/default.jsx → customer-account/components/QueryContainer/examples/basic-query-container.example.html} +3 -3
- package/src/surfaces/customer-account/components/ScrollBox/examples/basic-scroll-box.example.html +5 -0
- package/src/surfaces/customer-account/components/Section.d.ts +2 -2
- package/src/surfaces/customer-account/components/Select/examples/basic-select.example.html +5 -0
- package/src/surfaces/customer-account/components/Sheet/examples/basic-sheet.example.html +5 -0
- package/src/surfaces/customer-account/components/SkeletonParagraph/examples/basic-skeleton-paragraph.example.html +2 -0
- package/src/surfaces/customer-account/components/Spinner/examples/basic-spinner.example.html +1 -0
- package/src/surfaces/customer-account/components/Stack/examples/basic-stack.example.html +22 -0
- package/src/surfaces/customer-account/components/Switch/examples/basic-switch.example.html +1 -0
- package/src/surfaces/customer-account/components/Text/examples/basic-text.example.html +3 -0
- package/src/surfaces/customer-account/components/TextArea/examples/basic-text-area.example.html +5 -0
- package/src/surfaces/customer-account/components/TextField/examples/basic-text-field.example.html +4 -0
- package/src/surfaces/customer-account/components/Time/examples/basic-time.example.html +1 -0
- package/src/surfaces/customer-account/components/Tooltip/examples/basic-tooltip.example.html +9 -0
- package/src/surfaces/customer-account/components/URLField/examples/basic-url-field.example.html +1 -0
- package/src/surfaces/customer-account/components/UnorderedList/examples/basic-unordered-list.example.html +5 -0
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +1 -1
- package/src/surfaces/point-of-sale/components/Button.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/Stack.d.ts +10 -10
- package/src/surfaces/point-of-sale/components/Text.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/TextField.d.ts +1 -1
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +11 -11
- package/src/surfaces/point-of-sale/components.d.ts +43 -43
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +23 -2
- package/src/surfaces/admin/api/intents/examples/create-article.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-catalog.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-collection.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-customer.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-discount.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-market.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-menu.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-metafield-definition.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-metaobject-definition.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-metaobject.js +0 -11
- package/src/surfaces/admin/api/intents/examples/create-page.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-product.js +0 -9
- package/src/surfaces/admin/api/intents/examples/create-variant.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-article.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-catalog.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-collection.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-customer.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-discount.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-market.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-menu.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.js +0 -12
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-metaobject.js +0 -12
- package/src/surfaces/admin/api/intents/examples/edit-page.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-product.js +0 -11
- package/src/surfaces/admin/api/intents/examples/edit-variant.js +0 -12
- package/src/surfaces/admin/api/picker/examples/direct-api.js +0 -73
- package/src/surfaces/admin/api/picker/examples/disabled.js +0 -16
- package/src/surfaces/admin/api/picker/examples/minimal.js +0 -16
- package/src/surfaces/admin/api/picker/examples/multiple-limit.js +0 -21
- package/src/surfaces/admin/api/picker/examples/multiple-true.js +0 -21
- package/src/surfaces/admin/api/picker/examples/preselected.js +0 -16
- package/src/surfaces/admin/api/picker/examples/template-picker.js +0 -37
- package/src/surfaces/admin/api/resource-picker/examples/action.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/collection-picker.js +0 -1
- package/src/surfaces/admin/api/resource-picker/examples/filter-query.js +0 -6
- package/src/surfaces/admin/api/resource-picker/examples/filters.js +0 -9
- package/src/surfaces/admin/api/resource-picker/examples/multiple-limited.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/multiple-unlimited.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/product-picker.js +0 -3
- package/src/surfaces/admin/api/resource-picker/examples/product-variant-picker.js +0 -1
- package/src/surfaces/admin/api/resource-picker/examples/query.js +0 -4
- package/src/surfaces/admin/api/resource-picker/examples/selection-ids.js +0 -16
- package/src/surfaces/admin/api/resource-picker/examples/selection.js +0 -7
- package/src/surfaces/admin/components/AdminAction/examples/default.tsx +0 -15
- package/src/surfaces/admin/components/AdminBlock/examples/default.tsx +0 -1
- package/src/surfaces/admin/components/AdminPrintAction/examples/default.tsx +0 -9
- package/src/surfaces/admin/components/Avatar/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/color-consistency-demo.jsx +0 -7
- package/src/surfaces/admin/components/Avatar/examples/default-avatar-no-props.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Avatar/examples/error-handling-example.jsx +0 -5
- package/src/surfaces/admin/components/Avatar/examples/fulfillment-partner-avatars.jsx +0 -14
- package/src/surfaces/admin/components/Avatar/examples/in-customer-list-context.jsx +0 -24
- package/src/surfaces/admin/components/Avatar/examples/long-initials-handling.jsx +0 -5
- package/src/surfaces/admin/components/Avatar/examples/size-variations.jsx +0 -7
- package/src/surfaces/admin/components/Avatar/examples/staff-member-profiles.jsx +0 -10
- package/src/surfaces/admin/components/Avatar/examples/with-image-source-and-fallback.jsx +0 -6
- package/src/surfaces/admin/components/Avatar/examples/with-section-component.jsx +0 -17
- package/src/surfaces/admin/components/Badge/examples/default.jsx +0 -8
- package/src/surfaces/admin/components/Badge/examples/different-sizes-for-emphasis.jsx +0 -4
- package/src/surfaces/admin/components/Badge/examples/order-status-badges.html +0 -6
- package/src/surfaces/admin/components/Badge/examples/order-status-badges.jsx +0 -6
- package/src/surfaces/admin/components/Badge/examples/status-indicators-with-icons.jsx +0 -21
- package/src/surfaces/admin/components/Badge/examples/within-table-context.jsx +0 -18
- package/src/surfaces/admin/components/Banner/examples/basic-information-banner.html +0 -3
- package/src/surfaces/admin/components/Banner/examples/basic-information-banner.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/critical-banner-with-clear-next-steps.jsx +0 -18
- package/src/surfaces/admin/components/Banner/examples/default.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/dismissible-success-banner.jsx +0 -3
- package/src/surfaces/admin/components/Banner/examples/info-banner-with-clear-value-proposition.html +0 -14
- package/src/surfaces/admin/components/Banner/examples/info-banner-with-clear-value-proposition.jsx +0 -14
- package/src/surfaces/admin/components/Banner/examples/warning-banner-with-specific-actions.jsx +0 -18
- package/src/surfaces/admin/components/Box/examples/accessible-status-messages.jsx +0 -14
- package/src/surfaces/admin/components/Box/examples/basic-container.html +0 -9
- package/src/surfaces/admin/components/Box/examples/basic-container.jsx +0 -9
- package/src/surfaces/admin/components/Box/examples/complex-merchant-dashboard-layout.jsx +0 -34
- package/src/surfaces/admin/components/Box/examples/default.jsx +0 -7
- package/src/surfaces/admin/components/Box/examples/responsive-shipping-notice.jsx +0 -10
- package/src/surfaces/admin/components/Button/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Button/examples/bulk-actions.html +0 -4
- package/src/surfaces/admin/components/Button/examples/bulk-actions.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/component-interactions.jsx +0 -7
- package/src/surfaces/admin/components/Button/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Button/examples/delete-confirmation.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/form-states.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/icon-only-button.jsx +0 -1
- package/src/surfaces/admin/components/Button/examples/link-buttons.jsx +0 -9
- package/src/surfaces/admin/components/Button/examples/loading-state-for-merchant-actions.jsx +0 -11
- package/src/surfaces/admin/components/Button/examples/navigation-to-admin-sections.html +0 -2
- package/src/surfaces/admin/components/Button/examples/navigation-to-admin-sections.jsx +0 -3
- package/src/surfaces/admin/components/Button/examples/product-save-form.html +0 -4
- package/src/surfaces/admin/components/Button/examples/product-save-form.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/tones.jsx +0 -5
- package/src/surfaces/admin/components/Button/examples/toolbar-icon-buttons.html +0 -17
- package/src/surfaces/admin/components/Button/examples/toolbar-icon-buttons.jsx +0 -17
- package/src/surfaces/admin/components/Button/examples/variants.jsx +0 -6
- package/src/surfaces/admin/components/Button/examples/with-icon.jsx +0 -1
- package/src/surfaces/admin/components/ButtonGroup/examples/basic-usage.html +0 -4
- package/src/surfaces/admin/components/ButtonGroup/examples/basic-usage.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/bulk-actions-in-data-tables.jsx +0 -7
- package/src/surfaces/admin/components/ButtonGroup/examples/destructive-actions-pattern.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/form-action-buttons.html +0 -4
- package/src/surfaces/admin/components/ButtonGroup/examples/form-action-buttons.jsx +0 -6
- package/src/surfaces/admin/components/ButtonGroup/examples/segmented-appearance.jsx +0 -5
- package/src/surfaces/admin/components/ButtonGroup/examples/toolbar-buttons-with-icons.jsx +0 -11
- package/src/surfaces/admin/components/Checkbox/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/disabled-state.jsx +0 -5
- package/src/surfaces/admin/components/Checkbox/examples/error-state.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/help-text.html +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/help-text.jsx +0 -4
- package/src/surfaces/admin/components/Checkbox/examples/indeterminate-state.jsx +0 -21
- package/src/surfaces/admin/components/Checkbox/examples/settings-group.jsx +0 -12
- package/src/surfaces/admin/components/Checkbox/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/Chip/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Chip/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Chip/examples/color-variants.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Chip/examples/product-status.html +0 -8
- package/src/surfaces/admin/components/Chip/examples/product-status.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/text-truncation.jsx +0 -12
- package/src/surfaces/admin/components/Chip/examples/with-icon-graphic.jsx +0 -4
- package/src/surfaces/admin/components/ChoiceList/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/ChoiceList/examples/default.jsx +0 -16
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-choices-with-details.html +0 -18
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-choices-with-details.jsx +0 -18
- package/src/surfaces/admin/components/ChoiceList/examples/multiple-selections.jsx +0 -15
- package/src/surfaces/admin/components/ChoiceList/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/ChoiceList/examples/with-error-state.jsx +0 -8
- package/src/surfaces/admin/components/Clickable/examples/accessibility-with-aria-attributes.jsx +0 -8
- package/src/surfaces/admin/components/Clickable/examples/basic-button-usage.html +0 -1
- package/src/surfaces/admin/components/Clickable/examples/basic-button-usage.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/default.jsx +0 -12
- package/src/surfaces/admin/components/Clickable/examples/disabled-link-with-aria.jsx +0 -7
- package/src/surfaces/admin/components/Clickable/examples/form-submit-button.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/link-mode.jsx +0 -3
- package/src/surfaces/admin/components/Clickable/examples/section-with-clickable-action.jsx +0 -9
- package/src/surfaces/admin/components/ClickableChip/examples/as-a-link.jsx +0 -8
- package/src/surfaces/admin/components/ClickableChip/examples/basic-usage.jsx +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ClickableChip/examples/disabled-state.jsx +0 -7
- package/src/surfaces/admin/components/ClickableChip/examples/multiple-chips-with-proper-spacing.html +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/multiple-chips-with-proper-spacing.jsx +0 -17
- package/src/surfaces/admin/components/ClickableChip/examples/with-icon-and-remove-button.jsx +0 -8
- package/src/surfaces/admin/components/ColorField/examples/basic-usage-required.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/basic-usage-web-component.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ColorField/examples/form-integration.jsx +0 -28
- package/src/surfaces/admin/components/ColorField/examples/read-only-state.jsx +0 -3
- package/src/surfaces/admin/components/ColorField/examples/validation-example.jsx +0 -21
- package/src/surfaces/admin/components/ColorField/examples/with-alpha-transparency.jsx +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-error-state.jsx +0 -9
- package/src/surfaces/admin/components/ColorField/examples/with-help-text.jsx +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-placeholder.html +0 -7
- package/src/surfaces/admin/components/ColorField/examples/with-placeholder.jsx +0 -7
- package/src/surfaces/admin/components/ColorPicker/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/ColorPicker/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/ColorPicker/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/ColorPicker/examples/with-alpha-transparency.jsx +0 -7
- package/src/surfaces/admin/components/DateField/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/date-fields-with-validation.html +0 -29
- package/src/surfaces/admin/components/DateField/examples/date-fields-with-validation.jsx +0 -29
- package/src/surfaces/admin/components/DateField/examples/date-range-selection.jsx +0 -19
- package/src/surfaces/admin/components/DateField/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/DateField/examples/disabled-and-read-only-states.jsx +0 -15
- package/src/surfaces/admin/components/DateField/examples/form-integration.jsx +0 -27
- package/src/surfaces/admin/components/DateField/examples/validation-example.jsx +0 -20
- package/src/surfaces/admin/components/DateField/examples/with-date-restrictions.jsx +0 -6
- package/src/surfaces/admin/components/DateField/examples/with-default-value.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/with-error-state.jsx +0 -5
- package/src/surfaces/admin/components/DateField/examples/with-specific-allowed-dates.jsx +0 -6
- package/src/surfaces/admin/components/DatePicker/examples/analytics-dashboard.jsx +0 -35
- package/src/surfaces/admin/components/DatePicker/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/DatePicker/examples/form-integration.jsx +0 -28
- package/src/surfaces/admin/components/DatePicker/examples/single-date-selection.jsx +0 -6
- package/src/surfaces/admin/components/DatePicker/examples/with-date-restrictions.jsx +0 -7
- package/src/surfaces/admin/components/Divider/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/custom-color.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/custom-direction.jsx +0 -5
- package/src/surfaces/admin/components/Divider/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Divider/examples/organizing-settings-panels.html +0 -9
- package/src/surfaces/admin/components/Divider/examples/organizing-settings-panels.jsx +0 -9
- package/src/surfaces/admin/components/Divider/examples/separating-content-sections.html +0 -13
- package/src/surfaces/admin/components/Divider/examples/separating-content-sections.jsx +0 -13
- package/src/surfaces/admin/components/Divider/examples/separating-form-sections.jsx +0 -7
- package/src/surfaces/admin/components/Divider/examples/visual-breaks-in-section-layouts.html +0 -12
- package/src/surfaces/admin/components/Divider/examples/visual-breaks-in-section-layouts.jsx +0 -12
- package/src/surfaces/admin/components/DropZone/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/default.jsx +0 -9
- package/src/surfaces/admin/components/DropZone/examples/disabled-state.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/file-type-restrictions.jsx +0 -5
- package/src/surfaces/admin/components/DropZone/examples/image-upload.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/required-field.jsx +0 -1
- package/src/surfaces/admin/components/DropZone/examples/with-accessibility-options.jsx +0 -6
- package/src/surfaces/admin/components/DropZone/examples/with-error-state.jsx +0 -4
- package/src/surfaces/admin/components/EmailField/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/EmailField/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/EmailField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/EmailField/examples/optional-field-with-placeholder.html +0 -7
- package/src/surfaces/admin/components/EmailField/examples/optional-field-with-placeholder.jsx +0 -7
- package/src/surfaces/admin/components/EmailField/examples/read-only-display.jsx +0 -7
- package/src/surfaces/admin/components/EmailField/examples/validation-example.jsx +0 -21
- package/src/surfaces/admin/components/EmailField/examples/with-error-and-help-text.jsx +0 -8
- package/src/surfaces/admin/components/EmailField/examples/with-length-constraints.jsx +0 -8
- package/src/surfaces/admin/components/Form/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/FunctionSettings/examples/default.tsx +0 -38
- package/src/surfaces/admin/components/Grid/examples/basic-two-column-layout.jsx +0 -12
- package/src/surfaces/admin/components/Grid/examples/col-span-layouts.jsx +0 -34
- package/src/surfaces/admin/components/Grid/examples/default.jsx +0 -15
- package/src/surfaces/admin/components/Grid/examples/mobile-first-responsive-grid.jsx +0 -53
- package/src/surfaces/admin/components/Heading/examples/basic-heading.html +0 -1
- package/src/surfaces/admin/components/Heading/examples/basic-heading.jsx +0 -1
- package/src/surfaces/admin/components/Heading/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Heading/examples/heading-with-custom-accessibility.jsx +0 -3
- package/src/surfaces/admin/components/Heading/examples/heading-with-line-clamping.jsx +0 -5
- package/src/surfaces/admin/components/Heading/examples/heading-within-section-hierarchy.jsx +0 -12
- package/src/surfaces/admin/components/Icon/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/Icon/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Icon/examples/in-badge-components.jsx +0 -8
- package/src/surfaces/admin/components/Icon/examples/in-button-components.jsx +0 -8
- package/src/surfaces/admin/components/Icon/examples/small-size.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/subdued-color.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/with-id-property.jsx +0 -1
- package/src/surfaces/admin/components/Icon/examples/with-interest-relationship.jsx +0 -6
- package/src/surfaces/admin/components/Icon/examples/with-semantic-tone.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/auto-sized-image.html +0 -5
- package/src/surfaces/admin/components/Image/examples/auto-sized-image.jsx +0 -5
- package/src/surfaces/admin/components/Image/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Image/examples/decorative-image.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Image/examples/responsive-images-with-srcset.jsx +0 -9
- package/src/surfaces/admin/components/Image/examples/responsive-layout-with-aspect-ratio.jsx +0 -7
- package/src/surfaces/admin/components/Image/examples/with-border-styling.jsx +0 -12
- package/src/surfaces/admin/components/Image/examples/within-layout-components.jsx +0 -26
- package/src/surfaces/admin/components/Link/examples/basic-links-in-paragraph.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/critical-context-links.html +0 -3
- package/src/surfaces/admin/components/Link/examples/critical-context-links.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Link/examples/download-links.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/external-links.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner-context.html +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner-context.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-banner.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-box-container.jsx +0 -5
- package/src/surfaces/admin/components/Link/examples/links-in-subdued-paragraph.html +0 -3
- package/src/surfaces/admin/components/Link/examples/links-in-subdued-paragraph.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-auto-tone.html +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-auto-tone.jsx +0 -3
- package/src/surfaces/admin/components/Link/examples/links-with-different-tones.jsx +0 -25
- package/src/surfaces/admin/components/Link/examples/links-with-language-attribute.jsx +0 -3
- package/src/surfaces/admin/components/Menu/examples/basic-menu.html +0 -7
- package/src/surfaces/admin/components/Menu/examples/basic-menu.jsx +0 -9
- package/src/surfaces/admin/components/Menu/examples/customer-actions-menu.jsx +0 -18
- package/src/surfaces/admin/components/Menu/examples/default.jsx +0 -11
- package/src/surfaces/admin/components/Menu/examples/menu-with-icons.jsx +0 -14
- package/src/surfaces/admin/components/Menu/examples/menu-with-links-and-disabled-items.jsx +0 -13
- package/src/surfaces/admin/components/Menu/examples/menu-with-sections.jsx +0 -15
- package/src/surfaces/admin/components/Menu/examples/settings-menu.jsx +0 -19
- package/src/surfaces/admin/components/NumberField/examples/basic-usage.jsx +0 -7
- package/src/surfaces/admin/components/NumberField/examples/default.jsx +0 -8
- package/src/surfaces/admin/components/NumberField/examples/multiple-examples.html +0 -29
- package/src/surfaces/admin/components/NumberField/examples/multiple-examples.jsx +0 -29
- package/src/surfaces/admin/components/NumberField/examples/with-prefix-and-suffix.jsx +0 -9
- package/src/surfaces/admin/components/OrderedList/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/OrderedList/examples/fulfillment-process.html +0 -18
- package/src/surfaces/admin/components/OrderedList/examples/fulfillment-process.jsx +0 -18
- package/src/surfaces/admin/components/OrderedList/examples/order-processing-steps.html +0 -8
- package/src/surfaces/admin/components/OrderedList/examples/order-processing-steps.jsx +0 -8
- package/src/surfaces/admin/components/OrderedList/examples/product-setup-instructions.jsx +0 -13
- package/src/surfaces/admin/components/Paragraph/examples/admin-ui-patterns.html +0 -21
- package/src/surfaces/admin/components/Paragraph/examples/admin-ui-patterns.jsx +0 -21
- package/src/surfaces/admin/components/Paragraph/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Paragraph/examples/line-clamping.jsx +0 -8
- package/src/surfaces/admin/components/Paragraph/examples/rtl-support.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/screen-reader-text.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/tabular-numbers.jsx +0 -3
- package/src/surfaces/admin/components/Paragraph/examples/with-tone-and-color.jsx +0 -9
- package/src/surfaces/admin/components/QueryContainer/examples/basic-usage.jsx +0 -17
- package/src/surfaces/admin/components/SearchField/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/SearchField/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/SearchField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/SearchField/examples/disabled-state.jsx +0 -6
- package/src/surfaces/admin/components/SearchField/examples/with-character-limits.jsx +0 -7
- package/src/surfaces/admin/components/SearchField/examples/with-error-state.jsx +0 -6
- package/src/surfaces/admin/components/Section/examples/default.jsx +0 -3
- package/src/surfaces/admin/components/Section/examples/full-width-content-layout.jsx +0 -18
- package/src/surfaces/admin/components/Section/examples/nested-sections-with-visual-level-differences.jsx +0 -23
- package/src/surfaces/admin/components/Section/examples/section-with-accessibility-label.jsx +0 -13
- package/src/surfaces/admin/components/Section/examples/top-level-section-with-form-elements.jsx +0 -5
- package/src/surfaces/admin/components/Spinner/examples/basic-usage.html +0 -1
- package/src/surfaces/admin/components/Spinner/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/Spinner/examples/default.jsx +0 -1
- package/src/surfaces/admin/components/Spinner/examples/inline-loading-with-text.jsx +0 -4
- package/src/surfaces/admin/components/Spinner/examples/loading-state-in-section.jsx +0 -4
- package/src/surfaces/admin/components/Stack/examples/basic-block-stack-vertical.html +0 -5
- package/src/surfaces/admin/components/Stack/examples/basic-block-stack-vertical.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/custom-alignment.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/custom-spacing.jsx +0 -18
- package/src/surfaces/admin/components/Stack/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Stack/examples/inline-stack-horizontal.jsx +0 -5
- package/src/surfaces/admin/components/Stack/examples/responsive-stack-with-container-queries.jsx +0 -23
- package/src/surfaces/admin/components/Table/examples/default.jsx +0 -30
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.html +0 -65
- package/src/surfaces/admin/components/Table/examples/full-width-product-inventory-table.jsx +0 -65
- package/src/surfaces/admin/components/Table/examples/list-variant.jsx +0 -44
- package/src/surfaces/admin/components/Table/examples/with-loading-state.jsx +0 -40
- package/src/surfaces/admin/components/Table/examples/with-pagination.jsx +0 -27
- package/src/surfaces/admin/components/Text/examples/accessibility-hidden-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/basic-usage.html +0 -3
- package/src/surfaces/admin/components/Text/examples/basic-usage.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Text/examples/interest-for-association.jsx +0 -8
- package/src/surfaces/admin/components/Text/examples/right-to-left-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/semantic-address.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/status-tones.jsx +0 -5
- package/src/surfaces/admin/components/Text/examples/strong-text.html +0 -3
- package/src/surfaces/admin/components/Text/examples/strong-text.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/subdued-color.jsx +0 -3
- package/src/surfaces/admin/components/Text/examples/tabular-numbers.jsx +0 -3
- package/src/surfaces/admin/components/TextArea/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/TextArea/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/TextArea/examples/error-state.jsx +0 -8
- package/src/surfaces/admin/components/TextArea/examples/product-care-instructions.html +0 -7
- package/src/surfaces/admin/components/TextArea/examples/product-care-instructions.jsx +0 -7
- package/src/surfaces/admin/components/TextArea/examples/seo-meta-description-with-character-limit.jsx +0 -8
- package/src/surfaces/admin/components/TextField/examples/basic-usage.html +0 -1
- package/src/surfaces/admin/components/TextField/examples/basic-usage.jsx +0 -1
- package/src/surfaces/admin/components/TextField/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/TextField/examples/required-field-with-validation.html +0 -1
- package/src/surfaces/admin/components/TextField/examples/required-field-with-validation.jsx +0 -1
- package/src/surfaces/admin/components/TextField/examples/specific-error-messages-for-merchant-context.jsx +0 -16
- package/src/surfaces/admin/components/TextField/examples/with-accessory.jsx +0 -6
- package/src/surfaces/admin/components/TextField/examples/with-icon.jsx +0 -5
- package/src/surfaces/admin/components/TextField/examples/with-prefix-and-suffix.jsx +0 -11
- package/src/surfaces/admin/components/Thumbnail/examples/basic-usage.html +0 -5
- package/src/surfaces/admin/components/Thumbnail/examples/basic-usage.jsx +0 -5
- package/src/surfaces/admin/components/Thumbnail/examples/default.jsx +0 -4
- package/src/surfaces/admin/components/Thumbnail/examples/different-sizes.jsx +0 -17
- package/src/surfaces/admin/components/Thumbnail/examples/empty-state.jsx +0 -1
- package/src/surfaces/admin/components/Thumbnail/examples/with-event-handling.jsx +0 -13
- package/src/surfaces/admin/components/Tooltip/examples/basic-usage.jsx +0 -6
- package/src/surfaces/admin/components/Tooltip/examples/default.jsx +0 -6
- package/src/surfaces/admin/components/Tooltip/examples/with-icon-button.jsx +0 -8
- package/src/surfaces/admin/components/UnorderedList/examples/default.jsx +0 -5
- package/src/surfaces/admin/components/UnorderedList/examples/store-setup-checklist.jsx +0 -24
- /package/src/surfaces/admin/components/Button/examples/{basic-usage.html → basic-button.html} +0 -0
- /package/src/surfaces/{admin/components/Divider/examples/basic-usage.html → customer-account/components/Divider/examples/basic-divider.example.html} +0 -0
|
@@ -12,76 +12,111 @@ import type {ExtensionTarget} from '../../extension-targets';
|
|
|
12
12
|
import {Extension} from '../shared';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A [metafield](/docs/apps/build/custom-data/metafields) associated with the order, identified by a namespace and key.
|
|
16
16
|
*/
|
|
17
17
|
export interface Metafield {
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
* length (inclusive).
|
|
19
|
+
* The identifier for the metafield within its namespace, such as `'ingredients'` or `'rating'`.
|
|
21
20
|
*/
|
|
22
21
|
key: string;
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
26
|
-
* namespace for your metafields to distinguish them from the metafields
|
|
27
|
-
* used by other apps. This must be between 2 and 20 characters in length (inclusive).
|
|
24
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
28
25
|
*/
|
|
29
26
|
namespace: string;
|
|
30
27
|
|
|
31
28
|
/**
|
|
32
|
-
* The
|
|
29
|
+
* The data stored in the metafield. The format depends on the `valueType`: a plain string for `'string'`, a numeric value for `'integer'`, or a serialized JSON object for `'json_string'`.
|
|
33
30
|
*/
|
|
34
31
|
value: string | number;
|
|
35
32
|
|
|
36
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The data type of the metafield value. Determines how the `value` field should be interpreted:
|
|
35
|
+
*
|
|
36
|
+
* - `'integer'`: A whole number.
|
|
37
|
+
* - `'string'`: A plain text value.
|
|
38
|
+
* - `'json_string'`: A serialized JSON object or array.
|
|
39
|
+
*/
|
|
37
40
|
valueType: 'integer' | 'string' | 'json_string';
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
44
|
+
* A [metafield](/docs/apps/build/custom-data/metafields) attached to a Shopify resource, such as a product, variant, customer, or the shop. Metafields let merchants and apps store custom data beyond what Shopify provides by default.
|
|
42
45
|
*/
|
|
43
46
|
export interface AppMetafield {
|
|
44
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* The identifier for the metafield within its namespace, such as `'ingredients'` or `'shipping_weight'`.
|
|
49
|
+
*/
|
|
45
50
|
key: string;
|
|
46
51
|
|
|
47
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
54
|
+
*/
|
|
48
55
|
namespace: string;
|
|
49
56
|
|
|
50
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* The data stored in the metafield. The format depends on the `valueType`: a string for `'string'`, a number for `'integer'` or `'float'`, a boolean for `'boolean'`, or a serialized JSON object for `'json_string'`.
|
|
59
|
+
*/
|
|
51
60
|
value: string | number | boolean;
|
|
52
61
|
|
|
53
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The data type of the metafield value. Determines how to interpret the `value` field:
|
|
64
|
+
*
|
|
65
|
+
* - `'boolean'`: A `true` or `false` value.
|
|
66
|
+
* - `'float'`: A decimal number.
|
|
67
|
+
* - `'integer'`: A whole number.
|
|
68
|
+
* - `'json_string'`: A serialized JSON object or array.
|
|
69
|
+
* - `'string'`: A plain text value.
|
|
70
|
+
*/
|
|
54
71
|
valueType: 'boolean' | 'float' | 'integer' | 'json_string' | 'string';
|
|
55
72
|
|
|
56
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* The metafield's [content type](/docs/apps/build/custom-data/metafields/list-of-data-types), which provides more specific type information than `valueType`. For example, `'single_line_text_field'`, `'number_integer'`, or `'json'`.
|
|
75
|
+
*/
|
|
57
76
|
type: string;
|
|
58
77
|
}
|
|
59
78
|
|
|
60
79
|
/**
|
|
61
|
-
*
|
|
80
|
+
* A [metafield](/docs/apps/build/custom-data/metafields) attached to the cart. Cart metafields are temporary and only persist for the duration of the checkout session.
|
|
62
81
|
*/
|
|
63
82
|
export interface CartMetafield {
|
|
64
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The identifier for the metafield within its namespace.
|
|
85
|
+
*/
|
|
65
86
|
key: string;
|
|
66
87
|
|
|
67
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
90
|
+
*/
|
|
68
91
|
namespace: string;
|
|
69
92
|
|
|
70
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* The string value stored in the cart metafield. Unlike `AppMetafield`, cart metafield values are always strings.
|
|
95
|
+
*/
|
|
71
96
|
value: string;
|
|
72
97
|
|
|
73
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* The metafield's [content type](/docs/apps/build/custom-data/metafields/list-of-data-types), which describes the structure and validation of the value. For example, `'single_line_text_field'` or `'json'`.
|
|
100
|
+
*/
|
|
74
101
|
type: string;
|
|
75
102
|
}
|
|
76
103
|
|
|
77
104
|
/**
|
|
78
|
-
* The metafield
|
|
105
|
+
* The Shopify resource that a metafield is attached to. Each entry identifies a specific resource by its type and globally-unique ID, so your extension can determine where the metafield data originates.
|
|
79
106
|
*/
|
|
80
107
|
export interface AppMetafieldEntryTarget {
|
|
81
108
|
/**
|
|
82
|
-
* The
|
|
109
|
+
* The kind of Shopify resource this metafield belongs to:
|
|
83
110
|
*
|
|
84
|
-
*
|
|
111
|
+
* - `'customer'`: The customer who placed the order.
|
|
112
|
+
* - `'product'`: A product in the merchant's catalog.
|
|
113
|
+
* - `'shop'`: The merchant's shop.
|
|
114
|
+
* - `'variant'`: A specific variant of a product.
|
|
115
|
+
* - `'company'`: A B2B company associated with the order.
|
|
116
|
+
* - `'companyLocation'`: A location belonging to a B2B company.
|
|
117
|
+
* - `'cart'`: The cart associated with the order.
|
|
118
|
+
*
|
|
119
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company`, or `companyLocation`.
|
|
85
120
|
*/
|
|
86
121
|
type:
|
|
87
122
|
| 'customer'
|
|
@@ -92,22 +127,26 @@ export interface AppMetafieldEntryTarget {
|
|
|
92
127
|
| 'companyLocation'
|
|
93
128
|
| 'cart';
|
|
94
129
|
|
|
95
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* The globally-unique identifier of the Shopify resource, in [GID](https://shopify.dev/docs/api/usage/gids) format. Use this value to match the metafield to a specific resource in your extension or when querying the GraphQL API.
|
|
132
|
+
*
|
|
133
|
+
* @example 'gid://shopify/Product/123'
|
|
134
|
+
*/
|
|
96
135
|
id: string;
|
|
97
136
|
}
|
|
98
137
|
|
|
99
138
|
/**
|
|
100
|
-
*
|
|
139
|
+
* An entry that pairs a Shopify resource with one of its [metafields](/docs/apps/build/custom-data/metafields). Each entry contains a `target` identifying which resource the metafield belongs to and a `metafield` object with the actual data. Use `appMetafields` on the Order API to access these entries.
|
|
101
140
|
*/
|
|
102
141
|
export interface AppMetafieldEntry {
|
|
103
142
|
/**
|
|
104
|
-
* The
|
|
105
|
-
*
|
|
106
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
107
|
-
*/
|
|
143
|
+
* The Shopify resource that this metafield is attached to, including the resource type (such as `'product'` or `'customer'`) and its globally-unique ID.
|
|
144
|
+
* */
|
|
108
145
|
target: AppMetafieldEntryTarget;
|
|
109
146
|
|
|
110
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* The metafield data, including the namespace, key, value, and content type. Use the `namespace` and `key` together to uniquely identify the metafield within its resource.
|
|
149
|
+
*/
|
|
111
150
|
metafield: AppMetafield;
|
|
112
151
|
}
|
|
113
152
|
|
|
@@ -115,258 +154,257 @@ export type Version = string;
|
|
|
115
154
|
|
|
116
155
|
export interface Currency {
|
|
117
156
|
/**
|
|
118
|
-
* The
|
|
119
|
-
* @see https://www.iso.org/iso-4217-currency-codes.html
|
|
157
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, such as `'USD'`, `'EUR'`, or `'CAD'`.
|
|
120
158
|
*/
|
|
121
159
|
isoCode: CurrencyCode;
|
|
122
160
|
}
|
|
123
161
|
|
|
124
162
|
export interface Market {
|
|
125
163
|
/**
|
|
126
|
-
* A globally-unique identifier for
|
|
164
|
+
* A globally-unique identifier for the market in the format `gid://shopify/Market/<id>`.
|
|
127
165
|
*/
|
|
128
166
|
id: string;
|
|
129
167
|
|
|
130
168
|
/**
|
|
131
|
-
* The human-readable, shop-scoped identifier for the market.
|
|
169
|
+
* The human-readable, shop-scoped identifier for the market, such as `'us'` or `'eu'`. Merchants define these handles when configuring [Shopify Markets](/docs/apps/build/markets).
|
|
132
170
|
*/
|
|
133
171
|
handle: string;
|
|
134
172
|
}
|
|
135
173
|
|
|
136
174
|
export interface OrderStatusLocalization {
|
|
137
175
|
/**
|
|
138
|
-
* The currency
|
|
176
|
+
* The currency used to display money amounts on the **Order status** page. Use this value
|
|
177
|
+
* to format prices and totals in the buyer's expected currency.
|
|
139
178
|
*/
|
|
140
179
|
currency: SubscribableSignalLike<Currency>;
|
|
141
180
|
|
|
142
181
|
/**
|
|
143
|
-
* The buyer
|
|
182
|
+
* The buyer's time zone, derived from their browser or account settings. Use this value
|
|
183
|
+
* to format dates and times relative to the buyer's local time.
|
|
144
184
|
*/
|
|
145
185
|
timezone: SubscribableSignalLike<Timezone>;
|
|
146
186
|
|
|
147
187
|
/**
|
|
148
|
-
* The language the buyer sees
|
|
188
|
+
* The language the buyer sees on the **Order status** page. This reflects the language
|
|
189
|
+
* selected by the buyer or determined by their browser settings, and may differ from
|
|
190
|
+
* the languages your extension supports.
|
|
149
191
|
*/
|
|
150
192
|
language: SubscribableSignalLike<Language>;
|
|
151
193
|
|
|
152
194
|
/**
|
|
153
|
-
*
|
|
154
|
-
* If the buyer's
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* only supports translations for 'fr', then the `isoCode` for this
|
|
159
|
-
* language is 'fr'. If your extension does not provide french
|
|
160
|
-
* translations at all, this value is the default locale for your
|
|
161
|
-
* extension (that is, the one matching your .default.json file).
|
|
195
|
+
* The best available language match for your extension based on the buyer's language.
|
|
196
|
+
* If the buyer's language is `fr-CA` but your extension only supports `fr`, this
|
|
197
|
+
* returns `fr`. If your extension doesn't support any variant of the buyer's language,
|
|
198
|
+
* this falls back to your extension's default locale (the `.default.json` translation file).
|
|
199
|
+
* Use this value to load the correct translation file for your extension.
|
|
162
200
|
*/
|
|
163
201
|
extensionLanguage: SubscribableSignalLike<Language>;
|
|
164
202
|
|
|
165
203
|
/**
|
|
166
|
-
* The country
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
204
|
+
* The country associated with the order, carried over from the cart context where it was
|
|
205
|
+
* used to contextualize the storefront experience. Use this value to display region-specific
|
|
206
|
+
* content such as local support information or regional policies. The value is `undefined`
|
|
207
|
+
* if the buyer's country is unknown.
|
|
170
208
|
*/
|
|
171
209
|
country: SubscribableSignalLike<Country | undefined>;
|
|
172
210
|
|
|
173
211
|
/**
|
|
174
|
-
* The [market](
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
* buyer changes the country of their shipping address. The value is undefined
|
|
178
|
-
* if unknown.
|
|
212
|
+
* The [market](/docs/apps/build/markets) associated with the order, carried
|
|
213
|
+
* over from the cart context. Markets group countries and regions with shared pricing,
|
|
214
|
+
* languages, and domains. The value is `undefined` if the market is unknown.
|
|
179
215
|
*/
|
|
180
216
|
market: SubscribableSignalLike<Market | undefined>;
|
|
181
217
|
}
|
|
182
218
|
|
|
219
|
+
/**
|
|
220
|
+
* The buyer's authentication status on the **Order status** page:
|
|
221
|
+
*
|
|
222
|
+
* - `'fully_authenticated'`: The buyer has logged in to their customer account.
|
|
223
|
+
* - `'pre_authenticated'`: The buyer accessed the page via a direct link, such as from an order confirmation email, without logging in.
|
|
224
|
+
*/
|
|
183
225
|
export type AuthenticationState = 'fully_authenticated' | 'pre_authenticated';
|
|
184
226
|
|
|
185
227
|
export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
186
228
|
/**
|
|
187
|
-
*
|
|
229
|
+
* The gift cards that were applied to the order. Each gift card includes the last four
|
|
230
|
+
* characters of the code, the amount used for this order, and the remaining balance.
|
|
188
231
|
*/
|
|
189
232
|
appliedGiftCards: SubscribableSignalLike<AppliedGiftCard[]>;
|
|
190
233
|
|
|
191
234
|
/**
|
|
192
|
-
* The metafields requested in the
|
|
193
|
-
* [`shopify.
|
|
194
|
-
* file.
|
|
195
|
-
*
|
|
235
|
+
* The [metafields](/docs/apps/build/custom-data/metafields) requested in the
|
|
236
|
+
* [`shopify.extension.toml`](/docs/api/customer-account-ui-extensions/latest#configuration)
|
|
237
|
+
* file. Metafields are custom data fields that store additional information on Shopify resources
|
|
238
|
+
* such as products, variants, customers, and the shop. These metafields are updated when there's
|
|
239
|
+
* a change in the merchandise items being purchased by the customer.
|
|
196
240
|
*
|
|
197
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
241
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when accessing metafields attached to `customer`, `company`, or `companyLocation` resources.
|
|
198
242
|
*/
|
|
199
243
|
appMetafields: SubscribableSignalLike<AppMetafieldEntry[]>;
|
|
200
244
|
|
|
201
245
|
/**
|
|
202
|
-
*
|
|
246
|
+
* The custom key-value pairs attached to the order by the customer or by other extensions
|
|
247
|
+
* during cart or checkout. These are commonly used for delivery instructions, gift messages,
|
|
248
|
+
* or other information the buyer provides. The value is `undefined` if no attributes were set.
|
|
203
249
|
*/
|
|
204
250
|
attributes: SubscribableSignalLike<Attribute[] | undefined>;
|
|
205
251
|
|
|
206
252
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
253
|
+
* The buyer who placed the order, including their customer account, email, phone number, and B2B purchasing company. Use this to personalize the **Order status** page or identify B2B orders.
|
|
210
254
|
*/
|
|
211
255
|
buyerIdentity?: OrderStatusBuyerIdentity;
|
|
212
256
|
|
|
213
257
|
/**
|
|
214
|
-
*
|
|
258
|
+
* The checkout settings that were active when the buyer placed the order, such as
|
|
259
|
+
* whether order notes and login are enabled.
|
|
215
260
|
*/
|
|
216
261
|
checkoutSettings: SubscribableSignalLike<CheckoutSettings>;
|
|
217
262
|
|
|
218
263
|
/**
|
|
219
|
-
*
|
|
264
|
+
* A breakdown of the costs for the order, including the subtotal, shipping, tax, and total amounts.
|
|
220
265
|
*/
|
|
221
266
|
cost: CartCost;
|
|
222
267
|
|
|
223
268
|
/**
|
|
224
|
-
* A list of discount codes applied to the
|
|
269
|
+
* A list of discount codes that the buyer entered during checkout and that were applied to the order.
|
|
225
270
|
*/
|
|
226
271
|
discountCodes: SubscribableSignalLike<CartDiscountCode[]>;
|
|
227
272
|
|
|
228
273
|
/**
|
|
229
|
-
*
|
|
274
|
+
* The cart-level discount allocations applied to the order. A discount allocation represents
|
|
275
|
+
* how a discount is distributed across the order. Each allocation includes the discounted
|
|
276
|
+
* amount and one of the following types:
|
|
277
|
+
*
|
|
278
|
+
* - `CartCodeDiscountAllocation`: A discount the buyer applied by entering a code at checkout.
|
|
279
|
+
* - `CartAutomaticDiscountAllocation`: A discount the merchant configured in Shopify admin to apply automatically.
|
|
280
|
+
* - `CartCustomDiscountAllocation`: A discount created programmatically by a [Shopify Function](/docs/apps/build/functions).
|
|
230
281
|
*/
|
|
231
282
|
discountAllocations: SubscribableSignalLike<CartDiscountAllocation[]>;
|
|
232
283
|
|
|
233
284
|
/**
|
|
234
|
-
*
|
|
285
|
+
* Metadata about the current extension, including its target, API version, and capabilities.
|
|
235
286
|
*/
|
|
236
287
|
extension: Extension<Target>;
|
|
237
288
|
|
|
238
289
|
/**
|
|
239
|
-
* The identifier that specifies where in Shopify
|
|
240
|
-
* injected. This will be one of the targets you have included in your
|
|
241
|
-
* extension’s configuration file.
|
|
290
|
+
* The identifier that specifies where in Shopify's UI your code is being injected. This will be one of the targets you have included in your extension's configuration file.
|
|
242
291
|
*
|
|
243
292
|
* @example 'customer-account.order-status.block.render'
|
|
244
|
-
* @see
|
|
245
|
-
* @see
|
|
293
|
+
* @see /docs/api/customer-account-ui-extensions/extension-targets-overview
|
|
294
|
+
* @see /docs/apps/app-extensions/configuration#targets
|
|
246
295
|
*
|
|
247
296
|
* @deprecated Deprecated as of version `2023-07`, use `extension.target` instead.
|
|
248
297
|
*/
|
|
249
298
|
extensionPoint: Target;
|
|
250
299
|
|
|
251
300
|
/**
|
|
252
|
-
* A list of
|
|
301
|
+
* A list of line items in the order. Each line includes the merchandise, quantity, cost,
|
|
302
|
+
* custom attributes, and discount allocations.
|
|
253
303
|
*/
|
|
254
304
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
255
305
|
|
|
256
306
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* [
|
|
260
|
-
*
|
|
307
|
+
* The buyer's locale, currency, time zone, country, and market context for the order.
|
|
308
|
+
* Use these values to adapt your extension's content to the buyer's region. For formatted
|
|
309
|
+
* dates, numbers, and translated strings, use the [Localization API](/docs/api/customer-account-ui-extensions/target-apis/platform-apis/localization-api)
|
|
310
|
+
* instead.
|
|
261
311
|
*/
|
|
262
312
|
localization: OrderStatusLocalization;
|
|
263
313
|
|
|
264
314
|
/**
|
|
265
|
-
* The metafields
|
|
266
|
-
* on which these metafields exist depends on the source of the order:
|
|
267
|
-
*
|
|
268
|
-
* - If the source is an order, then the metafields are on the order.
|
|
269
|
-
*
|
|
270
|
-
* - If the source is a draft order, then the initial value of metafields are
|
|
271
|
-
* from the draft order, and any new metafields you write are applied
|
|
272
|
-
* to the order created by the checkout.
|
|
273
|
-
*
|
|
274
|
-
* - For all other sources, the metafields are only stored locally on the
|
|
275
|
-
* client creating the checkout, and are applied to the order that
|
|
276
|
-
* results from checkout.
|
|
277
|
-
*
|
|
278
|
-
* These metafields are shared by all extensions running on checkout, and
|
|
279
|
-
* persist for as long as the customer is working on this checkout.
|
|
280
|
-
*
|
|
281
|
-
* Once the order is created, you can query these metafields using the
|
|
282
|
-
* [GraphQL Admin API](https://shopify.dev/docs/admin-api/graphql/reference/orders/order#metafield-2021-01)
|
|
315
|
+
* The [metafields](/docs/apps/build/custom-data/metafields) associated with the order. These metafields are shared across all extensions and persist throughout the checkout session.
|
|
283
316
|
*/
|
|
284
317
|
metafields: SubscribableSignalLike<Metafield[]>;
|
|
285
318
|
|
|
286
319
|
/**
|
|
287
320
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
321
|
+
* The value is `undefined` if no note was provided.
|
|
288
322
|
*/
|
|
289
323
|
note: SubscribableSignalLike<string | undefined>;
|
|
290
324
|
|
|
291
325
|
/**
|
|
292
|
-
*
|
|
326
|
+
* The order that was placed after checkout completion. Includes the order ID,
|
|
327
|
+
* display name, confirmation number, and timestamps for processing and cancellation.
|
|
328
|
+
* The value is `undefined` if the order hasn't been fully processed yet.
|
|
293
329
|
*/
|
|
294
330
|
order: SubscribableSignalLike<Order | undefined>;
|
|
295
331
|
|
|
296
332
|
/**
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
* and the `checkout_token` field in the [Admin REST API Order resource](
|
|
333
|
+
* The token that identifies the checkout session used to create the order. Use this value
|
|
334
|
+
* to correlate the order with analytics events or backend API calls. This matches the
|
|
335
|
+
* `token` field in the [WebPixel checkout payload](/docs/api/pixels/customer-events#checkout)
|
|
336
|
+
* and the `checkout_token` field in the [Admin REST API Order resource](/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
337
|
+
* The value is `undefined` if the checkout token is unavailable.
|
|
301
338
|
*/
|
|
302
339
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
303
340
|
|
|
304
341
|
/**
|
|
305
|
-
* The
|
|
306
|
-
*
|
|
307
|
-
*
|
|
342
|
+
* The shipping address that the buyer provided for the order. This is where physical goods
|
|
343
|
+
* are delivered. The value is `undefined` if the order contains only digital products or
|
|
344
|
+
* if a shipping address wasn't required.
|
|
308
345
|
*/
|
|
309
346
|
shippingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
310
347
|
|
|
311
348
|
/**
|
|
312
|
-
* The
|
|
313
|
-
*
|
|
314
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
349
|
+
* The billing address associated with the buyer's payment method for the order. The value
|
|
350
|
+
* is `undefined` if the order doesn't have a billing address on file.
|
|
315
351
|
*/
|
|
316
352
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
317
353
|
|
|
318
|
-
/**
|
|
354
|
+
/**
|
|
355
|
+
* The shop where the order was placed. Includes the shop ID, name, primary
|
|
356
|
+
* storefront URL, and myshopify.com domain.
|
|
357
|
+
*/
|
|
319
358
|
shop: Shop;
|
|
320
359
|
|
|
321
360
|
/**
|
|
322
|
-
* The
|
|
361
|
+
* The API version that the extension is using, such as `'2026-01'` or `'unstable'`. This corresponds to the version declared in your extension's configuration.
|
|
323
362
|
*
|
|
324
363
|
* @example 'unstable'
|
|
325
364
|
*/
|
|
326
365
|
version: Version;
|
|
327
366
|
|
|
328
367
|
/**
|
|
329
|
-
*
|
|
368
|
+
* Triggers a login prompt if the customer is viewing a pre-authenticated **Order status** page.
|
|
369
|
+
* Use this to require full authentication before displaying sensitive information in your extension.
|
|
330
370
|
*/
|
|
331
371
|
requireLogin: () => Promise<void>;
|
|
332
372
|
|
|
333
373
|
/**
|
|
334
|
-
* The authentication
|
|
374
|
+
* The buyer's current authentication level on the **Order status** page. Use this to determine whether to display sensitive information or prompt the buyer to log in.
|
|
335
375
|
*/
|
|
336
376
|
authenticationState: SubscribableSignalLike<AuthenticationState>;
|
|
337
377
|
}
|
|
338
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Information about the buyer who placed the order.
|
|
381
|
+
*
|
|
382
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data). The `customer` and `purchasingCompany` properties require level 1 access. The `email` and `phone` properties require level 2 access.
|
|
383
|
+
*/
|
|
339
384
|
export interface OrderStatusBuyerIdentity {
|
|
340
385
|
/**
|
|
341
|
-
* The buyer's customer account
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
386
|
+
* The buyer's customer account, including their ID and whether they have accepted marketing.
|
|
387
|
+
* The value is `undefined` if the buyer is a guest or hasn't logged in yet.
|
|
345
388
|
*/
|
|
346
389
|
customer: SubscribableSignalLike<OrderStatusCustomer | undefined>;
|
|
347
390
|
|
|
348
391
|
/**
|
|
349
|
-
* The email address
|
|
350
|
-
* The value is `undefined` if the app
|
|
351
|
-
*
|
|
352
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
392
|
+
* The email address associated with the order. This is the email the buyer provided during
|
|
393
|
+
* checkout for order confirmation and communication. The value is `undefined` if the app
|
|
394
|
+
* doesn't have access to customer data.
|
|
353
395
|
*/
|
|
354
396
|
email: SubscribableSignalLike<string | undefined>;
|
|
355
397
|
|
|
356
398
|
/**
|
|
357
|
-
* The phone number
|
|
358
|
-
*
|
|
359
|
-
*
|
|
360
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
399
|
+
* The phone number the buyer provided during checkout. The value is `undefined` if no phone
|
|
400
|
+
* number was provided or the app doesn't have access to customer data.
|
|
361
401
|
*/
|
|
362
402
|
phone: SubscribableSignalLike<string | undefined>;
|
|
363
403
|
|
|
364
404
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
405
|
+
* The company and company location that a B2B (business-to-business) customer is purchasing
|
|
406
|
+
* on behalf of. Use this to identify the business context of the order. The value is
|
|
407
|
+
* `undefined` if the buyer isn't a B2B customer.
|
|
370
408
|
*/
|
|
371
409
|
purchasingCompany: SubscribableSignalLike<
|
|
372
410
|
OrderStatusPurchasingCompany | undefined
|
|
@@ -375,171 +413,160 @@ export interface OrderStatusBuyerIdentity {
|
|
|
375
413
|
|
|
376
414
|
/**
|
|
377
415
|
* Information about a company that the business customer is purchasing on behalf of.
|
|
416
|
+
*
|
|
417
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
378
418
|
*/
|
|
379
419
|
export interface OrderStatusPurchasingCompany {
|
|
380
420
|
/**
|
|
381
|
-
*
|
|
382
|
-
*
|
|
383
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
421
|
+
* The company that the B2B customer is purchasing on behalf of, including the company ID, name, and optional external ID.
|
|
384
422
|
*/
|
|
385
423
|
company: OrderStatusCompany;
|
|
386
424
|
/**
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
425
|
+
* The specific company location where the order is being placed, including the location ID, name, and optional external ID.
|
|
390
426
|
*/
|
|
391
427
|
location: OrderStatusCompanyLocation;
|
|
392
428
|
}
|
|
393
429
|
|
|
430
|
+
/**
|
|
431
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
432
|
+
*/
|
|
394
433
|
export interface OrderStatusCompany {
|
|
395
434
|
/**
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
435
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
399
436
|
*/
|
|
400
437
|
id: string;
|
|
401
438
|
/**
|
|
402
|
-
* The name of the company.
|
|
403
|
-
*
|
|
404
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
439
|
+
* The registered business name of the company, as configured by the merchant in Shopify admin.
|
|
405
440
|
*/
|
|
406
441
|
name: string;
|
|
407
442
|
/**
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
443
|
+
* A merchant-defined external identifier for the company, often used to map to an ID in an external ERP or CRM system. The value is `undefined` if no external ID has been set.
|
|
411
444
|
*/
|
|
412
445
|
externalId?: string;
|
|
413
446
|
}
|
|
414
447
|
|
|
448
|
+
/**
|
|
449
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
450
|
+
*/
|
|
415
451
|
export interface OrderStatusCompanyLocation {
|
|
416
452
|
/**
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
453
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
420
454
|
*/
|
|
421
455
|
id: string;
|
|
422
456
|
/**
|
|
423
|
-
* The name of the company location.
|
|
424
|
-
*
|
|
425
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
457
|
+
* The display name of the company location, such as a branch office or warehouse name.
|
|
426
458
|
*/
|
|
427
459
|
name: string;
|
|
428
460
|
/**
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
461
|
+
* A merchant-defined external identifier for the company location, often used to map to an ID in an external ERP or CRM system. The value is `undefined` if no external ID has been set.
|
|
432
462
|
*/
|
|
433
463
|
externalId?: string;
|
|
434
464
|
}
|
|
435
465
|
|
|
436
466
|
export interface AppliedGiftCard {
|
|
437
467
|
/**
|
|
438
|
-
* The last four characters of the applied gift card's code.
|
|
468
|
+
* The last four characters of the applied gift card's code. The full code isn't available for security reasons.
|
|
439
469
|
*/
|
|
440
470
|
lastCharacters: string;
|
|
441
471
|
|
|
442
472
|
/**
|
|
443
|
-
* The amount of the applied gift card that
|
|
473
|
+
* The amount of the applied gift card that was used for this order.
|
|
444
474
|
*/
|
|
445
475
|
amountUsed: Money;
|
|
446
476
|
|
|
447
477
|
/**
|
|
448
|
-
* The
|
|
478
|
+
* The remaining balance of the applied gift card after the order was placed.
|
|
449
479
|
*/
|
|
450
480
|
balance: Money;
|
|
451
481
|
}
|
|
452
482
|
|
|
453
483
|
export interface Shop {
|
|
454
484
|
/**
|
|
455
|
-
*
|
|
485
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
486
|
+
*
|
|
456
487
|
* @example 'gid://shopify/Shop/123'
|
|
457
488
|
*/
|
|
458
489
|
id: string;
|
|
490
|
+
|
|
459
491
|
/**
|
|
460
|
-
* The name of the shop.
|
|
492
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
461
493
|
*/
|
|
462
494
|
name: string;
|
|
463
495
|
|
|
464
496
|
/**
|
|
465
|
-
* The primary storefront URL.
|
|
466
|
-
*
|
|
467
|
-
* > Caution:
|
|
468
|
-
* As of version `2024-10` this value will no longer have a trailing slash.
|
|
497
|
+
* The primary storefront URL for the shop, such as `https://example.myshopify.com`. Use this to build links back to the merchant's online store.
|
|
469
498
|
*/
|
|
470
499
|
storefrontUrl?: string;
|
|
500
|
+
|
|
471
501
|
/**
|
|
472
|
-
* The shop's myshopify.com domain.
|
|
502
|
+
* The shop's unique `.myshopify.com` subdomain, such as `example.myshopify.com`. This domain is permanent and doesn't change even if the merchant adds a custom domain.
|
|
473
503
|
*/
|
|
474
504
|
myshopifyDomain: string;
|
|
475
505
|
}
|
|
476
506
|
|
|
477
507
|
export interface CartCost {
|
|
478
508
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
509
|
+
* The sum of all line item prices before shipping and taxes are applied. Use this value
|
|
510
|
+
* to display the base cost of the items the buyer purchased.
|
|
481
511
|
*/
|
|
482
512
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
483
513
|
|
|
484
514
|
/**
|
|
485
|
-
*
|
|
486
|
-
*
|
|
487
|
-
*
|
|
515
|
+
* The total shipping cost for the order, after any shipping discounts have been applied.
|
|
516
|
+
* The value is `undefined` if shipping costs haven't been calculated or aren't applicable
|
|
517
|
+
* (for example, for digital-only orders).
|
|
488
518
|
*/
|
|
489
519
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
490
520
|
|
|
491
521
|
/**
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
* undefined if
|
|
522
|
+
* The total tax charged for the order. This may represent taxes added on top of item prices
|
|
523
|
+
* or taxes already included in product and shipping prices, depending on the store's tax
|
|
524
|
+
* configuration. The value is `undefined` if tax information is unavailable.
|
|
495
525
|
*/
|
|
496
526
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
497
527
|
|
|
498
528
|
/**
|
|
499
|
-
*
|
|
500
|
-
*
|
|
501
|
-
* the information step might not have delivery costs calculated.
|
|
529
|
+
* The final amount the buyer paid for the order, including all line items, shipping, taxes,
|
|
530
|
+
* and discounts. Gift cards and store credits are excluded from this total.
|
|
502
531
|
*/
|
|
503
532
|
totalAmount: SubscribableSignalLike<Money>;
|
|
504
533
|
}
|
|
505
534
|
|
|
506
535
|
export interface CartLine {
|
|
507
536
|
/**
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
511
|
-
* create a `CartLineChange` object.
|
|
537
|
+
* A unique identifier for the cart line in the format `gid://shopify/CartLine/<id>`. These IDs are not stable and may change after any operations on the line items, so avoid persisting them.
|
|
538
|
+
*
|
|
512
539
|
* @example 'gid://shopify/CartLine/123'
|
|
513
540
|
*/
|
|
514
541
|
id: string;
|
|
515
542
|
|
|
516
543
|
/**
|
|
517
|
-
* The merchandise
|
|
544
|
+
* The product variant or other merchandise associated with this line item. Use this to access product details such as the title, image, SKU, and selected options.
|
|
518
545
|
*/
|
|
519
546
|
merchandise: Merchandise;
|
|
520
547
|
|
|
521
548
|
/**
|
|
522
|
-
* The
|
|
549
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
523
550
|
*/
|
|
524
551
|
quantity: number;
|
|
525
552
|
|
|
526
553
|
/**
|
|
527
|
-
* The
|
|
554
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
528
555
|
*/
|
|
529
556
|
cost: CartLineCost;
|
|
530
557
|
|
|
531
558
|
/**
|
|
532
|
-
*
|
|
559
|
+
* Custom key-value pairs attached to this line item, such as engraving text, gift messages, or personalization options set by the buyer or an app during checkout.
|
|
533
560
|
*/
|
|
534
561
|
attributes: Attribute[];
|
|
535
562
|
|
|
536
563
|
/**
|
|
537
|
-
*
|
|
564
|
+
* The list of discounts applied to this specific line item. Each allocation includes the discounted amount and the type of discount (`code`, `automatic`, or `custom`).
|
|
538
565
|
*/
|
|
539
566
|
discountAllocations: CartDiscountAllocation[];
|
|
540
567
|
|
|
541
568
|
/**
|
|
542
|
-
*
|
|
569
|
+
* The individual components of a [bundle](/docs/apps/build/product-merchandising/bundles) line item. Each component represents a separate product within the bundle. Returns an empty array if the line item isn't a bundle.
|
|
543
570
|
*/
|
|
544
571
|
lineComponents: CartLineComponentType[];
|
|
545
572
|
}
|
|
@@ -547,34 +574,35 @@ export interface CartLine {
|
|
|
547
574
|
type CartLineComponentType = CartBundleLineComponent;
|
|
548
575
|
|
|
549
576
|
export interface CartBundleLineComponent {
|
|
577
|
+
/**
|
|
578
|
+
* The type of line component. Always `'bundle'` for bundle line components.
|
|
579
|
+
*/
|
|
550
580
|
type: 'bundle';
|
|
551
581
|
|
|
552
582
|
/**
|
|
553
|
-
* A unique identifier for the bundle line
|
|
554
|
-
*
|
|
555
|
-
* This ID is not stable. If an operation updates the line items in any way, all IDs could change.
|
|
583
|
+
* A unique identifier for this component within the bundle, in the format `gid://shopify/CartLineComponent/<id>`. This ID isn't stable and may change after any operation that updates the line items.
|
|
556
584
|
*
|
|
557
585
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
558
586
|
*/
|
|
559
587
|
id: string;
|
|
560
588
|
|
|
561
589
|
/**
|
|
562
|
-
* The
|
|
590
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
563
591
|
*/
|
|
564
592
|
merchandise: Merchandise;
|
|
565
593
|
|
|
566
594
|
/**
|
|
567
|
-
* The
|
|
595
|
+
* The number of units of this component included in the bundle.
|
|
568
596
|
*/
|
|
569
597
|
quantity: number;
|
|
570
598
|
|
|
571
599
|
/**
|
|
572
|
-
* The cost
|
|
600
|
+
* The cost breakdown for this bundle component, representing the portion of the bundle price attributed to this item.
|
|
573
601
|
*/
|
|
574
602
|
cost: CartLineCost;
|
|
575
603
|
|
|
576
604
|
/**
|
|
577
|
-
*
|
|
605
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
578
606
|
*
|
|
579
607
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
580
608
|
*/
|
|
@@ -583,19 +611,20 @@ export interface CartBundleLineComponent {
|
|
|
583
611
|
|
|
584
612
|
export interface CartLineCost {
|
|
585
613
|
/**
|
|
586
|
-
* The total
|
|
587
|
-
* cart line.
|
|
614
|
+
* The total price the buyer pays for this line item after all line-level discounts have been applied, but before order-level discounts, taxes, and shipping.
|
|
588
615
|
*/
|
|
589
616
|
totalAmount: Money;
|
|
590
617
|
}
|
|
591
618
|
|
|
592
619
|
export interface Money {
|
|
593
620
|
/**
|
|
594
|
-
* The
|
|
621
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
595
622
|
*/
|
|
596
623
|
amount: number;
|
|
624
|
+
|
|
597
625
|
/**
|
|
598
|
-
* The
|
|
626
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
627
|
+
*
|
|
599
628
|
* @example 'CAD' for Canadian dollar
|
|
600
629
|
*/
|
|
601
630
|
currencyCode: CurrencyCode;
|
|
@@ -605,99 +634,102 @@ export type Merchandise = ProductVariant;
|
|
|
605
634
|
|
|
606
635
|
export interface BaseMerchandise {
|
|
607
636
|
/**
|
|
608
|
-
*
|
|
637
|
+
* A globally-unique identifier for the merchandise.
|
|
609
638
|
*/
|
|
610
639
|
id: string;
|
|
611
640
|
}
|
|
612
641
|
|
|
613
642
|
export interface ProductVariant extends BaseMerchandise {
|
|
643
|
+
/**
|
|
644
|
+
* The type of merchandise. Always `'variant'` for product variants.
|
|
645
|
+
*/
|
|
614
646
|
type: 'variant';
|
|
615
647
|
|
|
616
648
|
/**
|
|
617
|
-
* A globally-unique identifier
|
|
649
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
650
|
+
*
|
|
618
651
|
* @example 'gid://shopify/ProductVariant/123'
|
|
619
652
|
*/
|
|
620
653
|
id: string;
|
|
621
654
|
|
|
622
655
|
/**
|
|
623
|
-
* The product variant
|
|
656
|
+
* The display title of the product variant, such as "Small" or "Red / Large". This is the variant-specific label, not the parent product title.
|
|
624
657
|
*/
|
|
625
658
|
title: string;
|
|
626
659
|
|
|
627
660
|
/**
|
|
628
|
-
* The
|
|
661
|
+
* The stock keeping unit (SKU) assigned to this variant by the merchant, used for inventory tracking. The value is `undefined` if no SKU has been set.
|
|
629
662
|
*/
|
|
630
663
|
sku?: string;
|
|
631
664
|
|
|
632
665
|
/**
|
|
633
|
-
*
|
|
666
|
+
* A secondary description for the variant that provides additional context, such as a color or size combination. The value is `undefined` if no subtitle is available.
|
|
634
667
|
*/
|
|
635
668
|
subtitle?: string;
|
|
636
669
|
|
|
637
670
|
/**
|
|
638
|
-
*
|
|
639
|
-
* image if no image is available.
|
|
671
|
+
* The image associated with this product variant. Falls back to the parent product's featured image if the variant doesn't have its own image.
|
|
640
672
|
*/
|
|
641
673
|
image?: ImageDetails;
|
|
642
674
|
|
|
643
675
|
/**
|
|
644
|
-
*
|
|
676
|
+
* The list of product options that define this variant, such as size and color. Each entry contains the option name and the selected value.
|
|
645
677
|
*/
|
|
646
678
|
selectedOptions: SelectedOption[];
|
|
647
679
|
|
|
648
680
|
/**
|
|
649
|
-
* The product
|
|
681
|
+
* The parent product that this variant belongs to. Use this to access the product title, vendor, and type.
|
|
650
682
|
*/
|
|
651
683
|
product: Product;
|
|
652
684
|
|
|
653
685
|
/**
|
|
654
|
-
* Whether
|
|
686
|
+
* Whether this product variant requires physical shipping. Returns `false` for digital products, gift cards, and services.
|
|
655
687
|
*/
|
|
656
688
|
requiresShipping: boolean;
|
|
657
689
|
|
|
658
690
|
/**
|
|
659
|
-
* The selling plan associated with
|
|
691
|
+
* The selling plan associated with this merchandise, such as a subscription or pre-order plan. The value is `undefined` if the item was purchased without a selling plan.
|
|
660
692
|
*/
|
|
661
693
|
sellingPlan?: SellingPlan;
|
|
662
694
|
}
|
|
663
695
|
|
|
664
696
|
export interface Product {
|
|
665
697
|
/**
|
|
666
|
-
* A globally-unique identifier
|
|
698
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
667
699
|
*/
|
|
668
700
|
id: string;
|
|
669
701
|
|
|
670
702
|
/**
|
|
671
|
-
* The product
|
|
703
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
672
704
|
*/
|
|
673
705
|
vendor: string;
|
|
674
706
|
|
|
675
707
|
/**
|
|
676
|
-
* A categorization
|
|
708
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
677
709
|
*/
|
|
678
710
|
productType: string;
|
|
679
711
|
}
|
|
680
712
|
|
|
681
713
|
export interface ImageDetails {
|
|
682
714
|
/**
|
|
683
|
-
* The
|
|
715
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
684
716
|
*/
|
|
685
717
|
url: string;
|
|
686
718
|
|
|
687
719
|
/**
|
|
688
|
-
* The alternative text for the image.
|
|
720
|
+
* The alternative text description of the image, used for accessibility. The value is `undefined` if the merchant hasn't set alt text for the image.
|
|
689
721
|
*/
|
|
690
722
|
altText?: string;
|
|
691
723
|
}
|
|
692
724
|
|
|
693
725
|
export interface SelectedOption {
|
|
694
726
|
/**
|
|
695
|
-
* The name of the
|
|
727
|
+
* The name of the product option, such as "Size", "Color", or "Material".
|
|
696
728
|
*/
|
|
697
729
|
name: string;
|
|
698
730
|
|
|
699
731
|
/**
|
|
700
|
-
* The value
|
|
732
|
+
* The selected value for this option, such as "Medium", "Blue", or "Cotton".
|
|
701
733
|
*/
|
|
702
734
|
value: string;
|
|
703
735
|
}
|
|
@@ -722,7 +754,7 @@ export interface PaymentOption {
|
|
|
722
754
|
* | `paymentOnDelivery` | A payment that will be collected on delivery. |
|
|
723
755
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
724
756
|
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay, etc. |
|
|
725
|
-
* | `customOnsite` | A custom payment option that
|
|
757
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
726
758
|
*/
|
|
727
759
|
type:
|
|
728
760
|
| 'creditCard'
|
|
@@ -737,9 +769,7 @@ export interface PaymentOption {
|
|
|
737
769
|
| 'customOnsite';
|
|
738
770
|
|
|
739
771
|
/**
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
* This is not a globally unique identifier. It may be an identifier specific to the given checkout session or the current shop.
|
|
772
|
+
* A session-scoped identifier for this payment option. This handle isn't globally unique — it is specific to the current checkout session or the shop.
|
|
743
773
|
*/
|
|
744
774
|
handle: string;
|
|
745
775
|
}
|
|
@@ -749,65 +779,88 @@ export interface PaymentOption {
|
|
|
749
779
|
*/
|
|
750
780
|
export interface SelectedPaymentOption {
|
|
751
781
|
/**
|
|
752
|
-
* The
|
|
782
|
+
* The handle of the payment option the buyer selected, corresponding to a `PaymentOption.handle` value.
|
|
753
783
|
*
|
|
754
|
-
* See [availablePaymentOptions](
|
|
784
|
+
* See [availablePaymentOptions](/docs/api/checkout-ui-extensions/apis/payments#standardapi-propertydetail-selectedpaymentoptions).
|
|
755
785
|
*/
|
|
756
786
|
handle: string;
|
|
757
787
|
}
|
|
758
788
|
|
|
759
789
|
export interface CartDiscountCode {
|
|
760
790
|
/**
|
|
761
|
-
* The code
|
|
791
|
+
* The discount code string that the buyer entered during checkout, such as "SAVE10" or "FREESHIP". Use this to display which discount codes were applied to the order.
|
|
762
792
|
*/
|
|
763
793
|
code: string;
|
|
764
794
|
}
|
|
795
|
+
/**
|
|
796
|
+
* A discount allocation represents a single discount applied to a specific line item or the overall order.
|
|
797
|
+
* When a discount applies to an order, Shopify splits the total discount amount across the affected line items
|
|
798
|
+
* as individual allocations. For example, a "10% off your order" discount is distributed proportionally across
|
|
799
|
+
* each line item rather than appearing as one lump sum.
|
|
800
|
+
*
|
|
801
|
+
* There are three types of discount allocations:
|
|
802
|
+
* - `CartCodeDiscountAllocation`: A discount applied using a code the buyer entered at checkout (for example, "SAVE10").
|
|
803
|
+
* - `CartAutomaticDiscountAllocation`: A discount the merchant configured in Shopify admin to apply automatically without a code.
|
|
804
|
+
* - `CartCustomDiscountAllocation`: A discount created programmatically by a [Shopify Function](/docs/apps/build/functions).
|
|
805
|
+
*/
|
|
765
806
|
export type CartDiscountAllocation =
|
|
766
807
|
| CartCodeDiscountAllocation
|
|
767
808
|
| CartAutomaticDiscountAllocation
|
|
768
809
|
| CartCustomDiscountAllocation;
|
|
769
810
|
|
|
811
|
+
/**
|
|
812
|
+
* The base properties shared by all discount allocation types.
|
|
813
|
+
*/
|
|
770
814
|
export interface CartDiscountAllocationBase {
|
|
771
815
|
/**
|
|
772
|
-
* The
|
|
816
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
773
817
|
*/
|
|
774
818
|
discountedAmount: Money;
|
|
775
819
|
}
|
|
776
820
|
|
|
821
|
+
/**
|
|
822
|
+
* A discount allocation for a discount that was applied using a code the buyer entered at checkout.
|
|
823
|
+
*/
|
|
777
824
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
778
825
|
/**
|
|
779
|
-
* The code
|
|
826
|
+
* The discount code string that the buyer entered during checkout, such as "SAVE10" or "FREESHIP".
|
|
780
827
|
*/
|
|
781
828
|
code: string;
|
|
782
829
|
|
|
783
830
|
/**
|
|
784
|
-
* The type of
|
|
831
|
+
* The type of this discount allocation. Always `'code'` for discounts applied using a code entered by the buyer.
|
|
785
832
|
*/
|
|
786
833
|
type: 'code';
|
|
787
834
|
}
|
|
788
835
|
|
|
836
|
+
/**
|
|
837
|
+
* A discount allocation for a discount that the merchant configured to apply automatically in Shopify admin, without the buyer needing to enter a code.
|
|
838
|
+
*/
|
|
789
839
|
export interface CartAutomaticDiscountAllocation
|
|
790
840
|
extends CartDiscountAllocationBase {
|
|
791
841
|
/**
|
|
792
|
-
* The title of the automatic discount
|
|
842
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
793
843
|
*/
|
|
794
844
|
title: string;
|
|
795
845
|
|
|
796
846
|
/**
|
|
797
|
-
* The type of
|
|
847
|
+
* The type of this discount allocation. Always `'automatic'` for discounts configured to apply automatically without a code.
|
|
798
848
|
*/
|
|
799
849
|
type: 'automatic';
|
|
800
850
|
}
|
|
801
851
|
|
|
852
|
+
/**
|
|
853
|
+
* A discount allocation for a discount created by a [Shopify Function](/docs/apps/build/functions), such as a custom discount logic app.
|
|
854
|
+
*/
|
|
802
855
|
export interface CartCustomDiscountAllocation
|
|
803
856
|
extends CartDiscountAllocationBase {
|
|
804
857
|
/**
|
|
805
|
-
* The title of the custom discount
|
|
858
|
+
* The title of the custom discount as defined by the Shopify Function that created it.
|
|
806
859
|
*/
|
|
807
860
|
title: string;
|
|
808
861
|
|
|
809
862
|
/**
|
|
810
|
-
* The type of
|
|
863
|
+
* The type of this discount allocation. Always `'custom'` for discounts created by a Shopify Function.
|
|
811
864
|
*/
|
|
812
865
|
type: 'custom';
|
|
813
866
|
}
|
|
@@ -815,69 +868,52 @@ export interface CartCustomDiscountAllocation
|
|
|
815
868
|
/**
|
|
816
869
|
* Information about a customer who has previously purchased from this shop.
|
|
817
870
|
*
|
|
818
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
871
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data). The `id`, `image`, `acceptsMarketing`, and `storeCreditAccounts` properties require level 1 access. The `email`, `phone`, `fullName`, `firstName`, and `lastName` properties require level 2 access.
|
|
819
872
|
*/
|
|
820
873
|
export interface OrderStatusCustomer {
|
|
821
874
|
/**
|
|
822
|
-
* Customer
|
|
823
|
-
*
|
|
824
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
825
|
-
*
|
|
826
|
-
* @example 'gid://shopify/Customer/123'
|
|
875
|
+
* A globally-unique identifier for the customer in the format `gid://shopify/Customer/<id>`. 'gid://shopify/Customer/123'
|
|
827
876
|
*/
|
|
828
877
|
id: string;
|
|
829
878
|
/**
|
|
830
|
-
* The email
|
|
831
|
-
*
|
|
832
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
879
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
833
880
|
*/
|
|
834
881
|
email?: string;
|
|
835
882
|
/**
|
|
836
|
-
* The phone number
|
|
837
|
-
*
|
|
838
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
883
|
+
* The phone number associated with the customer's account. The value is `undefined` if no phone number is on file or the app doesn't have the required access level.
|
|
839
884
|
*/
|
|
840
885
|
phone?: string;
|
|
841
886
|
/**
|
|
842
|
-
* The full name of the
|
|
843
|
-
*
|
|
844
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
887
|
+
* The customer's full name, typically a combination of first and last name. The value is `undefined` if the app doesn't have the required access level.
|
|
845
888
|
*/
|
|
846
889
|
fullName?: string;
|
|
847
890
|
/**
|
|
848
|
-
* The first name
|
|
849
|
-
*
|
|
850
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
891
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
851
892
|
*/
|
|
852
893
|
firstName?: string;
|
|
853
894
|
/**
|
|
854
|
-
* The last name
|
|
855
|
-
*
|
|
856
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
895
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
857
896
|
*/
|
|
858
897
|
lastName?: string;
|
|
859
898
|
/**
|
|
860
|
-
* The image
|
|
861
|
-
*
|
|
862
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
899
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
863
900
|
*/
|
|
864
901
|
image: ImageDetails;
|
|
865
902
|
/**
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
903
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
869
904
|
*/
|
|
870
905
|
acceptsMarketing: boolean;
|
|
871
906
|
/**
|
|
872
|
-
* The
|
|
873
|
-
*
|
|
874
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
907
|
+
* The store credit accounts owned by this customer that can be used as payment during checkout. Each account has a balance representing available store credit.
|
|
875
908
|
*
|
|
876
909
|
* @private
|
|
877
910
|
*/
|
|
878
911
|
storeCreditAccounts: StoreCreditAccount[];
|
|
879
912
|
}
|
|
880
913
|
|
|
914
|
+
/**
|
|
915
|
+
* A string token that uniquely identifies the checkout session used to create the order.
|
|
916
|
+
*/
|
|
881
917
|
export type CheckoutToken = string;
|
|
882
918
|
|
|
883
919
|
/**
|
|
@@ -885,15 +921,18 @@ export type CheckoutToken = string;
|
|
|
885
921
|
*/
|
|
886
922
|
export interface CheckoutSettings {
|
|
887
923
|
/**
|
|
888
|
-
* The type of order
|
|
924
|
+
* The type of order created when checkout is completed:
|
|
925
|
+
*
|
|
926
|
+
* - `'DRAFT_ORDER'`: A draft order that must be manually reviewed and finalized by the merchant before it is processed.
|
|
927
|
+
* - `'ORDER'`: A standard order that's immediately processed and visible in Shopify admin.
|
|
889
928
|
*/
|
|
890
929
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
891
930
|
/**
|
|
892
|
-
*
|
|
931
|
+
* The payment terms configured by the merchant for B2B orders, such as net-30 or net-60. The value is `undefined` if no payment terms are configured.
|
|
893
932
|
*/
|
|
894
933
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
895
934
|
/**
|
|
896
|
-
* Settings
|
|
935
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
897
936
|
*/
|
|
898
937
|
shippingAddress: ShippingAddressSettings;
|
|
899
938
|
}
|
|
@@ -903,257 +942,256 @@ export interface CheckoutSettings {
|
|
|
903
942
|
*/
|
|
904
943
|
export interface ShippingAddressSettings {
|
|
905
944
|
/**
|
|
906
|
-
*
|
|
945
|
+
* Whether the buyer is allowed to edit the shipping address during checkout. When `false`, the shipping address is locked and can't be changed, which is common for B2B orders with a predefined ship-to address.
|
|
907
946
|
*/
|
|
908
947
|
isEditable: boolean;
|
|
909
948
|
}
|
|
910
949
|
|
|
911
950
|
/**
|
|
912
|
-
*
|
|
951
|
+
* A payment terms template configured by the merchant, defining when payment is due for B2B orders. Common examples include "Net 30" (due in 30 days) or "Due on receipt".
|
|
913
952
|
*/
|
|
914
953
|
export interface PaymentTermsTemplate {
|
|
915
954
|
/**
|
|
916
|
-
* A globally-unique
|
|
955
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
917
956
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
918
957
|
*/
|
|
919
958
|
id: string;
|
|
920
959
|
/**
|
|
921
|
-
* The name of the payment terms translated to the buyer's current language. See [localization.language](
|
|
960
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/apis/localization#standardapi-propertydetail-localization).
|
|
922
961
|
*/
|
|
923
962
|
name: string;
|
|
924
963
|
/**
|
|
925
|
-
* The due date for
|
|
964
|
+
* The due date for payment in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ss.sssZ`). The value is `undefined` if the payment terms don't have a fixed due date.
|
|
926
965
|
*/
|
|
927
966
|
dueDate?: string;
|
|
928
967
|
/**
|
|
929
|
-
* The number of days
|
|
968
|
+
* The number of days the buyer has to pay after the order is placed, such as `30` for "Net 30" terms. The value is `undefined` if the payment terms are not net-based.
|
|
930
969
|
*/
|
|
931
970
|
dueInDays?: number;
|
|
932
971
|
}
|
|
933
972
|
|
|
934
973
|
/**
|
|
935
|
-
*
|
|
974
|
+
* A store credit account owned by the customer. Store credit is a form of payment that merchants can issue to customers for returns, refunds, or promotional purposes.
|
|
936
975
|
*/
|
|
937
976
|
export interface StoreCreditAccount {
|
|
938
977
|
/**
|
|
939
|
-
* A globally-unique identifier
|
|
978
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
940
979
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
941
980
|
*/
|
|
942
981
|
id: string;
|
|
943
982
|
/**
|
|
944
|
-
* The
|
|
983
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
945
984
|
*/
|
|
946
985
|
balance: Money;
|
|
947
986
|
}
|
|
948
987
|
|
|
949
988
|
/**
|
|
950
|
-
*
|
|
951
|
-
* more cart lines.
|
|
989
|
+
* A group of cart lines that share the same set of delivery options. For example, physical items may form one delivery group while digital items form another.
|
|
952
990
|
*/
|
|
953
991
|
export interface DeliveryGroup {
|
|
954
992
|
/**
|
|
955
|
-
* The cart
|
|
993
|
+
* The cart lines included in this delivery group. Each reference contains the ID of the associated cart line.
|
|
956
994
|
*/
|
|
957
995
|
targetedCartLines: CartLineReference[];
|
|
958
996
|
|
|
959
997
|
/**
|
|
960
|
-
* The delivery options
|
|
998
|
+
* The list of delivery options the buyer can choose from for this group, such as standard shipping, express shipping, or local pickup.
|
|
961
999
|
*/
|
|
962
1000
|
deliveryOptions: DeliveryOption[];
|
|
963
1001
|
|
|
964
1002
|
/**
|
|
965
|
-
* The
|
|
1003
|
+
* The delivery option that the buyer selected for this group. The value is `undefined` if no option has been selected yet.
|
|
966
1004
|
*/
|
|
967
1005
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
968
1006
|
|
|
969
1007
|
/**
|
|
970
|
-
* The type
|
|
1008
|
+
* The purchase type for this delivery group. `'oneTimePurchase'` for standard orders, or `'subscription'` for items on a recurring delivery schedule.
|
|
971
1009
|
*/
|
|
972
1010
|
groupType: DeliveryGroupType;
|
|
973
1011
|
|
|
974
1012
|
/**
|
|
975
|
-
* Whether delivery is required for the
|
|
1013
|
+
* Whether physical delivery is required for the items in this group. Returns `false` for digital products, services, or other items that don't need shipping.
|
|
976
1014
|
*/
|
|
977
1015
|
isDeliveryRequired: boolean;
|
|
978
1016
|
}
|
|
979
1017
|
|
|
980
1018
|
/**
|
|
981
|
-
* The
|
|
1019
|
+
* The purchase type for a delivery group: `'oneTimePurchase'` for standard orders or `'subscription'` for recurring deliveries.
|
|
982
1020
|
*/
|
|
983
1021
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
984
1022
|
|
|
985
1023
|
/**
|
|
986
|
-
*
|
|
1024
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
987
1025
|
*/
|
|
988
1026
|
export interface CartLineReference {
|
|
989
1027
|
/**
|
|
990
|
-
* The
|
|
1028
|
+
* The ID of the cart line that belongs to this delivery group, matching a `CartLine.id` value.
|
|
991
1029
|
*/
|
|
992
1030
|
id: string;
|
|
993
1031
|
}
|
|
994
1032
|
|
|
995
1033
|
/**
|
|
996
|
-
*
|
|
1034
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
997
1035
|
*/
|
|
998
1036
|
export interface DeliveryOptionReference {
|
|
999
1037
|
/**
|
|
1000
|
-
* The
|
|
1038
|
+
* The handle of the selected delivery option, matching a `DeliveryOption.handle` value.
|
|
1001
1039
|
*/
|
|
1002
1040
|
handle: string;
|
|
1003
1041
|
}
|
|
1004
1042
|
|
|
1005
1043
|
/**
|
|
1006
|
-
*
|
|
1044
|
+
* The base properties shared by all delivery option types, including shipping, local pickup, and pickup point options.
|
|
1007
1045
|
*/
|
|
1008
1046
|
export interface DeliveryOption {
|
|
1009
1047
|
/**
|
|
1010
|
-
*
|
|
1048
|
+
* A unique identifier for this delivery option within the checkout session. Use this handle to match against `DeliveryOptionReference.handle`.
|
|
1011
1049
|
*/
|
|
1012
1050
|
handle: string;
|
|
1013
1051
|
|
|
1014
1052
|
/**
|
|
1015
|
-
* The
|
|
1053
|
+
* The display name of the delivery option shown to the buyer, such as "Standard Shipping" or "Express Delivery". The value is `undefined` if no title is set.
|
|
1016
1054
|
*/
|
|
1017
1055
|
title?: string;
|
|
1018
1056
|
|
|
1019
1057
|
/**
|
|
1020
|
-
*
|
|
1058
|
+
* Additional details about the delivery option, such as estimated delivery time or service level. The value is `undefined` if no description is set.
|
|
1021
1059
|
*/
|
|
1022
1060
|
description?: string;
|
|
1023
1061
|
}
|
|
1024
1062
|
|
|
1025
1063
|
/**
|
|
1026
|
-
*
|
|
1064
|
+
* A delivery option where items are shipped to the buyer's address, either via a carrier (`'shipping'`) or through a local delivery service (`'local'`).
|
|
1027
1065
|
*/
|
|
1028
1066
|
export interface ShippingOption extends DeliveryOption {
|
|
1029
1067
|
/**
|
|
1030
|
-
* The
|
|
1068
|
+
* The delivery method. `'shipping'` for carrier-based delivery to the buyer's address, or `'local'` for same-day or local courier delivery.
|
|
1031
1069
|
*/
|
|
1032
1070
|
type: 'shipping' | 'local';
|
|
1033
1071
|
|
|
1034
1072
|
/**
|
|
1035
|
-
*
|
|
1073
|
+
* The shipping carrier responsible for delivering the items, such as USPS, FedEx, or a custom carrier.
|
|
1036
1074
|
*/
|
|
1037
1075
|
carrier: ShippingOptionCarrier;
|
|
1038
1076
|
|
|
1039
1077
|
/**
|
|
1040
|
-
* The cost
|
|
1078
|
+
* The original shipping cost before any discounts are applied.
|
|
1041
1079
|
*/
|
|
1042
1080
|
cost: Money;
|
|
1043
1081
|
|
|
1044
1082
|
/**
|
|
1045
|
-
* The cost
|
|
1083
|
+
* The final shipping cost after any shipping discounts have been applied. Compare with `cost` to determine the discount amount.
|
|
1046
1084
|
*/
|
|
1047
1085
|
costAfterDiscounts: Money;
|
|
1048
1086
|
|
|
1049
1087
|
/**
|
|
1050
|
-
*
|
|
1088
|
+
* The estimated delivery timeline, including the expected time in transit.
|
|
1051
1089
|
*/
|
|
1052
1090
|
deliveryEstimate: DeliveryEstimate;
|
|
1053
1091
|
}
|
|
1054
1092
|
|
|
1055
1093
|
export interface DeliveryEstimate {
|
|
1056
1094
|
/**
|
|
1057
|
-
* The estimated time
|
|
1095
|
+
* The estimated transit time for the delivery, expressed as a range in seconds. For example, a range of `259200` to `432000` represents 3 to 5 days.
|
|
1058
1096
|
*/
|
|
1059
1097
|
timeInTransit?: NumberRange;
|
|
1060
1098
|
}
|
|
1061
1099
|
|
|
1062
1100
|
export interface ShippingOptionCarrier {
|
|
1063
1101
|
/**
|
|
1064
|
-
* The name of the carrier.
|
|
1102
|
+
* The display name of the shipping carrier, such as "USPS", "FedEx", or "Canada Post". The value is `undefined` if the carrier name is unavailable.
|
|
1065
1103
|
*/
|
|
1066
1104
|
name?: string;
|
|
1067
1105
|
}
|
|
1068
1106
|
|
|
1069
1107
|
export interface PickupPointOption extends DeliveryOption {
|
|
1070
1108
|
/**
|
|
1071
|
-
* The
|
|
1109
|
+
* The delivery method. Always `'pickupPoint'` for pickup point options.
|
|
1072
1110
|
*/
|
|
1073
1111
|
type: 'pickupPoint';
|
|
1074
1112
|
|
|
1075
1113
|
/**
|
|
1076
|
-
*
|
|
1114
|
+
* The carrier responsible for shipping items to the pickup point location.
|
|
1077
1115
|
*/
|
|
1078
1116
|
carrier: PickupPointCarrier;
|
|
1079
1117
|
|
|
1080
1118
|
/**
|
|
1081
|
-
* The cost to ship to this pickup point.
|
|
1119
|
+
* The original cost to ship items to this pickup point before any discounts.
|
|
1082
1120
|
*/
|
|
1083
1121
|
cost: Money;
|
|
1084
1122
|
|
|
1085
1123
|
/**
|
|
1086
|
-
* The cost to ship to this pickup point
|
|
1124
|
+
* The final cost to ship to this pickup point after discounts have been applied.
|
|
1087
1125
|
*/
|
|
1088
1126
|
costAfterDiscounts: Money;
|
|
1089
1127
|
|
|
1090
1128
|
/**
|
|
1091
|
-
* The location
|
|
1129
|
+
* The physical location of the pickup point, including its name, address, and unique handle.
|
|
1092
1130
|
*/
|
|
1093
1131
|
location: PickupPointLocation;
|
|
1094
1132
|
}
|
|
1095
1133
|
|
|
1096
1134
|
export interface PickupLocationOption extends DeliveryOption {
|
|
1097
1135
|
/**
|
|
1098
|
-
* The
|
|
1136
|
+
* The delivery method. Always `'pickup'` for merchant pickup location options.
|
|
1099
1137
|
*/
|
|
1100
1138
|
type: 'pickup';
|
|
1101
1139
|
|
|
1102
1140
|
/**
|
|
1103
|
-
* The location
|
|
1141
|
+
* The physical location where the buyer can pick up their order, including the store name and address.
|
|
1104
1142
|
*/
|
|
1105
1143
|
location: PickupLocation;
|
|
1106
1144
|
}
|
|
1107
1145
|
|
|
1108
1146
|
interface PickupLocation {
|
|
1109
1147
|
/**
|
|
1110
|
-
* The name of the pickup location.
|
|
1148
|
+
* The display name of the pickup location, such as the store or warehouse name. The value is `undefined` if no name is set.
|
|
1111
1149
|
*/
|
|
1112
1150
|
name?: string;
|
|
1113
1151
|
|
|
1114
1152
|
/**
|
|
1115
|
-
* The address of the pickup location.
|
|
1153
|
+
* The physical mailing address of the pickup location where the buyer collects their order.
|
|
1116
1154
|
*/
|
|
1117
1155
|
address: MailingAddress;
|
|
1118
1156
|
}
|
|
1119
1157
|
|
|
1120
1158
|
interface PickupPointLocation {
|
|
1121
1159
|
/**
|
|
1122
|
-
* The name of the pickup point.
|
|
1160
|
+
* The display name of the pickup point, such as a locker location or partner store name. The value is `undefined` if no name is set.
|
|
1123
1161
|
*/
|
|
1124
1162
|
name?: string;
|
|
1125
1163
|
|
|
1126
1164
|
/**
|
|
1127
|
-
*
|
|
1165
|
+
* A unique identifier for this pickup point within the carrier's network.
|
|
1128
1166
|
*/
|
|
1129
1167
|
handle: string;
|
|
1130
1168
|
|
|
1131
1169
|
/**
|
|
1132
|
-
* The address of the pickup point.
|
|
1170
|
+
* The physical mailing address of the pickup point.
|
|
1133
1171
|
*/
|
|
1134
1172
|
address: MailingAddress;
|
|
1135
1173
|
}
|
|
1136
1174
|
|
|
1137
1175
|
interface PickupPointCarrier {
|
|
1138
1176
|
/**
|
|
1139
|
-
*
|
|
1177
|
+
* A code that uniquely identifies the carrier within Shopify's system, such as a SCAC code. The value is `undefined` if no code is available.
|
|
1140
1178
|
*/
|
|
1141
1179
|
code?: string;
|
|
1142
1180
|
|
|
1143
1181
|
/**
|
|
1144
|
-
* The name of the carrier.
|
|
1182
|
+
* The display name of the carrier that operates this pickup point network. The value is `undefined` if the carrier name is unavailable.
|
|
1145
1183
|
*/
|
|
1146
1184
|
name?: string;
|
|
1147
1185
|
}
|
|
1148
1186
|
|
|
1149
1187
|
export interface NumberRange {
|
|
1150
1188
|
/**
|
|
1151
|
-
* The
|
|
1189
|
+
* The minimum value of the range. The value is `undefined` if there's no lower bound.
|
|
1152
1190
|
*/
|
|
1153
1191
|
lower?: number;
|
|
1154
1192
|
|
|
1155
1193
|
/**
|
|
1156
|
-
* The
|
|
1194
|
+
* The maximum value of the range. The value is `undefined` if there's no upper bound.
|
|
1157
1195
|
*/
|
|
1158
1196
|
upper?: number;
|
|
1159
1197
|
}
|
|
@@ -1163,27 +1201,31 @@ export interface NumberRange {
|
|
|
1163
1201
|
*/
|
|
1164
1202
|
export interface Order {
|
|
1165
1203
|
/**
|
|
1166
|
-
* A globally-unique identifier.
|
|
1204
|
+
* A globally-unique identifier for the order in the format `gid://shopify/Order/<id>`. Use this to reference the order in the [GraphQL Admin API](/docs/api/admin-graphql).
|
|
1205
|
+
*
|
|
1167
1206
|
* @example 'gid://shopify/Order/1'
|
|
1168
1207
|
*/
|
|
1169
1208
|
id: string;
|
|
1209
|
+
|
|
1170
1210
|
/**
|
|
1171
|
-
*
|
|
1211
|
+
* The merchant-facing order number prefixed with `#`, such as `#1001`. This is the human-readable identifier displayed to both the merchant in Shopify admin and the buyer on the **Order status** page and in email confirmations.
|
|
1212
|
+
*
|
|
1172
1213
|
* @example '#1000'
|
|
1173
1214
|
*/
|
|
1174
1215
|
name: string;
|
|
1216
|
+
|
|
1175
1217
|
/**
|
|
1176
|
-
*
|
|
1218
|
+
* The date and time when the order was cancelled, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The value is `undefined` if the order hasn't been cancelled. Use this to conditionally display cancellation details to the buyer.
|
|
1177
1219
|
*/
|
|
1178
1220
|
cancelledAt?: string;
|
|
1221
|
+
|
|
1179
1222
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
* Processing happens after the checkout has completed, and indicates that the order is available in the admin.
|
|
1223
|
+
* A randomly generated alphanumeric identifier for the order that the buyer can use when contacting the merchant about their purchase. This is always present for orders created in 2024 and onwards. For older orders, this value may be `undefined`.
|
|
1182
1224
|
*/
|
|
1183
|
-
|
|
1225
|
+
confirmationNumber?: string;
|
|
1226
|
+
|
|
1184
1227
|
/**
|
|
1185
|
-
*
|
|
1186
|
-
* For orders created in 2024 and onwards, the number will always be present. For orders created before that date, the number might not be present.
|
|
1228
|
+
* The date and time when the order was processed, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. An order is processed after the buyer completes checkout and the payment is captured, at which point the order becomes visible in Shopify admin.
|
|
1187
1229
|
*/
|
|
1188
|
-
|
|
1230
|
+
processedAt?: string;
|
|
1189
1231
|
}
|