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
  * Rules service.
20
20
  * @module api/RulesApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class RulesApi {
24
24
 
@@ -72,36 +72,11 @@ export class RulesApi {
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
- '/rule_triggers/{rule_trigger_gid}/run', 'POST',
80
- pathParams, queryParams, headerParams, formParams, postBody,
81
- authNames, contentTypes, accepts, returnType
82
- ),
83
- this.apiClient,
84
- {
85
- 'path': '/rule_triggers/{rule_trigger_gid}/run',
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
- '/rule_triggers/{rule_trigger_gid}/run', 'POST',
101
- pathParams, queryParams, headerParams, formParams, postBody,
102
- authNames, contentTypes, accepts, returnType
103
- );
104
- }
75
+ return this.apiClient.callApi(
76
+ '/rule_triggers/{rule_trigger_gid}/run', '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 RulesApi {
113
88
  */
114
89
  triggerRule(body, rule_trigger_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.triggerRuleWithHttpInfo(body, rule_trigger_gid)
119
- } else {
120
- return this.triggerRuleWithHttpInfo(body, rule_trigger_gid)
121
- .then(function(response_and_data) {
122
- return response_and_data.data;
123
- });
124
- }
91
+ return this.triggerRuleWithHttpInfo(body, rule_trigger_gid)
92
+ .then(function(response_and_data) {
93
+ return response_and_data.data;
94
+ });
125
95
  }
126
96
 
127
97
  }
@@ -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
  * Sections service.
20
20
  * @module api/SectionsApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class SectionsApi {
24
24
 
@@ -71,36 +71,11 @@ export class SectionsApi {
71
71
  let accepts = ['application/json; charset=UTF-8'];
72
72
  let returnType = 'Blob';
73
73
 
74
- // Check if RETURN_COLLECTION is set and return a collection object if it is
75
- if (this.apiClient.RETURN_COLLECTION && false) {
76
- return Collection.fromApiClient(
77
- this.apiClient.callApi(
78
- '/sections/{section_gid}/addTask', 'POST',
79
- pathParams, queryParams, headerParams, formParams, postBody,
80
- authNames, contentTypes, accepts, returnType
81
- ),
82
- this.apiClient,
83
- {
84
- 'path': '/sections/{section_gid}/addTask',
85
- 'httpMethod': 'POST',
86
- 'pathParams': pathParams,
87
- 'queryParams': queryParams,
88
- 'headerParams': headerParams,
89
- 'formParams': formParams,
90
- 'bodyParam': postBody,
91
- 'authNames': authNames,
92
- 'contentTypes': contentTypes,
93
- 'accepts': accepts,
94
- 'returnType': returnType
95
- }
96
- )
97
- } else {
98
- return this.apiClient.callApi(
99
- '/sections/{section_gid}/addTask', 'POST',
100
- pathParams, queryParams, headerParams, formParams, postBody,
101
- authNames, contentTypes, accepts, returnType
102
- );
103
- }
74
+ return this.apiClient.callApi(
75
+ '/sections/{section_gid}/addTask', 'POST',
76
+ pathParams, queryParams, headerParams, formParams, postBody,
77
+ authNames, contentTypes, accepts, returnType
78
+ );
104
79
  }
105
80
 
106
81
  /**
@@ -113,15 +88,10 @@ export class SectionsApi {
113
88
  */
114
89
  addTaskForSection(section_gid, opts) {
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.addTaskForSectionWithHttpInfo(section_gid, opts)
119
- } else {
120
- return this.addTaskForSectionWithHttpInfo(section_gid, opts)
121
- .then(function(response_and_data) {
122
- return response_and_data.data;
123
- });
124
- }
91
+ return this.addTaskForSectionWithHttpInfo(section_gid, opts)
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 SectionsApi {
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
- '/projects/{project_gid}/sections', 'POST',
169
- pathParams, queryParams, headerParams, formParams, postBody,
170
- authNames, contentTypes, accepts, returnType
171
- ),
172
- this.apiClient,
173
- {
174
- 'path': '/projects/{project_gid}/sections',
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
- '/projects/{project_gid}/sections', 'POST',
190
- pathParams, queryParams, headerParams, formParams, postBody,
191
- authNames, contentTypes, accepts, returnType
192
- );
193
- }
134
+ return this.apiClient.callApi(
135
+ '/projects/{project_gid}/sections', 'POST',
136
+ pathParams, queryParams, headerParams, formParams, postBody,
137
+ authNames, contentTypes, accepts, returnType
138
+ );
194
139
  }
