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
@@ -7,7 +7,7 @@
7
7
  * NOTE: This class is auto generated by the swagger code generator program.
8
8
  * https://github.com/swagger-api/swagger-codegen.git
9
9
  *
10
- * Swagger Codegen version: 3.0.52
10
+ * Swagger Codegen version: 3.0.54
11
11
  *
12
12
  * Do not edit the class manually.
13
13
  *
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Tasks service.
20
20
  * @module api/TasksApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class TasksApi {
24
24
 
@@ -72,36 +72,11 @@ export class TasksApi {
72
72
  let accepts = ['application/json; charset=UTF-8'];
73
73
  let returnType = 'Blob';
74
74
 
75
- // Check if RETURN_COLLECTION is set and return a collection object if it is
76
- if (this.apiClient.RETURN_COLLECTION && false) {
77
- return Collection.fromApiClient(
78
- this.apiClient.callApi(
79
- '/tasks/{task_gid}/addDependencies', 'POST',
80
- pathParams, queryParams, headerParams, formParams, postBody,
81
- authNames, contentTypes, accepts, returnType
82
- ),
83
- this.apiClient,
84
- {
85
- 'path': '/tasks/{task_gid}/addDependencies',
86
- 'httpMethod': 'POST',
87
- 'pathParams': pathParams,
88
- 'queryParams': queryParams,
89
- 'headerParams': headerParams,
90
- 'formParams': formParams,
91
- 'bodyParam': postBody,
92
- 'authNames': authNames,
93
- 'contentTypes': contentTypes,
94
- 'accepts': accepts,
95
- 'returnType': returnType
96
- }
97
- )
98
- } else {
99
- return this.apiClient.callApi(
100
- '/tasks/{task_gid}/addDependencies', 'POST',
101
- pathParams, queryParams, headerParams, formParams, postBody,
102
- authNames, contentTypes, accepts, returnType
103
- );
104
- }
75
+ return this.apiClient.callApi(
76
+ '/tasks/{task_gid}/addDependencies', 'POST',
77
+ pathParams, queryParams, headerParams, formParams, postBody,
78
+ authNames, contentTypes, accepts, returnType
79
+ );
105
80
  }
106
81
 
107
82
  /**
@@ -113,15 +88,10 @@ export class TasksApi {
113
88
  */
114
89
  addDependenciesForTask(body, task_gid) {
115
90
 
116
- // Check if RETURN_COLLECTION is set and return a collection object if it is
117
- if (this.apiClient.RETURN_COLLECTION && false) {
118
- return this.addDependenciesForTaskWithHttpInfo(body, task_gid)
119
- } else {
120
- return this.addDependenciesForTaskWithHttpInfo(body, task_gid)
121
- .then(function(response_and_data) {
122
- return response_and_data.data;
123
- });
124
- }
91
+ return this.addDependenciesForTaskWithHttpInfo(body, task_gid)
92
+ .then(function(response_and_data) {
93
+ return response_and_data.data;
94
+ });
125
95
  }
126
96
 
127
97
 
@@ -161,36 +131,11 @@ export class TasksApi {
161
131
  let accepts = ['application/json; charset=UTF-8'];
162
132
  let returnType = 'Blob';
163
133
 
164
- // Check if RETURN_COLLECTION is set and return a collection object if it is
165
- if (this.apiClient.RETURN_COLLECTION && false) {
166
- return Collection.fromApiClient(
167
- this.apiClient.callApi(
168
- '/tasks/{task_gid}/addDependents', 'POST',
169
- pathParams, queryParams, headerParams, formParams, postBody,
170
- authNames, contentTypes, accepts, returnType
171
- ),
172
- this.apiClient,
173
- {
174
- 'path': '/tasks/{task_gid}/addDependents',
175
- 'httpMethod': 'POST',
176
- 'pathParams': pathParams,
177
- 'queryParams': queryParams,
178
- 'headerParams': headerParams,
179
- 'formParams': formParams,
180
- 'bodyParam': postBody,
181
- 'authNames': authNames,
182
- 'contentTypes': contentTypes,
183
- 'accepts': accepts,
184
- 'returnType': returnType
185
- }
186
- )
187
- } else {
188
- return this.apiClient.callApi(
189
- '/tasks/{task_gid}/addDependents', 'POST',
190
- pathParams, queryParams, headerParams, formParams, postBody,
191
- authNames, contentTypes, accepts, returnType
192
- );
193
- }
134
+ return this.apiClient.callApi(
135
+ '/tasks/{task_gid}/addDependents', 'POST',
136
+ pathParams, queryParams, headerParams, formParams, postBody,
137
+ authNames, contentTypes, accepts, returnType
138
+ );
194
139
  }
195
140
 
196
141
  /**
@@ -202,15 +147,10 @@ export class TasksApi {
202
147
  */
203
148
  addDependentsForTask(body, task_gid) {
204
149
 
205
- // Check if RETURN_COLLECTION is set and return a collection object if it is
206
- if (this.apiClient.RETURN_COLLECTION && false) {
207
- return this.addDependentsForTaskWithHttpInfo(body, task_gid)
208
- } else {
209
- return this.addDependentsForTaskWithHttpInfo(body, task_gid)
210
- .then(function(response_and_data) {
211
- return response_and_data.data;
212
- });
213
- }
150
+ return this.addDependentsForTaskWithHttpInfo(body, task_gid)
151
+ .then(function(response_and_data) {
152
+ return response_and_data.data;
153
+ });
214
154
  }
215
155
 
216
156
 
@@ -254,36 +194,11 @@ export class TasksApi {
254
194
  let accepts = ['application/json; charset=UTF-8'];
255
195
  let returnType = 'Blob';
256
196
 
257
- // Check if RETURN_COLLECTION is set and return a collection object if it is
258
- if (this.apiClient.RETURN_COLLECTION && false) {
259
- return Collection.fromApiClient(
260
- this.apiClient.callApi(
261
- '/tasks/{task_gid}/addFollowers', 'POST',
262
- pathParams, queryParams, headerParams, formParams, postBody,
263
- authNames, contentTypes, accepts, returnType
264
- ),
265
- this.apiClient,
266
- {
267
- 'path': '/tasks/{task_gid}/addFollowers',
268
- 'httpMethod': 'POST',
269
- 'pathParams': pathParams,
270
- 'queryParams': queryParams,
271
- 'headerParams': headerParams,
272
- 'formParams': formParams,
273
- 'bodyParam': postBody,
274
- 'authNames': authNames,
275
- 'contentTypes': contentTypes,
276
- 'accepts': accepts,
277
- 'returnType': returnType
278
- }
279
- )
280
- } else {
281
- return this.apiClient.callApi(
282
- '/tasks/{task_gid}/addFollowers', 'POST',
283
- pathParams, queryParams, headerParams, formParams, postBody,
284
- authNames, contentTypes, accepts, returnType
285
- );
286
- }
197
+ return this.apiClient.callApi(
198
+ '/tasks/{task_gid}/addFollowers', 'POST',
199
+ pathParams, queryParams, headerParams, formParams, postBody,
200
+ authNames, contentTypes, accepts, returnType
201
+ );
287
202
  }
288
203
 
289
204
  /**
@@ -297,15 +212,10 @@ export class TasksApi {
297
212
  */
298
213
  addFollowersForTask(body, task_gid, opts) {
299
214
 
300
- // Check if RETURN_COLLECTION is set and return a collection object if it is
301
- if (this.apiClient.RETURN_COLLECTION && false) {
302
- return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts)
303
- } else {
304
- return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts)
305
- .then(function(response_and_data) {
306
- return response_and_data.data;
307
- });
308
- }
215
+ return this.addFollowersForTaskWithHttpInfo(body, task_gid, opts)
216
+ .then(function(response_and_data) {
217
+ return response_and_data.data;
218
+ });
309
219
  }
310
220
 
311
221
 
