refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)

This commit is contained in:
Alex Grozav
2025-03-24 14:40:19 +02:00
committed by GitHub
parent defeb2e817
commit b9608647ca
31 changed files with 422 additions and 345 deletions

View File

@@ -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>([
[