Adjustments ts after review

Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
This commit is contained in:
Andreas Berger
2023-04-05 13:29:51 +02:00
parent a6cb0629bd
commit dff74223cf
3 changed files with 3 additions and 3 deletions
@@ -32,7 +32,7 @@ export const createGitlabProjectAccessTokenAction: (options: {
} & {
projectId: string | number;
name?: string | undefined;
accessLevel?: string | undefined;
accessLevel?: number | undefined;
scopes?: string[] | undefined;
},
{
@@ -66,7 +66,7 @@ export const createGitlabGroupEnsureExistsAction = (options: {
const fullPath = `${currentPath}/${pathElement}`;
const result = (await api.Groups.search(
fullPath,
)) as any as Array<GroupSchema>;
)) as any as Array<GroupSchema>; // recast since the return type for search is wrong in the gitbeaker typings
const subGroup = result.find(
searchPathElem => searchPathElem.full_path === fullPath,
);
@@ -40,7 +40,7 @@ export const createGitlabProjectAccessTokenAction = (options: {
}),
name: z.string({ description: 'Deploy Token Name' }).optional(),
accessLevel: z
.string({ description: 'Access Level of the Token' })
.number({ description: 'Access Level of the Token' })
.optional(),
scopes: z.array(z.string(), { description: 'Scopes' }).optional(),
}),