Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,46 @@ import type {BasicComponents} from './components/targets/BasicComponents';
import type {TransactionCompleteWithReprintData} from './event/data';

export interface EventExtensionTargets {
/**
* Fires when a transaction completes successfully.
*
* @deprecated Deprecated as of `2025-10`. Use the
* [`pos.app.ready.data` target](/docs/api/pos-ui-extensions/{API_VERSION}/targets/pos-app-ready-data) with
* `window.addEventListener('transactioncomplete', callback)` instead.
* @private
*/
Comment thread
fatbattk marked this conversation as resolved.
'pos.transaction-complete.event.observe': (
data: TransactionCompleteData,
) => Promise<BaseOutput>;
/**
* Fires when a cash tracking session starts.
*
* @deprecated Deprecated as of `2025-10`. Use the
* [`pos.app.ready.data` target](/docs/api/pos-ui-extensions/{API_VERSION}/targets/pos-app-ready-data) with
* `window.addEventListener('cashtrackingsessionstart', callback)` instead.
* @private
*/
'pos.cash-tracking-session-start.event.observe': (
data: CashTrackingSessionStartData,
) => Promise<BaseOutput>;
/**
* Fires when a cash tracking session completes.
*
* @deprecated Deprecated as of `2025-10`. Use the
* [`pos.app.ready.data` target](/docs/api/pos-ui-extensions/{API_VERSION}/targets/pos-app-ready-data) with
* `window.addEventListener('cashtrackingsessioncomplete', callback)` instead.
* @private
*/
'pos.cash-tracking-session-complete.event.observe': (
data: CashTrackingSessionCompleteData,
) => Promise<BaseOutput>;
/**
* Fires when the cart is updated.
*
* @deprecated Deprecated as of `2025-10`. Use `api.cart.current.subscribe()` on the
* [`pos.app.ready.data` target](/docs/api/pos-ui-extensions/{API_VERSION}/targets/pos-app-ready-data).
* @private
*/
'pos.cart-update.event.observe': (
data: CartUpdateEventData,
) => Promise<BaseOutput>;
Expand Down
Loading