@optifye/dashboard-core 6.0.3 → 6.0.4

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
@@ -160,6 +160,7 @@ interface DashboardConfig {
160
160
  edgeFunctionBaseUrl?: string;
161
161
  s3Config?: S3Config;
162
162
  videoConfig?: VideoConfig;
163
+ skuConfig?: SKUConfig;
163
164
  /** Feature flags or other arbitrary app-specific config values */
164
165
  featureFlags?: Record<string, boolean>;
165
166
  /** Generic object to allow any other custom config values needed by the app or overrides */
@@ -176,6 +177,7 @@ interface DatabaseConfig {
176
177
  lineThresholds?: string;
177
178
  shiftConfigurations?: string;
178
179
  qualityMetrics?: string;
180
+ skus?: string;
179
181
  };
180
182
  }
181
183
  interface EntityConfig {
@@ -304,6 +306,16 @@ interface VideoConfig {
304
306
  useRAF?: boolean;
305
307
  };
306
308
  }
309
+ interface SKUConfig {
310
+ /** Enable/disable SKU management features */
311
+ enabled: boolean;
312
+ /** Default production target for new SKUs */
313
+ defaultProductionTarget?: number;
314
+ /** Make SKU selection mandatory in targets page */
315
+ requireSKUSelection?: boolean;
316
+ /** Allow multiple SKUs per line */
317
+ allowMultipleSKUsPerLine?: boolean;
318
+ }
307
319
 
