@shopify/ui-extensions 2025.7.1 → 2025.7.3

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 (343) 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/checkout/api/announcement/announcement.d.ts +20 -6
  71. package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -1
  72. package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +2 -2
  73. package/build/ts/surfaces/checkout/targets.d.ts +2 -2
  74. package/build/ts/surfaces/checkout/targets.d.ts.map +1 -1
  75. package/build/ts/surfaces/checkout.d.ts +1 -1
  76. package/build/ts/surfaces/checkout.d.ts.map +1 -1
  77. package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts +20 -6
  78. package/build/ts/surfaces/customer-account/api/announcement/announcement.d.ts.map +1 -1
  79. package/build/ts/surfaces/customer-account/api/docs.d.ts +2 -0
  80. package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
  81. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +2 -0
  82. package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
  83. package/build/ts/surfaces/customer-account/api.d.ts +1 -0
  84. package/build/ts/surfaces/customer-account/api.d.ts.map +1 -1
  85. package/build/ts/surfaces/customer-account/targets.d.ts +4 -4
  86. package/build/ts/surfaces/customer-account/targets.d.ts.map +1 -1
  87. package/build/ts/surfaces/point-of-sale/api.d.ts +1 -1
  88. package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
  89. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +3 -0
  90. package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
  91. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +15 -0
  92. package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
  93. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +6 -0
  94. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
  95. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +27 -0
  96. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
  97. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +19 -0
  98. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  99. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +9 -0
  100. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  101. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +19 -0
  102. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  103. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +12 -0
  104. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  105. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +27 -0
  106. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  107. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +14 -0
  108. package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
  109. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts +3 -5
  110. package/build/ts/surfaces/point-of-sale/render/api/action-api/action-api.d.ts.map +1 -1
  111. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts +37 -31
  112. package/build/ts/surfaces/point-of-sale/render/api/cart-api/cart-api.d.ts.map +1 -1
  113. package/build/ts/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.d.ts +2 -2
  114. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts +6 -4
  115. package/build/ts/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.d.ts.map +1 -1
  116. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts +4 -1
  117. package/build/ts/surfaces/point-of-sale/render/api/customer-api/customer-api.d.ts.map +1 -1
  118. package/build/ts/surfaces/point-of-sale/render/api/device-api/device-api.d.ts +4 -4
  119. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts +6 -3
  120. package/build/ts/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.d.ts.map +1 -1
  121. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts +3 -4
  122. package/build/ts/surfaces/point-of-sale/render/api/locale-api/locale-api.d.ts.map +1 -1
  123. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts +9 -7
  124. package/build/ts/surfaces/point-of-sale/render/api/navigation-api/navigation-api.d.ts.map +1 -1
  125. package/build/ts/surfaces/point-of-sale/render/api/order-api/order-api.d.ts +5 -5
  126. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts +7 -12
  127. package/build/ts/surfaces/point-of-sale/render/api/print-api/print-api.d.ts.map +1 -1
  128. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts +5 -2
  129. package/build/ts/surfaces/point-of-sale/render/api/product-api/product-api.d.ts.map +1 -1
  130. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts +24 -10
  131. package/build/ts/surfaces/point-of-sale/render/api/product-search-api/product-search-api.d.ts.map +1 -1
  132. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts +22 -10
  133. package/build/ts/surfaces/point-of-sale/render/api/scanner-api/scanner-api.d.ts.map +1 -1
  134. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts +3 -6
  135. package/build/ts/surfaces/point-of-sale/render/api/session-api/session-api.d.ts.map +1 -1
  136. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts +7 -0
  137. package/build/ts/surfaces/point-of-sale/render/api/storage-api/storage-api.d.ts.map +1 -1
  138. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts +11 -1
  139. package/build/ts/surfaces/point-of-sale/render/api/toast-api/toast-api.d.ts.map +1 -1
  140. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts +12 -9
  141. package/build/ts/surfaces/point-of-sale/render/components/Badge/Badge.d.ts.map +1 -1
  142. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts +13 -14
  143. package/build/ts/surfaces/point-of-sale/render/components/Banner/Banner.d.ts.map +1 -1
  144. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts +9 -15
  145. package/build/ts/surfaces/point-of-sale/render/components/Button/Button.d.ts.map +1 -1
  146. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts +6 -8
  147. package/build/ts/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.d.ts.map +1 -1
  148. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts +8 -11
  149. package/build/ts/surfaces/point-of-sale/render/components/DatePicker/DatePicker.d.ts.map +1 -1
  150. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts +13 -20
  151. package/build/ts/surfaces/point-of-sale/render/components/Dialog/Dialog.d.ts.map +1 -1
  152. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts +10 -8
  153. package/build/ts/surfaces/point-of-sale/render/components/Icon/Icon.d.ts.map +1 -1
  154. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts +10 -5
  155. package/build/ts/surfaces/point-of-sale/render/components/Image/Image.d.ts.map +1 -1
  156. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts +30 -25
  157. package/build/ts/surfaces/point-of-sale/render/components/List/List.d.ts.map +1 -1
  158. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts +1 -4
  159. package/build/ts/surfaces/point-of-sale/render/components/Navigator/Navigator.d.ts.map +1 -1
  160. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts +7 -7
  161. package/build/ts/surfaces/point-of-sale/render/components/NumberField/NumberField.d.ts.map +1 -1
  162. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts +8 -10
  163. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlock.d.ts.map +1 -1
  164. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts +1 -4
  165. package/build/ts/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.d.ts.map +1 -1
  166. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts +0 -4
  167. package/build/ts/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.d.ts.map +1 -1
  168. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts +25 -28
  169. package/build/ts/surfaces/point-of-sale/render/components/PinPad/PinPad.d.ts.map +1 -1
  170. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts +1 -11
  171. package/build/ts/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.d.ts.map +1 -1
  172. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts +1 -5
  173. package/build/ts/surfaces/point-of-sale/render/components/QRCode/QRCode.d.ts.map +1 -1
  174. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts +7 -5
  175. package/build/ts/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.d.ts.map +1 -1
  176. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts +13 -33
  177. package/build/ts/surfaces/point-of-sale/render/components/Screen/Screen.d.ts.map +1 -1
  178. package/build/ts/surfaces/point-of-sale/render/components/SearchBar/SearchBar.d.ts +7 -7
  179. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts +6 -11
  180. package/build/ts/surfaces/point-of-sale/render/components/Section/Section.d.ts.map +1 -1
  181. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts +9 -7
  182. package/build/ts/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  183. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts +9 -6
  184. package/build/ts/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
  185. package/build/ts/surfaces/point-of-sale/render/components/Selectable/Selectable.d.ts +2 -2
  186. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts +22 -22
  187. package/build/ts/surfaces/point-of-sale/render/components/Stack/Stack.d.ts.map +1 -1
  188. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts +8 -6
  189. package/build/ts/surfaces/point-of-sale/render/components/Stepper/Stepper.d.ts.map +1 -1
  190. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts +28 -2
  191. package/build/ts/surfaces/point-of-sale/render/components/Text/Text.d.ts.map +1 -1
  192. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts +1 -6
  193. package/build/ts/surfaces/point-of-sale/render/components/TextArea/TextArea.d.ts.map +1 -1
  194. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts +30 -0
  195. package/build/ts/surfaces/point-of-sale/render/components/TextField/TextField.d.ts.map +1 -1
  196. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts +6 -15
  197. package/build/ts/surfaces/point-of-sale/render/components/Tile/Tile.d.ts.map +1 -1
  198. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts +2 -1
  199. package/build/ts/surfaces/point-of-sale/render/components/TimeField/TimeField.d.ts.map +1 -1
  200. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts +10 -14
  201. package/build/ts/surfaces/point-of-sale/render/components/TimePicker/TimePicker.d.ts.map +1 -1
  202. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts +6 -14
  203. package/build/ts/surfaces/point-of-sale/render/components/shared/BaseTextField.d.ts.map +1 -1
  204. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts +16 -37
  205. package/build/ts/surfaces/point-of-sale/render/components/shared/InputField.d.ts.map +1 -1
  206. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts +31 -42
  207. package/build/ts/surfaces/point-of-sale/render/components/shared/box.d.ts.map +1 -1
  208. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts +12 -0
  209. package/build/ts/surfaces/point-of-sale/render/components/shared/deprecated-types.d.ts.map +1 -1
  210. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts +13 -7
  211. package/build/ts/surfaces/point-of-sale/render/components/shared/inner-layouts.d.ts.map +1 -1
  212. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts +3 -1
  213. package/build/ts/surfaces/point-of-sale/render/components/shared/sizes.d.ts.map +1 -1
  214. package/build/ts/surfaces/point-of-sale/targets.d.ts +138 -0
  215. package/build/ts/surfaces/point-of-sale/targets.d.ts.map +1 -1
  216. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +39 -0
  217. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  218. package/build/ts/surfaces/point-of-sale/types/cart.d.ts +281 -10
  219. package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
  220. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +3 -0
  221. package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
  222. package/build/ts/surfaces/point-of-sale/types/device.d.ts +6 -3
  223. package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
  224. package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +3 -3
  225. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +11 -0
  226. package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -0
  227. package/build/ts/surfaces/point-of-sale/types/money.d.ts +22 -0
  228. package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
  229. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -2
  230. package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
  231. package/build/ts/surfaces/point-of-sale/types/order.d.ts +18 -0
  232. package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
  233. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +2 -3
  234. package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
  235. package/build/ts/surfaces/point-of-sale/types/payment.d.ts +15 -0
  236. package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
  237. package/build/ts/surfaces/point-of-sale/types/product.d.ts +172 -0
  238. package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
  239. package/build/ts/surfaces/point-of-sale/types/session.d.ts +7 -5
  240. package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
  241. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +32 -0
  242. package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
  243. package/build/ts/surfaces/point-of-sale/types/storage.d.ts +13 -11
  244. package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
  245. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +21 -0
  246. package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
  247. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +7 -0
  248. package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
  249. package/build/tsconfig.tsbuildinfo +1 -1
  250. package/package.json +6 -1
  251. package/src/surfaces/checkout/api/announcement/announcement.ts +20 -6
  252. package/src/surfaces/checkout/api/checkout/checkout.ts +2 -2
  253. package/src/surfaces/checkout/targets.ts +2 -2
  254. package/src/surfaces/checkout.ts +1 -1
  255. package/src/surfaces/customer-account/api/announcement/announcement.ts +20 -6
  256. package/src/surfaces/customer-account/api/docs.ts +3 -0
  257. package/src/surfaces/customer-account/api/standard-api/standard-api.ts +2 -0
  258. package/src/surfaces/customer-account/api.ts +2 -0
  259. package/src/surfaces/customer-account/targets.ts +5 -4
  260. package/src/surfaces/point-of-sale/api.ts +1 -0
  261. package/src/surfaces/point-of-sale/event/data/BaseApi.ts +3 -0
  262. package/src/surfaces/point-of-sale/event/data/BaseData.ts +15 -0
  263. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +6 -0
  264. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +27 -0
  265. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +19 -0
  266. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +9 -0
  267. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +19 -0
  268. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +12 -0
  269. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +27 -0
  270. package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +14 -0
  271. package/src/surfaces/point-of-sale/render/api/action-api/action-api.ts +3 -5
  272. package/src/surfaces/point-of-sale/render/api/cart-api/cart-api.ts +37 -31
  273. package/src/surfaces/point-of-sale/render/api/cart-line-item-api/cart-line-item-api.ts +2 -2
  274. package/src/surfaces/point-of-sale/render/api/connectivity-api/connectivity-api.ts +6 -4
  275. package/src/surfaces/point-of-sale/render/api/customer-api/customer-api.ts +4 -1
  276. package/src/surfaces/point-of-sale/render/api/device-api/device-api.ts +4 -4
  277. package/src/surfaces/point-of-sale/render/api/draft-order-api/draft-order-api.ts +6 -3
  278. package/src/surfaces/point-of-sale/render/api/locale-api/locale-api.ts +3 -4
  279. package/src/surfaces/point-of-sale/render/api/navigation-api/navigation-api.ts +9 -7
  280. package/src/surfaces/point-of-sale/render/api/order-api/order-api.ts +5 -5
  281. package/src/surfaces/point-of-sale/render/api/print-api/print-api.ts +7 -12
  282. package/src/surfaces/point-of-sale/render/api/product-api/product-api.ts +5 -2
  283. package/src/surfaces/point-of-sale/render/api/product-search-api/product-search-api.ts +24 -10
  284. package/src/surfaces/point-of-sale/render/api/scanner-api/scanner-api.ts +22 -10
  285. package/src/surfaces/point-of-sale/render/api/session-api/session-api.ts +3 -6
  286. package/src/surfaces/point-of-sale/render/api/storage-api/storage-api.ts +7 -0
  287. package/src/surfaces/point-of-sale/render/api/toast-api/toast-api.ts +11 -1
  288. package/src/surfaces/point-of-sale/render/components/Badge/Badge.ts +12 -10
  289. package/src/surfaces/point-of-sale/render/components/Banner/Banner.ts +13 -14
  290. package/src/surfaces/point-of-sale/render/components/Button/Button.ts +9 -15
  291. package/src/surfaces/point-of-sale/render/components/CameraScanner/CameraScanner.ts +6 -8
  292. package/src/surfaces/point-of-sale/render/components/DatePicker/DatePicker.ts +8 -11
  293. package/src/surfaces/point-of-sale/render/components/Dialog/Dialog.ts +13 -20
  294. package/src/surfaces/point-of-sale/render/components/Icon/Icon.ts +254 -248
  295. package/src/surfaces/point-of-sale/render/components/Image/Image.ts +14 -5
  296. package/src/surfaces/point-of-sale/render/components/List/List.ts +30 -25
  297. package/src/surfaces/point-of-sale/render/components/Navigator/Navigator.ts +1 -4
  298. package/src/surfaces/point-of-sale/render/components/NumberField/NumberField.ts +7 -7
  299. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlock.ts +5 -9
  300. package/src/surfaces/point-of-sale/render/components/POSBlock/POSBlockRow.ts +1 -4
  301. package/src/surfaces/point-of-sale/render/components/POSReceiptBlock/POSReceiptBlock.ts +0 -4
  302. package/src/surfaces/point-of-sale/render/components/PinPad/PinPad.ts +25 -28
  303. package/src/surfaces/point-of-sale/render/components/PrintPreview/PrintPreview.ts +1 -11
  304. package/src/surfaces/point-of-sale/render/components/QRCode/QRCode.ts +1 -5
  305. package/src/surfaces/point-of-sale/render/components/RadioButtonList/RadioButtonList.ts +4 -4
  306. package/src/surfaces/point-of-sale/render/components/Screen/Screen.ts +13 -33
  307. package/src/surfaces/point-of-sale/render/components/SearchBar/SearchBar.ts +7 -7
  308. package/src/surfaces/point-of-sale/render/components/Section/Section.ts +6 -11
  309. package/src/surfaces/point-of-sale/render/components/SectionHeader/SectionHeader.ts +6 -6
  310. package/src/surfaces/point-of-sale/render/components/SegmentedControl/SegmentedControl.ts +9 -7
  311. package/src/surfaces/point-of-sale/render/components/Selectable/Selectable.ts +2 -2
  312. package/src/surfaces/point-of-sale/render/components/Stack/Stack.ts +27 -22
  313. package/src/surfaces/point-of-sale/render/components/Stepper/Stepper.ts +8 -6
  314. package/src/surfaces/point-of-sale/render/components/Text/Text.ts +28 -2
  315. package/src/surfaces/point-of-sale/render/components/TextArea/TextArea.ts +1 -6
  316. package/src/surfaces/point-of-sale/render/components/TextField/TextField.ts +30 -0
  317. package/src/surfaces/point-of-sale/render/components/Tile/Tile.ts +6 -15
  318. package/src/surfaces/point-of-sale/render/components/TimeField/TimeField.ts +2 -1
  319. package/src/surfaces/point-of-sale/render/components/TimePicker/TimePicker.ts +10 -14
  320. package/src/surfaces/point-of-sale/render/components/shared/BaseTextField.ts +6 -14
  321. package/src/surfaces/point-of-sale/render/components/shared/InputField.ts +16 -37
  322. package/src/surfaces/point-of-sale/render/components/shared/box.ts +33 -42
  323. package/src/surfaces/point-of-sale/render/components/shared/deprecated-types.ts +12 -0
  324. package/src/surfaces/point-of-sale/render/components/shared/inner-layouts.ts +14 -7
  325. package/src/surfaces/point-of-sale/render/components/shared/sizes.ts +3 -1
  326. package/src/surfaces/point-of-sale/targets.ts +139 -0
  327. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +39 -0
  328. package/src/surfaces/point-of-sale/types/cart.ts +284 -10
  329. package/src/surfaces/point-of-sale/types/country-code.ts +3 -0
  330. package/src/surfaces/point-of-sale/types/device.ts +6 -3
  331. package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +3 -3
  332. package/src/surfaces/point-of-sale/types/discount-allocation.ts +11 -0
  333. package/src/surfaces/point-of-sale/types/money.ts +23 -0
  334. package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -2
  335. package/src/surfaces/point-of-sale/types/order.ts +18 -0
  336. package/src/surfaces/point-of-sale/types/paginated-result.ts +2 -3
  337. package/src/surfaces/point-of-sale/types/payment.ts +16 -0
  338. package/src/surfaces/point-of-sale/types/product.ts +172 -0
  339. package/src/surfaces/point-of-sale/types/session.ts +7 -5
  340. package/src/surfaces/point-of-sale/types/shipping-line.ts +32 -0
  341. package/src/surfaces/point-of-sale/types/storage.ts +13 -11
  342. package/src/surfaces/point-of-sale/types/tax-line.ts +21 -0
  343. package/src/surfaces/point-of-sale/types/transaction-type.ts +7 -0
