Skip to content

Commit

Permalink
MINOR: Add log for cloud invitations (#746)
Browse files Browse the repository at this point in the history
* Add cloud invitation logs.

* Add log for canceled invitations.

* Add migration to delete unwanted UserProject.

* Fix typo.

* Better log action naming.

* Fix migration.

* Rename log decorators.
  • Loading branch information
Bimdata-io committed May 28, 2024
1 parent 8cdef99 commit f5de6fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package/src/apis/CollaborationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'POINT_CLOUD\', \'DXF\', \'DWG\', \'GLTF\', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'POINT_CLOUD\', \'DWG\', \'IFC\', \'DXF\', \'GLTF\', \'OBJ\'}, 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 @@ -1759,7 +1759,7 @@ export class CollaborationApi extends runtime.BaseAPI {
}

/**
* Create a document. If the document is one of {\'OBJ\', \'POINT_CLOUD\', \'DXF\', \'DWG\', \'GLTF\', \'IFC\'}, a model will be created and attached to this document Required scopes: document:write
* Create a document. If the document is one of {\'POINT_CLOUD\', \'DWG\', \'IFC\', \'DXF\', \'GLTF\', \'OBJ\'}, 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
16 changes: 8 additions & 8 deletions package/src/models/WriteFolderRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
* @interface WriteFolderRequest
*/
export interface WriteFolderRequest {
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
* Permission for a Folder
*
Expand All @@ -29,12 +35,6 @@ export interface WriteFolderRequest {
* @memberof WriteFolderRequest
*/
default_permission?: WriteFolderRequestDefaultPermissionEnum;
/**
* Name of the folder
* @type {string}
* @memberof WriteFolderRequest
*/
name: string;
/**
*
* @type {number}
Expand Down Expand Up @@ -69,8 +69,8 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
}
return {

'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'name': json['name'],
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderRequestFromJSON)),
};
Expand All @@ -85,8 +85,8 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any
}
return {

'default_permission': value.default_permission,
'name': value.name,
'default_permission': value.default_permission,
'parent_id': value.parent_id,
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderRequestToJSON)),
};
Expand Down

0 comments on commit f5de6fb

Please sign in to comment.