@elevasis/ui 1.18.0 → 1.20.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/api/index.js +2 -2
- package/dist/auth/guards/AdminGuard.d.ts +32 -0
- package/dist/auth/guards/AdminGuard.d.ts.map +1 -0
- package/dist/auth/guards/ProtectedRoute.d.ts +60 -0
- package/dist/auth/guards/ProtectedRoute.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts +12 -0
- package/dist/auth/guards/__tests__/AdminGuard.test.d.ts.map +1 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts +14 -0
- package/dist/auth/guards/__tests__/ProtectedRoute.test.d.ts.map +1 -0
- package/dist/auth/index.d.ts +14 -174
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.css +14 -0
- package/dist/charts/index.js +8 -6
- package/dist/chunk-4SY4EQSK.js +68 -0
- package/dist/{chunk-7ATCF6UL.js → chunk-ACD2QA6E.js} +11 -4
- package/dist/{chunk-2Z7LYTIX.js → chunk-AQ5MQDSS.js} +30 -17
- package/dist/chunk-AWMZCYKH.js +639 -0
- package/dist/chunk-BX565EOK.js +2921 -0
- package/dist/{chunk-WAPZN2U3.js → chunk-EMN755L5.js} +7 -41
- package/dist/{chunk-LBY7FVFD.js → chunk-ERVB3QJQ.js} +31 -715
- package/dist/chunk-GBMNCNHX.js +105 -0
- package/dist/{chunk-BVNAC4SQ.js → chunk-GH7ZO4VD.js} +38 -48
- package/dist/{chunk-OCF63OXD.js → chunk-I6EVLOP3.js} +4 -4
- package/dist/{chunk-MBZDE6UT.js → chunk-IOKL7BKE.js} +9 -1
- package/dist/{chunk-35UWYH2A.js → chunk-JFRG2JJE.js} +8 -2
- package/dist/{chunk-NUULWBAD.js → chunk-JHMJKDVU.js} +1 -1
- package/dist/chunk-JZEXFQ6N.js +671 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MG3NF7QL.js +63 -0
- package/dist/{chunk-KBLGVZBD.js → chunk-NNKKBSJN.js} +2 -22
- package/dist/{chunk-JNBHUCKW.js → chunk-NVOCKXUQ.js} +1 -1
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-QJ2S46NI.js +23 -0
- package/dist/{chunk-UANJP5P7.js → chunk-R7WLWGPO.js} +5 -5
- package/dist/{chunk-CC3SDRIF.js → chunk-RWQIFKMJ.js} +1 -1
- package/dist/chunk-U4CHEPIL.js +2622 -0
- package/dist/chunk-UMFPUM7Q.js +1281 -0
- package/dist/chunk-WWEMNIHW.js +37 -0
- package/dist/{chunk-UTWJZEOJ.js → chunk-XOTN3X3Z.js} +3 -3
- package/dist/{chunk-RYSPAQGW.js → chunk-Z2BXCFAG.js} +1 -1
- package/dist/components/charts/ActivityTrendChart.d.ts +13 -0
- package/dist/components/charts/ActivityTrendChart.d.ts.map +1 -0
- package/dist/components/charts/CombinedTrendChart.d.ts +22 -0
- package/dist/components/charts/CombinedTrendChart.d.ts.map +1 -0
- package/dist/components/charts/CostTrendChart.d.ts +13 -0
- package/dist/components/charts/CostTrendChart.d.ts.map +1 -0
- package/dist/components/charts/HeroStatsRow.d.ts +15 -0
- package/dist/components/charts/HeroStatsRow.d.ts.map +1 -0
- package/dist/components/charts/index.d.ts +9 -0
- package/dist/components/charts/index.d.ts.map +1 -0
- package/dist/components/command-queue/TaskCard.d.ts +18 -0
- package/dist/components/command-queue/TaskCard.d.ts.map +1 -0
- package/dist/components/command-queue/index.d.ts +5 -0
- package/dist/components/command-queue/index.d.ts.map +1 -0
- package/dist/components/display/PageNotFound.d.ts +2 -0
- package/dist/components/display/PageNotFound.d.ts.map +1 -0
- package/dist/components/display/index.d.ts +26 -0
- package/dist/components/display/index.d.ts.map +1 -0
- package/dist/components/execution/ExecutionStats.d.ts +16 -0
- package/dist/components/execution/ExecutionStats.d.ts.map +1 -0
- package/dist/components/execution/index.d.ts +18 -0
- package/dist/components/execution/index.d.ts.map +1 -0
- package/dist/components/index.css +14 -0
- package/dist/components/index.d.ts +22 -5674
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +564 -5023
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/AuroraBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/AuroraBackground.js +169 -0
- package/dist/components/layout/backgrounds/EmberBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/EmberBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/EmberBackground.js +169 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts +16 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.d.ts.map +1 -0
- package/dist/components/layout/backgrounds/RoseGoldBackground.js +169 -0
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts +12 -0
- package/dist/components/monitoring/ErrorBreakdownTable.d.ts.map +1 -0
- package/dist/components/monitoring/ResourceHealthPanel.d.ts +8 -0
- package/dist/components/monitoring/ResourceHealthPanel.d.ts.map +1 -0
- package/dist/components/monitoring/index.d.ts +16 -0
- package/dist/components/monitoring/index.d.ts.map +1 -0
- package/dist/components/navigation/index.js +2 -63
- package/dist/components/notifications/NotificationBell.d.ts +9 -0
- package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
- package/dist/components/notifications/NotificationItem.d.ts +9 -0
- package/dist/components/notifications/NotificationItem.d.ts.map +1 -0
- package/dist/components/notifications/NotificationList.d.ts +10 -0
- package/dist/components/notifications/NotificationList.d.ts.map +1 -0
- package/dist/components/notifications/NotificationPanel.d.ts +10 -0
- package/dist/components/notifications/NotificationPanel.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +5 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/operations/calibration/CreateProjectModal.d.ts +9 -0
- package/dist/components/operations/calibration/CreateProjectModal.d.ts.map +1 -0
- package/dist/components/operations/calibration/ProjectCard.d.ts +9 -0
- package/dist/components/operations/calibration/ProjectCard.d.ts.map +1 -0
- package/dist/components/operations/command-queue/index.d.ts +3 -0
- package/dist/components/operations/command-queue/index.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts +17 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebar.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts +17 -0
- package/dist/components/operations/command-queue/sidebar/CommandQueueSidebarMiddle.d.ts.map +1 -0
- package/dist/components/operations/command-queue/sidebar/index.d.ts +5 -0
- package/dist/components/operations/command-queue/sidebar/index.d.ts.map +1 -0
- package/dist/components/operations/command-view/CommandViewGraph.d.ts +22 -0
- package/dist/components/operations/command-view/CommandViewGraph.d.ts.map +1 -0
- package/dist/components/operations/command-view/index.d.ts +4 -0
- package/dist/components/operations/command-view/index.d.ts.map +1 -0
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts +13 -0
- package/dist/components/operations/executions/AgentExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts +13 -0
- package/dist/components/operations/executions/WorkflowExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/executions/index.d.ts +4 -0
- package/dist/components/operations/executions/index.d.ts.map +1 -0
- package/dist/components/operations/index.d.ts +8 -0
- package/dist/components/operations/index.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts +14 -0
- package/dist/components/operations/knowledge-base/DocTreeNav.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts +16 -0
- package/dist/components/operations/knowledge-base/KnowledgeBasePage.d.ts.map +1 -0
- package/dist/components/operations/knowledge-base/index.d.ts +3 -0
- package/dist/components/operations/knowledge-base/index.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts +16 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogs.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts +12 -0
- package/dist/components/operations/shared/BaseExecutionLogs/BaseExecutionLogsHeader.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts +12 -0
- package/dist/components/operations/shared/BaseExecutionLogs/ExecutionErrorSection.d.ts.map +1 -0
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts +7 -0
- package/dist/components/operations/shared/BaseExecutionLogs/index.d.ts.map +1 -0
- package/dist/components/operations/shared/index.d.ts +5 -0
- package/dist/components/operations/shared/index.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts +11 -0
- package/dist/components/operations/shared/layouts/ResourceHeader.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts +8 -0
- package/dist/components/operations/shared/layouts/ResourceNotFoundState.d.ts.map +1 -0
- package/dist/components/operations/shared/layouts/index.d.ts +4 -0
- package/dist/components/operations/shared/layouts/index.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts +7 -0
- package/dist/components/operations/task-scheduler/CreateScheduleModal.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts +2 -0
- package/dist/components/operations/task-scheduler/TaskScheduler.d.ts.map +1 -0
- package/dist/components/operations/task-scheduler/index.d.ts +11 -0
- package/dist/components/operations/task-scheduler/index.d.ts.map +1 -0
- package/dist/components/sdk-barrel.d.ts +26 -0
- package/dist/components/sdk-barrel.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts +9 -0
- package/dist/components/settings/api-keys/ApiKeyDisplayModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeyList.d.ts +8 -0
- package/dist/components/settings/api-keys/ApiKeyList.d.ts.map +1 -0
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts +2 -0
- package/dist/components/settings/api-keys/ApiKeySettings.d.ts.map +1 -0
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts +9 -0
- package/dist/components/settings/api-keys/CreateApiKeyModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts +8 -0
- package/dist/components/settings/api-keys/EditApiKeyModal.d.ts.map +1 -0
- package/dist/components/settings/api-keys/index.d.ts +6 -0
- package/dist/components/settings/api-keys/index.d.ts.map +1 -0
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts +9 -0
- package/dist/components/settings/credentials/CreateCredentialModal.d.ts.map +1 -0
- package/dist/components/settings/credentials/CredentialList.d.ts +10 -0
- package/dist/components/settings/credentials/CredentialList.d.ts.map +1 -0
- package/dist/components/settings/credentials/CredentialSettings.d.ts +7 -0
- package/dist/components/settings/credentials/CredentialSettings.d.ts.map +1 -0
- package/dist/components/settings/credentials/index.d.ts +5 -0
- package/dist/components/settings/credentials/index.d.ts.map +1 -0
- package/dist/components/settings/deployments/DeploymentList.d.ts +8 -0
- package/dist/components/settings/deployments/DeploymentList.d.ts.map +1 -0
- package/dist/components/settings/deployments/DeploymentSettings.d.ts +2 -0
- package/dist/components/settings/deployments/DeploymentSettings.d.ts.map +1 -0
- package/dist/components/settings/deployments/index.d.ts +5 -0
- package/dist/components/settings/deployments/index.d.ts.map +1 -0
- package/dist/components/settings/index.d.ts +6 -0
- package/dist/components/settings/index.d.ts.map +1 -0
- package/dist/components/table/SortableHeader.d.ts +12 -0
- package/dist/components/table/SortableHeader.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +4 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/features/auth/AdminGuard.d.ts +38 -0
- package/dist/features/auth/AdminGuard.d.ts.map +1 -0
- package/dist/features/auth/FeatureGuard.d.ts +45 -0
- package/dist/features/auth/FeatureGuard.d.ts.map +1 -0
- package/dist/features/auth/ProtectedRoute.d.ts +43 -0
- package/dist/features/auth/ProtectedRoute.d.ts.map +1 -0
- package/dist/features/auth/index.css +579 -0
- package/dist/features/auth/index.d.ts +9 -0
- package/dist/features/auth/index.d.ts.map +1 -0
- package/dist/features/auth/index.js +125 -0
- package/dist/features/auth/useUserProfile.d.ts +10 -0
- package/dist/features/auth/useUserProfile.d.ts.map +1 -0
- package/dist/features/dashboard/Dashboard.d.ts +57 -0
- package/dist/features/dashboard/Dashboard.d.ts.map +1 -0
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts +11 -0
- package/dist/features/dashboard/RecentExecutionsByResource.d.ts.map +1 -0
- package/dist/features/dashboard/ResourceOverview.d.ts +21 -0
- package/dist/features/dashboard/ResourceOverview.d.ts.map +1 -0
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts +7 -0
- package/dist/features/dashboard/UnresolvedErrorsTeaser.d.ts.map +1 -0
- package/dist/features/dashboard/index.css +579 -0
- package/dist/features/dashboard/index.d.ts +9 -0
- package/dist/features/dashboard/index.d.ts.map +1 -0
- package/dist/features/dashboard/index.js +650 -0
- package/dist/features/monitoring/ActivityFeed.d.ts +37 -0
- package/dist/features/monitoring/ActivityFeed.d.ts.map +1 -0
- package/dist/features/monitoring/ActivityLog.d.ts +8 -0
- package/dist/features/monitoring/ActivityLog.d.ts.map +1 -0
- package/dist/features/monitoring/CostAnalytics.d.ts +13 -0
- package/dist/features/monitoring/CostAnalytics.d.ts.map +1 -0
- package/dist/features/monitoring/ErrorDetailsModal.d.ts +13 -0
- package/dist/features/monitoring/ErrorDetailsModal.d.ts.map +1 -0
- package/dist/features/monitoring/ExecutionHealth.d.ts +9 -0
- package/dist/features/monitoring/ExecutionHealth.d.ts.map +1 -0
- package/dist/features/monitoring/ExecutionLogsPage.d.ts +20 -0
- package/dist/features/monitoring/ExecutionLogsPage.d.ts.map +1 -0
- package/dist/features/monitoring/NotificationCenter.d.ts +5 -0
- package/dist/features/monitoring/NotificationCenter.d.ts.map +1 -0
- package/dist/features/monitoring/index.css +579 -0
- package/dist/features/monitoring/index.d.ts +15 -0
- package/dist/features/monitoring/index.d.ts.map +1 -0
- package/dist/features/monitoring/index.js +538 -0
- package/dist/features/operations/CalibrationPage.d.ts +9 -0
- package/dist/features/operations/CalibrationPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts +43 -0
- package/dist/features/operations/CalibrationProjectDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationProjectsPage.d.ts +10 -0
- package/dist/features/operations/CalibrationProjectsPage.d.ts.map +1 -0
- package/dist/features/operations/CalibrationRunDetailPage.d.ts +35 -0
- package/dist/features/operations/CalibrationRunDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CommandQueueDetailPage.d.ts +16 -0
- package/dist/features/operations/CommandQueueDetailPage.d.ts.map +1 -0
- package/dist/features/operations/CommandQueuePage.d.ts +13 -0
- package/dist/features/operations/CommandQueuePage.d.ts.map +1 -0
- package/dist/features/operations/CommandViewPage.d.ts +6 -0
- package/dist/features/operations/CommandViewPage.d.ts.map +1 -0
- package/dist/features/operations/CommandViewSidebarContent.d.ts +19 -0
- package/dist/features/operations/CommandViewSidebarContent.d.ts.map +1 -0
- package/dist/features/operations/ResourceDetailPage.d.ts +25 -0
- package/dist/features/operations/ResourceDetailPage.d.ts.map +1 -0
- package/dist/features/operations/ResourcesPage.d.ts +15 -0
- package/dist/features/operations/ResourcesPage.d.ts.map +1 -0
- package/dist/features/operations/ResourcesSidebar.d.ts +9 -0
- package/dist/features/operations/ResourcesSidebar.d.ts.map +1 -0
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts +9 -0
- package/dist/features/operations/calibration-components/ComparisonTable.d.ts.map +1 -0
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts +12 -0
- package/dist/features/operations/executions/AgentExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/ExecutionPanel.d.ts +13 -0
- package/dist/features/operations/executions/ExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts +12 -0
- package/dist/features/operations/executions/WorkflowExecutionPanel.d.ts.map +1 -0
- package/dist/features/operations/executions/index.d.ts +7 -0
- package/dist/features/operations/executions/index.d.ts.map +1 -0
- package/dist/features/operations/index.css +14 -0
- package/dist/features/operations/index.d.ts +29 -98
- package/dist/features/operations/index.d.ts.map +1 -0
- package/dist/features/operations/index.js +2148 -28
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts +11 -0
- package/dist/features/operations/layouts/components/ResourceHeader.d.ts.map +1 -0
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts +8 -0
- package/dist/features/operations/layouts/components/ResourceNotFoundState.d.ts.map +1 -0
- package/dist/features/operations/layouts/components/index.d.ts +4 -0
- package/dist/features/operations/layouts/components/index.d.ts.map +1 -0
- package/dist/features/settings/AccountSettings.d.ts +20 -0
- package/dist/features/settings/AccountSettings.d.ts.map +1 -0
- package/dist/features/settings/AppearanceSettings.d.ts +23 -0
- package/dist/features/settings/AppearanceSettings.d.ts.map +1 -0
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts +8 -0
- package/dist/features/settings/CreateWebhookEndpointModal.d.ts.map +1 -0
- package/dist/features/settings/EditCredentialModal.d.ts +9 -0
- package/dist/features/settings/EditCredentialModal.d.ts.map +1 -0
- package/dist/features/settings/EditWebhookEndpointModal.d.ts +8 -0
- package/dist/features/settings/EditWebhookEndpointModal.d.ts.map +1 -0
- package/dist/features/settings/MemberConfigModal.d.ts +14 -0
- package/dist/features/settings/MemberConfigModal.d.ts.map +1 -0
- package/dist/features/settings/OAuthIntegrationsCard.d.ts +6 -0
- package/dist/features/settings/OAuthIntegrationsCard.d.ts.map +1 -0
- package/dist/features/settings/OrgMembersList.d.ts +5 -0
- package/dist/features/settings/OrgMembersList.d.ts.map +1 -0
- package/dist/features/settings/OrganizationSettings.d.ts +30 -0
- package/dist/features/settings/OrganizationSettings.d.ts.map +1 -0
- package/dist/features/settings/WebhookEndpointList.d.ts +9 -0
- package/dist/features/settings/WebhookEndpointList.d.ts.map +1 -0
- package/dist/features/settings/WebhookEndpointSettings.d.ts +6 -0
- package/dist/features/settings/WebhookEndpointSettings.d.ts.map +1 -0
- package/dist/features/settings/index.css +579 -0
- package/dist/features/settings/index.d.ts +23 -0
- package/dist/features/settings/index.d.ts.map +1 -0
- package/dist/features/settings/index.js +1437 -0
- package/dist/hooks/command-queue/index.d.ts +7 -0
- package/dist/hooks/command-queue/index.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts +33 -0
- package/dist/hooks/command-queue/useCommandQueue.d.ts.map +1 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts +17 -0
- package/dist/hooks/command-queue/useCommandQueueTotals.d.ts.map +1 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts +5 -0
- package/dist/hooks/command-queue/useDeleteTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts +6 -0
- package/dist/hooks/command-queue/usePatchTask.d.ts.map +1 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts +29 -0
- package/dist/hooks/command-queue/useSubmitAction.d.ts.map +1 -0
- package/dist/hooks/executions/index.d.ts +17 -0
- package/dist/hooks/executions/index.d.ts.map +1 -0
- package/dist/hooks/executions/useArchivedLogs.d.ts +14 -0
- package/dist/hooks/executions/useArchivedLogs.d.ts.map +1 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts +15 -0
- package/dist/hooks/executions/useBulkDeleteExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useCancelExecution.d.ts +20 -0
- package/dist/hooks/executions/useCancelExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts +13 -0
- package/dist/hooks/executions/useDeleteExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts +21 -0
- package/dist/hooks/executions/useExecuteAsync.d.ts.map +1 -0
- package/dist/hooks/executions/useExecution.d.ts +10 -0
- package/dist/hooks/executions/useExecution.d.ts.map +1 -0
- package/dist/hooks/executions/useExecutions.d.ts +16 -0
- package/dist/hooks/executions/useExecutions.d.ts.map +1 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts +9 -0
- package/dist/hooks/executions/useResourceDefinition.d.ts.map +1 -0
- package/dist/hooks/executions/useResources.d.ts +15 -0
- package/dist/hooks/executions/useResources.d.ts.map +1 -0
- package/dist/hooks/executions/useRetryExecution.d.ts +16 -0
- package/dist/hooks/executions/useRetryExecution.d.ts.map +1 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts +41 -0
- package/dist/hooks/feature-access/createUseFeatureAccess.d.ts.map +1 -0
- package/dist/hooks/feature-access/index.d.ts +2 -0
- package/dist/hooks/feature-access/index.d.ts.map +1 -0
- package/dist/hooks/index.css +14 -0
- package/dist/hooks/index.d.ts +22 -6593
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +13 -13
- package/dist/hooks/monitoring/index.d.ts +11 -0
- package/dist/hooks/monitoring/index.d.ts.map +1 -0
- package/dist/hooks/monitoring/useActivities.d.ts +52 -0
- package/dist/hooks/monitoring/useActivities.d.ts.map +1 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts +7 -0
- package/dist/hooks/monitoring/useCostSummary.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts +10 -0
- package/dist/hooks/monitoring/useExecutionHealth.d.ts.map +1 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts +56 -0
- package/dist/hooks/monitoring/useExecutionLogs.d.ts.map +1 -0
- package/dist/hooks/monitoring/useNotificationCount.d.ts +26 -0
- package/dist/hooks/monitoring/useNotificationCount.d.ts.map +1 -0
- package/dist/hooks/monitoring/useNotifications.d.ts +11 -0
- package/dist/hooks/monitoring/useNotifications.d.ts.map +1 -0
- package/dist/hooks/notifications/index.d.ts +8 -0
- package/dist/hooks/notifications/index.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAllAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts +2 -0
- package/dist/hooks/notifications/useMarkAsRead.d.ts.map +1 -0
- package/dist/hooks/notifications/useTestNotification.d.ts +16 -0
- package/dist/hooks/notifications/useTestNotification.d.ts.map +1 -0
- package/dist/hooks/observability/index.d.ts +25 -0
- package/dist/hooks/observability/index.d.ts.map +1 -0
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts +15 -0
- package/dist/hooks/observability/useBatchedResourcesHealth.d.ts.map +1 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts +9 -0
- package/dist/hooks/observability/useBusinessImpact.d.ts.map +1 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts +10 -0
- package/dist/hooks/observability/useCostBreakdown.d.ts.map +1 -0
- package/dist/hooks/observability/useCostByModel.d.ts +3 -0
- package/dist/hooks/observability/useCostByModel.d.ts.map +1 -0
- package/dist/hooks/observability/useCostTrends.d.ts +3 -0
- package/dist/hooks/observability/useCostTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts +3 -0
- package/dist/hooks/observability/useDashboardMetrics.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts +7 -0
- package/dist/hooks/observability/useErrorAnalysis.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDetails.d.ts +20 -0
- package/dist/hooks/observability/useErrorDetails.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts +12 -0
- package/dist/hooks/observability/useErrorDistribution.d.ts.map +1 -0
- package/dist/hooks/observability/useErrorTrends.d.ts +12 -0
- package/dist/hooks/observability/useErrorTrends.d.ts.map +1 -0
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts +18 -0
- package/dist/hooks/observability/useRecentExecutionsByResource.d.ts.map +1 -0
- package/dist/hooks/observability/useResolveError.d.ts +17 -0
- package/dist/hooks/observability/useResolveError.d.ts.map +1 -0
- package/dist/hooks/observability/useResourcesHealth.d.ts +13 -0
- package/dist/hooks/observability/useResourcesHealth.d.ts.map +1 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts +13 -0
- package/dist/hooks/observability/useTopFailingResources.d.ts.map +1 -0
- package/dist/hooks/observability/useUnresolvedErrors.d.ts +15 -0
- package/dist/hooks/observability/useUnresolvedErrors.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts +24 -0
- package/dist/hooks/operations/calibration/useCalibrationProjects.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts +3 -0
- package/dist/hooks/operations/calibration/useCalibrationRunFull.d.ts.map +1 -0
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts +35 -0
- package/dist/hooks/operations/calibration/useCalibrationRuns.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/index.d.ts +8 -0
- package/dist/hooks/operations/command-view/index.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts +24 -0
- package/dist/hooks/operations/command-view/useCheckpointTasks.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts +11 -0
- package/dist/hooks/operations/command-view/useCommandViewData.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts +12 -0
- package/dist/hooks/operations/command-view/useCommandViewStats.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts +22 -0
- package/dist/hooks/operations/command-view/useResourceErrors.d.ts.map +1 -0
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts +22 -0
- package/dist/hooks/operations/command-view/useResourceExecutions.d.ts.map +1 -0
- package/dist/hooks/operations/index.d.ts +4 -0
- package/dist/hooks/operations/index.d.ts.map +1 -0
- package/dist/hooks/operations/knowledge-base/index.d.ts +3 -0
- package/dist/hooks/operations/knowledge-base/index.d.ts.map +1 -0
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts +27 -0
- package/dist/hooks/operations/knowledge-base/useDeploymentDocs.d.ts.map +1 -0
- package/dist/hooks/operations/settings/index.d.ts +4 -0
- package/dist/hooks/operations/settings/index.d.ts.map +1 -0
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts +17 -0
- package/dist/hooks/operations/settings/useOAuthFlow.d.ts.map +1 -0
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts +17 -0
- package/dist/hooks/operations/settings/useUpdateThemePreference.d.ts.map +1 -0
- package/dist/hooks/operations/shared/index.d.ts +6 -0
- package/dist/hooks/operations/shared/index.d.ts.map +1 -0
- package/dist/hooks/operations/shared/queryKeys.d.ts +23 -0
- package/dist/hooks/operations/shared/queryKeys.d.ts.map +1 -0
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts +11 -0
- package/dist/hooks/operations/shared/useExecutionLogSSE.d.ts.map +1 -0
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts +46 -0
- package/dist/hooks/operations/shared/useExecutionPanelState.d.ts.map +1 -0
- package/dist/hooks/published.css +14 -0
- package/dist/hooks/published.d.ts +21 -6037
- package/dist/hooks/published.d.ts.map +1 -0
- package/dist/hooks/published.js +12 -12
- package/dist/hooks/scheduling/index.d.ts +7 -0
- package/dist/hooks/scheduling/index.d.ts.map +1 -0
- package/dist/hooks/scheduling/useScheduledTasks.d.ts +19 -0
- package/dist/hooks/scheduling/useScheduledTasks.d.ts.map +1 -0
- package/dist/hooks/scheduling/useSchedules.d.ts +185 -0
- package/dist/hooks/scheduling/useSchedules.d.ts.map +1 -0
- package/dist/hooks/sessions/index.d.ts +8 -0
- package/dist/hooks/sessions/index.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts +13 -0
- package/dist/hooks/sessions/useSessionExecutions.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts +7 -0
- package/dist/hooks/sessions/useSessionMessages.d.ts.map +1 -0
- package/dist/hooks/sessions/useSessions.d.ts +26 -0
- package/dist/hooks/sessions/useSessions.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/index.d.ts +7 -0
- package/dist/hooks/settings/api-keys/index.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts +3 -0
- package/dist/hooks/settings/api-keys/useCreateApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts +2 -0
- package/dist/hooks/settings/api-keys/useDeleteApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts +2 -0
- package/dist/hooks/settings/api-keys/useListApiKeys.d.ts.map +1 -0
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts +5 -0
- package/dist/hooks/settings/api-keys/useUpdateApiKey.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/index.d.ts +7 -0
- package/dist/hooks/settings/credentials/index.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts +3 -0
- package/dist/hooks/settings/credentials/useCreateCredential.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useCredentials.d.ts +8 -0
- package/dist/hooks/settings/credentials/useCredentials.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts +2 -0
- package/dist/hooks/settings/credentials/useDeleteCredential.d.ts.map +1 -0
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts +10 -0
- package/dist/hooks/settings/credentials/useUpdateCredential.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/index.d.ts +5 -0
- package/dist/hooks/settings/deployments/index.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts +4 -0
- package/dist/hooks/settings/deployments/useDeploymentActions.d.ts.map +1 -0
- package/dist/hooks/settings/deployments/useListDeployments.d.ts +2 -0
- package/dist/hooks/settings/deployments/useListDeployments.d.ts.map +1 -0
- package/dist/hooks/settings/index.d.ts +6 -0
- package/dist/hooks/settings/index.d.ts.map +1 -0
- package/dist/hooks/settings/organization/index.d.ts +6 -0
- package/dist/hooks/settings/organization/index.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts +11 -0
- package/dist/hooks/settings/organization/useDeactivateMembership.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts +11 -0
- package/dist/hooks/settings/organization/useReactivateMembership.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts +8 -0
- package/dist/hooks/settings/organization/useUpdateMemberConfig.d.ts.map +1 -0
- package/dist/hooks/settings/organization/useUserMemberships.d.ts +3 -0
- package/dist/hooks/settings/organization/useUserMemberships.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/index.d.ts +7 -0
- package/dist/hooks/settings/webhooks/index.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts +18 -0
- package/dist/hooks/settings/webhooks/useCreateWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts +2 -0
- package/dist/hooks/settings/webhooks/useDeleteWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts +14 -0
- package/dist/hooks/settings/webhooks/useListWebhookEndpoints.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts +18 -0
- package/dist/hooks/settings/webhooks/useUpdateWebhookEndpoint.d.ts.map +1 -0
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts +27 -0
- package/dist/hooks/settings/webhooks/webhookEndpointService.d.ts.map +1 -0
- package/dist/hooks/useOrganizationMembers.d.ts +18 -0
- package/dist/hooks/useOrganizationMembers.d.ts.map +1 -0
- package/dist/index.css +14 -0
- package/dist/index.d.ts +15 -8494
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -15
- package/dist/initialization/InitializationProvider.d.ts +48 -0
- package/dist/initialization/InitializationProvider.d.ts.map +1 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts +32 -0
- package/dist/initialization/hooks/useAppInitialization.d.ts.map +1 -0
- package/dist/initialization/index.d.ts +23 -2526
- package/dist/initialization/index.d.ts.map +1 -0
- package/dist/initialization/index.js +2 -2
- package/dist/layout/index.d.ts +8 -175
- package/dist/layout/index.js +7 -5
- package/dist/organization/context/OrganizationProvider.d.ts +24 -0
- package/dist/organization/context/OrganizationProvider.d.ts.map +1 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts +56 -0
- package/dist/organization/hooks/useOrgInitialization.d.ts.map +1 -0
- package/dist/organization/index.d.ts +23 -274
- package/dist/organization/index.d.ts.map +1 -0
- package/dist/organization/index.js +2 -2
- package/dist/profile/context/ProfileProvider.d.ts +31 -0
- package/dist/profile/context/ProfileProvider.d.ts.map +1 -0
- package/dist/profile/hooks/useUserProfile.d.ts +38 -0
- package/dist/profile/hooks/useUserProfile.d.ts.map +1 -0
- package/dist/profile/index.d.ts +15 -2477
- package/dist/profile/index.d.ts.map +1 -0
- package/dist/provider/CoreAuthKitInner.d.ts +12 -0
- package/dist/provider/CoreAuthKitInner.d.ts.map +1 -0
- package/dist/provider/ElevasisCoreProvider.d.ts +25 -0
- package/dist/provider/ElevasisCoreProvider.d.ts.map +1 -0
- package/dist/provider/ElevasisServiceContext.d.ts +31 -0
- package/dist/provider/ElevasisServiceContext.d.ts.map +1 -0
- package/dist/provider/ElevasisUIProvider.d.ts +28 -0
- package/dist/provider/ElevasisUIProvider.d.ts.map +1 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts +2 -0
- package/dist/provider/__tests__/CoreAuthKitInner.test.d.ts.map +1 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts +2 -0
- package/dist/provider/__tests__/ElevasisCoreProvider.test.d.ts.map +1 -0
- package/dist/provider/index.css +14 -0
- package/dist/provider/index.d.ts +11 -334
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +10 -10
- package/dist/provider/published.d.ts +11 -309
- package/dist/provider/published.d.ts.map +1 -0
- package/dist/provider/published.js +6 -6
- package/dist/provider/types.d.ts +151 -0
- package/dist/provider/types.d.ts.map +1 -0
- package/dist/sdk-barrel.d.ts +20 -0
- package/dist/sdk-barrel.d.ts.map +1 -0
- package/dist/theme/PresetsContext.d.ts +4 -0
- package/dist/theme/PresetsContext.d.ts.map +1 -0
- package/dist/theme/cssVariables.d.ts +12 -0
- package/dist/theme/cssVariables.d.ts.map +1 -0
- package/dist/theme/index.d.ts +10 -148
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +3 -3
- package/dist/theme/presets/__tests__/getPreset.test.d.ts +2 -0
- package/dist/theme/presets/__tests__/getPreset.test.d.ts.map +1 -0
- package/dist/theme/presets/abyss.d.ts +3 -0
- package/dist/theme/presets/abyss.d.ts.map +1 -0
- package/dist/theme/presets/aurora.d.ts +12 -0
- package/dist/theme/presets/aurora.d.ts.map +1 -0
- package/dist/theme/presets/canopy.d.ts +12 -0
- package/dist/theme/presets/canopy.d.ts.map +1 -0
- package/dist/theme/presets/canyon.d.ts +11 -0
- package/dist/theme/presets/canyon.d.ts.map +1 -0
- package/dist/theme/presets/cortex.d.ts +3 -0
- package/dist/theme/presets/cortex.d.ts.map +1 -0
- package/dist/theme/presets/cyber-punk.d.ts +11 -0
- package/dist/theme/presets/cyber-punk.d.ts.map +1 -0
- package/dist/theme/presets/cyber-strike.d.ts +13 -0
- package/dist/theme/presets/cyber-strike.d.ts.map +1 -0
- package/dist/theme/presets/cyber-void.d.ts +12 -0
- package/dist/theme/presets/cyber-void.d.ts.map +1 -0
- package/dist/theme/presets/cyber-volt.d.ts +12 -0
- package/dist/theme/presets/cyber-volt.d.ts.map +1 -0
- package/dist/theme/presets/default.d.ts +4 -0
- package/dist/theme/presets/default.d.ts.map +1 -0
- package/dist/theme/presets/ember.d.ts +12 -0
- package/dist/theme/presets/ember.d.ts.map +1 -0
- package/dist/theme/presets/helios.d.ts +3 -0
- package/dist/theme/presets/helios.d.ts.map +1 -0
- package/dist/theme/presets/honey.d.ts +12 -0
- package/dist/theme/presets/honey.d.ts.map +1 -0
- package/dist/theme/presets/index.d.ts +8 -0
- package/dist/theme/presets/index.d.ts.map +1 -0
- package/dist/theme/presets/midnight.d.ts +12 -0
- package/dist/theme/presets/midnight.d.ts.map +1 -0
- package/dist/theme/presets/nirvana.d.ts +16 -0
- package/dist/theme/presets/nirvana.d.ts.map +1 -0
- package/dist/theme/presets/obsidian.d.ts +3 -0
- package/dist/theme/presets/obsidian.d.ts.map +1 -0
- package/dist/theme/presets/regal.d.ts +8 -0
- package/dist/theme/presets/regal.d.ts.map +1 -0
- package/dist/theme/presets/rose-gold.d.ts +12 -0
- package/dist/theme/presets/rose-gold.d.ts.map +1 -0
- package/dist/theme/presets/slate.d.ts +3 -0
- package/dist/theme/presets/slate.d.ts.map +1 -0
- package/dist/theme/presets/synapse.d.ts +10 -0
- package/dist/theme/presets/synapse.d.ts.map +1 -0
- package/dist/theme/presets/tactical.d.ts +8 -0
- package/dist/theme/presets/tactical.d.ts.map +1 -0
- package/dist/theme/presets/types.d.ts +43 -0
- package/dist/theme/presets/types.d.ts.map +1 -0
- package/dist/theme/presets/verdant.d.ts +3 -0
- package/dist/theme/presets/verdant.d.ts.map +1 -0
- package/dist/theme/presets/wave.d.ts +14 -0
- package/dist/theme/presets/wave.d.ts.map +1 -0
- package/dist/theme/useAvailablePresets.d.ts +16 -0
- package/dist/theme/useAvailablePresets.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.ts +12 -1
- package/dist/utils/index.js +1 -1
- package/dist/zustand/index.d.ts +80 -0
- package/dist/zustand/index.js +105 -0
- package/package.json +53 -2
- package/dist/chunk-UEYUPTAD.js +0 -1542
- package/dist/{chunk-DVKEEY5J.js → chunk-TUXTSEAF.js} +1 -1
- package/dist/{chunk-U2522LSW.js → chunk-V7XHGJQZ.js} +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAE3G;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { createUseAppInitialization } from '../chunk-SLVC5OJ2.js';
|
|
2
2
|
import '../chunk-RNP5R5I3.js';
|
|
3
|
-
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-
|
|
4
|
-
import '../chunk-QEPXAWE2.js';
|
|
3
|
+
export { InitializationContext, InitializationProvider, useInitialization } from '../chunk-TUXTSEAF.js';
|
|
5
4
|
import '../chunk-DD3CCMCZ.js';
|
|
5
|
+
import '../chunk-QEPXAWE2.js';
|
|
6
6
|
import '../chunk-BRJ3QZ4E.js';
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -136,189 +136,22 @@ interface PerspectiveGridProps {
|
|
|
136
136
|
/**
|
|
137
137
|
* Override the grid line color. Defaults to a subtle border-tinted line
|
|
138
138
|
* derived from `var(--color-border)` so non-cyber presets get a theme-aware
|
|
139
|
-
* grid without the boldness of cyber variants (which pass the raw
|
|
140
|
-
-- Migrate prod delivery_* tables to match dev prj_* schema
|
|
141
|
-
-- -----------------------------------------------------------------------------
|
|
142
|
-
-- Context: dev uses the new prj_* prefix; prod still has the legacy delivery_*
|
|
143
|
-
-- tables. All four prod delivery_* tables are currently empty (0 rows), so this
|
|
144
|
-
-- migration does in-place RENAMEs plus additive column changes. RLS policies
|
|
145
|
-
-- are dropped and recreated because their names embed the old table name.
|
|
146
|
-
--
|
|
147
|
-
-- Mapping:
|
|
148
|
-
-- delivery_engagements -> prj_projects
|
|
149
|
-
-- delivery_milestones -> prj_milestones (engagement_id -> project_id)
|
|
150
|
-
-- delivery_deliverables -> prj_tasks (engagement_id -> project_id)
|
|
151
|
-
-- delivery_notes -> prj_notes (engagement_id -> project_id)
|
|
152
|
-
-- =============================================================================
|
|
153
|
-
|
|
154
|
-
BEGIN;
|
|
155
|
-
|
|
156
|
-
-- =============================================================================
|
|
157
|
-
-- 1. delivery_engagements -> prj_projects
|
|
158
|
-
-- =============================================================================
|
|
159
|
-
|
|
160
|
-
DROP POLICY IF EXISTS "Org admins can manage delivery_engagements" ON public.delivery_engagements;
|
|
161
|
-
DROP POLICY IF EXISTS "Org members can view delivery_engagements" ON public.delivery_engagements;
|
|
162
|
-
DROP POLICY IF EXISTS "Platform admins have full access to delivery_engagements" ON public.delivery_engagements;
|
|
163
|
-
|
|
164
|
-
ALTER TABLE public.delivery_engagements RENAME TO prj_projects;
|
|
165
|
-
|
|
166
|
-
ALTER INDEX public.delivery_engagements_pkey RENAME TO prj_projects_pkey;
|
|
167
|
-
ALTER INDEX public.idx_delivery_engagements_deal RENAME TO idx_prj_projects_deal;
|
|
168
|
-
ALTER INDEX public.idx_delivery_engagements_org RENAME TO idx_prj_projects_org;
|
|
169
|
-
ALTER INDEX public.idx_delivery_engagements_org_status RENAME TO idx_prj_projects_org_status;
|
|
170
|
-
|
|
171
|
-
-- Missing column in prod
|
|
172
|
-
ALTER TABLE public.prj_projects
|
|
173
|
-
ADD COLUMN kind text NOT NULL DEFAULT 'client_engagement';
|
|
174
|
-
|
|
175
|
-
-- Recreate RLS policies with new table name
|
|
176
|
-
CREATE POLICY "Org admins can manage prj_projects" ON public.prj_projects
|
|
177
|
-
FOR ALL
|
|
178
|
-
USING (is_org_admin(organization_id))
|
|
179
|
-
WITH CHECK (is_org_admin(organization_id));
|
|
180
|
-
|
|
181
|
-
CREATE POLICY "Org members can view prj_projects" ON public.prj_projects
|
|
182
|
-
FOR SELECT
|
|
183
|
-
USING (is_org_member(organization_id));
|
|
184
|
-
|
|
185
|
-
CREATE POLICY "Platform admins have full access to prj_projects" ON public.prj_projects
|
|
186
|
-
FOR ALL
|
|
187
|
-
USING (current_user_is_platform_admin())
|
|
188
|
-
WITH CHECK (current_user_is_platform_admin());
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
-- =============================================================================
|
|
192
|
-
-- 2. delivery_milestones -> prj_milestones
|
|
193
|
-
-- =============================================================================
|
|
194
|
-
|
|
195
|
-
DROP POLICY IF EXISTS "Org admins can manage delivery_milestones" ON public.delivery_milestones;
|
|
196
|
-
DROP POLICY IF EXISTS "Org members can view delivery_milestones" ON public.delivery_milestones;
|
|
197
|
-
DROP POLICY IF EXISTS "Platform admins have full access to delivery_milestones" ON public.delivery_milestones;
|
|
198
|
-
|
|
199
|
-
ALTER TABLE public.delivery_milestones RENAME TO prj_milestones;
|
|
200
|
-
ALTER TABLE public.prj_milestones RENAME COLUMN engagement_id TO project_id;
|
|
201
|
-
|
|
202
|
-
ALTER INDEX public.delivery_milestones_pkey RENAME TO prj_milestones_pkey;
|
|
203
|
-
ALTER INDEX public.idx_delivery_milestones_engagement RENAME TO idx_prj_milestones_project;
|
|
204
|
-
ALTER INDEX public.idx_delivery_milestones_org RENAME TO idx_prj_milestones_org;
|
|
205
|
-
ALTER INDEX public.idx_delivery_milestones_status RENAME TO idx_prj_milestones_status;
|
|
206
|
-
|
|
207
|
-
CREATE POLICY "Org admins can manage prj_milestones" ON public.prj_milestones
|
|
208
|
-
FOR ALL
|
|
209
|
-
USING (is_org_admin(organization_id))
|
|
210
|
-
WITH CHECK (is_org_admin(organization_id));
|
|
211
|
-
|
|
212
|
-
CREATE POLICY "Org members can view prj_milestones" ON public.prj_milestones
|
|
213
|
-
FOR SELECT
|
|
214
|
-
USING (is_org_member(organization_id));
|
|
215
|
-
|
|
216
|
-
CREATE POLICY "Platform admins have full access to prj_milestones" ON public.prj_milestones
|
|
217
|
-
FOR ALL
|
|
218
|
-
USING (current_user_is_platform_admin())
|
|
219
|
-
WITH CHECK (current_user_is_platform_admin());
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
-- =============================================================================
|
|
223
|
-
-- 3. delivery_deliverables -> prj_tasks
|
|
224
|
-
-- =============================================================================
|
|
225
|
-
|
|
226
|
-
DROP POLICY IF EXISTS "Org admins can manage delivery_deliverables" ON public.delivery_deliverables;
|
|
227
|
-
DROP POLICY IF EXISTS "Org members can view delivery_deliverables" ON public.delivery_deliverables;
|
|
228
|
-
DROP POLICY IF EXISTS "Platform admins have full access to delivery_deliverables" ON public.delivery_deliverables;
|
|
229
|
-
|
|
230
|
-
ALTER TABLE public.delivery_deliverables RENAME TO prj_tasks;
|
|
231
|
-
ALTER TABLE public.prj_tasks RENAME COLUMN engagement_id TO project_id;
|
|
232
|
-
|
|
233
|
-
ALTER INDEX public.delivery_deliverables_pkey RENAME TO prj_tasks_pkey;
|
|
234
|
-
ALTER INDEX public.idx_delivery_deliverables_engagement RENAME TO idx_prj_tasks_project;
|
|
235
|
-
ALTER INDEX public.idx_delivery_deliverables_milestone RENAME TO idx_prj_tasks_milestone;
|
|
236
|
-
ALTER INDEX public.idx_delivery_deliverables_org RENAME TO idx_prj_tasks_org;
|
|
237
|
-
ALTER INDEX public.idx_delivery_deliverables_status RENAME TO idx_prj_tasks_status;
|
|
238
|
-
|
|
239
|
-
-- Missing columns in prod
|
|
240
|
-
ALTER TABLE public.prj_tasks
|
|
241
|
-
ADD COLUMN parent_task_id uuid,
|
|
242
|
-
ADD COLUMN checklist jsonb NOT NULL DEFAULT '[]'::jsonb,
|
|
243
|
-
ADD COLUMN resume_context jsonb;
|
|
244
|
-
|
|
245
|
-
-- Missing index in prod
|
|
246
|
-
CREATE INDEX idx_prj_tasks_parent
|
|
247
|
-
ON public.prj_tasks USING btree (parent_task_id)
|
|
248
|
-
WHERE (parent_task_id IS NOT NULL);
|
|
249
|
-
|
|
250
|
-
CREATE POLICY "Org admins can manage prj_tasks" ON public.prj_tasks
|
|
251
|
-
FOR ALL
|
|
252
|
-
USING (is_org_admin(organization_id))
|
|
253
|
-
WITH CHECK (is_org_admin(organization_id));
|
|
254
|
-
|
|
255
|
-
CREATE POLICY "Org members can view prj_tasks" ON public.prj_tasks
|
|
256
|
-
FOR SELECT
|
|
257
|
-
USING (is_org_member(organization_id));
|
|
258
|
-
|
|
259
|
-
CREATE POLICY "Platform admins have full access to prj_tasks" ON public.prj_tasks
|
|
260
|
-
FOR ALL
|
|
261
|
-
USING (current_user_is_platform_admin())
|
|
262
|
-
WITH CHECK (current_user_is_platform_admin());
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
-- =============================================================================
|
|
266
|
-
-- 4. delivery_notes -> prj_notes
|
|
267
|
-
-- =============================================================================
|
|
268
|
-
|
|
269
|
-
DROP POLICY IF EXISTS "Org admins can manage delivery_notes" ON public.delivery_notes;
|
|
270
|
-
DROP POLICY IF EXISTS "Org members can view delivery_notes" ON public.delivery_notes;
|
|
271
|
-
DROP POLICY IF EXISTS "Platform admins have full access to delivery_notes" ON public.delivery_notes;
|
|
272
|
-
|
|
273
|
-
ALTER TABLE public.delivery_notes RENAME TO prj_notes;
|
|
274
|
-
ALTER TABLE public.prj_notes RENAME COLUMN engagement_id TO project_id;
|
|
275
|
-
|
|
276
|
-
ALTER INDEX public.delivery_notes_pkey RENAME TO prj_notes_pkey;
|
|
277
|
-
ALTER INDEX public.idx_delivery_notes_engagement RENAME TO idx_prj_notes_project;
|
|
278
|
-
ALTER INDEX public.idx_delivery_notes_org RENAME TO idx_prj_notes_org;
|
|
279
|
-
ALTER INDEX public.idx_delivery_notes_occurred_at RENAME TO idx_prj_notes_occurred_at;
|
|
280
|
-
ALTER INDEX public.idx_delivery_notes_type RENAME TO idx_prj_notes_type;
|
|
281
|
-
|
|
282
|
-
-- Missing columns in prod
|
|
283
|
-
ALTER TABLE public.prj_notes
|
|
284
|
-
ADD COLUMN task_id uuid,
|
|
285
|
-
ADD COLUMN milestone_id uuid;
|
|
286
|
-
|
|
287
|
-
-- Missing indexes in prod
|
|
288
|
-
CREATE INDEX idx_prj_notes_task
|
|
289
|
-
ON public.prj_notes USING btree (task_id)
|
|
290
|
-
WHERE (task_id IS NOT NULL);
|
|
291
|
-
|
|
292
|
-
CREATE INDEX idx_prj_notes_milestone
|
|
293
|
-
ON public.prj_notes USING btree (milestone_id)
|
|
294
|
-
WHERE (milestone_id IS NOT NULL);
|
|
295
|
-
|
|
296
|
-
CREATE POLICY "Org admins can manage prj_notes" ON public.prj_notes
|
|
297
|
-
FOR ALL
|
|
298
|
-
USING (is_org_admin(organization_id))
|
|
299
|
-
WITH CHECK (is_org_admin(organization_id));
|
|
300
|
-
|
|
301
|
-
CREATE POLICY "Org members can view prj_notes" ON public.prj_notes
|
|
302
|
-
FOR SELECT
|
|
303
|
-
USING (is_org_member(organization_id));
|
|
304
|
-
|
|
305
|
-
CREATE POLICY "Platform admins have full access to prj_notes" ON public.prj_notes
|
|
306
|
-
FOR ALL
|
|
307
|
-
USING (current_user_is_platform_admin())
|
|
308
|
-
WITH CHECK (current_user_is_platform_admin());
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
COMMIT;
|
|
312
|
-
order
|
|
139
|
+
* grid without the boldness of cyber variants (which pass the raw border
|
|
313
140
|
* token explicitly).
|
|
314
141
|
*/
|
|
315
142
|
lineColor?: string;
|
|
143
|
+
/**
|
|
144
|
+
* When true, the bottom radial glow is taller, wider, and more saturated
|
|
145
|
+
* — used by cyber presets to emphasize the horizon. Defaults to false so
|
|
146
|
+
* non-cyber presets keep the original subtle glow.
|
|
147
|
+
*/
|
|
148
|
+
prominentGlow?: boolean;
|
|
316
149
|
className?: string;
|
|
317
150
|
}
|
|
318
151
|
/**
|
|
319
152
|
* 3D perspective grid background using CSS transforms
|
|
320
153
|
*/
|
|
321
|
-
declare function PerspectiveGrid({ glowColor, lineColor: lineColorProp, className }: PerspectiveGridProps): React$1.JSX.Element;
|
|
154
|
+
declare function PerspectiveGrid({ glowColor: glowColorProp, lineColor: lineColorProp, prominentGlow, className }: PerspectiveGridProps): React$1.JSX.Element;
|
|
322
155
|
|
|
323
156
|
interface RadiantGlowProps {
|
|
324
157
|
/** Override the glow color. Defaults to var(--color-primary). */
|
package/dist/layout/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { SubshellLoader, SubshellSidebarSection } from '../chunk-
|
|
3
|
-
|
|
1
|
+
export { AppShellContainer, AppShellContentContainer, AppShellRightSideContainer, AppShellRightSideOuterContainer, AppTopbarAdjusterWrapper, CollapsibleSidebarGroup, LinksGroup, Sidebar, SidebarContext, SidebarListItem, SidebarProvider, SubshellContainer, SubshellContentContainer, SubshellRightSideContainer, SubshellSidebar, Topbar, TopbarContainer, Vignette, subsidebarWidth, useSidebar, useSidebarCollapse } from '../chunk-EMN755L5.js';
|
|
2
|
+
export { PageContainer, SubshellLoader, SubshellSidebarSection } from '../chunk-JFRG2JJE.js';
|
|
3
|
+
import '../chunk-NNKKBSJN.js';
|
|
4
|
+
export { AppShellCenteredContainer, AppShellError, AppShellLoader } from '../chunk-WWEMNIHW.js';
|
|
5
|
+
export { sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarListItemIconSize, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, topbarHeight } from '../chunk-QJ2S46NI.js';
|
|
4
6
|
import '../chunk-MHW43EOH.js';
|
|
5
|
-
export { AppBackground } from '../chunk-
|
|
6
|
-
export { CyberBackground, CyberParticles, FilmGrain, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-
|
|
7
|
+
export { AppBackground } from '../chunk-JHMJKDVU.js';
|
|
8
|
+
export { CyberBackground, CyberParticles, FilmGrain, FloatingOrbs, PerspectiveGrid, RadiantGlow, WaveBackground } from '../chunk-ACD2QA6E.js';
|
|
7
9
|
import '../chunk-QJ2KCHKX.js';
|
|
8
10
|
import '../chunk-Q7DJKLEN.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type OrganizationContextValue } from './OrganizationContext';
|
|
3
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
4
|
+
/**
|
|
5
|
+
* Provides organization state to its subtree via React Context.
|
|
6
|
+
*
|
|
7
|
+
* Must be rendered inside:
|
|
8
|
+
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
9
|
+
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
10
|
+
*
|
|
11
|
+
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
12
|
+
*
|
|
13
|
+
* Behaviors:
|
|
14
|
+
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
15
|
+
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
16
|
+
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
17
|
+
* - Clears all state when the user signs out (user becomes null)
|
|
18
|
+
*/
|
|
19
|
+
export declare function OrganizationProvider({ apiRequest, children }: {
|
|
20
|
+
apiRequest: ApiRequestFn;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}): import("react").FunctionComponentElement<import("react").ProviderProps<OrganizationContextValue | null>>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=OrganizationProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationProvider.d.ts","sourceRoot":"","sources":["../../../src/organization/context/OrganizationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAK/F,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAE1F,KAAK,YAAY,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;AAE9E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,4GAqN/G"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { MembershipWithDetails } from '@repo/core';
|
|
2
|
+
/**
|
|
3
|
+
* Type for the useOrganizations hook return value
|
|
4
|
+
*/
|
|
5
|
+
export interface UseOrganizationsReturn {
|
|
6
|
+
currentWorkOSOrganizationId: string | null;
|
|
7
|
+
currentMembership: MembershipWithDetails | null;
|
|
8
|
+
setCurrentWorkOSOrganizationId: (id: string | null) => void;
|
|
9
|
+
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
10
|
+
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
11
|
+
setOrganizationsLoading: (loading: boolean) => void;
|
|
12
|
+
setOrganizationsError: (error: string | null) => void;
|
|
13
|
+
organizations: {
|
|
14
|
+
isInitializing: boolean;
|
|
15
|
+
isOrgRefreshing: boolean;
|
|
16
|
+
error: string | null;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Type for the useApiClient hook return value
|
|
21
|
+
*/
|
|
22
|
+
export interface UseApiClientReturn {
|
|
23
|
+
apiRequest: <T = unknown>(path: string, options?: RequestInit) => Promise<T>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Return type for useOrgInitialization hook
|
|
27
|
+
*/
|
|
28
|
+
export interface UseOrgInitializationReturn {
|
|
29
|
+
memberships: MembershipWithDetails[];
|
|
30
|
+
isInitializing: boolean;
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
isInitialized: boolean;
|
|
33
|
+
error: string | null;
|
|
34
|
+
currentOrganization: MembershipWithDetails['organization'] | null;
|
|
35
|
+
retry: () => Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Factory function to create a useOrgInitialization hook for your app.
|
|
39
|
+
*
|
|
40
|
+
* Usage in app:
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import { createUseOrgInitialization } from '@repo/ui/organization'
|
|
43
|
+
* import { useOrganizations } from './hooks/useOrganizations'
|
|
44
|
+
* import { useApiClient } from './api/hooks/useApiClient'
|
|
45
|
+
*
|
|
46
|
+
* export const useOrgInitialization = createUseOrgInitialization(
|
|
47
|
+
* useOrganizations,
|
|
48
|
+
* useApiClient
|
|
49
|
+
* )
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* This pattern allows the shared package to provide the hook logic
|
|
53
|
+
* while each app provides its own hook instances.
|
|
54
|
+
*/
|
|
55
|
+
export declare function createUseOrgInitialization(useOrganizations: () => UseOrganizationsReturn, useApiClient: () => UseApiClientReturn): () => UseOrgInitializationReturn;
|
|
56
|
+
//# sourceMappingURL=useOrgInitialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOrgInitialization.d.ts","sourceRoot":"","sources":["../../../src/organization/hooks/useOrgInitialization.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1C,iBAAiB,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC/C,8BAA8B,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC3D,oBAAoB,EAAE,CAAC,UAAU,EAAE,qBAAqB,GAAG,IAAI,KAAK,IAAI,CAAA;IACxE,4BAA4B,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAA;IAC7D,uBAAuB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACnD,qBAAqB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACrD,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAA;QACvB,eAAe,EAAE,OAAO,CAAA;QACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACrB,CAAA;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7E;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,qBAAqB,EAAE,CAAA;IACpC,cAAc,EAAE,OAAO,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,mBAAmB,EAAE,qBAAqB,CAAC,cAAc,CAAC,GAAG,IAAI,CAAA;IACjE,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,MAAM,sBAAsB,EAC9C,YAAY,EAAE,MAAM,kBAAkB,GACrC,MAAM,0BAA0B,CA6NlC"}
|
|
@@ -1,275 +1,24 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { UseBoundStore, StoreApi } from 'zustand';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
|
-
* Multi-tenancy
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* Organization Membership types based on WorkOS API
|
|
31
|
-
*/
|
|
32
|
-
interface OrganizationMembership {
|
|
33
|
-
object: 'organization_membership';
|
|
34
|
-
id: string;
|
|
35
|
-
userId: string;
|
|
36
|
-
organizationId: string;
|
|
37
|
-
role: {
|
|
38
|
-
slug: string;
|
|
39
|
-
};
|
|
40
|
-
status: 'active' | 'inactive';
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Extended membership with user and organization details for UI
|
|
46
|
-
*/
|
|
47
|
-
interface MembershipWithDetails extends OrganizationMembership {
|
|
48
|
-
user?: {
|
|
49
|
-
id: string;
|
|
50
|
-
email: string;
|
|
51
|
-
firstName?: string;
|
|
52
|
-
lastName?: string;
|
|
53
|
-
profilePictureUrl?: string;
|
|
54
|
-
};
|
|
55
|
-
organization?: {
|
|
56
|
-
id: string;
|
|
57
|
-
name: string;
|
|
58
|
-
workos_org_id: string;
|
|
59
|
-
primaryDomain?: string;
|
|
60
|
-
is_test?: boolean;
|
|
61
|
-
status?: string;
|
|
62
|
-
metadata?: Record<string, unknown>;
|
|
63
|
-
config?: Record<string, unknown>;
|
|
64
|
-
};
|
|
65
|
-
config?: MembershipFeatureConfig;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The value exposed by OrganizationProvider to all consumers.
|
|
70
|
-
*/
|
|
71
|
-
interface OrganizationContextValue {
|
|
72
|
-
/** WorkOS organization ID of the currently selected organization. */
|
|
73
|
-
currentWorkOSOrganizationId: string | null;
|
|
74
|
-
/** Supabase (UUID) organization ID of the currently selected organization. */
|
|
75
|
-
currentSupabaseOrganizationId: string | null;
|
|
76
|
-
/** Full membership record for the currently selected organization. */
|
|
77
|
-
currentMembership: MembershipWithDetails | null;
|
|
78
|
-
/** All memberships for the authenticated user. */
|
|
79
|
-
memberships: MembershipWithDetails[];
|
|
80
|
-
/** True while the initial membership list is being fetched. */
|
|
81
|
-
isInitializing: boolean;
|
|
82
|
-
/** True while a subsequent org switch / refresh is in flight. */
|
|
83
|
-
isOrgRefreshing: boolean;
|
|
84
|
-
/** Error message if the membership fetch or org switch failed. */
|
|
85
|
-
error: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* Switch the active organization.
|
|
88
|
-
*
|
|
89
|
-
* Persists the selection to `last_visited_org` on the user profile and
|
|
90
|
-
* invalidates all org-scoped TanStack Query cache entries.
|
|
91
|
-
*
|
|
92
|
-
* @param workosOrgId - WorkOS organization ID to switch to.
|
|
93
|
-
*/
|
|
94
|
-
switchOrganization: (workosOrgId: string) => void;
|
|
95
|
-
/**
|
|
96
|
-
* Re-fetch memberships and retry org selection after an error.
|
|
97
|
-
*/
|
|
98
|
-
retry: () => Promise<void>;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Consumes the nearest OrganizationProvider.
|
|
102
|
-
*
|
|
103
|
-
* @throws {Error} If called outside of an OrganizationProvider tree.
|
|
104
|
-
*/
|
|
105
|
-
declare function useOrganization(): OrganizationContextValue;
|
|
106
|
-
|
|
107
|
-
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
108
|
-
/**
|
|
109
|
-
* Provides organization state to its subtree via React Context.
|
|
110
|
-
*
|
|
111
|
-
* Must be rendered inside:
|
|
112
|
-
* - ProfileProvider (needs useProfile for last_visited_org preference)
|
|
113
|
-
* - A TanStack QueryClientProvider (needs useQueryClient for cache invalidation)
|
|
114
|
-
*
|
|
115
|
-
* Receives apiRequest as a prop so it can mount before ElevasisServiceProvider.
|
|
116
|
-
*
|
|
117
|
-
* Behaviors:
|
|
118
|
-
* - Fetches all memberships for the authenticated user via GET /memberships/my-memberships
|
|
119
|
-
* - Selects the active org by priority: saved preference > WorkOS org ID > first membership
|
|
120
|
-
* - Persists org switches to PATCH /users/me { last_visited_org }
|
|
121
|
-
* - Clears all state when the user signs out (user becomes null)
|
|
122
|
-
*/
|
|
123
|
-
declare function OrganizationProvider({ apiRequest, children }: {
|
|
124
|
-
apiRequest: ApiRequestFn;
|
|
125
|
-
children: ReactNode;
|
|
126
|
-
}): react.FunctionComponentElement<react.ProviderProps<OrganizationContextValue | null>>;
|
|
127
|
-
|
|
128
|
-
type Organization = NonNullable<MembershipWithDetails['organization']>;
|
|
129
|
-
interface OrganizationSwitcherProps {
|
|
130
|
-
currentOrganization: Organization | undefined;
|
|
131
|
-
memberships: MembershipWithDetails[];
|
|
132
|
-
isLoading: boolean;
|
|
133
|
-
onSwitch: (workosOrgId: string) => Promise<void>;
|
|
134
|
-
}
|
|
135
|
-
declare function OrganizationSwitcher({ currentOrganization, memberships, isLoading, onSwitch }: OrganizationSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
136
|
-
|
|
137
|
-
interface OrganizationsState {
|
|
138
|
-
currentWorkOSOrganizationId: string | null;
|
|
139
|
-
currentSupabaseOrganizationId: string | null;
|
|
140
|
-
currentMembership: MembershipWithDetails | null;
|
|
141
|
-
isInitializing: boolean;
|
|
142
|
-
isOrgRefreshing: boolean;
|
|
143
|
-
error: string | null;
|
|
144
|
-
}
|
|
145
|
-
interface OrganizationsActions {
|
|
146
|
-
setCurrentWorkOSOrganizationId: (workOSorgId: string | null) => void;
|
|
147
|
-
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
148
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
149
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
150
|
-
setOrganizationsError: (error: string | null) => void;
|
|
151
|
-
}
|
|
152
|
-
interface OrganizationsSlice extends OrganizationsActions {
|
|
153
|
-
organizations: OrganizationsState;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Type for Zustand's immer set function.
|
|
158
|
-
* This is a simplified version that works with immer middleware.
|
|
159
|
-
* The replace parameter uses false | undefined to match Zustand's type for immer mutation support.
|
|
160
|
-
*/
|
|
161
|
-
type ImmerSet<T> = (partial: T | Partial<T> | ((state: T) => void), replace?: false | undefined, action?: string) => void;
|
|
162
|
-
/**
|
|
163
|
-
* Creates the organizations slice for Zustand store.
|
|
164
|
-
*
|
|
165
|
-
* Usage in app:
|
|
166
|
-
* ```typescript
|
|
167
|
-
* import { createOrganizationsSlice } from '@repo/ui/organization'
|
|
168
|
-
*
|
|
169
|
-
* // Define AppState that extends OrganizationsSlice
|
|
170
|
-
* interface AppState extends OrganizationsSlice {
|
|
171
|
-
* // other slices...
|
|
172
|
-
* }
|
|
173
|
-
*
|
|
174
|
-
* // Pass the slice creator to your store
|
|
175
|
-
* const useAppStore = create<AppState>()(
|
|
176
|
-
* devtools(
|
|
177
|
-
* immer((...a) => ({
|
|
178
|
-
* ...createOrganizationsSlice(...a),
|
|
179
|
-
* // other slices...
|
|
180
|
-
* }))
|
|
181
|
-
* )
|
|
182
|
-
* )
|
|
183
|
-
* ```
|
|
184
|
-
*
|
|
185
|
-
* Note: The slice creator accepts set/get/store from any Zustand store
|
|
186
|
-
* that extends OrganizationsSlice. It returns the slice state and actions.
|
|
187
|
-
*/
|
|
188
|
-
declare const createOrganizationsSlice: <TAppState extends OrganizationsSlice>(set: ImmerSet<TAppState>, _get: () => TAppState, _store: unknown) => OrganizationsSlice;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Factory function to create a useOrganizations hook for your app's store.
|
|
192
|
-
*
|
|
193
|
-
* Usage in app:
|
|
194
|
-
* ```typescript
|
|
195
|
-
* import { createUseOrganizations } from '@repo/ui/organization'
|
|
196
|
-
* import { useAppStore } from './zustand/store'
|
|
197
|
-
*
|
|
198
|
-
* export const useOrganizations = createUseOrganizations(useAppStore)
|
|
199
|
-
* ```
|
|
200
|
-
*
|
|
201
|
-
* This pattern allows the shared package to provide the hook logic
|
|
202
|
-
* while each app provides its own store instance.
|
|
203
|
-
*/
|
|
204
|
-
declare function createUseOrganizations<TStore extends OrganizationsSlice>(useStore: UseBoundStore<StoreApi<TStore>>): () => {
|
|
205
|
-
setCurrentWorkOSOrganizationId: (workOSorgId: string | null) => void;
|
|
206
|
-
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
207
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
208
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
209
|
-
setOrganizationsError: (error: string | null) => void;
|
|
210
|
-
organizations: OrganizationsState;
|
|
211
|
-
currentWorkOSOrganizationId: string | null;
|
|
212
|
-
currentSupabaseOrganizationId: string | null;
|
|
213
|
-
currentMembership: MembershipWithDetails | null;
|
|
214
|
-
isInitializing: boolean;
|
|
215
|
-
isOrgRefreshing: boolean;
|
|
216
|
-
error: string | null;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Type for the useOrganizations hook return value
|
|
221
|
-
*/
|
|
222
|
-
interface UseOrganizationsReturn {
|
|
223
|
-
currentWorkOSOrganizationId: string | null;
|
|
224
|
-
currentMembership: MembershipWithDetails | null;
|
|
225
|
-
setCurrentWorkOSOrganizationId: (id: string | null) => void;
|
|
226
|
-
setCurrentMembership: (membership: MembershipWithDetails | null) => void;
|
|
227
|
-
setOrganizationsInitializing: (initializing: boolean) => void;
|
|
228
|
-
setOrganizationsLoading: (loading: boolean) => void;
|
|
229
|
-
setOrganizationsError: (error: string | null) => void;
|
|
230
|
-
organizations: {
|
|
231
|
-
isInitializing: boolean;
|
|
232
|
-
isOrgRefreshing: boolean;
|
|
233
|
-
error: string | null;
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Type for the useApiClient hook return value
|
|
238
|
-
*/
|
|
239
|
-
interface UseApiClientReturn {
|
|
240
|
-
apiRequest: <T = unknown>(path: string, options?: RequestInit) => Promise<T>;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Return type for useOrgInitialization hook
|
|
244
|
-
*/
|
|
245
|
-
interface UseOrgInitializationReturn {
|
|
246
|
-
memberships: MembershipWithDetails[];
|
|
247
|
-
isInitializing: boolean;
|
|
248
|
-
isLoading: boolean;
|
|
249
|
-
isInitialized: boolean;
|
|
250
|
-
error: string | null;
|
|
251
|
-
currentOrganization: MembershipWithDetails['organization'] | null;
|
|
252
|
-
retry: () => Promise<void>;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Factory function to create a useOrgInitialization hook for your app.
|
|
256
|
-
*
|
|
257
|
-
* Usage in app:
|
|
258
|
-
* ```typescript
|
|
259
|
-
* import { createUseOrgInitialization } from '@repo/ui/organization'
|
|
260
|
-
* import { useOrganizations } from './hooks/useOrganizations'
|
|
261
|
-
* import { useApiClient } from './api/hooks/useApiClient'
|
|
262
|
-
*
|
|
263
|
-
* export const useOrgInitialization = createUseOrgInitialization(
|
|
264
|
-
* useOrganizations,
|
|
265
|
-
* useApiClient
|
|
266
|
-
* )
|
|
267
|
-
* ```
|
|
268
|
-
*
|
|
269
|
-
* This pattern allows the shared package to provide the hook logic
|
|
270
|
-
* while each app provides its own hook instances.
|
|
271
|
-
*/
|
|
272
|
-
declare function createUseOrgInitialization(useOrganizations: () => UseOrganizationsReturn, useApiClient: () => UseApiClientReturn): () => UseOrgInitializationReturn;
|
|
273
|
-
|
|
274
|
-
export { OrganizationProvider, OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations, useOrganization };
|
|
275
|
-
export type { MembershipWithDetails, OrganizationContextValue, OrganizationsActions, OrganizationsSlice, OrganizationsState, UseApiClientReturn, UseOrgInitializationReturn, UseOrganizationsReturn };
|
|
2
|
+
* Organization module - Multi-tenancy concerns
|
|
3
|
+
*
|
|
4
|
+
* Exports:
|
|
5
|
+
* - OrganizationProvider: Context provider that internalizes org state (replaces Zustand slice)
|
|
6
|
+
* - useOrganization: Hook for consuming OrganizationProvider context
|
|
7
|
+
* - OrganizationContextValue: Value type exposed by OrganizationProvider
|
|
8
|
+
* - OrganizationsState, OrganizationsActions, OrganizationsSlice: Store types (legacy)
|
|
9
|
+
* - createOrganizationsSlice: Zustand slice creator for organization state (legacy)
|
|
10
|
+
* - createUseOrganizations: Factory to create useOrganizations hook for app's store (deprecated)
|
|
11
|
+
* - createUseOrgInitialization: Factory to create useOrgInitialization hook (deprecated)
|
|
12
|
+
* - OrganizationSwitcher: Component for switching organizations
|
|
13
|
+
*/
|
|
14
|
+
export { OrganizationProvider } from './context/OrganizationProvider';
|
|
15
|
+
export { useOrganization } from './context/OrganizationContext';
|
|
16
|
+
export type { OrganizationContextValue } from './context/OrganizationContext';
|
|
17
|
+
export type { MembershipWithDetails } from '@repo/core';
|
|
18
|
+
export { OrganizationSwitcher } from './components/OrganizationSwitcher';
|
|
19
|
+
export * from './store/types';
|
|
20
|
+
export { createOrganizationsSlice } from './store/organizationsSlice';
|
|
21
|
+
export { createUseOrganizations } from './hooks/useOrganizations';
|
|
22
|
+
export { createUseOrgInitialization } from './hooks/useOrgInitialization';
|
|
23
|
+
export type { UseOrganizationsReturn, UseApiClientReturn, UseOrgInitializationReturn } from './hooks/useOrgInitialization';
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/organization/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAG7E,YAAY,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAGvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAGxE,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAGrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,YAAY,EACV,sBAAsB,EACtB,kBAAkB,EAClB,0BAA0B,EAC3B,MAAM,8BAA8B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { OrganizationSwitcher, createOrganizationsSlice, createUseOrgInitialization, createUseOrganizations } from '../chunk-L4XXM55J.js';
|
|
2
2
|
import '../chunk-RNP5R5I3.js';
|
|
3
|
-
export { OrganizationProvider } from '../chunk-
|
|
4
|
-
import '../chunk-QEPXAWE2.js';
|
|
3
|
+
export { OrganizationProvider } from '../chunk-V7XHGJQZ.js';
|
|
5
4
|
export { useOrganization } from '../chunk-DD3CCMCZ.js';
|
|
5
|
+
import '../chunk-QEPXAWE2.js';
|
|
6
6
|
import '../chunk-BRJ3QZ4E.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { SupabaseUserProfile } from '@repo/core';
|
|
3
|
+
type ApiRequestFn = <T>(endpoint: string, options?: RequestInit) => Promise<T>;
|
|
4
|
+
export interface ProfileContextValue {
|
|
5
|
+
profile: SupabaseUserProfile | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
refetch: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Consumes the nearest ProfileProvider.
|
|
12
|
+
*
|
|
13
|
+
* @throws {Error} If called outside of a ProfileProvider tree.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useProfile(): ProfileContextValue;
|
|
16
|
+
/**
|
|
17
|
+
* Provides shared profile state to its subtree via React Context.
|
|
18
|
+
*
|
|
19
|
+
* Wraps useUserProfile so that all consumers share one profile fetch
|
|
20
|
+
* instead of each triggering an independent sync call.
|
|
21
|
+
*
|
|
22
|
+
* Must be rendered inside the auth provider layer so that the underlying
|
|
23
|
+
* hook can access useAuthContext. Receives apiRequest as a prop so it
|
|
24
|
+
* can mount before ElevasisServiceProvider.
|
|
25
|
+
*/
|
|
26
|
+
export declare function ProfileProvider({ apiRequest, children }: {
|
|
27
|
+
apiRequest: ApiRequestFn;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}): import("react").FunctionComponentElement<import("react").ProviderProps<ProfileContextValue | null>>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=ProfileProvider.d.ts.map
|