UNPKG

@finbourne/lusid-sdk-angular16

Version:

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

259 lines (258 loc) 19 kB
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DeletedEntityResponse } from '../model/deletedEntityResponse'; import { ResourceListOfSideDefinition } from '../model/resourceListOfSideDefinition'; import { ResourceListOfTransactionType } from '../model/resourceListOfTransactionType'; import { SideDefinition } from '../model/sideDefinition'; import { SideDefinitionRequest } from '../model/sideDefinitionRequest'; import { SidesDefinitionRequest } from '../model/sidesDefinitionRequest'; import { TransactionType } from '../model/transactionType'; import { TransactionTypeRequest } from '../model/transactionTypeRequest'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class TransactionConfigurationService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * DeleteSideDefinition: Delete the given side definition * Delete the side which user specify in the request. * @param side The label to uniquely identify the side. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ deleteSideDefinition(side: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<DeletedEntityResponse>; deleteSideDefinition(side: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteSideDefinition(side: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<DeletedEntityResponse>>; /** * DeleteTransactionType: Delete a transaction type * /// WARNING! Changing existing transaction types has a material impact on how data, new and old, is processed and aggregated by LUSID, and will affect your whole organisation. Only call this API if you are fully aware of the implications of the change. * @param source The source that the type is in * @param type One of the type\&#39;s aliases * @param scope The scope in which the transaction types exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ deleteTransactionType(source: string, type: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<DeletedEntityResponse>; deleteTransactionType(source: string, type: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteTransactionType(source: string, type: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<DeletedEntityResponse>>; /** * DeleteTransactionTypeSource: Delete all transaction types for the given source and scope * Delete all the types for the given source and scope. * @param source The source to set the transaction types for. * @param scope The scope in which the transaction types exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ deleteTransactionTypeSource(source: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<DeletedEntityResponse>; deleteTransactionTypeSource(source: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<DeletedEntityResponse>>; deleteTransactionTypeSource(source: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<DeletedEntityResponse>>; /** * GetSideDefinition: Get the side definition for a given side name( or label) * Get the side definition user requested. * @param side The label to uniquely identify the side. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @param asAt The asAt datetime at which to retrieve the transaction types. Defaults to returning the latest versions if not specified. * @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. */ getSideDefinition(side: string, scope?: string, asAt?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<SideDefinition>; getSideDefinition(side: string, scope?: string, asAt?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<SideDefinition>>; getSideDefinition(side: string, scope?: string, asAt?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<SideDefinition>>; /** * GetTransactionType: Get a single transaction configuration type * Get a single transaction type. Returns failure if not found * @param source The source that the type is in * @param type One of the type\&#39;s aliases * @param asAt The asAt datetime at which to retrieve the transaction configuration. Defaults to returning the latest version of the transaction configuration type if not specified * @param scope The scope in which the transaction types exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ getTransactionType(source: string, type: string, asAt?: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<TransactionType>; getTransactionType(source: string, type: string, asAt?: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<TransactionType>>; getTransactionType(source: string, type: string, asAt?: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<TransactionType>>; /** * ListSideDefinitions: List the side definitions * List all the side definitions in the given scope * @param asAt The asAt datetime at which to retrieve the transaction types. Defaults to returning the latest versions if not specified. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ listSideDefinitions(asAt?: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<ResourceListOfSideDefinition>; listSideDefinitions(asAt?: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<ResourceListOfSideDefinition>>; listSideDefinitions(asAt?: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<ResourceListOfSideDefinition>>; /** * ListTransactionTypes: List transaction types * Get the list of current transaction types. For information on the default transaction types provided with LUSID, see https://support.lusid.com/knowledgebase/article/KA-01873/. * @param asAt The asAt datetime at which to retrieve the transaction types. Defaults to returning the latest versions if not specified. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ listTransactionTypes(asAt?: string, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<{ [key: string]: Array<TransactionType>; }>; listTransactionTypes(asAt?: string, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<{ [key: string]: Array<TransactionType>; }>>; listTransactionTypes(asAt?: string, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<{ [key: string]: Array<TransactionType>; }>>; /** * SetSideDefinition: Set a side definition * Set a new side definition for use in a transaction type. For more information, see https://support.lusid.com/knowledgebase/article/KA-01875. * @param side The label to uniquely identify the side. * @param sideDefinitionRequest The side definition to create or replace. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ setSideDefinition(side: string, sideDefinitionRequest: SideDefinitionRequest, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<SideDefinition>; setSideDefinition(side: string, sideDefinitionRequest: SideDefinitionRequest, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<SideDefinition>>; setSideDefinition(side: string, sideDefinitionRequest: SideDefinitionRequest, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<SideDefinition>>; /** * SetSideDefinitions: Set the given side definitions * Set a new side definition for use in a transaction type. For more information, see https://support.lusid.com/knowledgebase/article/KA-01875. * @param sidesDefinitionRequest The list of side definitions to create, or replace. * @param scope The scope in which the side exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ setSideDefinitions(sidesDefinitionRequest: Array<SidesDefinitionRequest>, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<ResourceListOfSideDefinition>; setSideDefinitions(sidesDefinitionRequest: Array<SidesDefinitionRequest>, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<ResourceListOfSideDefinition>>; setSideDefinitions(sidesDefinitionRequest: Array<SidesDefinitionRequest>, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<ResourceListOfSideDefinition>>; /** * SetTransactionType: Set a specific transaction type * Set a transaction type for the given source and type. If the requested transaction type does not exist, it will be created WARNING! Changing existing transaction types has a material impact on how data, new and old, is processed and aggregated by LUSID, and will affect your whole organisation. Only call this API if you are fully aware of the implications of the change. * @param source The source to set the transaction configuration for * @param type One of the transaction configuration alias types to uniquely identify the configuration. If this type does not exist, then a new transaction type is created using the body of the request in the given source, without including this type * @param transactionTypeRequest The transaction configuration to set * @param scope The scope in which the transaction types exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ setTransactionType(source: string, type: string, transactionTypeRequest: TransactionTypeRequest, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<TransactionType>; setTransactionType(source: string, type: string, transactionTypeRequest: TransactionTypeRequest, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<TransactionType>>; setTransactionType(source: string, type: string, transactionTypeRequest: TransactionTypeRequest, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<TransactionType>>; /** * SetTransactionTypeSource: Set the transaction types for the given source and scope * The complete set of transaction types for the source. * @param source The source to set the transaction types for. * @param transactionTypeRequest The set of transaction types. * @param scope The scope in which the transaction types exists. When not supplied the scope is \&#39;default\&#39;. * @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. */ setTransactionTypeSource(source: string, transactionTypeRequest: Array<TransactionTypeRequest>, scope?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<ResourceListOfTransactionType>; setTransactionTypeSource(source: string, transactionTypeRequest: Array<TransactionTypeRequest>, scope?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpResponse<ResourceListOfTransactionType>>; setTransactionTypeSource(source: string, transactionTypeRequest: Array<TransactionTypeRequest>, scope?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json'; context?: HttpContext; }): Observable<HttpEvent<ResourceListOfTransactionType>>; static ɵfac: i0.ɵɵFactoryDeclaration<TransactionConfigurationService, [null, { optional: true; }, { optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<TransactionConfigurationService>; }