@shopify/ui-extensions 2026.1.4 → 2026.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
  2. package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
  3. package/build/ts/surfaces/admin/components/Clickable.d.ts +7 -7
  4. package/build/ts/surfaces/admin/components/Grid.d.ts +12 -12
  5. package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -7
  6. package/build/ts/surfaces/admin/components/Image.d.ts +7 -7
  7. package/build/ts/surfaces/admin/components/Stack.d.ts +11 -11
  8. package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
  9. package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -3
  10. package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
  11. package/build/ts/surfaces/checkout/components/Checkbox.d.ts +12 -4
  12. package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +12 -4
  13. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
  14. package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
  15. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +2 -0
  16. package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
  17. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +2 -0
  18. package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
  19. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +2 -0
  20. package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
  21. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +2 -0
  22. package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
  23. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +1 -16
  24. package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
  25. package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -3
  26. package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
  27. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +33 -20
  28. package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
  29. package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +0 -1
  30. package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +0 -1
  31. package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +0 -1
  32. package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +0 -1
  33. package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +0 -1
  34. package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +0 -1
  35. package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +0 -1
  36. package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +0 -1
  37. package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.render.d.ts +0 -1
  38. package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +0 -1
  39. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +2 -0
  40. package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
  41. package/build/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +1 -1
  43. package/src/surfaces/admin/components/Badge.d.ts +1 -1
  44. package/src/surfaces/admin/components/Button.d.ts +1 -1
  45. package/src/surfaces/admin/components/Clickable.d.ts +7 -7
  46. package/src/surfaces/admin/components/Grid.d.ts +12 -12
  47. package/src/surfaces/admin/components/GridItem.d.ts +7 -7
  48. package/src/surfaces/admin/components/Image.d.ts +7 -7
  49. package/src/surfaces/admin/components/Stack.d.ts +11 -11
  50. package/src/surfaces/admin/components/TextField.d.ts +1 -1
  51. package/src/surfaces/admin/components.d.ts +22 -22
  52. package/src/surfaces/checkout/api/standard/standard.ts +0 -3
  53. package/src/surfaces/checkout/components/Checkbox.d.ts +12 -4
  54. package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -2
  55. package/src/surfaces/point-of-sale/components.d.ts +1 -1
  56. package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +2 -0
  57. package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +2 -0
  58. package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +2 -0
  59. package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +2 -0
  60. package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +1 -20
  61. package/src/surfaces/point-of-sale/event/data.ts +1 -10
  62. package/src/surfaces/point-of-sale/extension-targets.ts +33 -35
  63. package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +2 -0
  64. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +0 -13
  65. package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +0 -1
  66. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +0 -43
  67. package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +0 -1
  68. package/build/ts/surfaces/point-of-sale/targets/pos.cart-update.event.observe.d.ts +0 -7
  69. package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-complete.event.observe.d.ts +0 -7
  70. package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-start.event.observe.d.ts +0 -7
  71. package/build/ts/surfaces/point-of-sale/targets/pos.transaction-complete.event.observe.d.ts +0 -7
  72. package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +0 -13
  73. package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +0 -44
@@ -22,8 +22,6 @@ export type StandardComponents =
22
22
  | 'Page'
23
23
  | 'POSBlock'
24
24
  | 'PosBlock' // Case is important in 2025-10
25
- | 'QRCode'
26
- | 'QrCode' // Case is important in 2025-10
27
25
  | 'Route'
28
26
  | 'Router'
29
27
  | 'ScrollBox'
