/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { alternativeInvestmentDocumentsDownloadAlternativeInvestmentDocument } from "../funcs/alternativeInvestmentDocumentsDownloadAlternativeInvestmentDocument.js"; import { alternativeInvestmentDocumentsGetAlternativeInvestmentDocument } from "../funcs/alternativeInvestmentDocumentsGetAlternativeInvestmentDocument.js"; import { alternativeInvestmentDocumentsListAlternativeInvestmentDocuments } from "../funcs/alternativeInvestmentDocumentsListAlternativeInvestmentDocuments.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class AlternativeInvestmentDocuments extends ClientSDK { /** * List Alternative Investment Documents * * @remarks * Retrieves a list of all investment document details for the specified asset. */ async listAlternativeInvestmentDocuments( assetId: string, pageSize?: number | undefined, pageToken?: string | undefined, filter?: string | undefined, options?: RequestOptions, ): Promise< operations.AlternativeInvestmentDocumentsListAlternativeInvestmentDocumentsResponse > { return unwrapAsync( alternativeInvestmentDocumentsListAlternativeInvestmentDocuments( this, assetId, pageSize, pageToken, filter, options, ), ); } /** * Get Alternative Investment Document * * @remarks * Retrieves a specific investment document for the specified asset. */ async getAlternativeInvestmentDocument( assetId: string, alternativeInvestmentDocumentId: string, options?: RequestOptions, ): Promise< operations.AlternativeInvestmentDocumentsGetAlternativeInvestmentDocumentResponse > { return unwrapAsync( alternativeInvestmentDocumentsGetAlternativeInvestmentDocument( this, assetId, alternativeInvestmentDocumentId, options, ), ); } /** * Download Alternative Investment Documents * * @remarks * Returns a URI to download the specified investment document. */ async downloadAlternativeInvestmentDocument( assetId: string, alternativeInvestmentDocumentId: string, options?: RequestOptions, ): Promise< operations.AlternativeInvestmentDocumentsDownloadAlternativeInvestmentDocumentResponse > { return unwrapAsync( alternativeInvestmentDocumentsDownloadAlternativeInvestmentDocument( this, assetId, alternativeInvestmentDocumentId, options, ), ); } }