@finbourne/lusid-sdk-angular8
Version:
An angular (8+) SDK for secure access to the LUSID® by FINBOURNE web API
49 lines (48 loc) • 3.77 kB
TypeScript
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CompleteRelation } from '../model/completeRelation';
import { CreateRelationRequest } from '../model/createRelationRequest';
import { DeleteRelationRequest } from '../model/deleteRelationRequest';
import { DeletedEntityResponse } from '../model/deletedEntityResponse';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare class RelationsService {
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] CreateRelation: Create Relation
* Create a relation between two entity objects by their identifiers
* @param scope The scope of the relation definition
* @param code The code of the relation definition
* @param createRelationRequest The details of the relation to create.
* @param effectiveAt The effective datetime or cut label at which the relation should be effective from. Defaults to the current LUSID system datetime 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.
*/
createRelation(scope: string, code: string, createRelationRequest: CreateRelationRequest, effectiveAt?: string, observe?: 'body', reportProgress?: boolean): Observable<CompleteRelation>;
createRelation(scope: string, code: string, createRelationRequest: CreateRelationRequest, effectiveAt?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CompleteRelation>>;
createRelation(scope: string, code: string, createRelationRequest: CreateRelationRequest, effectiveAt?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CompleteRelation>>;
/**
* [EXPERIMENTAL] DeleteRelation: Delete a relation
* Delete a relation between two entity objects represented by their identifiers
* @param scope The scope of the relation definition
* @param code The code of the relation definition
* @param deleteRelationRequest The details of the relation to delete.
* @param effectiveAt The effective datetime or cut label at which the relation should the deletion be effective from. Defaults to the current LUSID system datetime 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.
*/
deleteRelation(scope: string, code: string, deleteRelationRequest: DeleteRelationRequest, effectiveAt?: string, observe?: 'body', reportProgress?: boolean): Observable<DeletedEntityResponse>;
deleteRelation(scope: string, code: string, deleteRelationRequest: DeleteRelationRequest, effectiveAt?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DeletedEntityResponse>>;
deleteRelation(scope: string, code: string, deleteRelationRequest: DeleteRelationRequest, effectiveAt?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DeletedEntityResponse>>;
static ɵfac: i0.ɵɵFactoryDef<RelationsService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDef<RelationsService>;
}