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
  * StatusUpdates service.
20
20
  * @module api/StatusUpdatesApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class StatusUpdatesApi {
24
24
 
@@ -73,36 +73,11 @@ export class StatusUpdatesApi {
73
73
  let accepts = ['application/json; charset=UTF-8'];
74
74
  let returnType = 'Blob';
75
75
 
76
- // Check if RETURN_COLLECTION is set and return a collection object if it is
77
- if (this.apiClient.RETURN_COLLECTION && false) {
78
- return Collection.fromApiClient(
79
- this.apiClient.callApi(
80
- '/status_updates', 'POST',
81
- pathParams, queryParams, headerParams, formParams, postBody,
82
- authNames, contentTypes, accepts, returnType
83
- ),
84
- this.apiClient,
85
- {
86
- 'path': '/status_updates',
87
- 'httpMethod': 'POST',
88
- 'pathParams': pathParams,
89
- 'queryParams': queryParams,
90
- 'headerParams': headerParams,
91
- 'formParams': formParams,
92
- 'bodyParam': postBody,
93
- 'authNames': authNames,
94
- 'contentTypes': contentTypes,
95
- 'accepts': accepts,
96
- 'returnType': returnType
97
- }
98
- )
99
- } else {
100
- return this.apiClient.callApi(
101
- '/status_updates', 'POST',
102
- pathParams, queryParams, headerParams, formParams, postBody,
103
- authNames, contentTypes, accepts, returnType
104
- );
105
- }
76
+ return this.apiClient.callApi(
77
+ '/status_updates', 'POST',
78
+ pathParams, queryParams, headerParams, formParams, postBody,
79
+ authNames, contentTypes, accepts, returnType
80
+ );
106
81
  }
107
82
 
108
83
  /**
@@ -117,15 +92,10 @@ export class StatusUpdatesApi {
117
92
  */
118
93
  createStatusForObject(body, opts) {
119
94
 
120
- // Check if RETURN_COLLECTION is set and return a collection object if it is
121
- if (this.apiClient.RETURN_COLLECTION && false) {
122
- return this.createStatusForObjectWithHttpInfo(body, opts)
123
- } else {
124
- return this.createStatusForObjectWithHttpInfo(body, opts)
125
- .then(function(response_and_data) {
126
- return response_and_data.data;
127
- });
128
- }
95
+ return this.createStatusForObjectWithHttpInfo(body, opts)
96
+ .then(function(response_and_data) {
97
+ return response_and_data.data;
98
+ });
129
99
  }
130
100
 
131
101
 
@@ -160,36 +130,11 @@ export class StatusUpdatesApi {
160
130
  let accepts = ['application/json; charset=UTF-8'];
161
131
  let returnType = 'Blob';
162
132
 
163
- // Check if RETURN_COLLECTION is set and return a collection object if it is
164
- if (this.apiClient.RETURN_COLLECTION && false) {
165
- return Collection.fromApiClient(
166
- this.apiClient.callApi(
167
- '/status_updates/{status_update_gid}', 'DELETE',
168
- pathParams, queryParams, headerParams, formParams, postBody,
169
- authNames, contentTypes, accepts, returnType
170
- ),
171
- this.apiClient,
172
- {
173
- 'path': '/status_updates/{status_update_gid}',
174
- 'httpMethod': 'DELETE',
175
- 'pathParams': pathParams,
176
- 'queryParams': queryParams,
177
- 'headerParams': headerParams,
178
- 'formParams': formParams,
179
- 'bodyParam': postBody,
180
- 'authNames': authNames,
181
- 'contentTypes': contentTypes,
182
- 'accepts': accepts,
183
- 'returnType': returnType
184
- }
185
- )
186
- } else {
187
- return this.apiClient.callApi(
188
- '/status_updates/{status_update_gid}', 'DELETE',
189
- pathParams, queryParams, headerParams, formParams, postBody,
190
- authNames, contentTypes, accepts, returnType
191
- );
192
- }
133
+ return this.apiClient.callApi(
134
+ '/status_updates/{status_update_gid}', 'DELETE',
135
+ pathParams, queryParams, headerParams, formParams, postBody,
136
+ authNames, contentTypes, accepts, returnType
137
+ );
193
138
  }
194
139
 
195
140
  /**
@@ -200,15 +145,10 @@ export class StatusUpdatesApi {
200
145
  */
201
146
  deleteStatus(status_update_gid) {
202
147
 
203
- // Check if RETURN_COLLECTION is set and return a collection object if it is
204
- if (this.apiClient.RETURN_COLLECTION && false) {
205
- return this.deleteStatusWithHttpInfo(status_update_gid)
206
- } else {
207
- return this.deleteStatusWithHttpInfo(status_update_gid)
208
- .then(function(response_and_data) {
209
- return response_and_data.data;
210
- });
211
- }
148
+ return this.deleteStatusWithHttpInfo(status_update_gid)
149
+ .then(function(response_and_data) {
150
+ return response_and_data.data;
151
+ });
212
152
  }
213
153
 
214
154
 
@@ -247,36 +187,11 @@ export class StatusUpdatesApi {
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
- '/status_updates/{status_update_gid}', 'GET',
255
- pathParams, queryParams, headerParams, formParams, postBody,
256
- authNames, contentTypes, accepts, returnType
257
- ),
258
- this.apiClient,
259
- {
260
- 'path': '/status_updates/{status_update_gid}',
261
- 'httpMethod': 'GET',
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
- '/status_updates/{status_update_gid}', 'GET',
276
- pathParams, queryParams, headerParams, formParams, postBody,
277
- authNames, contentTypes, accepts, returnType
278
- );
279
- }
190
+ return this.apiClient.callApi(
191
+ '/status_updates/{status_update_gid}', 'GET',
192
+ pathParams, queryParams, headerParams, formParams, postBody,
193
+ authNames, contentTypes, accepts, returnType
194
+ );
280
195
  }
