1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-22 11:18:20 +02:00
unleash.unleash/frontend/src/openapi/models/createProjectSchema.ts
Thomas Heartman 9f532834c8
chore: update orval schemas (#7010)
Main purpose is to get the new deprecated `id` property in the project
creation payload required for
https://github.com/Unleash/unleash/pull/7009 to pass.
2024-05-08 14:44:27 +02:00

41 lines
1.7 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { CreateProjectSchemaChangeRequestEnvironmentsItem } from './createProjectSchemaChangeRequestEnvironmentsItem';
import type { CreateProjectSchemaMode } from './createProjectSchemaMode';
/**
* Data used to create a new [project](https://docs.getunleash.io/reference/projects).
*/
export interface CreateProjectSchema {
/** A list of environments that should have change requests enabled. If the list includes environments not in the `environments` list, they will still have change requests enabled. */
changeRequestEnvironments?: CreateProjectSchemaChangeRequestEnvironmentsItem[];
/** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */
defaultStickiness?: string;
/**
* The project's description.
* @nullable
*/
description?: string | null;
/**
* A list of environments that should be enabled for this project. The list must contain at least one environment. If this property is missing, Unleash will default to enabling all non-deprecated environments for the project. This is a beta feature and is not yet generally available.
* @minItems 1
*/
environments?: string[];
/**
* The project's identifier. If this property is not present or is an empty string, Unleash will generate the project id automatically. This property is deprecated.
* @deprecated
* @pattern [A-Za-z0-9_~.-]*
*/
id?: string;
/** A mode of the project affecting what actions are possible in this project */
mode?: CreateProjectSchemaMode;
/**
* The project's name.
* @minLength 1
*/
name: string;
}