@elevasis/ui 1.24.3 → 1.25.1

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 (42) hide show
  1. package/dist/charts/index.js +2 -2
  2. package/dist/{chunk-H3MU3WTM.js → chunk-7JJCGPYD.js} +2 -2
  3. package/dist/{chunk-TQBM3OEW.js → chunk-BS4J2LAW.js} +1 -1
  4. package/dist/{chunk-JR2C4XAN.js → chunk-CYXZHBP4.js} +202 -295
  5. package/dist/{chunk-ZDKC3V7C.js → chunk-EFPFPCP2.js} +57 -58
  6. package/dist/{chunk-OH74INP2.js → chunk-FEZZ3IDU.js} +434 -314
  7. package/dist/{chunk-JTUX5FDC.js → chunk-FURGQSSG.js} +374 -2
  8. package/dist/{chunk-IAZT3VO6.js → chunk-G25YWGUL.js} +4 -1
  9. package/dist/{chunk-QDO6NF2I.js → chunk-GQCQDCLJ.js} +380 -63
  10. package/dist/{chunk-CTF6FS2M.js → chunk-L3GVDMCA.js} +211 -1
  11. package/dist/{chunk-BGTZFEKR.js → chunk-LHNPRLSA.js} +6 -252
  12. package/dist/{chunk-VMMNFRAO.js → chunk-QNABH7YG.js} +3 -3
  13. package/dist/{chunk-WY5IJI37.js → chunk-QUL3XRLS.js} +3 -3
  14. package/dist/{chunk-TML32XBW.js → chunk-RMPXGBNI.js} +2 -2
  15. package/dist/{chunk-UG5565XQ.js → chunk-US4JUSI3.js} +3 -3
  16. package/dist/components/index.d.ts +3005 -192
  17. package/dist/components/index.js +1541 -26
  18. package/dist/features/auth/index.d.ts +108 -9
  19. package/dist/features/dashboard/index.js +8 -8
  20. package/dist/features/monitoring/index.js +9 -9
  21. package/dist/features/operations/index.d.ts +8 -2
  22. package/dist/features/operations/index.js +53 -56
  23. package/dist/features/settings/index.d.ts +108 -9
  24. package/dist/features/settings/index.js +28 -11
  25. package/dist/hooks/index.d.ts +3279 -185
  26. package/dist/hooks/index.js +5 -5
  27. package/dist/hooks/published.d.ts +345 -11
  28. package/dist/hooks/published.js +4 -4
  29. package/dist/index.d.ts +3285 -187
  30. package/dist/index.js +6 -6
  31. package/dist/initialization/index.d.ts +108 -9
  32. package/dist/layout/index.d.ts +60 -3
  33. package/dist/layout/index.js +2 -2
  34. package/dist/profile/index.d.ts +108 -9
  35. package/dist/provider/index.d.ts +6 -2
  36. package/dist/provider/index.js +3 -3
  37. package/dist/provider/published.d.ts +6 -2
  38. package/dist/supabase/index.d.ts +210 -18
  39. package/dist/theme/index.d.ts +6 -2
  40. package/dist/theme/index.js +3 -3
  41. package/dist/types/index.d.ts +143 -10
  42. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- export { ApiKeyService, CredentialService, DeploymentService, OrganizationMembershipService, WebhookEndpointService, filterByDomainFilters, useActivateDeployment, useActivityFilters, useCommandViewDomainFilters, useCreateApiKey, useCreateCredential, useCreateWebhookEndpoint, useCredentials, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteDeployment, useDeleteWebhookEndpoint, useExecutionLogsFilters, useListApiKeys, useListDeployments, useListWebhookEndpoints, useOrganizationMembers, useReactivateMembership, useResourceSearch, useResourcesDomainFilters, useStatusFilter, useTimeRangeDates, useUpdateApiKey, useUpdateCredential, useUpdateMemberConfig, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources } from '../chunk-JTUX5FDC.js';
