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
  * Portfolios service.
20
20
  * @module api/PortfoliosApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class PortfoliosApi {
24
24
 
@@ -72,36 +72,11 @@ export class PortfoliosApi {
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
- '/portfolios/{portfolio_gid}/addCustomFieldSetting', 'POST',
80
- pathParams, queryParams, headerParams, formParams, postBody,
81
- authNames, contentTypes, accepts, returnType
82
- ),
83
- this.apiClient,
84
- {
85
- 'path': '/portfolios/{portfolio_gid}/addCustomFieldSetting',
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
- '/portfolios/{portfolio_gid}/addCustomFieldSetting', 'POST',
101
- pathParams, queryParams, headerParams, formParams, postBody,
102
- authNames, contentTypes, accepts, returnType
103
- );
104
- }
75
+ return this.apiClient.callApi(
76
+ '/portfolios/{portfolio_gid}/addCustomFieldSetting', '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 PortfoliosApi {
113
88
  */
114
89
  addCustomFieldSettingForPortfolio(body, portfolio_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.addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid)
119
- } else {
120
- return this.addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid)
121
- .then(function(response_and_data) {
122
- return response_and_data.data;
123
- });
124
- }
91
+ return this.addCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_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 PortfoliosApi {
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
- '/portfolios/{portfolio_gid}/addItem', 'POST',
169
- pathParams, queryParams, headerParams, formParams, postBody,
170
- authNames, contentTypes, accepts, returnType
171
- ),
172
- this.apiClient,
173
- {
174
- 'path': '/portfolios/{portfolio_gid}/addItem',
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
- '/portfolios/{portfolio_gid}/addItem', 'POST',
190
- pathParams, queryParams, headerParams, formParams, postBody,
191
- authNames, contentTypes, accepts, returnType
192
- );
193
- }
134
+ return this.apiClient.callApi(
135
+ '/portfolios/{portfolio_gid}/addItem', '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 PortfoliosApi {
202
147
  */
203
148
  addItemForPortfolio(body, portfolio_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.addItemForPortfolioWithHttpInfo(body, portfolio_gid)
208
- } else {
209
- return this.addItemForPortfolioWithHttpInfo(body, portfolio_gid)
210
- .then(function(response_and_data) {
211
- return response_and_data.data;
212
- });
213
- }
150
+ return this.addItemForPortfolioWithHttpInfo(body, portfolio_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 PortfoliosApi {
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
- '/portfolios/{portfolio_gid}/addMembers', 'POST',
262
- pathParams, queryParams, headerParams, formParams, postBody,
263
- authNames, contentTypes, accepts, returnType
264
- ),
265
- this.apiClient,
266
- {
267
- 'path': '/portfolios/{portfolio_gid}/addMembers',
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
- '/portfolios/{portfolio_gid}/addMembers', 'POST',
283
- pathParams, queryParams, headerParams, formParams, postBody,
284
- authNames, contentTypes, accepts, returnType
285
- );
286
- }
197
+ return this.apiClient.callApi(
198
+ '/portfolios/{portfolio_gid}/addMembers', '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 PortfoliosApi {
297
212
  */
298
213
  addMembersForPortfolio(body, portfolio_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.addMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
303
- } else {
304
- return this.addMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
305
- .then(function(response_and_data) {
306
- return response_and_data.data;
307
- });
308
- }
215
+ return this.addMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
216
+ .then(function(response_and_data) {
217
+ return response_and_data.data;
218
+ });
309
219
  }
310
220
 
311
221
 
@@ -344,36 +254,11 @@ export class PortfoliosApi {
344
254
  let accepts = ['application/json; charset=UTF-8'];
345
255
  let returnType = 'Blob';
346
256
 
347
- // Check if RETURN_COLLECTION is set and return a collection object if it is
348
- if (this.apiClient.RETURN_COLLECTION && false) {
349
- return Collection.fromApiClient(
350
- this.apiClient.callApi(
351
- '/portfolios', 'POST',
352
- pathParams, queryParams, headerParams, formParams, postBody,
353
- authNames, contentTypes, accepts, returnType
354
- ),
355
- this.apiClient,
356
- {
357
- 'path': '/portfolios',
358
- 'httpMethod': 'POST',
359
- 'pathParams': pathParams,
360
- 'queryParams': queryParams,
361
- 'headerParams': headerParams,
362
- 'formParams': formParams,
363
- 'bodyParam': postBody,
364
- 'authNames': authNames,
365
- 'contentTypes': contentTypes,
366
- 'accepts': accepts,
367
- 'returnType': returnType
368
- }
369
- )
370
- } else {
371
- return this.apiClient.callApi(
372
- '/portfolios', 'POST',
373
- pathParams, queryParams, headerParams, formParams, postBody,
374
- authNames, contentTypes, accepts, returnType
375
- );
376
- }
257
+ return this.apiClient.callApi(
258
+ '/portfolios', 'POST',
259
+ pathParams, queryParams, headerParams, formParams, postBody,
260
+ authNames, contentTypes, accepts, returnType
261
+ );
377
262
  }
378
263
 
379
264
  /**
@@ -386,15 +271,10 @@ export class PortfoliosApi {
386
271
  */
387
272
  createPortfolio(body, opts) {
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.createPortfolioWithHttpInfo(body, opts)
392
- } else {
393
- return this.createPortfolioWithHttpInfo(body, opts)
394
- .then(function(response_and_data) {
395
- return response_and_data.data;
396
- });
397
- }
274
+ return this.createPortfolioWithHttpInfo(body, opts)
275
+ .then(function(response_and_data) {
276
+ return response_and_data.data;
277
+ });
398
278
  }
