asana 3.0.2 → 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 (82) hide show
  1. package/.github/workflows/publish.yaml +78 -38
  2. package/.swagger-codegen/VERSION +1 -1
  3. package/README.md +140 -29
  4. package/codegen/templates/README.mustache +129 -26
  5. package/codegen/templates/api.mustache +17 -15
  6. package/dist/ApiClient.js +6 -7
  7. package/dist/api/AllocationsApi.js +307 -0
  8. package/dist/api/AttachmentsApi.js +22 -95
  9. package/dist/api/AuditLogAPIApi.js +10 -14
  10. package/dist/api/BatchAPIApi.js +10 -14
  11. package/dist/api/CustomFieldSettingsApi.js +16 -23
  12. package/dist/api/CustomFieldsApi.js +38 -203
  13. package/dist/api/EventsApi.js +12 -16
  14. package/dist/api/GoalRelationshipsApi.js +26 -122
  15. package/dist/api/GoalsApi.js +48 -239
  16. package/dist/api/JobsApi.js +8 -32
  17. package/dist/api/MembershipsApi.js +73 -99
  18. package/dist/api/OrganizationExportsApi.js +12 -59
  19. package/dist/api/PortfolioMembershipsApi.js +20 -50
  20. package/dist/api/PortfoliosApi.js +56 -293
  21. package/dist/api/ProjectBriefsApi.js +20 -113
  22. package/dist/api/ProjectMembershipsApi.js +14 -41
  23. package/dist/api/ProjectStatusesApi.js +22 -95
  24. package/dist/api/ProjectTemplatesApi.js +28 -104
  25. package/dist/api/ProjectsApi.js +88 -446
  26. package/dist/api/RulesApi.js +8 -32
  27. package/dist/api/SectionsApi.js +34 -176
  28. package/dist/api/StatusUpdatesApi.js +22 -95
  29. package/dist/api/StoriesApi.js +26 -122
  30. package/dist/api/TagsApi.js +42 -167
  31. package/dist/api/TaskTemplatesApi.js +63 -72
  32. package/dist/api/TasksApi.js +173 -544
  33. package/dist/api/TeamMembershipsApi.js +26 -59
  34. package/dist/api/TeamsApi.js +36 -158
  35. package/dist/api/TimePeriodsApi.js +14 -41
  36. package/dist/api/TimeTrackingEntriesApi.js +26 -122
  37. package/dist/api/TypeaheadApi.js +12 -16
  38. package/dist/api/UserTaskListsApi.js +12 -59
  39. package/dist/api/UsersApi.js +32 -68
  40. package/dist/api/WebhooksApi.js +26 -122
  41. package/dist/api/WorkspaceMembershipsApi.js +20 -50
  42. package/dist/api/WorkspacesApi.js +26 -122
  43. package/dist/index.js +7 -0
  44. package/package.json +1 -1
  45. package/src/ApiClient.js +4 -4
  46. package/src/api/AllocationsApi.js +365 -0
  47. package/src/api/AttachmentsApi.js +42 -134
  48. package/src/api/AuditLogAPIApi.js +15 -17
  49. package/src/api/BatchAPIApi.js +15 -17
  50. package/src/api/CustomFieldSettingsApi.js +28 -32
  51. package/src/api/CustomFieldsApi.js +78 -290
  52. package/src/api/EventsApi.js +17 -19
  53. package/src/api/GoalRelationshipsApi.js +51 -173
  54. package/src/api/GoalsApi.js +100 -344
  55. package/src/api/JobsApi.js +11 -41
  56. package/src/api/MembershipsApi.js +105 -138
  57. package/src/api/OrganizationExportsApi.js +20 -80
  58. package/src/api/PortfolioMembershipsApi.js +37 -71
  59. package/src/api/PortfoliosApi.js +118 -422
  60. package/src/api/ProjectBriefsApi.js +38 -158
  61. package/src/api/ProjectMembershipsApi.js +24 -56
  62. package/src/api/ProjectStatusesApi.js +42 -134
  63. package/src/api/ProjectTemplatesApi.js +55 -149
  64. package/src/api/ProjectsApi.js +189 -647
  65. package/src/api/RulesApi.js +11 -41
  66. package/src/api/SectionsApi.js +69 -251
  67. package/src/api/StatusUpdatesApi.js +42 -134
  68. package/src/api/StoriesApi.js +51 -173
  69. package/src/api/TagsApi.js +86 -242
  70. package/src/api/TaskTemplatesApi.js +86 -95
  71. package/src/api/TasksApi.js +330 -799
  72. package/src/api/TeamMembershipsApi.js +50 -86
  73. package/src/api/TeamsApi.js +73 -227
  74. package/src/api/TimePeriodsApi.js +24 -56
  75. package/src/api/TimeTrackingEntriesApi.js +51 -173
  76. package/src/api/TypeaheadApi.js +17 -19
  77. package/src/api/UserTaskListsApi.js +20 -80
  78. package/src/api/UsersApi.js +63 -101
  79. package/src/api/WebhooksApi.js +51 -173
  80. package/src/api/WorkspaceMembershipsApi.js +37 -71
  81. package/src/api/WorkspacesApi.js +51 -173
  82. package/src/index.js +9 -2
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
16
  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); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
18
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  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); } /*
20
20
  * Asana
21
21
  * 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).
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
25
  * NOTE: This class is auto generated by the swagger code generator program.
26
26
  * https://github.com/swagger-api/swagger-codegen.git
27
27
  *
28
- * Swagger Codegen version: 3.0.52
28
+ * Swagger Codegen version: 3.0.54
29
29
  *
30
30
  * Do not edit the class manually.
31
31
  *
@@ -35,7 +35,7 @@ var Collection = require('../utils/collection');
35
35
  /**
36
36
  * Tasks service.
37
37
  * @module api/TasksApi
38
- * @version 3.0.2
38
+ * @version 3.0.4
39
39
  */
40
40
  var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
41
41
  /**
@@ -58,7 +58,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
58
58
  * @param {String} task_gid The task to operate on.
59
59
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
60
60
  */
