@shopify/ui-extensions 2026.10.0-rc.9 → 2026.10.1
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/customer-account/preact/authenticated-account.js +1 -1
- package/build/cjs/surfaces/point-of-sale/events.js +39 -22
- package/build/cjs/surfaces/point-of-sale/pos-list-template.js +339 -0
- package/build/cjs/surfaces/point-of-sale.js +2 -0
- package/build/esm/surfaces/customer-account/preact/authenticated-account.mjs +1 -1
- package/build/esm/surfaces/point-of-sale/events.mjs +39 -22
- package/build/esm/surfaces/point-of-sale/pos-list-template.mjs +331 -0
- package/build/esm/surfaces/point-of-sale.mjs +1 -0
- package/build/esnext/surfaces/customer-account/preact/authenticated-account.esnext +1 -1
- package/build/esnext/surfaces/point-of-sale/events.esnext +39 -22
- package/build/esnext/surfaces/point-of-sale/pos-list-template.esnext +331 -0
- package/build/esnext/surfaces/point-of-sale.esnext +1 -0
- package/build/ts/shared.d.ts +6 -20
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +2 -2
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +2 -2
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +2 -2
- package/build/ts/surfaces/admin/components/AppNav.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Avatar.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Banner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Box.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Chip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Choice.d.ts +3 -3
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Clickable.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DateField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +1 -1
- package/build/ts/surfaces/admin/components/DropZone.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmailField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/EmptyState.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Form.d.ts +1 -1
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Grid.d.ts +1 -1
- package/build/ts/surfaces/admin/components/GridItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Heading.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Icon.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Image.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Link.d.ts +1 -1
- package/build/ts/surfaces/admin/components/ListItem.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Modal.d.ts +1 -1
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Number.d.ts +1 -1
- package/build/ts/surfaces/admin/components/NumberField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Option.d.ts +3 -3
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Page.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Popover.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Progress.d.ts +155 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/build/ts/surfaces/admin/components/SearchField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +11 -3
- package/build/ts/surfaces/admin/components/Select.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Spinner.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Stack.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/admin/components/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Switch.d.ts +3 -3
- package/build/ts/surfaces/admin/components/Table.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableBody.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableCell.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TableRow.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Text.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextArea.d.ts +1 -1
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/build/ts/surfaces/admin/components/URLField.d.ts +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/build/ts/surfaces/admin/components/shared.d.ts +47 -7
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.abandoned-checkout-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.app.home.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.catalog-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.collection-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.company-location-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.customer-segment-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-details.function-settings.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.discount-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.draft-order-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.gift-card-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-details.print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-fulfilled-card.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.order-index.selection-print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.configuration.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-details.reorder.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-index.selection-print-action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-purchase-option.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.block.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-details.configuration.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.product-variant-purchase-option.action.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.internal-order-routing-rule.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.order-routing-rule.render.d.ts +3 -0
- package/build/ts/surfaces/admin/targets/admin.settings.validation.render.d.ts +3 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +8 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +2 -2
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +15 -4
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +108 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +8 -4
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +3 -1
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +1 -1
- package/build/ts/surfaces/checkout/preact/country.d.ts +1 -1
- package/build/ts/surfaces/checkout/preact/country.d.ts.map +1 -1
- package/build/ts/surfaces/checkout.d.ts +2 -2
- package/build/ts/surfaces/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +26 -7
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts +1 -1
- package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +3 -1
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +3 -1
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +1 -1
- package/build/ts/surfaces/customer-account/preact/authenticated-account.d.ts +3 -3
- package/build/ts/surfaces/customer-account/preact/authenticated-account.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/docs.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/extension-api/extension-api.d.ts +25 -5
- package/build/ts/surfaces/point-of-sale/api/extension-api/extension-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +19 -7
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts +28 -3
- package/build/ts/surfaces/point-of-sale/api/resolution-api/resolution-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/POSList.d.ts +179 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ResolutionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +12 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts +34 -0
- package/build/ts/surfaces/point-of-sale/events/scan-event.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/events/transaction-complete-event.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/events/transaction-complete-event.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/events.d.ts +58 -28
- package/build/ts/surfaces/point-of-sale/events.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/globals.d.ts +0 -2
- package/build/ts/surfaces/point-of-sale/globals.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/pos-list-template.d.ts +36 -0
- package/build/ts/surfaces/point-of-sale/pos-list-template.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.validations.resolution.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.payment.validations.resolution.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +0 -6
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/shared.ts +22 -21
- package/src/surfaces/admin/api/picker/picker.ts +5 -2
- package/src/surfaces/admin/components/AdminAction.d.ts +2 -2
- package/src/surfaces/admin/components/AdminBlock.d.ts +3 -3
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +2 -2
- package/src/surfaces/admin/components/AppNav.d.ts +1 -1
- package/src/surfaces/admin/components/Avatar.d.ts +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Banner.d.ts +1 -1
- package/src/surfaces/admin/components/Box.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/ButtonGroup.d.ts +1 -1
- package/src/surfaces/admin/components/Checkbox.d.ts +3 -3
- package/src/surfaces/admin/components/Chip.d.ts +1 -1
- package/src/surfaces/admin/components/Choice.d.ts +3 -3
- package/src/surfaces/admin/components/ChoiceList.d.ts +3 -3
- package/src/surfaces/admin/components/Clickable.d.ts +1 -1
- package/src/surfaces/admin/components/ClickableChip.d.ts +1 -1
- package/src/surfaces/admin/components/ColorField.d.ts +1 -1
- package/src/surfaces/admin/components/ColorPicker.d.ts +1 -1
- package/src/surfaces/admin/components/DateField.d.ts +1 -1
- package/src/surfaces/admin/components/DatePicker.d.ts +1 -1
- package/src/surfaces/admin/components/Divider.d.ts +1 -1
- package/src/surfaces/admin/components/DropZone.d.ts +1 -1
- package/src/surfaces/admin/components/EmailField.d.ts +1 -1
- package/src/surfaces/admin/components/EmptyState.d.ts +1 -1
- package/src/surfaces/admin/components/Form.d.ts +1 -1
- package/src/surfaces/admin/components/FunctionSettings.d.ts +1 -1
- package/src/surfaces/admin/components/Grid.d.ts +1 -1
- package/src/surfaces/admin/components/GridItem.d.ts +1 -1
- package/src/surfaces/admin/components/Heading.d.ts +1 -1
- package/src/surfaces/admin/components/Icon.d.ts +1 -1
- package/src/surfaces/admin/components/Image.d.ts +1 -1
- package/src/surfaces/admin/components/Link.d.ts +1 -1
- package/src/surfaces/admin/components/ListItem.d.ts +1 -1
- package/src/surfaces/admin/components/Menu.d.ts +1 -1
- package/src/surfaces/admin/components/Modal.d.ts +1 -1
- package/src/surfaces/admin/components/MoneyField.d.ts +1 -1
- package/src/surfaces/admin/components/Number.d.ts +1 -1
- package/src/surfaces/admin/components/NumberField.d.ts +1 -1
- package/src/surfaces/admin/components/Option.d.ts +3 -3
- package/src/surfaces/admin/components/OptionGroup.d.ts +1 -1
- package/src/surfaces/admin/components/OrderedList.d.ts +1 -1
- package/src/surfaces/admin/components/Page.d.ts +1 -1
- package/src/surfaces/admin/components/Paragraph.d.ts +1 -1
- package/src/surfaces/admin/components/PasswordField.d.ts +1 -1
- package/src/surfaces/admin/components/Popover.d.ts +1 -1
- package/src/surfaces/admin/components/Progress.d.ts +155 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +1 -1
- package/src/surfaces/admin/components/SearchField.d.ts +1 -1
- package/src/surfaces/admin/components/Section.d.ts +11 -3
- package/src/surfaces/admin/components/Select.d.ts +1 -1
- package/src/surfaces/admin/components/Spinner.d.ts +1 -1
- package/src/surfaces/admin/components/Stack.d.ts +1 -1
- package/src/surfaces/admin/components/StandardComponents.ts +3 -0
- package/src/surfaces/admin/components/Switch.d.ts +3 -3
- package/src/surfaces/admin/components/Table.d.ts +1 -1
- package/src/surfaces/admin/components/TableBody.d.ts +1 -1
- package/src/surfaces/admin/components/TableCell.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeader.d.ts +1 -1
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +1 -1
- package/src/surfaces/admin/components/TableRow.d.ts +1 -1
- package/src/surfaces/admin/components/Text.d.ts +1 -1
- package/src/surfaces/admin/components/TextArea.d.ts +1 -1
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components/Thumbnail.d.ts +1 -1
- package/src/surfaces/admin/components/Tooltip.d.ts +1 -1
- package/src/surfaces/admin/components/URLField.d.ts +1 -1
- package/src/surfaces/admin/components/UnorderedList.d.ts +1 -1
- package/src/surfaces/admin/components/shared.d.ts +47 -7
- package/src/surfaces/admin/components.d.ts +8216 -2635
- package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +9 -0
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +9 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -2
- package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +8 -0
- package/src/surfaces/checkout/api/checkout/checkout.ts +19 -9
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +1 -1
- package/src/surfaces/checkout/api/shared.ts +116 -1
- package/src/surfaces/checkout/api/standard/standard.ts +11 -3
- package/src/surfaces/checkout/components/MoneyField.d.ts +3 -1
- package/src/surfaces/checkout/components/NumberField.d.ts +3 -1
- package/src/surfaces/checkout/components/components-shared.d.ts +1 -1
- package/src/surfaces/checkout/preact/country.ts +1 -1
- package/src/surfaces/checkout.ts +3 -0
- package/src/surfaces/customer-account/api/order-status/order-status.ts +1 -1
- package/src/surfaces/customer-account/api/shared.ts +25 -7
- package/src/surfaces/customer-account/api.ts +1 -0
- package/src/surfaces/customer-account/preact/authenticated-account.ts +3 -3
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +14 -0
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/docs.ts +8 -0
- package/src/surfaces/point-of-sale/api/extension-api/extension-api.ts +25 -5
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +22 -7
- package/src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts +30 -3
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +1 -1
- package/src/surfaces/point-of-sale/api.ts +2 -0
- package/src/surfaces/point-of-sale/components/POSList.d.ts +179 -0
- package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +0 -4
- package/src/surfaces/point-of-sale/components/targets/ResolutionComponents.ts +1 -1
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +1 -3
- package/src/surfaces/point-of-sale/components.d.ts +194 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +13 -1
- package/src/surfaces/point-of-sale/event/data.ts +1 -1
- package/src/surfaces/point-of-sale/events/scan-event.ts +34 -0
- package/src/surfaces/point-of-sale/events/transaction-complete-event.ts +8 -0
- package/src/surfaces/point-of-sale/events.ts +58 -27
- package/src/surfaces/point-of-sale/extension-targets.ts +4 -4
- package/src/surfaces/point-of-sale/globals.ts +0 -2
- package/src/surfaces/point-of-sale/pos-list-template.ts +351 -0
- package/src/surfaces/point-of-sale/tests/pos-list-template.test.ts +306 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +8 -0
- package/src/surfaces/point-of-sale/types/session.ts +0 -7
- package/src/surfaces/point-of-sale.ts +1 -0
|
@@ -883,7 +883,7 @@ export interface PaymentTermsTemplate {
|
|
|
883
883
|
*/
|
|
884
884
|
id: string;
|
|
885
885
|
/**
|
|
886
|
-
* 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/{API_VERSION}/apis/localization#
|
|
886
|
+
* 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/{API_VERSION}/target-apis/platform-apis/localization-api#docsstandardlocalizationapi-propertydetail-localization).
|
|
887
887
|
*/
|
|
888
888
|
name: string;
|
|
889
889
|
/**
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import type { ExtensionTarget } from '../extension-targets';
|
|
2
|
-
import type { ApiVersion, Capability, CurrencyCode, Timezone,
|
|
2
|
+
import type { ApiVersion, Capability, CurrencyCode, Timezone, CountryCode, GraphQLError, StorefrontApiVersion } from '../../../shared';
|
|
3
3
|
import type { SubscribableSignalLike } from '../../checkout/shared';
|
|
4
|
-
export { ApiVersion, Capability, CurrencyCode, Timezone,
|
|
4
|
+
export { ApiVersion, Capability, CurrencyCode, Timezone, CountryCode, GraphQLError, StorefrontApiVersion, SubscribableSignalLike, };
|
|
5
|
+
/**
|
|
6
|
+
* A buyer's country, identified by its ISO country code.
|
|
7
|
+
*/
|
|
8
|
+
export interface Country {
|
|
9
|
+
/**
|
|
10
|
+
* The two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
|
|
11
|
+
*
|
|
12
|
+
* @example 'CA' for Canada, 'US' for United States.
|
|
13
|
+
*/
|
|
14
|
+
isoCode: CountryCode;
|
|
15
|
+
}
|
|
5
16
|
/**
|
|
6
17
|
* Persists key-value data across customer sessions for a specific extension target. Use storage to save preferences, dismiss states, or cached data that should survive page reloads without requiring a backend call.
|
|
7
18
|
*
|
|
@@ -286,22 +297,30 @@ export interface AuthenticatedAccount {
|
|
|
286
297
|
/**
|
|
287
298
|
* The authenticated customer's account information. The value is `undefined` if the customer isn't logged in.
|
|
288
299
|
*/
|
|
289
|
-
customer: SubscribableSignalLike<
|
|
300
|
+
customer: SubscribableSignalLike<AuthenticatedAccountCustomer | undefined>;
|
|
290
301
|
}
|
|
291
302
|
/**
|
|
292
|
-
* The authenticated customer's account, identified by a
|
|
303
|
+
* The authenticated customer's account, identified by a numeric customer ID represented as a string.
|
|
293
304
|
*
|
|
294
305
|
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
295
|
-
* @
|
|
306
|
+
* @deprecated Use `AuthenticatedAccountCustomer` instead.
|
|
296
307
|
*/
|
|
297
308
|
export interface Customer {
|
|
298
309
|
/**
|
|
299
|
-
*
|
|
310
|
+
* The customer's numeric ID represented as a string.
|
|
300
311
|
*
|
|
301
|
-
* @example '
|
|
312
|
+
* @example '123'
|
|
302
313
|
*/
|
|
303
314
|
id: string;
|
|
304
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* The authenticated customer's account, identified by a numeric customer ID represented as a string.
|
|
318
|
+
*
|
|
319
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
320
|
+
* @publicDocs
|
|
321
|
+
*/
|
|
322
|
+
export interface AuthenticatedAccountCustomer extends Customer {
|
|
323
|
+
}
|
|
305
324
|
/**
|
|
306
325
|
* @publicDocs
|
|
307
326
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/api/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/api/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAElE,OAAO,EACL,UAAU,EACV,UAAU,EACV,YA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OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GACtB,qBAAqB,GACrB,mBAAmB,GACnB,oBAAoB,CAAC;AAEzB;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;CACnC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACpD;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { CartCost, CartLineCost, CheckoutSettings, OrderStatusCustomer, Merchandise, ImageDetails, Product, ProductVariant, SelectedOption, Money, Shop, AppMetafield, AppMetafieldEntryTarget, AppMetafieldEntry, CartLine, PaymentOption, SelectedPaymentOption, CartDiscountCode, CartDiscountAllocation, CartCodeDiscountAllocation, CartAutomaticDiscountAllocation, CartCustomDiscountAllocation, AppliedGiftCard, Currency, Market, DeliveryGroup, DeliveryGroupType, CartLineReference, DeliveryOptionReference, DeliveryOption, ShippingOption, PickupLocationOption, PickupPointOption, NumberRange, Order, OrderStatusApi, OrderStatusCompany, OrderStatusLocalization, OrderStatusPurchasingCompany, OrderStatusBuyerIdentity, CheckoutToken, AuthenticationState, } from './api/order-status/order-status';
|
|
2
|
-
export type { Attribute, CurrencyCode, Country, CountryCode, Timezone, GraphQLError, SellingPlan, StorefrontApiVersion, MailingAddress, ApiVersion, Capability, Editor, Extension, I18nTranslate, I18n, Language, Storage, AuthenticatedAccount, PurchasingCompany, Company, Customer, SessionToken, Analytics, ApplyTrackingConsentChangeType, CustomerPrivacy, TrackingConsentChangeResult, TrackingConsentChangeResultError, TrackingConsentMetafield, TrackingConsentMetafieldChange, VisitorConsent, VisitorConsentChange, VisitorResult, VisitorSuccess, VisitorError, SubscribableSignalLike, } from './api/shared';
|
|
2
|
+
export type { Attribute, CurrencyCode, Country, CountryCode, Timezone, GraphQLError, SellingPlan, StorefrontApiVersion, MailingAddress, ApiVersion, Capability, Editor, Extension, I18nTranslate, I18n, Language, Storage, AuthenticatedAccount, AuthenticatedAccountCustomer, PurchasingCompany, Company, Customer, SessionToken, Analytics, ApplyTrackingConsentChangeType, CustomerPrivacy, TrackingConsentChangeResult, TrackingConsentChangeResultError, TrackingConsentMetafield, TrackingConsentMetafieldChange, VisitorConsent, VisitorConsentChange, VisitorResult, VisitorSuccess, VisitorError, SubscribableSignalLike, } from './api/shared';
|
|
3
3
|
export type { CartLineItemApi } from './api/cart-line/cart-line-item';
|
|
4
4
|
export type { Version, StandardApi, Navigation, NavigationCurrentEntryChangeEvent, NavigationHistoryEntry, NavigationNavigateOptions, NavigationTypeString, NavigateFunction, Localization, CompanyLocationApi, OrderApi, ExtensionSettings, } from './api/standard-api/standard-api';
|
|
5
5
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/customer-account/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,OAAO,EACP,cAAc,EACd,cAAc,EACd,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,eAAe,EACf,QAAQ,EACR,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,oBAAoB,EACpB,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,8BAA8B,EAC9B,eAAe,EACf,2BAA2B,EAC3B,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,EAC9B,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAEpE,YAAY,EACV,OAAO,EACP,WAAW,EACX,UAAU,EACV,iCAAiC,EACjC,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,GAClB,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/customer-account/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,OAAO,EACP,cAAc,EACd,cAAc,EACd,KAAK,EACL,IAAI,EACJ,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,eAAe,EACf,QAAQ,EACR,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,EAC5B,wBAAwB,EACxB,aAAa,EACb,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACV,SAAS,EACT,YAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,aAAa,EACb,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,8BAA8B,EAC9B,eAAe,EACf,2BAA2B,EAC3B,gCAAgC,EAChC,wBAAwB,EACxB,8BAA8B,EAC9B,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAEpE,YAAY,EACV,OAAO,EACP,WAAW,EACX,UAAU,EACV,iCAAiC,EACjC,sBAAsB,EACtB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,GAClB,MAAM,iCAAiC,CAAC"}
|
|
@@ -46,7 +46,8 @@ export interface MoneyFieldElementEvents {
|
|
|
46
46
|
*/
|
|
47
47
|
blur?: CallbackEventListener<typeof tagName>;
|
|
48
48
|
/**
|
|
49
|
-
* A callback fired when the money field value
|
|
49
|
+
* A callback fired when the money field value is committed on blur or after pressing Enter.
|
|
50
|
+
* Also fired on each step when using the Up Arrow and Down Arrow keys.
|
|
50
51
|
*
|
|
51
52
|
* Learn more about the [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event).
|
|
52
53
|
*/
|
|
@@ -59,6 +60,7 @@ export interface MoneyFieldElementEvents {
|
|
|
59
60
|
focus?: CallbackEventListener<typeof tagName>;
|
|
60
61
|
/**
|
|
61
62
|
* A callback fired when the user inputs data into the money field.
|
|
63
|
+
* Also fired on each step when using the Up Arrow and Down Arrow keys.
|
|
62
64
|
*
|
|
63
65
|
* Learn more about the [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
64
66
|
*/
|
|
@@ -88,7 +88,8 @@ export interface NumberFieldElementEvents {
|
|
|
88
88
|
*/
|
|
89
89
|
blur?: CallbackEventListener<typeof tagName>;
|
|
90
90
|
/**
|
|
91
|
-
* A callback fired when the number field value
|
|
91
|
+
* A callback fired when the number field value is committed on blur or after pressing Enter.
|
|
92
|
+
* Also fired on each step when using the increment/decrement controls or the Up Arrow and Down Arrow keys.
|
|
92
93
|
*
|
|
93
94
|
* Learn more about the [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event).
|
|
94
95
|
*/
|
|
@@ -101,6 +102,7 @@ export interface NumberFieldElementEvents {
|
|
|
101
102
|
focus?: CallbackEventListener<typeof tagName>;
|
|
102
103
|
/**
|
|
103
104
|
* A callback fired when the user inputs data into the number field.
|
|
105
|
+
* Also fired on each step when using the increment/decrement controls or the Up Arrow and Down Arrow keys.
|
|
104
106
|
*
|
|
105
107
|
* Learn more about the [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
106
108
|
*/
|
|
@@ -1384,7 +1384,7 @@ export interface ButtonBehaviorProps extends InteractionProps, FocusEventProps {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
export interface LinkBehaviorProps extends InteractionProps, FocusEventProps {
|
|
1386
1386
|
/**
|
|
1387
|
-
* The URL to navigate to when clicked. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation.
|
|
1387
|
+
* The URL to navigate to when clicked, including `mailto:` and `tel:` URLs. The `click` event fires first, then navigation occurs. If `commandFor` is also set, the command executes instead of navigation.
|
|
1388
1388
|
*/
|
|
1389
1389
|
href?: string;
|
|
1390
1390
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { RenderExtensionTarget } from '../extension-targets';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AuthenticatedAccountCustomer, PurchasingCompany } from '../api';
|
|
3
3
|
/**
|
|
4
|
-
* Returns the current
|
|
4
|
+
* Returns the current `AuthenticatedAccountCustomer`.
|
|
5
5
|
*
|
|
6
6
|
* The value is `undefined` if the customer isn't authenticated.
|
|
7
7
|
*/
|
|
8
|
-
export declare function useAuthenticatedAccountCustomer<Target extends RenderExtensionTarget>():
|
|
8
|
+
export declare function useAuthenticatedAccountCustomer<Target extends RenderExtensionTarget>(): AuthenticatedAccountCustomer | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* Provides information about the company of the authenticated business customer.
|
|
11
11
|
* The value is `undefined` if a business customer isn't authenticated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticated-account.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/preact/authenticated-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"authenticated-account.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/customer-account/preact/authenticated-account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAC,4BAA4B,EAAE,iBAAiB,EAAC,MAAM,QAAQ,CAAC;AAK5E;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,SAAS,qBAAqB,KACjC,4BAA4B,GAAG,SAAS,CAI5C;AAED;;;GAGG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,SAAS,qBAAqB,KACjC,iBAAiB,GAAG,SAAS,CAIjC"}
|
|
@@ -104,6 +104,19 @@ export interface MutableCartApiContent {
|
|
|
104
104
|
* @throws {Error} if POS fails to add the line item
|
|
105
105
|
*/
|
|
106
106
|
addLineItem(variantId: number, quantity: number, options?: AddLineItemOptions): Promise<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Set the quantity of an existing line item identified by its `UUID`, preserving the line item's properties, discounts, and selling plans. This is equivalent to a merchant adjusting the quantity on the native cart line.
|
|
109
|
+
*
|
|
110
|
+
* If POS has split the line into multiple allocations that share the same `UUID` (for example, lines split across delivery methods), the target line is ambiguous and the call throws instead of guessing.
|
|
111
|
+
*
|
|
112
|
+
* Only available on API version `2026-10` and later.
|
|
113
|
+
*
|
|
114
|
+
* @param uuid the UUID of the line item to update
|
|
115
|
+
* @param quantity the new absolute quantity; must be an integer of 1 or greater. To remove a line item, use `removeLineItem` instead.
|
|
116
|
+
* @returns A promise that resolves after the cart state reflects the change.
|
|
117
|
+
* @throws {Error} if the line item is not found, the `UUID` matches multiple split-line allocations, the quantity is invalid, the cart is not editable because it is a return or exchange, or the POS app version does not support this method.
|
|
118
|
+
*/
|
|
119
|
+
updateLineItemQuantity(uuid: string, quantity: number): Promise<void>;
|
|
107
120
|
/**
|
|
108
121
|
* Remove a specific line item from the cart using its `UUID`. The line item will be completely removed from the cart along with any associated discounts, properties, or selling plans.
|
|
109
122
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/cart-api/cart-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,E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,IAAI,CAAC,CAAC;IAE/D;;;;;OAKG;IACH,4BAA4B,CAC1B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;OAIG;IACH,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD;;;;OAIG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5C;;;;OAIG;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;OAIG;IACH,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvD;;;;;OAKG;IACH,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1E;;;;OAIG;IACH,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED;;;GAGG;AACH,MAAM,WAAW,cACf,SAAQ,sBAAsB,EAC5B,qBAAqB;CAAG"}
|
|
@@ -11,6 +11,10 @@ export interface DeviceApiContent {
|
|
|
11
11
|
* A short, unique identifier for the device, assigned by Shopify.
|
|
12
12
|
*/
|
|
13
13
|
registerName: string;
|
|
14
|
+
/**
|
|
15
|
+
* The Shopify-assigned fiscal register identifier for the device, such as Sweden's manufacturing number (tillverkningsnummer).
|
|
16
|
+
*/
|
|
17
|
+
fiscalDeviceIdentifier?: string;
|
|
14
18
|
/**
|
|
15
19
|
* Retrieves the unique string identifier for the device. Returns a promise that resolves to the device ID. Use for device-specific data storage, analytics tracking, or implementing device-based permissions and configurations.
|
|
16
20
|
* Note: While Shopify POS attempts to maintain a stable identifier, it is not guaranteed to be permanent and may change.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/device-api/device-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"device-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/device-api/device-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
|
|
@@ -5,4 +5,11 @@ import type { BackgroundShopifyGlobal } from '../globals';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface Docs_AppBackgroundEventMethods extends Pick<BackgroundShopifyGlobal, 'addEventListener' | 'removeEventListener'> {
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Validation interceptor method available on the `shopify` global for app
|
|
10
|
+
* background extensions.
|
|
11
|
+
* @publicDocs
|
|
12
|
+
*/
|
|
13
|
+
export interface Docs_AppBackgroundInterceptMethods extends Pick<BackgroundShopifyGlobal, 'intercept'> {
|
|
14
|
+
}
|
|
8
15
|
//# sourceMappingURL=docs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/api/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,8BACf,SAAQ,IAAI,CACV,uBAAuB,EACvB,kBAAkB,GAAG,qBAAqB,CAC3C;CAAG"}
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/api/docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,8BACf,SAAQ,IAAI,CACV,uBAAuB,EACvB,kBAAkB,GAAG,qBAAqB,CAC3C;CAAG;AAEN;;;;GAIG;AACH,MAAM,WAAW,kCACf,SAAQ,IAAI,CAAC,uBAAuB,EAAE,WAAW,CAAC;CAAG"}
|
|
@@ -6,15 +6,16 @@ import type { ApiVersion } from '../../../../shared';
|
|
|
6
6
|
* multiple targets. Access these properties through `shopify.extension`.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* <caption>Read the API version and active target</caption>
|
|
10
|
-
* <description>Display the configured API version and the active extension target. Use `shopify.extension.apiVersion` for version-aware logic and `shopify.extension.target` when a single module handles multiple targets.</description>
|
|
9
|
+
* <caption>Read the API version, published version, and active target</caption>
|
|
10
|
+
* <description>Display the configured API version, the published app version this build was deployed in, and the active extension target. Use `shopify.extension.apiVersion` for version-aware logic, `shopify.extension.version` to report which build a merchant is running, and `shopify.extension.target` when a single module handles multiple targets.</description>
|
|
11
11
|
* ```jsx
|
|
12
12
|
* const Extension = () => {
|
|
13
|
-
* const {apiVersion, target} = shopify.extension;
|
|
13
|
+
* const {apiVersion, version, target} = shopify.extension;
|
|
14
14
|
* return (
|
|
15
15
|
* <s-page heading="Extension Info">
|
|
16
16
|
* <s-stack direction="block">
|
|
17
17
|
* <s-text>API Version: {apiVersion}</s-text>
|
|
18
|
+
* <s-text>Version: {version ?? 'development build'}</s-text>
|
|
18
19
|
* <s-text>Target: {target}</s-text>
|
|
19
20
|
* </s-stack>
|
|
20
21
|
* </s-page>
|
|
@@ -37,11 +38,30 @@ export interface ExtensionApiContent<T> {
|
|
|
37
38
|
* @example 'pos.home.tile.render', 'pos.home.modal.render'
|
|
38
39
|
*/
|
|
39
40
|
target: T;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the published app version that this extension was deployed in.
|
|
43
|
+
* This is the same name shown on the Versions page of your dev dashboard, and
|
|
44
|
+
* the name you choose when you run `shopify app deploy`.
|
|
45
|
+
*
|
|
46
|
+
* Use it to tell which build of your extension a merchant is running. POS
|
|
47
|
+
* caches extension bundles and runs them offline, so a device can stay on an
|
|
48
|
+
* older version for some time after you deploy a new one.
|
|
49
|
+
*
|
|
50
|
+
* This is an opaque name, not a version number. Compare it for equality; don't
|
|
51
|
+
* sort it or read parts out of it.
|
|
52
|
+
*
|
|
53
|
+
* `undefined` when the extension runs from a local development server, because
|
|
54
|
+
* a build that hasn't been deployed has no published version.
|
|
55
|
+
*
|
|
56
|
+
* @example 'restaurant-table-manager-2', 'casa-loyalty-493'
|
|
57
|
+
*/
|
|
58
|
+
version?: string;
|
|
40
59
|
}
|
|
41
60
|
/**
|
|
42
61
|
* The `ExtensionApi` object provides metadata about the currently running
|
|
43
|
-
* extension, including the configured API version
|
|
44
|
-
* target. Access these properties
|
|
62
|
+
* extension, including the configured API version, the published app version it
|
|
63
|
+
* was deployed in, and the active extension target. Access these properties
|
|
64
|
+
* through `shopify.extension`.
|
|
45
65
|
* @publicDocs
|
|
46
66
|
*/
|
|
47
67
|
export interface ExtensionApi<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/extension-api/extension-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"extension-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/extension-api/extension-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC;;;;OAIG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;;;;OAKG;IACH,MAAM,EAAE,CAAC,CAAC;IACV;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC;IAC7B,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;CACnC"}
|
|
@@ -42,7 +42,7 @@ export interface NavigationCurrentEntryChangeEvent {
|
|
|
42
42
|
*/
|
|
43
43
|
export interface Navigation {
|
|
44
44
|
/**
|
|
45
|
-
* Navigates to a specific URL, updating any provided state in the history entries list.
|
|
45
|
+
* Navigates to a specific URL, updating any provided state in the history entries list. The promise does not wait for the native screen transition to finish; listen for `navigatesuccess` on the screen that becomes active to know when it has finished appearing. Use for programmatic navigation between screens, implementing custom navigation controls, or deep-linking to specific modal states.
|
|
46
46
|
*/
|
|
47
47
|
navigate: (url: string, options?: NavigationNavigateOptions) => Promise<void>;
|
|
48
48
|
/**
|
|
@@ -54,17 +54,29 @@ export interface Navigation {
|
|
|
54
54
|
*/
|
|
55
55
|
back(): void;
|
|
56
56
|
/**
|
|
57
|
-
* Registers
|
|
58
|
-
* @param type - The event type to listen for.
|
|
59
|
-
* @param cb -
|
|
57
|
+
* Registers a listener for `currententrychange`, which fires when the active history entry changes. This can happen before the screen finishes appearing.
|
|
58
|
+
* @param type - The event type to listen for.
|
|
59
|
+
* @param cb - Receives the previous history entry in `event.from`.
|
|
60
60
|
*/
|
|
61
61
|
addEventListener(type: 'currententrychange', cb: (event: NavigationCurrentEntryChangeEvent) => void): void;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param type - The event type to
|
|
65
|
-
* @param cb -
|
|
63
|
+
* Registers a listener for `navigatesuccess`, which fires after the extension screen becomes active and finishes its native transition. The callback receives a standard `Event`, not a history entry. When navigating back, register the listener on the screen that will reappear: the departing screen is removed and cannot receive the completion event. Older POS builds without support for this event do not emit it.
|
|
64
|
+
* @param type - The event type to listen for.
|
|
65
|
+
* @param cb - Called after the screen finishes appearing.
|
|
66
|
+
*/
|
|
67
|
+
addEventListener(type: 'navigatesuccess', cb: (event: Event) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* Removes a `currententrychange` listener. Pass the same callback reference used with `addEventListener`.
|
|
70
|
+
* @param type - The event type to stop listening for.
|
|
71
|
+
* @param cb - The previously registered callback.
|
|
66
72
|
*/
|
|
67
73
|
removeEventListener(type: 'currententrychange', cb: (event: NavigationCurrentEntryChangeEvent) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* Removes a `navigatesuccess` listener. Pass the same callback reference used with `addEventListener`.
|
|
76
|
+
* @param type - The event type to stop listening for.
|
|
77
|
+
* @param cb - The previously registered callback.
|
|
78
|
+
*/
|
|
79
|
+
removeEventListener(type: 'navigatesuccess', cb: (event: Event) => void): void;
|
|
68
80
|
}
|
|
69
81
|
/**
|
|
70
82
|
* The global `window` object provides control over the extension modal lifecycle. Access these properties and methods directly through the global `window` object to manage the modal interface programmatically.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E;;OAEG;IACH,YAAY,EAAE,sBAAsB,CAAC;IACrC;;OAEG;IACH,IAAI,IAAI,IAAI,CAAC;IACb;;;;OAIG;IACH,gBAAgB,CACd,IAAI,EAAE,oBAAoB,EAC1B,EAAE,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,IAAI,GACrD,IAAI,CAAC;IACR;;;;OAIG;IACH,mBAAmB,CACjB,IAAI,EAAE,oBAAoB,EAC1B,EAAE,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,IAAI,GACrD,IAAI,CAAC;CACT;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf"}
|
|
1
|
+
{"version":3,"file":"navigation-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;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adonlySignalLike } from '../../../../shared';
|
|
|
7
7
|
* @private
|
|
8
8
|
*/
|
|
9
9
|
export interface ResolutionApi<TEventData> {
|
|
10
|
+
/** The intercepted event data and save handler for the active resolution target. */
|
|
10
11
|
resolution: ResolutionApiContent<TEventData>;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Runs when staff advance the resolution flow. Return a promise to have POS
|
|
15
|
+
* wait for pending work to finish before it re-runs validation.
|
|
16
|
+
*
|
|
17
|
+
* @publicDocs
|
|
18
|
+
*/
|
|
19
|
+
export type ResolutionSaveHandler = () => void | Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* The intercepted event data and save handler available to a validation
|
|
22
|
+
* resolution target through `shopify.resolution`.
|
|
23
|
+
*
|
|
24
|
+
* @publicDocs
|
|
14
25
|
*/
|
|
15
26
|
export interface ResolutionApiContent<TEventData> {
|
|
16
27
|
/**
|
|
17
28
|
* The data of the intercepted event this resolution target was opened for.
|
|
18
|
-
* The `value` property provides the current data, and `subscribe`
|
|
19
|
-
*
|
|
29
|
+
* The `value` property provides the current data, and `subscribe` receives
|
|
30
|
+
* Shopify POS revalidation updates.
|
|
20
31
|
*/
|
|
21
32
|
event: ReadonlySignalLike<TEventData>;
|
|
33
|
+
/**
|
|
34
|
+
* Registers a handler that runs when staff advance the resolution flow
|
|
35
|
+
* (Save, Next, or Done). POS awaits the handler before it re-runs the
|
|
36
|
+
* intercepted validation, so use it to commit any pending work, for example
|
|
37
|
+
* cart updates or storage writes, and `await` those calls inside the handler.
|
|
38
|
+
* A rejected promise does not stop the flow; POS still re-runs validation and
|
|
39
|
+
* the interceptor result decides what happens next.
|
|
40
|
+
*
|
|
41
|
+
* Only the most recent handler is kept.
|
|
42
|
+
*
|
|
43
|
+
* @returns A promise that resolves to an async cleanup function that
|
|
44
|
+
* unregisters the handler.
|
|
45
|
+
*/
|
|
46
|
+
onSave(handler: ResolutionSaveHandler): Promise<() => Promise<void>>;
|
|
22
47
|
}
|
|
23
48
|
//# sourceMappingURL=resolution-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolution-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,UAAU;IACvC,UAAU,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;CAC9C;AAED
|
|
1
|
+
{"version":3,"file":"resolution-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/resolution-api/resolution-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,UAAU;IACvC,oFAAoF;IACpF,UAAU,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;CAC9C;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB,CAAC,UAAU;IAC9C;;;;OAIG;IACH,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAEtC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACtE"}
|
|
@@ -6,7 +6,7 @@ import type { Session, StaffMember } from '../../types/session';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface SessionApiContent {
|
|
8
8
|
/**
|
|
9
|
-
* Provides
|
|
9
|
+
* Provides information about the current POS session including shop details, user authentication, location data, currency settings, and POS version. Use `session.staffMember` to access the staff member currently pinned into POS and subscribe to staff member changes.
|
|
10
10
|
*/
|
|
11
11
|
currentSession: Session;
|
|
12
12
|
/**
|
|
@@ -6,8 +6,8 @@ export type { StandardApi } from './api/standard/standard-api';
|
|
|
6
6
|
export type { ExtensionApi, ExtensionApiContent, } from './api/extension-api/extension-api';
|
|
7
7
|
export type { ActionTargetApi } from './api/action-target-api/action-target-api';
|
|
8
8
|
export type { DataTargetApi } from './api/data-target-api/data-target-api';
|
|
9
|
-
export type { ResolutionApi, ResolutionApiContent, } from './api/resolution-api/resolution-api';
|
|
10
|
-
export type { TransactionCompleteEvent, CashTrackingSessionStartEvent, CashTrackingSessionCompleteEvent, ShopifyEventMap, } from './events';
|
|
9
|
+
export type { ResolutionApi, ResolutionApiContent, ResolutionSaveHandler, } from './api/resolution-api/resolution-api';
|
|
10
|
+
export type { TransactionCompleteEvent, CashTrackingSessionStartEvent, CashTrackingSessionCompleteEvent, ScanEvent, ShopifyEventMap, } from './events';
|
|
11
11
|
export type { CameraApi, CameraApiContent, CameraMediaOptions, CameraMediaResponse, } from './api/camera-api/camera-api';
|
|
12
12
|
export type { ConnectivityStateSeverity, ConnectivityState, ConnectivityApiContent, ConnectivityApi, } from './api/connectivity-api/connectivity-api';
|
|
13
13
|
export type { CustomerApi, CustomerApiContent, } from './api/customer-api/customer-api';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEzE,YAAY,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAE7E,YAAY,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,YAAY,EACZ,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACzE,YAAY,EACV,aAAa,EACb,oBAAoB,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/api.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAC,eAAe,EAAC,MAAM,6CAA6C,CAAC;AAEjF,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AAEzE,YAAY,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,6BAA6B,CAAC;AAE7E,YAAY,EAAC,WAAW,EAAC,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EACV,YAAY,EACZ,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAC,eAAe,EAAC,MAAM,2CAA2C,CAAC;AAC/E,YAAY,EAAC,aAAa,EAAC,MAAM,uCAAuC,CAAC;AACzE,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,SAAS,EACT,eAAe,GAChB,MAAM,UAAU,CAAC;AAElB,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,GAChB,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,WAAW,EACX,kBAAkB,GAC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