asana 3.0.8 → 3.0.10

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 (77) hide show
  1. package/README.md +3 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AllocationsApi.js +1 -1
  4. package/dist/api/AttachmentsApi.js +1 -1
  5. package/dist/api/AuditLogAPIApi.js +1 -1
  6. package/dist/api/BatchAPIApi.js +1 -1
  7. package/dist/api/CustomFieldSettingsApi.js +1 -1
  8. package/dist/api/CustomFieldsApi.js +1 -1
  9. package/dist/api/EventsApi.js +1 -1
  10. package/dist/api/GoalRelationshipsApi.js +1 -1
  11. package/dist/api/GoalsApi.js +1 -1
  12. package/dist/api/JobsApi.js +1 -1
  13. package/dist/api/MembershipsApi.js +5 -5
  14. package/dist/api/OrganizationExportsApi.js +1 -1
  15. package/dist/api/PortfolioMembershipsApi.js +1 -1
  16. package/dist/api/PortfoliosApi.js +1 -1
  17. package/dist/api/ProjectBriefsApi.js +1 -1
  18. package/dist/api/ProjectMembershipsApi.js +1 -1
  19. package/dist/api/ProjectStatusesApi.js +1 -1
  20. package/dist/api/ProjectTemplatesApi.js +1 -1
  21. package/dist/api/ProjectsApi.js +1 -1
  22. package/dist/api/RulesApi.js +1 -1
  23. package/dist/api/SectionsApi.js +1 -1
  24. package/dist/api/StatusUpdatesApi.js +1 -1
  25. package/dist/api/StoriesApi.js +1 -1
  26. package/dist/api/TagsApi.js +1 -1
  27. package/dist/api/TaskTemplatesApi.js +1 -1
  28. package/dist/api/TasksApi.js +1 -1
  29. package/dist/api/TeamMembershipsApi.js +1 -1
  30. package/dist/api/TeamsApi.js +1 -1
  31. package/dist/api/TimePeriodsApi.js +1 -1
  32. package/dist/api/TimeTrackingEntriesApi.js +1 -1
  33. package/dist/api/TypeaheadApi.js +1 -1
  34. package/dist/api/UserTaskListsApi.js +1 -1
  35. package/dist/api/UsersApi.js +1 -1
  36. package/dist/api/WebhooksApi.js +3 -3
  37. package/dist/api/WorkspaceMembershipsApi.js +1 -1
  38. package/dist/api/WorkspacesApi.js +1 -1
  39. package/package.json +1 -1
  40. package/src/ApiClient.js +3 -3
  41. package/src/api/AllocationsApi.js +1 -1
  42. package/src/api/AttachmentsApi.js +1 -1
  43. package/src/api/AuditLogAPIApi.js +1 -1
  44. package/src/api/BatchAPIApi.js +1 -1
  45. package/src/api/CustomFieldSettingsApi.js +1 -1
  46. package/src/api/CustomFieldsApi.js +1 -1
  47. package/src/api/EventsApi.js +1 -1
  48. package/src/api/GoalRelationshipsApi.js +1 -1
  49. package/src/api/GoalsApi.js +1 -1
  50. package/src/api/JobsApi.js +1 -1
  51. package/src/api/MembershipsApi.js +5 -5
  52. package/src/api/OrganizationExportsApi.js +1 -1
  53. package/src/api/PortfolioMembershipsApi.js +1 -1
  54. package/src/api/PortfoliosApi.js +1 -1
  55. package/src/api/ProjectBriefsApi.js +1 -1
  56. package/src/api/ProjectMembershipsApi.js +1 -1
  57. package/src/api/ProjectStatusesApi.js +1 -1
  58. package/src/api/ProjectTemplatesApi.js +1 -1
  59. package/src/api/ProjectsApi.js +1 -1
  60. package/src/api/RulesApi.js +1 -1
  61. package/src/api/SectionsApi.js +1 -1
  62. package/src/api/StatusUpdatesApi.js +1 -1
  63. package/src/api/StoriesApi.js +1 -1
  64. package/src/api/TagsApi.js +1 -1
  65. package/src/api/TaskTemplatesApi.js +1 -1
  66. package/src/api/TasksApi.js +1 -1
  67. package/src/api/TeamMembershipsApi.js +1 -1
  68. package/src/api/TeamsApi.js +1 -1
  69. package/src/api/TimePeriodsApi.js +1 -1
  70. package/src/api/TimeTrackingEntriesApi.js +1 -1
  71. package/src/api/TypeaheadApi.js +1 -1
  72. package/src/api/UserTaskListsApi.js +1 -1
  73. package/src/api/UsersApi.js +1 -1
  74. package/src/api/WebhooksApi.js +3 -3
  75. package/src/api/WorkspaceMembershipsApi.js +1 -1
  76. package/src/api/WorkspacesApi.js +1 -1
  77. package/src/index.js +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # asana [![GitHub release][release-image]][release-url] [![NPM Version][npm-image]][npm-url]
