import { ProjectId, ScenarioFieldConfigId, CustomFieldValue, ExecutorOrCreator, TestplanId, CommonGroupId, TagId, TestcaseId, TestcaseType, TestcaseStepType, TestcasePriority, UserId, TaskflowStatusId, OrganizationId } from 'teambition-types'; import { ProjectSchema } from './Project'; import { TestplanSchema } from './Testplan'; import { CommonGroupSchema } from './CommonGroup'; import { TesthubSchema } from './Testhub'; export interface TestcaseSchema { _id: TestcaseId; _commongroupId: CommonGroupId; _fromHubTestcaseId: TestcaseId | null; _creatorId: UserId; _executorId: UserId | null; _flowstatusId: TaskflowStatusId; _projectId: ProjectId; _organizationId: OrganizationId; _testhubId: CommonGroupId; _testplanId: TestplanId; _scenariofieldconfigId: ScenarioFieldConfigId; accomplished: string; caseType: TestcaseType; customfields: CustomFieldValue[]; executor: ExecutorOrCreator | null; involveMembers: UserId[]; involvers: ExecutorOrCreator[]; isArchived: boolean; isDeleted: boolean; isDone: boolean; objectType: 'testcase'; pos?: number; precondition: string; priority: TestcasePriority; steps: TestcaseStepType[]; tagIds: TagId[]; title: string; created: string; updated: string; versionUpdated: string; syncDate: string | null; project: ProjectSchema | null; testplan: TestplanSchema | null; commongroup: CommonGroupSchema | null; testhub: TesthubSchema | null; }