|
17 | 17 | (function(root, factory) { |
18 | 18 | if (typeof define === 'function' && define.amd) { |
19 | 19 | // AMD. Register as an anonymous module. |
20 | | - define(['ApiClient', 'model/BcfProject', 'model/Coloring', 'model/Comment', 'model/Component', 'model/Extensions', 'model/SelfUser', 'model/SingleJsonTopic', 'model/Snapshot', 'model/Topic', 'model/Viewpoint', 'model/Visibility'], factory); |
| 20 | + define(['ApiClient', 'model/BcfProject', 'model/Coloring', 'model/Comment', 'model/Component', 'model/Extensions', 'model/SelfUser', 'model/SingleJsonTopic', 'model/Topic', 'model/Viewpoint', 'model/Visibility'], factory); |
21 | 21 | } else if (typeof module === 'object' && module.exports) { |
22 | 22 | // CommonJS-like environments that support module.exports, like Node. |
23 | | - module.exports = factory(require('../ApiClient'), require('../model/BcfProject'), require('../model/Coloring'), require('../model/Comment'), require('../model/Component'), require('../model/Extensions'), require('../model/SelfUser'), require('../model/SingleJsonTopic'), require('../model/Snapshot'), require('../model/Topic'), require('../model/Viewpoint'), require('../model/Visibility')); |
| 23 | + module.exports = factory(require('../ApiClient'), require('../model/BcfProject'), require('../model/Coloring'), require('../model/Comment'), require('../model/Component'), require('../model/Extensions'), require('../model/SelfUser'), require('../model/SingleJsonTopic'), require('../model/Topic'), require('../model/Viewpoint'), require('../model/Visibility')); |
24 | 24 | } else { |
25 | 25 | // Browser globals (root is window) |
26 | 26 | if (!root.bimdata) { |
27 | 27 | root.bimdata = {}; |
28 | 28 | } |
29 | | - root.bimdata.BcfApi = factory(root.bimdata.ApiClient, root.bimdata.BcfProject, root.bimdata.Coloring, root.bimdata.Comment, root.bimdata.Component, root.bimdata.Extensions, root.bimdata.SelfUser, root.bimdata.SingleJsonTopic, root.bimdata.Snapshot, root.bimdata.Topic, root.bimdata.Viewpoint, root.bimdata.Visibility); |
| 29 | + root.bimdata.BcfApi = factory(root.bimdata.ApiClient, root.bimdata.BcfProject, root.bimdata.Coloring, root.bimdata.Comment, root.bimdata.Component, root.bimdata.Extensions, root.bimdata.SelfUser, root.bimdata.SingleJsonTopic, root.bimdata.Topic, root.bimdata.Viewpoint, root.bimdata.Visibility); |
30 | 30 | } |
31 | | -}(this, function(ApiClient, BcfProject, Coloring, Comment, Component, Extensions, SelfUser, SingleJsonTopic, Snapshot, Topic, Viewpoint, Visibility) { |
| 31 | +}(this, function(ApiClient, BcfProject, Coloring, Comment, Component, Extensions, SelfUser, SingleJsonTopic, Topic, Viewpoint, Visibility) { |
32 | 32 | 'use strict'; |
33 | 33 |
|
34 | 34 | /** |
|
2132 | 2132 |
|
2133 | 2133 |
|
2134 | 2134 | /** |
| 2135 | + * Retrieve the viewpoint' snapshot |
2135 | 2136 | * @param {String} projectsPk |
2136 | 2137 | * @param {String} topicsPk |
2137 | 2138 | * @param {String} viewpointsPk |
2138 | | - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Snapshot>} and HTTP response |
| 2139 | + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response |
2139 | 2140 | */ |
2140 | | - this.getSnapshotsWithHttpInfo = function(projectsPk, topicsPk, viewpointsPk) { |
| 2141 | + this.getSnapshotWithHttpInfo = function(projectsPk, topicsPk, viewpointsPk) { |
2141 | 2142 | var postBody = null; |
2142 | 2143 |
|
2143 | 2144 | // verify the required parameter 'projectsPk' is set |
2144 | 2145 | if (projectsPk === undefined || projectsPk === null) { |
2145 | | - throw new Error("Missing the required parameter 'projectsPk' when calling getSnapshots"); |
| 2146 | + throw new Error("Missing the required parameter 'projectsPk' when calling getSnapshot"); |
2146 | 2147 | } |
2147 | 2148 |
|
2148 | 2149 | // verify the required parameter 'topicsPk' is set |
2149 | 2150 | if (topicsPk === undefined || topicsPk === null) { |
2150 | | - throw new Error("Missing the required parameter 'topicsPk' when calling getSnapshots"); |
| 2151 | + throw new Error("Missing the required parameter 'topicsPk' when calling getSnapshot"); |
2151 | 2152 | } |
2152 | 2153 |
|
2153 | 2154 | // verify the required parameter 'viewpointsPk' is set |
2154 | 2155 | if (viewpointsPk === undefined || viewpointsPk === null) { |
2155 | | - throw new Error("Missing the required parameter 'viewpointsPk' when calling getSnapshots"); |
| 2156 | + throw new Error("Missing the required parameter 'viewpointsPk' when calling getSnapshot"); |
2156 | 2157 | } |
2157 | 2158 |
|
2158 | 2159 |
|
|
2173 | 2174 | var authNames = ['Bearer']; |
2174 | 2175 | var contentTypes = []; |
2175 | 2176 | var accepts = ['application/json']; |
2176 | | - var returnType = [Snapshot]; |
| 2177 | + var returnType = File; |
2177 | 2178 |
|
2178 | 2179 | return this.apiClient.callApi( |
2179 | 2180 | '/bcf/2.1/projects/{projects_pk}/topics/{topics_pk}/viewpoints/{viewpoints_pk}/snapshot', 'GET', |
|
2183 | 2184 | } |
2184 | 2185 |
|
2185 | 2186 | /** |
| 2187 | + * Retrieve the viewpoint' snapshot |
2186 | 2188 | * @param {String} projectsPk |
2187 | 2189 | * @param {String} topicsPk |
2188 | 2190 | * @param {String} viewpointsPk |
2189 | | - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Snapshot>} |
| 2191 | + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File} |
2190 | 2192 | */ |
2191 | | - this.getSnapshots = function(projectsPk, topicsPk, viewpointsPk) { |
2192 | | - return this.getSnapshotsWithHttpInfo(projectsPk, topicsPk, viewpointsPk) |
| 2193 | + this.getSnapshot = function(projectsPk, topicsPk, viewpointsPk) { |
| 2194 | + return this.getSnapshotWithHttpInfo(projectsPk, topicsPk, viewpointsPk) |
2193 | 2195 | .then(function(response_and_data) { |
2194 | 2196 | return response_and_data.data; |
2195 | 2197 | }); |
|
0 commit comments