@@ -345,36 +255,11 @@ export class TasksApi {
345
255
  let accepts = ['application/json; charset=UTF-8'];
346
256
  let returnType = 'Blob';
347
257
 
348
- // Check if RETURN_COLLECTION is set and return a collection object if it is
349
- if (this.apiClient.RETURN_COLLECTION && false) {
350
- return Collection.fromApiClient(
351
- this.apiClient.callApi(
352
- '/tasks/{task_gid}/addProject', 'POST',
353
- pathParams, queryParams, headerParams, formParams, postBody,
354
- authNames, contentTypes, accepts, returnType
355
- ),
356
- this.apiClient,
357
- {
358
- 'path': '/tasks/{task_gid}/addProject',
359
- 'httpMethod': 'POST',
360
- 'pathParams': pathParams,
361
- 'queryParams': queryParams,
362
- 'headerParams': headerParams,
363
- 'formParams': formParams,
364
- 'bodyParam': postBody,
365
- 'authNames': authNames,
366
- 'contentTypes': contentTypes,
367
- 'accepts': accepts,
368
- 'returnType': returnType
369
- }
370
- )
371
- } else {
372
- return this.apiClient.callApi(
373
- '/tasks/{task_gid}/addProject', 'POST',
374
- pathParams, queryParams, headerParams, formParams, postBody,
375
- authNames, contentTypes, accepts, returnType
376
- );
377
- }
258
+ return this.apiClient.callApi(
259
+ '/tasks/{task_gid}/addProject', 'POST',
260
+ pathParams, queryParams, headerParams, formParams, postBody,
261
+ authNames, contentTypes, accepts, returnType
262
+ );
378
263
  }
379
264
 
380
265
  /**
@@ -386,15 +271,10 @@ export class TasksApi {
386
271
  */
387
272
  addProjectForTask(body, task_gid) {
388
273
 
389
- // Check if RETURN_COLLECTION is set and return a collection object if it is
390
- if (this.apiClient.RETURN_COLLECTION && false) {
391
- return this.addProjectForTaskWithHttpInfo(body, task_gid)
392
- } else {
393
- return this.addProjectForTaskWithHttpInfo(body, task_gid)
394
- .then(function(response_and_data) {
395
- return response_and_data.data;
396
- });
397
- }
274
+ return this.addProjectForTaskWithHttpInfo(body, task_gid)
275
+ .then(function(response_and_data) {
276
+ return response_and_data.data;
277
+ });
398
278
  }
399
279
 
400
280
 
@@ -434,36 +314,11 @@ export class TasksApi {
434
314
  let accepts = ['application/json; charset=UTF-8'];
435
315
  let returnType = 'Blob';
436
316
 
437
- // Check if RETURN_COLLECTION is set and return a collection object if it is
438
- if (this.apiClient.RETURN_COLLECTION && false) {
439
- return Collection.fromApiClient(
440
- this.apiClient.callApi(
441
- '/tasks/{task_gid}/addTag', 'POST',
442
- pathParams, queryParams, headerParams, formParams, postBody,
443
- authNames, contentTypes, accepts, returnType
444
- ),
445
- this.apiClient,
446
- {
447
- 'path': '/tasks/{task_gid}/addTag',
448
- 'httpMethod': 'POST',
449
- 'pathParams': pathParams,
450
- 'queryParams': queryParams,
451
- 'headerParams': headerParams,
452
- 'formParams': formParams,
453
- 'bodyParam': postBody,
454
- 'authNames': authNames,
455
- 'contentTypes': contentTypes,
456
- 'accepts': accepts,
457
- 'returnType': returnType
458
- }
459
- )
460
- } else {
461
- return this.apiClient.callApi(
462
- '/tasks/{task_gid}/addTag', 'POST',
463
- pathParams, queryParams, headerParams, formParams, postBody,
464
- authNames, contentTypes, accepts, returnType
465
- );
466
- }
317
+ return this.apiClient.callApi(
318
+ '/tasks/{task_gid}/addTag', 'POST',
319
+ pathParams, queryParams, headerParams, formParams, postBody,
320
+ authNames, contentTypes, accepts, returnType
321
+ );
467
322
  }
468
323
 
469
324
  /**
@@ -475,15 +330,10 @@ export class TasksApi {
475
330
  */
476
331
  addTagForTask(body, task_gid) {
477
332
 
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.addTagForTaskWithHttpInfo(body, task_gid)
481
- } else {
482
- return this.addTagForTaskWithHttpInfo(body, task_gid)
483
- .then(function(response_and_data) {
484
- return response_and_data.data;
485
- });
486
- }
333
+ return this.addTagForTaskWithHttpInfo(body, task_gid)
334
+ .then(function(response_and_data) {
335
+ return response_and_data.data;
336
+ });
487
337
  }
488
338
 
489
339
 
@@ -527,36 +377,11 @@ export class TasksApi {
527
377
  let accepts = ['application/json; charset=UTF-8'];
528
378
  let returnType = 'Blob';
529
379
 
530
- // Check if RETURN_COLLECTION is set and return a collection object if it is
531
- if (this.apiClient.RETURN_COLLECTION && false) {
532
- return Collection.fromApiClient(
533
- this.apiClient.callApi(
534
- '/tasks/{task_gid}/subtasks', 'POST',
535
- pathParams, queryParams, headerParams, formParams, postBody,
536
- authNames, contentTypes, accepts, returnType
537
- ),
538
- this.apiClient,
539
- {
540
- 'path': '/tasks/{task_gid}/subtasks',
541
- 'httpMethod': 'POST',
542
- 'pathParams': pathParams,
543
- 'queryParams': queryParams,
544
- 'headerParams': headerParams,
545
- 'formParams': formParams,
546
- 'bodyParam': postBody,
547
- 'authNames': authNames,
548
- 'contentTypes': contentTypes,
549
- 'accepts': accepts,
550
- 'returnType': returnType
551
- }
552
- )
553
- } else {
554
- return this.apiClient.callApi(
555
- '/tasks/{task_gid}/subtasks', 'POST',
556
- pathParams, queryParams, headerParams, formParams, postBody,
557
- authNames, contentTypes, accepts, returnType
558
- );
559
- }
380
+ return this.apiClient.callApi(
381
+ '/tasks/{task_gid}/subtasks', 'POST',
382
+ pathParams, queryParams, headerParams, formParams, postBody,
383
+ authNames, contentTypes, accepts, returnType
384
+ );
560
385
  }
561
386
 
562
387
  /**
@@ -570,15 +395,10 @@ export class TasksApi {
570
395
  */
571
396
  createSubtaskForTask(body, task_gid, opts) {
572
397
 
573
- // Check if RETURN_COLLECTION is set and return a collection object if it is
574
- if (this.apiClient.RETURN_COLLECTION && false) {
575
- return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts)
576
- } else {
577
- return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts)
578
- .then(function(response_and_data) {
579
- return response_and_data.data;
580
- });
581
- }
398
+ return this.createSubtaskForTaskWithHttpInfo(body, task_gid, opts)
399
+ .then(function(response_and_data) {
400
+ return response_and_data.data;
401
+ });
582
402
  }
583
403
 
584
404
 
@@ -617,36 +437,11 @@ export class TasksApi {
617
437
  let accepts = ['application/json; charset=UTF-8'];
618
438
  let returnType = 'Blob';
619
439
 
620
- // Check if RETURN_COLLECTION is set and return a collection object if it is
621
- if (this.apiClient.RETURN_COLLECTION && false) {
622
- return Collection.fromApiClient(
623
- this.apiClient.callApi(
624
- '/tasks', 'POST',
625
- pathParams, queryParams, headerParams, formParams, postBody,
626
- authNames, contentTypes, accepts, returnType
627
- ),
628
- this.apiClient,
629
- {
630
- 'path': '/tasks',
631
- 'httpMethod': 'POST',
632
- 'pathParams': pathParams,
633
- 'queryParams': queryParams,
634
- 'headerParams': headerParams,
635
- 'formParams': formParams,
636
- 'bodyParam': postBody,
637
- 'authNames': authNames,
638
- 'contentTypes': contentTypes,
639
- 'accepts': accepts,
640
- 'returnType': returnType
641
- }
642
- )
643
- } else {
644
- return this.apiClient.callApi(
645
- '/tasks', 'POST',
646
- pathParams, queryParams, headerParams, formParams, postBody,
647
- authNames, contentTypes, accepts, returnType
648
- );
649
- }
440
+ return this.apiClient.callApi(
441
+ '/tasks', 'POST',
442
+ pathParams, queryParams, headerParams, formParams, postBody,
443
+ authNames, contentTypes, accepts, returnType
444
+ );
650
445
  }
