UNPKG

@finbourne/lusid-sdk-angular8

Version:

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

80 lines (79 loc) 6.85 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CreateCutLabelDefinitionRequest } from '../model/createCutLabelDefinitionRequest'; import { CutLabelDefinition } from '../model/cutLabelDefinition'; import { PagedResourceListOfCutLabelDefinition } from '../model/pagedResourceListOfCutLabelDefinition'; import { UpdateCutLabelDefinitionRequest } from '../model/updateCutLabelDefinitionRequest'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class CutLabelDefinitionsService { 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; /** * CreateCutLabelDefinition: Create a Cut Label * Create a Cut Label valid in all scopes * @param createCutLabelDefinitionRequest The cut label definition * @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. */ createCutLabelDefinition(createCutLabelDefinitionRequest?: CreateCutLabelDefinitionRequest, observe?: 'body', reportProgress?: boolean): Observable<CutLabelDefinition>; createCutLabelDefinition(createCutLabelDefinitionRequest?: CreateCutLabelDefinitionRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CutLabelDefinition>>; createCutLabelDefinition(createCutLabelDefinitionRequest?: CreateCutLabelDefinitionRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CutLabelDefinition>>; /** * DeleteCutLabelDefinition: Delete a Cut Label * Delete a specified cut label * @param code The Code of the Cut Label that is being Deleted * @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. */ deleteCutLabelDefinition(code: string, observe?: 'body', reportProgress?: boolean): Observable<Date>; deleteCutLabelDefinition(code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Date>>; deleteCutLabelDefinition(code: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Date>>; /** * GetCutLabelDefinition: Get a Cut Label * Get a specified cut label at a given time * @param code The Code of the Cut Label that is being queried * @param asAt The time at which to get the Cut Label * @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. */ getCutLabelDefinition(code: string, asAt?: Date, observe?: 'body', reportProgress?: boolean): Observable<CutLabelDefinition>; getCutLabelDefinition(code: string, asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CutLabelDefinition>>; getCutLabelDefinition(code: string, asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CutLabelDefinition>>; /** * ListCutLabelDefinitions: List Existing Cut Labels * List all the Cut Label Definitions that are valid at the given AsAt time * @param asAt Optional. The As At time at which listed Cut Labels are valid * @param sortBy Optional. Order the results by these fields. Use use the \&#39;-\&#39; sign to denote descending order e.g. -MyFieldName * @param start Optional. When paginating, skip this number of results * @param limit Optional. When paginating, limit the number of returned results to this many. * @param filter Optional. Expression to filter the result set. For example, to filter on code, use \&quot;code eq \&#39;string\&#39;\&quot; Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. * @param page The pagination token to use to continue listing cut labels from a previous call This value is returned from the previous call. If a pagination token is provided the sortBy, filter, and asAt fields must not have changed since the original request. Also, if set, a start value cannot be provided. * @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. */ listCutLabelDefinitions(asAt?: Date, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, page?: string, observe?: 'body', reportProgress?: boolean): Observable<PagedResourceListOfCutLabelDefinition>; listCutLabelDefinitions(asAt?: Date, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, page?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PagedResourceListOfCutLabelDefinition>>; listCutLabelDefinitions(asAt?: Date, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, page?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PagedResourceListOfCutLabelDefinition>>; /** * UpdateCutLabelDefinition: Update a Cut Label * Update a specified cut label * @param code The Code of the Cut Label that is being updated * @param updateCutLabelDefinitionRequest The cut label update definition * @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. */ updateCutLabelDefinition(code: string, updateCutLabelDefinitionRequest?: UpdateCutLabelDefinitionRequest, observe?: 'body', reportProgress?: boolean): Observable<CutLabelDefinition>; updateCutLabelDefinition(code: string, updateCutLabelDefinitionRequest?: UpdateCutLabelDefinitionRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CutLabelDefinition>>; updateCutLabelDefinition(code: string, updateCutLabelDefinitionRequest?: UpdateCutLabelDefinitionRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CutLabelDefinition>>; static ɵfac: i0.ɵɵFactoryDef<CutLabelDefinitionsService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDef<CutLabelDefinitionsService>; }