UNPKG

@finbourne/lusid-sdk-angular16

Version:

An angular (16) SDK for secure access to the LUSID® by FINBOURNE web API

80 lines (79 loc) 5.36 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CreateRelationDefinitionRequest } from '../model/createRelationDefinitionRequest'; import { DeletedEntityResponse } from '../model/deletedEntityResponse'; import { RelationDefinition } from '../model/relationDefinition'; 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 | 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<RelationDefinition>; createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<RelationDefinition>>; createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<RelationDefinition>>; /** * [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<DeletedEntityResponse>; deleteRelationDefinition(scope: string, code: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteRelationDefinition(scope: string, code: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<DeletedEntityResponse>>; /** * [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<RelationDefinition>; getRelationDefinition(scope: string, code: string, asAt?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<RelationDefinition>>; getRelationDefinition(scope: string, code: string, asAt?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<RelationDefinition>>; static ɵfac: i0.ɵɵFactoryDeclaration<RelationDefinitionsService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<RelationDefinitionsService>; }