Skip to content

Commit e2e2cd1

Browse files
jv-asanaactions-user
authored andcommitted
Updated JavaScript SDK: v2.0.2
1 parent a4272f9 commit e2e2cd1

483 files changed

Lines changed: 736 additions & 521 deletions

File tree

Some content is hidden

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

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
JavaScript client library for Asana.
44

55
- API version: 1.0
6-
- Package version: 2.0.1
6+
- Package version: 2.0.2
77

88
## Installation
99

@@ -30,7 +30,7 @@ then install it via:
3030
Include the latest release directly from GitHub:
3131

3232
```html
33-
<script src="https://github.com/Asana/node-asana/releases/download/v2.0.1/asana-min.js"></script>
33+
<script src="https://github.com/Asana/node-asana/releases/download/v2.0.2/asana-min.js"></script>
3434
```
3535

3636
Example usage:
@@ -439,6 +439,7 @@ Class | Method | HTTP request | Description
439439
- [Asana.AttachmentResponseArray](docs/AttachmentResponseArray.md)
440440
- [Asana.AttachmentResponseData](docs/AttachmentResponseData.md)
441441
- [Asana.AttachmentResponseParent](docs/AttachmentResponseParent.md)
442+
- [Asana.AttachmentResponseParentCreatedBy](docs/AttachmentResponseParentCreatedBy.md)
442443
- [Asana.AuditLogEvent](docs/AuditLogEvent.md)
443444
- [Asana.AuditLogEventActor](docs/AuditLogEventActor.md)
444445
- [Asana.AuditLogEventArray](docs/AuditLogEventArray.md)

docs/AttachmentResponseParent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ Name | Type | Description | Notes
77
**resource_type** | **String** | The base type of this resource. | [optional]
88
**name** | **String** | The name of the task. | [optional]
99
**resource_subtype** | **String** | The resource subtype of the parent resource that the filter applies to. | [optional]
10+
**created_by** | [**AttachmentResponseParentCreatedBy**](AttachmentResponseParentCreatedBy.md) | | [optional]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Asana.AttachmentResponseParentCreatedBy
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**gid** | **String** | Globally unique identifier of the resource. | [optional]
7+
**resource_type** | **String** | The type of resource. | [optional]