195
140
 
196
141
  /**
@@ -204,15 +149,10 @@ export class SectionsApi {
204
149
  */
205
150
  createSectionForProject(project_gid, opts) {
206
151
 
207
- // Check if RETURN_COLLECTION is set and return a collection object if it is
208
- if (this.apiClient.RETURN_COLLECTION && false) {
209
- return this.createSectionForProjectWithHttpInfo(project_gid, opts)
210
- } else {
211
- return this.createSectionForProjectWithHttpInfo(project_gid, opts)
212
- .then(function(response_and_data) {
213
- return response_and_data.data;
214
- });
215
- }
152
+ return this.createSectionForProjectWithHttpInfo(project_gid, opts)
153
+ .then(function(response_and_data) {
154
+ return response_and_data.data;
155
+ });
216
156
  }
217
157
 
218
158
 
@@ -247,36 +187,11 @@ export class SectionsApi {
247
187
  let accepts = ['application/json; charset=UTF-8'];
248
188
  let returnType = 'Blob';
249
189
 
250
- // Check if RETURN_COLLECTION is set and return a collection object if it is
251
- if (this.apiClient.RETURN_COLLECTION && false) {
252
- return Collection.fromApiClient(
253
- this.apiClient.callApi(
254
- '/sections/{section_gid}', 'DELETE',
255
- pathParams, queryParams, headerParams, formParams, postBody,
256
- authNames, contentTypes, accepts, returnType
257
- ),
258
- this.apiClient,
259
- {
260
- 'path': '/sections/{section_gid}',
261
- 'httpMethod': 'DELETE',
262
- 'pathParams': pathParams,
263
- 'queryParams': queryParams,
264
- 'headerParams': headerParams,
265
- 'formParams': formParams,
266
- 'bodyParam': postBody,
267
- 'authNames': authNames,
268
- 'contentTypes': contentTypes,
269
- 'accepts': accepts,
270
- 'returnType': returnType
271
- }
272
- )
273
- } else {
274
- return this.apiClient.callApi(
275
- '/sections/{section_gid}', 'DELETE',
276
- pathParams, queryParams, headerParams, formParams, postBody,
277
- authNames, contentTypes, accepts, returnType
278
- );
279
- }
190
+ return this.apiClient.callApi(
191
+ '/sections/{section_gid}', 'DELETE',
192
+ pathParams, queryParams, headerParams, formParams, postBody,
193
+ authNames, contentTypes, accepts, returnType
194
+ );
280
195
  }
281
196
 
282
197
  /**
@@ -287,15 +202,10 @@ export class SectionsApi {
287
202
  */
288
203
  deleteSection(section_gid) {
289
204
 
290
- // Check if RETURN_COLLECTION is set and return a collection object if it is
291
- if (this.apiClient.RETURN_COLLECTION && false) {
292
- return this.deleteSectionWithHttpInfo(section_gid)
293
- } else {
294
- return this.deleteSectionWithHttpInfo(section_gid)
295
- .then(function(response_and_data) {
296
- return response_and_data.data;
297
- });
298
- }
205
+ return this.deleteSectionWithHttpInfo(section_gid)
206
+ .then(function(response_and_data) {
207
+ return response_and_data.data;
208
+ });
299
209
  }
300
210
 
301
211
 
@@ -334,36 +244,11 @@ export class SectionsApi {
334
244
  let accepts = ['application/json; charset=UTF-8'];
335
245
  let returnType = 'Blob';
336
246
 
337
- // Check if RETURN_COLLECTION is set and return a collection object if it is
338
- if (this.apiClient.RETURN_COLLECTION && false) {
339
- return Collection.fromApiClient(
340
- this.apiClient.callApi(
341
- '/sections/{section_gid}', 'GET',
342
- pathParams, queryParams, headerParams, formParams, postBody,
343
- authNames, contentTypes, accepts, returnType
344
- ),
345
- this.apiClient,
346
- {
347
- 'path': '/sections/{section_gid}',
348
- 'httpMethod': 'GET',
349
- 'pathParams': pathParams,
350
- 'queryParams': queryParams,
351
- 'headerParams': headerParams,
352
- 'formParams': formParams,
353
- 'bodyParam': postBody,
354
- 'authNames': authNames,
355
- 'contentTypes': contentTypes,
356
- 'accepts': accepts,
357
- 'returnType': returnType
358
- }
359
- )
360
- } else {
361
- return this.apiClient.callApi(
362
- '/sections/{section_gid}', 'GET',
363
- pathParams, queryParams, headerParams, formParams, postBody,
364
- authNames, contentTypes, accepts, returnType
365
- );
366
- }
247
+ return this.apiClient.callApi(
248
+ '/sections/{section_gid}', 'GET',
249
+ pathParams, queryParams, headerParams, formParams, postBody,
250
+ authNames, contentTypes, accepts, returnType
251
+ );
367
252
  }
