asana 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +8 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AllocationsApi.js +307 -0
  4. package/dist/api/AttachmentsApi.js +1 -1
  5. package/dist/api/AuditLogAPIApi.js +1 -1
  6. package/dist/api/BatchAPIApi.js +1 -1
  7. package/dist/api/CustomFieldSettingsApi.js +1 -1
  8. package/dist/api/CustomFieldsApi.js +1 -1
  9. package/dist/api/EventsApi.js +1 -1
  10. package/dist/api/GoalRelationshipsApi.js +1 -1
  11. package/dist/api/GoalsApi.js +1 -1
  12. package/dist/api/JobsApi.js +1 -1
  13. package/dist/api/MembershipsApi.js +1 -1
  14. package/dist/api/OrganizationExportsApi.js +1 -1
  15. package/dist/api/PortfolioMembershipsApi.js +1 -1
  16. package/dist/api/PortfoliosApi.js +1 -1
  17. package/dist/api/ProjectBriefsApi.js +1 -1
  18. package/dist/api/ProjectMembershipsApi.js +1 -1
  19. package/dist/api/ProjectStatusesApi.js +1 -1
  20. package/dist/api/ProjectTemplatesApi.js +1 -1
  21. package/dist/api/ProjectsApi.js +1 -1
  22. package/dist/api/RulesApi.js +1 -1
  23. package/dist/api/SectionsApi.js +1 -1
  24. package/dist/api/StatusUpdatesApi.js +1 -1
  25. package/dist/api/StoriesApi.js +1 -1
  26. package/dist/api/TagsApi.js +1 -1
  27. package/dist/api/TaskTemplatesApi.js +1 -1
  28. package/dist/api/TasksApi.js +1 -1
  29. package/dist/api/TeamMembershipsApi.js +1 -1
  30. package/dist/api/TeamsApi.js +1 -1
  31. package/dist/api/TimePeriodsApi.js +1 -1
  32. package/dist/api/TimeTrackingEntriesApi.js +1 -1
  33. package/dist/api/TypeaheadApi.js +1 -1
  34. package/dist/api/UserTaskListsApi.js +1 -1
  35. package/dist/api/UsersApi.js +1 -1
  36. package/dist/api/WebhooksApi.js +1 -1
  37. package/dist/api/WorkspaceMembershipsApi.js +1 -1
  38. package/dist/api/WorkspacesApi.js +1 -1
  39. package/dist/index.js +7 -0
  40. package/package.json +1 -1
  41. package/src/ApiClient.js +3 -3
  42. package/src/api/AllocationsApi.js +365 -0
  43. package/src/api/AttachmentsApi.js +1 -1
  44. package/src/api/AuditLogAPIApi.js +1 -1
  45. package/src/api/BatchAPIApi.js +1 -1
  46. package/src/api/CustomFieldSettingsApi.js +1 -1
  47. package/src/api/CustomFieldsApi.js +1 -1
  48. package/src/api/EventsApi.js +1 -1
  49. package/src/api/GoalRelationshipsApi.js +1 -1
  50. package/src/api/GoalsApi.js +1 -1
  51. package/src/api/JobsApi.js +1 -1
  52. package/src/api/MembershipsApi.js +1 -1
  53. package/src/api/OrganizationExportsApi.js +1 -1
  54. package/src/api/PortfolioMembershipsApi.js +1 -1
  55. package/src/api/PortfoliosApi.js +1 -1
  56. package/src/api/ProjectBriefsApi.js +1 -1
  57. package/src/api/ProjectMembershipsApi.js +1 -1
  58. package/src/api/ProjectStatusesApi.js +1 -1
  59. package/src/api/ProjectTemplatesApi.js +1 -1
  60. package/src/api/ProjectsApi.js +1 -1
  61. package/src/api/RulesApi.js +1 -1
  62. package/src/api/SectionsApi.js +1 -1
  63. package/src/api/StatusUpdatesApi.js +1 -1
  64. package/src/api/StoriesApi.js +1 -1
  65. package/src/api/TagsApi.js +1 -1
  66. package/src/api/TaskTemplatesApi.js +1 -1
  67. package/src/api/TasksApi.js +1 -1
  68. package/src/api/TeamMembershipsApi.js +1 -1
  69. package/src/api/TeamsApi.js +1 -1
  70. package/src/api/TimePeriodsApi.js +1 -1
  71. package/src/api/TimeTrackingEntriesApi.js +1 -1
  72. package/src/api/TypeaheadApi.js +1 -1
  73. package/src/api/UserTaskListsApi.js +1 -1
  74. package/src/api/UsersApi.js +1 -1
  75. package/src/api/WebhooksApi.js +1 -1
  76. package/src/api/WorkspaceMembershipsApi.js +1 -1
  77. package/src/api/WorkspacesApi.js +1 -1
  78. package/src/index.js +8 -1
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TimePeriods service.
31
31
  * @module api/TimePeriodsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TimeTrackingEntries service.
