From a304f2eb69181151cb9aaab79723f9ad84294d68 Mon Sep 17 00:00:00 2001 From: aslakihle Date: Mon, 9 Sep 2024 09:18:57 +0200 Subject: [PATCH 1/2] :alien: Get newest impersonate swagger --- src/api/services/ImpersonateUserService.ts | 33 ++++++++++++++++------ 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/src/api/services/ImpersonateUserService.ts b/src/api/services/ImpersonateUserService.ts index a1039d1..16a18f5 100644 --- a/src/api/services/ImpersonateUserService.ts +++ b/src/api/services/ImpersonateUserService.ts @@ -63,6 +63,27 @@ export class ImpersonateUserService { }, }); } + /** + * Get all impersonate users by application name + * @param appName + * @returns ImpersonateUser Success + * @throws ApiError + */ + public static getApiV1ImpersonateUserGetImpersonateUserForApp( + appName: string + ): CancelablePromise> { + return __request(OpenAPI_Portal, { + method: 'GET', + url: '/api/v1/ImpersonateUser/GetImpersonateUserForApp/{appName}', + path: { + appName: appName, + }, + errors: { + 400: `Bad Request`, + 500: `Server Error`, + }, + }); + } /** * Get all active users * @returns ImpersonateUser Success @@ -79,20 +100,14 @@ export class ImpersonateUserService { }); } /** - * Get active user by username - * @param username + * Get active user * @returns ImpersonateUser Success * @throws ApiError */ - public static getActiveUserByUsername( - username?: string - ): CancelablePromise { + public static getActiveUser(): CancelablePromise { return __request(OpenAPI_Portal, { method: 'GET', - url: '/api/v1/ImpersonateUser/ActiveUserByUsername', - query: { - username: username, - }, + url: '/api/v1/ImpersonateUser/ActiveUser', errors: { 400: `Bad Request`, 500: `Server Error`, From ae170bb2b240cdf26120d0e2317b8a1b84d49e6f Mon Sep 17 00:00:00 2001 From: aslakihle Date: Mon, 9 Sep 2024 09:20:16 +0200 Subject: [PATCH 2/2] :bookmark: 1.1.9 --- 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 0b3d839..8fc173d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@equinor/subsurface-app-management", - "version": "1.1.7", + "version": "1.1.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@equinor/subsurface-app-management", - "version": "1.1.7", + "version": "1.1.9", "license": "ISC", "dependencies": { "@azure/msal-browser": "3.10.0", diff --git a/package.json b/package.json index b52e896..d662911 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@equinor/subsurface-app-management", - "version": "1.1.8", + "version": "1.1.9", "description": "React Typescript components/hooks to communicate with equinor/sam", "types": "dist/index.d.ts", "type": "module",