import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CreateRelationDefinitionRequest } from '../model/models'; import { DeletedEntityResponse } from '../model/models'; import { RelationDefinition } from '../model/models'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class RelationDefinitionsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * [EXPERIMENTAL] CreateRelationDefinition: Create a relation definition * Define a new relation. * @param createRelationDefinitionRequest The definition of the new relation. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable; createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; /** * [EXPERIMENTAL] DeleteRelationDefinition: Delete relation definition * Delete the definition of the specified relation. * @param scope The scope of the relation to be deleted. * @param code The code of the relation to be deleted. Together with the domain and scope this uniquely identifies the relation. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ deleteRelationDefinition(scope: string, code: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable; deleteRelationDefinition(scope: string, code: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; deleteRelationDefinition(scope: string, code: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; /** * [EXPERIMENTAL] GetRelationDefinition: Get relation definition * Retrieve the definition of a specified relation. * @param scope The scope of the specified relation. * @param code The code of the specified relation. Together with the domain and scope this uniquely identifies the relation. * @param asAt The asAt datetime at which to retrieve the relation definition. Defaults to return the latest version of the definition if not specified. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ getRelationDefinition(scope: string, code: string, asAt?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable; getRelationDefinition(scope: string, code: string, asAt?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; getRelationDefinition(scope: string, code: string, asAt?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }