Skip to content

Commit 2bdb2fd

Browse files
Updated JavaScript SDK: v3.0.15
1 parent 23a247e commit 2bdb2fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+76
-82
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# asana [![GitHub release][release-image]][release-url] [![NPM Version][npm-image]][npm-url]
22

33
- API version: 1.0
4-
- Package version: v3.0.14
4+
- Package version: 3.0.15
55

66
## Installation
77

@@ -18,7 +18,7 @@ npm install asana --save
1818
Include the latest release directly from GitHub:
1919

2020
```html
21-
<script src="https://github.com/Asana/node-asana/releases/download/vv3.0.14/asana-min.js"></script>
21+
<script src="https://github.com/Asana/node-asana/releases/download/v3.0.15/asana-min.js"></script>
2222
```
2323

2424
Example usage (**NOTE**: be careful not to expose your access token):
@@ -1111,6 +1111,6 @@ client.callApi(
11111111
```
11121112

11131113
[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
1114-
[release-url]: https://github.com/Asana/node-asana/releases/tag/vv3.0.14
1114+
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.15
11151115
[npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
11161116
[npm-url]: https://www.npmjs.org/package/asana

docs/MembershipsApi.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Method | HTTP request | Description
1515

1616
Create a membership
1717

18-
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.
18+
Creates a new membership in a `goal`, `project`, `portfolio`, or `custom_field`. Teams or Users can be members of `goals` or `projects`. Portfolios and custom fields only support `users` as members. Returns the full record of the newly created membership.
1919

2020
([more information](https://developers.asana.com/reference/createmembership))
2121

@@ -59,7 +59,7 @@ object
5959

6060
Delete a membership
6161

62-
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.
62+
A specific, existing membership for a `goal`, `project`, `portfolio` or `custom_field` can be deleted by making a `DELETE` request on the URL for that membership. Returns an empty data record.
6363

6464
([more information](https://developers.asana.com/reference/deletemembership))
6565

@@ -102,7 +102,7 @@ object
102102

103103
Get a membership
104104

105-
Returns compact `project_membership` record for a single membership. `GET` only supports project memberships currently
105+
Returns a `project_membership`, `goal_membership`, `portfolio_membership`, or `custom_field_membership` record for a membership id.
106106

107107
([more information](https://developers.asana.com/reference/getmembership))
108108

@@ -116,10 +116,8 @@ token.accessToken = '<YOUR_ACCESS_TOKEN>';
116116

117117
let membershipsApiInstance = new Asana.MembershipsApi();
118118
let membership_gid = "12345"; // String | Globally unique identifier for the membership.
119-
let opts = {
120-
'opt_fields': "access_level,member,member.name,parent,parent.name,resource_subtype"
121-
};
122-
membershipsApiInstance.getMembership(membership_gid, opts).then((result) => {
119+
120+
membershipsApiInstance.getMembership(membership_gid).then((result) => {
123121
console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
124122
}, (error) => {
125123
console.error(error.response.body);
@@ -132,7 +130,6 @@ membershipsApiInstance.getMembership(membership_gid, opts).then((result) => {
132130
Name | Type | Description | Notes
133131
------------- | ------------- | ------------- | -------------
134132
**membership_gid** | **String**| Globally unique identifier for the membership. |
135-
**opt_fields** | **Object**| 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. | [optional]
136133

137134
### Return type
138135

@@ -148,7 +145,7 @@ object
148145

149146
Get multiple memberships
150147

151-
Returns compact `goal_membership`, `project_membership`, or `portfolio_membership` records. The possible types for `parent` in this request are `goal`, `project`, or `portfolio`. 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.
148+
Returns compact `goal_membership`, `project_membership`, `portfolio_membership`, or `custom_field_membership` records. The possible types for `parent` in this request are `goal`, `project`, `portfolio`, or `custom_field`. An additional member (user GID or team GID) can be passed in to filter to a specific membership. Team as members are not supported for portfolios or custom fields yet.
152149

153150
([more information](https://developers.asana.com/reference/getmemberships))
154151

@@ -180,7 +177,7 @@ membershipsApiInstance.getMemberships(opts).then((result) => {
180177

181178
Name | Type | Description | Notes
182179
------------- | ------------- | ------------- | -------------
183-
**parent** | **String**| Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, or &#x60;portfolio&#x60;. | [optional]
180+
**parent** | **String**| Globally unique identifier for &#x60;goal&#x60;, &#x60;project&#x60;, &#x60;portfolio&#x60;, or &#x60;custom_field&#x60;. | [optional]
184181
**member** | **String**| Globally unique identifier for &#x60;team&#x60; or &#x60;user&#x60;. | [optional]
185182
**limit** | **Number**| Results per page. The number of objects to return per page. The value must be between 1 and 100. | [optional]
186183
**offset** | **String**| 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.* | [optional]
@@ -200,7 +197,7 @@ object
200197

201198
Update a membership
202199

203-
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.
200+
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`, `portfolios`, and `custom_fields` can be updated. Returns the full record of the updated membership.
204201

205202
([more information](https://developers.asana.com/reference/updatemembership))
206203

docs/MembershipsApi.yaml

+2-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ MembershipsApi:
4141
4242
let membershipsApiInstance = new Asana.MembershipsApi();
4343
let membership_gid = "12345"; // String | Globally unique identifier for the membership.
44-
let opts = {
45-
'opt_fields': "access_level,member,member.name,parent,parent.name,resource_subtype"
46-
};
47-
membershipsApiInstance.getMembership(membership_gid, opts).then((result) => {
44+
45+
membershipsApiInstance.getMembership(membership_gid).then((result) => {
4846
console.log('API called successfully. Returned data: ' + JSON.stringify(result.data, null, 2));
4947
}, (error) => {
5048
console.error(error.response.body);

docs/TasksApi.md

+2
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ let opts = {
12151215
'tags.not': "12345,23456,34567",
12161216
'tags.all': "12345,23456,34567",
12171217
'teams.any': "12345,23456,34567",
1218+
'followers.any': "12345,23456,34567",
12181219
'followers.not': "12345,23456,34567",
12191220
'created_by.any': "12345,23456,34567",
12201221
'created_by.not': "12345,23456,34567",
@@ -1290,6 +1291,7 @@ Name | Type | Description | Notes
12901291
**tags.not** | **String**| Comma-separated list of tag IDs | [optional]
12911292
**tags.all** | **String**| Comma-separated list of tag IDs | [optional]
12921293
**teams.any** | **String**| Comma-separated list of team IDs | [optional]
1294+
**followers.any** | **String**| Comma-separated list of user identifiers | [optional]
12931295
**followers.not** | **String**| Comma-separated list of user identifiers | [optional]
12941296
**created_by.any** | **String**| Comma-separated list of user identifiers | [optional]
12951297
**created_by.not** | **String**| Comma-separated list of user identifiers | [optional]

docs/TasksApi.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ TasksApi:
473473
'tags.not': "12345,23456,34567",
474474
'tags.all': "12345,23456,34567",
475475
'teams.any': "12345,23456,34567",
476+
'followers.any': "12345,23456,34567",
476477
'followers.not': "12345,23456,34567",
477478
'created_by.any': "12345,23456,34567",
478479
'created_by.not': "12345,23456,34567",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asana",
3-
"version": "v3.0.14",
3+
"version": "3.0.15",
44
"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_",
55
"license": "Apache 2.0",
66
"main": "src/index.js",

src/ApiClient.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import superagent from "superagent";
1616

1717
/**
1818
* @module ApiClient
19-
* @version v3.0.14
19+
* @version 3.0.15
2020
*/
2121

2222
/**
@@ -412,7 +412,7 @@ export class ApiClient {
412412
if (typeof(navigator) === 'undefined' || typeof(window) === 'undefined') {
413413
headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
414414
{
415-
'version': "v3.0.14",
415+
'version': "3.0.15",
416416
'language': 'NodeJS',
417417
'language_version': process.version,
418418
'os': process.platform
@@ -421,7 +421,7 @@ export class ApiClient {
421421
} else {
422422
headerParams['X-Asana-Client-Lib'] = new URLSearchParams(
423423
{
424-
'version': "v3.0.14",
424+
'version': "3.0.15",
425425
'language': 'BrowserJS'
426426
}
427427
).toString();

src/api/AllocationsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* Allocations service.
2020
* @module api/AllocationsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class AllocationsApi {
2424

src/api/AttachmentsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* Attachments service.
2020
* @module api/AttachmentsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class AttachmentsApi {
2424

src/api/AuditLogAPIApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* AuditLogAPI service.
2020
* @module api/AuditLogAPIApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class AuditLogAPIApi {
2424

src/api/BatchAPIApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* BatchAPI service.
2020
* @module api/BatchAPIApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class BatchAPIApi {
2424

src/api/CustomFieldSettingsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* CustomFieldSettings service.
2020
* @module api/CustomFieldSettingsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class CustomFieldSettingsApi {
2424

src/api/CustomFieldsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* CustomFields service.
2020
* @module api/CustomFieldsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class CustomFieldsApi {
2424

src/api/EventsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* Events service.
2020
* @module api/EventsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class EventsApi {
2424

src/api/GoalRelationshipsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* GoalRelationships service.
2020
* @module api/GoalRelationshipsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class GoalRelationshipsApi {
2424

src/api/GoalsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* Goals service.
2020
* @module api/GoalsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class GoalsApi {
2424

src/api/JobsApi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var Collection = require('../utils/collection');
1818
/**
1919
* Jobs service.
2020
* @module api/JobsApi
21-
* @version v3.0.14
21+
* @version 3.0.15
2222
*/
2323
export class JobsApi {
2424

0 commit comments

Comments
 (0)