asana 3.0.11 → 3.0.14

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 (78) hide show
  1. package/.github/workflows/publish.yaml +4 -4
  2. package/README.md +3 -3
  3. package/dist/ApiClient.js +3 -3
  4. package/dist/api/AllocationsApi.js +5 -5
  5. package/dist/api/AttachmentsApi.js +3 -3
  6. package/dist/api/AuditLogAPIApi.js +1 -1
  7. package/dist/api/BatchAPIApi.js +1 -1
  8. package/dist/api/CustomFieldSettingsApi.js +1 -1
  9. package/dist/api/CustomFieldsApi.js +1 -1
  10. package/dist/api/EventsApi.js +1 -1
  11. package/dist/api/GoalRelationshipsApi.js +1 -1
  12. package/dist/api/GoalsApi.js +1 -1
  13. package/dist/api/JobsApi.js +1 -1
  14. package/dist/api/MembershipsApi.js +7 -7
  15. package/dist/api/OrganizationExportsApi.js +1 -1
  16. package/dist/api/PortfolioMembershipsApi.js +4 -4
  17. package/dist/api/PortfoliosApi.js +1 -1
  18. package/dist/api/ProjectBriefsApi.js +1 -1
  19. package/dist/api/ProjectMembershipsApi.js +1 -1
  20. package/dist/api/ProjectStatusesApi.js +1 -1
  21. package/dist/api/ProjectTemplatesApi.js +1 -1
  22. package/dist/api/ProjectsApi.js +3 -3
  23. package/dist/api/RulesApi.js +1 -1
  24. package/dist/api/SectionsApi.js +1 -1
  25. package/dist/api/StatusUpdatesApi.js +1 -1
  26. package/dist/api/StoriesApi.js +1 -1
  27. package/dist/api/TagsApi.js +12 -6
  28. package/dist/api/TaskTemplatesApi.js +1 -1
  29. package/dist/api/TasksApi.js +1 -1
  30. package/dist/api/TeamMembershipsApi.js +1 -1
  31. package/dist/api/TeamsApi.js +1 -1
  32. package/dist/api/TimePeriodsApi.js +1 -1
  33. package/dist/api/TimeTrackingEntriesApi.js +1 -1
  34. package/dist/api/TypeaheadApi.js +1 -1
  35. package/dist/api/UserTaskListsApi.js +1 -1
  36. package/dist/api/UsersApi.js +3 -3
  37. package/dist/api/WebhooksApi.js +1 -1
  38. package/dist/api/WorkspaceMembershipsApi.js +1 -1
  39. package/dist/api/WorkspacesApi.js +1 -1
  40. package/package.json +1 -1
  41. package/src/ApiClient.js +3 -3
  42. package/src/api/AllocationsApi.js +5 -5
  43. package/src/api/AttachmentsApi.js +3 -3
  44. package/src/api/AuditLogAPIApi.js +1 -1
  45. package/src/api/BatchAPIApi.js +1 -1
  46. package/src/api/CustomFieldSettingsApi.js +1 -1
  47. package/src/api/CustomFieldsApi.js +1 -1
  48. package/src/api/EventsApi.js +1 -1
  49. package/src/api/GoalRelationshipsApi.js +1 -1
  50. package/src/api/GoalsApi.js +1 -1
  51. package/src/api/JobsApi.js +1 -1
  52. package/src/api/MembershipsApi.js +7 -7
  53. package/src/api/OrganizationExportsApi.js +1 -1
  54. package/src/api/PortfolioMembershipsApi.js +4 -4
  55. package/src/api/PortfoliosApi.js +1 -1
  56. package/src/api/ProjectBriefsApi.js +1 -1
  57. package/src/api/ProjectMembershipsApi.js +1 -1
  58. package/src/api/ProjectStatusesApi.js +1 -1
  59. package/src/api/ProjectTemplatesApi.js +1 -1
  60. package/src/api/ProjectsApi.js +3 -3
  61. package/src/api/RulesApi.js +1 -1
  62. package/src/api/SectionsApi.js +1 -1
  63. package/src/api/StatusUpdatesApi.js +1 -1
  64. package/src/api/StoriesApi.js +1 -1
  65. package/src/api/TagsApi.js +12 -6
  66. package/src/api/TaskTemplatesApi.js +1 -1
  67. package/src/api/TasksApi.js +1 -1
  68. package/src/api/TeamMembershipsApi.js +1 -1
  69. package/src/api/TeamsApi.js +1 -1
  70. package/src/api/TimePeriodsApi.js +1 -1
  71. package/src/api/TimeTrackingEntriesApi.js +1 -1
  72. package/src/api/TypeaheadApi.js +1 -1
  73. package/src/api/UserTaskListsApi.js +1 -1
  74. package/src/api/UsersApi.js +3 -3
  75. package/src/api/WebhooksApi.js +1 -1
  76. package/src/api/WorkspaceMembershipsApi.js +1 -1
  77. package/src/api/WorkspacesApi.js +1 -1
  78. package/src/index.js +1 -1
