mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-21 13:47:39 +02:00
Upgrades biome to 1.6.1, and updates husky pre-commit hook. Most changes here are making type imports explicit.
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import type { FromSchema } from 'json-schema-to-ts';
|
|
|
|
export const updateFeatureStrategySegmentsSchema = {
|
|
$id: '#/components/schemas/updateFeatureStrategySegmentsSchema',
|
|
type: 'object',
|
|
required: ['projectId', 'strategyId', 'environmentId', 'segmentIds'],
|
|
description: 'Data required to update segments for a strategy.',
|
|
properties: {
|
|
projectId: {
|
|
type: 'string',
|
|
description: 'The ID of the project that the strategy belongs to.',
|
|
example: 'red-vista',
|
|
},
|
|
strategyId: {
|
|
type: 'string',
|
|
description: 'The ID of the strategy to update segments for.',
|
|
example: '15d1e20b-6310-4e17-a0c2-9fb84de3053a',
|
|
},
|
|
environmentId: {
|
|
type: 'string',
|
|
description: 'The ID of the strategy environment.',
|
|
example: 'development',
|
|
},
|
|
segmentIds: {
|
|
type: 'array',
|
|
description:
|
|
'The new list of segments (IDs) to use for this strategy. Any segments not in this list will be removed from the strategy.',
|
|
example: [1, 5, 6],
|
|
items: {
|
|
type: 'integer',
|
|
minimum: 0,
|
|
},
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type UpdateFeatureStrategySegmentsSchema = FromSchema<
|
|
typeof updateFeatureStrategySegmentsSchema
|
|
>;
|