Skip to content

Commit

Permalink
Updated JavaScript SDK: v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jv-asana authored and actions-user committed Aug 29, 2023
1 parent 171bd7b commit b9d7c6a
Show file tree
Hide file tree
Showing 464 changed files with 488 additions and 474 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
JavaScript client library for Asana.

- API version: 1.0
- Package version: 2.0.5
- Package version: 2.0.6

## Installation

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

```html
<script src="https://github.com/Asana/node-asana/releases/download/v2.0.5/asana-min.js"></script>
<script src="https://github.com/Asana/node-asana/releases/download/v2.0.6/asana-min.js"></script>
```

Example usage:
Expand Down
2 changes: 1 addition & 1 deletion docs/ProjectRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Name | Type | Description | Notes
**default_access_level** | **String** | The default access for users or teams who join or are added as members to the project. | [optional]
**minimum_access_level_for_customization** | **String** | The minimum access level needed for project members to modify this project&#x27;s workflow and appearance. | [optional]
**minimum_access_level_for_sharing** | **String** | The minimum access level needed for project members to share the project and manage project memberships. | [optional]
**custom_fields** | **{String: String}** | An object where each key is a Custom Field GID and each value is an enum GID, string, number, or object. | [optional]
**custom_fields** | **{String: String}** | An object where each key is the GID of a custom field and its corresponding value is either an enum GID, string, number, or object (depending on the custom field type). See the [custom fields guide](/docs/custom-fields-guide) for details on creating and updating custom field values. | [optional]
**followers** | **String** | *Create-only*. Comma separated string of users. Followers are a subset of members who have opted in to receive \&quot;tasks added\&quot; notifications for a project. | [optional]
**owner** | **String** | The current owner of the project, may be null. | [optional]
**team** | **String** | The team that this project is shared with. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/ProjectUpdateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Name | Type | Description | Notes
**default_access_level** | **String** | The default access for users or teams who join or are added as members to the project. | [optional]
**minimum_access_level_for_customization** | **String** | The minimum access level needed for project members to modify this project&#x27;s workflow and appearance. | [optional]
**minimum_access_level_for_sharing** | **String** | The minimum access level needed for project members to share the project and manage project memberships. | [optional]
**custom_fields** | **{String: String}** | An object where each key is a Custom Field GID and each value is an enum GID, string, number, or object. | [optional]
**custom_fields** | **{String: String}** | An object where each key is the GID of a custom field and its corresponding value is either an enum GID, string, number, or object (depending on the custom field type). See the [custom fields guide](/docs/custom-fields-guide) for details on creating and updating custom field values. | [optional]
**followers** | **String** | *Create-only*. Comma separated string of users. Followers are a subset of members who have opted in to receive \&quot;tasks added\&quot; notifications for a project. | [optional]
**owner** | **String** | The current owner of the project, may be null. | [optional]
**team** | **String** | The team that this project is shared with. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/TaskRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Name | Type | Description | Notes
**actual_time_minutes** | **Number** | This value represents the sum of all the Time Tracking entries in the Actual Time field on a given Task. It is represented as a nullable long value. | [optional]
**assignee** | **String** | Gid of a user. | [optional]
**assignee_section** | **String** | The *assignee section* is a subdivision of a project that groups tasks together in the assignee&#x27;s \&quot;My Tasks\&quot; list. It can either be a header above a list of tasks in a list view or a column in a board view of \&quot;My Tasks.\&quot; The &#x60;assignee_section&#x60; property will be returned in the response only if the request was sent by the user who is the assignee of the task. Note that you can only write to &#x60;assignee_section&#x60; with the gid of an existing section visible in the user&#x27;s \&quot;My Tasks\&quot; list. | [optional]
**custom_fields** | **{String: String}** | An object where each key is a Custom Field GID and each value is an enum GID, string, number, object, or array. | [optional]
**custom_fields** | **{String: String}** | An object where each key is the GID of a custom field and its corresponding value is either an enum GID, string, number, object, or array (depending on the custom field type). See the [custom fields guide](/docs/custom-fields-guide) for details on creating and updating custom field values. | [optional]
**followers** | **[String]** | *Create-Only* An array of strings identifying users. These can either be the string \&quot;me\&quot;, an email, or the gid of a user. In order to change followers on an existing task use &#x60;addFollowers&#x60; and &#x60;removeFollowers&#x60;. | [optional]
**parent** | **String** | Gid of a task. | [optional]
**projects** | **[String]** | *Create-Only* Array of project gids. In order to change projects on an existing task use &#x60;addProject&#x60; and &#x60;removeProject&#x60;. | [optional]
Expand Down
6 changes: 6 additions & 0 deletions docs/TasksApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,13 @@ let opts = {
'opt_fields': ["actual_time_minutes","approval_status","assignee","assignee.name","assignee_section","assignee_section.name","assignee_status","completed","completed_at","completed_by","completed_by.name","created_at","created_by","custom_fields","custom_fields.asana_created_field","custom_fields.created_by","custom_fields.created_by.name","custom_fields.currency_code","custom_fields.custom_label","custom_fields.custom_label_position","custom_fields.date_value","custom_fields.date_value.date","custom_fields.date_value.date_time","custom_fields.description","custom_fields.display_value","custom_fields.enabled","custom_fields.enum_options","custom_fields.enum_options.color","custom_fields.enum_options.enabled","custom_fields.enum_options.name","custom_fields.enum_value","custom_fields.enum_value.color","custom_fields.enum_value.enabled","custom_fields.enum_value.name","custom_fields.format","custom_fields.has_notifications_enabled","custom_fields.is_formula_field","custom_fields.is_global_to_workspace","custom_fields.is_value_read_only","custom_fields.multi_enum_values","custom_fields.multi_enum_values.color","custom_fields.multi_enum_values.enabled","custom_fields.multi_enum_values.name","custom_fields.name","custom_fields.number_value","custom_fields.people_value","custom_fields.people_value.name","custom_fields.precision","custom_fields.resource_subtype","custom_fields.text_value","custom_fields.type","dependencies","dependents","due_at","due_on","external","external.data","followers","followers.name","hearted","hearts","hearts.user","hearts.user.name","html_notes","is_rendered_as_separator","liked","likes","likes.user","likes.user.name","memberships","memberships.project","memberships.project.name","memberships.section","memberships.section.name","modified_at","name","notes","num_hearts","num_likes","num_subtasks","parent","parent.created_by","parent.name","parent.resource_subtype","permalink_url","projects","projects.name","resource_subtype","start_at","start_on","tags","tags.name","workspace","workspace.name"] // [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.
};
// Custom fields query
opts['custom_fields_123_is_set'] = true; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_is_set. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_value'] = '456'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_value. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_starts_with'] = 'start'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_starts_with. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_ends_with'] = 'end'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_ends_with. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_contains'] = 'first'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_contains. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_less_than'] = 10; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_less_than. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_greater_than'] = 100; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_greater_than. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
apiInstance.searchTasksForWorkspace(workspace_gid, opts, (error, data, response) => {
if (error) {
console.error(error);
Expand Down
6 changes: 6 additions & 0 deletions docs/TasksApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,13 @@ TasksApi:
'opt_fields': ["actual_time_minutes","approval_status","assignee","assignee.name","assignee_section","assignee_section.name","assignee_status","completed","completed_at","completed_by","completed_by.name","created_at","created_by","custom_fields","custom_fields.asana_created_field","custom_fields.created_by","custom_fields.created_by.name","custom_fields.currency_code","custom_fields.custom_label","custom_fields.custom_label_position","custom_fields.date_value","custom_fields.date_value.date","custom_fields.date_value.date_time","custom_fields.description","custom_fields.display_value","custom_fields.enabled","custom_fields.enum_options","custom_fields.enum_options.color","custom_fields.enum_options.enabled","custom_fields.enum_options.name","custom_fields.enum_value","custom_fields.enum_value.color","custom_fields.enum_value.enabled","custom_fields.enum_value.name","custom_fields.format","custom_fields.has_notifications_enabled","custom_fields.is_formula_field","custom_fields.is_global_to_workspace","custom_fields.is_value_read_only","custom_fields.multi_enum_values","custom_fields.multi_enum_values.color","custom_fields.multi_enum_values.enabled","custom_fields.multi_enum_values.name","custom_fields.name","custom_fields.number_value","custom_fields.people_value","custom_fields.people_value.name","custom_fields.precision","custom_fields.resource_subtype","custom_fields.text_value","custom_fields.type","dependencies","dependents","due_at","due_on","external","external.data","followers","followers.name","hearted","hearts","hearts.user","hearts.user.name","html_notes","is_rendered_as_separator","liked","likes","likes.user","likes.user.name","memberships","memberships.project","memberships.project.name","memberships.section","memberships.section.name","modified_at","name","notes","num_hearts","num_likes","num_subtasks","parent","parent.created_by","parent.name","parent.resource_subtype","permalink_url","projects","projects.name","resource_subtype","start_at","start_on","tags","tags.name","workspace","workspace.name"] // [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.
};
// Custom fields query
opts['custom_fields_123_is_set'] = true; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_is_set. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_value'] = '456'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_value. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_starts_with'] = 'start'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_starts_with. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_ends_with'] = 'end'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_ends_with. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_contains'] = 'first'; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_contains. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_less_than'] = 10; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_less_than. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
opts['custom_fields_123_greater_than'] = 100; // The format of this query parameter should be custom_fields_<CUSTOM_FIELD_GID>_greater_than. NOTE: searching for multiple exact matches of a custom field, searching for multi-enum custom field
apiInstance.searchTasksForWorkspace(workspace_gid, opts, (error, data, response) => {
if (error) {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asana",
"version": "2.0.5",
"version": "2.0.6",
"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_",
"license": "Apache 2.0",
"main": "src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 2.0.5
* @version 2.0.6
*/

/**
Expand Down Expand Up @@ -401,7 +401,7 @@ export class ApiClient {
// set header parameters
headerParams['X-Asana-Client-Lib'] = querystring.stringify(
{
'version': "2.0.5",
'version': "2.0.6",
'language': 'NodeJS',
'language_version': process.version,
'os': process.platform
Expand Down
2 changes: 1 addition & 1 deletion src/api/AttachmentsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {ErrorResponse} from '../model/ErrorResponse';
/**
* Attachments service.
* @module api/AttachmentsApi
* @version 2.0.5
* @version 2.0.6
*/
export class AttachmentsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/AuditLogAPIApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {ErrorResponse} from '../model/ErrorResponse';
/**
* AuditLogAPI service.
* @module api/AuditLogAPIApi
* @version 2.0.5
* @version 2.0.6
*/
export class AuditLogAPIApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/BatchAPIApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {ErrorResponse} from '../model/ErrorResponse';
/**
* BatchAPI service.
* @module api/BatchAPIApi
* @version 2.0.5
* @version 2.0.6
*/
export class BatchAPIApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/CustomFieldSettingsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {ErrorResponse} from '../model/ErrorResponse';
/**
* CustomFieldSettings service.
* @module api/CustomFieldSettingsApi
* @version 2.0.5
* @version 2.0.6
*/
export class CustomFieldSettingsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/CustomFieldsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {ErrorResponse} from '../model/ErrorResponse';
/**
* CustomFields service.
* @module api/CustomFieldsApi
* @version 2.0.5
* @version 2.0.6
*/
export class CustomFieldsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/EventsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {InlineResponse412} from '../model/InlineResponse412';
/**
* Events service.
* @module api/EventsApi
* @version 2.0.5
* @version 2.0.6
*/
export class EventsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/GoalRelationshipsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {GoalRelationshipsGoalRelationshipGidBody} from '../model/GoalRelationshi
/**
* GoalRelationships service.
* @module api/GoalRelationshipsApi
* @version 2.0.5
* @version 2.0.6
*/
export class GoalRelationshipsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/GoalsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {GoalsGoalGidBody} from '../model/GoalsGoalGidBody';
/**
* Goals service.
* @module api/GoalsApi
* @version 2.0.5
* @version 2.0.6
*/
export class GoalsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/JobsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {JobResponseData} from '../model/JobResponseData';
/**
* Jobs service.
* @module api/JobsApi
* @version 2.0.5
* @version 2.0.6
*/
export class JobsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/MembershipsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {ProjectMembershipCompactResponseData} from '../model/ProjectMembershipCo
/**
* Memberships service.
* @module api/MembershipsApi
* @version 2.0.5
* @version 2.0.6
*/
export class MembershipsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/OrganizationExportsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {OrganizationExportsBody} from '../model/OrganizationExportsBody';
/**
* OrganizationExports service.
* @module api/OrganizationExportsApi
* @version 2.0.5
* @version 2.0.6
*/
export class OrganizationExportsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/PortfolioMembershipsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {PortfolioMembershipResponseData} from '../model/PortfolioMembershipRespo
/**
* PortfolioMemberships service.
* @module api/PortfolioMembershipsApi
* @version 2.0.5
* @version 2.0.6
*/
export class PortfolioMembershipsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/PortfoliosApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {ProjectResponseArray} from '../model/ProjectResponseArray';
/**
* Portfolios service.
* @module api/PortfoliosApi
* @version 2.0.5
* @version 2.0.6
*/
export class PortfoliosApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ProjectBriefsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {ProjectGidProjectBriefsBody} from '../model/ProjectGidProjectBriefsBody'
/**
* ProjectBriefs service.
* @module api/ProjectBriefsApi
* @version 2.0.5
* @version 2.0.6
*/
export class ProjectBriefsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ProjectMembershipsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {ProjectMembershipNormalResponseData} from '../model/ProjectMembershipNor
/**
* ProjectMemberships service.
* @module api/ProjectMembershipsApi
* @version 2.0.5
* @version 2.0.6
*/
export class ProjectMembershipsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ProjectStatusesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {ProjectStatusResponseData} from '../model/ProjectStatusResponseData';
/**
* ProjectStatuses service.
* @module api/ProjectStatusesApi
* @version 2.0.5
* @version 2.0.6
*/
export class ProjectStatusesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ProjectTemplatesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {ProjectTemplateResponseData} from '../model/ProjectTemplateResponseData'
/**
* ProjectTemplates service.
* @module api/ProjectTemplatesApi
* @version 2.0.5
* @version 2.0.6
*/
export class ProjectTemplatesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/ProjectsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {WorkspaceGidProjectsBody} from '../model/WorkspaceGidProjectsBody';
/**
* Projects service.
* @module api/ProjectsApi
* @version 2.0.5
* @version 2.0.6
*/
export class ProjectsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/RulesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {RuleTriggerResponseData} from '../model/RuleTriggerResponseData';
/**
* Rules service.
* @module api/RulesApi
* @version 2.0.5
* @version 2.0.6
*/
export class RulesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/SectionsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {SectionsSectionGidBody} from '../model/SectionsSectionGidBody';
/**
* Sections service.
* @module api/SectionsApi
* @version 2.0.5
* @version 2.0.6
*/
export class SectionsApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/StatusUpdatesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {StatusUpdatesBody} from '../model/StatusUpdatesBody';
/**
* StatusUpdates service.
* @module api/StatusUpdatesApi
* @version 2.0.5
* @version 2.0.6
*/
export class StatusUpdatesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/StoriesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {TaskGidStoriesBody} from '../model/TaskGidStoriesBody';
/**
* Stories service.
* @module api/StoriesApi
* @version 2.0.5
* @version 2.0.6
*/
export class StoriesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/api/TagsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {WorkspaceGidTagsBody} from '../model/WorkspaceGidTagsBody';
/**
* Tags service.
* @module api/TagsApi
* @version 2.0.5
* @version 2.0.6
*/
export class TagsApi {

Expand Down
Loading

0 comments on commit b9d7c6a

Please sign in to comment.