@@ -30,7 +30,7 @@ jobs:
30
30
  uses: aws-actions/configure-aws-credentials@v4
31
31
  with:
32
32
  aws-region: us-east-1
33
- role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
33
+ role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
34
34
  - name: Get GitHub app token
35
35
  uses: asana/get-github-app-token@v1
36
36
  id: get-token
@@ -83,11 +83,11 @@ jobs:
83
83
  uses: aws-actions/configure-aws-credentials@v4
84
84
  with:
85
85
  aws-region: us-east-1
86
- role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
86
+ role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
87
87
  - name: Load secrets
88
88
  uses: aws-actions/aws-secretsmanager-get-secrets@v1
89
89
  with:
90
- secret-ids: NPM_API,prod/github_actions_release_asana_client_libraries/npm_api_key
90
+ secret-ids: NPM_API,npm_api_key
91
91
  # npm_api_key secret is stored as {key:"***..."}.
92
92
  # GitHub Actions environment variable name is NPM_API so to access "key" from the json we can use NPM_API_KEY
93
93
  parse-json-secrets: true
@@ -117,7 +117,7 @@ jobs:
117
117
  uses: aws-actions/configure-aws-credentials@v4
118
118
  with:
119
119
  aws-region: us-east-1
120
- role-to-assume: arn:aws:iam::403483446840:role/autogen_role_beta_github_actions_release_asana_client_libraries
120
+ role-to-assume: arn:aws:iam::403483446840:role/autogen_github_actions_beta_release_asana_node_client_library
121
121
  - name: Get GitHub app token
122
122
  uses: asana/get-github-app-token@v1
123
123
  id: get-token
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.11
4
+ - Package version: v3.0.14
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.11/asana-min.js"></script>
21
+ <script src="https://github.com/Asana/node-asana/releases/download/vv3.0.14/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.11
1114
+ [release-url]: https://github.com/Asana/node-asana/releases/tag/vv3.0.14
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.11
31
+ * @version v3.0.14
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.11",
403
+ 'version': "v3.0.14",
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.11",
410
+ 'version': "v3.0.14",
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -182,10 +182,10 @@ var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
182
182
 
