MCPcopy Index your code
hub / github.com/simstudioai/sim / workflowRow

Function workflowRow

apps/sim/lib/logs/list-logs.test.ts:77–106  ·  view source on GitHub ↗
(overrides: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

75}
76
77function workflowRow(overrides: Record<string, unknown> = {}) {
78 return {
79 id: 'log-1',
80 workflowId: 'wf-1',
81 executionId: 'exec-1',
82 deploymentVersionId: null,
83 level: 'info',
84 status: 'success',
85 trigger: 'manual',
86 startedAt: new Date('2026-01-01T00:00:00.000Z'),
87 endedAt: new Date('2026-01-01T00:00:01.000Z'),
88 totalDurationMs: 1000,
89 costTotal: '0.1',
90 createdAt: new Date('2026-01-01T00:00:00.000Z'),
91 workflowName: 'My Workflow',
92 workflowDescription: null,
93 workflowFolderId: null,
94 workflowUserId: 'user-1',
95 workflowWorkspaceId: 'ws-1',
96 workflowCreatedAt: new Date('2026-01-01T00:00:00.000Z'),
97 workflowUpdatedAt: new Date('2026-01-01T00:00:00.000Z'),
98 pausedStatus: null,
99 pausedTotalPauseCount: 0,
100 pausedResumedCount: 0,
101 deploymentVersion: null,
102 deploymentVersionName: null,
103 sortValue: new Date('2026-01-01T00:00:00.000Z'),
104 ...overrides,
105 }
106}
107
108function jobRow(overrides: Record<string, unknown> = {}) {
109 return {

Callers 1

list-logs.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected