mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Forbid raw enums (no-changelog)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
export enum AlertStatus {
|
||||
export const enum AlertStatus {
|
||||
NEW = 'New',
|
||||
UPDATED = 'Updated',
|
||||
IGNORED = 'Ignored',
|
||||
IMPORTED = 'Imported',
|
||||
}
|
||||
export enum TLP {
|
||||
export const enum TLP {
|
||||
white,
|
||||
green,
|
||||
amber,
|
||||
|
||||
@@ -31,13 +31,13 @@ export interface ICase {
|
||||
upadtedAt?: Date;
|
||||
}
|
||||
|
||||
export enum CaseStatus {
|
||||
export const enum CaseStatus {
|
||||
OPEN = 'Open',
|
||||
RESOLVED = 'Resolved',
|
||||
DELETED = 'Deleted',
|
||||
}
|
||||
|
||||
export enum CaseResolutionStatus {
|
||||
export const enum CaseResolutionStatus {
|
||||
INDETERMINATE = 'Indeterminate',
|
||||
FALSEPOSITIVE = 'FalsePositive',
|
||||
TRUEPOSITIVE = 'TruePositive',
|
||||
@@ -45,7 +45,7 @@ export enum CaseResolutionStatus {
|
||||
DUPLICATED = 'Duplicated',
|
||||
}
|
||||
|
||||
export enum CaseImpactStatus {
|
||||
export const enum CaseImpactStatus {
|
||||
NOIMPACT = 'NoImpact',
|
||||
WITHIMPACT = 'WithImpact',
|
||||
NOTAPPLICABLE = 'NotApplicable',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { IAttachment } from './ObservableInterface';
|
||||
export enum LogStatus {
|
||||
export const enum LogStatus {
|
||||
OK = 'Ok',
|
||||
DELETED = 'Deleted',
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import type { TLP } from './AlertInterface';
|
||||
|
||||
export enum ObservableStatus {
|
||||
export const enum ObservableStatus {
|
||||
OK = 'Ok',
|
||||
DELETED = 'Deleted',
|
||||
}
|
||||
export enum ObservableDataType {
|
||||
export const enum ObservableDataType {
|
||||
'domain' = 'domain',
|
||||
'file' = 'file',
|
||||
'filename' = 'filename',
|
||||
|
||||
@@ -17,7 +17,7 @@ export interface ITask {
|
||||
upadtedAt?: Date;
|
||||
}
|
||||
|
||||
export enum TaskStatus {
|
||||
export const enum TaskStatus {
|
||||
WAITING = 'Waiting',
|
||||
INPROGRESS = 'InProgress',
|
||||
COMPLETED = 'Completed',
|
||||
|
||||
Reference in New Issue
Block a user