Skip to content

Commit 969e640

Browse files
committed
MINOR: remove sub projects (#782)
1 parent 593b28e commit 969e640

21 files changed

+19
-200
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ Class | Method | HTTP request | Description
271271
*bimdata.CollaborationApi* | [**getProjectFolderTree**](docs/CollaborationApi.md#getProjectFolderTree) | **GET** /cloud/{cloud_pk}/project/{id}/folder-tree | Retrieve folder tree of the project
272272
*bimdata.CollaborationApi* | [**getProjectInvitations**](docs/CollaborationApi.md#getProjectInvitations) | **GET** /cloud/{cloud_pk}/project/{project_pk}/invitation | Retrieve all pending invitations in the project
273273
*bimdata.CollaborationApi* | [**getProjectSize**](docs/CollaborationApi.md#getProjectSize) | **GET** /cloud/{cloud_pk}/project/{id}/size | Get size of all model files in the project
274-
*bimdata.CollaborationApi* | [**getProjectSubTree**](docs/CollaborationApi.md#getProjectSubTree) | **GET** /cloud/{cloud_pk}/project/subtree | Retrieve the complete projects tree of the cloud
275274
*bimdata.CollaborationApi* | [**getProjectTree**](docs/CollaborationApi.md#getProjectTree) | **GET** /cloud/{cloud_pk}/project/{id}/tree | Retrieve the complete DMS tree
276275
*bimdata.CollaborationApi* | [**getProjectUsers**](docs/CollaborationApi.md#getProjectUsers) | **GET** /cloud/{cloud_pk}/project/{project_pk}/user | Retrieve all users in a project, or a list with a filter by email
277276
*bimdata.CollaborationApi* | [**getProjectValidatorVisas**](docs/CollaborationApi.md#getProjectValidatorVisas) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/visa/validator | List visas where user is a validator

docs/CollaborationApi.md

Lines changed: 1 addition & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Method | HTTP request | Description
7272
[**getProjectFolderTree**](CollaborationApi.md#getProjectFolderTree) | **GET** /cloud/{cloud_pk}/project/{id}/folder-tree | Retrieve folder tree of the project
7373
[**getProjectInvitations**](CollaborationApi.md#getProjectInvitations) | **GET** /cloud/{cloud_pk}/project/{project_pk}/invitation | Retrieve all pending invitations in the project
7474
[**getProjectSize**](CollaborationApi.md#getProjectSize) | **GET** /cloud/{cloud_pk}/project/{id}/size | Get size of all model files in the project
75-
[**getProjectSubTree**](CollaborationApi.md#getProjectSubTree) | **GET** /cloud/{cloud_pk}/project/subtree | Retrieve the complete projects tree of the cloud
7675
[**getProjectTree**](CollaborationApi.md#getProjectTree) | **GET** /cloud/{cloud_pk}/project/{id}/tree | Retrieve the complete DMS tree
7776
[**getProjectUsers**](CollaborationApi.md#getProjectUsers) | **GET** /cloud/{cloud_pk}/project/{project_pk}/user | Retrieve all users in a project, or a list with a filter by email
7877
[**getProjectValidatorVisas**](CollaborationApi.md#getProjectValidatorVisas) | **GET** /cloud/{cloud_pk}/project/{project_pk}/me/visa/validator | List visas where user is a validator
@@ -961,7 +960,7 @@ Name | Type | Description | Notes
961960
962961
Create a document
963962

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

966965
### Example
967966

@@ -4654,67 +4653,6 @@ Name | Type | Description | Notes
46544653
- **Accept**: application/json
46554654

46564655

4657-
## getProjectSubTree
4658-
4659-
> [ProjectWithChildren] getProjectSubTree(cloudPk)
4660-
4661-
Retrieve the complete projects tree of the cloud
4662-
4663-
Retrieve the complete projects tree of the cloud
4664-
4665-
### Example
4666-
4667-
```javascript
4668-
import bimdata from '@bimdata/bimdata-api-client';
4669-
let defaultClient = bimdata.ApiClient.instance;
4670-
// Configure API key authorization: ApiKey
4671-
let ApiKey = defaultClient.authentications['ApiKey'];
4672-
ApiKey.apiKey = 'YOUR API KEY';
4673-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
4674-
//ApiKey.apiKeyPrefix = 'Token';
4675-
// Configure OAuth2 access token for authorization: BIMData_Connect
4676-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
4677-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
4678-
// Configure OAuth2 access token for authorization: BIMData_Connect
4679-
let BIMData_Connect = defaultClient.authentications['BIMData_Connect'];
4680-
BIMData_Connect.accessToken = 'YOUR ACCESS TOKEN';
4681-
// Configure API key authorization: Bearer
4682-
let Bearer = defaultClient.authentications['Bearer'];
4683-
Bearer.apiKey = 'YOUR API KEY';
4684-
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
4685-
//Bearer.apiKeyPrefix = 'Token';
4686-
4687-
let apiInstance = new bimdata.CollaborationApi();
4688-
let cloudPk = 56; // Number |
4689-
apiInstance.getProjectSubTree(cloudPk).then((data) => {
4690-
console.log('API called successfully. Returned data: ' + data);
4691-
}, (error) => {
4692-
console.error(error);
4693-
});
4694-
4695-
```
4696-
4697-
### Parameters
4698-
4699-
4700-
Name | Type | Description | Notes
4701-
------------- | ------------- | ------------- | -------------
4702-
**cloudPk** | **Number**| |
4703-
4704-
### Return type
4705-
4706-
[**[ProjectWithChildren]**](ProjectWithChildren.md)
4707-
4708-
### Authorization
4709-
4710-
[ApiKey](../README.md#ApiKey), [BIMData_Connect](../README.md#BIMData_Connect), [BIMData_Connect](../README.md#BIMData_Connect), [Bearer](../README.md#Bearer)
4711-
4712-
### HTTP request headers
4713-
4714-
- **Content-Type**: Not defined
4715-
- **Accept**: application/json
4716-
4717-
47184656
## getProjectTree
47194657

47204658
> Folder getProjectTree(cloudPk, id)

docs/GroupFolderRead.md

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

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**group** | [**Group**](Group.md) | |
7+
**group** | [**Group**](Group.md) | | [readonly]
88
**permission** | **Number** | * `1` - denied * `50` - read_only * `100` - read_write |
99

1010

docs/PatchedProjectRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
88
**name** | **String** | Name of the project | [optional]
99
**description** | **String** | | [optional]
1010
**status** | **String** | * `A` - active * `D` - deleted | [optional]
11-
**parentId** | **Number** | | [optional]
1211
**mainModelId** | **Number** | | [optional]
1312

1413

docs/Project.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**status** | **String** | * `A` - active * `D` - deleted | [optional]
1313
**createdAt** | **Date** | Creation date | [readonly]
1414
**updatedAt** | **Date** | Date of the last update | [readonly]
15-
**parentId** | **Number** | | [optional]
1615
**rootFolderId** | **Number** | | [readonly]
1716
**mainModelId** | **Number** | | [optional]
1817

docs/ProjectRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
88
**name** | **String** | Name of the project |
99
**description** | **String** | | [optional]
1010
**status** | **String** | * `A` - active * `D` - deleted | [optional]
11-
**parentId** | **Number** | | [optional]
1211
**mainModelId** | **Number** | | [optional]
1312

1413

docs/ProjectWithChildren.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Name | Type | Description | Notes
1111
**status** | **String** | * `A` - active * `D` - deleted | [optional]
1212
**createdAt** | **Date** | Creation date | [readonly]
1313
**updatedAt** | **Date** | Date of the last update | [readonly]
14-
**parentId** | **Number** | | [optional]
1514
**children** | [**[ProjectWithChildren]**](ProjectWithChildren.md) | | [readonly]
1615
**rootFolderId** | **Number** | | [readonly]
1716
**mainModelId** | **Number** | Main model of the project | [readonly]

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**name** | **String** | Name of the folder |
87
**defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
8+
**name** | **String** | Name of the folder |
99
**parentId** | **Number** | | [optional]
1010
**children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional]
1111

src/api/CollaborationApi.js

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

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

934934
/**
935935
* Create a document
936-
* Create a document. If the document is one of {'IFC', 'GLTF', 'OBJ', 'DXF', 'POINT_CLOUD', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
936+
* Create a document. If the document is one of {'DXF', 'IFC', 'POINT_CLOUD', 'GLTF', 'DWG', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
937937
* @param {Number} cloudPk A unique integer value identifying this cloud.
938938
* @param {Number} projectPk A unique integer value identifying this project.
939939
* @param {String} name Shown name of the file
@@ -4380,54 +4380,6 @@ export default class CollaborationApi {
43804380
}
43814381

43824382

4383-
/**
4384-
* Retrieve the complete projects tree of the cloud
4385-
* Retrieve the complete projects tree of the cloud
4386-
* @param {Number} cloudPk
4387-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/ProjectWithChildren>} and HTTP response
4388-
*/
4389-
getProjectSubTreeWithHttpInfo(cloudPk) {
4390-
let postBody = null;
4391-
// verify the required parameter 'cloudPk' is set
4392-
if (cloudPk === undefined || cloudPk === null) {
4393-
throw new Error("Missing the required parameter 'cloudPk' when calling getProjectSubTree");
4394-
}
4395-
4396-
let pathParams = {
4397-
'cloud_pk': cloudPk
4398-
};
4399-
let queryParams = {
4400-
};
4401-
let headerParams = {
4402-
};
4403-
let formParams = {
4404-
};
4405-
4406-
let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer'];
4407-
let contentTypes = [];
4408-
let accepts = ['application/json'];
4409-
let returnType = [ProjectWithChildren];
4410-
return this.apiClient.callApi(
4411-
'/cloud/{cloud_pk}/project/subtree', 'GET',
4412-
pathParams, queryParams, headerParams, formParams, postBody,
4413-
authNames, contentTypes, accepts, returnType, null
4414-
);
4415-
}
4416-
4417-
/**
4418-
* Retrieve the complete projects tree of the cloud
4419-
* Retrieve the complete projects tree of the cloud
4420-
* @param {Number} cloudPk
4421-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/ProjectWithChildren>}
4422-
*/
4423-
getProjectSubTree(cloudPk) {
4424-
return this.getProjectSubTreeWithHttpInfo(cloudPk)
4425-
.then(function(response_and_data) {
4426-
return response_and_data.data;
4427-
});
4428-
}
4429-
4430-
44314383
/**
44324384
* Retrieve the complete DMS tree
44334385
* Retrieve the complete DMS tree (all folders and all documents in the project). DEPRECATED: renamed to getProjectDMSTree

src/model/GroupFolderRead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class GroupFolderRead {
5353
obj = obj || new GroupFolderRead();
5454

5555
if (data.hasOwnProperty('group')) {
56-
obj['group'] = Group.constructFromObject(data['group']);
56+
obj['group'] = ApiClient.convertToType(data['group'], Group);
5757
}
5858
if (data.hasOwnProperty('permission')) {
5959
obj['permission'] = ApiClient.convertToType(data['permission'], 'Number');

0 commit comments

Comments
 (0)