@bentley/context-registry-client
Advanced tools
Comparing version 3.0.0-dev.62 to 3.0.0-dev.63
@@ -165,3 +165,2 @@ "use strict"; | ||
async getProjects(requestContext, queryOptions) { | ||
requestContext.enter(); | ||
return this.getInstances(requestContext, Project, "/Repositories/BentleyCONNECT--Main/ConnectedContext/Project", queryOptions); | ||
@@ -175,5 +174,3 @@ } | ||
async getProject(requestContext, queryOptions) { | ||
requestContext.enter(); | ||
const projects = await this.getProjects(requestContext, queryOptions); | ||
requestContext.enter(); | ||
if (projects.length === 0) | ||
@@ -191,3 +188,2 @@ throw new Error("Could not find a project with the specified criteria that the user has access to"); | ||
async getInvitedProjects(requestContext, queryOptions) { | ||
requestContext.enter(); | ||
return this.getInstances(requestContext, Project, "/Repositories/BentleyCONNECT--Main/ConnectedContext/Project?rbaconly=true", queryOptions); | ||
@@ -201,5 +197,3 @@ } | ||
async getAsset(requestContext, queryOptions) { | ||
requestContext.enter(); | ||
const assets = await this.getAssets(requestContext, queryOptions); | ||
requestContext.enter(); | ||
if (assets.length === 0) | ||
@@ -217,3 +211,2 @@ throw new Error("Could not find an asset with the specified criteria that the user has access to"); | ||
async getAssets(requestContext, queryOptions) { | ||
requestContext.enter(); | ||
return this.getInstances(requestContext, Asset, "/Repositories/BentleyCONNECT--Main/ConnectedContext/Asset", queryOptions); | ||
@@ -226,5 +219,3 @@ } | ||
async getTeam(requestContext) { | ||
requestContext.enter(); | ||
const teams = await this.getInstances(requestContext, Team, "/Repositories/BentleyCONNECT--Main/ConnectedContext/Team?isDefault=true"); | ||
requestContext.enter(); | ||
if (teams.length === 0) | ||
@@ -231,0 +222,0 @@ throw new Error("Could not find a team for the current user"); |
@@ -0,0 +0,0 @@ # MIT License |
{ | ||
"name": "@bentley/context-registry-client", | ||
"version": "3.0.0-dev.62", | ||
"version": "3.0.0-dev.63", | ||
"description": "iModel.js Context Registry Client", | ||
@@ -27,12 +27,12 @@ "main": "lib/context-registry-client.js", | ||
"peerDependencies": { | ||
"@bentley/bentleyjs-core": "^3.0.0-dev.62", | ||
"@bentley/itwin-client": "^3.0.0-dev.62" | ||
"@bentley/bentleyjs-core": "^3.0.0-dev.63", | ||
"@bentley/itwin-client": "^3.0.0-dev.63" | ||
}, | ||
"devDependencies": { | ||
"@bentley/bentleyjs-core": "3.0.0-dev.62", | ||
"@bentley/build-tools": "3.0.0-dev.62", | ||
"@bentley/certa": "3.0.0-dev.62", | ||
"@bentley/eslint-plugin": "3.0.0-dev.62", | ||
"@bentley/itwin-client": "3.0.0-dev.62", | ||
"@bentley/oidc-signin-tool": "3.0.0-dev.62", | ||
"@bentley/bentleyjs-core": "3.0.0-dev.63", | ||
"@bentley/build-tools": "3.0.0-dev.63", | ||
"@bentley/certa": "3.0.0-dev.63", | ||
"@bentley/eslint-plugin": "3.0.0-dev.63", | ||
"@bentley/itwin-client": "3.0.0-dev.63", | ||
"@bentley/oidc-signin-tool": "3.0.0-dev.63", | ||
"@types/chai": "^4.1.4", | ||
@@ -39,0 +39,0 @@ "@types/deep-assign": "^0.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40972
373