@shopify/ui-extensions 2026.1.0-rc.3 → 2026.1.0-rc.5

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 (252) 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/point-of-sale/api/action-api/action-api.d.ts +3 -5
  7. package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
  8. package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts +54 -0
  9. package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts.map +1 -0
  10. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +38 -33
  11. package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
  12. package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  13. package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts +6 -4
  14. package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts.map +1 -1
  15. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +6 -4
  16. package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  17. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +4 -1
  18. package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
  19. package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +4 -4
  20. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +6 -3
  21. package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  22. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +2 -3
  23. package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
  24. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +17 -9
  25. package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
  26. package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +5 -5
  27. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +6 -10
  28. package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
  29. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +10 -11
  30. package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
  31. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +5 -2
  32. package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
  33. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +24 -10
  34. package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
  35. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +26 -8
  36. package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
  37. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +3 -6
  38. package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
  39. package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +2 -1
  40. package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -1
  41. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +3 -0
  42. package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
  43. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +11 -1
  44. package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
  45. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -0
  46. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  47. package/build/ts/surfaces/point-of-sale/components/Badge/Badge.doc.d.ts.map +1 -1
  48. package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +23 -4
  49. package/build/ts/surfaces/point-of-sale/components/Banner/Banner.doc.d.ts.map +1 -1
  50. package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +24 -6
  51. package/build/ts/surfaces/point-of-sale/components/Box/Box.doc.d.ts.map +1 -1
  52. package/build/ts/surfaces/point-of-sale/components/Box.d.ts +34 -37
  53. package/build/ts/surfaces/point-of-sale/components/Button/Button.doc.d.ts.map +1 -1
  54. package/build/ts/surfaces/point-of-sale/components/Button.d.ts +56 -16
  55. package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +14 -2
  56. package/build/ts/surfaces/point-of-sale/components/ChoiceList/ChoiceList.doc.d.ts.map +1 -1
  57. package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
  58. package/build/ts/surfaces/point-of-sale/components/Clickable/Clickable.doc.d.ts.map +1 -1
  59. package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
  60. package/build/ts/surfaces/point-of-sale/components/DateField/DateField.doc.d.ts.map +1 -1
  61. package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +42 -6
  62. package/build/ts/surfaces/point-of-sale/components/DatePicker/DatePicker.doc.d.ts.map +1 -1
  63. package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
  64. package/build/ts/surfaces/point-of-sale/components/DateSpinner/DateSpinner.doc.d.ts.map +1 -1
  65. package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
  66. package/build/ts/surfaces/point-of-sale/components/Divider/Divider.doc.d.ts.map +1 -1
  67. package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +14 -2
  68. package/build/ts/surfaces/point-of-sale/components/EmailField/EmailField.doc.d.ts.map +1 -1
  69. package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +43 -64
  70. package/build/ts/surfaces/point-of-sale/components/Heading/Heading.doc.d.ts.map +1 -1
  71. package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +15 -3
  72. package/build/ts/surfaces/point-of-sale/components/Icon/Icon.doc.d.ts.map +1 -1
  73. package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +17 -2
  74. package/build/ts/surfaces/point-of-sale/components/Image/Image.doc.d.ts.map +1 -1
  75. package/build/ts/surfaces/point-of-sale/components/Image.d.ts +18 -16
  76. package/build/ts/surfaces/point-of-sale/components/Modal/Modal.doc.d.ts.map +1 -1
  77. package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +43 -11
  78. package/build/ts/surfaces/point-of-sale/components/NumberField/NumberField.doc.d.ts.map +1 -1
  79. package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
  80. package/build/ts/surfaces/point-of-sale/components/Page/Page.doc.d.ts.map +1 -1
  81. package/build/ts/surfaces/point-of-sale/components/Page.d.ts +19 -7
  82. package/build/ts/surfaces/point-of-sale/components/PosBlock/PosBlock.doc.d.ts.map +1 -1
  83. package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
  84. package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
  85. package/build/ts/surfaces/point-of-sale/components/ScrollBox/ScrollBox.doc.d.ts.map +1 -1
  86. package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
  87. package/build/ts/surfaces/point-of-sale/components/SearchField/SearchField.doc.d.ts.map +1 -1
  88. package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
  89. package/build/ts/surfaces/point-of-sale/components/Section/Section.doc.d.ts.map +1 -1
  90. package/build/ts/surfaces/point-of-sale/components/Section.d.ts +17 -7
  91. package/build/ts/surfaces/point-of-sale/components/Stack/Stack.doc.d.ts.map +1 -1
  92. package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +47 -61
  93. package/build/ts/surfaces/point-of-sale/components/Text/Text.doc.d.ts.map +1 -1
  94. package/build/ts/surfaces/point-of-sale/components/Text.d.ts +28 -6
  95. package/build/ts/surfaces/point-of-sale/components/TextArea/TextArea.doc.d.ts.map +1 -1
  96. package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +5 -12
  97. package/build/ts/surfaces/point-of-sale/components/TextField/TextField.doc.d.ts.map +1 -1
  98. package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +43 -7
  99. package/build/ts/surfaces/point-of-sale/components/Tile/Tile.doc.d.ts.map +1 -1
  100. package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +40 -4
  101. package/build/ts/surfaces/point-of-sale/components/TimeField/TimeField.doc.d.ts.map +1 -1
  102. package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
  103. package/build/ts/surfaces/point-of-sale/components/TimePicker/TimePicker.doc.d.ts.map +1 -1
  104. package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
  105. package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
  106. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
  107. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
  108. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  109. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  110. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  111. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  112. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  113. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  114. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  115. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  116. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
  117. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  118. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  119. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  120. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
  121. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  122. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  123. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  124. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  125. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  126. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +17 -0
  127. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  128. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +150 -0
  129. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  130. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +43 -1
  131. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  132. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +227 -31
  133. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  134. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  135. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  136. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  137. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  138. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  139. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
  140. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
  141. package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
  142. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  143. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  144. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  145. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  146. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  147. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  148. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  149. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  150. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  151. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +36 -16
  152. package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
  153. package/build/ts/surfaces/point-of-sale/types/product.d.ts +170 -0
  154. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  155. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  156. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  157. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  158. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  159. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  160. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  161. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  162. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  163. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  164. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  165. package/build/tsconfig.tsbuildinfo +1 -1
  166. package/package.json +6 -1
  167. package/src/shared.ts +7 -7
  168. package/src/surfaces/point-of-sale/api/action-api/action-api.ts +3 -5
  169. package/src/surfaces/point-of-sale/api/camera-api/camera-api.ts +56 -0
  170. package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +38 -33
  171. package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  172. package/src/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.ts +6 -4
  173. package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +6 -4
  174. package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +4 -1
  175. package/src/surfaces/point-of-sale/api/device-api/device-api.ts +4 -4
  176. package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +6 -3
  177. package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +2 -3
  178. package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +17 -9
  179. package/src/surfaces/point-of-sale/api/order-api/order-api.ts +5 -5
  180. package/src/surfaces/point-of-sale/api/pin-pad-api.ts +6 -10
  181. package/src/surfaces/point-of-sale/api/print-api/print-api.ts +10 -11
  182. package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -2
  183. package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +24 -10
  184. package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +26 -8
  185. package/src/surfaces/point-of-sale/api/session-api/session-api.ts +3 -6
  186. package/src/surfaces/point-of-sale/api/standard/standard-api.ts +3 -1
  187. package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +3 -0
  188. package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +11 -1
  189. package/src/surfaces/point-of-sale/api.ts +7 -0
  190. package/src/surfaces/point-of-sale/components/Badge.d.ts +23 -4
  191. package/src/surfaces/point-of-sale/components/Banner.d.ts +24 -6
  192. package/src/surfaces/point-of-sale/components/Box.d.ts +34 -37
  193. package/src/surfaces/point-of-sale/components/Button.d.ts +56 -16
  194. package/src/surfaces/point-of-sale/components/Choice.d.ts +14 -2
  195. package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +41 -5
  196. package/src/surfaces/point-of-sale/components/Clickable.d.ts +40 -4
  197. package/src/surfaces/point-of-sale/components/DateField.d.ts +42 -6
  198. package/src/surfaces/point-of-sale/components/DatePicker.d.ts +42 -6
  199. package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +42 -6
  200. package/src/surfaces/point-of-sale/components/Divider.d.ts +14 -2
  201. package/src/surfaces/point-of-sale/components/EmailField.d.ts +43 -64
  202. package/src/surfaces/point-of-sale/components/Heading.d.ts +15 -3
  203. package/src/surfaces/point-of-sale/components/Icon.d.ts +17 -2
  204. package/src/surfaces/point-of-sale/components/Image.d.ts +18 -16
  205. package/src/surfaces/point-of-sale/components/Modal.d.ts +43 -11
  206. package/src/surfaces/point-of-sale/components/NumberField.d.ts +56 -41
  207. package/src/surfaces/point-of-sale/components/Page.d.ts +19 -7
  208. package/src/surfaces/point-of-sale/components/PosBlock.d.ts +16 -4
  209. package/src/surfaces/point-of-sale/components/QrCode.d.ts +14 -2
  210. package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +33 -36
  211. package/src/surfaces/point-of-sale/components/SearchField.d.ts +42 -6
  212. package/src/surfaces/point-of-sale/components/Section.d.ts +17 -7
  213. package/src/surfaces/point-of-sale/components/Stack.d.ts +47 -61
  214. package/src/surfaces/point-of-sale/components/Text.d.ts +28 -6
  215. package/src/surfaces/point-of-sale/components/TextArea.d.ts +5 -12
  216. package/src/surfaces/point-of-sale/components/TextField.d.ts +43 -7
  217. package/src/surfaces/point-of-sale/components/Tile.d.ts +40 -4
  218. package/src/surfaces/point-of-sale/components/TimeField.d.ts +42 -6
  219. package/src/surfaces/point-of-sale/components/TimePicker.d.ts +42 -6
  220. package/src/surfaces/point-of-sale/components/components-shared.d.ts +638 -878
  221. package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -1
  222. package/src/surfaces/point-of-sale/components.d.ts +1506 -1537
  223. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  224. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  225. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  226. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  227. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
  228. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  229. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
  230. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  231. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  232. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +17 -0
  233. package/src/surfaces/point-of-sale/extension-targets.ts +150 -0
  234. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +43 -1
  235. package/src/surfaces/point-of-sale/types/cart.ts +227 -31
  236. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  237. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  238. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  239. package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
  240. package/src/surfaces/point-of-sale/types/money.ts +18 -0
  241. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  242. package/src/surfaces/point-of-sale/types/order.ts +18 -1
  243. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  244. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  245. package/src/surfaces/point-of-sale/types/pin-pad.ts +32 -14
  246. package/src/surfaces/point-of-sale/types/product.ts +170 -0
  247. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  248. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  249. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  250. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  251. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
  252. package/src/surfaces/point-of-sale/components/EmailField/examples/accessory-slot.jsx +0 -9