docs/AttachmentsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let opts = {
3535
'url': "url_example" // String |
3636
'name': "name_example" // String |
3737
'connect_to_app': true // Boolean |
38-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
38+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
3939
};
4040
apiInstance.createAttachmentForObject(opts, (error, data, response) => {
4141
if (error) {
@@ -139,7 +139,7 @@ oauth2.accessToken = '<YOUR_PERSONAL_ACCESS_TOKEN>';
139139
let apiInstance = new Asana.AttachmentsApi();
140140
let attachment_gid = "12345"; // String | Globally unique identifier for the attachment.
141141
let opts = {
142-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
142+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
143143
};
144144
apiInstance.getAttachment(attachment_gid, opts, (error, data, response) => {
145145
if (error) {
@@ -192,7 +192,7 @@ let parent = "159874"; // String | Globally unique identifier for object to fetc
192192
let opts = {
193193
'limit': 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
194194
'offset': "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // 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.'
195-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | 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.
195+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | 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.
196196
};
197197
apiInstance.getAttachmentsForObject(parent, opts, (error, data, response) => {
198198
if (error) {

docs/AttachmentsApi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AttachmentsApi:
1616
'url': "url_example" // String |
1717
'name': "name_example" // String |
1818
'connect_to_app': true // Boolean |
19-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
19+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
2020
};
2121
apiInstance.createAttachmentForObject(opts, (error, data, response) => {
2222
if (error) {
@@ -54,7 +54,7 @@ AttachmentsApi:
5454
let apiInstance = new Asana.AttachmentsApi();
5555
let attachment_gid = "12345"; // String | Globally unique identifier for the attachment.
5656
let opts = {
57-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
57+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","parent","parent.created_by","parent.name","parent.resource_subtype","permanent_url","resource_subtype","size","view_url"] // [String] | 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.
5858
};
5959
apiInstance.getAttachment(attachment_gid, opts, (error, data, response) => {
6060
if (error) {
@@ -76,7 +76,7 @@ AttachmentsApi:
7676
let opts = {
7777
'limit': 50, // Number | Results per page. The number of objects to return per page. The value must be between 1 and 100.
7878
'offset': "eyJ0eXAiOJiKV1iQLCJhbGciOiJIUzI1NiJ9", // 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.'
79-
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | 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.
79+
'opt_fields': ["connected_to_app","created_at","download_url","host","name","offset","parent","parent.created_by","parent.name","parent.resource_subtype","path","permanent_url","resource_subtype","size","uri","view_url"] // [String] | 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.
8080
};
8181
apiInstance.getAttachmentsForObject(parent, opts, (error, data, response) => {
8282
if (error) {

docs/JobBaseNewTask.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**resource_type** | **String** | The base type of this resource. | [optional]
88
**name** | **String** | The name of the task. | [optional]
99
**resource_subtype** | **String** | The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning. The resource_subtype &#x60;milestone&#x60; represent a single moment in time. This means tasks with this subtype cannot have a start_date. | [optional]
10+
**created_by** | [**AttachmentResponseParentCreatedBy**](AttachmentResponseParentCreatedBy.md) | | [optional]
1011

1112
<a name="ResourceSubtypeEnum"></a>
1213
## Enum: ResourceSubtypeEnum

docs/JobsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ oauth2.accessToken = '<YOUR_PERSONAL_ACCESS_TOKEN>';
2626
let apiInstance = new Asana.JobsApi();
2727
let job_gid = "12345"; // String | Globally unique identifier for the job.
2828
let opts = {
29-
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.
29+
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.created_by","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
3030
};
3131
apiInstance.getJob(job_gid, opts, (error, data, response) => {
3232
if (error) {

docs/JobsApi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ JobsApi:
1010
let apiInstance = new Asana.JobsApi();
1111
let job_gid = "12345"; // String | Globally unique identifier for the job.
1212
let opts = {
13-
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
13+
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.created_by","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
1414
};
1515
apiInstance.getJob(job_gid, opts, (error, data, response) => {
1616
if (error) {

docs/ProjectTemplatesApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ let apiInstance = new Asana.ProjectTemplatesApi();
242242
let project_template_gid = "1331"; // String | Globally unique identifier for the project template.
243243
let opts = {
244244
'body': new Asana.ProjectTemplateGidInstantiateProjectBody.constructFromObject({data: {param1: "value1", param2: "value2",}}) // ProjectTemplateGidInstantiateProjectBody | Describes the inputs used for instantiating a project, such as the resulting project's name, which team it should be created in, and values for date variables.
245-
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
245+
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.created_by","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
246246
};
247247
apiInstance.instantiateProject(project_template_gid, opts, (error, data, response) => {
248248
if (error) {

docs/ProjectTemplatesApi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ ProjectTemplatesApi:
9494
let project_template_gid = "1331"; // String | Globally unique identifier for the project template.
9595
let opts = {
9696
'body': new Asana.ProjectTemplateGidInstantiateProjectBody.constructFromObject({data: {param1: "value1", param2: "value2",}}) // ProjectTemplateGidInstantiateProjectBody | Describes the inputs used for instantiating a project, such as the resulting project's name, which team it should be created in, and values for date variables.
97-
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
97+
'opt_fields': ["new_project","new_project.name","new_project_template","new_project_template.name","new_task","new_task.created_by","new_task.name","new_task.resource_subtype","resource_subtype","status"] // [String] | 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.
9898
};
9999
apiInstance.instantiateProject(project_template_gid, opts, (error, data, response) => {
100100
if (error) {

0 commit comments

Comments
 (0)