-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
86 lines (75 loc) · 2.28 KB
/
Copy pathtypes.ts
File metadata and controls
86 lines (75 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export interface StandardDocument {
id: string;
name: string;
content: string;
applicability: 'always' | 'sometimes';
}
export interface Standard {
id: string;
name: string;
description: string;
documents: StandardDocument[];
}
export interface ReportTemplateSection {
id: string;
name: string;
content: string; // The prompt/template for this section
}
export interface ReportTemplate {
id: 'validation_report' | 'verification_report' | 'ghg_inventory_report' | 'corsia_report';
name: string;
sections: ReportTemplateSection[];
}
export interface ProjectDocument {
id: number;
name: string;
content: string;
}
export enum FindingType {
CL = 'CL', // Clarification Request
CAR = 'CAR', // Corrective Action Request
FAR = 'FAR', // Forward Action Request
}
export interface Finding {
type: FindingType;
description: string;
reference: string;
}
export type LibraryDocumentType = 'finding' | 'report' | 'response_finding' | 'response_registry' | 'response_technical' | 'knowledge_base';
export interface LibraryDocument {
id: string;
name: string;
content: string;
type: LibraryDocumentType;
}
export interface SamplingParameters {
approach: 'estimation' | 'acceptance';
method: 'simple_random' | 'stratified' | 'systematic' | 'cluster_single' | 'cluster_multi';
populationSize: string;
aql?: string; // Acceptable Quality Level
uql?: string; // Unacceptable Quality Level
producerRisk?: string;
consumerRisk?: string;
confidence?: string;
precision?: string;
seed?: string; // Random seed for reproducibility
additionalContext: string;
}
export interface Project {
id: string;
selectedStandard: Standard;
selectedOptionalDocuments: StandardDocument[];
selectedGoverningDocuments: StandardDocument[];
documents: ProjectDocument[];
findings: Finding[];
samplingPlan: string;
report: {
validation: Record<string, string>; // sectionId -> generated content
verification: Record<string, string>; // sectionId -> generated content
ghg_inventory: Record<string, string>; // sectionId -> generated content
corsia: Record<string, string>; // sectionId -> generated content
};
responses: Record<string, string>; // Maps received comment to drafted response
projectMode: string;
}
export type ActiveAction = string | null;