asana 3.0.11 → 3.0.12
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.
- package/README.md +3 -3
- package/dist/ApiClient.js +3 -3
- package/dist/api/AllocationsApi.js +1 -1
- package/dist/api/AttachmentsApi.js +1 -1
- package/dist/api/AuditLogAPIApi.js +1 -1
- package/dist/api/BatchAPIApi.js +1 -1
- package/dist/api/CustomFieldSettingsApi.js +1 -1
- package/dist/api/CustomFieldsApi.js +1 -1
- package/dist/api/EventsApi.js +1 -1
- package/dist/api/GoalRelationshipsApi.js +1 -1
- package/dist/api/GoalsApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MembershipsApi.js +7 -7
- package/dist/api/OrganizationExportsApi.js +1 -1
- package/dist/api/PortfolioMembershipsApi.js +4 -4
- package/dist/api/PortfoliosApi.js +1 -1
- package/dist/api/ProjectBriefsApi.js +1 -1
- package/dist/api/ProjectMembershipsApi.js +1 -1
- package/dist/api/ProjectStatusesApi.js +1 -1
- package/dist/api/ProjectTemplatesApi.js +1 -1
- package/dist/api/ProjectsApi.js +3 -3
- package/dist/api/RulesApi.js +1 -1
- package/dist/api/SectionsApi.js +1 -1
- package/dist/api/StatusUpdatesApi.js +1 -1
- package/dist/api/StoriesApi.js +1 -1
- package/dist/api/TagsApi.js +12 -6
- package/dist/api/TaskTemplatesApi.js +1 -1
- package/dist/api/TasksApi.js +1 -1
- package/dist/api/TeamMembershipsApi.js +1 -1
- package/dist/api/TeamsApi.js +1 -1
- package/dist/api/TimePeriodsApi.js +1 -1
- package/dist/api/TimeTrackingEntriesApi.js +1 -1
- package/dist/api/TypeaheadApi.js +1 -1
- package/dist/api/UserTaskListsApi.js +1 -1
- package/dist/api/UsersApi.js +1 -1
- package/dist/api/WebhooksApi.js +1 -1
- package/dist/api/WorkspaceMembershipsApi.js +1 -1
- package/dist/api/WorkspacesApi.js +1 -1
- package/package.json +1 -1
- package/src/ApiClient.js +3 -3
- package/src/api/AllocationsApi.js +1 -1
- package/src/api/AttachmentsApi.js +1 -1
- package/src/api/AuditLogAPIApi.js +1 -1
- package/src/api/BatchAPIApi.js +1 -1
- package/src/api/CustomFieldSettingsApi.js +1 -1
- package/src/api/CustomFieldsApi.js +1 -1
- package/src/api/EventsApi.js +1 -1
- package/src/api/GoalRelationshipsApi.js +1 -1
- package/src/api/GoalsApi.js +1 -1
- package/src/api/JobsApi.js +1 -1
- package/src/api/MembershipsApi.js +7 -7
- package/src/api/OrganizationExportsApi.js +1 -1
- package/src/api/PortfolioMembershipsApi.js +4 -4
- package/src/api/PortfoliosApi.js +1 -1
- package/src/api/ProjectBriefsApi.js +1 -1
- package/src/api/ProjectMembershipsApi.js +1 -1
- package/src/api/ProjectStatusesApi.js +1 -1
- package/src/api/ProjectTemplatesApi.js +1 -1
- package/src/api/ProjectsApi.js +3 -3
- package/src/api/RulesApi.js +1 -1
- package/src/api/SectionsApi.js +1 -1
- package/src/api/StatusUpdatesApi.js +1 -1
- package/src/api/StoriesApi.js +1 -1
- package/src/api/TagsApi.js +12 -6
- package/src/api/TaskTemplatesApi.js +1 -1
- package/src/api/TasksApi.js +1 -1
- package/src/api/TeamMembershipsApi.js +1 -1
- package/src/api/TeamsApi.js +1 -1
- package/src/api/TimePeriodsApi.js +1 -1
- package/src/api/TimeTrackingEntriesApi.js +1 -1
- package/src/api/TypeaheadApi.js +1 -1
- package/src/api/UserTaskListsApi.js +1 -1
- package/src/api/UsersApi.js +1 -1
- package/src/api/WebhooksApi.js +1 -1
- package/src/api/WorkspaceMembershipsApi.js +1 -1
- package/src/api/WorkspacesApi.js +1 -1
- 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.
|
|
4
|
+
- Package version: 3.0.12
|
|
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.
|
|
21
|
+
<script src="https://github.com/Asana/node-asana/releases/download/v3.0.12/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.
|
|
1114
|
+
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.12
|
|
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.
|
|
31
|
+
* @version 3.0.12
|
|
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.
|
|
403
|
+
'version': "3.0.12",
|
|
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.
|
|
410
|
+
'version': "3.0.12",
|
|
411
411
|
'language': 'BrowserJS'
|
|
412
412
|
}).toString();
|
|
413
413
|
}
|
package/dist/api/BatchAPIApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* CustomFieldSettings service.
|
|
31
31
|
* @module api/CustomFieldSettingsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var CustomFieldSettingsApi = exports.CustomFieldSettingsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/EventsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* GoalRelationships service.
|
|
31
31
|
* @module api/GoalRelationshipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var GoalRelationshipsApi = exports.GoalRelationshipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/GoalsApi.js
CHANGED
package/dist/api/JobsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Memberships service.
|
|
31
31
|
* @module api/MembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
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 `goal`
|
|
50
|
+
* Creates a new membership in a `goal`, `project`, or `portfolio`. Teams or users can be members of `goals` or `projects`. Portfolios only support `users` 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 `goal`
|
|
75
|
+
* Creates a new membership in a `goal`, `project`, or `portfolio`. Teams or users can be members of `goals` or `projects`. Portfolios only support `users` 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 `goal`
|
|
90
|
+
* A specific, existing membership for a `goal`, `project` and `portfolio` can be deleted by making a `DELETE` 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 `goal`
|
|
117
|
+
* A specific, existing membership for a `goal`, `project` and `portfolio` can be deleted by making a `DELETE` 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 `PUT` request on the
|
|
247
|
+
* An existing membership can be updated by making a `PUT` request on the membership. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals`, `projects` and `portfolios` 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 `PUT` request on the
|
|
279
|
+
* An existing membership can be updated by making a `PUT` request on the membership. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals`, `projects` and `portfolios` 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.
|
|
32
|
+
* @version 3.0.12
|
|
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.
|
|
32
|
+
* @version 3.0.12
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
* ProjectMemberships service.
|
|
31
31
|
* @module api/ProjectMembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
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.
|
|
32
|
+
* @version 3.0.12
|
|
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.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var ProjectTemplatesApi = exports.ProjectTemplatesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Projects service.
|
|
31
31
|
* @module api/ProjectsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
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.
|
|
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'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.
|
|
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'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
|
package/dist/api/RulesApi.js
CHANGED
package/dist/api/SectionsApi.js
CHANGED
package/dist/api/StoriesApi.js
CHANGED
package/dist/api/TagsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* Tags service.
|
|
31
31
|
* @module api/TagsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
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 `data` 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 =
|
|
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 `data` 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
|
}
|
package/dist/api/TasksApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TeamMemberships service.
|
|
31
31
|
* @module api/TeamMembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var TeamMembershipsApi = exports.TeamMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/TeamsApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* TimeTrackingEntries service.
|
|
31
31
|
* @module api/TimeTrackingEntriesApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var TimeTrackingEntriesApi = exports.TimeTrackingEntriesApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/TypeaheadApi.js
CHANGED
package/dist/api/UsersApi.js
CHANGED
package/dist/api/WebhooksApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var Collection = require('../utils/collection');
|
|
|
29
29
|
/**
|
|
30
30
|
* WorkspaceMemberships service.
|
|
31
31
|
* @module api/WorkspaceMembershipsApi
|
|
32
|
-
* @version 3.0.
|
|
32
|
+
* @version 3.0.12
|
|
33
33
|
*/
|
|
34
34
|
var WorkspaceMembershipsApi = exports.WorkspaceMembershipsApi = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "asana",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
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.
|
|
19
|
+
* @version 3.0.12
|
|
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.
|
|
415
|
+
'version': "3.0.12",
|
|
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.
|
|
424
|
+
'version': "3.0.12",
|
|
425
425
|
'language': 'BrowserJS'
|
|
426
426
|
}
|
|
427
427
|
).toString();
|
package/src/api/BatchAPIApi.js
CHANGED
package/src/api/EventsApi.js
CHANGED
package/src/api/GoalsApi.js
CHANGED
package/src/api/JobsApi.js
CHANGED
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* Memberships service.
|
|
20
20
|
* @module api/MembershipsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.12
|
|
22
22
|
*/
|
|
23
23
|
export class MembershipsApi {
|
|
24
24
|
|
|
@@ -38,7 +38,7 @@ export class MembershipsApi {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a membership
|
|
41
|
-
* Creates a new membership in a `goal`
|
|
41
|
+
* Creates a new membership in a `goal`, `project`, or `portfolio`. Teams or users can be members of `goals` or `projects`. Portfolios only support `users` as members. Returns the full record of the newly created membership.
|
|
42
42
|
* @param {Object} opts Optional parameters
|
|
43
43
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
44
44
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
@@ -75,7 +75,7 @@ export class MembershipsApi {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Create a membership
|
|
78
|
-
* Creates a new membership in a `goal`
|
|
78
|
+
* Creates a new membership in a `goal`, `project`, or `portfolio`. Teams or users can be members of `goals` or `projects`. Portfolios only support `users` as members. Returns the full record of the newly created membership.
|
|
79
79
|
* @param {Object} opts Optional parameters
|
|
80
80
|
* @param {module:model/Object} opts.body The updated fields for the membership.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
@@ -91,7 +91,7 @@ export class MembershipsApi {
|
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Delete a membership
|
|
94
|
-
* A specific, existing membership for a `goal`
|
|
94
|
+
* A specific, existing membership for a `goal`, `project` and `portfolio` can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
95
95
|
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
96
96
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
97
97
|
*/
|
|
@@ -129,7 +129,7 @@ export class MembershipsApi {
|
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Delete a membership
|
|
132
|
-
* A specific, existing membership for a `goal`
|
|
132
|
+
* A specific, existing membership for a `goal`, `project` and `portfolio` can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
|
|
133
133
|
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
134
134
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EmptyResponseData}
|
|
135
135
|
*/
|
|
@@ -292,7 +292,7 @@ export class MembershipsApi {
|
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
294
|
* Update a membership
|
|
295
|
-
* An existing membership can be updated by making a `PUT` request on the
|
|
295
|
+
* An existing membership can be updated by making a `PUT` request on the membership. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals`, `projects` and `portfolios` can be updated. Returns the full record of the updated membership.
|
|
296
296
|
* @param {module:model/Object} body The membership to update.
|
|
297
297
|
* @param {String} membership_gid Globally unique identifier for the membership.
|
|
298
298
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
@@ -335,7 +335,7 @@ export class MembershipsApi {
|
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
337
|
* Update a membership
|
|
338
|
-
* An existing membership can be updated by making a `PUT` request on the
|
|
338
|
+
* An existing membership can be updated by making a `PUT` request on the membership. Only the fields provided in the `data` block will be updated; any unspecified fields will remain unchanged. Memberships on `goals`, `projects` and `portfolios` can be updated. Returns the full record of the updated membership.
|
|
339
339
|
* @param {<&vendorExtensions.x-jsdoc-type>} body The membership to update.
|
|
340
340
|
* @param {<&vendorExtensions.x-jsdoc-type>} membership_gid Globally unique identifier for the membership.
|
|
341
341
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MembershipResponseData}
|
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* PortfolioMemberships service.
|
|
20
20
|
* @module api/PortfolioMembershipsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.12
|
|
22
22
|
*/
|
|
23
23
|
export class PortfolioMembershipsApi {
|
|
24
24
|
|
|
@@ -84,7 +84,7 @@ export class PortfolioMembershipsApi {
|
|
|
84
84
|
* @param {<&vendorExtensions.x-jsdoc-type>} portfolio_membership_gid
|
|
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.
|
|
87
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
87
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseData}
|
|
88
88
|
*/
|
|
89
89
|
getPortfolioMembership(portfolio_membership_gid, opts) {
|
|
90
90
|
|
|
@@ -171,7 +171,7 @@ export class PortfolioMembershipsApi {
|
|
|
171
171
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
172
172
|
* @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.*
|
|
173
173
|
* @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.
|
|
174
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
174
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseArray}
|
|
175
175
|
*/
|
|
176
176
|
getPortfolioMemberships(opts) {
|
|
177
177
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
|
@@ -264,7 +264,7 @@ export class PortfolioMembershipsApi {
|
|
|
264
264
|
* @param {Number} opts.limit Results per page. The number of objects to return per page. The value must be between 1 and 100.
|
|
265
265
|
* @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.*
|
|
266
266
|
* @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.
|
|
267
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
267
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeprecatedPortfolioMembershipResponseArray}
|
|
268
268
|
*/
|
|
269
269
|
getPortfolioMembershipsForPortfolio(portfolio_gid, opts) {
|
|
270
270
|
// Check if RETURN_COLLECTION is set and return a collection object if it is
|
package/src/api/PortfoliosApi.js
CHANGED
package/src/api/ProjectsApi.js
CHANGED
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* Projects service.
|
|
20
20
|
* @module api/ProjectsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.12
|
|
22
22
|
*/
|
|
23
23
|
export class ProjectsApi {
|
|
24
24
|
|
|
@@ -1022,7 +1022,7 @@ export class ProjectsApi {
|
|
|
1022
1022
|
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Create a project template from a project
|
|
1025
|
-
* Creates and returns a job that will asynchronously handle the project template creation.
|
|
1025
|
+
* Creates and returns a job that will asynchronously handle the project template creation.
|
|
1026
1026
|
* @param {module:model/Object} body Describes the inputs used for creating a project template, such as the resulting project template's name, which team it should be created in.
|
|
1027
1027
|
* @param {String} project_gid Globally unique identifier for the project.
|
|
1028
1028
|
* @param {Object} opts Optional parameters
|
|
@@ -1069,7 +1069,7 @@ export class ProjectsApi {
|
|
|
1069
1069
|
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Create a project template from a project
|
|
1072
|
-
* Creates and returns a job that will asynchronously handle the project template creation.
|
|
1072
|
+
* Creates and returns a job that will asynchronously handle the project template creation.
|
|
1073
1073
|
* @param {<&vendorExtensions.x-jsdoc-type>} body Describes the inputs used for creating a project template, such as the resulting project template's name, which team it should be created in.
|
|
1074
1074
|
* @param {<&vendorExtensions.x-jsdoc-type>} project_gid Globally unique identifier for the project.
|
|
1075
1075
|
* @param {Object} opts Optional parameters
|
package/src/api/RulesApi.js
CHANGED
package/src/api/SectionsApi.js
CHANGED
package/src/api/StoriesApi.js
CHANGED
package/src/api/TagsApi.js
CHANGED
|
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
|
|
|
18
18
|
/**
|
|
19
19
|
* Tags service.
|
|
20
20
|
* @module api/TagsApi
|
|
21
|
-
* @version 3.0.
|
|
21
|
+
* @version 3.0.12
|
|
22
22
|
*/
|
|
23
23
|
export class TagsApi {
|
|
24
24
|
|
|
@@ -544,14 +544,19 @@ export class TagsApi {
|
|
|
544
544
|
/**
|
|
545
545
|
* Update a tag
|
|
546
546
|
* Updates the properties of a tag. Only the fields provided in the `data` 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.
|
|
547
|
+
* @param {module:model/Object} body The tag to update.
|
|
547
548
|
* @param {String} tag_gid Globally unique identifier for the tag.
|
|
548
549
|
* @param {Object} opts Optional parameters
|
|
549
550
|
* @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.
|
|
550
551
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data and HTTP response
|
|
551
552
|
*/
|
|
552
|
-
updateTagWithHttpInfo(tag_gid, opts) {
|
|
553
|
+
updateTagWithHttpInfo(body, tag_gid, opts) {
|
|
553
554
|
opts = opts || {};
|
|
554
|
-
let postBody =
|
|
555
|
+
let postBody = body;
|
|
556
|
+
// verify the required parameter 'body' is set
|
|
557
|
+
if (body === undefined || body === null) {
|
|
558
|
+
throw new Error("Missing the required parameter 'body' when calling updateTag");
|
|
559
|
+
}
|
|
555
560
|
// verify the required parameter 'tag_gid' is set
|
|
556
561
|
if (tag_gid === undefined || tag_gid === null) {
|
|
557
562
|
throw new Error("Missing the required parameter 'tag_gid' when calling updateTag");
|
|
@@ -572,7 +577,7 @@ export class TagsApi {
|
|
|
572
577
|
};
|
|
573
578
|
|
|
574
579
|
let authNames = ['personalAccessToken'];
|
|
575
|
-
let contentTypes = [];
|
|
580
|
+
let contentTypes = ['application/json; charset=UTF-8'];
|
|
576
581
|
let accepts = ['application/json; charset=UTF-8'];
|
|
577
582
|
let returnType = 'Blob';
|
|
578
583
|
|
|
@@ -586,14 +591,15 @@ export class TagsApi {
|
|
|
586
591
|
/**
|
|
587
592
|
* Update a tag
|
|
588
593
|
* Updates the properties of a tag. Only the fields provided in the `data` 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.
|
|
594
|
+
* @param {<&vendorExtensions.x-jsdoc-type>} body The tag to update.
|
|
589
595
|
* @param {<&vendorExtensions.x-jsdoc-type>} tag_gid Globally unique identifier for the tag.
|
|
590
596
|
* @param {Object} opts Optional parameters
|
|
591
597
|
* @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.
|
|
592
598
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TagResponseData}
|
|
593
599
|
*/
|
|
594
|
-
updateTag(tag_gid, opts) {
|
|
600
|
+
updateTag(body, tag_gid, opts) {
|
|
595
601
|
|
|
596
|
-
return this.updateTagWithHttpInfo(tag_gid, opts)
|
|
602
|
+
return this.updateTagWithHttpInfo(body, tag_gid, opts)
|
|
597
603
|
.then(function(response_and_data) {
|
|
598
604
|
return response_and_data.data;
|
|
599
605
|
});
|
package/src/api/TasksApi.js
CHANGED
package/src/api/TeamsApi.js
CHANGED
package/src/api/TypeaheadApi.js
CHANGED
package/src/api/UsersApi.js
CHANGED
package/src/api/WebhooksApi.js
CHANGED
package/src/api/WorkspacesApi.js
CHANGED