UNPKG

@hmcts/media-viewer

Version:
48 lines 1.79 kB
import * as fromAnnotations from '../actions/annotation.actions'; import { Annotation } from '../../annotations/annotation-set/annotation-view/annotation.model'; import { Comment } from '../../annotations/comment-set/comment/comment.model'; import { SelectionAnnotation } from '../../annotations/models/event-select.model'; import { Filters } from '../models/filters.interface'; export interface AnnotationSetState { annotationSet: any; annotationEntities: { [id: string]: any; }; annotationPageEntities: { [id: string]: Annotation[]; }; commentEntities: { [id: string]: Comment; }; selectedAnnotation: SelectionAnnotation; commentSearchQueries: { commentSearch: string; }; commentSummaryFilters: { hasFilter: boolean; filters: Filters; }; loaded: boolean; loading: boolean; } export declare const initialState: AnnotationSetState; export declare function reducer(state: AnnotationSetState, action: fromAnnotations.AnnotationsActions): AnnotationSetState; export declare const getAnnoSet: (state: AnnotationSetState) => any; export declare const getCommentEnts: (state: AnnotationSetState) => { [id: string]: Comment; }; export declare const getAnnoPageEnt: (state: AnnotationSetState) => { [id: string]: Annotation[]; }; export declare const getAnnoEnt: (state: AnnotationSetState) => { [id: string]: any; }; export declare const getSelectedAnno: (state: AnnotationSetState) => SelectionAnnotation; export declare const commentSearchQ: (state: AnnotationSetState) => { commentSearch: string; }; export declare const getSummaryFilters: (state: AnnotationSetState) => { hasFilter: boolean; filters: Filters; }; //# sourceMappingURL=annotations.reducer.d.ts.map