feat: expand intelligent investigation workspace
This commit is contained in:
@@ -256,8 +256,9 @@ function isManagedResult(value: unknown): value is PeripheralWorkOrder | Periphe
|
||||
const item = value as Record<string, unknown>;
|
||||
if (item.deleted === true) return typeof item.resource_id === "string" &&
|
||||
(item.resource_type === "work_order" || item.resource_type === "test_data_record");
|
||||
return (typeof item.work_order_id === "string" || typeof item.record_id === "string") &&
|
||||
typeof item.revision === "number" && item.origin === "synthetic";
|
||||
if (typeof item.revision !== "number") return false;
|
||||
if (typeof item.work_order_id === "string") return item.origin === "system_data";
|
||||
return typeof item.record_id === "string" && item.origin === "synthetic";
|
||||
}
|
||||
|
||||
export class PeripheralSampleError extends Error {
|
||||
|
||||
Reference in New Issue
Block a user