651
446
 
652
447
  /**
@@ -659,15 +454,10 @@ export class TasksApi {
659
454
  */
660
455
  createTask(body, opts) {
661
456
 
662
- // Check if RETURN_COLLECTION is set and return a collection object if it is
663
- if (this.apiClient.RETURN_COLLECTION && false) {
664
- return this.createTaskWithHttpInfo(body, opts)
665
- } else {
666
- return this.createTaskWithHttpInfo(body, opts)
667
- .then(function(response_and_data) {
668
- return response_and_data.data;
669
- });
670
- }
457
+ return this.createTaskWithHttpInfo(body, opts)
458
+ .then(function(response_and_data) {
459
+ return response_and_data.data;
460
+ });
671
461
  }
672
462
 
673
463
 
@@ -702,36 +492,11 @@ export class TasksApi {
702
492
  let accepts = ['application/json; charset=UTF-8'];
703
493
  let returnType = 'Blob';
704
494
 
705
- // Check if RETURN_COLLECTION is set and return a collection object if it is
706
- if (this.apiClient.RETURN_COLLECTION && false) {
707
- return Collection.fromApiClient(
708
- this.apiClient.callApi(
709
- '/tasks/{task_gid}', 'DELETE',
710
- pathParams, queryParams, headerParams, formParams, postBody,
711
- authNames, contentTypes, accepts, returnType
712
- ),
713
- this.apiClient,
714
- {
715
- 'path': '/tasks/{task_gid}',
716
- 'httpMethod': 'DELETE',
717
- 'pathParams': pathParams,
718
- 'queryParams': queryParams,
719
- 'headerParams': headerParams,
720
- 'formParams': formParams,
721
- 'bodyParam': postBody,
722
- 'authNames': authNames,
723
- 'contentTypes': contentTypes,
724
- 'accepts': accepts,
725
- 'returnType': returnType
726
- }
727
- )
728
- } else {
729
- return this.apiClient.callApi(
730
- '/tasks/{task_gid}', 'DELETE',
731
- pathParams, queryParams, headerParams, formParams, postBody,
732
- authNames, contentTypes, accepts, returnType
733
- );
734
- }
495
+ return this.apiClient.callApi(
496
+ '/tasks/{task_gid}', 'DELETE',
497
+ pathParams, queryParams, headerParams, formParams, postBody,
498
+ authNames, contentTypes, accepts, returnType
499
+ );
735
500
  }
736
501
 
737
502
  /**
@@ -742,15 +507,10 @@ export class TasksApi {
742
507
  */
743
508
  deleteTask(task_gid) {
744
509
 
745
- // Check if RETURN_COLLECTION is set and return a collection object if it is
746
- if (this.apiClient.RETURN_COLLECTION && false) {
747
- return this.deleteTaskWithHttpInfo(task_gid)
748
- } else {
749
- return this.deleteTaskWithHttpInfo(task_gid)
750
- .then(function(response_and_data) {
751
- return response_and_data.data;
752
- });
753
- }
510
+ return this.deleteTaskWithHttpInfo(task_gid)
511
+ .then(function(response_and_data) {
512
+ return response_and_data.data;
513
+ });
754
514
  }
755
515
 
756
516
 
@@ -794,36 +554,11 @@ export class TasksApi {
794
554
  let accepts = ['application/json; charset=UTF-8'];
795
555
  let returnType = 'Blob';
796
556
 
797
- // Check if RETURN_COLLECTION is set and return a collection object if it is
798
- if (this.apiClient.RETURN_COLLECTION && false) {
799
- return Collection.fromApiClient(
800
- this.apiClient.callApi(
801
- '/tasks/{task_gid}/duplicate', 'POST',
802
- pathParams, queryParams, headerParams, formParams, postBody,
803
- authNames, contentTypes, accepts, returnType
804
- ),
805
- this.apiClient,
806
- {
807
- 'path': '/tasks/{task_gid}/duplicate',
808
- 'httpMethod': 'POST',
809
- 'pathParams': pathParams,
810
- 'queryParams': queryParams,
811
- 'headerParams': headerParams,
812
- 'formParams': formParams,
813
- 'bodyParam': postBody,
814
- 'authNames': authNames,
815
- 'contentTypes': contentTypes,
816
- 'accepts': accepts,
817
- 'returnType': returnType
818
- }
819
- )
820
- } else {
821
- return this.apiClient.callApi(
822
- '/tasks/{task_gid}/duplicate', 'POST',
823
- pathParams, queryParams, headerParams, formParams, postBody,
824
- authNames, contentTypes, accepts, returnType
825
- );
826
- }
557
+ return this.apiClient.callApi(
558
+ '/tasks/{task_gid}/duplicate', 'POST',
559
+ pathParams, queryParams, headerParams, formParams, postBody,
560
+ authNames, contentTypes, accepts, returnType
561
+ );
827
562
  }
828
563
 
829
564
  /**
@@ -837,15 +572,10 @@ export class TasksApi {
837
572
  */
838
573
  duplicateTask(body, task_gid, opts) {
839
574
 
840
- // Check if RETURN_COLLECTION is set and return a collection object if it is
841
- if (this.apiClient.RETURN_COLLECTION && false) {
842
- return this.duplicateTaskWithHttpInfo(body, task_gid, opts)
843
- } else {
844
- return this.duplicateTaskWithHttpInfo(body, task_gid, opts)
845
- .then(function(response_and_data) {
846
- return response_and_data.data;
847
- });
848
- }
575
+ return this.duplicateTaskWithHttpInfo(body, task_gid, opts)
576
+ .then(function(response_and_data) {
577
+ return response_and_data.data;
578
+ });
849
579
  }
850
580
 
851
581
 
