mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-23 13:46:45 +02:00
fix: initial UI draft (#3191)
Initial draft for notifications UI behind a feature flag. I'd like to get this merged because the PR is cluttered by open api generation. In the next PR I will: * Clean up the SX and introduce styled components * Add a component for single notifications and implement the notification list
This commit is contained in:
parent
898160b295
commit
20d3dfd895
@ -0,0 +1,61 @@
|
||||
import Settings from '@mui/icons-material/Settings';
|
||||
import { Paper, Typography, Box, IconButton } from '@mui/material';
|
||||
import { useNotifications } from 'hooks/api/getters/useNotifications/useNotifications';
|
||||
|
||||
export const Notifications = () => {
|
||||
const { notifications } = useNotifications({ refreshInterval: 15 });
|
||||
|
||||
console.log(notifications);
|
||||
return (
|
||||
<Paper
|
||||
elevation={0}
|
||||
sx={theme => ({
|
||||
minWidth: '400px',
|
||||
boxShadow: theme.boxShadows.popup,
|
||||
borderRadius: `${theme.shape.borderRadiusLarge}px`,
|
||||
position: 'absolute',
|
||||
right: -20,
|
||||
top: 60,
|
||||
})}
|
||||
>
|
||||
<Box
|
||||
sx={theme => ({
|
||||
padding: theme.spacing(1, 3),
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
})}
|
||||
>
|
||||
<Typography fontWeight="bold">Notifications</Typography>
|
||||
|
||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||
<IconButton>
|
||||
<Settings />
|
||||
</IconButton>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<Box
|
||||
sx={theme => ({
|
||||
backgroundColor: theme.palette.neutral.light,
|
||||
padding: theme.spacing(1, 3),
|
||||
})}
|
||||
>
|
||||
<Typography
|
||||
sx={theme => ({
|
||||
fontWeight: 'bold',
|
||||
fontSize: theme.fontSizes.smallBody,
|
||||
color: theme.palette.primary.main,
|
||||
textAlign: 'center',
|
||||
})}
|
||||
>
|
||||
Mark all as read ({notifications?.length})
|
||||
</Typography>
|
||||
</Box>
|
||||
|
||||
<Box sx={theme => ({ padding: theme.spacing(2, 3) })}>
|
||||
List goes here
|
||||
</Box>
|
||||
</Paper>
|
||||
);
|
||||
};
|
@ -11,6 +11,7 @@ import {
|
||||
Switch,
|
||||
styled,
|
||||
Theme,
|
||||
Box,
|
||||
} from '@mui/material';
|
||||
import MenuIcon from '@mui/icons-material/Menu';
|
||||
import SettingsIcon from '@mui/icons-material/Settings';
|
||||
@ -19,6 +20,7 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
||||
import MenuBookIcon from '@mui/icons-material/MenuBook';
|
||||
import { ReactComponent as UnleashLogo } from 'assets/img/logoDarkWithText.svg';
|
||||
import { ReactComponent as UnleashLogoWhite } from 'assets/img/logoWithWhiteText.svg';
|
||||
import NotificationsIcon from '@mui/icons-material/Notifications';
|
||||
|
||||
import { DrawerMenu } from './DrawerMenu/DrawerMenu';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
@ -31,13 +33,14 @@ import {
|
||||
adminMenuRoutes,
|
||||
getCondensedRoutes,
|
||||
} from 'component/menu/routes';
|
||||
import { KeyboardArrowDown } from '@mui/icons-material';
|
||||
import { KeyboardArrowDown, NotificationAdd } from '@mui/icons-material';
|
||||
import { filterByConfig } from 'component/common/util';
|
||||
import { useAuthPermissions } from 'hooks/api/getters/useAuth/useAuthPermissions';
|
||||
import { useId } from 'hooks/useId';
|
||||
import { INavigationMenuItem } from 'interfaces/route';
|
||||
import { ThemeMode } from 'component/common/ThemeMode/ThemeMode';
|
||||
import { useThemeMode } from 'hooks/useThemeMode';
|
||||
import { Notifications } from 'component/common/Notifications/Notifications';
|
||||
|
||||
const StyledHeader = styled(AppBar)(({ theme }) => ({
|
||||
backgroundColor: theme.palette.headerBackground,
|
||||
@ -115,6 +118,7 @@ const Header: VFC = () => {
|
||||
const configId = useId();
|
||||
const [adminRef, setAdminRef] = useState<HTMLButtonElement | null>(null);
|
||||
const [configRef, setConfigRef] = useState<HTMLButtonElement | null>(null);
|
||||
const [showNotifications, setShowNotifications] = useState(false);
|
||||
|
||||
const [admin, setAdmin] = useState(false);
|
||||
const { permissions } = useAuthPermissions();
|
||||
@ -209,6 +213,7 @@ const Header: VFC = () => {
|
||||
}
|
||||
/>
|
||||
</StyledLink>
|
||||
|
||||
<StyledNav>
|
||||
<StyledLinks>
|
||||
<StyledLink to="/projects">Projects</StyledLink>
|
||||
@ -282,6 +287,27 @@ const Header: VFC = () => {
|
||||
</Tooltip>
|
||||
}
|
||||
/>
|
||||
<ConditionallyRender
|
||||
condition={Boolean(uiConfig?.flags?.notifications)}
|
||||
show={
|
||||
<Box sx={{ position: 'relative' }}>
|
||||
<StyledIconButton
|
||||
onClick={() =>
|
||||
setShowNotifications(
|
||||
!showNotifications
|
||||
)
|
||||
}
|
||||
>
|
||||
<NotificationsIcon />
|
||||
</StyledIconButton>
|
||||
|
||||
<ConditionallyRender
|
||||
condition={showNotifications}
|
||||
show={<Notifications />}
|
||||
/>
|
||||
</Box>
|
||||
}
|
||||
/>
|
||||
<NavigationMenu
|
||||
id={adminId}
|
||||
options={filteredMainRoutes.adminRoutes}
|
||||
|
@ -0,0 +1,32 @@
|
||||
import useSWR, { SWRConfiguration } from 'swr';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import { formatApiPath } from 'utils/formatPath';
|
||||
import handleErrorResponses from '../httpErrorResponseHandler';
|
||||
import { NotificationsSchema } from 'openapi';
|
||||
|
||||
export const useNotifications = (options: SWRConfiguration = {}) => {
|
||||
const path = formatApiPath(`api/admin/notifications`);
|
||||
const { data, error, mutate } = useSWR<NotificationsSchema>(
|
||||
path,
|
||||
fetcher,
|
||||
options
|
||||
);
|
||||
|
||||
const refetchNotifications = useCallback(() => {
|
||||
mutate().catch(console.warn);
|
||||
}, [mutate]);
|
||||
|
||||
console.log(data);
|
||||
return {
|
||||
notifications: data,
|
||||
error,
|
||||
loading: !error && !data,
|
||||
refetchNotifications,
|
||||
};
|
||||
};
|
||||
|
||||
const fetcher = async (path: string): Promise<NotificationsSchema> => {
|
||||
const res = await fetch(path).then(handleErrorResponses('Notifications'));
|
||||
const data = await res.json();
|
||||
return data;
|
||||
};
|
@ -14,7 +14,6 @@ export interface IUiConfig {
|
||||
disablePasswordAuth?: boolean;
|
||||
emailEnabled?: boolean;
|
||||
networkViewEnabled: boolean;
|
||||
|
||||
maintenanceMode?: boolean;
|
||||
toast?: IProclamationToast;
|
||||
segmentValuesLimit?: number;
|
||||
@ -48,6 +47,7 @@ export interface IFlags {
|
||||
crOnVariants?: boolean;
|
||||
showProjectApiAccess?: boolean;
|
||||
proPlanAutoCharge?: boolean;
|
||||
notifications?: boolean;
|
||||
}
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type _ExportFormat = typeof _ExportFormat[keyof typeof _ExportFormat];
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { _ExportFormat } from './_exportFormat';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface AddonParameterSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { AddonSchemaParameters } from './addonSchemaParameters';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type AddonSchemaParameters = { [key: string]: any };
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { TagTypeSchema } from './tagTypeSchema';
|
||||
import type { AddonParameterSchema } from './addonParameterSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { AddonSchema } from './addonSchema';
|
||||
import type { AddonTypeSchema } from './addonTypeSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface AdminFeaturesQuerySchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface AdminPermissionSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { AdminPermissionsSchemaPermissions } from './adminPermissionsSchemaPermissions';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { AdminPermissionSchema } from './adminPermissionSchema';
|
||||
import type { AdminPermissionsSchemaPermissionsEnvironmentsItem } from './adminPermissionsSchemaPermissionsEnvironmentsItem';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { AdminPermissionSchema } from './adminPermissionSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ConstraintSchema } from './constraintSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ApiTokenSchemaType } from './apiTokenSchemaType';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ApiTokenSchemaType =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ApiTokenSchema } from './apiTokenSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ApplicationSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ApplicationSchema } from './applicationSchema';
|
||||
|
||||
|
13
frontend/src/openapi/models/bulkMetricsSchema.ts
Normal file
13
frontend/src/openapi/models/bulkMetricsSchema.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { BulkRegistrationSchema } from './bulkRegistrationSchema';
|
||||
import type { ClientMetricsSchema } from './clientMetricsSchema';
|
||||
|
||||
export interface BulkMetricsSchema {
|
||||
applications?: BulkRegistrationSchema[];
|
||||
metrics?: ClientMetricsSchema[];
|
||||
}
|
17
frontend/src/openapi/models/bulkRegistrationSchema.ts
Normal file
17
frontend/src/openapi/models/bulkRegistrationSchema.ts
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface BulkRegistrationSchema {
|
||||
connectVia?: string[];
|
||||
appName: string;
|
||||
environment?: string;
|
||||
instanceId: string;
|
||||
interval?: number;
|
||||
started?: number;
|
||||
strategies?: string[];
|
||||
sdkVersion?: string;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ChangePasswordSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ChangeProjectSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ChangeRequestAddCommentSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestApprovalSchemaCreatedBy } from './changeRequestApprovalSchemaCreatedBy';
|
||||
|
||||
|
@ -2,11 +2,11 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestApprovalSchemaCreatedBy = {
|
||||
id?: number;
|
||||
username?: string | null;
|
||||
imageUrl?: string | null;
|
||||
username?: string;
|
||||
imageUrl?: string;
|
||||
};
|
||||
|
@ -2,11 +2,12 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCommentSchemaCreatedBy } from './changeRequestCommentSchemaCreatedBy';
|
||||
|
||||
export interface ChangeRequestCommentSchema {
|
||||
id?: number;
|
||||
text: string;
|
||||
createdBy: ChangeRequestCommentSchemaCreatedBy;
|
||||
createdAt: string;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCommentSchemaCreatedBy = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestEnvironmentConfigSchema } from './changeRequestEnvironmentConfigSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOf } from './changeRequestCreateSchemaOneOf';
|
||||
import type { ChangeRequestCreateSchemaOneOfFour } from './changeRequestCreateSchemaOneOfFour';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOfAction } from './changeRequestCreateSchemaOneOfAction';
|
||||
import type { ChangeRequestCreateSchemaOneOfPayload } from './changeRequestCreateSchemaOneOfPayload';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfAction =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOfEightAction } from './changeRequestCreateSchemaOneOfEightAction';
|
||||
import type { ChangeRequestCreateSchemaOneOfEightPayload } from './changeRequestCreateSchemaOneOfEightPayload';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfEightAction =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfEightPayload = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOfFourAction } from './changeRequestCreateSchemaOneOfFourAction';
|
||||
import type { CreateFeatureStrategySchema } from './createFeatureStrategySchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfFourAction =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOfOneoneAction } from './changeRequestCreateSchemaOneOfOneoneAction';
|
||||
import type { ChangeRequestCreateSchemaOneOfOneonePayload } from './changeRequestCreateSchemaOneOfOneonePayload';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfOneoneAction =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { VariantSchema } from './variantSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfPayload = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestCreateSchemaOneOfSixAction } from './changeRequestCreateSchemaOneOfSixAction';
|
||||
import type { UpdateFeatureStrategySchema } from './updateFeatureStrategySchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestCreateSchemaOneOfSixAction =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ChangeRequestEnvironmentConfigSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestEventSchemaPayload } from './changeRequestEventSchemaPayload';
|
||||
import type { ChangeRequestEventSchemaCreatedBy } from './changeRequestEventSchemaCreatedBy';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestEventSchemaCreatedBy = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestEventSchemaPayloadOneOf } from './changeRequestEventSchemaPayloadOneOf';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestEventSchemaPayloadOneOf = { [key: string]: any };
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestEventSchema } from './changeRequestEventSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestSchemaState } from './changeRequestSchemaState';
|
||||
import type { ChangeRequestFeatureSchema } from './changeRequestFeatureSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestSchemaCreatedBy = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestSchemaState =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestStateSchemaState } from './changeRequestStateSchemaState';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ChangeRequestStateSchemaState =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ChangeRequestSchema } from './changeRequestSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ClientApplicationSchemaStarted } from './clientApplicationSchemaStarted';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ClientApplicationSchemaStarted = string | number;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { FeatureStrategySchema } from './featureStrategySchema';
|
||||
import type { VariantSchema } from './variantSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ClientFeaturesQuerySchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ClientFeatureSchema } from './clientFeatureSchema';
|
||||
import type { SegmentSchema } from './segmentSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ClientMetricsSchemaBucket } from './clientMetricsSchemaBucket';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { DateSchema } from './dateSchema';
|
||||
import type { ClientMetricsSchemaBucketToggles } from './clientMetricsSchemaBucketToggles';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ClientMetricsSchemaBucketTogglesVariants } from './clientMetricsSchemaBucketTogglesVariants';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ClientMetricsSchemaBucketTogglesVariants = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CloneEnvironmentSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CloneFeatureSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ConstraintSchemaOperator } from './constraintSchemaOperator';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { LegalValueSchema } from './legalValueSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ContextFieldSchema } from './contextFieldSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateApiTokenSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateEnvironmentSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateFeatureSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { ConstraintSchema } from './constraintSchema';
|
||||
import type { ParametersSchema } from './parametersSchema';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateInvitedUserSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateProjectSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { CreateRoleWithPermissionsSchemaPermissionsItem } from './createRoleWithPermissionsSchemaPermissionsItem';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type CreateRoleWithPermissionsSchemaPermissionsItem = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateServiceAccountSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface CreateUserSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type DateSchema = string | number;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { EdgeTokenSchemaType } from './edgeTokenSchemaType';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type EdgeTokenSchemaType =
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface EmailSchema {
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface EnvironmentProjectSchema {
|
||||
|
@ -2,16 +2,26 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
/**
|
||||
* A definition of the project environment
|
||||
*/
|
||||
export interface EnvironmentSchema {
|
||||
/** The name of the environment */
|
||||
name: string;
|
||||
/** The type of the environment */
|
||||
type: string;
|
||||
/** `true` if the environment is enabled for the project, otherwise `false`. */
|
||||
enabled: boolean;
|
||||
protected?: boolean;
|
||||
/** The sort order of the environment in the environments list */
|
||||
sortOrder?: number;
|
||||
/** The number of projects with this environment */
|
||||
projectCount?: number | null;
|
||||
/** The number of API tokens for the project environment */
|
||||
apiTokenCount?: number | null;
|
||||
/** The number of enabled toggles for the project environment */
|
||||
enabledToggleCount?: number | null;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { EnvironmentProjectSchema } from './environmentProjectSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { EnvironmentSchema } from './environmentSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { EventSchemaData } from './eventSchemaData';
|
||||
import type { EventSchemaPreData } from './eventSchemaPreData';
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type EventSchemaData = { [key: string]: any };
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type EventSchemaPreData = { [key: string]: any };
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { EventSchema } from './eventSchema';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface ExportQuerySchema {
|
||||
|
@ -2,14 +2,15 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { FeatureSchema } from './featureSchema';
|
||||
import type { FeatureStrategySchema } from './featureStrategySchema';
|
||||
import type { FeatureEnvironmentSchema } from './featureEnvironmentSchema';
|
||||
import type { ContextFieldSchema } from './contextFieldSchema';
|
||||
import type { FeatureTagSchema } from './featureTagSchema';
|
||||
import type { SegmentSchema } from './segmentSchema';
|
||||
import type { ExportResultSchemaSegmentsItem } from './exportResultSchemaSegmentsItem';
|
||||
import type { TagTypeSchema } from './tagTypeSchema';
|
||||
|
||||
export interface ExportResultSchema {
|
||||
features: FeatureSchema[];
|
||||
@ -17,5 +18,6 @@ export interface ExportResultSchema {
|
||||
featureEnvironments?: FeatureEnvironmentSchema[];
|
||||
contextFields?: ContextFieldSchema[];
|
||||
featureTags?: FeatureTagSchema[];
|
||||
segments?: SegmentSchema[];
|
||||
segments?: ExportResultSchemaSegmentsItem[];
|
||||
tagTypes: TagTypeSchema[];
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export type ExportResultSchemaSegmentsItem = {
|
||||
id: number;
|
||||
name?: string;
|
||||
};
|
@ -2,7 +2,7 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
|
||||
export interface FeatureEnvironmentMetricsSchema {
|
||||
|
@ -2,19 +2,28 @@
|
||||
* Generated by orval v6.11.0 🍺
|
||||
* Do not edit manually.
|
||||
* Unleash API
|
||||
* OpenAPI spec version: 4.21.0-beta.1
|
||||
* OpenAPI spec version: 4.22.0-beta.3
|
||||
*/
|
||||
import type { FeatureStrategySchema } from './featureStrategySchema';
|
||||
import type { VariantSchema } from './variantSchema';
|
||||
|
||||
/**
|
||||
* A detailed description of the feature environment
|
||||
*/
|
||||
export interface FeatureEnvironmentSchema {
|
||||
/** The name of the environment */
|
||||
name: string;
|
||||
featureName?: string;
|
||||
environment?: string;
|
||||
/** The type of the environment */
|
||||
type?: string;
|
||||
/** `true` if the feature is enabled for the environment, otherwise `false`. */
|
||||
enabled: boolean;
|
||||
/** The sort order of the feature environment in the feature environments list */
|
||||
sortOrder?: number;
|
||||
variantCount?: number;
|
||||
/** A list of activation strategies for the feature environment */
|
||||
strategies?: FeatureStrategySchema[];
|
||||
/** A list of variants for the feature environment */
|
||||
variants?: VariantSchema[];
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user