@shopify/ui-extensions 2025.10.8 → 2025.10.9

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.
Files changed (277) hide show
  1. package/build/cjs/surfaces/point-of-sale/types/storage.js +3 -0
  2. package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
  3. package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
  4. package/build/ts/shared.d.ts +7 -7
  5. package/build/ts/shared.d.ts.map +1 -1
  6. package/build/ts/surfaces/admin/components/Avatar/Avatar.doc.d.ts.map +1 -1
  7. package/build/ts/surfaces/admin/components/Badge/Badge.doc.d.ts.map +1 -1
  8. package/build/ts/surfaces/admin/components/Banner/Banner.doc.d.ts.map +1 -1
  9. package/build/ts/surfaces/admin/components/Box/Box.doc.d.ts.map +1 -1
  10. package/build/ts/surfaces/admin/components/Button/Button.doc.d.ts.map +1 -1
  11. package/build/ts/surfaces/admin/components/ButtonGroup/ButtonGroup.doc.d.ts.map +1 -1
  12. package/build/ts/surfaces/admin/components/Checkbox/Checkbox.doc.d.ts.map +1 -1
  13. package/build/ts/surfaces/admin/components/Chip/Chip.doc.d.ts.map +1 -1
  14. package/build/ts/surfaces/admin/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
  15. package/build/ts/surfaces/admin/components/ClickableChip/ClickableChip.doc.d.ts.map +1 -1
  16. package/build/ts/surfaces/admin/components/ColorField/ColorField.doc.d.ts.map +1 -1
  17. package/build/ts/surfaces/admin/components/ColorPicker/ColorPicker.doc.d.ts.map +1 -1
  18. package/build/ts/surfaces/admin/components/DateField/DateField.doc.d.ts.map +1 -1
  19. package/build/ts/surfaces/admin/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
  20. package/build/ts/surfaces/admin/components/DropZone/{DropZone.ab.doc.d.ts → DropZone.doc.d.ts} +1 -1
  21. package/build/ts/surfaces/admin/components/DropZone/DropZone.doc.d.ts.map +1 -0
  22. package/build/ts/surfaces/admin/components/Grid/Grid.doc.d.ts.map +1 -1
  23. package/build/ts/surfaces/admin/components/Icon/Icon.doc.d.ts.map +1 -1
  24. package/build/ts/surfaces/admin/components/Image/Image.doc.d.ts.map +1 -1
  25. package/build/ts/surfaces/admin/components/Link/Link.doc.d.ts.map +1 -1
  26. package/build/ts/surfaces/admin/components/Menu/Menu.doc.d.ts.map +1 -1
  27. package/build/ts/surfaces/admin/components/Modal/Modal.ab.doc.d.ts.map +1 -1
  28. package/build/ts/surfaces/admin/components/OrderedList/OrderedList.doc.d.ts.map +1 -1
  29. package/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts.map +1 -1
  30. package/build/ts/surfaces/admin/components/Popover/Popover.ab.doc.d.ts.map +1 -1
  31. package/build/ts/surfaces/admin/components/SearchField/SearchField.doc.d.ts.map +1 -1
  32. package/build/ts/surfaces/admin/components/Spinner/Spinner.doc.d.ts.map +1 -1
  33. package/build/ts/surfaces/admin/components/Stack/Stack.doc.d.ts.map +1 -1
  34. package/build/ts/surfaces/admin/components/Table/Table.doc.d.ts.map +1 -1
  35. package/build/ts/surfaces/admin/components/Text/Text.doc.d.ts.map +1 -1
  36. package/build/ts/surfaces/admin/components/Thumbnail/Thumbnail.doc.d.ts.map +1 -1
  37. package/build/ts/surfaces/admin/components/Tooltip/Tooltip.doc.d.ts.map +1 -1
  38. package/build/ts/surfaces/admin/components/UnorderedList/UnorderedList.doc.d.ts.map +1 -1
  39. package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +3 -5
  40. package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
  41. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +38 -33
  42. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
  43. package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  44. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +6 -4
  45. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  46. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +4 -1
  47. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
  48. package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -4
  49. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +6 -3
  50. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  51. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +2 -3
  52. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
  53. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +17 -9
  54. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  55. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +5 -5
  56. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +6 -10
  57. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
  58. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +10 -11
  59. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
  60. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +5 -2
  61. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
  62. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +24 -10
  63. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
  64. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +26 -8
  65. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
  66. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +3 -6
  67. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
  68. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +3 -0
  69. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
  70. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +11 -1
  71. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
  72. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
  73. package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +23 -4
  74. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
  75. package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +24 -6
  76. package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +1 -1
  77. package/build/ts/surfaces/point-of-sale/components/Box.d.ts +34 -37
  78. package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +1 -1
  79. package/build/ts/surfaces/point-of-sale/components/Button.d.ts +56 -16
  80. package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +14 -2
  81. package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
  82. package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
  83. package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +1 -1
  84. package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
  85. package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +1 -1
  86. package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +42 -6
  87. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
  88. package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
  89. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
  90. package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
  91. package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts.map +1 -1
  92. package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +14 -2
  93. package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +1 -1
  94. package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
  95. package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +1 -1
  96. package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +15 -3
  97. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
  98. package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +17 -2
  99. package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
  100. package/build/ts/surfaces/point-of-sale/components/Image.d.ts +6 -3
  101. package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
  102. package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +43 -11
  103. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +1 -1
  104. package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
  105. package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
  106. package/build/ts/surfaces/point-of-sale/components/Page.d.ts +19 -7
  107. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
  108. package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
  109. package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
  110. package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -1
  111. package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
  112. package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +1 -1
  113. package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
  114. package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +1 -1
  115. package/build/ts/surfaces/point-of-sale/components/Section.d.ts +17 -7
  116. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -1
  117. package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +47 -61
  118. package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -1
  119. package/build/ts/surfaces/point-of-sale/components/Text.d.ts +28 -6
  120. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +1 -1
  121. package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
  122. package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +1 -1
  123. package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +43 -7
  124. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
  125. package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +40 -4
  126. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -1
  127. package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
  128. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +1 -1
  129. package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
  130. package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
  131. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
  132. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
  133. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  134. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  135. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  136. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  137. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  138. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  139. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  140. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  141. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
  142. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  143. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  144. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  145. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
  146. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  147. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  148. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  149. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  150. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  151. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +17 -0
  152. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  153. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +135 -0
  154. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  155. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +43 -0
  156. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  157. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +227 -31
  158. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  159. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  160. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  161. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  162. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  163. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  164. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
  165. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
  166. package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
  167. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  168. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  169. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  170. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  171. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  172. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  173. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  174. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  175. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  176. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +36 -16
  177. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
  178. package/build/ts/surfaces/point-of-sale/types/product.d.ts +170 -0
  179. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  180. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  181. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  182. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  183. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  184. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  185. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  186. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  187. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  188. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  189. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  190. package/build/tsconfig.tsbuildinfo +1 -1
  191. package/package.json +6 -1
  192. package/src/shared.ts +7 -7
  193. package/src/surfaces/admin/api/intents/examples/edit-metafield-definition.js +1 -0
  194. package/src/surfaces/admin/api/intents/examples/edit-metaobject-definition.js +1 -1
  195. package/src/surfaces/admin/components/Icon/icon-data.json +9 -0
  196. package/src/surfaces/point-of-sale/api/action-api/action-api.ts +3 -5
  197. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +38 -33
  198. package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  199. package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +6 -4
  200. package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +4 -1
  201. package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -4
  202. package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -3
  203. package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +2 -3
  204. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +17 -9
  205. package/src/surfaces/point-of-sale/api/order-api/order-api.ts +5 -5
  206. package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -10
  207. package/src/surfaces/point-of-sale/api/print-api/print-api.ts +10 -11
  208. package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -2
  209. package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +24 -10
  210. package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +26 -8
  211. package/src/surfaces/point-of-sale/api/session-api/session-api.ts +3 -6
  212. package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +3 -0
  213. package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +11 -1
  214. package/src/surfaces/point-of-sale/components/Badge.d.ts +23 -4
  215. package/src/surfaces/point-of-sale/components/Banner.d.ts +24 -6
  216. package/src/surfaces/point-of-sale/components/Box.d.ts +34 -37
  217. package/src/surfaces/point-of-sale/components/Button.d.ts +56 -16
  218. package/src/surfaces/point-of-sale/components/Choice.d.ts +14 -2
  219. package/src/surfaces/point-of-sale/components/ChoiceList/examples/composed-choices.jsx +35 -0
  220. package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
  221. package/src/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
  222. package/src/surfaces/point-of-sale/components/DateField.d.ts +42 -6
  223. package/src/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
  224. package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
  225. package/src/surfaces/point-of-sale/components/Divider.d.ts +14 -2
  226. package/src/surfaces/point-of-sale/components/EmailField.d.ts +43 -7
  227. package/src/surfaces/point-of-sale/components/Heading.d.ts +15 -3
  228. package/src/surfaces/point-of-sale/components/Icon.d.ts +17 -2
  229. package/src/surfaces/point-of-sale/components/Image.d.ts +6 -3
  230. package/src/surfaces/point-of-sale/components/Modal.d.ts +43 -11
  231. package/src/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
  232. package/src/surfaces/point-of-sale/components/Page.d.ts +19 -7
  233. package/src/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
  234. package/src/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
  235. package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
  236. package/src/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
  237. package/src/surfaces/point-of-sale/components/Section.d.ts +17 -7
  238. package/src/surfaces/point-of-sale/components/Stack.d.ts +47 -61
  239. package/src/surfaces/point-of-sale/components/Text.d.ts +28 -6
  240. package/src/surfaces/point-of-sale/components/TextArea.d.ts +43 -7
  241. package/src/surfaces/point-of-sale/components/TextField.d.ts +43 -7
  242. package/src/surfaces/point-of-sale/components/Tile.d.ts +40 -4
  243. package/src/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
  244. package/src/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
  245. package/src/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
  246. package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -1
  247. package/src/surfaces/point-of-sale/components.d.ts +1506 -1537
  248. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  249. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  250. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  251. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  252. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
  253. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  254. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
  255. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  256. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  257. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +17 -0
  258. package/src/surfaces/point-of-sale/extension-targets.ts +135 -0
  259. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +43 -0
  260. package/src/surfaces/point-of-sale/types/cart.ts +227 -31
  261. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  262. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  263. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  264. package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
  265. package/src/surfaces/point-of-sale/types/money.ts +18 -0
  266. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  267. package/src/surfaces/point-of-sale/types/order.ts +18 -1
  268. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  269. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  270. package/src/surfaces/point-of-sale/types/pin-pad.ts +32 -14
  271. package/src/surfaces/point-of-sale/types/product.ts +170 -0
  272. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  273. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  274. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  275. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  276. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
  277. package/build/ts/surfaces/admin/components/DropZone/DropZone.ab.doc.d.ts.map +0 -1
