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

chore: update orval schema (#8839)

This commit is contained in:
Jaanus Sellin 2024-11-22 13:19:29 +02:00 committed by GitHub
parent 9b4e646a98
commit b4bf68a4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 133 additions and 12 deletions

View File

@ -25,7 +25,7 @@ export interface CreateReleasePlanMilestoneStrategySchema {
* A descriptive title for the strategy
* @nullable
*/
title: string | null;
title?: string | null;
/** Strategy level variants */
variants?: CreateStrategyVariantSchema[];
}

View File

@ -11,8 +11,15 @@ import type { CreateUserResponseSchemaRootRole } from './createUserResponseSchem
export interface CreateUserResponseSchema {
/** A user is either an actual User or a Service Account */
accountType?: string;
/**
* Count of active browser sessions for this user
* @nullable
*/
activeSessions?: number | null;
/** The user was created at this time */
createdAt?: string;
/** Experimental. The number of deleted browser sessions after last login */
deletedSessions?: number;
/** Email of the user */
email?: string;
/** Is the welcome email sent to the user or not */

View File

@ -165,5 +165,8 @@ export const DeprecatedSearchEventsSchemaType = {
'release-plan-template-created': 'release-plan-template-created',
'release-plan-template-updated': 'release-plan-template-updated',
'release-plan-template-deleted': 'release-plan-template-deleted',
'release-plan-added': 'release-plan-added',
'release-plan-removed': 'release-plan-removed',
'release-plan-milestone-started': 'release-plan-milestone-started',
'user-preference-updated': 'user-preference-updated',
} as const;

View File

@ -165,5 +165,8 @@ export const EventSchemaType = {
'release-plan-template-created': 'release-plan-template-created',
'release-plan-template-updated': 'release-plan-template-updated',
'release-plan-template-deleted': 'release-plan-template-deleted',
'release-plan-added': 'release-plan-added',
'release-plan-removed': 'release-plan-removed',
'release-plan-milestone-started': 'release-plan-milestone-started',
'user-preference-updated': 'user-preference-updated',
} as const;

View File

@ -859,6 +859,9 @@ export * from './legalValueSchema';
export * from './licenseCheckSchema';
export * from './licenseReadSchema';
export * from './licenseUpdateSchema';
export * from './licensedUserSchema';
export * from './licensedUsersSchema';
export * from './licensedUsersSchemaLicensedUsers';
export * from './listParentOptions401';
export * from './listParentOptions403';
export * from './listParentOptions404';
@ -1030,6 +1033,7 @@ export * from './projectSettingsSchemaDefaultStickiness';
export * from './projectSettingsSchemaMode';
export * from './projectStatsSchema';
export * from './projectStatusSchema';
export * from './projectStatusSchemaHealth';
export * from './projectStatusSchemaLifecycleSummary';
export * from './projectStatusSchemaLifecycleSummaryArchived';
export * from './projectStatusSchemaLifecycleSummaryCompleted';
@ -1037,6 +1041,7 @@ export * from './projectStatusSchemaLifecycleSummaryInitial';
export * from './projectStatusSchemaLifecycleSummaryLive';
export * from './projectStatusSchemaLifecycleSummaryPreLive';
export * from './projectStatusSchemaResources';
export * from './projectStatusSchemaStaleFlags';
export * from './projectUsersSchema';
export * from './projectsSchema';
export * from './provideFeedbackSchema';
@ -1060,6 +1065,7 @@ export * from './releasePlanMilestoneSchema';
export * from './releasePlanMilestoneStrategySchema';
export * from './releasePlanSchema';
export * from './releasePlanSchemaDiscriminator';
export * from './releasePlanTemplateIdSchema';
export * from './releasePlanTemplateSchema';
export * from './releasePlanTemplateSchemaDiscriminator';
export * from './remoteMilestoneStrategy401';

View File

@ -51,6 +51,11 @@ export interface InstanceAdminStatsSchema {
groups?: number;
/** A unique identifier for this instance. Generated by the database migration scripts at first run. Typically a UUID. */
instanceId: string;
/**
* The number of users who had access to Unleash within the last 30 days, including those who may have been deleted during this period.
* @minimum 0
*/
licensedUsers?: number;
/**
* The highest number of constraints used on a single strategy.
* @minimum 0

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A schema representing a single licensed user data point.
*/
export interface LicensedUserSchema {
/**
* The count of licensed users on the given date.
* @minimum 0
*/
count: number;
/** The date associated with the licensed users count. */
date: string;
}

View File

@ -0,0 +1,19 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { LicensedUsersSchemaLicensedUsers } from './licensedUsersSchemaLicensedUsers';
/**
* A response model representing user license data.
*/
export interface LicensedUsersSchema {
/** An object containing historical and current licensed user data. */
licensedUsers: LicensedUsersSchemaLicensedUsers;
/**
* The total number of licensed seats currently available for this Unleash instance.
* @minimum 0
*/
seatCount: number;
}

View File

@ -0,0 +1,19 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { LicensedUserSchema } from './licensedUserSchema';
/**
* An object containing historical and current licensed user data.
*/
export type LicensedUsersSchemaLicensedUsers = {
/**
* The current number of licenses in use.
* @minimum 0
*/
current: number;
/** A monthly history of licensed user counts. */
history: LicensedUserSchema[];
};

View File

@ -4,8 +4,10 @@
* See `gen:api` script in package.json
*/
import type { ProjectActivitySchema } from './projectActivitySchema';
import type { ProjectStatusSchemaHealth } from './projectStatusSchemaHealth';
import type { ProjectStatusSchemaLifecycleSummary } from './projectStatusSchemaLifecycleSummary';
import type { ProjectStatusSchemaResources } from './projectStatusSchemaResources';
import type { ProjectStatusSchemaStaleFlags } from './projectStatusSchemaStaleFlags';
/**
* Schema representing the overall status of a project, including an array of activity records. Each record in the activity array contains a date and a count, providing a snapshot of the projects activity level over time.
@ -13,20 +15,12 @@ import type { ProjectStatusSchemaResources } from './projectStatusSchemaResource
export interface ProjectStatusSchema {
/** Array of activity records with date and count, representing the projects daily activity statistics. */
activityCountByDate: ProjectActivitySchema;
/**
* The average health score over the last 4 weeks, indicating whether features are stale or active.
* @minimum 0
*/
health: {
current: number;
};
/** Information about the project's health rating */
health: ProjectStatusSchemaHealth;
/** Feature flag lifecycle statistics for this project. */
lifecycleSummary: ProjectStatusSchemaLifecycleSummary;
/** Key resources within the project */
resources: ProjectStatusSchemaResources;
/** Information on stale and potentially stale flags in this project. */
staleFlags: {
/** The total number of flags in this project that are stale or potentially stale. */
total: number;
};
staleFlags: ProjectStatusSchemaStaleFlags;
}

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Information about the project's health rating
*/
export type ProjectStatusSchemaHealth = {
/**
* The project's current health score, based on the ratio of healthy flags to stale and potentially stale flags.
* @minimum 0
*/
current: number;
};

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Information on stale and potentially stale flags in this project.
*/
export type ProjectStatusSchemaStaleFlags = {
/**
* The total number of flags in this project that are stale or potentially stale.
* @minimum 0
*/
total: number;
};

View File

@ -0,0 +1,15 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* Schema for creating a release plan for a feature flag environment by copying and applying the configuration from a release plan template.
*/
export interface ReleasePlanTemplateIdSchema {
/**
* The release plan template's ID. Release template IDs are ulids.
*/
templateId: string;
}