399
279
 
400
280
 
@@ -429,36 +309,11 @@ export class PortfoliosApi {
429
309
  let accepts = ['application/json; charset=UTF-8'];
430
310
  let returnType = 'Blob';
431
311
 
432
- // Check if RETURN_COLLECTION is set and return a collection object if it is
433
- if (this.apiClient.RETURN_COLLECTION && false) {
434
- return Collection.fromApiClient(
435
- this.apiClient.callApi(
436
- '/portfolios/{portfolio_gid}', 'DELETE',
437
- pathParams, queryParams, headerParams, formParams, postBody,
438
- authNames, contentTypes, accepts, returnType
439
- ),
440
- this.apiClient,
441
- {
442
- 'path': '/portfolios/{portfolio_gid}',
443
- 'httpMethod': 'DELETE',
444
- 'pathParams': pathParams,
445
- 'queryParams': queryParams,
446
- 'headerParams': headerParams,
447
- 'formParams': formParams,
448
- 'bodyParam': postBody,
449
- 'authNames': authNames,
450
- 'contentTypes': contentTypes,
451
- 'accepts': accepts,
452
- 'returnType': returnType
453
- }
454
- )
455
- } else {
456
- return this.apiClient.callApi(
457
- '/portfolios/{portfolio_gid}', 'DELETE',
458
- pathParams, queryParams, headerParams, formParams, postBody,
459
- authNames, contentTypes, accepts, returnType
460
- );
461
- }
312
+ return this.apiClient.callApi(
313
+ '/portfolios/{portfolio_gid}', 'DELETE',
314
+ pathParams, queryParams, headerParams, formParams, postBody,
315
+ authNames, contentTypes, accepts, returnType
316
+ );
462
317
  }
463
318
 
464
319
  /**
@@ -469,15 +324,10 @@ export class PortfoliosApi {
469
324
  */
470
325
  deletePortfolio(portfolio_gid) {
471
326
 
472
- // Check if RETURN_COLLECTION is set and return a collection object if it is
473
- if (this.apiClient.RETURN_COLLECTION && false) {
474
- return this.deletePortfolioWithHttpInfo(portfolio_gid)
475
- } else {
476
- return this.deletePortfolioWithHttpInfo(portfolio_gid)
477
- .then(function(response_and_data) {
478
- return response_and_data.data;
479
- });
480
- }
327
+ return this.deletePortfolioWithHttpInfo(portfolio_gid)
328
+ .then(function(response_and_data) {
329
+ return response_and_data.data;
330
+ });
481
331
  }
482
332
 
483
333
 
