feat(jobs): paginate jobs list
This commit is contained in:
@@ -36,6 +36,13 @@ export type CursorPage<T> = {
|
||||
results: T[];
|
||||
};
|
||||
|
||||
export type LimitOffsetPage<T> = {
|
||||
count: number;
|
||||
next: string | null;
|
||||
previous: string | null;
|
||||
results: T[];
|
||||
};
|
||||
|
||||
export type JobStats = {
|
||||
total: number;
|
||||
by_status: Record<JobStatus, number>;
|
||||
|
||||
Reference in New Issue
Block a user