mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
export const enum AlertStatus {
|
||||
NEW = 'New',
|
||||
UPDATED = 'Updated',
|
||||
IGNORED = 'Ignored',
|
||||
IMPORTED = 'Imported',
|
||||
}
|
||||
export const enum TLP {
|
||||
white,
|
||||
green,
|
||||
amber,
|
||||
red,
|
||||
}
|
||||
|
||||
export const AlertStatuses = {
|
||||
NEW: 'New',
|
||||
UPDATED: 'Updated',
|
||||
IGNORED: 'Ignored',
|
||||
IMPORTED: 'Imported',
|
||||
} as const;
|
||||
|
||||
export type AlertStatus = (typeof AlertStatuses)[keyof typeof AlertStatuses];
|
||||
|
||||
export const TLPs = {
|
||||
white: 0,
|
||||
green: 1,
|
||||
amber: 2,
|
||||
red: 3,
|
||||
} as const;
|
||||
|
||||
export type TLP = (typeof TLPs)[keyof typeof TLPs];
|
||||
|
||||
export interface IAlert {
|
||||
// Required attributes
|
||||
|
||||
Reference in New Issue
Block a user