@altostra/core
Version:
Core library for shared types and logic
22 lines (21 loc) • 1.08 kB
TypeScript
import type { Integer, NaturalNumber } from "../../common/CustomTypes/Numerics";
import type { ConnectionBase } from "./Common";
export declare type StreamTriggerType = 'connection.stream.trigger';
export interface StreamTrigger extends ConnectionBase {
type: StreamTriggerType;
startingPosition: StartingPosition;
batchSize?: NaturalNumber;
maximumBatchingWindowInSeconds?: NaturalNumber | 0;
maximumRecordAgeInSeconds?: Integer;
maximumRetryAttempts?: Integer;
parallelizationFactor?: NaturalNumber;
tumblingWindowInSeconds?: NaturalNumber;
}
export declare type StartingPosition = 'latest' | 'trim-horizon';
export declare const MAX_BATCH_SIZE = 10000;
export declare const MAX_RECORD_AGE_IN_SECONDS = 604800;
export declare const MAX_BATCHING_WINDOW_IN_SECONDS = 300;
export declare const MAX_RETRY_ATTEMPTS = 10000;
export declare const MAX_PARALLELIZATION_FACTOR = 10;
export declare const MAX_TUMBLING_WINDOW_IN_SECONDS = 900;
export declare const isStreamTrigger: import("@altostra/type-validations").ObjectOfTypeValidation<StreamTrigger>;