arvo-xstate
Version:
This package allows you to use xstate Actors and State Machines to act as orchestrators in an Arvo Event Driven System
17 lines (16 loc) • 622 B
TypeScript
import { type ArvoEvent, ViolationError } from 'arvo-core';
export declare enum TransactionViolationCause {
READ_FAILURE = "READ_MACHINE_MEMORY_FAILURE",
LOCK_FAILURE = "LOCK_MACHINE_MEMORY_FAILURE",
WRITE_FAILURE = "WRITE_MACHINE_MEMORY_FAILURE",
LOCK_UNACQUIRED = "LOCK_UNACQUIRED",
INVALID_SUBJECT = "INVALID_SUBJECT"
}
export declare class TransactionViolation extends ViolationError<'OrchestratorTransaction'> {
readonly cause: TransactionViolationCause;
constructor(param: {
cause: TransactionViolationCause;
message: string;
initiatingEvent: ArvoEvent;
});
}