@optifye/dashboard-core 6.4.1 → 6.5.0

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.ts CHANGED
@@ -1126,15 +1126,18 @@ interface SKUListProps {
1126
1126
  }
1127
1127
 
1128
1128
  /**
1129
- * S3 Clips API Service
1130
- * Handles fetching HLS video clips from S3 with AWS SDK integration
1131
- * Based on the HLS streaming architecture using playlist.m3u8 files
1132
- * Enhanced with enterprise-grade caching and performance optimizations
1129
+ * S3 Clips Service - Secure Version
1130
+ * Uses API routes instead of direct S3 access
1131
+ *
1132
+ * This is a drop-in replacement for s3-clips.ts that uses
1133
+ * the secure API client instead of AWS SDK.
1134
+ *
1135
+ * To use this:
1136
+ * 1. Replace imports of './s3-clips' with './s3-clips-secure'
1137
+ * 2. Remove AWS credentials from environment variables
1138
+ * 3. Ensure API routes are deployed
1133
1139
  */
1134
1140
 
1135
- /**
1136
- * Video Index Entry for efficient navigation
1137
- */
1138
1141
  interface VideoIndexEntry {
1139
1142
  uri: string;
1140
1143
  category: string;
@@ -1144,9 +1147,6 @@ interface VideoIndexEntry {
1144
1147
  date: string;
1145
1148
  shiftId: string;
1146
1149
  }
1147
- /**
1148
- * Video Index structure for storing all video paths
1149
- */
1150
1150
  interface VideoIndex {
1151
1151
  byCategory: Map<string, VideoIndexEntry[]>;
1152
1152
  allVideos: VideoIndexEntry[];
@@ -1157,125 +1157,99 @@ interface VideoIndex {
1157
1157
  lastUpdated: Date;
1158
1158
  _debugId?: string;
1159
1159
  }
1160
- /**
1161
- * Result type that includes both clip counts and video index
1162
- */
1163
1160
  interface ClipCountsWithIndex {
1164
1161
  counts: Record<string, number>;
1165
1162
  videoIndex: VideoIndex;
1166
1163
  }
1167
1164
  /**
1168
- * S3 Clips Service Class
1165
+ * S3 Clips Service - Secure Implementation
1166
+ * All S3 operations go through secure API routes
1169
1167
  */
1170
1168
  declare class S3ClipsService {
1171
- private s3Client;
1169
+ private apiClient;
1172
1170
  private config;
1173
1171
  private readonly defaultLimitPerCategory;
1174
1172
  private readonly maxLimitPerCategory;
1175
1173
  private readonly concurrencyLimit;
1176
1174
  private readonly maxInitialFetch;
1177
- private readonly requestCache;
1178
1175
  private isIndexBuilding;
1179
1176
  private isPrefetching;
1180
1177
  private currentMetadataFetches;
1181
1178
  private readonly MAX_CONCURRENT_METADATA;
1182
1179
  constructor(config: DashboardConfig);
1183
1180
  /**
1184
- * Validates and sanitizes the AWS region
1185
- */
1186
- private validateAndSanitizeRegion;
1187
- /**
1188
- * Lists S3 clips for a workspace, date, and shift with request deduplication
1181
+ * Lists S3 clips using API
1189
1182
  */
1190
1183
  listS3Clips(params: S3ListObjectsParams): Promise<string[]>;
1191
1184
  /**
1192
- * Internal implementation of S3 listing (called through deduplication)
1193
- */
1194
- private executeListS3Clips;
1195
- /**
1196
- * Fetches and extracts cycle time from metadata.json with deduplication
1185
+ * Get metadata cycle time
1197
1186
  */
1198
1187
  getMetadataCycleTime(playlistUri: string): Promise<number | null>;
1199
1188
  /**
1200
- * Internal implementation of metadata cycle time fetching
1201
- */
1202
- private executeGetMetadataCycleTime;
1203
- /**
1204
- * Control prefetch mode to prevent metadata fetching during background operations
1189
+ * Control prefetch mode
1205
1190
  */
1206
1191
  setPrefetchMode(enabled: boolean): void;
1207
1192
  /**
1208
- * Fetches full metadata including timestamps with deduplication
1193
+ * Get full metadata
1209
1194
  */
1210
1195
  getFullMetadata(playlistUri: string): Promise<VideoMetadata | null>;
1211
1196
  /**
1212
- * Internal implementation of full metadata fetching
1213
- */
1214
- private executeGetFullMetadata;
1215
- /**
1216
- * Converts S3 URI to CloudFront URL
1197
+ * Convert S3 URI to CloudFront URL
1198
+ * URLs from API are already signed
1217
1199
  */
1218
1200
  s3UriToCloudfront(s3Uri: string): string;
1219
1201
  /**
1220
- * Gets SOP categories for a specific workspace
1202
+ * Get SOP categories for workspace
1221
1203
  */
1222
1204
  private getSOPCategories;
1223
1205
  /**
1224
- * Fast clip counting using S3 delimiter to count video folders directly
1225
- * Each video is in its own folder, so counting folders = counting clips
1226
- * Now also builds a complete video index for efficient navigation
1206
+ * Get clip counts
1227
1207
  */
1228
1208
  getClipCounts(workspaceId: string, date: string, shiftId: string | number): Promise<Record<string, number>>;
1229
1209
  getClipCounts(workspaceId: string, date: string, shiftId: string | number, buildIndex: true): Promise<ClipCountsWithIndex>;
1230
1210
  /**
1231
- * Internal implementation of clip counts fetching
1232
- */
1233
- private executeGetClipCounts;
1234
- /**
1235
- * Get clip counts with cache-first strategy for performance optimization
1236
- * This method checks cache first and only builds index if not building from cache
1211
+ * Get clip counts with cache-first strategy
1237
1212
  */
1238
1213
  getClipCountsCacheFirst(workspaceId: string, date: string, shiftId: string | number): Promise<Record<string, number>>;
1239
1214
  getClipCountsCacheFirst(workspaceId: string, date: string, shiftId: string | number, buildIndex: true): Promise<ClipCountsWithIndex>;
1240
1215
  /**
1241
- * Get first clip for a specific category with deduplication
1216
+ * Get first clip for category
1242
1217
  */
1243
1218
  getFirstClipForCategory(workspaceId: string, date: string, shiftId: string | number, category: string): Promise<BottleneckVideoData | null>;
1244
1219
  /**
1245
- * Internal implementation of first clip fetching
1246
- */
1247
- private executeGetFirstClipForCategory;
1248
- /**
1249
- * Get a specific video from the pre-built video index - O(1) lookup performance
1220
+ * Get video from index (for compatibility)
1250
1221
  */
1251
1222
  getVideoFromIndex(videoIndex: VideoIndex, category: string, index: number, includeCycleTime?: boolean, includeMetadata?: boolean): Promise<BottleneckVideoData | null>;
1252
1223
  /**
1253
- * Get a specific clip by index for a category with deduplication
1254
- * @deprecated Use getVideoFromIndex with a pre-built VideoIndex for better performance
1224
+ * Get clip by index
1255
1225
  */
1256
1226
  getClipByIndex(workspaceId: string, date: string, shiftId: string | number, category: string, index: number, includeCycleTime?: boolean, includeMetadata?: boolean): Promise<BottleneckVideoData | null>;
1257
1227
  /**
1258
- * Internal implementation of clip by index fetching
1228
+ * Process full video (for compatibility)
1259
1229
  */
1260
- private executeGetClipByIndex;
1230
+ processFullVideo(uri: string, index: number, workspaceId: string, date: string, shiftId: string | number, includeCycleTime: boolean, includeMetadata?: boolean): Promise<BottleneckVideoData | null>;
1261
1231
  /**
1262
- * Get one sample video from each category for preloading
1232
+ * Fetch clips (main method for compatibility)
1263
1233
  */
1264
- private getSampleVideos;
1234
+ fetchClips(params: S3ClipsAPIParams): Promise<BottleneckVideoData[] | VideoSummary>;
1265
1235
  /**
1266
- * Processes a single video completely
1236
+ * Get videos page using pagination API
1267
1237
  */
1268
- processFullVideo(uri: string, index: number, workspaceId: string, date: string, shiftId: string | number, includeCycleTime: boolean, includeMetadata?: boolean): Promise<BottleneckVideoData | null>;
1238
+ getVideosPage(workspaceId: string, date: string, shiftId: string | number, category: string, pageSize?: number, startAfter?: string): Promise<{
1239
+ videos: BottleneckVideoData[];
1240
+ nextToken?: string;
1241
+ hasMore: boolean;
1242
+ }>;
1269
1243
  /**
1270
- * Simplified method to fetch clips based on parameters
1244
+ * Create empty video index for compatibility
1271
1245
  */
1272
- fetchClips(params: S3ClipsAPIParams): Promise<BottleneckVideoData[] | VideoSummary>;
1246
+ private createEmptyVideoIndex;
1273
1247
  /**
1274
- * Cleanup method for proper resource management
1248
+ * Cleanup
1275
1249
  */
1276
1250
  dispose(): void;
1277
1251
  /**
1278
- * Get service statistics for monitoring
1252
+ * Get statistics
1279
1253
  */
1280
1254
  getStats(): {
1281
1255
  requestCache: {
@@ -1631,6 +1605,79 @@ interface IPrefetchManager {
1631
1605
  destroy(): void;
1632
1606
  }
1633
1607
 
1608
+ interface WorkspaceHealth {
1609
+ id: string;
1610
+ workspace_id: string;
1611
+ line_id: string;
1612
+ company_id: string;
1613
+ last_heartbeat: string;
1614
+ is_healthy: boolean;
1615
+ consecutive_misses?: number;
1616
+ instance_memory?: any;
1617
+ instance_info?: any;
1618
+ workspace_display_name?: string;
1619
+ line_name?: string;
1620
+ company_name?: string;
1621
+ created_at?: string;
1622
+ updated_at?: string;
1623
+ }
1624
+ interface WorkspaceHealthInfo {
1625
+ workspace_id: string;
1626
+ line_id: string;
1627
+ company_id: string;
1628
+ workspace_display_name?: string;
1629
+ line_name?: string;
1630
+ company_name?: string;
1631
+ }
1632
+ interface HealthAlertConfig {
1633
+ id: string;
1634
+ line_id: string;
1635
+ alert_type: string;
1636
+ threshold_minutes: number;
1637
+ enabled: boolean;
1638
+ created_at?: string;
1639
+ updated_at?: string;
1640
+ }
1641
+ interface HealthAlertHistory {
1642
+ id: string;
1643
+ workspace_id: string;
1644
+ line_id: string;
1645
+ company_id: string;
1646
+ alert_type: string;
1647
+ alert_time: string;
1648
+ resolved_time?: string;
1649
+ details?: any;
1650
+ created_at?: string;
1651
+ }
1652
+ type HealthStatus = 'healthy' | 'unhealthy' | 'warning' | 'unknown';
1653
+ interface HealthSummary {
1654
+ totalWorkspaces: number;
1655
+ healthyWorkspaces: number;
1656
+ unhealthyWorkspaces: number;
1657
+ warningWorkspaces: number;
1658
+ uptimePercentage: number;
1659
+ lastUpdated: string;
1660
+ }
1661
+ interface WorkspaceHealthWithStatus extends WorkspaceHealth {
1662
+ status: HealthStatus;
1663
+ timeSinceLastUpdate: string;
1664
+ isStale: boolean;
1665
+ }
1666
+ interface HealthFilterOptions {
1667
+ lineId?: string;
1668
+ companyId?: string;
1669
+ status?: HealthStatus;
1670
+ searchTerm?: string;
1671
+ sortBy?: 'name' | 'status' | 'lastUpdate';
1672
+ sortOrder?: 'asc' | 'desc';
1673
+ }
1674
+ interface HealthMetrics {
1675
+ avgResponseTime?: number;
1676
+ totalDowntime?: number;
1677
+ incidentCount?: number;
1678
+ mttr?: number;
1679
+ }
1680
+
1634
1681
  interface DashboardProviderProps {
1635
1682
  config: Partial<DashboardConfig>;
1636
1683
  children: React$1.ReactNode;
@@ -2737,6 +2784,7 @@ interface SupportTicketHistory {
2737
2784
  status: 'submitted' | 'in_progress' | 'resolved' | 'closed';
2738
2785
  submitted_at: string;
2739
2786
  updated_at: string;
2787
+ serviced: boolean;
2740
2788
  }
2741
2789
  interface CreateTicketData {
2742
2790
  title: string;
@@ -2763,6 +2811,10 @@ declare class TicketHistoryService {
2763
2811
  * Update ticket status
2764
2812
  */
2765
2813
  static updateTicketStatus(ticketId: string, status: 'submitted' | 'in_progress' | 'resolved' | 'closed'): Promise<SupportTicketHistory>;
2814
+ /**
2815
+ * Update ticket serviced status
2816
+ */
2817
+ static updateTicketServicedStatus(ticketId: string, serviced: boolean): Promise<SupportTicketHistory>;
2766
2818
  }
2767
2819
 
2768
2820
  interface UseTicketHistoryReturn {
@@ -2772,6 +2824,7 @@ interface UseTicketHistoryReturn {
2772
2824
  createTicket: (ticketData: CreateTicketData) => Promise<void>;
2773
2825
  refreshTickets: () => Promise<void>;
2774
2826
  updateTicketStatus: (ticketId: string, status: 'submitted' | 'in_progress' | 'resolved' | 'closed') => Promise<void>;
2827
+ updateTicketServicedStatus: (ticketId: string, serviced: boolean) => Promise<void>;
2775
2828
  }
2776
2829
  declare function useTicketHistory(companyId?: string): UseTicketHistoryReturn;
2777
2830
 
@@ -2931,7 +2984,8 @@ interface UsePrefetchClipCountsOptions {
2931
2984
  */
2932
2985
  enabled?: boolean;
2933
2986
  /**
2934
- * Whether to build full video index. Defaults to true
2987
+ * Whether to build full video index. Defaults to false for cost efficiency.
2988
+ * Set to true only if you need the complete video index.
2935
2989
  */
2936
2990
  buildIndex?: boolean;
2937
2991
  /**
@@ -3181,6 +3235,31 @@ declare function useWorkspaceNavigation(): {
3181
3235
  }) => WorkspaceNavigationParams;
3182
3236
  };
3183
3237
 
3238
+ interface UseWorkspaceHealthOptions extends HealthFilterOptions {
3239
+ enableRealtime?: boolean;
3240
+ refreshInterval?: number;
3241
+ }
3242
+ interface UseWorkspaceHealthReturn {
3243
+ workspaces: WorkspaceHealthWithStatus[];
3244
+ summary: HealthSummary | null;
3245
+ loading: boolean;
3246
+ error: Error | null;
3247
+ refetch: () => Promise<void>;
3248
+ }
3249
+ declare function useWorkspaceHealth(options?: UseWorkspaceHealthOptions): UseWorkspaceHealthReturn;
3250
+ interface UseWorkspaceHealthByIdOptions {
3251
+ enableRealtime?: boolean;
3252
+ refreshInterval?: number;
3253
+ }
3254
+ interface UseWorkspaceHealthByIdReturn {
3255
+ workspace: WorkspaceHealthWithStatus | null;
3256
+ metrics: HealthMetrics | null;
3257
+ loading: boolean;
3258
+ error: Error | null;
3259
+ refetch: () => Promise<void>;
3260
+ }
3261
+ declare function useWorkspaceHealthById(workspaceId: string, options?: UseWorkspaceHealthByIdOptions): UseWorkspaceHealthByIdReturn;
3262
+
3184
3263
  /**
3185
3264
  * @typedef {object} DateTimeConfigShape
3186
3265
  * @description Shape of the dateTimeConfig object expected from useDateTimeConfig.
@@ -3312,6 +3391,13 @@ declare const workspaceService: {
3312
3391
  * Clears the workspace display names cache
3313
3392
  */
3314
3393
  clearWorkspaceDisplayNamesCache(): void;
3394
+ /**
3395
+ * Updates the display name for a workspace
3396
+ * @param workspaceId - The workspace UUID
3397
+ * @param displayName - The new display name
3398
+ * @returns Promise<void>
3399
+ */
3400
+ updateWorkspaceDisplayName(workspaceId: string, displayName: string): Promise<void>;
3315
3401
  updateWorkspaceAction(updates: WorkspaceActionUpdate[]): Promise<void>;
3316
3402
  updateActionThresholds(thresholds: ActionThreshold[]): Promise<void>;
3317
3403
  getActionThresholds(lineId: string, date: string, shiftId?: number): Promise<ActionThreshold[]>;
@@ -3320,6 +3406,27 @@ declare const workspaceService: {
3320
3406
  updateShiftConfigurations(shiftConfig: ShiftConfiguration): Promise<void>;
3321
3407
  };
3322
3408
 
3409
+ declare class WorkspaceHealthService {
3410
+ private static instance;
3411
+ private cache;
3412
+ private cacheExpiryMs;
3413
+ static getInstance(): WorkspaceHealthService;
3414
+ private getFromCache;
3415
+ private setCache;
3416
+ getWorkspaceHealthStatus(options?: HealthFilterOptions): Promise<WorkspaceHealthWithStatus[]>;
3417
+ getWorkspaceHealthById(workspaceId: string): Promise<WorkspaceHealthWithStatus | null>;
3418
+ getHealthSummary(lineId?: string, companyId?: string): Promise<HealthSummary>;
3419
+ getHealthMetrics(workspaceId: string, startDate?: string, endDate?: string): Promise<HealthMetrics>;
3420
+ private processHealthStatus;
3421
+ private getStatusPriority;
3422
+ subscribeToHealthUpdates(callback: (data: WorkspaceHealth) => void, filters?: {
3423
+ lineId?: string;
3424
+ companyId?: string;
3425
+ }): () => void;
3426
+ clearCache(): void;
3427
+ }
3428
+ declare const workspaceHealthService: WorkspaceHealthService;
3429
+
3323
3430
  declare const skuService: {
3324
3431
  /**
3325
3432
  * Fetch all active SKUs for a company
@@ -4392,6 +4499,25 @@ interface TicketHistoryProps {
4392
4499
  }
4393
4500
  declare const TicketHistory: React__default.FC<TicketHistoryProps>;
4394
4501
 
4502
+ interface HealthStatusIndicatorProps {
4503
+ status: HealthStatus;
4504
+ lastUpdated?: string;
4505
+ showLabel?: boolean;
4506
+ showTime?: boolean;
4507
+ size?: 'sm' | 'md' | 'lg';
4508
+ className?: string;
4509
+ inline?: boolean;
4510
+ pulse?: boolean;
4511
+ }
4512
+ declare const HealthStatusIndicator: React__default.FC<HealthStatusIndicatorProps>;
4513
+ interface DetailedHealthStatusProps extends HealthStatusIndicatorProps {
4514
+ workspaceName?: string;
4515
+ lineName?: string;
4516
+ consecutiveMisses?: number;
4517
+ showDetails?: boolean;
4518
+ }
4519
+ declare const DetailedHealthStatus: React__default.FC<DetailedHealthStatusProps>;
4520
+
4395
4521
  interface LinePdfExportButtonProps {
4396
4522
  /** The DOM element or a selector string for the element to capture. */
4397
4523
  targetElement: HTMLElement | string;
@@ -4652,6 +4778,8 @@ interface WorkspaceCardProps {
4652
4778
  };
4653
4779
  operators?: Pick<OperatorInfo, 'id' | 'name' | 'photo_url'>[];
4654
4780
  status?: 'bottleneck' | 'lowEfficiency' | 'inactive' | 'normal';
4781
+ healthStatus?: HealthStatus;
4782
+ healthLastUpdated?: string;
4655
4783
  onCardClick?: (workspaceId: string) => void;
4656
4784
  headerActions?: React__default.ReactNode;
4657
4785
  footerContent?: React__default.ReactNode;
@@ -5039,6 +5167,30 @@ interface KPISectionProps {
5039
5167
  */
5040
5168
  declare const KPISection: React__default.FC<KPISectionProps>;
5041
5169
 
5170
+ interface WorkspaceHealthCardProps {
5171
+ workspace: WorkspaceHealthWithStatus;
5172
+ onClick?: (workspace: WorkspaceHealthWithStatus) => void;
5173
+ showDetails?: boolean;
5174
+ className?: string;
5175
+ }
5176
+ declare const WorkspaceHealthCard: React__default.FC<WorkspaceHealthCardProps>;
5177
+ interface CompactWorkspaceHealthCardProps {
5178
+ workspace: WorkspaceHealthWithStatus;
5179
+ onClick?: (workspace: WorkspaceHealthWithStatus) => void;
5180
+ className?: string;
5181
+ }
5182
+ declare const CompactWorkspaceHealthCard: React__default.FC<CompactWorkspaceHealthCardProps>;
5183
+
5184
+ interface HealthStatusGridProps {
5185
+ workspaces: WorkspaceHealthWithStatus[];
5186
+ onWorkspaceClick?: (workspace: WorkspaceHealthWithStatus) => void;
5187
+ viewMode?: 'grid' | 'list';
5188
+ showFilters?: boolean;
5189
+ groupBy?: 'none' | 'line' | 'status';
5190
+ className?: string;
5191
+ }
5192
+ declare const HealthStatusGrid: React__default.FC<HealthStatusGridProps>;
5193
+
5042
5194
  interface DashboardHeaderProps {
5043
5195
  lineTitle: string;
5044
5196
  className?: string;
@@ -5307,6 +5459,64 @@ interface VideoPlayerProps {
5307
5459
  */
5308
5460
  declare const VideoPlayer: React__default.ForwardRefExoticComponent<VideoPlayerProps & React__default.RefAttributes<VideoPlayerRef>>;
5309
5461
 
5462
+ interface BackButtonProps {
5463
+ /**
5464
+ * Click handler for the back button
5465
+ */
5466
+ onClick: () => void;
5467
+ /**
5468
+ * Text to display next to the arrow icon
5469
+ * @default "Back"
5470
+ */
5471
+ text?: string;
5472
+ /**
5473
+ * Additional CSS classes
5474
+ */
5475
+ className?: string;
5476
+ /**
5477
+ * Size variant for the button
5478
+ * @default "default"
5479
+ */
5480
+ size?: 'sm' | 'default' | 'lg';
5481
+ /**
5482
+ * Whether the button is disabled
5483
+ * @default false
5484
+ */
5485
+ disabled?: boolean;
5486
+ /**
5487
+ * ARIA label for accessibility
5488
+ */
5489
+ 'aria-label'?: string;
5490
+ }
5491
+ /**
5492
+ * Standardized BackButton component for consistent styling across all headers
5493
+ *
5494
+ * Features:
5495
+ * - Consistent sizing and spacing
5496
+ * - Hover states and transitions
5497
+ * - Responsive design
5498
+ * - Accessibility support
5499
+ * - Multiple size variants
5500
+ */
5501
+ declare const BackButton: React__default.FC<BackButtonProps>;
5502
+ /**
5503
+ * Minimal BackButton variant for space-constrained headers
5504
+ * Uses absolute positioning like current implementations
5505
+ */
5506
+ declare const BackButtonMinimal: React__default.FC<BackButtonProps>;
5507
+
5508
+ interface InlineEditableTextProps {
5509
+ value: string;
5510
+ onSave: (newValue: string) => Promise<void>;
5511
+ placeholder?: string;
5512
+ className?: string;
5513
+ editIconClassName?: string;
5514
+ inputClassName?: string;
5515
+ debounceDelay?: number;
5516
+ disabled?: boolean;
5517
+ }
5518
+ declare const InlineEditableText: React__default.FC<InlineEditableTextProps>;
5519
+
5310
5520
  interface LoadingStateProps {
5311
5521
  message?: string;
5312
5522
  subMessage?: string;
@@ -5731,6 +5941,16 @@ declare const WrappedComponent: React__default.NamedExoticComponent<WorkspaceDet
5731
5941
 
5732
5942
  declare const SKUManagementView: React__default.FC;
5733
5943
 
5944
+ interface WorkspaceHealthViewProps {
5945
+ lineId?: string;
5946
+ companyId?: string;
5947
+ onNavigate?: (url: string) => void;
5948
+ className?: string;
5949
+ }
5950
+ declare const _default: React__default.NamedExoticComponent<WorkspaceHealthViewProps>;
5951
+
5952
+ declare const AuthenticatedWorkspaceHealthView: React__default.FC<WorkspaceHealthViewProps>;
5953
+
5734
5954
  type CoreComponents = {
5735
5955
  Card: any;
5736
5956
  CardHeader: any;
@@ -5924,6 +6144,21 @@ declare const streamProxyConfig: {
5924
6144
  };
5925
6145
  };
5926
6146
 
6147
+ /**
6148
+ * S3 URI Parser and Video Processing utilities
6149
+ */
6150
+
6151
+ /**
6152
+ * Parses S3 URI to extract video information
6153
+ * @param s3Uri - The S3 URI to parse
6154
+ * @param sopCategories - Optional SOP categories configuration for mapping
6155
+ */
6156
+ declare function parseS3Uri(s3Uri: string, sopCategories?: SOPCategory[]): Omit<BottleneckVideoData, 'id' | 'src' | 'cycle_time_seconds'> | null;
6157
+ /**
6158
+ * Shuffles an array using Fisher-Yates algorithm
6159
+ */
6160
+ declare function shuffleArray<T>(array: T[]): T[];
6161
+
5927
6162
  interface ThreadSidebarProps {
5928
6163
  activeThreadId?: string;
5929
6164
  onSelectThread: (threadId: string) => void;
@@ -5932,4 +6167,4 @@ interface ThreadSidebarProps {
5932
6167
  }
5933
6168
  declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
5934
6169
 
5935
- export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AudioService, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedShiftsView, AuthenticatedTargetsView, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, type CacheEntryWithPrefetch, CachePrefetchStatus, type CachePrefetchStatusCallback, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type CleanupFunction, type ClipCounts, type ClipCountsWithIndex, type ComponentOverride, CongratulationsOverlay, type CongratulationsOverlayProps, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, EmptyStateMessage, type EmptyStateMessageProps, EncouragementOverlay, type EndpointsConfig, type EntityConfig, type ErrorCallback$1 as ErrorCallback, type ExtendedCacheMetrics, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, type FullyIndexedCallback$1 as FullyIndexedCallback, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, HamburgerButton, type HamburgerButtonProps, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, type HourlyAchievement, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type IPrefetchManager, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailViewWithDisplayNames as KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailViewWithDisplayNames as LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, type NavigationMethod, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OptifyeLogoLoader, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, PrefetchConfigurationError, PrefetchError, PrefetchEvents, type PrefetchKey, type PrefetchManagerConfig, type PrefetchManagerStats, type PrefetchOptions, type PrefetchParams$1 as PrefetchParams, type PrefetchRequest, type PrefetchResult, PrefetchStatus$1 as PrefetchStatus, type PrefetchStatusResult, type PrefetchSubscriptionCallbacks, PrefetchTimeoutError, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RenderReadyCallback$1 as RenderReadyCallback, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, type StatusChangeCallback$1 as StatusChangeCallback, type StreamProxyConfig, type SubscriberId, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsViewWithDisplayNames as TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TicketHistory, TicketHistoryService, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UsePrefetchClipCountsOptions$1 as UsePrefetchClipCountsOptions, type UsePrefetchClipCountsResult$1 as UsePrefetchClipCountsResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseTicketHistoryReturn, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, VideoPlayer, type VideoPlayerEventData, type VideoPlayerProps, type VideoPlayerRef, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCoreSessionRecordingProperties, getCoreSessionReplayUrl, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isPrefetchError, isTransitionPeriod, isUrlPermanentlyFailed, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidPrefetchParams, isValidPrefetchStatus, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetFailedUrl, resetSubscriptionManager, s3VideoPreloader, skuService, startCoreSessionRecording, stopCoreSessionRecording, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAudioService, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useHourEndTimer, useHourlyTargetAchievements, useHourlyTargetMisses, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, usePrefetchClipCounts, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useTicketHistory, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPrefetchManager, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
6170
+ export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AudioService, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedShiftsView, AuthenticatedTargetsView, AuthenticatedWorkspaceHealthView, BackButton, BackButtonMinimal, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, type CacheEntryWithPrefetch, CachePrefetchStatus, type CachePrefetchStatusCallback, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type CleanupFunction, type ClipCounts, type ClipCountsWithIndex, CompactWorkspaceHealthCard, type ComponentOverride, CongratulationsOverlay, type CongratulationsOverlayProps, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, DetailedHealthStatus, EmptyStateMessage, type EmptyStateMessageProps, EncouragementOverlay, type EndpointsConfig, type EntityConfig, type ErrorCallback$1 as ErrorCallback, type ExtendedCacheMetrics, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, type FullyIndexedCallback$1 as FullyIndexedCallback, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, HamburgerButton, type HamburgerButtonProps, Header, type HeaderProps, type HealthAlertConfig, type HealthAlertHistory, type HealthFilterOptions, type HealthMetrics, type HealthStatus, HealthStatusGrid, HealthStatusIndicator, type HealthSummary, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, type HourlyAchievement, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type IPrefetchManager, type ISTDateProps, ISTTimer, type ISTTimerProps, InlineEditableText, KPICard, type KPICardProps, KPIDetailViewWithDisplayNames as KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailViewWithDisplayNames as LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, type NavigationMethod, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OptifyeLogoLoader, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, PrefetchConfigurationError, PrefetchError, PrefetchEvents, type PrefetchKey, type PrefetchManagerConfig, type PrefetchManagerStats, type PrefetchOptions, type PrefetchParams$1 as PrefetchParams, type PrefetchRequest, type PrefetchResult, PrefetchStatus$1 as PrefetchStatus, type PrefetchStatusResult, type PrefetchSubscriptionCallbacks, PrefetchTimeoutError, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RenderReadyCallback$1 as RenderReadyCallback, type RoutePath, type S3ClipsAPIParams, S3ClipsService, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, type StatusChangeCallback$1 as StatusChangeCallback, type StreamProxyConfig, type SubscriberId, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsViewWithDisplayNames as TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TicketHistory, TicketHistoryService, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UsePrefetchClipCountsOptions$1 as UsePrefetchClipCountsOptions, type UsePrefetchClipCountsResult$1 as UsePrefetchClipCountsResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseTicketHistoryReturn, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoIndex, type VideoIndexEntry, type VideoMetadata, VideoPlayer, type VideoPlayerEventData, type VideoPlayerProps, type VideoPlayerRef, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, type WorkspaceHealth, WorkspaceHealthCard, type WorkspaceHealthInfo, _default as WorkspaceHealthView, type WorkspaceHealthWithStatus, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCoreSessionRecordingProperties, getCoreSessionReplayUrl, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isPrefetchError, isTransitionPeriod, isUrlPermanentlyFailed, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidPrefetchParams, isValidPrefetchStatus, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, parseS3Uri, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetFailedUrl, resetSubscriptionManager, s3VideoPreloader, shuffleArray, skuService, startCoreSessionRecording, stopCoreSessionRecording, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAudioService, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useHourEndTimer, useHourlyTargetAchievements, useHourlyTargetMisses, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, usePrefetchClipCounts, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useTicketHistory, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceHealth, useWorkspaceHealthById, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPrefetchManager, videoPreloader, whatsappService, withAuth, withRegistry, workspaceHealthService, workspaceService };