2
- export { OperationsService, calibrationKeys, createUseFeatureAccess, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification } from '../chunk-QDO6NF2I.js';
1
+ export { ApiKeyService, CredentialService, DeploymentService, OrganizationMembershipService, WebhookEndpointService, filterByDomainFilters, milestoneKeys, noteKeys, projectKeys, taskKeys, useActivateDeployment, useActivityFilters, useCommandViewDomainFilters, useCreateApiKey, useCreateCredential, useCreateProject as useCreateDeliveryProject, useCreateMilestone, useCreateNote, useCreateWebhookEndpoint, useCredentials, useDeactivateDeployment, useDeactivateMembership, useDeleteApiKey, useDeleteCredential, useDeleteProject as useDeleteDeliveryProject, useDeleteTask as useDeleteDeliveryTask, useDeleteDeployment, useDeleteMilestone, useDeleteWebhookEndpoint, useExecutionLogsFilters, useListApiKeys, useListDeployments, useListWebhookEndpoints, useMilestones, useOrganizationMembers, useProject, useProjectNotes, useProjects, useReactivateMembership, useResourceSearch, useResourcesDomainFilters, useStatusFilter, useTasks, useTimeRangeDates, useUpdateApiKey, useUpdateCredential, useUpdateProject as useUpdateDeliveryProject, useUpdateMemberConfig, useUpdateMilestone, useUpdateWebhookEndpoint, useUserMemberships, useVisibleResources } from '../chunk-FURGQSSG.js';
2
+ export { OperationsService, calibrationKeys, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompleteDealTask, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateDealNote, useCreateDealTask, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteDeal, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification } from '../chunk-GQCQDCLJ.js';
3
3
  import '../chunk-NJJ3NQ7B.js';
4
4
  export { observabilityKeys, useErrorTrends } from '../chunk-LXHZYSMQ.js';
5
5
  import '../chunk-F6RBK7NJ.js';
6
6
  import '../chunk-L4XXM55J.js';
7
7
  import '../chunk-RNP5R5I3.js';
8
- import '../chunk-TML32XBW.js';
8
+ import '../chunk-RMPXGBNI.js';
9
9
  import '../chunk-SZHARWKU.js';
10
- import '../chunk-OH74INP2.js';
11
- import '../chunk-JR2C4XAN.js';
10
+ import '../chunk-FEZZ3IDU.js';
11
+ import '../chunk-CYXZHBP4.js';
12
12
  import '../chunk-R7WLWGPO.js';
13
13
  import '../chunk-NVOCKXUQ.js';
14
14
  import '../chunk-V7XHGJQZ.js';
@@ -280,6 +280,25 @@ interface ExecutionLogMessage$1 {
280
280
  context?: LogContext$1
281
281
  }
282
282
 
283
+ /**
284
+ * Lead Service Types
285
+ * CRUD operation types for the acquisition platform (lists, companies, contacts, deals)
286
+ *
287
+ * Implementation: apps/api/src/acquisition/lead-service.ts (LeadService class)
288
+ */
289
+
290
+
291
+
292
+ interface AcqDealNote {
293
+ id: string
294
+ dealId: string
295
+ organizationId: string
296
+ authorUserId: string | null
297
+ body: string
298
+ createdAt: string
299
+ updatedAt: string
300
+ }
301
+
283
302
  /**
284
303
  * Resource Registry type definitions
285
304
  */
