Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/impersonate endpoint update #32

Merged
merged 2 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/subsurface-app-management",
"version": "1.1.9",
"version": "1.1.10",
"description": "React Typescript components/hooks to communicate with equinor/sam",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type { AccessRoles } from './models/AccessRoles';
export type { FeatureAPIType } from 'src/api/models/FeatureAPIType';
export type { FeatureToggleDto } from './models/FeatureToggleDto';
export type { GraphUser } from './models/GraphUser';
export type { ImpersonateUser } from './models/ImpersonateUser';
export type { ImpersonateUserDto } from 'src/api/models/ImpersonateUserDto';
export type { ReleaseNote } from './models/ReleaseNote';
export type { ServiceNowIncidentAttachmentResponse } from './models/ServiceNowIncidentAttachmentResponse';
export type { ServiceNowIncidentResponse } from './models/ServiceNowIncidentResponse';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ImpersonateUser = {
export type ImpersonateUserDto = {
id?: string | null;
name: string;
firstName: string;
lastName: string;
fullName: string;
uniqueName: string;
appName: string;
roles: Array<string>;
Expand Down
26 changes: 13 additions & 13 deletions src/api/services/ImpersonateUserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ImpersonateUser } from '../models/ImpersonateUser';
import type { ImpersonateUserDto } from 'src/api/models/ImpersonateUserDto';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI_Portal } from '../core/OpenAPI';
import { request as __request } from '../core/request';
Expand All @@ -13,7 +13,7 @@ export class ImpersonateUserService {
* @throws ApiError
*/
public static getApiV1ImpersonateUser(): CancelablePromise<
Array<ImpersonateUser>
Array<ImpersonateUserDto>
> {
return __request(OpenAPI_Portal, {
method: 'GET',
Expand All @@ -30,8 +30,8 @@ export class ImpersonateUserService {
* @throws ApiError
*/
public static createImpersonateUser(
requestBody?: ImpersonateUser
): CancelablePromise<ImpersonateUser> {
requestBody?: ImpersonateUserDto
): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'POST',
url: '/api/v1/ImpersonateUser',
Expand All @@ -51,8 +51,8 @@ export class ImpersonateUserService {
* @throws ApiError
*/
public static putImpersonateUser(
requestBody?: ImpersonateUser
): CancelablePromise<ImpersonateUser> {
requestBody?: ImpersonateUserDto
): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'PUT',
url: '/api/v1/ImpersonateUser',
Expand All @@ -71,7 +71,7 @@ export class ImpersonateUserService {
*/
public static getApiV1ImpersonateUserGetImpersonateUserForApp(
appName: string
): CancelablePromise<Array<ImpersonateUser>> {
): CancelablePromise<Array<ImpersonateUserDto>> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/GetImpersonateUserForApp/{appName}',
Expand All @@ -89,7 +89,7 @@ export class ImpersonateUserService {
* @returns ImpersonateUser Success
* @throws ApiError
*/
public static getAllActiveUsers(): CancelablePromise<ImpersonateUser> {
public static getAllActiveUsers(): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/ActiveUsers',
Expand All @@ -104,7 +104,7 @@ export class ImpersonateUserService {
* @returns ImpersonateUser Success
* @throws ApiError
*/
public static getActiveUser(): CancelablePromise<ImpersonateUser> {
public static getActiveUser(): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/ActiveUser',
Expand All @@ -122,7 +122,7 @@ export class ImpersonateUserService {
*/
public static getImpersonateUserById(
id?: string
): CancelablePromise<ImpersonateUser> {
): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/ImpersonateUser',
Expand All @@ -143,7 +143,7 @@ export class ImpersonateUserService {
*/
public static getImpersonateUserByUserName(
username?: string
): CancelablePromise<ImpersonateUser> {
): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/ImpersonateUser/ImpersonateUserByUserName',
Expand Down Expand Up @@ -178,7 +178,7 @@ export class ImpersonateUserService {
*/
public static startImpersonating(
username?: string
): CancelablePromise<ImpersonateUser> {
): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'PUT',
url: '/api/v1/ImpersonateUser/StartImpersonating',
Expand All @@ -196,7 +196,7 @@ export class ImpersonateUserService {
* @returns ImpersonateUser Success
* @throws ApiError
*/
public static stopImpersonating(): CancelablePromise<ImpersonateUser> {
public static stopImpersonating(): CancelablePromise<ImpersonateUserDto> {
return __request(OpenAPI_Portal, {
method: 'PUT',
url: '/api/v1/ImpersonateUser/StopImpersonating',
Expand Down