mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
chore(deps): update dependency @biomejs/biome to v1.4.0 (#5288)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://togithub.com/biomejs/biome)) | [`1.3.3` ->
`1.4.0`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.3.3/1.4.0)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>biomejs/biome (@​biomejs/biome)</summary>
###
[`v1.4.0`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#140-2023-11-27)
[Compare
Source](af24597c18...889593e3f9
)
##### CLI
- Remove the CLI options from the `lsp-proxy`, as they were never meant
to be passed to that command. Contributed by
[@​ematipico](https://togithub.com/ematipico)
- Add option `--config-path` to `lsp-proxy` and `start` commands. It's
now possible to tell the Daemon server to load `biome.json` from a
custom path. Contributed by
[@​ematipico](https://togithub.com/ematipico)
- Add new `--diagnostic-level` option to let users control the level of
diagnostics printed by the CLI. Possible values are: `"info"`, `"warn"`,
`"hint"`. Contributed by
[@​simonxabris](https://togithub.com/simonxabris)
- Add option `--line-feed` to the `format` command. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev)
- Add option `--bracket-same-line` to the `format` command. Contributed
by [@​faultyserve](https://togithub.com/faultyserve)
- Add option `--bracket-spacing` to the `format` command. Contributed by
[@​faultyserve](https://togithub.com/faultyserve)
##### Bug fixes
- Fix the command `format`, now it returns a non-zero exit code when if
there pending diffs. Contributed by
[@​ematipico](https://togithub.com/ematipico)
##### Configuration
- Add option `formatter.lineFeed`. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev)
- Add option `javascript.formatter.bracketSameLine`. Contributed by
[@​faultyserve](https://togithub.com/faultyserve)
- Add option `javascript.formatter.bracketSpacing`. Contributed by
[@​faultyserve](https://togithub.com/faultyserve)
##### Formatter
##### New features
- Add a new option
[`--line-ending`](https://biomejs.dev/reference/configuration/#formatterlineending).
This option allows changing the type of line endings. Contributed by
[@​SuperchupuDev](https://togithub.com/SuperchupuDev)
- Added a new option called `--bracket-spacing` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#​627](https://togithub.com/biomejs/biome/issues/627).
Contributed by [@​faultyserver](https://togithub.com/faultyserver)
- Added a new option called `--bracket-same-line` to the formatter. This
option allows you to control whether spaces are inserted around the
brackets of object literals.
[#​627](https://togithub.com/biomejs/biome/issues/627).
Contributed by [@​faultyserver](https://togithub.com/faultyserver)
##### Bug fixes
- Fix [#​832](https://togithub.com/biomejs/biome/issues/832), the
formatter no longer keeps an unnecessary trailing comma in type
parameter lists. Contributed by
[@​Conaclos](https://togithub.com/Conaclos)
- Fix [#​301](https://togithub.com/biomejs/biome/issues/301), the
formatter should not break before the `in` keyword. Contributed by
[@​ematipico](https://togithub.com/ematipico)
##### Linter
##### Promoted rules
-
[a11y/noInteractiveElementToNoninteractiveRole](https://biomejs.dev/linter/rules/no-interactive-element-to-noninteractive-role)
-
[complexity/noThisInStatic](https://biomejs.dev/linter/rules/no-this-in-static)
-
[complexity/useArrowFunction](https://biomejs.dev/linter/rules/use-arrow-function)
-
[correctness/noEmptyCharacterClassInRegex](https://biomejs.dev/linter/rules/no-empty-character-class-in-regex)
-
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)
-
[style/noUselessElse](https://biomejs.dev/linter/rules/no-useless-else)
-
[style/useAsConstAssertion](https://biomejs.dev/linter/rules/use-as-const-assertion)
-
[style/useShorthandAssign](https://biomejs.dev/linter/rules/use-shorthand-assign)
-
[suspicious/noApproximativeNumericConstant](https://biomejs.dev/linter/rules/no-approximative-numeric-constant)
-
[suspicious/noMisleadingInstantiator](https://biomejs.dev/linter/rules/no-misleading-instantiator)
-
[suspicious/noMisrefactoredShorthandAssign](https://biomejs.dev/linter/rules/no-misrefactored-shorthand-assign)
The following rules are now recommended:
- [a11y/noAccessKey](https://biomejs.dev/linter/rules/no-access-key)
-
[a11y/useHeadingContent](https://biomejs.dev/linter/rules/use-heading-content)
-
[complexity/useSimpleNumberKeys](https://biomejs.dev/linter/use-simple-number-keys)
The following rules are now deprecated:
-
[correctness/noNewSymbol](https://biomejs.dev/linter/rules/no-new-symbol)
The rule is replaced by
[correctness/noInvalidNewBuiltin](https://biomejs.dev/linter/rules/no-invalid-new-builtin)
##### New features
- Add
[noDefaultExport](https://biomejs.dev/linter/rules/no-default-export)
which disallows `export default`. Contributed by
[@​Conaclos](https://togithub.com/Conaclos)
- Add
[noAriaHiddenOnFocusable](https://biomejs.dev/linter/rules/no-aria-hidden-on-focusable)
which reports hidden and focusable elements. Contributed by
[@​vasucp1207](https://togithub.com/vasucp1207)
- Add
[noImplicitAnyLet](https://biomejs.dev/linter/rules/no-implicit-any-let)
that reports variables declared with `let` and without initialization
and type annotation. Contributed by
[@​TaKO8Ki](https://togithub.com/TaKO8Ki) and
[@​b4s36t4](https://togithub.com/b4s36t4)
- Add [useAwait](https://biomejs.dev/linter/rules/use-await) that
reports `async` functions that don't use an `await` expression.
- Add
[useValidAriaRole](https://biomejs.dev/linter/rules/use-valid-aria-role).
Contributed by [@​vasucp1207](https://togithub.com/vasucp1207)
- Add [useRegexLiterals](https://biomejs.dev/linter/use-regex-literals)
that suggests turning call to the regex constructor into regex literals.
COntributed by [@​Yuiki](https://togithub.com/Yuiki)
##### Enhancements
- Add an unsafe code fix for
[a11y/useAriaActivedescendantWithTabindex](https://biomejs.dev/linter/rules/use-aria-activedescendant-with-tabindex)
##### Bug fixes
- Fix [#​639](https://togithub.com/biomejs/biome/issues/639) by
ignoring unused TypeScript's mapped key. Contributed by
[@​Conaclos](https://togithub.com/Conaclos)
- Fix [#​565](https://togithub.com/biomejs/biome/issues/565) by
handling several `infer` with the same name in extends clauses of
TypeScript's conditional types. Contributed by
[@​Conaclos](https://togithub.com/Conaclos)
- Fix [#​653](https://togithub.com/biomejs/biome/issues/653).
[noUnusedImports](https://biomejs.dev/linter/rules/no-unused-imports)
now correctly removes the entire line where the unused `import` is.
Contributed by [@​Conaclos](https://togithub.com/Conaclos)
- Fix [#​607](https://togithub.com/biomejs/biome/issues/609)
`useExhaustiveDependencies`, ignore optional chaining, Contributed by
[@​msdlisper](https://togithub.com/msdlisper)
- Fix [#​676](https://togithub.com/biomejs/biome/issues/676), by
using the correct node for the `"noreferrer"` when applying the code
action. Contributed by
[@​ematipico](https://togithub.com/ematipico)
- Fix [#​455](https://togithub.com/biomejs/biome/issues/455). The
CLI can now print complex emojis to the console correctly.
- Fix [#​727](https://togithub.com/biomejs/biome/issues/727).
[noInferrableTypes](https://biomejs.dev/linter/rules/no-inferrable-types)
now correctly keeps type annotations when the initialization expression
is `null`. Contributed by
[@​Conaclos](https://togithub.com/Conaclos)
- Fix [#​784](https://togithub.com/biomejs/biome/issues/784),
[noSvgWithoutTitle](https://biomejs.dev/linter/rules/no-svg-without-title)
fixes false-positives to `aria-label` and reports svg's role attribute
is implicit. Contributed by
[@​unvalley](https://togithub.com/unvalley)
- Fix [#​834](https://togithub.com/biomejs/biome/issues/834) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements)
reports block statements of switch clauses. Contributed by
[@​vasucp1207](https://togithub.com/vasucp1207)
- Fix [#​783](https://togithub.com/biomejs/biome/issues/834) that
made
[noUselessLoneBlockStatements](https://biomejs.dev/linter/rules/no-useless-lone-block-statements)
reports block statements of `try-catch` structures. Contributed by
[@​hougesen](https://togithub.com/hougesen)
- Fix [#​69](https://togithub.com/biomejs/biome/issues/69) that
made
[correctness/noUnnecessaryContinue](https://biomejs.dev/linter/rules/no-unnecessary-continue)
incorrectly reports a `continue` used to break a switch clause.
Contributed by [@​TaKO8Ki](https://togithub.com/TaKO8Ki)
- Fix [#​664](https://togithub.com/biomejs/biome/issues/664) by
improving the diagnostic of
[style/useNamingConvention](https://biomejs.dev/linter/use-naming-convention)
when double capital are detected in strict camel case mode. Contributed
by [@​vasucp1207](https://togithub.com/vasucp1207)
- Fix [#​643](https://togithub.com/biomejs/biome/issues/643) that
erroneously parsed the option of
[complexity/useExhaustiveDependencies](https://biomejs.dev/linter/use-naming-convention).
Contributed by [@​arendjr](https://togithub.com/arendjr)
##### Parser
##### Bug fixes
- Fix [#​846](https://togithub.com/biomejs/biome/issues/846) that
erroneously parsed `<const T,>() => {}` as a JSX tag instead of an arrow
function when both TypeScript and JSX are enabled.
##### VSCode
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40Ni4wIiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Christopher Kolstad <chriswk@getunleash.io>
This commit is contained in:
parent
06d5de76c0
commit
c7498dcac6
@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json",
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
@ -22,7 +22,8 @@
|
||||
"noNonNullAssertion": "off",
|
||||
"noInferrableTypes": "off",
|
||||
"noUnusedTemplateLiteral": "off",
|
||||
"useSingleVarDeclarator": "off"
|
||||
"useSingleVarDeclarator": "off",
|
||||
"noUselessElse": "off"
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "off",
|
||||
|
@ -30,7 +30,7 @@
|
||||
"gen:api:sandbox": "NODE_OPTIONS=\"${NODE_OPTIONS} --no-experimental-fetch\" UNLEASH_OPENAPI_URL=https://sandbox.getunleash.io/demo2/docs/openapi.json yarn run gen:api"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^1.3.3",
|
||||
"@biomejs/biome": "^1.4.0",
|
||||
"@codemirror/lang-json": "6.0.1",
|
||||
"@emotion/react": "11.11.1",
|
||||
"@emotion/styled": "11.11.0",
|
||||
|
@ -28,7 +28,7 @@ const Toast = ({ title, text, type, confetti }: IToast) => {
|
||||
const length = getRandomNumber(100);
|
||||
|
||||
const style = {
|
||||
position: 'absolute' as 'absolute',
|
||||
position: 'absolute' as const,
|
||||
width: `${width}px`,
|
||||
height: `${width * 0.4}px`,
|
||||
backgroundColor: confettiColors[getRandomNumber(2)],
|
||||
|
@ -211,7 +211,8 @@ export const DemoSteps = ({
|
||||
const currentStep = currentTopic.steps[step];
|
||||
if (!currentStep) return;
|
||||
|
||||
setTimeout(() => {
|
||||
setTimeout(
|
||||
() => {
|
||||
if (
|
||||
currentStep.href &&
|
||||
!location.pathname.endsWith(currentStep.href.split('?')[0])
|
||||
@ -219,7 +220,9 @@ export const DemoSteps = ({
|
||||
navigate(currentStep.href);
|
||||
}
|
||||
waitForLoad(currentStep);
|
||||
}, currentStep.delay ?? 0);
|
||||
},
|
||||
currentStep.delay ?? 0,
|
||||
);
|
||||
}, [topic, step]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -90,7 +90,7 @@ export const ManageBulkTagsDialog: VFC<IManageBulkTagsDialogProps> = ({
|
||||
onSubmit,
|
||||
}) => {
|
||||
const { tagTypes, loading: tagTypesLoading } = useTagTypes();
|
||||
const [tagType, setTagType] = useState<typeof tagTypes[0]>(emptyTagType);
|
||||
const [tagType, setTagType] = useState<(typeof tagTypes)[0]>(emptyTagType);
|
||||
const [selectedTags, setSelectedTags] = useState<TagOption[]>([]);
|
||||
const [indeterminateTags, setIndeterminateTags] = useState<TagOption[]>([]);
|
||||
const { tags, refetch: refetchTags } = useTags(tagType.name);
|
||||
|
@ -32,7 +32,7 @@ const generateFeature = (
|
||||
parameters: {},
|
||||
result: {
|
||||
enabled: false,
|
||||
evaluationStatus: 'complete' as 'complete',
|
||||
evaluationStatus: 'complete' as const,
|
||||
},
|
||||
constraints: [
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ export const PlaygroundEnvironmentDiffTable = ({
|
||||
})),
|
||||
[JSON.stringify(features)],
|
||||
);
|
||||
type RowType = typeof data[0];
|
||||
type RowType = (typeof data)[0];
|
||||
|
||||
const contextFieldsHeaders = Object.keys(firstContext).map(
|
||||
(contextField) => ({
|
||||
|
@ -4,4 +4,4 @@ export const splashIds = ['operators'] as const;
|
||||
// Active splash IDs that may be shown to the user.
|
||||
export const activeSplashIds: SplashId[] = [];
|
||||
|
||||
export type SplashId = typeof splashIds[number];
|
||||
export type SplashId = (typeof splashIds)[number];
|
||||
|
@ -1,5 +1,5 @@
|
||||
export const AccountTypes = ['User', 'Service Account'] as const;
|
||||
type AccountType = typeof AccountTypes[number];
|
||||
type AccountType = (typeof AccountTypes)[number];
|
||||
|
||||
export interface IUser {
|
||||
id: number;
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See `gen:api` script in package.json
|
||||
*/
|
||||
|
||||
export type _ExportFormat = typeof _ExportFormat[keyof typeof _ExportFormat];
|
||||
export type _ExportFormat = (typeof _ExportFormat)[keyof typeof _ExportFormat];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const _ExportFormat = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of alert. This determines the color of the alert.
|
||||
*/
|
||||
export type AddonTypeSchemaAlertsItemType =
|
||||
typeof AddonTypeSchemaAlertsItemType[keyof typeof AddonTypeSchemaAlertsItemType];
|
||||
(typeof AddonTypeSchemaAlertsItemType)[keyof typeof AddonTypeSchemaAlertsItemType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const AddonTypeSchemaAlertsItemType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The api version of this response. A natural increasing number. Only increases if format changes
|
||||
*/
|
||||
export type AdminPermissionsSchemaVersion =
|
||||
typeof AdminPermissionsSchemaVersion[keyof typeof AdminPermissionsSchemaVersion];
|
||||
(typeof AdminPermissionsSchemaVersion)[keyof typeof AdminPermissionsSchemaVersion];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const AdminPermissionsSchemaVersion = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of API token
|
||||
*/
|
||||
export type ApiTokenSchemaType =
|
||||
typeof ApiTokenSchemaType[keyof typeof ApiTokenSchemaType];
|
||||
(typeof ApiTokenSchemaType)[keyof typeof ApiTokenSchemaType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ApiTokenSchemaType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfEightAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfEightAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfEightAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfEightAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfEightAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfEightAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfFourAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfFourAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfFourAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfFourAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfFourAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfFourAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfOneeightAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfOneeightAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOneeightAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfOneeightAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOneeightAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfOneeightAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfOneoneAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfOneoneAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOneoneAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfOneoneAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOneoneAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfOneoneAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfOnesixAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfOnesixAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOnesixAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfOnesixAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOnesixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfOnesixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfOnethreeAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfOnethreeAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOnethreeAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfOnethreeAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfOnethreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfOnethreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfSixAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfSixAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfSixAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfSixAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfSixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfSixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateFeatureSchemaOneOfTwozeroAction =
|
||||
typeof ChangeRequestCreateFeatureSchemaOneOfTwozeroAction[keyof typeof ChangeRequestCreateFeatureSchemaOneOfTwozeroAction];
|
||||
(typeof ChangeRequestCreateFeatureSchemaOneOfTwozeroAction)[keyof typeof ChangeRequestCreateFeatureSchemaOneOfTwozeroAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateFeatureSchemaOneOfTwozeroAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfAction[keyof typeof ChangeRequestCreateSchemaOneOfAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfAction)[keyof typeof ChangeRequestCreateSchemaOneOfAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfNineAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfNineAction[keyof typeof ChangeRequestCreateSchemaOneOfNineAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfNineAction)[keyof typeof ChangeRequestCreateSchemaOneOfNineAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfNineAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfOneeightAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfOneeightAction[keyof typeof ChangeRequestCreateSchemaOneOfOneeightAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfOneeightAction)[keyof typeof ChangeRequestCreateSchemaOneOfOneeightAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfOneeightAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfOneoneAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfOneoneAction[keyof typeof ChangeRequestCreateSchemaOneOfOneoneAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfOneoneAction)[keyof typeof ChangeRequestCreateSchemaOneOfOneoneAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfOneoneAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfOnesixAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfOnesixAction[keyof typeof ChangeRequestCreateSchemaOneOfOnesixAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfOnesixAction)[keyof typeof ChangeRequestCreateSchemaOneOfOnesixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfOnesixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfOnethreeAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfOnethreeAction[keyof typeof ChangeRequestCreateSchemaOneOfOnethreeAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfOnethreeAction)[keyof typeof ChangeRequestCreateSchemaOneOfOnethreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfOnethreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfSixAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfSixAction[keyof typeof ChangeRequestCreateSchemaOneOfSixAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfSixAction)[keyof typeof ChangeRequestCreateSchemaOneOfSixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfSixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfThreeAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfThreeAction[keyof typeof ChangeRequestCreateSchemaOneOfThreeAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfThreeAction)[keyof typeof ChangeRequestCreateSchemaOneOfThreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfThreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfTwofiveAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfTwofiveAction[keyof typeof ChangeRequestCreateSchemaOneOfTwofiveAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfTwofiveAction)[keyof typeof ChangeRequestCreateSchemaOneOfTwofiveAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfTwofiveAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfTwooneAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfTwooneAction[keyof typeof ChangeRequestCreateSchemaOneOfTwooneAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfTwooneAction)[keyof typeof ChangeRequestCreateSchemaOneOfTwooneAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfTwooneAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSchemaOneOfTwothreeAction =
|
||||
typeof ChangeRequestCreateSchemaOneOfTwothreeAction[keyof typeof ChangeRequestCreateSchemaOneOfTwothreeAction];
|
||||
(typeof ChangeRequestCreateSchemaOneOfTwothreeAction)[keyof typeof ChangeRequestCreateSchemaOneOfTwothreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSchemaOneOfTwothreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSegmentSchemaOneOfAction =
|
||||
typeof ChangeRequestCreateSegmentSchemaOneOfAction[keyof typeof ChangeRequestCreateSegmentSchemaOneOfAction];
|
||||
(typeof ChangeRequestCreateSegmentSchemaOneOfAction)[keyof typeof ChangeRequestCreateSegmentSchemaOneOfAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSegmentSchemaOneOfAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestCreateSegmentSchemaOneOfThreeAction =
|
||||
typeof ChangeRequestCreateSegmentSchemaOneOfThreeAction[keyof typeof ChangeRequestCreateSegmentSchemaOneOfThreeAction];
|
||||
(typeof ChangeRequestCreateSegmentSchemaOneOfThreeAction)[keyof typeof ChangeRequestCreateSegmentSchemaOneOfThreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestCreateSegmentSchemaOneOfThreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfNineAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfNineAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfNineAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfOneeightAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfOneoneAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfOnesixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfOnethreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfSixAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfSixAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfSixAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfThreeAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfThreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfThreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfTwofiveAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfTwooneAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The name of this action.
|
||||
*/
|
||||
export type ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction =
|
||||
typeof ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction];
|
||||
(typeof ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction)[keyof typeof ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestOneOrManyCreateSchemaOneOfTwothreeAction = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The status of the schedule.
|
||||
*/
|
||||
export type ChangeRequestScheduleSchemaStatus =
|
||||
typeof ChangeRequestScheduleSchemaStatus[keyof typeof ChangeRequestScheduleSchemaStatus];
|
||||
(typeof ChangeRequestScheduleSchemaStatus)[keyof typeof ChangeRequestScheduleSchemaStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestScheduleSchemaStatus = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The current state of the change request.
|
||||
*/
|
||||
export type ChangeRequestSchemaOneOfFourState =
|
||||
typeof ChangeRequestSchemaOneOfFourState[keyof typeof ChangeRequestSchemaOneOfFourState];
|
||||
(typeof ChangeRequestSchemaOneOfFourState)[keyof typeof ChangeRequestSchemaOneOfFourState];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestSchemaOneOfFourState = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The current state of the change request.
|
||||
*/
|
||||
export type ChangeRequestSchemaOneOfState =
|
||||
typeof ChangeRequestSchemaOneOfState[keyof typeof ChangeRequestSchemaOneOfState];
|
||||
(typeof ChangeRequestSchemaOneOfState)[keyof typeof ChangeRequestSchemaOneOfState];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestSchemaOneOfState = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The new desired state for the change request
|
||||
*/
|
||||
export type ChangeRequestStateSchemaOneOfState =
|
||||
typeof ChangeRequestStateSchemaOneOfState[keyof typeof ChangeRequestStateSchemaOneOfState];
|
||||
(typeof ChangeRequestStateSchemaOneOfState)[keyof typeof ChangeRequestStateSchemaOneOfState];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestStateSchemaOneOfState = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The new desired state for the change request
|
||||
*/
|
||||
export type ChangeRequestStateSchemaOneOfThreeState =
|
||||
typeof ChangeRequestStateSchemaOneOfThreeState[keyof typeof ChangeRequestStateSchemaOneOfThreeState];
|
||||
(typeof ChangeRequestStateSchemaOneOfThreeState)[keyof typeof ChangeRequestStateSchemaOneOfThreeState];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ChangeRequestStateSchemaOneOfThreeState = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators).
|
||||
*/
|
||||
export type ConstraintSchemaOperator =
|
||||
typeof ConstraintSchemaOperator[keyof typeof ConstraintSchemaOperator];
|
||||
(typeof ConstraintSchemaOperator)[keyof typeof ConstraintSchemaOperator];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ConstraintSchemaOperator = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* A mode of the project affecting what actions are possible in this project
|
||||
*/
|
||||
export type CreateProjectSchemaMode =
|
||||
typeof CreateProjectSchemaMode[keyof typeof CreateProjectSchemaMode];
|
||||
(typeof CreateProjectSchemaMode)[keyof typeof CreateProjectSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateProjectSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* [Custom project roles](https://docs.getunleash.io/reference/rbac#custom-project-roles) contain a specific set of permissions for project resources.
|
||||
*/
|
||||
export type CreateRoleWithPermissionsSchemaAnyOfFourType =
|
||||
typeof CreateRoleWithPermissionsSchemaAnyOfFourType[keyof typeof CreateRoleWithPermissionsSchemaAnyOfFourType];
|
||||
(typeof CreateRoleWithPermissionsSchemaAnyOfFourType)[keyof typeof CreateRoleWithPermissionsSchemaAnyOfFourType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateRoleWithPermissionsSchemaAnyOfFourType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* [Custom root roles](https://docs.getunleash.io/reference/rbac#custom-root-roles) (type=root-custom) are root roles with a custom set of permissions. [Custom project roles](https://docs.getunleash.io/reference/rbac#custom-project-roles) (type=custom) contain a specific set of permissions for project resources.
|
||||
*/
|
||||
export type CreateRoleWithPermissionsSchemaAnyOfType =
|
||||
typeof CreateRoleWithPermissionsSchemaAnyOfType[keyof typeof CreateRoleWithPermissionsSchemaAnyOfType];
|
||||
(typeof CreateRoleWithPermissionsSchemaAnyOfType)[keyof typeof CreateRoleWithPermissionsSchemaAnyOfType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateRoleWithPermissionsSchemaAnyOfType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types)
|
||||
*/
|
||||
export type CreateStrategySchemaParametersItemType =
|
||||
typeof CreateStrategySchemaParametersItemType[keyof typeof CreateStrategySchemaParametersItemType];
|
||||
(typeof CreateStrategySchemaParametersItemType)[keyof typeof CreateStrategySchemaParametersItemType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateStrategySchemaParametersItemType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of the value. Commonly used types are string, number, json and csv.
|
||||
*/
|
||||
export type CreateStrategyVariantSchemaPayloadType =
|
||||
typeof CreateStrategyVariantSchemaPayloadType[keyof typeof CreateStrategyVariantSchemaPayloadType];
|
||||
(typeof CreateStrategyVariantSchemaPayloadType)[keyof typeof CreateStrategyVariantSchemaPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateStrategyVariantSchemaPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).
|
||||
*/
|
||||
export type CreateStrategyVariantSchemaWeightType =
|
||||
typeof CreateStrategyVariantSchemaWeightType[keyof typeof CreateStrategyVariantSchemaWeightType];
|
||||
(typeof CreateStrategyVariantSchemaWeightType)[keyof typeof CreateStrategyVariantSchemaWeightType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const CreateStrategyVariantSchemaWeightType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The [API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys#api-tokens)'s **type**. Unleash supports three different types of API tokens ([ADMIN](https://docs.getunleash.io/reference/api-tokens-and-client-keys#admin-tokens), [CLIENT](https://docs.getunleash.io/reference/api-tokens-and-client-keys#client-tokens), [FRONTEND](https://docs.getunleash.io/reference/api-tokens-and-client-keys#front-end-tokens)). They all have varying access, so when validating a token it's important to know what kind you're dealing with
|
||||
*/
|
||||
export type EdgeTokenSchemaType =
|
||||
typeof EdgeTokenSchemaType[keyof typeof EdgeTokenSchemaType];
|
||||
(typeof EdgeTokenSchemaType)[keyof typeof EdgeTokenSchemaType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const EdgeTokenSchemaType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* What [type](https://docs.getunleash.io/reference/api/legacy/unleash/admin/events#event-type-description) of event this is
|
||||
*/
|
||||
export type EventSchemaType =
|
||||
typeof EventSchemaType[keyof typeof EventSchemaType];
|
||||
(typeof EventSchemaType)[keyof typeof EventSchemaType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const EventSchemaType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The api version of this response. A natural increasing number. Only increases if format changes
|
||||
*/
|
||||
export type EventsSchemaVersion =
|
||||
typeof EventsSchemaVersion[keyof typeof EventsSchemaVersion];
|
||||
(typeof EventsSchemaVersion)[keyof typeof EventsSchemaVersion];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const EventsSchemaVersion = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* An API versioning number
|
||||
*/
|
||||
export type FeatureEventsSchemaVersion =
|
||||
typeof FeatureEventsSchemaVersion[keyof typeof FeatureEventsSchemaVersion];
|
||||
(typeof FeatureEventsSchemaVersion)[keyof typeof FeatureEventsSchemaVersion];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const FeatureEventsSchemaVersion = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The schema version used to describe the feature toggle types listed in the `types` property.
|
||||
*/
|
||||
export type FeatureTypesSchemaVersion =
|
||||
typeof FeatureTypesSchemaVersion[keyof typeof FeatureTypesSchemaVersion];
|
||||
(typeof FeatureTypesSchemaVersion)[keyof typeof FeatureTypesSchemaVersion];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const FeatureTypesSchemaVersion = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The state this Unleash instance is in. GOOD if everything is ok, BAD if the instance should be restarted
|
||||
*/
|
||||
export type HealthCheckSchemaHealth =
|
||||
typeof HealthCheckSchemaHealth[keyof typeof HealthCheckSchemaHealth];
|
||||
(typeof HealthCheckSchemaHealth)[keyof typeof HealthCheckSchemaHealth];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const HealthCheckSchemaHealth = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.
|
||||
*/
|
||||
export type HealthOverviewSchemaMode =
|
||||
typeof HealthOverviewSchemaMode[keyof typeof HealthOverviewSchemaMode];
|
||||
(typeof HealthOverviewSchemaMode)[keyof typeof HealthOverviewSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const HealthOverviewSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.
|
||||
*/
|
||||
export type HealthReportSchemaMode =
|
||||
typeof HealthReportSchemaMode[keyof typeof HealthReportSchemaMode];
|
||||
(typeof HealthReportSchemaMode)[keyof typeof HealthReportSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const HealthReportSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* A description of a time range
|
||||
*/
|
||||
export type InstanceAdminStatsSchemaClientAppsItemRange =
|
||||
typeof InstanceAdminStatsSchemaClientAppsItemRange[keyof typeof InstanceAdminStatsSchemaClientAppsItemRange];
|
||||
(typeof InstanceAdminStatsSchemaClientAppsItemRange)[keyof typeof InstanceAdminStatsSchemaClientAppsItemRange];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const InstanceAdminStatsSchemaClientAppsItemRange = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of the notification used e.g. for the graphical hints
|
||||
*/
|
||||
export type NotificationsSchemaItemNotificationType =
|
||||
typeof NotificationsSchemaItemNotificationType[keyof typeof NotificationsSchemaItemNotificationType];
|
||||
(typeof NotificationsSchemaItemNotificationType)[keyof typeof NotificationsSchemaItemNotificationType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const NotificationsSchemaItemNotificationType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* [Default role](https://docs.getunleash.io/reference/rbac#standard-roles) granted to users auto-created from email. Only relevant if autoCreate is `true`
|
||||
*/
|
||||
export type OidcSettingsSchemaDefaultRootRole =
|
||||
typeof OidcSettingsSchemaDefaultRootRole[keyof typeof OidcSettingsSchemaDefaultRootRole];
|
||||
(typeof OidcSettingsSchemaDefaultRootRole)[keyof typeof OidcSettingsSchemaDefaultRootRole];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const OidcSettingsSchemaDefaultRootRole = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The signing algorithm used to sign our token. Refer to the [JWT signatures](https://jwt.io/introduction) documentation for more information.
|
||||
*/
|
||||
export type OidcSettingsSchemaIdTokenSigningAlgorithm =
|
||||
typeof OidcSettingsSchemaIdTokenSigningAlgorithm[keyof typeof OidcSettingsSchemaIdTokenSigningAlgorithm];
|
||||
(typeof OidcSettingsSchemaIdTokenSigningAlgorithm)[keyof typeof OidcSettingsSchemaIdTokenSigningAlgorithm];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const OidcSettingsSchemaIdTokenSigningAlgorithm = {
|
||||
|
@ -7,7 +7,7 @@
|
||||
/**
|
||||
* The kind of operation to perform
|
||||
*/
|
||||
export type PatchSchemaOp = typeof PatchSchemaOp[keyof typeof PatchSchemaOp];
|
||||
export type PatchSchemaOp = (typeof PatchSchemaOp)[keyof typeof PatchSchemaOp];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PatchSchemaOp = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The operator to use when evaluating this constraint. For more information about the various operators, refer to [the strategy constraint operator documentation](https://docs.getunleash.io/reference/strategy-constraints#strategy-constraint-operators).
|
||||
*/
|
||||
export type PlaygroundConstraintSchemaOperator =
|
||||
typeof PlaygroundConstraintSchemaOperator[keyof typeof PlaygroundConstraintSchemaOperator];
|
||||
(typeof PlaygroundConstraintSchemaOperator)[keyof typeof PlaygroundConstraintSchemaOperator];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaygroundConstraintSchemaOperator = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Signals that this strategy could not be evaluated. This is most likely because you're using a custom strategy that Unleash doesn't know about. The `unevaluated` result is also returned if the strategy is disabled.
|
||||
*/
|
||||
export type PlaygroundStrategySchemaResultAnyOfEvaluationStatus =
|
||||
typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus[keyof typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus];
|
||||
(typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus)[keyof typeof PlaygroundStrategySchemaResultAnyOfEvaluationStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaygroundStrategySchemaResultAnyOfEvaluationStatus = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Signals that this strategy was evaluated successfully.
|
||||
*/
|
||||
export type PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus =
|
||||
typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus[keyof typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus];
|
||||
(typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus)[keyof typeof PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaygroundStrategySchemaResultAnyOfFourEvaluationStatus = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The format of the payload.
|
||||
*/
|
||||
export type PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType =
|
||||
typeof PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType[keyof typeof PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType];
|
||||
(typeof PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType)[keyof typeof PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaygroundStrategySchemaResultAnyOfFourVariantPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* A mode of the project affecting what actions are possible in this project
|
||||
*/
|
||||
export type ProjectCreatedSchemaMode =
|
||||
typeof ProjectCreatedSchemaMode[keyof typeof ProjectCreatedSchemaMode];
|
||||
(typeof ProjectCreatedSchemaMode)[keyof typeof ProjectCreatedSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProjectCreatedSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.
|
||||
*/
|
||||
export type ProjectOverviewSchemaMode =
|
||||
typeof ProjectOverviewSchemaMode[keyof typeof ProjectOverviewSchemaMode];
|
||||
(typeof ProjectOverviewSchemaMode)[keyof typeof ProjectOverviewSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProjectOverviewSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.
|
||||
*/
|
||||
export type ProjectSchemaMode =
|
||||
typeof ProjectSchemaMode[keyof typeof ProjectSchemaMode];
|
||||
(typeof ProjectSchemaMode)[keyof typeof ProjectSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProjectSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The [default stickiness for this project](https://docs.getunleash.io/reference/stickiness#project-default-stickiness)
|
||||
*/
|
||||
export type ProjectSettingsSchemaDefaultStickiness =
|
||||
typeof ProjectSettingsSchemaDefaultStickiness[keyof typeof ProjectSettingsSchemaDefaultStickiness];
|
||||
(typeof ProjectSettingsSchemaDefaultStickiness)[keyof typeof ProjectSettingsSchemaDefaultStickiness];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProjectSettingsSchemaDefaultStickiness = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode).
|
||||
*/
|
||||
export type ProjectSettingsSchemaMode =
|
||||
typeof ProjectSettingsSchemaMode[keyof typeof ProjectSettingsSchemaMode];
|
||||
(typeof ProjectSettingsSchemaMode)[keyof typeof ProjectSettingsSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProjectSettingsSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The format of the payload.
|
||||
*/
|
||||
export type ProxyFeatureSchemaVariantPayloadType =
|
||||
typeof ProxyFeatureSchemaVariantPayloadType[keyof typeof ProxyFeatureSchemaVariantPayloadType];
|
||||
(typeof ProxyFeatureSchemaVariantPayloadType)[keyof typeof ProxyFeatureSchemaVariantPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ProxyFeatureSchemaVariantPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Prometheus compatible result type.
|
||||
*/
|
||||
export type RequestsPerSecondSchemaDataResultType =
|
||||
typeof RequestsPerSecondSchemaDataResultType[keyof typeof RequestsPerSecondSchemaDataResultType];
|
||||
(typeof RequestsPerSecondSchemaDataResultType)[keyof typeof RequestsPerSecondSchemaDataResultType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const RequestsPerSecondSchemaDataResultType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Whether the query against prometheus succeeded or failed
|
||||
*/
|
||||
export type RequestsPerSecondSchemaStatus =
|
||||
typeof RequestsPerSecondSchemaStatus[keyof typeof RequestsPerSecondSchemaStatus];
|
||||
(typeof RequestsPerSecondSchemaStatus)[keyof typeof RequestsPerSecondSchemaStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const RequestsPerSecondSchemaStatus = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Assign this root role to auto created users
|
||||
*/
|
||||
export type SamlSettingsSchemaDefaultRootRole =
|
||||
typeof SamlSettingsSchemaDefaultRootRole[keyof typeof SamlSettingsSchemaDefaultRootRole];
|
||||
(typeof SamlSettingsSchemaDefaultRootRole)[keyof typeof SamlSettingsSchemaDefaultRootRole];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const SamlSettingsSchemaDefaultRootRole = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Find events by event type (case-sensitive).
|
||||
*/
|
||||
export type SearchEventsSchemaType =
|
||||
typeof SearchEventsSchemaType[keyof typeof SearchEventsSchemaType];
|
||||
(typeof SearchEventsSchemaType)[keyof typeof SearchEventsSchemaType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const SearchEventsSchemaType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Version of the strategies schema
|
||||
*/
|
||||
export type StrategiesSchemaVersion =
|
||||
typeof StrategiesSchemaVersion[keyof typeof StrategiesSchemaVersion];
|
||||
(typeof StrategiesSchemaVersion)[keyof typeof StrategiesSchemaVersion];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const StrategiesSchemaVersion = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of the value. Commonly used types are string, number, json and csv.
|
||||
*/
|
||||
export type StrategyVariantSchemaPayloadType =
|
||||
typeof StrategyVariantSchemaPayloadType[keyof typeof StrategyVariantSchemaPayloadType];
|
||||
(typeof StrategyVariantSchemaPayloadType)[keyof typeof StrategyVariantSchemaPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const StrategyVariantSchemaPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Set to `fix` if this variant must have exactly the weight allocated to it. If the type is `variable`, the weight will adjust so that the total weight of all variants adds up to 1000. Refer to the [variant weight documentation](https://docs.getunleash.io/reference/feature-toggle-variants#variant-weight).
|
||||
*/
|
||||
export type StrategyVariantSchemaWeightType =
|
||||
typeof StrategyVariantSchemaWeightType[keyof typeof StrategyVariantSchemaWeightType];
|
||||
(typeof StrategyVariantSchemaWeightType)[keyof typeof StrategyVariantSchemaWeightType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const StrategyVariantSchemaWeightType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of authentication enabled for this Unleash instance
|
||||
*/
|
||||
export type UiConfigSchemaAuthenticationType =
|
||||
typeof UiConfigSchemaAuthenticationType[keyof typeof UiConfigSchemaAuthenticationType];
|
||||
(typeof UiConfigSchemaAuthenticationType)[keyof typeof UiConfigSchemaAuthenticationType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UiConfigSchemaAuthenticationType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* A mode of the project affecting what actions are possible in this project
|
||||
*/
|
||||
export type UpdateProjectEnterpriseSettingsSchemaMode =
|
||||
typeof UpdateProjectEnterpriseSettingsSchemaMode[keyof typeof UpdateProjectEnterpriseSettingsSchemaMode];
|
||||
(typeof UpdateProjectEnterpriseSettingsSchemaMode)[keyof typeof UpdateProjectEnterpriseSettingsSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UpdateProjectEnterpriseSettingsSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* A mode of the project affecting what actions are possible in this project
|
||||
*/
|
||||
export type UpdateProjectSchemaMode =
|
||||
typeof UpdateProjectSchemaMode[keyof typeof UpdateProjectSchemaMode];
|
||||
(typeof UpdateProjectSchemaMode)[keyof typeof UpdateProjectSchemaMode];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UpdateProjectSchemaMode = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The [type of the parameter](https://docs.getunleash.io/reference/custom-activation-strategies#parameter-types)
|
||||
*/
|
||||
export type UpdateStrategySchemaParametersItemType =
|
||||
typeof UpdateStrategySchemaParametersItemType[keyof typeof UpdateStrategySchemaParametersItemType];
|
||||
(typeof UpdateStrategySchemaParametersItemType)[keyof typeof UpdateStrategySchemaParametersItemType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const UpdateStrategySchemaParametersItemType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of data contained.
|
||||
*/
|
||||
export type VariantFlagSchemaPayloadType =
|
||||
typeof VariantFlagSchemaPayloadType[keyof typeof VariantFlagSchemaPayloadType];
|
||||
(typeof VariantFlagSchemaPayloadType)[keyof typeof VariantFlagSchemaPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const VariantFlagSchemaPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* The type of the value. Commonly used types are string, number, json and csv.
|
||||
*/
|
||||
export type VariantSchemaPayloadType =
|
||||
typeof VariantSchemaPayloadType[keyof typeof VariantSchemaPayloadType];
|
||||
(typeof VariantSchemaPayloadType)[keyof typeof VariantSchemaPayloadType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const VariantSchemaPayloadType = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
* Set to fix if this variant must have exactly the weight allocated to it. If the type is variable, the weight will adjust so that the total weight of all variants adds up to 1000
|
||||
*/
|
||||
export type VariantSchemaWeightType =
|
||||
typeof VariantSchemaWeightType[keyof typeof VariantSchemaWeightType];
|
||||
(typeof VariantSchemaWeightType)[keyof typeof VariantSchemaWeightType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const VariantSchemaWeightType = {
|
||||
|
@ -489,47 +489,47 @@
|
||||
"@babel/helper-validator-identifier" "^7.22.20"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@biomejs/biome@^1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.3.3.tgz#aeec38fcc5fe2f9ec299c4f66512cc7bd0044ee8"
|
||||
integrity sha512-vTJn7RBzLWIabUuUIoEopO860YyBrbPEu4Pztfd28jRU5QD074hKZ9IQs24pFO6A2R296gaeYmN62f4u7pUruQ==
|
||||
"@biomejs/biome@^1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.4.0.tgz#b512e1e7a4f3ec0bc0aceaa99fab8eded2bd95c9"
|
||||
integrity sha512-/rDlao6ra38nhxo4IYCqWCzfTJcpMk4YHjSVBI9yN/ifdhnzSwirL25xDVH7G9hZdNhpF9g78FaPJhFa9DX0Cw==
|
||||
optionalDependencies:
|
||||
"@biomejs/cli-darwin-arm64" "1.3.3"
|
||||
"@biomejs/cli-darwin-x64" "1.3.3"
|
||||
"@biomejs/cli-linux-arm64" "1.3.3"
|
||||
"@biomejs/cli-linux-x64" "1.3.3"
|
||||
"@biomejs/cli-win32-arm64" "1.3.3"
|
||||
"@biomejs/cli-win32-x64" "1.3.3"
|
||||
"@biomejs/cli-darwin-arm64" "1.4.0"
|
||||
"@biomejs/cli-darwin-x64" "1.4.0"
|
||||
"@biomejs/cli-linux-arm64" "1.4.0"
|
||||
"@biomejs/cli-linux-x64" "1.4.0"
|
||||
"@biomejs/cli-win32-arm64" "1.4.0"
|
||||
"@biomejs/cli-win32-x64" "1.4.0"
|
||||
|
||||
"@biomejs/cli-darwin-arm64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.3.3.tgz#2efd927d5eef7ce6c874cbda7c05243f689f2d8e"
|
||||
integrity sha512-2X87ZfbmWwe4NGukrUvnoYdI//muSgjNUCAHJ2DO+kS1sB7kDy1s6PN/IYyTJuqRcJtDuOnSpaUDE7KxR1YhtA==
|
||||
"@biomejs/cli-darwin-arm64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.4.0.tgz#08e9e19ae72fd980be65307844a71cd7ba96f4f2"
|
||||
integrity sha512-nBrtVRwr4IlTtxLOHwBwLv1sWvggf9/DnT5/ALIANJZOpoING6u8jHWipods69wK8kGa8Ld7iwHm3W5BrJJFFQ==
|
||||
|
||||
"@biomejs/cli-darwin-x64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.3.3.tgz#abf6b08aac01503a56a85e12cf21057cf1edfe2a"
|
||||
integrity sha512-t+7DWTCbSgHOBcPsGKuwS1qh1z9zbXFK8i8ktE18yW7iF/W0zI62k44fYqYeFJKlb0Q08aqUvez3L+AQJFsn+w==
|
||||
"@biomejs/cli-darwin-x64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.4.0.tgz#ae04f06a4446fa718dfeba863af6250a0b4185e6"
|
||||
integrity sha512-nny0VgOj3ksUGzU5GblgtQEvrAZFgFe1IJBoYOP978OQdDrg7BpS+GX5udfof87Dl4ZlHPRBU951ceHOxF7BTg==
|
||||
|
||||
"@biomejs/cli-linux-arm64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.3.3.tgz#e76b00a50707c4c530306c7a6cdbdc3d32c2d86d"
|
||||
integrity sha512-D8CvXaB8lkXXBQ6B3n0MXSSZFiE60+aNHorBLimVTtKiMod8QvAP425oQFZFul5wMXZqPLGTKFjXbAi/rvnc1A==
|
||||
"@biomejs/cli-linux-arm64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.4.0.tgz#40fbd94cff2c8437d18136d25801ead441ac6739"
|
||||
integrity sha512-gyLkT/Yh9xfW1T9yjQs/2txkCeG0e+LRs0adLugMwN0ptcNTRyusBvUoiHnpB+9rS6hWu9ZCedGMNmKQ8v2GSw==
|
||||
|
||||
"@biomejs/cli-linux-x64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.3.3.tgz#fd3e4ed41a42805ec289956b32eaec7b6a10aa2f"
|
||||
integrity sha512-bqB05fwJnRZwRlcm/BS/s4qPickqiXZkiU/nOYvHApfsPeqgSHgv5HWoBYuSUjgqBbX3XZJArsC5dCcVW7vAJw==
|
||||
"@biomejs/cli-linux-x64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.4.0.tgz#813d191b020a90aa829a5fc37dfeea393696a0f1"
|
||||
integrity sha512-LIxTuU2zSbIHM9XDYjQphJ5UU8h2eS7yR8uIvGYSba7Qt9AKqfbenyVJTsVnoj1CXxxgKNVSc/wVmlOlGz5DBQ==
|
||||
|
||||
"@biomejs/cli-win32-arm64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.3.3.tgz#d6f21a838ffc24d10193e70e5feb42c98fbb62fe"
|
||||
integrity sha512-muFOjAv1ONMfaJDlo4Ds+Qb9lkdSLM2XaxOe3AJPejSq3Vi0aRr51ZnE02BofMnL2sVsOA9cO54wibsuTcopbw==
|
||||
"@biomejs/cli-win32-arm64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.4.0.tgz#a6edb984d48d9a9db5971e13c3047ab19fd592c2"
|
||||
integrity sha512-U2jT1/0wZLJIRqnU8qHAfi/A/+yUwlL3sYJgqs+wO0BbR22WGQZlj03u5FdpEoyLXdsLv1pbeIcjNp+V0NYXWA==
|
||||
|
||||
"@biomejs/cli-win32-x64@1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.3.3.tgz#0186fba137dc4c4d12680d93ab7e3d6bd3e8f57c"
|
||||
integrity sha512-PMkMhS4smmmTMflxuZUx3REFSazEL9xsGscvZO1dKWI4ET23la+KxEM4TlSpjOyO66UerqSkuUlZecn0QhD63A==
|
||||
"@biomejs/cli-win32-x64@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.4.0.tgz#0bb1292c5e279198912b6ec35649124ba8349b72"
|
||||
integrity sha512-gN6DgyyBxIwoCovAUFJHFWVallb0cLosayDRtNyxU3MDv/atZxSXOWQezfVKBIbgmFPxYWJObd+awvbPYXwwww==
|
||||
|
||||
"@braintree/sanitize-url@^6.0.0":
|
||||
version "6.0.2"
|
||||
|
@ -151,7 +151,7 @@
|
||||
"devDependencies": {
|
||||
"@apidevtools/swagger-parser": "10.1.0",
|
||||
"@babel/core": "7.23.3",
|
||||
"@biomejs/biome": "1.3.3",
|
||||
"@biomejs/biome": "1.4.0",
|
||||
"@swc/core": "1.3.99",
|
||||
"@swc/jest": "0.2.29",
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
|
@ -92,10 +92,13 @@ export class AccessStore implements IAccessStore {
|
||||
.from(T.PERMISSIONS)
|
||||
.whereIn('id', permissionIds);
|
||||
|
||||
const rowByPermissionId = rows.reduce((acc, row) => {
|
||||
const rowByPermissionId = rows.reduce(
|
||||
(acc, row) => {
|
||||
acc[row.id] = row;
|
||||
return acc;
|
||||
}, {} as Map<string, IPermissionRow>);
|
||||
},
|
||||
{} as Map<string, IPermissionRow>,
|
||||
);
|
||||
|
||||
const permissionsWithNames = permissions.map((permission) => ({
|
||||
name: rowByPermissionId[permission.id].permission,
|
||||
|
@ -33,7 +33,7 @@ export const UnleashApiErrorTypes = [
|
||||
'InternalError',
|
||||
] as const;
|
||||
|
||||
export type UnleashApiErrorName = typeof UnleashApiErrorTypes[number];
|
||||
export type UnleashApiErrorName = (typeof UnleashApiErrorTypes)[number];
|
||||
|
||||
export abstract class UnleashError extends Error {
|
||||
id: string;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Knex } from "knex";
|
||||
import FeatureToggleStore from "../feature-toggle-store";
|
||||
import { Knex } from 'knex';
|
||||
import FeatureToggleStore from '../feature-toggle-store';
|
||||
|
||||
export class FeatureToggleListBuilder {
|
||||
private db: Knex;
|
||||
@ -15,23 +15,26 @@ export class FeatureToggleListBuilder {
|
||||
|
||||
getSelectColumns = () => {
|
||||
return this.selectColumns;
|
||||
}
|
||||
};
|
||||
|
||||
query = (table: string) => {
|
||||
this.internalQuery = this.db(table);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
addSelectColumn = (column: string | Knex.Raw<any>) => {
|
||||
this.selectColumns.push(column);
|
||||
}
|
||||
};
|
||||
|
||||
withArchived = (includeArchived: boolean) => {
|
||||
this.internalQuery.modify(FeatureToggleStore.filterByArchived, includeArchived)
|
||||
this.internalQuery.modify(
|
||||
FeatureToggleStore.filterByArchived,
|
||||
includeArchived,
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withStrategies = (filter: string) => {
|
||||
this.internalQuery.leftJoin(
|
||||
@ -41,10 +44,10 @@ export class FeatureToggleListBuilder {
|
||||
.as('fs'),
|
||||
'fs.feature_name',
|
||||
'features.name',
|
||||
)
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withFeatureEnvironments = (filter: string) => {
|
||||
this.internalQuery.leftJoin(
|
||||
@ -60,52 +63,70 @@ export class FeatureToggleListBuilder {
|
||||
.as('fe'),
|
||||
'fe.feature_name',
|
||||
'features.name',
|
||||
)
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withFeatureStrategySegments = () => {
|
||||
this.internalQuery.leftJoin(
|
||||
'feature_strategy_segment as fss',
|
||||
`fss.feature_strategy_id`,
|
||||
`fs.id`,
|
||||
)
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withSegments = () => {
|
||||
this.internalQuery.leftJoin('segments', `segments.id`, `fss.segment_id`)
|
||||
this.internalQuery.leftJoin(
|
||||
'segments',
|
||||
`segments.id`,
|
||||
`fss.segment_id`,
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withDependentFeatureToggles = () => {
|
||||
this.internalQuery.leftJoin('dependent_features as df', 'df.child', 'features.name')
|
||||
this.internalQuery.leftJoin(
|
||||
'dependent_features as df',
|
||||
'df.child',
|
||||
'features.name',
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withFeatureTags = () => {
|
||||
this.internalQuery.leftJoin('feature_tag as ft', 'ft.feature_name', 'features.name');
|
||||
this.internalQuery.leftJoin(
|
||||
'feature_tag as ft',
|
||||
'ft.feature_name',
|
||||
'features.name',
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withLastSeenByEnvironment = (archived = false) => {
|
||||
if (archived) {
|
||||
this.internalQuery.leftJoin('last_seen_at_metrics', function () {
|
||||
this.on('last_seen_at_metrics.feature_name', '=', 'features.name')
|
||||
.andOnNotNull('features.archived_at');
|
||||
})
|
||||
this.on(
|
||||
'last_seen_at_metrics.feature_name',
|
||||
'=',
|
||||
'features.name',
|
||||
).andOnNotNull('features.archived_at');
|
||||
});
|
||||
} else {
|
||||
this.internalQuery.leftJoin('last_seen_at_metrics', 'last_seen_at_metrics.feature_name', 'features.name');
|
||||
this.internalQuery.leftJoin(
|
||||
'last_seen_at_metrics',
|
||||
'last_seen_at_metrics.feature_name',
|
||||
'features.name',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
withFavorites = (userId: number) => {
|
||||
this.internalQuery.leftJoin(`favorite_features`, function () {
|
||||
@ -117,9 +138,9 @@ export class FeatureToggleListBuilder {
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
forProject = (project: string[]) => {
|
||||
this.internalQuery.whereIn('features.project', project);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user