2
2
 
3
3
  - API version: 1.0
4
- - Package version: 3.0.8
4
+ - Package version: 3.0.10
5
5
 
6
6
  ## Installation
7
7
 
@@ -18,7 +18,7 @@ npm install asana --save
18
18
  Include the latest release directly from GitHub:
19
19
 
20
20
  ```html
21
- <script src="https://github.com/Asana/node-asana/releases/download/v3.0.8/asana-min.js"></script>
21
+ <script src="https://github.com/Asana/node-asana/releases/download/v3.0.10/asana-min.js"></script>
22
22
  ```
23
23
 
24
24
  Example usage (**NOTE**: be careful not to expose your access token):
@@ -1111,6 +1111,6 @@ client.callApi(
1111
1111
  ```
1112
1112
 
1113
1113
  [release-image]: https://img.shields.io/github/release/asana/node-asana.svg
1114
- [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.8
1114
+ [release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.10
1115
1115
  [npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
1116
1116
  [npm-url]: https://www.npmjs.org/package/asana
package/dist/ApiClient.js CHANGED
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  */
29
29
  /**
30
30
  * @module ApiClient
31
- * @version 3.0.8
31
+ * @version 3.0.10
32
32
  */
33
33
  /**
34
34
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -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.8",
403
+ 'version': "3.0.10",
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.8",
410
+ 'version': "3.0.10",
411
411
  'language': 'BrowserJS'
412
412
  }).toString();
413
413
  }
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Allocations service.
31
31
  * @module api/AllocationsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var AuditLogAPIApi = exports.AuditLogAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * BatchAPI service.
31
31
  * @module api/BatchAPIApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var BatchAPIApi = exports.BatchAPIApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFieldSettings service.
31
31
  * @module api/CustomFieldSettingsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * CustomFields service.
31
31
  * @module api/CustomFieldsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var CustomFieldsApi = exports.CustomFieldsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Events service.
31
31
  * @module api/EventsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var EventsApi = exports.EventsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * GoalRelationships service.
31
31
  * @module api/GoalRelationshipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Goals service.
31
31
  * @module api/GoalsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var GoalsApi = exports.GoalsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Jobs service.
31
31
  * @module api/JobsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var JobsApi = exports.JobsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Memberships service.
31
31
  * @module api/MembershipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -176,9 +176,9 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
176
176
 
177
177
  /**
178
178
  * Get multiple memberships
179
- * Returns compact &#x60;goal_membership&#x60; or &#x60;project_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60; or &#x60;project&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership.
179
+ * Returns compact &#x60;goal_membership&#x60;, &#x60;project_membership&#x60;, or &#x60;portfolio_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Teams are not supported for portfolios yet.
180
180
  * @param {Object} opts Optional parameters
181
- * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60; or &#x60;project&#x60;.
181
+ * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;.
182
182
  * @param {String} opts.member Globally unique identifier for &#x60;team&#x60; or &#x60;user&#x60;.
183
183
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
184
184
  * @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. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -221,9 +221,9 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
221
221
 
222
222
  /**
223
223
  * Get multiple memberships
224
- * Returns compact &#x60;goal_membership&#x60; or &#x60;project_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60; or &#x60;project&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership.
224
+ * Returns compact &#x60;goal_membership&#x60;, &#x60;project_membership&#x60;, or &#x60;portfolio_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Teams are not supported for portfolios yet.
225
225
  * @param {Object} opts Optional parameters
226
- * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60; or &#x60;project&#x60;.
226
+ * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;.
227
227
  * @param {String} opts.member Globally unique identifier for &#x60;team&#x60; or &#x60;user&#x60;.
228
228
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
229
229
  * @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. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * OrganizationExports service.
31
31
  * @module api/OrganizationExportsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var OrganizationExportsApi = exports.OrganizationExportsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * PortfolioMemberships service.
31
31
  * @module api/PortfolioMembershipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Portfolios service.
31
31
  * @module api/PortfoliosApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var PortfoliosApi = exports.PortfoliosApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectBriefs service.
31
31
  * @module api/ProjectBriefsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var ProjectBriefsApi = exports.ProjectBriefsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectMemberships service.
31
31
  * @module api/ProjectMembershipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var ProjectMembershipsApi = exports.ProjectMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectStatuses service.
31
31
  * @module api/ProjectStatusesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var ProjectStatusesApi = exports.ProjectStatusesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * ProjectTemplates service.
31
31
  * @module api/ProjectTemplatesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Projects service.
31
31
  * @module api/ProjectsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var ProjectsApi = exports.ProjectsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Rules service.
31
31
  * @module api/RulesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var RulesApi = exports.RulesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Sections service.
31
31
  * @module api/SectionsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var SectionsApi = exports.SectionsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * StatusUpdates service.
31
31
  * @module api/StatusUpdatesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var StatusUpdatesApi = exports.StatusUpdatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Stories service.
31
31
  * @module api/StoriesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var StoriesApi = exports.StoriesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Tags service.
31
31
  * @module api/TagsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TaskTemplates service.
31
31
  * @module api/TaskTemplatesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TaskTemplatesApi = exports.TaskTemplatesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -35,7 +35,7 @@ var Collection = require('../utils/collection');
35
35
  /**
36
36
  * Tasks service.
37
37
  * @module api/TasksApi
38
- * @version 3.0.8
38
+ * @version 3.0.10
39
39
  */
40
40
  var TasksApi = exports.TasksApi = /*#__PURE__*/function () {
41
41
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TeamMemberships service.
31
31
  * @module api/TeamMembershipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Teams service.
31
31
  * @module api/TeamsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TeamsApi = exports.TeamsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TimePeriods service.
31
31
  * @module api/TimePeriodsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TimePeriodsApi = exports.TimePeriodsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TimeTrackingEntries service.
31
31
  * @module api/TimeTrackingEntriesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Typeahead service.
31
31
  * @module api/TypeaheadApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var TypeaheadApi = exports.TypeaheadApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * UserTaskLists service.
31
31
  * @module api/UserTaskListsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Users service.
31
31
  * @module api/UsersApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var UsersApi = exports.UsersApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Webhooks service.
31
31
  * @module api/WebhooksApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var WebhooksApi = exports.WebhooksApi = /*#__PURE__*/function () {
35
35
  /**
@@ -47,7 +47,7 @@ var WebhooksApi = exports.WebhooksApi = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Establish a webhook
50
- * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will recieve a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
50
+ * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will receive a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
51
51
  * @param {module:model/Object} body The webhook workspace and target.
52
52
  * @param {Object} opts Optional parameters
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.
@@ -77,7 +77,7 @@ var WebhooksApi = exports.WebhooksApi = /*#__PURE__*/function () {
77
77
 
78
78
  /**
79
79
  * Establish a webhook
80
- * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will recieve a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
80
+ * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will receive a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
81
81
  * @param {<&vendorExtensions.x-jsdoc-type>} body The webhook workspace and target.
82
82
  * @param {Object} opts Optional parameters
83
83
  * @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.
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * WorkspaceMemberships service.
31
31
  * @module api/WorkspaceMembershipsApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var WorkspaceMembershipsApi = exports.WorkspaceMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Workspaces service.
31
31
  * @module api/WorkspacesApi
32
- * @version 3.0.8
32
+ * @version 3.0.10
33
33
  */
34
34
  var WorkspacesApi = exports.WorkspacesApi = /*#__PURE__*/function () {
35
35
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asana",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "This_is_the_interface_for_interacting_with_the__Asana_Platform_httpsdevelopers_asana_com__Our_API_reference_is_generated_from_our__OpenAPI_spec__httpsraw_githubusercontent_comAsanaopenapimasterdefsasana_oas_yaml_",
5
5
  "license": "Apache 2.0",
6
6
  "main": "dist/index.js",
package/src/ApiClient.js CHANGED
@@ -16,7 +16,7 @@ import superagent from "superagent";
16
16
 
17
17
  /**
18
18
  * @module ApiClient
19
- * @version 3.0.8
19
+ * @version 3.0.10
20
20
  */
21
21
 
22
22
  /**
@@ -412,7 +412,7 @@ export class ApiClient {
412
412
  if (typeof(navigator) === 'undefined' || typeof(window) === 'undefined') {
413
413
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
414
414
  {
415
- 'version': "3.0.8",
415
+ 'version': "3.0.10",
416
416
  'language': 'NodeJS',
417
417
  'language_version': process.version,
418
418
  'os': process.platform
@@ -421,7 +421,7 @@ export class ApiClient {
421
421
  } else {
422
422
  headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
423
423
  {
424
- 'version': "3.0.8",
424
+ 'version': "3.0.10",
425
425
  'language': 'BrowserJS'
426
426
  }
427
427
  ).toString();
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Allocations service.
20
20
  * @module api/AllocationsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class AllocationsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Attachments service.
20
20
  * @module api/AttachmentsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class AttachmentsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * AuditLogAPI service.
20
20
  * @module api/AuditLogAPIApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class AuditLogAPIApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * BatchAPI service.
20
20
  * @module api/BatchAPIApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class BatchAPIApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * CustomFieldSettings service.
20
20
  * @module api/CustomFieldSettingsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class CustomFieldSettingsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * CustomFields service.
20
20
  * @module api/CustomFieldsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class CustomFieldsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Events service.
20
20
  * @module api/EventsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class EventsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * GoalRelationships service.
20
20
  * @module api/GoalRelationshipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class GoalRelationshipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Goals service.
20
20
  * @module api/GoalsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class GoalsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Jobs service.
20
20
  * @module api/JobsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class JobsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Memberships service.
20
20
  * @module api/MembershipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class MembershipsApi {
24
24
 
@@ -203,9 +203,9 @@ export class MembershipsApi {
203
203
 
204
204
  /**
205
205
  * Get multiple memberships
206
- * Returns compact &#x60;goal_membership&#x60; or &#x60;project_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60; or &#x60;project&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership.
206
+ * Returns compact &#x60;goal_membership&#x60;, &#x60;project_membership&#x60;, or &#x60;portfolio_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Teams are not supported for portfolios yet.
207
207
  * @param {Object} opts Optional parameters
208
- * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60; or &#x60;project&#x60;.
208
+ * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;.
209
209
  * @param {String} opts.member Globally unique identifier for &#x60;team&#x60; or &#x60;user&#x60;.
210
210
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
211
211
  * @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. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -268,9 +268,9 @@ export class MembershipsApi {
268
268
 
269
269
  /**
270
270
  * Get multiple memberships
271
- * Returns compact &#x60;goal_membership&#x60; or &#x60;project_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60; or &#x60;project&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership.
271
+ * Returns compact &#x60;goal_membership&#x60;, &#x60;project_membership&#x60;, or &#x60;portfolio_membership&#x60; records. The possible types for &#x60;parent&#x60; in this request are &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Teams are not supported for portfolios yet.
272
272
  * @param {Object} opts Optional parameters
273
- * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60; or &#x60;project&#x60;.
273
+ * @param {String} opts.parent Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;.
274
274
  * @param {String} opts.member Globally unique identifier for &#x60;team&#x60; or &#x60;user&#x60;.
275
275
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
276
276
  * @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. *Note: You can only pass in an offset that was returned to you via a previously paginated request.*
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * OrganizationExports service.
20
20
  * @module api/OrganizationExportsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class OrganizationExportsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * PortfolioMemberships service.
20
20
  * @module api/PortfolioMembershipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class PortfolioMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Portfolios service.
20
20
  * @module api/PortfoliosApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class PortfoliosApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectBriefs service.
20
20
  * @module api/ProjectBriefsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class ProjectBriefsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectMemberships service.
20
20
  * @module api/ProjectMembershipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class ProjectMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectStatuses service.
20
20
  * @module api/ProjectStatusesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class ProjectStatusesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * ProjectTemplates service.
20
20
  * @module api/ProjectTemplatesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class ProjectTemplatesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Projects service.
20
20
  * @module api/ProjectsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class ProjectsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Rules service.
20
20
  * @module api/RulesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class RulesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Sections service.
20
20
  * @module api/SectionsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class SectionsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * StatusUpdates service.
20
20
  * @module api/StatusUpdatesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class StatusUpdatesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Stories service.
20
20
  * @module api/StoriesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class StoriesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Tags service.
20
20
  * @module api/TagsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TagsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * TaskTemplates service.
20
20
  * @module api/TaskTemplatesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TaskTemplatesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Tasks service.
20
20
  * @module api/TasksApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TasksApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * TeamMemberships service.
20
20
  * @module api/TeamMembershipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TeamMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Teams service.
20
20
  * @module api/TeamsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TeamsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * TimePeriods service.
20
20
  * @module api/TimePeriodsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TimePeriodsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * TimeTrackingEntries service.
20
20
  * @module api/TimeTrackingEntriesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TimeTrackingEntriesApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Typeahead service.
20
20
  * @module api/TypeaheadApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class TypeaheadApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * UserTaskLists service.
20
20
  * @module api/UserTaskListsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class UserTaskListsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Users service.
20
20
  * @module api/UsersApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class UsersApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Webhooks service.
20
20
  * @module api/WebhooksApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class WebhooksApi {
24
24
 
@@ -38,7 +38,7 @@ export class WebhooksApi {
38
38
 
39
39
  /**
40
40
  * Establish a webhook
41
- * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will recieve a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
41
+ * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will receive a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
42
42
  * @param {module:model/Object} body The webhook workspace and target.
43
43
  * @param {Object} opts Optional parameters
44
44
  * @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.
@@ -80,7 +80,7 @@ export class WebhooksApi {
80
80
 
81
81
  /**
82
82
  * Establish a webhook
83
- * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will recieve a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
83
+ * Establishing a webhook is a two-part process. First, a simple HTTP POST request initiates the creation similar to creating any other resource. Next, in the middle of this request comes the confirmation handshake. When a webhook is created, we will send a test POST to the target with an &#x60;X-Hook-Secret&#x60; header. The target must respond with a &#x60;200 OK&#x60; or &#x60;204 No Content&#x60; and a matching &#x60;X-Hook-Secret&#x60; header to confirm that this webhook subscription is indeed expected. We strongly recommend storing this secret to be used to verify future webhook event signatures. The POST request to create the webhook will then return with the status of the request. If you do not acknowledge the webhook’s confirmation handshake it will fail to setup, and you will receive an error in response to your attempt to create it. This means you need to be able to receive and complete the webhook *while* the POST request is in-flight (in other words, have a server that can handle requests asynchronously). Invalid hostnames like localhost will receive a 403 Forbidden status code. &#x60;&#x60;&#x60; # Request curl -H \&quot;Authorization: Bearer &lt;personal_access_token&gt;\&quot; \\ -X POST https://app.asana.com/api/1.0/webhooks \\ -d \&quot;resource&#x3D;8675309\&quot; \\ -d \&quot;target&#x3D;https://example.com/receive-webhook/7654\&quot; &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake sent to https://example.com/ POST /receive-webhook/7654 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Handshake response sent by example.com HTTP/1.1 200 X-Hook-Secret: b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81 &#x60;&#x60;&#x60; &#x60;&#x60;&#x60; # Response HTTP/1.1 201 { \&quot;data\&quot;: { \&quot;gid\&quot;: \&quot;43214\&quot;, \&quot;resource\&quot;: { \&quot;gid\&quot;: \&quot;8675309\&quot;, \&quot;name\&quot;: \&quot;Bugs\&quot; }, \&quot;target\&quot;: \&quot;https://example.com/receive-webhook/7654\&quot;, \&quot;active\&quot;: false, \&quot;last_success_at\&quot;: null, \&quot;last_failure_at\&quot;: null, \&quot;last_failure_content\&quot;: null }, \&quot;X-Hook-Secret\&quot;: \&quot;b537207f20cbfa02357cf448134da559e8bd39d61597dcd5631b8012eae53e81\&quot; } &#x60;&#x60;&#x60;
84
84
  * @param {<&vendorExtensions.x-jsdoc-type>} body The webhook workspace and target.
85
85
  * @param {Object} opts Optional parameters
86
86
  * @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.
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * WorkspaceMemberships service.
20
20
  * @module api/WorkspaceMembershipsApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class WorkspaceMembershipsApi {
24
24
 
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
18
18
  /**
19
19
  * Workspaces service.
20
20
  * @module api/WorkspacesApi
21
- * @version 3.0.8
21
+ * @version 3.0.10
22
22
  */
23
23
  export class WorkspacesApi {
24
24
 
package/src/index.js CHANGED
@@ -79,7 +79,7 @@ import {WorkspacesApi} from './api/WorkspacesApi';
79
79
  * </pre>
80
80
  * </p>
81
81
  * @module index
82
- * @version 3.0.8
82
+ * @version 3.0.10
83
83
  */
84
84
  export {
85
85
  /**