@elevasis/ui 2.22.0 → 2.23.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.
Files changed (35) hide show
  1. package/dist/{chunk-LKVBEE63.js → chunk-7PGEGSUM.js} +1 -1
  2. package/dist/{chunk-GJ7EIABJ.js → chunk-D3KQAABP.js} +1 -1
  3. package/dist/{chunk-IOTLB6ND.js → chunk-EPV7NU2E.js} +22 -8
  4. package/dist/{chunk-WWJ6S2HQ.js → chunk-FXWETLEB.js} +1 -1
  5. package/dist/{chunk-B4FHWKEF.js → chunk-GUJUK6EH.js} +22 -9
  6. package/dist/{chunk-LVJGPE6H.js → chunk-N6WLOWOD.js} +1 -1
  7. package/dist/{chunk-BSZRKBAW.js → chunk-PTUOINQ2.js} +1 -1
  8. package/dist/{chunk-COG4ABRI.js → chunk-PXGSJNBH.js} +1 -1
  9. package/dist/{chunk-IBUYJXA3.js → chunk-YU6MBDVO.js} +962 -343
  10. package/dist/components/index.d.ts +12 -14
  11. package/dist/components/index.js +29 -22
  12. package/dist/features/auth/index.d.ts +9 -12
  13. package/dist/features/crm/index.d.ts +9 -12
  14. package/dist/features/crm/index.js +2 -2
  15. package/dist/features/dashboard/index.js +2 -2
  16. package/dist/features/delivery/index.d.ts +9 -12
  17. package/dist/features/delivery/index.js +2 -2
  18. package/dist/features/lead-gen/index.js +2 -2
  19. package/dist/features/monitoring/index.js +3 -3
  20. package/dist/features/monitoring/requests/index.js +1 -1
  21. package/dist/features/operations/index.js +4 -4
  22. package/dist/features/settings/index.d.ts +9 -12
  23. package/dist/features/settings/index.js +2 -2
  24. package/dist/hooks/delivery/index.d.ts +9 -12
  25. package/dist/hooks/index.d.ts +33 -28
  26. package/dist/hooks/index.js +1 -1
  27. package/dist/hooks/published.d.ts +33 -28
  28. package/dist/hooks/published.js +1 -1
  29. package/dist/index.d.ts +33 -28
  30. package/dist/index.js +1 -1
  31. package/dist/initialization/index.d.ts +9 -12
  32. package/dist/profile/index.d.ts +9 -12
  33. package/dist/supabase/index.d.ts +18 -24
  34. package/dist/types/index.d.ts +9 -12
  35. package/package.json +4 -4