308
320
  interface BasePerformanceMetric {
309
321
  id: string;
@@ -748,6 +760,7 @@ interface ActionThreshold {
748
760
  total_day_output: number;
749
761
  action_name: string | null;
750
762
  updated_by: string;
763
+ sku_id?: string;
751
764
  created_at?: string;
752
765
  last_updated?: string;
753
766
  }
@@ -763,6 +776,7 @@ interface LineThreshold {
763
776
  product_code: string;
764
777
  threshold_day_output: number;
765
778
  threshold_pph: number;
779
+ sku_id?: string;
766
780
  }
767
781
  interface ShiftConfiguration {
768
782
  id?: string;
@@ -1038,6 +1052,57 @@ interface SSEEvent {
1038
1052
  data: any;
1039
1053
  }
1040
1054
 
1055
+ interface SKU {
1056
+ id: string;
1057
+ sku_id: string;
1058
+ company_id: string;
1059
+ production_target: number;
1060
+ attributes: {
1061
+ [key: string]: any;
1062
+ };
1063
+ is_active: boolean;
1064
+ created_at: string;
1065
+ updated_at: string;
1066
+ }
1067
+ interface SKUCreateInput {
1068
+ sku_id: string;
1069
+ company_id: string;
1070
+ production_target: number;
1071
+ attributes?: {
1072
+ [key: string]: any;
1073
+ };
1074
+ is_active?: boolean;
1075
+ }
1076
+ interface SKUUpdateInput {
1077
+ sku_id?: string;
1078
+ production_target?: number;
1079
+ attributes?: {
1080
+ [key: string]: any;
1081
+ };
1082
+ is_active?: boolean;
1083
+ }
1084
+ interface SKUModalProps {
1085
+ isOpen: boolean;
1086
+ onClose: () => void;
1087
+ onSave: (sku: SKUCreateInput) => Promise<void>;
1088
+ editingSKU?: SKU | null;
1089
+ }
1090
+ interface SKUSelectorProps {
1091
+ onSelect: (sku: SKU | null) => void;
1092
+ selectedSKU?: SKU | null;
1093
+ availableSKUs: SKU[];
1094
+ className?: string;
1095
+ lineId: string;
1096
+ disabled?: boolean;
1097
+ required?: boolean;
1098
+ }
1099
+ interface SKUListProps {
1100
+ skus: SKU[];
1101
+ onEdit: (sku: SKU) => void;
1102
+ onDelete: (sku: SKU) => void;
1103
+ isLoading?: boolean;
1104
+ }
1105
+
1041
1106
  interface DashboardProviderProps {
1042
1107
  config: Partial<DashboardConfig>;
1043
1108
  children: React$1.ReactNode;
@@ -1120,6 +1185,80 @@ declare const SupabaseProvider: React__default.FC<{
1120
1185
  */
1121
1186
  declare const useSupabase: () => SupabaseClient$1;
1122
1187
 
1188
+ type SubscriptionCallback = (payload: any) => void;
1189
+ interface SubscriptionConfig {
1190
+ table: string;
1191
+ schema?: string;
1192
+ event?: '*' | 'INSERT' | 'UPDATE' | 'DELETE';
1193
+ filter?: string;
1194
+ callback: SubscriptionCallback;
1195
+ }
1196
+ /**
1197
+ * Centralized manager for Supabase real-time subscriptions
1198
+ * Handles subscription deduplication, reference counting, and cleanup
1199
+ */
1200
+ declare class SubscriptionManager {
1201
+ private supabase;
1202
+ private subscriptions;
1203
+ private debounceTimers;
1204
+ constructor(supabase: SupabaseClient$1);
1205
+ /**
1206
+ * Generate a unique key for a subscription configuration
1207
+ */
1208
+ private generateKey;
1209
+ /**
1210
+ * Subscribe to real-time changes with automatic deduplication
1211
+ */
1212
+ subscribe(config: SubscriptionConfig): () => void;
1213
+ /**
1214
+ * Debounce callbacks to prevent excessive updates
1215
+ */
1216
+ private debouncedCallback;
1217
+ /**
1218
+ * Unsubscribe from a specific subscription
1219
+ */
1220
+ private unsubscribe;
1221
+ /**
1222
+ * Subscribe to multiple tables with a single callback
1223
+ */
1224
+ subscribeMultiple(configs: Omit<SubscriptionConfig, 'callback'>[], callback: SubscriptionCallback): () => void;
1225
+ /**
1226
+ * Get current subscription statistics
1227
+ */
1228
+ getStats(): {
1229
+ totalSubscriptions: number;
1230
+ totalCallbacks: number;
1231
+ };
1232
+ /**
1233
+ * Clean up all subscriptions
1234
+ */
1235
+ cleanup(): void;
1236
+ }
1237
+ /**
1238
+ * Get or create a SubscriptionManager instance
1239
+ */
1240
+ declare function getSubscriptionManager(supabase: SupabaseClient$1): SubscriptionManager;
1241
+ /**
1242
+ * Reset the singleton instance (useful for testing or cleanup)
1243
+ */
1244
+ declare function resetSubscriptionManager(): void;
1245
+
1246
+ interface SubscriptionManagerProviderProps {
1247
+ children: React__default.ReactNode;
1248
+ }
1249
+ /**
1250
+ * Provider component that creates and manages a SubscriptionManager instance
1251
+ */
1252
+ declare const SubscriptionManagerProvider: React__default.FC<SubscriptionManagerProviderProps>;
1253
+ /**
1254
+ * Hook to access the SubscriptionManager instance
1255
+ */
1256
+ declare const useSubscriptionManager: () => SubscriptionManager;
1257
+ /**
1258
+ * Hook to safely access the SubscriptionManager instance (returns null if not available)
1259
+ */
1260
+ declare const useSubscriptionManagerSafe: () => SubscriptionManager | null;
1261
+
1123
1262
  /**
1124
1263
  * @hook useWorkspaceMetrics
1125
1264
  * @summary Fetches and subscribes to overview metrics for a specific workspace.
@@ -2058,6 +2197,14 @@ declare const useAllWorkspaceMetrics: (options?: UseAllWorkspaceMetricsOptions)
2058
2197
  refreshWorkspaces: () => Promise<void>;
2059
2198
  };
2060
2199
 
2200
+ interface UseSKUsReturn {
2201
+ skus: SKU[];
2202
+ isLoading: boolean;
2203
+ error: Error | null;
2204
+ refetch: () => Promise<void>;
2205
+ }
2206
+ declare const useSKUs: (companyId: string) => UseSKUsReturn;
2207
+
2061
2208
  /**
2062
2209
  * Interface for navigation method used across packages
2063
2210
  * Abstracts navigation implementation details from components
@@ -2340,6 +2487,33 @@ declare const workspaceService: {
2340
2487
  updateShiftConfigurations(shiftConfig: ShiftConfiguration): Promise<void>;
2341
2488
  };
2342
2489
 
2490
+ declare const skuService: {
2491
+ /**
2492
+ * Fetch all active SKUs for a company
2493
+ */
2494
+ getSKUs(companyId: string): Promise<SKU[]>;
2495
+ /**
2496
+ * Get a single SKU by ID
2497
+ */
2498
+ getSKU(skuId: string): Promise<SKU | null>;
2499
+ /**
2500
+ * Create a new SKU
2501
+ */
2502
+ createSKU(skuData: SKUCreateInput): Promise<SKU>;
2503
+ /**
2504
+ * Update an existing SKU
2505
+ */
2506
+ updateSKU(skuId: string, updates: SKUUpdateInput): Promise<SKU>;
2507
+ /**
2508
+ * Soft delete a SKU (set is_active to false)
2509
+ */
2510
+ deleteSKU(skuId: string): Promise<void>;
2511
+ /**
2512
+ * Check if a SKU ID already exists for a company
2513
+ */
2514
+ checkSKUExists(companyId: string, skuId: string, excludeId?: string): Promise<boolean>;
2515
+ };
2516
+
2343
2517
  declare const authCoreService: {
2344
2518
  signInWithPassword(supabase: SupabaseClient$1, email: string, password: string): Promise<{
2345
2519
  user: User;
@@ -2475,6 +2649,48 @@ declare function getAllThreadMessages(threadId: string): Promise<ChatMessage[]>;
2475
2649
  declare function updateThreadTitle(threadId: string, newTitle: string): Promise<ChatThread>;
2476
2650
  declare function deleteThread(threadId: string): Promise<void>;
2477
2651
 
2652
+ interface CacheOptions {
2653
+ duration?: number;
2654
+ storage?: 'memory' | 'localStorage' | 'sessionStorage';
2655
+ }
2656
+ declare class CacheService {
2657
+ private memoryCache;
2658
+ private readonly DEFAULT_DURATION;
2659
+ /**
2660
+ * Generate a cache key from multiple parts
2661
+ */
2662
+ generateKey(...parts: (string | number | undefined | null)[]): string;
2663
+ /**
2664
+ * Get item from cache
2665
+ */
2666
+ get<T>(key: string, options?: CacheOptions): T | null;
2667
+ /**
2668
+ * Set item in cache
2669
+ */
2670
+ set<T>(key: string, data: T, options?: CacheOptions): void;
2671
+ /**
2672
+ * Delete item from cache
2673
+ */
2674
+ delete(key: string, options?: CacheOptions): void;
2675
+ /**
2676
+ * Clear all items from cache
2677
+ */
2678
+ clear(options?: CacheOptions): void;
2679
+ /**
2680
+ * Get or set item in cache with a factory function
2681
+ */
2682
+ getOrSet<T>(key: string, factory: () => Promise<T>, options?: CacheOptions): Promise<T>;
2683
+ /**
2684
+ * Invalidate cache entries matching a pattern
2685
+ */
2686
+ invalidatePattern(pattern: string | RegExp, options?: CacheOptions): void;
2687
+ /**
2688
+ * Clean up expired items
2689
+ */
2690
+ cleanup(options?: CacheOptions): void;
2691
+ }
2692
+ declare const cacheService: CacheService;
2693
+
2478
2694
  /**
2479
2695
  * Helper object for making authenticated API requests using Supabase auth token.
2480
2696
  * Assumes endpoints are relative to the apiBaseUrl configured in DashboardConfig.
@@ -2919,7 +3135,7 @@ interface BarChartProps {
2919
3135
  aspect?: number;
2920
3136
  [key: string]: any;
2921
3137
  }
2922
- declare const BarChart: React__default.FC<BarChartProps>;
3138
+ declare const BarChart: React__default.NamedExoticComponent<BarChartProps>;
2923
3139
 
2924
3140
  interface LineChartDataItem {
2925
3141
  name: string;
@@ -2961,14 +3177,14 @@ interface LineChartProps {
2961
3177
  aspect?: number;
2962
3178
  [key: string]: any;
2963
3179
  }
2964
- declare const LineChart: React__default.FC<LineChartProps>;
3180
+ declare const LineChart: React__default.NamedExoticComponent<LineChartProps>;
2965
3181
 
2966
3182
  interface OutputProgressChartProps {
2967
3183
  currentOutput: number;
2968
3184
  targetOutput: number;
2969
3185
  className?: string;
2970
3186
  }
2971
- declare const OutputProgressChart: React__default.FC<OutputProgressChartProps>;
3187
+ declare const OutputProgressChart: React__default.NamedExoticComponent<OutputProgressChartProps>;
2972
3188
 
2973
3189
  interface LargeOutputProgressChartProps {
2974
3190
  currentOutput: number;
@@ -2984,12 +3200,7 @@ interface CycleTimeChartProps {
2984
3200
  }>;
2985
3201
  className?: string;
2986
3202
  }
2987
- /**
2988
- * CycleTimeChart - A placeholder chart component for displaying cycle time data.
2989
- * Note: The original source file was empty, so this is a minimal implementation
2990
- * to satisfy the migration plan requirements.
2991
- */
2992
- declare const CycleTimeChart: React__default.FC<CycleTimeChartProps>;
3203
+ declare const CycleTimeChart: React__default.NamedExoticComponent<CycleTimeChartProps>;
2993
3204
 
2994
3205
  interface CycleTimeOverTimeChartProps {
2995
3206
  data: number[];
@@ -3971,6 +4182,41 @@ interface TimePickerDropdownProps {
3971
4182
  }
3972
4183
  declare const TimePickerDropdown: React__default.FC<TimePickerDropdownProps>;
3973
4184
 
4185
+ interface LoadingStateProps {
4186
+ message?: string;
4187
+ subMessage?: string;
4188
+ size?: 'sm' | 'md' | 'lg';
4189
+ className?: string;
4190
+ }
4191
+ /**
4192
+ * LoadingState - For full-page or section loading
4193
+ * Use this when loading an entire view or major section
4194
+ */
4195
+ declare const LoadingState: React__default.FC<LoadingStateProps>;
4196
+
4197
+ interface LoadingSkeletonProps {
4198
+ type: 'card' | 'chart' | 'table' | 'list' | 'kpi' | 'workspace-card' | 'video-grid';
4199
+ count?: number;
4200
+ className?: string;
4201
+ showLoadingIndicator?: boolean;
4202
+ }
4203
+ /**
4204
+ * LoadingSkeleton - For component-level loading with layout preservation
4205
+ * Use this to show placeholder content while data loads
4206
+ */
4207
+ declare const LoadingSkeleton: React__default.FC<LoadingSkeletonProps>;
4208
+
4209
+ interface LoadingInlineProps {
4210
+ message?: string;
4211
+ size?: 'sm' | 'md';
4212
+ className?: string;
4213
+ }
4214
+ /**
4215
+ * LoadingInline - For inline updates (small spinner)
4216
+ * Use this for data refreshes or small loading states within components
4217
+ */
4218
+ declare const LoadingInline: React__default.FC<LoadingInlineProps>;
4219
+
3974
4220
  declare const DEFAULT_HLS_CONFIG: {
3975
4221
  maxBufferLength: number;
3976
4222
  maxMaxBufferLength: number;
@@ -4354,6 +4600,8 @@ interface WorkspaceDetailViewProps {
4354
4600
  }
4355
4601
  declare const WrappedComponent: (props: WorkspaceDetailViewProps) => react_jsx_runtime.JSX.Element | null;
4356
4602
 
4603
+ declare const SKUManagementView: React__default.FC;
4604
+
4357
4605
  type CoreComponents = {
4358
4606
  Card: any;
4359
4607
  CardHeader: any;
@@ -4624,4 +4872,4 @@ interface ThreadSidebarProps {
4624
4872
  }
4625
4873
  declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
4626
4874
 
4627
- export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, 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, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, 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, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, 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, LoadingOverlay, LoadingPage, LoadingSpinner, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, 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, SlackAPI, type StreamProxyConfig, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, 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, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, s3VideoPreloader, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useShiftConfig, useShifts, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
4875
+ export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, 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, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, 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, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, 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, LoadingSpinner, 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, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, 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, SlackAPI, type StreamProxyConfig, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, 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, cacheService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };