/* tslint:disable */ /* eslint-disable */ /** * subscriptions * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded, } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap, } from '../base'; // @ts-ignore import type { ChunkedOutput } from '../models'; // @ts-ignore import type { CursorCommitResponse } from '../models'; // @ts-ignore import type { ErrorResponse } from '../models'; // @ts-ignore import type { ListOfItems } from '../models'; // @ts-ignore import type { StreamingErrorResponse } from '../models'; // @ts-ignore import type { SubscriptionRequest } from '../models'; // @ts-ignore import type { SubscriptionResponse } from '../models'; // @ts-ignore import type { SubscriptionStatsResponse } from '../models'; /** * SubscriptionApi - axios parameter creator */ export const SubscriptionApiAxiosParamCreator = function ( configuration?: Configuration, ) { return { /** * * @summary Commits offsets of the subscription * @param {string} subscriptionId The Id of subscription. * @param {ListOfItems} listOfItems List of cursors that the consumer acknowledges to have successfully processed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ commitCursors: async ( subscriptionId: string, listOfItems: ListOfItems, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'subscriptionId' is not null or undefined assertParamExists('commitCursors', 'subscriptionId', subscriptionId); // verify required parameter 'listOfItems' is not null or undefined assertParamExists('commitCursors', 'listOfItems', listOfItems); const localVarPath = `/subscriptions/{subscriptionId}/cursors`.replace( `{${'subscriptionId'}}`, encodeURIComponent(String(subscriptionId)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( listOfItems, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Allows the creation of a streaming events subscription * @param {SubscriptionRequest} subscriptionRequest * @param {string} [idempotencyKey] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrGetSubscription: async ( subscriptionRequest: SubscriptionRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'subscriptionRequest' is not null or undefined assertParamExists( 'createOrGetSubscription', 'subscriptionRequest', subscriptionRequest, ); const localVarPath = `/subscriptions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( subscriptionRequest, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Allows the deletion of a streaming events subscription * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSubscription: async ( subscriptionId: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'subscriptionId' is not null or undefined assertParamExists('deleteSubscription', 'subscriptionId', subscriptionId); const localVarPath = `/subscriptions/{subscriptionId}`.replace( `{${'subscriptionId'}}`, encodeURIComponent(String(subscriptionId)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get subscription events * @param {string} subscriptionId The Id of subscription. * @param {number} [batchLimit] Maximum number of events in each chunk * @param {number} [streamKeepAliveLimit] Maximum number of empty keep-alive batches to receive in a row before closing the connection. * @param {number} [maxUncommittedEvents] The maximum number of uncommitted events that Mambu will stream before pausing the stream. * @param {number} [streamLimit] Maximum number of events in this stream (over all partitions being streamed in this connection). * @param {number} [batchFlushTimeout] Maximum time in seconds to wait for the flushing of each chunk (per partition). * @param {number} [streamTimeout] Maximum time in seconds a stream will live before connection is closed by the server. * @param {number} [commitTimeout] Maximum amount of seconds that Mambu will be waiting for commit after sending a batch to a client. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscriptionEvents: async ( subscriptionId: string, batchLimit?: number, streamKeepAliveLimit?: number, maxUncommittedEvents?: number, streamLimit?: number, batchFlushTimeout?: number, streamTimeout?: number, commitTimeout?: number, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'subscriptionId' is not null or undefined assertParamExists( 'getSubscriptionEvents', 'subscriptionId', subscriptionId, ); const localVarPath = `/subscriptions/{subscriptionId}/events`.replace( `{${'subscriptionId'}}`, encodeURIComponent(String(subscriptionId)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); if (batchLimit !== undefined) { localVarQueryParameter['batch_limit'] = batchLimit; } if (streamKeepAliveLimit !== undefined) { localVarQueryParameter['stream_keep_alive_limit'] = streamKeepAliveLimit; } if (maxUncommittedEvents !== undefined) { localVarQueryParameter['max_uncommitted_events'] = maxUncommittedEvents; } if (streamLimit !== undefined) { localVarQueryParameter['stream_limit'] = streamLimit; } if (batchFlushTimeout !== undefined) { localVarQueryParameter['batch_flush_timeout'] = batchFlushTimeout; } if (streamTimeout !== undefined) { localVarQueryParameter['stream_timeout'] = streamTimeout; } if (commitTimeout !== undefined) { localVarQueryParameter['commit_timeout'] = commitTimeout; } localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get subscription statistics * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscriptionStats: async ( subscriptionId: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'subscriptionId' is not null or undefined assertParamExists( 'getSubscriptionStats', 'subscriptionId', subscriptionId, ); const localVarPath = `/subscriptions/{subscriptionId}/stats`.replace( `{${'subscriptionId'}}`, encodeURIComponent(String(subscriptionId)), ); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options, }; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication basic required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); localVarHeaderParameter['Accept'] = 'application/vnd.mambu.v2+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, }; }; /** * SubscriptionApi - functional programming interface */ export const SubscriptionApiFp = function (configuration?: Configuration) { const localVarAxiosParamCreator = SubscriptionApiAxiosParamCreator(configuration); return { /** * * @summary Commits offsets of the subscription * @param {string} subscriptionId The Id of subscription. * @param {ListOfItems} listOfItems List of cursors that the consumer acknowledges to have successfully processed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async commitCursors( subscriptionId: string, listOfItems: ListOfItems, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.commitCursors( subscriptionId, listOfItems, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.commitCursors']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Allows the creation of a streaming events subscription * @param {SubscriptionRequest} subscriptionRequest * @param {string} [idempotencyKey] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createOrGetSubscription( subscriptionRequest: SubscriptionRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.createOrGetSubscription( subscriptionRequest, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.createOrGetSubscription']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Allows the deletion of a streaming events subscription * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteSubscription( subscriptionId: string, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubscription( subscriptionId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.deleteSubscription']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get subscription events * @param {string} subscriptionId The Id of subscription. * @param {number} [batchLimit] Maximum number of events in each chunk * @param {number} [streamKeepAliveLimit] Maximum number of empty keep-alive batches to receive in a row before closing the connection. * @param {number} [maxUncommittedEvents] The maximum number of uncommitted events that Mambu will stream before pausing the stream. * @param {number} [streamLimit] Maximum number of events in this stream (over all partitions being streamed in this connection). * @param {number} [batchFlushTimeout] Maximum time in seconds to wait for the flushing of each chunk (per partition). * @param {number} [streamTimeout] Maximum time in seconds a stream will live before connection is closed by the server. * @param {number} [commitTimeout] Maximum amount of seconds that Mambu will be waiting for commit after sending a batch to a client. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSubscriptionEvents( subscriptionId: string, batchLimit?: number, streamKeepAliveLimit?: number, maxUncommittedEvents?: number, streamLimit?: number, batchFlushTimeout?: number, streamTimeout?: number, commitTimeout?: number, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionEvents( subscriptionId, batchLimit, streamKeepAliveLimit, maxUncommittedEvents, streamLimit, batchFlushTimeout, streamTimeout, commitTimeout, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.getSubscriptionEvents']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get subscription statistics * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getSubscriptionStats( subscriptionId: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, ) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionStats( subscriptionId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.getSubscriptionStats']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, }; }; /** * SubscriptionApi - factory interface */ export const SubscriptionApiFactory = function ( configuration?: Configuration, basePath?: string, axios?: AxiosInstance, ) { const localVarFp = SubscriptionApiFp(configuration); return { /** * * @summary Commits offsets of the subscription * @param {string} subscriptionId The Id of subscription. * @param {ListOfItems} listOfItems List of cursors that the consumer acknowledges to have successfully processed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ commitCursors( subscriptionId: string, listOfItems: ListOfItems, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .commitCursors(subscriptionId, listOfItems, idempotencyKey, options) .then((request) => request(axios, basePath)); }, /** * * @summary Allows the creation of a streaming events subscription * @param {SubscriptionRequest} subscriptionRequest * @param {string} [idempotencyKey] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createOrGetSubscription( subscriptionRequest: SubscriptionRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .createOrGetSubscription(subscriptionRequest, idempotencyKey, options) .then((request) => request(axios, basePath)); }, /** * * @summary Allows the deletion of a streaming events subscription * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteSubscription( subscriptionId: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .deleteSubscription(subscriptionId, options) .then((request) => request(axios, basePath)); }, /** * * @summary Get subscription events * @param {string} subscriptionId The Id of subscription. * @param {number} [batchLimit] Maximum number of events in each chunk * @param {number} [streamKeepAliveLimit] Maximum number of empty keep-alive batches to receive in a row before closing the connection. * @param {number} [maxUncommittedEvents] The maximum number of uncommitted events that Mambu will stream before pausing the stream. * @param {number} [streamLimit] Maximum number of events in this stream (over all partitions being streamed in this connection). * @param {number} [batchFlushTimeout] Maximum time in seconds to wait for the flushing of each chunk (per partition). * @param {number} [streamTimeout] Maximum time in seconds a stream will live before connection is closed by the server. * @param {number} [commitTimeout] Maximum amount of seconds that Mambu will be waiting for commit after sending a batch to a client. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscriptionEvents( subscriptionId: string, batchLimit?: number, streamKeepAliveLimit?: number, maxUncommittedEvents?: number, streamLimit?: number, batchFlushTimeout?: number, streamTimeout?: number, commitTimeout?: number, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .getSubscriptionEvents( subscriptionId, batchLimit, streamKeepAliveLimit, maxUncommittedEvents, streamLimit, batchFlushTimeout, streamTimeout, commitTimeout, options, ) .then((request) => request(axios, basePath)); }, /** * * @summary Get subscription statistics * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSubscriptionStats( subscriptionId: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .getSubscriptionStats(subscriptionId, options) .then((request) => request(axios, basePath)); }, }; }; /** * SubscriptionApi - object-oriented interface */ export class SubscriptionApi extends BaseAPI { /** * * @summary Commits offsets of the subscription * @param {string} subscriptionId The Id of subscription. * @param {ListOfItems} listOfItems List of cursors that the consumer acknowledges to have successfully processed. * @param {string} [idempotencyKey] Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public commitCursors( subscriptionId: string, listOfItems: ListOfItems, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) .commitCursors(subscriptionId, listOfItems, idempotencyKey, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Allows the creation of a streaming events subscription * @param {SubscriptionRequest} subscriptionRequest * @param {string} [idempotencyKey] * @param {*} [options] Override http request option. * @throws {RequiredError} */ public createOrGetSubscription( subscriptionRequest: SubscriptionRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) .createOrGetSubscription(subscriptionRequest, idempotencyKey, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Allows the deletion of a streaming events subscription * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public deleteSubscription( subscriptionId: string, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) .deleteSubscription(subscriptionId, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Get subscription events * @param {string} subscriptionId The Id of subscription. * @param {number} [batchLimit] Maximum number of events in each chunk * @param {number} [streamKeepAliveLimit] Maximum number of empty keep-alive batches to receive in a row before closing the connection. * @param {number} [maxUncommittedEvents] The maximum number of uncommitted events that Mambu will stream before pausing the stream. * @param {number} [streamLimit] Maximum number of events in this stream (over all partitions being streamed in this connection). * @param {number} [batchFlushTimeout] Maximum time in seconds to wait for the flushing of each chunk (per partition). * @param {number} [streamTimeout] Maximum time in seconds a stream will live before connection is closed by the server. * @param {number} [commitTimeout] Maximum amount of seconds that Mambu will be waiting for commit after sending a batch to a client. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSubscriptionEvents( subscriptionId: string, batchLimit?: number, streamKeepAliveLimit?: number, maxUncommittedEvents?: number, streamLimit?: number, batchFlushTimeout?: number, streamTimeout?: number, commitTimeout?: number, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) .getSubscriptionEvents( subscriptionId, batchLimit, streamKeepAliveLimit, maxUncommittedEvents, streamLimit, batchFlushTimeout, streamTimeout, commitTimeout, options, ) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Get subscription statistics * @param {string} subscriptionId The Id of subscription. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getSubscriptionStats( subscriptionId: string, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) .getSubscriptionStats(subscriptionId, options) .then((request) => request(this.axios, this.basePath)); } }