mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
25 lines
680 B
TypeScript
25 lines
680 B
TypeScript
import type {
|
|
LocalArtifactRetentionCandidate,
|
|
LocalArtifactRetentionCursor,
|
|
LocalArtifactRetentionRecord,
|
|
} from '../domain/localArtifactRetention';
|
|
|
|
export const MAX_LOCAL_ARTIFACT_RETENTION_PAGE_SIZE = 64;
|
|
|
|
export interface LocalArtifactRetentionPage {
|
|
candidates: readonly LocalArtifactRetentionCandidate[];
|
|
truncated: boolean;
|
|
nextCursor?: LocalArtifactRetentionCursor;
|
|
}
|
|
|
|
export interface LocalArtifactRetentionRepository {
|
|
list(options: {
|
|
cutoffMs: number;
|
|
cursor?: LocalArtifactRetentionCursor;
|
|
limit: number;
|
|
}): Promise<LocalArtifactRetentionPage>;
|
|
record(
|
|
record: LocalArtifactRetentionRecord,
|
|
): Promise<'inserted' | 'existing'>;
|
|
}
|