frontend permission integration changed
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
This commit is contained in:
@@ -25,36 +25,24 @@ export const AZURE_DEVOPS_README_ANNOTATION = 'dev.azure.com/readme-path';
|
||||
// @public (undocumented)
|
||||
export const AZURE_DEVOPS_REPO_ANNOTATION = 'dev.azure.com/project-repo';
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsGitTagReadPermission" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsGitTagReadPermission: ResourcePermission<'catalog-entity'>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsPermissions" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsPermissions: (
|
||||
| BasicPermission
|
||||
| ResourcePermission<'catalog-entity'>
|
||||
)[];
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsPipelineReadPermission" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsPipelineReadPermission: ResourcePermission<'catalog-entity'>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsPullRequestDashboardReadPermission" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsPullRequestDashboardReadPermission: BasicPermission;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsPullRequestReadPermission" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsPullRequestReadPermission: ResourcePermission<'catalog-entity'>;
|
||||
|
||||
// Warning: (ae-missing-release-tag) "azureDevOpsReadmeReadPermission" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
||||
//
|
||||
// @public (undocumented)
|
||||
export const azureDevOpsReadmeReadPermission: ResourcePermission<'catalog-entity'>;
|
||||
|
||||
|
||||
@@ -14,36 +14,55 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { createPermission } from '@backstage/plugin-permission-common';
|
||||
|
||||
import { RESOURCE_TYPE_CATALOG_ENTITY } from '@backstage/plugin-catalog-common/alpha';
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPullRequestReadPermission = createPermission({
|
||||
name: 'azure.devops.pullrequest.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPullRequestDashboardReadPermission = createPermission({
|
||||
name: 'azure.devops.pullrequest.dashboard.read',
|
||||
attributes: { action: 'read' },
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPipelineReadPermission = createPermission({
|
||||
name: 'azure.devops.pipeline.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsGitTagReadPermission = createPermission({
|
||||
name: 'azure.devops.gittag.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsReadmeReadPermission = createPermission({
|
||||
name: 'azure.devops.readme.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPermissions = [
|
||||
azureDevOpsPullRequestReadPermission,
|
||||
azureDevOpsPipelineReadPermission,
|
||||
|
||||
Reference in New Issue
Block a user