/** * AsyncActions service. * @module api/AsyncActionsApi */ export default class AsyncActionsApi { /** * Constructs a new AsyncActionsApi. * @alias AsyncActionsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Callback function to receive the result of the getAsyncAction operation. * @callback getAsyncActionCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {AsyncActionGetResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * Get Async Action * Check the result of a scheduled asynchronous operation. The table below lists the possible types of async actions. The types are different for each endpoint generating the async action. * @param {String} asyncActionId Unique ID of the asynchronous operation. * @param {getAsyncActionCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link AsyncActionGetResponseBody} * @returns {Promise<(AsyncActionGetResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `AsyncActionGetResponseBody` object or with `undefined`. */ getAsyncAction(asyncActionId: string, callback?: (error: Error | null, data?: AsyncActionGetResponseBody, response?: any) => any): Promise<(AsyncActionGetResponseBody | undefined)>; /** * Callback function to receive the result of the listAsyncActions operation. * @callback listAsyncActionsCallback * @param {Error|null} error Error object if failed, null otherwise. * @param {AsyncActionsListResponseBody} [data] The data returned by the service call. * @param {Object} [response] Full response object if successful. */ /** * List Async Actions * Track asynchronous operations scheduled in your project. The table below lists the possible types of async actions. The types are different for each endpoint generating the async action. * @param {{ limit?: Number, endDate?: Date, }} [opts] Optional parameters * @param {listAsyncActionsCallback} [callback] The callback function, accepting three arguments: error, data, response * data is of type: {@link AsyncActionsListResponseBody} * @returns {Promise<(AsyncActionsListResponseBody | undefined)>} Depending on whether the `callback` parameter is provided, the promise will resolve with a `AsyncActionsListResponseBody` object or with `undefined`. */ listAsyncActions(opts?: { limit?: number; endDate?: Date; }, callback?: (error: Error | null, data?: AsyncActionsListResponseBody, response?: any) => any): Promise<(AsyncActionsListResponseBody | undefined)>; } import AsyncActionGetResponseBody from '../model/AsyncActionGetResponseBody'; import AsyncActionsListResponseBody from '../model/AsyncActionsListResponseBody';