Skip to content

Commit 1f9ffe8

Browse files
committed
PATCH: fix ordering pdf pages (#638)
1 parent 5740bc2 commit 1f9ffe8

13 files changed

Lines changed: 522 additions & 12 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ bimdata_api_client/model/model_errors_request.py
102102
bimdata_api_client/model/model_files.py
103103
bimdata_api_client/model/model_property.py
104104
bimdata_api_client/model/model_request.py
105+
bimdata_api_client/model/model_serializer_without_children.py
105106
bimdata_api_client/model/model_with_positioning_plan.py
106107
bimdata_api_client/model/organization.py
107108
bimdata_api_client/model/organization_request.py
@@ -358,6 +359,7 @@ docs/ModelErrorsRequest.md
358359
docs/ModelFiles.md
359360
docs/ModelProperty.md
360361
docs/ModelRequest.md
362+
docs/ModelSerializerWithoutChildren.md
361363
docs/ModelWithPositioningPlan.md
362364
docs/Organization.md
363365
docs/OrganizationRequest.md
@@ -617,6 +619,7 @@ test/test_model_errors_request.py
617619
test/test_model_files.py
618620
test/test_model_property.py
619621
test/test_model_request.py
622+
test/test_model_serializer_without_children.py
620623
test/test_model_with_positioning_plan.py
621624
test/test_organization.py
622625
test/test_organization_request.py

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@ Class | Method | HTTP request | Description
754754
- [ModelFiles](docs/ModelFiles.md)
755755
- [ModelProperty](docs/ModelProperty.md)
756756
- [ModelRequest](docs/ModelRequest.md)
757+
- [ModelSerializerWithoutChildren](docs/ModelSerializerWithoutChildren.md)
757758
- [ModelWithPositioningPlan](docs/ModelWithPositioningPlan.md)
758759
- [Organization](docs/Organization.md)
759760
- [OrganizationRequest](docs/OrganizationRequest.md)

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8240,7 +8240,7 @@ def create_document(
82408240
):
82418241
"""Create a document # noqa: E501
82428242

8243-
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 # noqa: E501
8243+
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 # noqa: E501
82448244
This method makes a synchronous HTTP request by default. To make an
82458245
asynchronous HTTP request, please pass async_req=True
82468246

bimdata_api_client/model/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232

3333
def lazy_import():
3434
from bimdata_api_client.model.document import Document
35+
from bimdata_api_client.model.model_serializer_without_children import ModelSerializerWithoutChildren
3536
from bimdata_api_client.model.user import User
3637
globals()['Document'] = Document
38+
globals()['ModelSerializerWithoutChildren'] = ModelSerializerWithoutChildren
3739
globals()['User'] = User
3840

3941

@@ -143,7 +145,7 @@ def openapi_types():
143145
'errors': ([str], none_type,), # noqa: E501
144146
'warnings': ([str], none_type,), # noqa: E501
145147
'page_number': (int, none_type,), # noqa: E501
146-
'children': ([Model],), # noqa: E501
148+
'children': ([ModelSerializerWithoutChildren],), # noqa: E501
147149
'name': (str, none_type,), # noqa: E501
148150
'source': (str,), # noqa: E501
149151
'world_position': ([float], none_type,), # noqa: E501
@@ -243,7 +245,7 @@ def _from_openapi_data(cls, id, type, creator, status, created_at, updated_at, d
243245
errors ([str], none_type): List of errors that happened during IFC processing
244246
warnings ([str], none_type): List of warnings that happened during IFC processing
245247
page_number (int, none_type): The page number of the related pdf
246-
children ([Model]): Contains additional pages of a pdf
248+
children ([ModelSerializerWithoutChildren]): Contains additional pages of a pdf
247249
248250
Keyword Args:
249251
_check_type (bool): if True, values for parameters in openapi_types

0 commit comments

Comments
 (0)