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
  * Goals service.
31
31
  * @module api/GoalsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -54,7 +54,7 @@ var GoalsApi = exports.GoalsApi = /*#__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(GoalsApi, [{
57
+ return _createClass(GoalsApi, [{
58
58
  key: "addFollowersWithHttpInfo",
59
59
  value: function addFollowersWithHttpInfo(body, goal_gid, opts) {
60
60
  opts = opts || {};
@@ -79,25 +79,7 @@ var GoalsApi = exports.GoalsApi = /*#__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}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
86
- 'path': '/goals/{goal_gid}/addFollowers',
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}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
100
- }
82
+ return this.apiClient.callApi('/goals/{goal_gid}/addFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
101
83
  }
102
84
 
103
85
  /**
@@ -112,14 +94,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
112
94
  }, {
113
95
  key: "addFollowers",
114
96
  value: function addFollowers(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.addFollowersWithHttpInfo(body, goal_gid, opts);
118
- } else {
119
- return this.addFollowersWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
120
- return response_and_data.data;
121
- });
122
- }
97
+ return this.addFollowersWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
98
+ return response_and_data.data;
99
+ });
123
100
  }
124
101
 
125
102
  /**
@@ -149,25 +126,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
149
126
  var contentTypes = ['application/json; charset=UTF-8'];
150
127
  var accepts = ['application/json; charset=UTF-8'];
151
128
  var returnType = 'Blob';
152
-
153
- // Check if RETURN_COLLECTION is set and return a collection object if it is
154
- if (this.apiClient.RETURN_COLLECTION && false) {
155
- return Collection.fromApiClient(this.apiClient.callApi('/goals', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
156
- 'path': '/goals',
157
- 'httpMethod': 'POST',
158
- 'pathParams': pathParams,
159
- 'queryParams': queryParams,
160
- 'headerParams': headerParams,
161
- 'formParams': formParams,
162
- 'bodyParam': postBody,
163
- 'authNames': authNames,
164
- 'contentTypes': contentTypes,
165
- 'accepts': accepts,
166
- 'returnType': returnType
167
- });
168
- } else {
169
- return this.apiClient.callApi('/goals', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
170
- }
129
+ return this.apiClient.callApi('/goals', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
171
130
  }
172
131
 
173
132
  /**
@@ -181,14 +140,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
181
140
  }, {
182
141
  key: "createGoal",
183
142
  value: function createGoal(body, 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.createGoalWithHttpInfo(body, opts);
187
- } else {
188
- return this.createGoalWithHttpInfo(body, opts).then(function (response_and_data) {
189
- return response_and_data.data;
190
- });
191
- }
143
+ return this.createGoalWithHttpInfo(body, opts).then(function (response_and_data) {
144
+ return response_and_data.data;
145
+ });
192
146
  }
193
147
 
194
148
  /**
@@ -225,25 +179,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
225
179
  var contentTypes = ['application/json; charset=UTF-8'];
226
180
  var accepts = ['application/json; charset=UTF-8'];
227
181
  var returnType = 'Blob';
228
-
229
- // Check if RETURN_COLLECTION is set and return a collection object if it is
230
- if (this.apiClient.RETURN_COLLECTION && false) {
231
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/setMetric', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
232
- 'path': '/goals/{goal_gid}/setMetric',
233
- 'httpMethod': 'POST',
234
- 'pathParams': pathParams,
235
- 'queryParams': queryParams,
236
- 'headerParams': headerParams,
237
- 'formParams': formParams,
238
- 'bodyParam': postBody,
239
- 'authNames': authNames,
240
- 'contentTypes': contentTypes,
241
- 'accepts': accepts,
242
- 'returnType': returnType
243
- });
244
- } else {
245
- return this.apiClient.callApi('/goals/{goal_gid}/setMetric', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
246
- }
182
+ return this.apiClient.callApi('/goals/{goal_gid}/setMetric', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
247
183
  }
248
184
 
249
185
  /**
@@ -258,14 +194,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
258
194
  }, {
259
195
  key: "createGoalMetric",
260
196
  value: function createGoalMetric(body, goal_gid, opts) {
261
- // Check if RETURN_COLLECTION is set and return a collection object if it is
262
- if (this.apiClient.RETURN_COLLECTION && false) {
263
- return this.createGoalMetricWithHttpInfo(body, goal_gid, opts);
264
- } else {
265
- return this.createGoalMetricWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
266
- return response_and_data.data;
267
- });
268
- }
197
+ return this.createGoalMetricWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
198
+ return response_and_data.data;
199
+ });
269
200
  }
270
201
 
271
202
  /**
@@ -292,25 +223,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
292
223
  var contentTypes = [];
293
224
  var accepts = ['application/json; charset=UTF-8'];
294
225
  var returnType = 'Blob';
295
-
296
- // Check if RETURN_COLLECTION is set and return a collection object if it is
297
- if (this.apiClient.RETURN_COLLECTION && false) {
298
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
299
- 'path': '/goals/{goal_gid}',
300
- 'httpMethod': 'DELETE',
301
- 'pathParams': pathParams,
302
- 'queryParams': queryParams,
303
- 'headerParams': headerParams,
304
- 'formParams': formParams,
305
- 'bodyParam': postBody,
306
- 'authNames': authNames,
307
- 'contentTypes': contentTypes,
308
- 'accepts': accepts,
309
- 'returnType': returnType
310
- });
311
- } else {
312
- return this.apiClient.callApi('/goals/{goal_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
313
- }
226
+ return this.apiClient.callApi('/goals/{goal_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
314
227
  }
315
228
 
316
229
  /**
@@ -322,14 +235,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
322
235
  }, {
323
236
  key: "deleteGoal",
324
237
  value: function deleteGoal(goal_gid) {
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.deleteGoalWithHttpInfo(goal_gid);
328
- } else {
329
- return this.deleteGoalWithHttpInfo(goal_gid).then(function (response_and_data) {
330
- return response_and_data.data;
331
- });
332
- }
238
+ return this.deleteGoalWithHttpInfo(goal_gid).then(function (response_and_data) {
239
+ return response_and_data.data;
240
+ });
333
241
  }
334
242
 
335
243
  /**
@@ -361,25 +269,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
361
269
  var contentTypes = [];
362
270
  var accepts = ['application/json; charset=UTF-8'];
363
271
  var returnType = 'Blob';
364
-
365
- // Check if RETURN_COLLECTION is set and return a collection object if it is
366
- if (this.apiClient.RETURN_COLLECTION && false) {
367
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
368
- 'path': '/goals/{goal_gid}',
369
- 'httpMethod': 'GET',
370
- 'pathParams': pathParams,
371
- 'queryParams': queryParams,
372
- 'headerParams': headerParams,
373
- 'formParams': formParams,
374
- 'bodyParam': postBody,
375
- 'authNames': authNames,
376
- 'contentTypes': contentTypes,
377
- 'accepts': accepts,
378
- 'returnType': returnType
379
- });
380
- } else {
381
- return this.apiClient.callApi('/goals/{goal_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
382
- }
272
+ return this.apiClient.callApi('/goals/{goal_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
383
273
  }
384
274
 
385
275
  /**
@@ -393,14 +283,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
393
283
  }, {
394
284
  key: "getGoal",
395
285
  value: function getGoal(goal_gid, opts) {
396
- // Check if RETURN_COLLECTION is set and return a collection object if it is
397
- if (this.apiClient.RETURN_COLLECTION && false) {
398
- return this.getGoalWithHttpInfo(goal_gid, opts);
399
- } else {
400
- return this.getGoalWithHttpInfo(goal_gid, opts).then(function (response_and_data) {
401
- return response_and_data.data;
402
- });
403
- }
286
+ return this.getGoalWithHttpInfo(goal_gid, opts).then(function (response_and_data) {
287
+ return response_and_data.data;
288
+ });
404
289
  }
405
290
 
406
291
  /**
@@ -434,9 +319,8 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
434
319
  var contentTypes = [];
435
320
  var accepts = ['application/json; charset=UTF-8'];
436
321
  var returnType = 'Blob';
437
-
438
322
  // Check if RETURN_COLLECTION is set and return a collection object if it is
439
- if (this.apiClient.RETURN_COLLECTION && true) {
323
+ if (this.apiClient.RETURN_COLLECTION) {
440
324
  return Collection.fromApiClient(this.apiClient.callApi('/goals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
441
325
  'path': '/goals',
442
326
  'httpMethod': 'GET',
@@ -450,9 +334,8 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
450
334
  'accepts': accepts,
451
335
  'returnType': returnType
452
336
  });
453
- } else {
454
- return this.apiClient.callApi('/goals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
455
337
  }
338
+ return this.apiClient.callApi('/goals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
456
339
  }
457
340
 
458
341
  /**
@@ -475,13 +358,12 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
475
358
  key: "getGoals",
476
359
  value: function getGoals(opts) {
477
360
  // Check if RETURN_COLLECTION is set and return a collection object if it is
478
- if (this.apiClient.RETURN_COLLECTION && true) {
361
+ if (this.apiClient.RETURN_COLLECTION) {
479
362
  return this.getGoalsWithHttpInfo(opts);
480
- } else {
481
- return this.getGoalsWithHttpInfo(opts).then(function (response_and_data) {
482
- return response_and_data.data;
483
- });
484
363
  }
364
+ return this.getGoalsWithHttpInfo(opts).then(function (response_and_data) {
365
+ return response_and_data.data;
366
+ });
485
367
  }
486
368
 
487
369
  /**
@@ -513,9 +395,8 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
513
395
  var contentTypes = [];
514
396
  var accepts = ['application/json; charset=UTF-8'];
515
397
  var returnType = 'Blob';
516
-
517
398
  // Check if RETURN_COLLECTION is set and return a collection object if it is
518
- if (this.apiClient.RETURN_COLLECTION && true) {
399
+ if (this.apiClient.RETURN_COLLECTION) {
519
400
  return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/parentGoals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
520
401
  'path': '/goals/{goal_gid}/parentGoals',
521
402
  'httpMethod': 'GET',
@@ -529,9 +410,8 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
529
410
  'accepts': accepts,
530
411
  'returnType': returnType
531
412
  });
532
- } else {
533
- return this.apiClient.callApi('/goals/{goal_gid}/parentGoals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
534
413
  }
414
+ return this.apiClient.callApi('/goals/{goal_gid}/parentGoals', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
535
415
  }
536
416
 
537
417
  /**
@@ -546,13 +426,12 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
546
426
  key: "getParentGoalsForGoal",
547
427
  value: function getParentGoalsForGoal(goal_gid, opts) {
548
428
  // Check if RETURN_COLLECTION is set and return a collection object if it is
549
- if (this.apiClient.RETURN_COLLECTION && true) {
429
+ if (this.apiClient.RETURN_COLLECTION) {
550
430
  return this.getParentGoalsForGoalWithHttpInfo(goal_gid, opts);
551
- } else {
552
- return this.getParentGoalsForGoalWithHttpInfo(goal_gid, opts).then(function (response_and_data) {
553
- return response_and_data.data;
554
- });
555
431
  }
432
+ return this.getParentGoalsForGoalWithHttpInfo(goal_gid, opts).then(function (response_and_data) {
433
+ return response_and_data.data;
434
+ });
556
435
  }
557
436
 
558
437
  /**
@@ -589,25 +468,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
589
468
  var contentTypes = ['application/json; charset=UTF-8'];
590
469
  var accepts = ['application/json; charset=UTF-8'];
591
470
  var returnType = 'Blob';
592
-
593
- // Check if RETURN_COLLECTION is set and return a collection object if it is
594
- if (this.apiClient.RETURN_COLLECTION && false) {
595
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
596
- 'path': '/goals/{goal_gid}/removeFollowers',
597
- 'httpMethod': 'POST',
598
- 'pathParams': pathParams,
599
- 'queryParams': queryParams,
600
- 'headerParams': headerParams,
601
- 'formParams': formParams,
602
- 'bodyParam': postBody,
603
- 'authNames': authNames,
604
- 'contentTypes': contentTypes,
605
- 'accepts': accepts,
606
- 'returnType': returnType
607
- });
608
- } else {
609
- return this.apiClient.callApi('/goals/{goal_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
610
- }
471
+ return this.apiClient.callApi('/goals/{goal_gid}/removeFollowers', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
611
472
  }
612
473
 
613
474
  /**
@@ -622,14 +483,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
622
483
  }, {
623
484
  key: "removeFollowers",
624
485
  value: function removeFollowers(body, goal_gid, opts) {
625
- // Check if RETURN_COLLECTION is set and return a collection object if it is
626
- if (this.apiClient.RETURN_COLLECTION && false) {
627
- return this.removeFollowersWithHttpInfo(body, goal_gid, opts);
628
- } else {
629
- return this.removeFollowersWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
630
- return response_and_data.data;
631
- });
632
- }
486
+ return this.removeFollowersWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
487
+ return response_and_data.data;
488
+ });
633
489
  }
634
490
 
635
491
  /**
@@ -666,25 +522,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
666
522
  var contentTypes = ['application/json; charset=UTF-8'];
667
523
  var accepts = ['application/json; charset=UTF-8'];
668
524
  var returnType = 'Blob';
669
-
670
- // Check if RETURN_COLLECTION is set and return a collection object if it is
671
- if (this.apiClient.RETURN_COLLECTION && false) {
672
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
673
- 'path': '/goals/{goal_gid}',
674
- 'httpMethod': 'PUT',
675
- 'pathParams': pathParams,
676
- 'queryParams': queryParams,
677
- 'headerParams': headerParams,
678
- 'formParams': formParams,
679
- 'bodyParam': postBody,
680
- 'authNames': authNames,
681
- 'contentTypes': contentTypes,
682
- 'accepts': accepts,
683
- 'returnType': returnType
684
- });
685
- } else {
686
- return this.apiClient.callApi('/goals/{goal_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
687
- }
525
+ return this.apiClient.callApi('/goals/{goal_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
688
526
  }
689
527
 
690
528
  /**
@@ -699,14 +537,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
699
537
  }, {
700
538
  key: "updateGoal",
701
539
  value: function updateGoal(body, goal_gid, opts) {
702
- // Check if RETURN_COLLECTION is set and return a collection object if it is
703
- if (this.apiClient.RETURN_COLLECTION && false) {
704
- return this.updateGoalWithHttpInfo(body, goal_gid, opts);
705
- } else {
706
- return this.updateGoalWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
707
- return response_and_data.data;
708
- });
709
- }
540
+ return this.updateGoalWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
541
+ return response_and_data.data;
542
+ });
710
543
  }
711
544
 
712
545
  /**
@@ -743,25 +576,7 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
743
576
  var contentTypes = ['application/json; charset=UTF-8'];
744
577
  var accepts = ['application/json; charset=UTF-8'];
745
578
  var returnType = 'Blob';
746
-
747
- // Check if RETURN_COLLECTION is set and return a collection object if it is
748
- if (this.apiClient.RETURN_COLLECTION && false) {
749
- return Collection.fromApiClient(this.apiClient.callApi('/goals/{goal_gid}/setMetricCurrentValue', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
750
- 'path': '/goals/{goal_gid}/setMetricCurrentValue',
751
- 'httpMethod': 'POST',
752
- 'pathParams': pathParams,
753
- 'queryParams': queryParams,
754
- 'headerParams': headerParams,
755
- 'formParams': formParams,
756
- 'bodyParam': postBody,
757
- 'authNames': authNames,
758
- 'contentTypes': contentTypes,
759
- 'accepts': accepts,
760
- 'returnType': returnType
761
- });
762
- } else {
763
- return this.apiClient.callApi('/goals/{goal_gid}/setMetricCurrentValue', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
764
- }
579
+ return this.apiClient.callApi('/goals/{goal_gid}/setMetricCurrentValue', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
765
580
  }
766
581
 
767
582
  /**
@@ -776,15 +591,9 @@ var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
776
591
  }, {
777
592
  key: "updateGoalMetric",
778
593
  value: function updateGoalMetric(body, goal_gid, opts) {
779
- // Check if RETURN_COLLECTION is set and return a collection object if it is
780
- if (this.apiClient.RETURN_COLLECTION && false) {
781
- return this.updateGoalMetricWithHttpInfo(body, goal_gid, opts);
782
- } else {
783
- return this.updateGoalMetricWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
784
- return response_and_data.data;
785
- });
786
- }
594
+ return this.updateGoalMetricWithHttpInfo(body, goal_gid, opts).then(function (response_and_data) {
595
+ return response_and_data.data;
596
+ });
787
597
  }
788
598
  }]);
789
- return GoalsApi;
790
599
  }();
@@ -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
  * Jobs service.
31
31
  * @module api/JobsApi
32
- * @version 3.0.2
32
+ * @version 3.0.4
33
33
  */
