@mondaydotcomorg/atp-compiler
Version:
Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management
38 lines • 1.45 kB
TypeScript
import type { BatchCallInfo } from '../types.js';
export declare enum CheckpointOperation {
SAVE = "save",
LOAD = "load",
CLEAR = "clear"
}
export declare class BatchPauseExecutionError extends Error {
readonly calls: BatchCallInfo[];
readonly batchId: string;
readonly sequenceNumber: number;
constructor(calls: BatchCallInfo[], batchId: string, sequenceNumber: number);
}
export declare class CheckpointError extends Error {
readonly checkpointId: string;
readonly operation: CheckpointOperation;
constructor(message: string, checkpointId: string, operation: CheckpointOperation);
}
export declare class TransformationError extends Error {
readonly code: string;
readonly pattern: string;
readonly location?: {
line: number;
column: number;
};
constructor(message: string, code: string, pattern: string, location?: {
line: number;
column: number;
});
}
export declare class InfiniteLoopDetectionError extends Error {
readonly loopId: string;
readonly iterationCount: number;
constructor(loopId: string, iterationCount: number);
}
export declare function isBatchPauseError(error: unknown): error is BatchPauseExecutionError;
export declare function isCheckpointError(error: unknown): error is CheckpointError;
export declare function isTransformationError(error: unknown): error is TransformationError;
//# sourceMappingURL=errors.d.ts.map