Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit a3ac8b7

Browse files
committed
PATCH: fix ordering pdf pages (#638)
1 parent f15bd1e commit a3ac8b7

File tree

13 files changed

+791
-27
lines changed

13 files changed

+791
-27
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ docs/ModelErrors.md
9292
docs/ModelErrorsRequest.md
9393
docs/ModelFiles.md
9494
docs/ModelRequest.md
95+
docs/ModelSerializerWithoutChildren.md
9596
docs/ModelWithPositioningPlan.md
9697
docs/Organization.md
9798
docs/OrganizationRequest.md
@@ -353,6 +354,7 @@ src/model/ModelErrors.js
353354
src/model/ModelErrorsRequest.js
354355
src/model/ModelFiles.js
355356
src/model/ModelRequest.js
357+
src/model/ModelSerializerWithoutChildren.js
356358
src/model/ModelWithPositioningPlan.js
357359
src/model/Organization.js
358360
src/model/OrganizationRequest.js
@@ -608,6 +610,7 @@ test/model/ModelErrors.spec.js
608610
test/model/ModelErrorsRequest.spec.js
609611
test/model/ModelFiles.spec.js
610612
test/model/ModelRequest.spec.js
613+
test/model/ModelSerializerWithoutChildren.spec.js
611614
test/model/ModelWithPositioningPlan.spec.js
612615
test/model/Organization.spec.js
613616
test/model/OrganizationRequest.spec.js

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ Class | Method | HTTP request | Description
737737
- [bimdata.ModelErrorsRequest](docs/ModelErrorsRequest.md)
738738
- [bimdata.ModelFiles](docs/ModelFiles.md)
739739
- [bimdata.ModelRequest](docs/ModelRequest.md)
740+
- [bimdata.ModelSerializerWithoutChildren](docs/ModelSerializerWithoutChildren.md)
740741
- [bimdata.ModelWithPositioningPlan](docs/ModelWithPositioningPlan.md)
741742
- [bimdata.Organization](docs/Organization.md)
742743
- [bimdata.OrganizationRequest](docs/OrganizationRequest.md)

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ Name | Type | Description | Notes
954954
955955
Create a document
956956

957-
Create a document. If the document is one of {'POINT_CLOUD', 'BFX', 'DWG', 'DAE', 'GLTF', 'OBJ', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
957+
Create a document. If the document is one of {'DWG', 'POINT_CLOUD', 'DXF', 'OBJ', 'IFC', 'GLTF', 'DAE', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
958958

959959
### Example
960960

docs/Model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
3232
**northVector** | **[[Number]]** | This field is only for information. Updating it won't impact the export. | [optional]
3333
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
3434
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
35-
**children** | [**[Model]**](Model.md) | Contains additional pages of a pdf | [readonly]
35+
**children** | [**[ModelSerializerWithoutChildren]**](ModelSerializerWithoutChildren.md) | Contains additional pages of a pdf | [readonly]
3636

3737

3838

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# bimdata.ModelSerializerWithoutChildren
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **Number** | | [readonly]
8+
**name** | **String** | | [optional]
9+
**type** | **String** | | [readonly]
10+
**creator** | [**User**](User.md) | | [readonly]
11+
**status** | **String** | | [readonly]
12+
**source** | **String** | | [optional]
13+
**createdAt** | **Date** | | [readonly]
14+
**updatedAt** | **Date** | | [readonly]
15+
**documentId** | **Number** | | [readonly]
16+
**document** | [**Document**](Document.md) | | [readonly]
17+
**structureFile** | **String** | | [readonly]
18+
**systemsFile** | **String** | | [readonly]
19+
**mapFile** | **String** | | [readonly]
20+
**gltfFile** | **String** | | [readonly]
21+
**previewFile** | **String** | | [readonly]
22+
**viewer360File** | **String** | DEPRECATED: Use 'preview_file' instead. | [readonly]
23+
**xktFile** | **String** | | [readonly]
24+
**binary2dFile** | **String** | | [readonly]
25+
**projectId** | **Number** | | [readonly]
26+
**worldPosition** | **[Number]** | [x,y,z] array of the position of the local_placement in world coordinates | [optional]
27+
**sizeRatio** | **Number** | How many meters a unit represents | [optional]
28+
**errors** | **[String]** | List of errors that happened during IFC processing | [readonly]
29+
**warnings** | **[String]** | List of warnings that happened during IFC processing | [readonly]
30+
**archived** | **Boolean** | | [optional]
31+
**version** | **String** | This field is only for information. Updating it won't impact the export. | [optional]
32+
**northVector** | **[[Number]]** | This field is only for information. Updating it won't impact the export. | [optional]
33+
**recommanded2dAngle** | **Number** | This is the angle in clockwise degree to apply on the 2D to optimise the horizontality of objects. This field is only for information. Updating it won't impact the export. | [optional]
34+
**pageNumber** | **Number** | The page number of the related pdf | [readonly]
35+
36+
37+
38+
## Enum: TypeEnum
39+
40+
41+
* `IFC` (value: `"IFC"`)
42+
43+
* `DWG` (value: `"DWG"`)
44+
45+
* `DXF` (value: `"DXF"`)
46+
47+
* `GLTF` (value: `"GLTF"`)
48+
49+
* `PDF` (value: `"PDF"`)
50+
51+
* `JPEG` (value: `"JPEG"`)
52+
53+
* `PNG` (value: `"PNG"`)
54+
55+
* `OBJ` (value: `"OBJ"`)
56+
57+
* `DAE` (value: `"DAE"`)
58+
59+
* `BFX` (value: `"BFX"`)
60+
61+
* `POINT_CLOUD` (value: `"POINT_CLOUD"`)
62+
63+
* `METABUILDING` (value: `"METABUILDING"`)
64+
65+
66+
67+
68+
69+
## Enum: SourceEnum
70+
71+
72+
* `UPLOAD` (value: `"UPLOAD"`)
73+
74+
* `SPLIT` (value: `"SPLIT"`)
75+
76+
* `MERGE` (value: `"MERGE"`)
77+
78+
* `EXPORT` (value: `"EXPORT"`)
79+
80+
* `OPTIMIZED` (value: `"OPTIMIZED"`)
81+
82+
83+
84+

docs/Size.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**isUnsupervised** | **Boolean** | | [readonly]
87
**managedBy** | **String** | |
98
**role** | **Number** | |
109
**totalSize** | **Number** | | [readonly]

src/api/CollaborationApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ export default class CollaborationApi {
857857

858858
/**
859859
* Create a document
860-
* Create a document. If the document is one of {'POINT_CLOUD', 'BFX', 'DWG', 'DAE', 'GLTF', 'OBJ', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
860+
* Create a document. If the document is one of {'DWG', 'POINT_CLOUD', 'DXF', 'OBJ', 'IFC', 'GLTF', 'DAE', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
861861
* @param {Number} cloudPk A unique integer value identifying this cloud.
862862
* @param {Number} projectPk A unique integer value identifying this project.
863863
* @param {String} name Shown name of the file
@@ -925,7 +925,7 @@ export default class CollaborationApi {
925925

926926
/**
927927
* Create a document
928-
* Create a document. If the document is one of {'POINT_CLOUD', 'BFX', 'DWG', 'DAE', 'GLTF', 'OBJ', 'DXF', 'IFC'}, a model will be created and attached to this document Required scopes: document:write
928+
* Create a document. If the document is one of {'DWG', 'POINT_CLOUD', 'DXF', 'OBJ', 'IFC', 'GLTF', 'DAE', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
929929
* @param {Number} cloudPk A unique integer value identifying this cloud.
930930
* @param {Number} projectPk A unique integer value identifying this project.
931931
* @param {String} name Shown name of the file

src/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ import ModelErrors from './model/ModelErrors';
9898
import ModelErrorsRequest from './model/ModelErrorsRequest';
9999
import ModelFiles from './model/ModelFiles';
100100
import ModelRequest from './model/ModelRequest';
101+
import ModelSerializerWithoutChildren from './model/ModelSerializerWithoutChildren';
101102
import ModelWithPositioningPlan from './model/ModelWithPositioningPlan';
102103
import Organization from './model/Organization';
103104
import OrganizationRequest from './model/OrganizationRequest';
@@ -818,6 +819,12 @@ export {
818819
*/
819820
ModelRequest,
820821

822+
/**
823+
* The ModelSerializerWithoutChildren model constructor.
824+
* @property {module:model/ModelSerializerWithoutChildren}
825+
*/
826+
ModelSerializerWithoutChildren,
827+
821828
/**
822829
* The ModelWithPositioningPlan model constructor.
823830
* @property {module:model/ModelWithPositioningPlan}

src/model/Model.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import ApiClient from '../ApiClient';
1515
import Document from './Document';
16+
import ModelSerializerWithoutChildren from './ModelSerializerWithoutChildren';
1617
import User from './User';
1718

1819
/**
@@ -44,7 +45,7 @@ class Model {
4445
* @param errors {Array.<String>} List of errors that happened during IFC processing
4546
* @param warnings {Array.<String>} List of warnings that happened during IFC processing
4647
* @param pageNumber {Number} The page number of the related pdf
47-
* @param children {Array.<module:model/Model>} Contains additional pages of a pdf
48+
* @param children {Array.<module:model/ModelSerializerWithoutChildren>} Contains additional pages of a pdf
4849
*/
4950
constructor(id, type, creator, status, createdAt, updatedAt, documentId, document, structureFile, systemsFile, mapFile, gltfFile, previewFile, viewer360File, xktFile, binary2dFile, projectId, errors, warnings, pageNumber, children) {
5051

@@ -176,7 +177,7 @@ class Model {
176177
obj['page_number'] = ApiClient.convertToType(data['page_number'], 'Number');
177178
}
178179
if (data.hasOwnProperty('children')) {
179-
obj['children'] = ApiClient.convertToType(data['children'], [Model]);
180+
obj['children'] = ApiClient.convertToType(data['children'], [ModelSerializerWithoutChildren]);
180181
}
181182
}
182183
return obj;
@@ -336,7 +337,7 @@ Model.prototype['page_number'] = undefined;
336337

337338
/**
338339
* Contains additional pages of a pdf
339-
* @member {Array.<module:model/Model>} children
340+
* @member {Array.<module:model/ModelSerializerWithoutChildren>} children
340341
*/
341342
Model.prototype['children'] = undefined;
342343

0 commit comments

Comments
 (0)