1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

Chore: update Orval with new state query param (#10860)

Preparing for the UI usage of this.
This commit is contained in:
Thomas Heartman 2025-10-24 12:38:03 +02:00 committed by GitHub
parent 4490fe785d
commit 47c2bb7376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -3,6 +3,7 @@
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { SearchChangeRequestsState } from './searchChangeRequestsState.js';
export type SearchChangeRequestsParams = {
/**
@ -13,6 +14,10 @@ export type SearchChangeRequestsParams = {
* Filter by requested approver user ID
*/
requestedApproverId?: string;
/**
* Filter by open / closed change requests. Change requests that are in 'draft', 'in review', 'approved', or 'scheduled' states are considered open. Change requests that are in 'cancelled', 'applied', or 'rejected' states are considered closed.
*/
state?: SearchChangeRequestsState;
/**
* The number of change requests to skip when returning a page. By default it is set to 0.
*/

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type SearchChangeRequestsState =
(typeof SearchChangeRequestsState)[keyof typeof SearchChangeRequestsState];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SearchChangeRequestsState = {
'IS:open': 'IS:open',
'IS:closed': 'IS:closed',
} as const;