Closed Scrumplex closed 2 months ago
Description
Both Groups#Create Service Account User and Users#Create Service Account User allow you to customize the username and display name of a service account. Currently, the type definitions of these in Gitbeaker do not expose these options:
https://github.com/jdalrymple/gitbeaker/blob/1431e845353d73026878ab554a0deb379d08ec68/packages/core/src/resources/ServiceAccounts.ts#L16-L20
https://github.com/jdalrymple/gitbeaker/blob/1431e845353d73026878ab554a0deb379d08ec68/packages/core/src/resources/GroupServiceAccounts.ts#L15-L24
Steps to reproduce
gitlab.ServiceAccounts.create({ name: "foo bar Bot", username: "service_account_foobar" });
Expected behaviour
I am not supposed to get a TypeScript type error
Actual behaviour
I am getting a TypeScript type error
Possible fixes
Add the options as a type! ^^
Checklist
Description
Both Groups#Create Service Account User and Users#Create Service Account User allow you to customize the username and display name of a service account. Currently, the type definitions of these in Gitbeaker do not expose these options:
https://github.com/jdalrymple/gitbeaker/blob/1431e845353d73026878ab554a0deb379d08ec68/packages/core/src/resources/ServiceAccounts.ts#L16-L20
https://github.com/jdalrymple/gitbeaker/blob/1431e845353d73026878ab554a0deb379d08ec68/packages/core/src/resources/GroupServiceAccounts.ts#L15-L24
Steps to reproduce
Expected behaviour
I am not supposed to get a TypeScript type error
Actual behaviour
I am getting a TypeScript type error
Possible fixes
Add the options as a type! ^^
Checklist