1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/openapi/models/adminSegmentSchema.ts

31 lines
1022 B
TypeScript
Raw Normal View History

2023-01-05 11:57:53 +01:00
/**
2023-03-15 13:30:07 +01:00
* Generated by Orval
2023-01-05 11:57:53 +01:00
* Do not edit manually.
2023-03-15 13:30:07 +01:00
* See `gen:api` script in package.json
2023-01-05 11:57:53 +01:00
*/
import type { ConstraintSchema } from './constraintSchema';
/**
* A description of a [segment](https://docs.getunleash.io/reference/segments)
*/
2023-01-05 11:57:53 +01:00
export interface AdminSegmentSchema {
/** The ID of this segment */
2023-01-05 11:57:53 +01:00
id: number;
/** The name of this segment */
2023-01-05 11:57:53 +01:00
name: string;
/** The description for this segment */
2023-01-05 11:57:53 +01:00
description?: string | null;
/** The list of constraints that are used in this segment */
2023-01-05 11:57:53 +01:00
constraints: ConstraintSchema[];
/** The number of projects that use this segment */
2023-06-14 14:40:24 +02:00
usedInFeatures?: number | null;
/** The number of projects that use this segment */
2023-06-14 14:40:24 +02:00
usedInProjects?: number | null;
/** The project the segment belongs to. Only present if the segment is a project-specific segment. */
2023-06-14 14:40:24 +02:00
project?: string | null;
/** The creator's email or username */
createdBy?: string | null;
2023-06-14 14:40:24 +02:00
/** When the segment was created */
2023-01-05 11:57:53 +01:00
createdAt: string;
}