@@ -1575,7 +1594,6 @@ type Database = {
1575
1594
  Tables: {
1576
1595
  acq_companies: {
1577
1596
  Row: {
1578
- attio_company_id: string | null;
1579
1597
  batch_id: string | null;
1580
1598
  category: string | null;
1581
1599
  category_pain: string | null;
@@ -1599,7 +1617,6 @@ type Database = {
1599
1617
  website: string | null;
1600
1618
  };
1601
1619
  Insert: {
1602
- attio_company_id?: string | null;
1603
1620
  batch_id?: string | null;
1604
1621
  category?: string | null;
1605
1622
  category_pain?: string | null;
@@ -1623,7 +1640,6 @@ type Database = {
1623
1640
  website?: string | null;
1624
1641
  };
1625
1642
  Update: {
1626
- attio_company_id?: string | null;
1627
1643
  batch_id?: string | null;
1628
1644
  category?: string | null;
1629
1645
  category_pain?: string | null;
@@ -1658,7 +1674,6 @@ type Database = {
1658
1674
  };
1659
1675
  acq_contacts: {
1660
1676
  Row: {
1661
- attio_person_id: string | null;
1662
1677
  batch_id: string | null;
1663
1678
  brochure_first_viewed_at: string | null;
1664
1679
  brochure_view_count: number;
@@ -1684,7 +1699,6 @@ type Database = {
1684
1699
  updated_at: string;
1685
1700
  };
1686
1701
  Insert: {
1687
- attio_person_id?: string | null;
1688
1702
  batch_id?: string | null;
1689
1703
  brochure_first_viewed_at?: string | null;
1690
1704
  brochure_view_count?: number;
@@ -1710,7 +1724,6 @@ type Database = {
1710
1724
  updated_at?: string;
1711
1725
  };
1712
1726
  Update: {
1713
- attio_person_id?: string | null;
1714
1727
  batch_id?: string | null;
1715
1728
  brochure_first_viewed_at?: string | null;
1716
1729
  brochure_view_count?: number;
@@ -1868,10 +1881,117 @@ type Database = {
1868
1881
  }
1869
1882
  ];
1870
1883
  };
1884
+ acq_deal_notes: {
1885
+ Row: {
1886
+ author_user_id: string | null;
1887
+ body: string;
1888
+ created_at: string;
1889
+ deal_id: string;
1890
+ id: string;
1891
+ organization_id: string;
1892
+ updated_at: string;
1893
+ };
1894
+ Insert: {
1895
+ author_user_id?: string | null;
1896
+ body: string;
1897
+ created_at?: string;
1898
+ deal_id: string;
1899
+ id?: string;
1900
+ organization_id: string;
1901
+ updated_at?: string;
1902
+ };
1903
+ Update: {
1904
+ author_user_id?: string | null;
1905
+ body?: string;
1906
+ created_at?: string;
1907
+ deal_id?: string;
1908
+ id?: string;
1909
+ organization_id?: string;
1910
+ updated_at?: string;
1911
+ };
1912
+ Relationships: [
1913
+ {
1914
+ foreignKeyName: "acq_deal_notes_deal_id_fkey";
1915
+ columns: ["deal_id"];
1916
+ isOneToOne: false;
1917
+ referencedRelation: "acq_deals";
1918
+ referencedColumns: ["id"];
1919
+ },
1920
+ {
1921
+ foreignKeyName: "acq_deal_notes_organization_id_fkey";
1922
+ columns: ["organization_id"];
1923
+ isOneToOne: false;
1924
+ referencedRelation: "organizations";
1925
+ referencedColumns: ["id"];
1926
+ }
1927
+ ];
1928
+ };
1929
+ acq_deal_tasks: {
1930
+ Row: {
1931
+ assignee_user_id: string | null;
1932
+ completed_at: string | null;
1933
+ completed_by_user_id: string | null;
1934
+ created_at: string;
1935
+ created_by_user_id: string | null;
1936
+ deal_id: string;
1937
+ description: string | null;
1938
+ due_at: string | null;
1939
+ id: string;
1940
+ kind: string;
1941
+ organization_id: string;
1942
+ title: string;
1943
+ updated_at: string;
1944
+ };
1945
+ Insert: {
1946
+ assignee_user_id?: string | null;
1947
+ completed_at?: string | null;
1948
+ completed_by_user_id?: string | null;
1949
+ created_at?: string;
1950
+ created_by_user_id?: string | null;
1951
+ deal_id: string;
1952
+ description?: string | null;
1953
+ due_at?: string | null;
1954
+ id?: string;
1955
+ kind?: string;
1956
+ organization_id: string;
1957
+ title: string;
1958
+ updated_at?: string;
1959
+ };
1960
+ Update: {
1961
+ assignee_user_id?: string | null;
1962
+ completed_at?: string | null;
1963
+ completed_by_user_id?: string | null;
1964
+ created_at?: string;
1965
+ created_by_user_id?: string | null;
1966
+ deal_id?: string;
1967
+ description?: string | null;
1968
+ due_at?: string | null;
1969
+ id?: string;
1970
+ kind?: string;
1971
+ organization_id?: string;
1972
+ title?: string;
1973
+ updated_at?: string;
1974
+ };
1975
+ Relationships: [
1976
+ {
1977
+ foreignKeyName: "acq_deal_tasks_deal_id_fkey";
1978
+ columns: ["deal_id"];
1979
+ isOneToOne: false;
1980
+ referencedRelation: "acq_deals";
1981
+ referencedColumns: ["id"];
1982
+ },
1983
+ {
1984
+ foreignKeyName: "acq_deal_tasks_organization_id_fkey";
1985
+ columns: ["organization_id"];
1986
+ isOneToOne: false;
1987
+ referencedRelation: "organizations";
1988
+ referencedColumns: ["id"];
1989
+ }
1990
+ ];
1991
+ };
1871
1992
  acq_deals: {
1872
1993
  Row: {
1873
1994
  activity_log: Json;
1874
- attio_deal_id: string;
1875
1995
  cached_stage: string | null;
1876
1996
  closed_lost_at: string | null;
1877
1997
  closed_lost_reason: string | null;
@@ -1906,7 +2026,6 @@ type Database = {
1906
2026
  };
1907
2027
  Insert: {
1908
2028
  activity_log?: Json;
1909
- attio_deal_id: string;
1910
2029
  cached_stage?: string | null;
1911
2030
  closed_lost_at?: string | null;
1912
2031
  closed_lost_reason?: string | null;
@@ -1941,7 +2060,6 @@ type Database = {
1941
2060
  };
1942
2061
  Update: {
1943
2062
  activity_log?: Json;
1944
- attio_deal_id?: string;
1945
2063
  cached_stage?: string | null;
1946
2064
  closed_lost_at?: string | null;
1947
2065
  closed_lost_reason?: string | null;
@@ -4192,6 +4310,103 @@ interface NotificationDTO {
4192
4310
  createdAt: string;
4193
4311
  }
4194
4312
 
4313
+ /** Raw database row type for acq_deals table */
4314
+ type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
4315
+ type DealStage = 'interested' | 'booked' | 'qualified' | 'demo_booked' | 'proposal' | 'proposal_sent' | 'proposal_signed' | 'payment_sent' | 'proposal_revision' | 'closed_won' | 'closed_lost' | 'nurturing' | 'cancelled' | 'no_show';
4316
+ interface DealContact {
4317
+ id: string;
4318
+ first_name: string | null;
4319
+ last_name: string | null;
4320
+ email: string;
4321
+ title: string | null;
4322
+ headline: string | null;
4323
+ linkedin_url: string | null;
4324
+ pipeline_status: Record<string, unknown> | null;
4325
+ enrichment_data: Record<string, unknown> | null;
4326
+ company: {
4327
+ id: string;
4328
+ name: string;
4329
+ domain: string | null;
4330
+ website: string | null;
4331
+ linkedin_url: string | null;
4332
+ segment: string | null;
4333
+ category: string | null;
4334
+ num_employees: number | null;
4335
+ } | null;
4336
+ }
4337
+ interface DealFilters {
4338
+ stage?: DealStage;
4339
+ search?: string;
4340
+ }
4341
+ /** Deal list item with joined contact and company data */
4342
+ interface DealListItem extends AcqDealRow {
4343
+ contact: DealContact | null;
4344
+ }
4345
+ type DealDetail = DealListItem;
4346
+ /** Task kind options for a deal task (human follow-up action type) */
4347
+ type AcqDealTaskKind = 'call' | 'email' | 'meeting' | 'other';
4348
+ /**
4349
+ * A CRM to-do item attached to a deal representing a human follow-up action.
4350
+ * Transformed from AcqDealTaskRow with camelCase properties.
4351
+ */
4352
+ interface AcqDealTask {
4353
+ id: string;
4354
+ organizationId: string;
4355
+ dealId: string;
4356
+ title: string;
4357
+ description: string | null;
4358
+ kind: AcqDealTaskKind;
4359
+ dueAt: string | null;
4360
+ assigneeUserId: string | null;
4361
+ completedAt: string | null;
4362
+ completedByUserId: string | null;
4363
+ createdAt: string;
4364
+ updatedAt: string;
4365
+ createdByUserId: string | null;
4366
+ }
4367
+ /**
4368
+ * Aggregated pipeline telemetry for a single acquisition batch.
4369
+ * Stage counts reflect how far companies/contacts have progressed through
4370
+ * the lead-gen pipeline for the given batchId.
4371
+ */
4372
+ interface BatchTelemetry {
4373
+ batchId: string;
4374
+ totalCompanies: number;
4375
+ totalContacts: number;
4376
+ /** Per-stage company and contact counts derived from pipeline_status fields */
4377
+ stageCounts: {
4378
+ /** Companies where pipeline_status.acquired === true */
4379
+ scraped: number;
4380
+ /** Companies where pipeline_status.enrichment.websiteCrawl?.status === 'complete' */
4381
+ extracted: number;
4382
+ /** Companies where category_pain != null */
4383
+ categoryPained: number;
4384
+ /** Companies where category != null AND category_pain != null */
4385
+ qualified: number;
4386
+ /** Total contacts belonging to the batch */
4387
+ discovered: number;
4388
+ /** Contacts where email_valid != null */
4389
+ verified: number;
4390
+ /** Contacts where pipeline_status.personalization.status === 'complete' */
4391
+ personalized: number;
4392
+ };
4393
+ /** Email deliverability breakdown for contacts in the batch */
4394
+ deliverability: {
4395
+ /** Contacts where email_valid === 'VALID' */
4396
+ valid: number;
4397
+ /** Contacts where email_valid === 'RISKY' */
4398
+ risky: number;
4399
+ /** Contacts where email_valid === 'INVALID' */
4400
+ invalid: number;
4401
+ /** Contacts where email_valid === 'UNKNOWN' or email_valid is null */
4402
+ unknown: number;
4403
+ /** Contacts where pipeline_status.outreach.status === 'bounced' */
4404
+ bounced: number;
4405
+ };
4406
+ /** Reserved for future use — active workflow IDs associated with this batch */
4407
+ activeWorkflows?: string[];
4408
+ }
4409
+
4195
4410
  type MessageType = MessageEvent['type'];
4196
4411
  /**
4197
4412
  * Session Data Transfer Object (DTO)
@@ -7170,6 +7385,125 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
7170
7385
  error?: string;
7171
7386
  };
7172
7387
 
7388
+ /**
7389
+ * Query keys for acquisition deals
7390
+ */
7391
+ declare const dealKeys: {
7392
+ all: readonly ["acq-deals"];
7393
+ lists: () => readonly ["acq-deals", "list"];
7394
+ list: (orgId: string | null, filters: DealFilters) => readonly ["acq-deals", "list", string | null, DealFilters];
7395
+ details: () => readonly ["acq-deals", "detail"];
7396
+ detail: (id: string) => readonly ["acq-deals", "detail", string];
7397
+ };
7398
+ /**
7399
+ * Fetch deals with optional filters
7400
+ */
7401
+ declare function useDeals(filters?: DealFilters): _tanstack_react_query.UseQueryResult<DealListItem[], Error>;
7402
+ /**
7403
+ * Delete a deal with server-side cleanup (schedules, HITL tasks)
7404
+ */
7405
+ declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
7406
+
7407
+ declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
7408
+
7409
+ interface SyncDealStageParams {
7410
+ dealId: string;
7411
+ stage: DealStage;
7412
+ }
7413
+ /**
7414
+ * Sync a deal's cached_stage to the database.
7415
+ *
7416
+ * Mirrors what acqDb.syncDealStage does on the backend (lead-service.ts:1150).
7417
+ * The UI writes directly via Supabase (RLS enforces org scope) which is the
7418
+ * established pattern for acquisition hooks. The full backend syncDealStage
7419
+ * additionally logs a stage_change activity entry — the Kanban optimistic
7420
+ * update is sufficient for the UI; the activity log will lag slightly.
7421
+ */
7422
+ declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
7423
+
7424
+ /**
7425
+ * Query keys for deal notes
7426
+ */
7427
+ declare const dealNoteKeys: {
7428
+ all: readonly ["dealNotes"];
7429
+ list: (organizationId: string | null, dealId: string) => readonly ["dealNotes", string | null, string];
7430
+ };
7431
+ /**
7432
+ * Fetch notes for a specific deal, newest-first.
7433
+ */
7434
+ declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryResult<AcqDealNote[], Error>;
7435
+ interface CreateDealNoteParams {
7436
+ dealId: string;
7437
+ body: string;
7438
+ authorUserId?: string;
7439
+ }
7440
+ /**
7441
+ * Create a new deal note. On success invalidates the notes list for that deal.
7442
+ *
7443
+ * The frontend writes directly via Supabase, which is covered by RLS
7444
+ * (org member write policy).
7445
+ */
7446
+ declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
7447
+
7448
+ /**
7449
+ * Query keys for deal tasks. All keys are org-scoped for multi-tenancy isolation.
7450
+ */
7451
+ declare const dealTaskKeys: {
7452
+ all: readonly ["deal-tasks"];
7453
+ list: (orgId: string | null, dealId: string) => readonly ["deal-tasks", string | null, string];
7454
+ due: (orgId: string | null, window: string, assigneeUserId: string | null) => readonly ["deal-tasks-due", string | null, string, string | null];
7455
+ };
7456
+ /**
7457
+ * Fetch all tasks for a specific deal, ordered by due date ascending (nulls last).
7458
+ *
7459
+ * Query key is org-scoped: ['deal-tasks', orgId, dealId]
7460
+ */
7461
+ declare function useDealTasks(dealId: string | undefined): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
7462
+ type DealTasksDueWindow = 'overdue' | 'today' | 'today_and_overdue' | 'upcoming';
7463
+ interface DealTasksDueOptions {
7464
+ window?: DealTasksDueWindow;
7465
+ assigneeUserId?: string | null;
7466
+ }
7467
+ /**
7468
+ * Fetch open (uncompleted) tasks within a date window across all deals.
7469
+ *
7470
+ * Query key is org-scoped: ['deal-tasks-due', orgId, window, assigneeUserId]
7471
+ *
7472
+ * Default window: 'today_and_overdue' (overdue + due today).
7473
+ */
7474
+ declare function useDealTasksDue(opts?: DealTasksDueOptions): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
7475
+ interface CreateDealTaskParams {
7476
+ dealId: string;
7477
+ title: string;
7478
+ description?: string | null;
7479
+ kind?: AcqDealTaskKind;
7480
+ dueAt?: string | null;
7481
+ assigneeUserId?: string | null;
7482
+ createdByUserId?: string | null;
7483
+ }
7484
+ /**
7485
+ * Create a new task attached to a deal.
7486
+ *
7487
+ * Writes directly to Supabase, covered by RLS (org member write policy).
7488
+ * On success invalidates both the deal's task list and any due-tasks queries.
7489
+ */
7490
+ declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
7491
+ interface CompleteDealTaskParams {
7492
+ taskId: string;
7493
+ dealId: string;
7494
+ completedByUserId?: string | null;
7495
+ }
7496
+ /**
7497
+ * Mark a deal task as completed.
7498
+ *
7499
+ * Writes directly to Supabase, covered by RLS (org member write policy).
7500
+ * Both `id` and `organization_id` filters are applied for multi-tenancy safety.
7501
+ * On success invalidates both the deal's task list and any due-tasks queries.
7502
+ */
7503
+ declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
7504
+
7505
+ declare function useBatchTelemetry(): _tanstack_react_query.UseQueryResult<BatchTelemetry[], Error>;
7506
+
7173
7507
  /**
7174
7508
  * Hook to fetch sessions list with optional filtering.
7175
7509
  */
@@ -7229,5 +7563,5 @@ declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
7229
7563
  lastTokenUsage: SessionTokenUsage | null;
7230
7564
  };
7231
7565
 
7232
- export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, calibrationKeys, createUseFeatureAccess, executionsKeys, isSessionCapable, observabilityKeys, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification };
7233
- export type { ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateScheduleInput, CreateSessionResponse, DeleteExecutionParams, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
7566
+ export { OperationsService, REFETCH_INTERVAL_RUNNING, WS_MAX_RETRIES_BEFORE_ERROR, WS_RECONNECT_BASE_DELAY, WS_RECONNECT_MAX_DELAY, calibrationKeys, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, isSessionCapable, observabilityKeys, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompleteDealTask, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateDealNote, useCreateDealTask, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteDeal, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useErrorTrends, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification };
7567
+ export type { AcqDealNote, AcqDealTask, AcqDealTaskKind, ActivityTrendResponse, BulkDeleteExecutionsParams, BulkDeleteExecutionsResult, BusinessImpactMetrics, CalibrationProgress, CancelExecutionParams, CancelExecutionResult, ChatMessage, CreateScheduleInput, CreateSessionResponse, DealDetail, DeleteExecutionParams, DocFile, ErrorDistributionItem, ErrorDistributionParams, ErrorFilters, ErrorTrendsParams, ExecuteAsyncParams, ExecuteAsyncResult, ExecutionErrorDetails, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLogsPageResponse, FailingResource, GetMessagesResponse, ListActivitiesResponse, ListSchedulesFilters, ListSchedulesResponse, MessageEvent, MessageType, ResourcesResponse, RetryExecutionParams, SessionDTO, SessionExecution, SessionExecutionsResponse, SessionListItem, SessionTokenUsage, SortDirection, SortState, SubmitActionRequest, SubmitActionResponse, TaskSchedule, TopFailingResourcesParams, UpdateScheduleInput, UseActivitiesParams, UseActivityTrendParams, UseBatchedResourcesHealthParams, UseCalibrationSSEOptions, UseExecuteWorkflowOptions, UseExecuteWorkflowParams, UseExecutionHealthParams, UseExecutionLogsParams, UseExecutionPanelStateOptions, UseExecutionPanelStateReturn, UseNotificationCountArgs, UseResourcesHealthParams, UseSSEConnectionOptions, UseScheduledTasksOptions, WebSocketState };
@@ -1,13 +1,13 @@
1
- export { OperationsService, calibrationKeys, createUseFeatureAccess, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification } from '../chunk-QDO6NF2I.js';
1
+ export { OperationsService, calibrationKeys, createUseFeatureAccess, dealKeys, dealNoteKeys, dealTaskKeys, executionsKeys, isSessionCapable, operationsKeys, scheduleKeys, sessionsKeys, sortData, useActivities, useActivityTrend, useAllCalibrationProjects, useArchiveSession, useArchivedLogs, useBatchDelete, useBatchTelemetry, useBatchedResourcesHealth, useBulkDeleteExecutions, useBusinessImpact, useCalibrationProject, useCalibrationProjects, useCalibrationRun, useCalibrationRunFull, useCalibrationRuns, useCalibrationSSE, useCancelExecution, useCancelSchedule, useCheckpointTasks, useCommandQueue, useCommandQueueTotals, useCommandViewData, useCommandViewLayout, useCommandViewStats, useCommandViewStore, useCompleteDealTask, useCostBreakdown, useCostByModel, useCostSummary, useCostTrends, useCreateDealNote, useCreateDealTask, useCreateProject, useCreateRun, useCreateSchedule, useCreateSession, useDashboardMetrics, useDealDetail, useDealNotes, useDealTasks, useDealTasksDue, useDeals, useDeleteDeal, useDeleteExecution, useDeleteProject, useDeleteRun, useDeleteSchedule, useDeleteSession, useDeleteTask, useDeploymentDocs, useErrorAnalysis, useErrorDetail, useErrorDetails, useErrorDistribution, useErrorNotification, useExecuteAsync, useExecuteRun, useExecuteWorkflow, useExecution, useExecutionHealth, useExecutionLogSSE, useExecutionLogs, useExecutionPanelState, useExecutions, useGetExecutionHistory, useGetSchedule, useGradeRun, useGraphStats, useListSchedules, useMarkAllAsRead, useMarkAsRead, useNotificationCount as useNotificationCountSSE, useNotifications, usePaginationState, usePatchTask, usePauseSchedule, useRecentExecutionsByResource, useResolveAllErrors, useResolveError, useResolveErrorsByExecution, useResourceDefinition, useResourceErrors, useResourceExecutions, useResources, useResourcesHealth, useResumeSchedule, useRetryExecution, useSSEConnection, useScheduledTasks, useSession, useSessionExecution, useSessionExecutions, useSessionMessages, useSessionWebSocket, useSessions, useSortedData, useSubmitAction, useSuccessNotification, useSyncDealStage, useTableSelection, useTableSort, useTestNotification, useTopFailingResources, useUnresolveError, useUnresolvedErrors, useUpdateAnchor, useUpdateProject, useUpdateSchedule, useWarningNotification } from '../chunk-GQCQDCLJ.js';
2
2
  import '../chunk-NJJ3NQ7B.js';
3
3
  export { observabilityKeys, useErrorTrends } from '../chunk-LXHZYSMQ.js';
4
4
  import '../chunk-F6RBK7NJ.js';
5
5
  import '../chunk-L4XXM55J.js';
6
6
  import '../chunk-RNP5R5I3.js';
7
- import '../chunk-TML32XBW.js';
7
+ import '../chunk-RMPXGBNI.js';
8
8
  import '../chunk-SZHARWKU.js';
9
- import '../chunk-OH74INP2.js';
10
- import '../chunk-JR2C4XAN.js';
9
+ import '../chunk-FEZZ3IDU.js';
10
+ import '../chunk-CYXZHBP4.js';
11
11
  import '../chunk-R7WLWGPO.js';
12
12
  import '../chunk-NVOCKXUQ.js';
13
13
  import '../chunk-V7XHGJQZ.js';