feat(core): Support create, read, update, delete projects in Public API (#10269)

This commit is contained in:
Iván Ovejero
2024-08-02 12:02:05 +02:00
committed by GitHub
parent dc8c94d036
commit 489ce10063
10 changed files with 594 additions and 1 deletions

View File

@@ -86,7 +86,11 @@ export async function createOwner({ withApiKey } = { withApiKey: false }) {
return await createUser({ role: 'global:owner' });
}
export async function createMember() {
export async function createMember({ withApiKey } = { withApiKey: false }) {
if (withApiKey) {
return await addApiKey(await createUser({ role: 'global:member' }));
}
return await createUser({ role: 'global:member' });
}