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';
|
|
|
|
|
2023-08-03 15:05:20 +02:00
|
|
|
/**
|
|
|
|
* A description of a [segment](https://docs.getunleash.io/reference/segments)
|
|
|
|
*/
|
2023-01-05 11:57:53 +01:00
|
|
|
export interface AdminSegmentSchema {
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The ID of this segment */
|
2023-01-05 11:57:53 +01:00
|
|
|
id: number;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The name of this segment */
|
2023-01-05 11:57:53 +01:00
|
|
|
name: string;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The description for this segment */
|
2023-01-05 11:57:53 +01:00
|
|
|
description?: string | null;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The list of constraints that are used in this segment */
|
2023-01-05 11:57:53 +01:00
|
|
|
constraints: ConstraintSchema[];
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The number of projects that use this segment */
|
2023-06-14 14:40:24 +02:00
|
|
|
usedInFeatures?: number | null;
|
2023-07-20 12:59:55 +02:00
|
|
|
/** The number of projects that use this segment */
|
2023-06-14 14:40:24 +02:00
|
|
|
usedInProjects?: number | null;
|
2023-08-03 15:05:20 +02:00
|
|
|
/** 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 */
|
2023-08-03 15:05:20 +02:00
|
|
|
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;
|
|
|
|
}
|