verdnatura-chat/app/definitions/rest/v1/permissions.ts

18 lines
420 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
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[];
};
};
};