Skip to content

Commit

Permalink
MINOR: add user deail to check-access response (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Nov 29, 2023
1 parent e190edf commit c1f2628
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'GLTF\', \'DWG\', \'DXF\', \'POINT_CLOUD\', \'IFC\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'IFC\', \'DXF\', \'GLTF\', \'OBJ\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document
*/
async createDocumentRaw(requestParameters: CreateDocumentRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Document>> {
Expand Down Expand Up @@ -1667,7 +1667,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'GLTF\', \'DWG\', \'DXF\', \'POINT_CLOUD\', \'IFC\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'IFC\', \'DXF\', \'GLTF\', \'OBJ\', \'DWG\', \'POINT_CLOUD\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document
*/
async createDocument(cloud_pk: number, project_pk: number, name: string, file: Blob, parent_id?: number | null, file_name?: string, description?: string | null, model_source?: CreateDocumentModelSourceEnum, ifc_source?: CreateDocumentIfcSourceEnum, successor_of?: number, initOverrides?: RequestInit): Promise<Document> {
Expand Down
15 changes: 15 additions & 0 deletions package/src/models/CheckProjectAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';

/**
*
* @export
Expand Down Expand Up @@ -57,6 +64,12 @@ export interface CheckProjectAccess {
* @memberof CheckProjectAccess
*/
user_role?: CheckProjectAccessUserRoleEnum;
/**
*
* @type {User}
* @memberof CheckProjectAccess
*/
user?: User;
}

/**
Expand Down Expand Up @@ -85,6 +98,7 @@ export function CheckProjectAccessFromJSONTyped(json: any, ignoreDiscriminator:
'token_scopes': json['token_scopes'],
'usable_scopes': json['usable_scopes'],
'user_role': !exists(json, 'user_role') ? undefined : json['user_role'],
'user': !exists(json, 'user') ? undefined : UserFromJSON(json['user']),
};
}

Expand All @@ -103,6 +117,7 @@ export function CheckProjectAccessToJSON(value?: CheckProjectAccess | null): any
'token_scopes': value.token_scopes,
'usable_scopes': value.usable_scopes,
'user_role': value.user_role,
'user': UserToJSON(value.user),
};
}

0 comments on commit c1f2628

Please sign in to comment.