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

chore: generate new orval types (#6292)

what it says on the box

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2024-02-21 11:31:06 +02:00 committed by GitHub
parent 869e33138b
commit 60754b9fca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
26 changed files with 342 additions and 2 deletions

View File

@ -33,6 +33,7 @@ export const useExecutiveDashboard = (
userTrends: [], userTrends: [],
flagTrends: [], flagTrends: [],
projectFlagTrends: [], projectFlagTrends: [],
impressionsSummary: [],
}, },
refetchExecutiveDashboard, refetchExecutiveDashboard,
loading: !error && !data, loading: !error && !data,

View File

@ -0,0 +1,26 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ActionStateSchema } from './actionStateSchema';
import type { ActionEventSchemaPayload } from './actionEventSchemaPayload';
import type { ActionEventSchemaSource } from './actionEventSchemaSource';
/**
* An object describing an action event.
*/
export interface ActionEventSchema {
/** The individual action events. */
actions: ActionStateSchema[];
/** The date and time of when the observable event was created. */
createdAt: string;
/** The observable event's ID. Observable event IDs are incrementing integers. In other words, a more recently created observable event will always have a higher ID than an older one. */
id?: number;
/** The payload of the observable event. */
payload?: ActionEventSchemaPayload;
/** The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. */
source: ActionEventSchemaSource;
/** The ID of the source that created this observable event. Should be used along with `source` to uniquely identify the resource that created this observable event. */
sourceId: number;
}

View File

@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The payload of the observable event.
*/
export type ActionEventSchemaPayload = { [key: string]: any };

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event.
*/
export type ActionEventSchemaSource =
(typeof ActionEventSchemaSource)[keyof typeof ActionEventSchemaSource];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ActionEventSchemaSource = {
'incoming-webhook': 'incoming-webhook',
} as const;

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ActionEventSchema } from './actionEventSchema';
/**
* A response model with a list of action events.
*/
export interface ActionEventsSchema {
/** A list of action events. */
actionEvents: ActionEventSchema[];
}

View File

@ -0,0 +1,25 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ActionStateSchemaExecutionParams } from './actionStateSchemaExecutionParams';
import type { ActionStateSchemaState } from './actionStateSchemaState';
/**
* An object describing an action state.
*/
export interface ActionStateSchema {
/** The name of the action to execute */
action: string;
/** The date and time of the action state update. */
createdAt: string;
/** The details of the action state. Only present if the action state is `failed`. */
details?: string | null;
/** A map of parameters to pass to the action */
executionParams: ActionStateSchemaExecutionParams;
/** The order in which the action should be executed */
sortOrder: number;
/** The state of the action. Can be one of `started`, `finished`, or `failed`. */
state: ActionStateSchemaState;
}

View File

@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A map of parameters to pass to the action
*/
export type ActionStateSchemaExecutionParams = { [key: string]: any };

View File

@ -0,0 +1,18 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The state of the action. Can be one of `started`, `finished`, or `failed`.
*/
export type ActionStateSchemaState =
(typeof ActionStateSchemaState)[keyof typeof ActionStateSchemaState];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const ActionStateSchemaState = {
started: 'started',
finished: 'finished',
failed: 'failed',
} as const;

View File

