Skip to content

Commit

Permalink
chore: update orval (#6842)
Browse files Browse the repository at this point in the history
Includes updates for:
- playground
- parent variant 
- scim
- fetaure lifecycle
  • Loading branch information
thomasheartman committed Apr 12, 2024
1 parent f4ef06f commit 7e91cbe
Show file tree
Hide file tree
Showing 16 changed files with 212 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
import type { AdvancedPlaygroundFeatureSchema } from './advancedPlaygroundFeatureSchema';
import type { AdvancedPlaygroundRequestSchema } from './advancedPlaygroundRequestSchema';
import type { AdvancedPlaygroundResponseSchemaWarnings } from './advancedPlaygroundResponseSchemaWarnings';

/**
* The state of all features given the provided input.
Expand All @@ -14,4 +15,6 @@ export interface AdvancedPlaygroundResponseSchema {
features: AdvancedPlaygroundFeatureSchema[];
/** The given input used to evaluate the features. */
input: AdvancedPlaygroundRequestSchema;
/** Warnings that occurred during evaluation. */
warnings?: AdvancedPlaygroundResponseSchemaWarnings;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

/**
* Warnings that occurred during evaluation.
*/
export type AdvancedPlaygroundResponseSchemaWarnings = {
/** A list of top-level context properties that were provided as input that are not valid due to being the wrong type. */
invalidContextProperties?: string[];
};
11 changes: 11 additions & 0 deletions frontend/src/openapi/models/featureLifecycleSchema.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 { FeatureLifecycleSchemaItem } from './featureLifecycleSchemaItem';

/**
* A list of lifecycle stages for a given feature
*/
export type FeatureLifecycleSchema = FeatureLifecycleSchemaItem[];
16 changes: 16 additions & 0 deletions frontend/src/openapi/models/featureLifecycleSchemaItem.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
*/
import type { FeatureLifecycleSchemaItemStage } from './featureLifecycleSchemaItemStage';

/**
* The lifecycle stage of the feature
*/
export type FeatureLifecycleSchemaItem = {
/** The date when the feature entered a given stage */
enteredStageAt: string;
/** The name of the lifecycle stage that got recorded for a given feature */
stage: FeatureLifecycleSchemaItemStage;
};
20 changes: 20 additions & 0 deletions frontend/src/openapi/models/featureLifecycleSchemaItemStage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

/**
* The name of the lifecycle stage that got recorded for a given feature
*/
export type FeatureLifecycleSchemaItemStage =
(typeof FeatureLifecycleSchemaItemStage)[keyof typeof FeatureLifecycleSchemaItemStage];

// eslint-disable-next-line @typescript-eslint/no-redeclare
export const FeatureLifecycleSchemaItemStage = {
initial: 'initial',
'pre-live': 'pre-live',
live: 'live',
completed: 'completed',
archived: 'archived',
} as const;
14 changes: 14 additions & 0 deletions frontend/src/openapi/models/getFeatureLifecycle401.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 GetFeatureLifecycle401 = {
/** 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/getFeatureLifecycle403.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 GetFeatureLifecycle403 = {
/** 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/getFeatureLifecycle404.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 GetFeatureLifecycle404 = {
/** 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/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export * from './advancedPlaygroundFeatureSchemaEnvironments';
export * from './advancedPlaygroundRequestSchema';
export * from './advancedPlaygroundRequestSchemaProjects';
export * from './advancedPlaygroundResponseSchema';
export * from './advancedPlaygroundResponseSchemaWarnings';
export * from './apiTokenSchema';
export * from './apiTokenSchemaType';
export * from './apiTokensSchema';
Expand Down Expand Up @@ -535,6 +536,9 @@ export * from './featureEnvironmentMetricsSchemaVariants';
export * from './featureEnvironmentSchema';
export * from './featureEventsSchema';
export * from './featureEventsSchemaVersion';
export * from './featureLifecycleSchema';
export * from './featureLifecycleSchemaItem';
export * from './featureLifecycleSchemaItemStage';
export * from './featureMetricsSchema';
export * from './featureSchema';
export * from './featureSchemaDependenciesItem';
Expand Down Expand Up @@ -613,6 +617,9 @@ export * from './getFeature404';
export * from './getFeatureEnvironment401';
export * from './getFeatureEnvironment403';
export * from './getFeatureEnvironment404';
export * from './getFeatureLifecycle401';
export * from './getFeatureLifecycle403';
export * from './getFeatureLifecycle404';
export * from './getFeatureStrategies401';
export * from './getFeatureStrategies403';
export * from './getFeatureStrategies404';
Expand Down Expand Up @@ -781,6 +788,9 @@ export * from './licenseUpdateSchema';
export * from './listParentOptions401';
export * from './listParentOptions403';
export * from './listParentOptions404';
export * from './listParentVariantOptions401';
export * from './listParentVariantOptions403';
export * from './listParentVariantOptions404';
export * from './listTags401';
export * from './listTags403';
export * from './listTags404';
Expand Down Expand Up @@ -815,6 +825,7 @@ export * from './overwriteFeatureVariantsOnEnvironments401';
export * from './overwriteFeatureVariantsOnEnvironments403';
export * from './parametersSchema';
export * from './parentFeatureOptionsSchema';
export * from './parentVariantOptionsSchema';
export * from './passwordAuthSchema';
export * from './passwordSchema';
export * from './patSchema';
Expand Down Expand Up @@ -968,6 +979,8 @@ export * from './rolesWithVersionSchema';
export * from './samlSettingsSchema';
export * from './samlSettingsSchemaDefaultRootRole';
export * from './scheduledChangeRequestViewModelSchema';
export * from './scimSettingsSchema';
export * from './scimTokenSchema';
export * from './sdkContextSchema';
export * from './sdkContextSchemaProperties';
export * from './sdkFlatContextSchema';
Expand Down Expand Up @@ -1010,6 +1023,7 @@ export * from './setSamlSettings400';
export * from './setSamlSettings401';
export * from './setSamlSettings403';
export * from './setSamlSettings415';
export * from './setScimSettingsSchema';
export * from './setSimpleSettings400';
export * from './setSimpleSettings401';
export * from './setSimpleSettings403';
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/openapi/models/listParentVariantOptions401.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 ListParentVariantOptions401 = {
/** 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/listParentVariantOptions403.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 ListParentVariantOptions403 = {
/** 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/listParentVariantOptions404.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 ListParentVariantOptions404 = {
/** The ID of the error instance */
id?: string;
/** A description of what went wrong. */
message?: string;
/** The name of the error kind */
name?: string;
};
10 changes: 10 additions & 0 deletions frontend/src/openapi/models/parentVariantOptionsSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

/**
* A list of parent variant names available for a given parent feature. This list includes strategy variants and feature environment variants.
*/
export type ParentVariantOptionsSchema = string[];
15 changes: 15 additions & 0 deletions frontend/src/openapi/models/scimSettingsSchema.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
*/

/**
* An object describing settings for SCIM provisioning.
*/
export interface ScimSettingsSchema {
/** Whether SCIM provisioning is currently enabled. */
enabled: boolean;
/** Whether a SCIM provisioning API token is currently set. */
hasToken: boolean;
}
13 changes: 13 additions & 0 deletions frontend/src/openapi/models/scimTokenSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

/**
* An object describing a SCIM provisioning API token.
*/
export interface ScimTokenSchema {
/** The token used for SCIM API authentication. Can be revoked at a later stage by generating a new one. */
token: string;
}
13 changes: 13 additions & 0 deletions frontend/src/openapi/models/setScimSettingsSchema.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/

/**
* An object describing settings for SCIM provisioning.
*/
export interface SetScimSettingsSchema {
/** Whether SCIM provisioning is currently enabled. */
enabled: boolean;
}

0 comments on commit 7e91cbe

Please sign in to comment.