mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Move frontend settings to @n8n/api-types (no-changelog) (#10856)
This commit is contained in:
committed by
GitHub
parent
3c15890a5b
commit
430c14ad19
@@ -1,7 +1,12 @@
|
||||
import type { Component } from 'vue';
|
||||
import type { NotificationOptions as ElementNotificationOptions } from 'element-plus';
|
||||
import type { Connection } from '@jsplumb/core';
|
||||
import type { Iso8601DateTimeString } from '@n8n/api-types';
|
||||
import type {
|
||||
FrontendSettings,
|
||||
Iso8601DateTimeString,
|
||||
IUserManagementSettings,
|
||||
IVersionNotificationSettings,
|
||||
} from '@n8n/api-types';
|
||||
import type { Scope } from '@n8n/permissions';
|
||||
import type { IMenuItem, NodeCreatorTag } from 'n8n-design-system';
|
||||
import type {
|
||||
@@ -31,10 +36,8 @@ import type {
|
||||
FeatureFlags,
|
||||
ExecutionStatus,
|
||||
ITelemetryTrackProperties,
|
||||
IUserManagementSettings,
|
||||
WorkflowSettings,
|
||||
IUserSettings,
|
||||
IN8nUISettings,
|
||||
BannerName,
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
@@ -496,12 +499,6 @@ export interface IUser extends IUserResponse {
|
||||
mfaEnabled: boolean;
|
||||
}
|
||||
|
||||
export interface IVersionNotificationSettings {
|
||||
enabled: boolean;
|
||||
endpoint: string;
|
||||
infoUrl: string;
|
||||
}
|
||||
|
||||
export interface IUserListAction {
|
||||
label: string;
|
||||
value: string;
|
||||
@@ -1090,7 +1087,7 @@ export interface INodeCreatorState {
|
||||
|
||||
export interface ISettingsState {
|
||||
initialized: boolean;
|
||||
settings: IN8nUISettings;
|
||||
settings: FrontendSettings;
|
||||
userManagement: IUserManagementSettings;
|
||||
templatesEndpointHealthy: boolean;
|
||||
api: {
|
||||
@@ -1643,7 +1640,7 @@ export type EnterpriseEditionFeatureKey =
|
||||
| 'WorkerView'
|
||||
| 'AdvancedPermissions';
|
||||
|
||||
export type EnterpriseEditionFeatureValue = keyof Omit<IN8nUISettings['enterprise'], 'projects'>;
|
||||
export type EnterpriseEditionFeatureValue = keyof Omit<FrontendSettings['enterprise'], 'projects'>;
|
||||
|
||||
export interface IN8nPromptResponse {
|
||||
updated: boolean;
|
||||
|
||||
Reference in New Issue
Block a user