diff --git a/frontend/src/openapi/models/searchChangeRequestsParams.ts b/frontend/src/openapi/models/searchChangeRequestsParams.ts index 9dec47a76f..2705c222bb 100644 --- a/frontend/src/openapi/models/searchChangeRequestsParams.ts +++ b/frontend/src/openapi/models/searchChangeRequestsParams.ts @@ -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. */ diff --git a/frontend/src/openapi/models/searchChangeRequestsState.ts b/frontend/src/openapi/models/searchChangeRequestsState.ts new file mode 100644 index 0000000000..3a14816bbf --- /dev/null +++ b/frontend/src/openapi/models/searchChangeRequestsState.ts @@ -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;