@shopify/ui-extensions 2025.7.2 → 2025.8.0

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 (378) hide show
  1. package/build/cjs/surfaces/point-of-sale/render/components/Badge/Badge.js +0 -7
  2. package/build/cjs/surfaces/point-of-sale/render/components/Banner/Banner.js +0 -9
  3. package/build/cjs/surfaces/point-of-sale/render/components/Button/Button.js +0 -8
  4. package/build/cjs/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.js +0 -6
  5. package/build/cjs/surfaces/point-of-sale/render/components/DatePicker/DatePicker.js +0 -8
  6. package/build/cjs/surfaces/point-of-sale/render/components/Dialog/Dialog.js +0 -12
  7. package/build/cjs/surfaces/point-of-sale/render/components/Image/Image.js +7 -2
  8. package/build/cjs/surfaces/point-of-sale/render/components/Navigator/Navigator.js +0 -4
  9. package/build/cjs/surfaces/point-of-sale/render/components/NumberField/NumberField.js +0 -6
  10. package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlock.js +0 -6
  11. package/build/cjs/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.js +0 -4
  12. package/build/cjs/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.js +0 -5
  13. package/build/cjs/surfaces/point-of-sale/render/components/PinPad/PinPad.js +16 -20
  14. package/build/cjs/surfaces/point-of-sale/render/components/QRCode/QRCode.js +0 -5
  15. package/build/cjs/surfaces/point-of-sale/render/components/Screen/Screen.js +0 -22
  16. package/build/cjs/surfaces/point-of-sale/render/components/Section/Section.js +2 -8
  17. package/build/cjs/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.js +4 -0
  18. package/build/cjs/surfaces/point-of-sale/render/components/Stack/Stack.js +4 -0
  19. package/build/cjs/surfaces/point-of-sale/render/components/Text/Text.js +28 -0
  20. package/build/cjs/surfaces/point-of-sale/render/components/TextArea/TextArea.js +0 -6
  21. package/build/cjs/surfaces/point-of-sale/render/components/Tile/Tile.js +0 -10
  22. package/build/cjs/surfaces/point-of-sale/render/components/TimePicker/TimePicker.js +0 -9
  23. package/build/cjs/surfaces/point-of-sale/types/storage.js +3 -0
  24. package/build/esm/surfaces/point-of-sale/render/components/Badge/Badge.mjs +0 -7
  25. package/build/esm/surfaces/point-of-sale/render/components/Banner/Banner.mjs +0 -9
  26. package/build/esm/surfaces/point-of-sale/render/components/Button/Button.mjs +0 -8
  27. package/build/esm/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.mjs +0 -6
  28. package/build/esm/surfaces/point-of-sale/render/components/DatePicker/DatePicker.mjs +0 -8
  29. package/build/esm/surfaces/point-of-sale/render/components/Dialog/Dialog.mjs +0 -12
  30. package/build/esm/surfaces/point-of-sale/render/components/Image/Image.mjs +7 -2
  31. package/build/esm/surfaces/point-of-sale/render/components/Navigator/Navigator.mjs +0 -4
  32. package/build/esm/surfaces/point-of-sale/render/components/NumberField/NumberField.mjs +0 -6
  33. package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlock.mjs +0 -6
  34. package/build/esm/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.mjs +0 -4
  35. package/build/esm/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.mjs +0 -5
  36. package/build/esm/surfaces/point-of-sale/render/components/PinPad/PinPad.mjs +16 -20
  37. package/build/esm/surfaces/point-of-sale/render/components/QRCode/QRCode.mjs +0 -5
  38. package/build/esm/surfaces/point-of-sale/render/components/Screen/Screen.mjs +0 -22
  39. package/build/esm/surfaces/point-of-sale/render/components/Section/Section.mjs +2 -8
  40. package/build/esm/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.mjs +4 -0
  41. package/build/esm/surfaces/point-of-sale/render/components/Stack/Stack.mjs +4 -0
  42. package/build/esm/surfaces/point-of-sale/render/components/Text/Text.mjs +28 -0
  43. package/build/esm/surfaces/point-of-sale/render/components/TextArea/TextArea.mjs +0 -6
  44. package/build/esm/surfaces/point-of-sale/render/components/Tile/Tile.mjs +0 -10
  45. package/build/esm/surfaces/point-of-sale/render/components/TimePicker/TimePicker.mjs +0 -9
  46. package/build/esm/surfaces/point-of-sale/types/storage.mjs +3 -0
  47. package/build/esnext/surfaces/point-of-sale/render/components/Badge/Badge.esnext +0 -7
  48. package/build/esnext/surfaces/point-of-sale/render/components/Banner/Banner.esnext +0 -9
  49. package/build/esnext/surfaces/point-of-sale/render/components/Button/Button.esnext +0 -8
  50. package/build/esnext/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.esnext +0 -6
  51. package/build/esnext/surfaces/point-of-sale/render/components/DatePicker/DatePicker.esnext +0 -8
  52. package/build/esnext/surfaces/point-of-sale/render/components/Dialog/Dialog.esnext +0 -12
  53. package/build/esnext/surfaces/point-of-sale/render/components/Image/Image.esnext +7 -2
  54. package/build/esnext/surfaces/point-of-sale/render/components/Navigator/Navigator.esnext +0 -4
  55. package/build/esnext/surfaces/point-of-sale/render/components/NumberField/NumberField.esnext +0 -6
  56. package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlock.esnext +0 -6
  57. package/build/esnext/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.esnext +0 -4
  58. package/build/esnext/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.esnext +0 -5
  59. package/build/esnext/surfaces/point-of-sale/render/components/PinPad/PinPad.esnext +16 -20
  60. package/build/esnext/surfaces/point-of-sale/render/components/QRCode/QRCode.esnext +0 -5
  61. package/build/esnext/surfaces/point-of-sale/render/components/Screen/Screen.esnext +0 -22
  62. package/build/esnext/surfaces/point-of-sale/render/components/Section/Section.esnext +2 -8
  63. package/build/esnext/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.esnext +4 -0
  64. package/build/esnext/surfaces/point-of-sale/render/components/Stack/Stack.esnext +4 -0
  65. package/build/esnext/surfaces/point-of-sale/render/components/Text/Text.esnext +28 -0
  66. package/build/esnext/surfaces/point-of-sale/render/components/TextArea/TextArea.esnext +0 -6
  67. package/build/esnext/surfaces/point-of-sale/render/components/Tile/Tile.esnext +0 -10
  68. package/build/esnext/surfaces/point-of-sale/render/components/TimePicker/TimePicker.esnext +0 -9
  69. package/build/esnext/surfaces/point-of-sale/types/storage.esnext +3 -0
  70. package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts +4 -0
  71. package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.d.ts.map +1 -0
  72. package/build/ts/surfaces/admin/api/picker/picker.doc.d.ts.map +1 -1
  73. package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts +4 -0
  74. package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.doc.d.ts.map +1 -0
  75. package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts +4 -0
  76. package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.d.ts.map +1 -0
  77. package/build/ts/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.doc.d.ts +4 -0
  78. package/build/ts/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.doc.d.ts.map +1 -0
  79. package/build/ts/surfaces/admin/api/resource-picker/resource-picker.doc.d.ts.map +1 -1
  80. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
  81. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  82. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  83. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  84. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  85. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  86. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  87. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  88. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  89. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  90. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +18 -0
  91. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  92. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  93. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  94. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +18 -0
  95. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  96. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  97. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  98. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  99. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  100. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +14 -0
  101. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  102. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts +3 -5
  103. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -1
  104. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts +37 -31
  105. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -1
  106. package/build/ts/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  107. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts +6 -4
  108. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  109. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts +4 -1
  110. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -1
  111. package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts +8 -4
  112. package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts.map +1 -1
  113. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts +6 -3
  114. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  115. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts +3 -4
  116. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -1
  117. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts +9 -7
  118. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -1
  119. package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts +5 -5
  120. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +7 -12
  121. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -1
  122. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts +5 -2
  123. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -1
  124. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts +24 -10
  125. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -1
  126. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts +22 -10
  127. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -1
  128. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts +3 -6
  129. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -1
  130. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts +7 -0
  131. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts.map +1 -1
  132. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts +11 -1
  133. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -1
  134. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts +12 -9
  135. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -1
  136. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts +13 -14
  137. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -1
  138. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts +9 -15
  139. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -1
  140. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts +6 -8
  141. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  142. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts +8 -11
  143. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -1
  144. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts +13 -20
  145. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -1
  146. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts +10 -8
  147. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -1
  148. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +10 -5
  149. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -1
  150. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts +30 -25
  151. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -1
  152. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts +1 -4
  153. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -1
  154. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts +7 -7
  155. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -1
  156. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts +8 -10
  157. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -1
  158. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts +1 -4
  159. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -1
  160. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts +0 -4
  161. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map +1 -1
  162. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts +25 -28
  163. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -1
  164. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +1 -11
  165. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -1
  166. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts +1 -5
  167. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts.map +1 -1
  168. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts +7 -5
  169. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  170. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts +13 -33
  171. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -1
  172. package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts +7 -7
  173. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts +6 -11
  174. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -1
  175. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts +9 -7
  176. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  177. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts +9 -6
  178. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  179. package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts +2 -2
  180. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +22 -22
  181. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -1
  182. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts +8 -6
  183. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -1
  184. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts +28 -2
  185. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -1
  186. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts +1 -6
  187. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -1
  188. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts +30 -0
  189. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -1
  190. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts +6 -15
  191. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -1
  192. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts +2 -1
  193. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -1
  194. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts +10 -14
  195. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -1
  196. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts +6 -14
  197. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -1
  198. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts +16 -37
  199. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -1
  200. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +31 -42
  201. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -1
  202. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts +12 -0
  203. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -1
  204. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +13 -7
  205. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -1
  206. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +3 -1
  207. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -1
  208. package/build/ts/surfaces/point-of-sale/targets.d.ts +135 -0
  209. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  210. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +39 -0
  211. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  212. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +265 -22
  213. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  214. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  215. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  216. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  217. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  218. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  219. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +6 -0
  220. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
  221. package/build/ts/surfaces/point-of-sale/types/money.d.ts +18 -0
  222. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  223. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  224. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  225. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  226. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  227. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  228. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  229. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  230. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  231. package/build/ts/surfaces/point-of-sale/types/product.d.ts +172 -0
  232. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  233. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  234. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  235. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  236. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  237. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  238. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  239. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  240. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  241. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  242. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  243. package/build/tsconfig.tsbuildinfo +1 -1
  244. package/package.json +6 -1
  245. package/src/surfaces/admin/api/action/action.doc.ts +2 -2
  246. package/src/surfaces/admin/api/block/block.doc.ts +2 -2
  247. package/src/surfaces/admin/api/checkout-rules/validation-settings.doc.ts +2 -2
  248. package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.doc.ts +3 -3
  249. package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.doc.ts +2 -2
  250. package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.doc.ts +21 -0
  251. package/src/surfaces/admin/api/picker/picker.doc.ts +4 -3
  252. package/src/surfaces/admin/api/print-action/print-action.doc.ts +2 -2
  253. package/src/surfaces/admin/api/product-configuration/product-details-configuration.doc.ts +21 -0
  254. package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.doc.ts +21 -0
  255. package/src/surfaces/admin/api/purchase-options-card-action/purchase-options-card-action.doc.ts +21 -0
  256. package/src/surfaces/admin/api/resource-picker/resource-picker.doc.ts +4 -3
  257. package/src/surfaces/admin/api/should-render/should-render.doc.ts +3 -3
  258. package/src/surfaces/admin/api/standard/standard.doc.ts +2 -2
  259. package/src/surfaces/admin/components/AdminAction/AdminAction.doc.ts +2 -2
  260. package/src/surfaces/admin/components/AdminBlock/AdminBlock.doc.ts +2 -2
  261. package/src/surfaces/admin/components/AdminPrintAction/AdminPrintAction.doc.ts +2 -2
  262. package/src/surfaces/admin/components/Badge/Badge.doc.ts +2 -2
  263. package/src/surfaces/admin/components/Banner/Banner.doc.ts +2 -2
  264. package/src/surfaces/admin/components/BlockStack/BlockStack.doc.ts +2 -2
  265. package/src/surfaces/admin/components/Box/Box.doc.ts +2 -2
  266. package/src/surfaces/admin/components/Button/Button.doc.ts +1 -1
  267. package/src/surfaces/admin/components/Checkbox/Checkbox.doc.ts +1 -1
  268. package/src/surfaces/admin/components/ChoiceList/ChoiceList.doc.ts +1 -1
  269. package/src/surfaces/admin/components/ColorPicker/ColorPicker.doc.ts +1 -1
  270. package/src/surfaces/admin/components/CustomerSegmentTemplate/CustomerSegmentTemplate.doc.ts +2 -2
  271. package/src/surfaces/admin/components/DateField/DateField.doc.ts +1 -1
  272. package/src/surfaces/admin/components/DatePicker/DatePicker.doc.ts +1 -1
  273. package/src/surfaces/admin/components/Divider/Divider.doc.ts +2 -2
  274. package/src/surfaces/admin/components/EmailField/EmailField.doc.ts +1 -1
  275. package/src/surfaces/admin/components/Form/Form.doc.ts +1 -1
  276. package/src/surfaces/admin/components/FunctionSettings/FunctionSettings.doc.ts +1 -1
  277. package/src/surfaces/admin/components/Heading/Heading.doc.ts +2 -2
  278. package/src/surfaces/admin/components/HeadingGroup/HeadingGroup.doc.ts +2 -2
  279. package/src/surfaces/admin/components/Icon/Icon.doc.ts +2 -2
  280. package/src/surfaces/admin/components/Image/Image.doc.ts +2 -2
  281. package/src/surfaces/admin/components/InlineStack/InlineStack.doc.ts +2 -2
  282. package/src/surfaces/admin/components/Link/Link.doc.ts +1 -1
  283. package/src/surfaces/admin/components/MoneyField/MoneyField.doc.ts +1 -1
  284. package/src/surfaces/admin/components/NumberField/NumberField.doc.ts +1 -1
  285. package/src/surfaces/admin/components/Paragraph/Paragraph.doc.ts +2 -2
  286. package/src/surfaces/admin/components/PasswordField/PasswordField.doc.ts +1 -1
  287. package/src/surfaces/admin/components/Pressable/Pressable.doc.ts +1 -1
  288. package/src/surfaces/admin/components/ProgressIndicator/ProgressIndicator.doc.ts +2 -2
  289. package/src/surfaces/admin/components/Section/Section.doc.ts +2 -2
  290. package/src/surfaces/admin/components/Select/Select.doc.ts +1 -1
  291. package/src/surfaces/admin/components/Text/Text.doc.ts +2 -2
  292. package/src/surfaces/admin/components/TextArea/TextArea.doc.ts +1 -1
  293. package/src/surfaces/admin/components/TextField/TextField.doc.ts +1 -1
  294. package/src/surfaces/admin/components/URLField/URLField.doc.ts +1 -1
  295. package/src/surfaces/point-of-sale/api.ts +1 -0
  296. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  297. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  298. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  299. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  300. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +18 -0
  301. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  302. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +18 -0
  303. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  304. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  305. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +14 -0
  306. package/src/surfaces/point-of-sale/render/api/action-api/action-api.ts +3 -5
  307. package/src/surfaces/point-of-sale/render/api/cart-api/cart-api.ts +37 -31
  308. package/src/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  309. package/src/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.ts +6 -4
  310. package/src/surfaces/point-of-sale/render/api/customer-api/customer-api.ts +4 -1
  311. package/src/surfaces/point-of-sale/render/api/device-api/device-api.ts +8 -4
  312. package/src/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.ts +6 -3
  313. package/src/surfaces/point-of-sale/render/api/locale-api/locale-api.ts +3 -4
  314. package/src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts +9 -7
  315. package/src/surfaces/point-of-sale/render/api/order-api/order-api.ts +5 -5
  316. package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +7 -12
  317. package/src/surfaces/point-of-sale/render/api/product-api/product-api.ts +5 -2
  318. package/src/surfaces/point-of-sale/render/api/product-search-api/product-search-api.ts +24 -10
  319. package/src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts +22 -10
  320. package/src/surfaces/point-of-sale/render/api/session-api/session-api.ts +3 -6
  321. package/src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts +7 -0
  322. package/src/surfaces/point-of-sale/render/api/toast-api/toast-api.ts +11 -1
  323. package/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +12 -10
  324. package/src/surfaces/point-of-sale/render/components/Banner/Banner.ts +13 -14
  325. package/src/surfaces/point-of-sale/render/components/Button/Button.ts +9 -15
  326. package/src/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.ts +6 -8
  327. package/src/surfaces/point-of-sale/render/components/DatePicker/DatePicker.ts +8 -11
  328. package/src/surfaces/point-of-sale/render/components/Dialog/Dialog.ts +13 -20
  329. package/src/surfaces/point-of-sale/render/components/Icon/Icon.ts +254 -248
  330. package/src/surfaces/point-of-sale/render/components/Image/Image.ts +14 -5
  331. package/src/surfaces/point-of-sale/render/components/List/List.ts +30 -25
  332. package/src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts +1 -4
  333. package/src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts +7 -7
  334. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts +5 -9
  335. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts +1 -4
  336. package/src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts +0 -4
  337. package/src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts +25 -28
  338. package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +1 -11
  339. package/src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts +1 -5
  340. package/src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts +4 -4
  341. package/src/surfaces/point-of-sale/render/components/Screen/Screen.ts +13 -33
  342. package/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts +7 -7
  343. package/src/surfaces/point-of-sale/render/components/Section/Section.ts +6 -11
  344. package/src/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.ts +6 -6
  345. package/src/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.ts +9 -7
  346. package/src/surfaces/point-of-sale/render/components/Selectable/Selectable.ts +2 -2
  347. package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +27 -22
  348. package/src/surfaces/point-of-sale/render/components/Stepper/Stepper.ts +8 -6
  349. package/src/surfaces/point-of-sale/render/components/Text/Text.ts +28 -2
  350. package/src/surfaces/point-of-sale/render/components/TextArea/TextArea.ts +1 -6
  351. package/src/surfaces/point-of-sale/render/components/TextField/TextField.ts +30 -0
  352. package/src/surfaces/point-of-sale/render/components/Tile/Tile.ts +6 -15
  353. package/src/surfaces/point-of-sale/render/components/TimeField/TimeField.ts +2 -1
  354. package/src/surfaces/point-of-sale/render/components/TimePicker/TimePicker.ts +10 -14
  355. package/src/surfaces/point-of-sale/render/components/shared/BaseTextField.ts +6 -14
  356. package/src/surfaces/point-of-sale/render/components/shared/InputField.ts +16 -37
  357. package/src/surfaces/point-of-sale/render/components/shared/box.ts +33 -42
  358. package/src/surfaces/point-of-sale/render/components/shared/deprecated-types.ts +12 -0
  359. package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +14 -7
  360. package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +3 -1
  361. package/src/surfaces/point-of-sale/targets.ts +135 -0
  362. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
  363. package/src/surfaces/point-of-sale/types/cart.ts +267 -22
  364. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  365. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  366. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  367. package/src/surfaces/point-of-sale/types/discount-allocation.ts +6 -0
  368. package/src/surfaces/point-of-sale/types/money.ts +18 -0
  369. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  370. package/src/surfaces/point-of-sale/types/order.ts +18 -0
  371. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  372. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  373. package/src/surfaces/point-of-sale/types/product.ts +172 -0
  374. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  375. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  376. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  377. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  378. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
