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
  * Events service.
31
31
  * @module api/EventsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -48,13 +48,13 @@ var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
48
48
  /**
49
49
  * Get events on a resource
50
50
  * Returns the full record for all events that have occurred since the sync token was created. A &#x60;GET&#x60; request to the endpoint &#x60;/[path_to_resource]/events&#x60; can be made in lieu of including the resource ID in the data for the request. Asana limits a single sync token to 100 events. If more than 100 events exist for a given resource, &#x60;has_more: true&#x60; will be returned in the response, indicating that there are more events to pull. *Note: The resource returned will be the resource that triggered the event. This may be different from the one that the events were requested for. For example, a subscription to a project will contain events for tasks contained within the project.*
51
- * @param {String} resource A resource ID to subscribe to. The resource can be a task or project.
51
+ * @param {String} resource A resource ID to subscribe to. The resource can be a task, project, or goal.
52
52
  * @param {Object} opts Optional parameters
53
53
  * @param {String} opts.sync A sync token received from the last request, or none on first sync. Events will be returned from the point in time that the sync token was generated. *Note: On your first request, omit the sync token. The response will be the same as for an expired sync token, and will include a new valid sync token.If the sync token is too old (which may happen from time to time) the API will return a &#x60;412 Precondition Failed&#x60; error, and include a fresh sync token in the response.*
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(EventsApi, [{
57
+ return _createClass(EventsApi, [{
58
58
  key: "getEventsWithHttpInfo",
59
59
  value: function getEventsWithHttpInfo(resource, opts) {
60
60
  opts = opts || {};
@@ -74,9 +74,8 @@ var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
74
74
  var contentTypes = [];
75
75
  var accepts = ['application/json; charset=UTF-8'];
76
76
  var returnType = 'Blob';
77
-
78
77
  // Check if RETURN_COLLECTION is set and return a collection object if it is
79
- if (this.apiClient.RETURN_COLLECTION && true) {
78
+ if (this.apiClient.RETURN_COLLECTION) {
80
79
  return Collection.fromApiClient(this.apiClient.callApi('/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
81
80
  'path': '/events',
82
81
  'httpMethod': 'GET',
@@ -90,15 +89,14 @@ var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
90
89
  'accepts': accepts,
91
90
  'returnType': returnType
92
91
  });
93
- } else {
94
- return this.apiClient.callApi('/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
95
92
  }
93
+ return this.apiClient.callApi('/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
96
94
  }
97
95
 
98
96
  /**
99
97
  * Get events on a resource
100
98
  * Returns the full record for all events that have occurred since the sync token was created. A &#x60;GET&#x60; request to the endpoint &#x60;/[path_to_resource]/events&#x60; can be made in lieu of including the resource ID in the data for the request. Asana limits a single sync token to 100 events. If more than 100 events exist for a given resource, &#x60;has_more: true&#x60; will be returned in the response, indicating that there are more events to pull. *Note: The resource returned will be the resource that triggered the event. This may be different from the one that the events were requested for. For example, a subscription to a project will contain events for tasks contained within the project.*
101
- * @param {<&vendorExtensions.x-jsdoc-type>} resource A resource ID to subscribe to. The resource can be a task or project.
99
+ * @param {<&vendorExtensions.x-jsdoc-type>} resource A resource ID to subscribe to. The resource can be a task, project, or goal.
102
100
  * @param {Object} opts Optional parameters
103
101
  * @param {String} opts.sync A sync token received from the last request, or none on first sync. Events will be returned from the point in time that the sync token was generated. *Note: On your first request, omit the sync token. The response will be the same as for an expired sync token, and will include a new valid sync token.If the sync token is too old (which may happen from time to time) the API will return a &#x60;412 Precondition Failed&#x60; error, and include a fresh sync token in the response.*
104
102
  * @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.
@@ -108,14 +106,12 @@ var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
108
106
  key: "getEvents",
109
107
  value: function getEvents(resource, opts) {
110
108
  // Check if RETURN_COLLECTION is set and return a collection object if it is
111
- if (this.apiClient.RETURN_COLLECTION && true) {
109
+ if (this.apiClient.RETURN_COLLECTION) {
112
110
  return this.getEventsWithHttpInfo(resource, opts);
113
- } else {
114
- return this.getEventsWithHttpInfo(resource, opts).then(function (response_and_data) {
115
- return response_and_data.data;
116
- });
117
111
  }
112
+ return this.getEventsWithHttpInfo(resource, opts).then(function (response_and_data) {
113
+ return response_and_data.data;
114
+ });
118
115
  }
119
116
  }]);
120
- return EventsApi;
121
117
  }();
@@ -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
  * GoalRelationships service.
31
31
  * @module api/GoalRelationshipsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -54,7 +54,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__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(GoalRelationshipsApi, [{
57
+ return _createClass(GoalRelationshipsApi, [{
58
58
  key: "addSupportingRelationshipWithHttpInfo",
59
59
  value: function addSupportingRelationshipWithHttpInfo(body, goal_gid, opts) {
60
60
  opts = opts || {};
@@ -79,25 +79,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__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('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
86
- 'path': '/goals/{goal_gid}/addSupportingRelationship',
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('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
100
- }
82
+ return this.apiClient.callApi('/goals/{goal_gid}/addSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
101
83
  }
102
84
 
103
85
  /**
@@ -112,14 +94,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
112
94
  }, {
113
95
  key: "addSupportingRelationship",
114
96
  value: function addSupportingRelationship(body, goal_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.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts);
118
- } else {
119
- return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
120
- return response_and_data.data;
121
- });
122
- }
97
+ return this.addSupportingRelationshipWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
98
+ return response_and_data.data;
99
+ });
123
100
  }
124
101
 
125
102
  /**
@@ -151,25 +128,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
151
128
  var contentTypes = [];
152
129
  var accepts = ['application/json; charset=UTF-8'];
153
130
  var returnType = 'Blob';
154
-
155
- // Check if RETURN_COLLECTION is set and return a collection object if it is
156
- if (this.apiClient.RETURN_COLLECTION && false) {
157
- return Collection.fromApiClient(this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
158
- 'path': '/goal_relationships/{goal_relationship_gid}',
159
- 'httpMethod': 'GET',
160
- 'pathParams': pathParams,
161
- 'queryParams': queryParams,
162
- 'headerParams': headerParams,
163
- 'formParams': formParams,
164
- 'bodyParam': postBody,
165
- 'authNames': authNames,
166
- 'contentTypes': contentTypes,
167
- 'accepts': accepts,
168
- 'returnType': returnType
169
- });
170
- } else {
171
- return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
172
- }
131
+ return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
173
132
  }
174
133
 
175
134
  /**
@@ -183,14 +142,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
183
142
  }, {
184
143
  key: "getGoalRelationship",
185
144
  value: function getGoalRelationship(goal_relationship_gid, opts) {
186
- // Check if RETURN_COLLECTION is set and return a collection object if it is
187
- if (this.apiClient.RETURN_COLLECTION && false) {
188
- return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts);
189
- } else {
190
- return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts).then(function (response_and_data) {
191
- return response_and_data.data;
192
- });
193
- }
145
+ return this.getGoalRelationshipWithHttpInfo(goal_relationship_gid, opts).then(function (response_and_data) {
146
+ return response_and_data.data;
147
+ });
194
148
  }
195
149
 
196
150
  /**
@@ -224,9 +178,8 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
224
178
  var contentTypes = [];
225
179
  var accepts = ['application/json; charset=UTF-8'];
226
180
  var returnType = 'Blob';
227
-
228
181
  // Check if RETURN_COLLECTION is set and return a collection object if it is
229
- if (this.apiClient.RETURN_COLLECTION && true) {
182
+ if (this.apiClient.RETURN_COLLECTION) {
230
183
  return Collection.fromApiClient(this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
231
184
  'path': '/goal_relationships',
232
185
  'httpMethod': 'GET',
@@ -240,9 +193,8 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
240
193
  'accepts': accepts,
241
194
  'returnType': returnType
242
195
  });
243
- } else {
244
- return this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
245
196
  }
197
+ return this.apiClient.callApi('/goal_relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
246
198
  }
247
199
 
248
200
  /**
@@ -260,13 +212,12 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
260
212
  key: "getGoalRelationships",
261
213
  value: function getGoalRelationships(supported_goal, opts) {
262
214
  // Check if RETURN_COLLECTION is set and return a collection object if it is
263
- if (this.apiClient.RETURN_COLLECTION && true) {
215
+ if (this.apiClient.RETURN_COLLECTION) {
264
216
  return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts);
265
- } else {
266
- return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts).then(function (response_and_data) {
267
- return response_and_data.data;
268
- });
269
217
  }
218
+ return this.getGoalRelationshipsWithHttpInfo(supported_goal, opts).then(function (response_and_data) {
219
+ return response_and_data.data;
220
+ });
270
221
  }
271
222
 
272
223
  /**
@@ -298,25 +249,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
298
249
  var contentTypes = ['application/json; charset=UTF-8'];
299
250
  var accepts = ['application/json; charset=UTF-8'];
300
251
  var returnType = 'Blob';
301
-
302
- // Check if RETURN_COLLECTION is set and return a collection object if it is
303
- if (this.apiClient.RETURN_COLLECTION && false) {
304
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
305
- 'path': '/goals/{goal_gid}/removeSupportingRelationship',
306
- 'httpMethod': 'POST',
307
- 'pathParams': pathParams,
308
- 'queryParams': queryParams,
309
- 'headerParams': headerParams,
310
- 'formParams': formParams,
311
- 'bodyParam': postBody,
312
- 'authNames': authNames,
313
- 'contentTypes': contentTypes,
314
- 'accepts': accepts,
315
- 'returnType': returnType
316
- });
317
- } else {
318
- return this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
319
- }
252
+ return this.apiClient.callApi('/goals/{goal_gid}/removeSupportingRelationship', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
320
253
  }
321
254
 
322
255
  /**
@@ -329,14 +262,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
329
262
  }, {
330
263
  key: "removeSupportingRelationship",
331
264
  value: function removeSupportingRelationship(body, goal_gid) {
332
- // Check if RETURN_COLLECTION is set and return a collection object if it is
333
- if (this.apiClient.RETURN_COLLECTION && false) {
334
- return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid);
335
- } else {
336
- return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid).then(function (response_and_data) {
337
- return response_and_data.data;
338
- });
339
- }
265
+ return this.removeSupportingRelationshipWithHttpInfo(body, goal_gid).then(function (response_and_data) {
266
+ return response_and_data.data;
267
+ });
340
268
  }
341
269
 
342
270
  /**
@@ -373,25 +301,7 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
373
301
  var contentTypes = ['application/json; charset=UTF-8'];
374
302
  var accepts = ['application/json; charset=UTF-8'];
375
303
  var returnType = 'Blob';
376
-
377
- // Check if RETURN_COLLECTION is set and return a collection object if it is
378
- if (this.apiClient.RETURN_COLLECTION && false) {
379
- return Collection.fromApiClient(this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
380
- 'path': '/goal_relationships/{goal_relationship_gid}',
381
- 'httpMethod': 'PUT',
382
- 'pathParams': pathParams,
383
- 'queryParams': queryParams,
384
- 'headerParams': headerParams,
385
- 'formParams': formParams,
386
- 'bodyParam': postBody,
387
- 'authNames': authNames,
388
- 'contentTypes': contentTypes,
389
- 'accepts': accepts,
390
- 'returnType': returnType
391
- });
392
- } else {
393
- return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
394
- }
304
+ return this.apiClient.callApi('/goal_relationships/{goal_relationship_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
395
305
  }
396
306
 
397
307
  /**
@@ -406,15 +316,9 @@ var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function
406
316
  }, {
407
317
  key: "updateGoalRelationship",
408
318
  value: function updateGoalRelationship(body, goal_relationship_gid, opts) {
409
- // Check if RETURN_COLLECTION is set and return a collection object if it is
410
- if (this.apiClient.RETURN_COLLECTION && false) {
411
- return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts);
412
- } else {
413
- return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts).then(function (response_and_data) {
414
- return response_and_data.data;
415
- });
416
- }
319
+ return this.updateGoalRelationshipWithHttpInfo(body, goal_relationship_gid, opts).then(function (response_and_data) {
320
+ return response_and_data.data;
321
+ });
417
322
  }
418
323
  }]);
419
- return GoalRelationshipsApi;
420
324
  }();