asana 3.0.2 → 3.0.3

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 (79) hide show
  1. package/.github/workflows/publish.yaml +78 -38
  2. package/.swagger-codegen/VERSION +1 -1
  3. package/README.md +135 -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/AttachmentsApi.js +22 -95
  8. package/dist/api/AuditLogAPIApi.js +10 -14
  9. package/dist/api/BatchAPIApi.js +10 -14
  10. package/dist/api/CustomFieldSettingsApi.js +16 -23
  11. package/dist/api/CustomFieldsApi.js +38 -203
  12. package/dist/api/EventsApi.js +12 -16
  13. package/dist/api/GoalRelationshipsApi.js +26 -122
  14. package/dist/api/GoalsApi.js +48 -239
  15. package/dist/api/JobsApi.js +8 -32
  16. package/dist/api/MembershipsApi.js +73 -99
  17. package/dist/api/OrganizationExportsApi.js +12 -59
  18. package/dist/api/PortfolioMembershipsApi.js +20 -50
  19. package/dist/api/PortfoliosApi.js +56 -293
  20. package/dist/api/ProjectBriefsApi.js +20 -113
  21. package/dist/api/ProjectMembershipsApi.js +14 -41
  22. package/dist/api/ProjectStatusesApi.js +22 -95
  23. package/dist/api/ProjectTemplatesApi.js +28 -104
  24. package/dist/api/ProjectsApi.js +88 -446
  25. package/dist/api/RulesApi.js +8 -32
  26. package/dist/api/SectionsApi.js +34 -176
  27. package/dist/api/StatusUpdatesApi.js +22 -95
  28. package/dist/api/StoriesApi.js +26 -122
  29. package/dist/api/TagsApi.js +42 -167
  30. package/dist/api/TaskTemplatesApi.js +63 -72
  31. package/dist/api/TasksApi.js +173 -544
  32. package/dist/api/TeamMembershipsApi.js +26 -59
  33. package/dist/api/TeamsApi.js +36 -158
  34. package/dist/api/TimePeriodsApi.js +14 -41
  35. package/dist/api/TimeTrackingEntriesApi.js +26 -122
  36. package/dist/api/TypeaheadApi.js +12 -16
  37. package/dist/api/UserTaskListsApi.js +12 -59
  38. package/dist/api/UsersApi.js +32 -68
  39. package/dist/api/WebhooksApi.js +26 -122
  40. package/dist/api/WorkspaceMembershipsApi.js +20 -50
  41. package/dist/api/WorkspacesApi.js +26 -122
  42. package/package.json +1 -1
  43. package/src/ApiClient.js +4 -4
  44. package/src/api/AttachmentsApi.js +42 -134
  45. package/src/api/AuditLogAPIApi.js +15 -17
  46. package/src/api/BatchAPIApi.js +15 -17
  47. package/src/api/CustomFieldSettingsApi.js +28 -32
  48. package/src/api/CustomFieldsApi.js +78 -290
  49. package/src/api/EventsApi.js +17 -19
  50. package/src/api/GoalRelationshipsApi.js +51 -173
  51. package/src/api/GoalsApi.js +100 -344
  52. package/src/api/JobsApi.js +11 -41
  53. package/src/api/MembershipsApi.js +105 -138
  54. package/src/api/OrganizationExportsApi.js +20 -80
  55. package/src/api/PortfolioMembershipsApi.js +37 -71
  56. package/src/api/PortfoliosApi.js +118 -422
  57. package/src/api/ProjectBriefsApi.js +38 -158
  58. package/src/api/ProjectMembershipsApi.js +24 -56
  59. package/src/api/ProjectStatusesApi.js +42 -134
  60. package/src/api/ProjectTemplatesApi.js +55 -149
  61. package/src/api/ProjectsApi.js +189 -647
  62. package/src/api/RulesApi.js +11 -41
  63. package/src/api/SectionsApi.js +69 -251
  64. package/src/api/StatusUpdatesApi.js +42 -134
  65. package/src/api/StoriesApi.js +51 -173
  66. package/src/api/TagsApi.js +86 -242
  67. package/src/api/TaskTemplatesApi.js +86 -95
  68. package/src/api/TasksApi.js +330 -799
  69. package/src/api/TeamMembershipsApi.js +50 -86
  70. package/src/api/TeamsApi.js +73 -227
  71. package/src/api/TimePeriodsApi.js +24 -56
  72. package/src/api/TimeTrackingEntriesApi.js +51 -173
  73. package/src/api/TypeaheadApi.js +17 -19
  74. package/src/api/UserTaskListsApi.js +20 -80
  75. package/src/api/UsersApi.js +63 -101
  76. package/src/api/WebhooksApi.js +51 -173
  77. package/src/api/WorkspaceMembershipsApi.js +37 -71
  78. package/src/api/WorkspacesApi.js +51 -173
  79. package/src/index.js +2 -2
