The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e/utils/custom-role.ts

11 lines
397 B

import type { Endpoints } from '@rocket.chat/rest-typings';
import type { BaseTest } from './test';
export async function createCustomRole(api: BaseTest['api'], data: Parameters<Endpoints['/v1/roles.create']['POST']>[0]) {
return api.post('/roles.create', data);
}
export async function deleteCustomRole(api: BaseTest['api'], roleId: string) {
return api.post('/roles.delete', { roleId });
}