@@ -905,7 +905,6 @@ type Database = {
905
905
  acq_deals: {
906
906
  Row: {
907
907
  activity_log: Json;
908
- cached_stage: string | null;
909
908
  closed_lost_at: string | null;
910
909
  closed_lost_reason: string | null;
911
910
  contact_email: string;
@@ -920,6 +919,7 @@ type Database = {
920
919
  organization_id: string;
921
920
  payment_link_sent_at: string | null;
922
921
  payment_received_at: string | null;
922
+ pipeline_key: string;
923
923
  proposal_data: Json | null;
924
924
  proposal_generated_at: string | null;
925
925
  proposal_pdf_url: string | null;
@@ -927,10 +927,11 @@ type Database = {
927
927
  proposal_reviewed_by: string | null;
928
928
  proposal_sent_at: string | null;
929
929
  proposal_signed_at: string | null;
930
- proposal_status: string | null;
931
930
  signature_envelope_id: string | null;
932
931
  source_list_id: string | null;
933
932
  source_type: string | null;
933
+ stage_key: string | null;
934
+ state_key: string | null;
934
935
  stripe_payment_id: string | null;
935
936
  stripe_payment_link: string | null;
936
937
  stripe_payment_link_id: string | null;
@@ -939,7 +940,6 @@ type Database = {
939
940
  };
940
941
  Insert: {
941
942
  activity_log?: Json;
942
- cached_stage?: string | null;
943
943
  closed_lost_at?: string | null;
944
944
  closed_lost_reason?: string | null;
945
945
  contact_email: string;
@@ -954,6 +954,7 @@ type Database = {
954
954
  organization_id: string;
955
955
  payment_link_sent_at?: string | null;
956
956
  payment_received_at?: string | null;
957
+ pipeline_key?: string;
957
958
  proposal_data?: Json | null;
958
959
  proposal_generated_at?: string | null;
959
960
  proposal_pdf_url?: string | null;
@@ -961,10 +962,11 @@ type Database = {
961
962
  proposal_reviewed_by?: string | null;
962
963
  proposal_sent_at?: string | null;
963
964
  proposal_signed_at?: string | null;
964
- proposal_status?: string | null;
965
965
  signature_envelope_id?: string | null;
966
966
  source_list_id?: string | null;
967
967
  source_type?: string | null;
968
+ stage_key?: string | null;
969
+ state_key?: string | null;
968
970
  stripe_payment_id?: string | null;
969
971
  stripe_payment_link?: string | null;
970
972
  stripe_payment_link_id?: string | null;
@@ -973,7 +975,6 @@ type Database = {
973
975
  };
974
976
  Update: {
975
977
  activity_log?: Json;
976
- cached_stage?: string | null;
977
978
  closed_lost_at?: string | null;
978
979
  closed_lost_reason?: string | null;
979
980
  contact_email?: string;
@@ -988,6 +989,7 @@ type Database = {
988
989
  organization_id?: string;
989
990
  payment_link_sent_at?: string | null;
990
991
  payment_received_at?: string | null;
992
+ pipeline_key?: string;
991
993
  proposal_data?: Json | null;
992
994
  proposal_generated_at?: string | null;
993
995
  proposal_pdf_url?: string | null;
@@ -995,10 +997,11 @@ type Database = {
995
997
  proposal_reviewed_by?: string | null;
996
998
  proposal_sent_at?: string | null;
997
999
  proposal_signed_at?: string | null;
998
- proposal_status?: string | null;
999
1000
  signature_envelope_id?: string | null;
1000
1001
  source_list_id?: string | null;
1001
1002
  source_type?: string | null;
1003
+ stage_key?: string | null;
1004
+ state_key?: string | null;
1002
1005
  stripe_payment_id?: string | null;
1003
1006
  stripe_payment_link?: string | null;
1004
1007
  stripe_payment_link_id?: string | null;
@@ -3247,12 +3250,6 @@ type Database = {
3247
3250
  };
3248
3251
  Returns: boolean;
3249
3252
  };
3250
- is_org_admin: {
3251
- Args: {
3252
- org_id: string;
3253
- };
3254
- Returns: boolean;
3255
- };
3256
3253
  is_org_member: {
3257
3254
  Args: {
3258
3255
  org_id: string;
@@ -4087,7 +4084,7 @@ interface Activity {
4087
4084
  *
4088
4085
  * The DB table `org_rol_permissions` mirrors this constant. Reconciliation
4089
4086
  * runs at API boot (insert-or-update only — never auto-delete; see the
4090
- * deletion runbook in the auth-role-system-redesign doc).
4087
+ * deletion runbook in the auth-role-system doc -- review/auth-role-system/).
4091
4088
  *
4092
4089
  * Adding a permission:
4093
4090
  * 1. Add an entry below.
@@ -4107,7 +4104,8 @@ declare const PERMISSIONS: {
4107
4104
  readonly SECRETS_MANAGE: "secrets.manage";
4108
4105
  readonly OPERATIONS_READ: "operations.read";
4109
4106
  readonly OPERATIONS_MANAGE: "operations.manage";
4110
- readonly WORK_MANAGE: "work.manage";
4107
+ readonly ACQUISITION_MANAGE: "acquisition.manage";
4108
+ readonly PROJECTS_MANAGE: "projects.manage";
4111
4109
  };
4112
4110
  type PermissionKey = (typeof PERMISSIONS)[keyof typeof PERMISSIONS];
4113
4111
  /**
@@ -1,24 +1,24 @@
1
1
  import { useBreadcrumbs } from '../chunk-DDZOHLHB.js';
2
2
  import '../chunk-6Z3G4U2R.js';
3
- export { AllTasksPage, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../chunk-LVJGPE6H.js';
4
- export { LEAD_GEN_ROUTE_LINKS, LIST_TEMPLATE_OPTIONS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, buildListConfig, getEnrichmentColor, getStatusColor, leadGenManifest, useDeleteLists } from '../chunk-COG4ABRI.js';
5
- export { ActionModal, AgentDefinitionDisplay, AgentExecutionLogs, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, CheckpointGroup, CollapsibleJsonSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, ConfigCard, ContentSections, ContextUsageBadge, ContractDisplay, ExecutionErrorSection, LogEntry, LogGroup, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceNotFoundState, SessionMemory, ToolsListDisplay, WorkflowDefinitionDisplay, WorkflowExecutionLogs, getExecutionStatusConfig, getIcon, getLogLevelConfig, iconMap, operationsManifest, useNewKnowledgeMapLayout } from '../chunk-IBUYJXA3.js';
3
+ export { AllTasksPage, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../chunk-N6WLOWOD.js';
4
+ export { LEAD_GEN_ROUTE_LINKS, LIST_TEMPLATE_OPTIONS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, buildListConfig, getEnrichmentColor, getStatusColor, leadGenManifest, useDeleteLists } from '../chunk-PXGSJNBH.js';
5
+ export { ActionModal, AgentDefinitionDisplay, AgentExecutionLogs, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, CheckpointGroup, CollapsibleJsonSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, ConfigCard, ContentSections, ContextUsageBadge, ContractDisplay, ExecutionErrorSection, LogEntry, LogGroup, NewKnowledgeMapEdge, NewKnowledgeMapGraph, NewKnowledgeMapNode, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceNotFoundState, SessionMemory, ToolsListDisplay, WorkflowDefinitionDisplay, WorkflowExecutionLogs, getExecutionStatusConfig, getIcon, getLogLevelConfig, iconMap, operationsManifest, useNewKnowledgeMapLayout } from '../chunk-YU6MBDVO.js';
6
6
  import '../chunk-ROSMICXG.js';
7
7
  import '../chunk-3JCMO7SD.js';
8
8
  import '../chunk-ZTWA5H77.js';
9
- import { BaseNode, useGraphTheme, BaseEdge, GraphBackground, GraphLegend, GraphFitViewButton } from '../chunk-LKVBEE63.js';
10
- export { AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, BaseEdge, BaseNode, EmptyVisualizer, ExecutionStats, ExecutionStatusBadge, FormFieldRenderer, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, RunResourceButton, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WorkflowExecutionTimeline, ZodFormRenderer, getGraphBackgroundStyles, useGraphBackgroundStyles, useGraphTheme } from '../chunk-LKVBEE63.js';
9
+ import { BaseNode, useGraphTheme, BaseEdge, GraphBackground, GraphLegend, GraphFitViewButton } from '../chunk-7PGEGSUM.js';
10
+ export { AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationEdge, AgentIterationNode, BaseEdge, BaseNode, EmptyVisualizer, ExecutionStats, ExecutionStatusBadge, FormFieldRenderer, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, RunResourceButton, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, VisualizerContainer, WorkflowExecutionTimeline, ZodFormRenderer, getGraphBackgroundStyles, useGraphBackgroundStyles, useGraphTheme } from '../chunk-7PGEGSUM.js';
11
11
  import '../chunk-442LZPIR.js';
12
- import { NotificationList } from '../chunk-WWJ6S2HQ.js';
13
- export { ActivityCard, ActivityFilters as ActivityFiltersBar, ActivityTable, BusinessImpactCard, CostBreakdownCard, CostByModelTable, CostMetricsCard, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, NotificationItem, NotificationList, monitoringManifest } from '../chunk-WWJ6S2HQ.js';
14
- export { ResourceHealthPanel } from '../chunk-GJ7EIABJ.js';
12
+ import { NotificationList } from '../chunk-FXWETLEB.js';
13
+ export { ActivityCard, ActivityFilters as ActivityFiltersBar, ActivityTable, BusinessImpactCard, CostBreakdownCard, CostByModelTable, CostMetricsCard, ErrorAnalysisCard, ErrorBreakdownTable, ExecutionBreakdownTable, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, NotificationItem, NotificationList, monitoringManifest } from '../chunk-FXWETLEB.js';
14
+ export { ResourceHealthPanel } from '../chunk-D3KQAABP.js';
15
15
  export { ResourceHealthChart, getHealthColor } from '../chunk-LGKLC5MG.js';
16
16
  import '../chunk-TSSKOQBX.js';
17
17
  export { SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, seoManifest } from '../chunk-BIWHHWCJ.js';
18
- import { showAuthError } from '../chunk-BSZRKBAW.js';
19
- export { CreateCredentialModal, CredentialList, CredentialSettings, MembershipFeaturePanel, MembershipStatusBadge, OAuthConnectModal, OrganizationMembershipsList, WebhookUrlDisplayModal, settingsManifest, showAuthError } from '../chunk-BSZRKBAW.js';
18
+ import { showAuthError } from '../chunk-PTUOINQ2.js';
19
+ export { CreateCredentialModal, CredentialList, CredentialSettings, MembershipFeaturePanel, MembershipStatusBadge, OAuthConnectModal, OrganizationMembershipsList, WebhookUrlDisplayModal, settingsManifest, showAuthError } from '../chunk-PTUOINQ2.js';
20
20
  import { AppShellLoader } from '../chunk-M25JL54Z.js';
21
- export { ActivityFeedWidget, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, TasksDueWidget, crmManifest, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../chunk-IOTLB6ND.js';
21
+ export { ActivityFeedWidget, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, TasksDueWidget, crmManifest, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../chunk-EPV7NU2E.js';
22
22
  import '../chunk-BZZCNLT6.js';
23
23
  export { SortableHeader, TableSelectionToolbar } from '../chunk-TUMSNGTX.js';
24
24
  import '../chunk-CEWTOKE7.js';
@@ -30,7 +30,7 @@ export { ConfirmationInputModal, ConfirmationModal, CustomModal } from '../chunk
30
30
  import '../chunk-QZJM3RYI.js';
31
31
  export { CONTAINER_CONSTANTS, SHARED_VIZ_CONSTANTS } from '../chunk-E4WQGJNS.js';
32
32
  import '../chunk-7M2VOCYN.js';
33
- import { useCommandViewLayout, useOrganizationPermissions, useCreateOrgRole, usePermissionCatalog, useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, usePaginationState, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useDealNotes, useCreateDealNote, useDeals, useSyncDealStage, dealKeys, useMarkAllAsRead, useNotifications } from '../chunk-B4FHWKEF.js';
33
+ import { useCommandViewLayout, useOrganizationPermissions, useCreateOrgRole, usePermissionCatalog, useUpdateApiKey, useDeleteApiKey, useCreateApiKey, useListApiKeys, usePaginationState, useActivateDeployment, useDeactivateDeployment, useDeleteDeployment, useListDeployments, useResources, useCreateSchedule, useListSchedules, usePauseSchedule, useResumeSchedule, useCancelSchedule, useDeleteSchedule, useDealNotes, useCreateDealNote, useDeals, useTransitionItem, dealKeys, useMarkAllAsRead, useNotifications } from '../chunk-GUJUK6EH.js';
34
34
  import '../chunk-BRXELOHC.js';
35
35
  import '../chunk-QSTH6T77.js';
36
36
  import { showSuccessNotification, showErrorNotification, showApiErrorNotification } from '../chunk-Z6FAH4XV.js';
@@ -3286,7 +3286,7 @@ function DealKanbanCard({ deal, config, onClick, onDragStart, onDragEnd }) {
3286
3286
  const companyName = deal.contact?.company?.name || deal.discovery_data?.company || deal.contact_email?.split("@")[1] || null;
3287
3287
  const hasInitialFee = typeof deal.initial_fee === "number" && deal.initial_fee > 0;
3288
3288
  const hasMonthlyFee = typeof deal.monthly_fee === "number" && deal.monthly_fee > 0;
3289
- const stageColor = (deal.cached_stage ? config[deal.cached_stage]?.color : null) ?? "gray";
3289
+ const stageColor = (deal.stage_key ? config[deal.stage_key]?.color : null) ?? "gray";
3290
3290
  return /* @__PURE__ */ jsx(
3291
3291
  Paper,
3292
3292
  {
@@ -3336,7 +3336,7 @@ function DealDrawer({ deal, config, opened, onClose, renderActions }) {
3336
3336
  const displayName = contactName || deal.contact_email || "Unknown";
3337
3337
  const email = deal.contact?.email || deal.contact_email || null;
3338
3338
  const companyName = deal.contact?.company?.name || deal.discovery_data?.company || null;
3339
- const stage = deal.cached_stage;
3339
+ const stage = deal.stage_key;
3340
3340
  const badgeColor = (stage ? config?.[stage]?.color : null) ?? "gray";
3341
3341
  const activityLog = deal.activity_log || [];
3342
3342
  const hasInitialFee = typeof deal.initial_fee === "number" && deal.initial_fee > 0;
@@ -3458,7 +3458,7 @@ function groupDealsByStage(deals, columns) {
3458
3458
  const map = /* @__PURE__ */ new Map();
3459
3459
  for (const stage of columns) map.set(stage, []);
3460
3460
  for (const deal of deals) {
3461
- const key = deal.cached_stage ?? UNSTAGED_KEY;
3461
+ const key = deal.stage_key ?? UNSTAGED_KEY;
3462
3462
  const bucket = map.get(key);
3463
3463
  if (bucket) {
3464
3464
  bucket.push(deal);
@@ -3469,18 +3469,25 @@ function groupDealsByStage(deals, columns) {
3469
3469
  return map;
3470
3470
  }
3471
3471
  function KanbanBoard({ config, renderDrawerActions }) {
3472
- const { data: deals, total, isLoading, error } = useDeals({
3472
+ const {
3473
+ data: deals,
3474
+ total,
3475
+ isLoading,
3476
+ error
3477
+ } = useDeals({
3473
3478
  limit: KANBAN_FETCH_LIMIT,
3474
3479
  offset: 0
3475
3480
  });
3476
- const syncStage = useSyncDealStage();
3481
+ const transitionItem = useTransitionItem();
3477
3482
  const queryClient = useQueryClient();
3478
3483
  const [selectedDeal, setSelectedDeal] = useState(null);
3479
3484
  const [drawerOpen, setDrawerOpen] = useState(false);
3480
3485
  const [dragOverColumn, setDragOverColumn] = useState(null);
3481
3486
  const draggingDealRef = useRef(null);
3482
3487
  const resolvedConfig = config ?? {};
3483
- const configuredStages = Object.keys(resolvedConfig).filter((stage) => Boolean(resolvedConfig[stage]));
3488
+ const configuredStages = Object.keys(resolvedConfig).filter(
3489
+ (stage) => Boolean(resolvedConfig[stage])
3490
+ );
3484
3491
  const columns = [...configuredStages, UNSTAGED_KEY];
3485
3492
  const hasConfig = configuredStages.length > 0;
3486
3493
  const groupedDeals = groupDealsByStage(deals ?? [], columns);
@@ -3509,17 +3516,17 @@ function KanbanBoard({ config, renderDrawerActions }) {
3509
3516
  const deal = draggingDealRef.current;
3510
3517
  draggingDealRef.current = null;
3511
3518
  if (!deal) return;
3512
- if (deal.cached_stage === targetStage) return;
3519
+ if (deal.stage_key === targetStage) return;
3513
3520
  queryClient.setQueriesData({ queryKey: dealKeys.lists() }, (old) => {
3514
3521
  if (!old) return old;
3515
3522
  return {
3516
3523
  ...old,
3517
- data: old.data.map((d) => d.id === deal.id ? { ...d, cached_stage: targetStage } : d)
3524
+ data: old.data.map((d) => d.id === deal.id ? { ...d, stage_key: targetStage } : d)
3518
3525
  };
3519
3526
  });
3520
- syncStage.mutate({ dealId: deal.id, stage: targetStage });
3527
+ transitionItem.mutate({ dealId: deal.id, pipelineKey: "default", stageKey: targetStage });
3521
3528
  },
3522
- [queryClient, syncStage]
3529
+ [queryClient, transitionItem]
3523
3530
  );
3524
3531
  const handleDragEnd = useCallback(() => {
3525
3532
  draggingDealRef.current = null;
@@ -410,7 +410,6 @@ type Database = {
410
410
  acq_deals: {
411
411
  Row: {
412
412
  activity_log: Json;
413
- cached_stage: string | null;
414
413
  closed_lost_at: string | null;
415
414
  closed_lost_reason: string | null;
416
415
  contact_email: string;
@@ -425,6 +424,7 @@ type Database = {
425
424
  organization_id: string;
426
425
  payment_link_sent_at: string | null;
427
426
  payment_received_at: string | null;
427
+ pipeline_key: string;
428
428
  proposal_data: Json | null;
429
429
  proposal_generated_at: string | null;
430
430
  proposal_pdf_url: string | null;
@@ -432,10 +432,11 @@ type Database = {
432
432
  proposal_reviewed_by: string | null;
433
433
  proposal_sent_at: string | null;
434
434
  proposal_signed_at: string | null;
435
- proposal_status: string | null;
436
435
  signature_envelope_id: string | null;
437
436
  source_list_id: string | null;
438
437
  source_type: string | null;
438
+ stage_key: string | null;
439
+ state_key: string | null;
439
440
  stripe_payment_id: string | null;
440
441
  stripe_payment_link: string | null;
441
442
  stripe_payment_link_id: string | null;
@@ -444,7 +445,6 @@ type Database = {
444
445
  };
445
446
  Insert: {
446
447
  activity_log?: Json;
447
- cached_stage?: string | null;
448
448
  closed_lost_at?: string | null;
449
449
  closed_lost_reason?: string | null;
450
450
  contact_email: string;
@@ -459,6 +459,7 @@ type Database = {
459
459
  organization_id: string;
460
460
  payment_link_sent_at?: string | null;
461
461
  payment_received_at?: string | null;
462
+ pipeline_key?: string;
462
463
  proposal_data?: Json | null;
463
464
  proposal_generated_at?: string | null;
464
465
  proposal_pdf_url?: string | null;
@@ -466,10 +467,11 @@ type Database = {
466
467
  proposal_reviewed_by?: string | null;
467
468
  proposal_sent_at?: string | null;
468
469
  proposal_signed_at?: string | null;
469
- proposal_status?: string | null;
470
470
  signature_envelope_id?: string | null;
471
471
  source_list_id?: string | null;
472
472
  source_type?: string | null;
473
+ stage_key?: string | null;
474
+ state_key?: string | null;
473
475
  stripe_payment_id?: string | null;
474
476
  stripe_payment_link?: string | null;
475
477
  stripe_payment_link_id?: string | null;
@@ -478,7 +480,6 @@ type Database = {
478
480
  };
479
481
  Update: {
480
482
  activity_log?: Json;
481
- cached_stage?: string | null;
482
483
  closed_lost_at?: string | null;
483
484
  closed_lost_reason?: string | null;
484
485
  contact_email?: string;
@@ -493,6 +494,7 @@ type Database = {
493
494
  organization_id?: string;
494
495
  payment_link_sent_at?: string | null;
495
496
  payment_received_at?: string | null;
497
+ pipeline_key?: string;
496
498
  proposal_data?: Json | null;
497
499
  proposal_generated_at?: string | null;
498
500
  proposal_pdf_url?: string | null;
@@ -500,10 +502,11 @@ type Database = {
500
502
  proposal_reviewed_by?: string | null;
501
503
  proposal_sent_at?: string | null;
502
504
  proposal_signed_at?: string | null;
503
- proposal_status?: string | null;
504
505
  signature_envelope_id?: string | null;
505
506
  source_list_id?: string | null;
506
507
  source_type?: string | null;
508
+ stage_key?: string | null;
509
+ state_key?: string | null;
507
510
  stripe_payment_id?: string | null;
508
511
  stripe_payment_link?: string | null;
509
512
  stripe_payment_link_id?: string | null;
@@ -2752,12 +2755,6 @@ type Database = {
2752
2755
  };
2753
2756
  Returns: boolean;
2754
2757
  };
2755
- is_org_admin: {
2756
- Args: {
2757
- org_id: string;
2758
- };
2759
- Returns: boolean;
2760
- };
2761
2758
  is_org_member: {
2762
2759
  Args: {
2763
2760
  org_id: string;
@@ -458,7 +458,6 @@ type Database = {
458
458
  acq_deals: {
459
459
  Row: {
460
460
  activity_log: Json;
461
- cached_stage: string | null;
462
461
  closed_lost_at: string | null;
463
462
  closed_lost_reason: string | null;
464
463
  contact_email: string;
@@ -473,6 +472,7 @@ type Database = {
473
472
  organization_id: string;
474
473
  payment_link_sent_at: string | null;
475
474
  payment_received_at: string | null;
475
+ pipeline_key: string;
476
476
  proposal_data: Json | null;
477
477
  proposal_generated_at: string | null;
478
478
  proposal_pdf_url: string | null;
@@ -480,10 +480,11 @@ type Database = {
480
480
  proposal_reviewed_by: string | null;
481
481
  proposal_sent_at: string | null;
482
482
  proposal_signed_at: string | null;
483
- proposal_status: string | null;
484
483
  signature_envelope_id: string | null;
485
484
  source_list_id: string | null;
486
485
  source_type: string | null;
486
+ stage_key: string | null;
487
+ state_key: string | null;
487
488
  stripe_payment_id: string | null;
488
489
  stripe_payment_link: string | null;
489
490
  stripe_payment_link_id: string | null;
@@ -492,7 +493,6 @@ type Database = {
492
493
  };
493
494
  Insert: {
494
495
  activity_log?: Json;
495
- cached_stage?: string | null;
496
496
  closed_lost_at?: string | null;
497
497
  closed_lost_reason?: string | null;
498
498
  contact_email: string;
@@ -507,6 +507,7 @@ type Database = {
507
507
  organization_id: string;
508
508
  payment_link_sent_at?: string | null;
509
509
  payment_received_at?: string | null;
510
+ pipeline_key?: string;
510
511
  proposal_data?: Json | null;
511
512
  proposal_generated_at?: string | null;
512
513
  proposal_pdf_url?: string | null;
@@ -514,10 +515,11 @@ type Database = {
514
515
  proposal_reviewed_by?: string | null;
515
516
  proposal_sent_at?: string | null;
516
517
  proposal_signed_at?: string | null;
517
- proposal_status?: string | null;
518
518
  signature_envelope_id?: string | null;
519
519
  source_list_id?: string | null;
520
520
  source_type?: string | null;
521
+ stage_key?: string | null;
522
+ state_key?: string | null;
521
523
  stripe_payment_id?: string | null;
522
524
  stripe_payment_link?: string | null;
523
525
  stripe_payment_link_id?: string | null;
@@ -526,7 +528,6 @@ type Database = {
526
528
  };
527
529
  Update: {
528
530
  activity_log?: Json;
529
- cached_stage?: string | null;
530
531
  closed_lost_at?: string | null;
531
532
  closed_lost_reason?: string | null;
532
533
  contact_email?: string;
@@ -541,6 +542,7 @@ type Database = {
541
542
  organization_id?: string;
542
543
  payment_link_sent_at?: string | null;
543
544
  payment_received_at?: string | null;
545
+ pipeline_key?: string;
544
546
  proposal_data?: Json | null;
545
547
  proposal_generated_at?: string | null;
546
548
  proposal_pdf_url?: string | null;
@@ -548,10 +550,11 @@ type Database = {
548
550
  proposal_reviewed_by?: string | null;
549
551
  proposal_sent_at?: string | null;
550
552
  proposal_signed_at?: string | null;
551
- proposal_status?: string | null;
552
553
  signature_envelope_id?: string | null;
553
554
  source_list_id?: string | null;
554
555
  source_type?: string | null;
556
+ stage_key?: string | null;
557
+ state_key?: string | null;
555
558
  stripe_payment_id?: string | null;
556
559
  stripe_payment_link?: string | null;
557
560
  stripe_payment_link_id?: string | null;
@@ -2800,12 +2803,6 @@ type Database = {
2800
2803
  };
2801
2804
  Returns: boolean;
2802
2805
  };
2803
- is_org_admin: {
2804
- Args: {
2805
- org_id: string;
2806
- };
2807
- Returns: boolean;
2808
- };
2809
2806
  is_org_member: {
2810
2807
  Args: {
2811
2808
  org_id: string;
@@ -1,4 +1,4 @@
1
- export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, TasksDueWidget, crmManifest, formatDealStageLabel, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../../chunk-IOTLB6ND.js';
1
+ export { ActivityFeedWidget, CRM_ITEMS, CompanyDetailPage, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, DEAL_STAGE_COLORS, DEAL_STAGE_OPTIONS, DealDetailPage, DealsListPage, MetricsStrip, MyTasksPanel, PIPELINE_FUNNEL_ORDER, PipelineFunnelWidget, QuickCreateActions, SAVED_VIEW_PRESETS, SavedViewsPanel, TasksDueWidget, crmManifest, formatDealStageLabel, useCrmPipelineSummary, useCrmQuickMetrics, useRecentCrmActivity } from '../../chunk-EPV7NU2E.js';
2
2
  import '../../chunk-BZZCNLT6.js';
3
3
  import '../../chunk-TUMSNGTX.js';
4
4
  import '../../chunk-CEWTOKE7.js';
@@ -6,7 +6,7 @@ import '../../chunk-IIMU5YAJ.js';
6
6
  import '../../chunk-PDHTXPSF.js';
7
7
  import '../../chunk-KVJ3LFH2.js';
8
8
  import '../../chunk-7M2VOCYN.js';
9
- import '../../chunk-B4FHWKEF.js';
9
+ import '../../chunk-GUJUK6EH.js';
10
10
  import '../../chunk-BRXELOHC.js';
11
11
  import '../../chunk-QSTH6T77.js';
12
12
  import '../../chunk-Z6FAH4XV.js';
@@ -1,10 +1,10 @@
1
- export { Dashboard, OperationsOverview, RecentExecutionsByResource, ResourceOverview, UnresolvedErrorsTeaser } from '../../chunk-LKVBEE63.js';
1
+ export { Dashboard, OperationsOverview, RecentExecutionsByResource, ResourceOverview, UnresolvedErrorsTeaser } from '../../chunk-7PGEGSUM.js';
2
2
  import '../../chunk-LGKLC5MG.js';
3
3
  import '../../chunk-TSSKOQBX.js';
4
4
  import '../../chunk-M25JL54Z.js';
5
5
  import '../../chunk-E4WQGJNS.js';
6
6
  import '../../chunk-7M2VOCYN.js';
7
- import '../../chunk-B4FHWKEF.js';
7
+ import '../../chunk-GUJUK6EH.js';
8
8
  import '../../chunk-BRXELOHC.js';
9
9
  import '../../chunk-QSTH6T77.js';
10
10
  import '../../chunk-Z6FAH4XV.js';
@@ -410,7 +410,6 @@ type Database = {
410
410
  acq_deals: {
411
411
  Row: {
412
412
  activity_log: Json;
413
- cached_stage: string | null;
414
413
  closed_lost_at: string | null;
415
414
  closed_lost_reason: string | null;
416
415
  contact_email: string;
@@ -425,6 +424,7 @@ type Database = {
425
424
  organization_id: string;
426
425
  payment_link_sent_at: string | null;
427
426
  payment_received_at: string | null;
427
+ pipeline_key: string;
428
428
  proposal_data: Json | null;
429
429
  proposal_generated_at: string | null;
430
430
  proposal_pdf_url: string | null;
@@ -432,10 +432,11 @@ type Database = {
432
432
  proposal_reviewed_by: string | null;
433
433
  proposal_sent_at: string | null;
434
434
  proposal_signed_at: string | null;
435
- proposal_status: string | null;
436
435
  signature_envelope_id: string | null;
437
436
  source_list_id: string | null;
438
437
  source_type: string | null;
438
+ stage_key: string | null;
439
+ state_key: string | null;
439
440
  stripe_payment_id: string | null;
440
441
  stripe_payment_link: string | null;
441
442
  stripe_payment_link_id: string | null;
@@ -444,7 +445,6 @@ type Database = {
444
445
  };
445
446
  Insert: {
446
447
  activity_log?: Json;
447
- cached_stage?: string | null;
448
448
  closed_lost_at?: string | null;
449
449
  closed_lost_reason?: string | null;
450
450
  contact_email: string;
@@ -459,6 +459,7 @@ type Database = {
459
459
  organization_id: string;
460
460
  payment_link_sent_at?: string | null;
461
461
  payment_received_at?: string | null;
462
+ pipeline_key?: string;
462
463
  proposal_data?: Json | null;
463
464
  proposal_generated_at?: string | null;
464
465
  proposal_pdf_url?: string | null;
@@ -466,10 +467,11 @@ type Database = {
466
467
  proposal_reviewed_by?: string | null;
467
468
  proposal_sent_at?: string | null;
468
469
  proposal_signed_at?: string | null;
469
- proposal_status?: string | null;
470
470
  signature_envelope_id?: string | null;
471
471
  source_list_id?: string | null;
472
472
  source_type?: string | null;
473
+ stage_key?: string | null;
474
+ state_key?: string | null;
473
475
  stripe_payment_id?: string | null;
474
476
  stripe_payment_link?: string | null;
475
477
  stripe_payment_link_id?: string | null;
@@ -478,7 +480,6 @@ type Database = {
478
480
  };
479
481
  Update: {
480
482
  activity_log?: Json;
481
- cached_stage?: string | null;
482
483
  closed_lost_at?: string | null;
483
484
  closed_lost_reason?: string | null;
484
485
  contact_email?: string;
@@ -493,6 +494,7 @@ type Database = {
493
494
  organization_id?: string;
494
495
  payment_link_sent_at?: string | null;
495
496
  payment_received_at?: string | null;
497
+ pipeline_key?: string;
496
498
  proposal_data?: Json | null;
497
499
  proposal_generated_at?: string | null;
498
500
  proposal_pdf_url?: string | null;
@@ -500,10 +502,11 @@ type Database = {
500
502
  proposal_reviewed_by?: string | null;
501
503
  proposal_sent_at?: string | null;
502
504
  proposal_signed_at?: string | null;
503
- proposal_status?: string | null;
504
505
  signature_envelope_id?: string | null;
505
506
  source_list_id?: string | null;
506
507
  source_type?: string | null;
508
+ stage_key?: string | null;
509
+ state_key?: string | null;
507
510
  stripe_payment_id?: string | null;
508
511
  stripe_payment_link?: string | null;
509
512
  stripe_payment_link_id?: string | null;
@@ -2752,12 +2755,6 @@ type Database = {
2752
2755
  };
2753
2756
  Returns: boolean;
2754
2757
  };
2755
- is_org_admin: {
2756
- Args: {
2757
- org_id: string;
2758
- };
2759
- Returns: boolean;
2760
- };
2761
2758
  is_org_member: {
2762
2759
  Args: {
2763
2760
  org_id: string;
@@ -1,4 +1,4 @@
1
- export { AllTasksPage, Checklist, CreateDeliveryEntityModal, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../../chunk-LVJGPE6H.js';
1
+ export { AllTasksPage, Checklist, CreateDeliveryEntityModal, DELIVERY_COMMUNICATION_ITEMS, DELIVERY_PROJECT_ITEMS, DELIVERY_WORK_ITEMS, HealthStatusCard, MilestoneTimeline, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, TaskCard, UpcomingMilestonesPage, calculateProgress, deliveryManifest, formatStatusLabel, milestoneStatusColors, noteTypeColors, projectStatusColors, taskStatusColors, taskTypeColors } from '../../chunk-N6WLOWOD.js';
2
2
  import '../../chunk-442LZPIR.js';
3
3
  import '../../chunk-BZZCNLT6.js';
4
4
  import '../../chunk-TUMSNGTX.js';
@@ -7,7 +7,7 @@ import '../../chunk-IIMU5YAJ.js';
7
7
  import '../../chunk-PDHTXPSF.js';
8
8
  import '../../chunk-KVJ3LFH2.js';
9
9
  import '../../chunk-7M2VOCYN.js';
10
- import '../../chunk-B4FHWKEF.js';
10
+ import '../../chunk-GUJUK6EH.js';
11
11
  import '../../chunk-BRXELOHC.js';
12
12
  import '../../chunk-QSTH6T77.js';
13
13
  import '../../chunk-Z6FAH4XV.js';
@@ -1,4 +1,4 @@
1
- export { CompanyDetailModal, ContactDetailModal, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LIST_TEMPLATE_OPTIONS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, buildListConfig, formatDate, getEnrichmentColor, getEnrichmentStatus, getStatusColor, leadGenManifest, useDeleteLists } from '../../chunk-COG4ABRI.js';
1
+ export { CompanyDetailModal, ContactDetailModal, LEAD_GEN_ITEMS, LEAD_GEN_ROUTE_LINKS, LIST_TEMPLATE_OPTIONS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, buildListConfig, formatDate, getEnrichmentColor, getEnrichmentStatus, getStatusColor, leadGenManifest, useDeleteLists } from '../../chunk-PXGSJNBH.js';
2
2
  import '../../chunk-BZZCNLT6.js';
3
3
  import '../../chunk-TUMSNGTX.js';
4
4
  import '../../chunk-CEWTOKE7.js';
@@ -6,7 +6,7 @@ import '../../chunk-IIMU5YAJ.js';
6
6
  import '../../chunk-PDHTXPSF.js';
7
7
  import '../../chunk-KVJ3LFH2.js';
8
8
  import '../../chunk-7M2VOCYN.js';
9
- export { companyKeys as acquisitionCompanyKeys, contactKeys as acquisitionContactKeys, companyKeys, contactKeys, useCompanies, useCompany, useCompanyFacets, useContact, useContacts, useCreateCompany, useCreateContact, useDeleteCompanies, useDeleteContacts, useUpdateCompany, useUpdateContact } from '../../chunk-B4FHWKEF.js';
9
+ export { companyKeys as acquisitionCompanyKeys, contactKeys as acquisitionContactKeys, companyKeys, contactKeys, useCompanies, useCompany, useCompanyFacets, useContact, useContacts, useCreateCompany, useCreateContact, useDeleteCompanies, useDeleteContacts, useUpdateCompany, useUpdateContact } from '../../chunk-GUJUK6EH.js';
10
10
  import '../../chunk-BRXELOHC.js';
11
11
  import '../../chunk-QSTH6T77.js';
12
12
  import '../../chunk-Z6FAH4XV.js';
@@ -1,5 +1,5 @@
1
- export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter, monitoringManifest } from '../../chunk-WWJ6S2HQ.js';
2
- import '../../chunk-GJ7EIABJ.js';
1
+ export { ActivityFeed, ActivityLog, CostAnalytics, ErrorDetailsModal, ExecutionHealth, ExecutionLogsPage, NotificationCenter, monitoringManifest } from '../../chunk-FXWETLEB.js';
2
+ import '../../chunk-D3KQAABP.js';
3
3
  import '../../chunk-LGKLC5MG.js';
4
4
  import '../../chunk-TSSKOQBX.js';
5
5
  import '../../chunk-M25JL54Z.js';
@@ -7,7 +7,7 @@ import '../../chunk-PDHTXPSF.js';
7
7
  import '../../chunk-KVJ3LFH2.js';
8
8
  import '../../chunk-E4WQGJNS.js';
9
9
  import '../../chunk-7M2VOCYN.js';
10
- import '../../chunk-B4FHWKEF.js';
10
+ import '../../chunk-GUJUK6EH.js';
11
11
  import '../../chunk-BRXELOHC.js';
12
12
  import '../../chunk-QSTH6T77.js';
13
13
  import '../../chunk-Z6FAH4XV.js';
@@ -2,7 +2,7 @@ import { TableSelectionToolbar } from '../../../chunk-TUMSNGTX.js';
2
2
  import { FilterBar } from '../../../chunk-PDHTXPSF.js';
3
3
  import { ConfirmationModal, CustomModal } from '../../../chunk-KVJ3LFH2.js';
4
4
  import '../../../chunk-7M2VOCYN.js';
5
- import { usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, useRequest } from '../../../chunk-B4FHWKEF.js';
5
+ import { usePaginationState, useRequestsList, useUpdateRequestStatus, useDeleteRequest, useTableSelection, useRequest } from '../../../chunk-GUJUK6EH.js';
6
6
  import '../../../chunk-BRXELOHC.js';
7
7
  import '../../../chunk-QSTH6T77.js';
8
8
  import '../../../chunk-Z6FAH4XV.js';