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

Commit 7ba33a9

Browse files
committed
MINOR: add parent_id__in document filter
1 parent 2951f64 commit 7ba33a9

9 files changed

Lines changed: 99 additions & 89 deletions

docs/CollaborationApi.md

Lines changed: 5 additions & 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 {'GLTF', 'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
964+
Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'GLTF', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
965965

966966
### Example
967967

@@ -3433,6 +3433,7 @@ let opts = {
34333433
'nameContains': "nameContains_example", // String |
34343434
'nameEndswith': "nameEndswith_example", // String |
34353435
'nameStartswith': "nameStartswith_example", // String |
3436+
'parentIdIn': [null], // [Number] | Multiple values may be separated by commas.
34363437
'search': "search_example", // String |
34373438
'sizeMax': 789, // Number | Size of the file.
34383439
'sizeMin': 789, // Number | Size of the file.
@@ -3480,6 +3481,7 @@ Name | Type | Description | Notes
34803481
**nameContains** | **String**| | [optional]
34813482
**nameEndswith** | **String**| | [optional]
34823483
**nameStartswith** | **String**| | [optional]
3484+
**parentIdIn** | [**[Number]**](Number.md)| Multiple values may be separated by commas. | [optional]
34833485
**search** | **String**| | [optional]
34843486
**sizeMax** | **Number**| Size of the file. | [optional]
34853487
**sizeMin** | **Number**| Size of the file. | [optional]
@@ -3626,6 +3628,7 @@ let opts = {
36263628
'nameContains': "nameContains_example", // String |
36273629
'nameEndswith': "nameEndswith_example", // String |
36283630
'nameStartswith': "nameStartswith_example", // String |
3631+
'parentIdIn': [null], // [Number] | Multiple values may be separated by commas.
36293632
'search': "search_example", // String |
36303633
'sizeMax': 789, // Number | Size of the file.
36313634
'sizeMin': 789, // Number | Size of the file.
@@ -3673,6 +3676,7 @@ Name | Type | Description | Notes
36733676
**nameContains** | **String**| | [optional]
36743677
**nameEndswith** | **String**| | [optional]
36753678
**nameStartswith** | **String**| | [optional]
3679+
**parentIdIn** | [**[Number]**](Number.md)| Multiple values may be separated by commas. | [optional]
36763680
**search** | **String**| | [optional]
36773681
**sizeMax** | **Number**| Size of the file. | [optional]
36783682
**sizeMin** | **Number**| Size of the file. | [optional]

docs/DocumentText.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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 * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french | [optional]
9+
**language** | **String** | * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french | [optional]
1010

1111

1212

@@ -15,10 +15,10 @@ Name | Type | Description | Notes
1515

1616
* `german` (value: `"german"`)
1717

18-
* `english` (value: `"english"`)
19-
2018
* `italian` (value: `"italian"`)
2119

20+
* `english` (value: `"english"`)
21+
2222
* `spanish` (value: `"spanish"`)
2323

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

docs/PatchedDocumentTextRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french | [optional]
8+
**language** | **String** | * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french | [optional]
99

1010

1111

@@ -14,10 +14,10 @@ Name | Type | Description | Notes
1414

1515
* `german` (value: `"german"`)
1616

17-
* `english` (value: `"english"`)
18-
1917
* `italian` (value: `"italian"`)
2018

19+
* `english` (value: `"english"`)
20+
2121
* `spanish` (value: `"spanish"`)
2222

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

docs/WriteFolder.md

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

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

2020

2121

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

2424

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

3333

3434

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

3737

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

src/api/CollaborationApi.js

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

869869
/**
870870
* Create a document
871-
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
871+
* Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'GLTF', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
872872
* @param {Number} cloudPk A unique integer value identifying this cloud.
873873
* @param {Number} projectPk A unique integer value identifying this project.
874874
* @param {String} name Shown name of the file
@@ -936,7 +936,7 @@ export default class CollaborationApi {
936936

937937
/**
938938
* Create a document
939-
* Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
939+
* Create a document. If the document is one of {'OBJ', 'DWG', 'IFC', 'GLTF', 'POINT_CLOUD', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
940940
* @param {Number} cloudPk A unique integer value identifying this cloud.
941941
* @param {Number} projectPk A unique integer value identifying this project.
942942
* @param {String} name Shown name of the file
@@ -3183,6 +3183,7 @@ export default class CollaborationApi {
31833183
* @param {String} opts.nameContains
31843184
* @param {String} opts.nameEndswith
31853185
* @param {String} opts.nameStartswith
3186+
* @param {Array.<Number>} opts.parentIdIn Multiple values may be separated by commas.
31863187
* @param {String} opts.search
31873188
* @param {Number} opts.sizeMax Size of the file.
31883189
* @param {Number} opts.sizeMin Size of the file.
@@ -3233,6 +3234,7 @@ export default class CollaborationApi {
32333234
'name__contains': opts['nameContains'],
32343235
'name__endswith': opts['nameEndswith'],
32353236
'name__startswith': opts['nameStartswith'],
3237+
'parent_id__in': this.apiClient.buildCollectionParam(opts['parentIdIn'], 'csv'),
32363238
'search': opts['search'],
32373239
'size_max': opts['sizeMax'],
32383240
'size_min': opts['sizeMin'],
@@ -3287,6 +3289,7 @@ export default class CollaborationApi {
32873289
* @param {String} opts.nameContains
32883290
* @param {String} opts.nameEndswith
32893291
* @param {String} opts.nameStartswith
3292+
* @param {Array.<Number>} opts.parentIdIn Multiple values may be separated by commas.
32903293
* @param {String} opts.search
32913294
* @param {Number} opts.sizeMax Size of the file.
32923295
* @param {Number} opts.sizeMin Size of the file.
@@ -3397,6 +3400,7 @@ export default class CollaborationApi {
33973400
* @param {String} opts.nameContains
33983401
* @param {String} opts.nameEndswith
33993402
* @param {String} opts.nameStartswith
3403+
* @param {Array.<Number>} opts.parentIdIn Multiple values may be separated by commas.
34003404
* @param {String} opts.search
34013405
* @param {Number} opts.sizeMax Size of the file.
34023406
* @param {Number} opts.sizeMin Size of the file.
@@ -3451,6 +3455,7 @@ export default class CollaborationApi {
34513455
'name__contains': opts['nameContains'],
34523456
'name__endswith': opts['nameEndswith'],
34533457
'name__startswith': opts['nameStartswith'],
3458+
'parent_id__in': this.apiClient.buildCollectionParam(opts['parentIdIn'], 'csv'),
34543459
'search': opts['search'],
34553460
'size_max': opts['sizeMax'],
34563461
'size_min': opts['sizeMin'],
@@ -3505,6 +3510,7 @@ export default class CollaborationApi {
35053510
* @param {String} opts.nameContains
35063511
* @param {String} opts.nameEndswith
35073512
* @param {String} opts.nameStartswith
3513+
* @param {Array.<Number>} opts.parentIdIn Multiple values may be separated by commas.
35083514
* @param {String} opts.search
35093515
* @param {Number} opts.sizeMax Size of the file.
35103516
* @param {Number} opts.sizeMin Size of the file.

src/model/DocumentText.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ DocumentText.prototype['id'] = undefined;
7777
DocumentText.prototype['text'] = undefined;
7878

7979
/**
80-
* * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french
80+
* * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french
8181
* @member {module:model/DocumentText.LanguageEnum} language
8282
*/
8383
DocumentText.prototype['language'] = undefined;
@@ -100,16 +100,16 @@ DocumentText['LanguageEnum'] = {
100100
"german": "german",
101101

102102
/**
103-
* value: "english"
103+
* value: "italian"
104104
* @const
105105
*/
106-
"english": "english",
106+
"italian": "italian",
107107

108108
/**
109-
* value: "italian"
109+
* value: "english"
110110
* @const
111111
*/
112-
"italian": "italian",
112+
"english": "english",
113113

114114
/**
115115
* value: "spanish"

src/model/PatchedDocumentTextRequest.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class PatchedDocumentTextRequest {
6767
PatchedDocumentTextRequest.prototype['text'] = undefined;
6868

6969
/**
70-
* * `german` - german * `english` - english * `italian` - italian * `spanish` - spanish * `french` - french
70+
* * `german` - german * `italian` - italian * `english` - english * `spanish` - spanish * `french` - french
7171
* @member {module:model/PatchedDocumentTextRequest.LanguageEnum} language
7272
*/
7373
PatchedDocumentTextRequest.prototype['language'] = undefined;
@@ -90,16 +90,16 @@ PatchedDocumentTextRequest['LanguageEnum'] = {
9090
"german": "german",
9191

9292
/**
93-
* value: "english"
93+
* value: "italian"
9494
* @const
9595
*/
96-
"english": "english",
96+
"italian": "italian",
9797

9898
/**
99-
* value: "italian"
99+
* value: "english"
100100
* @const
101101
*/
102-
"italian": "italian",
102+
"english": "english",
103103

104104
/**
105105
* value: "spanish"

0 commit comments

Comments
 (0)