@shopify/ui-extensions 2026.4.3 → 2026.4.4
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.
- package/build/ts/surfaces/admin/components/Badge.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Button.d.ts +1 -1
- package/build/ts/surfaces/admin/components/Clickable.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Grid.d.ts +12 -12
- package/build/ts/surfaces/admin/components/GridItem.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Image.d.ts +7 -7
- package/build/ts/surfaces/admin/components/Stack.d.ts +11 -11
- package/build/ts/surfaces/admin/components/TextField.d.ts +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +0 -3
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +12 -4
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +12 -4
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +5 -5
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +99 -99
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +1 -18
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data.d.ts +1 -3
- package/build/ts/surfaces/point-of-sale/event/data.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +33 -26
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart.line-item-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.customer-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.draft-order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.exchange.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.home.modal.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.order-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.product-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.purchase.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.return.post.action.render.d.ts +0 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/admin/components/Badge.d.ts +1 -1
- package/src/surfaces/admin/components/Button.d.ts +1 -1
- package/src/surfaces/admin/components/Clickable.d.ts +7 -7
- package/src/surfaces/admin/components/Grid.d.ts +12 -12
- package/src/surfaces/admin/components/GridItem.d.ts +7 -7
- package/src/surfaces/admin/components/Image.d.ts +7 -7
- package/src/surfaces/admin/components/Stack.d.ts +11 -11
- package/src/surfaces/admin/components/TextField.d.ts +1 -1
- package/src/surfaces/admin/components.d.ts +22 -22
- package/src/surfaces/checkout/api/standard/standard.ts +0 -3
- package/src/surfaces/checkout/components/Checkbox.d.ts +12 -4
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +5 -5
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +99 -99
- package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +1 -1
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +0 -2
- package/src/surfaces/point-of-sale/components.d.ts +3 -1
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +1 -1
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +1 -1
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +1 -1
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +1 -1
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +1 -22
- package/src/surfaces/point-of-sale/event/data.ts +1 -10
- package/src/surfaces/point-of-sale/extension-targets.ts +33 -41
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +0 -14
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +0 -45
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +0 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.cart-update.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-complete.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.cash-tracking-session-start.event.observe.d.ts +0 -7
- package/build/ts/surfaces/point-of-sale/targets/pos.transaction-complete.event.observe.d.ts +0 -7
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +0 -14
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +0 -46
|
@@ -5274,6 +5274,8 @@ declare module 'preact' {
|
|
|
5274
5274
|
}
|
|
5275
5275
|
|
|
5276
5276
|
declare const tagName$4 = 's-tab-list';
|
|
5277
|
+
|
|
5278
|
+
/** @publicDocs */
|
|
5277
5279
|
interface TabListJSXProps extends Pick<TabListProps, 'children'> {
|
|
5278
5280
|
children?: ComponentChildren;
|
|
5279
5281
|
}
|
|
@@ -7170,7 +7172,7 @@ interface PosBlock {
|
|
|
7170
7172
|
|
|
7171
7173
|
/**
|
|
7172
7174
|
* Renders a QR code from provided content.
|
|
7173
|
-
* @
|
|
7175
|
+
* @private
|
|
7174
7176
|
*/
|
|
7175
7177
|
interface QrCode {
|
|
7176
7178
|
/** A unique identifier for the element. */
|
|
@@ -5,30 +5,9 @@ import type {ReturnTransactionData} from './ReturnTransactionData';
|
|
|
5
5
|
import type {ReprintReceiptData} from './ReprintReceiptData';
|
|
6
6
|
import {BaseApi} from './BaseApi';
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* The data object provided to receipt targets containing transaction details.
|
|
10
|
-
* @publicDocs
|
|
11
|
-
*/
|
|
12
|
-
export interface TransactionCompleteData extends BaseData, BaseApi {
|
|
13
|
-
/**
|
|
14
|
-
* Provides access to persistent local storage methods for your POS UI extension. Use this to store, retrieve, and manage data that persists across sessions.
|
|
15
|
-
*/
|
|
16
|
-
storage: BaseApi['storage'];
|
|
17
|
-
/**
|
|
18
|
-
* The transaction data, which can be one of the following types:
|
|
19
|
-
* - `SaleTransactionData`: Defines the data structure for completed sale transactions.
|
|
20
|
-
* - `ReturnTransactionData`: Defines the data structure for completed return transactions.
|
|
21
|
-
* - `ExchangeTransactionData`: Defines the data structure for completed exchange transactions.
|
|
22
|
-
*/
|
|
23
|
-
transaction:
|
|
24
|
-
| SaleTransactionData
|
|
25
|
-
| ReturnTransactionData
|
|
26
|
-
| ExchangeTransactionData;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
8
|
/**
|
|
30
9
|
* The data object provided to receipt targets containing transaction details and reprint information.
|
|
31
|
-
* @
|
|
10
|
+
* @private
|
|
32
11
|
*/
|
|
33
12
|
export interface TransactionCompleteWithReprintData extends BaseData, BaseApi {
|
|
34
13
|
/**
|
|
@@ -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,24 +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
|
-
/**
|
|
32
|
-
* @publicDocs
|
|
33
|
-
*/
|
|
34
|
-
export interface EventExtensionTargets {
|
|
35
|
-
'pos.transaction-complete.event.observe': (
|
|
36
|
-
data: TransactionCompleteData,
|
|
37
|
-
) => Promise<BaseOutput>;
|
|
38
|
-
'pos.cash-tracking-session-start.event.observe': (
|
|
39
|
-
data: CashTrackingSessionStartData,
|
|
40
|
-
) => Promise<BaseOutput>;
|
|
41
|
-
'pos.cash-tracking-session-complete.event.observe': (
|
|
42
|
-
data: CashTrackingSessionCompleteData,
|
|
43
|
-
) => Promise<BaseOutput>;
|
|
44
|
-
'pos.cart-update.event.observe': (
|
|
45
|
-
data: CartUpdateEventData,
|
|
46
|
-
) => Promise<BaseOutput>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
23
|
/**
|
|
50
24
|
* @publicDocs
|
|
51
25
|
*/
|
|
@@ -72,7 +46,10 @@ export interface RenderExtensionTargets {
|
|
|
72
46
|
* 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.
|
|
73
47
|
*
|
|
74
48
|
* 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.
|
|
75
|
-
|
|
49
|
+
|
|
50
|
+
*
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
76
53
|
'pos.return.post.action.menu-item.render': RenderExtension<
|
|
77
54
|
StandardApi<'pos.return.post.action.menu-item.render'> &
|
|
78
55
|
ActionApi &
|
|
@@ -83,7 +60,10 @@ export interface RenderExtensionTargets {
|
|
|
83
60
|
* 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.
|
|
84
61
|
*
|
|
85
62
|
* Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
|
|
86
|
-
|
|
63
|
+
|
|
64
|
+
*
|
|
65
|
+
* @private
|
|
66
|
+
*/
|
|
87
67
|
'pos.return.post.action.render': RenderExtension<
|
|
88
68
|
ActionTargetApi<'pos.return.post.action.render'> & OrderApi,
|
|
89
69
|
BasicComponents
|
|
@@ -92,7 +72,10 @@ export interface RenderExtensionTargets {
|
|
|
92
72
|
* 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.
|
|
93
73
|
*
|
|
94
74
|
* 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.
|
|
95
|
-
|
|
75
|
+
|
|
76
|
+
*
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
96
79
|
'pos.return.post.block.render': RenderExtension<
|
|
97
80
|
StandardApi<'pos.return.post.block.render'> & OrderApi & ActionApi,
|
|
98
81
|
BlockExtensionComponents
|
|
@@ -101,7 +84,10 @@ export interface RenderExtensionTargets {
|
|
|
101
84
|
* 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.
|
|
102
85
|
*
|
|
103
86
|
* 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.
|
|
104
|
-
|
|
87
|
+
|
|
88
|
+
*
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
105
91
|
'pos.exchange.post.action.menu-item.render': RenderExtension<
|
|
106
92
|
StandardApi<'pos.exchange.post.action.menu-item.render'> &
|
|
107
93
|
ActionApi &
|
|
@@ -112,7 +98,10 @@ export interface RenderExtensionTargets {
|
|
|
112
98
|
* 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.
|
|
113
99
|
*
|
|
114
100
|
* Extensions at this target have access to order data through the Order API and support workflows with multiple screens, navigation, and interactive components.
|
|
115
|
-
|
|
101
|
+
|
|
102
|
+
*
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
116
105
|
'pos.exchange.post.action.render': RenderExtension<
|
|
117
106
|
ActionTargetApi<'pos.exchange.post.action.render'> & OrderApi,
|
|
118
107
|
BasicComponents
|
|
@@ -121,7 +110,10 @@ export interface RenderExtensionTargets {
|
|
|
121
110
|
* 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.
|
|
122
111
|
*
|
|
123
112
|
* 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.
|
|
124
|
-
|
|
113
|
+
|
|
114
|
+
*
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
125
117
|
'pos.exchange.post.block.render': RenderExtension<
|
|
126
118
|
StandardApi<'pos.exchange.post.block.render'> & OrderApi & ActionApi,
|
|
127
119
|
BlockExtensionComponents
|
|
@@ -319,7 +311,10 @@ export interface RenderExtensionTargets {
|
|
|
319
311
|
* 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.
|
|
320
312
|
*
|
|
321
313
|
* Extensions at this target appear in the receipt footer area and support limited components optimized for print formatting, including text content for information display.
|
|
322
|
-
|
|
314
|
+
|
|
315
|
+
*
|
|
316
|
+
* @private
|
|
317
|
+
*/
|
|
323
318
|
'pos.receipt-footer.block.render': RenderExtension<
|
|
324
319
|
{[key: string]: any} & StorageApi & TransactionCompleteWithReprintData,
|
|
325
320
|
ReceiptComponents
|
|
@@ -328,7 +323,10 @@ export interface RenderExtensionTargets {
|
|
|
328
323
|
* 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.
|
|
329
324
|
*
|
|
330
325
|
* Extensions at this target appear in the receipt header area and support limited components optimized for print formatting, including text content for information display.
|
|
331
|
-
|
|
326
|
+
|
|
327
|
+
*
|
|
328
|
+
* @private
|
|
329
|
+
*/
|
|
332
330
|
'pos.receipt-header.block.render': RenderExtension<
|
|
333
331
|
{[key: string]: any} & StorageApi & TransactionCompleteWithReprintData,
|
|
334
332
|
ReceiptComponents
|
|
@@ -369,18 +367,12 @@ export interface RenderExtensionTargets {
|
|
|
369
367
|
/**
|
|
370
368
|
* @publicDocs
|
|
371
369
|
*/
|
|
372
|
-
export interface ExtensionTargets
|
|
373
|
-
extends RenderExtensionTargets,
|
|
374
|
-
EventExtensionTargets {}
|
|
370
|
+
export interface ExtensionTargets extends RenderExtensionTargets {}
|
|
375
371
|
|
|
376
372
|
/**
|
|
377
373
|
* @publicDocs
|
|
378
374
|
*/
|
|
379
375
|
export type RenderExtensionTarget = keyof RenderExtensionTargets;
|
|
380
|
-
/**
|
|
381
|
-
* @publicDocs
|
|
382
|
-
*/
|
|
383
|
-
export type EventExtensionTarget = keyof EventExtensionTargets;
|
|
384
376
|
/**
|
|
385
377
|
* @publicDocs
|
|
386
378
|
*/
|
|
@@ -1,14 +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
|
-
* @publicDocs
|
|
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
|
-
}
|
|
14
|
-
//# 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;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,QAAQ,EAAE,OAAO;IAC5D;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -1,45 +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
|
-
* @publicDocs
|
|
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
|
-
* 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.
|
|
24
|
-
* @publicDocs
|
|
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
|
-
}
|
|
45
|
-
//# 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;;;GAGG;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;;;GAGG;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,14 +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
|
-
* @publicDocs
|
|
8
|
-
*/
|
|
9
|
-
export interface CartUpdateEventData extends BaseData, BaseApi {
|
|
10
|
-
/**
|
|
11
|
-
* 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.
|
|
12
|
-
*/
|
|
13
|
-
cart: Cart;
|
|
14
|
-
}
|
|
@@ -1,46 +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
|
-
* @publicDocs
|
|
7
|
-
*/
|
|
8
|
-
export interface CashTrackingSessionStartData extends BaseData, BaseApi {
|
|
9
|
-
/**
|
|
10
|
-
* 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.
|
|
11
|
-
*/
|
|
12
|
-
cashTrackingSessionStart: {
|
|
13
|
-
/**
|
|
14
|
-
* 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.
|
|
15
|
-
*/
|
|
16
|
-
id: number;
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
*/
|
|
20
|
-
openingTime: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 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.
|
|
26
|
-
* @publicDocs
|
|
27
|
-
*/
|
|
28
|
-
export interface CashTrackingSessionCompleteData extends BaseData, BaseApi {
|
|
29
|
-
/**
|
|
30
|
-
* 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.
|
|
31
|
-
*/
|
|
32
|
-
cashTrackingSessionComplete: {
|
|
33
|
-
/**
|
|
34
|
-
* 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.
|
|
35
|
-
*/
|
|
36
|
-
id: number;
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
*/
|
|
40
|
-
openingTime: string;
|
|
41
|
-
/**
|
|
42
|
-
* 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.
|
|
43
|
-
*/
|
|
44
|
-
closingTime: string;
|
|
45
|
-
};
|
|
46
|
-
}
|