import { CSV_JOB_TYPE , PDF_JOB_TYPE , PNG_JOB_TYPE , PDF_JOB_TYPE_V2 , PNG_JOB_TYPE_V2 , CSV_JOB_TYPE_DEPRECATED , } from './constants' ; export const isJobV2Params = ( { sharingData } ) : boolean => sharingData . locatorParams != null ; export const prettyPrintJobType = ( type ) => { switch ( type ) { case PDF_JOB_TYPE : case PDF_JOB_TYPE_V2 : return 'PDF' ; case CSV_JOB_TYPE : case CSV_JOB_TYPE_DEPRECATED : return 'CSV' ; case PNG_JOB_TYPE : case PNG_JOB_TYPE_V2 : return 'PNG' ; default : return type ; } } ;