Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: generate frontend openapi types (#5988)
Update for dashboard types
- Loading branch information
Showing
23 changed files
with
184 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ActionSchemaExecutionParams } from './actionSchemaExecutionParams'; | ||
|
||
/** | ||
* Represents a single action response | ||
*/ | ||
export interface ActionSchema { | ||
/** The name of the action to execute */ | ||
action: string; | ||
/** The date and time of when the action was created. */ | ||
createdAt: string; | ||
/** The id of user that created this action set */ | ||
createdByUserId: number; | ||
/** A map of parameters to pass to the action */ | ||
executionParams?: ActionSchemaExecutionParams; | ||
/** The id of the action set */ | ||
id: number; | ||
/** The order in which the action should be executed */ | ||
sortOrder: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
frontend/src/openapi/models/createActionsSchemaActionsItem.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ExecutiveSummarySchemaFlagsTrendsItem } from './executiveSummarySchemaFlagsTrendsItem'; | ||
import type { ExecutiveSummarySchemaUserStats } from './executiveSummarySchemaUserStats'; | ||
import type { ExecutiveSummarySchemaUserTrendsItem } from './executiveSummarySchemaUserTrendsItem'; | ||
|
||
/** | ||
* Executive summary of Unleash usage | ||
*/ | ||
export interface ExecutiveSummarySchema { | ||
/** How number of flags changed over time */ | ||
flagsTrends: ExecutiveSummarySchemaFlagsTrendsItem[]; | ||
/** The type of single-sign option configured for the Unleash instance */ | ||
ssoType?: string; | ||
/** High level user count statistics */ | ||
userStats: ExecutiveSummarySchemaUserStats; | ||
/** How number of users changed over time */ | ||
userTrends: ExecutiveSummarySchemaUserTrendsItem[]; | ||
} |
16 changes: 16 additions & 0 deletions
16
frontend/src/openapi/models/executiveSummarySchemaFlagsTrendsItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
||
export type ExecutiveSummarySchemaFlagsTrendsItem = { | ||
/** The number of non-archived flags on a particular day */ | ||
active: number; | ||
/** The number of archived flags on a particular day */ | ||
archived: number; | ||
/** A UTC date when the stats were captured. Time is the very end of a given day. */ | ||
date: string; | ||
/** The number of all flags on a particular day */ | ||
total: number; | ||
}; |
22 changes: 22 additions & 0 deletions
22
frontend/src/openapi/models/executiveSummarySchemaUserStats.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
import type { ExecutiveSummarySchemaUserStatsRoles } from './executiveSummarySchemaUserStatsRoles'; | ||
|
||
/** | ||
* High level user count statistics | ||
*/ | ||
export type ExecutiveSummarySchemaUserStats = { | ||
/** The number of active Unleash users who have logged in in the past 90 days */ | ||
active: number; | ||
/** The number of inactive Unleash users who have not logged in in the past 90 days. */ | ||
inactive: number; | ||
/** The number of users licensed to use Unleash */ | ||
licensed: number; | ||
/** The number of users with a given [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) */ | ||
roles: ExecutiveSummarySchemaUserStatsRoles; | ||
/** The number of actual Unleash users */ | ||
total: number; | ||
}; |
17 changes: 17 additions & 0 deletions
17
frontend/src/openapi/models/executiveSummarySchemaUserStatsRoles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Generated by Orval | ||
* Do not edit manually. | ||
* See `gen:api` script in package.json | ||
*/ | ||
|
||
/** | ||
* The number of users with a given [root role](https://docs.getunleash.io/reference/rbac#predefined-roles) | ||
*/ | ||
export type ExecutiveSummarySchemaUserStatsRoles = { | ||
/** The number of users with the `admin` root role */ | ||
admin: number; | ||
/** The number of users with the `editor` root role */ | ||
editor: number; | ||
/** The number of users with the `viewer` root role */ | ||
viewer: number; | ||
}; |
16 changes: 16 additions & 0 deletions
16
frontend/src/openapi/models/executiveSummarySchemaUserTrendsItem.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
||
export type ExecutiveSummarySchemaUserTrendsItem = { | ||
/** The number of active Unleash users on a particular day */ | ||
active: number; | ||
/** A UTC date when the stats were captured. Time is the very end of a given day. */ | ||
date: string; | ||
/** The number of inactive Unleash users on a particular day */ | ||
inactive: number; | ||
/** The number of actual Unleash users on a particular day */ | ||
total: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
frontend/src/openapi/models/instanceAdminStatsSchemaPreviousDayMetricsBucketsCount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
||
/** | ||
* The number client metrics buckets records recorded in the previous day. # features * # apps * # envs * # hours with metrics | ||
*/ | ||
export type InstanceAdminStatsSchemaPreviousDayMetricsBucketsCount = { | ||
/** The number of enabled/disabled metrics buckets recorded in the previous day */ | ||
enabledCount?: number; | ||
/** The number of variant metrics buckets recorded in the previous day */ | ||
variantCount?: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters