18 lines
420 B
TypeScript
18 lines
420 B
TypeScript
|
import { IPermission } from '../../IPermission';
|
||
|
|
||
|
type PermissionsUpdateProps = { permissions: { _id: string; roles: string[] }[] };
|
||
|
|
||
|
export type PermissionsEndpoints = {
|
||
|
'permissions.listAll': {
|
||
|
GET: (params: { updatedSince?: string }) => {
|
||
|
update: IPermission[];
|
||
|
remove: IPermission[];
|
||
|
};
|
||
|
};
|
||
|
'permissions.update': {
|
||
|
POST: (params: PermissionsUpdateProps) => {
|
||
|
permissions: IPermission[];
|
||
|
};
|
||
|
};
|
||
|
};
|