@hmcts/media-viewer
Version:
126 lines • 5.61 kB
TypeScript
import { Action } from '@ngrx/store';
import { Annotation } from '../../annotations/annotation-set/annotation-view/annotation.model';
import { SelectionAnnotation } from '../../annotations/models/event-select.model';
import { AnnotationSet } from '../../annotations/annotation-set/annotation-set.model';
import { Filters } from '../models/filters.interface';
import { Comment } from '../../annotations/comment-set/comment/comment.model';
export declare const LOAD_ANNOTATION_SET = "[Annotations] Load Annotation Set";
export declare const LOAD_ANNOTATION_SET_SUCCESS = "[Annotations] Load Annotation Set Success";
export declare const LOAD_ANNOTATION_SET_FAIL = "[Annotations] Load Annotation Set Fail";
export declare const SAVE_ANNOTATION_SET = "[Annotations] Save Annotation Set";
export declare const SAVE_ANNOTATION_SET_SUCCESS = "[Annotations] Save Annotation Set Success";
export declare const SAVE_ANNOTATION_SET_FAIL = "[Annotations] Save Annotation Set Fail";
export declare const SAVE_ANNOTATION = "[Annotations] Save Annotation";
export declare const SAVE_ANNOTATION_SUCCESS = "[Annotations] Save Annotation Success";
export declare const SAVE_ANNOTATION_FAIL = "[Annotations] Save Annotation Fail";
export declare const ADD_OR_EDIT_COMMENT = "[Annotations] Add or Edit Comment";
export declare const DELETE_ANNOTATION = "[Annotations] Delete Annotation";
export declare const DELETE_ANNOTATION_SUCCESS = "[Annotations] Delete Annotation Success";
export declare const DELETE_ANNOTATION_FAIL = "[Annotations] Delete Annotation Fail";
export declare const SELECT_ANNOTATION = "[Annotations] Select Annotation";
export declare const SEARCH_COMMENT = "[Comments] Search Comments";
export declare const APPLY_COMMENT_SUMMARY_FILTER = "[Comments] Apply Comment Summary Filter";
export declare const CLEAR_COMMENT_SUMMARY_FILTER = "[Comments] Clear Comment Summary Filter";
export declare class LoadAnnotationSet implements Action {
payload: string;
readonly type = "[Annotations] Load Annotation Set";
constructor(payload: string);
}
export declare class SaveAnnotationSet implements Action {
payload: AnnotationSet;
readonly type = "[Annotations] Save Annotation Set";
constructor(payload: AnnotationSet);
}
export declare class LoadAnnotationSetSucess implements Action {
payload: {
status: number;
body: AnnotationSet;
};
readonly type = "[Annotations] Load Annotation Set Success";
constructor(payload: {
status: number;
body: AnnotationSet;
});
}
export declare class SaveAnnotationSetSuccess implements Action {
payload: AnnotationSet;
readonly type = "[Annotations] Save Annotation Set Success";
constructor(payload: AnnotationSet);
}
export declare class LoadAnnotationSetFail implements Action {
payload: {
status: number;
body: any;
};
readonly type = "[Annotations] Load Annotation Set Fail";
constructor(payload: {
status: number;
body: any;
});
}
export declare class SaveAnnotationSetFail implements Action {
payload: {
status: number;
body: any;
};
readonly type = "[Annotations] Save Annotation Set Fail";
constructor(payload: {
status: number;
body: any;
});
}
export declare class SaveAnnotation implements Action {
payload: Annotation;
readonly type = "[Annotations] Save Annotation";
constructor(payload: Annotation);
}
export declare class SaveAnnotationSuccess implements Action {
payload: any;
readonly type = "[Annotations] Save Annotation Success";
constructor(payload: any);
}
export declare class SaveAnnotationFail implements Action {
payload: Error;
readonly type = "[Annotations] Save Annotation Fail";
constructor(payload: Error);
}
export declare class AddOrEditComment implements Action {
payload: Comment;
readonly type = "[Annotations] Add or Edit Comment";
constructor(payload: Comment);
}
export declare class DeleteAnnotation implements Action {
payload: string;
readonly type = "[Annotations] Delete Annotation";
constructor(payload: string);
}
export declare class DeleteAnnotationSuccess implements Action {
payload: string;
readonly type = "[Annotations] Delete Annotation Success";
constructor(payload: string);
}
export declare class DeleteAnnotationFail implements Action {
payload: Error;
readonly type = "[Annotations] Delete Annotation Fail";
constructor(payload: Error);
}
export declare class SelectedAnnotation implements Action {
payload: SelectionAnnotation;
readonly type = "[Annotations] Select Annotation";
constructor(payload: SelectionAnnotation);
}
export declare class SearchComment implements Action {
payload: string;
readonly type = "[Comments] Search Comments";
constructor(payload: string);
}
export declare class ApplyCommentSymmaryFilter implements Action {
payload: Filters;
readonly type = "[Comments] Apply Comment Summary Filter";
constructor(payload: Filters);
}
export declare class ClearCommentSummaryFilters implements Action {
readonly type = "[Comments] Clear Comment Summary Filter";
}
export type AnnotationsActions = LoadAnnotationSet | LoadAnnotationSetSucess | LoadAnnotationSetFail | SaveAnnotation | SaveAnnotationSuccess | SaveAnnotationFail | SaveAnnotationSetSuccess | AddOrEditComment | DeleteAnnotation | DeleteAnnotationSuccess | DeleteAnnotationFail | SelectedAnnotation | SearchComment | ApplyCommentSymmaryFilter | ClearCommentSummaryFilters;
//# sourceMappingURL=annotation.actions.d.ts.map