-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
60 lines (55 loc) · 1.53 KB
/
types.ts
File metadata and controls
60 lines (55 loc) · 1.53 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
export enum AppView {
LANDING = 'landing',
CREATOR_LANDING = 'creator_landing',
DASHBOARD = 'dashboard',
GENERATOR = 'generator',
LIVE_GENERATOR = 'live_generator',
LIBRARY = 'library',
SETTINGS = 'settings',
SUBSCRIPTION = 'subscription',
API_KEYS = 'api_keys',
PRIVACY = 'privacy',
TERMS = 'terms',
// SEO industry pages
MANUFACTURING = 'manufacturing',
HEALTHCARE = 'healthcare',
TRAINING = 'training'
}
export interface SOPStep {
id: string;
timestamp: string;
title: string;
description: string;
safetyWarnings?: string[];
toolsRequired?: string[];
thumbnail?: string;
image_url?: string;
frameIndex?: number; // Gemini-selected frame index for this step (used during mapping)
}
export interface FrameOption {
timestamp: string;
imageBase64: string;
}
export interface SOP {
id: string;
title: string;
description: string;
createdAt: string;
sourceType: 'upload' | 'youtube' | 'live';
sourceUrl?: string;
steps: SOPStep[];
numSteps?: number; // From database - used when steps not yet loaded (lazy loading)
status: 'processing' | 'completed' | 'failed';
equipmentInfo?: string;
ppeRequirements?: string[];
materialsRequired?: string[];
thumbnail_url?: string;
allFrames?: FrameOption[];
videoUrl?: string; // For live recordings - embedded video playback
videoBlob?: Blob; // Temporary - only used for uploading, not stored
presentationUrl?: string; // Generated presentation video URL
}
export interface AnalysisProgress {
status: string;
percentage: number;
}