From e5c13ffe62d2f99c9a4b18bac72ebda57bfd7d56 Mon Sep 17 00:00:00 2001 From: John Vu Date: Thu, 25 Apr 2024 16:37:27 -0700 Subject: [PATCH] Update v1 to v1.0.3 + Add important message in README.md --- .../workflows/publish-to-github-releases.yml | 4 +- README.md | 22 ++-- bower.json | 2 +- lib/client.js | 106 ++++++++++----- lib/resources/allocations.js | 3 + lib/resources/gen/allocations.js | 114 +++++++++++++++++ lib/resources/gen/attachments.js | 8 +- lib/resources/gen/audit_log_api.js | 4 +- lib/resources/gen/custom_field_settings.js | 8 +- lib/resources/gen/custom_fields.js | 6 +- lib/resources/gen/events.js | 4 +- lib/resources/gen/goal_relationships.js | 115 +++++++++++++++++ lib/resources/gen/goals.js | 121 +----------------- lib/resources/gen/jobs.js | 2 +- lib/resources/gen/memberships.js | 113 ++++++++++++++++ lib/resources/gen/organization_exports.js | 2 +- lib/resources/gen/portfolio_memberships.js | 10 +- lib/resources/gen/portfolios.js | 12 +- lib/resources/gen/project_briefs.js | 2 +- lib/resources/gen/project_memberships.js | 6 +- lib/resources/gen/project_statuses.js | 6 +- lib/resources/gen/project_templates.js | 28 +++- lib/resources/gen/projects.js | 22 ++-- lib/resources/gen/rules.js | 37 ++++++ lib/resources/gen/sections.js | 6 +- lib/resources/gen/status_updates.js | 18 +-- lib/resources/gen/stories.js | 8 +- lib/resources/gen/tags.js | 16 +-- lib/resources/gen/task_templates.js | 96 ++++++++++++++ lib/resources/gen/tasks.js | 59 ++++++--- lib/resources/gen/team_memberships.js | 14 +- lib/resources/gen/teams.js | 30 ++++- lib/resources/gen/time_periods.js | 6 +- lib/resources/gen/time_tracking_entries.js | 115 +++++++++++++++++ lib/resources/gen/typeahead.js | 6 +- lib/resources/gen/user_task_lists.js | 4 +- lib/resources/gen/users.js | 20 +-- lib/resources/gen/webhooks.js | 6 +- lib/resources/gen/workspace_memberships.js | 10 +- lib/resources/gen/workspaces.js | 6 +- lib/resources/goal_relationships.js | 3 + lib/resources/goals.js | 3 + lib/resources/index.js | 18 ++- lib/resources/memberships.js | 3 + lib/resources/project_briefs.js | 3 + lib/resources/project_templates.js | 3 + lib/resources/rules.js | 3 + lib/resources/status_updates.js | 3 + lib/resources/task_templates.js | 3 + lib/resources/time_periods.js | 3 + lib/resources/time_tracking_entries.js | 3 + package.json | 2 +- samples/allocations_sample.yaml | 56 ++++++++ samples/attachments_sample.yaml | 4 +- samples/goal_relationships_sample.yaml | 56 ++++++++ samples/goals_sample.yaml | 66 ---------- samples/memberships_sample.yaml | 56 ++++++++ samples/project_templates_sample.yaml | 11 ++ samples/rules_sample.yaml | 12 ++ samples/status_updates_sample.yaml | 4 +- samples/task_templates_sample.yaml | 45 +++++++ samples/tasks_sample.yaml | 11 ++ samples/teams_sample.yaml | 11 ++ samples/time_tracking_entries_sample.yaml | 56 ++++++++ 64 files changed, 1238 insertions(+), 377 deletions(-) create mode 100644 lib/resources/allocations.js create mode 100644 lib/resources/gen/allocations.js create mode 100644 lib/resources/gen/goal_relationships.js create mode 100644 lib/resources/gen/memberships.js create mode 100644 lib/resources/gen/rules.js create mode 100644 lib/resources/gen/task_templates.js create mode 100644 lib/resources/gen/time_tracking_entries.js create mode 100644 lib/resources/goal_relationships.js create mode 100644 lib/resources/goals.js create mode 100644 lib/resources/memberships.js create mode 100644 lib/resources/project_briefs.js create mode 100644 lib/resources/project_templates.js create mode 100644 lib/resources/rules.js create mode 100644 lib/resources/status_updates.js create mode 100644 lib/resources/task_templates.js create mode 100644 lib/resources/time_periods.js create mode 100644 lib/resources/time_tracking_entries.js create mode 100644 samples/allocations_sample.yaml create mode 100644 samples/goal_relationships_sample.yaml create mode 100644 samples/memberships_sample.yaml create mode 100644 samples/rules_sample.yaml create mode 100644 samples/task_templates_sample.yaml create mode 100644 samples/time_tracking_entries_sample.yaml diff --git a/.github/workflows/publish-to-github-releases.yml b/.github/workflows/publish-to-github-releases.yml index 54259cb3..f68912ca 100644 --- a/.github/workflows/publish-to-github-releases.yml +++ b/.github/workflows/publish-to-github-releases.yml @@ -13,10 +13,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '8.x' + node-version: '10.x' - name: Bundle the code, full version to asana.js and minified to asana-min.js run: | - npm i gulp + npm i gulp@4.0.2 gulp bundle - name: Publish to GitHub Releases uses: softprops/action-gh-release@v1 diff --git a/README.md b/README.md index 9d5d7236..d8a36260 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# Asana [![GitHub release][release-image]]() [![Build Status][github-actions-image]][github-actions-url] [![NPM Version][npm-image]][npm-url] +# Asana +> **Important:** +> Versions 1.X.X and earlier of this package are no longer supported. For new features and support, please upgrade to [the latest version](https://www.npmjs.com/package/asana). +> +>To view sample code for version 1, select the `node-sdk-v1` tab on a specific endpoint's page in the [Asana API reference](https://developers.asana.com/reference/rest-api-reference), or check the [v1 samples](https://github.com/Asana/node-asana/tree/v1.0.3/samples) directory on GitHub. A JavaScript client (for both Node and browser) for the Asana API v1.0. @@ -9,20 +13,20 @@ A JavaScript client (for both Node and browser) for the Asana API v1.0. Install with npm: ```sh -npm install asana --save +npm install asana@1.0.3 --save ``` ### Browser -Include the latest release directly from GitHub. +Include the v1.0.3 release directly from GitHub. ```html - + ``` **OR:** -1. Download the latest distribution in [releases](https://github.com/Asana/node-asana/releases). +1. Download the v1.0.3 distribution in [releases](https://github.com/Asana/node-asana/releases). 2. Make sure to serve it from your webserver. 3. Include it on the client from a `