@@ -7213,7 +7213,7 @@ interface PosBlock {
7213
7213
  /**
7214
7214
  * The POS block component renders a QR code when the block is used within a receipt target.
7215
7215
  *
7216
- * @publicDocs
7216
+ * @private
7217
7217
  */
7218
7218
  interface QrCode {
7219
7219
  /** A unique identifier for the element. */
@@ -2,6 +2,8 @@ import {BaseTransactionComplete} from '../../types/base-transaction-complete';
2
2
  import {LineItem} from '../../types/cart';
3
3
 
4
4
  /**
5
+ *
6
+ * @private
5
7
  * Defines the data structure for completed exchange transactions.
6
8
  */
7
9
  export interface ExchangeTransactionData extends BaseTransactionComplete {
@@ -3,6 +3,8 @@ import {LineItem} from '../../types/cart';
3
3
  import {OrderLineItem} from '../../types/order';
4
4
 
5
5
  /**
6
+ *
7
+ * @private
6
8
  * Defines the data structure for receipt reprint requests.
7
9
  */
8
10
  export interface ReprintReceiptData extends BaseTransactionComplete {
@@ -2,6 +2,8 @@ import {BaseTransactionComplete} from '../../types/base-transaction-complete';
2
2
  import {LineItem} from '../../types/cart';
3
3
 
4
4
  /**
5
+ *
6
+ * @private
5
7
  * Defines the data structure for completed return transactions.
6
8
  */
7
9
  export interface ReturnTransactionData extends BaseTransactionComplete {
@@ -2,6 +2,8 @@ import {BaseTransactionComplete} from '../../types/base-transaction-complete';
2
2
  import {LineItem} from '../../types/cart';
3
3
 
4
4
  /**
5
+ *
6
+ * @private
5
7
  * Defines the data structure for completed sale transactions.
6
8
  */
7
9
  export interface SaleTransactionData extends BaseTransactionComplete {
@@ -6,26 +6,7 @@ import type {ReprintReceiptData} from './ReprintReceiptData';
6
6
  import {BaseApi} from './BaseApi';
7
7
 
8
8
  /**
9
- * The data object provided to receipt targets containing transaction details.
10
- */
11
- export interface TransactionCompleteData extends BaseData, BaseApi {
12
- /**
13
- * Provides access to persistent local storage methods for your POS UI extension. Use this to store, retrieve, and manage data that persists across sessions.
14
- */
15
- storage: BaseApi['storage'];
16
- /**
17
- * The transaction data, which can be one of the following types:
18
- * - `SaleTransactionData`: Defines the data structure for completed sale transactions.
19
- * - `ReturnTransactionData`: Defines the data structure for completed return transactions.
20
- * - `ExchangeTransactionData`: Defines the data structure for completed exchange transactions.
21
- */
22
- transaction:
23
- | SaleTransactionData
24
- | ReturnTransactionData
25
- | ExchangeTransactionData;
26
- }
27
-
28
- /**
9
+ * @private
29
10
  * The data object provided to receipt targets containing transaction details and reprint information.
30
11
  */
31
12
  export interface TransactionCompleteWithReprintData extends BaseData, BaseApi {
@@ -1,16 +1,7 @@
1
1
  export type {BaseData} from './data/BaseData';
2
2
  export type {BaseApi} from './data/BaseApi';
3
3
  export type {ReprintReceiptData} from './data/ReprintReceiptData';
4
- export type {
5
- TransactionCompleteData,
6
- TransactionCompleteWithReprintData,
7
- } from './data/TransactionCompleteData';
8
- export type {
9
- CashTrackingSessionCompleteData,
10
- CashTrackingSessionStartData,
11
- } from './data/CashTrackingSessionData';
12
-
13
- export type {CartUpdateEventData} from './data/CartUpdateEventData';
4
+ export type {TransactionCompleteWithReprintData} from './data/TransactionCompleteData';
14
5
 
15
6
  export type {Device} from '../types/device';
16
7
  export type {Money} from '../types/money';
@@ -1,11 +1,3 @@
1
- import {BaseOutput} from './event/output';
2
- import {
3
- CashTrackingSessionStartData,
4
- CashTrackingSessionCompleteData,
5
- } from './event/data/CashTrackingSessionData';
6
- import {TransactionCompleteData} from './event/data/TransactionCompleteData';
7
- import {CartUpdateEventData} from './event/data/CartUpdateEventData';
8
-
9
1
  import type {RenderExtension} from '../../extension';
10
2
 
11
3
  import type {
@@ -28,21 +20,6 @@ import type {ReceiptComponents} from './components/targets/ReceiptComponents';
28
20
  import type {BasicComponents} from './components/targets/BasicComponents';
29
21
  import type {TransactionCompleteWithReprintData} from './event/data';
30
22
 
31
- export interface EventExtensionTargets {
32
- 'pos.transaction-complete.event.observe': (
33
- data: TransactionCompleteData,
34
- ) => Promise<BaseOutput>;
35
- 'pos.cash-tracking-session-start.event.observe': (
36
- data: CashTrackingSessionStartData,
37
- ) => Promise<BaseOutput>;
38
- 'pos.cash-tracking-session-complete.event.observe': (
39
- data: CashTrackingSessionCompleteData,
40
- ) => Promise<BaseOutput>;
41
- 'pos.cart-update.event.observe': (
42
- data: CartUpdateEventData,
43
- ) => Promise<BaseOutput>;
44
- }
45
-
46
23
  export interface RenderExtensionTargets {
47
24
  /**
48
25
  * 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.
@@ -66,7 +43,10 @@ export interface RenderExtensionTargets {
66
43
  * 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.
67
44
  *
68
45
  * Extensions at this target can access the order identifier through the Order API to perform return-specific operations. Menu items typically invoke `shopify.action.presentModal()` to launch the companion modal for complete post-return workflows.
69
- */
46
+
47
+ *
48
+ * @private
49
+ */
70
50
  'pos.return.post.action.menu-item.render': RenderExtension<
71
51
  StandardApi<'pos.return.post.action.menu-item.render'> &
72
52
  ActionApi &
@@ -77,7 +57,10 @@ export interface RenderExtensionTargets {
77
57
  * 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.
78
58
  *
79
59
  * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
80
- */
60
+
61
+ *
62
+ * @private
63
+ */
81
64
  'pos.return.post.action.render': RenderExtension<
82
65
  ActionTargetApi<'pos.return.post.action.render'> & OrderApi,
83
66
  BasicComponents
@@ -86,7 +69,10 @@ export interface RenderExtensionTargets {
86
69
  * 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.
87
70
  *
88
71
  * Extensions at this target appear as persistent blocks within the post-return interface and support interactive elements that can launch modal workflows using `shopify.action.presentModal()` for more complex post-return operations.
89
- */
72
+
73
+ *
74
+ * @private
75
+ */
90
76
  'pos.return.post.block.render': RenderExtension<
91
77
  StandardApi<'pos.return.post.block.render'> & OrderApi & ActionApi,
92
78
  BlockExtensionComponents
@@ -95,7 +81,10 @@ export interface RenderExtensionTargets {
95
81
  * 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.
96
82
  *
97
83
  * Extensions at this target can access the order identifier through the Order API to perform exchange-specific operations. Menu items typically invoke `shopify.action.presentModal()` to launch the companion modal for complete post-exchange workflows.
98
- */
84
+
85
+ *
86
+ * @private
87
+ */
99
88
  'pos.exchange.post.action.menu-item.render': RenderExtension<
100
89
  StandardApi<'pos.exchange.post.action.menu-item.render'> &
101
90
  ActionApi &
@@ -106,7 +95,10 @@ export interface RenderExtensionTargets {
106
95
  * 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.
107
96
  *
108
97
  * Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
109
- */
98
+
99
+ *
100
+ * @private
101
+ */
110
102
  'pos.exchange.post.action.render': RenderExtension<
111
103
  ActionTargetApi<'pos.exchange.post.action.render'> & OrderApi,
112
104
  BasicComponents
@@ -115,7 +107,10 @@ export interface RenderExtensionTargets {
115
107
  * 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.
116
108
  *
117
109
  * Extensions at this target appear as persistent blocks within the post-exchange interface and support interactive elements that can launch modal workflows using `shopify.action.presentModal()` for more complex post-exchange operations.
118
- */
110
+
111
+ *
112
+ * @private
113
+ */
119
114
  'pos.exchange.post.block.render': RenderExtension<
120
115
  StandardApi<'pos.exchange.post.block.render'> & OrderApi & ActionApi,
121
116
  BlockExtensionComponents
@@ -313,7 +308,10 @@ export interface RenderExtensionTargets {
313
308
  * 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.
314
309
  *
315
310
  * Extensions at this target appear in the receipt footer area and support limited components optimized for print formatting, including text content for information display.
316
- */
311
+
312
+ *
313
+ * @private
314
+ */
317
315
  'pos.receipt-footer.block.render': RenderExtension<
318
316
  {[key: string]: any} & StorageApi & TransactionCompleteWithReprintData,
319
317
  ReceiptComponents
@@ -322,7 +320,10 @@ export interface RenderExtensionTargets {
322
320
  * 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.
323
321
  *
324
322
  * Extensions at this target appear in the receipt header area and support limited components optimized for print formatting, including text content for information display.
325
- */
323
+
324
+ *
325
+ * @private
326
+ */
326
327
  'pos.receipt-header.block.render': RenderExtension<
327
328
  {[key: string]: any} & StorageApi & TransactionCompleteWithReprintData,
328
329
  ReceiptComponents
@@ -360,10 +361,7 @@ export interface RenderExtensionTargets {
360
361
  >;
361
362
  }
362
363
 
363
- export interface ExtensionTargets
364
- extends RenderExtensionTargets,
365
- EventExtensionTargets {}
364
+ export interface ExtensionTargets extends RenderExtensionTargets {}
366
365
 
367
366
  export type RenderExtensionTarget = keyof RenderExtensionTargets;
368
- export type EventExtensionTarget = keyof EventExtensionTargets;
369
367
  export type ExtensionTarget = keyof ExtensionTargets;
@@ -6,6 +6,8 @@ import type {TaxLine} from './tax-line';
6
6
  import type {TransactionType} from './transaction-type';
7
7
 
8
8
  /**
9
+ *
10
+ * @private
9
11
  * Base interface for completed transaction data shared across all transaction types.
10
12
  */
11
13
  export interface BaseTransactionComplete {
@@ -1,13 +0,0 @@
1
- import { BaseData } from './BaseData';
2
- import { Cart } from '../../api';
3
- import { BaseApi } from './BaseApi';
4
- /**
5
- * The data object provided to cart update extension targets. Contains the current cart state along with device, session, and connectivity information. This data is passed to extensions whenever the cart changes, enabling real-time cart monitoring and cart-based business logic.
6
- */
7
- export interface CartUpdateEventData extends BaseData, BaseApi {
8
- /**
9
- * The complete current `Cart` object containing all cart data including line items with products and quantities, pricing totals (subtotal, tax, grand total), associated customer information, applied discounts, custom properties, and editability state. This represents the cart's state at the moment the extension is triggered, reflecting all recent changes. The cart object is read-only in this context—modifications should be made through the Cart API methods.
10
- */
11
- cart: Cart;
12
- }
13
- //# sourceMappingURL=CartUpdateEventData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CartUpdateEventData.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,QAAQ,EAAE,OAAO;IAC5D;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ"}
@@ -1,43 +0,0 @@
1
- import { BaseData } from './BaseData';
2
- import { BaseApi } from './BaseApi';
3
- /**
4
- * The data object provided to cash tracking session start extension targets. Contains information about a newly opened cash tracking session along with device and session context.
5
- */
6
- export interface CashTrackingSessionStartData extends BaseData, BaseApi {
7
- /**
8
- * The cash tracking session start data containing the session identifier and the time when the session began. Cash tracking sessions represent the period during which a cash drawer is open and being used for transactions, typically corresponding to a staff member's shift.
9
- */
10
- cashTrackingSessionStart: {
11
- /**
12
- * The unique numeric identifier for this cash tracking session. This ID distinguishes this session from other cash tracking sessions and can be used for session-specific operations, reporting, or linking transactions to sessions. The ID is assigned when the session opens and remains constant until the session closes.
13
- */
14
- id: number;
15
- /**
16
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was opened and cash drawer operations began (for example, `"2024-05-15T09:00:00Z"`). This marks the start of the staff member's shift or cash handling period. Commonly used for calculating session duration, shift reporting, or determining which transactions belong to which session.
17
- */
18
- openingTime: string;
19
- };
20
- }
21
- /**
22
- * The data object provided to cash tracking session complete extension targets. Contains information about a completed cash tracking session including when it opened and closed, along with device and session context.
23
- */
24
- export interface CashTrackingSessionCompleteData extends BaseData, BaseApi {
25
- /**
26
- * The cash tracking session complete data containing the session identifier, opening time, and closing time. This represents the full lifecycle of a cash drawer session from opening to closing.
27
- */
28
- cashTrackingSessionComplete: {
29
- /**
30
- * The unique numeric identifier for this cash tracking session. This ID matches the ID from when the session was opened and can be used to correlate session start and end events, retrieve session-specific data, or link all transactions that occurred during this session.
31
- */
32
- id: number;
33
- /**
34
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was opened and began (for example, `"2024-05-15T09:00:00Z"`). This marks the start of the session and can be compared with `closingTime` to calculate the total session duration or shift length.
35
- */
36
- openingTime: string;
37
- /**
38
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was closed and ended (for example, `"2024-05-15T17:30:00Z"`). This marks when the staff member completed their shift, closed out the cash drawer, and finalized the session. The time between `openingTime` and `closingTime` represents the active session duration. Commonly used for shift reporting, calculating hours worked, or determining the timeframe for session-specific transactions.
39
- */
40
- closingTime: string;
41
- };
42
- }
43
- //# sourceMappingURL=CashTrackingSessionData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CashTrackingSessionData.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,QAAQ,EAAE,OAAO;IACrE;;OAEG;IACH,wBAAwB,EAAE;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,QAAQ,EAAE,OAAO;IACxE;;OAEG;IACH,2BAA2B,EAAE;QAC3B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QACX;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -1,7 +0,0 @@
1
- import type { ExtensionTargets } from '../extension-targets';
2
- import '../globals';
3
-
4
- type Target = ExtensionTargets['pos.cart-update.event.observe'];
5
- export type Api = Target['api'];
6
- export type Output = Target['output'];
7
-
@@ -1,7 +0,0 @@
1
- import type { ExtensionTargets } from '../extension-targets';
2
- import '../globals';
3
-
4
- type Target = ExtensionTargets['pos.cash-tracking-session-complete.event.observe'];
5
- export type Api = Target['api'];
6
- export type Output = Target['output'];
7
-
@@ -1,7 +0,0 @@
1
- import type { ExtensionTargets } from '../extension-targets';
2
- import '../globals';
3
-
4
- type Target = ExtensionTargets['pos.cash-tracking-session-start.event.observe'];
5
- export type Api = Target['api'];
6
- export type Output = Target['output'];
7
-
@@ -1,7 +0,0 @@
1
- import type { ExtensionTargets } from '../extension-targets';
2
- import '../globals';
3
-
4
- type Target = ExtensionTargets['pos.transaction-complete.event.observe'];
5
- export type Api = Target['api'];
6
- export type Output = Target['output'];
7
-
@@ -1,13 +0,0 @@
1
- import {BaseData} from './BaseData';
2
- import {Cart} from '../../api';
3
- import {BaseApi} from './BaseApi';
4
-
5
- /**
6
- * The data object provided to cart update extension targets. Contains the current cart state along with device, session, and connectivity information. This data is passed to extensions whenever the cart changes, enabling real-time cart monitoring and cart-based business logic.
7
- */
8
- export interface CartUpdateEventData extends BaseData, BaseApi {
9
- /**
10
- * The complete current `Cart` object containing all cart data including line items with products and quantities, pricing totals (subtotal, tax, grand total), associated customer information, applied discounts, custom properties, and editability state. This represents the cart's state at the moment the extension is triggered, reflecting all recent changes. The cart object is read-only in this context—modifications should be made through the Cart API methods.
11
- */
12
- cart: Cart;
13
- }
@@ -1,44 +0,0 @@
1
- import {BaseData} from './BaseData';
2
- import {BaseApi} from './BaseApi';
3
-
4
- /**
5
- * The data object provided to cash tracking session start extension targets. Contains information about a newly opened cash tracking session along with device and session context.
6
- */
7
- export interface CashTrackingSessionStartData extends BaseData, BaseApi {
8
- /**
9
- * The cash tracking session start data containing the session identifier and the time when the session began. Cash tracking sessions represent the period during which a cash drawer is open and being used for transactions, typically corresponding to a staff member's shift.
10
- */
11
- cashTrackingSessionStart: {
12
- /**
13
- * The unique numeric identifier for this cash tracking session. This ID distinguishes this session from other cash tracking sessions and can be used for session-specific operations, reporting, or linking transactions to sessions. The ID is assigned when the session opens and remains constant until the session closes.
14
- */
15
- id: number;
16
- /**
17
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was opened and cash drawer operations began (for example, `"2024-05-15T09:00:00Z"`). This marks the start of the staff member's shift or cash handling period. Commonly used for calculating session duration, shift reporting, or determining which transactions belong to which session.
18
- */
19
- openingTime: string;
20
- };
21
- }
22
-
23
- /**
24
- * The data object provided to cash tracking session complete extension targets. Contains information about a completed cash tracking session including when it opened and closed, along with device and session context.
25
- */
26
- export interface CashTrackingSessionCompleteData extends BaseData, BaseApi {
27
- /**
28
- * The cash tracking session complete data containing the session identifier, opening time, and closing time. This represents the full lifecycle of a cash drawer session from opening to closing.
29
- */
30
- cashTrackingSessionComplete: {
31
- /**
32
- * The unique numeric identifier for this cash tracking session. This ID matches the ID from when the session was opened and can be used to correlate session start and end events, retrieve session-specific data, or link all transactions that occurred during this session.
33
- */
34
- id: number;
35
- /**
36
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was opened and began (for example, `"2024-05-15T09:00:00Z"`). This marks the start of the session and can be compared with `closingTime` to calculate the total session duration or shift length.
37
- */
38
- openingTime: string;
39
- /**
40
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp when the cash tracking session was closed and ended (for example, `"2024-05-15T17:30:00Z"`). This marks when the staff member completed their shift, closed out the cash drawer, and finalized the session. The time between `openingTime` and `closingTime` represents the active session duration. Commonly used for shift reporting, calculating hours worked, or determining the timeframe for session-specific transactions.
41
- */
42
- closingTime: string;
43
- };
44
- }