Skip to content

Commit

Permalink
chore: update orval schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Nov 22, 2024
1 parent cb40567 commit 35a128a
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 0 deletions.
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: 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;
}

0 comments on commit 35a128a

Please sign in to comment.