@elevasis/ui 1.25.1 → 1.26.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.
@@ -6387,12 +6387,14 @@ declare function useSuccessNotification(): (title: string, message: string) => v
6387
6387
  declare function useWarningNotification(): (title: string, message: string) => void;
6388
6388
 
6389
6389
  /**
6390
- * Generic batch delete hook. Deletes multiple rows from a Supabase table by ID.
6390
+ * Batch mark-as-read hook for notifications.
6391
+ *
6392
+ * Sends a DELETE request to `/notifications/batch` with the given IDs,
6393
+ * which the API treats as a bulk mark-as-read operation.
6391
6394
  *
6392
- * @param tableName - Supabase table name (e.g. 'acq_social_posts')
6393
6395
  * @param invalidateQueryKeys - Array of query key prefixes to invalidate on success
6394
6396
  */
6395
- declare function useBatchDelete(tableName: string, invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
6397
+ declare function useBatchDelete(invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
6396
6398
 
6397
6399
  /**
6398
6400
  * Mutation hook to send a test notification.
@@ -7389,11 +7391,11 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
7389
7391
  * Query keys for acquisition deals
7390
7392
  */
7391
7393
  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];
7394
+ all: readonly ["deals"];
7395
+ lists: () => readonly ["deals", "list"];
7396
+ list: (orgId: string | null, filters: DealFilters) => readonly ["deals", "list", string | null, DealFilters];
7397
+ details: () => readonly ["deals", "detail"];
7398
+ detail: (id: string) => readonly ["deals", "detail", string];
7397
7399
  };
7398
7400
  /**
7399
7401
  * Fetch deals with optional filters
@@ -7411,13 +7413,10 @@ interface SyncDealStageParams {
7411
7413
  stage: DealStage;
7412
7414
  }
7413
7415
  /**
7414
- * Sync a deal's cached_stage to the database.
7416
+ * Sync a deal's cached_stage via the API.
7415
7417
  *
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.
7418
+ * The backend syncDealStage method additionally logs a stage_change activity entry.
7419
+ * On success invalidates the deals list and the specific deal detail query.
7421
7420
  */
7422
7421
  declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
7423
7422
 
@@ -7425,8 +7424,8 @@ declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<voi
7425
7424
  * Query keys for deal notes
7426
7425
  */
7427
7426
  declare const dealNoteKeys: {
7428
- all: readonly ["dealNotes"];
7429
- list: (organizationId: string | null, dealId: string) => readonly ["dealNotes", string | null, string];
7427
+ all: readonly ["deal-notes"];
7428
+ list: (organizationId: string | null, dealId: string) => readonly ["deal-notes", string | null, string];
7430
7429
  };
7431
7430
  /**
7432
7431
  * Fetch notes for a specific deal, newest-first.
@@ -7435,13 +7434,11 @@ declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryRes
7435
7434
  interface CreateDealNoteParams {
7436
7435
  dealId: string;
7437
7436
  body: string;
7438
- authorUserId?: string;
7439
7437
  }
7440
7438
  /**
7441
7439
  * Create a new deal note. On success invalidates the notes list for that deal.
7442
7440
  *
7443
- * The frontend writes directly via Supabase, which is covered by RLS
7444
- * (org member write policy).
7441
+ * Server derives organizationId and authorUserId from JWT no need to send them.
7445
7442
  */
7446
7443
  declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
7447
7444
 
@@ -7479,25 +7476,22 @@ interface CreateDealTaskParams {
7479
7476
  kind?: AcqDealTaskKind;
7480
7477
  dueAt?: string | null;
7481
7478
  assigneeUserId?: string | null;
7482
- createdByUserId?: string | null;
7483
7479
  }
7484
7480
  /**
7485
7481
  * Create a new task attached to a deal.
7486
7482
  *
7487
- * Writes directly to Supabase, covered by RLS (org member write policy).
7483
+ * Server derives organizationId and createdByUserId from JWT.
7488
7484
  * On success invalidates both the deal's task list and any due-tasks queries.
7489
7485
  */
7490
7486
  declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
7491
7487
  interface CompleteDealTaskParams {
7492
7488
  taskId: string;
7493
7489
  dealId: string;
7494
- completedByUserId?: string | null;
7495
7490
  }
7496
7491
  /**
7497
7492
  * Mark a deal task as completed.
7498
7493
  *
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.
7494
+ * Server extracts completedByUserId from JWT.
7501
7495
  * On success invalidates both the deal's task list and any due-tasks queries.
7502
7496
  */
