@finbourne/lusid-sdk-angular8
Version:
An angular (8+) SDK for secure access to the LUSID® by FINBOURNE web API
43 lines (42 loc) • 4.5 kB
TypeScript
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { TranslateInstrumentDefinitionsRequest } from '../model/translateInstrumentDefinitionsRequest';
import { TranslateInstrumentDefinitionsResponse } from '../model/translateInstrumentDefinitionsResponse';
import { TranslateTradeTicketRequest } from '../model/translateTradeTicketRequest';
import { TranslateTradeTicketsResponse } from '../model/translateTradeTicketsResponse';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare class TranslationService {
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;
/**
* [EXPERIMENTAL] TranslateInstrumentDefinitions: Translate instruments
* Translates one or more instruments into the given target dialect. In the request each instrument definition should be keyed by a unique correlation id. This id is ephemeral and is not stored by LUSID. It serves only as a way to easily identify each instrument in the response. Any instrument that is not already in the LUSID dialect should be given as an ExoticInstrument. The response will return both the collection of successfully translated instruments in the target dialect, as well as those that failed. For the failures a reason will be provided explaining why the instrument could not be updated or inserted.
* @param translateInstrumentDefinitionsRequest The definitions of the instruments to translate along with the target dialect.
* @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.
*/
translateInstrumentDefinitions(translateInstrumentDefinitionsRequest: TranslateInstrumentDefinitionsRequest, observe?: 'body', reportProgress?: boolean): Observable<TranslateInstrumentDefinitionsResponse>;
translateInstrumentDefinitions(translateInstrumentDefinitionsRequest: TranslateInstrumentDefinitionsRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<TranslateInstrumentDefinitionsResponse>>;
translateInstrumentDefinitions(translateInstrumentDefinitionsRequest: TranslateInstrumentDefinitionsRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<TranslateInstrumentDefinitionsResponse>>;
/**
* [EXPERIMENTAL] TranslateTradeTickets: Translate trade ticket
* Translates one or more trade tickets into the given target dialect. In the request each trade ticket definition should be keyed by a unique correlation id. This id is ephemeral and is not stored by LUSID. It serves only as a way to easily identify each trade ticket in the response. The response will return both the collection of successfully translated trade tickets in the target dialect, as well as those that failed. For the failures a reason will be provided explaining why the trade ticket could not be updated or inserted.
* @param translateTradeTicketRequest The definitions of the trade ticket to translate along with the target dialect.
* @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.
*/
translateTradeTickets(translateTradeTicketRequest: TranslateTradeTicketRequest, observe?: 'body', reportProgress?: boolean): Observable<TranslateTradeTicketsResponse>;
translateTradeTickets(translateTradeTicketRequest: TranslateTradeTicketRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<TranslateTradeTicketsResponse>>;
translateTradeTickets(translateTradeTicketRequest: TranslateTradeTicketRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<TranslateTradeTicketsResponse>>;
static ɵfac: i0.ɵɵFactoryDef<TranslationService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDef<TranslationService>;
}