mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
export namespace Journal {
|
|
export type DispatcherSearcher = {
|
|
[key in 'search-dispatcher' | 'search-station' | 'search-date']: string;
|
|
};
|
|
|
|
export interface DispatcherSorter {
|
|
id: 'timestampFrom' | 'duration';
|
|
dir: -1 | 1;
|
|
}
|
|
|
|
export type TimetableSearchKey =
|
|
| 'search-driver'
|
|
| 'search-train'
|
|
| 'search-date'
|
|
| 'search-dispatcher'
|
|
| 'search-issuedFrom';
|
|
|
|
export type TimetableSearchType = {
|
|
[key in TimetableSearchKey]: string;
|
|
};
|
|
|
|
export const enum TimetableFilterId {
|
|
ACTIVE = 'active',
|
|
FULFILLED = 'fulfilled',
|
|
ABANDONED = 'abandoned',
|
|
ALL = 'all',
|
|
TWR = 'twr',
|
|
SKR = 'skr',
|
|
TWR_SKR = 'twr-skr'
|
|
}
|
|
|
|
export enum FilterSection {
|
|
TIMETABLE_STATUS = 'timetable-status',
|
|
TWRSKR = 'twrskr'
|
|
}
|
|
|
|
export interface TimetableFilter {
|
|
id: TimetableFilterId;
|
|
filterSection: string;
|
|
isActive: boolean;
|
|
}
|
|
|
|
export type TimetableSorterKey = 'timetableId' | 'beginDate' | 'distance' | 'total-stops';
|
|
|
|
export interface TimetableSorter {
|
|
id: TimetableSorterKey;
|
|
dir: 'asc' | 'desc';
|
|
}
|
|
}
|