7503
7497
  declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
@@ -1,5 +1,4 @@
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
- import '../chunk-NJJ3NQ7B.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-ZVJKIJFG.js';
3
2
  export { observabilityKeys, useErrorTrends } from '../chunk-LXHZYSMQ.js';
4
3
  import '../chunk-F6RBK7NJ.js';
5
4
  import '../chunk-L4XXM55J.js';
package/dist/index.d.ts CHANGED
@@ -9975,12 +9975,14 @@ declare function useSuccessNotification(): (title: string, message: string) => v
9975
9975
  declare function useWarningNotification(): (title: string, message: string) => void;
9976
9976
 
9977
9977
  /**
9978
- * Generic batch delete hook. Deletes multiple rows from a Supabase table by ID.
9978
+ * Batch mark-as-read hook for notifications.
9979
+ *
9980
+ * Sends a DELETE request to `/notifications/batch` with the given IDs,
9981
+ * which the API treats as a bulk mark-as-read operation.
9979
9982
  *
9980
- * @param tableName - Supabase table name (e.g. 'acq_social_posts')
9981
9983
  * @param invalidateQueryKeys - Array of query key prefixes to invalidate on success
9982
9984
  */
9983
- declare function useBatchDelete(tableName: string, invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
9985
+ declare function useBatchDelete(invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
9984
9986
 
9985
9987
  /**
9986
9988
  * Mutation hook to send a test notification.
@@ -11874,11 +11876,11 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
11874
11876
  * Query keys for acquisition deals
11875
11877
  */
11876
11878
  declare const dealKeys: {
11877
- all: readonly ["acq-deals"];
11878
- lists: () => readonly ["acq-deals", "list"];
11879
- list: (orgId: string | null, filters: DealFilters) => readonly ["acq-deals", "list", string | null, DealFilters];
11880
- details: () => readonly ["acq-deals", "detail"];
11881
- detail: (id: string) => readonly ["acq-deals", "detail", string];
11879
+ all: readonly ["deals"];
11880
+ lists: () => readonly ["deals", "list"];
11881
+ list: (orgId: string | null, filters: DealFilters) => readonly ["deals", "list", string | null, DealFilters];
11882
+ details: () => readonly ["deals", "detail"];
11883
+ detail: (id: string) => readonly ["deals", "detail", string];
11882
11884
  };
11883
11885
  /**
11884
11886
  * Fetch deals with optional filters
@@ -11896,13 +11898,10 @@ interface SyncDealStageParams {
11896
11898
  stage: DealStage;
11897
11899
  }
11898
11900
  /**
11899
- * Sync a deal's cached_stage to the database.
11901
+ * Sync a deal's cached_stage via the API.
11900
11902
  *
11901
- * Mirrors what acqDb.syncDealStage does on the backend (lead-service.ts:1150).
11902
- * The UI writes directly via Supabase (RLS enforces org scope) which is the
11903
- * established pattern for acquisition hooks. The full backend syncDealStage
11904
- * additionally logs a stage_change activity entry — the Kanban optimistic
11905
- * update is sufficient for the UI; the activity log will lag slightly.
11903
+ * The backend syncDealStage method additionally logs a stage_change activity entry.
11904
+ * On success invalidates the deals list and the specific deal detail query.
11906
11905
  */
11907
11906
  declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
11908
11907
 
@@ -11910,8 +11909,8 @@ declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<voi
11910
11909
  * Query keys for deal notes
11911
11910
  */
11912
11911
  declare const dealNoteKeys: {
11913
- all: readonly ["dealNotes"];
11914
- list: (organizationId: string | null, dealId: string) => readonly ["dealNotes", string | null, string];
11912
+ all: readonly ["deal-notes"];
11913
+ list: (organizationId: string | null, dealId: string) => readonly ["deal-notes", string | null, string];
11915
11914
  };
11916
11915
  /**
11917
11916
  * Fetch notes for a specific deal, newest-first.
@@ -11920,13 +11919,11 @@ declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryRes
11920
11919
  interface CreateDealNoteParams {
11921
11920
  dealId: string;
11922
11921
  body: string;
11923
- authorUserId?: string;
11924
11922
  }
11925
11923
  /**
11926
11924
  * Create a new deal note. On success invalidates the notes list for that deal.
11927
11925
  *
11928
- * The frontend writes directly via Supabase, which is covered by RLS
11929
- * (org member write policy).
11926
+ * Server derives organizationId and authorUserId from JWT no need to send them.
11930
11927
  */
11931
11928
  declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
11932
11929
 
@@ -11964,25 +11961,22 @@ interface CreateDealTaskParams {
11964
11961
  kind?: AcqDealTaskKind;
11965
11962
  dueAt?: string | null;
11966
11963
  assigneeUserId?: string | null;
11967
- createdByUserId?: string | null;
11968
11964
  }
11969
11965
  /**
11970
11966
  * Create a new task attached to a deal.
11971
11967
  *
11972
- * Writes directly to Supabase, covered by RLS (org member write policy).
11968
+ * Server derives organizationId and createdByUserId from JWT.
11973
11969
  * On success invalidates both the deal's task list and any due-tasks queries.
11974
11970
  */
11975
11971
  declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
11976
11972
  interface CompleteDealTaskParams {
11977
11973
  taskId: string;
11978
11974
  dealId: string;
11979
- completedByUserId?: string | null;
11980
11975
  }
11981
11976
  /**
11982
11977
  * Mark a deal task as completed.
11983
11978
  *
11984
- * Writes directly to Supabase, covered by RLS (org member write policy).
11985
- * Both `id` and `organization_id` filters are applied for multi-tenancy safety.
11979
+ * Server extracts completedByUserId from JWT.
11986
11980
  * On success invalidates both the deal's task list and any due-tasks queries.
11987
11981
  */
11988
11982
  declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
@@ -11992,8 +11986,12 @@ declare function useBatchTelemetry(): _tanstack_react_query.UseQueryResult<Batch
11992
11986
  // Row types from Supabase
11993
11987
  type ProjectRow = Database['public']['Tables']['prj_projects']['Row']
11994
11988
  type ProjectUpdate = Database['public']['Tables']['prj_projects']['Update']
11989
+
11990
+ type MilestoneRow = Database['public']['Tables']['prj_milestones']['Row']
11995
11991
  type MilestoneUpdate = Database['public']['Tables']['prj_milestones']['Update']
11996
11992
 
11993
+ type TaskRow = Database['public']['Tables']['prj_tasks']['Row']
11994
+
11997
11995
  // Status enums
11998
11996
  type ProjectStatus = 'active' | 'on_track' | 'at_risk' | 'blocked' | 'completed' | 'paused'
11999
11997
 
@@ -12049,6 +12047,12 @@ interface ProjectWithCounts extends ProjectRow {
12049
12047
  completedTasks?: number
12050
12048
  }
12051
12049
 
12050
+ interface ProjectDetail extends ProjectRow {
12051
+ milestones: MilestoneRow[]
12052
+ tasks: TaskRow[]
12053
+ company: { id: string; name: string; domain: string | null } | null
12054
+ }
12055
+
12052
12056
  declare const projectKeys: {
12053
12057
  all: readonly ["projects"];
12054
12058
  lists: () => readonly ["projects", "list"];
@@ -12057,62 +12061,7 @@ declare const projectKeys: {
12057
12061
  detail: (id: string) => readonly ["projects", "detail", string];
12058
12062
  };
12059
12063
  declare function useProjects(filters?: ProjectFilters): _tanstack_react_query.UseQueryResult<ProjectWithCounts[], Error>;
12060
- declare function useProject(id: string): _tanstack_react_query.UseQueryResult<{
12061
- actual_end_date: string | null;
12062
- client_company_id: string | null;
12063
- contract_value: number | null;
12064
- created_at: string;
12065
- deal_id: string | null;
12066
- description: string | null;
12067
- id: string;
12068
- kind: string;
12069
- metadata: Json$1 | null;
12070
- name: string;
12071
- organization_id: string;
12072
- start_date: string | null;
12073
- status: string;
12074
- target_end_date: string | null;
12075
- updated_at: string;
12076
- milestones: {
12077
- checklist: Json$1 | null;
12078
- completed_at: string | null;
12079
- created_at: string;
12080
- description: string | null;
12081
- due_date: string | null;
12082
- id: string;
12083
- metadata: Json$1 | null;
12084
- name: string;
12085
- organization_id: string;
12086
- project_id: string;
12087
- sequence: number;
12088
- status: string;
12089
- updated_at: string;
12090
- }[];
12091
- tasks: {
12092
- checklist: Json$1;
12093
- completed_at: string | null;
12094
- created_at: string;
12095
- description: string | null;
12096
- due_date: string | null;
12097
- file_url: string | null;
12098
- id: string;
12099
- metadata: Json$1 | null;
12100
- milestone_id: string | null;
12101
- name: string;
12102
- organization_id: string;
12103
- parent_task_id: string | null;
12104
- project_id: string;
12105
- resume_context: Json$1 | null;
12106
- status: string;
12107
- type: string;
12108
- updated_at: string;
12109
- }[];
12110
- company: {
12111
- id: string;
12112
- name: string;
12113
- domain: string | null;
12114
- } | null;
12115
- } | null, Error>;
12064
+ declare function useProject(id: string): _tanstack_react_query.UseQueryResult<ProjectDetail | null, Error>;
12116
12065
  declare function useCreateProject(): _tanstack_react_query.UseMutationResult<{
12117
12066
  actual_end_date: string | null;
12118
12067
  client_company_id: string | null;
@@ -12164,7 +12113,7 @@ declare function useUpdateProject(): _tanstack_react_query.UseMutationResult<{
12164
12113
  updated_at: string;
12165
12114
  }, Error, {
12166
12115
  id: string;
12167
- updates: ProjectUpdate;
12116
+ updates: Omit<ProjectUpdate, "organization_id">;
12168
12117
  }, unknown>;
12169
12118
  declare function useDeleteProject(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
12170
12119
 
@@ -12175,6 +12124,19 @@ declare const milestoneKeys: {
12175
12124
  details: () => readonly ["project-milestones", "detail"];
12176
12125
  detail: (id: string) => readonly ["project-milestones", "detail", string];
12177
12126
  };
12127
+ /**
12128
+ * Fetches milestones for a project.
12129
+ *
12130
+ * NOTE: The API only supports nested listing via GET /projects/:projectId/milestones.
12131
+ * There is no cross-project milestone endpoint. When filters.projectId is absent,
12132
+ * the query is disabled and returns undefined. Callers that previously relied on
12133
+ * cross-project querying (no projectId) will need to supply a projectId or migrate
12134
+ * to a different approach.
12135
+ *
12136
+ * NOTE: The filters.status field is not forwarded to the API (no querystring support
12137
+ * on the milestones list endpoint). Client-side filtering on the returned array is
12138
+ * required if status filtering is needed.
12139
+ */
12178
12140
  declare function useMilestones(filters?: MilestoneFilters): _tanstack_react_query.UseQueryResult<{
12179
12141
  checklist: Json$1 | null;
12180
12142
  completed_at: string | null;
@@ -12235,7 +12197,7 @@ declare function useUpdateMilestone(): _tanstack_react_query.UseMutationResult<{
12235
12197
  updated_at: string;
12236
12198
  }, Error, {
12237
12199
  id: string;
12238
- updates: MilestoneUpdate;
12200
+ updates: Omit<MilestoneUpdate, "organization_id">;
12239
12201
  }, unknown>;
12240
12202
  declare function useDeleteMilestone(): _tanstack_react_query.UseMutationResult<void, Error, {
12241
12203
  id: string;
@@ -12249,6 +12211,19 @@ declare const taskKeys: {
12249
12211
  details: () => readonly ["project-tasks", "detail"];
12250
12212
  detail: (id: string) => readonly ["project-tasks", "detail", string];
12251
12213
  };
12214
+ /**
12215
+ * Fetches tasks for a project.
12216
+ *
12217
+ * NOTE: The API only supports nested listing via GET /projects/:projectId/tasks.
12218
+ * There is no cross-project task endpoint. When filters.projectId is absent,
12219
+ * the query is disabled. Callers that previously relied on cross-project querying
12220
+ * will need to supply a projectId.
12221
+ *
12222
+ * NOTE: filters.type is not forwarded to the API (no querystring support on the
12223
+ * tasks list endpoint for type). Client-side filtering is required if needed.
12224
+ *
12225
+ * Supported API query params: status, milestoneId (mapped to milestone_id).
12226
+ */
12252
12227
  declare function useTasks(filters?: TaskFilters): _tanstack_react_query.UseQueryResult<{
12253
12228
  checklist: Json$1;
12254
12229
  completed_at: string | null;
@@ -12280,6 +12255,16 @@ declare const noteKeys: {
12280
12255
  details: () => readonly ["project-notes", "detail"];
12281
12256
  detail: (id: string) => readonly ["project-notes", "detail", string];
12282
12257
  };
12258
+ /**
12259
+ * Fetches notes for a project.
12260
+ *
12261
+ * NOTE: The API only supports nested listing via GET /projects/:projectId/notes.
12262
+ * There is no cross-project notes endpoint. When filters.projectId is absent,
12263
+ * the query is disabled.
12264
+ *
12265
+ * NOTE: filters.type is not forwarded to the API (the notes list endpoint has no
12266
+ * querystring schema for type filtering). Client-side filtering is required if needed.
12267
+ */
12283
12268
  declare function useProjectNotes(filters?: NoteFilters): _tanstack_react_query.UseQueryResult<{
12284
12269
  content: string;
12285
12270
  created_at: string;
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  export { useAvailablePresets } from './chunk-BS4J2LAW.js';
2
2
  import './chunk-XCYKC6OZ.js';
3
- 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';
4
- 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';
5
- import './chunk-NJJ3NQ7B.js';
3
+ 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-YNGQ7U5H.js';
4
+ 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-ZVJKIJFG.js';
6
5
  export { observabilityKeys, useErrorTrends } from './chunk-LXHZYSMQ.js';
7
6
  export { ScrollToTop, TanStackRouterBridge } from './chunk-MHW43EOH.js';
8
7
  export { GRAPH_CONSTANTS, calculateGraphHeight, useConnectionHighlight, useDirectedChainHighlighting, useFitViewTrigger, useGraphHighlighting, useNodeSelection } from './chunk-F6RBK7NJ.js';
@@ -1,2 +1,47 @@
1
- export { getSupabaseClient, useSupabase } from '../chunk-NJJ3NQ7B.js';
2
- import '../chunk-BRJ3QZ4E.js';
1
+ import { useAuthContext } from '../chunk-BRJ3QZ4E.js';
2
+ import { createClient } from '@supabase/supabase-js';
3
+ import { useMemo } from 'react';
4
+
5
+ function getSupabaseConfig() {
6
+ const url = import.meta.env?.VITE_SUPABASE_URL;
7
+ const anonKey = import.meta.env?.VITE_SUPABASE_ANON_KEY;
8
+ if (!url || !anonKey) {
9
+ throw new Error("Missing Supabase environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)");
10
+ }
11
+ return { url, anonKey };
12
+ }
13
+ var _supabase = null;
14
+ function getSupabaseClient() {
15
+ if (!_supabase) {
16
+ const { url, anonKey } = getSupabaseConfig();
17
+ _supabase = createClient(url, anonKey);
18
+ }
19
+ return _supabase;
20
+ }
21
+ var useSupabase = () => {
22
+ const { getAccessToken } = useAuthContext();
23
+ const { url, anonKey } = getSupabaseConfig();
24
+ return useMemo(
25
+ () => createClient(url, anonKey, {
26
+ global: {
27
+ headers: {
28
+ // Additional headers if needed
29
+ }
30
+ },
31
+ accessToken: async () => {
32
+ try {
33
+ const token = await getAccessToken();
34
+ if (!token) {
35
+ return null;
36
+ }
37
+ return token;
38
+ } catch {
39
+ return null;
40
+ }
41
+ }
42
+ }),
43
+ [getAccessToken, url, anonKey]
44
+ );
45
+ };
46
+
47
+ export { getSupabaseClient, useSupabase };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
4
4
  "description": "UI components and platform-aware hooks for building custom frontends on the Elevasis platform",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,47 +0,0 @@
1
- import { useAuthContext } from './chunk-BRJ3QZ4E.js';
2
- import { createClient } from '@supabase/supabase-js';
3
- import { useMemo } from 'react';
4
-
5
- function getSupabaseConfig() {
6
- const url = import.meta.env?.VITE_SUPABASE_URL;
7
- const anonKey = import.meta.env?.VITE_SUPABASE_ANON_KEY;
8
- if (!url || !anonKey) {
9
- throw new Error("Missing Supabase environment variables (VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY)");
10
- }
11
- return { url, anonKey };
12
- }
13
- var _supabase = null;
14
- function getSupabaseClient() {
15
- if (!_supabase) {
16
- const { url, anonKey } = getSupabaseConfig();
17
- _supabase = createClient(url, anonKey);
18
- }
19
- return _supabase;
20
- }
21
- var useSupabase = () => {
22
- const { getAccessToken } = useAuthContext();
23
- const { url, anonKey } = getSupabaseConfig();
24
- return useMemo(
25
- () => createClient(url, anonKey, {
26
- global: {
27
- headers: {
28
- // Additional headers if needed
29
- }
30
- },
31
- accessToken: async () => {
32
- try {
33
- const token = await getAccessToken();
34
- if (!token) {
35
- return null;
36
- }
37
- return token;
38
- } catch {
39
- return null;
40
- }
41
- }
42
- }),
43
- [getAccessToken, url, anonKey]
44
- );
45
- };
46
-
47
- export { getSupabaseClient, useSupabase };