Skip to content

Commit

Permalink
Merge pull request #28 from equinor/chore/newest-api-updates
Browse files Browse the repository at this point in the history
chore/newest-api-updates
  • Loading branch information
mariush2 authored Aug 14, 2024
2 parents eda812d + 64b1048 commit de2dce0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
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.5",
"version": "1.1.6",
"description": "React Typescript components/hooks to communicate with equinor/sam",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
13 changes: 13 additions & 0 deletions src/api/models/GraphAppRole.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type GraphAppRole = {
allowedMemberTypes?: Array<string> | null;
description?: string | null;
displayName?: string | null;
id?: string | null;
isEnabled?: boolean | null;
origin?: string | null;
value?: string | null;
};
5 changes: 0 additions & 5 deletions src/api/models/JToken.ts

This file was deleted.

15 changes: 8 additions & 7 deletions src/api/services/AmplifyApplicationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { AmplifyApplication } from '../models/AmplifyApplication';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI_Portal, OpenAPI_Portal_Prod } from '../core/OpenAPI';
import { request as __request } from '../core/request';
import { JToken } from '../models/JToken';
import { GraphAppRole } from '../models/GraphAppRole';
export class AmplifyApplicationService {
/**
* Get all applications that user has access to
Expand All @@ -26,18 +26,19 @@ export class AmplifyApplicationService {
});
}
/**
* @param appClientId
* @returns JToken Success
* Get all roles for an application
* @param applicationId
* @returns GraphAppRole Success
* @throws ApiError
*/
public static getAllAppRoles(
appClientId: string
): CancelablePromise<Array<JToken>> {
applicationId: string
): CancelablePromise<Array<GraphAppRole>> {
return __request(OpenAPI_Portal, {
method: 'GET',
url: '/api/v1/AmplifyApplication/application/{appClientId}/groups',
url: '/api/v1/AmplifyApplication/application/{applicationId}/appRoles',
path: {
appClientId: appClientId,
applicationId: applicationId,
},
});
}
Expand Down

0 comments on commit de2dce0

Please sign in to comment.