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

Commit fb5621e

Browse files
committed
PATCH: add tag to document in dms-tree (#533)
1 parent a9b1e37 commit fb5621e

10 files changed

Lines changed: 50 additions & 25 deletions

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ Name | Type | Description | Notes
823823
824824
Create a document
825825

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

828828
### Example
829829

docs/MarketplaceApp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
1414
**creator** | [**User**](User.md) | | [readonly]
1515
**scopes** | **[String]** | | [readonly]
1616
**settingsUrl** | **String** | this URL will be called with query params ?cloud_id= | [optional]
17-
**isPublic** | **Boolean** | | [optional]
17+
**isPublic** | **Boolean** | | [readonly]
1818
**tags** | **[String]** | | [optional]
1919
**logo** | **String** | | [optional]
2020
**file** | **String** | | [optional]

docs/MarketplaceAppRequest.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**viewerPluginsUrls** | **[String]** | | [optional]
1313
**webhookSecret** | **String** | | [optional]
1414
**settingsUrl** | **String** | this URL will be called with query params ?cloud_id= | [optional]
15-
**isPublic** | **Boolean** | | [optional]
1615
**tags** | **[String]** | | [optional]
1716
**logo** | **File** | | [optional]
1817
**file** | **File** | | [optional]

docs/RecursiveFolderChildren.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
2323
**groupsPermissions** | [**[FolderGroupPermission]**](FolderGroupPermission.md) | Groups permissions of folder | [readonly]
2424
**defaultPermission** | **Number** | Default permissions of folder | [readonly]
2525
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
26+
**history** | [**[Document]**](Document.md) | History of a document | [readonly]
27+
**tags** | [**[Tag]**](Tag.md) | Tags of a document | [readonly]
2628
**children** | [**[RecursiveFolderChildren]**](RecursiveFolderChildren.md) | | [optional]
2729

2830

src/api/CollaborationApi.js

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

751751
/**
752752
* Create a document
753-
* Create a document. If the document is one of {'DWG', 'IFC', 'GLTF', 'OBJ', 'DXF', 'BFX', 'DAE'}, a model will be created and attached to this document Required scopes: document:write
753+
* Create a document. If the document is one of {'DXF', 'GLTF', 'OBJ', 'IFC', 'DAE', 'BFX', 'DWG'}, a model will be created and attached to this document Required scopes: document:write
754754
* @param {Number} cloudPk A unique integer value identifying this cloud.
755755
* @param {Number} projectPk A unique integer value identifying this project.
756756
* @param {String} name Shown name of the file
@@ -818,7 +818,7 @@ export default class CollaborationApi {
818818

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

src/model/MarketplaceApp.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,28 @@ class MarketplaceApp {
3131
* @param longDescription {String}
3232
* @param creator {module:model/User}
3333
* @param scopes {Array.<String>}
34+
* @param isPublic {Boolean}
3435
* @param images {Array.<module:model/MarketplaceAppImage>}
3536
* @param organization {module:model/PublicOrganization}
3637
*/
37-
constructor(id, name, shortDescription, longDescription, creator, scopes, images, organization) {
38+
constructor(id, name, shortDescription, longDescription, creator, scopes, isPublic, images, organization) {
3839

39-
MarketplaceApp.initialize(this, id, name, shortDescription, longDescription, creator, scopes, images, organization);
40+
MarketplaceApp.initialize(this, id, name, shortDescription, longDescription, creator, scopes, isPublic, images, organization);
4041
}
4142

4243
/**
4344
* Initializes the fields of this object.
4445
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4546
* Only for internal use.
4647
*/
47-
static initialize(obj, id, name, shortDescription, longDescription, creator, scopes, images, organization) {
48+
static initialize(obj, id, name, shortDescription, longDescription, creator, scopes, isPublic, images, organization) {
4849
obj['id'] = id;
4950
obj['name'] = name;
5051
obj['short_description'] = shortDescription;
5152
obj['long_description'] = longDescription;
5253
obj['creator'] = creator;
5354
obj['scopes'] = scopes;
55+
obj['is_public'] = isPublic;
5456
obj['images'] = images;
5557
obj['organization'] = organization;
5658
}

src/model/MarketplaceAppRequest.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ class MarketplaceAppRequest {
7777
if (data.hasOwnProperty('settings_url')) {
7878
obj['settings_url'] = ApiClient.convertToType(data['settings_url'], 'String');
7979
}
80-
if (data.hasOwnProperty('is_public')) {
81-
obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean');
82-
}
8380
if (data.hasOwnProperty('tags')) {
8481
obj['tags'] = ApiClient.convertToType(data['tags'], ['String']);
8582
}
@@ -137,11 +134,6 @@ MarketplaceAppRequest.prototype['webhook_secret'] = undefined;
137134
*/
138135
MarketplaceAppRequest.prototype['settings_url'] = undefined;
139136

140-
/**
141-
* @member {Boolean} is_public
142-
*/
143-
MarketplaceAppRequest.prototype['is_public'] = undefined;
144-
145137
/**
146138
* @member {Array.<String>} tags
147139
*/

src/model/RecursiveFolderChildren.js

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
*/
1313

1414
import ApiClient from '../ApiClient';
15+
import Document from './Document';
1516
import FolderGroupPermission from './FolderGroupPermission';
17+
import Tag from './Tag';
1618
import User from './User';
1719

1820
/**
@@ -37,18 +39,20 @@ class RecursiveFolderChildren {
3739
* @param groupsPermissions {Array.<module:model/FolderGroupPermission>} Groups permissions of folder
3840
* @param defaultPermission {module:model/RecursiveFolderChildren.DefaultPermissionEnum} Default permissions of folder
3941
* @param userPermission {module:model/RecursiveFolderChildren.UserPermissionEnum} Aggregate of group user permissions and folder default permission
42+
* @param history {Array.<module:model/Document>} History of a document
43+
* @param tags {Array.<module:model/Tag>} Tags of a document
4044
*/
41-
constructor(id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission) {
45+
constructor(id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, history, tags) {
4246

43-
RecursiveFolderChildren.initialize(this, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission);
47+
RecursiveFolderChildren.initialize(this, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, history, tags);
4448
}
4549

4650
/**
4751
* Initializes the fields of this object.
4852
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
4953
* Only for internal use.
5054
*/
51-
static initialize(obj, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission) {
55+
static initialize(obj, id, parentId, type, nature, modelType, name, createdAt, updatedAt, modelId, ifcId, groupsPermissions, defaultPermission, userPermission, history, tags) {
5256
obj['id'] = id;
5357
obj['parent_id'] = parentId;
5458
obj['type'] = type;
@@ -62,6 +66,8 @@ class RecursiveFolderChildren {
6266
obj['groups_permissions'] = groupsPermissions;
6367
obj['default_permission'] = defaultPermission;
6468
obj['user_permission'] = userPermission;
69+
obj['history'] = history;
70+
obj['tags'] = tags;
6571
}
6672

6773
/**
@@ -132,6 +138,12 @@ class RecursiveFolderChildren {
132138
if (data.hasOwnProperty('user_permission')) {
133139
obj['user_permission'] = ApiClient.convertToType(data['user_permission'], 'Number');
134140
}
141+
if (data.hasOwnProperty('history')) {
142+
obj['history'] = ApiClient.convertToType(data['history'], [Document]);
143+
}
144+
if (data.hasOwnProperty('tags')) {
145+
obj['tags'] = ApiClient.convertToType(data['tags'], [Tag]);
146+
}
135147
if (data.hasOwnProperty('children')) {
136148
obj['children'] = ApiClient.convertToType(data['children'], [RecursiveFolderChildren]);
137149
}
@@ -244,6 +256,18 @@ RecursiveFolderChildren.prototype['default_permission'] = undefined;
244256
*/
245257
RecursiveFolderChildren.prototype['user_permission'] = undefined;
246258

259+
/**
260+
* History of a document
261+
* @member {Array.<module:model/Document>} history
262+
*/
263+
RecursiveFolderChildren.prototype['history'] = undefined;
264+
265+
/**
266+
* Tags of a document
267+
* @member {Array.<module:model/Tag>} tags
268+
*/
269+
RecursiveFolderChildren.prototype['tags'] = undefined;
270+
247271
/**
248272
* @member {Array.<module:model/RecursiveFolderChildren>} children
249273
*/

test/model/MarketplaceAppRequest.spec.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@
102102
//expect(instance).to.be();
103103
});
104104

105-
it('should have the property isPublic (base name: "is_public")', function() {
106-
// uncomment below and update the code to test the property isPublic
107-
//var instance = new bimdata.MarketplaceAppRequest();
108-
//expect(instance).to.be();
109-
});
110-
111105
it('should have the property tags (base name: "tags")', function() {
112106
// uncomment below and update the code to test the property tags
113107
//var instance = new bimdata.MarketplaceAppRequest();

test/model/RecursiveFolderChildren.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,18 @@
168168
//expect(instance).to.be();
169169
});
170170

171+
it('should have the property history (base name: "history")', function() {
172+
// uncomment below and update the code to test the property history
173+
//var instance = new bimdata.RecursiveFolderChildren();
174+
//expect(instance).to.be();
175+
});
176+
177+
it('should have the property tags (base name: "tags")', function() {
178+
// uncomment below and update the code to test the property tags
179+
//var instance = new bimdata.RecursiveFolderChildren();
180+
//expect(instance).to.be();
181+
});
182+
171183
it('should have the property children (base name: "children")', function() {
172184
// uncomment below and update the code to test the property children
173185
//var instance = new bimdata.RecursiveFolderChildren();

0 commit comments

Comments
 (0)