1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

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.
This commit is contained in:
Thomas Heartman 2024-05-08 14:44:27 +02:00 committed by GitHub
parent ea9a232acc
commit 9f532834c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 179 additions and 90 deletions

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Complete401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Complete403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Complete404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -25,10 +25,11 @@ export interface CreateProjectSchema {
*/
environments?: string[];
/**
* The project's identifier.
* @pattern [A-Za-z0-9_~.-]+
* 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;
id?: string;
/** A mode of the project affecting what actions are possible in this project */
mode?: CreateProjectSchemaMode;
/**

View File

@ -30,6 +30,8 @@ export const EventSchemaType = {
'feature-strategy-add': 'feature-strategy-add',
'feature-strategy-remove': 'feature-strategy-remove',
'feature-type-updated': 'feature-type-updated',
'feature-completed': 'feature-completed',
'feature-uncompleted': 'feature-uncompleted',
'strategy-order-changed': 'strategy-order-changed',
'drop-feature-tags': 'drop-feature-tags',
'feature-untagged': 'feature-untagged',

View File

@ -308,6 +308,9 @@ export * from './cloneFeature403';
export * from './cloneFeature404';
export * from './cloneFeature415';
export * from './cloneFeatureSchema';
export * from './complete401';
export * from './complete403';
export * from './complete404';
export * from './constraintSchema';
export * from './constraintSchemaOperator';
export * from './contextFieldSchema';
@ -888,6 +891,7 @@ export * from './projectApplicationSchema';
export * from './projectApplicationSdkSchema';
export * from './projectApplicationsSchema';
export * from './projectCreatedSchema';
export * from './projectCreatedSchemaChangeRequestEnvironmentsItem';
export * from './projectCreatedSchemaMode';
export * from './projectDoraMetricsSchema';
export * from './projectEnvironmentSchema';
@ -903,14 +907,11 @@ export * from './projectSchemaMode';
export * from './projectSchemaOwners';
export * from './projectSchemaOwnersOneOfItem';
export * from './projectSchemaOwnersOneOfItemAnyOf';
export * from './projectSchemaOwnersOneOfItemAnyOfEmail';
export * from './projectSchemaOwnersOneOfItemAnyOfFive';
export * from './projectSchemaOwnersOneOfItemAnyOfFiveName';
export * from './projectSchemaOwnersOneOfItemAnyOfFiveOwnerType';
export * from './projectSchemaOwnersOneOfItemAnyOfImageUrl';
export * from './projectSchemaOwnersOneOfItemAnyOfOwnerType';
export * from './projectSchemaOwnersOneOfNineItem';
export * from './projectSchemaOwnersOneOfNineItemOwnerType';
export * from './projectSchemaOwnersOneOfItemAnyOfThree';
export * from './projectSchemaOwnersOneOfItemAnyOfThreeOwnerType';
export * from './projectSchemaOwnersOneOfSixItem';
export * from './projectSchemaOwnersOneOfSixItemOwnerType';
export * from './projectSettingsSchema';
export * from './projectSettingsSchemaDefaultStickiness';
export * from './projectSettingsSchemaMode';
@ -1114,6 +1115,9 @@ export * from './uiConfigSchemaFlags';
export * from './uiConfigSchemaLinksItem';
export * from './uiObservability401';
export * from './uiObservability403';
export * from './uncomplete401';
export * from './uncomplete403';
export * from './uncomplete404';
export * from './updateAddon400';
export * from './updateAddon401';
export * from './updateAddon403';

View File

@ -3,12 +3,15 @@
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectCreatedSchemaChangeRequestEnvironmentsItem } from './projectCreatedSchemaChangeRequestEnvironmentsItem';
import type { ProjectCreatedSchemaMode } from './projectCreatedSchemaMode';
/**
* Details about the newly created project.
*/
export interface ProjectCreatedSchema {
/** The list of environments that have change requests enabled. This is a beta feature and may be subject to change. */
changeRequestEnvironments?: ProjectCreatedSchemaChangeRequestEnvironmentsItem[];
/** A default stickiness for the project affecting the default stickiness value for variants and Gradual Rollout strategy */
defaultStickiness?: string;
/**
@ -17,7 +20,7 @@ export interface ProjectCreatedSchema {
*/
description?: string | null;
/**
* The environments enabled for the project.
* The environments enabled for the project. This is a beta feature and may be subject to change.
* @minItems 1
*/
environments?: string[];

View File

@ -0,0 +1,15 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectCreatedSchemaChangeRequestEnvironmentsItem = {
/** The name of the environment this change request configuration applies to. */
name: string;
/**
* The number of approvals required for a change request to be fully approved and ready to applied in this environment. If no value is provided, it will be set to the default number, which is 1. The value must be greater than or equal to 1.
* @minimum 1
*/
requiredApprovals: number;
};

View File

@ -35,7 +35,7 @@ export interface ProjectSchema {
mode?: ProjectSchemaMode;
/** The name of this project */
name: string;
/** The owners of this project, both users and groups. */
/** The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead. */
owners?: ProjectSchemaOwners;
/** The number of potentially stale features this project has */
potentiallyStaleFeatureCount?: number;

View File

@ -4,11 +4,11 @@
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfItem } from './projectSchemaOwnersOneOfItem';
import type { ProjectSchemaOwnersOneOfNineItem } from './projectSchemaOwnersOneOfNineItem';
import type { ProjectSchemaOwnersOneOfSixItem } from './projectSchemaOwnersOneOfSixItem';
/**
* The owners of this project, both users and groups.
* The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead.
*/
export type ProjectSchemaOwners =
| ProjectSchemaOwnersOneOfItem[]
| ProjectSchemaOwnersOneOfNineItem[];
| ProjectSchemaOwnersOneOfSixItem[];

View File

@ -4,8 +4,8 @@
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfItemAnyOf } from './projectSchemaOwnersOneOfItemAnyOf';
import type { ProjectSchemaOwnersOneOfItemAnyOfFive } from './projectSchemaOwnersOneOfItemAnyOfFive';
import type { ProjectSchemaOwnersOneOfItemAnyOfThree } from './projectSchemaOwnersOneOfItemAnyOfThree';
export type ProjectSchemaOwnersOneOfItem =
| ProjectSchemaOwnersOneOfItemAnyOf
| ProjectSchemaOwnersOneOfItemAnyOfFive;
| ProjectSchemaOwnersOneOfItemAnyOfThree;

View File

@ -3,13 +3,13 @@
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfItemAnyOfEmail } from './projectSchemaOwnersOneOfItemAnyOfEmail';
import type { ProjectSchemaOwnersOneOfItemAnyOfImageUrl } from './projectSchemaOwnersOneOfItemAnyOfImageUrl';
import type { ProjectSchemaOwnersOneOfItemAnyOfOwnerType } from './projectSchemaOwnersOneOfItemAnyOfOwnerType';
export type ProjectSchemaOwnersOneOfItemAnyOf = {
email?: ProjectSchemaOwnersOneOfItemAnyOfEmail;
imageUrl?: ProjectSchemaOwnersOneOfItemAnyOfImageUrl;
/** @nullable */
email?: string | null;
/** @nullable */
imageUrl?: string | null;
name: string;
ownerType: ProjectSchemaOwnersOneOfItemAnyOfOwnerType;
};

View File

@ -1,7 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfItemAnyOfEmail = string | null;

View File

@ -1,12 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfItemAnyOfFiveName } from './projectSchemaOwnersOneOfItemAnyOfFiveName';
import type { ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType } from './projectSchemaOwnersOneOfItemAnyOfFiveOwnerType';
export type ProjectSchemaOwnersOneOfItemAnyOfFive = {
name: ProjectSchemaOwnersOneOfItemAnyOfFiveName;
ownerType: ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType;
};

View File

@ -1,7 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfItemAnyOfFiveName = string | null;

View File

@ -1,13 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType =
(typeof ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType)[keyof typeof ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectSchemaOwnersOneOfItemAnyOfFiveOwnerType = {
group: 'group',
} as const;

View File

@ -1,7 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfItemAnyOfImageUrl = string | null;

View File

@ -0,0 +1,11 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType } from './projectSchemaOwnersOneOfItemAnyOfThreeOwnerType';
export type ProjectSchemaOwnersOneOfItemAnyOfThree = {
name: string;
ownerType: ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType;
};

View File

@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType =
(typeof ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType)[keyof typeof ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectSchemaOwnersOneOfItemAnyOfThreeOwnerType = {
group: 'group',
} as const;

View File

@ -1,10 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfNineItemOwnerType } from './projectSchemaOwnersOneOfNineItemOwnerType';
export type ProjectSchemaOwnersOneOfNineItem = {
ownerType: ProjectSchemaOwnersOneOfNineItemOwnerType;
};

View File

@ -1,13 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfNineItemOwnerType =
(typeof ProjectSchemaOwnersOneOfNineItemOwnerType)[keyof typeof ProjectSchemaOwnersOneOfNineItemOwnerType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectSchemaOwnersOneOfNineItemOwnerType = {
system: 'system',
} as const;

View File

@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectSchemaOwnersOneOfSixItemOwnerType } from './projectSchemaOwnersOneOfSixItemOwnerType';
export type ProjectSchemaOwnersOneOfSixItem = {
ownerType: ProjectSchemaOwnersOneOfSixItemOwnerType;
};

View File

@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ProjectSchemaOwnersOneOfSixItemOwnerType =
(typeof ProjectSchemaOwnersOneOfSixItemOwnerType)[keyof typeof ProjectSchemaOwnersOneOfSixItemOwnerType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ProjectSchemaOwnersOneOfSixItemOwnerType = {
system: 'system',
} as const;

View File

@ -30,6 +30,8 @@ export const SearchEventsSchemaType = {
'feature-strategy-add': 'feature-strategy-add',
'feature-strategy-remove': 'feature-strategy-remove',
'feature-type-updated': 'feature-type-updated',
'feature-completed': 'feature-completed',
'feature-uncompleted': 'feature-uncompleted',
'strategy-order-changed': 'strategy-order-changed',
'drop-feature-tags': 'drop-feature-tags',
'feature-untagged': 'feature-untagged',

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Uncomplete401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Uncomplete403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type Uncomplete404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};