Files
pp-tcms/frontend/types/case.ts
Takeshi Kimata ac9af2d604 Apply i18n
2024-05-05 21:20:56 +09:00

117 lines
2.2 KiB
TypeScript

type CaseType = {
id: number;
title: string;
state: number;
priority: number;
type: number;
automationStatus: number;
description: string;
template: number;
preConditions: string;
expectedResults: string;
folderId: number;
Steps: StepType[]; // additional property
Attachments: AttachmentType[]; // additional property
isIncluded: boolean; // additional property
runStatus: number; // additional property
};
type CaseStepType = {
createdAt: Date;
updatedAt: Date;
CaseId: number;
StepId: number;
};
type StepType = {
id: number;
step: string;
result: string;
createdAt: Date;
updatedAt: Date;
caseSteps: CaseStepType;
};
type CaseAttachmentType = {
createdAt: Date;
updatedAt: Date;
CaseId: number;
AttachmentId: number;
};
type AttachmentType = {
id: number;
title: string;
detail: string;
path: string;
createdAt: Date;
updatedAt: Date;
caseAttachments: CaseAttachmentType;
};
export type CasesMessages = {
testCaseList: string;
id: string;
title: string;
priority: string;
actions: string;
deleteCase: string;
delete: string;
newTestCase: string;
status: string;
critical: string;
high: string;
medium: string;
low: string;
};
export type CaseMessages = {
backToCases: string;
updating: string;
update: string;
basic: string;
title: string;
pleaseEnterTitle: string;
description: string;
testCaseDescription: string;
priority: string;
critical: string;
high: string;
medium: string;
low: string;
type: string;
other: string;
security: string;
performance: string;
accessibility: string;
functional: string;
acceptance: string;
usability: string;
smokeSanity: string;
compatibility: string;
destructive: string;
regression: string;
automated: string;
manual: string;
template: string;
testDetail: string;
preconditions: string;
step: string;
text: string;
steps: string;
newStep: string;
detailsOfTheStep: string;
expectedResult: string;
deleteThisStep: string;
insertStep: string;
attachments: string;
delete: string;
download: string;
deleteFile: string;
clickToUpload: string;
orDragAndDrop: string;
maxFileSize: string;
};
export { CaseType, StepType, AttachmentType, CasesMessages, CaseMessages };