MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / makeRecord

Function makeRecord

packages/server/src/schedule/ScheduleExecutor.test.ts:74–87  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

72
73/** Minimal ScheduleRecord-like object */
74const makeRecord = (overrides: Record<string, unknown> = {}) => ({
75 id: 'rec-1',
76 targetId: 'flow-1',
77 triggerType: ScheduleTriggerType.AGENTFLOW,
78 cronExpression: '* * * * *',
79 timezone: 'UTC',
80 enabled: true,
81 workspaceId: 'ws-1',
82 scheduleInputMode: 'text' as const,
83 defaultInput: 'hello',
84 endDate: undefined as Date | undefined,
85 nextRunAt: undefined as Date | undefined,
86 ...overrides
87})
88
89/** Minimal ChatFlow-like object of AGENTFLOW type */
90const makeChatFlow = (overrides: Record<string, unknown> = {}) => ({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected