@searsuite/sear-domain-transaction
The correctly spelled public entry point for SearSuite transaction contracts.
- functioncreateTransaction
-
createTransaction<OperationType>(pluginKey: TransactionPluginKey, operations?: readonly OperationType[], meta?: Readonly<Record<string, unknown>>): Transaction<OperationType>Creates a transaction with copied operations and metadata.
- classTransaction
-
class Transaction<OperationType>Transaction public API.
property readonly meta: Record<string, unknown>Metadata attached to Transaction.
property readonly operations: OperationType[]Operations carried by Transaction.
property readonly pluginKey: TransactionPluginKeyStable plugin key for Transaction.
method addOperation(operations: OperationType[]): voidAdds the operation.
method getMeta<T>(key: string): T | undefinedReturns the meta.
method setMeta(key: string, value: unknown): thisUpdates the meta.
- variableTRANSACTION_ORIGIN_META_KEY
-
TRANSACTION_ORIGIN_META_KEY: "transaction:origin"Metadata key describing where a transaction originated.
- enumTransactionOrigin
-
Stable transaction origins observed by cross-cutting runtime features.
- interfaceTransactionPluginKey
-
Stable owner key accepted by a transaction.
property readonly key: stringString identity for the plugin or state owner receiving this transaction.
No matching API entries.