@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/ui",
3
- "version": "1.25.0",
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 };