Skip to content

Commit b1482ab

Browse files
committed
PATCH: fix model_type notification
1 parent 4e5d0f8 commit b1482ab

File tree

10 files changed

+54
-51
lines changed

10 files changed

+54
-51
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 {\'GLTF\', \'DXF\', \'IFC\', \'DWG\', \'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 {\'DWG\', \'PHOTOSPHERE\', \'GLTF\', \'IFC\', \'DXF\', \'POINT_CLOUD\', \'OBJ\'}, 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 {\'GLTF\', \'DXF\', \'IFC\', \'DWG\', \'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 {\'DWG\', \'PHOTOSPHERE\', \'GLTF\', \'IFC\', \'DXF\', \'POINT_CLOUD\', \'OBJ\'}, 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12741,6 +12741,7 @@ export enum GetModelsTypeEnum {
1274112741
Obj = 'OBJ',
1274212742
Pdf = 'PDF',
1274312743
Photosphere = 'PHOTOSPHERE',
12744+
Photosphere = 'PHOTOSPHERE',
1274412745
PhotosphereBuilding = 'PHOTOSPHERE_BUILDING',
1274512746
Png = 'PNG',
1274612747
PointCloud = 'POINT_CLOUD'

package/src/models/Document.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export interface Document {
129129
*/
130130
readonly model_id: number | null;
131131
/**
132-
* Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD
132+
* Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD, PHOTOSPHERE
133133
* @type {string}
134134
* @memberof Document
135135
*/
@@ -192,6 +192,7 @@ export enum DocumentModelTypeEnum {
192192
Png = 'PNG',
193193
Obj = 'OBJ',
194194
PointCloud = 'POINT_CLOUD',
195+
Photosphere = 'PHOTOSPHERE',
195196
Null = 'null'
196197
}/**
197198
* @export

package/src/models/DocumentText.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ export interface DocumentText {
3232
*/
3333
text?: string | null;
3434
/**
35-
* * `italian` - italian
3635
* * `german` - german
3736
* * `english` - english
3837
* * `spanish` - spanish
38+
* * `italian` - italian
3939
* * `french` - french
4040
* @type {string}
4141
* @memberof DocumentText
@@ -48,10 +48,10 @@ export interface DocumentText {
4848
* @enum {string}
4949
*/
5050
export enum DocumentTextLanguageEnum {
51-
Italian = 'italian',
5251
German = 'german',
5352
English = 'english',
5453
Spanish = 'spanish',
54+
Italian = 'italian',
5555
French = 'french',
5656
Null = 'null'
5757
}

package/src/models/Model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export interface Model {
7878
* * `PNG` - PNG
7979
* * `OBJ` - OBJ
8080
* * `POINT_CLOUD` - POINT_CLOUD
81-
* * `METABUILDING` - METABUILDING
8281
* * `PHOTOSPHERE` - PHOTOSPHERE
82+
* * `METABUILDING` - METABUILDING
8383
* * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
8484
* @type {string}
8585
* @memberof Model
@@ -291,8 +291,8 @@ export enum ModelTypeEnum {
291291
Png = 'PNG',
292292
Obj = 'OBJ',
293293
PointCloud = 'POINT_CLOUD',
294-
Metabuilding = 'METABUILDING',
295294
Photosphere = 'PHOTOSPHERE',
295+
Metabuilding = 'METABUILDING',
296296
PhotosphereBuilding = 'PHOTOSPHERE_BUILDING'
297297
}/**
298298
* @export

package/src/models/ModelSerializerWithoutChildren.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export interface ModelSerializerWithoutChildren {
7272
* * `PNG` - PNG
7373
* * `OBJ` - OBJ
7474
* * `POINT_CLOUD` - POINT_CLOUD
75-
* * `METABUILDING` - METABUILDING
7675
* * `PHOTOSPHERE` - PHOTOSPHERE
76+
* * `METABUILDING` - METABUILDING
7777
* * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING
7878
* @type {string}
7979
* @memberof ModelSerializerWithoutChildren
@@ -279,8 +279,8 @@ export enum ModelSerializerWithoutChildrenTypeEnum {
279279
Png = 'PNG',
280280
Obj = 'OBJ',
281281
PointCloud = 'POINT_CLOUD',
282-
Metabuilding = 'METABUILDING',
283282
Photosphere = 'PHOTOSPHERE',
283+
Metabuilding = 'METABUILDING',
284284
PhotosphereBuilding = 'PHOTOSPHERE_BUILDING'
285285
}/**
286286
* @export

package/src/models/PatchedDocumentTextRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ export interface PatchedDocumentTextRequest {
2626
*/
2727
text?: string | null;
2828
/**
29-
* * `italian` - italian
3029
* * `german` - german
3130
* * `english` - english
3231
* * `spanish` - spanish
32+
* * `italian` - italian
3333
* * `french` - french
3434
* @type {string}
3535
* @memberof PatchedDocumentTextRequest
@@ -42,10 +42,10 @@ export interface PatchedDocumentTextRequest {
4242
* @enum {string}
4343
*/
4444
export enum PatchedDocumentTextRequestLanguageEnum {
45-
Italian = 'italian',
4645
German = 'german',
4746
English = 'english',
4847
Spanish = 'spanish',
48+
Italian = 'italian',
4949
French = 'french',
5050
Null = 'null'
5151
}

package/src/models/RecursiveFolderChildren.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface RecursiveFolderChildren {
6363
*/
6464
readonly nature: RecursiveFolderChildrenNatureEnum;
6565
/**
66-
* Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD
66+
* Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD, PHOTOSPHERE
6767
* @type {string}
6868
* @memberof RecursiveFolderChildren
6969
*/
@@ -196,6 +196,7 @@ export enum RecursiveFolderChildrenModelTypeEnum {
196196
Png = 'PNG',
197197
Obj = 'OBJ',
198198
PointCloud = 'POINT_CLOUD',
199+
Photosphere = 'PHOTOSPHERE',
199200
Null = 'null'
200201
}/**
201202
* @export

package/src/models/WriteFolder.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,39 @@ import {
3333
*/
3434
export interface WriteFolder {
3535
/**
36-
* Value is "Folder". It is usefull to parse the tree and discriminate folders and files
36+
* Name of the folder
3737
* @type {string}
3838
* @memberof WriteFolder
3939
*/
40-
readonly nature: string;
40+
name: string;
4141
/**
42-
*
43-
* @type {number}
42+
* Creation date
43+
* @type {Date}
4444
* @memberof WriteFolder
4545
*/
46-
readonly id: number;
46+
readonly created_at: Date;
4747
/**
48+
* Permission for a Folder
4849
*
50+
* * `1` - denied
51+
* * `50` - read_only
52+
* * `100` - read_write
4953
* @type {number}
5054
* @memberof WriteFolder
5155
*/
52-
parent_id?: number | null;
56+
default_permission?: WriteFolderDefaultPermissionEnum;
5357
/**
54-
* Name of the folder
55-
* @type {string}
58+
* Aggregate of group user permissions and folder default permission
59+
* @type {number}
5660
* @memberof WriteFolder
5761
*/
58-
name: string;
62+
readonly user_permission: WriteFolderUserPermissionEnum;
5963
/**
60-
* Permission for a Folder
6164
*
62-
* * `1` - denied
63-
* * `50` - read_only
64-
* * `100` - read_write
6565
* @type {number}
6666
* @memberof WriteFolder
6767
*/
68-
default_permission?: WriteFolderDefaultPermissionEnum;
68+
readonly id: number;
6969
/**
7070
* DEPRECATED: Use 'nature' instead. Value is "Folder". It is usefull to parse the tree and discriminate folders and files
7171
* @type {string}
@@ -74,16 +74,22 @@ export interface WriteFolder {
7474
readonly type: string;
7575
/**
7676
*
77-
* @type {ShortUser}
77+
* @type {number}
7878
* @memberof WriteFolder
7979
*/
80-
readonly created_by: ShortUser | null;
80+
parent_id?: number | null;
8181
/**
82-
* Aggregate of group user permissions and folder default permission
83-
* @type {number}
82+
* Value is "Folder". It is usefull to parse the tree and discriminate folders and files
83+
* @type {string}
8484
* @memberof WriteFolder
8585
*/
86-
readonly user_permission: WriteFolderUserPermissionEnum;
86+
readonly nature: string;
87+
/**
88+
*
89+
* @type {ShortUser}
90+
* @memberof WriteFolder
91+
*/
92+
readonly created_by: ShortUser | null;
8793
/**
8894
* List of group permissions
8995
* @type {Array<GroupFolderRead>}
@@ -96,12 +102,6 @@ export interface WriteFolder {
96102
* @memberof WriteFolder
97103
*/
98104
readonly updated_at: Date;
99-
/**
100-
* Creation date
101-
* @type {Date}
102-
* @memberof WriteFolder
103-
*/
104-
readonly created_at: Date;
105105
/**
106106
*
107107
* @type {Array<WriteFolder>}
@@ -138,17 +138,17 @@ export function WriteFolderFromJSONTyped(json: any, ignoreDiscriminator: boolean
138138
}
139139
return {
140140

141-
'nature': json['nature'],
142-
'id': json['id'],
143-
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
144141
'name': json['name'],
142+
'created_at': (new Date(json['created_at'])),
145143
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
144+
'user_permission': json['user_permission'],
145+
'id': json['id'],
146146
'type': json['type'],
147+
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
148+
'nature': json['nature'],
147149
'created_by': ShortUserFromJSON(json['created_by']),
148-
'user_permission': json['user_permission'],
149150
'groups_permissions': ((json['groups_permissions'] as Array<any>).map(GroupFolderReadFromJSON)),
150151
'updated_at': (new Date(json['updated_at'])),
151-
'created_at': (new Date(json['created_at'])),
152152
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderFromJSON)),
153153
};
154154
}
@@ -162,9 +162,9 @@ export function WriteFolderToJSON(value?: WriteFolder | null): any {
162162
}
163163
return {
164164

165-
'parent_id': value.parent_id,
166165
'name': value.name,
167166
'default_permission': value.default_permission,
167+
'parent_id': value.parent_id,
168168
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderToJSON)),
169169
};
170170
}

package/src/models/WriteFolderRequest.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ import {
2626
* @interface WriteFolderRequest
2727
*/
2828
export interface WriteFolderRequest {
29-
/**
30-
*
31-
* @type {number}
32-
* @memberof WriteFolderRequest
33-
*/
34-
parent_id?: number | null;
3529
/**
3630
* Name of the folder
3731
* @type {string}
@@ -48,6 +42,12 @@ export interface WriteFolderRequest {
4842
* @memberof WriteFolderRequest
4943
*/
5044
default_permission?: WriteFolderRequestDefaultPermissionEnum;
45+
/**
46+
*
47+
* @type {number}
48+
* @memberof WriteFolderRequest
49+
*/
50+
parent_id?: number | null;
5151
/**
5252
*
5353
* @type {Array<WriteFolder>}
@@ -76,9 +76,9 @@ export function WriteFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
7676
}
7777
return {
7878

79-
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
8079
'name': json['name'],
8180
'default_permission': !exists(json, 'default_permission') ? undefined : json['default_permission'],
81+
'parent_id': !exists(json, 'parent_id') ? undefined : json['parent_id'],
8282
'children': !exists(json, 'children') ? undefined : (json['children'] === null ? null : (json['children'] as Array<any>).map(WriteFolderFromJSON)),
8383
};
8484
}
@@ -92,9 +92,9 @@ export function WriteFolderRequestToJSON(value?: WriteFolderRequest | null): any
9292
}
9393
return {
9494

95-
'parent_id': value.parent_id,
9695
'name': value.name,
9796
'default_permission': value.default_permission,
97+
'parent_id': value.parent_id,
9898
'children': value.children === undefined ? undefined : (value.children === null ? null : (value.children as Array<any>).map(WriteFolderToJSON)),
9999
};
100100
}

0 commit comments

Comments
 (0)