From 3a85c22b4ea3d363d099b2ca2f70f26f68a9fe27 Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum Date: Fri, 27 Sep 2024 14:33:29 +0200 Subject: [PATCH 1/2] :sparkles: Added delete user impersonation endpoint --- src/api/models/ObjectServiceResponse.ts | 11 +++++++++++ src/api/services/ImpersonateUserService.ts | 23 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/api/models/ObjectServiceResponse.ts 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`, + }, + }); + } } From 31c591a43ceaa50bf8a4b3b52ccabc8dfdcc1ecc Mon Sep 17 00:00:00 2001 From: Marius Tobiassen Bungum Date: Fri, 27 Sep 2024 14:33:56 +0200 Subject: [PATCH 2/2] :bookmark: 1.1.15 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",