Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update orval schema #8839

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}
7 changes: 7 additions & 0 deletions frontend/src/openapi/models/createUserResponseSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
3 changes: 3 additions & 0 deletions frontend/src/openapi/models/eventSchemaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
6 changes: 6 additions & 0 deletions frontend/src/openapi/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -1030,13 +1033,15 @@ export * from './projectSettingsSchemaDefaultStickiness';
export * from './projectSettingsSchemaMode';
export * from './projectStatsSchema';
export * from './projectStatusSchema';
export * from './projectStatusSchemaHealth';
export * from './projectStatusSchemaLifecycleSummary';
export * from './projectStatusSchemaLifecycleSummaryArchived';
export * from './projectStatusSchemaLifecycleSummaryCompleted';
export * from './projectStatusSchemaLifecycleSummaryInitial';
export * from './projectStatusSchemaLifecycleSummaryLive';
export * from './projectStatusSchemaLifecycleSummaryPreLive';
export * from './projectStatusSchemaResources';
export * from './projectStatusSchemaStaleFlags';
export * from './projectUsersSchema';
export * from './projectsSchema';
export * from './provideFeedbackSchema';
Expand All @@ -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';
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/openapi/models/instanceAdminStatsSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions frontend/src/openapi/models/licensedUserSchema.ts
Original file line number Diff line number Diff line change
@@ -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;
}
19 changes: 19 additions & 0 deletions frontend/src/openapi/models/licensedUsersSchema.ts
Original file line number Diff line number Diff line change
@@ -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;
}
19 changes: 19 additions & 0 deletions frontend/src/openapi/models/licensedUsersSchemaLicensedUsers.ts
Original file line number Diff line number Diff line change
@@ -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[];
};
16 changes: 5 additions & 11 deletions frontend/src/openapi/models/projectStatusSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,23 @@
* 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 project’s activity level over time.
*/
export interface ProjectStatusSchema {
/** Array of activity records with date and count, representing the project’s 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;
}
16 changes: 16 additions & 0 deletions frontend/src/openapi/models/projectStatusSchemaHealth.ts
Original file line number Diff line number Diff line change
@@ -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;
};
16 changes: 16 additions & 0 deletions frontend/src/openapi/models/projectStatusSchemaStaleFlags.ts
Original file line number Diff line number Diff line change
@@ -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;
};
15 changes: 15 additions & 0 deletions frontend/src/openapi/models/releasePlanTemplateIdSchema.ts
Original file line number Diff line number Diff line change
@@ -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;
}
Loading