import { CronProcess } from '@dark-rush-photography/shared/types' ; Cypress . Commands . add ( 'findAllAdminCronProcesses' , ( authHeaders ) : Cypress . Chainable < Cypress . Response < CronProcess [ ] > > => cy . request ( { method : 'GET' , url : '/api/v1/admin/cron-processes' , headers : { ... authHeaders , } , failOnStatusCode : false , } ) ) ; Cypress . Commands . add ( 'findOneAdminCronProcesses' , ( authHeaders , key ) : Cypress . Chainable < Cypress . Response < CronProcess > > => cy . request ( { method : 'GET' , url : `/api/v1/admin/cron-processes/${ key }` , headers : { ... authHeaders , } , failOnStatusCode : false , } ) ) ; Cypress . Commands . add ( 'deleteAdminCronProcesses' , ( authHeaders , key ) : Cypress . Chainable < Cypress . Response < void > > => cy . request ( { method : 'DELETE' , url : `/api/v1/admin/cron-processes/${ key }` , headers : { ... authHeaders , } , failOnStatusCode : false , } ) ) ;