@@ -885,9 +615,8 @@ export class TasksApi {
885
615
  let contentTypes = [];
886
616
  let accepts = ['application/json; charset=UTF-8'];
887
617
  let returnType = 'Blob';
888
-
889
618
  // Check if RETURN_COLLECTION is set and return a collection object if it is
890
- if (this.apiClient.RETURN_COLLECTION && true) {
619
+ if (this.apiClient.RETURN_COLLECTION) {
891
620
  return Collection.fromApiClient(
892
621
  this.apiClient.callApi(
893
622
  '/tasks/{task_gid}/dependencies', 'GET',
@@ -909,13 +638,13 @@ export class TasksApi {
909
638
  'returnType': returnType
910
639
  }
911
640
  )
912
- } else {
913
- return this.apiClient.callApi(
914
- '/tasks/{task_gid}/dependencies', 'GET',
915
- pathParams, queryParams, headerParams, formParams, postBody,
916
- authNames, contentTypes, accepts, returnType
917
- );
918
641
  }
642
+
643
+ return this.apiClient.callApi(
644
+ '/tasks/{task_gid}/dependencies', 'GET',
645
+ pathParams, queryParams, headerParams, formParams, postBody,
646
+ authNames, contentTypes, accepts, returnType
647
+ );
919
648
  }
920
649
 
921
650
  /**
@@ -929,16 +658,15 @@ export class TasksApi {
929
658
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
930
659
  */
931
660
  getDependenciesForTask(task_gid, opts) {
932
-
933
661
  // Check if RETURN_COLLECTION is set and return a collection object if it is
934
- if (this.apiClient.RETURN_COLLECTION && true) {
662
+ if (this.apiClient.RETURN_COLLECTION) {
935
663
  return this.getDependenciesForTaskWithHttpInfo(task_gid, opts)
936
- } else {
937
- return this.getDependenciesForTaskWithHttpInfo(task_gid, opts)
938
- .then(function(response_and_data) {
939
- return response_and_data.data;
940
- });
941
664
  }
665
+
666
+ return this.getDependenciesForTaskWithHttpInfo(task_gid, opts)
667
+ .then(function(response_and_data) {
668
+ return response_and_data.data;
669
+ });
942
670
  }
943
671
 
944
672
 
@@ -978,9 +706,8 @@ export class TasksApi {
978
706
  let contentTypes = [];
979
707
  let accepts = ['application/json; charset=UTF-8'];
980
708
  let returnType = 'Blob';
981
-
982
709
  // Check if RETURN_COLLECTION is set and return a collection object if it is
983
- if (this.apiClient.RETURN_COLLECTION && true) {
710
+ if (this.apiClient.RETURN_COLLECTION) {
984
711
  return Collection.fromApiClient(
985
712
  this.apiClient.callApi(
986
713
  '/tasks/{task_gid}/dependents', 'GET',
@@ -1002,13 +729,13 @@ export class TasksApi {
1002
729
  'returnType': returnType
1003
730
  }
1004
731
  )
1005
- } else {
1006
- return this.apiClient.callApi(
1007
- '/tasks/{task_gid}/dependents', 'GET',
1008
- pathParams, queryParams, headerParams, formParams, postBody,
1009
- authNames, contentTypes, accepts, returnType
1010
- );
1011
732
  }
733
+
734
+ return this.apiClient.callApi(
735
+ '/tasks/{task_gid}/dependents', 'GET',
736
+ pathParams, queryParams, headerParams, formParams, postBody,
737
+ authNames, contentTypes, accepts, returnType
738
+ );
1012
739
  }
1013
740
 
1014
741
  /**
@@ -1022,16 +749,15 @@ export class TasksApi {
1022
749
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1023
750
  */
1024
751
  getDependentsForTask(task_gid, opts) {
1025
-
1026
752
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1027
- if (this.apiClient.RETURN_COLLECTION && true) {
753
+ if (this.apiClient.RETURN_COLLECTION) {
1028
754
  return this.getDependentsForTaskWithHttpInfo(task_gid, opts)
1029
- } else {
1030
- return this.getDependentsForTaskWithHttpInfo(task_gid, opts)
1031
- .then(function(response_and_data) {
1032
- return response_and_data.data;
1033
- });
1034
755
  }
756
+
757
+ return this.getDependentsForTaskWithHttpInfo(task_gid, opts)
758
+ .then(function(response_and_data) {
759
+ return response_and_data.data;
760
+ });
1035
761
  }
1036
762
 
1037
763
 
@@ -1071,9 +797,8 @@ export class TasksApi {
1071
797
  let contentTypes = [];
1072
798
  let accepts = ['application/json; charset=UTF-8'];
1073
799
  let returnType = 'Blob';
1074
-
1075
800
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1076
- if (this.apiClient.RETURN_COLLECTION && true) {
801
+ if (this.apiClient.RETURN_COLLECTION) {
1077
802
  return Collection.fromApiClient(
1078
803
  this.apiClient.callApi(
1079
804
  '/tasks/{task_gid}/subtasks', 'GET',
@@ -1095,13 +820,13 @@ export class TasksApi {
1095
820
  'returnType': returnType
1096
821
  }
1097
822
  )
1098
- } else {
1099
- return this.apiClient.callApi(
1100
- '/tasks/{task_gid}/subtasks', 'GET',
1101
- pathParams, queryParams, headerParams, formParams, postBody,
1102
- authNames, contentTypes, accepts, returnType
1103
- );
1104
823
  }
824
+
825
+ return this.apiClient.callApi(
826
+ '/tasks/{task_gid}/subtasks', 'GET',
827
+ pathParams, queryParams, headerParams, formParams, postBody,
828
+ authNames, contentTypes, accepts, returnType
829
+ );
1105
830
  }
1106
831
 
1107
832
  /**
@@ -1115,16 +840,15 @@ export class TasksApi {
1115
840
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1116
841
  */
1117
842
  getSubtasksForTask(task_gid, opts) {
1118
-
1119
843
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1120
- if (this.apiClient.RETURN_COLLECTION && true) {
1121
- return this.getSubtasksForTaskWithHttpInfo(task_gid, opts)
1122
- } else {
844
+ if (this.apiClient.RETURN_COLLECTION) {
1123
845
  return this.getSubtasksForTaskWithHttpInfo(task_gid, opts)
1124
- .then(function(response_and_data) {
1125
- return response_and_data.data;
1126
- });
1127
846
  }
847
+
848
+ return this.getSubtasksForTaskWithHttpInfo(task_gid, opts)
849
+ .then(function(response_and_data) {
850
+ return response_and_data.data;
851
+ });
1128
852
  }
1129
853
 
1130
854
 
@@ -1163,36 +887,11 @@ export class TasksApi {
1163
887
  let accepts = ['application/json; charset=UTF-8'];
1164
888
  let returnType = 'Blob';
1165
889
 
1166
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1167
- if (this.apiClient.RETURN_COLLECTION && false) {
1168
- return Collection.fromApiClient(
1169
- this.apiClient.callApi(
1170
- '/tasks/{task_gid}', 'GET',
1171
- pathParams, queryParams, headerParams, formParams, postBody,
1172
- authNames, contentTypes, accepts, returnType
1173
- ),
1174
- this.apiClient,
1175
- {
1176
- 'path': '/tasks/{task_gid}',
1177
- 'httpMethod': 'GET',
1178
- 'pathParams': pathParams,
1179
- 'queryParams': queryParams,
1180
- 'headerParams': headerParams,
1181
- 'formParams': formParams,
1182
- 'bodyParam': postBody,
1183
- 'authNames': authNames,
1184
- 'contentTypes': contentTypes,
1185
- 'accepts': accepts,
1186
- 'returnType': returnType
1187
- }
1188
- )
1189
- } else {
1190
- return this.apiClient.callApi(
1191
- '/tasks/{task_gid}', 'GET',
1192
- pathParams, queryParams, headerParams, formParams, postBody,
1193
- authNames, contentTypes, accepts, returnType
1194
- );
1195
- }
890
+ return this.apiClient.callApi(
891
+ '/tasks/{task_gid}', 'GET',
892
+ pathParams, queryParams, headerParams, formParams, postBody,
893
+ authNames, contentTypes, accepts, returnType
894
+ );
1196
895
  }
1197
896
 
1198
897
  /**
@@ -1205,15 +904,69 @@ export class TasksApi {
1205
904
  */
1206
905
  getTask(task_gid, opts) {
1207
906
 
1208
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1209
- if (this.apiClient.RETURN_COLLECTION && false) {
1210
- return this.getTaskWithHttpInfo(task_gid, opts)
1211
- } else {
1212
- return this.getTaskWithHttpInfo(task_gid, opts)
1213
- .then(function(response_and_data) {
1214
- return response_and_data.data;
1215
- });
907
+ return this.getTaskWithHttpInfo(task_gid, opts)
908
+ .then(function(response_and_data) {
909
+ return response_and_data.data;
910
+ });
911
+ }
912
+
913
+
914
+ /**
915
+ * Get a task for a given custom ID
916
+ * Returns a task given a custom ID shortcode.
917
+ * @param {String} workspace_gid Globally unique identifier for the workspace or organization.
918
+ * @param {String} custom_id Generated custom ID for a task.
919
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
920
+ */
921
+ getTaskForCustomIDWithHttpInfo(workspace_gid, custom_id) {
922
+
923
+ let postBody = null;
924
+ // verify the required parameter 'workspace_gid' is set
925
+ if (workspace_gid === undefined || workspace_gid === null) {
926
+ throw new Error("Missing the required parameter 'workspace_gid' when calling getTaskForCustomID");
1216
927
  }
928
+ // verify the required parameter 'custom_id' is set
929
+ if (custom_id === undefined || custom_id === null) {
930
+ throw new Error("Missing the required parameter 'custom_id' when calling getTaskForCustomID");
931
+ }
932
+
933
+ let pathParams = {
934
+ 'workspace_gid': workspace_gid,'custom_id': custom_id
935
+ };
936
+ let queryParams = {};
937
+
938
+ let headerParams = {
939
+
940
+ };
941
+ let formParams = {
942
+
943
+ };
944
+
945
+ let authNames = ['personalAccessToken'];
946
+ let contentTypes = [];
947
+ let accepts = ['application/json; charset=UTF-8'];
948
+ let returnType = 'Blob';
949
+
950
+ return this.apiClient.callApi(
951
+ '/workspaces/{workspace_gid}/tasks/custom_id/{custom_id}', 'GET',
952
+ pathParams, queryParams, headerParams, formParams, postBody,
953
+ authNames, contentTypes, accepts, returnType
954
+ );
955
+ }
956
+
957
+ /**
958
+ * Get a task for a given custom ID
959
+ * Returns a task given a custom ID shortcode.
960
+ * @param {<&vendorExtensions.x-jsdoc-type>} workspace_gid Globally unique identifier for the workspace or organization.
961
+ * @param {<&vendorExtensions.x-jsdoc-type>} custom_id Generated custom ID for a task.
962
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseData}
963
+ */
964
+ getTaskForCustomID(workspace_gid, custom_id) {
965
+
966
+ return this.getTaskForCustomIDWithHttpInfo(workspace_gid, custom_id)
967
+ .then(function(response_and_data) {
968
+ return response_and_data.data;
969
+ });
1217
970
  }
1218
971
 
1219
972
 
@@ -1254,9 +1007,8 @@ export class TasksApi {
1254
1007
  let contentTypes = [];
1255
1008
  let accepts = ['application/json; charset=UTF-8'];
1256
1009
  let returnType = 'Blob';
1257
-
1258
1010
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1259
- if (this.apiClient.RETURN_COLLECTION && true) {
1011
+ if (this.apiClient.RETURN_COLLECTION) {
1260
1012
  return Collection.fromApiClient(
1261
1013
  this.apiClient.callApi(
1262
1014
  '/tasks', 'GET',
@@ -1278,13 +1030,13 @@ export class TasksApi {
1278
1030
  'returnType': returnType
1279
1031
  }
1280
1032
  )
1281
- } else {
1282
- return this.apiClient.callApi(
1283
- '/tasks', 'GET',
1284
- pathParams, queryParams, headerParams, formParams, postBody,
1285
- authNames, contentTypes, accepts, returnType
1286
- );
1287
1033
  }
1034
+
1035
+ return this.apiClient.callApi(
1036
+ '/tasks', 'GET',
1037
+ pathParams, queryParams, headerParams, formParams, postBody,
1038
+ authNames, contentTypes, accepts, returnType
1039
+ );
1288
1040
  }
1289
1041
 
1290
1042
  /**
@@ -1303,16 +1055,15 @@ export class TasksApi {
1303
1055
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1304
1056
  */
1305
1057
  getTasks(opts) {
1306
-
1307
1058
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1308
- if (this.apiClient.RETURN_COLLECTION && true) {
1059
+ if (this.apiClient.RETURN_COLLECTION) {
1309
1060
  return this.getTasksWithHttpInfo(opts)
1310
- } else {
1311
- return this.getTasksWithHttpInfo(opts)
1312
- .then(function(response_and_data) {
1313
- return response_and_data.data;
1314
- });
1315
1061
  }
1062
+
1063
+ return this.getTasksWithHttpInfo(opts)
1064
+ .then(function(response_and_data) {
1065
+ return response_and_data.data;
1066
+ });
1316
1067
  }
1317
1068
 
1318
1069
 
@@ -1353,9 +1104,8 @@ export class TasksApi {
1353
1104
  let contentTypes = [];
1354
1105
  let accepts = ['application/json; charset=UTF-8'];
1355
1106
  let returnType = 'Blob';
1356
-
1357
1107
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1358
- if (this.apiClient.RETURN_COLLECTION && true) {
1108
+ if (this.apiClient.RETURN_COLLECTION) {
1359
1109
  return Collection.fromApiClient(
1360
1110
  this.apiClient.callApi(
1361
1111
  '/projects/{project_gid}/tasks', 'GET',
@@ -1377,13 +1127,13 @@ export class TasksApi {
1377
1127
  'returnType': returnType
1378
1128
  }
1379
1129
  )
1380
- } else {
1381
- return this.apiClient.callApi(
1382
- '/projects/{project_gid}/tasks', 'GET',
1383
- pathParams, queryParams, headerParams, formParams, postBody,
1384
- authNames, contentTypes, accepts, returnType
1385
- );
1386
1130
  }
1131
+
1132
+ return this.apiClient.callApi(
1133
+ '/projects/{project_gid}/tasks', 'GET',
1134
+ pathParams, queryParams, headerParams, formParams, postBody,
1135
+ authNames, contentTypes, accepts, returnType
1136
+ );
1387
1137
  }
1388
1138
 
1389
1139
  /**
@@ -1398,16 +1148,15 @@ export class TasksApi {
1398
1148
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1399
1149
  */
1400
1150
  getTasksForProject(project_gid, opts) {
1401
-
1402
1151
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1403
- if (this.apiClient.RETURN_COLLECTION && true) {
1152
+ if (this.apiClient.RETURN_COLLECTION) {
1404
1153
  return this.getTasksForProjectWithHttpInfo(project_gid, opts)
1405
- } else {
1406
- return this.getTasksForProjectWithHttpInfo(project_gid, opts)
1407
- .then(function(response_and_data) {
1408
- return response_and_data.data;
1409
- });
1410
1154
  }
1155
+
1156
+ return this.getTasksForProjectWithHttpInfo(project_gid, opts)
1157
+ .then(function(response_and_data) {
1158
+ return response_and_data.data;
1159
+ });
1411
1160
  }
1412
1161
 
1413
1162
 
@@ -1448,9 +1197,8 @@ export class TasksApi {
1448
1197
  let contentTypes = [];
1449
1198
  let accepts = ['application/json; charset=UTF-8'];
1450
1199
  let returnType = 'Blob';
1451
-
1452
1200
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1453
- if (this.apiClient.RETURN_COLLECTION && true) {
1201
+ if (this.apiClient.RETURN_COLLECTION) {
1454
1202
  return Collection.fromApiClient(
1455
1203
  this.apiClient.callApi(
1456
1204
  '/sections/{section_gid}/tasks', 'GET',
@@ -1472,13 +1220,13 @@ export class TasksApi {
1472
1220
  'returnType': returnType
1473
1221
  }
1474
1222
  )
1475
- } else {
1476
- return this.apiClient.callApi(
1477
- '/sections/{section_gid}/tasks', 'GET',
1478
- pathParams, queryParams, headerParams, formParams, postBody,
1479
- authNames, contentTypes, accepts, returnType
1480
- );
1481
1223
  }
1224
+
1225
+ return this.apiClient.callApi(
1226
+ '/sections/{section_gid}/tasks', 'GET',
1227
+ pathParams, queryParams, headerParams, formParams, postBody,
1228
+ authNames, contentTypes, accepts, returnType
1229
+ );
1482
1230
  }
1483
1231
 
1484
1232
  /**
@@ -1493,16 +1241,15 @@ export class TasksApi {
1493
1241
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1494
1242
  */
1495
1243
  getTasksForSection(section_gid, opts) {
1496
-
1497
1244
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1498
- if (this.apiClient.RETURN_COLLECTION && true) {
1245
+ if (this.apiClient.RETURN_COLLECTION) {
1499
1246
  return this.getTasksForSectionWithHttpInfo(section_gid, opts)
1500
- } else {
1501
- return this.getTasksForSectionWithHttpInfo(section_gid, opts)
1502
- .then(function(response_and_data) {
1503
- return response_and_data.data;
1504
- });
1505
1247
  }
1248
+
1249
+ return this.getTasksForSectionWithHttpInfo(section_gid, opts)
1250
+ .then(function(response_and_data) {
1251
+ return response_and_data.data;
1252
+ });
1506
1253
  }
1507
1254
 
1508
1255
 
@@ -1542,9 +1289,8 @@ export class TasksApi {
1542
1289
  let contentTypes = [];
1543
1290
  let accepts = ['application/json; charset=UTF-8'];
1544
1291
  let returnType = 'Blob';
1545
-
1546
1292
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1547
- if (this.apiClient.RETURN_COLLECTION && true) {
1293
+ if (this.apiClient.RETURN_COLLECTION) {
1548
1294
  return Collection.fromApiClient(
1549
1295
  this.apiClient.callApi(
1550
1296
  '/tags/{tag_gid}/tasks', 'GET',
@@ -1566,13 +1312,13 @@ export class TasksApi {
1566
1312
  'returnType': returnType
1567
1313
  }
1568
1314
  )
1569
- } else {
1570
- return this.apiClient.callApi(
1571
- '/tags/{tag_gid}/tasks', 'GET',
1572
- pathParams, queryParams, headerParams, formParams, postBody,
1573
- authNames, contentTypes, accepts, returnType
1574
- );
1575
1315
  }
1316
+
1317
+ return this.apiClient.callApi(
1318
+ '/tags/{tag_gid}/tasks', 'GET',
1319
+ pathParams, queryParams, headerParams, formParams, postBody,
1320
+ authNames, contentTypes, accepts, returnType
1321
+ );
1576
1322
  }
1577
1323
 
1578
1324
  /**
@@ -1586,16 +1332,15 @@ export class TasksApi {
1586
1332
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1587
1333
  */
1588
1334
  getTasksForTag(tag_gid, opts) {
1589
-
1590
1335
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1591
- if (this.apiClient.RETURN_COLLECTION && true) {
1592
- return this.getTasksForTagWithHttpInfo(tag_gid, opts)
1593
- } else {
1336
+ if (this.apiClient.RETURN_COLLECTION) {
1594
1337
  return this.getTasksForTagWithHttpInfo(tag_gid, opts)
1595
- .then(function(response_and_data) {
1596
- return response_and_data.data;
1597
- });
1598
1338
  }
1339
+
1340
+ return this.getTasksForTagWithHttpInfo(tag_gid, opts)
1341
+ .then(function(response_and_data) {
1342
+ return response_and_data.data;
1343
+ });
1599
1344
  }
1600
1345
 
1601
1346
 
@@ -1636,9 +1381,8 @@ export class TasksApi {
1636
1381
  let contentTypes = [];
1637
1382
  let accepts = ['application/json; charset=UTF-8'];
1638
1383
  let returnType = 'Blob';
1639
-
1640
1384
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1641
- if (this.apiClient.RETURN_COLLECTION && true) {
1385
+ if (this.apiClient.RETURN_COLLECTION) {
1642
1386
  return Collection.fromApiClient(
1643
1387
  this.apiClient.callApi(
1644
1388
  '/user_task_lists/{user_task_list_gid}/tasks', 'GET',
@@ -1660,13 +1404,13 @@ export class TasksApi {
1660
1404
  'returnType': returnType
1661
1405
  }
1662
1406
  )
1663
- } else {
1664
- return this.apiClient.callApi(
1665
- '/user_task_lists/{user_task_list_gid}/tasks', 'GET',
1666
- pathParams, queryParams, headerParams, formParams, postBody,
1667
- authNames, contentTypes, accepts, returnType
1668
- );
1669
1407
  }
1408
+
1409
+ return this.apiClient.callApi(
1410
+ '/user_task_lists/{user_task_list_gid}/tasks', 'GET',
1411
+ pathParams, queryParams, headerParams, formParams, postBody,
1412
+ authNames, contentTypes, accepts, returnType
1413
+ );
1670
1414
  }
1671
1415
 
1672
1416
  /**
@@ -1681,16 +1425,15 @@ export class TasksApi {
1681
1425
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
1682
1426
  */
1683
1427
  getTasksForUserTaskList(user_task_list_gid, opts) {
1684
-
1685
1428
  // Check if RETURN_COLLECTION is set and return a collection object if it is
1686
- if (this.apiClient.RETURN_COLLECTION && true) {
1429
+ if (this.apiClient.RETURN_COLLECTION) {
1687
1430
  return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts)
1688
- } else {
1689
- return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts)
1690
- .then(function(response_and_data) {
1691
- return response_and_data.data;
1692
- });
1693
1431
  }
1432
+
1433
+ return this.getTasksForUserTaskListWithHttpInfo(user_task_list_gid, opts)
1434
+ .then(function(response_and_data) {
1435
+ return response_and_data.data;
1436
+ });
1694
1437
  }
1695
1438
 
1696
1439
 
@@ -1730,36 +1473,11 @@ export class TasksApi {
1730
1473
  let accepts = ['application/json; charset=UTF-8'];
1731
1474
  let returnType = 'Blob';
1732
1475
 
1733
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1734
- if (this.apiClient.RETURN_COLLECTION && false) {
1735
- return Collection.fromApiClient(
1736
- this.apiClient.callApi(
1737
- '/tasks/{task_gid}/removeDependencies', 'POST',
1738
- pathParams, queryParams, headerParams, formParams, postBody,
1739
- authNames, contentTypes, accepts, returnType
1740
- ),
1741
- this.apiClient,
1742
- {
1743
- 'path': '/tasks/{task_gid}/removeDependencies',
1744
- 'httpMethod': 'POST',
1745
- 'pathParams': pathParams,
1746
- 'queryParams': queryParams,
1747
- 'headerParams': headerParams,
1748
- 'formParams': formParams,
1749
- 'bodyParam': postBody,
1750
- 'authNames': authNames,
1751
- 'contentTypes': contentTypes,
1752
- 'accepts': accepts,
1753
- 'returnType': returnType
1754
- }
1755
- )
1756
- } else {
1757
- return this.apiClient.callApi(
1758
- '/tasks/{task_gid}/removeDependencies', 'POST',
1759
- pathParams, queryParams, headerParams, formParams, postBody,
1760
- authNames, contentTypes, accepts, returnType
1761
- );
1762
- }
1476
+ return this.apiClient.callApi(
1477
+ '/tasks/{task_gid}/removeDependencies', 'POST',
1478
+ pathParams, queryParams, headerParams, formParams, postBody,
1479
+ authNames, contentTypes, accepts, returnType
1480
+ );
1763
1481
  }
1764
1482
 
1765
1483
  /**
@@ -1771,15 +1489,10 @@ export class TasksApi {
1771
1489
  */
1772
1490
  removeDependenciesForTask(body, task_gid) {
1773
1491
 
1774
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1775
- if (this.apiClient.RETURN_COLLECTION && false) {
1776
- return this.removeDependenciesForTaskWithHttpInfo(body, task_gid)
1777
- } else {
1778
- return this.removeDependenciesForTaskWithHttpInfo(body, task_gid)
1779
- .then(function(response_and_data) {
1780
- return response_and_data.data;
1781
- });
1782
- }
1492
+ return this.removeDependenciesForTaskWithHttpInfo(body, task_gid)
1493
+ .then(function(response_and_data) {
1494
+ return response_and_data.data;
1495
+ });
1783
1496
  }
1784
1497
 
1785
1498
 
@@ -1819,36 +1532,11 @@ export class TasksApi {
1819
1532
  let accepts = ['application/json; charset=UTF-8'];
1820
1533
  let returnType = 'Blob';
1821
1534
 
1822
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1823
- if (this.apiClient.RETURN_COLLECTION && false) {
1824
- return Collection.fromApiClient(
1825
- this.apiClient.callApi(
1826
- '/tasks/{task_gid}/removeDependents', 'POST',
1827
- pathParams, queryParams, headerParams, formParams, postBody,
1828
- authNames, contentTypes, accepts, returnType
1829
- ),
1830
- this.apiClient,
1831
- {
1832
- 'path': '/tasks/{task_gid}/removeDependents',
1833
- 'httpMethod': 'POST',
1834
- 'pathParams': pathParams,
1835
- 'queryParams': queryParams,
1836
- 'headerParams': headerParams,
1837
- 'formParams': formParams,
1838
- 'bodyParam': postBody,
1839
- 'authNames': authNames,
1840
- 'contentTypes': contentTypes,
1841
- 'accepts': accepts,
1842
- 'returnType': returnType
1843
- }
1844
- )
1845
- } else {
1846
- return this.apiClient.callApi(
1847
- '/tasks/{task_gid}/removeDependents', 'POST',
1848
- pathParams, queryParams, headerParams, formParams, postBody,
1849
- authNames, contentTypes, accepts, returnType
1850
- );
1851
- }
1535
+ return this.apiClient.callApi(
1536
+ '/tasks/{task_gid}/removeDependents', 'POST',
1537
+ pathParams, queryParams, headerParams, formParams, postBody,
1538
+ authNames, contentTypes, accepts, returnType
1539
+ );
1852
1540
  }
1853
1541
 
1854
1542
  /**
@@ -1860,15 +1548,10 @@ export class TasksApi {
1860
1548
  */
1861
1549
  removeDependentsForTask(body, task_gid) {
1862
1550
 
1863
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1864
- if (this.apiClient.RETURN_COLLECTION && false) {
1865
- return this.removeDependentsForTaskWithHttpInfo(body, task_gid)
1866
- } else {
1867
- return this.removeDependentsForTaskWithHttpInfo(body, task_gid)
1868
- .then(function(response_and_data) {
1869
- return response_and_data.data;
1870
- });
1871
- }
1551
+ return this.removeDependentsForTaskWithHttpInfo(body, task_gid)
1552
+ .then(function(response_and_data) {
1553
+ return response_and_data.data;
1554
+ });
1872
1555
  }
1873
1556
 
1874
1557
 
@@ -1912,36 +1595,11 @@ export class TasksApi {
1912
1595
  let accepts = ['application/json; charset=UTF-8'];
1913
1596
  let returnType = 'Blob';
1914
1597
 
1915
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1916
- if (this.apiClient.RETURN_COLLECTION && false) {
1917
- return Collection.fromApiClient(
1918
- this.apiClient.callApi(
1919
- '/tasks/{task_gid}/removeFollowers', 'POST',
1920
- pathParams, queryParams, headerParams, formParams, postBody,
1921
- authNames, contentTypes, accepts, returnType
1922
- ),
1923
- this.apiClient,
1924
- {
1925
- 'path': '/tasks/{task_gid}/removeFollowers',
1926
- 'httpMethod': 'POST',
1927
- 'pathParams': pathParams,
1928
- 'queryParams': queryParams,
1929
- 'headerParams': headerParams,
1930
- 'formParams': formParams,
1931
- 'bodyParam': postBody,
1932
- 'authNames': authNames,
1933
- 'contentTypes': contentTypes,
1934
- 'accepts': accepts,
1935
- 'returnType': returnType
1936
- }
1937
- )
1938
- } else {
1939
- return this.apiClient.callApi(
1940
- '/tasks/{task_gid}/removeFollowers', 'POST',
1941
- pathParams, queryParams, headerParams, formParams, postBody,
1942
- authNames, contentTypes, accepts, returnType
1943
- );
1944
- }
1598
+ return this.apiClient.callApi(
1599
+ '/tasks/{task_gid}/removeFollowers', 'POST',
1600
+ pathParams, queryParams, headerParams, formParams, postBody,
1601
+ authNames, contentTypes, accepts, returnType
1602
+ );
1945
1603
  }
1946
1604
 
1947
1605
  /**
@@ -1955,15 +1613,10 @@ export class TasksApi {
1955
1613
  */
1956
1614
  removeFollowerForTask(body, task_gid, opts) {
1957
1615
 
1958
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1959
- if (this.apiClient.RETURN_COLLECTION && false) {
1960
- return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts)
1961
- } else {
1962
- return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts)
1963
- .then(function(response_and_data) {
1964
- return response_and_data.data;
1965
- });
1966
- }
1616
+ return this.removeFollowerForTaskWithHttpInfo(body, task_gid, opts)
1617
+ .then(function(response_and_data) {
1618
+ return response_and_data.data;
1619
+ });
1967
1620
  }
1968
1621
 
1969
1622
 
@@ -2003,36 +1656,11 @@ export class TasksApi {
2003
1656
  let accepts = ['application/json; charset=UTF-8'];
2004
1657
  let returnType = 'Blob';
2005
1658
 
2006
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2007
- if (this.apiClient.RETURN_COLLECTION && false) {
2008
- return Collection.fromApiClient(
2009
- this.apiClient.callApi(
2010
- '/tasks/{task_gid}/removeProject', 'POST',
2011
- pathParams, queryParams, headerParams, formParams, postBody,
2012
- authNames, contentTypes, accepts, returnType
2013
- ),
2014
- this.apiClient,
2015
- {
2016
- 'path': '/tasks/{task_gid}/removeProject',
2017
- 'httpMethod': 'POST',
2018
- 'pathParams': pathParams,
2019
- 'queryParams': queryParams,
2020
- 'headerParams': headerParams,
2021
- 'formParams': formParams,
2022
- 'bodyParam': postBody,
2023
- 'authNames': authNames,
2024
- 'contentTypes': contentTypes,
2025
- 'accepts': accepts,
2026
- 'returnType': returnType
2027
- }
2028
- )
2029
- } else {
2030
- return this.apiClient.callApi(
2031
- '/tasks/{task_gid}/removeProject', 'POST',
2032
- pathParams, queryParams, headerParams, formParams, postBody,
2033
- authNames, contentTypes, accepts, returnType
2034
- );
2035
- }
1659
+ return this.apiClient.callApi(
1660
+ '/tasks/{task_gid}/removeProject', 'POST',
1661
+ pathParams, queryParams, headerParams, formParams, postBody,
1662
+ authNames, contentTypes, accepts, returnType
1663
+ );
2036
1664
  }
2037
1665
 
2038
1666
  /**
@@ -2044,15 +1672,10 @@ export class TasksApi {
2044
1672
  */
2045
1673
  removeProjectForTask(body, task_gid) {
2046
1674
 
2047
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2048
- if (this.apiClient.RETURN_COLLECTION && false) {
2049
- return this.removeProjectForTaskWithHttpInfo(body, task_gid)
2050
- } else {
2051
- return this.removeProjectForTaskWithHttpInfo(body, task_gid)
2052
- .then(function(response_and_data) {
2053
- return response_and_data.data;
2054
- });
2055
- }
1675
+ return this.removeProjectForTaskWithHttpInfo(body, task_gid)
1676
+ .then(function(response_and_data) {
1677
+ return response_and_data.data;
1678
+ });
2056
1679
  }
2057
1680
 
2058
1681
 
@@ -2092,36 +1715,11 @@ export class TasksApi {
2092
1715
  let accepts = ['application/json; charset=UTF-8'];
2093
1716
  let returnType = 'Blob';
2094
1717
 
2095
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2096
- if (this.apiClient.RETURN_COLLECTION && false) {
2097
- return Collection.fromApiClient(
2098
- this.apiClient.callApi(
2099
- '/tasks/{task_gid}/removeTag', 'POST',
2100
- pathParams, queryParams, headerParams, formParams, postBody,
2101
- authNames, contentTypes, accepts, returnType
2102
- ),
2103
- this.apiClient,
2104
- {
2105
- 'path': '/tasks/{task_gid}/removeTag',
2106
- 'httpMethod': 'POST',
2107
- 'pathParams': pathParams,
2108
- 'queryParams': queryParams,
2109
- 'headerParams': headerParams,
2110
- 'formParams': formParams,
2111
- 'bodyParam': postBody,
2112
- 'authNames': authNames,
2113
- 'contentTypes': contentTypes,
2114
- 'accepts': accepts,
2115
- 'returnType': returnType
2116
- }
2117
- )
2118
- } else {
2119
- return this.apiClient.callApi(
2120
- '/tasks/{task_gid}/removeTag', 'POST',
2121
- pathParams, queryParams, headerParams, formParams, postBody,
2122
- authNames, contentTypes, accepts, returnType
2123
- );
2124
- }
1718
+ return this.apiClient.callApi(
1719
+ '/tasks/{task_gid}/removeTag', 'POST',
1720
+ pathParams, queryParams, headerParams, formParams, postBody,
1721
+ authNames, contentTypes, accepts, returnType
1722
+ );
2125
1723
  }
2126
1724
 
2127
1725
  /**
@@ -2133,15 +1731,10 @@ export class TasksApi {
2133
1731
  */
2134
1732
  removeTagForTask(body, task_gid) {
2135
1733
 
2136
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2137
- if (this.apiClient.RETURN_COLLECTION && false) {
2138
- return this.removeTagForTaskWithHttpInfo(body, task_gid)
2139
- } else {
2140
- return this.removeTagForTaskWithHttpInfo(body, task_gid)
2141
- .then(function(response_and_data) {
2142
- return response_and_data.data;
2143
- });
2144
- }
1734
+ return this.removeTagForTaskWithHttpInfo(body, task_gid)
1735
+ .then(function(response_and_data) {
1736
+ return response_and_data.data;
1737
+ });
2145
1738
  }
2146
1739
 
2147
1740
 
@@ -2245,9 +1838,8 @@ export class TasksApi {
2245
1838
  let contentTypes = [];
2246
1839
  let accepts = ['application/json; charset=UTF-8'];
2247
1840
  let returnType = 'Blob';
2248
-
2249
1841
  // Check if RETURN_COLLECTION is set and return a collection object if it is
2250
- if (this.apiClient.RETURN_COLLECTION && true) {
1842
+ if (this.apiClient.RETURN_COLLECTION) {
2251
1843
  return Collection.fromApiClient(
2252
1844
  this.apiClient.callApi(
2253
1845
  '/workspaces/{workspace_gid}/tasks/search', 'GET',
@@ -2269,13 +1861,13 @@ export class TasksApi {
2269
1861
  'returnType': returnType
2270
1862
  }
2271
1863
  )
2272
- } else {
2273
- return this.apiClient.callApi(
2274
- '/workspaces/{workspace_gid}/tasks/search', 'GET',
2275
- pathParams, queryParams, headerParams, formParams, postBody,
2276
- authNames, contentTypes, accepts, returnType
2277
- );
2278
1864
  }
1865
+
1866
+ return this.apiClient.callApi(
1867
+ '/workspaces/{workspace_gid}/tasks/search', 'GET',
1868
+ pathParams, queryParams, headerParams, formParams, postBody,
1869
+ authNames, contentTypes, accepts, returnType
1870
+ );
2279
1871
  }
2280
1872
 
2281
1873
  /**
@@ -2339,16 +1931,15 @@ export class TasksApi {
2339
1931
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TaskResponseArray}
2340
1932
  */
2341
1933
  searchTasksForWorkspace(workspace_gid, opts) {
2342
-
2343
1934
  // Check if RETURN_COLLECTION is set and return a collection object if it is
2344
- if (this.apiClient.RETURN_COLLECTION && true) {
2345
- return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts)
2346
- } else {
1935
+ if (this.apiClient.RETURN_COLLECTION) {
2347
1936
  return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts)
2348
- .then(function(response_and_data) {
2349
- return response_and_data.data;
2350
- });
2351
1937
  }
1938
+
1939
+ return this.searchTasksForWorkspaceWithHttpInfo(workspace_gid, opts)
1940
+ .then(function(response_and_data) {
1941
+ return response_and_data.data;
1942
+ });
2352
1943
  }
2353
1944
 
2354
1945
 
@@ -2392,36 +1983,11 @@ export class TasksApi {
2392
1983
  let accepts = ['application/json; charset=UTF-8'];
2393
1984
  let returnType = 'Blob';
2394
1985
 
2395
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2396
- if (this.apiClient.RETURN_COLLECTION && false) {
2397
- return Collection.fromApiClient(
2398
- this.apiClient.callApi(
2399
- '/tasks/{task_gid}/setParent', 'POST',
2400
- pathParams, queryParams, headerParams, formParams, postBody,
2401
- authNames, contentTypes, accepts, returnType
2402
- ),
2403
- this.apiClient,
2404
- {
2405
- 'path': '/tasks/{task_gid}/setParent',
2406
- 'httpMethod': 'POST',
2407
- 'pathParams': pathParams,
2408
- 'queryParams': queryParams,
2409
- 'headerParams': headerParams,
2410
- 'formParams': formParams,
2411
- 'bodyParam': postBody,
2412
- 'authNames': authNames,
2413
- 'contentTypes': contentTypes,
2414
- 'accepts': accepts,
2415
- 'returnType': returnType
2416
- }
2417
- )
2418
- } else {
2419
- return this.apiClient.callApi(
2420
- '/tasks/{task_gid}/setParent', 'POST',
2421
- pathParams, queryParams, headerParams, formParams, postBody,
2422
- authNames, contentTypes, accepts, returnType
2423
- );
2424
- }
1986
+ return this.apiClient.callApi(
1987
+ '/tasks/{task_gid}/setParent', 'POST',
1988
+ pathParams, queryParams, headerParams, formParams, postBody,
1989
+ authNames, contentTypes, accepts, returnType
1990
+ );
2425
1991
  }
2426
1992
 
2427
1993
  /**
@@ -2435,15 +2001,10 @@ export class TasksApi {
2435
2001
  */
2436
2002
  setParentForTask(body, task_gid, opts) {
2437
2003
 
2438
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2439
- if (this.apiClient.RETURN_COLLECTION && false) {
2440
- return this.setParentForTaskWithHttpInfo(body, task_gid, opts)
2441
- } else {
2442
- return this.setParentForTaskWithHttpInfo(body, task_gid, opts)
2443
- .then(function(response_and_data) {
2444
- return response_and_data.data;
2445
- });
2446
- }
2004
+ return this.setParentForTaskWithHttpInfo(body, task_gid, opts)
2005
+ .then(function(response_and_data) {
2006
+ return response_and_data.data;
2007
+ });
2447
2008
  }
2448
2009
 
2449
2010
 
@@ -2487,36 +2048,11 @@ export class TasksApi {
2487
2048
  let accepts = ['application/json; charset=UTF-8'];
2488
2049
  let returnType = 'Blob';
2489
2050
 
2490
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2491
- if (this.apiClient.RETURN_COLLECTION && false) {
2492
- return Collection.fromApiClient(
2493
- this.apiClient.callApi(
2494
- '/tasks/{task_gid}', 'PUT',
2495
- pathParams, queryParams, headerParams, formParams, postBody,
2496
- authNames, contentTypes, accepts, returnType
2497
- ),
2498
- this.apiClient,
2499
- {
2500
- 'path': '/tasks/{task_gid}',
2501
- 'httpMethod': 'PUT',
2502
- 'pathParams': pathParams,
2503
- 'queryParams': queryParams,
2504
- 'headerParams': headerParams,
2505
- 'formParams': formParams,
2506
- 'bodyParam': postBody,
2507
- 'authNames': authNames,
2508
- 'contentTypes': contentTypes,
2509
- 'accepts': accepts,
2510
- 'returnType': returnType
2511
- }
2512
- )
2513
- } else {
2514
- return this.apiClient.callApi(
2515
- '/tasks/{task_gid}', 'PUT',
2516
- pathParams, queryParams, headerParams, formParams, postBody,
2517
- authNames, contentTypes, accepts, returnType
2518
- );
2519
- }
2051
+ return this.apiClient.callApi(
2052
+ '/tasks/{task_gid}', 'PUT',
2053
+ pathParams, queryParams, headerParams, formParams, postBody,
2054
+ authNames, contentTypes, accepts, returnType
2055
+ );
2520
2056
  }
2521
2057
 
2522
2058
  /**
@@ -2530,15 +2066,10 @@ export class TasksApi {
2530
2066
  */
2531
2067
  updateTask(body, task_gid, opts) {
2532
2068
 
2533
- // Check if RETURN_COLLECTION is set and return a collection object if it is
2534
- if (this.apiClient.RETURN_COLLECTION && false) {
2535
- return this.updateTaskWithHttpInfo(body, task_gid, opts)
2536
- } else {
2537
- return this.updateTaskWithHttpInfo(body, task_gid, opts)
2538
- .then(function(response_and_data) {
2539
- return response_and_data.data;
2540
- });
2541
- }
2069
+ return this.updateTaskWithHttpInfo(body, task_gid, opts)
2070
+ .then(function(response_and_data) {
2071
+ return response_and_data.data;
2072
+ });
2542
2073
  }
2543
2074
 
2544
2075
  }