@shopify/ui-extensions 2025.10.8 → 2025.10.10
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/point-of-sale/types/storage.js +3 -0
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
- package/build/ts/shared.d.ts +7 -7
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Banner/Banner.doc.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/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/DropZone/{DropZone.ab.doc.d.ts → DropZone.doc.d.ts} +1 -1
- package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +1 -0
- package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +3 -5
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +38 -33
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +6 -4
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -4
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +2 -3
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +17 -9
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +5 -5
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +6 -10
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +10 -11
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +5 -2
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +24 -10
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +26 -8
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +3 -6
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +11 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +23 -4
- package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +24 -6
- package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +34 -37
- package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +56 -16
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
- package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
- package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +15 -3
- package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +17 -2
- package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +43 -11
- package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
- package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +19 -7
- package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
- package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
- package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +17 -7
- 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 +47 -61
- 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 +28 -6
- package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +43 -7
- package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +40 -4
- package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
- 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/BaseApi.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +17 -0
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +135 -0
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +43 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +227 -31
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +36 -16
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/product.d.ts +170 -0
- package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -1
- package/src/shared.ts +7 -7
- package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.js +1 -0
- package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.js +1 -1
- package/src/surfaces/admin/components/Icon/icon-data.json +9 -0
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +3 -5
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +38 -33
- package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +2 -2
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +6 -4
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +4 -1
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -4
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -3
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +2 -3
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +17 -9
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +5 -5
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -10
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +10 -11
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -2
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +24 -10
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +26 -8
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +3 -6
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +11 -1
- package/src/surfaces/point-of-sale/components/Badge.d.ts +23 -4
- package/src/surfaces/point-of-sale/components/Banner.d.ts +24 -6
- package/src/surfaces/point-of-sale/components/Box.d.ts +34 -37
- package/src/surfaces/point-of-sale/components/Button.d.ts +56 -16
- package/src/surfaces/point-of-sale/components/Choice.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/ChoiceList/examples/composed-choices.jsx +35 -0
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
- package/src/surfaces/point-of-sale/components/DateField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/Divider.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/Heading.d.ts +15 -3
- package/src/surfaces/point-of-sale/components/Icon.d.ts +17 -2
- package/src/surfaces/point-of-sale/components/Image.d.ts +6 -3
- package/src/surfaces/point-of-sale/components/Modal.d.ts +43 -11
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
- package/src/surfaces/point-of-sale/components/Page.d.ts +19 -7
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/Section.d.ts +17 -7
- package/src/surfaces/point-of-sale/components/Stack.d.ts +47 -61
- package/src/surfaces/point-of-sale/components/Text.d.ts +28 -6
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/TextField.d.ts +43 -7
- package/src/surfaces/point-of-sale/components/Tile.d.ts +40 -4
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -1
- package/src/surfaces/point-of-sale/components.d.ts +1506 -1537
- package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
- package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +17 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +135 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +43 -0
- package/src/surfaces/point-of-sale/types/cart.ts +227 -31
- package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
- package/src/surfaces/point-of-sale/types/device.ts +6 -3
- package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
- package/src/surfaces/point-of-sale/types/money.ts +18 -0
- package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
- package/src/surfaces/point-of-sale/types/order.ts +18 -1
- package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
- package/src/surfaces/point-of-sale/types/payment.ts +16 -0
- package/src/surfaces/point-of-sale/types/pin-pad.ts +32 -14
- package/src/surfaces/point-of-sale/types/product.ts +170 -0
- package/src/surfaces/point-of-sale/types/session.ts +7 -5
- package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
- package/src/surfaces/point-of-sale/types/storage.ts +13 -11
- package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
- package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
- package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-transaction-complete.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/base-transaction-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC;IAClB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"base-transaction-complete.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/base-transaction-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB"}
|
|
@@ -1,87 +1,207 @@
|
|
|
1
1
|
import { CountryCode } from './country-code';
|
|
2
2
|
import { TaxLine } from './tax-line';
|
|
3
3
|
import { DiscountAllocation } from './discount-allocation';
|
|
4
|
+
/**
|
|
5
|
+
* Represents the shopping cart state, including line items, pricing, customer information, and applied discounts. Provides comprehensive access to all cart data and operations.
|
|
6
|
+
*/
|
|
4
7
|
export interface Cart {
|
|
5
8
|
/**
|
|
6
|
-
* Indicates whether the cart is currently editable.
|
|
7
|
-
*
|
|
8
|
-
* An undefined value should be treated as `true` for backward compatibility.
|
|
9
|
+
* Indicates whether the cart is currently editable. An `undefined` value should be treated as `true` for backward compatibility. Use this to determine if cart modification operations are allowed.
|
|
9
10
|
*/
|
|
10
11
|
editable?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The subtotal amount of the cart before taxes and discounts, formatted as a currency string.
|
|
14
|
+
*/
|
|
11
15
|
subtotal: string;
|
|
16
|
+
/**
|
|
17
|
+
* The total tax amount for the cart, formatted as a currency string.
|
|
18
|
+
*/
|
|
12
19
|
taxTotal: string;
|
|
20
|
+
/**
|
|
21
|
+
* The final total amount including all items, taxes, and discounts, formatted as a currency string.
|
|
22
|
+
*/
|
|
13
23
|
grandTotal: string;
|
|
24
|
+
/**
|
|
25
|
+
* The cart note to set during bulk update. Replaces existing note or sets new note if none exists. Set to `undefined` to remove current note.
|
|
26
|
+
*/
|
|
14
27
|
note?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The cart-level discount to apply during bulk update. Replaces existing cart discount. Set to `undefined` to remove current discount.
|
|
30
|
+
*/
|
|
15
31
|
cartDiscount?: Discount;
|
|
32
|
+
/**
|
|
33
|
+
* An array of cart-level discounts to apply during bulk update. Replaces all existing cart discounts with the provided array.
|
|
34
|
+
*/
|
|
16
35
|
cartDiscounts: Discount[];
|
|
36
|
+
/**
|
|
37
|
+
* The customer to associate with the cart during bulk update. Replaces existing customer or converts guest cart to customer cart.
|
|
38
|
+
*/
|
|
17
39
|
customer?: Customer;
|
|
40
|
+
/**
|
|
41
|
+
* An array of line items to set during bulk update. Completely replaces existing cart contents—removes all current items and adds the provided ones.
|
|
42
|
+
*/
|
|
18
43
|
lineItems: LineItem[];
|
|
44
|
+
/**
|
|
45
|
+
* The custom key-value properties to apply to the line item. Merged with existing properties—duplicate keys overwrite existing values.
|
|
46
|
+
*/
|
|
19
47
|
properties: Record<string, string>;
|
|
20
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the parameters for updating cart information. Includes options for modifying customer data, notes, references, and other cart-level metadata.
|
|
51
|
+
*/
|
|
21
52
|
export interface CartUpdateInput {
|
|
53
|
+
/**
|
|
54
|
+
* The cart note to set during bulk update. Replaces existing note or sets new note if none exists. Set to `undefined` to remove current note.
|
|
55
|
+
*/
|
|
22
56
|
note?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The cart-level discount to apply during bulk update. Replaces existing cart discount. Set to `undefined` to remove current discount.
|
|
59
|
+
*/
|
|
23
60
|
cartDiscount?: Discount;
|
|
61
|
+
/**
|
|
62
|
+
* An array of cart-level discounts to apply during bulk update. Replaces all existing cart discounts with the provided array.
|
|
63
|
+
*/
|
|
24
64
|
cartDiscounts: Discount[];
|
|
65
|
+
/**
|
|
66
|
+
* The customer to associate with the cart during bulk update. Replaces existing customer or converts guest cart to customer cart.
|
|
67
|
+
*/
|
|
25
68
|
customer?: Customer;
|
|
69
|
+
/**
|
|
70
|
+
* An array of line items to set during bulk update. Completely replaces existing cart contents—removes all current items and adds the provided ones.
|
|
71
|
+
*/
|
|
26
72
|
lineItems: LineItem[];
|
|
73
|
+
/**
|
|
74
|
+
* The custom key-value properties to apply to the line item. Merged with existing properties—duplicate keys overwrite existing values.
|
|
75
|
+
*/
|
|
27
76
|
properties: Record<string, string>;
|
|
28
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Represents basic customer identification information. Contains the customer ID for linking to detailed customer data and enabling customer-specific features.
|
|
80
|
+
*/
|
|
29
81
|
export interface Customer {
|
|
82
|
+
/**
|
|
83
|
+
* The unique numeric identifier for the customer in Shopify's system. This ID is consistent across all Shopify systems and APIs. Used to link this customer reference to the full customer record with complete profile information. Commonly used for customer lookups, applying customer-specific pricing or discounts, linking orders to customer accounts, or integrating with customer management systems.
|
|
84
|
+
*/
|
|
30
85
|
id: number;
|
|
31
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Represents an individual item in the shopping cart. Contains product information, pricing, quantity, discounts, and customization details for a single cart entry.
|
|
89
|
+
*/
|
|
32
90
|
export interface LineItem {
|
|
91
|
+
/**
|
|
92
|
+
* The unique identifier for this line item within the cart. Use for line item-specific operations like updates, removals, or property modifications.
|
|
93
|
+
*/
|
|
33
94
|
uuid: string;
|
|
95
|
+
/**
|
|
96
|
+
* The unit price of the line item. Returns 'undefined' for custom sales without set prices. Use for pricing calculations and displays.
|
|
97
|
+
*/
|
|
34
98
|
price?: number;
|
|
99
|
+
/**
|
|
100
|
+
* The quantity of this item in the cart. Always a positive integer. Use for quantity displays, calculations, and inventory management.
|
|
101
|
+
*/
|
|
35
102
|
quantity: number;
|
|
103
|
+
/**
|
|
104
|
+
* The display title of the line item. Returns 'undefined' for items without titles. Use for customer-facing displays and cart item identification.
|
|
105
|
+
*/
|
|
36
106
|
title?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The product variant 'ID' this line item represents. Returns 'undefined' for custom sales or non-variant items. Use for variant-specific operations and product details.
|
|
109
|
+
*/
|
|
37
110
|
variantId?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The product 'ID' this line item represents. Returns 'undefined' for custom sales or non-product items. Use for product-specific operations and linking to product details.
|
|
113
|
+
*/
|
|
38
114
|
productId?: number;
|
|
115
|
+
/**
|
|
116
|
+
* An array of discounts applied to this line item. Empty array if no discounts are active. Use for displaying line item savings and discount details.
|
|
117
|
+
*/
|
|
39
118
|
discounts: Discount[];
|
|
119
|
+
/**
|
|
120
|
+
* An array of discount allocations applied to this line item, providing detailed breakdown of how discounts are distributed. Returns 'undefined' if no allocations exist. Use for enhanced discount tracking and reporting.
|
|
121
|
+
*/
|
|
40
122
|
discountAllocations?: DiscountAllocation[];
|
|
123
|
+
/**
|
|
124
|
+
* Determines whether this line item is subject to tax calculations. Use for tax computation, compliance, and pricing displays.
|
|
125
|
+
*/
|
|
41
126
|
taxable: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* An array of tax lines applied to this line item, containing tax amounts and rates. Use for detailed tax reporting and compliance.
|
|
129
|
+
*/
|
|
42
130
|
taxLines: TaxLine[];
|
|
131
|
+
/**
|
|
132
|
+
* The Stock Keeping Unit (SKU) identifier for this line item. Returns 'undefined' if no SKU is configured. Use for inventory tracking and product identification.
|
|
133
|
+
*/
|
|
43
134
|
sku?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The vendor or brand name for this line item. Returns 'undefined' if no vendor is set. Use for vendor-specific displays and organization.
|
|
137
|
+
*/
|
|
44
138
|
vendor?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The custom key-value properties attached to this line item. Empty object if no properties are set. Use for metadata, customization options, or integration data.
|
|
141
|
+
*/
|
|
45
142
|
properties: {
|
|
46
143
|
[key: string]: string;
|
|
47
144
|
};
|
|
145
|
+
/**
|
|
146
|
+
* Determines whether this line item is a gift card. Gift cards have special handling requirements and business logic. Use for implementing gift card-specific workflows.
|
|
147
|
+
*/
|
|
48
148
|
isGiftCard: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* The staff member 'ID' attributed to this line item. Returns 'undefined' if no staff attribution is set. Use for commission tracking and performance analytics.
|
|
151
|
+
*/
|
|
49
152
|
attributedUserId?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Determines whether this line item requires a selling plan (subscription) to be purchased. Returns 'undefined' if selling plan information is unavailable. Use for implementing subscription-based product handling.
|
|
155
|
+
*/
|
|
50
156
|
requiresSellingPlan?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Determines whether this line item has selling plan groups (subscription options) available. Returns 'undefined' if selling plan information is unavailable. Use for displaying subscription options.
|
|
159
|
+
*/
|
|
51
160
|
hasSellingPlanGroups?: boolean;
|
|
52
161
|
/**
|
|
53
|
-
* The currently selected selling plan for this line item.
|
|
162
|
+
* The currently selected selling plan for this line item. Returns 'undefined' if no selling plan is applied. Contains selling plan details including 'ID', name, and delivery intervals. Use for subscription management and recurring purchase functionality.
|
|
54
163
|
*/
|
|
55
164
|
sellingPlan?: SellingPlan;
|
|
56
165
|
/**
|
|
57
|
-
* Bundle components for this line item. Only present for product bundles.
|
|
58
|
-
* Each component represents an individual item within the bundle with its own tax information.
|
|
166
|
+
* Bundle components for this line item. Only present for [product bundles](/docs/apps/build/product-merchandising/bundles). Each component represents an individual item within the bundle with its own tax information.
|
|
59
167
|
*/
|
|
60
168
|
components?: LineItemComponent[];
|
|
61
169
|
}
|
|
62
170
|
/**
|
|
63
|
-
* Represents a component of a product bundle line item.
|
|
64
|
-
* Bundle components contain the individual items that make up a bundle,
|
|
65
|
-
* each with their own pricing and tax information.
|
|
171
|
+
* Represents a component of a [product bundle](/docs/apps/build/product-merchandising/bundles) line item. Bundle components contain the individual items that make up a bundle, each with their own pricing and tax information.
|
|
66
172
|
*/
|
|
67
173
|
export interface LineItemComponent {
|
|
68
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* The display name for the custom sale item. Appears on receipts and in cart displays. Should be descriptive and customer-friendly.
|
|
176
|
+
*/
|
|
69
177
|
title?: string;
|
|
70
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* The quantity of the custom sale item. Must be a positive integer. Use for quantity-based pricing and inventory management.
|
|
180
|
+
*/
|
|
71
181
|
quantity: number;
|
|
72
|
-
/**
|
|
182
|
+
/**
|
|
183
|
+
* The price for the custom sale item as currency string. Must be a valid positive amount. Use for non-catalog items and custom pricing.
|
|
184
|
+
*/
|
|
73
185
|
price?: number;
|
|
74
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Determines whether the custom sale item is taxable. Set to `true` to apply tax calculations, `false` to exempt from taxes.
|
|
188
|
+
*/
|
|
75
189
|
taxable: boolean;
|
|
76
|
-
/**
|
|
190
|
+
/**
|
|
191
|
+
* An array of tax lines applied to this component.
|
|
192
|
+
*/
|
|
77
193
|
taxLines: TaxLine[];
|
|
78
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* The unique numeric identifier for the product variant this component represents, if applicable.
|
|
196
|
+
*/
|
|
79
197
|
variantId?: number;
|
|
80
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* The unique numeric identifier for the product this component represents, if applicable.
|
|
200
|
+
*/
|
|
81
201
|
productId?: number;
|
|
82
202
|
}
|
|
83
203
|
/**
|
|
84
|
-
* Represents a selling plan associated with a line item.
|
|
204
|
+
* Represents a selling plan (subscription) associated with a line item, containing delivery schedule and plan identification details.
|
|
85
205
|
*/
|
|
86
206
|
export interface SellingPlan {
|
|
87
207
|
/**
|
|
@@ -89,12 +209,11 @@ export interface SellingPlan {
|
|
|
89
209
|
*/
|
|
90
210
|
id: number;
|
|
91
211
|
/**
|
|
92
|
-
* The name of the
|
|
212
|
+
* The name of the POS device.
|
|
93
213
|
*/
|
|
94
214
|
name: string;
|
|
95
215
|
/**
|
|
96
|
-
* The fingerprint of the applied selling plan within this cart session.
|
|
97
|
-
* Provided by POS. Not available during refund / exchanges.
|
|
216
|
+
* The fingerprint of the applied selling plan within this cart session. Provided by POS. Not available during refund / exchanges.
|
|
98
217
|
*/
|
|
99
218
|
digest?: string;
|
|
100
219
|
/**
|
|
@@ -106,41 +225,59 @@ export interface SellingPlan {
|
|
|
106
225
|
*/
|
|
107
226
|
deliveryIntervalCount?: number;
|
|
108
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Represents a discount applied to a cart or transaction, including amount and description.
|
|
230
|
+
*/
|
|
109
231
|
export interface Discount {
|
|
232
|
+
/**
|
|
233
|
+
* The discount value to apply. For `'Percentage'` type, this represents the percentage value (For example, "10" for 10% off). For `'FixedAmount'` type, this represents the fixed monetary amount to deduct from the line item price. Commonly used for discount calculations and displaying the discount value to merchants.
|
|
234
|
+
*/
|
|
110
235
|
amount: number;
|
|
236
|
+
/**
|
|
237
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code associated with the location currently active on POS.
|
|
238
|
+
*/
|
|
111
239
|
currency?: string;
|
|
240
|
+
/**
|
|
241
|
+
* A human-readable description of the discount shown to merchants and customers. This typically includes the discount name, promotion details, or discount code (for example, "SUMMER2024", "10% off entire order", "Buy 2 Get 1 Free"). Returns `undefined` when no description is provided.
|
|
242
|
+
*/
|
|
112
243
|
discountDescription?: string;
|
|
244
|
+
/**
|
|
245
|
+
* The [discount type](https://help.shopify.com/en/manual/discounts/discount-types) applied to this line item. Can be either `'Percentage'` for percentage-based discounts or `'FixedAmount'` for fixed monetary amount discounts. This determines how the discount amount is calculated and displayed.
|
|
246
|
+
*/
|
|
113
247
|
type?: string;
|
|
114
248
|
}
|
|
115
249
|
/**
|
|
116
|
-
*
|
|
250
|
+
* Specifies the parameters for adding custom properties to line items. Properties are key-value pairs used for storing metadata, tracking information, or integration data.
|
|
117
251
|
*/
|
|
118
252
|
export interface SetLineItemPropertiesInput {
|
|
119
253
|
/**
|
|
120
|
-
* The
|
|
254
|
+
* The target line item `UUID` for selling plan assignment. Must match an existing line item in the cart.
|
|
121
255
|
*/
|
|
122
256
|
lineItemUuid: string;
|
|
123
257
|
/**
|
|
124
|
-
* The custom properties to apply to the line item.
|
|
258
|
+
* The custom key-value properties to apply to the line item. Merged with existing properties—duplicate keys overwrite existing values.
|
|
125
259
|
*/
|
|
126
260
|
properties: Record<string, string>;
|
|
127
261
|
}
|
|
128
262
|
/**
|
|
129
|
-
*
|
|
263
|
+
* Specifies the parameters for applying discounts to individual line items. Includes the discount type, value, and reason for audit and reporting purposes.
|
|
130
264
|
*/
|
|
131
265
|
export interface SetLineItemDiscountInput {
|
|
132
266
|
/**
|
|
133
|
-
* The
|
|
267
|
+
* The target line item `UUID` for selling plan assignment. Must match an existing line item in the cart.
|
|
134
268
|
*/
|
|
135
269
|
lineItemUuid: string;
|
|
136
270
|
/**
|
|
137
|
-
* The discount to
|
|
271
|
+
* The discount details to apply to the line item. Contains title, type (`'Percentage'` or `'FixedAmount'`), and amount value.
|
|
138
272
|
*/
|
|
139
273
|
lineItemDiscount: LineItemDiscount;
|
|
140
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Represents a discount applied to an individual line item in the cart.
|
|
277
|
+
*/
|
|
141
278
|
export interface LineItemDiscount {
|
|
142
279
|
/**
|
|
143
|
-
* The
|
|
280
|
+
* The display name for the custom sale item. Appears on receipts and in cart displays. Should be descriptive and customer-friendly.
|
|
144
281
|
*/
|
|
145
282
|
title: string;
|
|
146
283
|
/**
|
|
@@ -152,39 +289,98 @@ export interface LineItemDiscount {
|
|
|
152
289
|
*/
|
|
153
290
|
amount: string;
|
|
154
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Represents a custom sale item that is not associated with a product in the catalog. Includes pricing, taxation, and descriptive information for manually created line items.
|
|
294
|
+
*/
|
|
155
295
|
export interface CustomSale {
|
|
296
|
+
/**
|
|
297
|
+
* The quantity of the custom sale item. Must be a positive integer. Use for quantity-based pricing and inventory management.
|
|
298
|
+
*/
|
|
156
299
|
quantity: number;
|
|
300
|
+
/**
|
|
301
|
+
* The display name for the custom sale item. Appears on receipts and in cart displays. Should be descriptive and customer-friendly.
|
|
302
|
+
*/
|
|
157
303
|
title: string;
|
|
304
|
+
/**
|
|
305
|
+
* The price for the custom sale item as currency string. Must be a valid positive amount. Use for non-catalog items and custom pricing.
|
|
306
|
+
*/
|
|
158
307
|
price: string;
|
|
308
|
+
/**
|
|
309
|
+
* Determines whether the custom sale item is taxable. Set to `true` to apply tax calculations, `false` to exempt from taxes.
|
|
310
|
+
*/
|
|
159
311
|
taxable: boolean;
|
|
160
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* Represents physical address information for customer shipping and billing. Contains standard address fields including street, city, region, postal code, and country data.
|
|
315
|
+
*/
|
|
161
316
|
export interface Address {
|
|
317
|
+
/**
|
|
318
|
+
* The primary street address line. Required for most shipping and billing operations. Should contain street number and name.
|
|
319
|
+
*/
|
|
162
320
|
address1?: string;
|
|
321
|
+
/**
|
|
322
|
+
* The secondary address line for apartment, suite, or unit information. Optional field for additional address details.
|
|
323
|
+
*/
|
|
163
324
|
address2?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The city name for the address. Required for shipping calculations and location-based services.
|
|
327
|
+
*/
|
|
164
328
|
city?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The company name associated with the address. Optional field for business customers and B2B transactions.
|
|
331
|
+
*/
|
|
165
332
|
company?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The first name for the address contact. Used for personalized shipping labels and customer communication.
|
|
335
|
+
*/
|
|
166
336
|
firstName?: string;
|
|
337
|
+
/**
|
|
338
|
+
* The last name for the address contact. Required for complete customer identification and shipping labels.
|
|
339
|
+
*/
|
|
167
340
|
lastName?: string;
|
|
341
|
+
/**
|
|
342
|
+
* The phone number for the address contact. Used for delivery notifications, shipping updates, and customer communication.
|
|
343
|
+
*/
|
|
168
344
|
phone?: string;
|
|
345
|
+
/**
|
|
346
|
+
* The province or state name for the address. Required for regional shipping rates and tax calculations.
|
|
347
|
+
*/
|
|
169
348
|
province?: string;
|
|
349
|
+
/**
|
|
350
|
+
* The country name for the address. Required for international shipping, tax calculations, and compliance.
|
|
351
|
+
*/
|
|
170
352
|
country?: string;
|
|
353
|
+
/**
|
|
354
|
+
* The postal or ZIP code for the address. Required for accurate shipping rates and location-based services.
|
|
355
|
+
*/
|
|
171
356
|
zip?: string;
|
|
357
|
+
/**
|
|
358
|
+
* The full name for the address contact. Use when first and last names are combined or unavailable as separate fields.
|
|
359
|
+
*/
|
|
172
360
|
name?: string;
|
|
361
|
+
/**
|
|
362
|
+
* The standardized province or state code. Use for precise regional identification and automated shipping calculations.
|
|
363
|
+
*/
|
|
173
364
|
provinceCode?: string;
|
|
365
|
+
/**
|
|
366
|
+
* The standardized country code (ISO format). Use for precise country identification and international shipping operations.
|
|
367
|
+
*/
|
|
174
368
|
countryCode?: CountryCode;
|
|
175
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Specifies the parameters for assigning selling plans to line items. Used to add subscription or purchase option configurations to products.
|
|
372
|
+
*/
|
|
176
373
|
export interface SetLineItemSellingPlanInput {
|
|
177
374
|
/**
|
|
178
|
-
* The
|
|
375
|
+
* The target line item `UUID` for selling plan assignment. Must match an existing line item in the cart.
|
|
179
376
|
*/
|
|
180
377
|
lineItemUuid: string;
|
|
181
378
|
/**
|
|
182
|
-
* The
|
|
379
|
+
* The selling plan `ID` to apply to the line item. Must be a valid selling plan available for the product.
|
|
183
380
|
*/
|
|
184
381
|
sellingPlanId: number;
|
|
185
382
|
/**
|
|
186
|
-
* The name
|
|
187
|
-
* If not provided, POS will try to fetch it from the server after syncing the cart.
|
|
383
|
+
* The selling plan name for display purposes. Required for proper selling plan display in the cart.
|
|
188
384
|
*/
|
|
189
385
|
sellingPlanName?: string;
|
|
190
386
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;A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,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes representing all countries and territories. These standard codes are used for addresses, shipping destinations, tax jurisdictions, and regional settings.
|
|
3
|
+
*/
|
|
1
4
|
export declare enum CountryCode {
|
|
2
5
|
AF = "AF",
|
|
3
6
|
AX = "AX",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-code.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/country-code.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW;IACrB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EA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AAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACV"}
|
|
1
|
+
{"version":3,"file":"country-code.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/country-code.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW;IACrB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,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
|
1
|
+
/**
|
|
2
|
+
* Defines information about the POS device where the extension is running.
|
|
3
|
+
*/
|
|
1
4
|
export interface Device {
|
|
2
5
|
/**
|
|
3
|
-
* The name of the device
|
|
6
|
+
* The name of the POS device.
|
|
4
7
|
*/
|
|
5
8
|
name: string;
|
|
6
9
|
/**
|
|
7
|
-
* The
|
|
10
|
+
* The unique identifier for the POS device.
|
|
8
11
|
*/
|
|
9
12
|
deviceId: number;
|
|
10
13
|
/**
|
|
11
|
-
* Whether the device is a tablet
|
|
14
|
+
* Whether the device is a tablet form factor.
|
|
12
15
|
*/
|
|
13
16
|
isTablet: boolean;
|
|
14
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/device.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/device.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Represents the structure of a direct API request body for [GraphQL](https://graphql.org/) operations. Contains the query/mutation string and optional variables for parameterized queries.
|
|
3
3
|
*/
|
|
4
4
|
export interface DirectApiRequestBody {
|
|
5
5
|
/**
|
|
6
|
-
* The GraphQL query or mutation string to be executed.
|
|
6
|
+
* The GraphQL query or mutation string to be executed against the Shopify API. This is the complete GraphQL operation definition including operation type (query/mutation), field selections, and any embedded arguments. For example, a query string might be `"query { product(id: 123) { title price } }"` or a mutation like `"mutation UpdateProduct($id: ID!, $title: String!) { productUpdate(id: $id, title: $title) { product { title } } }"`. Variables should be extracted into the `variables` field rather than embedded directly in the query string for security and reusability.
|
|
7
7
|
*/
|
|
8
8
|
query: string;
|
|
9
9
|
/**
|
|
10
|
-
* Optional variables to be passed along with the GraphQL query.
|
|
10
|
+
* Optional variables to be passed along with the GraphQL query, used for parameterized queries and mutations. This is a key-value object where keys match the variable names declared in the `query` string (prefixed with `$`) and values are the actual data to substitute. For example, if the query declares `$id: ID!`, the variables object would include `{id: "123"}`. Variables provide security by preventing injection attacks, enable query reuse with different parameters, and improve GraphQL caching. Returns `undefined` when the query has no variables or uses inline arguments instead.
|
|
11
11
|
*/
|
|
12
12
|
variables?: Record<string, any>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { MoneyV2 } from './money';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the allocation of a discount to a specific line item.
|
|
4
|
+
*/
|
|
2
5
|
export interface DiscountAllocation {
|
|
6
|
+
/**
|
|
7
|
+
* The amount of discount allocated.
|
|
8
|
+
*/
|
|
3
9
|
allocatedAmount: MoneyV2;
|
|
4
10
|
}
|
|
5
11
|
//# sourceMappingURL=discount-allocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount-allocation.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/discount-allocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAErC,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
1
|
+
{"version":3,"file":"discount-allocation.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/discount-allocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a monetary amount with currency information.
|
|
3
|
+
*/
|
|
1
4
|
export interface Money {
|
|
5
|
+
/**
|
|
6
|
+
* The monetary amount as a number.
|
|
7
|
+
*/
|
|
2
8
|
amount: number;
|
|
9
|
+
/**
|
|
10
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code associated with the location currently active on POS.
|
|
11
|
+
*/
|
|
3
12
|
currency: string;
|
|
4
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents a monetary amount as a string with explicit currency code.
|
|
16
|
+
*/
|
|
5
17
|
export interface MoneyV2 {
|
|
18
|
+
/**
|
|
19
|
+
* The monetary amount as a string.
|
|
20
|
+
*/
|
|
6
21
|
amount: string;
|
|
22
|
+
/**
|
|
23
|
+
* The ISO currency code (for example, USD, CAD).
|
|
24
|
+
*/
|
|
7
25
|
currencyCode: string;
|
|
8
26
|
}
|
|
9
27
|
//# sourceMappingURL=money.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/money.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
1
|
+
{"version":3,"file":"money.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/money.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* This object contains the resources that were found, as well as an array of IDs specifying which IDs, if any, did not correspond to a resource.
|
|
2
|
+
* Represents the result of a bulk resource lookup operation. Contains successfully found resources and identifiers for resources that were not found.
|
|
4
3
|
*/
|
|
5
4
|
export interface MultipleResourceResult<T> {
|
|
6
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiple-resource-result.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/multiple-resource-result.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"multiple-resource-result.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/multiple-resource-result.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC;;OAEG;IACH,gBAAgB,EAAE,CAAC,EAAE,CAAC;IACtB;;OAEG;IACH,uBAAuB,EAAE,MAAM,EAAE,CAAC;CACnC"}
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { LineItem } from './cart';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a refund applied to a line item, including when it was created and the quantity refunded.
|
|
4
|
+
*/
|
|
2
5
|
export interface LineItemRefund {
|
|
6
|
+
/**
|
|
7
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the refund was created and processed (for example, `"2024-05-15T14:30:00Z"`). This indicates when the refund was initiated and can be used for chronological sorting, refund history displays, or audit trails.
|
|
8
|
+
*/
|
|
3
9
|
createdAt: string;
|
|
10
|
+
/**
|
|
11
|
+
* The number of units refunded in this refund transaction. This must be a positive integer representing how many items were returned to inventory or credited back to the customer. Multiple refunds can exist for the same line item if partial refunds were processed over time.
|
|
12
|
+
*/
|
|
4
13
|
quantity: number;
|
|
5
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents a line item from an order, extending the base line item with current quantity and refund information.
|
|
17
|
+
*/
|
|
6
18
|
export interface OrderLineItem extends LineItem {
|
|
19
|
+
/**
|
|
20
|
+
* The current quantity of items that remain with the customer after accounting for refunds. This is calculated as the original `quantity` minus any refunded quantities. For example, if 5 items were ordered and 2 were refunded, `currentQuantity` would be `3`. This value reflects the net quantity the customer kept from this line item.
|
|
21
|
+
*/
|
|
7
22
|
currentQuantity: number;
|
|
23
|
+
/**
|
|
24
|
+
* An array of all refund transactions applied to this line item, ordered chronologically. Each refund entry tracks when the refund occurred and how many units were refunded. Multiple entries indicate partial refunds processed over time. Returns `undefined` or empty array when no refunds have been applied to this line item.
|
|
25
|
+
*/
|
|
8
26
|
refunds?: LineItemRefund[];
|
|
9
27
|
}
|
|
10
28
|
//# sourceMappingURL=order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAc,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"order.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC7C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Represents the result of a paginated query. Contains the data items, pagination cursors for navigating pages, and information about whether more results exist.
|
|
3
3
|
*/
|
|
4
4
|
export interface PaginatedResult<T> {
|
|
5
5
|
/**
|
|
@@ -7,8 +7,7 @@ export interface PaginatedResult<T> {
|
|
|
7
7
|
*/
|
|
8
8
|
items: T[];
|
|
9
9
|
/**
|
|
10
|
-
* The cursor of the last item. This can be used to fetch more results.
|
|
11
|
-
* The format of this cursor may look different depending on if POS is fetching results from the remote API, or its local database. However, that should not affect its usage with the search functions.
|
|
10
|
+
* The cursor of the last item. This can be used to fetch more results. The format of this cursor may look different depending on if POS is fetching results from the remote API, or its local database. However, that should not affect its usage with the search functions.
|
|
12
11
|
*/
|
|
13
12
|
lastCursor?: string;
|
|
14
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginated-result.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/paginated-result.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,CAAC,EAAE,CAAC;IAEX
|
|
1
|
+
{"version":3,"file":"paginated-result.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/paginated-result.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,CAAC,EAAE,CAAC;IAEX;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB"}
|