Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Levels #3500

Closed
2 tasks done
ankurparihar opened this issue Dec 29, 2023 · 4 comments · Fixed by #3501
Closed
2 tasks done

Access Levels #3500

ankurparihar opened this issue Dec 29, 2023 · 4 comments · Fixed by #3501
Labels
released This issue/pull request has been released. type:enhancement

Comments

@ankurparihar
Copy link

ankurparihar commented Dec 29, 2023

Description

Hi

I would like to use minAccessLevel option in my calls. Gitlab has access levels defined as number (Please refer here)
Do we have any way to pass this as a predefined variable instead of numeric value?

Current

const groups = await client.Groups.all({minAccessLevel: 40});

Proposal

const { AccessLevels } = require('@gitbeaker/rest');
const groups = await client.Groups.all({minAccessLevel: AccessLevels.MAINTAINER});

Checklist

  • I have checked that this is not a duplicate issue.
  • I have read the documentation.
@jdalrymple
Copy link
Owner

Yup, I think i would just need to export the enum!

@ankurparihar
Copy link
Author

Thank you! Let me know if I can help.

@jdalrymple
Copy link
Owner

🚀 Issue was released in 39.28.0 🚀

@jdalrymple jdalrymple added the released This issue/pull request has been released. label Dec 31, 2023
@ankurparihar
Copy link
Author

Thank you @jdalrymple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released. type:enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants