2023-10-25 16:12:21 +02:00
|
|
|
import { FromQueryParams } from '../util/from-query-params';
|
|
|
|
|
|
|
|
export const featureSearchQueryParameters = [
|
|
|
|
{
|
|
|
|
name: 'query',
|
|
|
|
schema: {
|
|
|
|
default: '',
|
2023-10-26 10:05:47 +02:00
|
|
|
type: 'string',
|
2023-10-25 16:12:21 +02:00
|
|
|
example: 'feature_a',
|
|
|
|
},
|
|
|
|
description: 'The search query for the feature or tag',
|
|
|
|
in: 'query',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'projectId',
|
|
|
|
schema: {
|
|
|
|
default: '',
|
2023-10-26 10:05:47 +02:00
|
|
|
type: 'string',
|
2023-10-25 16:12:21 +02:00
|
|
|
example: 'default',
|
|
|
|
},
|
|
|
|
description: 'Id of the project where search is performed',
|
|
|
|
in: 'query',
|
|
|
|
},
|
|
|
|
] as const;
|
|
|
|
|
|
|
|
export type FeatureSearchQueryParameters = FromQueryParams<
|
|
|
|
typeof featureSearchQueryParameters
|
|
|
|
>;
|