@@ -517,9 +367,8 @@ export class PortfoliosApi {
517
367
  let contentTypes = [];
518
368
  let accepts = ['application/json; charset=UTF-8'];
519
369
  let returnType = 'Blob';
520
-
521
370
  // Check if RETURN_COLLECTION is set and return a collection object if it is
522
- if (this.apiClient.RETURN_COLLECTION && true) {
371
+ if (this.apiClient.RETURN_COLLECTION) {
523
372
  return Collection.fromApiClient(
524
373
  this.apiClient.callApi(
525
374
  '/portfolios/{portfolio_gid}/items', 'GET',
@@ -541,13 +390,13 @@ export class PortfoliosApi {
541
390
  'returnType': returnType
542
391
  }
543
392
  )
544
- } else {
545
- return this.apiClient.callApi(
546
- '/portfolios/{portfolio_gid}/items', 'GET',
547
- pathParams, queryParams, headerParams, formParams, postBody,
548
- authNames, contentTypes, accepts, returnType
549
- );
550
393
  }
394
+
395
+ return this.apiClient.callApi(
396
+ '/portfolios/{portfolio_gid}/items', 'GET',
397
+ pathParams, queryParams, headerParams, formParams, postBody,
398
+ authNames, contentTypes, accepts, returnType
399
+ );
551
400
  }
552
401
 
553
402
  /**
@@ -561,16 +410,15 @@ export class PortfoliosApi {
561
410
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectResponseArray}
562
411
  */
563
412
  getItemsForPortfolio(portfolio_gid, opts) {
564
-
565
413
  // Check if RETURN_COLLECTION is set and return a collection object if it is
566
- if (this.apiClient.RETURN_COLLECTION && true) {
567
- return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts)
568
- } else {
414
+ if (this.apiClient.RETURN_COLLECTION) {
569
415
  return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts)
570
- .then(function(response_and_data) {
571
- return response_and_data.data;
572
- });
573
416
  }
417
+
418
+ return this.getItemsForPortfolioWithHttpInfo(portfolio_gid, opts)
419
+ .then(function(response_and_data) {
420
+ return response_and_data.data;
421
+ });
574
422
  }
575
423
 
576
424
 
@@ -609,36 +457,11 @@ export class PortfoliosApi {
609
457
  let accepts = ['application/json; charset=UTF-8'];
610
458
  let returnType = 'Blob';
611
459
 
612
- // Check if RETURN_COLLECTION is set and return a collection object if it is
613
- if (this.apiClient.RETURN_COLLECTION && false) {
614
- return Collection.fromApiClient(
615
- this.apiClient.callApi(
616
- '/portfolios/{portfolio_gid}', 'GET',
617
- pathParams, queryParams, headerParams, formParams, postBody,
618
- authNames, contentTypes, accepts, returnType
619
- ),
620
- this.apiClient,
621
- {
622
- 'path': '/portfolios/{portfolio_gid}',
623
- 'httpMethod': 'GET',
624
- 'pathParams': pathParams,
625
- 'queryParams': queryParams,
626
- 'headerParams': headerParams,
627
- 'formParams': formParams,
628
- 'bodyParam': postBody,
629
- 'authNames': authNames,
630
- 'contentTypes': contentTypes,
631
- 'accepts': accepts,
632
- 'returnType': returnType
633
- }
634
- )
635
- } else {
636
- return this.apiClient.callApi(
637
- '/portfolios/{portfolio_gid}', 'GET',
638
- pathParams, queryParams, headerParams, formParams, postBody,
639
- authNames, contentTypes, accepts, returnType
640
- );
641
- }
460
+ return this.apiClient.callApi(
461
+ '/portfolios/{portfolio_gid}', 'GET',
462
+ pathParams, queryParams, headerParams, formParams, postBody,
463
+ authNames, contentTypes, accepts, returnType
464
+ );
642
465
  }
643
466
 
644
467
  /**
@@ -651,15 +474,10 @@ export class PortfoliosApi {
651
474
  */
652
475
  getPortfolio(portfolio_gid, opts) {
653
476
 
654
- // Check if RETURN_COLLECTION is set and return a collection object if it is
655
- if (this.apiClient.RETURN_COLLECTION && false) {
656
- return this.getPortfolioWithHttpInfo(portfolio_gid, opts)
657
- } else {
658
- return this.getPortfolioWithHttpInfo(portfolio_gid, opts)
659
- .then(function(response_and_data) {
660
- return response_and_data.data;
661
- });
662
- }
477
+ return this.getPortfolioWithHttpInfo(portfolio_gid, opts)
478
+ .then(function(response_and_data) {
479
+ return response_and_data.data;
480
+ });
663
481
  }
664
482
 
665
483
 
@@ -701,9 +519,8 @@ export class PortfoliosApi {
701
519
  let contentTypes = [];
702
520
  let accepts = ['application/json; charset=UTF-8'];
703
521
  let returnType = 'Blob';
704
-
705
522
  // Check if RETURN_COLLECTION is set and return a collection object if it is
706
- if (this.apiClient.RETURN_COLLECTION && true) {
523
+ if (this.apiClient.RETURN_COLLECTION) {
707
524
  return Collection.fromApiClient(
708
525
  this.apiClient.callApi(
709
526
  '/portfolios', 'GET',
@@ -725,13 +542,13 @@ export class PortfoliosApi {
725
542
  'returnType': returnType
726
543
  }
727
544
  )
728
- } else {
729
- return this.apiClient.callApi(
730
- '/portfolios', 'GET',
731
- pathParams, queryParams, headerParams, formParams, postBody,
732
- authNames, contentTypes, accepts, returnType
733
- );
734
545
  }
546
+
547
+ return this.apiClient.callApi(
548
+ '/portfolios', 'GET',
549
+ pathParams, queryParams, headerParams, formParams, postBody,
550
+ authNames, contentTypes, accepts, returnType
551
+ );
735
552
  }
736
553
 
737
554
  /**
@@ -746,16 +563,15 @@ export class PortfoliosApi {
746
563
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PortfolioResponseArray}
747
564
  */
748
565
  getPortfolios(workspace, opts) {
749
-
750
566
  // Check if RETURN_COLLECTION is set and return a collection object if it is
751
- if (this.apiClient.RETURN_COLLECTION && true) {
567
+ if (this.apiClient.RETURN_COLLECTION) {
752
568
  return this.getPortfoliosWithHttpInfo(workspace, opts)
753
- } else {
754
- return this.getPortfoliosWithHttpInfo(workspace, opts)
755
- .then(function(response_and_data) {
756
- return response_and_data.data;
757
- });
758
569
  }
570
+
571
+ return this.getPortfoliosWithHttpInfo(workspace, opts)
572
+ .then(function(response_and_data) {
573
+ return response_and_data.data;
574
+ });
759
575
  }
760
576
 
761
577
 
@@ -795,36 +611,11 @@ export class PortfoliosApi {
795
611
  let accepts = ['application/json; charset=UTF-8'];
796
612
  let returnType = 'Blob';
797
613
 
798
- // Check if RETURN_COLLECTION is set and return a collection object if it is
799
- if (this.apiClient.RETURN_COLLECTION && false) {
800
- return Collection.fromApiClient(
801
- this.apiClient.callApi(
802
- '/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST',
803
- pathParams, queryParams, headerParams, formParams, postBody,
804
- authNames, contentTypes, accepts, returnType
805
- ),
806
- this.apiClient,
807
- {
808
- 'path': '/portfolios/{portfolio_gid}/removeCustomFieldSetting',
809
- 'httpMethod': 'POST',
810
- 'pathParams': pathParams,
811
- 'queryParams': queryParams,
812
- 'headerParams': headerParams,
813
- 'formParams': formParams,
814
- 'bodyParam': postBody,
815
- 'authNames': authNames,
816
- 'contentTypes': contentTypes,
817
- 'accepts': accepts,
818
- 'returnType': returnType
819
- }
820
- )
821
- } else {
822
- return this.apiClient.callApi(
823
- '/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST',
824
- pathParams, queryParams, headerParams, formParams, postBody,
825
- authNames, contentTypes, accepts, returnType
826
- );
827
- }
614
+ return this.apiClient.callApi(
615
+ '/portfolios/{portfolio_gid}/removeCustomFieldSetting', 'POST',
616
+ pathParams, queryParams, headerParams, formParams, postBody,
617
+ authNames, contentTypes, accepts, returnType
618
+ );
828
619
  }
829
620
 
830
621
  /**
@@ -836,15 +627,10 @@ export class PortfoliosApi {
836
627
  */
837
628
  removeCustomFieldSettingForPortfolio(body, portfolio_gid) {
838
629
 
839
- // Check if RETURN_COLLECTION is set and return a collection object if it is
840
- if (this.apiClient.RETURN_COLLECTION && false) {
841
- return this.removeCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid)
842
- } else {
843
- return this.removeCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid)
844
- .then(function(response_and_data) {
845
- return response_and_data.data;
846
- });
847
- }
630
+ return this.removeCustomFieldSettingForPortfolioWithHttpInfo(body, portfolio_gid)
631
+ .then(function(response_and_data) {
632
+ return response_and_data.data;
633
+ });
848
634
  }
849
635
 
850
636
 
@@ -884,36 +670,11 @@ export class PortfoliosApi {
884
670
  let accepts = ['application/json; charset=UTF-8'];
885
671
  let returnType = 'Blob';
886
672
 
887
- // Check if RETURN_COLLECTION is set and return a collection object if it is
888
- if (this.apiClient.RETURN_COLLECTION && false) {
889
- return Collection.fromApiClient(
890
- this.apiClient.callApi(
891
- '/portfolios/{portfolio_gid}/removeItem', 'POST',
892
- pathParams, queryParams, headerParams, formParams, postBody,
893
- authNames, contentTypes, accepts, returnType
894
- ),
895
- this.apiClient,
896
- {
897
- 'path': '/portfolios/{portfolio_gid}/removeItem',
898
- 'httpMethod': 'POST',
899
- 'pathParams': pathParams,
900
- 'queryParams': queryParams,
901
- 'headerParams': headerParams,
902
- 'formParams': formParams,
903
- 'bodyParam': postBody,
904
- 'authNames': authNames,
905
- 'contentTypes': contentTypes,
906
- 'accepts': accepts,
907
- 'returnType': returnType
908
- }
909
- )
910
- } else {
911
- return this.apiClient.callApi(
912
- '/portfolios/{portfolio_gid}/removeItem', 'POST',
913
- pathParams, queryParams, headerParams, formParams, postBody,
914
- authNames, contentTypes, accepts, returnType
915
- );
916
- }
673
+ return this.apiClient.callApi(
674
+ '/portfolios/{portfolio_gid}/removeItem', 'POST',
675
+ pathParams, queryParams, headerParams, formParams, postBody,
676
+ authNames, contentTypes, accepts, returnType
677
+ );
917
678
  }
918
679
 
919
680
  /**
@@ -925,15 +686,10 @@ export class PortfoliosApi {
925
686
  */
926
687
  removeItemForPortfolio(body, portfolio_gid) {
927
688
 
928
- // Check if RETURN_COLLECTION is set and return a collection object if it is
929
- if (this.apiClient.RETURN_COLLECTION && false) {
930
- return this.removeItemForPortfolioWithHttpInfo(body, portfolio_gid)
931
- } else {
932
- return this.removeItemForPortfolioWithHttpInfo(body, portfolio_gid)
933
- .then(function(response_and_data) {
934
- return response_and_data.data;
935
- });
936
- }
689
+ return this.removeItemForPortfolioWithHttpInfo(body, portfolio_gid)
690
+ .then(function(response_and_data) {
691
+ return response_and_data.data;
692
+ });
937
693
  }
938
694
 
939
695
 
@@ -977,36 +733,11 @@ export class PortfoliosApi {
977
733
  let accepts = ['application/json; charset=UTF-8'];
978
734
  let returnType = 'Blob';
979
735
 
980
- // Check if RETURN_COLLECTION is set and return a collection object if it is
981
- if (this.apiClient.RETURN_COLLECTION && false) {
982
- return Collection.fromApiClient(
983
- this.apiClient.callApi(
984
- '/portfolios/{portfolio_gid}/removeMembers', 'POST',
985
- pathParams, queryParams, headerParams, formParams, postBody,
986
- authNames, contentTypes, accepts, returnType
987
- ),
988
- this.apiClient,
989
- {
990
- 'path': '/portfolios/{portfolio_gid}/removeMembers',
991
- 'httpMethod': 'POST',
992
- 'pathParams': pathParams,
993
- 'queryParams': queryParams,
994
- 'headerParams': headerParams,
995
- 'formParams': formParams,
996
- 'bodyParam': postBody,
997
- 'authNames': authNames,
998
- 'contentTypes': contentTypes,
999
- 'accepts': accepts,
1000
- 'returnType': returnType
1001
- }
1002
- )
1003
- } else {
1004
- return this.apiClient.callApi(
1005
- '/portfolios/{portfolio_gid}/removeMembers', 'POST',
1006
- pathParams, queryParams, headerParams, formParams, postBody,
1007
- authNames, contentTypes, accepts, returnType
1008
- );
1009
- }
736
+ return this.apiClient.callApi(
737
+ '/portfolios/{portfolio_gid}/removeMembers', 'POST',
738
+ pathParams, queryParams, headerParams, formParams, postBody,
739
+ authNames, contentTypes, accepts, returnType
740
+ );
1010
741
  }
1011
742
 
1012
743
  /**
@@ -1020,15 +751,10 @@ export class PortfoliosApi {
1020
751
  */
1021
752
  removeMembersForPortfolio(body, portfolio_gid, opts) {
1022
753
 
1023
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1024
- if (this.apiClient.RETURN_COLLECTION && false) {
1025
- return this.removeMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
1026
- } else {
1027
- return this.removeMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
1028
- .then(function(response_and_data) {
1029
- return response_and_data.data;
1030
- });
1031
- }
754
+ return this.removeMembersForPortfolioWithHttpInfo(body, portfolio_gid, opts)
755
+ .then(function(response_and_data) {
756
+ return response_and_data.data;
757
+ });
1032
758
  }
1033
759
 
1034
760
 
@@ -1072,36 +798,11 @@ export class PortfoliosApi {
1072
798
  let accepts = ['application/json; charset=UTF-8'];
1073
799
  let returnType = 'Blob';
1074
800
 
1075
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1076
- if (this.apiClient.RETURN_COLLECTION && false) {
1077
- return Collection.fromApiClient(
1078
- this.apiClient.callApi(
1079
- '/portfolios/{portfolio_gid}', 'PUT',
1080
- pathParams, queryParams, headerParams, formParams, postBody,
1081
- authNames, contentTypes, accepts, returnType
1082
- ),
1083
- this.apiClient,
1084
- {
1085
- 'path': '/portfolios/{portfolio_gid}',
1086
- 'httpMethod': 'PUT',
1087
- 'pathParams': pathParams,
1088
- 'queryParams': queryParams,
1089
- 'headerParams': headerParams,
1090
- 'formParams': formParams,
1091
- 'bodyParam': postBody,
1092
- 'authNames': authNames,
1093
- 'contentTypes': contentTypes,
1094
- 'accepts': accepts,
1095
- 'returnType': returnType
1096
- }
1097
- )
1098
- } else {
1099
- return this.apiClient.callApi(
1100
- '/portfolios/{portfolio_gid}', 'PUT',
1101
- pathParams, queryParams, headerParams, formParams, postBody,
1102
- authNames, contentTypes, accepts, returnType
1103
- );
1104
- }
801
+ return this.apiClient.callApi(
802
+ '/portfolios/{portfolio_gid}', 'PUT',
803
+ pathParams, queryParams, headerParams, formParams, postBody,
804
+ authNames, contentTypes, accepts, returnType
805
+ );
1105
806
  }
1106
807
 
1107
808
  /**
@@ -1115,15 +816,10 @@ export class PortfoliosApi {
1115
816
  */
1116
817
  updatePortfolio(body, portfolio_gid, opts) {
1117
818
 
1118
- // Check if RETURN_COLLECTION is set and return a collection object if it is
1119
- if (this.apiClient.RETURN_COLLECTION && false) {
1120
- return this.updatePortfolioWithHttpInfo(body, portfolio_gid, opts)
1121
- } else {
1122
- return this.updatePortfolioWithHttpInfo(body, portfolio_gid, opts)
1123
- .then(function(response_and_data) {
1124
- return response_and_data.data;
1125
- });
1126
- }
819
+ return this.updatePortfolioWithHttpInfo(body, portfolio_gid, opts)
820
+ .then(function(response_and_data) {
821
+ return response_and_data.data;
822
+ });
1127
823
  }
1128
824
 
1129
825
  }