diff --git a/biome.json b/biome.json index f39c76c3ce19..e3e73e47cc24 100644 --- a/biome.json +++ b/biome.json @@ -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", diff --git a/frontend/package.json b/frontend/package.json index 4c5abc7a5085..68af15fc4984 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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", diff --git a/frontend/src/component/admin/apiToken/ApiTokenPage/ApiTokenPage.tsx b/frontend/src/component/admin/apiToken/ApiTokenPage/ApiTokenPage.tsx index 537da13f5aad..ad9bb17f912c 100644 --- a/frontend/src/component/admin/apiToken/ApiTokenPage/ApiTokenPage.tsx +++ b/frontend/src/component/admin/apiToken/ApiTokenPage/ApiTokenPage.tsx @@ -39,14 +39,14 @@ export const ApiTokenPage = () => { props.row.original.type === 'client' ? READ_CLIENT_API_TOKEN : props.row.original.type === 'frontend' - ? READ_FRONTEND_API_TOKEN - : ADMIN; + ? READ_FRONTEND_API_TOKEN + : ADMIN; const DELETE_PERMISSION = props.row.original.type === 'client' ? DELETE_CLIENT_API_TOKEN : props.row.original.type === 'frontend' - ? DELETE_FRONTEND_API_TOKEN - : ADMIN; + ? DELETE_FRONTEND_API_TOKEN + : ADMIN; return ( diff --git a/frontend/src/component/admin/apiToken/ProjectsList/ProjectsList.tsx b/frontend/src/component/admin/apiToken/ProjectsList/ProjectsList.tsx index 40abec227076..9a341e493fdf 100644 --- a/frontend/src/component/admin/apiToken/ProjectsList/ProjectsList.tsx +++ b/frontend/src/component/admin/apiToken/ProjectsList/ProjectsList.tsx @@ -27,8 +27,8 @@ export const ProjectsList: VFC = ({ projects && Array.isArray(projects) ? projects : project - ? [project] - : []; + ? [project] + : []; if (fields.length === 0) { return ( diff --git a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx index 5bc3ebdf2029..1d05ebc7314c 100644 --- a/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx +++ b/frontend/src/component/admin/billing/BillingDashboard/BillingPlan/BillingPlan.tsx @@ -134,8 +134,8 @@ export const BillingPlan: FC = ({ instanceStatus }) => { {expired ? 'Trial expired' : instanceStatus.trialExtended - ? 'Extended Trial' - : 'Trial'} + ? 'Extended Trial' + : 'Trial'} } /> diff --git a/frontend/src/component/common/FormTemplate/FormTemplate.tsx b/frontend/src/component/common/FormTemplate/FormTemplate.tsx index 1c0b6220c77c..a482aa786a89 100644 --- a/frontend/src/component/common/FormTemplate/FormTemplate.tsx +++ b/frontend/src/component/common/FormTemplate/FormTemplate.tsx @@ -76,8 +76,8 @@ const StyledFormContent = styled('div', { padding: disablePadding ? 0 : compactPadding - ? theme.spacing(4) - : theme.spacing(6), + ? theme.spacing(4) + : theme.spacing(6), [theme.breakpoints.down('lg')]: { padding: disablePadding ? 0 : theme.spacing(4), }, diff --git a/frontend/src/component/common/ToastRenderer/Toast/Toast.tsx b/frontend/src/component/common/ToastRenderer/Toast/Toast.tsx index 0b311489e186..1b06cd90ed9c 100644 --- a/frontend/src/component/common/ToastRenderer/Toast/Toast.tsx +++ b/frontend/src/component/common/ToastRenderer/Toast/Toast.tsx @@ -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)], diff --git a/frontend/src/component/context/ContextForm/ContextForm.tsx b/frontend/src/component/context/ContextForm/ContextForm.tsx index e22db21ac706..85ff9f38f0e1 100644 --- a/frontend/src/component/context/ContextForm/ContextForm.tsx +++ b/frontend/src/component/context/ContextForm/ContextForm.tsx @@ -115,8 +115,8 @@ export const ContextForm: React.FC = ({ tag: isMissingValue ? 'Value cannot be empty' : isDuplicateValue - ? 'Duplicate value' - : undefined, + ? 'Duplicate value' + : undefined, })); }, [setErrors, isMissingValue, isDuplicateValue]); diff --git a/frontend/src/component/demo/DemoSteps/DemoStepTooltip/DemoStepTooltip.tsx b/frontend/src/component/demo/DemoSteps/DemoStepTooltip/DemoStepTooltip.tsx index 5774bfc2d0ee..545241fe5c1b 100644 --- a/frontend/src/component/demo/DemoSteps/DemoStepTooltip/DemoStepTooltip.tsx +++ b/frontend/src/component/demo/DemoSteps/DemoStepTooltip/DemoStepTooltip.tsx @@ -90,8 +90,8 @@ export const DemoStepTooltip = ({ stepIndex === 0 ? 'Start' : stepIndex === topics[topic].steps.length - 1 - ? 'Finish' - : 'Next'; + ? 'Finish' + : 'Next'; if (step.target === 'body') { return ( diff --git a/frontend/src/component/demo/DemoSteps/DemoSteps.tsx b/frontend/src/component/demo/DemoSteps/DemoSteps.tsx index bb318e3218f7..8a5af3678081 100644 --- a/frontend/src/component/demo/DemoSteps/DemoSteps.tsx +++ b/frontend/src/component/demo/DemoSteps/DemoSteps.tsx @@ -211,15 +211,18 @@ export const DemoSteps = ({ const currentStep = currentTopic.steps[step]; if (!currentStep) return; - setTimeout(() => { - if ( - currentStep.href && - !location.pathname.endsWith(currentStep.href.split('?')[0]) - ) { - navigate(currentStep.href); - } - waitForLoad(currentStep); - }, currentStep.delay ?? 0); + setTimeout( + () => { + if ( + currentStep.href && + !location.pathname.endsWith(currentStep.href.split('?')[0]) + ) { + navigate(currentStep.href); + } + waitForLoad(currentStep); + }, + currentStep.delay ?? 0, + ); }, [topic, step]); useEffect(() => { diff --git a/frontend/src/component/events/EventDiff/EventDiff.tsx b/frontend/src/component/events/EventDiff/EventDiff.tsx index 95d54a802613..211221e9b6d2 100644 --- a/frontend/src/component/events/EventDiff/EventDiff.tsx +++ b/frontend/src/component/events/EventDiff/EventDiff.tsx @@ -83,8 +83,8 @@ const EventDiff = ({ {changeValue ? `: ${changeValue}` : diff.kind === 'D' - ? ' (deleted)' - : ''} + ? ' (deleted)' + : ''} ); } diff --git a/frontend/src/component/feature/Dependencies/AddDependencyDialogue.tsx b/frontend/src/component/feature/Dependencies/AddDependencyDialogue.tsx index 8c1f3be0ab05..b7b145707887 100644 --- a/frontend/src/component/feature/Dependencies/AddDependencyDialogue.tsx +++ b/frontend/src/component/feature/Dependencies/AddDependencyDialogue.tsx @@ -184,8 +184,8 @@ export const AddDependencyDialogue = ({ isChangeRequestConfiguredInAnyEnv() ? 'Add change to draft' : parent === REMOVE_DEPENDENCY_OPTION.key - ? 'Remove' - : 'Add' + ? 'Remove' + : 'Add' } secondaryButtonText='Cancel' > diff --git a/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/ManageBulkTagsDialog.tsx b/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/ManageBulkTagsDialog.tsx index 1a612086ba54..88756c39dded 100644 --- a/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/ManageBulkTagsDialog.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureOverview/ManageTagsDialog/ManageBulkTagsDialog.tsx @@ -90,7 +90,7 @@ export const ManageBulkTagsDialog: VFC = ({ onSubmit, }) => { const { tagTypes, loading: tagTypesLoading } = useTagTypes(); - const [tagType, setTagType] = useState(emptyTagType); + const [tagType, setTagType] = useState<(typeof tagTypes)[0]>(emptyTagType); const [selectedTags, setSelectedTags] = useState([]); const [indeterminateTags, setIndeterminateTags] = useState([]); const { tags, refetch: refetchTags } = useTags(tagType.name); diff --git a/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/combinationCounter.test.ts b/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/combinationCounter.test.ts index 86f653a9827b..4ee471fc780c 100644 --- a/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/combinationCounter.test.ts +++ b/frontend/src/component/playground/Playground/AdvancedPlaygroundResultsTable/combinationCounter.test.ts @@ -32,7 +32,7 @@ const generateFeature = ( parameters: {}, result: { enabled: false, - evaluationStatus: 'complete' as 'complete', + evaluationStatus: 'complete' as const, }, constraints: [ { diff --git a/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable.tsx b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable.tsx index 1b85b42200cc..3a939883c9b1 100644 --- a/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentDiffTable.tsx @@ -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) => ({ @@ -54,8 +54,8 @@ export const PlaygroundEnvironmentDiffTable = ({ row[environment]?.isEnabled ? 'true' : row[environment]?.strategies?.result === 'unknown' - ? 'unknown' - : 'false', + ? 'unknown' + : 'false', Cell: ({ row }: { row: { original: RowType } }) => { return ( diff --git a/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.tsx b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.tsx index da75b9e02c85..d1b36ba26782 100644 --- a/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundEnvironmentTable/PlaygroundEnvironmentTable.tsx @@ -72,8 +72,8 @@ export const PlaygroundEnvironmentTable = ({ row?.isEnabled ? 'true' : row?.strategies?.result === 'unknown' - ? 'unknown' - : 'false', + ? 'unknown' + : 'false', Cell: ({ row }: any) => ( ), diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx index 63d07dd1f276..6199e60b59c9 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureResultInfoPopoverCell/FeatureStrategyList/StrategyList/StrategyItem/FeatureStrategyItem.tsx @@ -25,8 +25,8 @@ export const FeatureStrategyItem = ({ result.evaluationStatus === 'unevaluated' ? 'Unevaluated' : result.enabled - ? 'True' - : 'False'; + ? 'True' + : 'False'; return ( { healthReport.health < 50 ? 'error.main' : healthReport.health < 75 - ? 'warning.main' - : 'success.main'; + ? 'warning.main' + : 'success.main'; const renderActiveToggles = () => ( diff --git a/frontend/src/component/splash/splash.tsx b/frontend/src/component/splash/splash.tsx index 1b95471c7147..b8c90ef0401a 100644 --- a/frontend/src/component/splash/splash.tsx +++ b/frontend/src/component/splash/splash.tsx @@ -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]; diff --git a/frontend/src/hooks/useSearch.ts b/frontend/src/hooks/useSearch.ts index 9adc2e1cfee6..68ae49453f93 100644 --- a/frontend/src/hooks/useSearch.ts +++ b/frontend/src/hooks/useSearch.ts @@ -138,10 +138,10 @@ export const getColumnValues = (column: any, row: any) => { typeof column.accessor === 'function' ? column.accessor(row) : column.accessor.includes('.') - ? column.accessor - .split('.') - .reduce((object: any, key: string) => object?.[key], row) - : row[column.accessor]; + ? column.accessor + .split('.') + .reduce((object: any, key: string) => object?.[key], row) + : row[column.accessor]; if (column.filterParsing) { return column.filterParsing(value); diff --git a/frontend/src/interfaces/user.ts b/frontend/src/interfaces/user.ts index c66f35ddf796..2dcf71e8b5ac 100644 --- a/frontend/src/interfaces/user.ts +++ b/frontend/src/interfaces/user.ts @@ -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; diff --git a/frontend/src/openapi/models/_exportFormat.ts b/frontend/src/openapi/models/_exportFormat.ts index 679ac703f5e8..c9d067713111 100644 --- a/frontend/src/openapi/models/_exportFormat.ts +++ b/frontend/src/openapi/models/_exportFormat.ts @@ -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 = { diff --git a/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts b/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts index 04da4971760a..6a978769c505 100644 --- a/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts +++ b/frontend/src/openapi/models/addonTypeSchemaAlertsItemType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts b/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts index acdf6e47ffa6..d0b87067aab3 100644 --- a/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts +++ b/frontend/src/openapi/models/adminPermissionsSchemaVersion.ts @@ -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 = { diff --git a/frontend/src/openapi/models/apiTokenSchemaType.ts b/frontend/src/openapi/models/apiTokenSchemaType.ts index 0dbb6da19f8f..ccdd7636d426 100644 --- a/frontend/src/openapi/models/apiTokenSchemaType.ts +++ b/frontend/src/openapi/models/apiTokenSchemaType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfAction.ts index 747b03a3d71b..232f2d908b96 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEightAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEightAction.ts index 9c678a976412..7e7bb556a993 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEightAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfEightAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFourAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFourAction.ts index 47f45d1dc36b..a870b7a2fce9 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFourAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfFourAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneeightAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneeightAction.ts index 7aa6693724cf..67285b3e0e00 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneeightAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneeightAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneoneAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneoneAction.ts index b58f2f9eba7a..5dfa50f9dbf0 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneoneAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOneoneAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesixAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesixAction.ts index edabb77f86d5..f902eca0b718 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesixAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnesixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethreeAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethreeAction.ts index 8e2d7094f4c0..eac0f1962da6 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethreeAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfOnethreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSixAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSixAction.ts index 63142d9dd25c..231284c0cef9 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSixAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfSixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozeroAction.ts b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozeroAction.ts index 4fd50e52379c..4bd265f5eaf2 100644 --- a/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozeroAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateFeatureSchemaOneOfTwozeroAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts index 82065de305eb..711f9e97992a 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts index 6b3f2d886aad..aae624a50081 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfNineAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts index 70b0c4096898..af368073d79c 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneeightAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts index e67ee1c37c10..86079b523f2c 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOneoneAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts index baa9f42d097c..51a020694d18 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnesixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts index ec626c60fa85..ade450d37a88 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfOnethreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts index 174e0c001ecf..56165d661982 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfSixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts index 5c305cc7b146..4286421abce1 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfThreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofiveAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofiveAction.ts index faa699e6475b..4767b1b089fc 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofiveAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwofiveAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts index 17d96cadfa84..cfb9e737a778 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwooneAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwothreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwothreeAction.ts index a0968ce670f0..d9f8d7c51d80 100644 --- a/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwothreeAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSchemaOneOfTwothreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfAction.ts index 46eeca95233d..4f2e5fd8b9ad 100644 --- a/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfThreeAction.ts b/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfThreeAction.ts index ae799f3382a3..2394907f15e1 100644 --- a/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfThreeAction.ts +++ b/frontend/src/openapi/models/changeRequestCreateSegmentSchemaOneOfThreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts index b2c69c8af73d..62a7cc49f372 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts index 4e777fe0225c..39b5361bf620 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfNineAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts index 05faff3f68e7..1c560ca9c006 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneeightAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts index 336a5a7ba4c7..24b4cd6a7420 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOneoneAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts index ccf359f2231b..ac9067d54c6c 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnesixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts index b3f823bde94f..8a110e20139c 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfOnethreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts index 71d18ef35435..ec2c967c0b9f 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfSixAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts index 81d1f5b5ae92..7b8fb6627535 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfThreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofiveAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofiveAction.ts index 883157842423..41f210fb6c7a 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofiveAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwofiveAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts index a40cf1209eea..479a5ede6a73 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwooneAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwothreeAction.ts b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwothreeAction.ts index 7e91a3589d68..c6c54e3dbc12 100644 --- a/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwothreeAction.ts +++ b/frontend/src/openapi/models/changeRequestOneOrManyCreateSchemaOneOfTwothreeAction.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestScheduleSchemaStatus.ts b/frontend/src/openapi/models/changeRequestScheduleSchemaStatus.ts index 59d5ccecb878..1660b7901e15 100644 --- a/frontend/src/openapi/models/changeRequestScheduleSchemaStatus.ts +++ b/frontend/src/openapi/models/changeRequestScheduleSchemaStatus.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestSchemaOneOfFourState.ts b/frontend/src/openapi/models/changeRequestSchemaOneOfFourState.ts index 49d4f4d764c5..4a0e76b7ec59 100644 --- a/frontend/src/openapi/models/changeRequestSchemaOneOfFourState.ts +++ b/frontend/src/openapi/models/changeRequestSchemaOneOfFourState.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestSchemaOneOfState.ts b/frontend/src/openapi/models/changeRequestSchemaOneOfState.ts index 78464b9e2d89..5bcb7f7eb8a1 100644 --- a/frontend/src/openapi/models/changeRequestSchemaOneOfState.ts +++ b/frontend/src/openapi/models/changeRequestSchemaOneOfState.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestStateSchemaOneOfState.ts b/frontend/src/openapi/models/changeRequestStateSchemaOneOfState.ts index 426ad02a2255..8ebf62b85b86 100644 --- a/frontend/src/openapi/models/changeRequestStateSchemaOneOfState.ts +++ b/frontend/src/openapi/models/changeRequestStateSchemaOneOfState.ts @@ -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 = { diff --git a/frontend/src/openapi/models/changeRequestStateSchemaOneOfThreeState.ts b/frontend/src/openapi/models/changeRequestStateSchemaOneOfThreeState.ts index 43454dae0cb1..c132cc210173 100644 --- a/frontend/src/openapi/models/changeRequestStateSchemaOneOfThreeState.ts +++ b/frontend/src/openapi/models/changeRequestStateSchemaOneOfThreeState.ts @@ -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 = { diff --git a/frontend/src/openapi/models/constraintSchemaOperator.ts b/frontend/src/openapi/models/constraintSchemaOperator.ts index f0ece50150c2..eea65ed86bd4 100644 --- a/frontend/src/openapi/models/constraintSchemaOperator.ts +++ b/frontend/src/openapi/models/constraintSchemaOperator.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createProjectSchemaMode.ts b/frontend/src/openapi/models/createProjectSchemaMode.ts index 9b7866417245..77133c7e4caa 100644 --- a/frontend/src/openapi/models/createProjectSchemaMode.ts +++ b/frontend/src/openapi/models/createProjectSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfFourType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfFourType.ts index 0f396af36b5d..c1909b2d4cb7 100644 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfFourType.ts +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfFourType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfType.ts b/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfType.ts index 1c4852b6083c..e49c645b419b 100644 --- a/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfType.ts +++ b/frontend/src/openapi/models/createRoleWithPermissionsSchemaAnyOfType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts b/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts index 0c725cd31ee0..33e89ecf3ee7 100644 --- a/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts +++ b/frontend/src/openapi/models/createStrategySchemaParametersItemType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createStrategyVariantSchemaPayloadType.ts b/frontend/src/openapi/models/createStrategyVariantSchemaPayloadType.ts index 841a95647d9d..4eda08965c26 100644 --- a/frontend/src/openapi/models/createStrategyVariantSchemaPayloadType.ts +++ b/frontend/src/openapi/models/createStrategyVariantSchemaPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts b/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts index 93eb582d6947..73ddce769100 100644 --- a/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts +++ b/frontend/src/openapi/models/createStrategyVariantSchemaWeightType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/edgeTokenSchemaType.ts b/frontend/src/openapi/models/edgeTokenSchemaType.ts index b3be7145ac9b..ff173ac254ee 100644 --- a/frontend/src/openapi/models/edgeTokenSchemaType.ts +++ b/frontend/src/openapi/models/edgeTokenSchemaType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/eventSchemaType.ts b/frontend/src/openapi/models/eventSchemaType.ts index 19e6b6c45a80..aa9df3ccfd42 100644 --- a/frontend/src/openapi/models/eventSchemaType.ts +++ b/frontend/src/openapi/models/eventSchemaType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/eventsSchemaVersion.ts b/frontend/src/openapi/models/eventsSchemaVersion.ts index 0b1f8abc6e57..df04beb0c956 100644 --- a/frontend/src/openapi/models/eventsSchemaVersion.ts +++ b/frontend/src/openapi/models/eventsSchemaVersion.ts @@ -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 = { diff --git a/frontend/src/openapi/models/featureEventsSchemaVersion.ts b/frontend/src/openapi/models/featureEventsSchemaVersion.ts index 14fa1ccd3056..5691e44bbc02 100644 --- a/frontend/src/openapi/models/featureEventsSchemaVersion.ts +++ b/frontend/src/openapi/models/featureEventsSchemaVersion.ts @@ -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 = { diff --git a/frontend/src/openapi/models/featureTypesSchemaVersion.ts b/frontend/src/openapi/models/featureTypesSchemaVersion.ts index 14e1b4bf0f8c..c500b0959f04 100644 --- a/frontend/src/openapi/models/featureTypesSchemaVersion.ts +++ b/frontend/src/openapi/models/featureTypesSchemaVersion.ts @@ -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 = { diff --git a/frontend/src/openapi/models/healthCheckSchemaHealth.ts b/frontend/src/openapi/models/healthCheckSchemaHealth.ts index cf58d71975bd..255909627010 100644 --- a/frontend/src/openapi/models/healthCheckSchemaHealth.ts +++ b/frontend/src/openapi/models/healthCheckSchemaHealth.ts @@ -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 = { diff --git a/frontend/src/openapi/models/healthOverviewSchemaMode.ts b/frontend/src/openapi/models/healthOverviewSchemaMode.ts index 4260e7ae2b22..2dd4d5dd02e4 100644 --- a/frontend/src/openapi/models/healthOverviewSchemaMode.ts +++ b/frontend/src/openapi/models/healthOverviewSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/healthReportSchemaMode.ts b/frontend/src/openapi/models/healthReportSchemaMode.ts index b50500c13676..a6a077964b84 100644 --- a/frontend/src/openapi/models/healthReportSchemaMode.ts +++ b/frontend/src/openapi/models/healthReportSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts index 6e3065ca32f9..801b06aa9c84 100644 --- a/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts +++ b/frontend/src/openapi/models/instanceAdminStatsSchemaClientAppsItemRange.ts @@ -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 = { diff --git a/frontend/src/openapi/models/notificationsSchemaItemNotificationType.ts b/frontend/src/openapi/models/notificationsSchemaItemNotificationType.ts index 4c70176cc454..13ddfac3cd59 100644 --- a/frontend/src/openapi/models/notificationsSchemaItemNotificationType.ts +++ b/frontend/src/openapi/models/notificationsSchemaItemNotificationType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts b/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts index ad1bfee89aaf..4e7ad2242059 100644 --- a/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts +++ b/frontend/src/openapi/models/oidcSettingsSchemaDefaultRootRole.ts @@ -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 = { diff --git a/frontend/src/openapi/models/oidcSettingsSchemaIdTokenSigningAlgorithm.ts b/frontend/src/openapi/models/oidcSettingsSchemaIdTokenSigningAlgorithm.ts index 27fc38981b09..53cbe0188958 100644 --- a/frontend/src/openapi/models/oidcSettingsSchemaIdTokenSigningAlgorithm.ts +++ b/frontend/src/openapi/models/oidcSettingsSchemaIdTokenSigningAlgorithm.ts @@ -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 = { diff --git a/frontend/src/openapi/models/patchSchemaOp.ts b/frontend/src/openapi/models/patchSchemaOp.ts index 06ef2e0f3864..e7bded8eb42b 100644 --- a/frontend/src/openapi/models/patchSchemaOp.ts +++ b/frontend/src/openapi/models/patchSchemaOp.ts @@ -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 = { diff --git a/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts b/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts index c22cc14e2452..1cf1d51844c4 100644 --- a/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts +++ b/frontend/src/openapi/models/playgroundConstraintSchemaOperator.ts @@ -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 = { diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts index 318e7cc11d74..82ecbd3e3a82 100644 --- a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfEvaluationStatus.ts @@ -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 = { diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts index 9771ab74696d..c3dbc406176a 100644 --- a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourEvaluationStatus.ts @@ -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 = { diff --git a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourVariantPayloadType.ts b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourVariantPayloadType.ts index dbef26d109ad..d99057740c0a 100644 --- a/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourVariantPayloadType.ts +++ b/frontend/src/openapi/models/playgroundStrategySchemaResultAnyOfFourVariantPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/projectCreatedSchemaMode.ts b/frontend/src/openapi/models/projectCreatedSchemaMode.ts index 0e4fc0dd4ef1..7df0ceae5018 100644 --- a/frontend/src/openapi/models/projectCreatedSchemaMode.ts +++ b/frontend/src/openapi/models/projectCreatedSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/projectOverviewSchemaMode.ts b/frontend/src/openapi/models/projectOverviewSchemaMode.ts index 34a0bdcbf85b..69e0cd8003e7 100644 --- a/frontend/src/openapi/models/projectOverviewSchemaMode.ts +++ b/frontend/src/openapi/models/projectOverviewSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/projectSchemaMode.ts b/frontend/src/openapi/models/projectSchemaMode.ts index b625071cec3d..947db93654fd 100644 --- a/frontend/src/openapi/models/projectSchemaMode.ts +++ b/frontend/src/openapi/models/projectSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/projectSettingsSchemaDefaultStickiness.ts b/frontend/src/openapi/models/projectSettingsSchemaDefaultStickiness.ts index a629be11b0aa..2339ff7cd8f4 100644 --- a/frontend/src/openapi/models/projectSettingsSchemaDefaultStickiness.ts +++ b/frontend/src/openapi/models/projectSettingsSchemaDefaultStickiness.ts @@ -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 = { diff --git a/frontend/src/openapi/models/projectSettingsSchemaMode.ts b/frontend/src/openapi/models/projectSettingsSchemaMode.ts index eacf61620054..fc17990f5d0c 100644 --- a/frontend/src/openapi/models/projectSettingsSchemaMode.ts +++ b/frontend/src/openapi/models/projectSettingsSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts index abab0ac8c7c4..6680e4f6fee7 100644 --- a/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts +++ b/frontend/src/openapi/models/proxyFeatureSchemaVariantPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts index d8463ff012f3..6011add60f85 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchemaDataResultType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts b/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts index 602296c5055f..361503c66fac 100644 --- a/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts +++ b/frontend/src/openapi/models/requestsPerSecondSchemaStatus.ts @@ -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 = { diff --git a/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts index 76fb4f439814..b6ead47df4c0 100644 --- a/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts +++ b/frontend/src/openapi/models/samlSettingsSchemaDefaultRootRole.ts @@ -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 = { diff --git a/frontend/src/openapi/models/searchEventsSchemaType.ts b/frontend/src/openapi/models/searchEventsSchemaType.ts index cefd2a6d59d3..5bf5b732758d 100644 --- a/frontend/src/openapi/models/searchEventsSchemaType.ts +++ b/frontend/src/openapi/models/searchEventsSchemaType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/strategiesSchemaVersion.ts b/frontend/src/openapi/models/strategiesSchemaVersion.ts index 062ce565f9ae..4bd441fd8c63 100644 --- a/frontend/src/openapi/models/strategiesSchemaVersion.ts +++ b/frontend/src/openapi/models/strategiesSchemaVersion.ts @@ -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 = { diff --git a/frontend/src/openapi/models/strategyVariantSchemaPayloadType.ts b/frontend/src/openapi/models/strategyVariantSchemaPayloadType.ts index 0372035f80c4..ffd4204aa5e5 100644 --- a/frontend/src/openapi/models/strategyVariantSchemaPayloadType.ts +++ b/frontend/src/openapi/models/strategyVariantSchemaPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts b/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts index be2437f17ee8..02eb2ae7577f 100644 --- a/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts +++ b/frontend/src/openapi/models/strategyVariantSchemaWeightType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts index a6a9b07ac3fe..1ffdf6bb8d74 100644 --- a/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts +++ b/frontend/src/openapi/models/uiConfigSchemaAuthenticationType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts index b26750b31917..6edc7c3a0fa4 100644 --- a/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts +++ b/frontend/src/openapi/models/updateProjectEnterpriseSettingsSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/updateProjectSchemaMode.ts b/frontend/src/openapi/models/updateProjectSchemaMode.ts index ac5c1cca20b3..d2b2bc92d853 100644 --- a/frontend/src/openapi/models/updateProjectSchemaMode.ts +++ b/frontend/src/openapi/models/updateProjectSchemaMode.ts @@ -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 = { diff --git a/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts b/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts index 1b34e8e13d14..eafd3e2ecbca 100644 --- a/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts +++ b/frontend/src/openapi/models/updateStrategySchemaParametersItemType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts b/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts index 08caa52993d3..85f7038ba1f7 100644 --- a/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts +++ b/frontend/src/openapi/models/variantFlagSchemaPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/variantSchemaPayloadType.ts b/frontend/src/openapi/models/variantSchemaPayloadType.ts index c6d053690b53..a13d363b2ad0 100644 --- a/frontend/src/openapi/models/variantSchemaPayloadType.ts +++ b/frontend/src/openapi/models/variantSchemaPayloadType.ts @@ -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 = { diff --git a/frontend/src/openapi/models/variantSchemaWeightType.ts b/frontend/src/openapi/models/variantSchemaWeightType.ts index d515e58ae758..82084d4215de 100644 --- a/frontend/src/openapi/models/variantSchemaWeightType.ts +++ b/frontend/src/openapi/models/variantSchemaWeightType.ts @@ -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 = { diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 99468e744d6c..62962986c27d 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -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.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" + "@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.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" diff --git a/package.json b/package.json index c2ccfe5f2ce7..0d8d988acb54 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/lib/addons/feature-event-formatter-md.ts b/src/lib/addons/feature-event-formatter-md.ts index 76dbf488a7f1..000fefb529e2 100644 --- a/src/lib/addons/feature-event-formatter-md.ts +++ b/src/lib/addons/feature-event-formatter-md.ts @@ -435,12 +435,12 @@ export class FeatureEventFormatterMd implements FeatureEventFormatter { preData?.parameters[propertyName] === data?.parameters[propertyName] ? '' : !preData - ? ` ${propertyName} to ${userIdText( - data?.parameters[propertyName], - )}` - : ` ${propertyName} from ${userIdText( - preData.parameters[propertyName], - )} to ${userIdText(data?.parameters[propertyName])}`; + ? ` ${propertyName} to ${userIdText( + data?.parameters[propertyName], + )}` + : ` ${propertyName} from ${userIdText( + preData.parameters[propertyName], + )} to ${userIdText(data?.parameters[propertyName])}`; const constraintText = this.constraintChangeText( preData?.constraints, data?.constraints, @@ -469,20 +469,20 @@ export class FeatureEventFormatterMd implements FeatureEventFormatter { oldStickiness === stickiness ? '' : !oldStickiness - ? ` stickiness to ${stickiness}` - : ` stickiness from ${oldStickiness} to ${stickiness}`; + ? ` stickiness to ${stickiness}` + : ` stickiness from ${oldStickiness} to ${stickiness}`; const rolloutText = oldRollout === rollout ? '' : !oldRollout - ? ` rollout to ${rollout}%` - : ` rollout from ${oldRollout}% to ${rollout}%`; + ? ` rollout to ${rollout}%` + : ` rollout from ${oldRollout}% to ${rollout}%`; const groupIdText = oldGroupId === groupId ? '' : !oldGroupId - ? ` groupId to ${groupId}` - : ` groupId from ${oldGroupId} to ${groupId}`; + ? ` groupId to ${groupId}` + : ` groupId from ${oldGroupId} to ${groupId}`; const constraintText = this.constraintChangeText( preData?.constraints, data?.constraints, diff --git a/src/lib/db/access-store.ts b/src/lib/db/access-store.ts index 3212122ebb47..a49c420cb9f7 100644 --- a/src/lib/db/access-store.ts +++ b/src/lib/db/access-store.ts @@ -92,10 +92,13 @@ export class AccessStore implements IAccessStore { .from(T.PERMISSIONS) .whereIn('id', permissionIds); - const rowByPermissionId = rows.reduce((acc, row) => { - acc[row.id] = row; - return acc; - }, {} as Map); + const rowByPermissionId = rows.reduce( + (acc, row) => { + acc[row.id] = row; + return acc; + }, + {} as Map, + ); const permissionsWithNames = permissions.map((permission) => ({ name: rowByPermissionId[permission.id].permission, diff --git a/src/lib/error/unleash-error.ts b/src/lib/error/unleash-error.ts index 2f83bee693e5..565808a48bbd 100644 --- a/src/lib/error/unleash-error.ts +++ b/src/lib/error/unleash-error.ts @@ -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; diff --git a/src/lib/features/feature-toggle/query-builders/feature-toggle-list-builder.ts b/src/lib/features/feature-toggle/query-builders/feature-toggle-list-builder.ts index c55acdd49616..a7b5501817fe 100644 --- a/src/lib/features/feature-toggle/query-builders/feature-toggle-list-builder.ts +++ b/src/lib/features/feature-toggle/query-builders/feature-toggle-list-builder.ts @@ -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,97 +15,118 @@ export class FeatureToggleListBuilder { getSelectColumns = () => { return this.selectColumns; - } + }; query = (table: string) => { this.internalQuery = this.db(table); return this; - } + }; addSelectColumn = (column: string | Knex.Raw) => { 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( - this.db('feature_strategies') - .select('*') - .where({ environment: filter }) - .as('fs'), - 'fs.feature_name', - 'features.name', - ) + this.internalQuery.leftJoin( + this.db('feature_strategies') + .select('*') + .where({ environment: filter }) + .as('fs'), + 'fs.feature_name', + 'features.name', + ); - return this; - } + return this; + }; withFeatureEnvironments = (filter: string) => { - this.internalQuery.leftJoin( - this.db('feature_environments') - .select( - 'feature_name', - 'enabled', - 'environment', - 'variants', - 'last_seen_at', - ) - .where({ environment: filter }) - .as('fe'), - 'fe.feature_name', - 'features.name', - ) + this.internalQuery.leftJoin( + this.db('feature_environments') + .select( + 'feature_name', + 'enabled', + 'environment', + 'variants', + 'last_seen_at', + ) + .where({ environment: filter }) + .as('fe'), + 'fe.feature_name', + 'features.name', + ); - return this; - } + return this; + }; withFeatureStrategySegments = () => { - this.internalQuery.leftJoin( - 'feature_strategy_segment as fss', - `fss.feature_strategy_id`, - `fs.id`, - ) + this.internalQuery.leftJoin( + 'feature_strategy_segment as fss', + `fss.feature_strategy_id`, + `fs.id`, + ); - return this; - } + 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.internalQuery.leftJoin('last_seen_at_metrics', function () { + 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); - } + }; } diff --git a/src/lib/features/playground/generateObjectCombinations.ts b/src/lib/features/playground/generateObjectCombinations.ts index 8f40ed270d73..53a7d5665595 100644 --- a/src/lib/features/playground/generateObjectCombinations.ts +++ b/src/lib/features/playground/generateObjectCombinations.ts @@ -3,16 +3,19 @@ type Dict = { [K in keyof T]: (string | number)[] }; export const splitByComma = >( obj: T, ): Dict => { - return Object.entries(obj).reduce((acc, [key, value]) => { - if (key === 'properties' && typeof value === 'object') { - const nested = splitByComma(value as any); - return { ...acc, ...nested }; - } else if (typeof value === 'string') { - return { ...acc, [key]: value.split(',') }; - } else { - return { ...acc, [key]: [value] }; - } - }, {} as Dict); + return Object.entries(obj).reduce( + (acc, [key, value]) => { + if (key === 'properties' && typeof value === 'object') { + const nested = splitByComma(value as any); + return { ...acc, ...nested }; + } else if (typeof value === 'string') { + return { ...acc, [key]: value.split(',') }; + } else { + return { ...acc, [key]: [value] }; + } + }, + {} as Dict, + ); }; export const generateCombinations = >( diff --git a/src/lib/features/playground/offline-unleash-client.test.ts b/src/lib/features/playground/offline-unleash-client.test.ts index e8cd525e5e17..bad4d00b0be9 100644 --- a/src/lib/features/playground/offline-unleash-client.test.ts +++ b/src/lib/features/playground/offline-unleash-client.test.ts @@ -262,7 +262,7 @@ describe('offline client', () => { { values: ['my-app-name'], inverted: false, - operator: 'IN' as 'IN', + operator: 'IN' as const, contextName: 'appName', caseInsensitive: false, }, @@ -282,7 +282,7 @@ describe('offline client', () => { { values: ['client-test'], inverted: false, - operator: 'IN' as 'IN', + operator: 'IN' as const, contextName: 'appName', caseInsensitive: false, }, @@ -409,7 +409,7 @@ describe('offline client', () => { { values: ['my-app-name'], inverted: false, - operator: 'IN' as 'IN', + operator: 'IN' as const, contextName: 'appName', caseInsensitive: false, }, diff --git a/src/lib/features/playground/playground-view-model.test.ts b/src/lib/features/playground/playground-view-model.test.ts index 3c5c99fc3b96..2d440a0f303e 100644 --- a/src/lib/features/playground/playground-view-model.test.ts +++ b/src/lib/features/playground/playground-view-model.test.ts @@ -7,7 +7,7 @@ describe('playground result to view model', () => { it('adds edit links to playground models', () => { const input = { environment: 'development', - projects: '*' as '*', + projects: '*' as const, context: { appName: 'playground', userId: '1' }, }; const featureResult = { @@ -27,7 +27,7 @@ describe('playground result to view model', () => { }, result: { enabled: false, - evaluationStatus: 'complete' as 'complete', + evaluationStatus: 'complete' as const, }, constraints: [], segments: [], @@ -67,7 +67,7 @@ describe('playground result to view model', () => { it('adds edit links to advanced playground models', () => { const input = { environments: ['development'], - projects: '*' as '*', + projects: '*' as const, context: { appName: 'playground', userId: '1' }, }; @@ -93,8 +93,7 @@ describe('playground result to view model', () => { }, result: { enabled: false, - evaluationStatus: - 'complete' as 'complete', + evaluationStatus: 'complete' as const, }, constraints: [], segments: [], diff --git a/src/lib/openapi/index.ts b/src/lib/openapi/index.ts index 8b8156a71e07..5865df238e44 100644 --- a/src/lib/openapi/index.ts +++ b/src/lib/openapi/index.ts @@ -188,10 +188,10 @@ import { segmentStrategiesSchema } from './spec/admin-strategies-schema'; import { featureDependenciesSchema } from './spec/feature-dependencies-schema'; // Schemas must have an $id property on the form "#/components/schemas/mySchema". -export type SchemaId = typeof schemas[keyof typeof schemas]['$id']; +export type SchemaId = (typeof schemas)[keyof typeof schemas]['$id']; // Schemas must list all their $refs in `components`, including nested schemas. -export type SchemaRef = typeof schemas[keyof typeof schemas]['components']; +export type SchemaRef = (typeof schemas)[keyof typeof schemas]['components']; // JSON schema properties that should not be included in the OpenAPI spec. export interface JsonSchemaProps { diff --git a/src/lib/openapi/meta-schema-rules.test.ts b/src/lib/openapi/meta-schema-rules.test.ts index 7a4f7101975e..264951442350 100644 --- a/src/lib/openapi/meta-schema-rules.test.ts +++ b/src/lib/openapi/meta-schema-rules.test.ts @@ -8,7 +8,7 @@ type Rule = { name: string; match?: ( schemaName: string, - schema: typeof schemas[SchemaNames], + schema: (typeof schemas)[SchemaNames], ) => boolean; metaSchema: Schema; knownExceptions?: string[]; diff --git a/src/lib/openapi/spec/playground-request-schema.test.ts b/src/lib/openapi/spec/playground-request-schema.test.ts index 0583720901af..9dfb17958d7d 100644 --- a/src/lib/openapi/spec/playground-request-schema.test.ts +++ b/src/lib/openapi/spec/playground-request-schema.test.ts @@ -17,7 +17,7 @@ export const generate = (): Arbitrary => fc.uniqueArray( fc.oneof(fc.lorem({ maxCount: 1 }), urlFriendlyString()), ), - fc.constant('*' as '*'), + fc.constant('*' as const), ), context: generateContext(), }); diff --git a/src/lib/openapi/util/openapi-tags.ts b/src/lib/openapi/util/openapi-tags.ts index dd9dbc452b79..6049b6074fd9 100644 --- a/src/lib/openapi/util/openapi-tags.ts +++ b/src/lib/openapi/util/openapi-tags.ts @@ -156,4 +156,4 @@ export const openApiTags = [...OPENAPI_TAGS]; export type OpenApiTag = // The official OpenAPI tags that we use. - typeof OPENAPI_TAGS[number]['name']; + (typeof OPENAPI_TAGS)[number]['name']; diff --git a/src/lib/proxy/proxy-repository.ts b/src/lib/proxy/proxy-repository.ts index 3f1e398d84c7..579f892577b6 100644 --- a/src/lib/proxy/proxy-repository.ts +++ b/src/lib/proxy/proxy-repository.ts @@ -96,17 +96,20 @@ export class ProxyRepository extends EventEmitter implements RepositoryInterface } private async dataPolling() { - this.timer = setTimeout(async () => { - if (!this.running) { - clearTimeout(this.timer!); - this.timer = null; - this.logger.debug( - 'Shutting down data polling for proxy repository', - ); - return; - } - await this.dataPolling(); - }, this.randomizeDelay(this.interval, this.interval * 2)).unref(); + this.timer = setTimeout( + async () => { + if (!this.running) { + clearTimeout(this.timer!); + this.timer = null; + this.logger.debug( + 'Shutting down data polling for proxy repository', + ); + return; + } + await this.dataPolling(); + }, + this.randomizeDelay(this.interval, this.interval * 2), + ).unref(); await this.loadDataForToken(); } diff --git a/src/lib/server-impl.test.ts b/src/lib/server-impl.test.ts index 4c5d1415e1c1..7a1bd69d682c 100644 --- a/src/lib/server-impl.test.ts +++ b/src/lib/server-impl.test.ts @@ -58,13 +58,7 @@ jest.mock('./util/db-lock', () => ({ withDbLock: () => (fn) => fn, })); -jest.mock( - './util/version', - () => - function () { - return 'unleash-test-version'; - }, -); +jest.mock('./util/version', () => () => 'unleash-test-version'); test('should call preHook', async () => { let called = 0; diff --git a/src/lib/types/events.ts b/src/lib/types/events.ts index 8f942efb5c2d..35ba29b1ada3 100644 --- a/src/lib/types/events.ts +++ b/src/lib/types/events.ts @@ -293,7 +293,7 @@ export const IEventTypes = [ BANNER_UPDATED, BANNER_DELETED, ] as const; -export type IEventType = typeof IEventTypes[number]; +export type IEventType = (typeof IEventTypes)[number]; export interface IBaseEvent { type: IEventType; diff --git a/src/lib/types/model.ts b/src/lib/types/model.ts index 4a3c0b1e9ba3..e2d5043b3a82 100644 --- a/src/lib/types/model.ts +++ b/src/lib/types/model.ts @@ -7,7 +7,7 @@ import { IProjectStats } from 'lib/services/project-service'; import { CreateFeatureStrategySchema } from '../openapi'; import { ProjectEnvironment } from './stores/project-store'; -export type Operator = typeof ALL_OPERATORS[number]; +export type Operator = (typeof ALL_OPERATORS)[number]; export interface IConstraint { contextName: string; diff --git a/src/lib/types/serialize-dates.ts b/src/lib/types/serialize-dates.ts index ba36957d9a48..5390a67c96a6 100644 --- a/src/lib/types/serialize-dates.ts +++ b/src/lib/types/serialize-dates.ts @@ -1,8 +1,8 @@ type SerializedDates = T extends Date ? string : T extends object - ? { [P in keyof T]: SerializedDates } - : T; + ? { [P in keyof T]: SerializedDates } + : T; // Convert Date objects to strings recursively. export const serializeDates = (obj: T): SerializedDates => { diff --git a/src/lib/types/user.ts b/src/lib/types/user.ts index 32ff121019ad..c7c9965b8a2f 100644 --- a/src/lib/types/user.ts +++ b/src/lib/types/user.ts @@ -2,7 +2,7 @@ import Joi, { ValidationError } from 'joi'; import { generateImageUrl } from '../util/generateImageUrl'; export const AccountTypes = ['User', 'Service Account'] as const; -type AccountType = typeof AccountTypes[number]; +type AccountType = (typeof AccountTypes)[number]; export interface UserData { id: number; diff --git a/src/lib/util/omit-keys.ts b/src/lib/util/omit-keys.ts index 66207ec4b10b..ded3ad4bc3ce 100644 --- a/src/lib/util/omit-keys.ts +++ b/src/lib/util/omit-keys.ts @@ -7,7 +7,7 @@ export interface OmitKeys { // https://stackoverflow.com/questions/53966509/typescript-type-safe-omit-function export const omitKeys: OmitKeys = (obj, ...keys) => { const ret = {} as { - [K in keyof typeof obj]: typeof obj[K]; + [K in keyof typeof obj]: (typeof obj)[K]; }; let key: keyof typeof obj; diff --git a/src/test/arbitraries.test.ts b/src/test/arbitraries.test.ts index 6de177c851f4..d6cfd528e441 100644 --- a/src/test/arbitraries.test.ts +++ b/src/test/arbitraries.test.ts @@ -143,17 +143,17 @@ export const variant = (): Arbitrary => payload: fc.option( fc.oneof( fc.record({ - type: fc.constant('json' as 'json'), + type: fc.constant('json' as const), value: fc.json(), }), fc.record({ - type: fc.constant('csv' as 'csv'), + type: fc.constant('csv' as const), value: fc .array(fc.lorem()) .map((words) => words.join(',')), }), fc.record({ - type: fc.constant('string' as 'string'), + type: fc.constant('string' as const), value: fc.string(), }), ), diff --git a/src/test/e2e/api/admin/playground.e2e.test.ts b/src/test/e2e/api/admin/playground.e2e.test.ts index f6ac7afa12b8..d23f6b841732 100644 --- a/src/test/e2e/api/admin/playground.e2e.test.ts +++ b/src/test/e2e/api/admin/playground.e2e.test.ts @@ -346,7 +346,7 @@ describe('Playground API E2E', () => { .record({ values: appName().map(toArray), inverted: fc.constant(false), - operator: fc.constant('IN' as 'IN'), + operator: fc.constant('IN' as const), contextName: fc.constant('appName'), caseInsensitive: fc.boolean(), }) @@ -416,17 +416,17 @@ describe('Playground API E2E', () => { fc.record({ name: fc.constant('remoteAddress'), value: fc.ipV4(), - operator: fc.constant('IN' as 'IN'), + operator: fc.constant('IN' as const), }), fc.record({ name: fc.constant('sessionId'), value: fc.uuid(), - operator: fc.constant('IN' as 'IN'), + operator: fc.constant('IN' as const), }), fc.record({ name: fc.constant('userId'), value: fc.emailAddress(), - operator: fc.constant('IN' as 'IN'), + operator: fc.constant('IN' as const), }), ); @@ -524,7 +524,7 @@ describe('Playground API E2E', () => { { values: [context.value], inverted: false, - operator: 'IN' as 'IN', + operator: 'IN' as const, contextName: context.name, caseInsensitive: false, }, @@ -649,7 +649,7 @@ describe('Playground API E2E', () => { constraints: [ { contextName: customContextFieldName, - operator: 'IN' as 'IN', + operator: 'IN' as const, values: [customContextValue], }, ], diff --git a/src/test/e2e/services/playground-service.test.ts b/src/test/e2e/services/playground-service.test.ts index c42532ed8f4c..b90fd9a3bbde 100644 --- a/src/test/e2e/services/playground-service.test.ts +++ b/src/test/e2e/services/playground-service.test.ts @@ -913,7 +913,7 @@ describe('the playground service (e2e)', () => { constraints: [ { contextName: 'appName', - operator: 'IN' as 'IN', + operator: 'IN' as const, values: [uuid], }, ], @@ -977,7 +977,7 @@ describe('the playground service (e2e)', () => { constraints: [ { contextName: 'appName', - operator: 'IN' as 'IN', + operator: 'IN' as const, values: [uuid], }, ], diff --git a/yarn.lock b/yarn.lock index 6b0bca4e33ce..e4f833f6efbf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -616,47 +616,47 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@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.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" + "@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.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== "@colors/colors@1.5.0": version "1.5.0"