1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

chore: update orval types (#10769)

This commit is contained in:
Jaanus Sellin 2025-10-09 21:15:39 +03:00 committed by GitHub
parent 346b063f45
commit 938d25828f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
20 changed files with 150 additions and 21 deletions

View File

@ -4,7 +4,7 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
export type CreateProgression401 = { export type CreateMilestoneProgression401 = {
/** The ID of the error instance */ /** The ID of the error instance */
id?: string; id?: string;
/** A description of what went wrong. */ /** A description of what went wrong. */

View File

@ -4,7 +4,7 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
export type CreateProgression403 = { export type CreateMilestoneProgression403 = {
/** The ID of the error instance */ /** The ID of the error instance */
id?: string; id?: string;
/** A description of what went wrong. */ /** A description of what went wrong. */

View File

@ -3,7 +3,7 @@
* Do not edit manually. * Do not edit manually.
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { CreateMilestoneProgressionSchemaTransitionCondition } from './createMilestoneProgressionSchemaTransitionCondition.js'; import type { TransitionConditionSchema } from './transitionConditionSchema.js';
/** /**
* Request body to create a milestone progression * Request body to create a milestone progression
@ -14,5 +14,5 @@ export interface CreateMilestoneProgressionSchema {
/** The ID of the target milestone */ /** The ID of the target milestone */
targetMilestone: string; targetMilestone: string;
/** The condition configuration for the transition */ /** The condition configuration for the transition */
transitionCondition: CreateMilestoneProgressionSchemaTransitionCondition; transitionCondition: TransitionConditionSchema;
} }

View File

@ -1,13 +0,0 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The condition configuration for the transition
*/
export type CreateMilestoneProgressionSchemaTransitionCondition = {
/** The interval in minutes before transitioning */
intervalMinutes: number;
};

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type DeleteMilestoneProgression401 = {
/** 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 DeleteMilestoneProgression403 = {
/** 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 DeleteMilestoneProgression404 = {
/** 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

@ -11,12 +11,16 @@ export interface DetailedInvoicesLineSchema {
currency: string; currency: string;
/** Description of the line item */ /** Description of the line item */
description: string; description: string;
/** Optional end date for the metered period */
endDate?: string;
/** Optional limit associated with the line item */ /** Optional limit associated with the line item */
limit?: number; limit?: number;
/** Lookup key identifying the product/pricing */ /** Lookup key identifying the product/pricing */
lookupKey: string; lookupKey: string;
/** Quantity of the item */ /** Quantity of the item */
quantity: number; quantity: number;
/** Optional start date for the metered period */
startDate?: string;
/** Total amount for this line item in minor currency units */ /** Total amount for this line item in minor currency units */
totalAmount: number; totalAmount: number;
} }

View File

@ -16,6 +16,8 @@ export type DetailedInvoicesSchemaInvoicesItem = {
invoiceURL?: string; invoiceURL?: string;
/** Primary line items (packages, seats, etc.) */ /** Primary line items (packages, seats, etc.) */
mainLines: DetailedInvoicesLineSchema[]; mainLines: DetailedInvoicesLineSchema[];
/** Human-readable month label for the invoice period */
monthText: string;
/** The current status of the invoice */ /** The current status of the invoice */
status: string; status: string;
/** Total amount for the invoice in minor currency units */ /** Total amount for the invoice in minor currency units */

View File

@ -3,6 +3,7 @@
* Do not edit manually. * Do not edit manually.
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { ReleasePlanSchema } from './releasePlanSchema.js';
import type { FeatureStrategySchema } from './featureStrategySchema.js'; import type { FeatureStrategySchema } from './featureStrategySchema.js';
import type { VariantSchema } from './variantSchema.js'; import type { VariantSchema } from './variantSchema.js';
@ -33,6 +34,8 @@ export interface FeatureEnvironmentSchema {
milestoneOrder?: number; milestoneOrder?: number;
/** The name of the environment */ /** The name of the environment */
name: string; name: string;
/** Release plans for this feature environment (only available when milestoneProgression feature flag is enabled) */
releasePlans?: ReleasePlanSchema[];
/** The sort order of the feature environment in the feature environments list */ /** The sort order of the feature environment in the feature environments list */
sortOrder?: number; sortOrder?: number;
/** A list of activation strategies for the feature environment */ /** A list of activation strategies for the feature environment */

View File

@ -3,6 +3,7 @@
* Do not edit manually. * Do not edit manually.
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { ReleasePlanSchema } from './releasePlanSchema.js';
import type { FeatureStrategySchema } from './featureStrategySchema.js'; import type { FeatureStrategySchema } from './featureStrategySchema.js';
import type { VariantSchema } from './variantSchema.js'; import type { VariantSchema } from './variantSchema.js';
@ -38,6 +39,8 @@ export interface FeatureSearchEnvironmentSchema {
* @minimum 0 * @minimum 0
*/ */
no?: number; no?: number;
/** Release plans for this feature environment (only available when milestoneProgression feature flag is enabled) */
releasePlans?: ReleasePlanSchema[];
/** The sort order of the feature environment in the feature environments list */ /** The sort order of the feature environment in the feature environments list */
sortOrder?: number; sortOrder?: number;
/** A list of activation strategies for the feature environment */ /** A list of activation strategies for the feature environment */

View File

@ -440,14 +440,13 @@ export * from './createImpactMetricsConfigSchemaLabelSelectors.js';
export * from './createImpactMetricsConfigSchemaTimeRange.js'; export * from './createImpactMetricsConfigSchemaTimeRange.js';
export * from './createImpactMetricsConfigSchemaYAxisMin.js'; export * from './createImpactMetricsConfigSchemaYAxisMin.js';
export * from './createInvitedUserSchema.js'; export * from './createInvitedUserSchema.js';
export * from './createMilestoneProgression401.js';
export * from './createMilestoneProgression403.js';
export * from './createMilestoneProgressionSchema.js'; export * from './createMilestoneProgressionSchema.js';
export * from './createMilestoneProgressionSchemaTransitionCondition.js';
export * from './createPat401.js'; export * from './createPat401.js';
export * from './createPat403.js'; export * from './createPat403.js';
export * from './createPat404.js'; export * from './createPat404.js';
export * from './createPatSchema.js'; export * from './createPatSchema.js';
export * from './createProgression401.js';
export * from './createProgression403.js';
export * from './createProject400.js'; export * from './createProject400.js';
export * from './createProject401.js'; export * from './createProject401.js';
export * from './createProject403.js'; export * from './createProject403.js';
@ -568,6 +567,9 @@ export * from './deleteInactiveUsers401.js';
export * from './deleteInactiveUsers403.js'; export * from './deleteInactiveUsers403.js';
export * from './deleteInstanceImpactMetricConfig401.js'; export * from './deleteInstanceImpactMetricConfig401.js';
export * from './deleteInstanceImpactMetricConfig403.js'; export * from './deleteInstanceImpactMetricConfig403.js';
export * from './deleteMilestoneProgression401.js';
export * from './deleteMilestoneProgression403.js';
export * from './deleteMilestoneProgression404.js';
export * from './deletePat401.js'; export * from './deletePat401.js';
export * from './deletePat403.js'; export * from './deletePat403.js';
export * from './deletePat404.js'; export * from './deletePat404.js';
@ -1185,6 +1187,7 @@ export * from './registerFrontendMetrics400.js';
export * from './registerFrontendMetrics401.js'; export * from './registerFrontendMetrics401.js';
export * from './registerFrontendMetrics404.js'; export * from './registerFrontendMetrics404.js';
export * from './releasePlanMilestoneSchema.js'; export * from './releasePlanMilestoneSchema.js';
export * from './releasePlanMilestoneSchemaTransitionCondition.js';
export * from './releasePlanMilestoneStrategySchema.js'; export * from './releasePlanMilestoneStrategySchema.js';
export * from './releasePlanSchema.js'; export * from './releasePlanSchema.js';
export * from './releasePlanSchemaDiscriminator.js'; export * from './releasePlanSchemaDiscriminator.js';
@ -1478,6 +1481,10 @@ export * from './updateLicense400.js';
export * from './updateLicense401.js'; export * from './updateLicense401.js';
export * from './updateLicense403.js'; export * from './updateLicense403.js';
export * from './updateLicense415.js'; export * from './updateLicense415.js';
export * from './updateMilestoneProgression401.js';
export * from './updateMilestoneProgression403.js';
export * from './updateMilestoneProgression404.js';
export * from './updateMilestoneProgressionSchema.js';
export * from './updateMilestoneStrategy401.js'; export * from './updateMilestoneStrategy401.js';
export * from './updateMilestoneStrategy403.js'; export * from './updateMilestoneStrategy403.js';
export * from './updateMilestoneStrategy404.js'; export * from './updateMilestoneStrategy404.js';

View File

@ -16,4 +16,5 @@ export const PatchSchemaOp = {
replace: 'replace', replace: 'replace',
copy: 'copy', copy: 'copy',
move: 'move', move: 'move',
test: 'test',
} as const; } as const;

View File

@ -4,6 +4,7 @@
* See `gen:api` script in package.json * See `gen:api` script in package.json
*/ */
import type { ReleasePlanMilestoneStrategySchema } from './releasePlanMilestoneStrategySchema.js'; import type { ReleasePlanMilestoneStrategySchema } from './releasePlanMilestoneStrategySchema.js';
import type { ReleasePlanMilestoneSchemaTransitionCondition } from './releasePlanMilestoneSchemaTransitionCondition.js';
/** /**
* Schema representing the creation of a release plan milestone. * Schema representing the creation of a release plan milestone.
@ -19,6 +20,16 @@ export interface ReleasePlanMilestoneSchema {
releasePlanDefinitionId: string; releasePlanDefinitionId: string;
/** The order of the milestone in the release plan. */ /** The order of the milestone in the release plan. */
sortOrder: number; sortOrder: number;
/**
* The date and time when the milestone was started.
* @nullable
*/
startedAt?: string | null;
/** A list of strategies that are attached to this milestone. */ /** A list of strategies that are attached to this milestone. */
strategies?: ReleasePlanMilestoneStrategySchema[]; strategies?: ReleasePlanMilestoneStrategySchema[];
/**
* The transition condition for the next automated milestone progression.
* @nullable
*/
transitionCondition?: ReleasePlanMilestoneSchemaTransitionCondition;
} }

View File

@ -0,0 +1,13 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* The transition condition for the next automated milestone progression.
* @nullable
*/
export type ReleasePlanMilestoneSchemaTransitionCondition = {
[key: string]: unknown;
} | null;

View File

@ -63,7 +63,7 @@ export type SearchFeaturesParams = {
*/ */
favoritesFirst?: string; favoritesFirst?: string;
/** /**
* Whether to get results for archived feature flags or active feature flags. If `true`, Unleash will return only archived flags. If `false`, it will return only active flags. * Whether to get results for archived feature flags or active feature flags. If `IS:true`, Unleash will return only archived flags. If `IS:false`, it will return only active flags.
*/ */
archived?: string; archived?: string;
/** /**

View File

@ -0,0 +1,14 @@
/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
export type UpdateMilestoneProgression401 = {
/** 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 UpdateMilestoneProgression403 = {
/** 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 UpdateMilestoneProgression404 = {
/** 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
*/
import type { TransitionConditionSchema } from './transitionConditionSchema.js';
/**
* Request body to update a milestone progression transition condition
*/
export interface UpdateMilestoneProgressionSchema {
/** The updated condition configuration for the transition */
transitionCondition: TransitionConditionSchema;
}