@finbourne/lusid-sdk-angular8
Version:
An angular (8+) SDK for secure access to the LUSID® by FINBOURNE web API
73 lines (72 loc) • 6.67 kB
TypeScript
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } 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 declare class ExecutionsService {
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;
/**
* [EARLY ACCESS] DeleteExecution: Delete execution
* Delete an execution. Deletion will be valid from the execution\'s creation datetime. This means that the execution will no longer exist at any effective datetime from the asAt datetime of deletion.
* @param scope The execution scope.
* @param code The execution\'s code. This, together with the scope uniquely identifies the execution to delete.
* @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(scope: string, code: string, observe?: 'body', reportProgress?: boolean): Observable<DeletedEntityResponse>;
deleteExecution(scope: string, code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DeletedEntityResponse>>;
deleteExecution(scope: string, code: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DeletedEntityResponse>>;
/**
* [EARLY ACCESS] GetExecution: Get Execution
* Fetch a Execution that matches the specified identifier
* @param scope The scope to which the execution belongs.
* @param code The execution\'s unique identifier.
* @param asAt The asAt datetime at which to retrieve the execution. Defaults to return the latest version of the execution if not specified.
* @param propertyKeys A list of property keys from the \"Execution\" domain to decorate onto the execution. These take the format {domain}/{scope}/{code} e.g. \"Execution/system/Name\".
* @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(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<Execution>;
getExecution(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Execution>>;
getExecution(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Execution>>;
/**
* [EARLY ACCESS] ListExecutions: List Executions
* Fetch the last pre-AsAt date version of each execution in scope (does not fetch the entire history).
* @param asAt The asAt datetime at which to retrieve the execution. Defaults to return the latest version of the execution if not specified.
* @param page 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.
* @param sortBy Order the results by these fields. Use use the \'-\' sign to denote descending order e.g. -MyFieldName.
* @param limit When paginating, limit the number of returned results to this many.
* @param filter Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid.
* @param propertyKeys A list of property keys from the \"Execution\" domain to decorate onto each execution. These take the format {domain}/{scope}/{code} e.g. \"Execution/system/Name\".
* @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(asAt?: Date, page?: string, sortBy?: Array<string>, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<PagedResourceListOfExecution>;
listExecutions(asAt?: Date, page?: string, sortBy?: Array<string>, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PagedResourceListOfExecution>>;
listExecutions(asAt?: Date, page?: string, sortBy?: Array<string>, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PagedResourceListOfExecution>>;
/**
* [EARLY ACCESS] UpsertExecutions: Upsert Execution
* Upsert; update existing executions with given ids, or create new executions otherwise.
* @param executionSetRequest The collection of execution requests.
* @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(executionSetRequest?: ExecutionSetRequest, observe?: 'body', reportProgress?: boolean): Observable<ResourceListOfExecution>;
upsertExecutions(executionSetRequest?: ExecutionSetRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ResourceListOfExecution>>;
upsertExecutions(executionSetRequest?: ExecutionSetRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ResourceListOfExecution>>;
static ɵfac: i0.ɵɵFactoryDef<ExecutionsService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDef<ExecutionsService>;
}