/* tslint:disable */ /* eslint-disable */ /** * tasks * 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 { ErrorResponse } from '../models'; // @ts-ignore import type { PatchOperation } from '../models'; // @ts-ignore import type { Task } from '../models'; /** * TasksApi - axios parameter creator */ export const TasksApiAxiosParamCreator = function ( configuration?: Configuration, ) { return { /** * * @summary Delete task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete: async ( taskId: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'taskId' is not null or undefined assertParamExists('_delete', 'taskId', taskId); const localVarPath = `/tasks/{taskId}`.replace( `{${'taskId'}}`, encodeURIComponent(String(taskId)), ); // 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 Create task * @param {Task} task Task to be created. * @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} */ create: async ( task: Task, idempotencyKey?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'task' is not null or undefined assertParamExists('create', 'task', task); const localVarPath = `/tasks`; // 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( task, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Gets tasks * @param {number} [offset] Pagination, index to start searching at when retrieving elements, used in combination with limit to paginate results * @param {number} [limit] Pagination, the number of elements to retrieve, used in combination with offset to paginate results * @param {GetAllPaginationDetailsEnum} [paginationDetails] Flag specifying whether the pagination details should be provided in response headers. Please note that by default it is disabled (OFF), in order to improve the performance of the APIs * @param {GetAllDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {string} [username] The username. * @param {string} [clientId] The ID or encoded key of the client. * @param {string} [groupId] The ID of encoded key of the group. * @param {GetAllStatusEnum} [status] The task status. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAll: async ( offset?: number, limit?: number, paginationDetails?: GetAllPaginationDetailsEnum, detailsLevel?: GetAllDetailsLevelEnum, username?: string, clientId?: string, groupId?: string, status?: GetAllStatusEnum, options: RawAxiosRequestConfig = {}, ): Promise => { const localVarPath = `/tasks`; // 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 (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (paginationDetails !== undefined) { localVarQueryParameter['paginationDetails'] = paginationDetails; } if (detailsLevel !== undefined) { localVarQueryParameter['detailsLevel'] = detailsLevel; } if (username !== undefined) { localVarQueryParameter['username'] = username; } if (clientId !== undefined) { localVarQueryParameter['clientId'] = clientId; } if (groupId !== undefined) { localVarQueryParameter['groupId'] = groupId; } if (status !== undefined) { localVarQueryParameter['status'] = status; } 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 task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getById: async ( taskId: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'taskId' is not null or undefined assertParamExists('getById', 'taskId', taskId); const localVarPath = `/tasks/{taskId}`.replace( `{${'taskId'}}`, encodeURIComponent(String(taskId)), ); // 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, }; }, /** * * @summary Partially update task * @param {string} taskId The ID or encoded key of the task. * @param {Array} patchOperation Patch operations to be applied to a resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patch: async ( taskId: string, patchOperation: Array, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'taskId' is not null or undefined assertParamExists('patch', 'taskId', taskId); // verify required parameter 'patchOperation' is not null or undefined assertParamExists('patch', 'patchOperation', patchOperation); const localVarPath = `/tasks/{taskId}`.replace( `{${'taskId'}}`, encodeURIComponent(String(taskId)), ); // 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: 'PATCH', ...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'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( patchOperation, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update task * @param {string} taskId The ID or encoded key of the task. * @param {Task} task The task to be updated. * @param {*} [options] Override http request option. * @throws {RequiredError} */ update: async ( taskId: string, task: Task, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'taskId' is not null or undefined assertParamExists('update', 'taskId', taskId); // verify required parameter 'task' is not null or undefined assertParamExists('update', 'task', task); const localVarPath = `/tasks/{taskId}`.replace( `{${'taskId'}}`, encodeURIComponent(String(taskId)), ); // 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: 'PUT', ...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'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( task, localVarRequestOptions, configuration, ); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, }; }; /** * TasksApi - functional programming interface */ export const TasksApiFp = function (configuration?: Configuration) { const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration); return { /** * * @summary Delete task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async _delete( taskId: string, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator._delete( taskId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi._delete']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create task * @param {Task} task Task to be created. * @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 create( task: Task, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.create( task, idempotencyKey, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi.create']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Gets tasks * @param {number} [offset] Pagination, index to start searching at when retrieving elements, used in combination with limit to paginate results * @param {number} [limit] Pagination, the number of elements to retrieve, used in combination with offset to paginate results * @param {GetAllPaginationDetailsEnum} [paginationDetails] Flag specifying whether the pagination details should be provided in response headers. Please note that by default it is disabled (OFF), in order to improve the performance of the APIs * @param {GetAllDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {string} [username] The username. * @param {string} [clientId] The ID or encoded key of the client. * @param {string} [groupId] The ID of encoded key of the group. * @param {GetAllStatusEnum} [status] The task status. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAll( offset?: number, limit?: number, paginationDetails?: GetAllPaginationDetailsEnum, detailsLevel?: GetAllDetailsLevelEnum, username?: string, clientId?: string, groupId?: string, status?: GetAllStatusEnum, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise> > { const localVarAxiosArgs = await localVarAxiosParamCreator.getAll( offset, limit, paginationDetails, detailsLevel, username, clientId, groupId, status, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi.getAll']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getById( taskId: string, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.getById( taskId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi.getById']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Partially update task * @param {string} taskId The ID or encoded key of the task. * @param {Array} patchOperation Patch operations to be applied to a resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async patch( taskId: string, patchOperation: Array, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.patch( taskId, patchOperation, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi.patch']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update task * @param {string} taskId The ID or encoded key of the task. * @param {Task} task The task to be updated. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async update( taskId: string, task: Task, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = await localVarAxiosParamCreator.update( taskId, task, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['TasksApi.update']?.[localVarOperationServerIndex] ?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, globalAxios, BASE_PATH, configuration, )(axios, localVarOperationServerBasePath || basePath); }, }; }; /** * TasksApi - factory interface */ export const TasksApiFactory = function ( configuration?: Configuration, basePath?: string, axios?: AxiosInstance, ) { const localVarFp = TasksApiFp(configuration); return { /** * * @summary Delete task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete( taskId: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp ._delete(taskId, options) .then((request) => request(axios, basePath)); }, /** * * @summary Create task * @param {Task} task Task to be created. * @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} */ create( task: Task, idempotencyKey?: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .create(task, idempotencyKey, options) .then((request) => request(axios, basePath)); }, /** * * @summary Gets tasks * @param {number} [offset] Pagination, index to start searching at when retrieving elements, used in combination with limit to paginate results * @param {number} [limit] Pagination, the number of elements to retrieve, used in combination with offset to paginate results * @param {GetAllPaginationDetailsEnum} [paginationDetails] Flag specifying whether the pagination details should be provided in response headers. Please note that by default it is disabled (OFF), in order to improve the performance of the APIs * @param {GetAllDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {string} [username] The username. * @param {string} [clientId] The ID or encoded key of the client. * @param {string} [groupId] The ID of encoded key of the group. * @param {GetAllStatusEnum} [status] The task status. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAll( offset?: number, limit?: number, paginationDetails?: GetAllPaginationDetailsEnum, detailsLevel?: GetAllDetailsLevelEnum, username?: string, clientId?: string, groupId?: string, status?: GetAllStatusEnum, options?: RawAxiosRequestConfig, ): AxiosPromise> { return localVarFp .getAll( offset, limit, paginationDetails, detailsLevel, username, clientId, groupId, status, options, ) .then((request) => request(axios, basePath)); }, /** * * @summary Get task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getById( taskId: string, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .getById(taskId, options) .then((request) => request(axios, basePath)); }, /** * * @summary Partially update task * @param {string} taskId The ID or encoded key of the task. * @param {Array} patchOperation Patch operations to be applied to a resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ patch( taskId: string, patchOperation: Array, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .patch(taskId, patchOperation, options) .then((request) => request(axios, basePath)); }, /** * * @summary Update task * @param {string} taskId The ID or encoded key of the task. * @param {Task} task The task to be updated. * @param {*} [options] Override http request option. * @throws {RequiredError} */ update( taskId: string, task: Task, options?: RawAxiosRequestConfig, ): AxiosPromise { return localVarFp .update(taskId, task, options) .then((request) => request(axios, basePath)); }, }; }; /** * TasksApi - object-oriented interface */ export class TasksApi extends BaseAPI { /** * * @summary Delete task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public _delete(taskId: string, options?: RawAxiosRequestConfig) { return TasksApiFp(this.configuration) ._delete(taskId, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Create task * @param {Task} task Task to be created. * @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 create( task: Task, idempotencyKey?: string, options?: RawAxiosRequestConfig, ) { return TasksApiFp(this.configuration) .create(task, idempotencyKey, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Gets tasks * @param {number} [offset] Pagination, index to start searching at when retrieving elements, used in combination with limit to paginate results * @param {number} [limit] Pagination, the number of elements to retrieve, used in combination with offset to paginate results * @param {GetAllPaginationDetailsEnum} [paginationDetails] Flag specifying whether the pagination details should be provided in response headers. Please note that by default it is disabled (OFF), in order to improve the performance of the APIs * @param {GetAllDetailsLevelEnum} [detailsLevel] The level of details to return: `FULL` means the full details of the object will be returned (custom field values, address, contact info, or any other related objects) and `BASIC` will return only the first level elements of the object. * @param {string} [username] The username. * @param {string} [clientId] The ID or encoded key of the client. * @param {string} [groupId] The ID of encoded key of the group. * @param {GetAllStatusEnum} [status] The task status. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getAll( offset?: number, limit?: number, paginationDetails?: GetAllPaginationDetailsEnum, detailsLevel?: GetAllDetailsLevelEnum, username?: string, clientId?: string, groupId?: string, status?: GetAllStatusEnum, options?: RawAxiosRequestConfig, ) { return TasksApiFp(this.configuration) .getAll( offset, limit, paginationDetails, detailsLevel, username, clientId, groupId, status, options, ) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Get task * @param {string} taskId The ID or encoded key of the task. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public getById(taskId: string, options?: RawAxiosRequestConfig) { return TasksApiFp(this.configuration) .getById(taskId, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Partially update task * @param {string} taskId The ID or encoded key of the task. * @param {Array} patchOperation Patch operations to be applied to a resource. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public patch( taskId: string, patchOperation: Array, options?: RawAxiosRequestConfig, ) { return TasksApiFp(this.configuration) .patch(taskId, patchOperation, options) .then((request) => request(this.axios, this.basePath)); } /** * * @summary Update task * @param {string} taskId The ID or encoded key of the task. * @param {Task} task The task to be updated. * @param {*} [options] Override http request option. * @throws {RequiredError} */ public update(taskId: string, task: Task, options?: RawAxiosRequestConfig) { return TasksApiFp(this.configuration) .update(taskId, task, options) .then((request) => request(this.axios, this.basePath)); } } export const GetAllPaginationDetailsEnum = { On: 'ON', Off: 'OFF', } as const; export type GetAllPaginationDetailsEnum = (typeof GetAllPaginationDetailsEnum)[keyof typeof GetAllPaginationDetailsEnum]; export const GetAllDetailsLevelEnum = { Basic: 'BASIC', Full: 'FULL', } as const; export type GetAllDetailsLevelEnum = (typeof GetAllDetailsLevelEnum)[keyof typeof GetAllDetailsLevelEnum]; export const GetAllStatusEnum = { Open: 'OPEN', Completed: 'COMPLETED', } as const; export type GetAllStatusEnum = (typeof GetAllStatusEnum)[keyof typeof GetAllStatusEnum];