package/dist/ApiClient.js CHANGED
@@ -11,7 +11,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
11
11
  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); } }
12
12
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13
13
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  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); } /*
16
16
  * Asana
17
17
  * 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).
@@ -21,14 +21,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
21
21
  * NOTE: This class is auto generated by the swagger code generator program.
22
22
  * https://github.com/swagger-api/swagger-codegen.git
23
23
  *
24
- * Swagger Codegen version: 3.0.52
24
+ * Swagger Codegen version: 3.0.54
25
25
  *
26
26
  * Do not edit the class manually.
27
27
  *
28
28
  */
29
29
  /**
30
30
  * @module ApiClient
31
- * @version 3.0.2
31
+ * @version 3.0.3
32
32
  */
33
33
  /**
34
34
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -107,7 +107,7 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
107
107
  * @param param The actual parameter.
108
108
  * @returns {String} The string representation of <code>param</code>.
109
109
  */
110
- _createClass(ApiClient, [{
110
+ return _createClass(ApiClient, [{
111
111
  key: "paramToString",
112
112
  value: function paramToString(param) {
113
113
  if (param == undefined || param == null) {
@@ -400,14 +400,14 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
400
400
  // set header parameters
401
401
  if (typeof navigator === 'undefined' || typeof window === 'undefined') {
402
402
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
403
- 'version': "3.0.2",
403
+ 'version': "3.0.3",
404
404
  'language': 'NodeJS',
405
405
  'language_version': process.version,
406
406
  'os': process.platform
407
407
  }).toString();
408
408
  } else {
409
409
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams({
410
- 'version': "3.0.2",
410
+ 'version': "3.0.3",
411
411
  'language': 'BrowserJS'
412
412
  }).toString();
413
413
  }
@@ -583,7 +583,6 @@ var ApiClient = exports.ApiClient = /*#__PURE__*/function () {
583
583
  }
584
584
  }
585
585
  }]);
586
- return ApiClient;
587
586
  }();
588
587
  /**
589
588
  * The default API client implementation.
@@ -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
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.0.2
32
+ * @version 3.0.3
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -58,7 +58,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
58
58
  * @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.
59
59
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
60
60
  */
61
- _createClass(AttachmentsApi, [{
61
+ return _createClass(AttachmentsApi, [{
62
62
  key: "createAttachmentForObjectWithHttpInfo",
63
63
  value: function createAttachmentForObjectWithHttpInfo(opts) {
64
64
  opts = opts || {};
@@ -80,25 +80,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
80
80
  var contentTypes = ['multipart/form-data'];
81
81
  var accepts = ['application/json; charset=UTF-8'];
82
82
  var returnType = 'Blob';
83
-
84
- // Check if RETURN_COLLECTION is set and return a collection object if it is
85
- if (this.apiClient.RETURN_COLLECTION && false) {
86
- return Collection.fromApiClient(this.apiClient.callApi('/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
87
- 'path': '/attachments',
88
- 'httpMethod': 'POST',
89
- 'pathParams': pathParams,
90
- 'queryParams': queryParams,
91
- 'headerParams': headerParams,
92
- 'formParams': formParams,
93
- 'bodyParam': postBody,
94
- 'authNames': authNames,
95
- 'contentTypes': contentTypes,
96
- 'accepts': accepts,
97
- 'returnType': returnType
98
- });
99
- } else {
100
- return this.apiClient.callApi('/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
101
- }
83
+ return this.apiClient.callApi('/attachments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
102
84
  }
103
85
 
104
86
  /**
@@ -117,14 +99,9 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
117
99
  }, {
118
100
  key: "createAttachmentForObject",
119
101
  value: function createAttachmentForObject(opts) {
120
- // Check if RETURN_COLLECTION is set and return a collection object if it is
121
- if (this.apiClient.RETURN_COLLECTION && false) {
122
- return this.createAttachmentForObjectWithHttpInfo(opts);
123
- } else {
124
- return this.createAttachmentForObjectWithHttpInfo(opts).then(function (response_and_data) {
125
- return response_and_data.data;
126
- });
127
- }
102
+ return this.createAttachmentForObjectWithHttpInfo(opts).then(function (response_and_data) {
103
+ return response_and_data.data;
104
+ });
128
105
  }
129
106
 
130
107
  /**
@@ -151,25 +128,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__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('/attachments/{attachment_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
158
- 'path': '/attachments/{attachment_gid}',
159
- 'httpMethod': 'DELETE',
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('/attachments/{attachment_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
172
- }
131
+ return this.apiClient.callApi('/attachments/{attachment_gid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
173
132
  }
174
133
 
175
134
  /**
@@ -181,14 +140,9 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
181
140
  }, {
182
141
  key: "deleteAttachment",
183
142
  value: function deleteAttachment(attachment_gid) {
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.deleteAttachmentWithHttpInfo(attachment_gid);
187
- } else {
188
- return this.deleteAttachmentWithHttpInfo(attachment_gid).then(function (response_and_data) {
189
- return response_and_data.data;
190
- });
191
- }
143
+ return this.deleteAttachmentWithHttpInfo(attachment_gid).then(function (response_and_data) {
144
+ return response_and_data.data;
145
+ });
192
146
  }
193
147
 
194
148
  /**
@@ -220,25 +174,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
220
174
  var contentTypes = [];
221
175
  var accepts = ['application/json; charset=UTF-8'];
222
176
  var returnType = 'Blob';
223
-
224
- // Check if RETURN_COLLECTION is set and return a collection object if it is
225
- if (this.apiClient.RETURN_COLLECTION && false) {
226
- return Collection.fromApiClient(this.apiClient.callApi('/attachments/{attachment_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
227
- 'path': '/attachments/{attachment_gid}',
228
- 'httpMethod': 'GET',
229
- 'pathParams': pathParams,
230
- 'queryParams': queryParams,
231
- 'headerParams': headerParams,
232
- 'formParams': formParams,
233
- 'bodyParam': postBody,
234
- 'authNames': authNames,
235
- 'contentTypes': contentTypes,
236
- 'accepts': accepts,
237
- 'returnType': returnType
238
- });
239
- } else {
240
- return this.apiClient.callApi('/attachments/{attachment_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
241
- }
177
+ return this.apiClient.callApi('/attachments/{attachment_gid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
242
178
  }
243
179
 
244
180
  /**
@@ -252,14 +188,9 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
252
188
  }, {
253
189
  key: "getAttachment",
254
190
  value: function getAttachment(attachment_gid, opts) {
255
- // Check if RETURN_COLLECTION is set and return a collection object if it is
256
- if (this.apiClient.RETURN_COLLECTION && false) {
257
- return this.getAttachmentWithHttpInfo(attachment_gid, opts);
258
- } else {
259
- return this.getAttachmentWithHttpInfo(attachment_gid, opts).then(function (response_and_data) {
260
- return response_and_data.data;
261
- });
262
- }
191
+ return this.getAttachmentWithHttpInfo(attachment_gid, opts).then(function (response_and_data) {
192
+ return response_and_data.data;
193
+ });
263
194
  }
264
195
 
265
196
  /**
@@ -292,9 +223,8 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
292
223
  var contentTypes = [];
293
224
  var accepts = ['application/json; charset=UTF-8'];
294
225
  var returnType = 'Blob';
295
-
296
226
  // Check if RETURN_COLLECTION is set and return a collection object if it is
297
- if (this.apiClient.RETURN_COLLECTION && true) {
227
+ if (this.apiClient.RETURN_COLLECTION) {
298
228
  return Collection.fromApiClient(this.apiClient.callApi('/attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
299
229
  'path': '/attachments',
300
230
  'httpMethod': 'GET',
@@ -308,9 +238,8 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
308
238
  'accepts': accepts,
309
239
  'returnType': returnType
310
240
  });
311
- } else {
312
- return this.apiClient.callApi('/attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
313
241
  }
242
+ return this.apiClient.callApi('/attachments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
314
243
  }
315
244
 
316
245
  /**
@@ -327,14 +256,12 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
327
256
  key: "getAttachmentsForObject",
328
257
  value: function getAttachmentsForObject(parent, opts) {
329
258
  // Check if RETURN_COLLECTION is set and return a collection object if it is
330
- if (this.apiClient.RETURN_COLLECTION && true) {
259
+ if (this.apiClient.RETURN_COLLECTION) {
331
260
  return this.getAttachmentsForObjectWithHttpInfo(parent, opts);
332
- } else {
333
- return this.getAttachmentsForObjectWithHttpInfo(parent, opts).then(function (response_and_data) {
334
- return response_and_data.data;
335
- });
336
261
  }
262
+ return this.getAttachmentsForObjectWithHttpInfo(parent, opts).then(function (response_and_data) {
263
+ return response_and_data.data;
264
+ });
337
265
  }
338
266
  }]);
339
- return AttachmentsApi;
340
267
  }();
@@ -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
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.0.2
32
+ * @version 3.0.3
33
33
  */
34
34
  var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -60,7 +60,7 @@ var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
60
60
  * @param {String} opts.offset Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. &#x27;Note: You can only pass in an offset that was returned to you via a previously paginated request.&#x27;
61
61
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
62
62
  */
63
- _createClass(AuditLogAPIApi, [{
63
+ return _createClass(AuditLogAPIApi, [{
64
64
  key: "getAuditLogEventsWithHttpInfo",
65
65
  value: function getAuditLogEventsWithHttpInfo(workspace_gid, opts) {
66
66
  opts = opts || {};
@@ -81,9 +81,8 @@ var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
81
81
  var contentTypes = [];
82
82
  var accepts = ['application/json; charset=UTF-8'];
83
83
  var returnType = 'Blob';
84
-
85
84
  // Check if RETURN_COLLECTION is set and return a collection object if it is
86
- if (this.apiClient.RETURN_COLLECTION && true) {
85
+ if (this.apiClient.RETURN_COLLECTION) {
87
86
  return Collection.fromApiClient(this.apiClient.callApi('/workspaces/{workspace_gid}/audit_log_events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
88
87
  'path': '/workspaces/{workspace_gid}/audit_log_events',
89
88
  'httpMethod': 'GET',
@@ -97,9 +96,8 @@ var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
97
96
  'accepts': accepts,
98
97
  'returnType': returnType
99
98
  });
100
- } else {
101
- return this.apiClient.callApi('/workspaces/{workspace_gid}/audit_log_events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
102
99
  }
100
+ return this.apiClient.callApi('/workspaces/{workspace_gid}/audit_log_events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
103
101
  }
104
102
 
105
103
  /**
@@ -121,14 +119,12 @@ var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
121
119
  key: "getAuditLogEvents",
122
120
  value: function getAuditLogEvents(workspace_gid, opts) {
123
121
  // Check if RETURN_COLLECTION is set and return a collection object if it is
124
- if (this.apiClient.RETURN_COLLECTION && true) {
122
+ if (this.apiClient.RETURN_COLLECTION) {
125
123
  return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts);
126
- } else {
127
- return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
128
- return response_and_data.data;
129
- });
130
124
  }
125
+ return this.getAuditLogEventsWithHttpInfo(workspace_gid, opts).then(function (response_and_data) {
126
+ return response_and_data.data;
127
+ });
131
128
  }
132
129
  }]);
133
- return AuditLogAPIApi;
134
130
  }();
@@ -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
  * BatchAPI service.
31
31
  * @module api/BatchAPIApi
32
- * @version 3.0.2
32
+ * @version 3.0.3
33
33
  */
34
34
  var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -53,7 +53,7 @@ var BatchAPIApi = exports.BatchAPIApi = /*#__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(BatchAPIApi, [{
56
+ return _createClass(BatchAPIApi, [{
57
57
  key: "createBatchRequestWithHttpInfo",
58
58
  value: function createBatchRequestWithHttpInfo(body, opts) {
59
59
  opts = opts || {};
@@ -72,9 +72,8 @@ var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
72
72
  var contentTypes = ['application/json; charset=UTF-8'];
73
73
  var accepts = ['application/json; charset=UTF-8'];
74
74
  var returnType = 'Blob';
75
-
76
75
  // Check if RETURN_COLLECTION is set and return a collection object if it is
77
- if (this.apiClient.RETURN_COLLECTION && true) {
76
+ if (this.apiClient.RETURN_COLLECTION) {
78
77
  return Collection.fromApiClient(this.apiClient.callApi('/batch', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
79
78
  'path': '/batch',
80
79
  'httpMethod': 'POST',
@@ -88,9 +87,8 @@ var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
88
87
  'accepts': accepts,
89
88
  'returnType': returnType
90
89
  });
91
- } else {
92
- return this.apiClient.callApi('/batch', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
93
90
  }
91
+ return this.apiClient.callApi('/batch', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
94
92
  }
95
93
 
96
94
  /**
@@ -105,14 +103,12 @@ var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
105
103
  key: "createBatchRequest",
106
104
  value: function createBatchRequest(body, opts) {
107
105
  // Check if RETURN_COLLECTION is set and return a collection object if it is
108
- if (this.apiClient.RETURN_COLLECTION && true) {
106
+ if (this.apiClient.RETURN_COLLECTION) {
109
107
  return this.createBatchRequestWithHttpInfo(body, opts);
110
- } else {
111
- return this.createBatchRequestWithHttpInfo(body, opts).then(function (response_and_data) {
112
- return response_and_data.data;
113
- });
114
108
  }
109
+ return this.createBatchRequestWithHttpInfo(body, opts).then(function (response_and_data) {
110
+ return response_and_data.data;
111
+ });
115
112
  }
116
113
  }]);
117
- return BatchAPIApi;
118
114
  }();
@@ -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
  * CustomFieldSettings service.
31
31
  * @module api/CustomFieldSettingsApi
32
- * @version 3.0.2
32
+ * @version 3.0.3
33
33
  */
34
34
  var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -55,7 +55,7 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
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(CustomFieldSettingsApi, [{
58
+ return _createClass(CustomFieldSettingsApi, [{
59
59
  key: "getCustomFieldSettingsForPortfolioWithHttpInfo",
60
60
  value: function getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts) {
61
61
  opts = opts || {};
@@ -76,9 +76,8 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
76
76
  var contentTypes = [];
77
77
  var accepts = ['application/json; charset=UTF-8'];
78
78
  var returnType = 'Blob';
79
-
80
79
  // Check if RETURN_COLLECTION is set and return a collection object if it is
81
- if (this.apiClient.RETURN_COLLECTION && true) {
80
+ if (this.apiClient.RETURN_COLLECTION) {
82
81
  return Collection.fromApiClient(this.apiClient.callApi('/portfolios/{portfolio_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
83
82
  'path': '/portfolios/{portfolio_gid}/custom_field_settings',
84
83
  'httpMethod': 'GET',
@@ -92,9 +91,8 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
92
91
  'accepts': accepts,
93
92
  'returnType': returnType
94
93
  });
95
- } else {
96
- return this.apiClient.callApi('/portfolios/{portfolio_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
97
94
  }
95
+ return this.apiClient.callApi('/portfolios/{portfolio_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
98
96
  }
99
97
 
100
98
  /**
@@ -111,13 +109,12 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
111
109
  key: "getCustomFieldSettingsForPortfolio",
112
110
  value: function getCustomFieldSettingsForPortfolio(portfolio_gid, opts) {
113
111
  // Check if RETURN_COLLECTION is set and return a collection object if it is
114
- if (this.apiClient.RETURN_COLLECTION && true) {
112
+ if (this.apiClient.RETURN_COLLECTION) {
115
113
  return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts);
116
- } else {
117
- return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
118
- return response_and_data.data;
119
- });
120
114
  }
115
+ return this.getCustomFieldSettingsForPortfolioWithHttpInfo(portfolio_gid, opts).then(function (response_and_data) {
116
+ return response_and_data.data;
117
+ });
121
118
  }
122
119
 
123
120
  /**
@@ -151,9 +148,8 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
151
148
  var contentTypes = [];
152
149
  var accepts = ['application/json; charset=UTF-8'];
153
150
  var returnType = 'Blob';
154
-
155
151
  // Check if RETURN_COLLECTION is set and return a collection object if it is
156
- if (this.apiClient.RETURN_COLLECTION && true) {
152
+ if (this.apiClient.RETURN_COLLECTION) {
157
153
  return Collection.fromApiClient(this.apiClient.callApi('/projects/{project_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType), this.apiClient, {
158
154
  'path': '/projects/{project_gid}/custom_field_settings',
159
155
  'httpMethod': 'GET',
@@ -167,9 +163,8 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
167
163
  'accepts': accepts,
168
164
  'returnType': returnType
169
165
  });
170
- } else {
171
- return this.apiClient.callApi('/projects/{project_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
172
166
  }
167
+ return this.apiClient.callApi('/projects/{project_gid}/custom_field_settings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
173
168
  }
174
169
 
175
170
  /**
@@ -186,14 +181,12 @@ var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/funct
186
181
  key: "getCustomFieldSettingsForProject",
187
182
  value: function getCustomFieldSettingsForProject(project_gid, opts) {
188
183
  // Check if RETURN_COLLECTION is set and return a collection object if it is
189
- if (this.apiClient.RETURN_COLLECTION && true) {
184
+ if (this.apiClient.RETURN_COLLECTION) {
190
185
  return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts);
191
- } else {
192
- return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
193
- return response_and_data.data;
194
- });
195
186
  }
187
+ return this.getCustomFieldSettingsForProjectWithHttpInfo(project_gid, opts).then(function (response_and_data) {
188
+ return response_and_data.data;
189
+ });
196
190
  }
197
191
  }]);
198
- return CustomFieldSettingsApi;
199
192
  }();