@@ -57,6 +57,7 @@ describe('Scheduled Workflow Execution API Route', () => {
5757 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
5858 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
5959 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
60+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
6061 } ) )
6162
6263 vi . doMock ( '@sim/db' , ( ) => {
@@ -92,6 +93,12 @@ describe('Scheduled Workflow Execution API Route', () => {
9293 status : 'status' ,
9394 nextRunAt : 'nextRunAt' ,
9495 lastQueuedAt : 'lastQueuedAt' ,
96+ deploymentVersionId : 'deploymentVersionId' ,
97+ } ,
98+ workflowDeploymentVersion : {
99+ id : 'id' ,
100+ workflowId : 'workflowId' ,
101+ isActive : 'isActive' ,
95102 } ,
96103 workflow : {
97104 id : 'id' ,
@@ -139,6 +146,7 @@ describe('Scheduled Workflow Execution API Route', () => {
139146 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
140147 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
141148 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
149+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
142150 } ) )
143151
144152 vi . doMock ( '@sim/db' , ( ) => {
@@ -174,6 +182,12 @@ describe('Scheduled Workflow Execution API Route', () => {
174182 status : 'status' ,
175183 nextRunAt : 'nextRunAt' ,
176184 lastQueuedAt : 'lastQueuedAt' ,
185+ deploymentVersionId : 'deploymentVersionId' ,
186+ } ,
187+ workflowDeploymentVersion : {
188+ id : 'id' ,
189+ workflowId : 'workflowId' ,
190+ isActive : 'isActive' ,
177191 } ,
178192 workflow : {
179193 id : 'id' ,
@@ -216,6 +230,7 @@ describe('Scheduled Workflow Execution API Route', () => {
216230 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
217231 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
218232 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
233+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
219234 } ) )
220235
221236 vi . doMock ( '@sim/db' , ( ) => {
@@ -238,6 +253,12 @@ describe('Scheduled Workflow Execution API Route', () => {
238253 status : 'status' ,
239254 nextRunAt : 'nextRunAt' ,
240255 lastQueuedAt : 'lastQueuedAt' ,
256+ deploymentVersionId : 'deploymentVersionId' ,
257+ } ,
258+ workflowDeploymentVersion : {
259+ id : 'id' ,
260+ workflowId : 'workflowId' ,
261+ isActive : 'isActive' ,
241262 } ,
242263 workflow : {
243264 id : 'id' ,
@@ -280,6 +301,7 @@ describe('Scheduled Workflow Execution API Route', () => {
280301 not : vi . fn ( ( condition ) => ( { type : 'not' , condition } ) ) ,
281302 isNull : vi . fn ( ( field ) => ( { type : 'isNull' , field } ) ) ,
282303 or : vi . fn ( ( ...conditions ) => ( { type : 'or' , conditions } ) ) ,
304+ sql : vi . fn ( ( strings , ...values ) => ( { type : 'sql' , strings, values } ) ) ,
283305 } ) )
284306
285307 vi . doMock ( '@sim/db' , ( ) => {
@@ -325,6 +347,12 @@ describe('Scheduled Workflow Execution API Route', () => {
325347 status : 'status' ,
326348 nextRunAt : 'nextRunAt' ,
327349 lastQueuedAt : 'lastQueuedAt' ,
350+ deploymentVersionId : 'deploymentVersionId' ,
351+ } ,
352+ workflowDeploymentVersion : {
353+ id : 'id' ,
354+ workflowId : 'workflowId' ,
355+ isActive : 'isActive' ,
328356 } ,
329357 workflow : {
330358 id : 'id' ,
0 commit comments