mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
29 lines
722 B
TypeScript
29 lines
722 B
TypeScript
|
import { FromQueryParams } from '../util/from-query-params';
|
||
|
|
||
|
export const featureSearchQueryParameters = [
|
||
|
{
|
||
|
name: 'query',
|
||
|
schema: {
|
||
|
default: '',
|
||
|
type: 'string' as const,
|
||
|
example: 'feature_a',
|
||
|
},
|
||
|
description: 'The search query for the feature or tag',
|
||
|
in: 'query',
|
||
|
},
|
||
|
{
|
||
|
name: 'projectId',
|
||
|
schema: {
|
||
|
default: '',
|
||
|
type: 'string' as const,
|
||
|
example: 'default',
|
||
|
},
|
||
|
description: 'Id of the project where search is performed',
|
||
|
in: 'query',
|
||
|
},
|
||
|
] as const;
|
||
|
|
||
|
export type FeatureSearchQueryParameters = FromQueryParams<
|
||
|
typeof featureSearchQueryParameters
|
||
|
>;
|