281
196
 
282
197
  /**
@@ -289,15 +204,10 @@ export class StatusUpdatesApi {
289
204
  */
290
205
  getStatus(status_update_gid, opts) {
291
206
 
292
- // Check if RETURN_COLLECTION is set and return a collection object if it is
293
- if (this.apiClient.RETURN_COLLECTION && false) {
294
- return this.getStatusWithHttpInfo(status_update_gid, opts)
295
- } else {
296
- return this.getStatusWithHttpInfo(status_update_gid, opts)
297
- .then(function(response_and_data) {
298
- return response_and_data.data;
299
- });
300
- }
207
+ return this.getStatusWithHttpInfo(status_update_gid, opts)
208
+ .then(function(response_and_data) {
209
+ return response_and_data.data;
210
+ });
301
211
  }
302
212
 
303
213
 
@@ -339,9 +249,8 @@ export class StatusUpdatesApi {
339
249
  let contentTypes = [];
340
250
  let accepts = ['application/json; charset=UTF-8'];
341
251
  let returnType = 'Blob';
342
-
343
252
  // Check if RETURN_COLLECTION is set and return a collection object if it is
344
- if (this.apiClient.RETURN_COLLECTION && true) {
253
+ if (this.apiClient.RETURN_COLLECTION) {
345
254
  return Collection.fromApiClient(
346
255
  this.apiClient.callApi(
347
256
  '/status_updates', 'GET',
@@ -363,13 +272,13 @@ export class StatusUpdatesApi {
363
272
  'returnType': returnType
364
273
  }
365
274
  )
366
- } else {
367
- return this.apiClient.callApi(
368
- '/status_updates', 'GET',
369
- pathParams, queryParams, headerParams, formParams, postBody,
370
- authNames, contentTypes, accepts, returnType
371
- );
372
275
  }
276
+
277
+ return this.apiClient.callApi(
278
+ '/status_updates', 'GET',
279
+ pathParams, queryParams, headerParams, formParams, postBody,
280
+ authNames, contentTypes, accepts, returnType
281
+ );
373
282
  }
374
283
 
375
284
  /**
@@ -384,16 +293,15 @@ export class StatusUpdatesApi {
384
293
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StatusUpdateResponseArray}
385
294
  */
386
295
  getStatusesForObject(parent, opts) {
387
-
388
296
  // Check if RETURN_COLLECTION is set and return a collection object if it is
389
- if (this.apiClient.RETURN_COLLECTION && true) {
297
+ if (this.apiClient.RETURN_COLLECTION) {
390
298
  return this.getStatusesForObjectWithHttpInfo(parent, opts)
391
- } else {
392
- return this.getStatusesForObjectWithHttpInfo(parent, opts)
393
- .then(function(response_and_data) {
394
- return response_and_data.data;
395
- });
396
299
  }
300
+
301
+ return this.getStatusesForObjectWithHttpInfo(parent, opts)
302
+ .then(function(response_and_data) {
303
+ return response_and_data.data;
304
+ });
397
305
  }
398
306
 
399
307
  }
@@ -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
  * Stories service.
20
20
  * @module api/StoriesApi
21
- * @version 3.0.2
21
+ * @version 3.0.4
22
22
  */
23
23
  export class StoriesApi {
24
24
 
@@ -76,36 +76,11 @@ export class StoriesApi {
76
76
  let accepts = ['application/json; charset=UTF-8'];
77
77
  let returnType = 'Blob';
78
78
 
79
- // Check if RETURN_COLLECTION is set and return a collection object if it is
80
- if (this.apiClient.RETURN_COLLECTION && false) {
81
- return Collection.fromApiClient(
82
- this.apiClient.callApi(
83
- '/tasks/{task_gid}/stories', 'POST',
84
- pathParams, queryParams, headerParams, formParams, postBody,
85
- authNames, contentTypes, accepts, returnType
86
- ),
87
- this.apiClient,
88
- {
89
- 'path': '/tasks/{task_gid}/stories',
90
- 'httpMethod': 'POST',
91
- 'pathParams': pathParams,
92
- 'queryParams': queryParams,
93
- 'headerParams': headerParams,
94
- 'formParams': formParams,
95
- 'bodyParam': postBody,
96
- 'authNames': authNames,
97
- 'contentTypes': contentTypes,
98
- 'accepts': accepts,
99
- 'returnType': returnType
100
- }
101
- )
102
- } else {
103
- return this.apiClient.callApi(
104
- '/tasks/{task_gid}/stories', 'POST',
105
- pathParams, queryParams, headerParams, formParams, postBody,
106
- authNames, contentTypes, accepts, returnType
107
- );
108
- }
79
+ return this.apiClient.callApi(
80
+ '/tasks/{task_gid}/stories', 'POST',
81
+ pathParams, queryParams, headerParams, formParams, postBody,
82
+ authNames, contentTypes, accepts, returnType
83
+ );
109
84
  }
110
85
 
111
86
  /**
@@ -119,15 +94,10 @@ export class StoriesApi {
119
94
  */
120
95
  createStoryForTask(body, task_gid, opts) {
121
96
 
122
- // Check if RETURN_COLLECTION is set and return a collection object if it is
123
- if (this.apiClient.RETURN_COLLECTION && false) {
124
- return this.createStoryForTaskWithHttpInfo(body, task_gid, opts)
125
- } else {
126
- return this.createStoryForTaskWithHttpInfo(body, task_gid, opts)
127
- .then(function(response_and_data) {
128
- return response_and_data.data;
129
- });
130
- }
97
+ return this.createStoryForTaskWithHttpInfo(body, task_gid, opts)
98
+ .then(function(response_and_data) {
99
+ return response_and_data.data;
100
+ });
131
101
  }
132
102
 
133
103
 
@@ -162,36 +132,11 @@ export class StoriesApi {
162
132
  let accepts = ['application/json; charset=UTF-8'];
163
133
  let returnType = 'Blob';
164
134
 
165
- // Check if RETURN_COLLECTION is set and return a collection object if it is
166
- if (this.apiClient.RETURN_COLLECTION && false) {
167
- return Collection.fromApiClient(
168
- this.apiClient.callApi(
169
- '/stories/{story_gid}', 'DELETE',
170
- pathParams, queryParams, headerParams, formParams, postBody,
171
- authNames, contentTypes, accepts, returnType
172
- ),
173
- this.apiClient,
174
- {
175
- 'path': '/stories/{story_gid}',
176
- 'httpMethod': 'DELETE',
177
- 'pathParams': pathParams,
178
- 'queryParams': queryParams,
179
- 'headerParams': headerParams,
180
- 'formParams': formParams,
181
- 'bodyParam': postBody,
182
- 'authNames': authNames,
183
- 'contentTypes': contentTypes,
184
- 'accepts': accepts,
185
- 'returnType': returnType
186
- }
187
- )
188
- } else {
189
- return this.apiClient.callApi(
190
- '/stories/{story_gid}', 'DELETE',
191
- pathParams, queryParams, headerParams, formParams, postBody,
192
- authNames, contentTypes, accepts, returnType
193
- );
194
- }
135
+ return this.apiClient.callApi(
136
+ '/stories/{story_gid}', 'DELETE',
137
+ pathParams, queryParams, headerParams, formParams, postBody,
138
+ authNames, contentTypes, accepts, returnType
139
+ );
195
140
  }
196
141
 
197
142
  /**
@@ -202,15 +147,10 @@ export class StoriesApi {
202
147
  */
203
148
  deleteStory(story_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.deleteStoryWithHttpInfo(story_gid)
208
- } else {
209
- return this.deleteStoryWithHttpInfo(story_gid)
210
- .then(function(response_and_data) {
211
- return response_and_data.data;
212
- });
213
- }
150
+ return this.deleteStoryWithHttpInfo(story_gid)
151
+ .then(function(response_and_data) {
152
+ return response_and_data.data;
153
+ });
214
154
  }
215
155
 
216
156
 
@@ -250,9 +190,8 @@ export class StoriesApi {
250
190
  let contentTypes = [];
251
191
  let accepts = ['application/json; charset=UTF-8'];
252
192
  let returnType = 'Blob';
253
-
254
193
  // Check if RETURN_COLLECTION is set and return a collection object if it is
255
- if (this.apiClient.RETURN_COLLECTION && true) {
194
+ if (this.apiClient.RETURN_COLLECTION) {
256
195
  return Collection.fromApiClient(
257
196
  this.apiClient.callApi(
258
197
  '/tasks/{task_gid}/stories', 'GET',
@@ -274,13 +213,13 @@ export class StoriesApi {
274
213
  'returnType': returnType
275
214
  }
276
215
  )
277
- } else {
278
- return this.apiClient.callApi(
279
- '/tasks/{task_gid}/stories', 'GET',
280
- pathParams, queryParams, headerParams, formParams, postBody,
281
- authNames, contentTypes, accepts, returnType
282
- );
283
216
  }
217
+
218
+ return this.apiClient.callApi(
219
+ '/tasks/{task_gid}/stories', 'GET',
220
+ pathParams, queryParams, headerParams, formParams, postBody,
221
+ authNames, contentTypes, accepts, returnType
222
+ );
284
223
  }
285
224
 
286
225
  /**
@@ -294,16 +233,15 @@ export class StoriesApi {
294
233
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StoryResponseArray}
295
234
  */
296
235
  getStoriesForTask(task_gid, opts) {
297
-
298
236
  // Check if RETURN_COLLECTION is set and return a collection object if it is
299
- if (this.apiClient.RETURN_COLLECTION && true) {
237
+ if (this.apiClient.RETURN_COLLECTION) {
300
238
  return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
301
- } else {
302
- return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
303
- .then(function(response_and_data) {
304
- return response_and_data.data;
305
- });
306
239
  }
240
+
241
+ return this.getStoriesForTaskWithHttpInfo(task_gid, opts)
242
+ .then(function(response_and_data) {
243
+ return response_and_data.data;
244
+ });
307
245
  }
308
246
 
309
247
 
@@ -342,36 +280,11 @@ export class StoriesApi {
342
280
  let accepts = ['application/json; charset=UTF-8'];
343
281
  let returnType = 'Blob';
344
282
 
345
- // Check if RETURN_COLLECTION is set and return a collection object if it is
346
- if (this.apiClient.RETURN_COLLECTION && false) {
347
- return Collection.fromApiClient(
348
- this.apiClient.callApi(
349
- '/stories/{story_gid}', 'GET',
350
- pathParams, queryParams, headerParams, formParams, postBody,
351
- authNames, contentTypes, accepts, returnType
352
- ),
353
- this.apiClient,
354
- {
355
- 'path': '/stories/{story_gid}',
356
- 'httpMethod': 'GET',
357
- 'pathParams': pathParams,
358
- 'queryParams': queryParams,
359
- 'headerParams': headerParams,
360
- 'formParams': formParams,
361
- 'bodyParam': postBody,
362
- 'authNames': authNames,
363
- 'contentTypes': contentTypes,
364
- 'accepts': accepts,
365
- 'returnType': returnType
366
- }
367
- )
368
- } else {
369
- return this.apiClient.callApi(
370
- '/stories/{story_gid}', 'GET',
371
- pathParams, queryParams, headerParams, formParams, postBody,
372
- authNames, contentTypes, accepts, returnType
373
- );
374
- }
283
+ return this.apiClient.callApi(
284
+ '/stories/{story_gid}', 'GET',
285
+ pathParams, queryParams, headerParams, formParams, postBody,
286
+ authNames, contentTypes, accepts, returnType
287
+ );
375
288
  }
376
289
 
377
290
  /**
@@ -384,15 +297,10 @@ export class StoriesApi {
384
297
  */
385
298
  getStory(story_gid, opts) {
386
299
 
387
- // Check if RETURN_COLLECTION is set and return a collection object if it is
388
- if (this.apiClient.RETURN_COLLECTION && false) {
389
- return this.getStoryWithHttpInfo(story_gid, opts)
390
- } else {
391
- return this.getStoryWithHttpInfo(story_gid, opts)
392
- .then(function(response_and_data) {
393
- return response_and_data.data;
394
- });
395
- }
300
+ return this.getStoryWithHttpInfo(story_gid, opts)
301
+ .then(function(response_and_data) {
302
+ return response_and_data.data;
303
+ });
396
304
  }
397
305
 
398
306
 
@@ -436,36 +344,11 @@ export class StoriesApi {
436
344
  let accepts = ['application/json; charset=UTF-8'];
437
345
  let returnType = 'Blob';
438
346
 
439
- // Check if RETURN_COLLECTION is set and return a collection object if it is
440
- if (this.apiClient.RETURN_COLLECTION && false) {
441
- return Collection.fromApiClient(
442
- this.apiClient.callApi(
443
- '/stories/{story_gid}', 'PUT',
444
- pathParams, queryParams, headerParams, formParams, postBody,
445
- authNames, contentTypes, accepts, returnType
446
- ),
447
- this.apiClient,
448
- {
449
- 'path': '/stories/{story_gid}',
450
- 'httpMethod': 'PUT',
451
- 'pathParams': pathParams,
452
- 'queryParams': queryParams,
453
- 'headerParams': headerParams,
454
- 'formParams': formParams,
455
- 'bodyParam': postBody,
456
- 'authNames': authNames,
457
- 'contentTypes': contentTypes,
458
- 'accepts': accepts,
459
- 'returnType': returnType
460
- }
461
- )
462
- } else {
463
- return this.apiClient.callApi(
464
- '/stories/{story_gid}', 'PUT',
465
- pathParams, queryParams, headerParams, formParams, postBody,
466
- authNames, contentTypes, accepts, returnType
467
- );
468
- }
347
+ return this.apiClient.callApi(
348
+ '/stories/{story_gid}', 'PUT',
349
+ pathParams, queryParams, headerParams, formParams, postBody,
350
+ authNames, contentTypes, accepts, returnType
351
+ );
469
352
  }
470
353
 
471
354
  /**
@@ -479,15 +362,10 @@ export class StoriesApi {
479
362
  */
480
363
  updateStory(body, story_gid, opts) {
481
364
 
482
- // Check if RETURN_COLLECTION is set and return a collection object if it is
483
- if (this.apiClient.RETURN_COLLECTION && false) {
484
- return this.updateStoryWithHttpInfo(body, story_gid, opts)
485
- } else {
486
- return this.updateStoryWithHttpInfo(body, story_gid, opts)
487
- .then(function(response_and_data) {
488
- return response_and_data.data;
489
- });
490
- }
365
+ return this.updateStoryWithHttpInfo(body, story_gid, opts)
366
+ .then(function(response_and_data) {
367
+ return response_and_data.data;
368
+ });
491
369
  }
492
370
 
493
371
  }