183
183
  /**
184
184
  * Get multiple allocations
185
- * Returns a list of allocations filtered to a specific project or user.
185
+ * Returns a list of allocations filtered to a specific project, user or placeholder.
186
186
  * @param {Object} opts Optional parameters
187
187
  * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
188
- * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
188
+ * @param {String} opts.assignee Globally unique identifier for the user or placeholder the allocation is assigned to.
189
189
  * @param {String} opts.workspace Globally unique identifier for the workspace.
190
190
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
191
191
  * @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.*
@@ -228,10 +228,10 @@ var AllocationsApi = exports.AllocationsApi = /*#__PURE__*/function () {
228
228
 
229
229
  /**
230
230
  * Get multiple allocations
231
- * Returns a list of allocations filtered to a specific project or user.
231
+ * Returns a list of allocations filtered to a specific project, user or placeholder.
232
232
  * @param {Object} opts Optional parameters
233
233
  * @param {String} opts.parent Globally unique identifier for the project to filter allocations by.
234
- * @param {String} opts.assignee Globally unique identifier for the user the allocation is assigned to.
234
+ * @param {String} opts.assignee Globally unique identifier for the user or placeholder the allocation is assigned to.
235
235
  * @param {String} opts.workspace Globally unique identifier for the workspace.
236
236
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
237
237
  * @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
  * Attachments service.
31
31
  * @module api/AttachmentsApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -47,7 +47,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Upload an attachment
50
- * Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo &amp; Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form &#x60;CRLF&#x60; or &#x60;\\r\\n&#x60; outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request.
50
+ * Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo &amp; Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form &#x60;CRLF&#x60; or &#x60;\\r\\n&#x60; outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named &#x60;résumé.pdf&#x60; should be encoded as &#x60;r%C3%A9sum%C3%A9.pdf&#x60; and the &#x60;filename&#x60; parameter in the &#x60;Content-Disposition&#x60; header should be set to the encoded file name. Below is an example of a cURL request with the &#x60;Content-Disposition&#x60; header: &#x60;&#x60;&#x60; export ASANA_PAT&#x3D;\&quot;&lt;YOUR_ASANA_PERSONAL_ACCESS_TOKEN&gt;\&quot; export PARENT_ID&#x3D;\&quot;&lt;PARENT_GID&gt;\&quot; export ENCODED_NAME&#x3D;\&quot;r%C3%A9sum%C3%A9.pdf\&quot; curl --location &#x27;https://app.asana.com/api/1.0/attachments&#x27; \\ --header &#x27;Content-Type: multipart/form-data&#x27; \\ --header &#x27;Accept: application/json&#x27; \\ --header \&quot;Authorization: Bearer $ASANA_PAT\&quot; \\ --form \&quot;parent&#x3D;$PARENT_ID\&quot; \\ --form \&quot;file&#x3D;@/Users/exampleUser/Downloads/résumé.pdf;headers&#x3D;\\\&quot;Content-Disposition: form-data; name&#x3D;\&quot;file\&quot;; filename&#x3D;\&quot;$ENCODED_NAME.pdf\&quot;; filename*&#x3D;UTF-8&#x27;&#x27;$ENCODED_NAME.pdf\\\&quot;\&quot; &#x60;&#x60;&#x60;
51
51
  * @param {Object} opts Optional parameters
52
52
  * @param {module:model/String} opts.resource_subtype
53
53
  * @param {Blob} opts.file
@@ -85,7 +85,7 @@ var AttachmentsApi = exports.AttachmentsApi = /*#__PURE__*/function () {
85
85
 
86
86
  /**
87
87
  * Upload an attachment
88
- * Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo &amp; Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form &#x60;CRLF&#x60; or &#x60;\\r\\n&#x60; outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request.
88
+ * Upload an attachment. This method uploads an attachment on an object and returns the compact record for the created attachment object. This is possible by either: - Providing the URL of the external resource being attached, or - Downloading the file content first and then uploading it as any other attachment. Note that it is not possible to attach files from third party services such as Dropbox, Box, Vimeo &amp; Google Drive via the API The 100MB size limit on attachments in Asana is enforced on this endpoint. This endpoint expects a multipart/form-data encoded request containing the full contents of the file to be uploaded. Requests made should follow the HTTP/1.1 specification that line terminators are of the form &#x60;CRLF&#x60; or &#x60;\\r\\n&#x60; outlined [here](http://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Basic-Rules) in order for the server to reliably and properly handle the request. For file names that contain non-ASCII characters, the file name should be URL-encoded. For example, a file named &#x60;résumé.pdf&#x60; should be encoded as &#x60;r%C3%A9sum%C3%A9.pdf&#x60; and the &#x60;filename&#x60; parameter in the &#x60;Content-Disposition&#x60; header should be set to the encoded file name. Below is an example of a cURL request with the &#x60;Content-Disposition&#x60; header: &#x60;&#x60;&#x60; export ASANA_PAT&#x3D;\&quot;&lt;YOUR_ASANA_PERSONAL_ACCESS_TOKEN&gt;\&quot; export PARENT_ID&#x3D;\&quot;&lt;PARENT_GID&gt;\&quot; export ENCODED_NAME&#x3D;\&quot;r%C3%A9sum%C3%A9.pdf\&quot; curl --location &#x27;https://app.asana.com/api/1.0/attachments&#x27; \\ --header &#x27;Content-Type: multipart/form-data&#x27; \\ --header &#x27;Accept: application/json&#x27; \\ --header \&quot;Authorization: Bearer $ASANA_PAT\&quot; \\ --form \&quot;parent&#x3D;$PARENT_ID\&quot; \\ --form \&quot;file&#x3D;@/Users/exampleUser/Downloads/résumé.pdf;headers&#x3D;\\\&quot;Content-Disposition: form-data; name&#x3D;\&quot;file\&quot;; filename&#x3D;\&quot;$ENCODED_NAME.pdf\&quot;; filename*&#x3D;UTF-8&#x27;&#x27;$ENCODED_NAME.pdf\\\&quot;\&quot; &#x60;&#x60;&#x60;
89
89
  * @param {Object} opts Optional parameters
90
90
  * @param {module:model/String} opts.resource_subtype
91
91
  * @param {Blob} opts.file
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * AuditLogAPI service.
31
31
  * @module api/AuditLogAPIApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -47,7 +47,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Create a membership
50
- * Creates a new membership in a &#x60;goal&#x60; or &#x60;project&#x60;. &#x60;Teams&#x60; or &#x60;users&#x60; can be a member of &#x60;goals&#x60; or &#x60;projects&#x60;. Returns the full record of the newly created membership.
50
+ * Creates a new membership in a &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. Teams or users can be members of &#x60;goals&#x60; or &#x60;projects&#x60;. Portfolios only support &#x60;users&#x60; as members. Returns the full record of the newly created membership.
51
51
  * @param {Object} opts Optional parameters
52
52
  * @param {module:model/Object} opts.body The updated fields for the membership.
53
53
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
@@ -72,7 +72,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
72
72
 
73
73
  /**
74
74
  * Create a membership
75
- * Creates a new membership in a &#x60;goal&#x60; or &#x60;project&#x60;. &#x60;Teams&#x60; or &#x60;users&#x60; can be a member of &#x60;goals&#x60; or &#x60;projects&#x60;. Returns the full record of the newly created membership.
75
+ * Creates a new membership in a &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. Teams or users can be members of &#x60;goals&#x60; or &#x60;projects&#x60;. Portfolios only support &#x60;users&#x60; as members. Returns the full record of the newly created membership.
76
76
  * @param {Object} opts Optional parameters
77
77
  * @param {module:model/Object} opts.body The updated fields for the membership.
78
78
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
@@ -87,7 +87,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
87
87
 
88
88
  /**
89
89
  * Delete a membership
90
- * A specific, existing membership for a &#x60;goal&#x60; or &#x60;project&#x60; can be deleted by making a &#x60;DELETE&#x60; request on the URL for that membership. Returns an empty data record.
90
+ * A specific, existing membership for a &#x60;goal&#x60;, &#x60;project&#x60; and &#x60;portfolio&#x60; can be deleted by making a &#x60;DELETE&#x60; request on the URL for that membership. Returns an empty data record.
91
91
  * @param {String} membership_gid Globally unique identifier for the membership.
92
92
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
93
93
  */
@@ -114,7 +114,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
114
114
 
115
115
  /**
116
116
  * Delete a membership
117
- * A specific, existing membership for a &#x60;goal&#x60; or &#x60;project&#x60; can be deleted by making a &#x60;DELETE&#x60; request on the URL for that membership. Returns an empty data record.
117
+ * A specific, existing membership for a &#x60;goal&#x60;, &#x60;project&#x60; and &#x60;portfolio&#x60; can be deleted by making a &#x60;DELETE&#x60; request on the URL for that membership. Returns an empty data record.
118
118
  * @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
119
119
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
120
120
  */
@@ -244,7 +244,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
244
244
 
245
245
  /**
246
246
  * Update a membership
247
- * An existing membership can be updated by making a &#x60;PUT&#x60; request on the URL for that goal. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Memberships on &#x60;goals&#x60; and &#x60;projects&#x60; can be updated. Returns the full record of the updated membership.
247
+ * An existing membership can be updated by making a &#x60;PUT&#x60; request on the membership. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Memberships on &#x60;goals&#x60;, &#x60;projects&#x60; and &#x60;portfolios&#x60; can be updated. Returns the full record of the updated membership.
248
248
  * @param {module:model/Object} body The membership to update.
249
249
  * @param {String} membership_gid Globally unique identifier for the membership.
250
250
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
@@ -276,7 +276,7 @@ var MembershipsApi = exports.MembershipsApi = /*#__PURE__*/function () {
276
276
 
277
277
  /**
278
278
  * Update a membership
279
- * An existing membership can be updated by making a &#x60;PUT&#x60; request on the URL for that goal. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Memberships on &#x60;goals&#x60; and &#x60;projects&#x60; can be updated. Returns the full record of the updated membership.
279
+ * An existing membership can be updated by making a &#x60;PUT&#x60; request on the membership. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. Memberships on &#x60;goals&#x60;, &#x60;projects&#x60; and &#x60;portfolios&#x60; can be updated. Returns the full record of the updated membership.
280
280
  * @param {<&vendorExtensions.x-jsdoc-type>} body The membership to update.
281
281
  * @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
282
282
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * OrganizationExports service.
31
31
  * @module api/OrganizationExportsApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -83,7 +83,7 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
83
83
  * @param {<&vendorExtensions.x-jsdoc-type>} portfolio_membership_gid
84
84
  * @param {Object} opts Optional parameters
85
85
  * @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.
86
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PortfolioMembershipResponseData}
86
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseData}
87
87
  */
88
88
  }, {
89
89
  key: "getPortfolioMembership",
@@ -149,7 +149,7 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
149
149
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
150
150
  * @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.*
151
151
  * @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.
152
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PortfolioMembershipResponseArray}
152
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseArray}
153
153
  */
154
154
  }, {
155
155
  key: "getPortfolioMemberships",
@@ -223,7 +223,7 @@ var PortfolioMembershipsApi = exports.PortfolioMembershipsApi = /*#__PURE__*/fun
223
223
  * @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
224
224
  * @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.*
225
225
  * @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.
226
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PortfolioMembershipResponseArray}
226
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseArray}
227
227
  */
