mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(editor): Migrate versions api to @n8n/rest-client-api (no-changelog) (#16147)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export * from './browser';
|
||||
export * from './instance';
|
||||
|
||||
export const LICENSE_FEATURES = {
|
||||
SHARING: 'feat:sharing',
|
||||
@@ -96,9 +97,3 @@ export const LDAP_DEFAULT_CONFIGURATION: LdapConfig = {
|
||||
searchPageSize: 0,
|
||||
searchTimeout: 60,
|
||||
};
|
||||
|
||||
export const INSTANCE_TYPES = ['main', 'webhook', 'worker'] as const;
|
||||
export type InstanceType = (typeof INSTANCE_TYPES)[number];
|
||||
|
||||
export const INSTANCE_ROLES = ['unset', 'leader', 'follower'] as const;
|
||||
export type InstanceRole = (typeof INSTANCE_ROLES)[number];
|
||||
|
||||
7
packages/@n8n/constants/src/instance.ts
Normal file
7
packages/@n8n/constants/src/instance.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const INSTANCE_ID_HEADER = 'n8n-instance-id';
|
||||
|
||||
export const INSTANCE_TYPES = ['main', 'webhook', 'worker'] as const;
|
||||
export type InstanceType = (typeof INSTANCE_TYPES)[number];
|
||||
|
||||
export const INSTANCE_ROLES = ['unset', 'leader', 'follower'] as const;
|
||||
export type InstanceRole = (typeof INSTANCE_ROLES)[number];
|
||||
Reference in New Issue
Block a user