mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)
This commit is contained in:
@@ -18,17 +18,17 @@ export namespace BrevoNode {
|
||||
type BBCEmail = { bbc: Email[] };
|
||||
type ValidatedEmail = ToEmail | SenderEmail | CCEmail | BBCEmail;
|
||||
|
||||
const enum OVERRIDE_MAP_VALUES {
|
||||
CATEGORY = 'category',
|
||||
NORMAL = 'boolean',
|
||||
TRANSACTIONAL = 'id',
|
||||
}
|
||||
const OVERRIDE_MAP_VALUES = {
|
||||
CATEGORY: 'category',
|
||||
NORMAL: 'boolean',
|
||||
TRANSACTIONAL: 'id',
|
||||
} as const;
|
||||
|
||||
const enum OVERRIDE_MAP_TYPE {
|
||||
CATEGORY = 'category',
|
||||
NORMAL = 'normal',
|
||||
TRANSACTIONAL = 'transactional',
|
||||
}
|
||||
const OVERRIDE_MAP_TYPE = {
|
||||
CATEGORY: 'category',
|
||||
NORMAL: 'normal',
|
||||
TRANSACTIONAL: 'transactional',
|
||||
} as const;
|
||||
|
||||
export const INTERCEPTORS = new Map<string, (body: JsonObject) => void>([
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user