diff --git a/package-lock.json b/package-lock.json index d7efc22..beb512d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@equinor/subsurface-app-management", - "version": "1.1.14", + "version": "1.1.15", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@equinor/subsurface-app-management", - "version": "1.1.14", + "version": "1.1.15", "license": "ISC", "dependencies": { "@azure/msal-browser": "3.10.0", diff --git a/package.json b/package.json index 6c7e61f..e92f0ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/subsurface-app-management", - "version": "1.1.14", + "version": "1.1.15", "description": "React Typescript components/hooks to communicate with equinor/sam", "types": "dist/index.d.ts", "type": "module", 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`, + }, + }); + } }