@finbourne/lusid-sdk-angular8
Version:
An angular (8+) SDK for secure access to the LUSID® by FINBOURNE web API
113 lines (112 loc) • 11.5 kB
TypeScript
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AnnulSingleStructuredDataResponse } from '../model/annulSingleStructuredDataResponse';
import { GetCounterpartyAgreementResponse } from '../model/getCounterpartyAgreementResponse';
import { GetCreditSupportAnnexResponse } from '../model/getCreditSupportAnnexResponse';
import { ResourceListOfGetCounterpartyAgreementResponse } from '../model/resourceListOfGetCounterpartyAgreementResponse';
import { ResourceListOfGetCreditSupportAnnexResponse } from '../model/resourceListOfGetCreditSupportAnnexResponse';
import { UpsertCounterpartyAgreementRequest } from '../model/upsertCounterpartyAgreementRequest';
import { UpsertCreditSupportAnnexRequest } from '../model/upsertCreditSupportAnnexRequest';
import { UpsertSingleStructuredDataResponse } from '../model/upsertSingleStructuredDataResponse';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare class CounterpartiesService {
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] DeleteCounterpartyAgreement: Delete the Counterparty Agreement of given scope and code
* Delete the specified Counterparty Agreement from a single scope. The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed. It is important to always check for any unsuccessful response.
* @param scope The scope of the Counterparty Agreement to delete.
* @param code The Counterparty Agreement 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.
*/
deleteCounterpartyAgreement(scope: string, code: string, observe?: 'body', reportProgress?: boolean): Observable<AnnulSingleStructuredDataResponse>;
deleteCounterpartyAgreement(scope: string, code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<AnnulSingleStructuredDataResponse>>;
deleteCounterpartyAgreement(scope: string, code: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<AnnulSingleStructuredDataResponse>>;
/**
* [EARLY ACCESS] DeleteCreditSupportAnnex: Delete the Credit Support Annex of given scope and code
* Delete the specified Credit Support Annex from a single scope. The response will return either detail of the deleted item, or an explanation (failure) as to why this did not succeed. It is important to always check for any unsuccessful response.
* @param scope The scope of the Credit Support Annex to delete.
* @param code The Credit Support Annex 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.
*/
deleteCreditSupportAnnex(scope: string, code: string, observe?: 'body', reportProgress?: boolean): Observable<AnnulSingleStructuredDataResponse>;
deleteCreditSupportAnnex(scope: string, code: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<AnnulSingleStructuredDataResponse>>;
deleteCreditSupportAnnex(scope: string, code: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<AnnulSingleStructuredDataResponse>>;
/**
* [EARLY ACCESS] GetCounterpartyAgreement: Get Counterparty Agreement
* Get a Counterparty Agreement from a single scope. The response will return either the Counterparty Agreement that has been stored, or a failure explaining why the request was unsuccessful. It is important to always check for any unsuccessful requests (failures).
* @param scope The scope of the Counterparty Agreement to retrieve.
* @param code The name of the Counterparty Agreement to retrieve the data for.
* @param asAt The asAt datetime at which to retrieve the Counterparty Agreement. Defaults to return the latest version 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.
*/
getCounterpartyAgreement(scope: string, code: string, asAt?: Date, observe?: 'body', reportProgress?: boolean): Observable<GetCounterpartyAgreementResponse>;
getCounterpartyAgreement(scope: string, code: string, asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<GetCounterpartyAgreementResponse>>;
getCounterpartyAgreement(scope: string, code: string, asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<GetCounterpartyAgreementResponse>>;
/**
* [EARLY ACCESS] GetCreditSupportAnnex: Get Credit Support Annex
* Get a Credit Support Annex from a single scope. The response will return either the Credit Support Annex that has been stored, or a failure explaining why the request was unsuccessful. It is important to always check for any unsuccessful requests (failures).
* @param scope The scope of the Credit Support Annex to retrieve.
* @param code The name of the Credit Support Annex to retrieve the data for.
* @param asAt The asAt datetime at which to retrieve the Credit Support Annex . Defaults to return the latest version 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.
*/
getCreditSupportAnnex(scope: string, code: string, asAt?: Date, observe?: 'body', reportProgress?: boolean): Observable<GetCreditSupportAnnexResponse>;
getCreditSupportAnnex(scope: string, code: string, asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<GetCreditSupportAnnexResponse>>;
getCreditSupportAnnex(scope: string, code: string, asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<GetCreditSupportAnnexResponse>>;
/**
* [EARLY ACCESS] ListCounterpartyAgreements: List the set of Counterparty Agreements
* List the set of Counterparty Agreements at the specified AsAt date/time
* @param asAt The asAt datetime at which to list the Counterparty Agreements. Defaults to latest 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.
*/
listCounterpartyAgreements(asAt?: Date, observe?: 'body', reportProgress?: boolean): Observable<ResourceListOfGetCounterpartyAgreementResponse>;
listCounterpartyAgreements(asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ResourceListOfGetCounterpartyAgreementResponse>>;
listCounterpartyAgreements(asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ResourceListOfGetCounterpartyAgreementResponse>>;
/**
* [EARLY ACCESS] ListCreditSupportAnnexes: List the set of Credit Support Annexes
* List the set of Credit Support Annexes at the specified AsAt date/time
* @param asAt The asAt datetime at which to list the Credit Support Annexes. Defaults to latest 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.
*/
listCreditSupportAnnexes(asAt?: Date, observe?: 'body', reportProgress?: boolean): Observable<ResourceListOfGetCreditSupportAnnexResponse>;
listCreditSupportAnnexes(asAt?: Date, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ResourceListOfGetCreditSupportAnnexResponse>>;
listCreditSupportAnnexes(asAt?: Date, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ResourceListOfGetCreditSupportAnnexResponse>>;
/**
* [EARLY ACCESS] UpsertCounterpartyAgreement: Upsert Counterparty Agreement
* Update or insert Counterparty Agreement in a single scope. An item will be updated if it already exists and inserted if it does not. The response will return the successfully updated or inserted Counterparty Agreement or failure message if unsuccessful It is important to always check to verify success (or failure).
* @param upsertCounterpartyAgreementRequest The Counterparty Agreement to update or insert
* @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.
*/
upsertCounterpartyAgreement(upsertCounterpartyAgreementRequest: UpsertCounterpartyAgreementRequest, observe?: 'body', reportProgress?: boolean): Observable<UpsertSingleStructuredDataResponse>;
upsertCounterpartyAgreement(upsertCounterpartyAgreementRequest: UpsertCounterpartyAgreementRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<UpsertSingleStructuredDataResponse>>;
upsertCounterpartyAgreement(upsertCounterpartyAgreementRequest: UpsertCounterpartyAgreementRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<UpsertSingleStructuredDataResponse>>;
/**
* [EARLY ACCESS] UpsertCreditSupportAnnex: Upsert Credit Support Annex
* Update or insert Credit Support Annex in a single scope. An item will be updated if it already exists and inserted if it does not. The response will return the successfully updated or inserted Credit Support Annex or failure message if unsuccessful It is important to always check to verify success (or failure).
* @param upsertCreditSupportAnnexRequest The Credit Support Annex to update or insert
* @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.
*/
upsertCreditSupportAnnex(upsertCreditSupportAnnexRequest: UpsertCreditSupportAnnexRequest, observe?: 'body', reportProgress?: boolean): Observable<UpsertSingleStructuredDataResponse>;
upsertCreditSupportAnnex(upsertCreditSupportAnnexRequest: UpsertCreditSupportAnnexRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<UpsertSingleStructuredDataResponse>>;
upsertCreditSupportAnnex(upsertCreditSupportAnnexRequest: UpsertCreditSupportAnnexRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<UpsertSingleStructuredDataResponse>>;
static ɵfac: i0.ɵɵFactoryDef<CounterpartiesService, [null, { optional: true; }, { optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDef<CounterpartiesService>;
}