diff --git a/src/api/models/ObjectServiceResponse.ts b/src/api/models/ObjectServiceResponse.ts new file mode 100644 index 0000000..4482483 --- /dev/null +++ b/src/api/models/ObjectServiceResponse.ts @@ -0,0 +1,11 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ObjectServiceResponse = { + developerMessage: string; + userMessage: string; + readonly code: string; + httpStatusCode: number; +}; + diff --git a/src/api/services/ImpersonateUserService.ts b/src/api/services/ImpersonateUserService.ts index 7dfa519..01968ed 100644 --- a/src/api/services/ImpersonateUserService.ts +++ b/src/api/services/ImpersonateUserService.ts @@ -4,6 +4,7 @@ /* eslint-disable */ import type { ImpersonateUserDto } from 'src/api/models/ImpersonateUserDto'; import type { ImpersonateUserUpdateDto } from 'src/api/models/ImpersonateUserUpdateDto'; +import type { ObjectServiceResponse } from 'src/api/models/ObjectServiceResponse'; import type { CancelablePromise } from 'src/api'; import { OpenAPI_Portal } from '../core/OpenAPI'; import { request as __request } from '../core/request'; @@ -208,4 +209,26 @@ export class ImpersonateUserService { }, }); } + /** + * Deletes an impersonation user by its Id + * @param impersonationUserId + * @returns ObjectServiceResponse Success + * @throws ApiError + */ + public static deleteImpersonationUser( + impersonationUserId?: string + ): CancelablePromise { + return __request(OpenAPI_Portal, { + method: 'DELETE', + url: '/api/v1/ImpersonateUser/DeleteImpersonationUser', + query: { + impersonationUserId: impersonationUserId, + }, + errors: { + 400: `Bad Request`, + 404: `Not Found`, + 500: `Server Error`, + }, + }); + } }