@@ -10,34 +10,172 @@ type ReceiptComponents = AnyComponentBuilder<Pick<Components, 'POSReceiptBlock'
10
10
  type BasicComponents = AnyComponentBuilder<Omit<Components, 'Tile'>>;
11
11
  type BlockComponents = AnyComponentBuilder<Pick<Components, 'Badge' | 'Button' | 'DatePicker' | 'Dialog' | 'Icon' | 'Image' | 'POSBlock' | 'POSBlockRow' | 'Stack' | 'Text' | 'TimePicker'>>;
12
12
  export interface ExtensionTargets {
13
+ /**
14
+ * Renders a single interactive tile component on the POS home screen's smart grid. The tile appears once during home screen initialization and remains persistent until navigation occurs. Use this target for high-frequency actions, status displays, or entry points to workflows that merchants need daily.
15
+ *
16
+ * Extensions at this target can dynamically update properties like enabled state and badge values in response to cart changes or device conditions. Tiles typically invoke `api.action.presentModal()` to launch the companion modal for complete workflows.
17
+ */
13
18
  'pos.home.tile.render': RenderExtension<StandardApi<'pos.home.tile.render'> & ActionApi & CartApi, SmartGridComponents>;
19
+ /**
20
+ * Renders a full-screen modal interface launched from smart grid tiles. The modal appears when users tap a companion tile. Use this target for complete workflow experiences that require more space and functionality than the tile interface provides, such as multi-step processes, detailed information displays, or complex user interactions.
21
+ *
22
+ * Extensions at this target support full navigation hierarchies with multiple screens, scroll views, and interactive components to handle sophisticated workflows.
23
+ */
14
24
  'pos.home.modal.render': RenderExtension<ActionTargetApi<'pos.home.modal.render'> & CartApi, BasicComponents>;
25
+ /**
26
+ * Renders a single interactive button component as a menu item in the post-return action menu. Use this target for post-return operations like generating return receipts, processing restocking workflows, or collecting return feedback.
27
+ *
28
+ * Extensions at this target can access the order identifier through the Order API to perform return-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete post-return workflows.
29
+ */
15
30
  'pos.return.post.action.menu-item.render': RenderExtension<StandardApi<'pos.return.post.action.menu-item.render'> & ActionApi & OrderApi, ActionComponents>;
31
+ /**
32
+ * Renders a full-screen modal interface launched from post-return menu items. Use this target for complex post-return workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
33
+ *
34
+ * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
35
+ */
16
36
  'pos.return.post.action.render': RenderExtension<ActionTargetApi<'pos.return.post.action.render'> & OrderApi, BasicComponents>;
37
+ /**
38
+ * Renders a custom information section within the post-return screen. Use this target for displaying supplementary return data like completion status, refund confirmations, or follow-up workflows alongside standard return details.
39
+ *
40
+ * Extensions at this target appear as persistent blocks within the post-return interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex post-return operations.
41
+ */
17
42
  'pos.return.post.block.render': RenderExtension<StandardApi<'pos.return.post.block.render'> & OrderApi & ActionApi, BlockComponents>;
43
+ /**
44
+ * Renders a single interactive button component as a menu item in the post-exchange action menu. Use this target for post-exchange operations like generating exchange receipts, processing restocking workflows, or collecting exchange feedback.
45
+ *
46
+ * Extensions at this target can access the order identifier through the Order API to perform exchange-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete post-exchange workflows.
47
+ */
18
48
  'pos.exchange.post.action.menu-item.render': RenderExtension<StandardApi<'pos.exchange.post.action.menu-item.render'> & ActionApi & OrderApi, ActionComponents>;
49
+ /**
50
+ * Renders a full-screen modal interface launched from post-exchange menu items. Use this target for complex post-exchange workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
51
+ *
52
+ * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
53
+ */
19
54
  'pos.exchange.post.action.render': RenderExtension<ActionTargetApi<'pos.exchange.post.action.render'> & OrderApi, BasicComponents>;
55
+ /**
56
+ * Renders a custom information section within the post-exchange screen. Use this target for displaying supplementary exchange data like completion status, payment adjustments, or follow-up workflows alongside standard exchange details.
57
+ *
58
+ * Extensions at this target appear as persistent blocks within the post-exchange interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex post-exchange operations.
59
+ */
20
60
  'pos.exchange.post.block.render': RenderExtension<StandardApi<'pos.exchange.post.block.render'> & OrderApi & ActionApi, BlockComponents>;
61
+ /**
62
+ * Renders a single interactive button component as a menu item in the post-purchase action menu. Use this target for post-purchase operations like sending receipts, collecting customer feedback, or launching follow-up workflows after completing a sale.
63
+ *
64
+ * Extensions at this target can access the order identifier through the Order API to perform purchase-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete post-purchase workflows.
65
+ */
21
66
  'pos.purchase.post.action.menu-item.render': RenderExtension<StandardApi<'pos.purchase.post.action.menu-item.render'> & ActionApi & OrderApi, ActionComponents>;
67
+ /**
68
+ * Renders a full-screen modal interface launched from post-purchase menu items. Use this target for complex post-purchase workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
69
+ *
70
+ * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
71
+ */
22
72
  'pos.purchase.post.action.render': RenderExtension<ActionTargetApi<'pos.purchase.post.action.render'> & OrderApi, BasicComponents>;
73
+ /**
74
+ * Renders a custom information section within the post-purchase screen. Use this target for displaying supplementary purchase data like completion status, customer feedback prompts, or next-step workflows alongside standard purchase details.
75
+ *
76
+ * Extensions at this target appear as persistent blocks within the post-purchase interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex post-purchase operations.
77
+ */
23
78
  'pos.purchase.post.block.render': RenderExtension<StandardApi<'pos.purchase.post.block.render'> & OrderApi & ActionApi, BlockComponents>;
79
+ /**
80
+ * Renders a single interactive button component as a menu item in the product details action menu. Use this target for product-specific operations like inventory adjustments, product analytics, or integration with external product management systems.
81
+ *
82
+ * Extensions at this target can access the product identifier through the Product API to perform product-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete product workflows.
83
+ */
24
84
  'pos.product-details.action.menu-item.render': RenderExtension<StandardApi<'pos.product-details.action.menu-item.render'> & ActionApi & CartApi & ProductApi, ActionComponents>;
85
+ /**
86
+ * Renders a full-screen modal interface launched from product details menu items. Use this target for complex product workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
87
+ *
88
+ * Extensions at this target have access to product and cart data through the Product API and support workflows with multiple screens, navigation, and interactive components.
89
+ */
25
90
  'pos.product-details.action.render': RenderExtension<ActionTargetApi<'pos.product-details.action.render'> & CartApi & ProductApi, BasicComponents>;
91
+ /**
92
+ * Renders a custom information section within the product details screen. Use this target for displaying supplementary product data like detailed specifications, inventory status, or related product recommendations alongside standard product details.
93
+ *
94
+ * Extensions at this target appear as persistent blocks within the product details interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex product operations.
95
+ */
26
96
  'pos.product-details.block.render': RenderExtension<StandardApi<'pos.product-details.block.render'> & CartApi & ProductApi & ActionApi, BlockComponents>;
97
+ /**
98
+ * Renders a single interactive button component as a menu item in the order details action menu. Use this target for order-specific operations like reprints, refunds, exchanges, or launching fulfillment workflows.
99
+ *
100
+ * Extensions at this target can access the order identifier through the Order API to perform order-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete order workflows.
101
+ */
27
102
  'pos.order-details.action.menu-item.render': RenderExtension<StandardApi<'pos.order-details.action.menu-item.render'> & ActionApi & CartApi & OrderApi, ActionComponents>;
103
+ /**
104
+ * Renders a full-screen modal interface launched from order details menu items. Use this target for complex order workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
105
+ *
106
+ * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
107
+ */
28
108
  'pos.order-details.action.render': RenderExtension<ActionTargetApi<'pos.order-details.action.render'> & CartApi & OrderApi, BasicComponents>;
109
+ /**
110
+ * Renders a custom information section within the order details screen. Use this target for displaying supplementary order data like fulfillment status, tracking numbers, or custom order analytics alongside standard order details.
111
+ *
112
+ * Extensions at this target appear as persistent blocks within the order details interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex order operations.
113
+ */
29
114
  'pos.order-details.block.render': RenderExtension<StandardApi<'pos.order-details.block.render'> & CartApi & OrderApi & ActionApi, BlockComponents>;
115
+ /**
116
+ * Renders a single interactive button component as a menu item in the draft order details action menu. Use this target for draft order-specific operations like sending invoices, updating payment status, or launching custom workflow processes for pending orders.
117
+ *
118
+ * Extensions at this target can access draft order information including order ID, name, and associated customer through the Draft Order API. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete draft order workflows.
119
+ */
30
120
  'pos.draft-order-details.action.menu-item.render': RenderExtension<StandardApi<'pos.draft-order-details.action.menu-item.render'> & ActionApi & CartApi & DraftOrderApi, ActionComponents>;
121
+ /**
122
+ * Renders a full-screen modal interface launched from draft order details menu items. Use this target for complex draft order workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
123
+ *
124
+ * Extensions at this target have access to draft order data through the Draft Order API and support workflows with multiple screens, navigation, and interactive components.
125
+ */
31
126
  'pos.draft-order-details.action.render': RenderExtension<ActionTargetApi<'pos.draft-order-details.action.render'> & DraftOrderApi & CartApi, BasicComponents>;
127
+ /**
128
+ * Renders a custom information section within the draft order details screen. Use this target for displaying supplementary order information like processing status, payment status, or workflow indicators alongside standard draft order details.
129
+ *
130
+ * Extensions at this target appear as persistent blocks within the draft order interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex draft order operations.
131
+ */
32
132
  'pos.draft-order-details.block.render': RenderExtension<StandardApi<'pos.draft-order-details.block.render'> & ActionApi & CartApi & DraftOrderApi, BlockComponents>;
133
+ /**
134
+ * Renders a single interactive button component as a menu item in the customer details action menu. Use this target for customer-specific operations like applying customer discounts, processing loyalty redemptions, or launching profile update workflows.
135
+ *
136
+ * Extensions at this target can access the customer identifier through the Customer API to perform customer-specific operations. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete customer workflows.
137
+ */
33
138
  'pos.customer-details.action.menu-item.render': RenderExtension<StandardApi<'pos.customer-details.action.menu-item.render'> & ActionApi & CartApi & CustomerApi, ActionComponents>;
139
+ /**
140
+ * Renders a full-screen modal interface launched from customer details menu items. Use this target for complex customer workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
141
+ *
142
+ * Extensions at this target have access to customer data through the Customer API and support workflows with multiple screens, navigation, and interactive components.
143
+ */
34
144
  'pos.customer-details.action.render': RenderExtension<ActionTargetApi<'pos.customer-details.action.render'> & CartApi & CustomerApi, BasicComponents>;
145
+ /**
146
+ * Renders a custom information section within the customer details screen. Use this target for displaying supplementary customer data like loyalty status, points balance, or personalized information alongside standard customer details.
147
+ *
148
+ * Extensions at this target appear as persistent blocks within the customer details interface and support interactive elements that can launch modal workflows using `api.action.presentModal()` for more complex customer operations.
149
+ */
35
150
  'pos.customer-details.block.render': RenderExtension<StandardApi<'pos.customer-details.block.render'> & CartApi & CustomerApi & ActionApi, BlockComponents>;
151
+ /**
152
+ * Renders a single interactive button component as a menu item in the cart line item action menu. Use this target for item-specific operations like applying discounts, adding custom properties, or launching verification workflows for individual cart items.
153
+ *
154
+ * Extensions at this target can access detailed line item information including title, quantity, price, discounts, properties, and product metadata through the Cart Line Item API. Menu items typically invoke `api.action.presentModal()` to launch the companion modal for complete workflows.
155
+ */
36
156
  'pos.cart.line-item-details.action.menu-item.render': RenderExtension<StandardApi<'pos.cart.line-item-details.action.menu-item.render'> & ActionApi & CartApi & CartLineItemApi, ActionComponents>;
157
+ /**
158
+ * Renders a full-screen modal interface launched from cart line item menu items. Use this target for complex line item workflows that require forms, multi-step processes, or detailed information displays beyond what a simple button can provide.
159
+ *
160
+ * Extensions at this target have access to detailed line item data through the Cart Line Item API and support workflows with multiple screens, navigation, and interactive components.
161
+ */
37
162
  'pos.cart.line-item-details.action.render': RenderExtension<ActionTargetApi<'pos.cart.line-item-details.action.render'> & ActionApi & CartApi & CartLineItemApi, BasicComponents>;
163
+ /**
164
+ * Renders a custom section in the footer of printed receipts. Use this target for adding contact details, return policies, social media links, or customer engagement elements like survey links or marketing campaigns at the bottom of receipts.
165
+ *
166
+ * Extensions at this target appear in the receipt footer area and support limited components optimized for print formatting, including text content for information display.
167
+ */
38
168
  'pos.receipt-footer.block.render': RenderExtension<{
39
169
  [key: string]: any;
40
170
  } & StorageApi & TransactionCompleteWithReprintData, ReceiptComponents>;
171
+ /**
172
+ * Renders a custom section in the header of printed receipts. Use this target for adding custom branding, logos, promotional messages, or store-specific information at the top of receipts.
173
+ *
174
+ * Extensions at this target appear in the receipt header area and support limited components optimized for print formatting, including text content for information display.
175
+ */
176
+ 'pos.receipt-header.block.render': RenderExtension<{
177
+ [key: string]: any;
178
+ } & StorageApi & TransactionCompleteWithReprintData, ReceiptComponents>;
41
179
  }
