refactor: extract entry creation logic

This commit is contained in:
Carlos Valente
2026-02-13 20:36:54 +01:00
committed by Carlos Valente
parent 5777ef3532
commit 4827117163
11 changed files with 196 additions and 112 deletions
@@ -17,10 +17,15 @@ import {
URLPreset,
ViewSettings,
} from 'ontime-types';
import { customFieldLabelToKey, checkRegex, isKnownTimerType, validateEndAction } from 'ontime-utils';
import {
customFieldLabelToKey,
checkRegex,
isKnownTimerType,
validateEndAction,
eventDef as eventModel,
} from 'ontime-utils';
import { is } from '../../../utils/is.js';
import { event as eventModel } from '../../../models/eventsDefinition.js';
import { ONTIME_VERSION } from '../../../ONTIME_VERSION.js';
import { getPartialProject } from '../../../models/dataModel.js';