@ -5,6 +5,7 @@
*/ */
import type { ExecutiveSummarySchemaFlags } from './executiveSummarySchemaFlags'; import type { ExecutiveSummarySchemaFlags } from './executiveSummarySchemaFlags';
import type { ExecutiveSummarySchemaFlagTrendsItem } from './executiveSummarySchemaFlagTrendsItem'; import type { ExecutiveSummarySchemaFlagTrendsItem } from './executiveSummarySchemaFlagTrendsItem';
import type { ExecutiveSummarySchemaImpressionsSummaryItem } from './executiveSummarySchemaImpressionsSummaryItem';
import type { ExecutiveSummarySchemaProjectFlagTrendsItem } from './executiveSummarySchemaProjectFlagTrendsItem'; import type { ExecutiveSummarySchemaProjectFlagTrendsItem } from './executiveSummarySchemaProjectFlagTrendsItem';
import type { ExecutiveSummarySchemaUsers } from './executiveSummarySchemaUsers'; import type { ExecutiveSummarySchemaUsers } from './executiveSummarySchemaUsers';
import type { ExecutiveSummarySchemaUserTrendsItem } from './executiveSummarySchemaUserTrendsItem'; import type { ExecutiveSummarySchemaUserTrendsItem } from './executiveSummarySchemaUserTrendsItem';
@ -17,6 +18,8 @@ export interface ExecutiveSummarySchema {
flags: ExecutiveSummarySchemaFlags; flags: ExecutiveSummarySchemaFlags;
/** How number of flags changed over time */ /** How number of flags changed over time */
flagTrends: ExecutiveSummarySchemaFlagTrendsItem[]; flagTrends: ExecutiveSummarySchemaFlagTrendsItem[];
/** How impression data per project changed over time */
impressionsSummary: ExecutiveSummarySchemaImpressionsSummaryItem[];
/** How number of flags per project changed over time */ /** How number of flags per project changed over time */
projectFlagTrends: ExecutiveSummarySchemaProjectFlagTrendsItem[]; projectFlagTrends: ExecutiveSummarySchemaProjectFlagTrendsItem[];
/** High level user count statistics */ /** High level user count statistics */

View File

@ -0,0 +1,22 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type ExecutiveSummarySchemaImpressionsSummaryItem = {
/** Date the impressions summary were calculated */
date: string;
/** Project id of the project the impressions summary belong to */
project: string;
/** Total number of applications the impression data belong to */
totalApps: number;
/** Total number of environments the impression data belong to */
totalEnvironments: number;
/** Total number of flags the impression data belong to */
totalFlags: number;
/** Total number of times all project flags were not exposed across all environments */
totalNo: number;
/** Total number of times all project flags were exposed across all environments */
totalYes: number;
};

View File

@ -18,7 +18,7 @@ export type GetProjectApplicationsParams = {
*/ */
limit?: string; limit?: string;
/** /**
* The field to sort the results by. By default it is set to "createdAt". * The field to sort the results by. By default it is set to "appName".
*/ */
sortBy?: string; sortBy?: string;
/** /**

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetUserPermissions401 = {
/** 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 GetUserPermissions403 = {
/** 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 GetUserPermissions415 = {
/** 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,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetUserPermissionsParams = {
project?: string;
environment?: string;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetUserRoles401 = {
/** 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 GetUserRoles403 = {
/** 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,12 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type GetUserRolesParams = {
/**
* The id of the project you want to check permissions for
*/
projectId?: string;
};

View File

@ -0,0 +1,25 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { IncomingWebhookEventSchemaPayload } from './incomingWebhookEventSchemaPayload';
import type { IncomingWebhookEventSchemaSource } from './incomingWebhookEventSchemaSource';
/**
* An object describing an incoming webhook event.
*/
export interface IncomingWebhookEventSchema {
/** The date and time of when the observable event was created. */
createdAt: string;
/** The observable event's ID. Observable event IDs are incrementing integers. In other words, a more recently created observable event will always have a higher ID than an older one. */
id?: number;
/** The payload of the observable event. */
payload?: IncomingWebhookEventSchemaPayload;
/** The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event. */
source: IncomingWebhookEventSchemaSource;
/** The ID of the source that created this observable event. Should be used along with `source` to uniquely identify the resource that created this observable event. */
sourceId: number;
/** The name of the token used to register this incoming webhook event. */
tokenName?: string | null;
}

View File

@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The payload of the observable event.
*/
export type IncomingWebhookEventSchemaPayload = { [key: string]: any };

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The observable event source type. Should be used along with `sourceId` to uniquely identify the resource that created this observable event.
*/
export type IncomingWebhookEventSchemaSource =
(typeof IncomingWebhookEventSchemaSource)[keyof typeof IncomingWebhookEventSchemaSource];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const IncomingWebhookEventSchemaSource = {
'incoming-webhook': 'incoming-webhook',
} as const;

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { IncomingWebhookEventSchema } from './incomingWebhookEventSchema';
/**
* A response model with a list of incoming webhook events.
*/
export interface IncomingWebhookEventsSchema {
/** A list of incoming webhook events. */
incomingWebhookEvents: IncomingWebhookEventSchema[];
}

View File

@ -7,8 +7,15 @@
export * from './_exportFormat'; export * from './_exportFormat';
export * from './_exportParams'; export * from './_exportParams';
export * from './accessOverviewSchema'; export * from './accessOverviewSchema';
export * from './actionEventSchema';
export * from './actionEventSchemaPayload';
export * from './actionEventSchemaSource';
export * from './actionEventsSchema';
export * from './actionSchema'; export * from './actionSchema';
export * from './actionSchemaExecutionParams'; export * from './actionSchemaExecutionParams';
export * from './actionStateSchema';
export * from './actionStateSchemaExecutionParams';
export * from './actionStateSchemaState';
export * from './actionsListSchema'; export * from './actionsListSchema';
export * from './actionsSchema'; export * from './actionsSchema';
export * from './actionsSchemaMatch'; export * from './actionsSchemaMatch';
@ -501,6 +508,7 @@ export * from './eventsSchemaVersion';
export * from './executiveSummarySchema'; export * from './executiveSummarySchema';
export * from './executiveSummarySchemaFlagTrendsItem'; export * from './executiveSummarySchemaFlagTrendsItem';
export * from './executiveSummarySchemaFlags'; export * from './executiveSummarySchemaFlags';
export * from './executiveSummarySchemaImpressionsSummaryItem';
export * from './executiveSummarySchemaProjectFlagTrendsItem'; export * from './executiveSummarySchemaProjectFlagTrendsItem';
export * from './executiveSummarySchemaUserTrendsItem'; export * from './executiveSummarySchemaUserTrendsItem';
export * from './executiveSummarySchemaUsers'; export * from './executiveSummarySchemaUsers';
@ -690,6 +698,13 @@ export * from './getTagsByType403';
export * from './getUser400'; export * from './getUser400';
export * from './getUser401'; export * from './getUser401';
export * from './getUser404'; export * from './getUser404';
export * from './getUserPermissions401';
export * from './getUserPermissions403';
export * from './getUserPermissions415';
export * from './getUserPermissionsParams';
export * from './getUserRoles401';
export * from './getUserRoles403';
export * from './getUserRolesParams';
export * from './getUsers401'; export * from './getUsers401';
export * from './getUsers403'; export * from './getUsers403';
export * from './getValidTokens400'; export * from './getValidTokens400';
@ -714,6 +729,10 @@ export * from './importTogglesValidateItemSchema';
export * from './importTogglesValidateSchema'; export * from './importTogglesValidateSchema';
export * from './inactiveUserSchema'; export * from './inactiveUserSchema';
export * from './inactiveUsersSchema'; export * from './inactiveUsersSchema';
export * from './incomingWebhookEventSchema';
export * from './incomingWebhookEventSchemaPayload';
export * from './incomingWebhookEventSchemaSource';
export * from './incomingWebhookEventsSchema';
export * from './incomingWebhookSchema'; export * from './incomingWebhookSchema';
export * from './incomingWebhookTokenSchema'; export * from './incomingWebhookTokenSchema';
export * from './incomingWebhookTokensSchema'; export * from './incomingWebhookTokensSchema';
@ -919,6 +938,7 @@ export * from './reviveFeatures403';
export * from './roleSchema'; export * from './roleSchema';
export * from './roleWithPermissionsSchema'; export * from './roleWithPermissionsSchema';
export * from './roleWithVersionSchema'; export * from './roleWithVersionSchema';
export * from './rolesSchema';
export * from './rolesWithVersionSchema'; export * from './rolesWithVersionSchema';
export * from './samlSettingsSchema'; export * from './samlSettingsSchema';
export * from './samlSettingsSchemaDefaultRootRole'; export * from './samlSettingsSchemaDefaultRootRole';

View File

@ -10,5 +10,5 @@ import type { ObservableEventSchema } from './observableEventSchema';
*/ */
export interface ObservableEventsSchema { export interface ObservableEventsSchema {
/** A list of observable events. */ /** A list of observable events. */
observable_events: ObservableEventSchema[]; observableEvents: ObservableEventSchema[];
} }

View File

@ -14,6 +14,8 @@ export interface RoleSchema {
id: number; id: number;
/** The name of the role */ /** The name of the role */
name: string; name: string;
/** What project the role belongs to */
project?: string | null;
/** A role can either be a global root role (applies to all projects) or a project role */ /** A role can either be a global root role (applies to all projects) or a project role */
type: string; type: string;
} }

View File

@ -0,0 +1,16 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { RoleSchema } from './roleSchema';
/**
* A list of roles
*/
export interface RolesSchema {
/** A list of roles */
roles: RoleSchema[];
/** The version of the role schema used */
version: number;
}