@@ -1,20 +1,22 @@
1
1
  import type { ReadonlySignalLike } from '../../../../shared';
2
2
  export type ConnectivityStateSeverity = 'Connected' | 'Disconnected';
3
+ /**
4
+ * Represents the current Internet connectivity status of the device. Indicates whether the device is connected or disconnected from the Internet.
5
+ */
3
6
  export interface ConnectivityState {
4
7
  /**
5
- * Whether the device is connected to the internet
8
+ * The Internet connection status of the POS device.
6
9
  */
7
10
  internetConnected: ConnectivityStateSeverity;
8
11
  }
9
12
  export interface ConnectivityApiContent {
10
13
  /**
11
- * Provides read-only access to the current connectivity state and allows subscribing to connectivity changes.
12
- * The `value` property provides the current connectivity state, and `subscribe` allows listening to changes.
14
+ * Provides read-only access to the current connectivity state and allows subscribing to connectivity changes. Use for implementing connectivity-aware functionality and reactive connectivity handling.
13
15
  */
14
16
  current: ReadonlySignalLike<ConnectivityState>;
15
17
  }
16
18
  /**
17
- * Access information about the device connectivity
19
+ * The `ConnectivityApi` object provides access to current connectivity information and change notifications. Access these properties through `shopify.connectivity` to monitor network status.
18
20
  */
