@linid-dm/directory-manager-client-core
Version:
Core package by providing a set of angular components for the Directory Manager app.
71 lines (70 loc) • 4.7 kB
TypeScript
/**
* Copyright (C) 2020-2024 Linagora
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version, provided you comply with the Additional Terms applicable for
* LinID Directory Manager software by LINAGORA pursuant to Section 7 of the GNU
* Affero General Public License, subsections (b), (c), and (e), pursuant to
* which these Appropriate Legal Notices must notably (i) retain the display of
* the "LinID™" trademark/logo at the top of the interface window, the display
* of the “You are using the Open Source and free version of LinID™, powered by
* Linagora © 2009–2013. Contribute to LinID R&D by subscribing to an Enterprise
* offer!” infobox and in the e-mails sent with the Program, notice appended to
* any type of outbound messages (e.g. e-mail and meeting requests) as well as
* in the LinID Directory Manager user interface, (ii) retain all hypertext
* links between LinID Directory Manager and https://linid.org/, as well as
* between LINAGORA and LINAGORA.com, and (iii) refrain from infringing LINAGORA
* intellectual property rights over its trademarks and commercial brands. Other
* Additional Terms apply, see <http://www.linagora.com/licenses/> for more
* details.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License and
* its applicable Additional Terms for LinID Directory Manager along with this
* program. If not, see <http://www.gnu.org/licenses/> for the GNU Affero
* General Public License version 3 and <http://www.linagora.com/licenses/> for
* the Additional Terms applicable to the LinID Directory Manager software.
*/
import { HttpClient, HttpErrorResponse, HttpParams, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import { IData } from '../interfaces/data.interface';
import { EnvService } from './env.service';
import { InteractionsService } from './interactions.service';
import * as i0 from "@angular/core";
export declare abstract class DataService {
abstract getDataList(dataType: string, body?: any, isRequestForFormField?: boolean): Observable<IData>;
abstract getDataListWithParameteredFilter(requestTarget: string, regexParam: string, regexFilter: string, body: any, extendedMeta: boolean): Observable<IData>;
abstract getDataDetail(dataType: string, id: string): Observable<any>;
abstract removeData(dataType: string, id: string): Observable<any>;
abstract updateData(dataType: string, id: string, body: any): Observable<HttpResponse<any>>;
abstract createData(dataType: string, body: any, params?: HttpParams | {
[param: string]: string | string[];
}): Observable<HttpResponse<any>>;
abstract search(dataType: string, filter: string, postRequest?: boolean, body?: any, extendedMeta?: boolean): Observable<HttpResponse<IData> | HttpErrorResponse>;
abstract patchData(dataType: string, id: string, body: any): Observable<HttpResponse<any>>;
}
export declare class DataServiceImpl extends DataService {
protected http: HttpClient;
protected env: EnvService;
protected interactionsService: InteractionsService;
private _isProcessingGetRequest;
constructor(http: HttpClient, env: EnvService, interactionsService: InteractionsService);
getDataList(dataType: string, params?: any, isRequestForFormField?: boolean): Observable<IData>;
getDataListWithParameteredFilter(requestTarget: string, regexParam: string, regexFilter: string, attributes: string[], extendedMeta: boolean): Observable<IData>;
getDataDetail(dataType: string, id: string): Observable<any>;
removeData(dataType: string, id: string): Observable<any>;
updateData(dataType: string, id: string, body: any): Observable<HttpResponse<any>>;
createData(dataType: string, body: any, params?: HttpParams | {
[param: string]: string | string[];
}): Observable<HttpResponse<any>>;
search(dataType: string, filter: string, postRequest?: boolean, body?: any, extendedMeta?: boolean): Observable<HttpResponse<IData> | HttpErrorResponse>;
patchData(dataType: string, id: string, body: any): Observable<HttpResponse<any>>;
static ɵfac: i0.ɵɵFactoryDeclaration<DataServiceImpl, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DataServiceImpl>;
}