@@ -1,18 +1,14 @@
1
1
  import {PinPadOptions, PinValidationResult} from '../types/pin-pad';
2
2
 
3
3
  export interface PinPadApiContent {
4
- /** Shows a PIN pad to the user in a modal dialog.
4
+ /**
5
+ * 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'`.
5
6
  *
6
- * `onSubmit` is called when the PIN is submitted for validation by the user. The callback
7
- * should validate the PIN and accept or reject it.
7
+ * **When accepted**: Modal dismisses and triggers the `onDismissed` callback—perform any post-validation navigation in this callback rather than in `onSubmit`.
8
8
  *
9
- * If the PIN is accepted, the modal will be dismissed and the `onDismissed` callback
10
- * (provided via `options`) will be called. It is recommended that any post-validation
11
- * navigation is performed in this callback rather than in `onSubmit`.
12
- *
13
- * If the PIN is rejected, the optional `errorMessage` will be displayed to the user and the modal
14
- * will not be dismissed.
9
+ * **When rejected**: Displays the optional `errorMessage` and keeps the modal open.
15
10
  *
11
+ * Use for implementing secure authentication workflows, access control, or PIN-based verification systems.
16
12
  */
17
13
  showPinPad(
18
14
  onSubmit: (
@@ -23,7 +19,7 @@ export interface PinPadApiContent {
23
19
  }
24
20
 
25
21
  /**
26
- * Access the PIN Pad API for PIN pad functionality in a modal.
22
+ * 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.
27
23
  */
28
24
  export interface PinPadApi {
29
25
  pinPad: PinPadApiContent;
@@ -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.
@@ -22,8 +18,11 @@ export interface PrintApiContent {
22
18
  }
23
19
 
24
20
  /**
25
- * Interface for printing
21
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `shopify.print` to initiate print operations with various document types.
26
22
  */
27
23
  export interface PrintApi {
24
+ /**
25
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `shopify.print` to initiate print operations with various document types.
26
+ */
28
27
  print: PrintApiContent;
29
28
  }
@@ -1,14 +1,17 @@
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
 
5
8
  export interface ProductApiContent {
6
9
  /**
7
- * The unique identifier for the product.
10
+ * The unique identifier for the product. Use for product lookups, implementing product-specific functionality, and integrating with external systems.
8
11
  */
9
12
  id: number;
10
13
  /**
11
- * The unique identifier for the product variant.
14
+ * The unique identifier for the product variant. Use for variant-specific operations, cart additions, and inventory management.
12
15
  */
13
16
  variantId: number;
14
17
  }
@@ -9,7 +9,7 @@ export type ProductSortType =
9
9
  | 'ALPHABETICAL_Z_TO_A';
10
10
 
11
11
  /**
12
- * Base interface for pagination.
12
+ * Specifies parameters for cursor-based pagination. Includes the cursor position and the number of results to retrieve per page.
13
13
  */
14
14
  export interface PaginationParams {
15
15
  /**
@@ -23,7 +23,7 @@ export interface PaginationParams {
23
23
  }
24
24
 
25
25
  /**
26
- * Interface for product search
26
+ * Specifies the parameters for searching products. Includes query text, pagination options, and sorting preferences for product search operations.
27
27
  */
28
28
  export interface ProductSearchParams extends PaginationParams {
29
29
  /**
@@ -37,47 +37,61 @@ export interface ProductSearchParams extends PaginationParams {
37
37
  }
38
38
 
39
39
  export interface ProductSearchApiContent {
40
- /** Search for products on the POS device.
40
+ /**
41
+ * 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.
42
+ *
41
43
  * @param searchParams The parameters for the product search.
42
44
  */
43
45
  searchProducts(
44
46
  searchParams: ProductSearchParams,
45
47
  ): Promise<PaginatedResult<Product>>;
46
48
 
47
- /** Fetches a single product's details.
49
+ /**
50
+ * 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.
51
+ *
48
52
  * @param productId The ID of the product to lookup.
49
53
  */
50
54
  fetchProductWithId(productId: number): Promise<Product | undefined>;
51
55
 
52
- /** Fetches multiple products' details.
56
+ /**
57
+ * 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.
58
+ *
53
59
  * @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.
54
60
  */
55
61
  fetchProductsWithIds(
56
62
  productIds: number[],
57
63
  ): Promise<MultipleResourceResult<Product>>;
58
64
 
59
- /** Fetches a single product variant's details.
65
+ /**
66
+ * 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.
67
+ *
60
68
  * @param productVariantId The ID of the product variant to lookup.
61
69
  */
62
70
  fetchProductVariantWithId(
63
71
  productVariantId: number,
64
72
  ): Promise<ProductVariant | undefined>;
65
73
 
66
- /** Fetches multiple product variants' details.
74
+ /**
75
+ * 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.
76
+ *
67
77
  * @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.
68
78
  */
69
79
  fetchProductVariantsWithIds(
70
80
  productVariantIds: number[],
71
81
  ): Promise<MultipleResourceResult<ProductVariant>>;
72
82
 
73
- /** Fetches all product variants associated with a product.
83
+ /**
84
+ * 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.
85
+ *
74
86
  * @param productId The product ID. All variants' details associated with this product ID are returned.
75
87
  */
76
88
  fetchProductVariantsWithProductId(
77
89
  productId: number,
78
90
  ): Promise<ProductVariant[]>;
79
91
 
80
- /** Fetches a page of product variants associated with a product.
92
+ /**
93
+ * 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.
94
+ *
81
95
  * @param paginationParams The parameters for pagination.
82
96
  */
83
97
  fetchPaginatedProductVariantsWithProductId(
@@ -87,7 +101,7 @@ export interface ProductSearchApiContent {
87
101
  }
88
102
 
89
103
  /**
90
- * Access Point of Sale's native product search functionality.
104
+ * 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.
91
105
  */
92
106
  export interface ProductSearchApi {
93
107
  productSearch: ProductSearchApiContent;
@@ -3,40 +3,58 @@ import type {ReadonlySignalLike} from '../../../../shared';
3
3
  /** The scanner source the POS device supports. */
4
4
  export type ScannerSource = 'camera' | 'external' | 'embedded';
5
5
 
6
+ /**
7
+ * Represents the data from a scanner event. Contains the scanned string data and the hardware source that captured the scan.
8
+ */
6
9
  export interface ScannerSubscriptionResult {
7
- /** The string data from the last scanner event received. */
10
+ /**
11
+ * 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.
12
+ */
8
13
  data?: string;
9
- /** The scanning source from which the scan event came. */
14
+ /**
15
+ * The scanning source from which the scan event came. Returns one of the following scanner types:
16
+ *
17
+ * • `'camera'` - Built-in device camera used for scanning
18
+ * • `'external'` - External scanner hardware connected to the device
19
+ * • `'embedded'` - Embedded scanner hardware built into the device
20
+ */
10
21
  source?: ScannerSource;
11
22
  }
12
23
 
24
+ /**
25
+ * Represents the available scanner hardware sources on the device. Provides reactive access to the list of scanners that can be used for scanning operations.
26
+ */
13
27
  export interface ScannerSources {
14
28
  /**
15
- * The current available scanner sources.
16
- * The `value` property provides the current sources, and `subscribe` allows listening to changes.
29
+ * 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.
17
30
  */
18
31
  current: ReadonlySignalLike<ScannerSource[]>;
19
32
  }
20
33
 
34
+ /**
35
+ * Represents the scanner interface for accessing scan events and subscription management. Provides real-time access to scanned data through a reactive signal pattern.
36
+ */
21
37
  export interface ScannerData {
22
38
  /**
23
- * The current scan data.
24
- * The `value` property provides the current scan result, and `subscribe` allows listening to new scans.
39
+ * 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.
25
40
  */
26
41
  current: ReadonlySignalLike<ScannerSubscriptionResult>;
27
42
  }
28
43
 
29
44
  export interface ScannerApiContent {
30
45
  /**
31
- * Provides read-only access to scanner data and allows subscribing to new scan events.
46
+ * Access current scan data and subscribe to new scan events. Use to receive real-time scan results.
32
47
  */
33
48
  scannerData: ScannerData;
34
49
  /**
35
- * Provides read-only access to the available scanner sources on the POS device.
50
+ * Access available scanner sources on the device. Use to check which scanners are available (camera, external, or embedded).
36
51
  */
37
52
  sources: ScannerSources;
38
53
  }
39
54
 
55
+ /**
56
+ * 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.
57
+ */
40
58
  export interface ScannerApi {
41
59
  scanner: ScannerApiContent;
42
60
  }
@@ -2,20 +2,17 @@ import type {Session} from '../../types/session';
2
2
 
3
3
  export interface SessionApiContent {
4
4
  /**
5
- * Access information on the current POS session.
5
+ * 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.
6
6
  */
7
7
  currentSession: Session;
8
8
  /**
9
- * Get a fresh session token for communication with your app's backend service.
10
- * 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.
11
- * 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).
12
- * Calls to Shopify APIs must be made by your app’s backend service.
9
+ * 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.
13
10
  */
14
11
  getSessionToken: () => Promise<string | undefined>;
15
12
  }
16
13
 
17
14
  /**
18
- * Access information on the current Session, including data on the current shop, user, staff and location.
15
+ * 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).
19
16
  */
20
17
  export interface SessionApi {
21
18
  session: SessionApiContent;
@@ -1,3 +1,4 @@
1
+ import {CameraApi} from '../camera-api/camera-api';
1
2
  import {ConnectivityApi} from '../connectivity-api/connectivity-api';
2
3
  import {DeviceApi} from '../device-api/device-api';
3
4
  import {LocaleApi} from '../locale-api/locale-api';
@@ -20,4 +21,5 @@ export type StandardApi<T> = {[key: string]: any} & {
20
21
  DeviceApi &
21
22
  ConnectivityApi &
22
23
  StorageApi &
23
- PinPadApi;
24
+ PinPadApi &
25
+ CameraApi;
@@ -1,5 +1,8 @@
1
1
  import {Storage} from '../../types/storage';
2
2
 
3
+ /**
4
+ * 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.
5
+ */
3
6
  export interface StorageApi {
4
7
  storage: Storage;
5
8
  }
@@ -1,16 +1,26 @@
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
 
5
11
  export interface ToastApiContent {
6
12
  /**
7
- * Show a toast.
13
+ * 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.
14
+ *
8
15
  * @param content The text content to display.
9
16
  * @param options An object containing ShowToastOptions.
10
17
  */
11
18
  show: (content: string, options?: ShowToastOptions) => void;
12
19
  }
13
20
 
21
+ /**
22
+ * The `ToastApi` object provides methods for displaying temporary notification messages. Access these methods through `shopify.toast` to show user feedback and status updates.
23
+ */
14
24
  export interface ToastApi {
15
25
  toast: ToastApiContent;
16
26
  }
@@ -14,6 +14,13 @@ export type {ActionApi, ActionApiContent} from './api/action-api/action-api';
14
14
  export type {StandardApi} from './api/standard/standard-api';
15
15
  export type {ActionTargetApi} from './api/action-target-api/action-target-api';
16
16
 
17
+ export type {
18
+ CameraApi,
19
+ CameraApiContent,
20
+ CameraMediaOptions,
21
+ CameraMediaResponse,
22
+ } from './api/camera-api/camera-api';
23
+
17
24
  export type {
18
25
  ConnectivityStateSeverity,
19
26
  ConnectivityState,
@@ -12,18 +12,30 @@ import type {BadgeProps, Key, Ref} from './components-shared.d.ts';
12
12
 
13
13
  export type ComponentChildren = any;
14
14
  /**
15
- * Used when an element does not have children.
15
+ * The base props for elements without children, providing key, ref, and slot properties.
16
16
  */
17
17
  export interface BaseElementProps<TClass = HTMLElement> {
18
+ /**
19
+ * A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
20
+ */
18
21
  key?: Key;
22
+ /**
23
+ * A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
24
+ */
19
25
  ref?: Ref<TClass>;
26
+ /**
27
+ * The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
28
+ */
20
29
  slot?: Lowercase<string>;
21
30
  }
22
31
  /**
23
- * Used when an element has children.
32
+ * The base props for elements with children, extending `BaseElementProps` with children support.
24
33
  */
25
34
  export interface BaseElementPropsWithChildren<TClass = HTMLElement>
26
35
  extends BaseElementProps<TClass> {
36
+ /**
37
+ * The child elements to render within this component.
38
+ */
27
39
  children?: ComponentChildren;
28
40
  }
29
41
  export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
@@ -31,7 +43,14 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
31
43
  declare const tagName = 's-badge';
32
44
  export interface BadgeJSXProps extends Pick<BadgeProps, 'id'> {
33
45
  /**
34
- * Sets the tone of the Badge, based on the intention of the information being conveyed.
46
+ * Determines the visual appearance and semantic meaning of the badge. Badges rely on the tone system for semantic meaning, so using custom styling may not clearly convey meaning to merchants. Available options:
47
+ * - `'auto'` - Lets the system automatically choose the appropriate tone based on context.
48
+ * - `'neutral'` - Gray styling for general status information that doesn't require emphasis.
49
+ * - `'info'` - Blue styling for informational content and neutral updates.
50
+ * - `'success'` - Green styling for positive states, completed actions, and successful operations.
51
+ * - `'caution'` - Yellow styling for situations that need attention but aren't urgent.
52
+ * - `'warning'` - Orange styling for important notices that require merchant awareness.
53
+ * - `'critical'` - Red styling for errors, failures, and urgent issues requiring immediate action.
35
54
  *
36
55
  * @default 'auto'
37
56
  */
@@ -40,7 +59,7 @@ export interface BadgeJSXProps extends Pick<BadgeProps, 'id'> {
40
59
  'auto' | 'neutral' | 'info' | 'success' | 'warning' | 'critical' | 'caution'
41
60
  >;
42
61
  /**
43
- * The content of the Badge.
62
+ * The child elements to render within this component.
44
63
  */
45
64
  children?: ComponentChildren;
46
65
  }
@@ -17,18 +17,30 @@ import type {
17
17
 
18
18
  export type ComponentChildren = any;
19
19
  /**
20
- * Used when an element does not have children.
20
+ * The base props for elements without children, providing key, ref, and slot properties.
21
21
  */
22
22
  export interface BaseElementProps<TClass = HTMLElement> {
23
+ /**
24
+ * A unique identifier for the element in lists. Used by Preact for efficient rendering and reconciliation.
25
+ */
23
26
  key?: Key;
27
+ /**
28
+ * A reference to the underlying DOM element. Commonly used to access the element directly for imperative operations.
29
+ */
24
30
  ref?: Ref<TClass>;
31
+ /**
32
+ * The named [slot](/docs/api/polaris/using-polaris-web-components#slots) this element should be placed in when used within a web component.
33
+ */
25
34
  slot?: Lowercase<string>;
26
35
  }
27
36
  /**
28
- * Used when an element has children.
37
+ * The base props for elements with children, extending `BaseElementProps` with children support.
29
38
  */
30
39
  export interface BaseElementPropsWithChildren<TClass = HTMLElement>
31
40
  extends BaseElementProps<TClass> {
41
+ /**
42
+ * The child elements to render within this component.
43
+ */
32
44
  children?: ComponentChildren;
33
45
  }
34
46
  export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
@@ -36,13 +48,19 @@ export type IntrinsicElementProps<T> = T & BaseElementPropsWithChildren<T>;
36
48
  declare const tagName = 's-banner';
37
49
  export interface BannerJSXProps extends Pick<BannerProps, 'heading' | 'id'> {
38
50
  /**
39
- * Determines whether the banner is hidden.
51
+ * Controls whether the banner is visible or hidden. When set to `true`, the banner will be hidden from view. Use this to programmatically show or hide banners based on application state. Default is `false`.
40
52
  *
41
53
  * @default false
42
54
  */
43
55
  hidden?: BannerProps['hidden'];
44
56
  /**
45
- * Sets the tone of the Banner, based on the intention of the information being conveyed.
57
+ * Sets the visual appearance of the banner. The tone determines the color scheme. Available options:
58
+ *
59
+ * - `'auto'` - Lets the system automatically choose the appropriate tone based on context.
60
+ * - `'success'` - Green styling for positive outcomes and successful operations.
61
+ * - `'info'` - Blue styling for general information and neutral updates.
62
+ * - `'warning'` - Orange styling for important notices that require attention.
63
+ * - `'critical'` - Red styling for errors and urgent issues requiring immediate action.
46
64
  *
47
65
  * @default 'auto'
48
66
  */
@@ -51,11 +69,11 @@ export interface BannerJSXProps extends Pick<BannerProps, 'heading' | 'id'> {
51
69
  'auto' | 'success' | 'info' | 'warning' | 'critical'
52
70
  >;
53
71
  /**
54
- * The action taken when the Banner is pressed.
72
+ * The primary action element displayed within the banner, typically a button. Use this slot to provide interactive elements that allow users to respond to the banner's message, such as "Dismiss," "Learn More," or "Retry" buttons.
55
73
  */
56
74
  primaryAction?: ComponentChild;
57
75
  /**
58
- * The content of the Banner.
76
+ * The child elements to render within this component.
59
77
  */
60
78
  children?: ComponentChildren;
61
79
  }