42
180
  export type ExtensionTarget = keyof ExtensionTargets;
43
181
  export type ExtensionForExtensionTarget<T extends ExtensionTarget> = ExtensionTargets[T];
@@ -1 +1 @@
1
- {"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/point-of-sale/targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,eAAe,EACf,OAAO,EACP,eAAe,EACf,WAAW,EACX,aAAa,EACb,UAAU,EACV,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,cAAc,CAAC;AACtD,OAAO,KAA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AAe,CAC1E,GAAG,EACH,GAAG,CACJ,GACG,EAAE,GACF,KAAK;CACV,CAAC,MAAM,gBAAgB,CAAC,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;KAC5B,EAAE,IAAI,qBAAqB,GAAG,gBAAgB,CAAC,EAAE,CAAC;CACpD,CAAC;AAEF,KAAK,+BAA+B,CAAC,CAAC,IAAI,CAAC,SAAS,eAAe,CACjE,MAAM,GAAG,EACT,GAAG,CACJ,GACG,GAAG,GACH,KAAK,CAAC;AAEV,KAAK,6CAA6C,CAAC,CAAC,IAClD,CAAC,SAAS,eAAe,CAAC,GAAG,EAAE,MAAM,UAAU,CAAC,GAAG,UAAU,GAAG,KAAK,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,CAAC,EAAE,SAAS,MAAM,gBAAgB,IACjE,+BAA+B,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,mCAAmC,CAC7C,EAAE,SAAS,MAAM,gBAAgB,IAC/B,6CAA6C,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -4,18 +4,57 @@ import type { Payment } from './payment';
4
4
  import type { ShippingLine } from './shipping-line';
5
5
  import type { TaxLine } from './tax-line';
6
6
  import type { TransactionType } from './transaction-type';
7
+ /**
8
+ * Base interface for completed transaction data shared across all transaction types.
9
+ */
7
10
  export interface BaseTransactionComplete {
11
+ /**
12
+ * The transaction type identifier indicating which kind of transaction was completed (for example, `'Sale'` for new purchases, `'Return'` for refunds, `'Exchange'` for item swaps, `'Reprint'` for receipt reprints). This determines the transaction's business logic, receipt format, and inventory impact.
13
+ */
8
14
  transactionType: TransactionType;
15
+ /**
16
+ * The unique numeric identifier for the Shopify order created by this transaction. This ID links the POS transaction to the order record in Shopify's system and can be used for order lookups, tracking, and API operations. Returns `undefined` for transactions that don't create orders (for example, reprints) or when order creation is pending.
17
+ */
9
18
  orderId?: number;
19
+ /**
20
+ * The customer information if this transaction is associated with a customer account. Contains the customer ID for linking to customer records. Returns `undefined` for guest transactions where no customer was selected or when the transaction doesn't support customer association.
21
+ */
10
22
  customer?: Customer;
23
+ /**
24
+ * An array of all discounts applied to this transaction, including cart-level discounts, automatic discounts, and discount codes. Each discount entry contains the discount amount, type, and description. Returns `undefined` or empty array when no discounts were applied. The sum of discount amounts reduces the final transaction total.
25
+ */
11
26
  discounts?: Discount[];
27
+ /**
28
+ * The total tax amount charged on this transaction as a `Money` object. This is the sum of all tax lines and represents the combined tax from all applicable tax jurisdictions and rules. Tax calculations are based on the location, products, customer, and tax settings configured in Shopify.
29
+ */
12
30
  taxTotal: Money;
31
+ /**
32
+ * The subtotal amount before taxes and after discounts are applied, as a `Money` object. This represents the sum of all line item prices (quantity × unit price) minus any discounts, but before tax is added. This is the taxable base amount for most tax calculations.
33
+ */
13
34
  subtotal: Money;
35
+ /**
36
+ * The final total amount the customer pays for this transaction as a `Money` object. This includes all line items, shipping charges, taxes, and accounts for all discounts. This is the amount that must be tendered through payment methods. Calculated as: subtotal + taxTotal + shipping - discounts.
37
+ */
14
38
  grandTotal: Money;
39
+ /**
40
+ * An array of all payment methods used to complete this transaction. Each payment entry specifies the payment type (for example, cash, credit card), amount tendered, and currency. Multiple entries indicate split payments where the customer paid using multiple methods (for example, part cash, part credit card). The sum of all payment amounts should equal or exceed the `grandTotal`.
41
+ */
15
42
  paymentMethods: Payment[];
43
+ /**
44
+ * The remaining balance still owed on this transaction as a `Money` object. Typically `{amount: 0, currency: "USD"}` for fully paid transactions. A positive balance indicates partial payment or layaway scenarios. A negative balance indicates overpayment, where change should be returned to the customer. Calculated as: grandTotal minus sum of all payment amounts.
45
+ */
16
46
  balanceDue: Money;
47
+ /**
48
+ * An array of shipping charges applied to this transaction. Each shipping line represents a shipping method with its price and associated taxes. Multiple entries can exist when different shipping methods apply to different items or when combining shipping with pickup. Returns `undefined` or empty array for transactions with no shipping charges (for example, in-store purchases, digital products).
49
+ */
17
50
  shippingLines?: ShippingLine[];
51
+ /**
52
+ * An array of individual tax lines showing the detailed tax breakdown by jurisdiction and tax type. Each tax line represents a specific tax (for example, state tax, federal tax, VAT, GST) with its rate and calculated amount. Multiple tax lines can apply to a single transaction based on location, product taxability, and tax rules. Returns `undefined` or empty array for tax-exempt transactions or when detailed tax breakdown isn't available.
53
+ */
18
54
  taxLines?: TaxLine[];
55
+ /**
56
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the transaction was executed and completed (for example, `"2024-05-15T14:30:00Z"`). This marks the exact moment the transaction was finalized, payment was processed, and the order was created. Commonly used for transaction history, chronological sorting, reporting, audit trails, and synchronization with external systems.
57
+ */
19
58
  executedAt: string;
20
59
  }
21
60
  //# sourceMappingURL=base-transaction-complete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-transaction-complete.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/base-transaction-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC;IAClB,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B,UAAU,EAAE,KAAK,CAAC;IAClB,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"base-transaction-complete.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/point-of-sale/types/base-transaction-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AACxC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,eAAe,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,cAAc,EAAE,OAAO,EAAE,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}