import { SearchResult } from './../models/search-result'; import { SpaceService } from './../spaces/space.service'; import { Http } from '@angular/http'; import { AuthenticationService } from 'ngo-login-client'; import { Logger } from 'ngo-base'; import { Observable } from 'rxjs'; import { UBLDocument } from '../models/ubl-document'; import { FileWrapper } from './../models/file-wrapper'; export declare class UBLDocumentService { private http; private logger; private auth; private spaceService; private headers; private documentsUrl; private namedDocumentsUrl; private searchDocumentsUrl; private nextLink; constructor(http: Http, logger: Logger, auth: AuthenticationService, spaceService: SpaceService, apiUrl: string); /** * Get All documents */ getDocuments(pageSize?: number): Observable; /** * Get More documents */ getMoreDocuments(): Observable; /** * Currently returns the document emited by space * @param spaceAssignedId * @param documentAssignedId */ getDocumentByAssignedId(spaceAssignedId: string, documentAssignedId: string): Observable; getDocumentsDelegate(url: string, isAll: boolean): Observable; /** * */ create(document: UBLDocument): Observable; /** * Update UBLDocument */ update(document: UBLDocument): Observable; /** * Update UBLDocument */ updateMassive(documents: UBLDocument[]): Observable; /** * Delete document using id */ deleteDocument(document: UBLDocument): Observable; /** * Filter documents. If empty then searchText becomes '*' */ search(searchText: string): Observable>; /** * Currently serves to fetch the list of all documents owned by a user. * @param userName * @param pageSize */ getDocumentsByUser(userName: string, pageSize?: number): Observable; getMoreDocumentsByUser(): Observable; /** * Get document by id */ getDocumentById(documentId: string): Observable; downloadDocumentById(documentId: string): Observable; printDocumentById(documentId: string, theme?: string, format?: string): Observable; downloadDocumentsMassive(documents: string[]): Observable; printDocumentsMassive(documents: string[], theme?: string, format?: string): Observable; private handleError(error); }