19
21
  export interface ConnectivityApi {
20
22
  connectivity: ConnectivityApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"connectivity-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG,cAAc,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,iBAAiB,EAAE,yBAAyB,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,sBAAsB,CAAC;CACtC"}
1
+ {"version":3,"file":"connectivity-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,yBAAyB,GAAG,WAAW,GAAG,cAAc,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,iBAAiB,EAAE,yBAAyB,CAAC;CAC9C;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,sBAAsB,CAAC;CACtC"}
@@ -1,9 +1,12 @@
1
+ /**
2
+ * The `CustomerApi` object provides access to customer data in customer-specific extension contexts. Access this property through `shopify.customer` to retrieve information about the customer currently being viewed or interacted with in the POS interface.
3
+ */
1
4
  export interface CustomerApi {
2
5
  customer: CustomerApiContent;
3
6
  }
4
7
  export interface CustomerApiContent {
5
8
  /**
6
- * The unique identifier for the customer
9
+ * The unique identifier for the customer. Use for customer lookups, applying customer-specific pricing, enabling personalized features, and integrating with external systems.
7
10
  */
8
11
  id: number;
9
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"customer-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/customer-api/customer-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ"}
1
+ {"version":3,"file":"customer-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/customer-api/customer-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -1,19 +1,19 @@
1
1
  export interface DeviceApiContent {
2
2
  /**
3
- * The name of the device
3
+ * The name of the device as configured by the merchant or system. Use for displaying device information in interfaces, logging, or support contexts where device identification is helpful.
4
4
  */
5
5
  name: string;
6
6
  /**
7
- * The string ID of the device
7
+ * 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.
8
8
  */
9
9
  getDeviceId(): Promise<string>;
10
10
  /**
11
- * Whether the device is a tablet
11
+ * Determines whether the device is a tablet form factor. Returns a promise that resolves to `true` for tablets, `false` for other device types. Use for implementing responsive design, optimizing touch targets, or providing device-appropriate user experiences.
12
12
  */
13
13
  isTablet(): Promise<boolean>;
14
14
  }
15
15
  /**
16
- * Access information about the device, like name and ID
16
+ * The `DeviceApi` object provides access to device information and capabilities. Access these properties and methods through `shopify.device` to retrieve device details and check device characteristics.
17
17
  */
18
18
  export interface DeviceApi {
19
19
  device: DeviceApiContent;
@@ -1,17 +1,20 @@
1
+ /**
2
+ * The `DraftOrderApi` object provides access to draft order data in draft order-specific extension contexts. Access this property through `shopify.draftOrder` to retrieve information about the draft order currently being viewed or interacted with in the POS interface.
3
+ */
1
4
  export interface DraftOrderApi {
2
5
  draftOrder: DraftOrderApiContent;
3
6
  }
4
7
  export interface DraftOrderApiContent {
5
8
  /**
6
- * The unique identifier for the draft order
9
+ * The unique identifier for the draft order. Use for draft order lookups, implementing order-specific functionality, and integrating with external systems.
7
10
  */
8
11
  id: number;
9
12
  /**
10
- * The name of the draft order
13
+ * The name of the draft order as configured by the merchant. Use for draft order identification, displays, and customer-facing interfaces.
11
14
  */
12
15
  name: string;
13
16
  /**
14
- * The unique identifier of the customer associated with the draft order
17
+ * The unique identifier of the customer associated with the draft order. Returns `undefined` if no customer is associated. Use for customer-specific functionality and personalized experiences.
15
18
  */
16
19
  customerId?: number;
17
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"draft-order-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"draft-order-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,oBAAoB,CAAC;CAClC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -1,13 +1,12 @@
1
1
  import type { ReadonlySignalLike } from '../../../../shared';
2
2
  export interface LocaleApiContent {
3
3
  /**
4
- * Provides read-only access to the current IETF-formatted locale and allows subscribing to locale changes.
5
- * The `value` property provides the current locale, and `subscribe` allows listening to changes.
4
+ * Provides read-only access to the current IETF-formatted locale and allows subscribing to locale changes. The `value` property provides the current locale, and `subscribe` allows listening to changes. Use for internationalization, locale-specific formatting, and reactive updates when merchants change language settings.
6
5
  */
7
6
  current: ReadonlySignalLike<string>;
8
7
  }
9
8
  /**
10
- * Access the merchant’s current locale (in [IETF format](https://en.wikipedia.org/wiki/IETF_language_tag)) to internationalize your extension content.
9
+ * The `LocaleApi` object provides access to current locale information and change notifications. Access these properties through `shopify.locale` to retrieve and monitor locale data.
11
10
  */
12
11
  export interface LocaleApi {
13
12
  locale: LocaleApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"locale-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/locale-api/locale-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
1
+ {"version":3,"file":"locale-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/locale-api/locale-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -1,41 +1,49 @@
1
+ /**
2
+ * Specifies configuration options for navigation operations. Allows passing state data that persists across navigation transitions.
3
+ */
1
4
  export interface NavigationNavigateOptions {
2
5
  /**
3
- * Developer-defined information to be stored in the associated NavigationHistoryEntry once the navigation is complete, retrievable via getState().
6
+ * Developer-defined information to be stored in the associated `NavigationHistoryEntry` once the navigation is complete, retrievable using `getState()`. Use to pass data between navigation states or implement stateful navigation workflows.
4
7
  */
5
8
  state?: unknown;
6
9
  }
7
10
  /**
8
- * The NavigationHistoryEntry interface of the Navigation API represents a single navigation history entry.
11
+ * Represents a single entry in the navigation history stack. Contains the URL and unique identifier for tracking navigation state and implementing history-based navigation.
9
12
  */
10
13
  export interface NavigationHistoryEntry {
11
- /** Returns the key of the history entry. This is a unique, UA-generated value that represents the history entry's slot in the entries list rather than the entry itself. */
14
+ /**
15
+ * A unique, UA-generated value that represents the history entry's slot in the entries list rather than the entry itself. Use for tracking navigation history or implementing navigation-based logic.
16
+ */
12
17
  key: string;
13
18
  /**
14
- * Returns the URL of this history entry.
19
+ * The URL of this history entry. Returns `null` if no URL is associated with the entry. Use for URL-based navigation logic, deep-linking, or displaying current location information.
15
20
  */
16
21
  url: string | null;
17
22
  /**
18
- * Returns a clone of the available state associated with this history entry.
23
+ * Returns a clone of the available state associated with this history entry. Use to retrieve navigation state data that was passed during navigation or to implement state-based navigation logic.
19
24
  */
20
25
  getState(): unknown;
21
26
  }
22
27
  export interface Navigation {
23
28
  /**
24
- * The navigate() method navigates to a specific URL, updating any provided state in the history entries list.
29
+ * Navigates to a specific URL, updating any provided state in the history entries list. Returns a promise that resolves when navigation is complete. Use for programmatic navigation between screens, implementing custom navigation controls, or deep-linking to specific modal states.
25
30
  */
26
31
  navigate: (url: string, options?: NavigationNavigateOptions) => Promise<void>;
27
32
  /**
28
- * The currentEntry read-only property of the Navigation interface returns a NavigationHistoryEntry object representing the location the user is currently navigated to right now.
33
+ * Returns a `NavigationHistoryEntry` object representing the location the user is currently navigated to. Use to access current URL, navigation state, or implement navigation-aware functionality based on the current location.
29
34
  */
30
35
  currentEntry: NavigationHistoryEntry;
31
36
  /**
32
- * The back() method of the Navigation interface navigates to the previous entry in the history list.
37
+ * Navigates to the previous entry in the history list. Use for implementing back buttons, breadcrumb navigation, or allowing users to return to previous screens in multi-step workflows.
33
38
  */
34
39
  back(): void;
35
40
  }
41
+ /**
42
+ * 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.
43
+ */
36
44
  export interface Window {
37
45
  /**
38
- * The close() method of the window interface closes the extension screen.
46
+ * Closes the extension screen and dismisses the modal interface. Use to programmatically close the modal after completing a workflow, canceling an operation, or when user action is no longer required. This provides the same behavior as the user dismissing the modal through the UI.
39
47
  */
40
48
  close(): void;
41
49
  }
@@ -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,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,4KAA4K;IAC5K,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED,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;CACd;AAED,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;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;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,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;CACd;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;CACf"}
@@ -1,23 +1,23 @@
1
1
  /**
2
- * Interface to access the order
2
+ * The `OrderApi` object provides access to order data in order-specific extension contexts. Access this property through `shopify.order` to retrieve information about the order currently being viewed or interacted with in the POS interface.
3
3
  */
4
4
  export interface OrderApi {
5
5
  order: OrderApiContent;
6
6
  }
7
7
  /**
8
- * Interface for Order details
8
+ * The `OrderApi` object provides access to order data. Access this property through `shopify.order` to interact with the current order context.
9
9
  */
10
10
  export interface OrderApiContent {
11
11
  /**
12
- * The unique identifier for the order
12
+ * The unique identifier for the order. Use for order lookups, implementing order-specific functionality, and integrating with external systems.
13
13
  */
14
14
  id: number;
15
15
  /**
16
- * The name of the order
16
+ * The name of the order as configured by the merchant. Use for order identification, displays, and customer-facing interfaces.
17
17
  */
18
18
  name: string;
19
19
  /**
20
- * The unique identifier of the customer associated with the order
20
+ * The unique identifier of the customer associated with the order. Returns `undefined` if no customer is associated. Use for customer-specific functionality and personalized experiences.
21
21
  */
22
22
  customerId?: number;
23
23
  }
@@ -1,22 +1,18 @@
1
1
  import { PinPadOptions, PinValidationResult } from '../types/pin-pad';
2
2
  export interface PinPadApiContent {
3
- /** Shows a PIN pad to the user in a modal dialog.
3
+ /**
4
+ * Shows a PIN pad to the user in a modal dialog. The `onSubmit` function is called when the PIN is submitted and should validate the PIN, returning `'accept'` or `'reject'`.
4
5
  *
5
- * `onSubmit` is called when the PIN is submitted for validation by the user. The callback
6
- * should validate the PIN and accept or reject it.
6
+ * **When accepted**: Modal dismisses and triggers the `onDismissed` callback—perform any post-validation navigation in this callback rather than in `onSubmit`.
7
7
  *
8
- * If the PIN is accepted, the modal will be dismissed and the `onDismissed` callback
9
- * (provided via `options`) will be called. It is recommended that any post-validation
10
- * navigation is performed in this callback rather than in `onSubmit`.
11
- *
12
- * If the PIN is rejected, the optional `errorMessage` will be displayed to the user and the modal
13
- * will not be dismissed.
8
+ * **When rejected**: Displays the optional `errorMessage` and keeps the modal open.
14
9
  *
10
+ * Use for implementing secure authentication workflows, access control, or PIN-based verification systems.
15
11
  */
16
12
  showPinPad(onSubmit: (pin: number[]) => Promise<PinValidationResult> | PinValidationResult, options?: PinPadOptions): void;
17
13
  }
18
14
  /**
19
- * Access the PIN Pad API for PIN pad functionality in a modal.
15
+ * The `PinPadApi` object provides methods for displaying secure PIN entry interfaces. Access these methods through `shopify.pinPad` to show PIN pad modals and handle PIN validation.
20
16
  */
21
17
  export interface PinPadApi {
22
18
  pinPad: PinPadApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"pin-pad-api.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/api/pin-pad-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;OAYG;IACH,UAAU,CACR,QAAQ,EAAE,CACR,GAAG,EAAE,MAAM,EAAE,KACV,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,EACvD,OAAO,CAAC,EAAE,aAAa,GACtB,IAAI,CAAC;CACT;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
1
+ {"version":3,"file":"pin-pad-api.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/api/pin-pad-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAEpE,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;OAQG;IACH,UAAU,CACR,QAAQ,EAAE,CACR,GAAG,EAAE,MAAM,EAAE,KACV,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,EACvD,OAAO,CAAC,EAAE,aAAa,GACtB,IAAI,CAAC;CACT;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -1,19 +1,15 @@
1
1
  /**
2
- * Access the print API for printing functionality
2
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `shopify.print` to initiate print operations with various document types.
3
3
  */
4
4
  export interface PrintApiContent {
5
5
  /**
6
- * Trigger a print dialog.
6
+ * Triggers a print dialog for the specified document source. The `print()` method accepts either:
7
7
  *
8
- * The src must be either:
9
- * - A relative path that will be appended to your app's [application_url](/docs/apps/build/cli-for-apps/app-configuration#application_url)
10
- * - A full URL to your app's backend that will be used to return the document to print
8
+ * A relative path that will be appended to your app's [`application_url`](/docs/apps/build/cli-for-apps/app-configuration)
11
9
  *
12
- * Supported document types:
13
- * - HTML documents (recommended for best printing experience)
14
- * - Text files
15
- * - Image files (PNG, JPEG, etc.)
16
- * - PDF files (Note: On Android devices, PDFs will be downloaded and must be printed using an external application)
10
+ * A full URL to your app's backend that will be used to return the document to print
11
+ *
12
+ * Returns a promise that resolves when content is ready and the native print dialog appears. Use for printing custom documents, receipts, labels, or reports.
17
13
  *
18
14
  * @param src the source URL of the content to print.
19
15
  * @returns Promise<void> that resolves when content is ready and native print dialog appears.
@@ -21,9 +17,12 @@ export interface PrintApiContent {
21
17
  print(src: string): Promise<void>;
22
18
  }
23
19
  /**
24
- * Interface for printing
20
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `shopify.print` to initiate print operations with various document types.
25
21
  */
26
22
  export interface PrintApi {
23
+ /**
24
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `shopify.print` to initiate print operations with various document types.
25
+ */
27
26
  print: PrintApiContent;
28
27
  }
29
28
  //# sourceMappingURL=print-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/print-api/print-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,eAAe,CAAC;CACxB"}
1
+ {"version":3,"file":"print-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/print-api/print-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;CACxB"}
@@ -1,13 +1,16 @@
1
+ /**
2
+ * The `ProductApi` object provides access to product and variant data in product-specific extension contexts. Access this property through `shopify.product` to retrieve information about the product or variant currently being viewed or interacted with in the POS interface.
3
+ */
1
4
  export interface ProductApi {
2
5
  product: ProductApiContent;
3
6
  }
4
7
  export interface ProductApiContent {
5
8
  /**
6
- * The unique identifier for the product.
9
+ * The unique identifier for the product. Use for product lookups, implementing product-specific functionality, and integrating with external systems.
7
10
  */
8
11
  id: number;
9
12
  /**
10
- * The unique identifier for the product variant.
13
+ * The unique identifier for the product variant. Use for variant-specific operations, cart additions, and inventory management.
11
14
  */
12
15
  variantId: number;
13
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/product-api/product-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"product-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/product-api/product-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -3,7 +3,7 @@ import type { PaginatedResult } from '../../types/paginated-result';
3
3
  import type { Product, ProductVariant } from '../../types/product';
4
4
  export type ProductSortType = 'RECENTLY_ADDED' | 'RECENTLY_ADDED_ASCENDING' | 'ALPHABETICAL_A_TO_Z' | 'ALPHABETICAL_Z_TO_A';
5
5
  /**
6
- * Base interface for pagination.
6
+ * Specifies parameters for cursor-based pagination. Includes the cursor position and the number of results to retrieve per page.
7
7
  */
8
8
  export interface PaginationParams {
9
9
  /**
@@ -16,7 +16,7 @@ export interface PaginationParams {
16
16
  afterCursor?: string;
17
17
  }
18
18
  /**
19
- * Interface for product search
19
+ * Specifies the parameters for searching products. Includes query text, pagination options, and sorting preferences for product search operations.
20
20
  */
21
21
  export interface ProductSearchParams extends PaginationParams {
22
22
  /**
@@ -29,37 +29,51 @@ export interface ProductSearchParams extends PaginationParams {
29
29
  sortType?: ProductSortType;
30
30
  }
31
31
  export interface ProductSearchApiContent {
32
- /** Search for products on the POS device.
32
+ /**
33
+ * Searches for products on the POS device using text queries and sorting options. Returns paginated results with up to 50 products per page. When a query string is provided, results are sorted by relevance. Use for implementing custom search interfaces, product discovery features, or filtered product listings.
34
+ *
33
35
  * @param searchParams The parameters for the product search.
34
36
  */
35
37
  searchProducts(searchParams: ProductSearchParams): Promise<PaginatedResult<Product>>;
36
- /** Fetches a single product's details.
38
+ /**
39
+ * Retrieves detailed information for a single product by its ID. Returns `undefined` if the product doesn't exist or isn't available on the POS device. Use for displaying product details, validating product availability, or building product-specific workflows.
40
+ *
37
41
  * @param productId The ID of the product to lookup.
38
42
  */
39
43
  fetchProductWithId(productId: number): Promise<Product | undefined>;
40
- /** Fetches multiple products' details.
44
+ /**
45
+ * Retrieves detailed information for multiple products by their IDs. Limited to 50 products maximum—additional IDs are automatically removed. Returns results with both found and not found products clearly identified. Use for bulk product lookups, building product collections, or validating product lists.
46
+ *
41
47
  * @param productIds Specifies the array of product IDs to lookup. This is limited to 50 products. All excess requested IDs will be removed from the array.
42
48
  */
43
49
  fetchProductsWithIds(productIds: number[]): Promise<MultipleResourceResult<Product>>;
44
- /** Fetches a single product variant's details.
50
+ /**
51
+ * Retrieves detailed information for a single product variant by its ID. Returns `undefined` if the variant doesn't exist or isn't available. Use for displaying variant-specific details like pricing, inventory, or options when working with specific product configurations.
52
+ *
45
53
  * @param productVariantId The ID of the product variant to lookup.
46
54
  */
47
55
  fetchProductVariantWithId(productVariantId: number): Promise<ProductVariant | undefined>;
48
- /** Fetches multiple product variants' details.
56
+ /**
57
+ * Retrieves detailed information for multiple product variants by their IDs. Limited to 50 variants maximum—additional IDs are automatically removed. Returns results with both found and not found variants clearly identified. Use for bulk variant lookups or building variant-specific collections.
58
+ *
49
59
  * @param productVariantIds Specifies the array of product variant IDs to lookup. This is limited to 50 product variants. All excess requested IDs will be removed from the array.
50
60
  */
51
61
  fetchProductVariantsWithIds(productVariantIds: number[]): Promise<MultipleResourceResult<ProductVariant>>;
52
- /** Fetches all product variants associated with a product.
62
+ /**
63
+ * Retrieves all product variants associated with a specific product ID. Returns all variants at once without pagination. Use for displaying complete variant options, building variant selectors, or analyzing all available configurations for a product.
64
+ *
53
65
  * @param productId The product ID. All variants' details associated with this product ID are returned.
54
66
  */
55
67
  fetchProductVariantsWithProductId(productId: number): Promise<ProductVariant[]>;
56
- /** Fetches a page of product variants associated with a product.
68
+ /**
69
+ * Retrieves product variants for a specific product with pagination support. Use when a product has many variants and you need to load them incrementally for better performance. Ideal for products with extensive variant collections that would be too large to load at once.
70
+ *
57
71
  * @param paginationParams The parameters for pagination.
58
72
  */
59
73
  fetchPaginatedProductVariantsWithProductId(productId: number, paginationParams: PaginationParams): Promise<PaginatedResult<ProductVariant>>;
60
74
  }
61
75
  /**
62
- * Access Point of Sale's native product search functionality.
76
+ * The `ProductSearchApi` object provides methods for searching and retrieving product information. Access these methods through `shopify.productSearch` to search products and fetch detailed product data.
63
77
  */
64
78
  export interface ProductSearchApi {
65
79
  productSearch: ProductSearchApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"product-search-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAEjE,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,0BAA0B,GAC1B,qBAAqB,GACrB,qBAAqB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,CACZ,YAAY,EAAE,mBAAmB,GAChC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAErC;;OAEG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAEpE;;OAEG;IACH,oBAAoB,CAClB,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5C;;OAEG;IACH,yBAAyB,CACvB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAEvC;;OAEG;IACH,2BAA2B,CACzB,iBAAiB,EAAE,MAAM,EAAE,GAC1B,OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,CAAC;IAEnD;;OAEG;IACH,iCAAiC,CAC/B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAE7B;;OAEG;IACH,0CAA0C,CACxC,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,uBAAuB,CAAC;CACxC"}
1
+ {"version":3,"file":"product-search-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,qBAAqB,CAAC;AAEjE,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,0BAA0B,GAC1B,qBAAqB,GACrB,qBAAqB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,cAAc,CACZ,YAAY,EAAE,mBAAmB,GAChC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;IAErC;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAEpE;;;;OAIG;IACH,oBAAoB,CAClB,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE5C;;;;OAIG;IACH,yBAAyB,CACvB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAAC;IAEvC;;;;OAIG;IACH,2BAA2B,CACzB,iBAAiB,EAAE,MAAM,EAAE,GAC1B,OAAO,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC,CAAC;IAEnD;;;;OAIG;IACH,iCAAiC,CAC/B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAE7B;;;;OAIG;IACH,0CAA0C,CACxC,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,gBAAgB,GACjC,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,uBAAuB,CAAC;CACxC"}
@@ -1,36 +1,54 @@
1
1
  import type { ReadonlySignalLike } from '../../../../shared';
2
2
  /** The scanner source the POS device supports. */
3
3
  export type ScannerSource = 'camera' | 'external' | 'embedded';
4
+ /**
5
+ * Represents the data from a scanner event. Contains the scanned string data and the hardware source that captured the scan.
6
+ */
4
7
  export interface ScannerSubscriptionResult {
5
- /** The string data from the last scanner event received. */
8
+ /**
9
+ * The string data from the last scanner event received. Contains the scanned barcode, QR code, or other scannable data. Returns `undefined` when no scan data is available. Use to process scanned content and implement scan-based business logic.
10
+ */
6
11
  data?: string;
7
- /** The scanning source from which the scan event came. */
12
+ /**
13
+ * The scanning source from which the scan event came. Returns one of the following scanner types:
14
+ *
15
+ * • `'camera'` - Built-in device camera used for scanning
16
+ * • `'external'` - External scanner hardware connected to the device
17
+ * • `'embedded'` - Embedded scanner hardware built into the device
18
+ */
8
19
  source?: ScannerSource;
9
20
  }
21
+ /**
22
+ * Represents the available scanner hardware sources on the device. Provides reactive access to the list of scanners that can be used for scanning operations.
23
+ */
10
24
  export interface ScannerSources {
11
25
  /**
12
- * The current available scanner sources.
13
- * The `value` property provides the current sources, and `subscribe` allows listening to changes.
26
+ * Current available scanner sources with subscription support. The `value` property provides current sources, and `subscribe` listens for changes. Use to monitor which scanners are available.
14
27
  */
15
28
  current: ReadonlySignalLike<ScannerSource[]>;
16
29
  }
30
+ /**
31
+ * Represents the scanner interface for accessing scan events and subscription management. Provides real-time access to scanned data through a reactive signal pattern.
32
+ */
17
33
  export interface ScannerData {
18
34
  /**
19
- * The current scan data.
20
- * The `value` property provides the current scan result, and `subscribe` allows listening to new scans.
35
+ * Current available scanner sources with subscription support. The `value` property provides current sources, and `subscribe` listens for changes. Use to monitor which scanners are available.
21
36
  */
22
37
  current: ReadonlySignalLike<ScannerSubscriptionResult>;
23
38
  }
24
39
  export interface ScannerApiContent {
25
40
  /**
26
- * Provides read-only access to scanner data and allows subscribing to new scan events.
41
+ * Access current scan data and subscribe to new scan events. Use to receive real-time scan results.
27
42
  */
28
43
  scannerData: ScannerData;
29
44
  /**
30
- * Provides read-only access to the available scanner sources on the POS device.
45
+ * Access available scanner sources on the device. Use to check which scanners are available (camera, external, or embedded).
31
46
  */
32
47
  sources: ScannerSources;
33
48
  }
49
+ /**
50
+ * The `ScannerApi` object provides access to scanning functionality and scanner source information. Access these properties through `shopify.scanner` to monitor scan events and available scanner sources.
51
+ */
34
52
  export interface ScannerApi {
35
53
  scanner: ScannerApiContent;
36
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scanner-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAE/D,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC;CAC9C;AAED,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,OAAO,EAAE,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B"}
1
+ {"version":3,"file":"scanner-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAE3D,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,EAAE,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,EAAE,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;OAEG;IACH,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B"}
@@ -1,19 +1,16 @@
1
1
  import type { Session } from '../../types/session';
2
2
  export interface SessionApiContent {
3
3
  /**
4
- * Access information on the current POS session.
4
+ * Provides comprehensive information about the current POS session including shop details, user authentication, location data, staff member information, currency settings, and POS version. This data is static for the duration of the session and updates when users switch locations or staff members change.
5
5
  */
6
6
  currentSession: Session;
7
7
  /**
8
- * Get a fresh session token for communication with your app's backend service.
9
- * When the authenticated user (the user that logged into Shopify POS with their email address) doesn't have the correct app permissions enabled for your app, null will be returned. This is irrelevant of which POS Staff member is pinned in, as those are not authenticated users.
10
- * For more information, see our [app permissions documentation](https://help.shopify.com/en/manual/your-account/users/roles/permissions/store-permissions#apps-and-channels-permissions).
11
- * Calls to Shopify APIs must be made by your app’s backend service.
8
+ * Generates a fresh session token for secure communication with your app's backend service. Returns `undefined` when the authenticated user lacks proper app permissions. The token is a Shopify OpenID Connect ID Token that should be used in `Authorization` headers for backend API calls. This is based on the authenticated user, not the pinned staff member.
12
9
  */
13
10
  getSessionToken: () => Promise<string | undefined>;
14
11
  }
15
12
  /**
16
- * Access information on the current Session, including data on the current shop, user, staff and location.
13
+ * The `SessionApi` object provides access to current session information and authentication methods. Access these properties and methods through `shopify.session` to retrieve shop data and generate secure tokens. These methods enable secure API calls while maintaining user privacy and [app permissions](https://help.shopify.com/manual/your-account/users/roles/permissions/store-permissions#apps-and-channels-permissions).
17
14
  */
18
15
  export interface SessionApi {
19
16
  session: SessionApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"session-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/session-api/session-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B"}
1
+ {"version":3,"file":"session-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/session-api/session-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,iBAAiB,CAAC;CAC5B"}
@@ -1,4 +1,7 @@
1
1
  import { Storage } from '../../types/storage';
2
+ /**
3
+ * The `StorageApi` object provides access to persistent local storage methods for your POS UI extension. Access these methods through `shopify.storage` to store, retrieve, and manage data that persists across sessions.
4
+ */
2
5
  export interface StorageApi {
3
6
  storage: Storage;
4
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"storage-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/storage-api/storage-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"storage-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/storage-api/storage-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAE5C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1,14 +1,24 @@
1
+ /**
2
+ * Specifies configuration options for displaying toast notifications. Controls the duration and display behavior of temporary notification messages.
3
+ */
1
4
  export interface ShowToastOptions {
5
+ /**
6
+ * The duration in milliseconds that the toast message should remain visible before automatically dismissing. If not specified, the toast will use the default system duration. Use shorter durations for simple confirmations and longer durations for important messages that users need time to read.
7
+ */
2
8
  duration?: number;
3
9
  }
4
10
  export interface ToastApiContent {
5
11
  /**
6
- * Show a toast.
12
+ * Displays a toast notification with the specified text content. The message appears as a temporary overlay that automatically dismisses after the specified duration. Use for providing immediate user feedback, confirming actions, or communicating status updates without interrupting the user's workflow.
13
+ *
7
14
  * @param content The text content to display.
8
15
  * @param options An object containing ShowToastOptions.
9
16
  */
10
17
  show: (content: string, options?: ShowToastOptions) => void;
11
18
  }
19
+ /**
20
+ * The `ToastApi` object provides methods for displaying temporary notification messages. Access these methods through `shopify.toast` to show user feedback and status updates.
21
+ */
12
22
  export interface ToastApi {
13
23
  toast: ToastApiContent;
14
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"toast-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/toast-api/toast-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,eAAe,CAAC;CACxB"}
1
+ {"version":3,"file":"toast-api.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/api/toast-api/toast-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7D;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,eAAe,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Badge/Badge.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAwDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Badge.doc.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/components/Badge/Badge.doc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,QAAA,MAAM,IAAI,EAAE,6BAqDX,CAAC;AAEF,eAAe,IAAI,CAAC"}