1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +02:00

chore: update frontend OpenAPI models - (#9943)

project link templates
This commit is contained in:
Tymoteusz Czech 2025-05-09 13:05:22 +02:00 committed by GitHub
parent f02c883da5
commit fd4042db00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 31 additions and 0 deletions

View File

@ -27,6 +27,12 @@ export interface EnvironmentProjectSchema {
projectEnabledToggleCount?: number;
/** `true` if the environment is protected, otherwise `false`. A *protected* environment can not be deleted. */
protected: boolean;
/**
* Experimental field. The number of approvals required before a change request can be applied in this environment.
* @minimum 1
* @nullable
*/
requiredApprovals?: number | null;
/** Priority of the environment in a list of environments, the lower the value, the higher up in the list the environment will appear */
sortOrder: number;
/** The [type of environment](https://docs.getunleash.io/reference/environments#environment-types). */

View File

@ -1100,6 +1100,7 @@ export * from './projectFlagCreatorsSchemaItem';
export * from './projectInsightsSchema';
export * from './projectInsightsSchemaHealth';
export * from './projectInsightsSchemaMembers';
export * from './projectLinkTemplateSchema';
export * from './projectOverviewSchema';
export * from './projectOverviewSchemaMode';
export * from './projectOverviewSchemaOnboardingStatus';

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A template for a link that can be automatically added to new feature flags.
*/
export interface ProjectLinkTemplateSchema {
/**
* The title of the link.
* @nullable
*/
title?: string | null;
/** The URL to use as a template. Can contain {{project}} or {{feature}} as placeholders. */
urlTemplate: string;
}

View File

@ -6,6 +6,7 @@
import type { ProjectEnvironmentSchema } from './projectEnvironmentSchema';
import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema';
import type { FeatureTypeCountSchema } from './featureTypeCountSchema';
import type { ProjectLinkTemplateSchema } from './projectLinkTemplateSchema';
import type { ProjectOverviewSchemaMode } from './projectOverviewSchemaMode';
import type { ProjectOverviewSchemaOnboardingStatus } from './projectOverviewSchemaOnboardingStatus';
import type { ProjectStatsSchema } from './projectStatsSchema';
@ -45,6 +46,8 @@ export interface ProjectOverviewSchema {
featureTypeCounts?: FeatureTypeCountSchema[];
/** An indicator of the [project's health](https://docs.getunleash.io/reference/technical-debt#project-status) on a scale from 0 to 100 */
health?: number;
/** A list of templates for links that will be automatically added to new feature flags. */
linkTemplates?: ProjectLinkTemplateSchema[];
/** The number of members this project has */
members?: number;
/** The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not. */

View File

@ -4,6 +4,7 @@
* See `gen:api` script in package.json
*/
import type { CreateFeatureNamingPatternSchema } from './createFeatureNamingPatternSchema';
import type { ProjectLinkTemplateSchema } from './projectLinkTemplateSchema';
import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectEnterpriseSettingsSchemaMode';
/**
@ -11,6 +12,8 @@ import type { UpdateProjectEnterpriseSettingsSchemaMode } from './updateProjectE
*/
export interface UpdateProjectEnterpriseSettingsSchema {
featureNaming?: CreateFeatureNamingPatternSchema;
/** A list of link templates for the project. Templates are added to new flags as flag links automatically. */
linkTemplates?: ProjectLinkTemplateSchema[];
/** A mode of the project affecting what actions are possible in this project */
mode?: UpdateProjectEnterpriseSettingsSchemaMode;
}