fix typescript errors and update dependencies

This commit is contained in:
itsrubberduck
2026-02-17 18:13:04 +01:00
parent d34fba5cba
commit 8f45c3397d
25 changed files with 3377 additions and 2583 deletions

View File

@@ -13,7 +13,7 @@ import type {
export interface DecisionNodeDocument
extends mongoose.Document,
Omit<DecisionNodeModel, 'stateId' | 'transitions'> {
Omit<DecisionNodeModel, 'stateId' | 'transitions' | 'createdAt' | 'updatedAt'> {
flow: mongoose.Types.ObjectId
stateId: string
transitions: DecisionNodeTransition[]
@@ -175,7 +175,7 @@ const decisionNodeSchema = new mongoose.Schema<DecisionNodeDocument>(
elseSayTemplate: { type: String },
readbackRequired: { type: [String], default: () => [] },
autoBehavior: { type: String },
actions: { type: [mongoose.Schema.Types.Mixed], default: () => [] },
actions: { type: [mongoose.Schema.Types.Mixed], default: () => [] } as any,
handoff: {
type: new mongoose.Schema(
{