@elevasis/ui 1.25.0 → 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.
- package/dist/charts/index.js +2 -2
- package/dist/{chunk-7RS6VTAV.js → chunk-4INR75ZS.js} +3 -3
- package/dist/{chunk-RIL2CDFE.js → chunk-4WKWLFBZ.js} +3 -3
- package/dist/{chunk-US4JUSI3.js → chunk-JHVKGZ2P.js} +1 -1
- package/dist/{chunk-3EVTCVKR.js → chunk-LR4WVA7W.js} +2 -2
- package/dist/{chunk-G25YWGUL.js → chunk-MCA6LOGM.js} +1 -1
- package/dist/{chunk-QNABH7YG.js → chunk-O4UB5DQQ.js} +2 -2
- package/dist/{chunk-HYYI4ZFT.js → chunk-TCKIAHDC.js} +4 -4
- package/dist/{chunk-R565P6XC.js → chunk-YNGQ7U5H.js} +86 -516
- package/dist/{chunk-QDO6NF2I.js → chunk-ZVJKIJFG.js} +264 -69
- package/dist/components/index.d.ts +15 -15
- package/dist/components/index.js +40 -114
- package/dist/features/dashboard/index.js +5 -6
- package/dist/features/monitoring/index.js +6 -7
- package/dist/features/operations/index.js +7 -8
- package/dist/features/settings/index.js +4 -5
- package/dist/hooks/index.d.ts +67 -82
- package/dist/hooks/index.js +2 -3
- package/dist/hooks/published.d.ts +234 -5
- package/dist/hooks/published.js +1 -2
- package/dist/index.d.ts +67 -82
- package/dist/index.js +2 -3
- package/dist/supabase/index.js +47 -2
- package/dist/types/index.d.ts +35 -1
- package/package.json +1 -1
- package/dist/chunk-NJJ3NQ7B.js +0 -47
|
@@ -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
|
*/
|
|
@@ -4291,6 +4310,103 @@ interface NotificationDTO {
|
|
|
4291
4310
|
createdAt: string;
|
|
4292
4311
|
}
|
|
4293
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
|
+
|
|
4294
4410
|
type MessageType = MessageEvent['type'];
|
|
4295
4411
|
/**
|
|
4296
4412
|
* Session Data Transfer Object (DTO)
|
|
@@ -6271,12 +6387,14 @@ declare function useSuccessNotification(): (title: string, message: string) => v
|
|
|
6271
6387
|
declare function useWarningNotification(): (title: string, message: string) => void;
|
|
6272
6388
|
|
|
6273
6389
|
/**
|
|
6274
|
-
*
|
|
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.
|
|
6275
6394
|
*
|
|
6276
|
-
* @param tableName - Supabase table name (e.g. 'acq_social_posts')
|
|
6277
6395
|
* @param invalidateQueryKeys - Array of query key prefixes to invalidate on success
|
|
6278
6396
|
*/
|
|
6279
|
-
declare function useBatchDelete(
|
|
6397
|
+
declare function useBatchDelete(invalidateQueryKeys: readonly (readonly unknown[])[]): _tanstack_react_query.UseMutationResult<void, Error, string[], unknown>;
|
|
6280
6398
|
|
|
6281
6399
|
/**
|
|
6282
6400
|
* Mutation hook to send a test notification.
|
|
@@ -7269,6 +7387,117 @@ declare function useCalibrationSSE({ runId, manager, apiUrl, enabled }: UseCalib
|
|
|
7269
7387
|
error?: string;
|
|
7270
7388
|
};
|
|
7271
7389
|
|
|
7390
|
+
/**
|
|
7391
|
+
* Query keys for acquisition deals
|
|
7392
|
+
*/
|
|
7393
|
+
declare const dealKeys: {
|
|
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];
|
|
7399
|
+
};
|
|
7400
|
+
/**
|
|
7401
|
+
* Fetch deals with optional filters
|
|
7402
|
+
*/
|
|
7403
|
+
declare function useDeals(filters?: DealFilters): _tanstack_react_query.UseQueryResult<DealListItem[], Error>;
|
|
7404
|
+
/**
|
|
7405
|
+
* Delete a deal with server-side cleanup (schedules, HITL tasks)
|
|
7406
|
+
*/
|
|
7407
|
+
declare function useDeleteDeal(): _tanstack_react_query.UseMutationResult<void, Error, string, unknown>;
|
|
7408
|
+
|
|
7409
|
+
declare function useDealDetail(acqDealId: string): _tanstack_react_query.UseQueryResult<DealListItem | null, Error>;
|
|
7410
|
+
|
|
7411
|
+
interface SyncDealStageParams {
|
|
7412
|
+
dealId: string;
|
|
7413
|
+
stage: DealStage;
|
|
7414
|
+
}
|
|
7415
|
+
/**
|
|
7416
|
+
* Sync a deal's cached_stage via the API.
|
|
7417
|
+
*
|
|
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.
|
|
7420
|
+
*/
|
|
7421
|
+
declare function useSyncDealStage(): _tanstack_react_query.UseMutationResult<void, Error, SyncDealStageParams, unknown>;
|
|
7422
|
+
|
|
7423
|
+
/**
|
|
7424
|
+
* Query keys for deal notes
|
|
7425
|
+
*/
|
|
7426
|
+
declare const dealNoteKeys: {
|
|
7427
|
+
all: readonly ["deal-notes"];
|
|
7428
|
+
list: (organizationId: string | null, dealId: string) => readonly ["deal-notes", string | null, string];
|
|
7429
|
+
};
|
|
7430
|
+
/**
|
|
7431
|
+
* Fetch notes for a specific deal, newest-first.
|
|
7432
|
+
*/
|
|
7433
|
+
declare function useDealNotes(dealId: string): _tanstack_react_query.UseQueryResult<AcqDealNote[], Error>;
|
|
7434
|
+
interface CreateDealNoteParams {
|
|
7435
|
+
dealId: string;
|
|
7436
|
+
body: string;
|
|
7437
|
+
}
|
|
7438
|
+
/**
|
|
7439
|
+
* Create a new deal note. On success invalidates the notes list for that deal.
|
|
7440
|
+
*
|
|
7441
|
+
* Server derives organizationId and authorUserId from JWT — no need to send them.
|
|
7442
|
+
*/
|
|
7443
|
+
declare function useCreateDealNote(): _tanstack_react_query.UseMutationResult<AcqDealNote, Error, CreateDealNoteParams, unknown>;
|
|
7444
|
+
|
|
7445
|
+
/**
|
|
7446
|
+
* Query keys for deal tasks. All keys are org-scoped for multi-tenancy isolation.
|
|
7447
|
+
*/
|
|
7448
|
+
declare const dealTaskKeys: {
|
|
7449
|
+
all: readonly ["deal-tasks"];
|
|
7450
|
+
list: (orgId: string | null, dealId: string) => readonly ["deal-tasks", string | null, string];
|
|
7451
|
+
due: (orgId: string | null, window: string, assigneeUserId: string | null) => readonly ["deal-tasks-due", string | null, string, string | null];
|
|
7452
|
+
};
|
|
7453
|
+
/**
|
|
7454
|
+
* Fetch all tasks for a specific deal, ordered by due date ascending (nulls last).
|
|
7455
|
+
*
|
|
7456
|
+
* Query key is org-scoped: ['deal-tasks', orgId, dealId]
|
|
7457
|
+
*/
|
|
7458
|
+
declare function useDealTasks(dealId: string | undefined): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
7459
|
+
type DealTasksDueWindow = 'overdue' | 'today' | 'today_and_overdue' | 'upcoming';
|
|
7460
|
+
interface DealTasksDueOptions {
|
|
7461
|
+
window?: DealTasksDueWindow;
|
|
7462
|
+
assigneeUserId?: string | null;
|
|
7463
|
+
}
|
|
7464
|
+
/**
|
|
7465
|
+
* Fetch open (uncompleted) tasks within a date window across all deals.
|
|
7466
|
+
*
|
|
7467
|
+
* Query key is org-scoped: ['deal-tasks-due', orgId, window, assigneeUserId]
|
|
7468
|
+
*
|
|
7469
|
+
* Default window: 'today_and_overdue' (overdue + due today).
|
|
7470
|
+
*/
|
|
7471
|
+
declare function useDealTasksDue(opts?: DealTasksDueOptions): _tanstack_react_query.UseQueryResult<AcqDealTask[], Error>;
|
|
7472
|
+
interface CreateDealTaskParams {
|
|
7473
|
+
dealId: string;
|
|
7474
|
+
title: string;
|
|
7475
|
+
description?: string | null;
|
|
7476
|
+
kind?: AcqDealTaskKind;
|
|
7477
|
+
dueAt?: string | null;
|
|
7478
|
+
assigneeUserId?: string | null;
|
|
7479
|
+
}
|
|
7480
|
+
/**
|
|
7481
|
+
* Create a new task attached to a deal.
|
|
7482
|
+
*
|
|
7483
|
+
* Server derives organizationId and createdByUserId from JWT.
|
|
7484
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
7485
|
+
*/
|
|
7486
|
+
declare function useCreateDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CreateDealTaskParams, unknown>;
|
|
7487
|
+
interface CompleteDealTaskParams {
|
|
7488
|
+
taskId: string;
|
|
7489
|
+
dealId: string;
|
|
7490
|
+
}
|
|
7491
|
+
/**
|
|
7492
|
+
* Mark a deal task as completed.
|
|
7493
|
+
*
|
|
7494
|
+
* Server extracts completedByUserId from JWT.
|
|
7495
|
+
* On success invalidates both the deal's task list and any due-tasks queries.
|
|
7496
|
+
*/
|
|
7497
|
+
declare function useCompleteDealTask(): _tanstack_react_query.UseMutationResult<AcqDealTask, Error, CompleteDealTaskParams, unknown>;
|
|
7498
|
+
|
|
7499
|
+
declare function useBatchTelemetry(): _tanstack_react_query.UseQueryResult<BatchTelemetry[], Error>;
|
|
7500
|
+
|
|
7272
7501
|
/**
|
|
7273
7502
|
* Hook to fetch sessions list with optional filtering.
|
|
7274
7503
|
*/
|
|
@@ -7328,5 +7557,5 @@ declare function useSessionWebSocket(sessionId: string, apiUrl: string): {
|
|
|
7328
7557
|
lastTokenUsage: SessionTokenUsage | null;
|
|
7329
7558
|
};
|
|
7330
7559
|
|
|
7331
|
-
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 };
|
|
7332
|
-
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 };
|
|
7560
|
+
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 };
|
|
7561
|
+
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 };
|
package/dist/hooks/published.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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-
|
|
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
|
-
*
|
|
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(
|
|
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 ["
|
|
11878
|
-
lists: () => readonly ["
|
|
11879
|
-
list: (orgId: string | null, filters: DealFilters) => readonly ["
|
|
11880
|
-
details: () => readonly ["
|
|
11881
|
-
detail: (id: string) => readonly ["
|
|
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
|
|
11901
|
+
* Sync a deal's cached_stage via the API.
|
|
11900
11902
|
*
|
|
11901
|
-
*
|
|
11902
|
-
*
|
|
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 ["
|
|
11914
|
-
list: (organizationId: string | null, dealId: string) => readonly ["
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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,
|
|
4
|
-
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-
|
|
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';
|
package/dist/supabase/index.js
CHANGED
|
@@ -1,2 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
import '
|
|
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 };
|