61
- _createClass(TasksApi, [{
61
+ return _createClass(TasksApi, [{
62
62
  key: "addDependenciesForTaskWithHttpInfo",
63
63
  value: function addDependenciesForTaskWithHttpInfo(body, task_gid) {
64
64
  var postBody = body;
@@ -80,25 +80,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
80
80
  var contentTypes = ['application/json; charset=UTF-8'];
81
81
  var accepts = ['application/json; charset=UTF-8'];
82
82
  var returnType = 'Blob';
83
-
84
- // Check if RETURN_COLLECTION is set and return a collection object if it is
85
- if (this.apiClient.RETURN_COLLECTION && false) {
86
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/addDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
87
- 'path': '/tasks/{task_gid}/addDependencies',
88
- 'httpMethod': 'POST',
89
- 'pathParams': pathParams,
90
- 'queryParams': queryParams,
91
- 'headerParams': headerParams,
92
- 'formParams': formParams,
93
- 'bodyParam': postBody,
94
- 'authNames': authNames,
95
- 'contentTypes': contentTypes,
96
- 'accepts': accepts,
97
- 'returnType': returnType
98
- });
99
- } else {
100
- return this.apiClient.callApi('/tasks/{task_gid}/addDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
101
- }
83
+ return this.apiClient.callApi('/tasks/{task_gid}/addDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
102
84
  }
103
85
 
104
86
  /**
@@ -111,14 +93,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
111
93
  }, {
112
94
  key: "addDependenciesForTask",
113
95
  value: function addDependenciesForTask(body, task_gid) {
114
- // Check if RETURN_COLLECTION is set and return a collection object if it is
115
- if (this.apiClient.RETURN_COLLECTION && false) {
116
- return this.addDependenciesForTaskWithHttpInfo(body, task_gid);
117
- } else {
118
- return this.addDependenciesForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
119
- return response_and_data.data;
120
- });
121
- }
96
+ return this.addDependenciesForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
97
+ return response_and_data.data;
98
+ });
122
99
  }
123
100
 
124
101
  /**
@@ -150,25 +127,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
150
127
  var contentTypes = ['application/json; charset=UTF-8'];
151
128
  var accepts = ['application/json; charset=UTF-8'];
152
129
  var returnType = 'Blob';
153
-
154
- // Check if RETURN_COLLECTION is set and return a collection object if it is
155
- if (this.apiClient.RETURN_COLLECTION && false) {
156
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/addDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
157
- 'path': '/tasks/{task_gid}/addDependents',
158
- 'httpMethod': 'POST',
159
- 'pathParams': pathParams,
160
- 'queryParams': queryParams,
161
- 'headerParams': headerParams,
162
- 'formParams': formParams,
163
- 'bodyParam': postBody,
164
- 'authNames': authNames,
165
- 'contentTypes': contentTypes,
166
- 'accepts': accepts,
167
- 'returnType': returnType
168
- });
169
- } else {
170
- return this.apiClient.callApi('/tasks/{task_gid}/addDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
171
- }
130
+ return this.apiClient.callApi('/tasks/{task_gid}/addDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
172
131
  }
173
132
 
174
133
  /**
@@ -181,14 +140,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
181
140
  }, {
182
141
  key: "addDependentsForTask",
183
142
  value: function addDependentsForTask(body, task_gid) {
184
- // Check if RETURN_COLLECTION is set and return a collection object if it is
185
- if (this.apiClient.RETURN_COLLECTION && false) {
186
- return this.addDependentsForTaskWithHttpInfo(body, task_gid);
187
- } else {
188
- return this.addDependentsForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
189
- return response_and_data.data;
190
- });
191
- }
143
+ return this.addDependentsForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
144
+ return response_and_data.data;
145
+ });
192
146
  }
193
147
 
194
148
  /**
@@ -225,25 +179,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
225
179
  var contentTypes = ['application/json; charset=UTF-8'];
226
180
  var accepts = ['application/json; charset=UTF-8'];
227
181
  var returnType = 'Blob';
228
-
229
- // Check if RETURN_COLLECTION is set and return a collection object if it is
230
- if (this.apiClient.RETURN_COLLECTION && false) {
231
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
232
- 'path': '/tasks/{task_gid}/addFollowers',
233
- 'httpMethod': 'POST',
234
- 'pathParams': pathParams,
235
- 'queryParams': queryParams,
236
- 'headerParams': headerParams,
237
- 'formParams': formParams,
238
- 'bodyParam': postBody,
239
- 'authNames': authNames,
240
- 'contentTypes': contentTypes,
241
- 'accepts': accepts,
242
- 'returnType': returnType
243
- });
244
- } else {
245
- return this.apiClient.callApi('/tasks/{task_gid}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
246
- }
182
+ return this.apiClient.callApi('/tasks/{task_gid}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
247
183
  }
248
184
 
249
185
  /**
@@ -258,14 +194,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
258
194
  }, {
259
195
  key: "addFollowersForTask",
260
196
  value: function addFollowersForTask(body, task_gid, opts) {
261
- // Check if RETURN_COLLECTION is set and return a collection object if it is
262
- if (this.apiClient.RETURN_COLLECTION && false) {
263
- return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts);
264
- } else {
265
- return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
266
- return response_and_data.data;
267
- });
268
- }
197
+ return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
198
+ return response_and_data.data;
199
+ });
269
200
  }
270
201
 
271
202
  /**
@@ -297,25 +228,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
297
228
  var contentTypes = ['application/json; charset=UTF-8'];
298
229
  var accepts = ['application/json; charset=UTF-8'];
299
230
  var returnType = 'Blob';
300
-
301
- // Check if RETURN_COLLECTION is set and return a collection object if it is
302
- if (this.apiClient.RETURN_COLLECTION && false) {
303
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/addProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
304
- 'path': '/tasks/{task_gid}/addProject',
305
- 'httpMethod': 'POST',
306
- 'pathParams': pathParams,
307
- 'queryParams': queryParams,
308
- 'headerParams': headerParams,
309
- 'formParams': formParams,
310
- 'bodyParam': postBody,
311
- 'authNames': authNames,
312
- 'contentTypes': contentTypes,
313
- 'accepts': accepts,
314
- 'returnType': returnType
315
- });
316
- } else {
317
- return this.apiClient.callApi('/tasks/{task_gid}/addProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
318
- }
231
+ return this.apiClient.callApi('/tasks/{task_gid}/addProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
319
232
  }
320
233
 
321
234
  /**
@@ -328,14 +241,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
328
241
  }, {
329
242
  key: "addProjectForTask",
330
243
  value: function addProjectForTask(body, task_gid) {
331
- // Check if RETURN_COLLECTION is set and return a collection object if it is
332
- if (this.apiClient.RETURN_COLLECTION && false) {
333
- return this.addProjectForTaskWithHttpInfo(body, task_gid);
334
- } else {
335
- return this.addProjectForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
336
- return response_and_data.data;
337
- });
338
- }
244
+ return this.addProjectForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
245
+ return response_and_data.data;
246
+ });
339
247
  }
340
248
 
341
249
  /**
@@ -367,25 +275,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
367
275
  var contentTypes = ['application/json; charset=UTF-8'];
368
276
  var accepts = ['application/json; charset=UTF-8'];
369
277
  var returnType = 'Blob';
370
-
371
- // Check if RETURN_COLLECTION is set and return a collection object if it is
372
- if (this.apiClient.RETURN_COLLECTION && false) {
373
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/addTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
374
- 'path': '/tasks/{task_gid}/addTag',
375
- 'httpMethod': 'POST',
376
- 'pathParams': pathParams,
377
- 'queryParams': queryParams,
378
- 'headerParams': headerParams,
379
- 'formParams': formParams,
380
- 'bodyParam': postBody,
381
- 'authNames': authNames,
382
- 'contentTypes': contentTypes,
383
- 'accepts': accepts,
384
- 'returnType': returnType
385
- });
386
- } else {
387
- return this.apiClient.callApi('/tasks/{task_gid}/addTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
388
- }
278
+ return this.apiClient.callApi('/tasks/{task_gid}/addTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
389
279
  }
390
280
 
391
281
  /**
@@ -398,14 +288,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
398
288
  }, {
399
289
  key: "addTagForTask",
400
290
  value: function addTagForTask(body, task_gid) {
401
- // Check if RETURN_COLLECTION is set and return a collection object if it is
402
- if (this.apiClient.RETURN_COLLECTION && false) {
403
- return this.addTagForTaskWithHttpInfo(body, task_gid);
404
- } else {
405
- return this.addTagForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
406
- return response_and_data.data;
407
- });
408
- }
291
+ return this.addTagForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
292
+ return response_and_data.data;
293
+ });
409
294
  }
410
295
 
411
296
  /**
@@ -442,25 +327,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
442
327
  var contentTypes = ['application/json; charset=UTF-8'];
443
328
  var accepts = ['application/json; charset=UTF-8'];
444
329
  var returnType = 'Blob';
445
-
446
- // Check if RETURN_COLLECTION is set and return a collection object if it is
447
- if (this.apiClient.RETURN_COLLECTION && false) {
448
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
449
- 'path': '/tasks/{task_gid}/subtasks',
450
- 'httpMethod': 'POST',
451
- 'pathParams': pathParams,
452
- 'queryParams': queryParams,
453
- 'headerParams': headerParams,
454
- 'formParams': formParams,
455
- 'bodyParam': postBody,
456
- 'authNames': authNames,
457
- 'contentTypes': contentTypes,
458
- 'accepts': accepts,
459
- 'returnType': returnType
460
- });
461
- } else {
462
- return this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
463
- }
330
+ return this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
464
331
  }
465
332
 
466
333
  /**
@@ -475,14 +342,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
475
342
  }, {
476
343
  key: "createSubtaskForTask",
477
344
  value: function createSubtaskForTask(body, task_gid, opts) {
478
- // Check if RETURN_COLLECTION is set and return a collection object if it is
479
- if (this.apiClient.RETURN_COLLECTION && false) {
480
- return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts);
481
- } else {
482
- return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
483
- return response_and_data.data;
484
- });
485
- }
345
+ return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
346
+ return response_and_data.data;
347
+ });
486
348
  }
487
349
 
488
350
  /**
@@ -512,25 +374,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
512
374
  var contentTypes = ['application/json; charset=UTF-8'];
513
375
  var accepts = ['application/json; charset=UTF-8'];
514
376
  var returnType = 'Blob';
515
-
516
- // Check if RETURN_COLLECTION is set and return a collection object if it is
517
- if (this.apiClient.RETURN_COLLECTION && false) {
518
- return Collection.fromApiClient(this.apiClient.callApi('/tasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
519
- 'path': '/tasks',
520
- 'httpMethod': 'POST',
521
- 'pathParams': pathParams,
522
- 'queryParams': queryParams,
523
- 'headerParams': headerParams,
524
- 'formParams': formParams,
525
- 'bodyParam': postBody,
526
- 'authNames': authNames,
527
- 'contentTypes': contentTypes,
528
- 'accepts': accepts,
529
- 'returnType': returnType
530
- });
531
- } else {
532
- return this.apiClient.callApi('/tasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
533
- }
377
+ return this.apiClient.callApi('/tasks', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
534
378
  }
535
379
 
536
380
  /**
@@ -544,14 +388,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
544
388
  }, {
545
389
  key: "createTask",
546
390
  value: function createTask(body, opts) {
547
- // Check if RETURN_COLLECTION is set and return a collection object if it is
548
- if (this.apiClient.RETURN_COLLECTION && false) {
549
- return this.createTaskWithHttpInfo(body, opts);
550
- } else {
551
- return this.createTaskWithHttpInfo(body, opts).then(function (response_and_data) {
552
- return response_and_data.data;
553
- });
554
- }
391
+ return this.createTaskWithHttpInfo(body, opts).then(function (response_and_data) {
392
+ return response_and_data.data;
393
+ });
555
394
  }
556
395
 
557
396
  /**
@@ -578,25 +417,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
578
417
  var contentTypes = [];
579
418
  var accepts = ['application/json; charset=UTF-8'];
580
419
  var returnType = 'Blob';
581
-
582
- // Check if RETURN_COLLECTION is set and return a collection object if it is
583
- if (this.apiClient.RETURN_COLLECTION && false) {
584
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
585
- 'path': '/tasks/{task_gid}',
586
- 'httpMethod': 'DELETE',
587
- 'pathParams': pathParams,
588
- 'queryParams': queryParams,
589
- 'headerParams': headerParams,
590
- 'formParams': formParams,
591
- 'bodyParam': postBody,
592
- 'authNames': authNames,
593
- 'contentTypes': contentTypes,
594
- 'accepts': accepts,
595
- 'returnType': returnType
596
- });
597
- } else {
598
- return this.apiClient.callApi('/tasks/{task_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
599
- }
420
+ return this.apiClient.callApi('/tasks/{task_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
600
421
  }
601
422
 
602
423
  /**
@@ -608,14 +429,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
608
429
  }, {
609
430
  key: "deleteTask",
610
431
  value: function deleteTask(task_gid) {
611
- // Check if RETURN_COLLECTION is set and return a collection object if it is
612
- if (this.apiClient.RETURN_COLLECTION && false) {
613
- return this.deleteTaskWithHttpInfo(task_gid);
614
- } else {
615
- return this.deleteTaskWithHttpInfo(task_gid).then(function (response_and_data) {
616
- return response_and_data.data;
617
- });
618
- }
432
+ return this.deleteTaskWithHttpInfo(task_gid).then(function (response_and_data) {
433
+ return response_and_data.data;
434
+ });
619
435
  }
620
436
 
621
437
  /**
@@ -652,25 +468,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
652
468
  var contentTypes = ['application/json; charset=UTF-8'];
653
469
  var accepts = ['application/json; charset=UTF-8'];
654
470
  var returnType = 'Blob';
655
-
656
- // Check if RETURN_COLLECTION is set and return a collection object if it is
657
- if (this.apiClient.RETURN_COLLECTION && false) {
658
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/duplicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
659
- 'path': '/tasks/{task_gid}/duplicate',
660
- 'httpMethod': 'POST',
661
- 'pathParams': pathParams,
662
- 'queryParams': queryParams,
663
- 'headerParams': headerParams,
664
- 'formParams': formParams,
665
- 'bodyParam': postBody,
666
- 'authNames': authNames,
667
- 'contentTypes': contentTypes,
668
- 'accepts': accepts,
669
- 'returnType': returnType
670
- });
671
- } else {
672
- return this.apiClient.callApi('/tasks/{task_gid}/duplicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
673
- }
471
+ return this.apiClient.callApi('/tasks/{task_gid}/duplicate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
674
472
  }
675
473
 
676
474
  /**
@@ -685,14 +483,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
685
483
  }, {
686
484
  key: "duplicateTask",
687
485
  value: function duplicateTask(body, task_gid, opts) {
688
- // Check if RETURN_COLLECTION is set and return a collection object if it is
689
- if (this.apiClient.RETURN_COLLECTION && false) {
690
- return this.duplicateTaskWithHttpInfo(body, task_gid, opts);
691
- } else {
692
- return this.duplicateTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
693
- return response_and_data.data;
694
- });
695
- }
486
+ return this.duplicateTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
487
+ return response_and_data.data;
488
+ });
696
489
  }
697
490
 
698
491
  /**
@@ -726,9 +519,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
726
519
  var contentTypes = [];
727
520
  var accepts = ['application/json; charset=UTF-8'];
728
521
  var returnType = 'Blob';
729
-
730
522
  // Check if RETURN_COLLECTION is set and return a collection object if it is
731
- if (this.apiClient.RETURN_COLLECTION && true) {
523
+ if (this.apiClient.RETURN_COLLECTION) {
732
524
  return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/dependencies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
733
525
  'path': '/tasks/{task_gid}/dependencies',
734
526
  'httpMethod': 'GET',
@@ -742,9 +534,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
742
534
  'accepts': accepts,
743
535
  'returnType': returnType
744
536
  });
745
- } else {
746
- return this.apiClient.callApi('/tasks/{task_gid}/dependencies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
747
537
  }
538
+ return this.apiClient.callApi('/tasks/{task_gid}/dependencies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
748
539
  }
749
540
 
750
541
  /**
@@ -761,13 +552,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
761
552
  key: "getDependenciesForTask",
762
553
  value: function getDependenciesForTask(task_gid, opts) {
763
554
  // Check if RETURN_COLLECTION is set and return a collection object if it is
764
- if (this.apiClient.RETURN_COLLECTION && true) {
555
+ if (this.apiClient.RETURN_COLLECTION) {
765
556
  return this.getDependenciesForTaskWithHttpInfo(task_gid, opts);
766
- } else {
767
- return this.getDependenciesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
768
- return response_and_data.data;
769
- });
770
557
  }
558
+ return this.getDependenciesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
559
+ return response_and_data.data;
560
+ });
771
561
  }
772
562
 
773
563
  /**
@@ -801,9 +591,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
801
591
  var contentTypes = [];
802
592
  var accepts = ['application/json; charset=UTF-8'];
803
593
  var returnType = 'Blob';
804
-
805
594
  // Check if RETURN_COLLECTION is set and return a collection object if it is
806
- if (this.apiClient.RETURN_COLLECTION && true) {
595
+ if (this.apiClient.RETURN_COLLECTION) {
807
596
  return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/dependents', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
808
597
  'path': '/tasks/{task_gid}/dependents',
809
598
  'httpMethod': 'GET',
@@ -817,9 +606,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
817
606
  'accepts': accepts,
818
607
  'returnType': returnType
819
608
  });
820
- } else {
821
- return this.apiClient.callApi('/tasks/{task_gid}/dependents', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
822
609
  }
610
+ return this.apiClient.callApi('/tasks/{task_gid}/dependents', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
823
611
  }
824
612
 
825
613
  /**
@@ -836,13 +624,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
836
624
  key: "getDependentsForTask",
837
625
  value: function getDependentsForTask(task_gid, opts) {
838
626
  // Check if RETURN_COLLECTION is set and return a collection object if it is
839
- if (this.apiClient.RETURN_COLLECTION && true) {
627
+ if (this.apiClient.RETURN_COLLECTION) {
840
628
  return this.getDependentsForTaskWithHttpInfo(task_gid, opts);
841
- } else {
842
- return this.getDependentsForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
843
- return response_and_data.data;
844
- });
845
629
  }
630
+ return this.getDependentsForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
631
+ return response_and_data.data;
632
+ });
846
633
  }
847
634
 
848
635
  /**
@@ -876,9 +663,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
876
663
  var contentTypes = [];
877
664
  var accepts = ['application/json; charset=UTF-8'];
878
665
  var returnType = 'Blob';
879
-
880
666
  // Check if RETURN_COLLECTION is set and return a collection object if it is
881
- if (this.apiClient.RETURN_COLLECTION && true) {
667
+ if (this.apiClient.RETURN_COLLECTION) {
882
668
  return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
883
669
  'path': '/tasks/{task_gid}/subtasks',
884
670
  'httpMethod': 'GET',
@@ -892,9 +678,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
892
678
  'accepts': accepts,
893
679
  'returnType': returnType
894
680
  });
895
- } else {
896
- return this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
897
681
  }
682
+ return this.apiClient.callApi('/tasks/{task_gid}/subtasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
898
683
  }
899
684
 
900
685
  /**
@@ -911,13 +696,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
911
696
  key: "getSubtasksForTask",
912
697
  value: function getSubtasksForTask(task_gid, opts) {
913
698
  // Check if RETURN_COLLECTION is set and return a collection object if it is
914
- if (this.apiClient.RETURN_COLLECTION && true) {
699
+ if (this.apiClient.RETURN_COLLECTION) {
915
700
  return this.getSubtasksForTaskWithHttpInfo(task_gid, opts);
916
- } else {
917
- return this.getSubtasksForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
918
- return response_and_data.data;
919
- });
920
701
  }
702
+ return this.getSubtasksForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
703
+ return response_and_data.data;
704
+ });
921
705
  }
922
706
 
923
707
  /**
@@ -949,25 +733,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
949
733
  var contentTypes = [];
950
734
  var accepts = ['application/json; charset=UTF-8'];
951
735
  var returnType = 'Blob';
952
-
953
- // Check if RETURN_COLLECTION is set and return a collection object if it is
954
- if (this.apiClient.RETURN_COLLECTION && false) {
955
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
956
- 'path': '/tasks/{task_gid}',
957
- 'httpMethod': 'GET',
958
- 'pathParams': pathParams,
959
- 'queryParams': queryParams,
960
- 'headerParams': headerParams,
961
- 'formParams': formParams,
962
- 'bodyParam': postBody,
963
- 'authNames': authNames,
964
- 'contentTypes': contentTypes,
965
- 'accepts': accepts,
966
- 'returnType': returnType
967
- });
968
- } else {
969
- return this.apiClient.callApi('/tasks/{task_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
970
- }
736
+ return this.apiClient.callApi('/tasks/{task_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
971
737
  }
972
738
 
973
739
  /**
@@ -981,14 +747,57 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
981
747
  }, {
982
748
  key: "getTask",
983
749
  value: function getTask(task_gid, opts) {
984
- // Check if RETURN_COLLECTION is set and return a collection object if it is
985
- if (this.apiClient.RETURN_COLLECTION && false) {
986
- return this.getTaskWithHttpInfo(task_gid, opts);
987
- } else {
988
- return this.getTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
989
- return response_and_data.data;
990
- });
750
+ return this.getTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
751
+ return response_and_data.data;
752
+ });
753
+ }
754
+
755
+ /**
756
+ * Get a task for a given custom ID
757
+ * Returns a task given a custom ID shortcode.
758
+ * @param {String} workspace_gid Globally unique identifier for the workspace or organization.
759
+ * @param {String} custom_id Generated custom ID for a task.
760
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
761
+ */
762
+ }, {
763
+ key: "getTaskForCustomIDWithHttpInfo",
764
+ value: function getTaskForCustomIDWithHttpInfo(workspace_gid, custom_id) {
765
+ var postBody = null;
766
+ // verify the required parameter 'workspace_gid' is set
767
+ if (workspace_gid === undefined || workspace_gid === null) {
768
+ throw new Error("Missing the required parameter 'workspace_gid' when calling getTaskForCustomID");
991
769
  }
770
+ // verify the required parameter 'custom_id' is set
771
+ if (custom_id === undefined || custom_id === null) {
772
+ throw new Error("Missing the required parameter 'custom_id' when calling getTaskForCustomID");
773
+ }
774
+ var pathParams = {
775
+ 'workspace_gid': workspace_gid,
776
+ 'custom_id': custom_id
777
+ };
778
+ var queryParams = {};
779
+ var headerParams = {};
780
+ var formParams = {};
781
+ var authNames = ['personalAccessToken'];
782
+ var contentTypes = [];
783
+ var accepts = ['application/json; charset=UTF-8'];
784
+ var returnType = 'Blob';
785
+ return this.apiClient.callApi('/workspaces/{workspace_gid}/tasks/custom_id/{custom_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
786
+ }
787
+
788
+ /**
789
+ * Get a task for a given custom ID
790
+ * Returns a task given a custom ID shortcode.
791
+ * @param {<&vendorExtensions.x-jsdoc-type>} workspace_gid Globally unique identifier for the workspace or organization.
792
+ * @param {<&vendorExtensions.x-jsdoc-type>} custom_id Generated custom ID for a task.
793
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseData}
794
+ */
795
+ }, {
796
+ key: "getTaskForCustomID",
797
+ value: function getTaskForCustomID(workspace_gid, custom_id) {
798
+ return this.getTaskForCustomIDWithHttpInfo(workspace_gid, custom_id).then(function (response_and_data) {
799
+ return response_and_data.data;
800
+ });
992
801
  }
993
802
 
994
803
  /**
@@ -1021,9 +830,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1021
830
  var contentTypes = [];
1022
831
  var accepts = ['application/json; charset=UTF-8'];
1023
832
  var returnType = 'Blob';
1024
-
1025
833
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1026
- if (this.apiClient.RETURN_COLLECTION && true) {
834
+ if (this.apiClient.RETURN_COLLECTION) {
1027
835
  return Collection.fromApiClient(this.apiClient.callApi('/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1028
836
  'path': '/tasks',
1029
837
  'httpMethod': 'GET',
@@ -1037,9 +845,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1037
845
  'accepts': accepts,
1038
846
  'returnType': returnType
1039
847
  });
1040
- } else {
1041
- return this.apiClient.callApi('/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1042
848
  }
849
+ return this.apiClient.callApi('/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1043
850
  }
1044
851
 
1045
852
  /**
@@ -1061,13 +868,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1061
868
  key: "getTasks",
1062
869
  value: function getTasks(opts) {
1063
870
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1064
- if (this.apiClient.RETURN_COLLECTION && true) {
871
+ if (this.apiClient.RETURN_COLLECTION) {
1065
872
  return this.getTasksWithHttpInfo(opts);
1066
- } else {
1067
- return this.getTasksWithHttpInfo(opts).then(function (response_and_data) {
1068
- return response_and_data.data;
1069
- });
1070
873
  }
874
+ return this.getTasksWithHttpInfo(opts).then(function (response_and_data) {
875
+ return response_and_data.data;
876
+ });
1071
877
  }
1072
878
 
1073
879
  /**
@@ -1102,9 +908,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1102
908
  var contentTypes = [];
1103
909
  var accepts = ['application/json; charset=UTF-8'];
1104
910
  var returnType = 'Blob';
1105
-
1106
911
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1107
- if (this.apiClient.RETURN_COLLECTION && true) {
912
+ if (this.apiClient.RETURN_COLLECTION) {
1108
913
  return Collection.fromApiClient(this.apiClient.callApi('/projects/{project_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1109
914
  'path': '/projects/{project_gid}/tasks',
1110
915
  'httpMethod': 'GET',
@@ -1118,9 +923,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1118
923
  'accepts': accepts,
1119
924
  'returnType': returnType
1120
925
  });
1121
- } else {
1122
- return this.apiClient.callApi('/projects/{project_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1123
926
  }
927
+ return this.apiClient.callApi('/projects/{project_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1124
928
  }
1125
929
 
1126
930
  /**
@@ -1138,13 +942,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1138
942
  key: "getTasksForProject",
1139
943
  value: function getTasksForProject(project_gid, opts) {
1140
944
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1141
- if (this.apiClient.RETURN_COLLECTION && true) {
945
+ if (this.apiClient.RETURN_COLLECTION) {
1142
946
  return this.getTasksForProjectWithHttpInfo(project_gid, opts);
1143
- } else {
1144
- return this.getTasksForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
1145
- return response_and_data.data;
1146
- });
1147
947
  }
948
+ return this.getTasksForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
949
+ return response_and_data.data;
950
+ });
1148
951
  }
1149
952
 
1150
953
  /**
@@ -1179,9 +982,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1179
982
  var contentTypes = [];
1180
983
  var accepts = ['application/json; charset=UTF-8'];
1181
984
  var returnType = 'Blob';
1182
-
1183
985
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1184
- if (this.apiClient.RETURN_COLLECTION && true) {
986
+ if (this.apiClient.RETURN_COLLECTION) {
1185
987
  return Collection.fromApiClient(this.apiClient.callApi('/sections/{section_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1186
988
  'path': '/sections/{section_gid}/tasks',
1187
989
  'httpMethod': 'GET',
@@ -1195,9 +997,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1195
997
  'accepts': accepts,
1196
998
  'returnType': returnType
1197
999
  });
1198
- } else {
1199
- return this.apiClient.callApi('/sections/{section_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1200
1000
  }
1001
+ return this.apiClient.callApi('/sections/{section_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1201
1002
  }
1202
1003
 
1203
1004
  /**
@@ -1215,13 +1016,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1215
1016
  key: "getTasksForSection",
1216
1017
  value: function getTasksForSection(section_gid, opts) {
1217
1018
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1218
- if (this.apiClient.RETURN_COLLECTION && true) {
1019
+ if (this.apiClient.RETURN_COLLECTION) {
1219
1020
  return this.getTasksForSectionWithHttpInfo(section_gid, opts);
1220
- } else {
1221
- return this.getTasksForSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
1222
- return response_and_data.data;
1223
- });
1224
1021
  }
1022
+ return this.getTasksForSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
1023
+ return response_and_data.data;
1024
+ });
1225
1025
  }
1226
1026
 
1227
1027
  /**
@@ -1255,9 +1055,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1255
1055
  var contentTypes = [];
1256
1056
  var accepts = ['application/json; charset=UTF-8'];
1257
1057
  var returnType = 'Blob';
1258
-
1259
1058
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1260
- if (this.apiClient.RETURN_COLLECTION && true) {
1059
+ if (this.apiClient.RETURN_COLLECTION) {
1261
1060
  return Collection.fromApiClient(this.apiClient.callApi('/tags/{tag_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1262
1061
  'path': '/tags/{tag_gid}/tasks',
1263
1062
  'httpMethod': 'GET',
@@ -1271,9 +1070,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1271
1070
  'accepts': accepts,
1272
1071
  'returnType': returnType
1273
1072
  });
1274
- } else {
1275
- return this.apiClient.callApi('/tags/{tag_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1276
1073
  }
1074
+ return this.apiClient.callApi('/tags/{tag_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1277
1075
  }
1278
1076
 
1279
1077
  /**
@@ -1290,13 +1088,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1290
1088
  key: "getTasksForTag",
1291
1089
  value: function getTasksForTag(tag_gid, opts) {
1292
1090
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1293
- if (this.apiClient.RETURN_COLLECTION && true) {
1091
+ if (this.apiClient.RETURN_COLLECTION) {
1294
1092
  return this.getTasksForTagWithHttpInfo(tag_gid, opts);
1295
- } else {
1296
- return this.getTasksForTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
1297
- return response_and_data.data;
1298
- });
1299
1093
  }
1094
+ return this.getTasksForTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
1095
+ return response_and_data.data;
1096
+ });
1300
1097
  }
1301
1098
 
1302
1099
  /**
@@ -1331,9 +1128,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1331
1128
  var contentTypes = [];
1332
1129
  var accepts = ['application/json; charset=UTF-8'];
1333
1130
  var returnType = 'Blob';
1334
-
1335
1131
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1336
- if (this.apiClient.RETURN_COLLECTION && true) {
1132
+ if (this.apiClient.RETURN_COLLECTION) {
1337
1133
  return Collection.fromApiClient(this.apiClient.callApi('/user_task_lists/{user_task_list_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1338
1134
  'path': '/user_task_lists/{user_task_list_gid}/tasks',
1339
1135
  'httpMethod': 'GET',
@@ -1347,9 +1143,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1347
1143
  'accepts': accepts,
1348
1144
  'returnType': returnType
1349
1145
  });
1350
- } else {
1351
- return this.apiClient.callApi('/user_task_lists/{user_task_list_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1352
1146
  }
1147
+ return this.apiClient.callApi('/user_task_lists/{user_task_list_gid}/tasks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1353
1148
  }
1354
1149
 
1355
1150
  /**
@@ -1367,13 +1162,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1367
1162
  key: "getTasksForUserTaskList",
1368
1163
  value: function getTasksForUserTaskList(user_task_list_gid, opts) {
1369
1164
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1370
- if (this.apiClient.RETURN_COLLECTION && true) {
1165
+ if (this.apiClient.RETURN_COLLECTION) {
1371
1166
  return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts);
1372
- } else {
1373
- return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts).then(function (response_and_data) {
1374
- return response_and_data.data;
1375
- });
1376
1167
  }
1168
+ return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts).then(function (response_and_data) {
1169
+ return response_and_data.data;
1170
+ });
1377
1171
  }
1378
1172
 
1379
1173
  /**
@@ -1405,25 +1199,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1405
1199
  var contentTypes = ['application/json; charset=UTF-8'];
1406
1200
  var accepts = ['application/json; charset=UTF-8'];
1407
1201
  var returnType = 'Blob';
1408
-
1409
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1410
- if (this.apiClient.RETURN_COLLECTION && false) {
1411
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/removeDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1412
- 'path': '/tasks/{task_gid}/removeDependencies',
1413
- 'httpMethod': 'POST',
1414
- 'pathParams': pathParams,
1415
- 'queryParams': queryParams,
1416
- 'headerParams': headerParams,
1417
- 'formParams': formParams,
1418
- 'bodyParam': postBody,
1419
- 'authNames': authNames,
1420
- 'contentTypes': contentTypes,
1421
- 'accepts': accepts,
1422
- 'returnType': returnType
1423
- });
1424
- } else {
1425
- return this.apiClient.callApi('/tasks/{task_gid}/removeDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1426
- }
1202
+ return this.apiClient.callApi('/tasks/{task_gid}/removeDependencies', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1427
1203
  }
1428
1204
 
1429
1205
  /**
@@ -1436,14 +1212,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1436
1212
  }, {
1437
1213
  key: "removeDependenciesForTask",
1438
1214
  value: function removeDependenciesForTask(body, task_gid) {
1439
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1440
- if (this.apiClient.RETURN_COLLECTION && false) {
1441
- return this.removeDependenciesForTaskWithHttpInfo(body, task_gid);
1442
- } else {
1443
- return this.removeDependenciesForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1444
- return response_and_data.data;
1445
- });
1446
- }
1215
+ return this.removeDependenciesForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1216
+ return response_and_data.data;
1217
+ });
1447
1218
  }
1448
1219
 
1449
1220
  /**
@@ -1475,25 +1246,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1475
1246
  var contentTypes = ['application/json; charset=UTF-8'];
1476
1247
  var accepts = ['application/json; charset=UTF-8'];
1477
1248
  var returnType = 'Blob';
1478
-
1479
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1480
- if (this.apiClient.RETURN_COLLECTION && false) {
1481
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/removeDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1482
- 'path': '/tasks/{task_gid}/removeDependents',
1483
- 'httpMethod': 'POST',
1484
- 'pathParams': pathParams,
1485
- 'queryParams': queryParams,
1486
- 'headerParams': headerParams,
1487
- 'formParams': formParams,
1488
- 'bodyParam': postBody,
1489
- 'authNames': authNames,
1490
- 'contentTypes': contentTypes,
1491
- 'accepts': accepts,
1492
- 'returnType': returnType
1493
- });
1494
- } else {
1495
- return this.apiClient.callApi('/tasks/{task_gid}/removeDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1496
- }
1249
+ return this.apiClient.callApi('/tasks/{task_gid}/removeDependents', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1497
1250
  }
1498
1251
 
1499
1252
  /**
@@ -1506,14 +1259,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1506
1259
  }, {
1507
1260
  key: "removeDependentsForTask",
1508
1261
  value: function removeDependentsForTask(body, task_gid) {
1509
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1510
- if (this.apiClient.RETURN_COLLECTION && false) {
1511
- return this.removeDependentsForTaskWithHttpInfo(body, task_gid);
1512
- } else {
1513
- return this.removeDependentsForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1514
- return response_and_data.data;
1515
- });
1516
- }
1262
+ return this.removeDependentsForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1263
+ return response_and_data.data;
1264
+ });
1517
1265
  }
1518
1266
 
1519
1267
  /**
@@ -1550,25 +1298,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1550
1298
  var contentTypes = ['application/json; charset=UTF-8'];
1551
1299
  var accepts = ['application/json; charset=UTF-8'];
1552
1300
  var returnType = 'Blob';
1553
-
1554
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1555
- if (this.apiClient.RETURN_COLLECTION && false) {
1556
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1557
- 'path': '/tasks/{task_gid}/removeFollowers',
1558
- 'httpMethod': 'POST',
1559
- 'pathParams': pathParams,
1560
- 'queryParams': queryParams,
1561
- 'headerParams': headerParams,
1562
- 'formParams': formParams,
1563
- 'bodyParam': postBody,
1564
- 'authNames': authNames,
1565
- 'contentTypes': contentTypes,
1566
- 'accepts': accepts,
1567
- 'returnType': returnType
1568
- });
1569
- } else {
1570
- return this.apiClient.callApi('/tasks/{task_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1571
- }
1301
+ return this.apiClient.callApi('/tasks/{task_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1572
1302
  }
1573
1303
 
1574
1304
  /**
@@ -1583,14 +1313,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1583
1313
  }, {
1584
1314
  key: "removeFollowerForTask",
1585
1315
  value: function removeFollowerForTask(body, task_gid, opts) {
1586
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1587
- if (this.apiClient.RETURN_COLLECTION && false) {
1588
- return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts);
1589
- } else {
1590
- return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
1591
- return response_and_data.data;
1592
- });
1593
- }
1316
+ return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
1317
+ return response_and_data.data;
1318
+ });
1594
1319
  }
1595
1320
 
1596
1321
  /**
@@ -1622,25 +1347,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1622
1347
  var contentTypes = ['application/json; charset=UTF-8'];
1623
1348
  var accepts = ['application/json; charset=UTF-8'];
1624
1349
  var returnType = 'Blob';
1625
-
1626
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1627
- if (this.apiClient.RETURN_COLLECTION && false) {
1628
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/removeProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1629
- 'path': '/tasks/{task_gid}/removeProject',
1630
- 'httpMethod': 'POST',
1631
- 'pathParams': pathParams,
1632
- 'queryParams': queryParams,
1633
- 'headerParams': headerParams,
1634
- 'formParams': formParams,
1635
- 'bodyParam': postBody,
1636
- 'authNames': authNames,
1637
- 'contentTypes': contentTypes,
1638
- 'accepts': accepts,
1639
- 'returnType': returnType
1640
- });
1641
- } else {
1642
- return this.apiClient.callApi('/tasks/{task_gid}/removeProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1643
- }
1350
+ return this.apiClient.callApi('/tasks/{task_gid}/removeProject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1644
1351
  }
1645
1352
 
1646
1353
  /**
@@ -1653,14 +1360,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1653
1360
  }, {
1654
1361
  key: "removeProjectForTask",
1655
1362
  value: function removeProjectForTask(body, task_gid) {
1656
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1657
- if (this.apiClient.RETURN_COLLECTION && false) {
1658
- return this.removeProjectForTaskWithHttpInfo(body, task_gid);
1659
- } else {
1660
- return this.removeProjectForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1661
- return response_and_data.data;
1662
- });
1663
- }
1363
+ return this.removeProjectForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1364
+ return response_and_data.data;
1365
+ });
1664
1366
  }
1665
1367
 
1666
1368
  /**
@@ -1692,25 +1394,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1692
1394
  var contentTypes = ['application/json; charset=UTF-8'];
1693
1395
  var accepts = ['application/json; charset=UTF-8'];
1694
1396
  var returnType = 'Blob';
1695
-
1696
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1697
- if (this.apiClient.RETURN_COLLECTION && false) {
1698
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/removeTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1699
- 'path': '/tasks/{task_gid}/removeTag',
1700
- 'httpMethod': 'POST',
1701
- 'pathParams': pathParams,
1702
- 'queryParams': queryParams,
1703
- 'headerParams': headerParams,
1704
- 'formParams': formParams,
1705
- 'bodyParam': postBody,
1706
- 'authNames': authNames,
1707
- 'contentTypes': contentTypes,
1708
- 'accepts': accepts,
1709
- 'returnType': returnType
1710
- });
1711
- } else {
1712
- return this.apiClient.callApi('/tasks/{task_gid}/removeTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1713
- }
1397
+ return this.apiClient.callApi('/tasks/{task_gid}/removeTag', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1714
1398
  }
1715
1399
 
1716
1400
  /**
@@ -1723,14 +1407,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1723
1407
  }, {
1724
1408
  key: "removeTagForTask",
1725
1409
  value: function removeTagForTask(body, task_gid) {
1726
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1727
- if (this.apiClient.RETURN_COLLECTION && false) {
1728
- return this.removeTagForTaskWithHttpInfo(body, task_gid);
1729
- } else {
1730
- return this.removeTagForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1731
- return response_and_data.data;
1732
- });
1733
- }
1410
+ return this.removeTagForTaskWithHttpInfo(body, task_gid).then(function (response_and_data) {
1411
+ return response_and_data.data;
1412
+ });
1734
1413
  }
1735
1414
 
1736
1415
  /**
@@ -1832,9 +1511,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1832
1511
  var contentTypes = [];
1833
1512
  var accepts = ['application/json; charset=UTF-8'];
1834
1513
  var returnType = 'Blob';
1835
-
1836
1514
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1837
- if (this.apiClient.RETURN_COLLECTION && true) {
1515
+ if (this.apiClient.RETURN_COLLECTION) {
1838
1516
  return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/tasks/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1839
1517
  'path': '/workspaces/{workspace_gid}/tasks/search',
1840
1518
  'httpMethod': 'GET',
@@ -1848,9 +1526,8 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1848
1526
  'accepts': accepts,
1849
1527
  'returnType': returnType
1850
1528
  });
1851
- } else {
1852
- return this.apiClient.callApi('/workspaces/{workspace_gid}/tasks/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1853
1529
  }
1530
+ return this.apiClient.callApi('/workspaces/{workspace_gid}/tasks/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1854
1531
  }
1855
1532
 
1856
1533
  /**
@@ -1917,13 +1594,12 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1917
1594
  key: "searchTasksForWorkspace",
1918
1595
  value: function searchTasksForWorkspace(workspace_gid, opts) {
1919
1596
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1920
- if (this.apiClient.RETURN_COLLECTION && true) {
1597
+ if (this.apiClient.RETURN_COLLECTION) {
1921
1598
  return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts);
1922
- } else {
1923
- return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
1924
- return response_and_data.data;
1925
- });
1926
1599
  }
1600
+ return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
1601
+ return response_and_data.data;
1602
+ });
1927
1603
  }
1928
1604
 
1929
1605
  /**
@@ -1960,25 +1636,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1960
1636
  var contentTypes = ['application/json; charset=UTF-8'];
1961
1637
  var accepts = ['application/json; charset=UTF-8'];
1962
1638
  var returnType = 'Blob';
1963
-
1964
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1965
- if (this.apiClient.RETURN_COLLECTION && false) {
1966
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/setParent', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
1967
- 'path': '/tasks/{task_gid}/setParent',
1968
- 'httpMethod': 'POST',
1969
- 'pathParams': pathParams,
1970
- 'queryParams': queryParams,
1971
- 'headerParams': headerParams,
1972
- 'formParams': formParams,
1973
- 'bodyParam': postBody,
1974
- 'authNames': authNames,
1975
- 'contentTypes': contentTypes,
1976
- 'accepts': accepts,
1977
- 'returnType': returnType
1978
- });
1979
- } else {
1980
- return this.apiClient.callApi('/tasks/{task_gid}/setParent', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1981
- }
1639
+ return this.apiClient.callApi('/tasks/{task_gid}/setParent', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
1982
1640
  }
1983
1641
 
1984
1642
  /**
@@ -1993,14 +1651,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
1993
1651
  }, {
1994
1652
  key: "setParentForTask",
1995
1653
  value: function setParentForTask(body, task_gid, opts) {
1996
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1997
- if (this.apiClient.RETURN_COLLECTION && false) {
1998
- return this.setParentForTaskWithHttpInfo(body, task_gid, opts);
1999
- } else {
2000
- return this.setParentForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
2001
- return response_and_data.data;
2002
- });
2003
- }
1654
+ return this.setParentForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
1655
+ return response_and_data.data;
1656
+ });
2004
1657
  }
2005
1658
 
2006
1659
  /**
@@ -2037,25 +1690,7 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
2037
1690
  var contentTypes = ['application/json; charset=UTF-8'];
2038
1691
  var accepts = ['application/json; charset=UTF-8'];
2039
1692
  var returnType = 'Blob';
2040
-
2041
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2042
- if (this.apiClient.RETURN_COLLECTION && false) {
2043
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
2044
- 'path': '/tasks/{task_gid}',
2045
- 'httpMethod': 'PUT',
2046
- 'pathParams': pathParams,
2047
- 'queryParams': queryParams,
2048
- 'headerParams': headerParams,
2049
- 'formParams': formParams,
2050
- 'bodyParam': postBody,
2051
- 'authNames': authNames,
2052
- 'contentTypes': contentTypes,
2053
- 'accepts': accepts,
2054
- 'returnType': returnType
2055
- });
2056
- } else {
2057
- return this.apiClient.callApi('/tasks/{task_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
2058
- }
1693
+ return this.apiClient.callApi('/tasks/{task_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
2059
1694
  }
2060
1695
 
2061
1696
  /**
@@ -2070,15 +1705,9 @@ var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
2070
1705
  }, {
2071
1706
  key: "updateTask",
2072
1707
  value: function updateTask(body, task_gid, opts) {
2073
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2074
- if (this.apiClient.RETURN_COLLECTION && false) {
2075
- return this.updateTaskWithHttpInfo(body, task_gid, opts);
2076
- } else {
2077
- return this.updateTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
2078
- return response_and_data.data;
2079
- });
2080
- }
1708
+ return this.updateTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
1709
+ return response_and_data.data;
1710
+ });
2081
1711
  }
2082
1712
  }]);
2083
- return TasksApi;
2084
1713
  }();