Skip to content

Commit 6157796

Browse files
committed
PATCH: fix model_type documentation
1 parent b1482ab commit 6157796

File tree

5 files changed

+48
-49
lines changed

5 files changed

+48
-49
lines changed

package/src/apis/CollaborationApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ export class CollaborationApi extends runtime.BaseAPI {
16931693
}
16941694

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

18021802
/**
1803-
* Create a document. If the document is one of {\'DWG\', \'PHOTOSPHERE\', \'GLTF\', \'IFC\', \'DXF\', \'POINT_CLOUD\', \'OBJ\'}, a model will be created and attached to this document Required scopes: document:write
1803+
* Create a document. If the document is one of {\'POINT_CLOUD\', \'DXF\', \'OBJ\', \'DWG\', \'IFC\', \'PHOTOSPHERE\', \'GLTF\'}, a model will be created and attached to this document Required scopes: document:write
18041804
* Create a document
18051805
*/
18061806
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, process_hint?: CreateDocumentProcessHintEnum, initOverrides?: RequestInit): Promise<Document> {

package/src/apis/ModelApi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12741,7 +12741,6 @@ export enum GetModelsTypeEnum {
1274112741
Obj = 'OBJ',
1274212742
Pdf = 'PDF',
1274312743
Photosphere = 'PHOTOSPHERE',
12744-
Photosphere = 'PHOTOSPHERE',
1274512744
PhotosphereBuilding = 'PHOTOSPHERE_BUILDING',
1274612745
Png = 'PNG',
1274712746
PointCloud = 'POINT_CLOUD'

package/src/models/DocumentText.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export interface DocumentText {
3232
*/
3333
text?: string | null;
3434
/**
35-
* * `german` - german
35+
* * `french` - french
36+
* * `italian` - italian
3637
* * `english` - english
3738
* * `spanish` - spanish
38-
* * `italian` - italian
39-
* * `french` - french
39+
* * `german` - german
4040
* @type {string}
4141
* @memberof DocumentText
4242
*/
@@ -48,11 +48,11 @@ export interface DocumentText {
4848
* @enum {string}
4949
*/
5050
export enum DocumentTextLanguageEnum {
51-
German = 'german',
51+
French = 'french',
52+
Italian = 'italian',
5253
English = 'english',
5354
Spanish = 'spanish',
54-
Italian = 'italian',
55-
French = 'french',
55+
German = 'german',
5656
Null = 'null'
5757
}
5858

package/src/models/PatchedDocumentTextRequest.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ export interface PatchedDocumentTextRequest {
2626
*/
2727
text?: string | null;
2828
/**
29-
* * `german` - german
29+
* * `french` - french
30+
* * `italian` - italian
3031
* * `english` - english
3132
* * `spanish` - spanish
32-
* * `italian` - italian
33-
* * `french` - french
33+
* * `german` - german
3434
* @type {string}
3535
* @memberof PatchedDocumentTextRequest
3636
*/
@@ -42,11 +42,11 @@ export interface PatchedDocumentTextRequest {
4242
* @enum {string}
4343
*/
4444
export enum PatchedDocumentTextRequestLanguageEnum {
45-
German = 'german',
45+
French = 'french',
46+
Italian = 'italian',
4647
English = 'english',
4748
Spanish = 'spanish',
48-
Italian = 'italian',
49-
French = 'french',
49+
German = 'german',
5050
Null = 'null'
5151
}
5252

package/src/models/WriteFolder.ts

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,30 @@ import {
3232
* @interface WriteFolder
3333
*/
3434
export interface WriteFolder {
35+
/**
36+
*
37+
* @type {ShortUser}
38+
* @memberof WriteFolder
39+
*/
40+
readonly created_by: ShortUser | null;
41+
/**
42+
* Aggregate of group user permissions and folder default permission
43+
* @type {number}
44+
* @memberof WriteFolder
45+
*/
46+
readonly user_permission: WriteFolderUserPermissionEnum;
3547
/**
3648
* Name of the folder
3749
* @type {string}
3850
* @memberof WriteFolder
3951
*/
4052
name: string;
4153
/**
42-
* Creation date
43-
* @type {Date}
54+
* DEPRECATED: Use 'nature' instead. Value is "Folder". It is usefull to parse the tree and discriminate folders and files
55+
* @type {string}
4456
* @memberof WriteFolder
4557
*/
46-
readonly created_at: Date;
58+
readonly type: string;
4759
/**
4860
* Permission for a Folder
4961
*
@@ -54,54 +66,42 @@ export interface WriteFolder {
5466
* @memberof WriteFolder
5567
*/
5668
default_permission?: WriteFolderDefaultPermissionEnum;
57-
/**
58-
* Aggregate of group user permissions and folder default permission
59-
* @type {number}
60-
* @memberof WriteFolder
61-
*/
62-
readonly user_permission: WriteFolderUserPermissionEnum;
6369
/**
6470
*
6571
* @type {number}
6672
* @memberof WriteFolder
6773
*/
6874
readonly id: number;
69-
/**
70-
* DEPRECATED: Use 'nature' instead. Value is "Folder". It is usefull to parse the tree and discriminate folders and files
71-
* @type {string}
72-
* @memberof WriteFolder
73-
*/
74-
readonly type: string;
7575
/**
7676
*
7777
* @type {number}
7878
* @memberof WriteFolder
7979
*/
8080
parent_id?: number | null;
8181
/**
82-
* Value is "Folder". It is usefull to parse the tree and discriminate folders and files
83-
* @type {string}
84-
* @memberof WriteFolder
85-
*/
86-
readonly nature: string;
87-
/**
88-
*
89-
* @type {ShortUser}
82+
* Date of the last update
83+
* @type {Date}
9084
* @memberof WriteFolder
9185
*/
92-
readonly created_by: ShortUser | null;
86+
readonly updated_at: Date;
9387
/**
9488
* List of group permissions
9589
* @type {Array<GroupFolderRead>}
9690
* @memberof WriteFolder
9791
*/
9892
readonly groups_permissions: Array<GroupFolderRead>;
9993
/**
100-
* Date of the last update
94+
* Creation date
10195
* @type {Date}
10296
* @memberof WriteFolder
10397
*/
104-
readonly updated_at: Date;
98+
readonly created_at: Date;
99+
/**
100+
* Value is "Folder". It is usefull to parse the tree and discriminate folders and files
101+
* @type {string}
102+
* @memberof WriteFolder
103+
*/
104+
readonly nature: string;
105105
/**
106106
*
107107
* @type {Array<WriteFolder>}
@@ -114,15 +114,15 @@ export interface WriteFolder {
114114
* @export
115115
* @enum {string}
116116
*/
117-
export enum WriteFolderDefaultPermissionEnum {
117+
export enum WriteFolderUserPermissionEnum {
118118
NUMBER_1 = 1,
119119
NUMBER_50 = 50,
120120
NUMBER_100 = 100
121121
}/**
122122
* @export
123123
* @enum {string}
124124
*/
125-
export enum WriteFolderUserPermissionEnum {
125+
export enum WriteFolderDefaultPermissionEnum {
126126
NUMBER_1 = 1,
127127
NUMBER_50 = 50,
128128
NUMBER_100 = 100
@@ -138,17 +138,17 @@ export function WriteFolderFromJSONTyped(json: any, ignoreDiscriminator: boolean
138138
}
139139
return {
140140

141+
'created_by': ShortUserFromJSON(json['created_by']),
142+
'user_permission': json['user_permission'],
141143
'name': json['name'],
142-
'created_at': (new Date(json['created_at'])),
144+
'type': json['type'],
143145
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
144-
'user_permission': json['user_permission'],
145146
'id': json['id'],
146-
'type': json['type'],
147147
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
148-
'nature': json['nature'],
149-
'created_by': ShortUserFromJSON(json['created_by']),
150-
'groups_permissions': ((json['groups_permissions'] as Array<any>).map(GroupFolderReadFromJSON)),
151148
'updated_at': (new Date(json['updated_at'])),
149+
'groups_permissions': ((json['groups_permissions'] as Array<any>).map(GroupFolderReadFromJSON)),
150+
'created_at': (new Date(json['created_at'])),
151+
'nature': json['nature'],
152152
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderFromJSON)),
153153
};
154154
}

0 commit comments

Comments
 (0)