368
253
 
369
254
  /**
@@ -376,15 +261,10 @@ export class SectionsApi {
376
261
  */
377
262
  getSection(section_gid, opts) {
378
263
 
379
- // Check if RETURN_COLLECTION is set and return a collection object if it is
380
- if (this.apiClient.RETURN_COLLECTION && false) {
381
- return this.getSectionWithHttpInfo(section_gid, opts)
382
- } else {
383
- return this.getSectionWithHttpInfo(section_gid, opts)
384
- .then(function(response_and_data) {
385
- return response_and_data.data;
386
- });
387
- }
264
+ return this.getSectionWithHttpInfo(section_gid, opts)
265
+ .then(function(response_and_data) {
266
+ return response_and_data.data;
267
+ });
388
268
  }
389
269
 
390
270
 
@@ -424,9 +304,8 @@ export class SectionsApi {
424
304
  let contentTypes = [];
425
305
  let accepts = ['application/json; charset=UTF-8'];
426
306
  let returnType = 'Blob';
427
-
428
307
  // Check if RETURN_COLLECTION is set and return a collection object if it is
429
- if (this.apiClient.RETURN_COLLECTION && true) {
308
+ if (this.apiClient.RETURN_COLLECTION) {
430
309
  return Collection.fromApiClient(
431
310
  this.apiClient.callApi(
432
311
  '/projects/{project_gid}/sections', 'GET',
@@ -448,13 +327,13 @@ export class SectionsApi {
448
327
  'returnType': returnType
449
328
  }
450
329
  )
451
- } else {
452
- return this.apiClient.callApi(
453
- '/projects/{project_gid}/sections', 'GET',
454
- pathParams, queryParams, headerParams, formParams, postBody,
455
- authNames, contentTypes, accepts, returnType
456
- );
457
330
  }
331
+
332
+ return this.apiClient.callApi(
333
+ '/projects/{project_gid}/sections', 'GET',
334
+ pathParams, queryParams, headerParams, formParams, postBody,
335
+ authNames, contentTypes, accepts, returnType
336
+ );
458
337
  }
459
338
 
460
339
  /**
@@ -468,16 +347,15 @@ export class SectionsApi {
468
347
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SectionResponseArray}
469
348
  */
470
349
  getSectionsForProject(project_gid, opts) {
471
-
472
350
  // Check if RETURN_COLLECTION is set and return a collection object if it is
473
- if (this.apiClient.RETURN_COLLECTION && true) {
351
+ if (this.apiClient.RETURN_COLLECTION) {
474
352
  return this.getSectionsForProjectWithHttpInfo(project_gid, opts)
475
- } else {
476
- return this.getSectionsForProjectWithHttpInfo(project_gid, opts)
477
- .then(function(response_and_data) {
478
- return response_and_data.data;
479
- });
480
353
  }
354
+
355
+ return this.getSectionsForProjectWithHttpInfo(project_gid, opts)
356
+ .then(function(response_and_data) {
357
+ return response_and_data.data;
358
+ });
481
359
  }
482
360
 
483
361
 
@@ -516,36 +394,11 @@ export class SectionsApi {
516
394
  let accepts = ['application/json; charset=UTF-8'];
517
395
  let returnType = 'Blob';
518
396
 
519
- // Check if RETURN_COLLECTION is set and return a collection object if it is
520
- if (this.apiClient.RETURN_COLLECTION && false) {
521
- return Collection.fromApiClient(
522
- this.apiClient.callApi(
523
- '/projects/{project_gid}/sections/insert', 'POST',
524
- pathParams, queryParams, headerParams, formParams, postBody,
525
- authNames, contentTypes, accepts, returnType
526
- ),
527
- this.apiClient,
528
- {
529
- 'path': '/projects/{project_gid}/sections/insert',
530
- 'httpMethod': 'POST',
531
- 'pathParams': pathParams,
532
- 'queryParams': queryParams,
533
- 'headerParams': headerParams,
534
- 'formParams': formParams,
535
- 'bodyParam': postBody,
536
- 'authNames': authNames,
537
- 'contentTypes': contentTypes,
538
- 'accepts': accepts,
539
- 'returnType': returnType
540
- }
541
- )
542
- } else {
543
- return this.apiClient.callApi(
544
- '/projects/{project_gid}/sections/insert', 'POST',
545
- pathParams, queryParams, headerParams, formParams, postBody,
546
- authNames, contentTypes, accepts, returnType
547
- );
548
- }
397
+ return this.apiClient.callApi(
398
+ '/projects/{project_gid}/sections/insert', 'POST',
399
+ pathParams, queryParams, headerParams, formParams, postBody,
400
+ authNames, contentTypes, accepts, returnType
401
+ );
549
402
  }
550
403
 
551
404
  /**
@@ -558,15 +411,10 @@ export class SectionsApi {
558
411
  */
559
412
  insertSectionForProject(project_gid, opts) {
560
413
 
561
- // Check if RETURN_COLLECTION is set and return a collection object if it is
562
- if (this.apiClient.RETURN_COLLECTION && false) {
563
- return this.insertSectionForProjectWithHttpInfo(project_gid, opts)
564
- } else {
565
- return this.insertSectionForProjectWithHttpInfo(project_gid, opts)
566
- .then(function(response_and_data) {
567
- return response_and_data.data;
568
- });
569
- }
414
+ return this.insertSectionForProjectWithHttpInfo(project_gid, opts)
415
+ .then(function(response_and_data) {
416
+ return response_and_data.data;
417
+ });
570
418
  }
571
419
 
572
420
 
@@ -606,36 +454,11 @@ export class SectionsApi {
606
454
  let accepts = ['application/json; charset=UTF-8'];
607
455
  let returnType = 'Blob';
608
456
 
609
- // Check if RETURN_COLLECTION is set and return a collection object if it is
610
- if (this.apiClient.RETURN_COLLECTION && false) {
611
- return Collection.fromApiClient(
612
- this.apiClient.callApi(
613
- '/sections/{section_gid}', 'PUT',
614
- pathParams, queryParams, headerParams, formParams, postBody,
615
- authNames, contentTypes, accepts, returnType
616
- ),
617
- this.apiClient,
618
- {
619
- 'path': '/sections/{section_gid}',
620
- 'httpMethod': 'PUT',
621
- 'pathParams': pathParams,
622
- 'queryParams': queryParams,
623
- 'headerParams': headerParams,
624
- 'formParams': formParams,
625
- 'bodyParam': postBody,
626
- 'authNames': authNames,
627
- 'contentTypes': contentTypes,
628
- 'accepts': accepts,
629
- 'returnType': returnType
630
- }
631
- )
632
- } else {
633
- return this.apiClient.callApi(
634
- '/sections/{section_gid}', 'PUT',
635
- pathParams, queryParams, headerParams, formParams, postBody,
636
- authNames, contentTypes, accepts, returnType
637
- );
638
- }
457
+ return this.apiClient.callApi(
458
+ '/sections/{section_gid}', 'PUT',
459
+ pathParams, queryParams, headerParams, formParams, postBody,
460
+ authNames, contentTypes, accepts, returnType
461
+ );
639
462
  }
640
463
 
641
464
  /**
@@ -649,15 +472,10 @@ export class SectionsApi {
649
472
  */
650
473
  updateSection(section_gid, opts) {
651
474
 
652
- // Check if RETURN_COLLECTION is set and return a collection object if it is
653
- if (this.apiClient.RETURN_COLLECTION && false) {
654
- return this.updateSectionWithHttpInfo(section_gid, opts)
655
- } else {
656
- return this.updateSectionWithHttpInfo(section_gid, opts)
657
- .then(function(response_and_data) {
658
- return response_and_data.data;
659
- });
660
- }
475
+ return this.updateSectionWithHttpInfo(section_gid, opts)
476
+ .then(function(response_and_data) {
477
+ return response_and_data.data;
478
+ });
661
479
  }
662
480
 
663
481
  }