UNPKG

@finbourne/lusid-sdk-angular18

Version:

An Angular (18) SDK for secure access to the LUSID® by FINBOURNE web API

85 lines (84 loc) 4.7 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } 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 interface CreateRelationRequestParams { /** The scope of the relation definition */ scope: string; /** The code of the relation definition */ code: string; /** The details of the relation to create. */ createRelationRequest: CreateRelationRequest; /** The effective datetime or cut label at which the relation should be effective from. Defaults to the current LUSID system datetime if not specified. */ effectiveAt?: string; } export interface DeleteRelationRequestParams { /** The scope of the relation definition */ scope: string; /** The code of the relation definition */ code: string; /** The details of the relation to delete. */ deleteRelationRequest: DeleteRelationRequest; /** 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. */ effectiveAt?: string; } export declare class RelationsService { 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] CreateRelation: Create Relation * Create a relation between two entity objects by their identifiers * @param requestParameters * @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(requestParameters?: CreateRelationRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<CompleteRelation>; createRelation(requestParameters?: CreateRelationRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<CompleteRelation>>; createRelation(requestParameters?: CreateRelationRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<CompleteRelation>>; /** * [EXPERIMENTAL] DeleteRelation: Delete a relation * Delete a relation between two entity objects represented by their identifiers * @param requestParameters * @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(requestParameters?: DeleteRelationRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<DeletedEntityResponse>; deleteRelation(requestParameters?: DeleteRelationRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteRelation(requestParameters?: DeleteRelationRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<DeletedEntityResponse>>; static ɵfac: i0.ɵɵFactoryDeclaration<RelationsService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<RelationsService>; }