31
31
  * @module api/TimeTrackingEntriesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Typeahead service.
31
31
  * @module api/TypeaheadApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * UserTaskLists service.
31
31
  * @module api/UserTaskListsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Users service.
31
31
  * @module api/UsersApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var UsersApi = exports.UsersApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Webhooks service.
31
31
  * @module api/WebhooksApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var WebhooksApi = exports.WebhooksApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * WorkspaceMemberships service.
31
31
  * @module api/WorkspaceMembershipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var WorkspaceMembershipsApi = exports.WorkspaceMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Workspaces service.
31
31
  * @module api/WorkspacesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var WorkspacesApi = exports.WorkspacesApi = /*#__PURE__*/function () {
35
35
  /**
package/dist/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AllocationsApi", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _AllocationsApi.AllocationsApi;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "ApiClient", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -220,6 +226,7 @@ Object.defineProperty(exports, "WorkspacesApi", {
220
226
  }
221
227
  });
222
228
  var _ApiClient = require("./ApiClient");
229
+ var _AllocationsApi = require("./api/AllocationsApi");
223
230
  var _AttachmentsApi = require("./api/AttachmentsApi");
224
231
  var _AuditLogAPIApi = require("./api/AuditLogAPIApi");
225
232
  var _BatchAPIApi = require("./api/BatchAPIApi");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asana",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "This_is_the_interface_for_interacting_with_the__Asana_Platform_httpsdevelopers_asana_com__Our_API_reference_is_generated_from_our__OpenAPI_spec__httpsraw_githubusercontent_comAsanaopenapimasterdefsasana_oas_yaml_",
5
5
  "license": "Apache 2.0",
6
6
  "main": "dist/index.js",
package/src/ApiClient.js CHANGED
@@ -16,7 +16,7 @@ import superagent from "superagent";
16
16
 
17
17
  /**
18
18
  * @module ApiClient
19
- * @version 3.0.3
19
+ * @version 3.0.4
20
20
  */
21
21
 
22
22
  /**
@@ -412,7 +412,7 @@ export class ApiClient {
412
412
  if (typeof(navigator) === 'undefined' || typeof(window) === 'undefined') {
413
413
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
414
414
  {
415
- 'version': "3.0.3",
415
+ 'version': "3.0.4",
416
416
  'language': 'NodeJS',
417
417
  'language_version': process.version,
418
418
  'os': process.platform
@@ -421,7 +421,7 @@ export class ApiClient {
421
421
  } else {
422
422
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
423
423
  {
424
- 'version': "3.0.3",
424
+ 'version': "3.0.4",
425
425
  'language': 'BrowserJS'
426
426
  }
427
427
  ).toString();
@@ -0,0 +1,365 @@
1
+ /*
2
+ * Asana
3
+ * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ * NOTE: This class is auto generated by the swagger code generator program.
8
+ * https://github.com/swagger-api/swagger-codegen.git
9
+ *
10
+ * Swagger Codegen version: 3.0.54
11
+ *
12
+ * Do not edit the class manually.
13
+ *
14
+ */
15
+ import {ApiClient} from "../ApiClient";
16
+ var Collection = require('../utils/collection');
17
+
18
+ /**
19
+ * Allocations service.
20
+ * @module api/AllocationsApi
21
+ * @version 3.0.4
22
+ */
23
+ export class AllocationsApi {
24
+
25
+ /**
26
+ * Constructs a new AllocationsApi.
27
+ * @alias module:api/AllocationsApi
28
+ * @class
29
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30
+ * default to {@link module:ApiClient#instanc
31
+ e} if unspecified.
32
+ */
33
+ constructor(apiClient) {
34
+ this.apiClient = apiClient || ApiClient.instance;
35
+ }
36
+
37
+
38
+
39
+ /**
40
+ * Create an allocation
41
+ * Creates a new allocation. Returns the full record of the newly created allocation.
42
+ * @param {module:model/Object} body The allocation to create.
43
+ * @param {Object} opts Optional parameters
44
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
45
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
46
+ */
47
+ createAllocationWithHttpInfo(body, opts) {
48
+ opts = opts || {};
49
+ let postBody = body;
50
+ // verify the required parameter 'body' is set
51
+ if (body === undefined || body === null) {
52
+ throw new Error("Missing the required parameter 'body' when calling createAllocation");
53
+ }
54
+
55
+ let pathParams = {
56
+
57
+ };
58
+ let queryParams = {};
59
+ opts = opts || {};
60
+ queryParams = opts;
61
+
62
+ let headerParams = {
63
+
64
+ };
65
+ let formParams = {
66
+
67
+ };
68
+
69
+ let authNames = ['personalAccessToken'];
70
+ let contentTypes = ['application/json; charset=UTF-8'];
71
+ let accepts = ['application/json; charset=UTF-8'];
72
+ let returnType = 'Blob';
73
+
74
+ return this.apiClient.callApi(
75
+ '/allocations', 'POST',
76
+ pathParams, queryParams, headerParams, formParams, postBody,
77
+ authNames, contentTypes, accepts, returnType
78
+ );
79
+ }
80
+
81
+ /**
82
+ * Create an allocation
83
+ * Creates a new allocation. Returns the full record of the newly created allocation.
84
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The allocation to create.
85
+ * @param {Object} opts Optional parameters
86
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
87
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
88
+ */
89
+ createAllocation(body, opts) {
90
+
91
+ return this.createAllocationWithHttpInfo(body, opts)
92
+ .then(function(response_and_data) {
93
+ return response_and_data.data;
94
+ });
95
+ }
96
+
97
+
98
+ /**
99
+ * Delete an allocation
100
+ * A specific, existing allocation can be deleted by making a DELETE request on the URL for that allocation. Returns an empty data record.
101
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
102
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
103
+ */
104
+ deleteAllocationWithHttpInfo(allocation_gid) {
105
+
106
+ let postBody = null;
107
+ // verify the required parameter 'allocation_gid' is set
108
+ if (allocation_gid === undefined || allocation_gid === null) {
109
+ throw new Error("Missing the required parameter 'allocation_gid' when calling deleteAllocation");
110
+ }
111
+
112
+ let pathParams = {
113
+ 'allocation_gid': allocation_gid
114
+ };
115
+ let queryParams = {};
116
+
117
+ let headerParams = {
118
+
119
+ };
120
+ let formParams = {
121
+
122
+ };
123
+
124
+ let authNames = ['personalAccessToken'];
125
+ let contentTypes = [];
126
+ let accepts = ['application/json; charset=UTF-8'];
127
+ let returnType = 'Blob';
128
+
129
+ return this.apiClient.callApi(
130
+ '/allocations/{allocation_gid}', 'DELETE',
131
+ pathParams, queryParams, headerParams, formParams, postBody,
132
+ authNames, contentTypes, accepts, returnType
133
+ );
134
+ }
135
+
136
+ /**
137
+ * Delete an allocation
138
+ * A specific, existing allocation can be deleted by making a DELETE request on the URL for that allocation. Returns an empty data record.
139
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
140
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
141
+ */
142
+ deleteAllocation(allocation_gid) {
143
+
144
+ return this.deleteAllocationWithHttpInfo(allocation_gid)
145
+ .then(function(response_and_data) {
146
+ return response_and_data.data;
147
+ });
148
+ }
149
+
150
+
151
+ /**
152
+ * Get an allocation
153
+ * Returns the complete allocation record for a single allocation.
154
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
155
+ * @param {Object} opts Optional parameters
156
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
157
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
158
+ */
159
+ getAllocationWithHttpInfo(allocation_gid, opts) {
160
+ opts = opts || {};
161
+ let postBody = null;
162
+ // verify the required parameter 'allocation_gid' is set
163
+ if (allocation_gid === undefined || allocation_gid === null) {
164
+ throw new Error("Missing the required parameter 'allocation_gid' when calling getAllocation");
165
+ }
166
+
167
+ let pathParams = {
168
+ 'allocation_gid': allocation_gid
169
+ };
170
+ let queryParams = {};
171
+ opts = opts || {};
172
+ queryParams = opts;
173
+
174
+ let headerParams = {
175
+
176
+ };
177
+ let formParams = {
178
+
179
+ };
180
+
181
+ let authNames = ['personalAccessToken'];
182
+ let contentTypes = [];
183
+ let accepts = ['application/json; charset=UTF-8'];
184
+ let returnType = 'Blob';
185
+
186
+ return this.apiClient.callApi(
187
+ '/allocations/{allocation_gid}', 'GET',
188
+ pathParams, queryParams, headerParams, formParams, postBody,
189
+ authNames, contentTypes, accepts, returnType
190
+ );
191
+ }
192
+
193
+ /**
194
+ * Get an allocation
195
+ * Returns the complete allocation record for a single allocation.
196
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
197
+ * @param {Object} opts Optional parameters
198
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
199
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
200
+ */
201
+ getAllocation(allocation_gid, opts) {
202
+
203
+ return this.getAllocationWithHttpInfo(allocation_gid, opts)
204
+ .then(function(response_and_data) {
205
+ return response_and_data.data;
206
+ });
207
+ }
208
+
209
+
210
+ /**
211
+ * Get multiple allocations
212
+ * Returns a list of allocations filtered to a specific project or user.
213
+ * @param {Object} opts Optional parameters
214
+ * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
215
+ * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
216
+ * @param {String} opts.workspace Globally unique identifier for the workspace.
217
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
218
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
219
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
220
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
221
+ */
222
+ getAllocationsWithHttpInfo(opts) {
223
+ opts = opts || {};
224
+ let postBody = null;
225
+
226
+ let pathParams = {
227
+
228
+ };
229
+ let queryParams = {};
230
+ opts = opts || {};
231
+ queryParams = opts;
232
+
233
+ let headerParams = {
234
+
235
+ };
236
+ let formParams = {
237
+
238
+ };
239
+
240
+ let authNames = ['personalAccessToken'];
241
+ let contentTypes = [];
242
+ let accepts = ['application/json; charset=UTF-8'];
243
+ let returnType = 'Blob';
244
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
245
+ if (this.apiClient.RETURN_COLLECTION) {
246
+ return Collection.fromApiClient(
247
+ this.apiClient.callApi(
248
+ '/allocations', 'GET',
249
+ pathParams, queryParams, headerParams, formParams, postBody,
250
+ authNames, contentTypes, accepts, returnType
251
+ ),
252
+ this.apiClient,
253
+ {
254
+ 'path': '/allocations',
255
+ 'httpMethod': 'GET',
256
+ 'pathParams': pathParams,
257
+ 'queryParams': queryParams,
258
+ 'headerParams': headerParams,
259
+ 'formParams': formParams,
260
+ 'bodyParam': postBody,
261
+ 'authNames': authNames,
262
+ 'contentTypes': contentTypes,
263
+ 'accepts': accepts,
264
+ 'returnType': returnType
265
+ }
266
+ )
267
+ }
268
+
269
+ return this.apiClient.callApi(
270
+ '/allocations', 'GET',
271
+ pathParams, queryParams, headerParams, formParams, postBody,
272
+ authNames, contentTypes, accepts, returnType
273
+ );
274
+ }
275
+
276
+ /**
277
+ * Get multiple allocations
278
+ * Returns a list of allocations filtered to a specific project or user.
279
+ * @param {Object} opts Optional parameters
280
+ * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
281
+ * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
282
+ * @param {String} opts.workspace Globally unique identifier for the workspace.
283
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
284
+ * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
285
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
286
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseArray}
287
+ */
288
+ getAllocations(opts) {
289
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
290
+ if (this.apiClient.RETURN_COLLECTION) {
291
+ return this.getAllocationsWithHttpInfo(opts)
292
+ }
293
+
294
+ return this.getAllocationsWithHttpInfo(opts)
295
+ .then(function(response_and_data) {
296
+ return response_and_data.data;
297
+ });
298
+ }
299
+
300
+
301
+ /**
302
+ * Update an allocation
303
+ * An existing allocation can be updated by making a PUT request on the URL for that allocation. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated allocation record.
304
+ * @param {module:model/Object} body The updated fields for the allocation.
305
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
306
+ * @param {Object} opts Optional parameters
307
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
308
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
309
+ */
310
+ updateAllocationWithHttpInfo(body, allocation_gid, opts) {
311
+ opts = opts || {};
312
+ let postBody = body;
313
+ // verify the required parameter 'body' is set
314
+ if (body === undefined || body === null) {
315
+ throw new Error("Missing the required parameter 'body' when calling updateAllocation");
316
+ }
317
+ // verify the required parameter 'allocation_gid' is set
318
+ if (allocation_gid === undefined || allocation_gid === null) {
319
+ throw new Error("Missing the required parameter 'allocation_gid' when calling updateAllocation");
320
+ }
321
+
322
+ let pathParams = {
323
+ 'allocation_gid': allocation_gid
324
+ };
325
+ let queryParams = {};
326
+ opts = opts || {};
327
+ queryParams = opts;
328
+
329
+ let headerParams = {
330
+
331
+ };
332
+ let formParams = {
333
+
334
+ };
335
+
336
+ let authNames = ['personalAccessToken'];
337
+ let contentTypes = ['application/json; charset=UTF-8'];
338
+ let accepts = ['application/json; charset=UTF-8'];
339
+ let returnType = 'Blob';
340
+
341
+ return this.apiClient.callApi(
342
+ '/allocations/{allocation_gid}', 'PUT',
343
+ pathParams, queryParams, headerParams, formParams, postBody,
344
+ authNames, contentTypes, accepts, returnType
345
+ );
346
+ }
347
+
348
+ /**
349
+ * Update an allocation
350
+ * An existing allocation can be updated by making a PUT request on the URL for that allocation. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Returns the complete updated allocation record.
351
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The updated fields for the allocation.
352
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
353
+ * @param {Object} opts Optional parameters
354
+ * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
355
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
356
+ */
357
+ updateAllocation(body, allocation_gid, opts) {
358
+
359
+ return this.updateAllocationWithHttpInfo(body, allocation_gid, opts)
360
+ .then(function(response_and_data) {
361
+ return response_and_data.data;
362
+ });
363
+ }
364
+
365
+ }
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Attachments service.
20
20
  * @module api/AttachmentsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class AttachmentsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * AuditLogAPI service.
20
20
  * @module api/AuditLogAPIApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class AuditLogAPIApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * BatchAPI service.
20
20
  * @module api/BatchAPIApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class BatchAPIApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * CustomFieldSettings service.
20
20
  * @module api/CustomFieldSettingsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class CustomFieldSettingsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * CustomFields service.
20
20
  * @module api/CustomFieldsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class CustomFieldsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Events service.
20
20
  * @module api/EventsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class EventsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * GoalRelationships service.
20
20
  * @module api/GoalRelationshipsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class GoalRelationshipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Goals service.
20
20
  * @module api/GoalsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class GoalsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Jobs service.
20
20
  * @module api/JobsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class JobsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Memberships service.
20
20
  * @module api/MembershipsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class MembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * OrganizationExports service.
20
20
  * @module api/OrganizationExportsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class OrganizationExportsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * PortfolioMemberships service.
20
20
  * @module api/PortfolioMembershipsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class PortfolioMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Portfolios service.
20
20
  * @module api/PortfoliosApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class PortfoliosApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectBriefs service.
20
20
  * @module api/ProjectBriefsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class ProjectBriefsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectMemberships service.
20
20
  * @module api/ProjectMembershipsApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class ProjectMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectStatuses service.
20
20
  * @module api/ProjectStatusesApi
21
- * @version 3.0.3
21
+ * @version 3.0.4
22
22
  */
23
23
  export class ProjectStatusesApi {
24
24