@hmcts/media-viewer
Version:
28 lines • 1.37 kB
TypeScript
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AnnotationSet } from '../../annotation-set/annotation-set.model';
import { Annotation } from '../../annotation-set/annotation-view/annotation.model';
import { Comment } from '../../comment-set/comment/comment.model';
import * as i0 from "@angular/core";
export declare class AnnotationApiService {
private readonly httpClient;
annotationApiUrl: string;
private annotationSetBaseUrl;
private annotationBaseUrl;
constructor(httpClient: HttpClient);
getAnnotationSet(documentId: string): Observable<any>;
postAnnotationSet(body: Partial<AnnotationSet>): Observable<AnnotationSet>;
getComments(annotationSet: Observable<AnnotationSet>): Observable<Comment[]>;
/**
* Sort the annotations in the response by page and then y position of their first rectangle
*/
private sortAnnotations;
private extractComments;
deleteAnnotation(annotationId: string): Observable<null>;
postAnnotation(annotation: Partial<Annotation>): Observable<Annotation>;
get annotationSetsFullUrl(): string;
get annotationFullsUrl(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationApiService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<AnnotationApiService>;
}
//# sourceMappingURL=annotation-api.service.d.ts.map