Skip to content

Commit

Permalink
[OpenAPI] Spec updates for netlify-api (#577)
Browse files Browse the repository at this point in the history
Co-authored-by: SferaDev <[email protected]>
  • Loading branch information
SferaDev and SferaDev authored Dec 5, 2024
1 parent 2ab2b1a commit 4e146a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/07sjv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"netlify-api": patch
---

Add query parameters support to listAccountsForUser endpoint
10 changes: 8 additions & 2 deletions packages/netlify-api/src/api/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5559,6 +5559,10 @@ export const listAccountTypesForUser = (variables: ListAccountTypesForUserVariab
signal
});

export type ListAccountsForUserQueryParams = {
minimal?: boolean;
};

export type ListAccountsForUserError = Fetcher.ErrorWrapper<{
status: Exclude<ClientErrorStatus | ServerErrorStatus, 200>;
payload: {
Expand Down Expand Up @@ -5604,10 +5608,12 @@ export type ListAccountsForUserResponse = {
updated_at?: string;
}[];

export type ListAccountsForUserVariables = FetcherExtraProps;
export type ListAccountsForUserVariables = {
queryParams?: ListAccountsForUserQueryParams;
} & FetcherExtraProps;

export const listAccountsForUser = (variables: ListAccountsForUserVariables, signal?: AbortSignal) =>
fetch<ListAccountsForUserResponse, ListAccountsForUserError, undefined, {}, {}, {}>({
fetch<ListAccountsForUserResponse, ListAccountsForUserError, undefined, {}, ListAccountsForUserQueryParams, {}>({
url: '/accounts',
method: 'get',
...variables,
Expand Down

0 comments on commit 4e146a9

Please sign in to comment.