Portal/rsconcept/frontend/src/features/library/models/library.ts

45 lines
792 B
TypeScript
Raw Normal View History

2024-06-07 20:17:03 +03:00
/**
* Module: Models for LibraryItem.
*/
/**
* Represents valid location headers.
*/
export enum LocationHead {
USER = '/U',
COMMON = '/S',
2024-06-19 22:09:31 +03:00
PROJECTS = '/P',
LIBRARY = '/L'
2024-06-07 20:17:03 +03:00
}
2024-09-12 13:27:06 +03:00
export const BASIC_SCHEMAS = '/L/Базовые';
2024-06-07 20:17:03 +03:00
/**
2024-08-01 00:35:49 +03:00
* Represents {@link ILibraryItem} minimal reference data.
*/
export interface ILibraryItemReference {
id: number;
alias: string;
}
2024-08-01 00:35:49 +03:00
/**
* Represents Library filter parameters.
*/
export interface ILibraryFilter {
query: string;
folderMode: boolean;
subfolders: boolean;
path: string;
head: LocationHead | null;
location: string;
isVisible: boolean | null;
isOwned: boolean | null;
isEditor: boolean | null;
filterUser: number | null;
}
2025-02-20 16:36:50 +03:00
/** Represents current version */
export type CurrentVersion = number | 'latest';