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
  * Rules service.
31
31
  * @module api/RulesApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -52,7 +52,7 @@ var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
52
52
  * @param {String} rule_trigger_gid The ID of the incoming web request trigger. This value is a path parameter that is automatically generated for the API endpoint.
53
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
54
54
  */
55
- _createClass(RulesApi, [{
55
+ return _createClass(RulesApi, [{
56
56
  key: "triggerRuleWithHttpInfo",
57
57
  value: function triggerRuleWithHttpInfo(body, rule_trigger_gid) {
58
58
  var postBody = body;
@@ -74,25 +74,7 @@ var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
74
74
  var contentTypes = ['application/json; charset=UTF-8'];
75
75
  var accepts = ['application/json; charset=UTF-8'];
76
76
  var returnType = 'Blob';
77
-
78
- // Check if RETURN_COLLECTION is set and return a collection object if it is
79
- if (this.apiClient.RETURN_COLLECTION && false) {
80
- return Collection.fromApiClient(this.apiClient.callApi('/rule_triggers/{rule_trigger_gid}/run', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
81
- 'path': '/rule_triggers/{rule_trigger_gid}/run',
82
- 'httpMethod': 'POST',
83
- 'pathParams': pathParams,
84
- 'queryParams': queryParams,
85
- 'headerParams': headerParams,
86
- 'formParams': formParams,
87
- 'bodyParam': postBody,
88
- 'authNames': authNames,
89
- 'contentTypes': contentTypes,
90
- 'accepts': accepts,
91
- 'returnType': returnType
92
- });
93
- } else {
94
- return this.apiClient.callApi('/rule_triggers/{rule_trigger_gid}/run', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
95
- }
77
+ return this.apiClient.callApi('/rule_triggers/{rule_trigger_gid}/run', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
96
78
  }
97
79
 
98
80
  /**
@@ -105,15 +87,9 @@ var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
105
87
  }, {
106
88
  key: "triggerRule",
107
89
  value: function triggerRule(body, rule_trigger_gid) {
108
- // Check if RETURN_COLLECTION is set and return a collection object if it is
109
- if (this.apiClient.RETURN_COLLECTION && false) {
110
- return this.triggerRuleWithHttpInfo(body, rule_trigger_gid);
111
- } else {
112
- return this.triggerRuleWithHttpInfo(body, rule_trigger_gid).then(function (response_and_data) {
113
- return response_and_data.data;
114
- });
115
- }
90
+ return this.triggerRuleWithHttpInfo(body, rule_trigger_gid).then(function (response_and_data) {
91
+ return response_and_data.data;
92
+ });
116
93
  }
117
94
  }]);
118
- return RulesApi;
119
95
  }();
@@ -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
  * Sections service.
31
31
  * @module api/SectionsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -53,7 +53,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
53
53
  * @param {module:model/Object} opts.body The task and optionally the insert location.
54
54
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
55
55
  */
56
- _createClass(SectionsApi, [{
56
+ return _createClass(SectionsApi, [{
57
57
  key: "addTaskForSectionWithHttpInfo",
58
58
  value: function addTaskForSectionWithHttpInfo(section_gid, opts) {
59
59
  opts = opts || {};
@@ -74,25 +74,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
74
74
  var contentTypes = ['application/json; charset=UTF-8'];
75
75
  var accepts = ['application/json; charset=UTF-8'];
76
76
  var returnType = 'Blob';
77
-
78
- // Check if RETURN_COLLECTION is set and return a collection object if it is
79
- if (this.apiClient.RETURN_COLLECTION && false) {
80
- return Collection.fromApiClient(this.apiClient.callApi('/sections/{section_gid}/addTask', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
81
- 'path': '/sections/{section_gid}/addTask',
82
- 'httpMethod': 'POST',
83
- 'pathParams': pathParams,
84
- 'queryParams': queryParams,
85
- 'headerParams': headerParams,
86
- 'formParams': formParams,
87
- 'bodyParam': postBody,
88
- 'authNames': authNames,
89
- 'contentTypes': contentTypes,
90
- 'accepts': accepts,
91
- 'returnType': returnType
92
- });
93
- } else {
94
- return this.apiClient.callApi('/sections/{section_gid}/addTask', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
95
- }
77
+ return this.apiClient.callApi('/sections/{section_gid}/addTask', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
96
78
  }
97
79
 
98
80
  /**
@@ -106,14 +88,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
106
88
  }, {
107
89
  key: "addTaskForSection",
108
90
  value: function addTaskForSection(section_gid, opts) {
109
- // Check if RETURN_COLLECTION is set and return a collection object if it is
110
- if (this.apiClient.RETURN_COLLECTION && false) {
111
- return this.addTaskForSectionWithHttpInfo(section_gid, opts);
112
- } else {
113
- return this.addTaskForSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
114
- return response_and_data.data;
115
- });
116
- }
91
+ return this.addTaskForSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
92
+ return response_and_data.data;
93
+ });
117
94
  }
118
95
 
119
96
  /**
@@ -146,25 +123,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
146
123
  var contentTypes = ['application/json; charset=UTF-8'];
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('/projects/{project_gid}/sections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
153
- 'path': '/projects/{project_gid}/sections',
154
- 'httpMethod': 'POST',
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('/projects/{project_gid}/sections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
167
- }
126
+ return this.apiClient.callApi('/projects/{project_gid}/sections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
168
127
  }
169
128
 
170
129
  /**
@@ -179,14 +138,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
179
138
  }, {
180
139
  key: "createSectionForProject",
181
140
  value: function createSectionForProject(project_gid, opts) {
182
- // Check if RETURN_COLLECTION is set and return a collection object if it is
183
- if (this.apiClient.RETURN_COLLECTION && false) {
184
- return this.createSectionForProjectWithHttpInfo(project_gid, opts);
185
- } else {
186
- return this.createSectionForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
187
- return response_and_data.data;
188
- });
189
- }
141
+ return this.createSectionForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
142
+ return response_and_data.data;
143
+ });
190
144
  }
191
145
 
192
146
  /**
@@ -213,25 +167,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
213
167
  var contentTypes = [];
214
168
  var accepts = ['application/json; charset=UTF-8'];
215
169
  var returnType = 'Blob';
216
-
217
- // Check if RETURN_COLLECTION is set and return a collection object if it is
218
- if (this.apiClient.RETURN_COLLECTION && false) {
219
- return Collection.fromApiClient(this.apiClient.callApi('/sections/{section_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
220
- 'path': '/sections/{section_gid}',
221
- 'httpMethod': 'DELETE',
222
- 'pathParams': pathParams,
223
- 'queryParams': queryParams,
224
- 'headerParams': headerParams,
225
- 'formParams': formParams,
226
- 'bodyParam': postBody,
227
- 'authNames': authNames,
228
- 'contentTypes': contentTypes,
229
- 'accepts': accepts,
230
- 'returnType': returnType
231
- });
232
- } else {
233
- return this.apiClient.callApi('/sections/{section_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
234
- }
170
+ return this.apiClient.callApi('/sections/{section_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
235
171
  }
236
172
 
237
173
  /**
@@ -243,14 +179,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
243
179
  }, {
244
180
  key: "deleteSection",
245
181
  value: function deleteSection(section_gid) {
246
- // Check if RETURN_COLLECTION is set and return a collection object if it is
247
- if (this.apiClient.RETURN_COLLECTION && false) {
248
- return this.deleteSectionWithHttpInfo(section_gid);
249
- } else {
250
- return this.deleteSectionWithHttpInfo(section_gid).then(function (response_and_data) {
251
- return response_and_data.data;
252
- });
253
- }
182
+ return this.deleteSectionWithHttpInfo(section_gid).then(function (response_and_data) {
183
+ return response_and_data.data;
184
+ });
254
185
  }
255
186
 
256
187
  /**
@@ -282,25 +213,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
282
213
  var contentTypes = [];
283
214
  var accepts = ['application/json; charset=UTF-8'];
284
215
  var returnType = 'Blob';
285
-
286
- // Check if RETURN_COLLECTION is set and return a collection object if it is
287
- if (this.apiClient.RETURN_COLLECTION && false) {
288
- return Collection.fromApiClient(this.apiClient.callApi('/sections/{section_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
289
- 'path': '/sections/{section_gid}',
290
- 'httpMethod': 'GET',
291
- 'pathParams': pathParams,
292
- 'queryParams': queryParams,
293
- 'headerParams': headerParams,
294
- 'formParams': formParams,
295
- 'bodyParam': postBody,
296
- 'authNames': authNames,
297
- 'contentTypes': contentTypes,
298
- 'accepts': accepts,
299
- 'returnType': returnType
300
- });
301
- } else {
302
- return this.apiClient.callApi('/sections/{section_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
303
- }
216
+ return this.apiClient.callApi('/sections/{section_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
304
217
  }
305
218
 
306
219
  /**
@@ -314,14 +227,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
314
227
  }, {
315
228
  key: "getSection",
316
229
  value: function getSection(section_gid, opts) {
317
- // Check if RETURN_COLLECTION is set and return a collection object if it is
318
- if (this.apiClient.RETURN_COLLECTION && false) {
319
- return this.getSectionWithHttpInfo(section_gid, opts);
320
- } else {
321
- return this.getSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
322
- return response_and_data.data;
323
- });
324
- }
230
+ return this.getSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
231
+ return response_and_data.data;
232
+ });
325
233
  }
326
234
 
327
235
  /**
@@ -355,9 +263,8 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
355
263
  var contentTypes = [];
356
264
  var accepts = ['application/json; charset=UTF-8'];
357
265
  var returnType = 'Blob';
358
-
359
266
  // Check if RETURN_COLLECTION is set and return a collection object if it is
360
- if (this.apiClient.RETURN_COLLECTION && true) {
267
+ if (this.apiClient.RETURN_COLLECTION) {
361
268
  return Collection.fromApiClient(this.apiClient.callApi('/projects/{project_gid}/sections', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
362
269
  'path': '/projects/{project_gid}/sections',
363
270
  'httpMethod': 'GET',
@@ -371,9 +278,8 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
371
278
  'accepts': accepts,
372
279
  'returnType': returnType
373
280
  });
374
- } else {
375
- return this.apiClient.callApi('/projects/{project_gid}/sections', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
376
281
  }
282
+ return this.apiClient.callApi('/projects/{project_gid}/sections', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
377
283
  }
378
284
 
379
285
  /**
@@ -390,13 +296,12 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
390
296
  key: "getSectionsForProject",
391
297
  value: function getSectionsForProject(project_gid, opts) {
392
298
  // Check if RETURN_COLLECTION is set and return a collection object if it is
393
- if (this.apiClient.RETURN_COLLECTION && true) {
299
+ if (this.apiClient.RETURN_COLLECTION) {
394
300
  return this.getSectionsForProjectWithHttpInfo(project_gid, opts);
395
- } else {
396
- return this.getSectionsForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
397
- return response_and_data.data;
398
- });
399
301
  }
302
+ return this.getSectionsForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
303
+ return response_and_data.data;
304
+ });
400
305
  }
401
306
 
402
307
  /**
@@ -428,25 +333,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
428
333
  var contentTypes = ['application/json; charset=UTF-8'];
429
334
  var accepts = ['application/json; charset=UTF-8'];
430
335
  var returnType = 'Blob';
431
-
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(this.apiClient.callApi('/projects/{project_gid}/sections/insert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
435
- 'path': '/projects/{project_gid}/sections/insert',
436
- 'httpMethod': 'POST',
437
- 'pathParams': pathParams,
438
- 'queryParams': queryParams,
439
- 'headerParams': headerParams,
440
- 'formParams': formParams,
441
- 'bodyParam': postBody,
442
- 'authNames': authNames,
443
- 'contentTypes': contentTypes,
444
- 'accepts': accepts,
445
- 'returnType': returnType
446
- });
447
- } else {
448
- return this.apiClient.callApi('/projects/{project_gid}/sections/insert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
449
- }
336
+ return this.apiClient.callApi('/projects/{project_gid}/sections/insert', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
450
337
  }
451
338
 
452
339
  /**
@@ -460,14 +347,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
460
347
  }, {
461
348
  key: "insertSectionForProject",
462
349
  value: function insertSectionForProject(project_gid, opts) {
463
- // Check if RETURN_COLLECTION is set and return a collection object if it is
464
- if (this.apiClient.RETURN_COLLECTION && false) {
465
- return this.insertSectionForProjectWithHttpInfo(project_gid, opts);
466
- } else {
467
- return this.insertSectionForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
468
- return response_and_data.data;
469
- });
470
- }
350
+ return this.insertSectionForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
351
+ return response_and_data.data;
352
+ });
471
353
  }
472
354
 
473
355
  /**
@@ -500,25 +382,7 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
500
382
  var contentTypes = ['application/json; charset=UTF-8'];
501
383
  var accepts = ['application/json; charset=UTF-8'];
502
384
  var returnType = 'Blob';
503
-
504
- // Check if RETURN_COLLECTION is set and return a collection object if it is
505
- if (this.apiClient.RETURN_COLLECTION && false) {
506
- return Collection.fromApiClient(this.apiClient.callApi('/sections/{section_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
507
- 'path': '/sections/{section_gid}',
508
- 'httpMethod': 'PUT',
509
- 'pathParams': pathParams,
510
- 'queryParams': queryParams,
511
- 'headerParams': headerParams,
512
- 'formParams': formParams,
513
- 'bodyParam': postBody,
514
- 'authNames': authNames,
515
- 'contentTypes': contentTypes,
516
- 'accepts': accepts,
517
- 'returnType': returnType
518
- });
519
- } else {
520
- return this.apiClient.callApi('/sections/{section_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
521
- }
385
+ return this.apiClient.callApi('/sections/{section_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
522
386
  }
523
387
 
524
388
  /**
@@ -533,15 +397,9 @@ var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
533
397
  }, {
534
398
  key: "updateSection",
535
399
  value: function updateSection(section_gid, opts) {
536
- // Check if RETURN_COLLECTION is set and return a collection object if it is
537
- if (this.apiClient.RETURN_COLLECTION && false) {
538
- return this.updateSectionWithHttpInfo(section_gid, opts);
539
- } else {
540
- return this.updateSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
541
- return response_and_data.data;
542
- });
543
- }
400
+ return this.updateSectionWithHttpInfo(section_gid, opts).then(function (response_and_data) {
401
+ return response_and_data.data;
402
+ });
544
403
  }
545
404
  }]);
546
- return SectionsApi;
547
405
  }();
@@ -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
  * StatusUpdates service.
31
31
  * @module api/StatusUpdatesApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -55,7 +55,7 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
55
55
  * @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.
56
56
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
57
57
  */
58
- _createClass(StatusUpdatesApi, [{
58
+ return _createClass(StatusUpdatesApi, [{
59
59
  key: "createStatusForObjectWithHttpInfo",
60
60
  value: function createStatusForObjectWithHttpInfo(body, opts) {
61
61
  opts = opts || {};
@@ -74,25 +74,7 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
74
74
  var contentTypes = ['application/json; charset=UTF-8'];
75
75
  var accepts = ['application/json; charset=UTF-8'];
76
76
  var returnType = 'Blob';
77
-
78
- // Check if RETURN_COLLECTION is set and return a collection object if it is
79
- if (this.apiClient.RETURN_COLLECTION && false) {
80
- return Collection.fromApiClient(this.apiClient.callApi('/status_updates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
81
- 'path': '/status_updates',
82
- 'httpMethod': 'POST',
83
- 'pathParams': pathParams,
84
- 'queryParams': queryParams,
85
- 'headerParams': headerParams,
86
- 'formParams': formParams,
87
- 'bodyParam': postBody,
88
- 'authNames': authNames,
89
- 'contentTypes': contentTypes,
90
- 'accepts': accepts,
91
- 'returnType': returnType
92
- });
93
- } else {
94
- return this.apiClient.callApi('/status_updates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
95
- }
77
+ return this.apiClient.callApi('/status_updates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
96
78
  }
97
79
 
98
80
  /**
@@ -108,14 +90,9 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
108
90
  }, {
109
91
  key: "createStatusForObject",
110
92
  value: function createStatusForObject(body, opts) {
111
- // Check if RETURN_COLLECTION is set and return a collection object if it is
112
- if (this.apiClient.RETURN_COLLECTION && false) {
113
- return this.createStatusForObjectWithHttpInfo(body, opts);
114
- } else {
115
- return this.createStatusForObjectWithHttpInfo(body, opts).then(function (response_and_data) {
116
- return response_and_data.data;
117
- });
118
- }
93
+ return this.createStatusForObjectWithHttpInfo(body, opts).then(function (response_and_data) {
94
+ return response_and_data.data;
95
+ });
119
96
  }
120
97
 
121
98
  /**
@@ -142,25 +119,7 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
142
119
  var contentTypes = [];
143
120
  var accepts = ['application/json; charset=UTF-8'];
144
121
  var returnType = 'Blob';
145
-
146
- // Check if RETURN_COLLECTION is set and return a collection object if it is
147
- if (this.apiClient.RETURN_COLLECTION && false) {
148
- return Collection.fromApiClient(this.apiClient.callApi('/status_updates/{status_update_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
149
- 'path': '/status_updates/{status_update_gid}',
150
- 'httpMethod': 'DELETE',
151
- 'pathParams': pathParams,
152
- 'queryParams': queryParams,
153
- 'headerParams': headerParams,
154
- 'formParams': formParams,
155
- 'bodyParam': postBody,
156
- 'authNames': authNames,
157
- 'contentTypes': contentTypes,
158
- 'accepts': accepts,
159
- 'returnType': returnType
160
- });
161
- } else {
162
- return this.apiClient.callApi('/status_updates/{status_update_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
163
- }
122
+ return this.apiClient.callApi('/status_updates/{status_update_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
164
123
  }
165
124
 
166
125
  /**
@@ -172,14 +131,9 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
172
131
  }, {
173
132
  key: "deleteStatus",
174
133
  value: function deleteStatus(status_update_gid) {
175
- // Check if RETURN_COLLECTION is set and return a collection object if it is
176
- if (this.apiClient.RETURN_COLLECTION && false) {
177
- return this.deleteStatusWithHttpInfo(status_update_gid);
178
- } else {
179
- return this.deleteStatusWithHttpInfo(status_update_gid).then(function (response_and_data) {
180
- return response_and_data.data;
181
- });
182
- }
134
+ return this.deleteStatusWithHttpInfo(status_update_gid).then(function (response_and_data) {
135
+ return response_and_data.data;
136
+ });
183
137
  }
184
138
 
185
139
  /**
@@ -211,25 +165,7 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
211
165
  var contentTypes = [];
212
166
  var accepts = ['application/json; charset=UTF-8'];
213
167
  var returnType = 'Blob';
214
-
215
- // Check if RETURN_COLLECTION is set and return a collection object if it is
216
- if (this.apiClient.RETURN_COLLECTION && false) {
217
- return Collection.fromApiClient(this.apiClient.callApi('/status_updates/{status_update_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
218
- 'path': '/status_updates/{status_update_gid}',
219
- 'httpMethod': 'GET',
220
- 'pathParams': pathParams,
221
- 'queryParams': queryParams,
222
- 'headerParams': headerParams,
223
- 'formParams': formParams,
224
- 'bodyParam': postBody,
225
- 'authNames': authNames,
226
- 'contentTypes': contentTypes,
227
- 'accepts': accepts,
228
- 'returnType': returnType
229
- });
230
- } else {
231
- return this.apiClient.callApi('/status_updates/{status_update_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
232
- }
168
+ return this.apiClient.callApi('/status_updates/{status_update_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
233
169
  }
234
170
 
235
171
  /**
@@ -243,14 +179,9 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
243
179
  }, {
244
180
  key: "getStatus",
245
181
  value: function getStatus(status_update_gid, opts) {
246
- // Check if RETURN_COLLECTION is set and return a collection object if it is
247
- if (this.apiClient.RETURN_COLLECTION && false) {
248
- return this.getStatusWithHttpInfo(status_update_gid, opts);
249
- } else {
250
- return this.getStatusWithHttpInfo(status_update_gid, opts).then(function (response_and_data) {
251
- return response_and_data.data;
252
- });
253
- }
182
+ return this.getStatusWithHttpInfo(status_update_gid, opts).then(function (response_and_data) {
183
+ return response_and_data.data;
184
+ });
254
185
  }
255
186
 
256
187
  /**
@@ -284,9 +215,8 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
284
215
  var contentTypes = [];
285
216
  var accepts = ['application/json; charset=UTF-8'];
286
217
  var returnType = 'Blob';
287
-
288
218
  // Check if RETURN_COLLECTION is set and return a collection object if it is
289
- if (this.apiClient.RETURN_COLLECTION && true) {
219
+ if (this.apiClient.RETURN_COLLECTION) {
290
220
  return Collection.fromApiClient(this.apiClient.callApi('/status_updates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
291
221
  'path': '/status_updates',
292
222
  'httpMethod': 'GET',
@@ -300,9 +230,8 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
300
230
  'accepts': accepts,
301
231
  'returnType': returnType
302
232
  });
303
- } else {
304
- return this.apiClient.callApi('/status_updates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
305
233
  }
234
+ return this.apiClient.callApi('/status_updates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
306
235
  }
307
236
 
308
237
  /**
@@ -320,14 +249,12 @@ var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
320
249
  key: "getStatusesForObject",
321
250
  value: function getStatusesForObject(parent, opts) {
322
251
  // Check if RETURN_COLLECTION is set and return a collection object if it is
323
- if (this.apiClient.RETURN_COLLECTION && true) {
252
+ if (this.apiClient.RETURN_COLLECTION) {
324
253
  return this.getStatusesForObjectWithHttpInfo(parent, opts);
325
- } else {
326
- return this.getStatusesForObjectWithHttpInfo(parent, opts).then(function (response_and_data) {
327
- return response_and_data.data;
328
- });
329
254
  }
255
+ return this.getStatusesForObjectWithHttpInfo(parent, opts).then(function (response_and_data) {
256
+ return response_and_data.data;
257
+ });
330
258
  }
331
259
  }]);
332
- return StatusUpdatesApi;
333
260
  }();