mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
sync policies., set up policy service
This commit is contained in:
14
src/abstractions/policy.service.ts
Normal file
14
src/abstractions/policy.service.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { PolicyData } from '../models/data/policyData';
|
||||
|
||||
import { Policy } from '../models/domain/policy';
|
||||
|
||||
import { PolicyType } from '../enums/policyType';
|
||||
|
||||
export abstract class PolicyService {
|
||||
policyCache: Policy[];
|
||||
|
||||
clearCache: () => void;
|
||||
getAll: (type?: PolicyType) => Promise<Policy[]>;
|
||||
replace: (policies: { [id: string]: PolicyData; }) => Promise<any>;
|
||||
clear: (userId: string) => Promise<any>;
|
||||
}
|
||||
Reference in New Issue
Block a user