Skip to content

Commit

Permalink
Updated JavaScript SDK: v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jv-asana authored and actions-user committed Jan 19, 2024
1 parent 3ddbee9 commit f5208d3
Show file tree
Hide file tree
Showing 84 changed files with 278 additions and 254 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.46
3.0.52
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
> For now, if you’re in search of a version that has stood the test of time and is proven to be stable, we recommend using version 1.0.2. You can easily install it using: `npm install asana@1.0.2` and following v1 samples and documentation.
- API version: 1.0
- Package version: 3.0.0
- Package version: 3.0.1

## Installation

Expand All @@ -29,7 +29,7 @@ npm install asana --save
Include the latest release directly from GitHub:

```html
<script src="https://github.com/Asana/node-asana/releases/download/v3.0.0/asana-min.js"></script>
<script src="https://github.com/Asana/node-asana/releases/download/v3.0.1/asana-min.js"></script>
```

Example usage (**NOTE**: be careful not to expose your access token):
Expand Down Expand Up @@ -1011,6 +1011,6 @@ client.callApi(
```

[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.0
[release-url]: https://github.com/Asana/node-asana/releases/tag/v3.0.1
[npm-image]: http://img.shields.io/npm/v/asana.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/asana
2 changes: 1 addition & 1 deletion docs/BatchAPIApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';

let batchApiApiInstance = new Asana.BatchAPIApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The requests to batch together via the Batch API.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The requests to batch together via the Batch API.
let opts = {
'opt_fields': "body,headers,status_code"
};
Expand Down
2 changes: 1 addition & 1 deletion docs/BatchAPIApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BatchAPIApi:
token.accessToken = '<YOUR_ACCESS_TOKEN>';
let batchApiApiInstance = new Asana.BatchAPIApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The requests to batch together via the Batch API.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The requests to batch together via the Batch API.
let opts = {
'opt_fields': "body,headers,status_code"
};
Expand Down
10 changes: 5 additions & 5 deletions docs/CustomFieldsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';

let customFieldsApiInstance = new Asana.CustomFieldsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The custom field object to create.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The custom field object to create.
let opts = {
'opt_fields': "asana_created_field,created_by,created_by.name,currency_code,custom_label,custom_label_position,date_value,date_value.date,date_value.date_time,description,display_value,enabled,enum_options,enum_options.color,enum_options.enabled,enum_options.name,enum_value,enum_value.color,enum_value.enabled,enum_value.name,format,has_notifications_enabled,is_formula_field,is_global_to_workspace,is_value_read_only,multi_enum_values,multi_enum_values.color,multi_enum_values.enabled,multi_enum_values.name,name,number_value,people_value,people_value.name,precision,resource_subtype,text_value,type"
};
Expand Down Expand Up @@ -79,7 +79,7 @@ token.accessToken = '<YOUR_ACCESS_TOKEN>';
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.createEnumOptionForCustomField(custom_field_gid, opts).then((result) => {
Expand Down Expand Up @@ -266,7 +266,7 @@ token.accessToken = '<YOUR_ACCESS_TOKEN>';
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.insertEnumOptionForCustomField(custom_field_gid, opts).then((result) => {
Expand Down Expand Up @@ -314,7 +314,7 @@ token.accessToken = '<YOUR_ACCESS_TOKEN>';
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "asana_created_field,created_by,created_by.name,currency_code,custom_label,custom_label_position,date_value,date_value.date,date_value.date_time,description,display_value,enabled,enum_options,enum_options.color,enum_options.enabled,enum_options.name,enum_value,enum_value.color,enum_value.enabled,enum_value.name,format,has_notifications_enabled,is_formula_field,is_global_to_workspace,is_value_read_only,multi_enum_values,multi_enum_values.color,multi_enum_values.enabled,multi_enum_values.name,name,number_value,people_value,people_value.name,precision,resource_subtype,text_value,type"
};
customFieldsApiInstance.updateCustomField(custom_field_gid, opts).then((result) => {
Expand Down Expand Up @@ -362,7 +362,7 @@ token.accessToken = '<YOUR_ACCESS_TOKEN>';
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let enum_option_gid = "124578"; // String | Globally unique identifier for the enum option.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.updateEnumOption(enum_option_gid, opts).then((result) => {
Expand Down
10 changes: 5 additions & 5 deletions docs/CustomFieldsApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CustomFieldsApi:
token.accessToken = '<YOUR_ACCESS_TOKEN>';
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The custom field object to create.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The custom field object to create.
let opts = {
'opt_fields': "asana_created_field,created_by,created_by.name,currency_code,custom_label,custom_label_position,date_value,date_value.date,date_value.date_time,description,display_value,enabled,enum_options,enum_options.color,enum_options.enabled,enum_options.name,enum_value,enum_value.color,enum_value.enabled,enum_value.name,format,has_notifications_enabled,is_formula_field,is_global_to_workspace,is_value_read_only,multi_enum_values,multi_enum_values.color,multi_enum_values.enabled,multi_enum_values.name,name,number_value,people_value,people_value.name,precision,resource_subtype,text_value,type"
};
Expand All @@ -27,7 +27,7 @@ CustomFieldsApi:
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.createEnumOptionForCustomField(custom_field_gid, opts).then((result) => {
Expand Down Expand Up @@ -100,7 +100,7 @@ CustomFieldsApi:
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.insertEnumOptionForCustomField(custom_field_gid, opts).then((result) => {
Expand All @@ -119,7 +119,7 @@ CustomFieldsApi:
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let custom_field_gid = "12345"; // String | Globally unique identifier for the custom field.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "asana_created_field,created_by,created_by.name,currency_code,custom_label,custom_label_position,date_value,date_value.date,date_value.date_time,description,display_value,enabled,enum_options,enum_options.color,enum_options.enabled,enum_options.name,enum_value,enum_value.color,enum_value.enabled,enum_value.name,format,has_notifications_enabled,is_formula_field,is_global_to_workspace,is_value_read_only,multi_enum_values,multi_enum_values.color,multi_enum_values.enabled,multi_enum_values.name,name,number_value,people_value,people_value.name,precision,resource_subtype,text_value,type"
};
customFieldsApiInstance.updateCustomField(custom_field_gid, opts).then((result) => {
Expand All @@ -138,7 +138,7 @@ CustomFieldsApi:
let customFieldsApiInstance = new Asana.CustomFieldsApi();
let enum_option_gid = "124578"; // String | Globally unique identifier for the enum option.
let opts = {
'body': {"data": {"param1": "value1", "param2": "value2",}},
'body': {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}},
'opt_fields': "color,enabled,name"
};
customFieldsApiInstance.updateEnumOption(enum_option_gid, opts).then((result) => {
Expand Down
6 changes: 3 additions & 3 deletions docs/GoalRelationshipsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';

let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The supporting resource to be added to the goal
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The supporting resource to be added to the goal
let goal_gid = "12345"; // String | Globally unique identifier for the goal.
let opts = {
'opt_fields': "contribution_weight,resource_subtype,supported_goal,supported_goal.name,supported_goal.owner,supported_goal.owner.name,supporting_resource,supporting_resource.name"
Expand Down Expand Up @@ -174,7 +174,7 @@ let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';

let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The supporting resource to be removed from the goal
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The supporting resource to be removed from the goal
let goal_gid = "12345"; // String | Globally unique identifier for the goal.

goalRelationshipsApiInstance.removeSupportingRelationship(body, goal_gid).then((result) => {
Expand Down Expand Up @@ -219,7 +219,7 @@ let token = client.authentications['token'];
token.accessToken = '<YOUR_ACCESS_TOKEN>';

let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The updated fields for the goal relationship.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The updated fields for the goal relationship.
let goal_relationship_gid = "12345"; // String | Globally unique identifier for the goal relationship.
let opts = {
'opt_fields': "contribution_weight,resource_subtype,supported_goal,supported_goal.name,supported_goal.owner,supported_goal.owner.name,supporting_resource,supporting_resource.name"
Expand Down
6 changes: 3 additions & 3 deletions docs/GoalRelationshipsApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ GoalRelationshipsApi:
token.accessToken = '<YOUR_ACCESS_TOKEN>';
let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The supporting resource to be added to the goal
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The supporting resource to be added to the goal
let goal_gid = "12345"; // String | Globally unique identifier for the goal.
let opts = {
'opt_fields': "contribution_weight,resource_subtype,supported_goal,supported_goal.name,supported_goal.owner,supported_goal.owner.name,supporting_resource,supporting_resource.name"
Expand Down Expand Up @@ -65,7 +65,7 @@ GoalRelationshipsApi:
token.accessToken = '<YOUR_ACCESS_TOKEN>';
let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The supporting resource to be removed from the goal
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The supporting resource to be removed from the goal
let goal_gid = "12345"; // String | Globally unique identifier for the goal.
goalRelationshipsApiInstance.removeSupportingRelationship(body, goal_gid).then((result) => {
Expand All @@ -82,7 +82,7 @@ GoalRelationshipsApi:
token.accessToken = '<YOUR_ACCESS_TOKEN>';
let goalRelationshipsApiInstance = new Asana.GoalRelationshipsApi();
let body = {"data": {"param1": "value1", "param2": "value2",}}; // Object | The updated fields for the goal relationship.
let body = {"data": {"<PARAM_1>": "<VALUE_1>", "<PARAM_2>": "<VALUE_2>",}}; // Object | The updated fields for the goal relationship.
let goal_relationship_gid = "12345"; // String | Globally unique identifier for the goal relationship.
let opts = {
'opt_fields': "contribution_weight,resource_subtype,supported_goal,supported_goal.name,supported_goal.owner,supported_goal.owner.name,supporting_resource,supporting_resource.name"
Expand Down

0 comments on commit f5208d3

Please sign in to comment.