UNPKG

@finbourne/lusid-sdk-angular18

Version:

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

144 lines (143 loc) 8.96 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DeletedEntityResponse } from '../model/deletedEntityResponse'; import { Execution } from '../model/execution'; import { ExecutionSetRequest } from '../model/executionSetRequest'; import { PagedResourceListOfExecution } from '../model/pagedResourceListOfExecution'; import { ResourceListOfExecution } from '../model/resourceListOfExecution'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export interface DeleteExecutionRequestParams { /** The execution scope. */ scope: string; /** The execution\&#39;s code. This, together with the scope uniquely identifies the execution to delete. */ code: string; } export interface GetExecutionRequestParams { /** The scope to which the execution belongs. */ scope: string; /** The execution\&#39;s unique identifier. */ code: string; /** The asAt datetime at which to retrieve the execution. Defaults to return the latest version of the execution if not specified. */ asAt?: string; /** A list of property keys from the \&quot;Execution\&quot; domain to decorate onto the execution. These take the format {domain}/{scope}/{code} e.g. \&quot;Execution/system/Name\&quot;. */ propertyKeys?: Array<string>; } export interface ListExecutionsRequestParams { /** The asAt datetime at which to retrieve the execution. Defaults to return the latest version of the execution if not specified. */ asAt?: string; /** The pagination token to use to continue listing execution from a previous call to list executions. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request. */ page?: string; /** A list of field names or properties to sort by, each suffixed by \&quot; ASC\&quot; or \&quot; DESC\&quot;. */ sortBy?: Array<string>; /** When paginating, limit the number of returned results to this many. */ limit?: number; /** Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid. */ filter?: string; /** A list of property keys from the \&quot;Execution\&quot; domain to decorate onto each execution. These take the format {domain}/{scope}/{code} e.g. \&quot;Execution/system/Name\&quot;. All properties, except derived properties, are returned by default, without specifying here. */ propertyKeys?: Array<string>; } export interface UpsertExecutionsRequestParams { /** The collection of execution requests. */ executionSetRequest?: ExecutionSetRequest; } export declare class ExecutionsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * [EARLY ACCESS] DeleteExecution: Delete execution * Delete an execution. Deletion will be valid from the execution\&#39;s creation datetime. This means that the execution will no longer exist at any effective datetime from the asAt datetime of deletion. * @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. */ deleteExecution(requestParameters?: DeleteExecutionRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<DeletedEntityResponse>; deleteExecution(requestParameters?: DeleteExecutionRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteExecution(requestParameters?: DeleteExecutionRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<DeletedEntityResponse>>; /** * [EARLY ACCESS] GetExecution: Get Execution * Fetch a Execution that matches the specified identifier * @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. */ getExecution(requestParameters?: GetExecutionRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<Execution>; getExecution(requestParameters?: GetExecutionRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<Execution>>; getExecution(requestParameters?: GetExecutionRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<Execution>>; /** * ListExecutions: List Executions * Fetch the last pre-AsAt date version of each execution in scope (does not fetch the entire history). * @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. */ listExecutions(requestParameters?: ListExecutionsRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<PagedResourceListOfExecution>; listExecutions(requestParameters?: ListExecutionsRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<PagedResourceListOfExecution>>; listExecutions(requestParameters?: ListExecutionsRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<PagedResourceListOfExecution>>; /** * UpsertExecutions: Upsert Execution * Upsert; update existing executions with given ids, or create new executions otherwise. * @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. */ upsertExecutions(requestParameters?: UpsertExecutionsRequestParams, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<ResourceListOfExecution>; upsertExecutions(requestParameters?: UpsertExecutionsRequestParams, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpResponse<ResourceListOfExecution>>; upsertExecutions(requestParameters?: UpsertExecutionsRequestParams, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; transferCache?: boolean; }): Observable<HttpEvent<ResourceListOfExecution>>; static ɵfac: i0.ɵɵFactoryDeclaration<ExecutionsService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<ExecutionsService>; }