From 2594760f5843d666b3642796666793c2fba56700 Mon Sep 17 00:00:00 2001 From: Zhong Wu Date: Thu, 18 Apr 2024 21:24:51 -0400 Subject: [PATCH 1/2] words fixing --- .../_shared/nodejs-vscode/admin/account-admin.mdx | 6 +++--- .../05-acc-admin/_shared/nodejs-vscode/data/hubs.mdx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx index 84fa03ef..bd3fbe04 100644 --- a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx +++ b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx @@ -81,9 +81,9 @@ service.importProjectUsersACC = async (projectId, projectUsers, token) => { ``` :::tip -The method adminClient.getProjects will return all the production projects of this hub, -it's different from the Data Management GET Projects API which -returns only returns the projects the current user is involved. +The method adminClient.getProjects() returns all the production projects within this hub, +it's different from the Data Management GET Projects API which only returns these projects +the current user is involved. ::: diff --git a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/data/hubs.mdx b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/data/hubs.mdx index b920cb86..dd125f8a 100644 --- a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/data/hubs.mdx +++ b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/data/hubs.mdx @@ -38,7 +38,7 @@ service.getProjects = async (hubId, token) => { }; ``` :::tip -The method dataManagementClient.getHubProjects() will return the projects which +The method dataManagementClient.getHubProjects() returns these projects that the current user is involed, it's different from the ACC Admin GET Projects API which returns all the projects including those the user is not involved. ::: From f302211fb93ac87a1eb89732118f99874a6ec948 Mon Sep 17 00:00:00 2001 From: Zhong Wu Date: Mon, 12 Aug 2024 18:23:20 -0400 Subject: [PATCH 2/2] migrate to sdk aps_sdk/construction-account-admin --- .../nodejs-vscode/admin/account-admin.mdx | 2 +- .../_shared/nodejs-vscode/setup/project.mdx | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx index bd3fbe04..71ca3335 100644 --- a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx +++ b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/admin/account-admin.mdx @@ -5,7 +5,7 @@ const { SdkManagerBuilder } = require('@aps_sdk/autodesk-sdkmanager'); const { AuthenticationClient, Scopes, ResponseType } = require('@aps_sdk/authentication'); const { DataManagementClient } = require('@aps_sdk/data-management'); // highlight-start -const { AdminClient } = require('@aps_sdk/account-admin'); +const { AdminClient } = require('@aps_sdk/construction-account-admin'); // highlight-end const { APS_CLIENT_ID, APS_CLIENT_SECRET, APS_CALLBACK_URL } = require('../config.js'); diff --git a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/setup/project.mdx b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/setup/project.mdx index f2fc3f74..a6080b1a 100644 --- a/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/setup/project.mdx +++ b/docs/03-tutorials/05-acc-admin/_shared/nodejs-vscode/setup/project.mdx @@ -8,10 +8,10 @@ npm init -y Next, install all the Node.js dependencies we're going to use. In this case it will be [dotenv](https://www.npmjs.com/package/dotenv) (utility for initializing environment variables from a file), [Express.js](https://expressjs.com) (web framework), and [cookie-session](https://www.npmjs.com/package/cookie-session) for handling cookie-based sessions, and finally the necessary APS SDK including: -- [@aps_sdk/autodesk-sdkmanager](https://www.npmjs.com/package/@aps_sdk/autodesk-sdkmanager), -- [@aps_sdk/authentication](https://www.npmjs.com/package/@aps_sdk/authentication), -- [@aps_sdk/data-management](https://www.npmjs.com/package/@aps_sdk/data-management), -- [@aps_sdk/account-admin](https://www.npmjs.com/package/@aps_sdk/account-admin): +- [@aps_sdk/autodesk-sdkmanager](https://www.npmjs.com/package/@aps_sdk/autodesk-sdkmanager) +- [@aps_sdk/authentication](https://www.npmjs.com/package/@aps_sdk/authentication) +- [@aps_sdk/data-management](https://www.npmjs.com/package/@aps_sdk/data-management) +- [@aps_sdk/construction-account-admin](https://www.npmjs.com/package/@aps_sdk/construction-account-admin) :::caution @@ -22,10 +22,10 @@ the specific versions of these packages as shown below. ```bash npm install --save dotenv express cookie-session -npm install --save @aps_sdk/autodesk-sdkmanager@0.0.7-beta.1 -npm install --save @aps_sdk/authentication@0.1.0-beta.1 +npm install --save @aps_sdk/autodesk-sdkmanager@1.0.0-beta.1 +npm install --save @aps_sdk/authentication@1.0.0-beta.1 npm install --save @aps_sdk/data-management@0.1.0-beta.1 -npm install --save @aps_sdk/account-admin@0.1.0-beta.1 +npm install --save @aps_sdk/construction-account-admin@1.0.0-beta.2 ``` The `"dependencies"` in your `package.json` file should now look something like this @@ -34,10 +34,10 @@ The `"dependencies"` in your `package.json` file should now look something like ```json // ... "dependencies": { - "@aps_sdk/authentication": "^0.1.0-beta.1", - "@aps_sdk/autodesk-sdkmanager": "^0.0.7-beta.1", + "@aps_sdk/authentication": "^1.0.0-beta.1", + "@aps_sdk/autodesk-sdkmanager": "^1.0.0-beta.1", "@aps_sdk/data-management": "^0.1.0-beta.1", - "@aps_sdk/account-admin": "^0.1.0-beta.1", + "@aps_sdk/construction-account-admin": "^1.0.0-beta.2", "cookie-session": "^2.1.0", "dotenv": "^16.4.5", "express": "^4.19.2"