@finbourne/lusid-sdk-angular8
Version:
An angular (8+) SDK for secure access to the LUSID® by FINBOURNE web API
55 lines (54 loc) • 4.23 kB
TypeScript
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } 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;
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
private canConsumeForm;
/**
* [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): Observable<RelationDefinition>;
createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<RelationDefinition>>;
createRelationDefinition(createRelationDefinitionRequest: CreateRelationDefinitionRequest, observe?: 'events', reportProgress?: boolean): 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): Observable<DeletedEntityResponse>;
deleteRelationDefinition(scope: string, code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DeletedEntityResponse>>;
deleteRelationDefinition(scope: string, code: string, observe?: 'events', reportProgress?: boolean): 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?: Date, observe?: 'body', reportProgress?: boolean): Observable<RelationDefinition>;
getRelationDefinition(scope: string, code: string, asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<RelationDefinition>>;
getRelationDefinition(scope: string, code: string, asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<RelationDefinition>>;
static ɵfac: i0.ɵɵFactoryDef<RelationDefinitionsService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDef<RelationDefinitionsService>;
}