@@ -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/render/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/render/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,23 @@
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
+ * A short, unique identifier for the device, assigned by Shopify.
8
+ */
9
+ registerName: string;
10
+ /**
11
+ * 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
12
  */
9
13
  getDeviceId(): Promise<string>;
10
14
  /**
11
- * Whether the device is a tablet
15
+ * 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
16
  */
13
17
  isTablet(): Promise<boolean>;
14
18
  }
15
19
  /**
16
- * Access information about the device, like name and ID
20
+ * 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
21
  */
18
22
  export interface DeviceApi {
19
23
  device: DeviceApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"device-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/device-api/device-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
1
+ {"version":3,"file":"device-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/device-api/device-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -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/render/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/render/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 { RemoteSubscribable } from '@remote-ui/async-subscription';
2
2
  export interface LocaleApiContent {
3
- /** IETF-formatted locale at time of page load and a callback to subscribe to value changes. Current supports only one subscription.
4
- * You can utilize `makeStatefulSubscribable` on a `RemoteSubscribable` to implement multiple subscriptions.
5
- * Using `makeStatefulSubscribable` or the corresponding hooks counts as a subscription.
3
+ /**
4
+ * Provides the current IETF-formatted locale (for example, `"en-US"`) and allows you to subscribe to locale changes. Supports only one subscription at a time. To enable multiple subscriptions, use `makeStatefulSubscribable` on the `RemoteSubscribable` object. Using `makeStatefulSubscribable` or related hooks counts as an active subscription.
6
5
  */
7
6
  subscribable: RemoteSubscribable<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 `api.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/render/api/locale-api/locale-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,YAAY,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;CAC1C;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/render/api/locale-api/locale-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -1,17 +1,19 @@
1
1
  export interface NavigationApiContent {
2
- /** Navigate to a route in current navigation tree.
3
- * Pushes the specified screen if it isn't present in the navigation tree, goes back to a created screen otherwise.
4
- * @param screenName the name of the screen you want to navigate to.
5
- * @param params the parameters you want to pass to that screen.
2
+ /**
3
+ * Navigate to a route in current navigation tree. Pushes the specified screen if it isn't present in the navigation tree, goes back to a created screen otherwise. Use for implementing multi-screen workflows with parameter passing between screens.
6
4
  */
7
5
  navigate(screenName: string, params?: any): void;
8
- /** Pops the currently shown screen */
6
+ /**
7
+ * Pops the currently shown screen from the navigation stack. Use for implementing back navigation, returning to previous screens, or programmatically navigating backward in multi-screen workflows.
8
+ */
9
9
  pop(): void;
10
- /** Dismisses the extension. */
10
+ /**
11
+ * Dismisses the extension modal completely. Use for closing the modal when workflows are complete, cancelled, or when users need to return to the main POS interface.
12
+ */
11
13
  dismiss(): void;
12
14
  }
13
15
  /**
14
- * Access the navigation API for navigation functionality from a full screen modal.
16
+ * The `NavigationApi` object provides screen-based navigation functionality for modal interfaces. Access these methods through `api.navigation` to manage screen navigation and modal dismissal.
15
17
  */
16
18
  export interface NavigationApi {
17
19
  navigation: NavigationApiContent;
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAEjD,sCAAsC;IACtC,GAAG,IAAI,IAAI,CAAC;IAEZ,+BAA+B;IAC/B,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,oBAAoB,CAAC;CAClC"}
1
+ {"version":3,"file":"navigation-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAEjD;;OAEG;IACH,GAAG,IAAI,IAAI,CAAC;IAEZ;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,oBAAoB,CAAC;CAClC"}
@@ -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
  }
@@ -3,27 +3,22 @@
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)
8
+ * - A relative path that will be appended to your app's [application_url](/docs/apps/build/cli-for-apps/app-configuration)
10
9
  * - A full URL to your app's backend that will be used to return the document to print
11
10
  *
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)
17
- *
18
- * @param src the source URL of the content to print.
19
- * @returns Promise<void> that resolves when content is ready and native print dialog appears.
11
+ * Returns a promise that resolves when content is ready and the native print dialog appears. Use for printing custom documents, receipts, labels, or reports.
20
12
  */
21
13
  print(src: string): Promise<void>;
22
14
  }
23
15
  /**
24
- * Interface for printing
16
+ * The `PrintApi` object provides methods for triggering document printing. Access these methods through `api.print` to initiate print operations with various document types.
25
17
  */
26
18
  export interface PrintApi {
19
+ /**
20
+ * Provides access to print functionality for triggering the native print dialog with custom documents.
21
+ */
27
22
  print: PrintApiContent;
28
23
  }
29
24
  //# sourceMappingURL=print-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/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/render/api/print-api/print-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;OAOG;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/render/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/render/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 `api.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/render/api/product-search-api/product-search-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAEpE,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/render/api/product-search-api/product-search-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,yCAAyC,CAAC;AACpF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAC,OAAO,EAAE,cAAc,EAAC,MAAM,wBAAwB,CAAC;AAEpE,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,26 +1,38 @@
1
1
  import type { RemoteSubscribable } from '@remote-ui/async-subscription';
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'` - Device camera for scanning through the camera interface (available on most mobile POS devices)
16
+ * • `'external'` - External scanner hardware connected using USB, Bluetooth, or other methods (handheld scanners, dedicated devices)
17
+ * • `'embedded'` - Built-in scanning hardware integrated into the POS device (specialized terminals with integrated scanning)
18
+ *
19
+ * Returns `undefined` when no scan source is available. Use to implement source-specific logic or provide feedback about scanning method.
20
+ */
8
21
  source?: ScannerSource;
9
22
  }
10
23
  export interface ScannerApiContent {
11
- /** Creates a subscription to scan events
12
- * Provides an initial value and a callback to subscribe to value changes. Currently supports only one subscription.
13
- * You can utilize `makeStatefulSubscribable` on a `RemoteSubscribable` to implement multiple subscriptions.
14
- * Using `makeStatefulSubscribable` or the corresponding hooks counts as a subscription.
24
+ /**
25
+ * Subscribe to scan events to receive barcode and QR code data when scanned. Supports one subscription at a time. Use for receiving real-time scan results.
15
26
  */
16
27
  scannerDataSubscribable: RemoteSubscribable<ScannerSubscriptionResult>;
17
- /** Creates a subscription to the scanning sources available on the POS device.
18
- * Provides an initial value and a callback to subscribe to value changes. Currently supports only one subscription.
19
- * You can utilize `makeStatefulSubscribable` on a `RemoteSubscribable` to implement multiple subscriptions.
20
- * Using `makeStatefulSubscribable` or the corresponding hooks counts as a subscription.
28
+ /**
29
+ * Subscribe to changes in available scanner sources on the device. Supports one subscription at a time. Use to monitor which scanners are available (camera, external, or embedded).
21
30
  */
22
31
  scannerSourcesSubscribable: RemoteSubscribable<ScannerSource[]>;
23
32
  }
33
+ /**
34
+ * The `ScannerApi` object provides access to scanning functionality and scanner source information. Access these properties through `api.scanner` to monitor scan events and available scanner sources.
35
+ */
24
36
  export interface ScannerApi {
25
37
  scanner: ScannerApiContent;
26
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"scanner-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEtE,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,iBAAiB;IAChC;;;;OAIG;IACH,uBAAuB,EAAE,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;IACvE;;;;OAIG;IACH,0BAA0B,EAAE,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC;CACjE;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/render/api/scanner-api/scanner-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAEtE,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;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,uBAAuB,EAAE,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;IACvE;;OAEG;IACH,0BAA0B,EAAE,kBAAkB,CAAC,aAAa,EAAE,CAAC,CAAC;CACjE;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/render/api/session-api/session-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAEpD,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/render/api/session-api/session-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAEpD,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,5 +1,12 @@
1
1
  import { Storage } from '../../../types/storage';
2
+ /**
3
+ * The Storage API provides persistent local storage for POS UI extensions, allowing you to store, retrieve, and manage extension data
4
+ * that persists across user sessions, device restarts, and extension target state changes. Access these methods through `api.storage`.
5
+ */
2
6
  export interface StorageApi {
7
+ /**
8
+ * Provides access to the persistent local storage methods for storing and retrieving extension data.
9
+ */
3
10
  storage: Storage;
4
11
  }
5
12
  //# sourceMappingURL=storage-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAE/C,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"storage-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,wBAAwB,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,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/render/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/render/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,22 +1,25 @@
1
1
  export type BadgeVariant = 'neutral' | 'critical' | 'warning' | 'success' | 'highlight';
2
2
  export type BadgeStatus = 'empty' | 'partial' | 'complete';
3
- /**
4
- * @property text - The text displayed inside the badge.
5
- * @property variant - The appearance and function of the badge.
6
- * @property status - A circle icon displaying the status of the badge.
7
- * @deprecated status - No longer supported as of POS 10.0.0.
8
- */
9
3
  export interface BadgeProps {
10
4
  /**
11
- * The text displayed inside the badge.
5
+ * The text content displayed within the badge. Keep this concise and descriptive to clearly communicate status or category information. Examples include "Paid," "Pending," "Out of Stock," or "VIP Customer."
12
6
  */
13
7
  text: string;
14
8
  /**
15
- * The appearance and function of the badge.
9
+ * Controls the visual styling and semantic meaning of the badge. Available options:
10
+ * - `'neutral'` - Gray styling for general status information that doesn't require emphasis. Use for general status updates and standard information.
11
+ * - `'critical'` - Red styling for errors, failures, and urgent issues requiring immediate action. Use for urgent issues that need immediate merchant attention.
12
+ * - `'warning'` - Orange styling for important notices that require merchant awareness. Use for situations that need attention but aren't critical.
13
+ * - `'success'` - Green styling for positive states, completed actions, and successful operations. Use for positive outcomes and successful processes.
14
+ * - `'highlight'` - Bright styling for featured content, promotions, or emphasized information. Use for featured content that should stand out.
16
15
  */
17
16
  variant: BadgeVariant;
18
17
  /**
19
- * A circle icon displaying the status of the badge.
18
+ * Displays a circular status indicator alongside the badge text. This property is deprecated as of POS 10.0.0 and should not be used in new implementations. Available options: Use the `variant` property instead to convey status information in new implementations.
19
+ * - `'empty'` - Shows an empty circle indicator
20
+ * - `'partial'` - Shows a partially filled circle indicator
21
+ * - `'complete'` - Shows a completely filled circle indicator
22
+ *
20
23
  * @deprecated No longer supported as of POS 10.0.0.
21
24
  */
22
25
  status?: BadgeStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Badge/Badge.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAE3D;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Badge/Badge.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GACpB,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAC3D,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;OAOG;IACH,OAAO,EAAE,YAAY,CAAC;IAEtB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,eAAO,MAAM,KAAK;;;;CAAsD,CAAC"}
@@ -1,38 +1,37 @@
1
1
  export type BannerVariant = 'confirmation' | 'alert' | 'error' | 'information';
2
- /**
3
- * @property title - The title text displayed on the banner.
4
- * @property variant - The variant type of the banner.
5
- * @property action - The text for the action button.
6
- * @property onPress - The callback function executed when the banner is pressed.
7
- * @property hideAction - Whether to hide the action button.
8
- * @property visible - The visibility state of the banner.
9
- */
10
2
  export interface BannerProps {
11
3
  /**
12
- * The title text displayed on the banner.
4
+ * The title text displayed prominently on the banner. This should be concise and clearly communicate the main message or purpose of the banner to merchants.
13
5
  */
14
6
  title: string;
15
7
  /**
16
- * The variant type of the banner.
8
+ * Controls the visual styling and semantic meaning of the banner. Available options:
9
+ * - `'confirmation'` - Green styling for positive outcomes, successful operations, and completed actions
10
+ * - `'alert'` - Orange styling for important notices and situations that require merchant attention
11
+ * - `'error'` - Red styling for critical errors, failures, and urgent issues requiring immediate action
12
+ * - `'information'` - Blue styling for general information, neutral updates, and helpful tips
17
13
  */
18
14
  variant: BannerVariant;
19
15
  /**
20
- * The text for the action button.
16
+ * The text displayed on the action button within the banner. This provides a clear call-to-action for merchants to address the banner's message. Default is `'Dismiss'` if not specified.
17
+ *
21
18
  * @defaultValue 'Dismiss'
22
19
  */
23
20
  action?: string;
24
21
  /**
25
- * The callback function executed when the banner is pressed.
22
+ * The callback function executed when the banner or its action button is pressed. Use this to handle user interactions such as dismissing the banner, navigating to relevant screens, or triggering specific actions. Default behavior dismisses the banner if not specified.
23
+ *
26
24
  * @defaultValue Callback which dismisses the banner
27
25
  */
28
26
  onPress?: () => void;
29
27
  /**
30
- * Whether to hide the action button.
28
+ * Determines whether the action button is visible on the banner. When set to `true`, the action button is hidden, creating a display-only banner. When `false`, the action button is shown with the specified action text. Default is `true` (action button hidden).
29
+ *
31
30
  * @defaultValue true
32
31
  */
33
32
  hideAction?: boolean;
34
33
  /**
35
- * The visibility state of the banner.
34
+ * Controls the visibility state of the banner. When set to `true`, the banner is displayed. When `false`, it's hidden. Use this to programmatically show or hide banners based on application state or user interactions.
36
35
  */
37
36
  visible: boolean;
38
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Banner/Banner.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}
1
+ {"version":3,"file":"Banner.d.ts","sourceRoot":"","sources":["../../../../../../../src/surfaces/point-of-sale/render/components/Banner/Banner.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC;AAE/E,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;;OAMG;IACH,OAAO,EAAE,aAAa,CAAC;IAEvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,MAAM;;;;CAAyD,CAAC"}