@optifye/dashboard-core 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +31 -2
- package/dist/index.d.ts +31 -2
- package/dist/index.js +780 -162
- package/dist/index.mjs +781 -163
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -475,6 +475,8 @@ interface Break {
|
|
|
475
475
|
endTime: string;
|
|
476
476
|
/** Duration of the break in minutes */
|
|
477
477
|
duration: number;
|
|
478
|
+
/** Break remarks */
|
|
479
|
+
remarks?: string;
|
|
478
480
|
}
|
|
479
481
|
/**
|
|
480
482
|
* Represents day or night shift time configuration
|
|
@@ -521,7 +523,7 @@ interface BreakRowProps {
|
|
|
521
523
|
/** Index of this break in the list */
|
|
522
524
|
index: number;
|
|
523
525
|
/** Function to update break time */
|
|
524
|
-
onUpdate: (index: number, field: 'startTime' | 'endTime', value: string) => void;
|
|
526
|
+
onUpdate: (index: number, field: 'startTime' | 'endTime' | 'remarks', value: string) => void;
|
|
525
527
|
/** Function to remove this break */
|
|
526
528
|
onRemove: (index: number) => void;
|
|
527
529
|
}
|
|
@@ -544,7 +546,7 @@ interface ShiftPanelProps {
|
|
|
544
546
|
/** Function to handle end time changes */
|
|
545
547
|
onEndTimeChange: (value: string) => void;
|
|
546
548
|
/** Function to update break times */
|
|
547
|
-
onBreakUpdate: (index: number, field: 'startTime' | 'endTime', value: string) => void;
|
|
549
|
+
onBreakUpdate: (index: number, field: 'startTime' | 'endTime' | 'remarks', value: string) => void;
|
|
548
550
|
/** Function to remove a break */
|
|
549
551
|
onBreakRemove: (index: number) => void;
|
|
550
552
|
/** Function to add a new break */
|
|
@@ -895,6 +897,7 @@ interface BottleneckVideoData {
|
|
|
895
897
|
type: 'bottleneck' | 'low_value' | 'best_cycle_time' | 'worst_cycle_time' | 'missing_quality_check';
|
|
896
898
|
originalUri: string;
|
|
897
899
|
cycle_time_seconds?: number;
|
|
900
|
+
creation_timestamp?: string;
|
|
898
901
|
}
|
|
899
902
|
interface VideoSummary {
|
|
900
903
|
counts: Record<string, number>;
|
|
@@ -908,6 +911,9 @@ interface S3ClipsAPIParams {
|
|
|
908
911
|
limit?: number;
|
|
909
912
|
mode?: 'summary' | 'full';
|
|
910
913
|
includeCycleTime?: boolean;
|
|
914
|
+
includeMetadata?: boolean;
|
|
915
|
+
timestampStart?: string;
|
|
916
|
+
timestampEnd?: string;
|
|
911
917
|
}
|
|
912
918
|
interface S3ListObjectsParams {
|
|
913
919
|
workspaceId: string;
|
|
@@ -916,9 +922,32 @@ interface S3ListObjectsParams {
|
|
|
916
922
|
maxKeys?: number;
|
|
917
923
|
}
|
|
918
924
|
interface VideoMetadata {
|
|
925
|
+
camera_id?: string;
|
|
926
|
+
workspace_id?: string;
|
|
927
|
+
sop_name?: string;
|
|
928
|
+
violation_start_frame?: number;
|
|
929
|
+
violation_end_frame?: number;
|
|
930
|
+
video_start_frame?: number;
|
|
931
|
+
video_end_frame?: number;
|
|
932
|
+
video_frame_count?: number;
|
|
933
|
+
video_duration_seconds?: number;
|
|
934
|
+
hls_playlist_s3_path?: string;
|
|
935
|
+
shift_id?: number;
|
|
936
|
+
upload_timestamp?: string;
|
|
937
|
+
transcoder_service_version?: string;
|
|
919
938
|
original_task_metadata?: {
|
|
939
|
+
sop_name?: string;
|
|
940
|
+
start_frame?: number;
|
|
941
|
+
end_frame?: number;
|
|
920
942
|
cycle_time?: number;
|
|
943
|
+
timestamp?: string;
|
|
944
|
+
spans_batch_boundary?: boolean;
|
|
945
|
+
original_start_frame?: number | null;
|
|
946
|
+
workspace_id?: string;
|
|
921
947
|
};
|
|
948
|
+
task_type?: string;
|
|
949
|
+
task_id?: string;
|
|
950
|
+
creation_timestamp?: string;
|
|
922
951
|
[key: string]: any;
|
|
923
952
|
}
|
|
924
953
|
type VideoType = 'bottleneck' | 'low_value' | 'best_cycle_time' | 'worst_cycle_time' | 'missing_quality_check';
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,8 @@ interface Break {
|
|
|
475
475
|
endTime: string;
|
|
476
476
|
/** Duration of the break in minutes */
|
|
477
477
|
duration: number;
|
|
478
|
+
/** Break remarks */
|
|
479
|
+
remarks?: string;
|
|
478
480
|
}
|
|
479
481
|
/**
|
|
480
482
|
* Represents day or night shift time configuration
|
|
@@ -521,7 +523,7 @@ interface BreakRowProps {
|
|
|
521
523
|
/** Index of this break in the list */
|
|
522
524
|
index: number;
|
|
523
525
|
/** Function to update break time */
|
|
524
|
-
onUpdate: (index: number, field: 'startTime' | 'endTime', value: string) => void;
|
|
526
|
+
onUpdate: (index: number, field: 'startTime' | 'endTime' | 'remarks', value: string) => void;
|
|
525
527
|
/** Function to remove this break */
|
|
526
528
|
onRemove: (index: number) => void;
|
|
527
529
|
}
|
|
@@ -544,7 +546,7 @@ interface ShiftPanelProps {
|
|
|
544
546
|
/** Function to handle end time changes */
|
|
545
547
|
onEndTimeChange: (value: string) => void;
|
|
546
548
|
/** Function to update break times */
|
|
547
|
-
onBreakUpdate: (index: number, field: 'startTime' | 'endTime', value: string) => void;
|
|
549
|
+
onBreakUpdate: (index: number, field: 'startTime' | 'endTime' | 'remarks', value: string) => void;
|
|
548
550
|
/** Function to remove a break */
|
|
549
551
|
onBreakRemove: (index: number) => void;
|
|
550
552
|
/** Function to add a new break */
|
|
@@ -895,6 +897,7 @@ interface BottleneckVideoData {
|
|
|
895
897
|
type: 'bottleneck' | 'low_value' | 'best_cycle_time' | 'worst_cycle_time' | 'missing_quality_check';
|
|
896
898
|
originalUri: string;
|
|
897
899
|
cycle_time_seconds?: number;
|
|
900
|
+
creation_timestamp?: string;
|
|
898
901
|
}
|
|
899
902
|
interface VideoSummary {
|
|
900
903
|
counts: Record<string, number>;
|
|
@@ -908,6 +911,9 @@ interface S3ClipsAPIParams {
|
|
|
908
911
|
limit?: number;
|
|
909
912
|
mode?: 'summary' | 'full';
|
|
910
913
|
includeCycleTime?: boolean;
|
|
914
|
+
includeMetadata?: boolean;
|
|
915
|
+
timestampStart?: string;
|
|
916
|
+
timestampEnd?: string;
|
|
911
917
|
}
|
|
912
918
|
interface S3ListObjectsParams {
|
|
913
919
|
workspaceId: string;
|
|
@@ -916,9 +922,32 @@ interface S3ListObjectsParams {
|
|
|
916
922
|
maxKeys?: number;
|
|
917
923
|
}
|
|
918
924
|
interface VideoMetadata {
|
|
925
|
+
camera_id?: string;
|
|
926
|
+
workspace_id?: string;
|
|
927
|
+
sop_name?: string;
|
|
928
|
+
violation_start_frame?: number;
|
|
929
|
+
violation_end_frame?: number;
|
|
930
|
+
video_start_frame?: number;
|
|
931
|
+
video_end_frame?: number;
|
|
932
|
+
video_frame_count?: number;
|
|
933
|
+
video_duration_seconds?: number;
|
|
934
|
+
hls_playlist_s3_path?: string;
|
|
935
|
+
shift_id?: number;
|
|
936
|
+
upload_timestamp?: string;
|
|
937
|
+
transcoder_service_version?: string;
|
|
919
938
|
original_task_metadata?: {
|
|
939
|
+
sop_name?: string;
|
|
940
|
+
start_frame?: number;
|
|
941
|
+
end_frame?: number;
|
|
920
942
|
cycle_time?: number;
|
|
943
|
+
timestamp?: string;
|
|
944
|
+
spans_batch_boundary?: boolean;
|
|
945
|
+
original_start_frame?: number | null;
|
|
946
|
+
workspace_id?: string;
|
|
921
947
|
};
|
|
948
|
+
task_type?: string;
|
|
949
|
+
task_id?: string;
|
|
950
|
+
creation_timestamp?: string;
|
|
922
951
|
[key: string]: any;
|
|
923
952
|
}
|
|
924
953
|
type VideoType = 'bottleneck' | 'low_value' | 'best_cycle_time' | 'worst_cycle_time' | 'missing_quality_check';
|