UNPKG

@abp/ng.permission-management

Version:

ABP Framework is a complete open-source infrastructure to create modern web applications by following the best practices and conventions of software development. This package is a part of the [ABP Framework](https://abp.io) and contains client-side files.

44 lines (40 loc) 1.35 kB
import * as rxjs from 'rxjs'; import * as i0 from '@angular/core'; interface GetPermissionListResultDto { entityDisplayName?: string; groups: PermissionGroupDto[]; } interface PermissionGrantInfoDto { name?: string; displayName?: string; parentName?: string; isGranted: boolean; allowedProviders: string[]; grantedProviders: ProviderInfoDto[]; } interface PermissionGroupDto { name?: string; displayName?: string; permissions: PermissionGrantInfoDto[]; } interface ProviderInfoDto { providerName?: string; providerKey?: string; } interface UpdatePermissionDto { name?: string; isGranted: boolean; } interface UpdatePermissionsDto { permissions: UpdatePermissionDto[]; } declare class PermissionsService { private restService; apiName: string; get: (providerName: string, providerKey: string) => rxjs.Observable<GetPermissionListResultDto>; update: (providerName: string, providerKey: string, input: UpdatePermissionsDto) => rxjs.Observable<void>; static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsService>; } export { PermissionsService }; export type { GetPermissionListResultDto, PermissionGrantInfoDto, PermissionGroupDto, ProviderInfoDto, UpdatePermissionDto, UpdatePermissionsDto };