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
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # asana [![GitHub release][release-image]][release-url] [![NPM Version][npm-image]][npm-url]
2
2
 
3
3
  - API version: 1.0
4
- - Package version: 3.0.3
4
+ - Package version: 3.0.4
5
5
 
6
6
  ## Installation
7
7
 
@@ -18,7 +18,7 @@ npm install asana --save
18
18
  Include the latest release directly from GitHub:
19
19
 
20
20
  ```html
21
- <script src="https://github.com/Asana/node-asana/releases/download/v3.0.3/asana-min.js"></script>
21
+ <script src="https://github.com/Asana/node-asana/releases/download/v3.0.4/asana-min.js"></script>
22
22
  ```
23
23
 
24
24
  Example usage (**NOTE**: be careful not to expose your access token):
@@ -195,6 +195,11 @@ All URIs are relative to *https://app.asana.com/api/1.0*
195
195
 
196
196
  Class | Method | HTTP request | Description
197
197
  ------------ | ------------- | ------------- | -------------
198
+ *Asana.AllocationsApi* | [**createAllocation**](docs/AllocationsApi.md#createAllocation) | **POST** /allocations | Create an allocation
199
+ *Asana.AllocationsApi* | [**deleteAllocation**](docs/AllocationsApi.md#deleteAllocation) | **DELETE** /allocations/{allocation_gid} | Delete an allocation
200
+ *Asana.AllocationsApi* | [**getAllocation**](docs/AllocationsApi.md#getAllocation) | **GET** /allocations/{allocation_gid} | Get an allocation
201
+ *Asana.AllocationsApi* | [**getAllocations**](docs/AllocationsApi.md#getAllocations) | **GET** /allocations | Get multiple allocations
202
+ *Asana.AllocationsApi* | [**updateAllocation**](docs/AllocationsApi.md#updateAllocation) | **PUT** /allocations/{allocation_gid} | Update an allocation
198
203
  *Asana.AttachmentsApi* | [**createAttachmentForObject**](docs/AttachmentsApi.md#createAttachmentForObject) | **POST** /attachments | Upload an attachment
199
204
  *Asana.AttachmentsApi* | [**deleteAttachment**](docs/AttachmentsApi.md#deleteAttachment) | **DELETE** /attachments/{attachment_gid} | Delete an attachment
200
205
  *Asana.AttachmentsApi* | [**getAttachment**](docs/AttachmentsApi.md#getAttachment) | **GET** /attachments/{attachment_gid} | Get an attachment
@@ -1106,6 +1111,6 @@ client.callApi(
1106
1111
  ```
1107
1112
 
1108
1113
  [release-image]: https://img.shields.io/github/release/asana/node-asana.svg
1109
- [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.3
1114
+ [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.4
1110
1115
  [npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
1111
1116
  [npm-url]: https://www.npmjs.org/package/asana
package/dist/ApiClient.js CHANGED
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  */
29
29
  /**
30
30
  * @module ApiClient
31
- * @version 3.0.3
31
+ * @version 3.0.4
32
32
  */
33
33
  /**
34
34
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -400,14 +400,14 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
400
400
  // set header parameters
401
401
  if (typeof navigator === 'undefined' || typeof window === 'undefined') {
402
402
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
403
- 'version': "3.0.3",
403
+ 'version': "3.0.4",
404
404
  'language': 'NodeJS',
405
405
  'language_version': process.version,
406
406
  'os': process.platform
407
407
  }).toString();
408
408
  } else {
409
409
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
410
- 'version': "3.0.3",
410
+ 'version': "3.0.4",
411
411
  'language': 'BrowserJS'
412
412
  }).toString();
413
413
  }
@@ -0,0 +1,307 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.AllocationsApi = void 0;
7
+ var _ApiClient = require("../ApiClient");
8
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
14
+ * Asana
15
+ * 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).
16
+ *
17
+ * OpenAPI spec version: 1.0
18
+ *
19
+ * NOTE: This class is auto generated by the swagger code generator program.
20
+ * https://github.com/swagger-api/swagger-codegen.git
21
+ *
22
+ * Swagger Codegen version: 3.0.54
23
+ *
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ var Collection = require('../utils/collection');
28
+
29
+ /**
30
+ * Allocations service.
31
+ * @module api/AllocationsApi
32
+ * @version 3.0.4
33
+ */
34
+ var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new AllocationsApi.
37
+ * @alias module:api/AllocationsApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instanc
41
+ e} if unspecified.
42
+ */
43
+ function AllocationsApi(apiClient) {
44
+ _classCallCheck(this, AllocationsApi);
45
+ this.apiClient = apiClient || _ApiClient.ApiClient.instance;
46
+ }
47
+
48
+ /**
49
+ * Create an allocation
50
+ * Creates a new allocation. Returns the full record of the newly created allocation.
51
+ * @param {module:model/Object} body The allocation to create.
52
+ * @param {Object} opts Optional parameters
53
+ * @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.
54
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
55
+ */
56
+ return _createClass(AllocationsApi, [{
57
+ key: "createAllocationWithHttpInfo",
58
+ value: function createAllocationWithHttpInfo(body, opts) {
59
+ opts = opts || {};
60
+ var postBody = body;
61
+ // verify the required parameter 'body' is set
62
+ if (body === undefined || body === null) {
63
+ throw new Error("Missing the required parameter 'body' when calling createAllocation");
64
+ }
65
+ var pathParams = {};
66
+ var queryParams = {};
67
+ opts = opts || {};
68
+ queryParams = opts;
69
+ var headerParams = {};
70
+ var formParams = {};
71
+ var authNames = ['personalAccessToken'];
72
+ var contentTypes = ['application/json; charset=UTF-8'];
73
+ var accepts = ['application/json; charset=UTF-8'];
74
+ var returnType = 'Blob';
75
+ return this.apiClient.callApi('/allocations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
76
+ }
77
+
78
+ /**
79
+ * Create an allocation
80
+ * Creates a new allocation. Returns the full record of the newly created allocation.
81
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The allocation to create.
82
+ * @param {Object} opts Optional parameters
83
+ * @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.
84
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
85
+ */
86
+ }, {
87
+ key: "createAllocation",
88
+ value: function createAllocation(body, opts) {
89
+ return this.createAllocationWithHttpInfo(body, opts).then(function (response_and_data) {
90
+ return response_and_data.data;
91
+ });
92
+ }
93
+
94
+ /**
95
+ * Delete an allocation
96
+ * A specific, existing allocation can be deleted by making a DELETE request on the URL for that allocation. Returns an empty data record.
97
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
98
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
99
+ */
100
+ }, {
101
+ key: "deleteAllocationWithHttpInfo",
102
+ value: function deleteAllocationWithHttpInfo(allocation_gid) {
103
+ var postBody = null;
104
+ // verify the required parameter 'allocation_gid' is set
105
+ if (allocation_gid === undefined || allocation_gid === null) {
106
+ throw new Error("Missing the required parameter 'allocation_gid' when calling deleteAllocation");
107
+ }
108
+ var pathParams = {
109
+ 'allocation_gid': allocation_gid
110
+ };
111
+ var queryParams = {};
112
+ var headerParams = {};
113
+ var formParams = {};
114
+ var authNames = ['personalAccessToken'];
115
+ var contentTypes = [];
116
+ var accepts = ['application/json; charset=UTF-8'];
117
+ var returnType = 'Blob';
118
+ return this.apiClient.callApi('/allocations/{allocation_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
119
+ }
120
+
121
+ /**
122
+ * Delete an allocation
123
+ * A specific, existing allocation can be deleted by making a DELETE request on the URL for that allocation. Returns an empty data record.
124
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
125
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
126
+ */
127
+ }, {
128
+ key: "deleteAllocation",
129
+ value: function deleteAllocation(allocation_gid) {
130
+ return this.deleteAllocationWithHttpInfo(allocation_gid).then(function (response_and_data) {
131
+ return response_and_data.data;
132
+ });
133
+ }
134
+
135
+ /**
136
+ * Get an allocation
137
+ * Returns the complete allocation record for a single allocation.
138
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
139
+ * @param {Object} opts Optional parameters
140
+ * @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.
141
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
142
+ */
143
+ }, {
144
+ key: "getAllocationWithHttpInfo",
145
+ value: function getAllocationWithHttpInfo(allocation_gid, opts) {
146
+ opts = opts || {};
147
+ var postBody = null;
148
+ // verify the required parameter 'allocation_gid' is set
149
+ if (allocation_gid === undefined || allocation_gid === null) {
150
+ throw new Error("Missing the required parameter 'allocation_gid' when calling getAllocation");
151
+ }
152
+ var pathParams = {
153
+ 'allocation_gid': allocation_gid
154
+ };
155
+ var queryParams = {};
156
+ opts = opts || {};
157
+ queryParams = opts;
158
+ var headerParams = {};
159
+ var formParams = {};
160
+ var authNames = ['personalAccessToken'];
161
+ var contentTypes = [];
162
+ var accepts = ['application/json; charset=UTF-8'];
163
+ var returnType = 'Blob';
164
+ return this.apiClient.callApi('/allocations/{allocation_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
165
+ }
166
+
167
+ /**
168
+ * Get an allocation
169
+ * Returns the complete allocation record for a single allocation.
170
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
171
+ * @param {Object} opts Optional parameters
172
+ * @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.
173
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
174
+ */
175
+ }, {
176
+ key: "getAllocation",
177
+ value: function getAllocation(allocation_gid, opts) {
178
+ return this.getAllocationWithHttpInfo(allocation_gid, opts).then(function (response_and_data) {
179
+ return response_and_data.data;
180
+ });
181
+ }
182
+
183
+ /**
184
+ * Get multiple allocations
185
+ * Returns a list of allocations filtered to a specific project or user.
186
+ * @param {Object} opts Optional parameters
187
+ * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
188
+ * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
189
+ * @param {String} opts.workspace Globally unique identifier for the workspace.
190
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
191
+ * @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;
192
+ * @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.
193
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
194
+ */
195
+ }, {
196
+ key: "getAllocationsWithHttpInfo",
197
+ value: function getAllocationsWithHttpInfo(opts) {
198
+ opts = opts || {};
199
+ var postBody = null;
200
+ var pathParams = {};
201
+ var queryParams = {};
202
+ opts = opts || {};
203
+ queryParams = opts;
204
+ var headerParams = {};
205
+ var formParams = {};
206
+ var authNames = ['personalAccessToken'];
207
+ var contentTypes = [];
208
+ var accepts = ['application/json; charset=UTF-8'];
209
+ var returnType = 'Blob';
210
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
211
+ if (this.apiClient.RETURN_COLLECTION) {
212
+ return Collection.fromApiClient(this.apiClient.callApi('/allocations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
213
+ 'path': '/allocations',
214
+ 'httpMethod': 'GET',
215
+ 'pathParams': pathParams,
216
+ 'queryParams': queryParams,
217
+ 'headerParams': headerParams,
218
+ 'formParams': formParams,
219
+ 'bodyParam': postBody,
220
+ 'authNames': authNames,
221
+ 'contentTypes': contentTypes,
222
+ 'accepts': accepts,
223
+ 'returnType': returnType
224
+ });
225
+ }
226
+ return this.apiClient.callApi('/allocations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
227
+ }
228
+
229
+ /**
230
+ * Get multiple allocations
231
+ * Returns a list of allocations filtered to a specific project or user.
232
+ * @param {Object} opts Optional parameters
233
+ * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
234
+ * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
235
+ * @param {String} opts.workspace Globally unique identifier for the workspace.
236
+ * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
237
+ * @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;
238
+ * @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.
239
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseArray}
240
+ */
241
+ }, {
242
+ key: "getAllocations",
243
+ value: function getAllocations(opts) {
244
+ // Check if RETURN_COLLECTION is set and return a collection object if it is
245
+ if (this.apiClient.RETURN_COLLECTION) {
246
+ return this.getAllocationsWithHttpInfo(opts);
247
+ }
248
+ return this.getAllocationsWithHttpInfo(opts).then(function (response_and_data) {
249
+ return response_and_data.data;
250
+ });
251
+ }
252
+
253
+ /**
254
+ * Update an allocation
255
+ * 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.
256
+ * @param {module:model/Object} body The updated fields for the allocation.
257
+ * @param {String} allocation_gid Globally unique identifier for the allocation.
258
+ * @param {Object} opts Optional parameters
259
+ * @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.
260
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
261
+ */
262
+ }, {
263
+ key: "updateAllocationWithHttpInfo",
264
+ value: function updateAllocationWithHttpInfo(body, allocation_gid, opts) {
265
+ opts = opts || {};
266
+ var postBody = body;
267
+ // verify the required parameter 'body' is set
268
+ if (body === undefined || body === null) {
269
+ throw new Error("Missing the required parameter 'body' when calling updateAllocation");
270
+ }
271
+ // verify the required parameter 'allocation_gid' is set
272
+ if (allocation_gid === undefined || allocation_gid === null) {
273
+ throw new Error("Missing the required parameter 'allocation_gid' when calling updateAllocation");
274
+ }
275
+ var pathParams = {
276
+ 'allocation_gid': allocation_gid
277
+ };
278
+ var queryParams = {};
279
+ opts = opts || {};
280
+ queryParams = opts;
281
+ var headerParams = {};
282
+ var formParams = {};
283
+ var authNames = ['personalAccessToken'];
284
+ var contentTypes = ['application/json; charset=UTF-8'];
285
+ var accepts = ['application/json; charset=UTF-8'];
286
+ var returnType = 'Blob';
287
+ return this.apiClient.callApi('/allocations/{allocation_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
288
+ }
289
+
290
+ /**
291
+ * Update an allocation
292
+ * 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.
293
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The updated fields for the allocation.
294
+ * @param {<&vendorExtensions.x-jsdoc-type>} allocation_gid Globally unique identifier for the allocation.
295
+ * @param {Object} opts Optional parameters
296
+ * @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.
297
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllocationResponseData}
298
+ */
299
+ }, {
300
+ key: "updateAllocation",
301
+ value: function updateAllocation(body, allocation_gid, opts) {
302
+ return this.updateAllocationWithHttpInfo(body, allocation_gid, opts).then(function (response_and_data) {
303
+ return response_and_data.data;
304
+ });
305
+ }
306
+ }]);
307
+ }();
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * BatchAPI service.
31
31
  * @module api/BatchAPIApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFieldSettings service.
31
31
  * @module api/CustomFieldSettingsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFields service.
31
31
  * @module api/CustomFieldsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var CustomFieldsApi = exports.CustomFieldsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Events service.
31
31
  * @module api/EventsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * GoalRelationships service.
31
31
  * @module api/GoalRelationshipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Goals service.
31
31
  * @module api/GoalsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Jobs service.
31
31
  * @module api/JobsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Memberships service.
31
31
  * @module api/MembershipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * OrganizationExports service.
31
31
  * @module api/OrganizationExportsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * PortfolioMemberships service.
31
31
  * @module api/PortfolioMembershipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Portfolios service.
31
31
  * @module api/PortfoliosApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectBriefs service.
31
31
  * @module api/ProjectBriefsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var ProjectBriefsApi = exports.ProjectBriefsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectMemberships service.
31
31
  * @module api/ProjectMembershipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var ProjectMembershipsApi = exports.ProjectMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectStatuses service.
31
31
  * @module api/ProjectStatusesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var ProjectStatusesApi = exports.ProjectStatusesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectTemplates service.
31
31
  * @module api/ProjectTemplatesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Projects service.
31
31
  * @module api/ProjectsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var ProjectsApi = exports.ProjectsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Rules service.
31
31
  * @module api/RulesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Sections service.
31
31
  * @module api/SectionsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * StatusUpdates service.
31
31
  * @module api/StatusUpdatesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Stories service.
31
31
  * @module api/StoriesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Tags service.
31
31
  * @module api/TagsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TaskTemplates service.
31
31
  * @module api/TaskTemplatesApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TaskTemplatesApi = exports.TaskTemplatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -35,7 +35,7 @@ var Collection = require('../utils/collection');
35
35
  /**
36
36
  * Tasks service.
37
37
  * @module api/TasksApi
38
- * @version 3.0.3
38
+ * @version 3.0.4
39
39
  */
40
40
  var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
41
41
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TeamMemberships service.
31
31
  * @module api/TeamMembershipsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Teams service.
31
31
  * @module api/TeamsApi
32
- * @version 3.0.3
32
+ * @version 3.0.4
33
33
  */
34
34
  var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
35
35
  /**