@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
package/dist/types/index.d.ts
CHANGED
|
@@ -3003,6 +3003,40 @@ interface TaskSchedule extends ScheduleOriginTracking {
|
|
|
3003
3003
|
updatedAt: Date;
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
|
+
/** Raw database row type for acq_deals table */
|
|
3007
|
+
type AcqDealRow = Database['public']['Tables']['acq_deals']['Row'];
|
|
3008
|
+
type DealStage = 'interested' | 'booked' | 'qualified' | 'demo_booked' | 'proposal' | 'proposal_sent' | 'proposal_signed' | 'payment_sent' | 'proposal_revision' | 'closed_won' | 'closed_lost' | 'nurturing' | 'cancelled' | 'no_show';
|
|
3009
|
+
interface KanbanStageConfig {
|
|
3010
|
+
color: string;
|
|
3011
|
+
label?: string;
|
|
3012
|
+
}
|
|
3013
|
+
type KanbanBoardConfig = Partial<Record<DealStage, KanbanStageConfig>>;
|
|
3014
|
+
interface DealContact {
|
|
3015
|
+
id: string;
|
|
3016
|
+
first_name: string | null;
|
|
3017
|
+
last_name: string | null;
|
|
3018
|
+
email: string;
|
|
3019
|
+
title: string | null;
|
|
3020
|
+
headline: string | null;
|
|
3021
|
+
linkedin_url: string | null;
|
|
3022
|
+
pipeline_status: Record<string, unknown> | null;
|
|
3023
|
+
enrichment_data: Record<string, unknown> | null;
|
|
3024
|
+
company: {
|
|
3025
|
+
id: string;
|
|
3026
|
+
name: string;
|
|
3027
|
+
domain: string | null;
|
|
3028
|
+
website: string | null;
|
|
3029
|
+
linkedin_url: string | null;
|
|
3030
|
+
segment: string | null;
|
|
3031
|
+
category: string | null;
|
|
3032
|
+
num_employees: number | null;
|
|
3033
|
+
} | null;
|
|
3034
|
+
}
|
|
3035
|
+
/** Deal list item with joined contact and company data */
|
|
3036
|
+
interface DealListItem extends AcqDealRow {
|
|
3037
|
+
contact: DealContact | null;
|
|
3038
|
+
}
|
|
3039
|
+
|
|
3006
3040
|
type MessageType = MessageEvent$1['type'];
|
|
3007
3041
|
/**
|
|
3008
3042
|
* Session Data Transfer Object (DTO)
|
|
@@ -7242,4 +7276,4 @@ interface CommandViewStatsResponse {
|
|
|
7242
7276
|
generatedAt: string
|
|
7243
7277
|
}
|
|
7244
7278
|
|
|
7245
|
-
export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, APIExecutionSummary, AbsoluteScheduleConfig, AbsoluteScheduleItem, ActionConfig, Activity, ActivitySSEEvent, ActivityStatus, ActivityType, AgentIterationData, AgentMemory, ApiKeyListItem, BusinessImpactMetrics, CalibrationProject, CalibrationRun, CalibrationRunWithFullData, CalibrationSSEEvent, ChatMessage, CheckpointListResponse, CommandQueueSSEEvent, CommandViewAgent, CommandViewData, CommandViewNode, CommandViewNodeType, CommandViewStatsResponse, CommandViewWorkflow, ConfigVariant, CostBreakdownMetrics, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateCalibrationProjectInput, CreateCalibrationRunInput, CreateWebhookEndpointRequest, CredentialListItem, DashboardMetrics, Deployment, DeploymentStatus, DomainDefinition, ErrorAnalysisMetrics, ErrorDetailFull, ErrorDetailResponse, ErrorTrend, ExecutionHealthMetrics, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLog, ExecutionLogMessage, ExecutionMetricsDetail, ExecutionSSEEvent, ExecutionStatus$1 as ExecutionStatus, ExecutionSummary, FailingResource, GradingRubric, HumanCheckpointDefinition, HumanCheckpointStats, ListMembershipsParams, MembershipFeatureConfig, MembershipStatus, MembershipWithDetails, MessageEvent$1 as MessageEvent, MessageType, ModelConfig, NotificationDTO, NotificationSSEEvent, PatchTaskParams, RecentExecutionsByResourceResponse, RecurringScheduleConfig, RelativeScheduleConfig, RelativeScheduleItem, ResourceDefinition$1 as ResourceDefinition, ResourceDomain, ResourceErrorsResponse, ResourceExecutionSummary, ResourceExecutionsResponse, ResourceHealth, ResourceIdentifier, ResourceStats, ResourceStatus$1 as ResourceStatus, ResourceType$1 as ResourceType, ResourcesHealthResponse, SerializedAgentDefinition, SerializedExecutionInterface, SerializedWorkflowDefinition, SessionCalibrationResult, SessionDTO, SessionTokenUsage, SingleCalibrationResult, StatsTimeRange, SupabaseUserProfile, Task, TaskSchedule, TaskScheduleConfig, TaskStatus, TimeRange, WorkflowNodeVisualizerData as TimelineData, UpdateCalibrationProjectInput, UpdateWebhookEndpointRequest, UserConfig, WebhookEndpoint, WebhookEndpointResponse };
|
|
7279
|
+
export type { AIResourceDefinition, APIExecutionDetail, APIExecutionListResponse, APIExecutionSummary, AbsoluteScheduleConfig, AbsoluteScheduleItem, ActionConfig, Activity, ActivitySSEEvent, ActivityStatus, ActivityType, AgentIterationData, AgentMemory, ApiKeyListItem, BusinessImpactMetrics, CalibrationProject, CalibrationRun, CalibrationRunWithFullData, CalibrationSSEEvent, ChatMessage, CheckpointListResponse, CommandQueueSSEEvent, CommandViewAgent, CommandViewData, CommandViewNode, CommandViewNodeType, CommandViewStatsResponse, CommandViewWorkflow, ConfigVariant, CostBreakdownMetrics, CostByModelResponse, CostSummaryResponse, CostTrendsResponse, CreateCalibrationProjectInput, CreateCalibrationRunInput, CreateWebhookEndpointRequest, CredentialListItem, DashboardMetrics, DealListItem, DealStage, Deployment, DeploymentStatus, DomainDefinition, ErrorAnalysisMetrics, ErrorDetailFull, ErrorDetailResponse, ErrorTrend, ExecutionHealthMetrics, ExecutionHistoryItem, ExecutionHistoryResponse, ExecutionLog, ExecutionLogMessage, ExecutionMetricsDetail, ExecutionSSEEvent, ExecutionStatus$1 as ExecutionStatus, ExecutionSummary, FailingResource, GradingRubric, HumanCheckpointDefinition, HumanCheckpointStats, KanbanBoardConfig, ListMembershipsParams, MembershipFeatureConfig, MembershipStatus, MembershipWithDetails, MessageEvent$1 as MessageEvent, MessageType, ModelConfig, NotificationDTO, NotificationSSEEvent, PatchTaskParams, RecentExecutionsByResourceResponse, RecurringScheduleConfig, RelativeScheduleConfig, RelativeScheduleItem, ResourceDefinition$1 as ResourceDefinition, ResourceDomain, ResourceErrorsResponse, ResourceExecutionSummary, ResourceExecutionsResponse, ResourceHealth, ResourceIdentifier, ResourceStats, ResourceStatus$1 as ResourceStatus, ResourceType$1 as ResourceType, ResourcesHealthResponse, SerializedAgentDefinition, SerializedExecutionInterface, SerializedWorkflowDefinition, SessionCalibrationResult, SessionDTO, SessionTokenUsage, SingleCalibrationResult, StatsTimeRange, SupabaseUserProfile, Task, TaskSchedule, TaskScheduleConfig, TaskStatus, TimeRange, WorkflowNodeVisualizerData as TimelineData, UpdateCalibrationProjectInput, UpdateWebhookEndpointRequest, UserConfig, WebhookEndpoint, WebhookEndpointResponse };
|
package/package.json
CHANGED
package/dist/chunk-NJJ3NQ7B.js
DELETED
|
@@ -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 };
|