13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
import type { ModelDerivativeServiceDesignManifest } from '@/modules/acc/domain/types'
|
|
|
|
export const isReadyForImport = (
|
|
manifest: ModelDerivativeServiceDesignManifest
|
|
): boolean => {
|
|
return (
|
|
manifest.derivatives?.some(
|
|
({ status, outputType, overrideOutputType }) =>
|
|
[outputType, overrideOutputType].includes('svf2') && status === 'success'
|
|
) ?? false
|
|
)
|
|
}
|