34
34
  var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -53,7 +53,7 @@ var JobsApi = exports.JobsApi = /*#__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(JobsApi, [{
56
+ return _createClass(JobsApi, [{
57
57
  key: "getJobWithHttpInfo",
58
58
  value: function getJobWithHttpInfo(job_gid, opts) {
59
59
  opts = opts || {};
@@ -74,25 +74,7 @@ var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
74
74
  var contentTypes = [];
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('/jobs/{job_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
81
- 'path': '/jobs/{job_gid}',
82
- 'httpMethod': 'GET',
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('/jobs/{job_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
95
- }
77
+ return this.apiClient.callApi('/jobs/{job_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
96
78
  }
97
79
 
98
80
  /**
@@ -106,15 +88,9 @@ var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
106
88
  }, {
107
89
  key: "getJob",
108
90
  value: function getJob(job_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.getJobWithHttpInfo(job_gid, opts);
112
- } else {
113
- return this.getJobWithHttpInfo(job_gid, opts).then(function (response_and_data) {
114
- return response_and_data.data;
115
- });
116
- }
91
+ return this.getJobWithHttpInfo(job_gid, opts).then(function (response_and_data) {
92
+ return response_and_data.data;
93
+ });
117
94
  }
118
95
  }]);
119
- return JobsApi;
120
96
  }();