diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ef9fc25..5270413 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -232,6 +232,7 @@ docs/Viewpoint.md docs/ViewpointRequest.md docs/Visa.md docs/VisaAttachment.md +docs/VisaAttachmentRequest.md docs/VisaComment.md docs/VisaCommentRequest.md docs/VisaRequest.md @@ -484,6 +485,7 @@ src/model/Viewpoint.js src/model/ViewpointRequest.js src/model/Visa.js src/model/VisaAttachment.js +src/model/VisaAttachmentRequest.js src/model/VisaComment.js src/model/VisaCommentRequest.js src/model/VisaRequest.js @@ -731,6 +733,7 @@ test/model/Viewpoint.spec.js test/model/ViewpointRequest.spec.js test/model/Visa.spec.js test/model/VisaAttachment.spec.js +test/model/VisaAttachmentRequest.spec.js test/model/VisaComment.spec.js test/model/VisaCommentRequest.spec.js test/model/VisaRequest.spec.js diff --git a/README.md b/README.md index d995a31..498f782 100644 --- a/README.md +++ b/README.md @@ -859,6 +859,7 @@ Class | Method | HTTP request | Description - [bimdata.ViewpointRequest](docs/ViewpointRequest.md) - [bimdata.Visa](docs/Visa.md) - [bimdata.VisaAttachment](docs/VisaAttachment.md) + - [bimdata.VisaAttachmentRequest](docs/VisaAttachmentRequest.md) - [bimdata.VisaComment](docs/VisaComment.md) - [bimdata.VisaCommentRequest](docs/VisaCommentRequest.md) - [bimdata.VisaRequest](docs/VisaRequest.md) diff --git a/docs/CollaborationApi.md b/docs/CollaborationApi.md index 17bee4b..6ffbbe8 100644 --- a/docs/CollaborationApi.md +++ b/docs/CollaborationApi.md @@ -246,7 +246,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/json - **Accept**: application/json @@ -961,7 +961,7 @@ Name | Type | Description | Notes Create a document -Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write +Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write ### Example @@ -2744,7 +2744,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded +- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/json - **Accept**: application/json diff --git a/docs/FolderWithoutChildrenRequest.md b/docs/FolderWithoutChildrenRequest.md index 6768094..68c6d2b 100644 --- a/docs/FolderWithoutChildrenRequest.md +++ b/docs/FolderWithoutChildrenRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **parentId** | **Number** | | [optional] **name** | **String** | Name of the folder | **defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional] +**propagate** | **Boolean** | | [optional] [default to false] diff --git a/docs/PatchedFolderWithoutChildrenRequest.md b/docs/PatchedFolderWithoutChildrenRequest.md index e917df6..acfdd57 100644 --- a/docs/PatchedFolderWithoutChildrenRequest.md +++ b/docs/PatchedFolderWithoutChildrenRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **parentId** | **Number** | | [optional] **name** | **String** | Name of the folder | [optional] **defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional] +**propagate** | **Boolean** | | [optional] [default to false] diff --git a/docs/PatchedZoneRequest.md b/docs/PatchedZoneRequest.md index e7e5765..c6371da 100644 --- a/docs/PatchedZoneRequest.md +++ b/docs/PatchedZoneRequest.md @@ -11,5 +11,6 @@ Name | Type | Description | Notes **spaces** | [**[ZoneSpaceRequest]**](ZoneSpaceRequest.md) | | [optional] **color** | **String** | | [optional] **order** | **Number** | | [optional] +**storeyUuid** | **String** | IFC element or element type UUID | [optional] diff --git a/docs/VisaAttachmentRequest.md b/docs/VisaAttachmentRequest.md new file mode 100644 index 0000000..4ea5c8d --- /dev/null +++ b/docs/VisaAttachmentRequest.md @@ -0,0 +1,9 @@ +# bimdata.VisaAttachmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachment** | **File** | | [optional] + + diff --git a/docs/WriteFolderRequest.md b/docs/WriteFolderRequest.md index ae3f8f8..478e3fe 100644 --- a/docs/WriteFolderRequest.md +++ b/docs/WriteFolderRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**parentId** | **Number** | | [optional] **name** | **String** | Name of the folder | +**parentId** | **Number** | | [optional] **defaultPermission** | **Number** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional] **children** | [**[WriteFolderRequest]**](WriteFolderRequest.md) | | [optional] diff --git a/docs/Zone.md b/docs/Zone.md index 1e2d58f..0941520 100644 --- a/docs/Zone.md +++ b/docs/Zone.md @@ -14,5 +14,6 @@ Name | Type | Description | Notes **updatedAt** | **Date** | | [readonly] **color** | **String** | | [optional] **order** | **Number** | | [optional] +**storeyUuid** | **String** | IFC element or element type UUID | [optional] diff --git a/docs/ZoneRequest.md b/docs/ZoneRequest.md index 475e6e5..7a851ad 100644 --- a/docs/ZoneRequest.md +++ b/docs/ZoneRequest.md @@ -11,5 +11,6 @@ Name | Type | Description | Notes **spaces** | [**[ZoneSpaceRequest]**](ZoneSpaceRequest.md) | | [optional] **color** | **String** | | [optional] **order** | **Number** | | [optional] +**storeyUuid** | **String** | IFC element or element type UUID | [optional] diff --git a/src/api/CollaborationApi.js b/src/api/CollaborationApi.js index 44b6fb7..3b3a601 100644 --- a/src/api/CollaborationApi.js +++ b/src/api/CollaborationApi.js @@ -192,7 +192,7 @@ export default class CollaborationApi { }; let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; - let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded']; + let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded', 'application/json']; let accepts = ['application/json']; let returnType = VisaAttachment; return this.apiClient.callApi( @@ -866,7 +866,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file @@ -932,7 +932,7 @@ export default class CollaborationApi { /** * Create a document - * Create a document. If the document is one of {'GLTF', 'POINT_CLOUD', 'DWG', 'OBJ', 'IFC', 'DXF'}, a model will be created and attached to this document Required scopes: document:write + * Create a document. If the document is one of {'POINT_CLOUD', 'OBJ', 'IFC', 'DXF', 'GLTF', 'DWG'}, a model will be created and attached to this document Required scopes: document:write * @param {Number} cloudPk A unique integer value identifying this cloud. * @param {Number} projectPk A unique integer value identifying this project. * @param {String} name Shown name of the file @@ -2581,7 +2581,7 @@ export default class CollaborationApi { }; let authNames = ['ApiKey', 'BIMData_Connect', 'BIMData_Connect', 'Bearer']; - let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded']; + let contentTypes = ['multipart/form-data', 'application/x-www-form-urlencoded', 'application/json']; let accepts = ['application/json']; let returnType = VisaAttachment; return this.apiClient.callApi( diff --git a/src/index.js b/src/index.js index 32be30a..28babc4 100644 --- a/src/index.js +++ b/src/index.js @@ -238,6 +238,7 @@ import Viewpoint from './model/Viewpoint'; import ViewpointRequest from './model/ViewpointRequest'; import Visa from './model/Visa'; import VisaAttachment from './model/VisaAttachment'; +import VisaAttachmentRequest from './model/VisaAttachmentRequest'; import VisaComment from './model/VisaComment'; import VisaCommentRequest from './model/VisaCommentRequest'; import VisaRequest from './model/VisaRequest'; @@ -1650,6 +1651,12 @@ export { */ VisaAttachment, + /** + * The VisaAttachmentRequest model constructor. + * @property {module:model/VisaAttachmentRequest} + */ + VisaAttachmentRequest, + /** * The VisaComment model constructor. * @property {module:model/VisaComment} diff --git a/src/model/FolderWithoutChildrenRequest.js b/src/model/FolderWithoutChildrenRequest.js index ddc155f..89ab1dd 100644 --- a/src/model/FolderWithoutChildrenRequest.js +++ b/src/model/FolderWithoutChildrenRequest.js @@ -58,6 +58,9 @@ class FolderWithoutChildrenRequest { if (data.hasOwnProperty('default_permission')) { obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number'); } + if (data.hasOwnProperty('propagate')) { + obj['propagate'] = ApiClient.convertToType(data['propagate'], 'Boolean'); + } } return obj; } @@ -82,6 +85,12 @@ FolderWithoutChildrenRequest.prototype['name'] = undefined; */ FolderWithoutChildrenRequest.prototype['default_permission'] = undefined; +/** + * @member {Boolean} propagate + * @default false + */ +FolderWithoutChildrenRequest.prototype['propagate'] = false; + diff --git a/src/model/PatchedFolderWithoutChildrenRequest.js b/src/model/PatchedFolderWithoutChildrenRequest.js index b6e0000..5cc0084 100644 --- a/src/model/PatchedFolderWithoutChildrenRequest.js +++ b/src/model/PatchedFolderWithoutChildrenRequest.js @@ -56,6 +56,9 @@ class PatchedFolderWithoutChildrenRequest { if (data.hasOwnProperty('default_permission')) { obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number'); } + if (data.hasOwnProperty('propagate')) { + obj['propagate'] = ApiClient.convertToType(data['propagate'], 'Boolean'); + } } return obj; } @@ -80,6 +83,12 @@ PatchedFolderWithoutChildrenRequest.prototype['name'] = undefined; */ PatchedFolderWithoutChildrenRequest.prototype['default_permission'] = undefined; +/** + * @member {Boolean} propagate + * @default false + */ +PatchedFolderWithoutChildrenRequest.prototype['propagate'] = false; + diff --git a/src/model/PatchedZoneRequest.js b/src/model/PatchedZoneRequest.js index 97b2e9d..97c4531 100644 --- a/src/model/PatchedZoneRequest.js +++ b/src/model/PatchedZoneRequest.js @@ -71,6 +71,9 @@ class PatchedZoneRequest { if (data.hasOwnProperty('order')) { obj['order'] = ApiClient.convertToType(data['order'], 'Number'); } + if (data.hasOwnProperty('storey_uuid')) { + obj['storey_uuid'] = ApiClient.convertToType(data['storey_uuid'], 'String'); + } } return obj; } @@ -113,6 +116,12 @@ PatchedZoneRequest.prototype['color'] = undefined; */ PatchedZoneRequest.prototype['order'] = undefined; +/** + * IFC element or element type UUID + * @member {String} storey_uuid + */ +PatchedZoneRequest.prototype['storey_uuid'] = undefined; + diff --git a/src/model/VisaAttachmentRequest.js b/src/model/VisaAttachmentRequest.js new file mode 100644 index 0000000..90fc424 --- /dev/null +++ b/src/model/VisaAttachmentRequest.js @@ -0,0 +1,71 @@ +/** + * BIMData API + * BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. + * + * The version of the OpenAPI document: v1 (v1) + * Contact: support@bimdata.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The VisaAttachmentRequest model module. + * @module model/VisaAttachmentRequest + * @version 0.0.0 + */ +class VisaAttachmentRequest { + /** + * Constructs a new VisaAttachmentRequest. + * @alias module:model/VisaAttachmentRequest + */ + constructor() { + + VisaAttachmentRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a VisaAttachmentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/VisaAttachmentRequest} obj Optional instance to populate. + * @return {module:model/VisaAttachmentRequest} The populated VisaAttachmentRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VisaAttachmentRequest(); + + if (data.hasOwnProperty('attachment')) { + obj['attachment'] = ApiClient.convertToType(data['attachment'], File); + } + } + return obj; + } + + +} + +/** + * @member {File} attachment + */ +VisaAttachmentRequest.prototype['attachment'] = undefined; + + + + + + +export default VisaAttachmentRequest; + diff --git a/src/model/WriteFolderRequest.js b/src/model/WriteFolderRequest.js index 5c43b8c..ba333c1 100644 --- a/src/model/WriteFolderRequest.js +++ b/src/model/WriteFolderRequest.js @@ -49,12 +49,12 @@ class WriteFolderRequest { if (data) { obj = obj || new WriteFolderRequest(); - if (data.hasOwnProperty('parent_id')) { - obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number'); - } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('parent_id')) { + obj['parent_id'] = ApiClient.convertToType(data['parent_id'], 'Number'); + } if (data.hasOwnProperty('default_permission')) { obj['default_permission'] = ApiClient.convertToType(data['default_permission'], 'Number'); } @@ -68,17 +68,17 @@ class WriteFolderRequest { } -/** - * @member {Number} parent_id - */ -WriteFolderRequest.prototype['parent_id'] = undefined; - /** * Name of the folder * @member {String} name */ WriteFolderRequest.prototype['name'] = undefined; +/** + * @member {Number} parent_id + */ +WriteFolderRequest.prototype['parent_id'] = undefined; + /** * Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write * @member {module:model/WriteFolderRequest.DefaultPermissionEnum} default_permission diff --git a/src/model/Zone.js b/src/model/Zone.js index 4fbe5ff..86de4d7 100644 --- a/src/model/Zone.js +++ b/src/model/Zone.js @@ -87,6 +87,9 @@ class Zone { if (data.hasOwnProperty('order')) { obj['order'] = ApiClient.convertToType(data['order'], 'Number'); } + if (data.hasOwnProperty('storey_uuid')) { + obj['storey_uuid'] = ApiClient.convertToType(data['storey_uuid'], 'String'); + } } return obj; } @@ -144,6 +147,12 @@ Zone.prototype['color'] = undefined; */ Zone.prototype['order'] = undefined; +/** + * IFC element or element type UUID + * @member {String} storey_uuid + */ +Zone.prototype['storey_uuid'] = undefined; + diff --git a/src/model/ZoneRequest.js b/src/model/ZoneRequest.js index 631ed02..befcc8a 100644 --- a/src/model/ZoneRequest.js +++ b/src/model/ZoneRequest.js @@ -72,6 +72,9 @@ class ZoneRequest { if (data.hasOwnProperty('order')) { obj['order'] = ApiClient.convertToType(data['order'], 'Number'); } + if (data.hasOwnProperty('storey_uuid')) { + obj['storey_uuid'] = ApiClient.convertToType(data['storey_uuid'], 'String'); + } } return obj; } @@ -114,6 +117,12 @@ ZoneRequest.prototype['color'] = undefined; */ ZoneRequest.prototype['order'] = undefined; +/** + * IFC element or element type UUID + * @member {String} storey_uuid + */ +ZoneRequest.prototype['storey_uuid'] = undefined; + diff --git a/test/model/FolderWithoutChildrenRequest.spec.js b/test/model/FolderWithoutChildrenRequest.spec.js index 1396623..09651fd 100644 --- a/test/model/FolderWithoutChildrenRequest.spec.js +++ b/test/model/FolderWithoutChildrenRequest.spec.js @@ -72,6 +72,12 @@ //expect(instance).to.be(); }); + it('should have the property propagate (base name: "propagate")', function() { + // uncomment below and update the code to test the property propagate + //var instance = new bimdata.FolderWithoutChildrenRequest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/PatchedFolderWithoutChildrenRequest.spec.js b/test/model/PatchedFolderWithoutChildrenRequest.spec.js index f7a437a..27db7b1 100644 --- a/test/model/PatchedFolderWithoutChildrenRequest.spec.js +++ b/test/model/PatchedFolderWithoutChildrenRequest.spec.js @@ -72,6 +72,12 @@ //expect(instance).to.be(); }); + it('should have the property propagate (base name: "propagate")', function() { + // uncomment below and update the code to test the property propagate + //var instance = new bimdata.PatchedFolderWithoutChildrenRequest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/PatchedZoneRequest.spec.js b/test/model/PatchedZoneRequest.spec.js index f5c762e..a5903e9 100644 --- a/test/model/PatchedZoneRequest.spec.js +++ b/test/model/PatchedZoneRequest.spec.js @@ -96,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property storeyUuid (base name: "storey_uuid")', function() { + // uncomment below and update the code to test the property storeyUuid + //var instance = new bimdata.PatchedZoneRequest(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/VisaAttachmentRequest.spec.js b/test/model/VisaAttachmentRequest.spec.js new file mode 100644 index 0000000..0adcae9 --- /dev/null +++ b/test/model/VisaAttachmentRequest.spec.js @@ -0,0 +1,65 @@ +/** + * BIMData API + * BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. + * + * The version of the OpenAPI document: v1 (v1) + * Contact: support@bimdata.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.bimdata); + } +}(this, function(expect, bimdata) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new bimdata.VisaAttachmentRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VisaAttachmentRequest', function() { + it('should create an instance of VisaAttachmentRequest', function() { + // uncomment below and update the code to test VisaAttachmentRequest + //var instance = new bimdata.VisaAttachmentRequest(); + //expect(instance).to.be.a(bimdata.VisaAttachmentRequest); + }); + + it('should have the property attachment (base name: "attachment")', function() { + // uncomment below and update the code to test the property attachment + //var instance = new bimdata.VisaAttachmentRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WriteFolderRequest.spec.js b/test/model/WriteFolderRequest.spec.js index 41c3fa1..8706a7f 100644 --- a/test/model/WriteFolderRequest.spec.js +++ b/test/model/WriteFolderRequest.spec.js @@ -54,14 +54,14 @@ //expect(instance).to.be.a(bimdata.WriteFolderRequest); }); - it('should have the property parentId (base name: "parent_id")', function() { - // uncomment below and update the code to test the property parentId + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name //var instance = new bimdata.WriteFolderRequest(); //expect(instance).to.be(); }); - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name + it('should have the property parentId (base name: "parent_id")', function() { + // uncomment below and update the code to test the property parentId //var instance = new bimdata.WriteFolderRequest(); //expect(instance).to.be(); }); diff --git a/test/model/Zone.spec.js b/test/model/Zone.spec.js index 26a25d2..6280e8b 100644 --- a/test/model/Zone.spec.js +++ b/test/model/Zone.spec.js @@ -114,6 +114,12 @@ //expect(instance).to.be(); }); + it('should have the property storeyUuid (base name: "storey_uuid")', function() { + // uncomment below and update the code to test the property storeyUuid + //var instance = new bimdata.Zone(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/ZoneRequest.spec.js b/test/model/ZoneRequest.spec.js index f6ff908..5fd7317 100644 --- a/test/model/ZoneRequest.spec.js +++ b/test/model/ZoneRequest.spec.js @@ -96,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property storeyUuid (base name: "storey_uuid")', function() { + // uncomment below and update the code to test the property storeyUuid + //var instance = new bimdata.ZoneRequest(); + //expect(instance).to.be(); + }); + }); }));