You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-12-11 23:47:20 +02:00
20 lines
629 B
TypeScript
20 lines
629 B
TypeScript
import {Brackets} from 'typeorm';
|
|
import {UserDTO} from '../../common/entities/UserDTO';
|
|
import {SearchQueryDTO} from '../../common/entities/SearchQueryDTO';
|
|
|
|
export class SessionContext {
|
|
user: ContextUser;
|
|
// New structured projection with prebuilt SQL and params
|
|
projectionQuery?: Brackets;
|
|
projectionQueryForSubDir?: Brackets; // only the directory part of the query, where it filters 'directories' instead of 'directory' aliases
|
|
hasDirectoryProjection: boolean;
|
|
}
|
|
|
|
export interface ContextUser extends UserDTO {
|
|
overrideAllowBlockList?: boolean;
|
|
|
|
allowQuery?: SearchQueryDTO;
|
|
|
|
blockQuery?: SearchQueryDTO;
|
|
}
|