1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-15 01:16:22 +02:00
unleash.unleash/frontend/src/openapi/models/resourceLimitsSchema.ts
Thomas Heartman ef80d7f81e
ui limits for flags (#7541)
This PR disables the "create feature flag" button when you've reached
the limits.

This one is a little more complex than the other UI limits, because we
also have to take into account the project feature limit. I've tried to
touch as little as possible, but I _have_ extracted the calculation of
both limits into a single hook.
2024-07-08 10:27:01 +02:00

48 lines
1.9 KiB
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* A map of resource names and their limits.
*/
export interface ResourceLimitsSchema {
/** The maximum number of actions per action set allowed. */
actionSetActions: number;
/** The maximum number of filters per action set allowed. */
actionSetFilters: number;
/** The maximum number of filter values inside an action set allowed. */
actionSetFilterValues: number;
/** The maximum number of action set definitions per project allowed. */
actionSetsPerProject: number;
/** The maximum number of values per segment allowed. */
segmentValues: number;
/** The maximum number of signal endpoints allowed. */
signalEndpoints: number;
/** The maximum number of signal tokens per endpoint allowed. */
signalTokensPerEndpoint: number;
/** The maximum number of strategy segments allowed. */
strategySegments: number;
/** The maximum number of feature environment strategies allowed. */
featureEnvironmentStrategies: number;
/** The maximum number of environments allowed. */
environments: number;
/** The maximum number of values for a single constraint. */
constraintValues: number;
/** The maximum number of projects allowed. */
projects: number;
/** The maximum number of segments allowed. */
segments: number;
/** The maximum number of SDK and admin API tokens you can have at
* the same time. This limit applies only to server-side and
* client-side SDK tokens and to admin tokens. Personal access
* tokens are not subject to this limit. The limit applies to the
* total number of tokens across all projects in your
* organization. */
apiTokens: number;
/** The maximum number of feature flags you can have at the same
* time. Archived flags do not count towards this limit. */
featureFlags: number;
}