-
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 model drawings * fix tests * add admin
- Loading branch information
1 parent
c1f2628
commit 3d2f60d
Showing
8 changed files
with
914 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,84 @@ | ||
/* 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'; | ||
import { | ||
User, | ||
UserFromJSON, | ||
UserFromJSONTyped, | ||
UserToJSON, | ||
} from './User'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface Drawing | ||
*/ | ||
export interface Drawing { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof Drawing | ||
*/ | ||
readonly id: number; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof Drawing | ||
*/ | ||
content: string; | ||
/** | ||
* | ||
* @type {User} | ||
* @memberof Drawing | ||
*/ | ||
readonly creator: User | null; | ||
/** | ||
* | ||
* @type {Date} | ||
* @memberof Drawing | ||
*/ | ||
readonly created_at: Date; | ||
} | ||
|
||
export function DrawingFromJSON(json: any): Drawing { | ||
return DrawingFromJSONTyped(json, false); | ||
} | ||
|
||
export function DrawingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Drawing { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'id': json['id'], | ||
'content': json['content'], | ||
'creator': UserFromJSON(json['creator']), | ||
'created_at': (new Date(json['created_at'])), | ||
}; | ||
} | ||
|
||
export function DrawingToJSON(value?: Drawing | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'content': value.content, | ||
}; | ||
} | ||
|
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,56 @@ | ||
/* 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 DrawingRequest | ||
*/ | ||
export interface DrawingRequest { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof DrawingRequest | ||
*/ | ||
content: string; | ||
} | ||
|
||
export function DrawingRequestFromJSON(json: any): DrawingRequest { | ||
return DrawingRequestFromJSONTyped(json, false); | ||
} | ||
|
||
export function DrawingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DrawingRequest { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'content': json['content'], | ||
}; | ||
} | ||
|
||
export function DrawingRequestToJSON(value?: DrawingRequest | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'content': value.content, | ||
}; | ||
} | ||
|
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,56 @@ | ||
/* 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 PatchedDrawingRequest | ||
*/ | ||
export interface PatchedDrawingRequest { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof PatchedDrawingRequest | ||
*/ | ||
content?: string; | ||
} | ||
|
||
export function PatchedDrawingRequestFromJSON(json: any): PatchedDrawingRequest { | ||
return PatchedDrawingRequestFromJSONTyped(json, false); | ||
} | ||
|
||
export function PatchedDrawingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedDrawingRequest { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'content': !exists(json, 'content') ? undefined : json['content'], | ||
}; | ||
} | ||
|
||
export function PatchedDrawingRequestToJSON(value?: PatchedDrawingRequest | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'content': value.content, | ||
}; | ||
} | ||
|
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