Skip to content

Commit

Permalink
✨ Added delete user impersonation endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Sep 27, 2024
1 parent eca5181 commit 3a85c22
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/models/ObjectServiceResponse.ts
Original file line number Diff line number Diff line change
@@ -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;
};

23 changes: 23 additions & 0 deletions src/api/services/ImpersonateUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<ObjectServiceResponse> {
return __request(OpenAPI_Portal, {
method: 'DELETE',
url: '/api/v1/ImpersonateUser/DeleteImpersonationUser',
query: {
impersonationUserId: impersonationUserId,
},
errors: {
400: `Bad Request`,
404: `Not Found`,
500: `Server Error`,
},
});
}
}

0 comments on commit 3a85c22

Please sign in to comment.