mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
chore: remove unused interfaces from old state import (#7448)
This commit is contained in:
parent
ffe306714b
commit
5d0fc071e7
@ -1,7 +1,7 @@
|
|||||||
import type { ITagType } from '../features/tag-type/tag-type-store-type';
|
import type { ITagType } from '../features/tag-type/tag-type-store-type';
|
||||||
import type { LogProvider } from '../logger';
|
import type { LogProvider } from '../logger';
|
||||||
import type { IRole } from './stores/access-store';
|
import type { IRole } from './stores/access-store';
|
||||||
import type { IAuditUser, IUser } from './user';
|
import type { IUser } from './user';
|
||||||
import type { ALL_OPERATORS } from '../util';
|
import type { ALL_OPERATORS } from '../util';
|
||||||
import type { IProjectStats } from '../features/project/project-service';
|
import type { IProjectStats } from '../features/project/project-service';
|
||||||
import type { CreateFeatureStrategySchema } from '../openapi';
|
import type { CreateFeatureStrategySchema } from '../openapi';
|
||||||
@ -482,24 +482,6 @@ export interface IMetricsBucket {
|
|||||||
toggles: { [key: string]: IMetricCounts };
|
toggles: { [key: string]: IMetricCounts };
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IImportFile extends ImportCommon {
|
|
||||||
file: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ImportCommon {
|
|
||||||
dropBeforeImport?: boolean;
|
|
||||||
keepExisting?: boolean;
|
|
||||||
/** @deprecated should use auditUser instead */
|
|
||||||
userName?: string;
|
|
||||||
/** @deprecated should use auditUser instead */
|
|
||||||
userId?: number;
|
|
||||||
auditUser: IAuditUser;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IImportData extends ImportCommon {
|
|
||||||
data: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create project aligns with #/components/schemas/createProjectSchema
|
// Create project aligns with #/components/schemas/createProjectSchema
|
||||||
// joi is providing default values when the optional inputs are not provided
|
// joi is providing default values when the optional inputs are not provided
|
||||||
// const data = await projectSchema.validateAsync(newProject);
|
// const data = await projectSchema.validateAsync(newProject);
|
||||||
|
Loading…
Reference in New Issue
Block a user