228
228
  }, {
229
229
  key: "getPortfolioMembershipsForPortfolio",
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Portfolios service.
31
31
  * @module api/PortfoliosApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var ProjectsApi = exports.ProjectsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -840,7 +840,7 @@ var ProjectsApi = exports.ProjectsApi = /*#__PURE__*/function () {
840
840
 
841
841
  /**
842
842
  * Create a project template from a project
843
- * Creates and returns a job that will asynchronously handle the project template creation. Note that while the resulting project template can be accessed with the API, it won&#x27;t be visible in the Asana UI until Project Templates 2.0 is launched in the app. See more in [this forum post](https://forum.asana.com/t/a-new-api-for-project-templates/156432).
843
+ * Creates and returns a job that will asynchronously handle the project template creation.
844
844
  * @param {module:model/Object} body Describes the inputs used for creating a project template, such as the resulting project template&#x27;s name, which team it should be created in.
845
845
  * @param {String} project_gid Globally unique identifier for the project.
846
846
  * @param {Object} opts Optional parameters
@@ -877,7 +877,7 @@ var ProjectsApi = exports.ProjectsApi = /*#__PURE__*/function () {
877
877
 
878
878
  /**
879
879
  * Create a project template from a project
880
- * Creates and returns a job that will asynchronously handle the project template creation. Note that while the resulting project template can be accessed with the API, it won&#x27;t be visible in the Asana UI until Project Templates 2.0 is launched in the app. See more in [this forum post](https://forum.asana.com/t/a-new-api-for-project-templates/156432).
880
+ * Creates and returns a job that will asynchronously handle the project template creation.
881
881
  * @param {<&vendorExtensions.x-jsdoc-type>} body Describes the inputs used for creating a project template, such as the resulting project template&#x27;s name, which team it should be created in.
882
882
  * @param {<&vendorExtensions.x-jsdoc-type>} project_gid Globally unique identifier for the project.
883
883
  * @param {Object} opts Optional parameters
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * Rules service.
31
31
  * @module api/RulesApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
35
35
  /**
@@ -447,6 +447,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
447
447
  /**
448
448
  * Update a tag
449
449
  * Updates the properties of a tag. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the tag. Returns the complete updated tag record.
450
+ * @param {module:model/Object} body The tag to update.
450
451
  * @param {String} tag_gid Globally unique identifier for the tag.
451
452
  * @param {Object} opts Optional parameters
452
453
  * @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.
@@ -454,9 +455,13 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
454
455
  */
455
456
  }, {
456
457
  key: "updateTagWithHttpInfo",
457
- value: function updateTagWithHttpInfo(tag_gid, opts) {
458
+ value: function updateTagWithHttpInfo(body, tag_gid, opts) {
458
459
  opts = opts || {};
459
- var postBody = null;
460
+ var postBody = body;
461
+ // verify the required parameter 'body' is set
462
+ if (body === undefined || body === null) {
463
+ throw new Error("Missing the required parameter 'body' when calling updateTag");
464
+ }
460
465
  // verify the required parameter 'tag_gid' is set
461
466
  if (tag_gid === undefined || tag_gid === null) {
462
467
  throw new Error("Missing the required parameter 'tag_gid' when calling updateTag");
@@ -470,7 +475,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
470
475
  var headerParams = {};
471
476
  var formParams = {};
472
477
  var authNames = ['personalAccessToken'];
473
- var contentTypes = [];
478
+ var contentTypes = ['application/json; charset=UTF-8'];
474
479
  var accepts = ['application/json; charset=UTF-8'];
475
480
  var returnType = 'Blob';
476
481
  return this.apiClient.callApi('/tags/{tag_gid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
@@ -479,6 +484,7 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
479
484
  /**
480
485
  * Update a tag
481
486
  * Updates the properties of a tag. Only the fields provided in the &#x60;data&#x60; block will be updated; any unspecified fields will remain unchanged. When using this method, it is best to specify only those fields you wish to change, or else you may overwrite changes made by another user since you last retrieved the tag. Returns the complete updated tag record.
487
+ * @param {<&vendorExtensions.x-jsdoc-type>} body The tag to update.
482
488
  * @param {<&vendorExtensions.x-jsdoc-type>} tag_gid Globally unique identifier for the tag.
483
489
  * @param {Object} opts Optional parameters
484
490
  * @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.
@@ -486,8 +492,8 @@ var TagsApi = exports.TagsApi = /*#__PURE__*/function () {
486
492
  */
487
493
  }, {
488
494
  key: "updateTag",
489
- value: function updateTag(tag_gid, opts) {
490
- return this.updateTagWithHttpInfo(tag_gid, opts).then(function (response_and_data) {
495
+ value: function updateTag(body, tag_gid, opts) {
496
+ return this.updateTagWithHttpInfo(body, tag_gid, opts).then(function (response_and_data) {
491
497
  return response_and_data.data;
492
498
  });
493
499
  }
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
29
29
  /**
30
30
  * TaskTemplates service.
31
31
  * @module api/TaskTemplatesApi
32
- * @version 3.0.11
32
+ * @version v3.0.14
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.11
38
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
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.11
32
+ * @version v3.0.14
33
33
  */
34
34
  var UserTaskListsApi = exports.UserTaskListsApi = /*#__PURE__*/function () {
35
35
  /**