@elevasis/ui 2.78.0 → 2.79.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 +1 -1
- package/dist/app/index.js +9 -9
- package/dist/auth/index.js +3 -3
- package/dist/charts/index.js +3 -3
- package/dist/{chunk-SU4T5DCZ.js → chunk-22TWX4XG.js} +5 -5
- package/dist/{chunk-IYLJ4CBC.js → chunk-2IU6BP6F.js} +1 -1
- package/dist/{chunk-FD3XRRKM.js → chunk-3KCLWJDC.js} +4 -4
- package/dist/{chunk-4TABB2PA.js → chunk-3ONNZ4SO.js} +3 -3
- package/dist/{chunk-WJWYTXGQ.js → chunk-4IYWLUXA.js} +4 -4
- package/dist/{chunk-M3DWVFRT.js → chunk-4VGPEDQF.js} +30 -20
- package/dist/{chunk-2LLCOS4V.js → chunk-4ZHX5KOT.js} +1 -1
- package/dist/{chunk-S3ETKY5C.js → chunk-6AJUWYKS.js} +1 -1
- package/dist/{chunk-FI66TKYS.js → chunk-7ICEQPBU.js} +8 -2
- package/dist/{chunk-TRACEZWZ.js → chunk-A37T4NIZ.js} +23 -18
- package/dist/{chunk-B74K5EC2.js → chunk-ASI3FDPC.js} +1 -1
- package/dist/{chunk-MWWBHRFO.js → chunk-AZCDL2SS.js} +3 -3
- package/dist/{chunk-4A6S4WAT.js → chunk-G3WOMHVI.js} +1 -1
- package/dist/{chunk-VBGXFKZ2.js → chunk-G4IEH7NX.js} +3 -3
- package/dist/{chunk-L42Z3VZM.js → chunk-GWCLI2RX.js} +1 -1
- package/dist/{chunk-5OBIZIWW.js → chunk-LDQSTEFW.js} +1 -1
- package/dist/{chunk-FFVZB25A.js → chunk-M77G2MGW.js} +1 -1
- package/dist/{chunk-Y2IHJRHM.js → chunk-MGCXAAX4.js} +2 -2
- package/dist/{chunk-BLXJEIQS.js → chunk-NCPNKI3V.js} +1 -1
- package/dist/{chunk-57QSONG5.js → chunk-ODXLZZFR.js} +1 -1
- package/dist/{chunk-NBG3V52P.js → chunk-QLEY6Q7K.js} +1 -1
- package/dist/{chunk-JKNIXSJT.js → chunk-QMAIUPXK.js} +14 -9
- package/dist/{chunk-WGSEITGL.js → chunk-QMOBXKW3.js} +1 -1
- package/dist/{chunk-LMAYDNQL.js → chunk-R42OYAQ2.js} +1 -1
- package/dist/{chunk-F3YFAATR.js → chunk-RMLWK3IR.js} +1 -1
- package/dist/{chunk-YUWR4UX7.js → chunk-SJRIO26Q.js} +13 -7
- package/dist/{chunk-AVGXLMSH.js → chunk-SXZMHLH6.js} +1 -1
- package/dist/{chunk-IWNVPPWF.js → chunk-WJO6QEI7.js} +9 -4
- package/dist/components/index.js +33 -33
- package/dist/components/navigation/index.js +4 -4
- package/dist/execution/index.js +2 -2
- package/dist/features/auth/index.js +5 -5
- package/dist/features/clients/index.js +5 -5
- package/dist/features/content/index.js +5 -5
- package/dist/features/crm/index.js +8 -8
- package/dist/features/dashboard/index.js +5 -5
- package/dist/features/delivery/index.js +13 -13
- package/dist/features/knowledge/index.js +3 -3
- package/dist/features/lead-gen/index.js +9 -9
- package/dist/features/monitoring/index.js +7 -7
- package/dist/features/monitoring/requests/index.js +5 -5
- package/dist/features/operations/index.js +9 -9
- package/dist/features/seo/index.js +6 -6
- package/dist/features/settings/index.js +6 -6
- package/dist/hooks/access/index.js +3 -3
- package/dist/hooks/delivery/index.js +1 -1
- package/dist/hooks/published.d.ts +48 -8
- package/dist/hooks/published.js +11 -11
- package/dist/knowledge/index.js +8 -8
- package/dist/layout/index.js +7 -7
- package/dist/provider/index.js +3 -3
- package/dist/provider/published.js +3 -3
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +4 -4
- /package/dist/{chunk-6SSQGWK7.js → chunk-5F3QGBEI.js} +0 -0
package/dist/api/index.js
CHANGED
|
@@ -3,6 +3,6 @@ export { ApiClientProvider, useApiClient, useApiClientContext } from '../chunk-J
|
|
|
3
3
|
import '../chunk-DD3CCMCZ.js';
|
|
4
4
|
import '../chunk-5ZK7K7YP.js';
|
|
5
5
|
import '../chunk-Y6I3IC45.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-5F3QGBEI.js';
|
|
7
7
|
import '../chunk-TVTSASST.js';
|
|
8
8
|
import '../chunk-I2KLQ2HA.js';
|
package/dist/app/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AppErrorBoundary } from '../chunk-
|
|
2
|
-
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { AppErrorBoundary } from '../chunk-ASI3FDPC.js';
|
|
2
|
+
import { SidebarProvider, AppShellContainer, Sidebar, AppShellRightSideContainer, AppShellRightSideOuterContainer } from '../chunk-R42OYAQ2.js';
|
|
3
|
+
import '../chunk-4ZHX5KOT.js';
|
|
4
|
+
import '../chunk-6AJUWYKS.js';
|
|
5
|
+
import '../chunk-QLEY6Q7K.js';
|
|
6
|
+
import '../chunk-ODXLZZFR.js';
|
|
7
7
|
import '../chunk-BZZCNLT6.js';
|
|
8
|
-
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-
|
|
8
|
+
import { useSessionCheck, ElevasisSystemsProvider, useElevasisSystems, SystemShell, ElevasisUIProvider } from '../chunk-4VGPEDQF.js';
|
|
9
9
|
import '../chunk-4WLAVUPS.js';
|
|
10
10
|
import '../chunk-RXZ3XDBM.js';
|
|
11
11
|
import '../chunk-JZQNUQE4.js';
|
|
@@ -16,14 +16,14 @@ import { useInitialization } from '../chunk-P45GQ3ZW.js';
|
|
|
16
16
|
import '../chunk-2GIJBHZT.js';
|
|
17
17
|
import '../chunk-3KMDHCAR.js';
|
|
18
18
|
import { TanStackRouterBridge, ScrollToTop } from '../chunk-2IFYDILW.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-NCPNKI3V.js';
|
|
20
20
|
import '../chunk-UD657ICS.js';
|
|
21
21
|
import '../chunk-DD3CCMCZ.js';
|
|
22
22
|
import '../chunk-RNP5R5I3.js';
|
|
23
23
|
import '../chunk-RT4KRGZT.js';
|
|
24
24
|
import '../chunk-5ZK7K7YP.js';
|
|
25
25
|
import '../chunk-Y6I3IC45.js';
|
|
26
|
-
import '../chunk-
|
|
26
|
+
import '../chunk-5F3QGBEI.js';
|
|
27
27
|
import '../chunk-BI5VDO2K.js';
|
|
28
28
|
import '../chunk-MQZE7SUI.js';
|
|
29
29
|
import '../chunk-TVTSASST.js';
|
package/dist/auth/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-
|
|
1
|
+
export { AccessGuard, AccessKeys, ProtectedRoute, useSessionCheck as useRefocusSessionCheck, useSessionCheck, useStableAccessToken } from '../chunk-4VGPEDQF.js';
|
|
2
2
|
import '../chunk-4WLAVUPS.js';
|
|
3
3
|
import '../chunk-RXZ3XDBM.js';
|
|
4
4
|
import '../chunk-JZQNUQE4.js';
|
|
@@ -9,14 +9,14 @@ import '../chunk-P45GQ3ZW.js';
|
|
|
9
9
|
import '../chunk-2GIJBHZT.js';
|
|
10
10
|
import '../chunk-3KMDHCAR.js';
|
|
11
11
|
import '../chunk-2IFYDILW.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-NCPNKI3V.js';
|
|
13
13
|
import '../chunk-UD657ICS.js';
|
|
14
14
|
import '../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../chunk-RNP5R5I3.js';
|
|
16
16
|
import '../chunk-RT4KRGZT.js';
|
|
17
17
|
import '../chunk-5ZK7K7YP.js';
|
|
18
18
|
import '../chunk-Y6I3IC45.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-5F3QGBEI.js';
|
|
20
20
|
import '../chunk-BI5VDO2K.js';
|
|
21
21
|
import '../chunk-MQZE7SUI.js';
|
|
22
22
|
import '../chunk-TVTSASST.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-
|
|
1
|
+
export { ActivityTrendChart, ChartFrame, CombinedTrendChart, CostTrendChart, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, HeroStatsRow, getSeriesColor, useCyberColors } from '../chunk-4VGPEDQF.js';
|
|
2
2
|
import '../chunk-4WLAVUPS.js';
|
|
3
3
|
import '../chunk-RXZ3XDBM.js';
|
|
4
4
|
import '../chunk-JZQNUQE4.js';
|
|
@@ -9,14 +9,14 @@ import '../chunk-P45GQ3ZW.js';
|
|
|
9
9
|
import '../chunk-2GIJBHZT.js';
|
|
10
10
|
import '../chunk-3KMDHCAR.js';
|
|
11
11
|
import '../chunk-2IFYDILW.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-NCPNKI3V.js';
|
|
13
13
|
import '../chunk-UD657ICS.js';
|
|
14
14
|
import '../chunk-DD3CCMCZ.js';
|
|
15
15
|
import '../chunk-RNP5R5I3.js';
|
|
16
16
|
import '../chunk-RT4KRGZT.js';
|
|
17
17
|
import '../chunk-5ZK7K7YP.js';
|
|
18
18
|
import '../chunk-Y6I3IC45.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-5F3QGBEI.js';
|
|
20
20
|
import '../chunk-BI5VDO2K.js';
|
|
21
21
|
import '../chunk-MQZE7SUI.js';
|
|
22
22
|
import '../chunk-TVTSASST.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useDealDetail, useExecuteAction } from './chunk-
|
|
2
|
-
import { CRM_API_INTERFACE } from './chunk-
|
|
3
|
-
import { useCompany, useContact, deriveActions } from './chunk-
|
|
1
|
+
import { useDealDetail, useExecuteAction } from './chunk-M77G2MGW.js';
|
|
2
|
+
import { CRM_API_INTERFACE } from './chunk-SJRIO26Q.js';
|
|
3
|
+
import { useCompany, useContact, deriveActions } from './chunk-GWCLI2RX.js';
|
|
4
4
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
5
5
|
import { getSystemApiInterfaceReadiness } from './chunk-3RK2NNJX.js';
|
|
6
6
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
7
|
-
import { SubshellPageLayout } from './chunk-
|
|
7
|
+
import { SubshellPageLayout } from './chunk-ODXLZZFR.js';
|
|
8
8
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
9
9
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
10
10
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
11
|
-
import { SubshellSidebarSection, CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-
|
|
11
|
+
import { SubshellSidebarSection, CrmSidebarMiddle, useDealsSummary, useOptionalElevasisSystems, getCrmPipelineCatalog, CenteredErrorState, StatCard, PageTitleCaption, useDeleteDeal, usePaginationState, useDeals, SubshellContentContainer, EmptyState, CustomModal, useCrmActions, ActivityTimeline, ContextViewer, JsonViewer, dealKeys } from './chunk-4VGPEDQF.js';
|
|
12
12
|
import { showApiErrorNotification, showSuccessNotification } from './chunk-KXNRTJAE.js';
|
|
13
13
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
14
14
|
import { PAGE_SIZE_DEFAULT, formatTimeAgo } from './chunk-5ZK7K7YP.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useScheduledTasks } from './chunk-N6K2Q5BM.js';
|
|
2
2
|
import { ZodFormRenderer } from './chunk-3MEXPLWT.js';
|
|
3
3
|
import { ResourceHealthChart } from './chunk-LGKLC5MG.js';
|
|
4
|
-
import { AppShellCenteredContainer, AppShellLoader } from './chunk-
|
|
4
|
+
import { AppShellCenteredContainer, AppShellLoader } from './chunk-6AJUWYKS.js';
|
|
5
5
|
import { useTimeRangeDates } from './chunk-YQQ5GRUR.js';
|
|
6
6
|
import { Graph_module_css_default, useDirectedChainHighlighting, useNodeSelection, useFitViewTrigger } from './chunk-HENXLGVD.js';
|
|
7
|
-
import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, TabCountBadge, useResourcesHealth, TERMINAL_EXECUTION_STATUSES } from './chunk-
|
|
7
|
+
import { useCyberColors, GlowDot, JsonViewer, useExecuteResource, EmptyState, useDashboardMetrics, useResources, useUnresolvedErrors, useRecentExecutionsByResource, PageTitleCaption, HeroStatsRow, useCommandQueue, TabCountBadge, useResourcesHealth, TERMINAL_EXECUTION_STATUSES } from './chunk-4VGPEDQF.js';
|
|
8
8
|
import { glassBase } from './chunk-4WLAVUPS.js';
|
|
9
9
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
10
10
|
import { useInitialization } from './chunk-P45GQ3ZW.js';
|
|
11
|
-
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-
|
|
11
|
+
import { STATUS_COLORS, getStatusIcon, formatDuration, getStatusColors, AGENT_CONSTANTS, shouldAnimateEdge, TIMELINE_CONSTANTS, calculateBarPosition, CONTAINER_CONSTANTS, useExecutionPath, useUnifiedWorkflowLayout, WORKFLOW_CONSTANTS, useReactFlowAgent } from './chunk-NCPNKI3V.js';
|
|
12
12
|
import { formatTimeAgo, formatRelativeTime } from './chunk-5ZK7K7YP.js';
|
|
13
13
|
import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
|
|
14
|
-
import { ResourceStatusColors } from './chunk-
|
|
14
|
+
import { ResourceStatusColors } from './chunk-5F3QGBEI.js';
|
|
15
15
|
import { memo, useMemo, useEffect, useState, useCallback, Fragment } from 'react';
|
|
16
16
|
import { Paper, Stack, Text, Group, Badge, Box, useComputedColorScheme, Loader, Card, ActionIcon, SegmentedControl, Collapse, Button, Modal, Center, SimpleGrid, Title, Tabs, Grid, ThemeIcon } from '@mantine/core';
|
|
17
17
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useAvailablePresets } from './chunk-IIEZXXDD.js';
|
|
2
|
-
import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-
|
|
3
|
-
import { AppShellLoader } from './chunk-
|
|
2
|
+
import { MEMBERSHIP_STATUS_COLORS, PROVISIONING_STATE_DISPLAY, transformMembershipToTableRow, useUserMemberships, useUpdateWebhookEndpoint, useDeleteWebhookEndpoint, useCreateWebhookEndpoint, useListWebhookEndpoints, useOrgRoles, useAssignRole, useRevokeRole, useOrganizationMembers, usePermissionCatalog } from './chunk-QMOBXKW3.js';
|
|
3
|
+
import { AppShellLoader } from './chunk-6AJUWYKS.js';
|
|
4
4
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
5
|
-
import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-
|
|
5
|
+
import { CustomModal, APIErrorAlert, EmptyState, PageTitleCaption, useResources, ListSkeleton, StatCard, useAccess, AccessKeys, AccessGuard } from './chunk-4VGPEDQF.js';
|
|
6
6
|
import { showApiErrorNotification, showErrorNotification, showSuccessNotification } from './chunk-KXNRTJAE.js';
|
|
7
7
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
8
8
|
import { useInitialization } from './chunk-P45GQ3ZW.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-
|
|
2
|
-
import { AppShellLoader } from './chunk-
|
|
1
|
+
import { useMarkAsRead, useExecutionLogsFilters, useExecutionLogs, useExecutionHealth, useCostSummary, useActivityFilters, useActivityTrend, useActivities, useNotifications, useMarkAllAsRead } from './chunk-LDQSTEFW.js';
|
|
2
|
+
import { AppShellLoader } from './chunk-6AJUWYKS.js';
|
|
3
3
|
import { useTimeRangeDates } from './chunk-YQQ5GRUR.js';
|
|
4
4
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
5
|
-
import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-
|
|
5
|
+
import { CenteredErrorState, StatsCardSkeleton, CyberAreaChart, TrendIndicator, DetailCardSkeleton, useResolveError, useResolveAllErrors, usePaginationState, useErrorDetails, EmptyState, PageTitleCaption, useErrorAnalysis, useErrorDetail, useResolveErrorsByExecution, useResources, CustomModal, JsonViewer, useCostTrends, useCostByModel, useCostBreakdown, CostTrendChart, ActivityTrendChart } from './chunk-4VGPEDQF.js';
|
|
6
6
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
7
|
-
import { formatDuration } from './chunk-
|
|
7
|
+
import { formatDuration } from './chunk-NCPNKI3V.js';
|
|
8
8
|
import { PAGE_SIZE_DEFAULT } from './chunk-5ZK7K7YP.js';
|
|
9
9
|
import { formatBucketTime, getTimeRangeDates } from './chunk-Y6I3IC45.js';
|
|
10
10
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
@@ -6,13 +6,13 @@ import { CardHeader } from './chunk-62GVNH5U.js';
|
|
|
6
6
|
import { InitializationContext, useInitialization, InitializationProvider } from './chunk-P45GQ3ZW.js';
|
|
7
7
|
import { SessionIdParamSchema, CreateSessionSchema } from './chunk-2GIJBHZT.js';
|
|
8
8
|
import { StyledMarkdown } from './chunk-3KMDHCAR.js';
|
|
9
|
-
import { getStatusIcon } from './chunk-
|
|
9
|
+
import { getStatusIcon } from './chunk-NCPNKI3V.js';
|
|
10
10
|
import { invalidateOrgScopedQueries, OrganizationProvider } from './chunk-UD657ICS.js';
|
|
11
11
|
import { OrganizationContext, useOrganization } from './chunk-DD3CCMCZ.js';
|
|
12
12
|
import { ProfileProvider } from './chunk-RT4KRGZT.js';
|
|
13
13
|
import { LabelSchema, DescriptionSchema, PathSchema, ModelIdSchema, IconNameSchema, SystemLifecycleSchema, OntologyIdSchema, SystemPathSchema, ActionInvocationSchema, SystemIdSchema, NodeIdStringSchema, JsonValueSchema, SystemInterfaceRefSchema, EntitiesDomainSchema, ActionsDomainSchema, DEFAULT_ORGANIZATION_MODEL_ACTIONS, OntologyScopeSchema, DEFAULT_ONTOLOGY_SCOPE, SystemsDomainSchema, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, formatOntologyId, isSystemLifecycleVisible, listResolvedOntologyRecords, getErrorInfo, getErrorTitle, formatErrorMessage, compileOrganizationOntology, listAllSystems, ontologyGraphNodeId, parseOntologyId, getSystem, STALE_TIME_DEFAULT, GC_TIME_SHORT, STALE_TIME_MONITORING, getResourceIcon, formatTimeAgo, resolveReadinessRemedy, getResourcesForSystem, formatRelativeTime, PAGE_SIZE_DEFAULT, devOnlyFor, topLevel, parentOf, ancestorsOf, childrenOf, findById, findByPath, systemLifecycleAllowsAccess, resolveSystemConfig, defaultPathFor } from './chunk-5ZK7K7YP.js';
|
|
14
14
|
import { getTimeRangeLabel, getTimeRangeDates, formatBucketTime, REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_DASHBOARD, debounce } from './chunk-Y6I3IC45.js';
|
|
15
|
-
import { ResourceStatusColors } from './chunk-
|
|
15
|
+
import { ResourceStatusColors } from './chunk-5F3QGBEI.js';
|
|
16
16
|
import { ElevasisServiceContext, useElevasisServices, ElevasisServiceProvider } from './chunk-BI5VDO2K.js';
|
|
17
17
|
import { brandWorkOsOrgId, brandSupabaseOrgId } from './chunk-MQZE7SUI.js';
|
|
18
18
|
import { useAuthContext } from './chunk-BRJ3QZ4E.js';
|
|
@@ -4265,8 +4265,9 @@ var executionsKeys = {
|
|
|
4265
4265
|
|
|
4266
4266
|
// src/hooks/executions/executionStatus.ts
|
|
4267
4267
|
var TERMINAL_EXECUTION_STATUSES = ["completed", "failed", "warning"];
|
|
4268
|
+
var IN_FLIGHT_EXECUTION_STATUSES = ["pending", "running"];
|
|
4268
4269
|
function isExecutionInFlight(status) {
|
|
4269
|
-
return status !== void 0 && status !== null &&
|
|
4270
|
+
return status !== void 0 && status !== null && IN_FLIGHT_EXECUTION_STATUSES.includes(status);
|
|
4270
4271
|
}
|
|
4271
4272
|
function useExecutions(resourceId, resourceStatus, limit, offset) {
|
|
4272
4273
|
const { apiRequest, workOSOrganizationId, isReady } = useElevasisServices();
|
|
@@ -7037,9 +7038,11 @@ function useCommandQueueTask(taskId) {
|
|
|
7037
7038
|
enabled: isReady && !!taskId
|
|
7038
7039
|
});
|
|
7039
7040
|
}
|
|
7040
|
-
function useSubmitAction() {
|
|
7041
|
+
function useSubmitAction(options = {}) {
|
|
7042
|
+
const { notifyOnError = true } = options;
|
|
7041
7043
|
const { apiRequest } = useElevasisServices();
|
|
7042
7044
|
const queryClient = useQueryClient();
|
|
7045
|
+
const notify = useNotificationAdapter();
|
|
7043
7046
|
return useMutation({
|
|
7044
7047
|
mutationFn: async ({ taskId, actionId, payload, notes }) => {
|
|
7045
7048
|
const response = await apiRequest(`/command-queue/${taskId}/action`, {
|
|
@@ -7063,7 +7066,9 @@ function useSubmitAction() {
|
|
|
7063
7066
|
queryKey,
|
|
7064
7067
|
(old) => old ? {
|
|
7065
7068
|
...old,
|
|
7066
|
-
tasks: old.tasks.map(
|
|
7069
|
+
tasks: old.tasks.map(
|
|
7070
|
+
(task) => task.id === taskId ? { ...task, status: "processing" } : task
|
|
7071
|
+
)
|
|
7067
7072
|
} : old
|
|
7068
7073
|
);
|
|
7069
7074
|
}
|
|
@@ -7073,12 +7078,15 @@ function useSubmitAction() {
|
|
|
7073
7078
|
onSuccess: () => {
|
|
7074
7079
|
queryClient.invalidateQueries({ queryKey: ["command-queue"] });
|
|
7075
7080
|
},
|
|
7076
|
-
onError: (
|
|
7081
|
+
onError: (error, _variables, context) => {
|
|
7077
7082
|
if (context?.previousData) {
|
|
7078
7083
|
for (const [queryKey, data] of context.previousData) {
|
|
7079
7084
|
queryClient.setQueryData(queryKey, data);
|
|
7080
7085
|
}
|
|
7081
7086
|
}
|
|
7087
|
+
if (notifyOnError) {
|
|
7088
|
+
notify.apiError(error);
|
|
7089
|
+
}
|
|
7082
7090
|
}
|
|
7083
7091
|
});
|
|
7084
7092
|
}
|
|
@@ -9589,25 +9597,22 @@ function useInFlightExecutions(resourceId, options = {}) {
|
|
|
9589
9597
|
const { apiRequest, workOSOrganizationId, isReady } = useElevasisServices();
|
|
9590
9598
|
const limit = options.limit ?? 20;
|
|
9591
9599
|
const offset = options.offset ?? 0;
|
|
9600
|
+
const listId = options.listId;
|
|
9592
9601
|
return useQuery({
|
|
9593
9602
|
// eslint-disable-next-line @tanstack/query/exhaustive-deps -- resourceId/limit/offset/listId are already folded into the executions key builders; the rule can't trace through them
|
|
9594
|
-
queryKey:
|
|
9595
|
-
...acquisitionListKeys.executions(workOSOrganizationId, options.listId, { resourceId, limit }),
|
|
9596
|
-
"in-flight"
|
|
9597
|
-
] : [...executionsKeys.executions(workOSOrganizationId, resourceId, "all", limit, offset), "in-flight"],
|
|
9603
|
+
queryKey: listId ? [...acquisitionListKeys.executions(workOSOrganizationId, listId, { limit }), "in-flight"] : [...executionsKeys.executions(workOSOrganizationId, resourceId, "all", limit, offset), "in-flight"],
|
|
9598
9604
|
queryFn: async () => {
|
|
9599
|
-
if (
|
|
9600
|
-
const executions2 = await apiRequest(
|
|
9601
|
-
|
|
9602
|
-
);
|
|
9603
|
-
const runningExecutions = executions2.filter((execution) => execution.resourceId === resourceId && execution.status === "running").slice(0, limit);
|
|
9605
|
+
if (listId) {
|
|
9606
|
+
const executions2 = await apiRequest(`/acquisition/lists/${listId}/executions`);
|
|
9607
|
+
const inFlight = executions2.filter((execution) => isExecutionInFlight(execution.status));
|
|
9604
9608
|
return {
|
|
9605
|
-
executions:
|
|
9609
|
+
executions: inFlight.map((execution) => ({
|
|
9606
9610
|
id: execution.executionId,
|
|
9607
|
-
|
|
9611
|
+
resourceId: execution.resourceId,
|
|
9612
|
+
status: execution.status,
|
|
9608
9613
|
startTime: new Date(execution.createdAt).getTime()
|
|
9609
9614
|
})),
|
|
9610
|
-
total:
|
|
9615
|
+
total: inFlight.length,
|
|
9611
9616
|
limit,
|
|
9612
9617
|
offset,
|
|
9613
9618
|
hasMore: false
|
|
@@ -9620,13 +9625,18 @@ function useInFlightExecutions(resourceId, options = {}) {
|
|
|
9620
9625
|
const response = await apiRequest(
|
|
9621
9626
|
`/execution-engine/executions/${resourceId}?${params.toString()}`
|
|
9622
9627
|
);
|
|
9623
|
-
const executions = response.executions.filter((execution) => execution.status
|
|
9628
|
+
const executions = response.executions.filter((execution) => isExecutionInFlight(execution.status)).map((execution) => ({ ...execution, resourceId }));
|
|
9624
9629
|
return {
|
|
9625
9630
|
...response,
|
|
9626
9631
|
executions,
|
|
9627
9632
|
total: executions.length
|
|
9628
9633
|
};
|
|
9629
9634
|
},
|
|
9635
|
+
select: (data) => {
|
|
9636
|
+
if (!listId) return data;
|
|
9637
|
+
const executions = data.executions.filter((execution) => execution.resourceId === resourceId).slice(0, limit);
|
|
9638
|
+
return { ...data, executions, total: executions.length };
|
|
9639
|
+
},
|
|
9630
9640
|
enabled: isReady && !!resourceId && (options.enabled ?? true),
|
|
9631
9641
|
refetchInterval: options.refetchInterval
|
|
9632
9642
|
});
|
|
@@ -14307,4 +14317,4 @@ function createTestSystemsProvider({ organizationModel, systems = [] } = {}) {
|
|
|
14307
14317
|
};
|
|
14308
14318
|
}
|
|
14309
14319
|
|
|
14310
|
-
export { APIErrorAlert, AccessGuard, AccessKeys, ActivityTimeline, ActivityTrendChart, AgentResourceEntrySchema, AppearanceContext, AppearanceProvider, CONTENT_ITEMS, CRM_ITEMS, CenteredErrorState, ChartFrame, CheckpointGroup, CollapsibleSection, CombinedTrendChart, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, ConfirmationInputModal, ConfirmationModal, ContentSidebar, ContentSidebarMiddle, ContextViewer, CostTrendChart, CrmActionsProvider, CrmSidebarMiddle, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, DEFAULT_CONTENT_VOCABULARY, DEFAULT_ORGANIZATION_GRAPH_FILTERS, DEFAULT_WAIT_FOR_ORGANIZATION, DetailCardSkeleton, EMPTY_LIST_ACTIONS, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, FILTERABLE_DOMAIN_KEYS, FeatureUnavailableState, GlowDot, HeroStatsRow, IdentityDomainSchema, IntegrationResourceEntrySchema, JsonViewer, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, LEAD_GEN_ITEMS, LeadGenSidebarMiddle, ListActionsProvider, ListSkeleton, MyReviewQueuePanel, MyTasksPanel, NavigationButton, NoAccessState, NotificationProvider, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_ORDER, ORGANIZATION_NODE_ID, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationModelDriftActionIcon, OverviewList, OverviewListRow, PageNotFound, PageTitleCaption, ProtectedRoute, QuickCreateActions, RequestActionIcon, RequestModal, ResourceCard, ResourcesSidebar, RoleSchema, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SYSTEM_RESOURCE_KINDS, SavedViewsPanel, ScriptResourceEntrySchema, SemanticIcon, SessionListItem, SessionsSidebar, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, SubshellContainer, SubshellContentContainer, SubshellNavItem, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SubshellSidebarSection, SurfaceDefinitionSchema, SystemReadinessAlert, SystemShell, SystemUnavailableState, TERMINAL_EXECUTION_STATUSES, TabCountBadge, TimeRangeSelector, TrendIndicator, WorkflowResourceEntrySchema, acquisitionListKeys, aggregateSystemMetrics, buildKnowledgeOmTreeData, buildOrganizationGraph, clientsManifest, collectResourceFilterFacets, computeProtectedRouteGate, contentKeys, contentManifest, createTestSystemsProvider, crmManifest, dealKeys, dealTaskKeys, deliveryManifest, deriveContentBoard, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, findKnowledgeTreeNodeByValue, findListActionByAction, findOmTreeGroup, formatResourceAttribution, getAllBuildTemplates, getConceptDefinition, getContentItemIdentity, getCrmPipelineCatalog, getKnowledgeDomainFolderCommand, getKnowledgeGraphNodeCommand, getKnowledgeIconToken, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getKnowledgeTreeFolderCommand, getLeadGenStageCatalog, getListActionWorkflowId, getOntologyDomainLabel, getPrimaryOntologyItemsForDomain, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getSessionView, getSharedOrganizationGraph, isAwaitingReview, isExecutionInFlight, isSessionCapable, joinSourceAssetDetails, knowledgeManifest, labelResourceFilterFacet, leadGenManifest, monitoringManifest, normaliseConceptKey, observabilityKeys, operationsKeys, operationsManifest, pickCoverSourceAsset, pickLatestRunAt, projectNavigationGroups, projectNavigationSurfaces, readItemSourceAssets, requestTopbarActionManifest, requestsKeys, resolveContentStepResource, resolveContentVocabulary, resolveContentWorkspaceRoute, resolveCurrentContentStep, resolveReviewTarget, resolveSemanticIconComponent, selectDeclaredSystems, seoManifest, sessionsKeys, settingsManifest, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, submittedRequestsManifest, subshellNavItemIconSize, sumStatusCounts, topbarHeight, useAccess, useAddContentItemSourceAsset, useAppearance, useArchiveSession, useArchivedLogs, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewDomainFilters, useCompleteDealTask, useContentConfig, useContentDistribution, useContentDistributionMetrics, useContentDistributions, useContentItem, useContentItemAttempts, useContentItemSourceAssetDetails, useContentItemSourceAssets, useContentItems, useContentPipelineSummary, useContentSourceAsset, useContentSourceAssets, useCostBreakdown, useCostByModel, useCostTrends, useCreateContentDistribution, useCreateContentItem, useCreateContentSourceAsset, useCreateDealTask, useCreateList, useCreateSession, useCrmActions, useCyberColors, useDashboardMetrics, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteDeal, useDeleteExecution, useDeleteList, useDeleteSession, useDeleteTask, useElevasisSystems, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionLogSSE, useExecutionPanelState, useExecutionSSE, useExecutions, useInFlightExecutions, useLeadGenActionRegistry, useLeadGenBulkActions, useLeadGenHeaderActions, useLeadGenRowActions, useList, useListActions, useListExecutions, useListProgress, useListRecords, useLists, useListsTelemetry, useNotificationAdapter, useOptionalElevasisSystems, useOrganizationModelDrift, usePaginationState, usePatchTask, useRecentExecutionsByResource, useRemoveContentItemSourceAsset, useReorderContentItemSourceAssets, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useRetryExecution, useReviewContentItem, useSSEConnection, useSession, useSessionCheck, useSessions, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSystemHealth, useSystemsViewState, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateContentDistribution, useUpdateContentItem, useUpdateContentItemSourceAsset, useUpdateContentSourceAsset, useUpdateList, useUpdateListConfig, useWorkflowExecution };
|
|
14320
|
+
export { APIErrorAlert, AccessGuard, AccessKeys, ActivityTimeline, ActivityTrendChart, AgentResourceEntrySchema, AppearanceContext, AppearanceProvider, CONTENT_ITEMS, CRM_ITEMS, CenteredErrorState, ChartFrame, CheckpointGroup, CollapsibleSection, CombinedTrendChart, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, ConfirmationInputModal, ConfirmationModal, ContentSidebar, ContentSidebarMiddle, ContextViewer, CostTrendChart, CrmActionsProvider, CrmSidebarMiddle, CustomModal, CustomSelector, CyberAreaChart, CyberDonut, CyberDonutTooltip, CyberLegendItem, DEFAULT_CONTENT_VOCABULARY, DEFAULT_ORGANIZATION_GRAPH_FILTERS, DEFAULT_WAIT_FOR_ORGANIZATION, DetailCardSkeleton, EMPTY_LIST_ACTIONS, ElevasisCoreProvider, ElevasisLoader, ElevasisSystemsProvider, ElevasisUIProvider, EmptyState, FILTERABLE_DOMAIN_KEYS, FeatureUnavailableState, GlowDot, HeroStatsRow, IN_FLIGHT_EXECUTION_STATUSES, IdentityDomainSchema, IntegrationResourceEntrySchema, JsonViewer, KNOWLEDGE_DOMAINS_WITH_PANELS, KNOWLEDGE_ICON_TOKEN_BY_KIND, KnowledgeSearchBar, KnowledgeTree, LEAD_GEN_ITEMS, LeadGenSidebarMiddle, ListActionsProvider, ListSkeleton, MyReviewQueuePanel, MyTasksPanel, NavigationButton, NoAccessState, NotificationProvider, OM_NESTED_TREE_GROUPS, OM_TREE_GROUPS, ORGANIZATION_GRAPH_EDGE_KIND_LABELS, ORGANIZATION_GRAPH_EDGE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_DETAIL_LABELS, ORGANIZATION_GRAPH_NODE_KIND_LABELS, ORGANIZATION_GRAPH_NODE_KIND_MEANINGS, ORGANIZATION_GRAPH_NODE_KIND_ORDER, ORGANIZATION_NODE_ID, OperationsService, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationModelDriftActionIcon, OverviewList, OverviewListRow, PageNotFound, PageTitleCaption, ProtectedRoute, QuickCreateActions, RequestActionIcon, RequestModal, ResourceCard, ResourcesSidebar, RoleSchema, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SYSTEM_RESOURCE_KINDS, SavedViewsPanel, ScriptResourceEntrySchema, SemanticIcon, SessionListItem, SessionsSidebar, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, SubshellContainer, SubshellContentContainer, SubshellNavItem, SubshellRightSideContainer, SubshellSidebar, SubshellSidebarLoader, SubshellSidebarSection, SurfaceDefinitionSchema, SystemReadinessAlert, SystemShell, SystemUnavailableState, TERMINAL_EXECUTION_STATUSES, TabCountBadge, TimeRangeSelector, TrendIndicator, WorkflowResourceEntrySchema, acquisitionListKeys, aggregateSystemMetrics, buildKnowledgeOmTreeData, buildOrganizationGraph, clientsManifest, collectResourceFilterFacets, computeProtectedRouteGate, contentKeys, contentManifest, createTestSystemsProvider, crmManifest, dealKeys, dealTaskKeys, deliveryManifest, deriveContentBoard, executionsKeys, extendSemanticIconRegistry, filterByDomainFilters, findKnowledgeTreeNodeByValue, findListActionByAction, findOmTreeGroup, formatResourceAttribution, getAllBuildTemplates, getConceptDefinition, getContentItemIdentity, getCrmPipelineCatalog, getKnowledgeDomainFolderCommand, getKnowledgeGraphNodeCommand, getKnowledgeIconToken, getKnowledgeNodeReadCommand, getKnowledgeOntologyProjection, getKnowledgeTreeFolderCommand, getLeadGenStageCatalog, getListActionWorkflowId, getOntologyDomainLabel, getPrimaryOntologyItemsForDomain, getResourceFilterFacetIds, getSemanticIconComponent, getSeriesColor, getSessionView, getSharedOrganizationGraph, isAwaitingReview, isExecutionInFlight, isSessionCapable, joinSourceAssetDetails, knowledgeManifest, labelResourceFilterFacet, leadGenManifest, monitoringManifest, normaliseConceptKey, observabilityKeys, operationsKeys, operationsManifest, pickCoverSourceAsset, pickLatestRunAt, projectNavigationGroups, projectNavigationSurfaces, readItemSourceAssets, requestTopbarActionManifest, requestsKeys, resolveContentStepResource, resolveContentVocabulary, resolveContentWorkspaceRoute, resolveCurrentContentStep, resolveReviewTarget, resolveSemanticIconComponent, selectDeclaredSystems, seoManifest, sessionsKeys, settingsManifest, sidebarBottomSectionCollapsedHeight, sidebarBottomSectionHeight, sidebarCollapsedWidth, sidebarGroupChevronSize, sidebarHoverDelay, sidebarIconInnerSize, sidebarIconSize, sidebarIconStroke, sidebarItemGap, sidebarItemHeight, sidebarItemPadding, sidebarSectionPadding, sidebarSubLinkIndent, sidebarSubLinkPaddingX, sidebarSubLinkPaddingY, sidebarToggleIconSize, sidebarTransitionDuration, sidebarWidth, submittedRequestsManifest, subshellNavItemIconSize, sumStatusCounts, topbarHeight, useAccess, useAddContentItemSourceAsset, useAppearance, useArchiveSession, useArchivedLogs, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCancelExecution, useCommandQueue, useCommandQueueTask, useCommandQueueTotals, useCommandViewDomainFilters, useCompleteDealTask, useContentConfig, useContentDistribution, useContentDistributionMetrics, useContentDistributions, useContentItem, useContentItemAttempts, useContentItemSourceAssetDetails, useContentItemSourceAssets, useContentItems, useContentPipelineSummary, useContentSourceAsset, useContentSourceAssets, useCostBreakdown, useCostByModel, useCostTrends, useCreateContentDistribution, useCreateContentItem, useCreateContentSourceAsset, useCreateDealTask, useCreateList, useCreateSession, useCrmActions, useCyberColors, useDashboardMetrics, useDealTasks, useDealTasksDue, useDeals, useDealsLookup, useDealsSummary, useDeleteDeal, useDeleteExecution, useDeleteList, useDeleteSession, useDeleteTask, useElevasisSystems, useEndSession, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorTrends, useExecuteAsync, useExecuteResource, useExecution, useExecutionLogSSE, useExecutionPanelState, useExecutionSSE, useExecutions, useInFlightExecutions, useLeadGenActionRegistry, useLeadGenBulkActions, useLeadGenHeaderActions, useLeadGenRowActions, useList, useListActions, useListExecutions, useListProgress, useListRecords, useLists, useListsTelemetry, useNotificationAdapter, useOptionalElevasisSystems, useOrganizationModelDrift, usePaginationState, usePatchTask, useRecentExecutionsByResource, useRemoveContentItemSourceAsset, useReorderContentItemSourceAssets, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResolvedOrganizationModel, useResourceDefinition, useResourceSearch, useResources, useResourcesDomainFilters, useResourcesHealth, useRetryExecution, useReviewContentItem, useSSEConnection, useSession, useSessionCheck, useSessions, useStableAccessToken, useStatusFilter, useSubmitAction, useSubmitRequest, useSystemHealth, useSystemsViewState, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateContentDistribution, useUpdateContentItem, useUpdateContentItemSourceAsset, useUpdateContentSourceAsset, useUpdateList, useUpdateListConfig, useWorkflowExecution };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { topbarHeight, useAppearance } from './chunk-
|
|
1
|
+
import { topbarHeight, useAppearance } from './chunk-4VGPEDQF.js';
|
|
2
2
|
import { Stack, Title, Button } from '@mantine/core';
|
|
3
3
|
import { IconAlertCircle } from '@tabler/icons-react';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSupabase } from './chunk-MKH2KOAO.js';
|
|
2
|
-
import { useNotificationAdapter } from './chunk-
|
|
2
|
+
import { useNotificationAdapter } from './chunk-4VGPEDQF.js';
|
|
3
3
|
import { useQueryClient, useMutation } from '@tanstack/react-query';
|
|
4
4
|
|
|
5
5
|
// ../core/src/supabase/helpers.ts
|
|
@@ -16,8 +16,14 @@ function useBatchDeleteRows(tableName, invalidateQueryKeys) {
|
|
|
16
16
|
return useMutation({
|
|
17
17
|
mutationFn: async (ids) => {
|
|
18
18
|
if (ids.length === 0) return;
|
|
19
|
-
const { error } = await supabase.from(tableName).delete().in("id", ids);
|
|
19
|
+
const { data, error } = await supabase.from(tableName).delete().in("id", ids).select("id");
|
|
20
20
|
if (error) throw error;
|
|
21
|
+
const deletedCount = data?.length ?? 0;
|
|
22
|
+
if (deletedCount < ids.length) {
|
|
23
|
+
throw new Error(
|
|
24
|
+
`Only ${deletedCount} of ${ids.length} rows were deleted. You may not have permission to delete the rest.`
|
|
25
|
+
);
|
|
26
|
+
}
|
|
21
27
|
},
|
|
22
28
|
onSuccess: () => {
|
|
23
29
|
for (const key of invalidateQueryKeys) {
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { eqOrgId, useBatchDeleteRows } from './chunk-
|
|
2
|
-
import { LEAD_GEN_API_INTERFACE } from './chunk-
|
|
3
|
-
import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-
|
|
1
|
+
import { eqOrgId, useBatchDeleteRows } from './chunk-7ICEQPBU.js';
|
|
2
|
+
import { LEAD_GEN_API_INTERFACE } from './chunk-SJRIO26Q.js';
|
|
3
|
+
import { useCredentials, useVerifyCredential, useListMembers, useListMember, useTransitionListMember, useDeriveActions, useArtifacts } from './chunk-MGCXAAX4.js';
|
|
4
4
|
import { useSupabase } from './chunk-MKH2KOAO.js';
|
|
5
|
-
import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-
|
|
5
|
+
import { useCompanyFacets, useCompanies, useDeleteCompanies, useContacts, useDeleteContacts } from './chunk-GWCLI2RX.js';
|
|
6
6
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
7
7
|
import { getSystemApiInterfaceReadiness } from './chunk-3RK2NNJX.js';
|
|
8
8
|
import { sanitizeInput } from './chunk-3MEXPLWT.js';
|
|
9
9
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
10
|
-
import { SubshellPageLayout } from './chunk-
|
|
10
|
+
import { SubshellPageLayout } from './chunk-ODXLZZFR.js';
|
|
11
11
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
12
12
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
13
13
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
14
|
-
import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-
|
|
14
|
+
import { SubshellSidebarSection, LeadGenSidebarMiddle, PageTitleCaption, acquisitionListKeys, useOptionalElevasisSystems, getAllBuildTemplates, getLeadGenStageCatalog, useListsTelemetry, useLists, useAccess, AccessKeys, SubshellContentContainer, CenteredErrorState, StatCard, usePaginationState, EmptyState, CustomModal, useListActions, useList, useListProgress, useListExecutions, useDeleteList, useExecuteAsync, SystemReadinessAlert, useCreateList, JsonViewer, isExecutionInFlight, useWorkflowExecution, useInFlightExecutions, useExecutionSSE, useListRecords } from './chunk-4VGPEDQF.js';
|
|
15
15
|
import { showApiErrorNotification, showSuccessNotification } from './chunk-KXNRTJAE.js';
|
|
16
16
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
17
17
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
18
18
|
import { PAGE_SIZE_DEFAULT, formatTimeAgo, getSystem } from './chunk-5ZK7K7YP.js';
|
|
19
|
+
import { REFETCH_INTERVAL_RUNNING, REFETCH_INTERVAL_REALTIME } from './chunk-Y6I3IC45.js';
|
|
19
20
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
20
21
|
import { Stack, Group, Title, Text, Alert, Button, Collapse, Paper, Anchor, Center, Loader, SimpleGrid, Table, Badge, TextInput, Select, Checkbox, Pagination, ActionIcon, Tooltip, Tabs, Switch, Card, Divider, Textarea, ThemeIcon, Box, SegmentedControl, UnstyledButton, Pill, Drawer, JsonInput, NumberInput, MultiSelect, TagsInput, ScrollArea } from '@mantine/core';
|
|
21
22
|
import { IconTarget, IconAlertCircle, IconPlayerPlay, IconArrowRight, IconListDetails, IconPlus, IconAlertTriangle, IconSearch, IconList, IconExternalLink, IconCopy, IconTrash, IconBuilding, IconUsers, IconBolt, IconLayoutDashboard, IconBuildingFactory2, IconMessage, IconArrowLeft, IconCircleDot, IconChevronLeft, IconChevronRight, IconCheck, IconSparkles, IconAddressBook, IconSettings, IconChevronDown, IconRefresh, IconMail, IconUser, IconDatabase } from '@tabler/icons-react';
|
|
@@ -1931,12 +1932,6 @@ function getRunStatusColor(status) {
|
|
|
1931
1932
|
return "gray";
|
|
1932
1933
|
}
|
|
1933
1934
|
}
|
|
1934
|
-
function isRunInFlight(status) {
|
|
1935
|
-
return status === "running" || status === "pending" || status === "queued";
|
|
1936
|
-
}
|
|
1937
|
-
function isRunTerminal(status) {
|
|
1938
|
-
return !isRunInFlight(status);
|
|
1939
|
-
}
|
|
1940
1935
|
function getRunInput(run) {
|
|
1941
1936
|
const payload = asRecord2(run.payload);
|
|
1942
1937
|
return run.input ?? run.inputs ?? payload.input ?? payload.inputs;
|
|
@@ -2616,6 +2611,7 @@ function CredentialRequirementsPanel({
|
|
|
2616
2611
|
function BuildStepRunningWatcher({
|
|
2617
2612
|
listId,
|
|
2618
2613
|
resourceId,
|
|
2614
|
+
refetchInterval,
|
|
2619
2615
|
onRunningChange
|
|
2620
2616
|
}) {
|
|
2621
2617
|
const queryClient = useQueryClient();
|
|
@@ -2625,7 +2621,7 @@ function BuildStepRunningWatcher({
|
|
|
2625
2621
|
enabled: Boolean(resourceId),
|
|
2626
2622
|
limit: 5,
|
|
2627
2623
|
listId,
|
|
2628
|
-
refetchInterval
|
|
2624
|
+
refetchInterval
|
|
2629
2625
|
});
|
|
2630
2626
|
const isRunning = (inFlightQuery.data?.executions.length ?? 0) > 0;
|
|
2631
2627
|
useExecutionSSE(resourceId, {
|
|
@@ -2847,14 +2843,16 @@ function BuildTab({
|
|
|
2847
2843
|
const ids = /* @__PURE__ */ new Set();
|
|
2848
2844
|
const serverExecutionIds = new Set(executions.map((run) => run.executionId));
|
|
2849
2845
|
executions.forEach((run) => {
|
|
2850
|
-
if (run.resourceId &&
|
|
2846
|
+
if (run.resourceId && isExecutionInFlight(run.status)) ids.add(run.resourceId);
|
|
2851
2847
|
});
|
|
2852
2848
|
optimisticRuns.forEach((run) => {
|
|
2853
2849
|
if (serverExecutionIds.has(run.executionId)) return;
|
|
2854
|
-
if (run.resourceId &&
|
|
2850
|
+
if (run.resourceId && isExecutionInFlight(run.status)) ids.add(run.resourceId);
|
|
2855
2851
|
});
|
|
2856
2852
|
return ids;
|
|
2857
2853
|
}, [executions, optimisticRuns]);
|
|
2854
|
+
const anyResourceRunning = runningResourceIds.size > 0 || Object.values(runningResources).some((isRunning) => isRunning);
|
|
2855
|
+
const runningWatcherInterval = anyResourceRunning ? REFETCH_INTERVAL_RUNNING : REFETCH_INTERVAL_REALTIME;
|
|
2858
2856
|
const runningStep = steps.find((step) => {
|
|
2859
2857
|
const resourceId = step.action?.resourceId;
|
|
2860
2858
|
return resourceId ? (runningResources[resourceId] ?? false) || runningResourceIds.has(resourceId) : false;
|
|
@@ -2883,7 +2881,7 @@ function BuildTab({
|
|
|
2883
2881
|
});
|
|
2884
2882
|
}, []);
|
|
2885
2883
|
useEffect(() => {
|
|
2886
|
-
if (!selectedResourceId || !latestRecentRun ||
|
|
2884
|
+
if (!selectedResourceId || !latestRecentRun || isExecutionInFlight(latestRecentRun.status)) return;
|
|
2887
2885
|
if (lastObservedTerminalRunRef.current === latestRecentRun.executionId) return;
|
|
2888
2886
|
lastObservedTerminalRunRef.current = latestRecentRun.executionId;
|
|
2889
2887
|
handleResourceRunningChange(selectedResourceId, false);
|
|
@@ -3034,6 +3032,7 @@ function BuildTab({
|
|
|
3034
3032
|
{
|
|
3035
3033
|
listId: list.id,
|
|
3036
3034
|
resourceId: step.action.resourceId,
|
|
3035
|
+
refetchInterval: runningWatcherInterval,
|
|
3037
3036
|
onRunningChange: handleResourceRunningChange
|
|
3038
3037
|
},
|
|
3039
3038
|
`running-${step.id}`
|
|
@@ -4584,8 +4583,11 @@ function useDeleteSocialPost() {
|
|
|
4584
4583
|
const queryClient = useQueryClient();
|
|
4585
4584
|
return useMutation({
|
|
4586
4585
|
mutationFn: async (postId) => {
|
|
4587
|
-
const { error } = await supabase.from("acq_social_posts").delete().eq("id", postId);
|
|
4586
|
+
const { data, error } = await supabase.from("acq_social_posts").delete().eq("id", postId).select("id");
|
|
4588
4587
|
if (error) throw error;
|
|
4588
|
+
if (!data || data.length === 0) {
|
|
4589
|
+
throw new Error("Post could not be deleted. It may have already been removed or you may not have permission.");
|
|
4590
|
+
}
|
|
4589
4591
|
},
|
|
4590
4592
|
onError: (err) => {
|
|
4591
4593
|
showApiErrorNotification(err);
|
|
@@ -4600,8 +4602,11 @@ function useUpdateSocialPost(postId) {
|
|
|
4600
4602
|
const queryClient = useQueryClient();
|
|
4601
4603
|
return useMutation({
|
|
4602
4604
|
mutationFn: async (fields) => {
|
|
4603
|
-
const { error } = await supabase.from("acq_social_posts").update({ ...fields, updated_at: (/* @__PURE__ */ new Date()).toISOString() }).eq("id", postId);
|
|
4605
|
+
const { data, error } = await supabase.from("acq_social_posts").update({ ...fields, updated_at: (/* @__PURE__ */ new Date()).toISOString() }).eq("id", postId).select("id");
|
|
4604
4606
|
if (error) throw error;
|
|
4607
|
+
if (!data || data.length === 0) {
|
|
4608
|
+
throw new Error("Post could not be updated. It may have been removed or you may not have permission.");
|
|
4609
|
+
}
|
|
4605
4610
|
},
|
|
4606
4611
|
onMutate: async (fields) => {
|
|
4607
4612
|
const queryKey = socialPostDetailKeys.detail(postId);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useProjectRealtime, useProjectActivities } from './chunk-
|
|
1
|
+
import { useProjectRealtime, useProjectActivities } from './chunk-WJO6QEI7.js';
|
|
2
2
|
import { useCreateTask, useCreateMilestone, useProjectMilestones, useUpdateTask, useProjects, useDeleteProject, useProject, useProjectNotes, useUpdateMilestone, useCreateNote } from './chunk-GFSOQH3N.js';
|
|
3
3
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
4
4
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
5
5
|
import { milestoneStatusColors, formatStatusLabel, taskTypeColors, taskStatusColors, projectStatusColors, calculateProgress, noteTypeColors } from './chunk-DLR4SDZW.js';
|
|
6
|
-
import { SubshellPageLayout } from './chunk-
|
|
6
|
+
import { SubshellPageLayout } from './chunk-ODXLZZFR.js';
|
|
7
7
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
8
8
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
9
9
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
10
|
-
import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-
|
|
10
|
+
import { StatusBadge, EmptyState, SubshellSidebarSection, PageTitleCaption, usePaginationState, SubshellContentContainer, CenteredErrorState, CustomModal, StatCard, SubshellNavItem } from './chunk-4VGPEDQF.js';
|
|
11
11
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
12
12
|
import { PAGE_SIZE_DEFAULT, formatTimeAgo, formatDate, formatRelativeTime } from './chunk-5ZK7K7YP.js';
|
|
13
13
|
import { useRouterContext } from './chunk-Q7DJKLEN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-
|
|
1
|
+
import { useCyberColors, useResourcesHealth, EmptyState, CyberLegendItem, CyberAreaChart } from './chunk-4VGPEDQF.js';
|
|
2
2
|
import { CardHeader } from './chunk-62GVNH5U.js';
|
|
3
3
|
import { getTimeRangeDates, formatBucketTime } from './chunk-Y6I3IC45.js';
|
|
4
4
|
import { Paper, Center, Loader, Group } from '@mantine/core';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { eqOrgId, sanitizePostgrestValue, useBatchDeleteRows } from './chunk-
|
|
1
|
+
import { eqOrgId, sanitizePostgrestValue, useBatchDeleteRows } from './chunk-7ICEQPBU.js';
|
|
2
2
|
import { useSupabase } from './chunk-MKH2KOAO.js';
|
|
3
3
|
import { useTableSort, sortData } from './chunk-2Y6AKWGU.js';
|
|
4
4
|
import { useTableSelection } from './chunk-WDBNW44Z.js';
|
|
5
|
-
import { SubshellPageLayout } from './chunk-
|
|
5
|
+
import { SubshellPageLayout } from './chunk-ODXLZZFR.js';
|
|
6
6
|
import { TableSelectionToolbar, SortableHeader } from './chunk-TUMSNGTX.js';
|
|
7
7
|
import { FilterBar } from './chunk-PDHTXPSF.js';
|
|
8
|
-
import { usePaginationState, PageTitleCaption, StatCard, EmptyState, CustomModal, SubshellContentContainer } from './chunk-
|
|
8
|
+
import { usePaginationState, PageTitleCaption, StatCard, EmptyState, CustomModal, SubshellContentContainer } from './chunk-4VGPEDQF.js';
|
|
9
9
|
import { showApiErrorNotification } from './chunk-KXNRTJAE.js';
|
|
10
10
|
import { useOrganization } from './chunk-DD3CCMCZ.js';
|
|
11
11
|
import { PAGE_SIZE_DEFAULT } from './chunk-5ZK7K7YP.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { acquisitionListKeys } from './chunk-
|
|
1
|
+
import { acquisitionListKeys } from './chunk-4VGPEDQF.js';
|
|
2
2
|
import { showApiErrorNotification, showSuccessNotification } from './chunk-KXNRTJAE.js';
|
|
3
3
|
import { APIClientError } from './chunk-5ZK7K7YP.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GetNotificationsQuerySchema, MarkAsReadParamsSchema } from './chunk-VM2OWOXL.js';
|
|
2
|
-
import { useNotificationAdapter } from './chunk-
|
|
2
|
+
import { useNotificationAdapter } from './chunk-4VGPEDQF.js';
|
|
3
3
|
import { getTimeRangeDates } from './chunk-Y6I3IC45.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
5
5
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dealKeys } from './chunk-
|
|
1
|
+
import { dealKeys } from './chunk-4VGPEDQF.js';
|
|
2
2
|
import { showApiErrorNotification } from './chunk-KXNRTJAE.js';
|
|
3
3
|
import { APIClientError } from './chunk-5ZK7K7YP.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { deriveActions } from './chunk-
|
|
2
|
-
import { acquisitionListKeys, useNotificationAdapter } from './chunk-
|
|
1
|
+
import { deriveActions } from './chunk-GWCLI2RX.js';
|
|
2
|
+
import { acquisitionListKeys, useNotificationAdapter } from './chunk-4VGPEDQF.js';
|
|
3
3
|
import { showApiErrorNotification, showSuccessNotification } from './chunk-KXNRTJAE.js';
|
|
4
4
|
import { useElevasisServices } from './chunk-BI5VDO2K.js';
|
|
5
5
|
import { CredentialNameSchema, UuidSchema } from './chunk-TVTSASST.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isStepStartedContext, isConditionalRouteContext, isStepCompletedContext, isStepFailedContext, isLifecycleEvent, isIterationEvent, isToolCallEvent, toWorkflowLogMessage } from './chunk-
|
|
1
|
+
import { isStepStartedContext, isConditionalRouteContext, isStepCompletedContext, isStepFailedContext, isLifecycleEvent, isIterationEvent, isToolCallEvent, toWorkflowLogMessage } from './chunk-5F3QGBEI.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import dagre from '@dagrejs/dagre';
|
|
4
4
|
import { IconCircleDot, IconLoader, IconAlertTriangle, IconX, IconCheck } from '@tabler/icons-react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageContainer } from './chunk-BZZCNLT6.js';
|
|
2
|
-
import { SubshellContentContainer } from './chunk-
|
|
2
|
+
import { SubshellContentContainer } from './chunk-4VGPEDQF.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
var SubshellPageLayout = ({ children, className }) => /* @__PURE__ */ jsx(SubshellContentContainer, { className, children: /* @__PURE__ */ jsx(PageContainer, { children }) });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppearanceContext } from './chunk-
|
|
1
|
+
import { AppearanceContext } from './chunk-4VGPEDQF.js';
|
|
2
2
|
import { ElevasisServiceContext } from './chunk-BI5VDO2K.js';
|
|
3
3
|
import { useContext, useState, useRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import { Paper, Stack, Title, Text, Group, Button, Anchor, Collapse, Badge, Code } from '@mantine/core';
|