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
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
13
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
14
14
  * Asana
15
15
  * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * NOTE: This class is auto generated by the swagger code generator program.
20
20
  * https://github.com/swagger-api/swagger-codegen.git
21
21
  *
22
- * Swagger Codegen version: 3.0.52
22
+ * Swagger Codegen version: 3.0.54
23
23
  *
24
24
  * Do not edit the class manually.
25
25
  *
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Stories service.
31
31
  * @module api/StoriesApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -54,7 +54,7 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
54
54
  * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
55
55
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
56
56
  */
57
- _createClass(StoriesApi, [{
57
+ return _createClass(StoriesApi, [{
58
58
  key: "createStoryForTaskWithHttpInfo",
59
59
  value: function createStoryForTaskWithHttpInfo(body, task_gid, opts) {
60
60
  opts = opts || {};
@@ -79,25 +79,7 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
79
79
  var contentTypes = ['application/json; charset=UTF-8'];
80
80
  var accepts = ['application/json; charset=UTF-8'];
81
81
  var returnType = 'Blob';
82
-
83
- // Check if RETURN_COLLECTION is set and return a collection object if it is
84
- if (this.apiClient.RETURN_COLLECTION && false) {
85
- return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/stories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
86
- 'path': '/tasks/{task_gid}/stories',
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
- } else {
99
- return this.apiClient.callApi('/tasks/{task_gid}/stories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
100
- }
82
+ return this.apiClient.callApi('/tasks/{task_gid}/stories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
101
83
  }
102
84
 
103
85
  /**
@@ -112,14 +94,9 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
112
94
  }, {
113
95
  key: "createStoryForTask",
114
96
  value: function createStoryForTask(body, task_gid, opts) {
115
- // Check if RETURN_COLLECTION is set and return a collection object if it is
116
- if (this.apiClient.RETURN_COLLECTION && false) {
117
- return this.createStoryForTaskWithHttpInfo(body, task_gid, opts);
118
- } else {
119
- return this.createStoryForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
120
- return response_and_data.data;
121
- });
122
- }
97
+ return this.createStoryForTaskWithHttpInfo(body, task_gid, opts).then(function (response_and_data) {
98
+ return response_and_data.data;
99
+ });
123
100
  }
124
101
 
125
102
  /**
@@ -146,25 +123,7 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
146
123
  var contentTypes = [];
147
124
  var accepts = ['application/json; charset=UTF-8'];
148
125
  var returnType = 'Blob';
149
-
150
- // Check if RETURN_COLLECTION is set and return a collection object if it is
151
- if (this.apiClient.RETURN_COLLECTION && false) {
152
- return Collection.fromApiClient(this.apiClient.callApi('/stories/{story_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
153
- 'path': '/stories/{story_gid}',
154
- 'httpMethod': 'DELETE',
155
- 'pathParams': pathParams,
156
- 'queryParams': queryParams,
157
- 'headerParams': headerParams,
158
- 'formParams': formParams,
159
- 'bodyParam': postBody,
160
- 'authNames': authNames,
161
- 'contentTypes': contentTypes,
162
- 'accepts': accepts,
163
- 'returnType': returnType
164
- });
165
- } else {
166
- return this.apiClient.callApi('/stories/{story_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
167
- }
126
+ return this.apiClient.callApi('/stories/{story_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
168
127
  }
169
128
 
170
129
  /**
@@ -176,14 +135,9 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
176
135
  }, {
177
136
  key: "deleteStory",
178
137
  value: function deleteStory(story_gid) {
179
- // Check if RETURN_COLLECTION is set and return a collection object if it is
180
- if (this.apiClient.RETURN_COLLECTION && false) {
181
- return this.deleteStoryWithHttpInfo(story_gid);
182
- } else {
183
- return this.deleteStoryWithHttpInfo(story_gid).then(function (response_and_data) {
184
- return response_and_data.data;
185
- });
186
- }
138
+ return this.deleteStoryWithHttpInfo(story_gid).then(function (response_and_data) {
139
+ return response_and_data.data;
140
+ });
187
141
  }
188
142
 
189
143
  /**
@@ -217,9 +171,8 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
217
171
  var contentTypes = [];
218
172
  var accepts = ['application/json; charset=UTF-8'];
219
173
  var returnType = 'Blob';
220
-
221
174
  // Check if RETURN_COLLECTION is set and return a collection object if it is
222
- if (this.apiClient.RETURN_COLLECTION && true) {
175
+ if (this.apiClient.RETURN_COLLECTION) {
223
176
  return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/stories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
224
177
  'path': '/tasks/{task_gid}/stories',
225
178
  'httpMethod': 'GET',
@@ -233,9 +186,8 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
233
186
  'accepts': accepts,
234
187
  'returnType': returnType
235
188
  });
236
- } else {
237
- return this.apiClient.callApi('/tasks/{task_gid}/stories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
238
189
  }
190
+ return this.apiClient.callApi('/tasks/{task_gid}/stories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
239
191
  }
240
192
 
241
193
  /**
@@ -252,13 +204,12 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
252
204
  key: "getStoriesForTask",
253
205
  value: function getStoriesForTask(task_gid, opts) {
254
206
  // Check if RETURN_COLLECTION is set and return a collection object if it is
255
- if (this.apiClient.RETURN_COLLECTION && true) {
207
+ if (this.apiClient.RETURN_COLLECTION) {
256
208
  return this.getStoriesForTaskWithHttpInfo(task_gid, opts);
257
- } else {
258
- return this.getStoriesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
259
- return response_and_data.data;
260
- });
261
209
  }
210
+ return this.getStoriesForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
211
+ return response_and_data.data;
212
+ });
262
213
  }
263
214
 
264
215
  /**
@@ -290,25 +241,7 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
290
241
  var contentTypes = [];
291
242
  var accepts = ['application/json; charset=UTF-8'];
292
243
  var returnType = 'Blob';
293
-
294
- // Check if RETURN_COLLECTION is set and return a collection object if it is
295
- if (this.apiClient.RETURN_COLLECTION && false) {
296
- return Collection.fromApiClient(this.apiClient.callApi('/stories/{story_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
297
- 'path': '/stories/{story_gid}',
298
- 'httpMethod': 'GET',
299
- 'pathParams': pathParams,
300
- 'queryParams': queryParams,
301
- 'headerParams': headerParams,
302
- 'formParams': formParams,
303
- 'bodyParam': postBody,
304
- 'authNames': authNames,
305
- 'contentTypes': contentTypes,
306
- 'accepts': accepts,
307
- 'returnType': returnType
308
- });
309
- } else {
310
- return this.apiClient.callApi('/stories/{story_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
311
- }
244
+ return this.apiClient.callApi('/stories/{story_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
312
245
  }
313
246
 
314
247
  /**
@@ -322,14 +255,9 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
322
255
  }, {
323
256
  key: "getStory",
324
257
  value: function getStory(story_gid, opts) {
325
- // Check if RETURN_COLLECTION is set and return a collection object if it is
326
- if (this.apiClient.RETURN_COLLECTION && false) {
327
- return this.getStoryWithHttpInfo(story_gid, opts);
328
- } else {
329
- return this.getStoryWithHttpInfo(story_gid, opts).then(function (response_and_data) {
330
- return response_and_data.data;
331
- });
332
- }
258
+ return this.getStoryWithHttpInfo(story_gid, opts).then(function (response_and_data) {
259
+ return response_and_data.data;
260
+ });
333
261
  }
334
262
 
335
263
  /**
@@ -366,25 +294,7 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
366
294
  var contentTypes = ['application/json; charset=UTF-8'];
367
295
  var accepts = ['application/json; charset=UTF-8'];
368
296
  var returnType = 'Blob';
369
-
370
- // Check if RETURN_COLLECTION is set and return a collection object if it is
371
- if (this.apiClient.RETURN_COLLECTION && false) {
372
- return Collection.fromApiClient(this.apiClient.callApi('/stories/{story_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
373
- 'path': '/stories/{story_gid}',
374
- 'httpMethod': 'PUT',
375
- 'pathParams': pathParams,
376
- 'queryParams': queryParams,
377
- 'headerParams': headerParams,
378
- 'formParams': formParams,
379
- 'bodyParam': postBody,
380
- 'authNames': authNames,
381
- 'contentTypes': contentTypes,
382
- 'accepts': accepts,
383
- 'returnType': returnType
384
- });
385
- } else {
386
- return this.apiClient.callApi('/stories/{story_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
387
- }
297
+ return this.apiClient.callApi('/stories/{story_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
388
298
  }
389
299
 
390
300
  /**
@@ -399,15 +309,9 @@ var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
399
309
  }, {
400
310
  key: "updateStory",
401
311
  value: function updateStory(body, story_gid, opts) {
402
- // Check if RETURN_COLLECTION is set and return a collection object if it is
403
- if (this.apiClient.RETURN_COLLECTION && false) {
404
- return this.updateStoryWithHttpInfo(body, story_gid, opts);
405
- } else {
406
- return this.updateStoryWithHttpInfo(body, story_gid, opts).then(function (response_and_data) {
407
- return response_and_data.data;
408
- });
409
- }
312
+ return this.updateStoryWithHttpInfo(body, story_gid, opts).then(function (response_and_data) {
313
+ return response_and_data.data;
314
+ });
410
315
  }
411
316
  }]);
412
- return StoriesApi;
413
317
  }();
@@ -9,7 +9,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
9
9
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
10
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
11
11
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
13
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
14
14
  * Asana
15
15
  * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/openapi/master/defs/asana_oas.yaml).
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * NOTE: This class is auto generated by the swagger code generator program.
20
20
  * https://github.com/swagger-api/swagger-codegen.git
21
21
  *
22
- * Swagger Codegen version: 3.0.52
22
+ * Swagger Codegen version: 3.0.54
23
23
  *
24
24
  * Do not edit the class manually.
25
25
  *
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Tags service.
31
31
  * @module api/TagsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -53,7 +53,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
53
53
  * @param {Array.<module:model/String>} opts.opt_fields This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
54
54
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
55
55
  */
56
- _createClass(TagsApi, [{
56
+ return _createClass(TagsApi, [{
57
57
  key: "createTagWithHttpInfo",
58
58
  value: function createTagWithHttpInfo(body, opts) {
59
59
  opts = opts || {};
@@ -72,25 +72,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
72
72
  var contentTypes = ['application/json; charset=UTF-8'];
73
73
  var accepts = ['application/json; charset=UTF-8'];
74
74
  var returnType = 'Blob';
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(this.apiClient.callApi('/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
79
- 'path': '/tags',
80
- 'httpMethod': 'POST',
81
- 'pathParams': pathParams,
82
- 'queryParams': queryParams,
83
- 'headerParams': headerParams,
84
- 'formParams': formParams,
85
- 'bodyParam': postBody,
86
- 'authNames': authNames,
87
- 'contentTypes': contentTypes,
88
- 'accepts': accepts,
89
- 'returnType': returnType
90
- });
91
- } else {
92
- return this.apiClient.callApi('/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
93
- }
75
+ return this.apiClient.callApi('/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
94
76
  }
95
77
 
96
78
  /**
@@ -104,14 +86,9 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
104
86
  }, {
105
87
  key: "createTag",
106
88
  value: function createTag(body, opts) {
107
- // Check if RETURN_COLLECTION is set and return a collection object if it is
108
- if (this.apiClient.RETURN_COLLECTION && false) {
109
- return this.createTagWithHttpInfo(body, opts);
110
- } else {
111
- return this.createTagWithHttpInfo(body, opts).then(function (response_and_data) {
112
- return response_and_data.data;
113
- });
114
- }
89
+ return this.createTagWithHttpInfo(body, opts).then(function (response_and_data) {
90
+ return response_and_data.data;
91
+ });
115
92
  }
116
93
 
117
94
  /**
@@ -148,25 +125,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
148
125
  var contentTypes = ['application/json; charset=UTF-8'];
149
126
  var accepts = ['application/json; charset=UTF-8'];
150
127
  var returnType = 'Blob';
151
-
152
- // Check if RETURN_COLLECTION is set and return a collection object if it is
153
- if (this.apiClient.RETURN_COLLECTION && false) {
154
- return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
155
- 'path': '/workspaces/{workspace_gid}/tags',
156
- 'httpMethod': 'POST',
157
- 'pathParams': pathParams,
158
- 'queryParams': queryParams,
159
- 'headerParams': headerParams,
160
- 'formParams': formParams,
161
- 'bodyParam': postBody,
162
- 'authNames': authNames,
163
- 'contentTypes': contentTypes,
164
- 'accepts': accepts,
165
- 'returnType': returnType
166
- });
167
- } else {
168
- return this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
169
- }
128
+ return this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
170
129
  }
171
130
 
172
131
  /**
@@ -181,14 +140,9 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
181
140
  }, {
182
141
  key: "createTagForWorkspace",
183
142
  value: function createTagForWorkspace(body, workspace_gid, opts) {
184
- // Check if RETURN_COLLECTION is set and return a collection object if it is
185
- if (this.apiClient.RETURN_COLLECTION && false) {
186
- return this.createTagForWorkspaceWithHttpInfo(body, workspace_gid, opts);
187
- } else {
188
- return this.createTagForWorkspaceWithHttpInfo(body, workspace_gid, opts).then(function (response_and_data) {
189
- return response_and_data.data;
190
- });
191
- }
143
+ return this.createTagForWorkspaceWithHttpInfo(body, workspace_gid, opts).then(function (response_and_data) {
144
+ return response_and_data.data;
145
+ });
192
146
  }
193
147
 
194
148
  /**
@@ -215,25 +169,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
215
169
  var contentTypes = [];
216
170
  var accepts = ['application/json; charset=UTF-8'];
217
171
  var returnType = 'Blob';
218
-
219
- // Check if RETURN_COLLECTION is set and return a collection object if it is
220
- if (this.apiClient.RETURN_COLLECTION && false) {
221
- return Collection.fromApiClient(this.apiClient.callApi('/tags/{tag_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
222
- 'path': '/tags/{tag_gid}',
223
- 'httpMethod': 'DELETE',
224
- 'pathParams': pathParams,
225
- 'queryParams': queryParams,
226
- 'headerParams': headerParams,
227
- 'formParams': formParams,
228
- 'bodyParam': postBody,
229
- 'authNames': authNames,
230
- 'contentTypes': contentTypes,
231
- 'accepts': accepts,
232
- 'returnType': returnType
233
- });
234
- } else {
235
- return this.apiClient.callApi('/tags/{tag_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
236
- }
172
+ return this.apiClient.callApi('/tags/{tag_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
237
173
  }
238
174
 
239
175
  /**
@@ -245,14 +181,9 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
245
181
  }, {
246
182
  key: "deleteTag",
247
183
  value: function deleteTag(tag_gid) {
248
- // Check if RETURN_COLLECTION is set and return a collection object if it is
249
- if (this.apiClient.RETURN_COLLECTION && false) {
250
- return this.deleteTagWithHttpInfo(tag_gid);
251
- } else {
252
- return this.deleteTagWithHttpInfo(tag_gid).then(function (response_and_data) {
253
- return response_and_data.data;
254
- });
255
- }
184
+ return this.deleteTagWithHttpInfo(tag_gid).then(function (response_and_data) {
185
+ return response_and_data.data;
186
+ });
256
187
  }
257
188
 
258
189
  /**
@@ -284,25 +215,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
284
215
  var contentTypes = [];
285
216
  var accepts = ['application/json; charset=UTF-8'];
286
217
  var returnType = 'Blob';
287
-
288
- // Check if RETURN_COLLECTION is set and return a collection object if it is
289
- if (this.apiClient.RETURN_COLLECTION && false) {
290
- return Collection.fromApiClient(this.apiClient.callApi('/tags/{tag_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
291
- 'path': '/tags/{tag_gid}',
292
- 'httpMethod': 'GET',
293
- 'pathParams': pathParams,
294
- 'queryParams': queryParams,
295
- 'headerParams': headerParams,
296
- 'formParams': formParams,
297
- 'bodyParam': postBody,
298
- 'authNames': authNames,
299
- 'contentTypes': contentTypes,
300
- 'accepts': accepts,
301
- 'returnType': returnType
302
- });
303
- } else {
304
- return this.apiClient.callApi('/tags/{tag_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
305
- }
218
+ return this.apiClient.callApi('/tags/{tag_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
306
219
  }
307
220
 
308
221
  /**
@@ -316,14 +229,9 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
316
229
  }, {
317
230
  key: "getTag",
318
231
  value: function getTag(tag_gid, opts) {
319
- // Check if RETURN_COLLECTION is set and return a collection object if it is
320
- if (this.apiClient.RETURN_COLLECTION && false) {
321
- return this.getTagWithHttpInfo(tag_gid, opts);
322
- } else {
323
- return this.getTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
324
- return response_and_data.data;
325
- });
326
- }
232
+ return this.getTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
233
+ return response_and_data.data;
234
+ });
327
235
  }
328
236
 
329
237
  /**
@@ -351,9 +259,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
351
259
  var contentTypes = [];
352
260
  var accepts = ['application/json; charset=UTF-8'];
353
261
  var returnType = 'Blob';
354
-
355
262
  // Check if RETURN_COLLECTION is set and return a collection object if it is
356
- if (this.apiClient.RETURN_COLLECTION && true) {
263
+ if (this.apiClient.RETURN_COLLECTION) {
357
264
  return Collection.fromApiClient(this.apiClient.callApi('/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
358
265
  'path': '/tags',
359
266
  'httpMethod': 'GET',
@@ -367,9 +274,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
367
274
  'accepts': accepts,
368
275
  'returnType': returnType
369
276
  });
370
- } else {
371
- return this.apiClient.callApi('/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
372
277
  }
278
+ return this.apiClient.callApi('/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
373
279
  }
374
280
 
375
281
  /**
@@ -386,13 +292,12 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
386
292
  key: "getTags",
387
293
  value: function getTags(opts) {
388
294
  // Check if RETURN_COLLECTION is set and return a collection object if it is
389
- if (this.apiClient.RETURN_COLLECTION && true) {
295
+ if (this.apiClient.RETURN_COLLECTION) {
390
296
  return this.getTagsWithHttpInfo(opts);
391
- } else {
392
- return this.getTagsWithHttpInfo(opts).then(function (response_and_data) {
393
- return response_and_data.data;
394
- });
395
297
  }
298
+ return this.getTagsWithHttpInfo(opts).then(function (response_and_data) {
299
+ return response_and_data.data;
300
+ });
396
301
  }
397
302
 
398
303
  /**
@@ -426,9 +331,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
426
331
  var contentTypes = [];
427
332
  var accepts = ['application/json; charset=UTF-8'];
428
333
  var returnType = 'Blob';
429
-
430
334
  // Check if RETURN_COLLECTION is set and return a collection object if it is
431
- if (this.apiClient.RETURN_COLLECTION && true) {
335
+ if (this.apiClient.RETURN_COLLECTION) {
432
336
  return Collection.fromApiClient(this.apiClient.callApi('/tasks/{task_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
433
337
  'path': '/tasks/{task_gid}/tags',
434
338
  'httpMethod': 'GET',
@@ -442,9 +346,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
442
346
  'accepts': accepts,
443
347
  'returnType': returnType
444
348
  });
445
- } else {
446
- return this.apiClient.callApi('/tasks/{task_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
447
349
  }
350
+ return this.apiClient.callApi('/tasks/{task_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
448
351
  }
449
352
 
450
353
  /**
@@ -461,13 +364,12 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
461
364
  key: "getTagsForTask",
462
365
  value: function getTagsForTask(task_gid, opts) {
463
366
  // Check if RETURN_COLLECTION is set and return a collection object if it is
464
- if (this.apiClient.RETURN_COLLECTION && true) {
367
+ if (this.apiClient.RETURN_COLLECTION) {
465
368
  return this.getTagsForTaskWithHttpInfo(task_gid, opts);
466
- } else {
467
- return this.getTagsForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
468
- return response_and_data.data;
469
- });
470
369
  }
370
+ return this.getTagsForTaskWithHttpInfo(task_gid, opts).then(function (response_and_data) {
371
+ return response_and_data.data;
372
+ });
471
373
  }
472
374
 
473
375
  /**
@@ -501,9 +403,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
501
403
  var contentTypes = [];
502
404
  var accepts = ['application/json; charset=UTF-8'];
503
405
  var returnType = 'Blob';
504
-
505
406
  // Check if RETURN_COLLECTION is set and return a collection object if it is
506
- if (this.apiClient.RETURN_COLLECTION && true) {
407
+ if (this.apiClient.RETURN_COLLECTION) {
507
408
  return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
508
409
  'path': '/workspaces/{workspace_gid}/tags',
509
410
  'httpMethod': 'GET',
@@ -517,9 +418,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
517
418
  'accepts': accepts,
518
419
  'returnType': returnType
519
420
  });
520
- } else {
521
- return this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
522
421
  }
422
+ return this.apiClient.callApi('/workspaces/{workspace_gid}/tags', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
523
423
  }
524
424
 
525
425
  /**
@@ -536,13 +436,12 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
536
436
  key: "getTagsForWorkspace",
537
437
  value: function getTagsForWorkspace(workspace_gid, opts) {
538
438
  // Check if RETURN_COLLECTION is set and return a collection object if it is
539
- if (this.apiClient.RETURN_COLLECTION && true) {
439
+ if (this.apiClient.RETURN_COLLECTION) {
540
440
  return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts);
541
- } else {
542
- return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
543
- return response_and_data.data;
544
- });
545
441
  }
442
+ return this.getTagsForWorkspaceWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
443
+ return response_and_data.data;
444
+ });
546
445
  }
547
446
 
548
447
  /**
@@ -574,25 +473,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
574
473
  var contentTypes = [];
575
474
  var accepts = ['application/json; charset=UTF-8'];
576
475
  var returnType = 'Blob';
577
-
578
- // Check if RETURN_COLLECTION is set and return a collection object if it is
579
- if (this.apiClient.RETURN_COLLECTION && false) {
580
- return Collection.fromApiClient(this.apiClient.callApi('/tags/{tag_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
581
- 'path': '/tags/{tag_gid}',
582
- 'httpMethod': 'PUT',
583
- 'pathParams': pathParams,
584
- 'queryParams': queryParams,
585
- 'headerParams': headerParams,
586
- 'formParams': formParams,
587
- 'bodyParam': postBody,
588
- 'authNames': authNames,
589
- 'contentTypes': contentTypes,
590
- 'accepts': accepts,
591
- 'returnType': returnType
592
- });
593
- } else {
594
- return this.apiClient.callApi('/tags/{tag_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
595
- }
476
+ return this.apiClient.callApi('/tags/{tag_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
596
477
  }
597
478
 
598
479
  /**
@@ -606,15 +487,9 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
606
487
  }, {
607
488
  key: "updateTag",
608
489
  value: function updateTag(tag_gid, opts) {
609
- // Check if RETURN_COLLECTION is set and return a collection object if it is
610
- if (this.apiClient.RETURN_COLLECTION && false) {
611
- return this.updateTagWithHttpInfo(tag_gid, opts);
612
- } else {
613
- return this.updateTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
614
- return response_and_data.data;
615
- });
616
- }
490
+ return this.updateTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
491
+ return response_and_data.data;
492
+ });
617
493
  }
618
494
  }]);
619
- return TagsApi;
620
495
  }();