UNPKG

@finbourne/lusid-sdk-angular8

Version:

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

74 lines (73 loc) 6.55 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DeletedEntityResponse } from '../model/deletedEntityResponse'; import { Order } from '../model/order'; import { OrderSetRequest } from '../model/orderSetRequest'; import { PagedResourceListOfOrder } from '../model/pagedResourceListOfOrder'; import { ResourceListOfOrder } from '../model/resourceListOfOrder'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class OrdersService { 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] DeleteOrder: Delete order * Delete an order. Deletion will be valid from the order\&#39;s creation datetime. This means that the order will no longer exist at any effective datetime from the asAt datetime of deletion. * @param scope The order scope. * @param code The order\&#39;s code. This, together with the scope uniquely identifies the order 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. */ deleteOrder(scope: string, code: string, observe?: 'body', reportProgress?: boolean): Observable<DeletedEntityResponse>; deleteOrder(scope: string, code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DeletedEntityResponse>>; deleteOrder(scope: string, code: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DeletedEntityResponse>>; /** * [EARLY ACCESS] GetOrder: Get Order * Fetch an Order that matches the specified identifier * @param scope The scope to which the order belongs. * @param code The order\&#39;s unique identifier. * @param asAt The asAt datetime at which to retrieve the order. Defaults to return the latest version of the order if not specified. * @param propertyKeys A list of property keys from the \&quot;Orders\&quot; domain to decorate onto the order. These take the format {domain}/{scope}/{code} e.g. \&quot;Orders/system/Name\&quot;. * @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. */ getOrder(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<Order>; getOrder(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Order>>; getOrder(scope: string, code: string, asAt?: Date, propertyKeys?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Order>>; /** * [EARLY ACCESS] ListOrders: List Orders * Fetch the last pre-AsAt date version of each order in scope (does not fetch the entire history). * @param asAt The asAt datetime at which to retrieve the order. Defaults to return the latest version of the order if not specified. * @param page The pagination token to use to continue listing orders from a previous call to list orders. 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. Also, if set, a start value cannot be provided. * @param sortBy Order the results by these fields. Use use the \&#39;-\&#39; sign to denote descending order e.g. -MyFieldName. * @param start When paginating, skip this number of results. * @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 \&quot;Orders\&quot; domain to decorate onto each order. These take the format {domain}/{scope}/{code} e.g. \&quot;Orders/system/Name\&quot;. * @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. */ listOrders(asAt?: Date, page?: string, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<PagedResourceListOfOrder>; listOrders(asAt?: Date, page?: string, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PagedResourceListOfOrder>>; listOrders(asAt?: Date, page?: string, sortBy?: Array<string>, start?: number, limit?: number, filter?: string, propertyKeys?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PagedResourceListOfOrder>>; /** * [EARLY ACCESS] UpsertOrders: Upsert Order * Upsert; update existing orders with given ids, or create new orders otherwise. * @param orderSetRequest The collection of order 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. */ upsertOrders(orderSetRequest?: OrderSetRequest, observe?: 'body', reportProgress?: boolean): Observable<ResourceListOfOrder>; upsertOrders(orderSetRequest?: OrderSetRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ResourceListOfOrder>>; upsertOrders(orderSetRequest?: OrderSetRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ResourceListOfOrder>>; static ɵfac: i0.ɵɵFactoryDef<OrdersService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDef<OrdersService>; }