Skip to content

Commit

Permalink
chore: orval types for flag creator (#7305)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Jun 6, 2024
1 parent 2cc4b5f commit bb3498a
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
export type FeatureSearchResponseSchemaCreatedBy = {
/** The user id */
id: number;
/**
* URL used for the user profile image
* @nullable
*/
/** URL used for the user profile image */
imageUrl: string;
/** Name of the user */
name: string;
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/openapi/models/getProjectFlagCreators401.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

export type GetProjectFlagCreators401 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};
14 changes: 14 additions & 0 deletions frontend/src/openapi/models/getProjectFlagCreators403.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

export type GetProjectFlagCreators403 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};
14 changes: 14 additions & 0 deletions frontend/src/openapi/models/getProjectFlagCreators404.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

export type GetProjectFlagCreators404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};
5 changes: 5 additions & 0 deletions frontend/src/openapi/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ export * from './getProjectDora404';
export * from './getProjectEnvironments401';
export * from './getProjectEnvironments403';
export * from './getProjectEnvironments404';
export * from './getProjectFlagCreators401';
export * from './getProjectFlagCreators403';
export * from './getProjectFlagCreators404';
export * from './getProjectHealthReport401';
export * from './getProjectHealthReport403';
export * from './getProjectHealthReport404';
Expand Down Expand Up @@ -891,6 +894,8 @@ export * from './projectCreatedSchemaChangeRequestEnvironmentsItem';
export * from './projectCreatedSchemaMode';
export * from './projectDoraMetricsSchema';
export * from './projectEnvironmentSchema';
export * from './projectFlagCreatorsSchema';
export * from './projectFlagCreatorsSchemaItem';
export * from './projectInsightsSchema';
export * from './projectInsightsSchemaHealth';
export * from './projectInsightsSchemaMembers';
Expand Down
11 changes: 11 additions & 0 deletions frontend/src/openapi/models/projectFlagCreatorsSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
import type { ProjectFlagCreatorsSchemaItem } from './projectFlagCreatorsSchemaItem';

/**
* A list of project flag creators
*/
export type ProjectFlagCreatorsSchema = ProjectFlagCreatorsSchemaItem[];
12 changes: 12 additions & 0 deletions frontend/src/openapi/models/projectFlagCreatorsSchemaItem.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

export type ProjectFlagCreatorsSchemaItem = {
/** The user id. */
id: number;
/** Name of the user. If the user has no set name, the API falls back to using the user's username (if they have one) or email (if neither name or username is set). */
name: string;
};

0 comments on commit bb3498a

Please sign in to comment.