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

Commit 8ee529f

Browse files
committed
PATCH: Bcf group permissions (#911)
* Add model, filter list views * wip: permissions * remove useless config * Comment permission implementation * bcf permissions * more tests, more view filters * add more tests * add comment about permissions
1 parent 366e07b commit 8ee529f

30 files changed

+202
-112
lines changed

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ Name | Type | Description | Notes
961961
962962
Create a document
963963

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

966966
### Example
967967

docs/DocumentText.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **Number** | | [readonly]
88
**text** | **String** | The full text representation of a document if the feature is enabled and the file format supported | [optional]
9-
**language** | **String** | * `german` - german * `french` - french * `spanish` - spanish * `italian` - italian * `english` - english | [optional]
9+
**language** | **String** | * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english | [optional]
1010

1111

1212

1313
## Enum: LanguageEnum
1414

1515

16-
* `german` (value: `"german"`)
17-
1816
* `french` (value: `"french"`)
1917

2018
* `spanish` (value: `"spanish"`)
2119

20+
* `german` (value: `"german"`)
21+
2222
* `italian` (value: `"italian"`)
2323

2424
* `english` (value: `"english"`)

docs/FullTopic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ Name | Type | Description | Notes
2626
**comments** | [**[Comment]**](Comment.md) | | [optional]
2727
**viewpoints** | [**[Viewpoint]**](Viewpoint.md) | | [optional]
2828
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
29+
**groups** | **[Number]** | | [optional]
2930

3031

docs/FullTopicRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ Name | Type | Description | Notes
2525
**comments** | [**[CommentRequest]**](CommentRequest.md) | | [optional]
2626
**viewpoints** | [**[ViewpointRequest]**](ViewpointRequest.md) | | [optional]
2727
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
28+
**groups** | **[Number]** | | [optional]
2829

2930

docs/PatchedDocumentTextRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**text** | **String** | The full text representation of a document if the feature is enabled and the file format supported | [optional]
8-
**language** | **String** | * `german` - german * `french` - french * `spanish` - spanish * `italian` - italian * `english` - english | [optional]
8+
**language** | **String** | * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english | [optional]
99

1010

1111

1212
## Enum: LanguageEnum
1313

1414

15-
* `german` (value: `"german"`)
16-
1715
* `french` (value: `"french"`)
1816

1917
* `spanish` (value: `"spanish"`)
2018

19+
* `german` (value: `"german"`)
20+
2121
* `italian` (value: `"italian"`)
2222

2323
* `english` (value: `"english"`)

docs/PatchedFullTopicRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ Name | Type | Description | Notes
2525
**comments** | [**[CommentRequest]**](CommentRequest.md) | | [optional]
2626
**viewpoints** | [**[ViewpointRequest]**](ViewpointRequest.md) | | [optional]
2727
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
28+
**groups** | **[Number]** | | [optional]
2829

2930

docs/PatchedTopicRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
2323
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
2424
**index** | **Number** | | [optional]
2525
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
26+
**groups** | **[Number]** | | [optional]
2627

2728

docs/Topic.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ Name | Type | Description | Notes
2424
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
2525
**index** | **Number** | | [optional]
2626
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
27+
**groups** | **[Number]** | | [optional]
2728

2829

docs/TopicRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
2323
**format** | **String** | The BCF data structure may be used for other purposes than BCF Topics. (Storing coordinates, a viewpoint, a list of objecs, etc) The default value is \"standard\". If you want to use the BCF routes to store custom data not related to a BCF Topic, you must set this value to something else. You must add a query string filter if you want to fetch topics with a non \"standard\" format. | [optional]
2424
**index** | **Number** | | [optional]
2525
**bimdataViewerLayout** | **Object** | Non standard field. JSON describing bimdataViewerLayout. | [optional]
26+
**groups** | **[Number]** | | [optional]
2627

2728

docs/WriteFolder.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
8-
**createdAt** | **Date** | Creation date | [readonly]
7+
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
98
**name** | **String** | Name of the folder |
9+
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1010
**updatedAt** | **Date** | Date of the last update | [readonly]
11-
**nature** | **String** | Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
12-
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
1311
**parentId** | **Number** | | [optional]
1412
**id** | **Number** | | [readonly]
13+
**createdBy** | [**ShortUser**](ShortUser.md) | | [readonly]
14+
**createdAt** | **Date** | Creation date | [readonly]
15+
**groupsPermissions** | [**[GroupFolderRead]**](GroupFolderRead.md) | List of group permissions | [readonly]
1516
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
1617
**type** | **String** | DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files | [readonly]
17-
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
1818
**children** | [**[WriteFolder]**](WriteFolder.md) | | [optional]
1919

2020

2121

22-
## Enum: UserPermissionEnum
22+
## Enum: DefaultPermissionEnum
2323

2424

2525
* `1` (value: `1`)
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
3232

3333

3434

35-
## Enum: DefaultPermissionEnum
35+
## Enum: UserPermissionEnum
3636

3737

3838
* `1` (value: `1`)

0 commit comments

Comments
 (0)