-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: add logging for documents, folder and user invitations (#712)
* first implementation with documents * implement and test documents and folders * aborted try to test folder permission propagation * fix test get_path * add project invitation logs * improve admin * typo * add log view test and scope * fix check_access test * commit app migrations
- Loading branch information
1 parent
5ed6aac
commit fd63c82
Showing
4 changed files
with
175 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* BIMData API | ||
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. | ||
* | ||
* The version of the OpenAPI document: v1 (v1) | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* | ||
* @export | ||
* @interface LogEntry | ||
*/ | ||
export interface LogEntry { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof LogEntry | ||
*/ | ||
readonly id: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof LogEntry | ||
*/ | ||
readonly user_id: number | null; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof LogEntry | ||
*/ | ||
user_email: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof LogEntry | ||
*/ | ||
app_name: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof LogEntry | ||
*/ | ||
project_name: string; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof LogEntry | ||
*/ | ||
readonly date: Date; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof LogEntry | ||
*/ | ||
action: string; | ||
/** | ||
* | ||
* @type {{ [key: string]: any; }} | ||
* @memberof LogEntry | ||
*/ | ||
description: { [key: string]: any; }; | ||
} | ||
|
||
export function LogEntryFromJSON(json: any): LogEntry { | ||
return LogEntryFromJSONTyped(json, false); | ||
} | ||
|
||
export function LogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogEntry { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'id': json['id'], | ||
'user_id': json['user_id'], | ||
'user_email': json['user_email'], | ||
'app_name': json['app_name'], | ||
'project_name': json['project_name'], | ||
'date': (new Date(json['date'])), | ||
'action': json['action'], | ||
'description': json['description'], | ||
}; | ||
} | ||
|
||
export function LogEntryToJSON(value?: LogEntry | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'user_email': value.user_email, | ||
'app_name': value.app_name, | ||
'project_name': value.project_name, | ||
'action': value.action, | ||
'description': value.description, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters